@happyvertical/smrt-planner 0.74.6 → 0.74.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/404.html +19 -19
- package/app/_app/immutable/chunks/{Fy4JYVF0.js → B3o6Rknr.js} +1 -1
- package/app/_app/immutable/chunks/{CuOzFJAz.js → BCsG0yPA.js} +1 -1
- package/app/_app/immutable/chunks/BGH1Gldc.js +1 -0
- package/app/_app/immutable/chunks/{BENLVmzr.js → BJmHlVD1.js} +1 -1
- package/app/_app/immutable/chunks/{Bz0vK8bM.js → BKEjwN7e.js} +1 -1
- package/app/_app/immutable/chunks/{CmwLYxUA.js → BLV4V97V.js} +3 -3
- package/app/_app/immutable/chunks/{BX9NvKas.js → BZZ38Fef.js} +1 -1
- package/app/_app/immutable/chunks/{C2yupMVb.js → BwBnFWTa.js} +33 -33
- package/app/_app/immutable/chunks/{BTWU0aek.js → C7j9p6vn.js} +1 -1
- package/app/_app/immutable/chunks/{T83Jna7K.js → CEjXJ7B5.js} +1 -1
- package/app/_app/immutable/chunks/{Vh43TMx7.js → CFdogvBd.js} +1 -1
- package/app/_app/immutable/chunks/CFgtBHwg.js +1 -0
- package/app/_app/immutable/chunks/{kpPWsivz.js → CG2udJB7.js} +1 -1
- package/app/_app/immutable/chunks/{Omg9VUiB.js → CGNVdAL6.js} +1 -1
- package/app/_app/immutable/chunks/{D5R8Rn1d.js → CLDya5cW.js} +1 -1
- package/app/_app/immutable/chunks/{lgKYNQak.js → CPOo7Mqy.js} +1 -1
- package/app/_app/immutable/chunks/{Ce9hL6Re.js → CVX9TZgG.js} +1 -1
- package/app/_app/immutable/chunks/{BXzt-Hvo.js → Cgft4hMd.js} +1 -1
- package/app/_app/immutable/chunks/CxDpjDOz.js +1 -0
- package/app/_app/immutable/chunks/{DLLtX3YJ.js → CxVU31nv.js} +1 -1
- package/app/_app/immutable/chunks/{D0XSHXEF.js → DE9CTDAV.js} +1 -1
- package/app/_app/immutable/chunks/{m9L23tmn.js → DVxLQ65y.js} +2 -2
- package/app/_app/immutable/chunks/{DJDjagGU.js → D_AJgyg6.js} +1 -1
- package/app/_app/immutable/chunks/{eztP-7PX.js → DjTOAaC5.js} +1 -1
- package/app/_app/immutable/chunks/{B4cuuBLO.js → DxQ526Ze.js} +1 -1
- package/app/_app/immutable/chunks/{CWdpSU6P.js → JHfxjU4N.js} +1 -1
- package/app/_app/immutable/chunks/{B-bUkSMO.js → M1DpuAbK.js} +1 -1
- package/app/_app/immutable/chunks/{B289dAjx.js → bD_sGBgs.js} +1 -1
- package/app/_app/immutable/chunks/{XA4NFAo8.js → byX4M-gX.js} +1 -1
- package/app/_app/immutable/chunks/{BUQ9IqyN.js → sfaSS89b.js} +1 -1
- package/app/_app/immutable/entry/{app.C-cpnbt3.js → app.Bbt1uEk8.js} +2 -2
- package/app/_app/immutable/entry/start.CTwAFOOc.js +1 -0
- package/app/_app/immutable/nodes/{0.C-Ee4IwI.js → 0.DyXyhD8a.js} +1 -1
- package/app/_app/immutable/nodes/{1.BbEMtYua.js → 1.DFgz_IHY.js} +1 -1
- package/app/_app/immutable/nodes/{10.C6iF5Uw-.js → 10.eYxVuitX.js} +1 -1
- package/app/_app/immutable/nodes/{11.2LgH7_G3.js → 11.bulbdqZB.js} +1 -1
- package/app/_app/immutable/nodes/{12.CAvCFayQ.js → 12.EUFRmQcz.js} +1 -1
- package/app/_app/immutable/nodes/{13.CG0RMCib.js → 13.C5qDqgvb.js} +1 -1
- package/app/_app/immutable/nodes/{14.BZkTMbuB.js → 14.9gnImIo3.js} +1 -1
- package/app/_app/immutable/nodes/{2.DhzjReTE.js → 2.C8-sA1CW.js} +3 -3
- package/app/_app/immutable/nodes/{3.CqAmNc-I.js → 3.B7pD_eCW.js} +1 -1
- package/app/_app/immutable/nodes/{4.BrhbXPQ-.js → 4.Du3MpFN8.js} +1 -1
- package/app/_app/immutable/nodes/{5.DWFSUCUa.js → 5.B_PGwkx4.js} +1 -1
- package/app/_app/immutable/nodes/{6.BxGHFzzH.js → 6.BSi9Wxku.js} +1 -1
- package/app/_app/immutable/nodes/{7.BLjJksm3.js → 7.BaglK1vh.js} +1 -1
- package/app/_app/immutable/nodes/{8.ofbRD096.js → 8.BvuwXwI-.js} +1 -1
- package/app/_app/immutable/nodes/{9.COf18do2.js → 9.xgjYpIpr.js} +1 -1
- package/app/_app/version.json +1 -1
- package/app/advanced-styles/index.html +21 -21
- package/app/ai/index.html +25 -25
- package/app/blueprint/index.html +20 -20
- package/app/cookbook/index.html +20 -20
- package/app/index.html +28 -28
- package/app/m/ads/AdDeliveryTier/index.html +24 -24
- package/app/m/ads/AdEvent/index.html +24 -24
- package/app/m/ads/AdFormat/index.html +24 -24
- package/app/m/ads/AdGroup/index.html +24 -24
- package/app/m/ads/AdVariation/index.html +24 -24
- package/app/m/analytics/AnalyticsDataStream/index.html +24 -24
- package/app/m/analytics/AnalyticsEvent/index.html +24 -24
- package/app/m/analytics/AnalyticsProperty/index.html +24 -24
- package/app/m/analytics/AnalyticsReport/index.html +24 -24
- package/app/m/approvals/ApprovalEvent/index.html +24 -24
- package/app/m/approvals/ApprovalPolicy/index.html +24 -24
- package/app/m/approvals/ApprovalRequest/index.html +24 -24
- package/app/m/assets/Asset/attachments/index.html +25 -25
- package/app/m/assets/Asset/index.html +24 -24
- package/app/m/assets/AssetAssociation/index.html +24 -24
- package/app/m/assets/AssetMetafield/index.html +24 -24
- package/app/m/assets/AssetStatus/index.html +24 -24
- package/app/m/assets/AssetType/index.html +24 -24
- package/app/m/assets/Folder/index.html +24 -24
- package/app/m/chat/AgentSession/index.html +24 -24
- package/app/m/chat/ChatMessage/index.html +24 -24
- package/app/m/chat/ChatParticipant/index.html +24 -24
- package/app/m/chat/ChatReaction/index.html +24 -24
- package/app/m/chat/ChatRoom/index.html +24 -24
- package/app/m/chat/ChatThread/index.html +24 -24
- package/app/m/chat/VoiceGatewayTurn/index.html +24 -24
- package/app/m/chat/VoiceSession/index.html +24 -24
- package/app/m/commerce/AccountingConnection/index.html +24 -24
- package/app/m/commerce/AccountingInvoiceReadback/index.html +24 -24
- package/app/m/commerce/AccountingMapping/index.html +24 -24
- package/app/m/commerce/AccountingPaymentSync/index.html +24 -24
- package/app/m/commerce/Agreement/index.html +24 -24
- package/app/m/commerce/Cart/index.html +24 -24
- package/app/m/commerce/Contract/index.html +24 -24
- package/app/m/commerce/ContractLineItem/index.html +24 -24
- package/app/m/commerce/Customer/index.html +24 -24
- package/app/m/commerce/DocumentTax/index.html +24 -24
- package/app/m/commerce/Estimate/index.html +24 -24
- package/app/m/commerce/Fulfillment/index.html +24 -24
- package/app/m/commerce/FulfillmentLineItem/index.html +24 -24
- package/app/m/commerce/HistoricalCustomerFunds/index.html +24 -24
- package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +24 -24
- package/app/m/commerce/HistoricalSalesLine/index.html +24 -24
- package/app/m/commerce/Invoice/index.html +24 -24
- package/app/m/commerce/InvoiceLineItem/index.html +24 -24
- package/app/m/commerce/Lease/index.html +24 -24
- package/app/m/commerce/LicenseSale/index.html +24 -24
- package/app/m/commerce/Order/index.html +24 -24
- package/app/m/commerce/Payment/index.html +24 -24
- package/app/m/commerce/PaymentAllocation/index.html +24 -24
- package/app/m/commerce/PaymentInstrument/index.html +24 -24
- package/app/m/commerce/PaymentIntent/index.html +24 -24
- package/app/m/commerce/Payout/index.html +24 -24
- package/app/m/commerce/ProductionOrder/index.html +24 -24
- package/app/m/commerce/PurchaseContract/index.html +24 -24
- package/app/m/commerce/PurchaseOrder/index.html +24 -24
- package/app/m/commerce/SalesContract/index.html +24 -24
- package/app/m/commerce/SupplierQuote/index.html +24 -24
- package/app/m/commerce/TaxCode/index.html +24 -24
- package/app/m/commerce/TaxComponent/index.html +24 -24
- package/app/m/commerce/TaxSettings/index.html +24 -24
- package/app/m/commerce/TaxSummaryReport/index.html +24 -24
- package/app/m/commerce/TenantPaymentAccount/index.html +24 -24
- package/app/m/commerce/Vendor/index.html +24 -24
- package/app/m/commerce/WholesaleOrder/index.html +24 -24
- package/app/m/content/Content/articles/index.html +25 -25
- package/app/m/content/Content/index.html +24 -24
- package/app/m/content/ContentContribution/index.html +24 -24
- package/app/m/content/ContentContributionAttachment/index.html +24 -24
- package/app/m/content/ContentContributionRevision/index.html +24 -24
- package/app/m/content/ContentContributionType/index.html +24 -24
- package/app/m/content/ContentContributor/index.html +24 -24
- package/app/m/content/ContentCorrection/index.html +24 -24
- package/app/m/content/ContentFeedSource/index.html +24 -24
- package/app/m/content/ContentGovernanceAssignment/index.html +24 -24
- package/app/m/content/ContentGovernancePolicy/index.html +24 -24
- package/app/m/content/ContentGovernanceProfile/index.html +24 -24
- package/app/m/content/ContentReference/index.html +24 -24
- package/app/m/content/ContentReview/index.html +24 -24
- package/app/m/content/ContentVersion/index.html +24 -24
- package/app/m/events/Event/index.html +24 -24
- package/app/m/events/EventParticipant/index.html +24 -24
- package/app/m/events/EventSeries/index.html +24 -24
- package/app/m/events/EventType/index.html +24 -24
- package/app/m/expenses/Expense/index.html +24 -24
- package/app/m/facts/Fact/index.html +24 -24
- package/app/m/facts/FactContent/index.html +24 -24
- package/app/m/facts/FactEvidence/index.html +24 -24
- package/app/m/facts/FactSource/index.html +24 -24
- package/app/m/facts/FactSubject/index.html +24 -24
- package/app/m/facts/FactTag/index.html +24 -24
- package/app/m/fields/FieldPolicy/index.html +24 -24
- package/app/m/fields/FieldPolicySuggestion/index.html +24 -24
- package/app/m/fields/FieldUsageCounter/index.html +24 -24
- package/app/m/human-resources/Employment/index.html +24 -24
- package/app/m/human-resources/EmploymentTerm/index.html +24 -24
- package/app/m/human-resources/HeldQualification/index.html +24 -24
- package/app/m/human-resources/Qualification/index.html +24 -24
- package/app/m/images/Image/index.html +24 -24
- package/app/m/inventory/InventoryLocation/index.html +24 -24
- package/app/m/inventory/Lot/index.html +24 -24
- package/app/m/inventory/LotCorrection/index.html +24 -24
- package/app/m/inventory/LotDocument/index.html +24 -24
- package/app/m/inventory/LotStockLevel/index.html +24 -24
- package/app/m/inventory/LotUsage/index.html +24 -24
- package/app/m/inventory/StockLevel/index.html +24 -24
- package/app/m/inventory/StockMovement/index.html +24 -24
- package/app/m/ledgers/Account/index.html +24 -24
- package/app/m/ledgers/Journal/index.html +24 -24
- package/app/m/ledgers/JournalEntry/index.html +24 -24
- package/app/m/ledgers/Ledger/index.html +24 -24
- package/app/m/manufacturing/Assembly/index.html +24 -24
- package/app/m/manufacturing/BillOfMaterials/index.html +24 -24
- package/app/m/manufacturing/BomLine/index.html +24 -24
- package/app/m/manufacturing/Operation/index.html +24 -24
- package/app/m/manufacturing/ProductionRun/index.html +24 -24
- package/app/m/manufacturing/ProductionRunCompletion/index.html +24 -24
- package/app/m/manufacturing/RoutingStep/index.html +24 -24
- package/app/m/marketing/Campaign/index.html +24 -24
- package/app/m/marketing/CampaignChannel/index.html +24 -24
- package/app/m/marketing/CampaignMetricSnapshot/index.html +24 -24
- package/app/m/messages/Account/index.html +24 -24
- package/app/m/messages/Attachment/index.html +24 -24
- package/app/m/messages/Blacklist/index.html +24 -24
- package/app/m/messages/Email/failed-sends/index.html +25 -25
- package/app/m/messages/Email/index.html +24 -24
- package/app/m/messages/Email/mailbox/index.html +25 -25
- package/app/m/messages/EmailAccount/index.html +24 -24
- package/app/m/messages/EmailAttachment/index.html +24 -24
- package/app/m/messages/EmailFolder/index.html +24 -24
- package/app/m/messages/Message/index.html +24 -24
- package/app/m/messages/MessagingEndpoint/index.html +24 -24
- package/app/m/messages/PersonaMessageRoute/index.html +24 -24
- package/app/m/messages/SlackAccount/index.html +24 -24
- package/app/m/messages/SlackMessage/index.html +24 -24
- package/app/m/messages/SlackMessage/slack-messages/index.html +25 -25
- package/app/m/messages/TelegramAccount/index.html +24 -24
- package/app/m/messages/Tweet/index.html +24 -24
- package/app/m/messages/TwitterAccount/index.html +24 -24
- package/app/m/messages/Whitelist/index.html +24 -24
- package/app/m/messages/ZulipAccount/index.html +24 -24
- package/app/m/places/Place/index.html +24 -24
- package/app/m/places/PlaceType/index.html +24 -24
- package/app/m/products/Category/index.html +24 -24
- package/app/m/products/Material/index.html +24 -24
- package/app/m/products/Product/index.html +24 -24
- package/app/m/products/Product/ingredients/index.html +25 -25
- package/app/m/products/ProductVariant/index.html +24 -24
- package/app/m/products/Sku/index.html +24 -24
- package/app/m/profiles/ApiKey/index.html +24 -24
- package/app/m/profiles/Bot/index.html +24 -24
- package/app/m/profiles/MagicLinkToken/index.html +24 -24
- package/app/m/profiles/NostrIdentity/index.html +24 -24
- package/app/m/profiles/OidcIdentity/index.html +24 -24
- package/app/m/profiles/Organization/index.html +24 -24
- package/app/m/profiles/Person/index.html +24 -24
- package/app/m/profiles/Profile/index.html +24 -24
- package/app/m/profiles/ProfileMetadata/index.html +24 -24
- package/app/m/profiles/ProfileMetafield/index.html +24 -24
- package/app/m/profiles/ProfileRelationship/index.html +24 -24
- package/app/m/profiles/ProfileRelationshipTerm/index.html +24 -24
- package/app/m/profiles/ProfileRelationshipType/index.html +24 -24
- package/app/m/profiles/ProfileType/index.html +24 -24
- package/app/m/projects/Comment/index.html +24 -24
- package/app/m/projects/Issue/index.html +24 -24
- package/app/m/projects/Label/index.html +24 -24
- package/app/m/projects/Project/index.html +24 -24
- package/app/m/projects/ProjectIntegration/index.html +24 -24
- package/app/m/projects/PullRequest/index.html +24 -24
- package/app/m/projects/Repository/index.html +24 -24
- package/app/m/properties/Property/index.html +24 -24
- package/app/m/properties/Zone/index.html +24 -24
- package/app/m/reports/RuntimeReport/index.html +24 -24
- package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +24 -24
- package/app/m/reports/SmrtReportLock/index.html +24 -24
- package/app/m/reports/SmrtReportRefreshTask/index.html +24 -24
- package/app/m/reports/SmrtReportRun/index.html +24 -24
- package/app/m/reports/SmrtReportSchedule/index.html +24 -24
- package/app/m/reports/SmrtReportWatermark/index.html +24 -24
- package/app/m/sales/Agreement/index.html +24 -24
- package/app/m/sales/AttributionException/index.html +24 -24
- package/app/m/sales/AttributionPolicy/index.html +24 -24
- package/app/m/sales/Commission/index.html +24 -24
- package/app/m/sales/CommissionAdjustment/index.html +24 -24
- package/app/m/sales/CommissionPayout/index.html +24 -24
- package/app/m/sales/CommissionPlan/index.html +24 -24
- package/app/m/sales/Earner/index.html +24 -24
- package/app/m/sales/EarnerSourceAttribution/index.html +24 -24
- package/app/m/sales/EarningEvent/index.html +24 -24
- package/app/m/sales/ExecutedAgreement/index.html +24 -24
- package/app/m/sales/Lead/index.html +24 -24
- package/app/m/sales/Opportunity/index.html +24 -24
- package/app/m/sales/OpportunityConversion/index.html +24 -24
- package/app/m/sales/PipelineDefinition/index.html +24 -24
- package/app/m/sales/PipelineStage/index.html +24 -24
- package/app/m/sales/Referral/index.html +24 -24
- package/app/m/sales/ReferralAgreement/index.html +24 -24
- package/app/m/sales/ReferralLink/index.html +24 -24
- package/app/m/sales/ReferralProgram/index.html +24 -24
- package/app/m/sales/ReferralTermSnapshot/index.html +24 -24
- package/app/m/sales/ReferralTouch/index.html +24 -24
- package/app/m/sales/Referrer/index.html +24 -24
- package/app/m/sales/ReferrerIdentifier/index.html +24 -24
- package/app/m/sales/SalesActivity/index.html +24 -24
- package/app/m/sales/SalesRepresentative/index.html +24 -24
- package/app/m/sites/DnsZone/index.html +24 -24
- package/app/m/sites/Domain/index.html +24 -24
- package/app/m/sites/ProjectDomain/index.html +24 -24
- package/app/m/sites/Site/index.html +24 -24
- package/app/m/sites/SiteAgentBinding/index.html +24 -24
- package/app/m/social/OAuthState/index.html +24 -24
- package/app/m/social/SocialAccount/index.html +24 -24
- package/app/m/social/SocialPost/index.html +24 -24
- package/app/m/social/SocialPostAnalyticsSnapshot/index.html +24 -24
- package/app/m/subscriptions/BillingAdjustment/index.html +24 -24
- package/app/m/subscriptions/ClientCharge/index.html +24 -24
- package/app/m/subscriptions/CreditGrant/index.html +24 -24
- package/app/m/subscriptions/PricingRule/index.html +24 -24
- package/app/m/subscriptions/RetailCharge/index.html +24 -24
- package/app/m/subscriptions/SpendingPolicy/index.html +24 -24
- package/app/m/subscriptions/SubscriptionPlan/index.html +24 -24
- package/app/m/subscriptions/SubscriptionPlanVersion/index.html +24 -24
- package/app/m/subscriptions/TenantSubscription/index.html +24 -24
- package/app/m/subscriptions/TenantUsageMetric/index.html +24 -24
- package/app/m/support/ServiceTimeEntry/index.html +24 -24
- package/app/m/support/SupportAiRun/index.html +24 -24
- package/app/m/support/SupportAvailability/index.html +24 -24
- package/app/m/support/SupportCase/index.html +24 -24
- package/app/m/support/SupportCaseEvent/index.html +24 -24
- package/app/m/support/SupportChannelBinding/index.html +24 -24
- package/app/m/support/SupportCharge/index.html +24 -24
- package/app/m/support/SupportCompensation/index.html +24 -24
- package/app/m/support/SupportCompensationPlan/index.html +24 -24
- package/app/m/support/SupportEscalation/index.html +24 -24
- package/app/m/support/SupportInteraction/index.html +24 -24
- package/app/m/support/SupportPlan/index.html +24 -24
- package/app/m/support/SupportPolicy/index.html +24 -24
- package/app/m/support/SupportQualification/index.html +24 -24
- package/app/m/support/SupportServiceTarget/index.html +24 -24
- package/app/m/support/SupportSpecialist/index.html +24 -24
- package/app/m/support/SupportWorkLink/index.html +24 -24
- package/app/m/tags/Tag/index.html +24 -24
- package/app/m/tags/TagAlias/index.html +24 -24
- package/app/m/timesheets/AttendanceBreak/index.html +24 -24
- package/app/m/timesheets/AttendancePunch/index.html +24 -24
- package/app/m/timesheets/AttendanceSegment/index.html +24 -24
- package/app/m/timesheets/ServiceChargeSnapshot/index.html +24 -24
- package/app/m/timesheets/ServiceCompensationSnapshot/index.html +24 -24
- package/app/m/timesheets/ServiceTimeEntry/index.html +24 -24
- package/app/m/users/Group/index.html +24 -24
- package/app/m/users/GroupMember/index.html +24 -24
- package/app/m/users/GroupRole/index.html +24 -24
- package/app/m/users/Membership/index.html +24 -24
- package/app/m/users/MembershipOverride/index.html +24 -24
- package/app/m/users/Permission/index.html +24 -24
- package/app/m/users/Role/index.html +24 -24
- package/app/m/users/RolePermission/index.html +24 -24
- package/app/m/users/Session/index.html +24 -24
- package/app/m/users/Tenant/index.html +24 -24
- package/app/m/users/TenantGuestGrant/index.html +24 -24
- package/app/m/users/TenantIntegration/index.html +24 -24
- package/app/m/users/TenantPermissionOverride/index.html +24 -24
- package/app/m/users/User/index.html +24 -24
- package/app/m/video/Character/index.html +24 -24
- package/app/m/video/CharacterAsset/index.html +24 -24
- package/app/m/video/CompositeJob/index.html +24 -24
- package/app/m/video/Performer/index.html +24 -24
- package/app/m/video/PerformerAsset/index.html +24 -24
- package/app/m/video/Scene/index.html +24 -24
- package/app/m/video/SceneAsset/index.html +24 -24
- package/app/m/video/VideoComposition/index.html +24 -24
- package/app/m/video/VideoCompositionAsset/index.html +24 -24
- package/app/m/video/VideoSequence/index.html +24 -24
- package/app/m/video/VideoSequenceAsset/index.html +24 -24
- package/app/m/video/VideoShot/index.html +24 -24
- package/app/m/video/VideoShotAsset/index.html +24 -24
- package/app/m/video/VideoShotCharacter/index.html +24 -24
- package/app/m/video/VideoWorkflow/index.html +24 -24
- package/app/m/voice/VoiceOutput/index.html +24 -24
- package/app/m/voice/VoiceProfile/index.html +24 -24
- package/app/m/voice/VoiceSample/index.html +24 -24
- package/app/mcp.html +35 -35
- package/app/packages/ads/index.html +22 -22
- package/app/packages/analytics/index.html +22 -22
- package/app/packages/app-mcp/index.html +22 -22
- package/app/packages/approvals/index.html +22 -22
- package/app/packages/assets/index.html +22 -22
- package/app/packages/chat/index.html +22 -22
- package/app/packages/comments/index.html +22 -22
- package/app/packages/commerce/index.html +22 -22
- package/app/packages/content/index.html +22 -22
- package/app/packages/events/index.html +22 -22
- package/app/packages/expenses/index.html +22 -22
- package/app/packages/facts/index.html +22 -22
- package/app/packages/fields/index.html +22 -22
- package/app/packages/human-resources/index.html +22 -22
- package/app/packages/images/index.html +22 -22
- package/app/packages/index.html +21 -21
- package/app/packages/inference/index.html +22 -22
- package/app/packages/ingestion/index.html +22 -22
- package/app/packages/inventory/index.html +22 -22
- package/app/packages/ledgers/index.html +22 -22
- package/app/packages/manufacturing/index.html +22 -22
- package/app/packages/marketing/index.html +22 -22
- package/app/packages/messages/index.html +22 -22
- package/app/packages/places/index.html +22 -22
- package/app/packages/preferences/index.html +22 -22
- package/app/packages/products/index.html +22 -22
- package/app/packages/profiles/index.html +22 -22
- package/app/packages/projects/index.html +22 -22
- package/app/packages/properties/index.html +22 -22
- package/app/packages/reactions/index.html +22 -22
- package/app/packages/reports/index.html +22 -22
- package/app/packages/sales/index.html +22 -22
- package/app/packages/sites/index.html +22 -22
- package/app/packages/social/index.html +22 -22
- package/app/packages/subscriptions/index.html +22 -22
- package/app/packages/support/index.html +22 -22
- package/app/packages/tags/index.html +22 -22
- package/app/packages/timesheets/index.html +22 -22
- package/app/packages/users/index.html +22 -22
- package/app/packages/video/index.html +22 -22
- package/app/packages/voice/index.html +22 -22
- package/app/packages/webhooks/index.html +22 -22
- package/app/recipes/account-access/help/index.html +22 -22
- package/app/recipes/account-access/index.html +24 -24
- package/app/recipes/activity/help/index.html +22 -22
- package/app/recipes/activity/index.html +24 -24
- package/app/recipes/ads.campaigns/help/index.html +22 -22
- package/app/recipes/ads.campaigns/index.html +24 -24
- package/app/recipes/affiliates.referrals/help/index.html +22 -22
- package/app/recipes/affiliates.referrals/index.html +24 -24
- package/app/recipes/agreements/help/index.html +22 -22
- package/app/recipes/agreements/index.html +24 -24
- package/app/recipes/analytics.reports/help/index.html +22 -22
- package/app/recipes/analytics.reports/index.html +24 -24
- package/app/recipes/approvals.requests/help/index.html +22 -22
- package/app/recipes/approvals.requests/index.html +24 -24
- package/app/recipes/assets/help/index.html +22 -22
- package/app/recipes/assets/index.html +24 -24
- package/app/recipes/billing/help/index.html +22 -22
- package/app/recipes/billing/index.html +24 -24
- package/app/recipes/chat.assistant/help/index.html +22 -22
- package/app/recipes/chat.assistant/index.html +24 -24
- package/app/recipes/comments/help/index.html +22 -22
- package/app/recipes/comments/index.html +24 -24
- package/app/recipes/commerce.customers/help/index.html +22 -22
- package/app/recipes/commerce.customers/index.html +24 -24
- package/app/recipes/commerce.estimates/help/index.html +22 -22
- package/app/recipes/commerce.estimates/index.html +24 -24
- package/app/recipes/commerce.purchases/help/index.html +22 -22
- package/app/recipes/commerce.purchases/index.html +24 -24
- package/app/recipes/commerce.sales/help/index.html +22 -22
- package/app/recipes/commerce.sales/index.html +24 -24
- package/app/recipes/commerce.vendors/help/index.html +22 -22
- package/app/recipes/commerce.vendors/index.html +24 -24
- package/app/recipes/commerce.wholesale/help/index.html +22 -22
- package/app/recipes/commerce.wholesale/index.html +24 -24
- package/app/recipes/content.articles/help/index.html +22 -22
- package/app/recipes/content.articles/index.html +24 -24
- package/app/recipes/events.calendar/help/index.html +22 -22
- package/app/recipes/events.calendar/index.html +24 -24
- package/app/recipes/expenses.tracking/help/index.html +22 -22
- package/app/recipes/expenses.tracking/index.html +24 -24
- package/app/recipes/fields.form-customization/help/index.html +22 -22
- package/app/recipes/fields.form-customization/index.html +24 -24
- package/app/recipes/human-resources.people/help/index.html +22 -22
- package/app/recipes/human-resources.people/index.html +24 -24
- package/app/recipes/human-resources.qualifications/help/index.html +22 -22
- package/app/recipes/human-resources.qualifications/index.html +24 -24
- package/app/recipes/ingestion/help/index.html +22 -22
- package/app/recipes/ingestion/index.html +24 -24
- package/app/recipes/integrations/help/index.html +22 -22
- package/app/recipes/integrations/index.html +24 -24
- package/app/recipes/inventory.stock/help/index.html +22 -22
- package/app/recipes/inventory.stock/index.html +24 -24
- package/app/recipes/ledgers.bookkeeping/help/index.html +22 -22
- package/app/recipes/ledgers.bookkeeping/index.html +24 -24
- package/app/recipes/manufacturing.assemblies/help/index.html +22 -22
- package/app/recipes/manufacturing.assemblies/index.html +24 -24
- package/app/recipes/manufacturing.production/help/index.html +22 -22
- package/app/recipes/manufacturing.production/index.html +24 -24
- package/app/recipes/marketing.campaigns/help/index.html +22 -22
- package/app/recipes/marketing.campaigns/index.html +24 -24
- package/app/recipes/messages/help/index.html +22 -22
- package/app/recipes/messages/index.html +24 -24
- package/app/recipes/places.locations/help/index.html +22 -22
- package/app/recipes/places.locations/index.html +24 -24
- package/app/recipes/products/help/index.html +22 -22
- package/app/recipes/products/index.html +24 -24
- package/app/recipes/profiles.identity/help/index.html +22 -22
- package/app/recipes/profiles.identity/index.html +24 -24
- package/app/recipes/projects.tracker/help/index.html +22 -22
- package/app/recipes/projects.tracker/index.html +24 -24
- package/app/recipes/reports.materialized/help/index.html +22 -22
- package/app/recipes/reports.materialized/index.html +24 -24
- package/app/recipes/reports.runtime/help/index.html +22 -22
- package/app/recipes/reports.runtime/index.html +24 -24
- package/app/recipes/sales.pipeline/help/index.html +22 -22
- package/app/recipes/sales.pipeline/index.html +24 -24
- package/app/recipes/social.posts/help/index.html +22 -22
- package/app/recipes/social.posts/index.html +24 -24
- package/app/recipes/subscriptions.plans/help/index.html +22 -22
- package/app/recipes/subscriptions.plans/index.html +24 -24
- package/app/recipes/support.tickets/help/index.html +22 -22
- package/app/recipes/support.tickets/index.html +24 -24
- package/app/recipes/tags.taxonomy/help/index.html +22 -22
- package/app/recipes/tags.taxonomy/index.html +24 -24
- package/app/recipes/team-collaboration/help/index.html +22 -22
- package/app/recipes/team-collaboration/index.html +24 -24
- package/app/recipes/timesheets.time-entries/help/index.html +22 -22
- package/app/recipes/timesheets.time-entries/index.html +24 -24
- package/app/recipes/video.library/help/index.html +22 -22
- package/app/recipes/video.library/index.html +24 -24
- package/app/recipes/voice.profiles/help/index.html +22 -22
- package/app/recipes/voice.profiles/index.html +24 -24
- package/app/s/custom-accounts/index.html +20 -20
- package/app/s/custom-appointments/index.html +20 -20
- package/app/s/custom-billing/index.html +20 -20
- package/app/s/custom-bookings/index.html +20 -20
- package/app/s/custom-buying/index.html +20 -20
- package/app/s/custom-checkout/index.html +20 -20
- package/app/s/custom-classes/index.html +20 -20
- package/app/s/custom-clients/index.html +20 -20
- package/app/s/custom-events/index.html +20 -20
- package/app/s/custom-fleet/index.html +20 -20
- package/app/s/custom-gigs/index.html +20 -20
- package/app/s/custom-giving/index.html +20 -20
- package/app/s/custom-instruments/index.html +20 -20
- package/app/s/custom-jobs/index.html +20 -20
- package/app/s/custom-kitchen/index.html +20 -20
- package/app/s/custom-lessons/index.html +20 -20
- package/app/s/custom-material/index.html +20 -20
- package/app/s/custom-meetings/index.html +20 -20
- package/app/s/custom-members/index.html +20 -20
- package/app/s/custom-merch/index.html +20 -20
- package/app/s/custom-money/index.html +20 -20
- package/app/s/custom-paint/index.html +20 -20
- package/app/s/custom-parts/index.html +20 -20
- package/app/s/custom-rentals/index.html +20 -20
- package/app/s/custom-roastery/index.html +20 -20
- package/app/s/custom-schedule/index.html +20 -20
- package/app/s/custom-shelf/index.html +20 -20
- package/app/s/custom-shop/index.html +20 -20
- package/app/s/custom-students/index.html +20 -20
- package/app/s/custom-wholesale/index.html +20 -20
- package/app/s/custom-work/index.html +20 -20
- package/app/s/custom-yard/index.html +20 -20
- package/app/s/section-access-control/index.html +20 -20
- package/app/s/section-account-security/index.html +20 -20
- package/app/s/section-accounting/index.html +20 -20
- package/app/s/section-agreements/index.html +20 -20
- package/app/s/section-analytics/index.html +20 -20
- package/app/s/section-approvals/index.html +20 -20
- package/app/s/section-assets/index.html +20 -20
- package/app/s/section-billing/index.html +20 -20
- package/app/s/section-calendar/index.html +20 -20
- package/app/s/section-catalog/index.html +20 -20
- package/app/s/section-grow/index.html +20 -20
- package/app/s/section-make/index.html +20 -20
- package/app/s/section-messages/index.html +20 -20
- package/app/s/section-more/index.html +20 -20
- package/app/s/section-operations/index.html +20 -20
- package/app/s/section-places/index.html +20 -20
- package/app/s/section-projects/index.html +20 -20
- package/app/s/section-publish/index.html +20 -20
- package/app/s/section-purchasing/index.html +20 -20
- package/app/s/section-reports.runtime/index.html +20 -20
- package/app/s/section-sales/index.html +20 -20
- package/app/s/section-staff/index.html +20 -20
- package/app/s/section-support/index.html +20 -20
- package/app/s/section-taxonomy/index.html +20 -20
- package/app/s/section-team/index.html +20 -20
- package/app/s/section-work/index.html +20 -20
- package/dist/catalog/catalog.json +41 -41
- package/dist/core/index.js +43 -43
- package/dist/smrt-version.d.ts +1 -1
- package/dist/smrt-version.js +1 -1
- package/package.json +57 -57
- package/app/_app/immutable/chunks/B_ig0KAJ.js +0 -1
- package/app/_app/immutable/chunks/DfB06_fa.js +0 -1
- package/app/_app/immutable/chunks/av3xZA8F.js +0 -1
- package/app/_app/immutable/entry/start.p7Dj1O8M.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,r as t,t as n}from"./COiEfhsA.js";import{$ as r,B as i,Ct as a,Dt as o,E as s,Et as c,F as l,Ft as u,G as d,H as f,J as p,K as m,Ot as h,P as g,Pt as _,U as v,W as y,a as b,b as x,bt as S,ct as C,ft as w,g as T,ht as E,kt as D,mt as O,o as k,pt as ee,st as A,tt as te,v as j,vt as M}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{a as ne,t as re}from"./Bq8E3AWP.js";import{Nt as ie}from"./C2yupMVb.js";import{n as ae}from"./denq4QT7.js";import"./D3syEjNq.js";var N=ne({"ui.cookbook.assistant":`Assistant`,"ui.stt_test.heading":`STT Adapter Test`,"ui.stt_test.adapter_browser":`Browser (Web Speech API)`,"ui.stt_test.adapter_whisper_wasm":`Whisper WASM (v2)`,"ui.stt_test.adapter_whisper_cpp":`Whisper CPP`,"ui.stt_test.status_initializing":`Initializing...`,"ui.stt_test.status_ready":`Ready`,"ui.stt_test.status_not_initialized":`Not initialized`,"ui.workspace_shell.close_navigation":`Close navigation`,"ui.workspace_shell.close_inspector":`Close inspector`,"ui.workspace_shell.primary_navigation":`Primary navigation`,"ui.workspace_shell.workspace_navigation":`Workspace navigation`,"ui.workspace_shell.inspector_tools":`Inspector tools`,"ui.tools_dock.no_tools_available":`No tools available`,"ui.tools_dock.no_tools_context":`No tools are available for the current context.`,"ui.tools_dock.select_tool":`Select a tool to begin.`,"ui.tools_dock.workspace_tools":`Workspace tools`,"ui.admin_shell.no_focus_tools":`No focus tools`,"ui.admin_shell.focus_tools":`Focus tools`,"ui.admin_shell.no_app_panel":`No app panel`,"ui.admin_shell.no_system_panel":`No system panel`,"ui.admin_shell.shell_shortcuts":`Shell shortcuts`,"ui.admin_shell.close_shortcuts":`Close shortcuts`,"ui.admin_shell.shortcuts":`Shortcuts`,"ui.admin_shell.close":`Close`,"ui.admin_shell.home":`Home`,"ui.admin_shell.menu":`Menu`,"ui.admin_shell.close_menu":`Close menu`,"ui.admin_shell.tools":`Tools`,"ui.admin_shell.close_tools":`Close tools`,"ui.admin_shell.expand_sidebar":`Expand sidebar`,"ui.admin_shell.collapse_sidebar":`Collapse sidebar`,"ui.admin_shell.close_sidebar":`Close sidebar`,"ui.admin_shell.expand_panel":`Expand {panel}`,"ui.admin_shell.collapse_panel":`Collapse {panel}`,"ui.admin_shell.close_panel":`Close {label}`,"ui.admin_shell.open_panel":`Open {label}`,"ui.admin_shell.resize_panel":`Resize {label}`,"ui.admin_shell.panel":`Panel`,"ui.shell_nav_toggle.collapse":`Collapse {label}`,"ui.shell_nav_toggle.expand":`Expand {label}`,"ui.shell_nav_toggle.navigation":`navigation`,"ui.phone_top_bar.back":`Back to {label}`,"ui.phone_bottom_bar.label":`Main`,"ui.phone_bottom_bar.unread":`{count} unread`,"ui.phone_bottom_bar.new":`new`,"ui.activity_toasts.dismiss":`Dismiss activity notification`,"ui.activity_toasts.dismiss_action":`Dismiss`,"ui.activity_item.view":`View`,"ui.activity_item.cancel":`Cancel`,"ui.activity_item.just_now":`just now`,"ui.activity_item.dismiss_item":`Dismiss {title}`,"ui.activity_item.restore":`Restore`,"ui.activity_item.restore_item":`Restore {title}`,"ui.activity_list.empty":`No activities`,"ui.activity_list.no_activity":`No activity.`,"ui.activity_list.caught_up":`You're all caught up.`,"ui.activity_list.no_matching_activity":`No matching activity.`,"ui.activity_list.filter_all":`All`,"ui.activity_list.filter_by_source":`Filter activity by source`,"ui.activity_list.dismiss_visible":`Dismiss visible`,"ui.activity_list.undo":`Undo`,"ui.activity_list.show_dismissed":`Show dismissed ({count})`,"ui.activity_list.hide_dismissed":`Hide dismissed ({count})`,"ui.activity_ticker.label":`Running processes`,"ui.activity_ticker.empty":`No active processes`,"ui.activity_ticker.pause":`Pause scrolling activities`,"ui.activity_ticker.resume":`Resume scrolling activities`,"ui.activity_ticker.queued":`Queued`,"ui.app_scope_panel.app_scope":`App scope`,"ui.app_shell.settings_link":`Shell settings`,"ui.app_shell.navigation":`Application navigation`,"ui.app_shell.slot_content":`{slot} content`,"ui.shell_slot.header_start":`Header, left`,"ui.shell_slot.header_center":`Header, middle`,"ui.shell_slot.header_end":`Header, right`,"ui.shell_slot.footer_start":`Footer, left`,"ui.shell_slot.footer_center":`Footer, middle`,"ui.shell_slot.footer_end":`Footer, right`,"ui.shell_slot.left_sidebar_header":`Left sidebar, header`,"ui.shell_slot.left_sidebar_footer":`Left sidebar, footer`,"ui.shell_slot.right_sidebar_header":`Right sidebar, header`,"ui.shell_slot.right_sidebar_footer":`Right sidebar, footer`,"ui.shell_slot.short_header_start":`Left`,"ui.shell_slot.short_header_center":`Middle`,"ui.shell_slot.short_header_end":`Right`,"ui.shell_slot.short_footer_start":`Left`,"ui.shell_slot.short_footer_center":`Middle`,"ui.shell_slot.short_footer_end":`Right`,"ui.shell_slot.short_sidebar_header":`Header`,"ui.shell_slot.short_sidebar_footer":`Footer`,"ui.owner_setup.heading":`Set up your local application`,"ui.owner_setup.unavailable":`Local owner setup is unavailable or has already been completed.`,"ui.owner_setup.intro":`Create the real local owner account. This invitation works once and stays on this device.`,"ui.owner_setup.name":`Name`,"ui.owner_setup.email":`Email`,"ui.owner_setup.tenant_name":`Workspace name (optional)`,"ui.owner_setup.submit":`Create owner`,"ui.shell_settings_page.heading":`Settings`,"ui.shell_settings_page.description":`Adjust appearance, your account, and the workspace layout.`,"ui.shell_settings_page.back":`All settings`,"ui.shell_settings_page.menu_label":`Settings sections`,"ui.shell_settings_page.appearance_description":`Theme and light or dark color scheme.`,"ui.shell_settings_page.account_description":`Who you are signed in as, and sign out.`,"ui.shell_settings_page.layout_description":`Show or hide workspace areas and reset the layout.`,"ui.shell_settings_page.shortcuts_description":`Keyboard shortcuts for the workspace areas.`,"ui.hotkey_input.capture_title":`Press a key to capture it`,"ui.hotkey_input.conflicts_with":`Conflicts with`,"ui.shell_settings_panel.shell_settings":`Shell settings`,"ui.shell_settings_panel.description":`Show or hide the workspace areas and reset the layout.`,"ui.shell_settings_panel.disable_hotkeys":`Disable hotkeys`,"ui.shell_settings_panel.enable_hotkeys":`Enable hotkeys`,"ui.shell_settings_panel.collapse":`Collapse`,"ui.shell_settings_panel.expand":`Expand`,"ui.owner_setup.link_missing_heading":`This setup link is missing or has expired`,"ui.owner_setup.link_missing_body":`Setup links work once and only for a short time. Run these commands from the app folder. Recovery requires stopping the app first.`,"ui.owner_setup.desktop_reopen":`Reopen the desktop app to sign in with a fresh link.`,"ui.owner_setup.recovery_open":`Open a fresh setup link`,"ui.owner_setup.recovery_recover":`Recover the setup invitation`,"ui.shell_settings.appearance":`Appearance`,"ui.shell_settings.theme":`Theme`,"ui.shell_settings.color_scheme":`Color scheme`,"ui.shell_settings.account":`Account`,"ui.shell_settings.account_name":`Name`,"ui.shell_settings.account_email":`Email`,"ui.shell_settings.account_signed_out":`You are not signed in.`,"ui.shell_settings.sign_out":`Sign out`,"ui.shell_settings.sign_out_failed":`Couldn't sign out. Try again.`,"ui.shell_settings.layout":`Layout`,"ui.shell_settings.hide":`Hide`,"ui.shell_settings.show":`Show`,"ui.shell_settings.edit_layout_on":`Editing layout`,"ui.shell_settings.edit_layout_off":`Edit layout`,"ui.shell_settings.reset_layout":`Reset layout`,"ui.shell_settings.panels":`Shown areas`,"ui.shell_settings.show_region":`Show {region}`,"ui.shell_settings.hide_region":`Hide {region}`,"ui.shell_settings.region_shown":`Shown`,"ui.shell_settings.region_hidden":`Hidden`,"ui.shell_settings.shortcuts":`Keyboard shortcuts`,"ui.shell_layout_editor.heading":`Shell layout`,"ui.shell_layout_editor.description":`Choose which panels appear and arrange the navigation. Drag a handle, or focus it, press Space, and use the arrow keys.`,"ui.shell_layout_editor.reset":`Reset to defaults`,"ui.shell_layout_editor.panels":`Panels`,"ui.shell_layout_editor.show_panel":`Show {panel} panel`,"ui.shell_layout_editor.start_expanded":`Start {panel} panel expanded`,"ui.shell_layout_editor.panel_unavailable":`The {panel} panel is not available in this app.`,"ui.shell_layout_editor.navigation":`Navigation`,"ui.shell_layout_editor.top_level":`Top level`,"ui.shell_layout_editor.show_entry":`Show {label} in navigation`,"ui.shell_layout_editor.new_section":`New section`,"ui.shell_layout_editor.new_section_label":`New section`,"ui.shell_layout_editor.section_name":`Name of section {label}`,"ui.shell_layout_editor.rename_item":`Rename {label}`,"ui.shell_layout_editor.item_name":`Name of item {label}`,"ui.shell_layout_editor.reset_item":`Reset {label} to {original}`,"ui.shell_layout_editor.section_icon":`Icon of {label}`,"ui.shell_layout_editor.icon_option":`Use {icon} icon`,"ui.section_menu.label":`{label} entries`,"ui.section_menu.empty":`No entries in this section.`,"ui.shell_layout_editor.show_title_for":`Show title of {label}`,"ui.shell_layout_editor.delete":`Delete`,"ui.shell_layout_editor.delete_section":`Delete section {label}`,"ui.shell_layout_editor.delete_confirm":`Delete {label}? Its items return to their default sections.`,"ui.shell_layout_editor.preview":`Preview`,"ui.shell_layout_editor.preview_label":`Navigation preview`,"ui.shell_layout_editor.sortable_label":`Navigation sections and items`,"ui.layout_edit.toggle":`Edit layout`,"ui.layout_edit.announce_on":`Layout editing on. Drag items between zones, or focus a grip, press Space, and use the arrow keys.`,"ui.layout_edit.announce_off":`Layout editing off.`,"ui.layout_edit.zone":`{region} · {slot}`,"ui.layout_edit.region_hidden":`{region} · hidden`,"ui.layout_edit.show_region":`Show {region}`,"ui.layout_edit.hide_region":`Hide {region}`,"ui.layout_edit.hide_last_region":`Cannot hide {region}: at least one region must stay visible`,"ui.app_shell.brand_item":`App title`,"ui.layout_edit.section_options":`Options for section {label}`,"ui.layout_edit.edit_section":`Edit section {label}`,"ui.shell_region.header":`Header`,"ui.shell_region.left_sidebar":`Left sidebar`,"ui.shell_region.right_sidebar":`Right sidebar`,"ui.shell_region.footer":`Footer`,"ui.shortcuts_overlay.open_shortcuts":`Open shortcuts`,"ui.shortcuts_overlay.close_drawer":`Close drawer`,"ui.shortcuts_overlay.close":`Close`,"ui.shortcuts_overlay.escape":`Esc`,"ui.system_scope_panel.system_scope":`System scope`,"ui.system_scope_panel.activities":`Activities`,"ui.system_scope_panel.no_running_work":`No running work`,"ui.system_status_chips.system_status":`System status`,"ui.tenant_nav.tenant_navigation":`Tenant navigation`,"ui.tenant_nav.needs_attention":`Needs attention`,"ui.workspace_account_menu.open":`Open account menu`,"ui.workspace_account_menu.current_tenant":`{tenant} — current`,"ui.workspace_account_menu.sign_out":`Sign out`,"ui.workspace_account_menu.pending":`{count} waiting`,"ui.activity_feed.title":`Live activity feed`,"ui.activity_feed.description":`A smrt-web live collection reconciled into the shell activity registry.`,"ui.activity_feed.enqueue_job":`Enqueue job`,"ui.activity_feed.advance_job":`Advance job`,"ui.activity_feed.complete_job":`Complete job`,"ui.activity_feed.fail_job":`Fail job`,"ui.activity_feed.clear_finished":`Clear finished`,"ui.activity_feed.rows_heading":`Backing collection rows`,"ui.activity_feed.no_rows":`No rows yet`,"ui.activity_feed.job_label":`Render job`,"ui.system_feed.title":`System feed`,"ui.system_feed.description":`Polls an app-provided status endpoint and maps it into the system-scope panels and status chips.`,"ui.system_feed.pause":`Pause polling`,"ui.system_feed.resume":`Resume polling`,"ui.system_feed.refresh":`Refresh now`,"ui.system_feed.fail_next":`Fail next fetch`,"ui.system_feed.status_label":`Feed status`,"ui.system_feed.tick_label":`Ticks`,"ui.system_feed.error_label":`Last error`,"ui.system_feed.jobs_panel":`Jobs`,"ui.system_feed.schedules_panel":`Schedules`,"ui.system_feed.dispatch_panel":`Dispatch`,"ui.system_feed.chip_workers":`Workers`,"ui.system_feed.chip_running":`Running`,"ui.system_feed.chip_queued":`Queued`,"ui.system_feed.chip_failed":`Failed`,"ui.phone_tab_bar.label":`Main`,"ui.phone_tab_bar.more":`More`,"ui.app_shell.account_item":`Account menu`,"ui.app_shell.color_scheme_item":`Color scheme`,"ui.app_shell.color_scheme_dark":`Dark mode`,"ui.app_shell.color_scheme_to_dark":`Switch to dark mode`,"ui.app_shell.color_scheme_to_light":`Switch to light mode`,"ui.app_shell.command_palette_item":`Search`,"ui.app_shell.account_settings":`Settings`,"ui.app_shell.theme_item":`Theme: {mode}`,"ui.app_shell.theme_light":`Light`,"ui.app_shell.theme_dark":`Dark`,"ui.app_shell.panel_toggle":`Panel`,"ui.dock_toggles.set_up":`Set up {label}`});function oe(e){for(let t of e){let e=t.codePointAt(0)??0;if(e<=31||e===127)return!0}return!1}function se(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`//`)||t.includes(`\\`)||oe(t)))try{let e=new URL(t,`https://smrt.invalid`);return[`https:`,`http:`].includes(e.protocol)?t:void 0}catch{return}}var ce=/^\d{4}-\d{2}-\d{2}$/,le=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:?\d{2})$/i,ue=864e13;function de(e){return typeof e==`number`&&Number.isFinite(e)&&Math.abs(e)<=ue}function fe(e){let t=e?.trim();if(!t)return`UTC`;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:t}),t}catch{return`UTC`}}function pe(e){try{return new Intl.RelativeTimeFormat(e,{numeric:`auto`,style:`short`})}catch{return new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`,style:`short`})}}function P(e,t,n,r){try{return new Intl.DateTimeFormat(t,n).format(e)}catch{try{return new Intl.DateTimeFormat(`en-US`,n).format(e)}catch{return r}}}function me(e,t,n,r,i){let a=i?t:e.toISOString(),o=P(e,n,i?{dateStyle:`long`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},a);return o===a?a:`${o} (${a})`}function he(e,t,n,r,i){return P(e,n,i?{dateStyle:`medium`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},i?t:e.toISOString())}function ge(e,t,n){return Date.UTC(e,t-1,n)}function _e(e,t){let n=new Intl.DateTimeFormat(`en-CA`,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`}).formatToParts(new Date(e));return ge(Number(n.find(e=>e.type===`year`)?.value),Number(n.find(e=>e.type===`month`)?.value),Number(n.find(e=>e.type===`day`)?.value))}function ve(e,t={}){if(typeof e!=`string`)return null;let n=e.trim();if(!n)return null;let r=ce.test(n),i=!r&&le.test(n);if(!r&&!i)return{title:n,label:n};let a=r?`${n}T00:00:00.000Z`:n.replace(` `,`T`).replace(/([+-]\d{2})(\d{2})$/,`$1:$2`),o=new Date(a),s=o.getTime();if(!Number.isFinite(s)||r&&o.toISOString().slice(0,10)!==n)return{title:n,label:n};let c=t.locale?.trim()||`en-US`,l=fe(t.timeZone),u=t.justNowLabel||`just now`,d=de(t.now),f;if(!d)f=he(o,n,c,l,r);else if(r){let[e,r,i]=n.split(`-`),a=ge(Number(e),Number(r),Number(i)),o=_e(t.now,l),s=Math.round((a-o)/864e5),u=Math.abs(s),d=s<0?-1:1,p=pe(c);f=u===0?p.format(0,`day`):u<7?p.format(s,`day`):u<30?p.format(d*Math.max(1,Math.round(u/7)),`week`):u<365?p.format(d*Math.max(1,Math.round(u/30)),`month`):p.format(d*Math.max(1,Math.round(u/365)),`year`)}else{let e=Math.round((s-t.now)/1e3),n=Math.abs(e);if(n<45)f=u;else{let t=pe(c),r=e<0?-1:1,i=Math.round(n/60),a=Math.round(n/3600),o=Math.round(n/86400);f=n<3600?t.format(r*Math.max(1,i),`minute`):n<86400?t.format(r*Math.max(1,a),`hour`):o<7?t.format(r*Math.max(1,o),`day`):o<30?t.format(r*Math.max(1,Math.round(o/7)),`week`):o<365?t.format(r*Math.max(1,Math.round(o/30)),`month`):t.format(r*Math.max(1,Math.round(o/365)),`year`)}}return{datetime:r?n:o.toISOString(),title:me(o,n,c,l,r),label:f}}var ye=d(`<span class="smrt-activity-item__source svelte-1feuf58" data-smrt-part="source"> </span>`),be=d(`<a class="smrt-activity-item__context smrt-activity-item__context--link svelte-1feuf58" data-smrt-part="context"> </a>`),xe=d(`<span class="smrt-activity-item__context svelte-1feuf58" data-smrt-part="context"> </span>`),Se=d(`<span class="smrt-activity-item__job-status svelte-1feuf58" data-smrt-part="status"> </span>`),Ce=d(`<span class="smrt-activity-item__meta-text svelte-1feuf58" data-smrt-part="meta"> </span>`),we=d(`<time class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </time>`),Te=d(`<span class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </span>`),Ee=d(`<div class="smrt-activity-item__eyebrow svelte-1feuf58" data-smrt-part="eyebrow"><div class="smrt-activity-item__eyebrow-items svelte-1feuf58"><!> <!> <!> <!> <!></div> <!></div>`),De=d(`<code class="smrt-activity-item__code svelte-1feuf58" data-smrt-part="code"> </code>`),Oe=d(`<p class="smrt-activity-item__detail svelte-1feuf58" data-smrt-part="detail"> </p>`),ke=d(`<progress max="100" class="svelte-1feuf58"> </progress>`),Ae=d(`<span aria-hidden="true">✕</span>`),je=d(`<div class="smrt-activity-item__actions svelte-1feuf58" data-smrt-part="actions"><!> <!> <!></div>`),Me=d(`<article data-smrt-component="ActivityItem"><div class="smrt-activity-item__main svelte-1feuf58" data-smrt-part="body"><!> <div class="smrt-activity-item__heading svelte-1feuf58" data-smrt-part="heading"><!> <strong class="smrt-activity-item__title svelte-1feuf58" data-smrt-part="title"> </strong></div> <!> <!></div> <!></article>`);function Ne(e,t){h(t,!0);let n=new Set([`neutral`,`primary`,`success`,`warning`,`error`]),{locale:c,t:l}=re(),d=a(()=>t.locale?.trim()||c),m=a(()=>!!t.entry?.dismissed),g=a(()=>t.entry?t.entry.title:t.activity?.label??``),b=a(()=>t.entry?t.entry.detail:t.activity?.message),S=a(()=>t.entry?.code?.trim()||void 0),C=a(()=>t.entry?.sourceLabel?.trim()||t.entry?.source?.trim()||void 0),T=a(()=>t.entry?.context?.label?.trim()||void 0),D=a(()=>r(T)?se(t.entry?.context?.href):void 0),k=a(()=>{let e=t.entry?.status?.label?.trim();if(!e)return null;let r=t.entry?.status?.tone;return{label:e,tone:r&&n.has(r)?r:`neutral`}}),te=a(()=>t.entry?.meta?.trim()||void 0),M=a(()=>t.entry?void 0:t.activity?.status),ne=a(()=>t.entry?t.entry.occurredAt:t.activity?.updatedAt??t.activity?.createdAt),oe=a(()=>ve(r(ne),{locale:r(d),timeZone:t.timeZone,justNowLabel:l(N[`ui.activity_item.just_now`]),now:t.now})),ce=a(()=>!!(r(C)||r(T)||r(k)||r(te)||r(M)||r(oe))),le=a(()=>se(t.entry?t.entry.href:t.activity?.detailHref)),ue=a(()=>!(t.entry||!t.activity?.cancel||t.activity.status!==`queued`&&t.activity.status!==`running`)),de=a(()=>!!(t.entry&&r(m)&&t.onRestore)),fe=a(()=>!!(t.entry&&!r(m)&&t.onDismiss)),pe=a(()=>!!(r(le)||r(ue)||r(de)||r(fe)));var P=Me();let me;var he=w(P),ge=w(he),_e=e=>{var t=Ee(),n=w(t),a=w(n),o=e=>{var t=ye(),n=O(t,!0);A(()=>f(n,r(C))),v(e,t)};i(a,e=>{r(C)&&e(o)});var s=E(a,2),c=e=>{var t=y(),n=ee(t),a=e=>{var t=be(),n=O(t,!0);A(()=>{j(t,`href`,r(D)),f(n,r(T))}),v(e,t)},o=e=>{var t=xe(),n=O(t,!0);A(()=>f(n,r(T))),v(e,t)};i(n,e=>{r(D)?e(a):e(o,-1)}),v(e,t)};i(s,e=>{r(T)&&e(c)});var l=E(s,2),d=e=>{ie(e,{size:`sm`,get variant(){return r(k).tone},children:(e,t)=>{_();var n=p();A(()=>f(n,r(k).label)),v(e,n)},$$slots:{default:!0}})};i(l,e=>{r(k)&&e(d)});var m=E(l,2),h=e=>{var t=Se(),n=O(t,!0);A(()=>f(n,r(M))),v(e,t)};i(m,e=>{r(M)&&e(h)});var g=E(m,2),b=e=>{var t=Ce(),n=O(t,!0);A(()=>f(n,r(te))),v(e,t)};i(g,e=>{r(te)&&e(b)}),u(n);var x=E(n,2),S=e=>{var t=y(),n=ee(t),a=e=>{var t=we(),n=O(t,!0);A(()=>{j(t,`datetime`,r(oe).datetime),j(t,`title`,r(oe).title),f(n,r(oe).label)}),v(e,t)},o=e=>{var t=Te(),n=O(t,!0);A(()=>f(n,r(oe).label)),v(e,t)};i(n,e=>{r(oe).datetime?e(a):e(o,-1)}),v(e,t)};i(x,e=>{r(oe)&&e(S)}),u(t),v(e,t)};i(ge,e=>{r(ce)&&e(_e)});var Ne=E(ge,2),Pe=w(Ne),Fe=e=>{var t=De(),n=O(t,!0);A(()=>f(n,r(S))),v(e,t)};i(Pe,e=>{r(S)&&e(Fe)});var Ie=E(Pe,2),Le=O(Ie,!0);u(Ne);var Re=E(Ne,2),ze=e=>{var t=Oe(),n=O(t,!0);A(()=>f(n,r(b))),v(e,t)};i(Re,e=>{r(b)&&e(ze)});var Be=E(Re,2),Ve=e=>{var n=ke(),r=O(n);A(e=>{x(n,t.activity.progress),f(r,`${e??``}%`)},[()=>Math.round(t.activity.progress)]),v(e,n)};i(Be,e=>{!t.entry&&typeof t.activity?.progress==`number`&&e(Ve)}),u(he);var He=E(he,2),Ue=e=>{var n=je(),o=w(n),s=e=>{ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get href(){return r(le)},children:(e,t)=>{_();var n=p();A(e=>f(n,e),[()=>l(N[`ui.activity_item.view`])]),v(e,n)},$$slots:{default:!0}})};i(o,e=>{r(le)&&e(s)});var c=E(o,2),d=e=>{{let n=a(()=>l(N[`ui.activity_item.restore_item`],{title:t.entry.title}));ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get"aria-label"(){return r(n)},onclick:()=>void t.onRestore?.(t.entry.id),children:(e,t)=>{_();var n=p();A(e=>f(n,e),[()=>l(N[`ui.activity_item.restore`])]),v(e,n)},$$slots:{default:!0}})}},m=e=>{{let n=a(()=>l(N[`ui.activity_item.dismiss_item`],{title:t.entry.title})),i=a(()=>l(N[`ui.activity_item.dismiss_item`],{title:t.entry.title}));ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,class:`smrt-activity-item__dismiss`,get"aria-label"(){return r(n)},get title(){return r(i)},onclick:()=>void t.onDismiss?.(t.entry.id),children:(e,t)=>{var n=Ae();v(e,n)},$$slots:{default:!0}})}};i(c,e=>{r(de)&&t.entry?e(d):r(fe)&&t.entry&&e(m,1)});var h=E(c,2),g=e=>{ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,onclick:()=>t.activity.cancel?.(),children:(e,t)=>{_();var n=p();A(e=>f(n,e),[()=>l(N[`ui.activity_item.cancel`])]),v(e,n)},$$slots:{default:!0}})};i(h,e=>{r(ue)&&t.activity&&e(g)}),u(n),v(e,n)};i(He,e=>{r(pe)&&e(Ue)}),u(P),A(()=>{me=s(P,1,`smrt-activity-item svelte-1feuf58`,null,me,{"smrt-activity-item--dismissed":r(m)}),j(P,`data-status`,t.entry?r(k)?.tone:t.activity?.status),j(P,`data-dismissed`,r(m)?`true`:void 0),f(Le,r(g))}),v(e,P),o()}var Pe={edit:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z`,undo:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z`,done:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z`,eye:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z`,eyeOff:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z`,heading:`M5 4v3h5.5v12h3V7H19V4z`,headingOff:`M5 4v3h5.5v12h3V7H19V4zM3.5 2.5L2.1 3.9l18 18 1.4-1.4z`,trash:`M7 3h10v2h4v2H3V5h4V3zm-2 6h14v12H5V9zm4 2v8h2v-8H9zm4 0v8h2v-8h-2z`,add:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,more:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`,settings:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z`,calendar:`M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z`,users:`M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z`,shoppingBag:`M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-8 4c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2zm2-6c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm4 6c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2z`,receipt:`M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z`,book:`M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z`,briefcase:`M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z`,truck:`M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z`,package:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm5-7H4V4h16v3z`,wrench:`M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z`,fileText:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z`,layers:`M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z`,folder:`M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z`,bank:`M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z`,creditCard:`M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z`,school:`M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z`,home:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,repeat:`M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z`,tag:`M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z`,archive:`M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z`,placeholder:`M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10z`,chevronRight:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`,menu:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,chat:`M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z`,lightMode:`M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z`,darkMode:`M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z`,mic:`M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.91-3c-.49 0-.9.36-.98.85C16.52 14.2 14.47 16 12 16s-4.52-1.8-4.93-4.15c-.08-.49-.49-.85-.98-.85-.61 0-1.09.54-1 1.14.49 3 2.89 5.35 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08c3.02-.43 5.42-2.78 5.91-5.78.1-.6-.39-1.14-1-1.14z`,micOff:`M15 10.6V5c0-1.66-1.34-3-3-3-1.54 0-2.79 1.16-2.96 2.65L15 10.6zm3.08 1.96c.26-.5.43-1.05.43-1.56 0-.55-.45-1-1-1s-1 .45-1 1c0 .17-.03.34-.08.5l1.65 1.06zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73 4.27 3z`,close:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z`},Fe=`wrench`,Ie=`folder`,Le=`placeholder`,Re=[`folder`,`home`,`calendar`,`users`,`school`,`shoppingBag`,`truck`,`package`,`receipt`,`creditCard`,`bank`,`book`,`fileText`,`briefcase`,`wrench`,`layers`,`repeat`,`tag`,`archive`,`settings`];function ze(e){return Object.hasOwn(Pe,e)}function Be(e){let t=e-1;return t*t*t+1}function Ve(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Be}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=He(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function He(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Ue=`(prefers-reduced-motion: reduce)`,We=`--smrt-duration-short4`;function Ge(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(Ue).matches}function Ke(e){let t=/^(-?\d*\.?\d+)(ms|s)$/.exec(e.trim());if(!t)return 0;let n=Number(t[1])*(t[2]===`s`?1e3:1);return Number.isFinite(n)&&n>0?n:0}function qe(e,t){if(Ge()||typeof document>`u`||typeof getComputedStyle!=`function`)return 0;let n=t??document.documentElement;return Ke(getComputedStyle(n).getPropertyValue(e))}function Je(e,t,n={}){return Ve(e,t,{duration:qe(n.token??We,e)})}var Ye=Symbol(`smrt-shell-layout`);function Xe(e){return D(Ye,e),e}function Ze(){let e=c(Ye);if(!e)throw Error(`[useShellLayout] No AppShell layout found on context.`);return e}function Qe(){return c(Ye)??null}var $e=m(`<svg viewBox="0 0 24 24" fill="currentColor" focusable="false"><path></path></svg>`),et=d(`<span class="smrt-shell-section-icon svelte-9hljle" aria-hidden="true" data-smrt-component="ShellSectionIcon"><!></span>`);function tt(e,t){h(t,!0);let n=b(t,`size`,3,18),s=a(()=>!ze(t.name)&&!t.iconComponent);C(()=>{r(s)});var c=et(),l=w(c),d=e=>{var r=$e(),i=O(r);A(()=>{j(r,`width`,n()),j(r,`height`,n()),j(i,`d`,Pe[t.name])}),v(e,r)},f=a(()=>ze(t.name)),p=e=>{var r=y(),i=ee(r);g(i,()=>t.iconComponent,(e,r)=>{r(e,{get name(){return t.name},get size(){return n()}})}),v(e,r)},m=e=>{var t=$e(),r=O(t);A(()=>{j(t,`width`,n()),j(t,`height`,n()),j(r,`d`,Pe[Ie])}),v(e,t)};i(l,e=>{r(f)?e(d):t.iconComponent?e(p,1):e(m,-1)}),u(c),v(e,c),o()}var nt=new Set([`$$slots`,`$$events`,`$$legacy`,`label`,`icon`,`children`,`pressed`,`tooltip`,`size`,`type`,`class`]),rt=m(`<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path></path></svg>`),it=d(`<button><!></button>`);function at(e,t){h(t,!0);let n=b(t,`size`,3,18),r=b(t,`type`,3,`button`),a=b(t,`class`,3,``),s=k(t,nt);var c=it();T(c,()=>({...s,type:r(),class:`smrt-shell-icon-button ${a()??``}`,"aria-label":t.label,title:t.tooltip??t.label,"aria-pressed":t.pressed,"data-smrt-component":`ShellIconButton`}),void 0,void 0,void 0,`svelte-1mggjot`);var d=w(c),f=e=>{var n=y(),r=ee(n);l(r,()=>t.children),v(e,n)},p=e=>{var r=rt(),i=O(r);A(()=>{j(r,`width`,n()),j(r,`height`,n()),j(i,`d`,Pe[t.icon])}),v(e,r)};i(d,e=>{t.children?e(f):t.icon&&e(p,1)}),u(c),v(e,c),o()}function ot(e,t){return Math.max(0,Math.min(e,t))}var st=class{options;#e=S();get drag(){return r(this.#e)}set drag(e){M(this.#e,e,!0)}#t=S(``);get announcement(){return r(this.#t)}set announcement(e){M(this.#t,e,!0)}#n=S();get focusItemId(){return r(this.#n)}set focusItemId(e){M(this.#n,e,!0)}#r=S();get suppressedSelectionId(){return r(this.#r)}set suppressedSelectionId(e){M(this.#r,e,!0)}#i=S(!1);get pending(){return r(this.#i)}set pending(e){M(this.#i,e,!0)}#a=S();get pointerSession(){return r(this.#a)}set pointerSession(e){M(this.#a,e,!0)}constructor(e){this.options=e,C(()=>{if(!this.focusItemId)return;let e=this.focusItemId;this.focusItemId=void 0,te().then(()=>{let t=this.options.root(),n=t?Array.from(t.querySelectorAll(this.options.selectors.item)).find(t=>t.dataset[this.options.selectors.itemKey]===e):void 0;(n?this.options.focusTarget?this.options.focusTarget(n):n:void 0)?.focus()})})}get movable(){return this.options.enabled()&&!this.pending}get nativeDraggable(){return this.movable&&this.pointerSession===void 0}get containers(){return this.options.containers()}itemsIn(e,t){let n=this.options.itemIds(e);return t?n.filter(e=>e!==t):n}findContainer(e){return this.containers.find(t=>t.id===e)}positionFor(e){if(this.options.itemLabel(e)!==void 0)for(let t of this.containers){let n=this.itemsIn(t.id).indexOf(e);if(n>=0)return{containerId:t.id,index:n}}}label(e){return this.options.itemLabel(e)??``}say(e){this.announcement=this.options.announce(e)}pickup(e,t){if(!this.movable)return;let n=this.positionFor(e);n&&(this.drag={itemId:e,source:n,target:{...n},mode:t},this.say({type:`pickup`,item:this.label(e),destinations:this.containers.filter(e=>!e.disabled).map(e=>e.label)}))}announcePosition(e){let t=this.findContainer(e.target.containerId);t&&this.options.itemLabel(e.itemId)!==void 0&&this.say({type:`position`,item:this.label(e.itemId),container:t.label,position:e.target.index+1,count:this.itemsIn(t.id,e.itemId).length+1})}moveKeyboardTarget(e,t){let n=this.drag;if(n?.mode!==`keyboard`)return;let r=this.options.orientation?.()===`vertical`,i={...n.target};if(this.options.flow?.()){let r=e===`horizontal`&&this.isRtl(),a=this.itemsIn(i.containerId,n.itemId).length;i.index=ot(i.index+(r?-t:t),a),this.drag={...n,target:i},this.announcePosition(this.drag);return}let a=!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId;if(e===`vertical`){if(a&&!r)return;let e=this.itemsIn(i.containerId,n.itemId).length,o=a?t<0?-1:e+1:i.index+t;if(r&&(o<0||o>e)){let e=this.containers.findIndex(e=>e.id===i.containerId),r=this.containers[e+t];if(!r)return;if(r.disabled){this.say({type:`unavailable`,container:r.label});return}i.containerId=r.id,i.index=t<0?this.itemsIn(r.id,n.itemId).length:0}else i.index=ot(o,e)}else{if(r)return;let e=this.containers.findIndex(e=>e.id===i.containerId),a=this.containers[e+t];if(!a)return;if(a.disabled){this.say({type:`unavailable`,container:a.label});return}i.containerId=a.id,i.index=ot(i.index,this.itemsIn(a.id,n.itemId).length)}!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId&&(i.index=n.source.index),this.drag={...n,target:i},this.announcePosition(this.drag)}isRtl(){let e=this.options.root();return e!==void 0&&typeof getComputedStyle==`function`&&getComputedStyle(e).direction===`rtl`}async drop(){let e=this.drag;if(!e)return;let t=this.options.itemLabel(e.itemId),n=this.findContainer(e.target.containerId),r=t!==void 0&&this.findContainer(e.source.containerId)!==void 0&&n!==void 0&&!n.disabled;if(this.drag=void 0,this.suppressSelection(e.itemId),r&&t!==void 0&&n){if(e.source.containerId===e.target.containerId&&e.source.index===e.target.index)this.focusItemId=e.itemId;else{this.pending=!0;try{await this.options.commit({itemId:e.itemId,source:e.source,target:e.target})}catch{this.say({type:`failed`,item:t}),this.focusItemId=e.itemId;return}finally{this.pending=!1}this.say({type:`drop`,item:t,container:n.label,position:e.target.index+1,count:this.itemsIn(n.id,e.itemId).length+1}),this.focusItemId=e.itemId}}}cancel(e=!0,t=!0){let n=this.drag;if(!n)return;let r=this.options.itemLabel(n.itemId);r!==void 0&&e&&this.say({type:`cancel`,item:r}),r!==void 0&&t&&(this.focusItemId=n.itemId),this.suppressSelection(n.itemId),this.drag=void 0}suppressSelection(e){this.suppressedSelectionId=e,window.setTimeout(()=>{this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0)},0)}consumeClick(e){return this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0,!0)}keydown(e,t){let n=this.drag;if(n)n.itemId===t&&n.mode===`keyboard`&&(e.key===`Escape`?(e.preventDefault(),this.cancel()):e.key===` `||e.key===`Enter`?(e.preventDefault(),this.drop()):e.key===`ArrowLeft`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,-1)):e.key===`ArrowRight`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,1)):e.key===`ArrowUp`?(e.preventDefault(),this.moveKeyboardTarget(`vertical`,-1)):e.key===`ArrowDown`&&(e.preventDefault(),this.moveKeyboardTarget(`vertical`,1)));else if(e.key===` `||e.key===`Enter`){if(!this.movable)return;e.preventDefault(),this.pickup(t,`keyboard`)}}blur(e,t){let n=this.drag;if(n?.mode!==`keyboard`||n.itemId!==t)return;let r=e.relatedTarget,i=e.currentTarget;r instanceof Node&&i instanceof Node&&i.contains(r)||this.cancel(!0,!1)}dragStart(e,t){this.movable?(this.pickup(t,`pointer`),e.dataTransfer?.setData(`text/plain`,t),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)):e.preventDefault()}dragEnd(){this.drag?.mode===`pointer`&&this.cancel()}pointerDown(e,t){this.movable&&e.button===0&&(this.pointerSession={itemId:t,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,active:!1},e.currentTarget.setPointerCapture?.(e.pointerId))}elementAtPointer(e){return document.elementFromPoint?.(e.clientX,e.clientY)??e.target}setPointerTargetFromElement(e,t,n){let r=this.options.root();if(!e||!r?.contains(e))return;let{selectors:i}=this.options,a=e.closest(i.container)?.dataset[i.containerKey];if(!a)return;let o=this.findContainer(a);if(!o||o.disabled)return o;let s=e.closest(i.item);if(!s)return this.pointerTarget(a,this.itemsIn(a,this.drag?.itemId).length),o;let c=this.itemsIn(a).indexOf(s.dataset[i.itemKey]??``);return c<0||this.pointerTarget(a,this.insertionIndex(a,c,s,t,n)),o}insertionIndex(e,t,n,r,i){let a=n.getBoundingClientRect(),o=r<a.top+a.height/2;if(this.options.flow?.()&&i!==void 0){let e=this.options.root()?.getBoundingClientRect().width??0;if(a.width<e*.95){let e=a.left+a.width/2;o=this.isRtl()?i>e:i<e}}let s=t+ +!o,c=this.drag;return c?.source.containerId===e&&s>c.source.index&&--s,s}finishPointerSession(e,t=!1){let n=this.pointerSession;this.pointerSession=void 0;let r=e.currentTarget;if(r.hasPointerCapture?.(e.pointerId)&&r.releasePointerCapture(e.pointerId),!n?.active||this.drag?.itemId!==n.itemId)return;if(t){this.cancel();return}let i=this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX);i?.disabled?(this.say({type:`unavailable`,container:i.label}),this.cancel(!1)):i?this.drop():this.cancel()}pointerUp(e){this.finishPointerSession(e)}pointerCancel(e){this.finishPointerSession(e,!0)}pointerMove(e){let t=this.pointerSession;if(t&&t.pointerId===e.pointerId){if(!t.active){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<6)return;this.pickup(t.itemId,`pointer`),this.pointerSession={...t,active:!0}}e.preventDefault(),this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX)}}pointerTarget(e,t){let n=this.drag;if(n?.mode!==`pointer`)return;if(!this.options.allowSameContainerReorder()&&e===n.source.containerId){this.drag={...n,target:{...n.source}};return}let r=this.itemsIn(e,n.itemId).length;this.drag={...n,target:{containerId:e,index:ot(t,r)}}}dropOnItem(e,t,n){if(e.preventDefault(),this.drag?.mode!==`pointer`)return;let r=this.findContainer(t);r?.disabled?(this.say({type:`unavailable`,container:r.label}),this.cancel(!1)):(this.pointerTarget(t,this.insertionIndex(t,n,e.currentTarget,e.clientY,e.clientX)),this.drop())}dropOnContainer(e,t){e.preventDefault();let n=this.findContainer(t);n?.disabled?(this.say({type:`unavailable`,container:n.label}),this.cancel(!1)):(this.pointerTarget(t,this.itemsIn(t,this.drag?.itemId).length),this.drop())}};function ct(e){return new st(e)}var lt=BigInt(2**32-1),ut=BigInt(32);function dt(e,t=!1){return t?{h:Number(e<),l:Number(e>>ut<)}:{h:Number(e>>ut<)|0,l:Number(e<)|0}}function ft(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=dt(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}new Uint8Array(new Uint32Array([287454020]).buffer)[0];var pt=BigInt(0),mt=BigInt(1),ht=BigInt(2),gt=BigInt(7),_t=BigInt(256),vt=BigInt(113),yt=[],bt=[],xt=[];for(let e=0,t=mt,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],yt.push(2*(5*r+n)),bt.push((e+1)*(e+2)/2%64);let i=pt;for(let e=0;e<7;e++)t=(t<<mt^(t>>gt)*vt)%_t,t&ht&&(i^=mt<<(mt<<BigInt(e))-mt);xt.push(i)}var St=ft(xt,!0);St[0],St[1];var Ct=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,wt=Math.ceil,F=Math.floor,I=`[BigNumber Error] `,Tt=I+`Number primitive has more than 15 significant digits: `,L=0x5af3107a4000,R=14,Et=9007199254740991,Dt=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000],Ot=1e7,z=1e9;function kt(e){var t,n,r,i=v.prototype={constructor:v,toString:null,valueOf:null},a=new v(1),o=20,s=4,c=-7,l=21,u=-1e7,d=1e7,f=!1,p=1,m=0,h={prefix:``,groupSize:3,secondaryGroupSize:0,groupSeparator:`,`,decimalSeparator:`.`,fractionGroupSize:0,fractionGroupSeparator:`\xA0`,suffix:``},g=`0123456789abcdefghijklmnopqrstuvwxyz`,_=!0;function v(e,t){var i,a,c,l,f,p,m,h,y=this;if(!(y instanceof v))return new v(e,t);if(t==null){if(e&&e._isBigNumber===!0){y.s=e.s,!e.c||e.e>d?y.c=y.e=null:e.e<u?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice());return}if((p=typeof e==`number`)&&e*0==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,f=e;f>=10;f/=10,l++);l>d?y.c=y.e=null:(y.e=l,y.c=[e]);return}h=String(e)}else{if(!Ct.test(h=String(e)))return r(y,h,p);y.s=h.charCodeAt(0)==45?(h=h.slice(1),-1):1}(l=h.indexOf(`.`))>-1&&(h=h.replace(`.`,``)),(f=h.search(/e/i))>0?(l<0&&(l=f),l+=+h.slice(f+1),h=h.substring(0,f)):l<0&&(l=h.length)}else{if(H(t,2,g.length,`Base`),t==10&&_)return y=new v(e),S(y,o+y.e+1,s);if(h=String(e),p=typeof e==`number`){if(e*0!=0)return r(y,h,p,t);if(y.s=1/e<0?(h=h.slice(1),-1):1,v.DEBUG&&h.replace(/^0\.0*|\./,``).length>15)throw Error(Tt+e)}else y.s=h.charCodeAt(0)===45?(h=h.slice(1),-1):1;for(i=g.slice(0,t),l=f=0,m=h.length;f<m;f++)if(i.indexOf(a=h.charAt(f))<0){if(a==`.`){if(f>l){l=m;continue}}else if(!c&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){c=!0,f=-1,l=0;continue}return r(y,String(e),p,t)}p=!1,h=n(h,t,10,y.s),(l=h.indexOf(`.`))>-1?h=h.replace(`.`,``):l=h.length}for(f=0;h.charCodeAt(f)===48;f++);for(m=h.length;h.charCodeAt(--m)===48;);if(h=h.slice(f,++m)){if(m-=f,p&&v.DEBUG&&m>15&&(e>Et||e!==F(e)))throw Error(Tt+y.s*e);if((l=l-f-1)>d)y.c=y.e=null;else if(l<u)y.c=[y.e=0];else{if(y.e=l,y.c=[],f=(l+1)%R,l<0&&(f+=R),f<m){for(f&&y.c.push(+h.slice(0,f)),m-=R;f<m;)y.c.push(+h.slice(f,f+=R));f=R-(h=h.slice(f)).length}else f-=m;for(;f--;h+=`0`);y.c.push(+h)}}else y.c=[y.e=0]}v.clone=kt,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.EUCLID=9,v.config=v.set=function(e){var t,n;if(e!=null){if(typeof e==`object`){if(e.hasOwnProperty(t=`DECIMAL_PLACES`)&&(n=e[t],H(n,0,z,t),o=n),e.hasOwnProperty(t=`ROUNDING_MODE`)&&(n=e[t],H(n,0,8,t),s=n),e.hasOwnProperty(t=`EXPONENTIAL_AT`)&&(n=e[t],n&&n.pop?(H(n[0],-z,0,t),H(n[1],0,z,t),c=n[0],l=n[1]):(H(n,-z,z,t),c=-(l=n<0?-n:n))),e.hasOwnProperty(t=`RANGE`)){if(n=e[t],n&&n.pop)H(n[0],-z,-1,t),H(n[1],1,z,t),u=n[0],d=n[1];else if(H(n,-z,z,t),n)u=-(d=n<0?-n:n);else throw Error(I+t+` cannot be zero: `+n)}if(e.hasOwnProperty(t=`CRYPTO`)){if(n=e[t],n===!!n){if(n){if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=n;else throw f=!n,Error(I+`crypto unavailable`)}else f=n}else throw Error(I+t+` not true or false: `+n)}if(e.hasOwnProperty(t=`MODULO_MODE`)&&(n=e[t],H(n,0,9,t),p=n),e.hasOwnProperty(t=`POW_PRECISION`)&&(n=e[t],H(n,0,z,t),m=n),e.hasOwnProperty(t=`FORMAT`)){if(n=e[t],typeof n==`object`)h=n;else throw Error(I+t+` not an object: `+n)}if(e.hasOwnProperty(t=`ALPHABET`)){if(n=e[t],typeof n==`string`&&!/^.?$|[+\-.\s]|(.).*\1/.test(n))_=n.slice(0,10)==`0123456789`,g=n;else throw Error(I+t+` invalid: `+n)}}else throw Error(I+`Object expected: `+e)}return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[c,l],RANGE:[u,d],CRYPTO:f,MODULO_MODE:p,POW_PRECISION:m,FORMAT:h,ALPHABET:g}},v.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!v.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;out:if({}.toString.call(r)==`[object Array]`){if((a===1||a===-1)&&i>=-z&&i<=z&&i===F(i)){if(r[0]===0){if(i===0&&r.length===1)return!0;break out}if(t=(i+1)%R,t<1&&(t+=R),String(r[0]).length==t){for(t=0;t<r.length;t++)if(n=r[t],n<0||n>=L||n!==F(n))break out;if(n!==0)return!0}}}else if(r===null&&i===null&&(a===null||a===1||a===-1))return!0;throw Error(I+`Invalid BigNumber: `+e)},v.maximum=v.max=function(){return b(arguments,-1)},v.minimum=v.min=function(){return b(arguments,1)},v.random=(function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return F(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var n,r,i,s,c,l=0,u=[],d=new v(a);if(e==null?e=o:H(e,0,z),s=wt(e/R),f){if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(s*=2));l<s;)c=n[l]*131072+(n[l+1]>>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(u.push(c%0x5af3107a4000),l+=2);l=s/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(s*=7);l<s;)c=(n[l]&31)*281474976710656+n[l+1]*1099511627776+n[l+2]*4294967296+n[l+3]*16777216+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6],c>=9e15?crypto.randomBytes(7).copy(n,l):(u.push(c%0x5af3107a4000),l+=7);l=s/7}else throw f=!1,Error(I+`crypto unavailable`)}if(!f)for(;l<s;)c=t(),c<9e15&&(u[l++]=c%0x5af3107a4000);for(s=u[--l],e%=R,s&&e&&(c=Dt[R-e],u[l]=F(s/c)*c);u[l]===0;u.pop(),l--);if(l<0)u=[i=0];else{for(i=-1;u[0]===0;u.splice(0,1),i-=R);for(l=1,c=u[0];c>=10;c/=10,l++);l<R&&(i-=R-l)}return d.e=i,d.c=u,d}})(),v.sum=function(){for(var e=1,t=arguments,n=new v(t[0]);e<t.length;)n=n.plus(t[e++]);return n},n=(function(){var e=`0123456789`;function n(e,t,n,r){for(var i,a=[0],o,s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(a[i+1]??(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,a,c,l){var u,d,f,p,h,_,y,b,x=r.indexOf(`.`),S=o,C=s;for(x>=0&&(p=m,m=0,r=r.replace(`.`,``),b=new v(i),_=b.pow(r.length-x),m=p,b.c=n(U(V(_.c),_.e,`0`),10,a,e),b.e=b.c.length),y=n(r,i,a,l?(u=g,e):(u=e,g)),f=p=y.length;y[--p]==0;y.pop());if(!y[0])return u.charAt(0);if(x<0?--f:(_.c=y,_.e=f,_.s=c,_=t(_,b,S,C,a),y=_.c,h=_.r,f=_.e),d=f+S+1,x=y[d],p=a/2,h=h||d<0||y[d+1]!=null,h=C<4?(x!=null||h)&&(C==0||C==(_.s<0?3:2)):x>p||x==p&&(C==4||h||C==6&&y[d-1]&1||C==(_.s<0?8:7)),d<1||!y[0])r=h?U(u.charAt(1),-S,u.charAt(0)):u.charAt(0);else{if(y.length=d,h)for(--a;++y[--d]>a;)y[d]=0,d||(++f,y=[1].concat(y));for(p=y.length;!y[--p];);for(x=0,r=``;x<=p;r+=u.charAt(y[x++]));r=U(r,f,u.charAt(0))}return r}})(),t=(function(){function e(e,t,n){var r,i,a,o,s=0,c=e.length,l=t%Ot,u=t/Ot|0;for(e=e.slice();c--;)a=e[c]%Ot,o=e[c]/Ot|0,r=u*a+o*l,i=l*a+r%Ot*Ot+s,s=(i/n|0)+(r/Ot|0)+u*o,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var c,l,u,d,f,p,m,h,g,_,y,b,x,C,w,T,E,D=r.s==i.s?1:-1,O=r.c,k=i.c;if(!O||!O[0]||!k||!k[0])return new v(!r.s||!i.s||(O?k&&O[0]==k[0]:!k)?NaN:O&&O[0]==0||!k?D*0:D/0);for(h=new v(D),g=h.c=[],l=r.e-i.e,D=a+l+1,s||(s=L,l=B(r.e/R)-B(i.e/R),D=D/R|0),u=0;k[u]==(O[u]||0);u++);if(k[u]>(O[u]||0)&&l--,D<0)g.push(1),d=!0;else{for(C=O.length,T=k.length,u=0,D+=2,f=F(s/(k[0]+1)),f>1&&(k=e(k,f,s),O=e(O,f,s),T=k.length,C=O.length),x=T,_=O.slice(0,T),y=_.length;y<T;_[y++]=0);E=k.slice(),E=[0].concat(E),w=k[0],k[1]>=s/2&&w++;do{if(f=0,c=t(k,_,T,y),c<0){if(b=_[0],T!=y&&(b=b*s+(_[1]||0)),f=F(b/w),f>1)for(f>=s&&(f=s-1),p=e(k,f,s),m=p.length,y=_.length;t(p,_,m,y)==1;)f--,n(p,T<m?E:k,m,s),m=p.length,c=1;else f==0&&(c=f=1),p=k.slice(),m=p.length;if(m<y&&(p=[0].concat(p)),n(_,p,y,s),y=_.length,c==-1)for(;t(k,_,T,y)<1;)f++,n(_,T<y?E:k,y,s),y=_.length}else c===0&&(f++,_=[0]);g[u++]=f,_[0]?_[y++]=O[x]||0:(_=[O[x]],y=1)}while((x++<C||_[0]!=null)&&D--);d=_[0]!=null,g[0]||g.splice(0,1)}if(s==L){for(u=1,D=g[0];D>=10;D/=10,u++);S(h,a+(h.e=u+l*R-1)+1,o,d)}else h.e=l,h.r=+d;return h}})();function y(e,t,n,r){var i,a,o,u,d;if(n==null?n=s:H(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,t==null)d=V(e.c),d=r==1||r==2&&(o<=c||o>=l)?Mt(d,o):U(d,o,`0`);else if(e=S(new v(e),t,n),a=e.e,d=V(e.c),u=d.length,r==1||r==2&&(t<=a||a<=c)){for(;u<t;d+=`0`,u++);d=Mt(d,a)}else if(t-=o+(r===2&&a>o),d=U(d,a,`0`),a+1>u){if(--t>0)for(d+=`.`;t--;d+=`0`);}else if(t+=a-u,t>0)for(a+1==u&&(d+=`.`);t--;d+=`0`);return e.s<0&&i?`-`+d:d}function b(e,t){for(var n,r,i=1,a=new v(e[0]);i<e.length;i++)r=new v(e[i]),(!r.s||(n=At(a,r))===t||n===0&&a.s===t)&&(a=r);return a}function x(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*R-1)>d?e.c=e.e=null:n<u?e.c=[e.e=0]:(e.e=n,e.c=t),e}r=(function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,o,s,c){var l,u=s?o:o.replace(i,``);if(r.test(u))a.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,function(e,t,n){return l=(n=n.toLowerCase())==`x`?16:n==`b`?2:8,!c||c==l?t:e}),c&&(l=c,u=u.replace(t,`$1`).replace(n,`0.$1`)),o!=u))return new v(u,l);if(v.DEBUG)throw Error(I+`Not a`+(c?` base `+c:``)+` number: `+o);a.s=null}a.c=a.e=null}})();function S(e,t,n,r){var i,a,o,s,c,l,f,p=e.c,m=Dt;if(p){out:{for(i=1,s=p[0];s>=10;s/=10,i++);if(a=t-i,a<0)a+=R,o=t,c=p[l=0],f=F(c/m[i-o-1]%10);else if(l=wt((a+1)/R),l>=p.length){if(r){for(;p.length<=l;p.push(0));c=f=0,i=1,a%=R,o=a-R+1}else break out}else{for(c=s=p[l],i=1;s>=10;s/=10,i++);a%=R,o=a-R+i,f=o<0?0:F(c/m[i-o-1]%10)}if(r=r||t<0||p[l+1]!=null||(o<0?c:c%m[i-o-1]),r=n<4?(f||r)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||r||n==6&&(a>0?o>0?c/m[i-o]:0:p[l-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=m[(R-t%R)%R],e.e=-t||0):p[0]=e.e=0,e;if(a==0?(p.length=l,s=1,l--):(p.length=l+1,s=m[R-a],p[l]=o>0?F(c/m[i-o]%m[o])*s:0),r)for(;;)if(l==0){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,p[0]==L&&(p[0]=1));break}else{if(p[l]+=s,p[l]!=L)break;p[l--]=0,s=1}for(a=p.length;p[--a]===0;p.pop());}e.e>d?e.c=e.e=null:e.e<u&&(e.c=[e.e=0])}return e}function C(e){var t,n=e.e;return n===null?e.toString():(t=V(e.c),t=n<=c||n>=l?Mt(t,n):U(t,n,`0`),e.s<0?`-`+t:t)}return i.absoluteValue=i.abs=function(){var e=new v(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return At(this,new v(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,i,a=this;if(e!=null)return H(e,0,z),t==null?t=s:H(t,0,8),S(new v(a),e+a.e+1,t);if(!(n=a.c))return null;if(r=((i=n.length-1)-B(this.e/R))*R,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,n){return t(this,new v(e,n),o,s)},i.dividedToIntegerBy=i.idiv=function(e,n){return t(this,new v(e,n),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,i,o,c,l,u,d,f,p=this;if(e=new v(e),e.c&&!e.isInteger())throw Error(I+`Exponent not an integer: `+C(e));if(t!=null&&(t=new v(t)),l=e.e>14,!p.c||!p.c[0]||p.c[0]==1&&!p.e&&p.c.length==1||!e.c||!e.c[0])return f=new v((+C(p))**(l?e.s*(2-jt(e)):+C(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new v(NaN);r=!u&&p.isInteger()&&t.isInteger(),r&&(p=p.mod(t))}else if(e.e>9&&(p.e>0||p.e<-1||(p.e==0?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return o=p.s<0&&jt(e)?-0:0,p.e>-1&&(o=1/o),new v(u?1/o:o);else m&&(o=wt(m/R+2));for(l?(n=new v(.5),u&&(e.s=1),d=jt(e)):(i=Math.abs(+C(e)),d=i%2),f=new v(a);;){if(d){if(f=f.times(p),!f.c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}if(i){if(i=F(i/2),i===0)break;d=i%2}else if(e=e.times(n),S(e,e.e+1,1),e.e>14)d=jt(e);else{if(i=+C(e),i===0)break;d=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?f:(u&&(f=a.div(f)),t?f.mod(t):o?S(f,m,s,c):f)},i.integerValue=function(e){var t=new v(this);return e==null?e=s:H(e,0,8),S(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return At(this,new v(e,t))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return At(this,new v(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return(t=At(this,new v(e,t)))===1||t===0},i.isInteger=function(){return!!this.c&&B(this.e/R)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return At(this,new v(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return(t=At(this,new v(e,t)))===-1||t===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(e,t){var n,r,i,a,o=this,c=o.s;if(e=new v(e,t),t=e.s,!c||!t)return new v(NaN);if(c!=t)return e.s=-t,o.plus(e);var l=o.e/R,u=e.e/R,d=o.c,f=e.c;if(!l||!u){if(!d||!f)return d?(e.s=-t,e):new v(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new v(d[0]?o:s==3?-0:0)}if(l=B(l),u=B(u),d=d.slice(),c=l-u){for((a=c<0)?(c=-c,i=d):(u=l,i=f),i.reverse(),t=c;t--;i.push(0));i.reverse()}else for(r=(a=(c=d.length)<(t=f.length))?c:t,c=t=0;t<r;t++)if(d[t]!=f[t]){a=d[t]<f[t];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),t=(r=f.length)-(n=d.length),t>0)for(;t--;d[n++]=0);for(t=L-1;r>c;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=L}d[r]-=f[r]}for(;d[0]==0;d.splice(0,1),--u);return d[0]?x(e,d,u):(e.s=s==3?-1:1,e.c=[e.e=0],e)},i.modulo=i.mod=function(e,n){var r,i,a=this;return e=new v(e,n),!a.c||!e.s||e.c&&!e.c[0]?new v(NaN):!e.c||a.c&&!a.c[0]?new v(a):(p==9?(i=e.s,e.s=1,r=t(a,e,0,3),e.s=i,r.s*=i):r=t(a,e,0,p),e=a.minus(r.times(e)),!e.c[0]&&p==1&&(e.s=a.s),e)},i.multipliedBy=i.times=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=this,y=_.c,b=(e=new v(e,t)).c;if(!y||!b||!y[0]||!b[0])return!_.s||!e.s||y&&!y[0]&&!b||b&&!b[0]&&!y?e.c=e.e=e.s=null:(e.s*=_.s,!y||!b?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(r=B(_.e/R)+B(e.e/R),e.s*=_.s,c=y.length,d=b.length,c<d&&(m=y,y=b,b=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(h=L,g=Ot,i=d;--i>=0;){for(n=0,f=b[i]%g,p=b[i]/g|0,o=c,a=i+o;a>i;)l=y[--o]%g,u=y[o]/g|0,s=p*l+u*f,l=f*l+s%g*g+m[a]+n,n=(l/h|0)+(s/g|0)+p*u,m[a--]=l%h;m[a]=n}return n?++r:m.splice(0,1),x(e,m,r)},i.negated=function(){var e=new v(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,i=r.s;if(e=new v(e,t),t=e.s,!i||!t)return new v(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/R,o=e.e/R,s=r.c,c=e.c;if(!a||!o){if(!s||!c)return new v(i/0);if(!s[0]||!c[0])return c[0]?e:new v(s[0]?r:i*0)}if(a=B(a),o=B(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=c):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,t=c.length,i-t<0&&(n=c,c=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/L|0,s[t]=L===s[t]?0:s[t]%L;return i&&(s=[i].concat(s),++o),x(e,s,o)},i.precision=i.sd=function(e,t){var n,r,i,a=this;if(e!=null&&e!==!!e)return H(e,1,z),t==null?t=s:H(t,0,8),S(new v(a),e,t);if(!(n=a.c))return null;if(i=n.length-1,r=i*R+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},i.shiftedBy=function(e){return H(e,-Et,Et),this.times(`1e`+e)},i.squareRoot=i.sqrt=function(){var e,n,r,i,a,c=this,l=c.c,u=c.s,d=c.e,f=o+4,p=new v(`0.5`);if(u!==1||!l||!l[0])return new v(!u||u<0&&(!l||l[0])?NaN:l?c:1/0);if(u=Math.sqrt(+C(c)),u==0||u==1/0?(n=V(l),(n.length+d)%2==0&&(n+=`0`),u=Math.sqrt(+n),d=B((d+1)/2)-(d<0||d%2),u==1/0?n=`5e`+d:(n=u.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+d),r=new v(n)):r=new v(u+``),r.c[0]){for(d=r.e,u=d+f,u<3&&(u=0);;)if(a=r,r=p.times(a.plus(t(c,a,f,1))),V(a.c).slice(0,u)===(n=V(r.c)).slice(0,u)){if(r.e<d&&--u,n=n.slice(u-3,u+1),n==`9999`||!i&&n==`4999`){if(!i&&(S(a,a.e+o+2,0),a.times(a).eq(c))){r=a;break}f+=4,u+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(S(r,r.e+o+2,1),e=!r.times(r).eq(c));break}}}return S(r,r.e+o+1,s,e)},i.toExponential=function(e,t){return e!=null&&(H(e,0,z),e++),y(this,e,t,1)},i.toFixed=function(e,t){return e!=null&&(H(e,0,z),e=e+this.e+1),y(this,e,t)},i.toFormat=function(e,t,n){var r,i=this;if(n==null)e!=null&&t&&typeof t==`object`?(n=t,t=null):e&&typeof e==`object`?(n=e,e=t=null):n=h;else if(typeof n!=`object`)throw Error(I+`Argument not an object: `+n);if(r=i.toFixed(e,t),i.c){var a,o=r.split(`.`),s=+n.groupSize,c=+n.secondaryGroupSize,l=n.groupSeparator||``,u=o[0],d=o[1],f=i.s<0,p=f?u.slice(1):u,m=p.length;if(c&&(a=s,s=c,c=a,m-=a),s>0&&m>0){for(a=m%s||s,u=p.substr(0,a);a<m;a+=s)u+=l+p.substr(a,s);c>0&&(u+=l+p.slice(a)),f&&(u=`-`+u)}r=d?u+(n.decimalSeparator||``)+((c=+n.fractionGroupSize)?d.replace(RegExp(`\\d{`+c+`}\\B`,`g`),`$&`+(n.fractionGroupSeparator||``)):d):u}return(n.prefix||``)+r+(n.suffix||``)},i.toFraction=function(e){var n,r,i,o,c,l,u,f,p,m,h,g,_=this,y=_.c;if(e!=null&&(u=new v(e),!u.isInteger()&&(u.c||u.s!==1)||u.lt(a)))throw Error(I+`Argument `+(u.isInteger()?`out of range: `:`not an integer: `)+C(u));if(!y)return new v(_);for(n=new v(a),p=r=new v(a),i=f=new v(a),g=V(y),c=n.e=g.length-_.e-1,n.c[0]=Dt[(l=c%R)<0?R+l:l],e=!e||u.comparedTo(n)>0?c>0?n:p:u,l=d,d=1/0,u=new v(g),f.c[0]=0;m=t(u,n,0,1),o=r.plus(m.times(i)),o.comparedTo(e)!=1;)r=i,i=o,p=f.plus(m.times(o=p)),f=o,n=u.minus(m.times(o=n)),u=o;return o=t(e.minus(r),i,0,1),f=f.plus(o.times(p)),r=r.plus(o.times(i)),f.s=p.s=_.s,c*=2,h=t(p,i,c,s).minus(_).abs().comparedTo(t(f,r,c,s).minus(_).abs())<1?[p,i]:[f,r],d=l,h},i.toNumber=function(){return+C(this)},i.toPrecision=function(e,t){return e!=null&&H(e,1,z),y(this,e,t,2)},i.toString=function(e){var t,r=this,i=r.s,a=r.e;return a===null?i?(t=`Infinity`,i<0&&(t=`-`+t)):t=`NaN`:(e==null?t=a<=c||a>=l?Mt(V(r.c),a):U(V(r.c),a,`0`):e===10&&_?(r=S(new v(r),o+a+1,s),t=U(V(r.c),r.e,`0`)):(H(e,2,g.length,`Base`),t=n(U(V(r.c),a,`0`),10,e,i,!0)),i<0&&r.c[0]&&(t=`-`+t)),t},i.valueOf=i.toJSON=function(){return C(this)},i._isBigNumber=!0,i[Symbol.toStringTag]=`BigNumber`,i[Symbol.for(`nodejs.util.inspect.custom`)]=i.valueOf,e!=null&&v.set(e),v}function B(e){var t=e|0;return e>0||e===t?t:t-1}function V(e){for(var t,n,r=1,i=e.length,a=e[0]+``;r<i;){for(t=e[r++]+``,n=R-t.length;n--;t=`0`+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function At(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,c=e.e,l=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=c==l,!i||!a)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(s=(c=i.length)<(l=a.length)?c:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function H(e,t,n,r){if(e<t||e>n||e!==F(e))throw Error(I+(r||`Argument`)+(typeof e==`number`?e<t||e>n?` out of range: `:` not an integer: `:` not a primitive number: `)+String(e))}function jt(e){var t=e.c.length-1;return B(e.e/R)==t&&e.c[t]%2!=0}function Mt(e,t){return(e.length>1?e.charAt(0)+`.`+e.slice(1):e)+(t<0?`e`:`e+`)+t}function U(e,t,n){var r,i;if(t<0){for(i=n+`.`;++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+`.`+e.slice(t));return e}kt(),typeof globalThis<`u`&&globalThis.crypto&&globalThis.crypto.getRandomValues,Array.from({length:26},(e,t)=>String.fromCharCode(t+97));var Nt=e(n(((e,n,r)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(r,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:!e.hasOwnProperty(i)&&l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){typeof e==`string`?n[e.toLowerCase()]=!0:(f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`))},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})}))(),1);function Pt(e){return e.toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function Ft(e){return e.replace(/([A-Z])/g,`_$1`).toUpperCase().replace(/^_/,``)}function It(e,t){switch(t){case`number`:{let t=Number(e);if(Number.isNaN(t))throw Error(`Cannot convert "${e}" to number: result is NaN`);return t}case`boolean`:return e.toLowerCase()===`true`||e===`1`||e.toLowerCase()===`yes`;case`json`:try{return JSON.parse(e)}catch(t){throw Error(`Cannot parse "${e}" as JSON: ${t instanceof Error?t.message:`Unknown error`}`)}default:return e}}function Lt(e={},t={}){let{prefix:n=`HAVE`,packageName:r,schema:i={},transform:a={},allowUnknown:o=!0}=t,s=r&&n?`${n}_${r.toUpperCase()}_`:n?`${n}_`:``,c={...e},l={},u=o?new Set([...Object.keys(i),...Object.keys(l).filter(e=>s&&e.startsWith(s)).map(e=>Pt(e.slice(s.length)))]):new Set(Object.keys(i));for(let t of u){if(t in e)continue;let n=s?s+Ft(t):t,r=l[n];if(r===void 0)continue;let o=a[t];if(o){try{c[t]=o(r)}catch(e){console.warn(`Failed to transform ${n}="${r}":`,e instanceof Error?e.message:e)}continue}let u=i[t];if(u)try{c[t]=It(r,u)}catch(e){console.warn(`Failed to convert ${n}="${r}" to ${u}:`,e instanceof Error?e.message:e)}else c[t]=r}return c}new class{debug(e,t){t?console.debug(e,t):console.debug(e)}info(e,t){t?console.info(e,t):console.info(e)}warn(e,t){t?console.warn(e,t):console.warn(e)}error(e,t){t?console.error(e,t):console.error(e)}};var Rt=365.2425,zt=6048e5,Bt=6e4,Vt=36e5,Ht=1e3,Ut=86400;Ut*7,Ut*Rt/12*3;var Wt=Symbol.for(`constructDateFrom`);function W(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Wt in e?e[Wt](t):e instanceof Date?new e.constructor(t):new Date(t)}function G(e,t){return W(t||e,e)}function Gt(e,t,n){let r=G(e,n?.in);return isNaN(t)?W(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}var Kt={};function qt(){return Kt}function Jt(e){let t=G(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function K(e,t){let n=qt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=G(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Yt(e,t){return K(e,{...t,weekStartsOn:1})}function Xt(e,t){let n=G(e,t?.in),r=n.getFullYear(),i=W(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Yt(i),o=W(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Yt(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Zt(e,t){let n=Xt(e,t),r=W(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}function Qt(e,t){let n=G(e,t?.in),r=+Yt(n)-Zt(n);return Math.round(r/zt)+1}function $t(e,t){let n=G(e,t?.in),r=n.getFullYear(),i=qt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=W(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=K(o,t),c=W(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=K(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function en(e,t){let n=qt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=$t(e,t),a=W(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),K(a,t)}function tn(e,t){let n=G(e,t?.in),r=+K(n,t)-en(n,t);return Math.round(r/zt)+1}var nn=class{subPriority=0;validate(e,t){return!0}},rn=class extends nn{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},q=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new rn(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},an=class extends q{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},J={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Y={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function X(e,t){return e&&{value:t(e.value),rest:e.rest}}function Z(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Q(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Vt+a*Bt+o*Ht),rest:t.slice(n[0].length)}}function on(e){return Z(J.anyDigitsSigned,e)}function $(e,t){switch(e){case 1:return Z(J.singleDigit,t);case 2:return Z(J.twoDigits,t);case 3:return Z(J.threeDigits,t);case 4:return Z(J.fourDigits,t);default:return Z(RegExp(`^\\d{1,`+e+`}`),t)}}function sn(e,t){switch(e){case 1:return Z(J.singleDigitSigned,t);case 2:return Z(J.twoDigitsSigned,t);case 3:return Z(J.threeDigitsSigned,t);case 4:return Z(J.fourDigitsSigned,t);default:return Z(RegExp(`^-?\\d{1,`+e+`}`),t)}}function cn(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function ln(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function un(e){return e%400==0||e%4==0&&e%100!=0}var dn=class extends q{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return X($(4,e),r);case`yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=ln(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},fn=class extends q{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return X($(4,e),r);case`Yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=$t(e,r);if(n.isTwoDigitYear){let t=ln(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),K(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),K(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},pn=class extends q{priority=130;parse(e,t){return sn(t===`R`?4:t.length,e)}set(e,t,n){let r=W(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},mn=class extends q{priority=130;parse(e,t){return sn(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},hn=class extends q{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return $(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},gn=class extends q{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return $(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},_n=class extends q{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return X(Z(J.month,e),r);case`MM`:return X($(2,e),r);case`Mo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},vn=class extends q{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return X(Z(J.month,e),r);case`LL`:return X($(2,e),r);case`Lo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function yn(e,t,n){let r=G(e,n?.in),i=tn(r,n)-t;return r.setDate(r.getDate()-i*7),G(r,n?.in)}var bn=class extends q{priority=100;parse(e,t,n){switch(t){case`w`:return Z(J.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return K(yn(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function xn(e,t,n){let r=G(e,n?.in),i=Qt(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Sn=class extends q{priority=100;parse(e,t,n){switch(t){case`I`:return Z(J.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Yt(xn(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},Cn=[31,28,31,30,31,30,31,31,30,31,30,31],wn=[31,29,31,30,31,30,31,31,30,31,30,31],Tn=class extends q{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return Z(J.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){let n=un(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=wn[r]:t>=1&&t<=Cn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},En=class extends q{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return Z(J.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){return un(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function Dn(e,t,n){let r=qt(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=G(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return Gt(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var On=class extends q{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},kn=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return X($(t.length,e),i);case`eo`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},An=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return X($(t.length,e),i);case`co`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function jn(e,t){let n=G(e,t?.in).getDay();return n===0?7:n}function Mn(e,t,n){let r=G(e,n?.in);return Gt(r,t-jn(r,n),n)}var Nn=class extends q{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return $(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return X(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return X(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return X(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return X(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Mn(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Pn=class extends q{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},Fn=class extends q{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},In=class extends q{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Ln=class extends q{priority=70;parse(e,t,n){switch(t){case`h`:return Z(J.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Rn=class extends q{priority=70;parse(e,t,n){switch(t){case`H`:return Z(J.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},zn=class extends q{priority=70;parse(e,t,n){switch(t){case`K`:return Z(J.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},Bn=class extends q{priority=70;parse(e,t,n){switch(t){case`k`:return Z(J.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Vn=class extends q{priority=60;parse(e,t,n){switch(t){case`m`:return Z(J.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},Hn=class extends q{priority=50;parse(e,t,n){switch(t){case`s`:return Z(J.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},Un=class extends q{priority=30;parse(e,t){return X($(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Wn=class extends q{priority=10;parse(e,t){switch(t){case`X`:return Q(Y.basicOptionalMinutes,e);case`XX`:return Q(Y.basic,e);case`XXXX`:return Q(Y.basicOptionalSeconds,e);case`XXXXX`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:W(e,e.getTime()-Jt(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Gn=class extends q{priority=10;parse(e,t){switch(t){case`x`:return Q(Y.basicOptionalMinutes,e);case`xx`:return Q(Y.basic,e);case`xxxx`:return Q(Y.basicOptionalSeconds,e);case`xxxxx`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:W(e,e.getTime()-Jt(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Kn=class extends q{priority=40;parse(e){return on(e)}set(e,t,n){return[W(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},qn=class extends q{priority=20;parse(e){return on(e)}set(e,t,n){return[W(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`};new an,new dn,new fn,new pn,new mn,new hn,new gn,new _n,new vn,new bn,new Sn,new Tn,new En,new On,new kn,new An,new Nn,new Pn,new Fn,new In,new Ln,new Rn,new zn,new Bn,new Vn,new Hn,new Un,new Wn,new Gn,new Kn,new qn,Nt.default.singular,Nt.default.isPlural,Nt.default.isSingular;var Jn=class e{level;static LEVELS=[`debug`,`info`,`warn`,`error`];constructor(e=`info`){this.level=e}shouldLog(t){let n=e.LEVELS.indexOf(this.level);return e.LEVELS.indexOf(t)>=n}formatContext(e){return!e||Object.keys(e).length===0?``:` ${JSON.stringify(e)}`}debug(e,t){this.shouldLog(`debug`)&&console.debug(`[DEBUG] ${e}${this.formatContext(t)}`)}info(e,t){this.shouldLog(`info`)&&console.info(`[INFO] ${e}${this.formatContext(t)}`)}warn(e,t){this.shouldLog(`warn`)&&console.warn(`[WARN] ${e}${this.formatContext(t)}`)}error(e,t){this.shouldLog(`error`)&&console.error(`[ERROR] ${e}${this.formatContext(t)}`)}},Yn=class{debug(e,t){}info(e,t){}warn(e,t){}error(e,t){}};function Xn(e){return typeof e==`boolean`?e?new Jn(Lt({},{packageName:`logger`,schema:{level:`string`}}).level||`info`):new Yn:new Jn(Lt(e,{packageName:`logger`,schema:{level:`string`}}).level||`info`)}var Zn=`warn`,Qn;function $n(){return Qn||=typeof process<`u`?Xn({level:Zn}):new Jn(Zn),Qn}var er={debug:(e,t)=>$n().debug(e,t),info:(e,t)=>$n().info(e,t),warn:(e,t)=>$n().warn(e,t),error:(e,t)=>$n().error(e,t)},tr=Symbol(`smrt-webmcp-bespoke-context`);function nr(e){D(tr,e)}var rr=Symbol(`smrt-webmcp-ui-context`);function ir(e){D(rr,e)}function ar(){return c(rr)??null}export{Le as _,ct as a,Ne as b,Xe as c,Je as d,qe as f,Pe as g,Fe as h,er as i,Qe as l,Ie as m,ar as n,at as o,Ve as p,nr as r,tt as s,ir as t,Ze as u,Re as v,N as x,ze as y};
|
|
1
|
+
import{i as e,r as t,t as n}from"./COiEfhsA.js";import{$ as r,B as i,Ct as a,Dt as o,E as s,Et as c,F as l,Ft as u,G as d,H as f,J as p,K as m,Ot as h,P as g,Pt as _,U as v,W as y,a as b,b as x,bt as S,ct as C,ft as w,g as T,ht as E,kt as D,mt as O,o as k,pt as ee,st as A,tt as te,v as j,vt as M}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{a as ne,t as re}from"./Bq8E3AWP.js";import{Nt as ie}from"./BwBnFWTa.js";import{n as ae}from"./denq4QT7.js";import"./D3syEjNq.js";var N=ne({"ui.cookbook.assistant":`Assistant`,"ui.stt_test.heading":`STT Adapter Test`,"ui.stt_test.adapter_browser":`Browser (Web Speech API)`,"ui.stt_test.adapter_whisper_wasm":`Whisper WASM (v2)`,"ui.stt_test.adapter_whisper_cpp":`Whisper CPP`,"ui.stt_test.status_initializing":`Initializing...`,"ui.stt_test.status_ready":`Ready`,"ui.stt_test.status_not_initialized":`Not initialized`,"ui.workspace_shell.close_navigation":`Close navigation`,"ui.workspace_shell.close_inspector":`Close inspector`,"ui.workspace_shell.primary_navigation":`Primary navigation`,"ui.workspace_shell.workspace_navigation":`Workspace navigation`,"ui.workspace_shell.inspector_tools":`Inspector tools`,"ui.tools_dock.no_tools_available":`No tools available`,"ui.tools_dock.no_tools_context":`No tools are available for the current context.`,"ui.tools_dock.select_tool":`Select a tool to begin.`,"ui.tools_dock.workspace_tools":`Workspace tools`,"ui.admin_shell.no_focus_tools":`No focus tools`,"ui.admin_shell.focus_tools":`Focus tools`,"ui.admin_shell.no_app_panel":`No app panel`,"ui.admin_shell.no_system_panel":`No system panel`,"ui.admin_shell.shell_shortcuts":`Shell shortcuts`,"ui.admin_shell.close_shortcuts":`Close shortcuts`,"ui.admin_shell.shortcuts":`Shortcuts`,"ui.admin_shell.close":`Close`,"ui.admin_shell.home":`Home`,"ui.admin_shell.menu":`Menu`,"ui.admin_shell.close_menu":`Close menu`,"ui.admin_shell.tools":`Tools`,"ui.admin_shell.close_tools":`Close tools`,"ui.admin_shell.expand_sidebar":`Expand sidebar`,"ui.admin_shell.collapse_sidebar":`Collapse sidebar`,"ui.admin_shell.close_sidebar":`Close sidebar`,"ui.admin_shell.expand_panel":`Expand {panel}`,"ui.admin_shell.collapse_panel":`Collapse {panel}`,"ui.admin_shell.close_panel":`Close {label}`,"ui.admin_shell.open_panel":`Open {label}`,"ui.admin_shell.resize_panel":`Resize {label}`,"ui.admin_shell.panel":`Panel`,"ui.shell_nav_toggle.collapse":`Collapse {label}`,"ui.shell_nav_toggle.expand":`Expand {label}`,"ui.shell_nav_toggle.navigation":`navigation`,"ui.phone_top_bar.back":`Back to {label}`,"ui.phone_bottom_bar.label":`Main`,"ui.phone_bottom_bar.unread":`{count} unread`,"ui.phone_bottom_bar.new":`new`,"ui.activity_toasts.dismiss":`Dismiss activity notification`,"ui.activity_toasts.dismiss_action":`Dismiss`,"ui.activity_item.view":`View`,"ui.activity_item.cancel":`Cancel`,"ui.activity_item.just_now":`just now`,"ui.activity_item.dismiss_item":`Dismiss {title}`,"ui.activity_item.restore":`Restore`,"ui.activity_item.restore_item":`Restore {title}`,"ui.activity_list.empty":`No activities`,"ui.activity_list.no_activity":`No activity.`,"ui.activity_list.caught_up":`You're all caught up.`,"ui.activity_list.no_matching_activity":`No matching activity.`,"ui.activity_list.filter_all":`All`,"ui.activity_list.filter_by_source":`Filter activity by source`,"ui.activity_list.dismiss_visible":`Dismiss visible`,"ui.activity_list.undo":`Undo`,"ui.activity_list.show_dismissed":`Show dismissed ({count})`,"ui.activity_list.hide_dismissed":`Hide dismissed ({count})`,"ui.activity_ticker.label":`Running processes`,"ui.activity_ticker.empty":`No active processes`,"ui.activity_ticker.pause":`Pause scrolling activities`,"ui.activity_ticker.resume":`Resume scrolling activities`,"ui.activity_ticker.queued":`Queued`,"ui.app_scope_panel.app_scope":`App scope`,"ui.app_shell.settings_link":`Shell settings`,"ui.app_shell.navigation":`Application navigation`,"ui.app_shell.slot_content":`{slot} content`,"ui.shell_slot.header_start":`Header, left`,"ui.shell_slot.header_center":`Header, middle`,"ui.shell_slot.header_end":`Header, right`,"ui.shell_slot.footer_start":`Footer, left`,"ui.shell_slot.footer_center":`Footer, middle`,"ui.shell_slot.footer_end":`Footer, right`,"ui.shell_slot.left_sidebar_header":`Left sidebar, header`,"ui.shell_slot.left_sidebar_footer":`Left sidebar, footer`,"ui.shell_slot.right_sidebar_header":`Right sidebar, header`,"ui.shell_slot.right_sidebar_footer":`Right sidebar, footer`,"ui.shell_slot.short_header_start":`Left`,"ui.shell_slot.short_header_center":`Middle`,"ui.shell_slot.short_header_end":`Right`,"ui.shell_slot.short_footer_start":`Left`,"ui.shell_slot.short_footer_center":`Middle`,"ui.shell_slot.short_footer_end":`Right`,"ui.shell_slot.short_sidebar_header":`Header`,"ui.shell_slot.short_sidebar_footer":`Footer`,"ui.owner_setup.heading":`Set up your local application`,"ui.owner_setup.unavailable":`Local owner setup is unavailable or has already been completed.`,"ui.owner_setup.intro":`Create the real local owner account. This invitation works once and stays on this device.`,"ui.owner_setup.name":`Name`,"ui.owner_setup.email":`Email`,"ui.owner_setup.tenant_name":`Workspace name (optional)`,"ui.owner_setup.submit":`Create owner`,"ui.shell_settings_page.heading":`Settings`,"ui.shell_settings_page.description":`Adjust appearance, your account, and the workspace layout.`,"ui.shell_settings_page.back":`All settings`,"ui.shell_settings_page.menu_label":`Settings sections`,"ui.shell_settings_page.appearance_description":`Theme and light or dark color scheme.`,"ui.shell_settings_page.account_description":`Who you are signed in as, and sign out.`,"ui.shell_settings_page.layout_description":`Show or hide workspace areas and reset the layout.`,"ui.shell_settings_page.shortcuts_description":`Keyboard shortcuts for the workspace areas.`,"ui.hotkey_input.capture_title":`Press a key to capture it`,"ui.hotkey_input.conflicts_with":`Conflicts with`,"ui.shell_settings_panel.shell_settings":`Shell settings`,"ui.shell_settings_panel.description":`Show or hide the workspace areas and reset the layout.`,"ui.shell_settings_panel.disable_hotkeys":`Disable hotkeys`,"ui.shell_settings_panel.enable_hotkeys":`Enable hotkeys`,"ui.shell_settings_panel.collapse":`Collapse`,"ui.shell_settings_panel.expand":`Expand`,"ui.owner_setup.link_missing_heading":`This setup link is missing or has expired`,"ui.owner_setup.link_missing_body":`Setup links work once and only for a short time. Run these commands from the app folder. Recovery requires stopping the app first.`,"ui.owner_setup.desktop_reopen":`Reopen the desktop app to sign in with a fresh link.`,"ui.owner_setup.recovery_open":`Open a fresh setup link`,"ui.owner_setup.recovery_recover":`Recover the setup invitation`,"ui.shell_settings.appearance":`Appearance`,"ui.shell_settings.theme":`Theme`,"ui.shell_settings.color_scheme":`Color scheme`,"ui.shell_settings.account":`Account`,"ui.shell_settings.account_name":`Name`,"ui.shell_settings.account_email":`Email`,"ui.shell_settings.account_signed_out":`You are not signed in.`,"ui.shell_settings.sign_out":`Sign out`,"ui.shell_settings.sign_out_failed":`Couldn't sign out. Try again.`,"ui.shell_settings.layout":`Layout`,"ui.shell_settings.hide":`Hide`,"ui.shell_settings.show":`Show`,"ui.shell_settings.edit_layout_on":`Editing layout`,"ui.shell_settings.edit_layout_off":`Edit layout`,"ui.shell_settings.reset_layout":`Reset layout`,"ui.shell_settings.panels":`Shown areas`,"ui.shell_settings.show_region":`Show {region}`,"ui.shell_settings.hide_region":`Hide {region}`,"ui.shell_settings.region_shown":`Shown`,"ui.shell_settings.region_hidden":`Hidden`,"ui.shell_settings.shortcuts":`Keyboard shortcuts`,"ui.shell_layout_editor.heading":`Shell layout`,"ui.shell_layout_editor.description":`Choose which panels appear and arrange the navigation. Drag a handle, or focus it, press Space, and use the arrow keys.`,"ui.shell_layout_editor.reset":`Reset to defaults`,"ui.shell_layout_editor.panels":`Panels`,"ui.shell_layout_editor.show_panel":`Show {panel} panel`,"ui.shell_layout_editor.start_expanded":`Start {panel} panel expanded`,"ui.shell_layout_editor.panel_unavailable":`The {panel} panel is not available in this app.`,"ui.shell_layout_editor.navigation":`Navigation`,"ui.shell_layout_editor.top_level":`Top level`,"ui.shell_layout_editor.show_entry":`Show {label} in navigation`,"ui.shell_layout_editor.new_section":`New section`,"ui.shell_layout_editor.new_section_label":`New section`,"ui.shell_layout_editor.section_name":`Name of section {label}`,"ui.shell_layout_editor.rename_item":`Rename {label}`,"ui.shell_layout_editor.item_name":`Name of item {label}`,"ui.shell_layout_editor.reset_item":`Reset {label} to {original}`,"ui.shell_layout_editor.section_icon":`Icon of {label}`,"ui.shell_layout_editor.icon_option":`Use {icon} icon`,"ui.section_menu.label":`{label} entries`,"ui.section_menu.empty":`No entries in this section.`,"ui.shell_layout_editor.show_title_for":`Show title of {label}`,"ui.shell_layout_editor.delete":`Delete`,"ui.shell_layout_editor.delete_section":`Delete section {label}`,"ui.shell_layout_editor.delete_confirm":`Delete {label}? Its items return to their default sections.`,"ui.shell_layout_editor.preview":`Preview`,"ui.shell_layout_editor.preview_label":`Navigation preview`,"ui.shell_layout_editor.sortable_label":`Navigation sections and items`,"ui.layout_edit.toggle":`Edit layout`,"ui.layout_edit.announce_on":`Layout editing on. Drag items between zones, or focus a grip, press Space, and use the arrow keys.`,"ui.layout_edit.announce_off":`Layout editing off.`,"ui.layout_edit.zone":`{region} · {slot}`,"ui.layout_edit.region_hidden":`{region} · hidden`,"ui.layout_edit.show_region":`Show {region}`,"ui.layout_edit.hide_region":`Hide {region}`,"ui.layout_edit.hide_last_region":`Cannot hide {region}: at least one region must stay visible`,"ui.app_shell.brand_item":`App title`,"ui.layout_edit.section_options":`Options for section {label}`,"ui.layout_edit.edit_section":`Edit section {label}`,"ui.shell_region.header":`Header`,"ui.shell_region.left_sidebar":`Left sidebar`,"ui.shell_region.right_sidebar":`Right sidebar`,"ui.shell_region.footer":`Footer`,"ui.shortcuts_overlay.open_shortcuts":`Open shortcuts`,"ui.shortcuts_overlay.close_drawer":`Close drawer`,"ui.shortcuts_overlay.close":`Close`,"ui.shortcuts_overlay.escape":`Esc`,"ui.system_scope_panel.system_scope":`System scope`,"ui.system_scope_panel.activities":`Activities`,"ui.system_scope_panel.no_running_work":`No running work`,"ui.system_status_chips.system_status":`System status`,"ui.tenant_nav.tenant_navigation":`Tenant navigation`,"ui.tenant_nav.needs_attention":`Needs attention`,"ui.workspace_account_menu.open":`Open account menu`,"ui.workspace_account_menu.current_tenant":`{tenant} — current`,"ui.workspace_account_menu.sign_out":`Sign out`,"ui.workspace_account_menu.pending":`{count} waiting`,"ui.activity_feed.title":`Live activity feed`,"ui.activity_feed.description":`A smrt-web live collection reconciled into the shell activity registry.`,"ui.activity_feed.enqueue_job":`Enqueue job`,"ui.activity_feed.advance_job":`Advance job`,"ui.activity_feed.complete_job":`Complete job`,"ui.activity_feed.fail_job":`Fail job`,"ui.activity_feed.clear_finished":`Clear finished`,"ui.activity_feed.rows_heading":`Backing collection rows`,"ui.activity_feed.no_rows":`No rows yet`,"ui.activity_feed.job_label":`Render job`,"ui.system_feed.title":`System feed`,"ui.system_feed.description":`Polls an app-provided status endpoint and maps it into the system-scope panels and status chips.`,"ui.system_feed.pause":`Pause polling`,"ui.system_feed.resume":`Resume polling`,"ui.system_feed.refresh":`Refresh now`,"ui.system_feed.fail_next":`Fail next fetch`,"ui.system_feed.status_label":`Feed status`,"ui.system_feed.tick_label":`Ticks`,"ui.system_feed.error_label":`Last error`,"ui.system_feed.jobs_panel":`Jobs`,"ui.system_feed.schedules_panel":`Schedules`,"ui.system_feed.dispatch_panel":`Dispatch`,"ui.system_feed.chip_workers":`Workers`,"ui.system_feed.chip_running":`Running`,"ui.system_feed.chip_queued":`Queued`,"ui.system_feed.chip_failed":`Failed`,"ui.phone_tab_bar.label":`Main`,"ui.phone_tab_bar.more":`More`,"ui.app_shell.account_item":`Account menu`,"ui.app_shell.color_scheme_item":`Color scheme`,"ui.app_shell.color_scheme_dark":`Dark mode`,"ui.app_shell.color_scheme_to_dark":`Switch to dark mode`,"ui.app_shell.color_scheme_to_light":`Switch to light mode`,"ui.app_shell.command_palette_item":`Search`,"ui.app_shell.account_settings":`Settings`,"ui.app_shell.theme_item":`Theme: {mode}`,"ui.app_shell.theme_light":`Light`,"ui.app_shell.theme_dark":`Dark`,"ui.app_shell.panel_toggle":`Panel`,"ui.dock_toggles.set_up":`Set up {label}`});function oe(e){for(let t of e){let e=t.codePointAt(0)??0;if(e<=31||e===127)return!0}return!1}function se(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`//`)||t.includes(`\\`)||oe(t)))try{let e=new URL(t,`https://smrt.invalid`);return[`https:`,`http:`].includes(e.protocol)?t:void 0}catch{return}}var ce=/^\d{4}-\d{2}-\d{2}$/,le=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:?\d{2})$/i,ue=864e13;function de(e){return typeof e==`number`&&Number.isFinite(e)&&Math.abs(e)<=ue}function fe(e){let t=e?.trim();if(!t)return`UTC`;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:t}),t}catch{return`UTC`}}function pe(e){try{return new Intl.RelativeTimeFormat(e,{numeric:`auto`,style:`short`})}catch{return new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`,style:`short`})}}function P(e,t,n,r){try{return new Intl.DateTimeFormat(t,n).format(e)}catch{try{return new Intl.DateTimeFormat(`en-US`,n).format(e)}catch{return r}}}function me(e,t,n,r,i){let a=i?t:e.toISOString(),o=P(e,n,i?{dateStyle:`long`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},a);return o===a?a:`${o} (${a})`}function he(e,t,n,r,i){return P(e,n,i?{dateStyle:`medium`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},i?t:e.toISOString())}function ge(e,t,n){return Date.UTC(e,t-1,n)}function _e(e,t){let n=new Intl.DateTimeFormat(`en-CA`,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`}).formatToParts(new Date(e));return ge(Number(n.find(e=>e.type===`year`)?.value),Number(n.find(e=>e.type===`month`)?.value),Number(n.find(e=>e.type===`day`)?.value))}function ve(e,t={}){if(typeof e!=`string`)return null;let n=e.trim();if(!n)return null;let r=ce.test(n),i=!r&&le.test(n);if(!r&&!i)return{title:n,label:n};let a=r?`${n}T00:00:00.000Z`:n.replace(` `,`T`).replace(/([+-]\d{2})(\d{2})$/,`$1:$2`),o=new Date(a),s=o.getTime();if(!Number.isFinite(s)||r&&o.toISOString().slice(0,10)!==n)return{title:n,label:n};let c=t.locale?.trim()||`en-US`,l=fe(t.timeZone),u=t.justNowLabel||`just now`,d=de(t.now),f;if(!d)f=he(o,n,c,l,r);else if(r){let[e,r,i]=n.split(`-`),a=ge(Number(e),Number(r),Number(i)),o=_e(t.now,l),s=Math.round((a-o)/864e5),u=Math.abs(s),d=s<0?-1:1,p=pe(c);f=u===0?p.format(0,`day`):u<7?p.format(s,`day`):u<30?p.format(d*Math.max(1,Math.round(u/7)),`week`):u<365?p.format(d*Math.max(1,Math.round(u/30)),`month`):p.format(d*Math.max(1,Math.round(u/365)),`year`)}else{let e=Math.round((s-t.now)/1e3),n=Math.abs(e);if(n<45)f=u;else{let t=pe(c),r=e<0?-1:1,i=Math.round(n/60),a=Math.round(n/3600),o=Math.round(n/86400);f=n<3600?t.format(r*Math.max(1,i),`minute`):n<86400?t.format(r*Math.max(1,a),`hour`):o<7?t.format(r*Math.max(1,o),`day`):o<30?t.format(r*Math.max(1,Math.round(o/7)),`week`):o<365?t.format(r*Math.max(1,Math.round(o/30)),`month`):t.format(r*Math.max(1,Math.round(o/365)),`year`)}}return{datetime:r?n:o.toISOString(),title:me(o,n,c,l,r),label:f}}var ye=d(`<span class="smrt-activity-item__source svelte-1feuf58" data-smrt-part="source"> </span>`),be=d(`<a class="smrt-activity-item__context smrt-activity-item__context--link svelte-1feuf58" data-smrt-part="context"> </a>`),xe=d(`<span class="smrt-activity-item__context svelte-1feuf58" data-smrt-part="context"> </span>`),Se=d(`<span class="smrt-activity-item__job-status svelte-1feuf58" data-smrt-part="status"> </span>`),Ce=d(`<span class="smrt-activity-item__meta-text svelte-1feuf58" data-smrt-part="meta"> </span>`),we=d(`<time class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </time>`),Te=d(`<span class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </span>`),Ee=d(`<div class="smrt-activity-item__eyebrow svelte-1feuf58" data-smrt-part="eyebrow"><div class="smrt-activity-item__eyebrow-items svelte-1feuf58"><!> <!> <!> <!> <!></div> <!></div>`),De=d(`<code class="smrt-activity-item__code svelte-1feuf58" data-smrt-part="code"> </code>`),Oe=d(`<p class="smrt-activity-item__detail svelte-1feuf58" data-smrt-part="detail"> </p>`),ke=d(`<progress max="100" class="svelte-1feuf58"> </progress>`),Ae=d(`<span aria-hidden="true">✕</span>`),je=d(`<div class="smrt-activity-item__actions svelte-1feuf58" data-smrt-part="actions"><!> <!> <!></div>`),Me=d(`<article data-smrt-component="ActivityItem"><div class="smrt-activity-item__main svelte-1feuf58" data-smrt-part="body"><!> <div class="smrt-activity-item__heading svelte-1feuf58" data-smrt-part="heading"><!> <strong class="smrt-activity-item__title svelte-1feuf58" data-smrt-part="title"> </strong></div> <!> <!></div> <!></article>`);function Ne(e,t){h(t,!0);let n=new Set([`neutral`,`primary`,`success`,`warning`,`error`]),{locale:c,t:l}=re(),d=a(()=>t.locale?.trim()||c),m=a(()=>!!t.entry?.dismissed),g=a(()=>t.entry?t.entry.title:t.activity?.label??``),b=a(()=>t.entry?t.entry.detail:t.activity?.message),S=a(()=>t.entry?.code?.trim()||void 0),C=a(()=>t.entry?.sourceLabel?.trim()||t.entry?.source?.trim()||void 0),T=a(()=>t.entry?.context?.label?.trim()||void 0),D=a(()=>r(T)?se(t.entry?.context?.href):void 0),k=a(()=>{let e=t.entry?.status?.label?.trim();if(!e)return null;let r=t.entry?.status?.tone;return{label:e,tone:r&&n.has(r)?r:`neutral`}}),te=a(()=>t.entry?.meta?.trim()||void 0),M=a(()=>t.entry?void 0:t.activity?.status),ne=a(()=>t.entry?t.entry.occurredAt:t.activity?.updatedAt??t.activity?.createdAt),oe=a(()=>ve(r(ne),{locale:r(d),timeZone:t.timeZone,justNowLabel:l(N[`ui.activity_item.just_now`]),now:t.now})),ce=a(()=>!!(r(C)||r(T)||r(k)||r(te)||r(M)||r(oe))),le=a(()=>se(t.entry?t.entry.href:t.activity?.detailHref)),ue=a(()=>!(t.entry||!t.activity?.cancel||t.activity.status!==`queued`&&t.activity.status!==`running`)),de=a(()=>!!(t.entry&&r(m)&&t.onRestore)),fe=a(()=>!!(t.entry&&!r(m)&&t.onDismiss)),pe=a(()=>!!(r(le)||r(ue)||r(de)||r(fe)));var P=Me();let me;var he=w(P),ge=w(he),_e=e=>{var t=Ee(),n=w(t),a=w(n),o=e=>{var t=ye(),n=O(t,!0);A(()=>f(n,r(C))),v(e,t)};i(a,e=>{r(C)&&e(o)});var s=E(a,2),c=e=>{var t=y(),n=ee(t),a=e=>{var t=be(),n=O(t,!0);A(()=>{j(t,`href`,r(D)),f(n,r(T))}),v(e,t)},o=e=>{var t=xe(),n=O(t,!0);A(()=>f(n,r(T))),v(e,t)};i(n,e=>{r(D)?e(a):e(o,-1)}),v(e,t)};i(s,e=>{r(T)&&e(c)});var l=E(s,2),d=e=>{ie(e,{size:`sm`,get variant(){return r(k).tone},children:(e,t)=>{_();var n=p();A(()=>f(n,r(k).label)),v(e,n)},$$slots:{default:!0}})};i(l,e=>{r(k)&&e(d)});var m=E(l,2),h=e=>{var t=Se(),n=O(t,!0);A(()=>f(n,r(M))),v(e,t)};i(m,e=>{r(M)&&e(h)});var g=E(m,2),b=e=>{var t=Ce(),n=O(t,!0);A(()=>f(n,r(te))),v(e,t)};i(g,e=>{r(te)&&e(b)}),u(n);var x=E(n,2),S=e=>{var t=y(),n=ee(t),a=e=>{var t=we(),n=O(t,!0);A(()=>{j(t,`datetime`,r(oe).datetime),j(t,`title`,r(oe).title),f(n,r(oe).label)}),v(e,t)},o=e=>{var t=Te(),n=O(t,!0);A(()=>f(n,r(oe).label)),v(e,t)};i(n,e=>{r(oe).datetime?e(a):e(o,-1)}),v(e,t)};i(x,e=>{r(oe)&&e(S)}),u(t),v(e,t)};i(ge,e=>{r(ce)&&e(_e)});var Ne=E(ge,2),Pe=w(Ne),Fe=e=>{var t=De(),n=O(t,!0);A(()=>f(n,r(S))),v(e,t)};i(Pe,e=>{r(S)&&e(Fe)});var Ie=E(Pe,2),Le=O(Ie,!0);u(Ne);var Re=E(Ne,2),ze=e=>{var t=Oe(),n=O(t,!0);A(()=>f(n,r(b))),v(e,t)};i(Re,e=>{r(b)&&e(ze)});var Be=E(Re,2),Ve=e=>{var n=ke(),r=O(n);A(e=>{x(n,t.activity.progress),f(r,`${e??``}%`)},[()=>Math.round(t.activity.progress)]),v(e,n)};i(Be,e=>{!t.entry&&typeof t.activity?.progress==`number`&&e(Ve)}),u(he);var He=E(he,2),Ue=e=>{var n=je(),o=w(n),s=e=>{ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get href(){return r(le)},children:(e,t)=>{_();var n=p();A(e=>f(n,e),[()=>l(N[`ui.activity_item.view`])]),v(e,n)},$$slots:{default:!0}})};i(o,e=>{r(le)&&e(s)});var c=E(o,2),d=e=>{{let n=a(()=>l(N[`ui.activity_item.restore_item`],{title:t.entry.title}));ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get"aria-label"(){return r(n)},onclick:()=>void t.onRestore?.(t.entry.id),children:(e,t)=>{_();var n=p();A(e=>f(n,e),[()=>l(N[`ui.activity_item.restore`])]),v(e,n)},$$slots:{default:!0}})}},m=e=>{{let n=a(()=>l(N[`ui.activity_item.dismiss_item`],{title:t.entry.title})),i=a(()=>l(N[`ui.activity_item.dismiss_item`],{title:t.entry.title}));ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,class:`smrt-activity-item__dismiss`,get"aria-label"(){return r(n)},get title(){return r(i)},onclick:()=>void t.onDismiss?.(t.entry.id),children:(e,t)=>{var n=Ae();v(e,n)},$$slots:{default:!0}})}};i(c,e=>{r(de)&&t.entry?e(d):r(fe)&&t.entry&&e(m,1)});var h=E(c,2),g=e=>{ae(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,onclick:()=>t.activity.cancel?.(),children:(e,t)=>{_();var n=p();A(e=>f(n,e),[()=>l(N[`ui.activity_item.cancel`])]),v(e,n)},$$slots:{default:!0}})};i(h,e=>{r(ue)&&t.activity&&e(g)}),u(n),v(e,n)};i(He,e=>{r(pe)&&e(Ue)}),u(P),A(()=>{me=s(P,1,`smrt-activity-item svelte-1feuf58`,null,me,{"smrt-activity-item--dismissed":r(m)}),j(P,`data-status`,t.entry?r(k)?.tone:t.activity?.status),j(P,`data-dismissed`,r(m)?`true`:void 0),f(Le,r(g))}),v(e,P),o()}var Pe={edit:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z`,undo:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z`,done:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z`,eye:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z`,eyeOff:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z`,heading:`M5 4v3h5.5v12h3V7H19V4z`,headingOff:`M5 4v3h5.5v12h3V7H19V4zM3.5 2.5L2.1 3.9l18 18 1.4-1.4z`,trash:`M7 3h10v2h4v2H3V5h4V3zm-2 6h14v12H5V9zm4 2v8h2v-8H9zm4 0v8h2v-8h-2z`,add:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,more:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`,settings:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z`,calendar:`M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z`,users:`M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z`,shoppingBag:`M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-8 4c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2zm2-6c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm4 6c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2z`,receipt:`M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z`,book:`M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z`,briefcase:`M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z`,truck:`M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z`,package:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm5-7H4V4h16v3z`,wrench:`M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z`,fileText:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z`,layers:`M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z`,folder:`M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z`,bank:`M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z`,creditCard:`M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z`,school:`M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z`,home:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,repeat:`M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z`,tag:`M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z`,archive:`M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z`,placeholder:`M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10z`,chevronRight:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`,menu:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,chat:`M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z`,lightMode:`M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z`,darkMode:`M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z`,mic:`M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.91-3c-.49 0-.9.36-.98.85C16.52 14.2 14.47 16 12 16s-4.52-1.8-4.93-4.15c-.08-.49-.49-.85-.98-.85-.61 0-1.09.54-1 1.14.49 3 2.89 5.35 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08c3.02-.43 5.42-2.78 5.91-5.78.1-.6-.39-1.14-1-1.14z`,micOff:`M15 10.6V5c0-1.66-1.34-3-3-3-1.54 0-2.79 1.16-2.96 2.65L15 10.6zm3.08 1.96c.26-.5.43-1.05.43-1.56 0-.55-.45-1-1-1s-1 .45-1 1c0 .17-.03.34-.08.5l1.65 1.06zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73 4.27 3z`,close:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z`},Fe=`wrench`,Ie=`folder`,Le=`placeholder`,Re=[`folder`,`home`,`calendar`,`users`,`school`,`shoppingBag`,`truck`,`package`,`receipt`,`creditCard`,`bank`,`book`,`fileText`,`briefcase`,`wrench`,`layers`,`repeat`,`tag`,`archive`,`settings`];function ze(e){return Object.hasOwn(Pe,e)}function Be(e){let t=e-1;return t*t*t+1}function Ve(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Be}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=He(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function He(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Ue=`(prefers-reduced-motion: reduce)`,We=`--smrt-duration-short4`;function Ge(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(Ue).matches}function Ke(e){let t=/^(-?\d*\.?\d+)(ms|s)$/.exec(e.trim());if(!t)return 0;let n=Number(t[1])*(t[2]===`s`?1e3:1);return Number.isFinite(n)&&n>0?n:0}function qe(e,t){if(Ge()||typeof document>`u`||typeof getComputedStyle!=`function`)return 0;let n=t??document.documentElement;return Ke(getComputedStyle(n).getPropertyValue(e))}function Je(e,t,n={}){return Ve(e,t,{duration:qe(n.token??We,e)})}var Ye=Symbol(`smrt-shell-layout`);function Xe(e){return D(Ye,e),e}function Ze(){let e=c(Ye);if(!e)throw Error(`[useShellLayout] No AppShell layout found on context.`);return e}function Qe(){return c(Ye)??null}var $e=m(`<svg viewBox="0 0 24 24" fill="currentColor" focusable="false"><path></path></svg>`),et=d(`<span class="smrt-shell-section-icon svelte-9hljle" aria-hidden="true" data-smrt-component="ShellSectionIcon"><!></span>`);function tt(e,t){h(t,!0);let n=b(t,`size`,3,18),s=a(()=>!ze(t.name)&&!t.iconComponent);C(()=>{r(s)});var c=et(),l=w(c),d=e=>{var r=$e(),i=O(r);A(()=>{j(r,`width`,n()),j(r,`height`,n()),j(i,`d`,Pe[t.name])}),v(e,r)},f=a(()=>ze(t.name)),p=e=>{var r=y(),i=ee(r);g(i,()=>t.iconComponent,(e,r)=>{r(e,{get name(){return t.name},get size(){return n()}})}),v(e,r)},m=e=>{var t=$e(),r=O(t);A(()=>{j(t,`width`,n()),j(t,`height`,n()),j(r,`d`,Pe[Ie])}),v(e,t)};i(l,e=>{r(f)?e(d):t.iconComponent?e(p,1):e(m,-1)}),u(c),v(e,c),o()}var nt=new Set([`$$slots`,`$$events`,`$$legacy`,`label`,`icon`,`children`,`pressed`,`tooltip`,`size`,`type`,`class`]),rt=m(`<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path></path></svg>`),it=d(`<button><!></button>`);function at(e,t){h(t,!0);let n=b(t,`size`,3,18),r=b(t,`type`,3,`button`),a=b(t,`class`,3,``),s=k(t,nt);var c=it();T(c,()=>({...s,type:r(),class:`smrt-shell-icon-button ${a()??``}`,"aria-label":t.label,title:t.tooltip??t.label,"aria-pressed":t.pressed,"data-smrt-component":`ShellIconButton`}),void 0,void 0,void 0,`svelte-1mggjot`);var d=w(c),f=e=>{var n=y(),r=ee(n);l(r,()=>t.children),v(e,n)},p=e=>{var r=rt(),i=O(r);A(()=>{j(r,`width`,n()),j(r,`height`,n()),j(i,`d`,Pe[t.icon])}),v(e,r)};i(d,e=>{t.children?e(f):t.icon&&e(p,1)}),u(c),v(e,c),o()}function ot(e,t){return Math.max(0,Math.min(e,t))}var st=class{options;#e=S();get drag(){return r(this.#e)}set drag(e){M(this.#e,e,!0)}#t=S(``);get announcement(){return r(this.#t)}set announcement(e){M(this.#t,e,!0)}#n=S();get focusItemId(){return r(this.#n)}set focusItemId(e){M(this.#n,e,!0)}#r=S();get suppressedSelectionId(){return r(this.#r)}set suppressedSelectionId(e){M(this.#r,e,!0)}#i=S(!1);get pending(){return r(this.#i)}set pending(e){M(this.#i,e,!0)}#a=S();get pointerSession(){return r(this.#a)}set pointerSession(e){M(this.#a,e,!0)}constructor(e){this.options=e,C(()=>{if(!this.focusItemId)return;let e=this.focusItemId;this.focusItemId=void 0,te().then(()=>{let t=this.options.root(),n=t?Array.from(t.querySelectorAll(this.options.selectors.item)).find(t=>t.dataset[this.options.selectors.itemKey]===e):void 0;(n?this.options.focusTarget?this.options.focusTarget(n):n:void 0)?.focus()})})}get movable(){return this.options.enabled()&&!this.pending}get nativeDraggable(){return this.movable&&this.pointerSession===void 0}get containers(){return this.options.containers()}itemsIn(e,t){let n=this.options.itemIds(e);return t?n.filter(e=>e!==t):n}findContainer(e){return this.containers.find(t=>t.id===e)}positionFor(e){if(this.options.itemLabel(e)!==void 0)for(let t of this.containers){let n=this.itemsIn(t.id).indexOf(e);if(n>=0)return{containerId:t.id,index:n}}}label(e){return this.options.itemLabel(e)??``}say(e){this.announcement=this.options.announce(e)}pickup(e,t){if(!this.movable)return;let n=this.positionFor(e);n&&(this.drag={itemId:e,source:n,target:{...n},mode:t},this.say({type:`pickup`,item:this.label(e),destinations:this.containers.filter(e=>!e.disabled).map(e=>e.label)}))}announcePosition(e){let t=this.findContainer(e.target.containerId);t&&this.options.itemLabel(e.itemId)!==void 0&&this.say({type:`position`,item:this.label(e.itemId),container:t.label,position:e.target.index+1,count:this.itemsIn(t.id,e.itemId).length+1})}moveKeyboardTarget(e,t){let n=this.drag;if(n?.mode!==`keyboard`)return;let r=this.options.orientation?.()===`vertical`,i={...n.target};if(this.options.flow?.()){let r=e===`horizontal`&&this.isRtl(),a=this.itemsIn(i.containerId,n.itemId).length;i.index=ot(i.index+(r?-t:t),a),this.drag={...n,target:i},this.announcePosition(this.drag);return}let a=!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId;if(e===`vertical`){if(a&&!r)return;let e=this.itemsIn(i.containerId,n.itemId).length,o=a?t<0?-1:e+1:i.index+t;if(r&&(o<0||o>e)){let e=this.containers.findIndex(e=>e.id===i.containerId),r=this.containers[e+t];if(!r)return;if(r.disabled){this.say({type:`unavailable`,container:r.label});return}i.containerId=r.id,i.index=t<0?this.itemsIn(r.id,n.itemId).length:0}else i.index=ot(o,e)}else{if(r)return;let e=this.containers.findIndex(e=>e.id===i.containerId),a=this.containers[e+t];if(!a)return;if(a.disabled){this.say({type:`unavailable`,container:a.label});return}i.containerId=a.id,i.index=ot(i.index,this.itemsIn(a.id,n.itemId).length)}!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId&&(i.index=n.source.index),this.drag={...n,target:i},this.announcePosition(this.drag)}isRtl(){let e=this.options.root();return e!==void 0&&typeof getComputedStyle==`function`&&getComputedStyle(e).direction===`rtl`}async drop(){let e=this.drag;if(!e)return;let t=this.options.itemLabel(e.itemId),n=this.findContainer(e.target.containerId),r=t!==void 0&&this.findContainer(e.source.containerId)!==void 0&&n!==void 0&&!n.disabled;if(this.drag=void 0,this.suppressSelection(e.itemId),r&&t!==void 0&&n){if(e.source.containerId===e.target.containerId&&e.source.index===e.target.index)this.focusItemId=e.itemId;else{this.pending=!0;try{await this.options.commit({itemId:e.itemId,source:e.source,target:e.target})}catch{this.say({type:`failed`,item:t}),this.focusItemId=e.itemId;return}finally{this.pending=!1}this.say({type:`drop`,item:t,container:n.label,position:e.target.index+1,count:this.itemsIn(n.id,e.itemId).length+1}),this.focusItemId=e.itemId}}}cancel(e=!0,t=!0){let n=this.drag;if(!n)return;let r=this.options.itemLabel(n.itemId);r!==void 0&&e&&this.say({type:`cancel`,item:r}),r!==void 0&&t&&(this.focusItemId=n.itemId),this.suppressSelection(n.itemId),this.drag=void 0}suppressSelection(e){this.suppressedSelectionId=e,window.setTimeout(()=>{this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0)},0)}consumeClick(e){return this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0,!0)}keydown(e,t){let n=this.drag;if(n)n.itemId===t&&n.mode===`keyboard`&&(e.key===`Escape`?(e.preventDefault(),this.cancel()):e.key===` `||e.key===`Enter`?(e.preventDefault(),this.drop()):e.key===`ArrowLeft`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,-1)):e.key===`ArrowRight`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,1)):e.key===`ArrowUp`?(e.preventDefault(),this.moveKeyboardTarget(`vertical`,-1)):e.key===`ArrowDown`&&(e.preventDefault(),this.moveKeyboardTarget(`vertical`,1)));else if(e.key===` `||e.key===`Enter`){if(!this.movable)return;e.preventDefault(),this.pickup(t,`keyboard`)}}blur(e,t){let n=this.drag;if(n?.mode!==`keyboard`||n.itemId!==t)return;let r=e.relatedTarget,i=e.currentTarget;r instanceof Node&&i instanceof Node&&i.contains(r)||this.cancel(!0,!1)}dragStart(e,t){this.movable?(this.pickup(t,`pointer`),e.dataTransfer?.setData(`text/plain`,t),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)):e.preventDefault()}dragEnd(){this.drag?.mode===`pointer`&&this.cancel()}pointerDown(e,t){this.movable&&e.button===0&&(this.pointerSession={itemId:t,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,active:!1},e.currentTarget.setPointerCapture?.(e.pointerId))}elementAtPointer(e){return document.elementFromPoint?.(e.clientX,e.clientY)??e.target}setPointerTargetFromElement(e,t,n){let r=this.options.root();if(!e||!r?.contains(e))return;let{selectors:i}=this.options,a=e.closest(i.container)?.dataset[i.containerKey];if(!a)return;let o=this.findContainer(a);if(!o||o.disabled)return o;let s=e.closest(i.item);if(!s)return this.pointerTarget(a,this.itemsIn(a,this.drag?.itemId).length),o;let c=this.itemsIn(a).indexOf(s.dataset[i.itemKey]??``);return c<0||this.pointerTarget(a,this.insertionIndex(a,c,s,t,n)),o}insertionIndex(e,t,n,r,i){let a=n.getBoundingClientRect(),o=r<a.top+a.height/2;if(this.options.flow?.()&&i!==void 0){let e=this.options.root()?.getBoundingClientRect().width??0;if(a.width<e*.95){let e=a.left+a.width/2;o=this.isRtl()?i>e:i<e}}let s=t+ +!o,c=this.drag;return c?.source.containerId===e&&s>c.source.index&&--s,s}finishPointerSession(e,t=!1){let n=this.pointerSession;this.pointerSession=void 0;let r=e.currentTarget;if(r.hasPointerCapture?.(e.pointerId)&&r.releasePointerCapture(e.pointerId),!n?.active||this.drag?.itemId!==n.itemId)return;if(t){this.cancel();return}let i=this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX);i?.disabled?(this.say({type:`unavailable`,container:i.label}),this.cancel(!1)):i?this.drop():this.cancel()}pointerUp(e){this.finishPointerSession(e)}pointerCancel(e){this.finishPointerSession(e,!0)}pointerMove(e){let t=this.pointerSession;if(t&&t.pointerId===e.pointerId){if(!t.active){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<6)return;this.pickup(t.itemId,`pointer`),this.pointerSession={...t,active:!0}}e.preventDefault(),this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX)}}pointerTarget(e,t){let n=this.drag;if(n?.mode!==`pointer`)return;if(!this.options.allowSameContainerReorder()&&e===n.source.containerId){this.drag={...n,target:{...n.source}};return}let r=this.itemsIn(e,n.itemId).length;this.drag={...n,target:{containerId:e,index:ot(t,r)}}}dropOnItem(e,t,n){if(e.preventDefault(),this.drag?.mode!==`pointer`)return;let r=this.findContainer(t);r?.disabled?(this.say({type:`unavailable`,container:r.label}),this.cancel(!1)):(this.pointerTarget(t,this.insertionIndex(t,n,e.currentTarget,e.clientY,e.clientX)),this.drop())}dropOnContainer(e,t){e.preventDefault();let n=this.findContainer(t);n?.disabled?(this.say({type:`unavailable`,container:n.label}),this.cancel(!1)):(this.pointerTarget(t,this.itemsIn(t,this.drag?.itemId).length),this.drop())}};function ct(e){return new st(e)}var lt=BigInt(2**32-1),ut=BigInt(32);function dt(e,t=!1){return t?{h:Number(e<),l:Number(e>>ut<)}:{h:Number(e>>ut<)|0,l:Number(e<)|0}}function ft(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=dt(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}new Uint8Array(new Uint32Array([287454020]).buffer)[0];var pt=BigInt(0),mt=BigInt(1),ht=BigInt(2),gt=BigInt(7),_t=BigInt(256),vt=BigInt(113),yt=[],bt=[],xt=[];for(let e=0,t=mt,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],yt.push(2*(5*r+n)),bt.push((e+1)*(e+2)/2%64);let i=pt;for(let e=0;e<7;e++)t=(t<<mt^(t>>gt)*vt)%_t,t&ht&&(i^=mt<<(mt<<BigInt(e))-mt);xt.push(i)}var St=ft(xt,!0);St[0],St[1];var Ct=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,wt=Math.ceil,F=Math.floor,I=`[BigNumber Error] `,Tt=I+`Number primitive has more than 15 significant digits: `,L=0x5af3107a4000,R=14,Et=9007199254740991,Dt=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000],Ot=1e7,z=1e9;function kt(e){var t,n,r,i=v.prototype={constructor:v,toString:null,valueOf:null},a=new v(1),o=20,s=4,c=-7,l=21,u=-1e7,d=1e7,f=!1,p=1,m=0,h={prefix:``,groupSize:3,secondaryGroupSize:0,groupSeparator:`,`,decimalSeparator:`.`,fractionGroupSize:0,fractionGroupSeparator:`\xA0`,suffix:``},g=`0123456789abcdefghijklmnopqrstuvwxyz`,_=!0;function v(e,t){var i,a,c,l,f,p,m,h,y=this;if(!(y instanceof v))return new v(e,t);if(t==null){if(e&&e._isBigNumber===!0){y.s=e.s,!e.c||e.e>d?y.c=y.e=null:e.e<u?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice());return}if((p=typeof e==`number`)&&e*0==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,f=e;f>=10;f/=10,l++);l>d?y.c=y.e=null:(y.e=l,y.c=[e]);return}h=String(e)}else{if(!Ct.test(h=String(e)))return r(y,h,p);y.s=h.charCodeAt(0)==45?(h=h.slice(1),-1):1}(l=h.indexOf(`.`))>-1&&(h=h.replace(`.`,``)),(f=h.search(/e/i))>0?(l<0&&(l=f),l+=+h.slice(f+1),h=h.substring(0,f)):l<0&&(l=h.length)}else{if(H(t,2,g.length,`Base`),t==10&&_)return y=new v(e),S(y,o+y.e+1,s);if(h=String(e),p=typeof e==`number`){if(e*0!=0)return r(y,h,p,t);if(y.s=1/e<0?(h=h.slice(1),-1):1,v.DEBUG&&h.replace(/^0\.0*|\./,``).length>15)throw Error(Tt+e)}else y.s=h.charCodeAt(0)===45?(h=h.slice(1),-1):1;for(i=g.slice(0,t),l=f=0,m=h.length;f<m;f++)if(i.indexOf(a=h.charAt(f))<0){if(a==`.`){if(f>l){l=m;continue}}else if(!c&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){c=!0,f=-1,l=0;continue}return r(y,String(e),p,t)}p=!1,h=n(h,t,10,y.s),(l=h.indexOf(`.`))>-1?h=h.replace(`.`,``):l=h.length}for(f=0;h.charCodeAt(f)===48;f++);for(m=h.length;h.charCodeAt(--m)===48;);if(h=h.slice(f,++m)){if(m-=f,p&&v.DEBUG&&m>15&&(e>Et||e!==F(e)))throw Error(Tt+y.s*e);if((l=l-f-1)>d)y.c=y.e=null;else if(l<u)y.c=[y.e=0];else{if(y.e=l,y.c=[],f=(l+1)%R,l<0&&(f+=R),f<m){for(f&&y.c.push(+h.slice(0,f)),m-=R;f<m;)y.c.push(+h.slice(f,f+=R));f=R-(h=h.slice(f)).length}else f-=m;for(;f--;h+=`0`);y.c.push(+h)}}else y.c=[y.e=0]}v.clone=kt,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.EUCLID=9,v.config=v.set=function(e){var t,n;if(e!=null){if(typeof e==`object`){if(e.hasOwnProperty(t=`DECIMAL_PLACES`)&&(n=e[t],H(n,0,z,t),o=n),e.hasOwnProperty(t=`ROUNDING_MODE`)&&(n=e[t],H(n,0,8,t),s=n),e.hasOwnProperty(t=`EXPONENTIAL_AT`)&&(n=e[t],n&&n.pop?(H(n[0],-z,0,t),H(n[1],0,z,t),c=n[0],l=n[1]):(H(n,-z,z,t),c=-(l=n<0?-n:n))),e.hasOwnProperty(t=`RANGE`)){if(n=e[t],n&&n.pop)H(n[0],-z,-1,t),H(n[1],1,z,t),u=n[0],d=n[1];else if(H(n,-z,z,t),n)u=-(d=n<0?-n:n);else throw Error(I+t+` cannot be zero: `+n)}if(e.hasOwnProperty(t=`CRYPTO`)){if(n=e[t],n===!!n){if(n){if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=n;else throw f=!n,Error(I+`crypto unavailable`)}else f=n}else throw Error(I+t+` not true or false: `+n)}if(e.hasOwnProperty(t=`MODULO_MODE`)&&(n=e[t],H(n,0,9,t),p=n),e.hasOwnProperty(t=`POW_PRECISION`)&&(n=e[t],H(n,0,z,t),m=n),e.hasOwnProperty(t=`FORMAT`)){if(n=e[t],typeof n==`object`)h=n;else throw Error(I+t+` not an object: `+n)}if(e.hasOwnProperty(t=`ALPHABET`)){if(n=e[t],typeof n==`string`&&!/^.?$|[+\-.\s]|(.).*\1/.test(n))_=n.slice(0,10)==`0123456789`,g=n;else throw Error(I+t+` invalid: `+n)}}else throw Error(I+`Object expected: `+e)}return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[c,l],RANGE:[u,d],CRYPTO:f,MODULO_MODE:p,POW_PRECISION:m,FORMAT:h,ALPHABET:g}},v.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!v.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;out:if({}.toString.call(r)==`[object Array]`){if((a===1||a===-1)&&i>=-z&&i<=z&&i===F(i)){if(r[0]===0){if(i===0&&r.length===1)return!0;break out}if(t=(i+1)%R,t<1&&(t+=R),String(r[0]).length==t){for(t=0;t<r.length;t++)if(n=r[t],n<0||n>=L||n!==F(n))break out;if(n!==0)return!0}}}else if(r===null&&i===null&&(a===null||a===1||a===-1))return!0;throw Error(I+`Invalid BigNumber: `+e)},v.maximum=v.max=function(){return b(arguments,-1)},v.minimum=v.min=function(){return b(arguments,1)},v.random=(function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return F(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var n,r,i,s,c,l=0,u=[],d=new v(a);if(e==null?e=o:H(e,0,z),s=wt(e/R),f){if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(s*=2));l<s;)c=n[l]*131072+(n[l+1]>>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(u.push(c%0x5af3107a4000),l+=2);l=s/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(s*=7);l<s;)c=(n[l]&31)*281474976710656+n[l+1]*1099511627776+n[l+2]*4294967296+n[l+3]*16777216+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6],c>=9e15?crypto.randomBytes(7).copy(n,l):(u.push(c%0x5af3107a4000),l+=7);l=s/7}else throw f=!1,Error(I+`crypto unavailable`)}if(!f)for(;l<s;)c=t(),c<9e15&&(u[l++]=c%0x5af3107a4000);for(s=u[--l],e%=R,s&&e&&(c=Dt[R-e],u[l]=F(s/c)*c);u[l]===0;u.pop(),l--);if(l<0)u=[i=0];else{for(i=-1;u[0]===0;u.splice(0,1),i-=R);for(l=1,c=u[0];c>=10;c/=10,l++);l<R&&(i-=R-l)}return d.e=i,d.c=u,d}})(),v.sum=function(){for(var e=1,t=arguments,n=new v(t[0]);e<t.length;)n=n.plus(t[e++]);return n},n=(function(){var e=`0123456789`;function n(e,t,n,r){for(var i,a=[0],o,s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(a[i+1]??(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,a,c,l){var u,d,f,p,h,_,y,b,x=r.indexOf(`.`),S=o,C=s;for(x>=0&&(p=m,m=0,r=r.replace(`.`,``),b=new v(i),_=b.pow(r.length-x),m=p,b.c=n(U(V(_.c),_.e,`0`),10,a,e),b.e=b.c.length),y=n(r,i,a,l?(u=g,e):(u=e,g)),f=p=y.length;y[--p]==0;y.pop());if(!y[0])return u.charAt(0);if(x<0?--f:(_.c=y,_.e=f,_.s=c,_=t(_,b,S,C,a),y=_.c,h=_.r,f=_.e),d=f+S+1,x=y[d],p=a/2,h=h||d<0||y[d+1]!=null,h=C<4?(x!=null||h)&&(C==0||C==(_.s<0?3:2)):x>p||x==p&&(C==4||h||C==6&&y[d-1]&1||C==(_.s<0?8:7)),d<1||!y[0])r=h?U(u.charAt(1),-S,u.charAt(0)):u.charAt(0);else{if(y.length=d,h)for(--a;++y[--d]>a;)y[d]=0,d||(++f,y=[1].concat(y));for(p=y.length;!y[--p];);for(x=0,r=``;x<=p;r+=u.charAt(y[x++]));r=U(r,f,u.charAt(0))}return r}})(),t=(function(){function e(e,t,n){var r,i,a,o,s=0,c=e.length,l=t%Ot,u=t/Ot|0;for(e=e.slice();c--;)a=e[c]%Ot,o=e[c]/Ot|0,r=u*a+o*l,i=l*a+r%Ot*Ot+s,s=(i/n|0)+(r/Ot|0)+u*o,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var c,l,u,d,f,p,m,h,g,_,y,b,x,C,w,T,E,D=r.s==i.s?1:-1,O=r.c,k=i.c;if(!O||!O[0]||!k||!k[0])return new v(!r.s||!i.s||(O?k&&O[0]==k[0]:!k)?NaN:O&&O[0]==0||!k?D*0:D/0);for(h=new v(D),g=h.c=[],l=r.e-i.e,D=a+l+1,s||(s=L,l=B(r.e/R)-B(i.e/R),D=D/R|0),u=0;k[u]==(O[u]||0);u++);if(k[u]>(O[u]||0)&&l--,D<0)g.push(1),d=!0;else{for(C=O.length,T=k.length,u=0,D+=2,f=F(s/(k[0]+1)),f>1&&(k=e(k,f,s),O=e(O,f,s),T=k.length,C=O.length),x=T,_=O.slice(0,T),y=_.length;y<T;_[y++]=0);E=k.slice(),E=[0].concat(E),w=k[0],k[1]>=s/2&&w++;do{if(f=0,c=t(k,_,T,y),c<0){if(b=_[0],T!=y&&(b=b*s+(_[1]||0)),f=F(b/w),f>1)for(f>=s&&(f=s-1),p=e(k,f,s),m=p.length,y=_.length;t(p,_,m,y)==1;)f--,n(p,T<m?E:k,m,s),m=p.length,c=1;else f==0&&(c=f=1),p=k.slice(),m=p.length;if(m<y&&(p=[0].concat(p)),n(_,p,y,s),y=_.length,c==-1)for(;t(k,_,T,y)<1;)f++,n(_,T<y?E:k,y,s),y=_.length}else c===0&&(f++,_=[0]);g[u++]=f,_[0]?_[y++]=O[x]||0:(_=[O[x]],y=1)}while((x++<C||_[0]!=null)&&D--);d=_[0]!=null,g[0]||g.splice(0,1)}if(s==L){for(u=1,D=g[0];D>=10;D/=10,u++);S(h,a+(h.e=u+l*R-1)+1,o,d)}else h.e=l,h.r=+d;return h}})();function y(e,t,n,r){var i,a,o,u,d;if(n==null?n=s:H(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,t==null)d=V(e.c),d=r==1||r==2&&(o<=c||o>=l)?Mt(d,o):U(d,o,`0`);else if(e=S(new v(e),t,n),a=e.e,d=V(e.c),u=d.length,r==1||r==2&&(t<=a||a<=c)){for(;u<t;d+=`0`,u++);d=Mt(d,a)}else if(t-=o+(r===2&&a>o),d=U(d,a,`0`),a+1>u){if(--t>0)for(d+=`.`;t--;d+=`0`);}else if(t+=a-u,t>0)for(a+1==u&&(d+=`.`);t--;d+=`0`);return e.s<0&&i?`-`+d:d}function b(e,t){for(var n,r,i=1,a=new v(e[0]);i<e.length;i++)r=new v(e[i]),(!r.s||(n=At(a,r))===t||n===0&&a.s===t)&&(a=r);return a}function x(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*R-1)>d?e.c=e.e=null:n<u?e.c=[e.e=0]:(e.e=n,e.c=t),e}r=(function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,o,s,c){var l,u=s?o:o.replace(i,``);if(r.test(u))a.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,function(e,t,n){return l=(n=n.toLowerCase())==`x`?16:n==`b`?2:8,!c||c==l?t:e}),c&&(l=c,u=u.replace(t,`$1`).replace(n,`0.$1`)),o!=u))return new v(u,l);if(v.DEBUG)throw Error(I+`Not a`+(c?` base `+c:``)+` number: `+o);a.s=null}a.c=a.e=null}})();function S(e,t,n,r){var i,a,o,s,c,l,f,p=e.c,m=Dt;if(p){out:{for(i=1,s=p[0];s>=10;s/=10,i++);if(a=t-i,a<0)a+=R,o=t,c=p[l=0],f=F(c/m[i-o-1]%10);else if(l=wt((a+1)/R),l>=p.length){if(r){for(;p.length<=l;p.push(0));c=f=0,i=1,a%=R,o=a-R+1}else break out}else{for(c=s=p[l],i=1;s>=10;s/=10,i++);a%=R,o=a-R+i,f=o<0?0:F(c/m[i-o-1]%10)}if(r=r||t<0||p[l+1]!=null||(o<0?c:c%m[i-o-1]),r=n<4?(f||r)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||r||n==6&&(a>0?o>0?c/m[i-o]:0:p[l-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=m[(R-t%R)%R],e.e=-t||0):p[0]=e.e=0,e;if(a==0?(p.length=l,s=1,l--):(p.length=l+1,s=m[R-a],p[l]=o>0?F(c/m[i-o]%m[o])*s:0),r)for(;;)if(l==0){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,p[0]==L&&(p[0]=1));break}else{if(p[l]+=s,p[l]!=L)break;p[l--]=0,s=1}for(a=p.length;p[--a]===0;p.pop());}e.e>d?e.c=e.e=null:e.e<u&&(e.c=[e.e=0])}return e}function C(e){var t,n=e.e;return n===null?e.toString():(t=V(e.c),t=n<=c||n>=l?Mt(t,n):U(t,n,`0`),e.s<0?`-`+t:t)}return i.absoluteValue=i.abs=function(){var e=new v(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return At(this,new v(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,i,a=this;if(e!=null)return H(e,0,z),t==null?t=s:H(t,0,8),S(new v(a),e+a.e+1,t);if(!(n=a.c))return null;if(r=((i=n.length-1)-B(this.e/R))*R,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,n){return t(this,new v(e,n),o,s)},i.dividedToIntegerBy=i.idiv=function(e,n){return t(this,new v(e,n),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,i,o,c,l,u,d,f,p=this;if(e=new v(e),e.c&&!e.isInteger())throw Error(I+`Exponent not an integer: `+C(e));if(t!=null&&(t=new v(t)),l=e.e>14,!p.c||!p.c[0]||p.c[0]==1&&!p.e&&p.c.length==1||!e.c||!e.c[0])return f=new v((+C(p))**(l?e.s*(2-jt(e)):+C(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new v(NaN);r=!u&&p.isInteger()&&t.isInteger(),r&&(p=p.mod(t))}else if(e.e>9&&(p.e>0||p.e<-1||(p.e==0?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return o=p.s<0&&jt(e)?-0:0,p.e>-1&&(o=1/o),new v(u?1/o:o);else m&&(o=wt(m/R+2));for(l?(n=new v(.5),u&&(e.s=1),d=jt(e)):(i=Math.abs(+C(e)),d=i%2),f=new v(a);;){if(d){if(f=f.times(p),!f.c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}if(i){if(i=F(i/2),i===0)break;d=i%2}else if(e=e.times(n),S(e,e.e+1,1),e.e>14)d=jt(e);else{if(i=+C(e),i===0)break;d=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?f:(u&&(f=a.div(f)),t?f.mod(t):o?S(f,m,s,c):f)},i.integerValue=function(e){var t=new v(this);return e==null?e=s:H(e,0,8),S(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return At(this,new v(e,t))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return At(this,new v(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return(t=At(this,new v(e,t)))===1||t===0},i.isInteger=function(){return!!this.c&&B(this.e/R)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return At(this,new v(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return(t=At(this,new v(e,t)))===-1||t===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(e,t){var n,r,i,a,o=this,c=o.s;if(e=new v(e,t),t=e.s,!c||!t)return new v(NaN);if(c!=t)return e.s=-t,o.plus(e);var l=o.e/R,u=e.e/R,d=o.c,f=e.c;if(!l||!u){if(!d||!f)return d?(e.s=-t,e):new v(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new v(d[0]?o:s==3?-0:0)}if(l=B(l),u=B(u),d=d.slice(),c=l-u){for((a=c<0)?(c=-c,i=d):(u=l,i=f),i.reverse(),t=c;t--;i.push(0));i.reverse()}else for(r=(a=(c=d.length)<(t=f.length))?c:t,c=t=0;t<r;t++)if(d[t]!=f[t]){a=d[t]<f[t];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),t=(r=f.length)-(n=d.length),t>0)for(;t--;d[n++]=0);for(t=L-1;r>c;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=L}d[r]-=f[r]}for(;d[0]==0;d.splice(0,1),--u);return d[0]?x(e,d,u):(e.s=s==3?-1:1,e.c=[e.e=0],e)},i.modulo=i.mod=function(e,n){var r,i,a=this;return e=new v(e,n),!a.c||!e.s||e.c&&!e.c[0]?new v(NaN):!e.c||a.c&&!a.c[0]?new v(a):(p==9?(i=e.s,e.s=1,r=t(a,e,0,3),e.s=i,r.s*=i):r=t(a,e,0,p),e=a.minus(r.times(e)),!e.c[0]&&p==1&&(e.s=a.s),e)},i.multipliedBy=i.times=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=this,y=_.c,b=(e=new v(e,t)).c;if(!y||!b||!y[0]||!b[0])return!_.s||!e.s||y&&!y[0]&&!b||b&&!b[0]&&!y?e.c=e.e=e.s=null:(e.s*=_.s,!y||!b?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(r=B(_.e/R)+B(e.e/R),e.s*=_.s,c=y.length,d=b.length,c<d&&(m=y,y=b,b=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(h=L,g=Ot,i=d;--i>=0;){for(n=0,f=b[i]%g,p=b[i]/g|0,o=c,a=i+o;a>i;)l=y[--o]%g,u=y[o]/g|0,s=p*l+u*f,l=f*l+s%g*g+m[a]+n,n=(l/h|0)+(s/g|0)+p*u,m[a--]=l%h;m[a]=n}return n?++r:m.splice(0,1),x(e,m,r)},i.negated=function(){var e=new v(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,i=r.s;if(e=new v(e,t),t=e.s,!i||!t)return new v(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/R,o=e.e/R,s=r.c,c=e.c;if(!a||!o){if(!s||!c)return new v(i/0);if(!s[0]||!c[0])return c[0]?e:new v(s[0]?r:i*0)}if(a=B(a),o=B(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=c):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,t=c.length,i-t<0&&(n=c,c=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/L|0,s[t]=L===s[t]?0:s[t]%L;return i&&(s=[i].concat(s),++o),x(e,s,o)},i.precision=i.sd=function(e,t){var n,r,i,a=this;if(e!=null&&e!==!!e)return H(e,1,z),t==null?t=s:H(t,0,8),S(new v(a),e,t);if(!(n=a.c))return null;if(i=n.length-1,r=i*R+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},i.shiftedBy=function(e){return H(e,-Et,Et),this.times(`1e`+e)},i.squareRoot=i.sqrt=function(){var e,n,r,i,a,c=this,l=c.c,u=c.s,d=c.e,f=o+4,p=new v(`0.5`);if(u!==1||!l||!l[0])return new v(!u||u<0&&(!l||l[0])?NaN:l?c:1/0);if(u=Math.sqrt(+C(c)),u==0||u==1/0?(n=V(l),(n.length+d)%2==0&&(n+=`0`),u=Math.sqrt(+n),d=B((d+1)/2)-(d<0||d%2),u==1/0?n=`5e`+d:(n=u.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+d),r=new v(n)):r=new v(u+``),r.c[0]){for(d=r.e,u=d+f,u<3&&(u=0);;)if(a=r,r=p.times(a.plus(t(c,a,f,1))),V(a.c).slice(0,u)===(n=V(r.c)).slice(0,u)){if(r.e<d&&--u,n=n.slice(u-3,u+1),n==`9999`||!i&&n==`4999`){if(!i&&(S(a,a.e+o+2,0),a.times(a).eq(c))){r=a;break}f+=4,u+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(S(r,r.e+o+2,1),e=!r.times(r).eq(c));break}}}return S(r,r.e+o+1,s,e)},i.toExponential=function(e,t){return e!=null&&(H(e,0,z),e++),y(this,e,t,1)},i.toFixed=function(e,t){return e!=null&&(H(e,0,z),e=e+this.e+1),y(this,e,t)},i.toFormat=function(e,t,n){var r,i=this;if(n==null)e!=null&&t&&typeof t==`object`?(n=t,t=null):e&&typeof e==`object`?(n=e,e=t=null):n=h;else if(typeof n!=`object`)throw Error(I+`Argument not an object: `+n);if(r=i.toFixed(e,t),i.c){var a,o=r.split(`.`),s=+n.groupSize,c=+n.secondaryGroupSize,l=n.groupSeparator||``,u=o[0],d=o[1],f=i.s<0,p=f?u.slice(1):u,m=p.length;if(c&&(a=s,s=c,c=a,m-=a),s>0&&m>0){for(a=m%s||s,u=p.substr(0,a);a<m;a+=s)u+=l+p.substr(a,s);c>0&&(u+=l+p.slice(a)),f&&(u=`-`+u)}r=d?u+(n.decimalSeparator||``)+((c=+n.fractionGroupSize)?d.replace(RegExp(`\\d{`+c+`}\\B`,`g`),`$&`+(n.fractionGroupSeparator||``)):d):u}return(n.prefix||``)+r+(n.suffix||``)},i.toFraction=function(e){var n,r,i,o,c,l,u,f,p,m,h,g,_=this,y=_.c;if(e!=null&&(u=new v(e),!u.isInteger()&&(u.c||u.s!==1)||u.lt(a)))throw Error(I+`Argument `+(u.isInteger()?`out of range: `:`not an integer: `)+C(u));if(!y)return new v(_);for(n=new v(a),p=r=new v(a),i=f=new v(a),g=V(y),c=n.e=g.length-_.e-1,n.c[0]=Dt[(l=c%R)<0?R+l:l],e=!e||u.comparedTo(n)>0?c>0?n:p:u,l=d,d=1/0,u=new v(g),f.c[0]=0;m=t(u,n,0,1),o=r.plus(m.times(i)),o.comparedTo(e)!=1;)r=i,i=o,p=f.plus(m.times(o=p)),f=o,n=u.minus(m.times(o=n)),u=o;return o=t(e.minus(r),i,0,1),f=f.plus(o.times(p)),r=r.plus(o.times(i)),f.s=p.s=_.s,c*=2,h=t(p,i,c,s).minus(_).abs().comparedTo(t(f,r,c,s).minus(_).abs())<1?[p,i]:[f,r],d=l,h},i.toNumber=function(){return+C(this)},i.toPrecision=function(e,t){return e!=null&&H(e,1,z),y(this,e,t,2)},i.toString=function(e){var t,r=this,i=r.s,a=r.e;return a===null?i?(t=`Infinity`,i<0&&(t=`-`+t)):t=`NaN`:(e==null?t=a<=c||a>=l?Mt(V(r.c),a):U(V(r.c),a,`0`):e===10&&_?(r=S(new v(r),o+a+1,s),t=U(V(r.c),r.e,`0`)):(H(e,2,g.length,`Base`),t=n(U(V(r.c),a,`0`),10,e,i,!0)),i<0&&r.c[0]&&(t=`-`+t)),t},i.valueOf=i.toJSON=function(){return C(this)},i._isBigNumber=!0,i[Symbol.toStringTag]=`BigNumber`,i[Symbol.for(`nodejs.util.inspect.custom`)]=i.valueOf,e!=null&&v.set(e),v}function B(e){var t=e|0;return e>0||e===t?t:t-1}function V(e){for(var t,n,r=1,i=e.length,a=e[0]+``;r<i;){for(t=e[r++]+``,n=R-t.length;n--;t=`0`+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function At(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,c=e.e,l=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=c==l,!i||!a)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(s=(c=i.length)<(l=a.length)?c:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function H(e,t,n,r){if(e<t||e>n||e!==F(e))throw Error(I+(r||`Argument`)+(typeof e==`number`?e<t||e>n?` out of range: `:` not an integer: `:` not a primitive number: `)+String(e))}function jt(e){var t=e.c.length-1;return B(e.e/R)==t&&e.c[t]%2!=0}function Mt(e,t){return(e.length>1?e.charAt(0)+`.`+e.slice(1):e)+(t<0?`e`:`e+`)+t}function U(e,t,n){var r,i;if(t<0){for(i=n+`.`;++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+`.`+e.slice(t));return e}kt(),typeof globalThis<`u`&&globalThis.crypto&&globalThis.crypto.getRandomValues,Array.from({length:26},(e,t)=>String.fromCharCode(t+97));var Nt=e(n(((e,n,r)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(r,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:!e.hasOwnProperty(i)&&l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){typeof e==`string`?n[e.toLowerCase()]=!0:(f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`))},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})}))(),1);function Pt(e){return e.toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function Ft(e){return e.replace(/([A-Z])/g,`_$1`).toUpperCase().replace(/^_/,``)}function It(e,t){switch(t){case`number`:{let t=Number(e);if(Number.isNaN(t))throw Error(`Cannot convert "${e}" to number: result is NaN`);return t}case`boolean`:return e.toLowerCase()===`true`||e===`1`||e.toLowerCase()===`yes`;case`json`:try{return JSON.parse(e)}catch(t){throw Error(`Cannot parse "${e}" as JSON: ${t instanceof Error?t.message:`Unknown error`}`)}default:return e}}function Lt(e={},t={}){let{prefix:n=`HAVE`,packageName:r,schema:i={},transform:a={},allowUnknown:o=!0}=t,s=r&&n?`${n}_${r.toUpperCase()}_`:n?`${n}_`:``,c={...e},l={},u=o?new Set([...Object.keys(i),...Object.keys(l).filter(e=>s&&e.startsWith(s)).map(e=>Pt(e.slice(s.length)))]):new Set(Object.keys(i));for(let t of u){if(t in e)continue;let n=s?s+Ft(t):t,r=l[n];if(r===void 0)continue;let o=a[t];if(o){try{c[t]=o(r)}catch(e){console.warn(`Failed to transform ${n}="${r}":`,e instanceof Error?e.message:e)}continue}let u=i[t];if(u)try{c[t]=It(r,u)}catch(e){console.warn(`Failed to convert ${n}="${r}" to ${u}:`,e instanceof Error?e.message:e)}else c[t]=r}return c}new class{debug(e,t){t?console.debug(e,t):console.debug(e)}info(e,t){t?console.info(e,t):console.info(e)}warn(e,t){t?console.warn(e,t):console.warn(e)}error(e,t){t?console.error(e,t):console.error(e)}};var Rt=365.2425,zt=6048e5,Bt=6e4,Vt=36e5,Ht=1e3,Ut=86400;Ut*7,Ut*Rt/12*3;var Wt=Symbol.for(`constructDateFrom`);function W(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Wt in e?e[Wt](t):e instanceof Date?new e.constructor(t):new Date(t)}function G(e,t){return W(t||e,e)}function Gt(e,t,n){let r=G(e,n?.in);return isNaN(t)?W(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}var Kt={};function qt(){return Kt}function Jt(e){let t=G(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function K(e,t){let n=qt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=G(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Yt(e,t){return K(e,{...t,weekStartsOn:1})}function Xt(e,t){let n=G(e,t?.in),r=n.getFullYear(),i=W(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Yt(i),o=W(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Yt(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Zt(e,t){let n=Xt(e,t),r=W(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}function Qt(e,t){let n=G(e,t?.in),r=+Yt(n)-Zt(n);return Math.round(r/zt)+1}function $t(e,t){let n=G(e,t?.in),r=n.getFullYear(),i=qt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=W(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=K(o,t),c=W(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=K(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function en(e,t){let n=qt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=$t(e,t),a=W(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),K(a,t)}function tn(e,t){let n=G(e,t?.in),r=+K(n,t)-en(n,t);return Math.round(r/zt)+1}var nn=class{subPriority=0;validate(e,t){return!0}},rn=class extends nn{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},q=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new rn(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},an=class extends q{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},J={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Y={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function X(e,t){return e&&{value:t(e.value),rest:e.rest}}function Z(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Q(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Vt+a*Bt+o*Ht),rest:t.slice(n[0].length)}}function on(e){return Z(J.anyDigitsSigned,e)}function $(e,t){switch(e){case 1:return Z(J.singleDigit,t);case 2:return Z(J.twoDigits,t);case 3:return Z(J.threeDigits,t);case 4:return Z(J.fourDigits,t);default:return Z(RegExp(`^\\d{1,`+e+`}`),t)}}function sn(e,t){switch(e){case 1:return Z(J.singleDigitSigned,t);case 2:return Z(J.twoDigitsSigned,t);case 3:return Z(J.threeDigitsSigned,t);case 4:return Z(J.fourDigitsSigned,t);default:return Z(RegExp(`^-?\\d{1,`+e+`}`),t)}}function cn(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function ln(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function un(e){return e%400==0||e%4==0&&e%100!=0}var dn=class extends q{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return X($(4,e),r);case`yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=ln(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},fn=class extends q{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return X($(4,e),r);case`Yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=$t(e,r);if(n.isTwoDigitYear){let t=ln(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),K(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),K(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},pn=class extends q{priority=130;parse(e,t){return sn(t===`R`?4:t.length,e)}set(e,t,n){let r=W(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},mn=class extends q{priority=130;parse(e,t){return sn(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},hn=class extends q{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return $(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},gn=class extends q{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return $(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},_n=class extends q{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return X(Z(J.month,e),r);case`MM`:return X($(2,e),r);case`Mo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},vn=class extends q{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return X(Z(J.month,e),r);case`LL`:return X($(2,e),r);case`Lo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function yn(e,t,n){let r=G(e,n?.in),i=tn(r,n)-t;return r.setDate(r.getDate()-i*7),G(r,n?.in)}var bn=class extends q{priority=100;parse(e,t,n){switch(t){case`w`:return Z(J.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return K(yn(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function xn(e,t,n){let r=G(e,n?.in),i=Qt(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Sn=class extends q{priority=100;parse(e,t,n){switch(t){case`I`:return Z(J.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Yt(xn(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},Cn=[31,28,31,30,31,30,31,31,30,31,30,31],wn=[31,29,31,30,31,30,31,31,30,31,30,31],Tn=class extends q{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return Z(J.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){let n=un(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=wn[r]:t>=1&&t<=Cn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},En=class extends q{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return Z(J.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){return un(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function Dn(e,t,n){let r=qt(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=G(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return Gt(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var On=class extends q{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},kn=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return X($(t.length,e),i);case`eo`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},An=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return X($(t.length,e),i);case`co`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function jn(e,t){let n=G(e,t?.in).getDay();return n===0?7:n}function Mn(e,t,n){let r=G(e,n?.in);return Gt(r,t-jn(r,n),n)}var Nn=class extends q{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return $(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return X(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return X(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return X(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return X(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Mn(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Pn=class extends q{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},Fn=class extends q{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},In=class extends q{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Ln=class extends q{priority=70;parse(e,t,n){switch(t){case`h`:return Z(J.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Rn=class extends q{priority=70;parse(e,t,n){switch(t){case`H`:return Z(J.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},zn=class extends q{priority=70;parse(e,t,n){switch(t){case`K`:return Z(J.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},Bn=class extends q{priority=70;parse(e,t,n){switch(t){case`k`:return Z(J.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Vn=class extends q{priority=60;parse(e,t,n){switch(t){case`m`:return Z(J.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},Hn=class extends q{priority=50;parse(e,t,n){switch(t){case`s`:return Z(J.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},Un=class extends q{priority=30;parse(e,t){return X($(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Wn=class extends q{priority=10;parse(e,t){switch(t){case`X`:return Q(Y.basicOptionalMinutes,e);case`XX`:return Q(Y.basic,e);case`XXXX`:return Q(Y.basicOptionalSeconds,e);case`XXXXX`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:W(e,e.getTime()-Jt(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Gn=class extends q{priority=10;parse(e,t){switch(t){case`x`:return Q(Y.basicOptionalMinutes,e);case`xx`:return Q(Y.basic,e);case`xxxx`:return Q(Y.basicOptionalSeconds,e);case`xxxxx`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:W(e,e.getTime()-Jt(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Kn=class extends q{priority=40;parse(e){return on(e)}set(e,t,n){return[W(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},qn=class extends q{priority=20;parse(e){return on(e)}set(e,t,n){return[W(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`};new an,new dn,new fn,new pn,new mn,new hn,new gn,new _n,new vn,new bn,new Sn,new Tn,new En,new On,new kn,new An,new Nn,new Pn,new Fn,new In,new Ln,new Rn,new zn,new Bn,new Vn,new Hn,new Un,new Wn,new Gn,new Kn,new qn,Nt.default.singular,Nt.default.isPlural,Nt.default.isSingular;var Jn=class e{level;static LEVELS=[`debug`,`info`,`warn`,`error`];constructor(e=`info`){this.level=e}shouldLog(t){let n=e.LEVELS.indexOf(this.level);return e.LEVELS.indexOf(t)>=n}formatContext(e){return!e||Object.keys(e).length===0?``:` ${JSON.stringify(e)}`}debug(e,t){this.shouldLog(`debug`)&&console.debug(`[DEBUG] ${e}${this.formatContext(t)}`)}info(e,t){this.shouldLog(`info`)&&console.info(`[INFO] ${e}${this.formatContext(t)}`)}warn(e,t){this.shouldLog(`warn`)&&console.warn(`[WARN] ${e}${this.formatContext(t)}`)}error(e,t){this.shouldLog(`error`)&&console.error(`[ERROR] ${e}${this.formatContext(t)}`)}},Yn=class{debug(e,t){}info(e,t){}warn(e,t){}error(e,t){}};function Xn(e){return typeof e==`boolean`?e?new Jn(Lt({},{packageName:`logger`,schema:{level:`string`}}).level||`info`):new Yn:new Jn(Lt(e,{packageName:`logger`,schema:{level:`string`}}).level||`info`)}var Zn=`warn`,Qn;function $n(){return Qn||=typeof process<`u`?Xn({level:Zn}):new Jn(Zn),Qn}var er={debug:(e,t)=>$n().debug(e,t),info:(e,t)=>$n().info(e,t),warn:(e,t)=>$n().warn(e,t),error:(e,t)=>$n().error(e,t)},tr=Symbol(`smrt-webmcp-bespoke-context`);function nr(e){D(tr,e)}var rr=Symbol(`smrt-webmcp-ui-context`);function ir(e){D(rr,e)}function ar(){return c(rr)??null}export{Le as _,ct as a,Ne as b,Xe as c,Je as d,qe as f,Pe as g,Fe as h,er as i,Qe as l,Ie as m,ar as n,at as o,Ve as p,nr as r,tt as s,ir as t,Ze as u,Re as v,N as x,ze as y};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Bd49elEu.js","./BaNbYf_w.js","./eBF8D7GD.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,B as t,Ct as n,Dt as r,E as i,Et as a,F as o,Ft as s,G as c,H as l,I as u,J as d,K as f,L as p,Lt as m,Mt as h,Ot as g,P as _,Pt as v,R as y,Rt as b,T as x,U as S,W as C,X as w,Y as T,Z as E,_ as D,_t as O,a as k,bt as A,ct as j,d as M,dt as N,f as P,ft as F,gt as I,ht as L,k as ee,kt as R,lt as te,mt as z,n as ne,nt as re,ot as ie,pt as B,q as ae,r as V,rt as oe,st as H,tt as se,v as U,vt as W,xt as ce,yt as le,z as G}from"./DG3qFFTE.js";import{t as ue}from"./BaNbYf_w.js";import"./xihTtKlq.js";import{r as de}from"./Cekjnrta.js";import{a as K,t as q}from"./Bq8E3AWP.js";import{B as fe,Mt as pe,Pt as J,R as me,W as he}from"./C2yupMVb.js";import{n as Y}from"./denq4QT7.js";import{C as X,S as ge,b as _e,x as ve}from"./CmwLYxUA.js";import{n as ye,r as be}from"./D3syEjNq.js";import{i as xe}from"./kpPWsivz.js";import{_ as Se,b as Ce,c as we,d as Te,g as Ee,h as De,i as Oe,m as ke,n as Ae,p as je,s as Me}from"./C65O26Eu.js";import{n as Ne}from"./XA4NFAo8.js";import{n as Pe,r as Fe}from"./C3BPmBbi.js";import{c as Ie,t as Le}from"./eBF8D7GD.js";import{_ as Re,a as ze,g as Be,h as Ve,l as He,n as Ue,p as We,u as Ge}from"./m9L23tmn.js";import{Q as Z,b as Ke,t as qe}from"./B4cuuBLO.js";import{C as Je,_ as Ye,h as Xe,i as Ze,m as Qe,o as $e,r as et,t as tt,u as nt}from"./Bz0vK8bM.js";import{n as rt,t as it}from"./BENLVmzr.js";function at(e,t){let n=t.trim();if(!n)return;let r=e.value,i=typeof document<`u`&&document.activeElement===e,a=e.selectionStart??r.length,o=e.selectionEnd??r.length;!i&&a===0&&o===0&&r.length>0&&(a=r.length,o=r.length);let s=r.slice(0,a),c=r.slice(o),l=`${s.length>0&&!/\s$/.test(s)?` `:``}${n}${/^[\p{L}\p{N}]/u.test(c)?` `:``}`;e.value=`${s}${l}${c}`;let u=s.length+l.length;try{e.setSelectionRange(u,u)}catch{}e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function ot(e){let t=e,n=null,r=null,i=0,a=0,o=null,s=!1,c=!1,l=null;function u(){n&&clearTimeout(n),n=null}function d(){u(),r=null,o=null,s=!1}function f(){n&&(d(),t.onCancel?.())}function p(e){let n=!t.filter||t.filter(e);return n?n===!0?e.target instanceof Element?e.target:null:n:null}function m(){c=!0,l&&clearTimeout(l),l=setTimeout(()=>{c=!1,l=null},400)}return{handlePointerDown(e){if(t.disabled||!e.isPrimary||e.pointerType===`mouse`&&e.button!==0)return;let c=p(e);if(!c)return;d(),r=e.pointerId,i=e.clientX,a=e.clientY,o={target:c,pointerType:e.pointerType||`mouse`,clientX:e.clientX,clientY:e.clientY},t.onPressStart?.(o);let l=o;n=setTimeout(()=>{n=null,s=!0,t.onLongPress(l)},t.delay??500)},handlePointerMove(e){if(!n||e.pointerId!==r)return;let o=t.moveTolerance??10;Math.hypot(e.clientX-i,e.clientY-a)>o&&f()},handlePointerUp(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;m(),d(),t.onRelease?.(e)}else d()}},handlePointerCancel(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;d(),t.onRelease?.(e)}else d()}},handleDragStart(){f()},handleContextMenu(e){t.preventContextMenu&&(n||s)&&e.preventDefault()},handleClick(e){c&&(c=!1,l&&clearTimeout(l),l=null,e.preventDefault(),e.stopPropagation())},cancel(){d()},update(e){t=e,e.disabled&&d()},get pending(){return n!==null},get fired(){return s}}}function st(e,t){let n=ot(t),r=e=>n.handlePointerDown(e),i=e=>n.handlePointerMove(e),a=e=>n.handlePointerUp(e),o=e=>n.handlePointerCancel(e),s=()=>n.handleDragStart(),c=e=>n.handleContextMenu(e),l=e=>n.handleClick(e);return e.addEventListener(`pointerdown`,r),e.addEventListener(`dragstart`,s),e.addEventListener(`contextmenu`,c),e.addEventListener(`click`,l,!0),window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a),window.addEventListener(`pointercancel`,o),{update(e){n.update(e)},destroy(){n.cancel(),e.removeEventListener(`pointerdown`,r),e.removeEventListener(`dragstart`,s),e.removeEventListener(`contextmenu`,c),e.removeEventListener(`click`,l,!0),window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),window.removeEventListener(`pointercancel`,o)}}}var ct=new WeakMap;async function lt(e,t={}){let n=Math.max(0,t.quietMs??120),r=Math.max(0,t.timeoutMs??5e3),i=Date.now(),a=()=>Math.max(0,r-(Date.now()-i)),o=e=>new Promise(t=>setTimeout(t,e));for(;;){let n=ct.get(e);if(!n||n.size===0||t.signal?.aborted)break;let r=a();if(r===0)return;await Promise.race([Promise.all([...n]),o(r)])}t.signal?.aborted||a()===0||await new Promise(r=>{let i=null,o=[],s=()=>{i&&clearTimeout(i),clearTimeout(l);for(let e of o)e();t.signal?.removeEventListener(`abort`,s),r()},c=()=>{i&&clearTimeout(i),i=setTimeout(s,n)},l=setTimeout(s,a());t.signal?.addEventListener(`abort`,s,{once:!0}),o.push(e.subscribe(e=>{(e.type===`registered`||e.type===`unregistered`)&&c()}));for(let e of t.alsoWatch??[]){let t=e?.subscribe?.(()=>c());t&&o.push(t)}c()})}async function ut(e={}){let t=e.window??(typeof window<`u`?window:void 0),n=e.navigator??(typeof navigator<`u`?navigator:void 0);return!t||!(`SpeechRecognition`in t)&&!(`webkitSpeechRecognition`in t)?`missing`:n&&`brave`in n&&n.brave||/\bElectron\//.test(n?.userAgent??``)?`unreliable`:`works`}function dt(e){return new Worker(new URL(`../workers/local-speech.worker-YQAn1epy.js`,import.meta.url).href,{name:e?.name})}var ft=2**28,pt=16,mt=.95;function ht(e){if(e===0)return 1;let t=Math.PI*e;return Math.sin(t)/t}function gt(e,t,n){for(let[e,r]of[[`fromRate`,t],[`toRate`,n]])if(!Number.isFinite(r)||r<=0)throw new Ie(`invalid_argument`,`${e} must be a positive finite number (got ${String(r)})`);let r=Math.floor(e.length*n/t);if(r>ft)throw new Ie(`invalid_argument`,`resampled output would be ${r} samples; the limit is ${ft}`);if(t===n)return e.slice();let i=new Float32Array(r),a=t/n,o=a>1?mt/a:1,s=pt/o,c=e.length-1;for(let t=0;t<r;t+=1){let n=t*a,r=Math.max(0,Math.ceil(n-s)),l=Math.min(c,Math.floor(n+s)),u=0,d=0;for(let t=r;t<=l;t+=1){let r=t-n,i=.5+.5*Math.cos(Math.PI*r/s),a=o*ht(o*r)*i;u+=a*e[t],d+=a}i[t]=d===0?0:u/d}return i}var _t={silenceMs:800,minSpeechMs:150,preRollMs:300,maxUtteranceMs:3e4,sensitivity:.5,calibrateMs:300},vt=.0015,yt=.003,bt=.006,xt=.2,St=.02,Ct=2e3,wt=250;function Tt(e,t,n){return Math.min(n,Math.max(t,e))}function Et(e={}){let t=(e,t,n)=>typeof e==`number`&&Number.isFinite(e)?Math.max(n,e):t;return{silenceMs:t(e.silenceMs,_t.silenceMs,20),minSpeechMs:t(e.minSpeechMs,_t.minSpeechMs,0),preRollMs:t(e.preRollMs,_t.preRollMs,0),maxUtteranceMs:t(e.maxUtteranceMs,_t.maxUtteranceMs,1e3),sensitivity:Tt(typeof e.sensitivity==`number`&&Number.isFinite(e.sensitivity)?e.sensitivity:_t.sensitivity,0,1),calibrateMs:t(e.calibrateMs,_t.calibrateMs,0)}}function Dt(e){let t=e.length;if(t===0)return 0;let n=0;for(let r=0;r<t;r++){let t=e[r];n+=t*t}return Math.sqrt(n/t)}function Ot(e={}){let t=Et(e),n=6-4*t.sensitivity,r=.02-.015*t.sensitivity,i=yt,a=0,o=[],s=!1,c=0,l=0,u=0,d=()=>Math.max(i*n,r),f=()=>Math.max(d()*.6,i*1.5),p=()=>{s=!1,c=0,l=0,u=0};return{get speaking(){return s},get noiseFloor(){return i},get threshold(){return d()},push(e,n=20){let r=[],m=Number.isFinite(e)?Math.max(0,e):0,h=Tt(m/(d()*3),0,1),g=a<t.calibrateMs;if(g&&(a+=n,!s)){o.push(m);let e=[...o].sort((e,t)=>e-t);i=Tt(e[Math.min(e.length-1,Math.floor(e.length*xt))]??yt,vt,bt)}if(!s){if(m>d())c+=n,c>=t.minSpeechMs&&(s=!0,l=0,u=c,r.push({type:`start`,leadMs:t.preRollMs+c}),c=0);else if(g)c=0;else{c=0;let e=n/Ct*(m<i?4:1);i=Tt(i+(m-i)*Math.min(1,e),vt,St)}return{events:r,level:h,speaking:s}}return u+=n,m>f()?l=0:l+=n,l>=t.silenceMs?(r.push({type:`end`,reason:`silence`,trailingSilenceMs:l}),p()):u>=t.maxUtteranceMs&&(r.push({type:`split`}),u=0,l=0),{events:r,level:h,speaking:s}},flush(){let e=[];return s&&e.push({type:`end`,reason:`flush`,trailingSilenceMs:l}),p(),e}}}function kt(e){let t=Et(e),n=Ot(t),r=Math.max(1,Math.round(e.sampleRate*20/1e3)),i=r/e.sampleRate*1e3,a=Math.ceil((t.preRollMs+t.minSpeechMs)/i)+1,o=[],s=new Float32Array,c=null,l=!1,u=(t,n,r)=>{let a=Math.max(0,Math.floor((r-wt)/i)),o=t.slice(0,Math.max(1,t.length-a)),s=0;for(let e of o)s+=e.length;let c=new Float32Array(s),l=0;for(let e of o)c.set(e,l),l+=e.length;e.onUtterance({pcm:c,sampleRate:e.sampleRate,durationMs:s/e.sampleRate*1e3,reason:n})},d=t=>{t!==l&&(l=t,e.onSpeaking?.(t))},f=s=>{let l=n.push(Dt(s),i);e.onLevel?.(l.level),o.push(s),o.length>a&&o.shift(),c&&c.push(s);for(let e of l.events)if(e.type===`start`){c=[...o];let e=Math.ceil(t.preRollMs/i),n=Math.max(0,o.length-Math.ceil(t.minSpeechMs/i));for(let t=n;t<e;t++)c.unshift(new Float32Array(r))}else if(e.type===`end`){let t=c??[];c=null,o.length=0,t.length>0&&u(t,e.reason,e.trailingSilenceMs)}else if(e.type===`split`){let e=c??[];c=[],e.length>0&&u(e,`max`,0)}d(n.speaking)};return{get speaking(){return n.speaking},segmenter:n,push(e){let t=e;s.length>0&&(t=new Float32Array(s.length+e.length),t.set(s,0),t.set(e,s.length));let n=0;for(;n+r<=t.length;)f(t.slice(n,n+r)),n+=r;s=t.slice(n)},flush(){let t=n.flush();for(let e of t)e.type===`end`&&c&&c.length>0&&u(c,`flush`,e.trailingSilenceMs);c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)},discard(){n.flush(),c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)}}}var At=44,jt=4294967295,Mt=1;function Nt(e){let t=new Int16Array(e.length);for(let n=0;n<e.length;n+=1){let r=e[n];Number.isNaN(r)||(t[n]=Math.min(32767,Math.round((r>1?1:r<-1?-1:r)*32768)))}return t}function Pt(e,t){if(!Number.isInteger(e)||e<1||e*2>jt)throw new Ie(`invalid_argument`,`${t} must be a positive integer sample rate (got ${String(e)})`)}function Ft(e,t,n){for(let r=0;r<n.length;r+=1)e.setUint8(t+r,n.charCodeAt(r))}function It(e,t){Pt(t,`sampleRate`);let n=e.length*2;if(n+At-8>jt)throw new Ie(`invalid_argument`,`too many samples for a single WAV (4 GiB limit)`);let r=e instanceof Int16Array?e:Nt(e),i=new Uint8Array(At+n),a=new DataView(i.buffer);Ft(a,0,`RIFF`),a.setUint32(4,36+n,!0),Ft(a,8,`WAVE`),Ft(a,12,`fmt `),a.setUint32(16,16,!0),a.setUint16(20,Mt,!0),a.setUint16(22,1,!0),a.setUint32(24,t,!0),a.setUint32(28,t*2,!0),a.setUint16(32,2,!0),a.setUint16(34,16,!0),Ft(a,36,`data`),a.setUint32(40,n,!0);for(let e=0;e<r.length;e+=1)a.setInt16(At+e*2,r[e],!0);return i}var Lt=`hv-pcm-tap`,Rt=`
|
|
2
|
+
import{$ as e,B as t,Ct as n,Dt as r,E as i,Et as a,F as o,Ft as s,G as c,H as l,I as u,J as d,K as f,L as p,Lt as m,Mt as h,Ot as g,P as _,Pt as v,R as y,Rt as b,T as x,U as S,W as C,X as w,Y as T,Z as E,_ as D,_t as O,a as k,bt as A,ct as j,d as M,dt as N,f as P,ft as F,gt as I,ht as L,k as ee,kt as R,lt as te,mt as z,n as ne,nt as re,ot as ie,pt as B,q as ae,r as V,rt as oe,st as H,tt as se,v as U,vt as W,xt as ce,yt as le,z as G}from"./DG3qFFTE.js";import{t as ue}from"./BaNbYf_w.js";import"./xihTtKlq.js";import{r as de}from"./Cekjnrta.js";import{a as K,t as q}from"./Bq8E3AWP.js";import{B as fe,Mt as pe,Pt as J,R as me,W as he}from"./BwBnFWTa.js";import{n as Y}from"./denq4QT7.js";import{C as X,S as ge,b as _e,x as ve}from"./BLV4V97V.js";import{n as ye,r as be}from"./D3syEjNq.js";import{i as xe}from"./CG2udJB7.js";import{_ as Se,b as Ce,c as we,d as Te,g as Ee,h as De,i as Oe,m as ke,n as Ae,p as je,s as Me}from"./C65O26Eu.js";import{n as Ne}from"./byX4M-gX.js";import{n as Pe,r as Fe}from"./C3BPmBbi.js";import{c as Ie,t as Le}from"./eBF8D7GD.js";import{_ as Re,a as ze,g as Be,h as Ve,l as He,n as Ue,p as We,u as Ge}from"./DVxLQ65y.js";import{Q as Z,b as Ke,t as qe}from"./DxQ526Ze.js";import{C as Je,_ as Ye,h as Xe,i as Ze,m as Qe,o as $e,r as et,t as tt,u as nt}from"./BKEjwN7e.js";import{n as rt,t as it}from"./BJmHlVD1.js";function at(e,t){let n=t.trim();if(!n)return;let r=e.value,i=typeof document<`u`&&document.activeElement===e,a=e.selectionStart??r.length,o=e.selectionEnd??r.length;!i&&a===0&&o===0&&r.length>0&&(a=r.length,o=r.length);let s=r.slice(0,a),c=r.slice(o),l=`${s.length>0&&!/\s$/.test(s)?` `:``}${n}${/^[\p{L}\p{N}]/u.test(c)?` `:``}`;e.value=`${s}${l}${c}`;let u=s.length+l.length;try{e.setSelectionRange(u,u)}catch{}e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function ot(e){let t=e,n=null,r=null,i=0,a=0,o=null,s=!1,c=!1,l=null;function u(){n&&clearTimeout(n),n=null}function d(){u(),r=null,o=null,s=!1}function f(){n&&(d(),t.onCancel?.())}function p(e){let n=!t.filter||t.filter(e);return n?n===!0?e.target instanceof Element?e.target:null:n:null}function m(){c=!0,l&&clearTimeout(l),l=setTimeout(()=>{c=!1,l=null},400)}return{handlePointerDown(e){if(t.disabled||!e.isPrimary||e.pointerType===`mouse`&&e.button!==0)return;let c=p(e);if(!c)return;d(),r=e.pointerId,i=e.clientX,a=e.clientY,o={target:c,pointerType:e.pointerType||`mouse`,clientX:e.clientX,clientY:e.clientY},t.onPressStart?.(o);let l=o;n=setTimeout(()=>{n=null,s=!0,t.onLongPress(l)},t.delay??500)},handlePointerMove(e){if(!n||e.pointerId!==r)return;let o=t.moveTolerance??10;Math.hypot(e.clientX-i,e.clientY-a)>o&&f()},handlePointerUp(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;m(),d(),t.onRelease?.(e)}else d()}},handlePointerCancel(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;d(),t.onRelease?.(e)}else d()}},handleDragStart(){f()},handleContextMenu(e){t.preventContextMenu&&(n||s)&&e.preventDefault()},handleClick(e){c&&(c=!1,l&&clearTimeout(l),l=null,e.preventDefault(),e.stopPropagation())},cancel(){d()},update(e){t=e,e.disabled&&d()},get pending(){return n!==null},get fired(){return s}}}function st(e,t){let n=ot(t),r=e=>n.handlePointerDown(e),i=e=>n.handlePointerMove(e),a=e=>n.handlePointerUp(e),o=e=>n.handlePointerCancel(e),s=()=>n.handleDragStart(),c=e=>n.handleContextMenu(e),l=e=>n.handleClick(e);return e.addEventListener(`pointerdown`,r),e.addEventListener(`dragstart`,s),e.addEventListener(`contextmenu`,c),e.addEventListener(`click`,l,!0),window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a),window.addEventListener(`pointercancel`,o),{update(e){n.update(e)},destroy(){n.cancel(),e.removeEventListener(`pointerdown`,r),e.removeEventListener(`dragstart`,s),e.removeEventListener(`contextmenu`,c),e.removeEventListener(`click`,l,!0),window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),window.removeEventListener(`pointercancel`,o)}}}var ct=new WeakMap;async function lt(e,t={}){let n=Math.max(0,t.quietMs??120),r=Math.max(0,t.timeoutMs??5e3),i=Date.now(),a=()=>Math.max(0,r-(Date.now()-i)),o=e=>new Promise(t=>setTimeout(t,e));for(;;){let n=ct.get(e);if(!n||n.size===0||t.signal?.aborted)break;let r=a();if(r===0)return;await Promise.race([Promise.all([...n]),o(r)])}t.signal?.aborted||a()===0||await new Promise(r=>{let i=null,o=[],s=()=>{i&&clearTimeout(i),clearTimeout(l);for(let e of o)e();t.signal?.removeEventListener(`abort`,s),r()},c=()=>{i&&clearTimeout(i),i=setTimeout(s,n)},l=setTimeout(s,a());t.signal?.addEventListener(`abort`,s,{once:!0}),o.push(e.subscribe(e=>{(e.type===`registered`||e.type===`unregistered`)&&c()}));for(let e of t.alsoWatch??[]){let t=e?.subscribe?.(()=>c());t&&o.push(t)}c()})}async function ut(e={}){let t=e.window??(typeof window<`u`?window:void 0),n=e.navigator??(typeof navigator<`u`?navigator:void 0);return!t||!(`SpeechRecognition`in t)&&!(`webkitSpeechRecognition`in t)?`missing`:n&&`brave`in n&&n.brave||/\bElectron\//.test(n?.userAgent??``)?`unreliable`:`works`}function dt(e){return new Worker(new URL(`../workers/local-speech.worker-YQAn1epy.js`,import.meta.url).href,{name:e?.name})}var ft=2**28,pt=16,mt=.95;function ht(e){if(e===0)return 1;let t=Math.PI*e;return Math.sin(t)/t}function gt(e,t,n){for(let[e,r]of[[`fromRate`,t],[`toRate`,n]])if(!Number.isFinite(r)||r<=0)throw new Ie(`invalid_argument`,`${e} must be a positive finite number (got ${String(r)})`);let r=Math.floor(e.length*n/t);if(r>ft)throw new Ie(`invalid_argument`,`resampled output would be ${r} samples; the limit is ${ft}`);if(t===n)return e.slice();let i=new Float32Array(r),a=t/n,o=a>1?mt/a:1,s=pt/o,c=e.length-1;for(let t=0;t<r;t+=1){let n=t*a,r=Math.max(0,Math.ceil(n-s)),l=Math.min(c,Math.floor(n+s)),u=0,d=0;for(let t=r;t<=l;t+=1){let r=t-n,i=.5+.5*Math.cos(Math.PI*r/s),a=o*ht(o*r)*i;u+=a*e[t],d+=a}i[t]=d===0?0:u/d}return i}var _t={silenceMs:800,minSpeechMs:150,preRollMs:300,maxUtteranceMs:3e4,sensitivity:.5,calibrateMs:300},vt=.0015,yt=.003,bt=.006,xt=.2,St=.02,Ct=2e3,wt=250;function Tt(e,t,n){return Math.min(n,Math.max(t,e))}function Et(e={}){let t=(e,t,n)=>typeof e==`number`&&Number.isFinite(e)?Math.max(n,e):t;return{silenceMs:t(e.silenceMs,_t.silenceMs,20),minSpeechMs:t(e.minSpeechMs,_t.minSpeechMs,0),preRollMs:t(e.preRollMs,_t.preRollMs,0),maxUtteranceMs:t(e.maxUtteranceMs,_t.maxUtteranceMs,1e3),sensitivity:Tt(typeof e.sensitivity==`number`&&Number.isFinite(e.sensitivity)?e.sensitivity:_t.sensitivity,0,1),calibrateMs:t(e.calibrateMs,_t.calibrateMs,0)}}function Dt(e){let t=e.length;if(t===0)return 0;let n=0;for(let r=0;r<t;r++){let t=e[r];n+=t*t}return Math.sqrt(n/t)}function Ot(e={}){let t=Et(e),n=6-4*t.sensitivity,r=.02-.015*t.sensitivity,i=yt,a=0,o=[],s=!1,c=0,l=0,u=0,d=()=>Math.max(i*n,r),f=()=>Math.max(d()*.6,i*1.5),p=()=>{s=!1,c=0,l=0,u=0};return{get speaking(){return s},get noiseFloor(){return i},get threshold(){return d()},push(e,n=20){let r=[],m=Number.isFinite(e)?Math.max(0,e):0,h=Tt(m/(d()*3),0,1),g=a<t.calibrateMs;if(g&&(a+=n,!s)){o.push(m);let e=[...o].sort((e,t)=>e-t);i=Tt(e[Math.min(e.length-1,Math.floor(e.length*xt))]??yt,vt,bt)}if(!s){if(m>d())c+=n,c>=t.minSpeechMs&&(s=!0,l=0,u=c,r.push({type:`start`,leadMs:t.preRollMs+c}),c=0);else if(g)c=0;else{c=0;let e=n/Ct*(m<i?4:1);i=Tt(i+(m-i)*Math.min(1,e),vt,St)}return{events:r,level:h,speaking:s}}return u+=n,m>f()?l=0:l+=n,l>=t.silenceMs?(r.push({type:`end`,reason:`silence`,trailingSilenceMs:l}),p()):u>=t.maxUtteranceMs&&(r.push({type:`split`}),u=0,l=0),{events:r,level:h,speaking:s}},flush(){let e=[];return s&&e.push({type:`end`,reason:`flush`,trailingSilenceMs:l}),p(),e}}}function kt(e){let t=Et(e),n=Ot(t),r=Math.max(1,Math.round(e.sampleRate*20/1e3)),i=r/e.sampleRate*1e3,a=Math.ceil((t.preRollMs+t.minSpeechMs)/i)+1,o=[],s=new Float32Array,c=null,l=!1,u=(t,n,r)=>{let a=Math.max(0,Math.floor((r-wt)/i)),o=t.slice(0,Math.max(1,t.length-a)),s=0;for(let e of o)s+=e.length;let c=new Float32Array(s),l=0;for(let e of o)c.set(e,l),l+=e.length;e.onUtterance({pcm:c,sampleRate:e.sampleRate,durationMs:s/e.sampleRate*1e3,reason:n})},d=t=>{t!==l&&(l=t,e.onSpeaking?.(t))},f=s=>{let l=n.push(Dt(s),i);e.onLevel?.(l.level),o.push(s),o.length>a&&o.shift(),c&&c.push(s);for(let e of l.events)if(e.type===`start`){c=[...o];let e=Math.ceil(t.preRollMs/i),n=Math.max(0,o.length-Math.ceil(t.minSpeechMs/i));for(let t=n;t<e;t++)c.unshift(new Float32Array(r))}else if(e.type===`end`){let t=c??[];c=null,o.length=0,t.length>0&&u(t,e.reason,e.trailingSilenceMs)}else if(e.type===`split`){let e=c??[];c=[],e.length>0&&u(e,`max`,0)}d(n.speaking)};return{get speaking(){return n.speaking},segmenter:n,push(e){let t=e;s.length>0&&(t=new Float32Array(s.length+e.length),t.set(s,0),t.set(e,s.length));let n=0;for(;n+r<=t.length;)f(t.slice(n,n+r)),n+=r;s=t.slice(n)},flush(){let t=n.flush();for(let e of t)e.type===`end`&&c&&c.length>0&&u(c,`flush`,e.trailingSilenceMs);c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)},discard(){n.flush(),c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)}}}var At=44,jt=4294967295,Mt=1;function Nt(e){let t=new Int16Array(e.length);for(let n=0;n<e.length;n+=1){let r=e[n];Number.isNaN(r)||(t[n]=Math.min(32767,Math.round((r>1?1:r<-1?-1:r)*32768)))}return t}function Pt(e,t){if(!Number.isInteger(e)||e<1||e*2>jt)throw new Ie(`invalid_argument`,`${t} must be a positive integer sample rate (got ${String(e)})`)}function Ft(e,t,n){for(let r=0;r<n.length;r+=1)e.setUint8(t+r,n.charCodeAt(r))}function It(e,t){Pt(t,`sampleRate`);let n=e.length*2;if(n+At-8>jt)throw new Ie(`invalid_argument`,`too many samples for a single WAV (4 GiB limit)`);let r=e instanceof Int16Array?e:Nt(e),i=new Uint8Array(At+n),a=new DataView(i.buffer);Ft(a,0,`RIFF`),a.setUint32(4,36+n,!0),Ft(a,8,`WAVE`),Ft(a,12,`fmt `),a.setUint32(16,16,!0),a.setUint16(20,Mt,!0),a.setUint16(22,1,!0),a.setUint32(24,t,!0),a.setUint32(28,t*2,!0),a.setUint16(32,2,!0),a.setUint16(34,16,!0),Ft(a,36,`data`),a.setUint32(40,n,!0);for(let e=0;e<r.length;e+=1)a.setInt16(At+e*2,r[e],!0);return i}var Lt=`hv-pcm-tap`,Rt=`
|
|
3
3
|
class HvPcmTap extends AudioWorkletProcessor {
|
|
4
4
|
process(inputs) {
|
|
5
5
|
const channels = inputs[0];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./BGH1Gldc.js";
|