@plumix/admin 0.1.0

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.
Files changed (137) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +152 -0
  3. package/dist/assets/-errors-D-cmkYbY.js +1 -0
  4. package/dist/assets/-locale-param-R7YAVhAm.js +1 -0
  5. package/dist/assets/_-BgcFcUpb.js +1 -0
  6. package/dist/assets/_auth-DwSMg4I8.js +1 -0
  7. package/dist/assets/_authenticated-B2GjUlkG.js +1 -0
  8. package/dist/assets/_authenticated-DabO2Qyv.js +1 -0
  9. package/dist/assets/_editor-Cj750bOw.js +1 -0
  10. package/dist/assets/_name-4UEpyf0-.js +1 -0
  11. package/dist/assets/_page-B65xT7CY.js +1 -0
  12. package/dist/assets/_page-CW9_6SD1.js +1 -0
  13. package/dist/assets/_slug-B4JG-9fs.js +1 -0
  14. package/dist/assets/_token-DbYWXSFn.js +1 -0
  15. package/dist/assets/alert-cwX3fWUu.js +1 -0
  16. package/dist/assets/allowed-domains-DYhKp_Ib.js +1 -0
  17. package/dist/assets/ar-2V_CUREp.js +1 -0
  18. package/dist/assets/ar-9HCIfmBz.js +1 -0
  19. package/dist/assets/ar-Buhn3_h1.js +1 -0
  20. package/dist/assets/ar-Cw7lVEca.js +1 -0
  21. package/dist/assets/ar-DAS2VDOL.js +1 -0
  22. package/dist/assets/ar-Dlr9PmMq.js +1 -0
  23. package/dist/assets/ar-Dlvpw6lg.js +1 -0
  24. package/dist/assets/ar-b8X4U-Yj.js +1 -0
  25. package/dist/assets/arrow-left-CWzmtp8T.js +1 -0
  26. package/dist/assets/bootstrap-DJz3cWv9.js +1 -0
  27. package/dist/assets/breadcrumb-TUgLmtOo.js +1 -0
  28. package/dist/assets/card-L2-kK5VK.js +1 -0
  29. package/dist/assets/chevrons-up-down-DmmG8bmI.js +1 -0
  30. package/dist/assets/clipboard-D6ZMYUE8.js +1 -0
  31. package/dist/assets/create-BBUSAO26.js +1 -0
  32. package/dist/assets/create-CoSsIQco.js +1 -0
  33. package/dist/assets/create-GWJoFtGc.js +1 -0
  34. package/dist/assets/createLucideIcon-C0O-yxZG.js +1 -0
  35. package/dist/assets/dates-CSmOj6E-.js +1 -0
  36. package/dist/assets/de-BYwSm4O1.js +1 -0
  37. package/dist/assets/de-CN1uSHLH.js +1 -0
  38. package/dist/assets/de-CvzTts2_.js +1 -0
  39. package/dist/assets/de-Cw7lVEca.js +1 -0
  40. package/dist/assets/de-D0IUVgz1.js +1 -0
  41. package/dist/assets/de-DIaivdrP.js +1 -0
  42. package/dist/assets/de-OLYk7yVD.js +1 -0
  43. package/dist/assets/de-v78Axzn1.js +1 -0
  44. package/dist/assets/device-EMoc4lMH.js +1 -0
  45. package/dist/assets/dist-B66OmIyr.js +1 -0
  46. package/dist/assets/dist-BL2bKHuR.js +1 -0
  47. package/dist/assets/dist-Bdi1pykC.js +46 -0
  48. package/dist/assets/dist-ClOzYsk5.js +1 -0
  49. package/dist/assets/edit-BsC2RNOq.js +1 -0
  50. package/dist/assets/edit-Bz9riMHP.js +1 -0
  51. package/dist/assets/edit-C1985Bqy.js +1 -0
  52. package/dist/assets/edit-CG12fZGb.js +2 -0
  53. package/dist/assets/edit-DR0NupUB.js +1 -0
  54. package/dist/assets/edit-DlHnrl_y.js +1 -0
  55. package/dist/assets/en-0MUT7HwI.js +1 -0
  56. package/dist/assets/en-8mtHvgf_.js +1 -0
  57. package/dist/assets/en-B2WjeApp.js +1 -0
  58. package/dist/assets/en-Cw7lVEca.js +1 -0
  59. package/dist/assets/en-DG5AvC9g.js +1 -0
  60. package/dist/assets/en-DSzDoXek.js +1 -0
  61. package/dist/assets/en-GstVzXkR.js +1 -0
  62. package/dist/assets/en-phTuN5O3.js +1 -0
  63. package/dist/assets/entries-MizUUcD8.js +1 -0
  64. package/dist/assets/esm-DfD3iRfG.js +1 -0
  65. package/dist/assets/form-BhMVtuYF.js +1 -0
  66. package/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  67. package/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  68. package/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  69. package/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  70. package/dist/assets/geist-mono-cyrillic-ext-wght-normal-I4S5GZfc.woff2 +0 -0
  71. package/dist/assets/geist-mono-cyrillic-wght-normal-BmXc_FBt.woff2 +0 -0
  72. package/dist/assets/geist-mono-latin-ext-wght-normal-DrnZ1wKl.woff2 +0 -0
  73. package/dist/assets/geist-mono-latin-wght-normal-B_7UjwxQ.woff2 +0 -0
  74. package/dist/assets/geist-mono-symbols2-wght-normal-GZpp1pK2.woff2 +0 -0
  75. package/dist/assets/geist-mono-vietnamese-wght-normal-D8KDMBhC.woff2 +0 -0
  76. package/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  77. package/dist/assets/index-BtnQdcjJ.css +1 -0
  78. package/dist/assets/index-bWipSZdM.js +26 -0
  79. package/dist/assets/input-xYuLUQID.js +1 -0
  80. package/dist/assets/json-highlight-BbhGhG56.js +1 -0
  81. package/dist/assets/jsx-runtime-DUAcabCT.js +1 -0
  82. package/dist/assets/login-Cky2mine.js +1 -0
  83. package/dist/assets/mailer-CnGqwCP4.js +1 -0
  84. package/dist/assets/meta-box-CjxoPlkT.js +1 -0
  85. package/dist/assets/meta-box-field-Cgn0DXDv.js +1 -0
  86. package/dist/assets/meta-box-grid-DJBtTRhe.js +1 -0
  87. package/dist/assets/orpc-DURDArDu.js +15 -0
  88. package/dist/assets/orpc-errors-DWk96ZMY.js +1 -0
  89. package/dist/assets/passkey-C_CqNV1S.js +1 -0
  90. package/dist/assets/plugin-error-boundary-3Oze9sdd.js +1 -0
  91. package/dist/assets/puzzle-CkL6fcG1.js +1 -0
  92. package/dist/assets/react-DbyrFoBd.js +1 -0
  93. package/dist/assets/react-dom-i-Mcm3wj.js +1 -0
  94. package/dist/assets/rich-text-field-DGbPE_N0.js +130 -0
  95. package/dist/assets/scopes-C_7AiPdH.js +1 -0
  96. package/dist/assets/search-input-BpOKuC8D.js +4 -0
  97. package/dist/assets/separator-DCQAFSsS.js +1 -0
  98. package/dist/assets/settings-DCqQvJiy.js +1 -0
  99. package/dist/assets/settings-K6TF73jB.js +1 -0
  100. package/dist/assets/skeleton-BnBM1862.js +1 -0
  101. package/dist/assets/slugify-DglnCNxs.js +1 -0
  102. package/dist/assets/style-emitter-CDGtTiRG.js +1 -0
  103. package/dist/assets/tablet-BnclzXSX.js +1 -0
  104. package/dist/assets/textarea-BoWLuA0I.js +1 -0
  105. package/dist/assets/toast-CQk_AYCo.js +1 -0
  106. package/dist/assets/toggle-Bfw56q6s.js +1 -0
  107. package/dist/assets/tooltip-Pch4JgRX.js +1 -0
  108. package/dist/assets/trash-2-Bn-rv3EX.js +1 -0
  109. package/dist/assets/tree-BUpunTXw.js +1 -0
  110. package/dist/assets/type-labels-DEpt0nSb.js +1 -0
  111. package/dist/assets/uk-BzAywoVV.js +1 -0
  112. package/dist/assets/uk-CFwH6F6c.js +1 -0
  113. package/dist/assets/uk-CO1j-3uB.js +1 -0
  114. package/dist/assets/uk-Cw7lVEca.js +1 -0
  115. package/dist/assets/uk-DBaZCcmT.js +1 -0
  116. package/dist/assets/uk-DM9J8Vuo.js +1 -0
  117. package/dist/assets/uk-DVE7aazP.js +1 -0
  118. package/dist/assets/uk-ne9mbIup.js +1 -0
  119. package/dist/assets/underline-CoVrqZEk.js +1 -0
  120. package/dist/assets/use-formatters-BlYPsMo8.js +1 -0
  121. package/dist/assets/use-label-CykSHq9A.js +1 -0
  122. package/dist/assets/users-CYvrBtzp.js +1 -0
  123. package/dist/assets/utils-BBTvNyQG.js +5 -0
  124. package/dist/assets/utils-DKOQrNEG.js +1 -0
  125. package/dist/assets/valibot-BKzEbLVK.js +1 -0
  126. package/dist/assets/validation-CwFumc7a.js +1 -0
  127. package/dist/assets/with-selector-Bf4HMdmS.js +1 -0
  128. package/dist/assets/zh-CN--OEUZ0F-.js +1 -0
  129. package/dist/assets/zh-CN-B-X6nxCi.js +1 -0
  130. package/dist/assets/zh-CN-BoFMJmlb.js +1 -0
  131. package/dist/assets/zh-CN-Cw7lVEca.js +1 -0
  132. package/dist/assets/zh-CN-DA1Ls1Dj.js +1 -0
  133. package/dist/assets/zh-CN-Db7vQndL.js +1 -0
  134. package/dist/assets/zh-CN-gCCQNrSp.js +1 -0
  135. package/dist/assets/zh-CN-iir6sd5N.js +1 -0
  136. package/dist/index.html +34 -0
  137. package/package.json +106 -0
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"allowedDomains.add.defaultRole.label":["Default role"],"allowedDomains.add.description":["Use the bare domain — no protocol, no path."],"allowedDomains.add.domain.invalid":["Enter a valid hostname (e.g. example.com)."],"allowedDomains.add.domain.label":["Domain"],"allowedDomains.add.placeholder":["example.com"],"allowedDomains.add.submit.idle":["Add"],"allowedDomains.add.submit.pending":["Adding…"],"allowedDomains.add.title":["Add domain"],"allowedDomains.description":["Email domains permitted to sign up via OAuth. New OAuth accounts are created with the role set here. Disabled rows reject signup but preserve their role mapping."],"allowedDomains.error.domainExists":["That domain is already configured."],"allowedDomains.error.fallback":["Couldn't save the domain. Try again."],"allowedDomains.list.empty":["No domains configured. OAuth signup is closed until at least one enabled domain is added."],"allowedDomains.list.loading":["Loading…"],"allowedDomains.list.title":["Configured domains"],"allowedDomains.row.deleteAria":["Delete ",["domain"]],"allowedDomains.row.deleteCancel":["Cancel"],"allowedDomains.row.deleteConfirm":["Confirm delete"],"allowedDomains.row.disabled":["Disabled"],"allowedDomains.row.enabled":["Enabled"],"allowedDomains.title":["Allowed domains"],"apiTokens.col.actions":["Actions"],"apiTokens.col.expires":["Expires"],"apiTokens.col.lastUsed":["Last used"],"apiTokens.col.name":["Name"],"apiTokens.col.prefix":["Prefix"],"apiTokens.col.scopes":["Scopes"],"apiTokens.create.capabilities":["Capabilities"],"apiTokens.create.capabilities.help":["One capability per line. The token can never exceed the caps your role grants — this is an additional narrowing."],"apiTokens.create.capabilities.placeholder":["entry:post:read\\nentry:post:edit_own"],"apiTokens.create.expires":["Expires"],"apiTokens.create.name":["Name"],"apiTokens.create.namePlaceholder":["github-actions / claude-code / mcp-prod"],"apiTokens.create.nameRequired":["Name is required."],"apiTokens.create.nameTooLong":["Name must be ≤ 64 characters."],"apiTokens.create.permissions":["Permissions"],"apiTokens.create.scope.inherit":["Inherit all your permissions"],"apiTokens.create.scope.restrict":["Restrict to specific capabilities"],"apiTokens.create.submit.idle":["Mint token"],"apiTokens.create.submit.pending":["Minting…"],"apiTokens.description.admin":["Tokens minted by this user. You can revoke any of them — minting requires the owner's authenticated browser session."],"apiTokens.description.self":["Personal access tokens for CLIs, MCP servers, CI bots, or any other non-browser client. The full secret is shown once at mint time."],"apiTokens.empty.description.admin":["This user hasn't minted any API tokens."],"apiTokens.empty.description.self":["Mint one above for your CLI / MCP server / CI bot."],"apiTokens.empty.title":["No tokens yet"],"apiTokens.expiry.30":["30 days"],"apiTokens.expiry.7":["7 days"],"apiTokens.expiry.90":["90 days"],"apiTokens.expiry.never":["Never"],"apiTokens.loading":["Loading tokens…"],"apiTokens.mint.fallback":["Couldn't mint token. Try again."],"apiTokens.never":["Never"],"apiTokens.revoke.button":["Revoke"],"apiTokens.revoke.cancel":["Cancel"],"apiTokens.revoke.confirm":["Revoke"],"apiTokens.revoke.description":["The token stops working immediately. Any client using it will start getting 401s on the next request."],"apiTokens.revoke.fallback":["Couldn't revoke. Try again."],"apiTokens.revoke.pending":["Revoking…"],"apiTokens.revoke.title":["Revoke \\"",["name"],"\\"?"],"apiTokens.scope.empty":["No caps"],"apiTokens.scope.inheritRole":["Inherit role"],"apiTokens.secret.copyAria":["Copy token"],"apiTokens.secret.description":["Copy the secret now. We won't show it again — losing it means revoking and re-minting."],"apiTokens.secret.done":["Done"],"apiTokens.secret.title":["Token \\"",["name"],"\\" minted"],"apiTokens.title":["API tokens"],"auth.acceptInvite.description":["Set up a passkey to finish creating your account. Your browser or device will guide you through the prompt."],"auth.acceptInvite.name":["Name"],"auth.acceptInvite.submit.idle":["Create passkey"],"auth.acceptInvite.submit.pending":["Setting up…"],"auth.acceptInvite.title":["Accept your invite"],"auth.bootstrap.description":["Set up your site — this email becomes the admin account."],"auth.bootstrap.email":["Email"],"auth.bootstrap.name":["Name"],"auth.bootstrap.submit.idle":["Create account with passkey"],"auth.bootstrap.submit.pending":["Creating account…"],"auth.bootstrap.title":["Create admin account"],"auth.device.approve.confirmTitle":["Confirm \\"",["userCode"],"\\""],"auth.device.approve.description":["A new API token will be minted for your account and handed to the CLI. Name it so you can find it later under your profile, and optionally restrict what it can do."],"auth.device.approve.error.alreadyApproved":["This code was already approved on another tab."],"auth.device.approve.error.alreadyDenied":["This code was already denied."],"auth.device.approve.error.expired":["This code expired before you could finish — re-run your CLI."],"auth.device.approve.error.fallback":["Couldn't complete the request. Try again."],"auth.device.approve.idle":["Approve"],"auth.device.approve.pending":["Approving…"],"auth.device.approved":["Approved. Your CLI should pick up the token within a few seconds — you can close this tab."],"auth.device.cancel":["Cancel"],"auth.device.denied":["Denied. The CLI will get an access_denied response and stop polling."],"auth.device.deny.idle":["Deny"],"auth.device.deny.pending":["Denying…"],"auth.device.description":["A CLI is requesting an API token for your account. Confirm the code your CLI is showing matches the one below before approving."],"auth.device.lookup.description":["The CLI shows an 8-character code split with a dash — \\"ABCD-EFGH\\". Letters and digits only, no zeros or ones."],"auth.device.lookup.error.alreadyApproved":["This code has already been approved. Re-run your CLI if it didn't pick the token up."],"auth.device.lookup.error.alreadyDenied":["This code has already been denied."],"auth.device.lookup.error.expired":["This code has expired. Re-run your CLI to get a new one."],"auth.device.lookup.error.fallback":["Couldn't look up that code. Try again."],"auth.device.lookup.error.notFound":["Code not found. Check it matches what your CLI printed."],"auth.device.lookup.submit.idle":["Continue"],"auth.device.lookup.submit.pending":["Checking…"],"auth.device.lookup.title":["Enter the code from your CLI"],"auth.device.lookup.userCode.label":["User code"],"auth.device.scopeMode.inherit":["Inherit all my permissions"],"auth.device.scopeMode.label":["Permissions"],"auth.device.scopeMode.restrict":["Restrict to specific capabilities"],"auth.device.scopes.label":["Capabilities"],"auth.device.scopes.placeholder":["entry:post:read\\nentry:post:edit_own"],"auth.device.title":["Authorize CLI access"],"auth.device.tokenName.default":["CLI"],"auth.device.tokenName.label":["Token name"],"auth.device.tokenName.placeholder":["claude-code / github-actions / mcp-prod"],"auth.device.tokenName.required":["Name is required."],"auth.device.tokenName.tooLong":["Name must be ≤ 64 characters."],"auth.device.userCode.placeholder":["ABCD-EFGH"],"blockActions.copyJson":["Copy JSON"],"blockActions.delete":["Delete"],"blockActions.duplicate":["Duplicate"],"blockActions.empty":["Select a block to see actions."],"blockActions.transformTo":["Transform to"],"blockScopePicker.cancel":["Cancel"],"blockScopePicker.description":["Pick a layout to insert, or cancel to start from a blank ",["blockTitle"],"."],"blockScopePicker.title":["Choose a ",["blockTitle"]," layout"],"breadcrumb.addNew":["Add new"],"breadcrumb.admin":["Admin"],"breadcrumb.create":["Create"],"breadcrumb.createTerm":["Create ",["singular"]],"breadcrumb.dashboard":["Dashboard"],"breadcrumb.edit":["Edit"],"breadcrumb.editTerm":["Edit ",["singular"]],"breadcrumb.editUser":["Edit user"],"breadcrumb.entries":["Entries"],"breadcrumb.profile":["Profile"],"breadcrumb.settings":["Settings"],"breadcrumb.terms":["Terms"],"breadcrumb.users":["Users"],"core.adminNav.content":["Entries"],"core.adminNav.item.allowedDomains":["Allowed domains"],"core.adminNav.item.dashboard":["Dashboard"],"core.adminNav.item.mailer":["Mailer"],"core.adminNav.item.settings":["Settings"],"core.adminNav.item.users":["Users"],"core.adminNav.keyword.accounts":["accounts"],"core.adminNav.keyword.configuration":["configuration"],"core.adminNav.keyword.domains":["domains"],"core.adminNav.keyword.email":["email"],"core.adminNav.keyword.home":["home"],"core.adminNav.keyword.options":["options"],"core.adminNav.keyword.overview":["overview"],"core.adminNav.keyword.people":["people"],"core.adminNav.keyword.preferences":["preferences"],"core.adminNav.keyword.signups":["signups"],"core.adminNav.keyword.smtp":["smtp"],"core.adminNav.keyword.team":["team"],"core.adminNav.management":["Management"],"core.adminNav.overview":["Overview"],"core.adminNav.termTaxonomies":["Taxonomies"],"core.settings.general.description":["Core site identity and metadata."],"core.settings.general.label":["General"],"core.settings.site.default_og_image":["Default social image URL"],"core.settings.site.description":["Public-facing name, tagline, and social links."],"core.settings.site.github":["GitHub URL"],"core.settings.site.label":["Site identity"],"core.settings.site.mastodon":["Mastodon URL"],"core.settings.site.public":["Allow search engines to index this site"],"core.settings.site.tagline":["Tagline"],"core.settings.site.title":["Site title"],"core.settings.site.twitter":["X (Twitter) URL"],"dashboard.count.draft":[["count","plural",{"one":["#"," draft"],"other":["#"," drafts"]}]],"dashboard.count.published":[["count","plural",{"one":["#"," published"],"other":["#"," published"]}]],"dashboard.empty.description":["Add a plugin that registers a post type (e.g. <0>@plumix/plugin-blog</0>) to see it here."],"dashboard.empty.title":["No content types yet"],"dashboard.recent.empty":["Nothing yet."],"dashboard.recent.title":["Recent activity"],"dashboard.tagline":["What would you like to work on today?"],"dashboard.tile.browse":["Browse ",["labelLower"]],"dashboard.tile.browse.generic":["Browse"],"dashboard.tile.description":["Write, edit, and publish ",["labelLower"],"."],"dashboard.tile.description.generic":["Write, edit, and publish."],"dashboard.welcome":["Welcome, ",["greeting"]],"dataTable.emptyState":["No results."],"dataTable.loading":["Loading"],"editor.autosave.error":["Failed to save"],"editor.autosave.saved":["Saved"],"editor.autosave.saving":["Saving..."],"editor.coAuthorIndicator.activeAriaLabel":["Active co-authors"],"editor.coAuthorIndicator.presenceAriaLabel":[["display"]," · last seen ",["lastSeen"]],"editor.copyPattern.untitled":["Untitled"],"editor.device.desktop":["Desktop"],"editor.device.mobile":["Mobile"],"editor.device.tablet":["Tablet"],"editor.document.excerpt":["Excerpt"],"editor.document.parent":["Parent"],"editor.document.parent.none":["(no parent)"],"editor.document.slug":["Slug"],"editor.document.title":["Title"],"editor.entry.create.failed":["Something went wrong while creating a draft. Try again."],"editor.entry.create.failedTitle":["Couldn't create the entry"],"editor.entry.create.pending":["Creating new ",["singular"],"…"],"editor.entry.create.pending.generic":["Creating…"],"editor.entry.create.retry":["Try again"],"editor.entry.create.untitled":["Untitled"],"editor.entry.edit.headline":["Edit ",["singular"]],"editor.entry.edit.headline.generic":["Edit"],"editor.entry.edit.loadFailed":["Couldn't load this entry."],"editor.entry.edit.loadFailedTitle":["Couldn't load this entry"],"editor.entry.edit.loading":["Loading entry…"],"editor.entry.edit.restore.conflict":["Another editor changed this entry. Reload and try again."],"editor.entry.edit.saveFailed":["Couldn't save."],"editor.entry.edit.stale.loading":["Loading…"],"editor.entry.edit.toast.discardFailed":["Couldn't discard the draft — try again."],"editor.entry.edit.toast.draftDiscarded":["Draft discarded."],"editor.entry.edit.toast.publishFailed":["Couldn't publish — try again."],"editor.entry.edit.toast.published":["Published."],"editor.headingAudit.empty":["No heading-structure issues detected."],"editor.headingAudit.emptyHeading":["Empty heading. Add text or remove the block."],"editor.headingAudit.multipleH1":["Multiple <h1> on the page (",["count"]," found). Keep only one top-level heading."],"editor.headingAudit.skippedLevel":["Heading jumps from h",["from"]," to h",["to"],". Insert an h",["between"]," between them."],"editor.headingAudit.warningPrefix":["Warning:"],"editor.layout.canvas.copyAsPatternSource":["Copy as pattern source"],"editor.layout.canvas.pickStarter":["Pick a starter…"],"editor.layout.canvas.zoomIn":["Zoom in"],"editor.layout.canvas.zoomOut":["Zoom out"],"editor.layout.characterCount":[["characters","plural",{"one":["#"," character"],"other":["#"," characters"]}]],"editor.layout.copy.copied":["Copied to clipboard"],"editor.layout.copy.failed":["Couldn't copy to clipboard"],"editor.layout.copyAsPattern.untitledFallback":["Untitled"],"editor.layout.draft.discard":["Discard"],"editor.layout.draft.discarding":["Discarding…"],"editor.layout.draft.publish":["Publish"],"editor.layout.draft.publishing":["Publishing…"],"editor.layout.draft.save":["Save Draft"],"editor.layout.draft.saving":["Saving…"],"editor.layout.draftBanner.body":["Click Publish to push them live, or Discard to revert."],"editor.layout.draftBanner.title":["You have unpublished draft changes."],"editor.layout.header.backToList":["Back to list"],"editor.layout.header.titlePlaceholder":["Untitled"],"editor.layout.mobile.blocksSheetDescription":["Insertable blocks, outline, and the heading audit for this entry."],"editor.layout.mobile.blocksSheetTitle":["Blocks"],"editor.layout.mobile.blocksTrigger":["Blocks"],"editor.layout.mobile.inspectorSheetDescription":["Block actions, fields, and style controls for the selected block."],"editor.layout.mobile.inspectorSheetTitle":["Inspector"],"editor.layout.mobile.inspectorTrigger":["Inspector"],"editor.layout.publish":["Publish"],"editor.layout.slashMenu.description":["Search blocks and patterns by title or keyword and press Enter to insert."],"editor.layout.slashMenu.title":["Insert block or pattern"],"editor.layout.tab.audit":["Audit"],"editor.layout.tab.block":["Block"],"editor.layout.tab.blocks":["Blocks"],"editor.layout.tab.document":["Document"],"editor.layout.tab.outline":["Outline"],"editor.layout.tab.style":["Style"],"editor.layout.titleAriaLabel":["Entry title"],"editor.layout.wordCount":[["words","plural",{"one":["#"," word"],"other":["#"," words"]}]],"editor.loading":["Opening the editor…"],"editor.patternRef.detach":["Detach"],"editor.patternRef.openSource":["Open source"],"editor.patternRef.unresolved":["Pattern not registered: <code>",["slug"],"</code>"],"editor.plainForm.publish":["Publish"],"editor.plainForm.save":["Save"],"editor.plainForm.status.error":["Failed to save"],"editor.plainForm.status.saved":["Saved"],"editor.plainForm.status.saving":["Saving..."],"editor.plainForm.titleAriaLabel":["Entry title"],"editor.plainForm.titlePlaceholder":["Untitled"],"editor.preview.more":["More preview options"],"editor.preview.open":["Preview"],"editor.preview.tooltip":["Open a preview in a new tab"],"editor.previewFailed":["Couldn't open this entry in the editor."],"editor.previewFailedTitle":["Couldn't open the editor"],"editor.previewLink.copied":["Preview link copied to clipboard"],"editor.previewLink.copy":["Copy preview link"],"editor.previewLink.failed":["Couldn't create a preview link"],"editor.revision.conflict":["This entry changed since the preview loaded — reload and retry."],"editor.revisions.diff.empty":["No changes."],"editor.revisions.diff.field.excerpt":["Excerpt"],"editor.revisions.diff.field.slug":["Slug"],"editor.revisions.diff.field.title":["Title"],"editor.revisions.diff.tab.json":["Raw JSON"],"editor.revisions.diff.tab.visual":["Visual"],"editor.revisions.diffDialog.description":["Side-by-side: this revision (left) vs. the current entry (right)."],"editor.revisions.diffDialog.pane.current":["Current"],"editor.revisions.diffDialog.pane.error":["Failed to load snapshot."],"editor.revisions.diffDialog.pane.thisRevision":["This revision"],"editor.revisions.diffDialog.title":["Revision JSON diff"],"editor.revisions.preview.backToLive":["← Back to live"],"editor.revisions.preview.restore":["Restore this revision"],"editor.revisions.preview.restoring":["Restoring…"],"editor.revisions.preview.subtitle":["from ",["when"]," by ",["author"]],"editor.revisions.preview.title":["Previewing revision"],"editor.revisions.sheet.autosavesEmpty":["Autosaves will appear here once drafts-of-published lands."],"editor.revisions.sheet.commentCancel":["Cancel"],"editor.revisions.sheet.commentPlaceholder":["Describe this revision…"],"editor.revisions.sheet.commentSave":["Save"],"editor.revisions.sheet.commentSaving":["…"],"editor.revisions.sheet.description":["Every save creates a new revision. Newest first."],"editor.revisions.sheet.diffAriaLabel":["View JSON diff"],"editor.revisions.sheet.empty":["No revisions yet."],"editor.revisions.sheet.error":["Failed to load revisions."],"editor.revisions.sheet.loadMore":["Load more"],"editor.revisions.sheet.loadingAria":["Loading revisions"],"editor.revisions.sheet.loadingMore":["Loading…"],"editor.revisions.sheet.tab.all":["All"],"editor.revisions.sheet.tab.autosaves":["Autosaves"],"editor.revisions.sheet.tab.publishes":["Publishes"],"editor.revisions.sheet.title":["Revisions"],"editor.revisions.sheet.trigger":["Revisions"],"editor.revisions.sheet.unknownAuthor":["Unknown"],"editor.stale.loading":["Loading…"],"editor.staleDraft.compare":["Compare"],"editor.staleDraft.description":["Someone else published changes to this entry while you had pending edits. Pick which version to keep before continuing."],"editor.staleDraft.discarding":["Discarding…"],"editor.staleDraft.hideComparison":["Hide comparison"],"editor.staleDraft.liveNow":["Live now"],"editor.staleDraft.title":["Your draft is out of date"],"editor.staleDraft.useMine":["Use mine"],"editor.staleDraft.useTheirs":["Use theirs"],"editor.staleDraft.yourDraft":["Your draft"],"editor.styleTab.activeBucket":["Editing for: ",["device"]],"editor.styleTab.empty":["Select a block to style."],"editor.styleTab.section.background":["Background"],"editor.styleTab.section.fontSize":["Font size"],"editor.styleTab.section.padding":["Padding"],"editor.styleTab.section.textColor":["Text color"],"editor.styleTab.select.none":["None"],"editor.toast.autosaveFailed":["Couldn't save your changes — they may contain invalid content."],"editor.toast.discardFailed":["Couldn't discard the draft — try again."],"editor.toast.discarded":["Draft discarded."],"editor.toast.publishFailed":["Couldn't publish — try again."],"editor.toast.published":["Published."],"emailChange.error.accountDisabled":["The account this confirmation belongs to is disabled."],"emailChange.error.emailTaken":["Someone else claimed that email between the request and your click. Request a new change to a different address."],"emailChange.error.fallback":["Couldn't confirm the email change. Try again."],"emailChange.error.missingToken":["That confirmation link is missing its token. Request a new email change."],"emailChange.error.tokenExpired":["That confirmation link expired. Request a new email change."],"emailChange.error.tokenInvalid":["That confirmation link isn't valid. It may have already been used."],"emailChange.error.userNotFound":["The account this confirmation belongs to has been removed."],"entries.list.authorFilter.all":["All authors"],"entries.list.authorFilter.mine":["Mine"],"entries.list.bulk.cancel":["Cancel"],"entries.list.bulk.confirm":["Confirm"],"entries.list.bulk.delete":["Delete permanently"],"entries.list.bulk.deleteBody":["This permanently deletes the selected entries and their revisions. It cannot be undone."],"entries.list.bulk.deleteTitle":[["count","plural",{"one":["Delete ","#"," entry permanently?"],"other":["Delete ","#"," entries permanently?"]}]],"entries.list.bulk.restore":["Restore"],"entries.list.bulk.selected":[["count","plural",{"one":["#"," entry selected"],"other":["#"," entries selected"]}]],"entries.list.bulk.toastDeleted":[["count","plural",{"one":["Deleted ","#"," entry."],"other":["Deleted ","#"," entries."]}]],"entries.list.bulk.toastFailed":["That didn't work — try again."],"entries.list.bulk.toastRestored":[["count","plural",{"one":["Restored ","#"," entry."],"other":["Restored ","#"," entries."]}]],"entries.list.bulk.toastTrashed":[["count","plural",{"one":["Moved ","#"," entry to trash."],"other":["Moved ","#"," entries to trash."]}]],"entries.list.bulk.trash":["Move to trash"],"entries.list.bulk.trashTitle":[["count","plural",{"one":["Move ","#"," entry to trash?"],"other":["Move ","#"," entries to trash?"]}]],"entries.list.column.status":["Status"],"entries.list.column.title":["Title"],"entries.list.column.updated":["Updated"],"entries.list.deleteDialog.cancel":["Cancel"],"entries.list.deleteDialog.confirm":["Delete permanently"],"entries.list.deleteDialog.deleting":["Deleting…"],"entries.list.deleteDialog.description":["This permanently deletes the entry and its revisions. It cannot be undone."],"entries.list.deleteDialog.title":["Delete permanently?"],"entries.list.empty.cta":["New ",["singularLower"]],"entries.list.empty.description":["Create one to see it here."],"entries.list.empty.title":["No ",["pluralLower"]," yet"],"entries.list.filterAuthorAria":["Filter by author"],"entries.list.filterStatusAria":["Filter by status"],"entries.list.loadError":["Couldn't load ",["pluralLower"],". Try again."],"entries.list.loadingLabel":["Loading ",["pluralLower"]],"entries.list.newButton":["New ",["singularLower"]],"entries.list.noTitle":["(no title)"],"entries.list.row.deletePermanently":["Delete permanently"],"entries.list.row.duplicate":["Duplicate"],"entries.list.row.duplicating":["Duplicating…"],"entries.list.row.edit":["Edit"],"entries.list.row.restore":["Restore"],"entries.list.row.restoring":["Restoring…"],"entries.list.row.trash":["Trash"],"entries.list.row.trashing":["Trashing…"],"entries.list.searchPlaceholder":["Search ",["pluralLower"],"…"],"entries.list.selectAllAria":["Select all entries on this page"],"entries.list.selectRowAria":["Select entry"],"entries.list.sortAria":["Sort by ",["label"]," (",["direction"],")"],"entries.list.statusFilter.all":["All"],"entries.list.statusFilter.draft":["Draft"],"entries.list.statusFilter.published":["Published"],"entries.list.statusFilter.scheduled":["Scheduled"],"entries.list.statusFilter.trash":["Trash"],"entries.list.taxonomyFilter.all":["All ",["pluralLower"]],"entries.list.taxonomyFilter.empty":["No ",["pluralLower"]," match."],"entries.list.taxonomyFilter.search":["Search ",["pluralLower"],"…"],"entries.list.toast.deleted":["Permanently deleted."],"entries.list.toast.duplicated":["Duplicated as a draft."],"entries.list.toast.failed":["That didn't work — try again."],"entries.list.toast.restored":["Restored to drafts."],"entries.list.toast.trashed":["Moved to trash."],"entries.list.trashDialog.cancel":["Cancel"],"entries.list.trashDialog.confirm":["Move to trash"],"entries.list.trashDialog.description":["You can restore it from the Trash view later."],"entries.list.trashDialog.moving":["Moving…"],"entries.list.trashDialog.title":["Move ",["singularLower"]," to trash?"],"errorBoundary.hideError":["Hide error"],"errorBoundary.showError":["Show error"],"errorBoundary.title":["Something went wrong"],"fieldTypes.boolean.no":["No"],"fieldTypes.boolean.yes":["Yes"],"form.multiSelect.empty":["No matches."],"form.multiSelect.placeholder":["Select…"],"form.multiSelect.search":["Search…"],"form.multiSelect.selectedCount":[["count"]," selected"],"listPagination.next.aria":["Go to next page"],"listPagination.next.label":["Next"],"listPagination.page":["Page ",["page"]],"listPagination.prev.aria":["Go to previous page"],"listPagination.prev.label":["Previous"],"login.description":["Use a passkey, get a one-time email link, or continue with a provider."],"login.email.invalid":["Enter a valid email address."],"login.email.label":["Email"],"login.emailChange.success":["Email confirmed. Sign in with the new address."],"login.locale.aria":["Language"],"login.magicLink.back":["Back"],"login.magicLink.emailRequired":["Enter your email above first."],"login.magicLink.pending":["Sending…"],"login.magicLink.sent.description":["If an account exists for this email, we sent a sign-in link. The link expires in 15 minutes."],"login.magicLink.sent.title":["Check your email"],"login.magicLink.submit":["Email me a link"],"login.oauth.continueWith":["Continue with ",["label"]],"login.oauth.separator":["or"],"login.passkey.pending":["Signing in…"],"login.passkey.submit":["Sign in with passkey"],"login.title":["Sign in"],"magicLink.error.accountDisabled":["That account is disabled."],"magicLink.error.domainNotAllowed":["Your email domain isn't on the allowlist anymore. Ask an administrator to add it."],"magicLink.error.fallback":["Couldn't sign in. Try again."],"magicLink.error.missingToken":["That sign-in link is missing its token. Request a new one and try again."],"magicLink.error.registrationClosed":["Self-signup is unavailable until an administrator has finished setup."],"magicLink.error.tokenExpired":["That sign-in link expired. Request a new one."],"magicLink.error.tokenInvalid":["That sign-in link isn't valid. It may have already been used. Request a new one."],"magicLinkRequest.error.invalidInput":["Enter a valid email address."],"magicLinkRequest.error.network":["Couldn't send the link. Try again."],"magicLinkRequest.error.notConfigured":["Magic-link sign-in isn't configured on this site."],"mailer.description":["Test that the configured outbound-email transport actually delivers. Used by magic-link sign-in, invite emails, and any plugin that opts into the shared mailer."],"mailer.test.description":["Sends a one-off message via the same transport magic-link uses. Failures surface here verbatim — distinct from the magic-link request flow, which intentionally swallows mailer errors so the response shape can't leak whether an email is registered."],"mailer.test.error.fallback":["Couldn't send the test message. Try again."],"mailer.test.error.notConfigured":["No mailer adapter is configured. Pass a \`mailer:\` to \`plumix({...})\` (e.g. consoleMailer() for dev, or your Resend/Postmark/SES wrapper)."],"mailer.test.error.sendFailed":["The mailer adapter threw an error during send. Check the worker logs for the underlying error."],"mailer.test.feedback.ok":["Test message sent to ",["to"],". If it doesn't arrive within a minute, check your transport adapter's logs."],"mailer.test.recipient.invalid":["Enter a valid email address."],"mailer.test.recipient.label":["Recipient"],"mailer.test.recipient.placeholder":["ops@example.com"],"mailer.test.submit.idle":["Send test"],"mailer.test.submit.pending":["Sending…"],"mailer.test.title":["Send a test message"],"mailer.title":["Mailer"],"menu.profile":["Profile"],"menu.settings":["Settings"],"menu.signOut":["Sign out"],"menu.signOut.pending":["Signing out…"],"metaBox.field.json.invalid":["Invalid JSON"],"metaBox.multiReference.addMore":["Add"],"metaBox.multiReference.dialogDescription":["Search and pick ",["kind"]," entries"],"metaBox.multiReference.emptyValue":["None selected"],"metaBox.multiReference.loading":["Loading…"],"metaBox.multiReference.noMatches":["No matches"],"metaBox.multiReference.orphan":["Reference missing — remove or re-pick"],"metaBox.multiReference.resolveError":["Couldn’t load selected items — refresh to retry."],"metaBox.multiReference.searchPlaceholder":["Search ",["kind"],"…"],"metaBox.multiReference.selectIdle":["Select"],"metaBox.pluginField.crashed":["This field couldn’t render. Check the browser console for details."],"metaBox.reference.clear":["Clear"],"metaBox.reference.dialogDescription":["Search and pick a ",["kind"]],"metaBox.reference.emptyValue":["None selected"],"metaBox.reference.loading":["Loading…"],"metaBox.reference.noMatches":["No matches"],"metaBox.reference.orphan":["Reference missing — re-pick or clear"],"metaBox.reference.searchPlaceholder":["Search ",["kind"],"…"],"metaBox.reference.selectChange":["Change"],"metaBox.reference.selectIdle":["Select"],"metaBox.reference.untitled":["Untitled"],"metaBox.repeater.addAnother":["Add another"],"metaBox.repeater.addFirst":["Add row"],"metaBox.repeater.countSuffixBoth":[" / min ",["min"]," / max ",["max"]],"metaBox.repeater.countSuffixMax":[" / max ",["max"]],"metaBox.repeater.countSuffixMin":[" / min ",["min"]],"metaBox.repeater.empty":["No rows"],"notFound.description":["The page you're looking for doesn't exist or the resource isn't registered. Check the URL and try again."],"notFound.title":["Not found"],"oauth.error.accountDisabled":["That account is disabled."],"oauth.error.codeExchangeFailed":["Couldn't reach the provider. Try again."],"oauth.error.domainNotAllowed":["Your email domain isn't on the allowlist. Ask an administrator to add it."],"oauth.error.emailMissing":["The provider didn't return an email address."],"oauth.error.emailUnverified":["The provider hasn't verified your email yet. Verify it there, then try again."],"oauth.error.fallback":["Couldn't sign in. Try again."],"oauth.error.linkBroken":["That account can't be reached. Contact an administrator to re-link it."],"oauth.error.profileFetchFailed":["Couldn't read your profile. Try again."],"oauth.error.providerNotConfigured":["That provider isn't configured."],"oauth.error.registrationClosed":["OAuth signup is unavailable until an admin has finished setup."],"oauth.error.stateExpired":["Sign-in expired. Try again."],"oauth.error.stateInvalid":["Sign-in expired or invalid. Try again."],"palette.command.profile":["Edit profile"],"palette.command.settings":["Settings"],"palette.description":["Search to navigate the admin."],"palette.empty":["No results found."],"palette.group.commands":["Commands"],"palette.group.navigation":["Navigation"],"palette.group.recent":["Recent"],"palette.hint.close":["Close"],"palette.hint.navigate":["Navigate"],"palette.hint.select":["Select"],"palette.loading":["Searching…"],"palette.placeholder":["Search…"],"palette.title":["Command palette"],"passkey.error.challengeMismatch":["The passkey was created for a different invite. Please reload and try again."],"passkey.error.challengeNotBoundToUser":["That sign-in attempt timed out. Please try again."],"passkey.error.challengeNotFound":["That sign-in attempt timed out. Please try again."],"passkey.error.counterReplay":["Your passkey appears to have been used on another device. Please re-register."],"passkey.error.credentialAlreadyRegistered":["That passkey is already registered on this site."],"passkey.error.credentialLimitReached":["You've reached the limit of passkeys for this account."],"passkey.error.credentialNotFound":["That passkey isn't registered on this site. Try a different one."],"passkey.error.credentialStorageCorrupt":["Your saved passkey data is corrupt. Please register a new one."],"passkey.error.emailMismatch":["That email doesn't match your signed-in account."],"passkey.error.invalidClientData":["Your device returned an unexpected response. Please try again."],"passkey.error.invalidInput":["Something went wrong with the form. Please reload and try again."],"passkey.error.invalidOrigin":["This passkey isn't usable on this site."],"passkey.error.invalidResponse":["Your device returned an unexpected response. Please try again."],"passkey.error.invalidRpId":["This passkey isn't usable on this site."],"passkey.error.invalidSignature":["Your device's signature didn't verify. Please try again."],"passkey.error.invalidToken":["This invite link is no longer valid. Ask your admin to send a new one."],"passkey.error.networkError":["Couldn't reach the server. Check your connection and try again."],"passkey.error.noAuthenticator":["No passkey is available on this device. Try signing in on the device where you registered."],"passkey.error.registrationClosed":["Sign-up is not open on this site."],"passkey.error.tokenExpired":["This invite link has expired. Ask your admin to send a new one."],"passkey.error.unknown":["Something went wrong. Please try again."],"passkey.error.unsupportedAlgorithm":["Your device's signing algorithm isn't supported."],"passkey.error.unsupportedAttestationFormat":["Your device's response format isn't supported."],"passkey.error.userCancelled":["Sign-in was cancelled."],"passkey.error.userNotFound":["No account found for that email."],"passkey.error.userPresenceMissing":["Your device didn't confirm your presence. Please try again."],"patternsSection.heading":["Patterns"],"patternsSection.uncategorized":["Uncategorized"],"plugin.errorBoundary.iconAria":["Plugin icon failed to render"],"plugin.errorBoundary.inlineStub":[["label"]," ",["kind"]," failed"],"plugin.errorBoundary.pageBody":[["label"]," threw an error while rendering. The rest of the admin is unaffected."],"plugin.errorBoundary.pageTitle":["Plugin page failed to render"],"plugin.errorBoundary.unknownPlugin":["this plugin"],"plugin.errorBoundary.widgetBody":[["label"]," failed to render."],"pluginPage.loading.aria":["Loading ",["label"]],"pluginPage.notLoaded.body":["The admin manifest declares a page at <code>",["path"],"</code> but no React component has been registered for it."],"pluginPage.notLoaded.title":["Plugin not loaded"],"profile.language.aria":["Language"],"profile.language.description":["Your admin chrome renders in this language. The page reloads after you switch so the new translations apply everywhere."],"profile.language.error":["Couldn't switch language. Please try again."],"profile.language.title":["Language"],"profile.passkeys.added":["Added ",["date"]],"profile.passkeys.delete.button":["Delete"],"profile.passkeys.delete.cancel":["Cancel"],"profile.passkeys.delete.confirm":["Delete passkey"],"profile.passkeys.delete.description":["The device that registered \\"",["name"],"\\" will no longer be able to sign in. You can re-enrol it later."],"profile.passkeys.delete.fallback":["Couldn't delete the passkey. Try again."],"profile.passkeys.delete.pending":["Deleting…"],"profile.passkeys.delete.title":["Delete this passkey?"],"profile.passkeys.description":["Devices that can sign in to this account. Add a new one before deleting an old one — at least one passkey must remain."],"profile.passkeys.empty":["No passkeys registered. Add one to enable sign-in."],"profile.passkeys.enroll.alreadyRegistered":["That passkey is already registered on this account."],"profile.passkeys.enroll.cancelled":["Cancelled. Tap Add passkey when you're ready."],"profile.passkeys.enroll.emailMismatch":["Couldn't enrol — re-sign-in and try again."],"profile.passkeys.enroll.fallback":["Couldn't enrol the passkey. Try again."],"profile.passkeys.enroll.idle":["Add passkey"],"profile.passkeys.enroll.networkError":["Network error. Check your connection and try again."],"profile.passkeys.enroll.noAuthenticator":["This device doesn't support passkeys."],"profile.passkeys.enroll.pending":["Adding…"],"profile.passkeys.lastCredential":["You can't delete your last passkey. Add another one first."],"profile.passkeys.lastUsed":["Last used ",["date"]],"profile.passkeys.loadFailed":["Couldn't load your passkeys. Refresh and try again."],"profile.passkeys.loading":["Loading…"],"profile.passkeys.notFound":["This passkey no longer exists. Refresh the list."],"profile.passkeys.rename.button":["Rename"],"profile.passkeys.rename.cancel":["Cancel"],"profile.passkeys.rename.fallback":["Couldn't rename the passkey. Try again."],"profile.passkeys.rename.label":["Rename passkey"],"profile.passkeys.rename.nameEmpty":["Name can't be empty."],"profile.passkeys.rename.pending":["Saving…"],"profile.passkeys.rename.save":["Save"],"profile.passkeys.synced":["Synced"],"profile.passkeys.title":["Passkeys"],"profile.passkeys.transport.hybrid":["Cross-device"],"profile.passkeys.transport.internal":["This device"],"profile.passkeys.transport.securityKey":["Security key"],"profile.passkeys.unnamed":["Unnamed passkey"],"profile.sessions.description":["Devices signed in to this account. Revoke any you don't recognise, or sign out everywhere except this browser if you suspect a leak."],"profile.sessions.device.browserOnOs":[["browser"]," on ",["os"]],"profile.sessions.empty":["No plumix-managed sessions. Your sign-in is handled by an external identity provider."],"profile.sessions.loadFailed":["Couldn't load your sessions. Refresh and try again."],"profile.sessions.loading":["Loading…"],"profile.sessions.revoke.button":["Revoke"],"profile.sessions.revoke.cancel":["Cancel"],"profile.sessions.revoke.confirm":["Sign out device"],"profile.sessions.revoke.current":["You can't revoke the session you're using right now."],"profile.sessions.revoke.description":[["device"]," signed in ",["when"],". The device will need to sign in again next time."],"profile.sessions.revoke.descriptionWithIp":[["device"]," signed in ",["when"]," from ",["ip"],". The device will need to sign in again next time."],"profile.sessions.revoke.fallback":["Couldn't revoke the session. Try again."],"profile.sessions.revoke.notFound":["This session no longer exists. Refresh the list."],"profile.sessions.revoke.pending":["Signing out…"],"profile.sessions.revoke.title":["Sign out this device?"],"profile.sessions.revokeAll.count":[["revoked","plural",{"0":["No other sessions to sign out."],"one":["Signed out ","#"," other session."],"other":["Signed out ","#"," other sessions."]}]],"profile.sessions.revokeAll.fallback":["Couldn't revoke sessions. Try again."],"profile.sessions.revokeAll.idle":["Sign out other devices"],"profile.sessions.revokeAll.pending":["Signing out…"],"profile.sessions.signedIn":["Signed in ",["when"]],"profile.sessions.thisDevice":["This device"],"profile.sessions.title":["Active sessions"],"profile.sessions.unknownDevice":["Unknown device"],"settings.empty.description":["Core ships no settings by design — plugins (or your own plumix.config) declare pages + groups via <0>ctx.registerSettingsPage</0> and <1>ctx.registerSettingsGroup</1>. Registered pages appear here with one card per page."],"settings.empty.title":["No settings registered yet"],"settings.page.empty.description":["This settings page doesn't reference any registered groups yet. Plugins compose pages with the registerSettingsPage helper:"],"settings.page.empty.title":["No groups on this page"],"settings.page.loadFailed":["Couldn't load these settings. Try again."],"settings.page.loading":["Loading settings"],"settings.page.notFound.title":["Not found"],"settings.page.saveFailed":["Couldn't save settings."],"settings.page.saved":["Saved."],"settings.page.submit.idle":["Save changes"],"settings.page.submit.pending":["Saving…"],"settings.pageSummary":[["count","plural",{"one":["#"," group"],"other":["#"," groups"]}]],"settings.title":["Settings"],"slashMenu.empty":["No matches"],"slashMenu.searchAria":["Search blocks and patterns"],"slashMenu.uncategorized":["Other"],"starterModal.description":["Pick a starting layout, or begin from a blank canvas."],"starterModal.startBlank":["Start from blank"],"starterModal.title":["Start from a pattern"],"termForm.cancel":["Cancel"],"termForm.description":["Description"],"termForm.name":["Name"],"termForm.parent":["Parent"],"termForm.parent.rootOption":["— root —"],"termForm.slug":["Slug"],"termForm.slug.format":["Slug may only contain lowercase letters, digits, and hyphens."],"termForm.submitting":["Saving…"],"terms.create.backLink":["Back to ",["pluralLower"]],"terms.create.description.flat":["Group content by adding a new term."],"terms.create.description.hierarchical":["Pick a parent to nest this term, or leave empty for a root-level term."],"terms.create.error.createFallback":["Couldn't create the term. Try again."],"terms.create.error.emptySlug":["Couldn't derive a slug from that name — please type one manually."],"terms.create.heading":["New ",["singularLower"]],"terms.create.submit":["Create ",["singularLower"]],"terms.edit.backLink":["Back to ",["pluralLower"]],"terms.edit.delete.button":["Delete term"],"terms.edit.delete.cancel":["Cancel"],"terms.edit.delete.cardDescription":["Removes this term and unassigns it from any entries that use it. Descendants are promoted to root level (their entries keep their other term assignments)."],"terms.edit.delete.cardTitle":["Delete term"],"terms.edit.delete.confirm":["Delete forever"],"terms.edit.delete.deleting":["Deleting…"],"terms.edit.delete.dialogDescription":["Entry assignments to this term are removed. If the term has children, they become root-level automatically."],"terms.edit.delete.dialogTitle":["Delete ",["termName"],"?"],"terms.edit.descendantsHint":[" — descendants can't be picked as parent."],"terms.edit.error.deleteFallback":["Couldn't delete the term. Try again."],"terms.edit.error.saveFallback":["Couldn't save the changes. Try again."],"terms.edit.heading":["Edit ",["singularLower"]],"terms.edit.loadingAria":["Loading term"],"terms.edit.notFound.message":["Couldn't load that term. It may have been deleted."],"terms.edit.notFound.title":["Not found"],"terms.edit.submit":["Save changes"],"terms.error.parentMismatch":["The selected parent belongs to a different taxonomy."],"terms.error.parentSelfOrCycle":["A term can't be its own ancestor — pick a different parent."],"terms.error.slugTaken":["A term with that slug already exists in this taxonomy."],"terms.list.column.description":["Description"],"terms.list.column.name":["Name"],"terms.list.empty.cta":["New ",["singularLower"]],"terms.list.empty.description":["Create one to see it here."],"terms.list.empty.title":["No ",["singularLower"]," yet"],"terms.list.loadError":["Couldn't load ",["pluralLower"],". Try again."],"terms.list.loadingLabel":["Loading ",["pluralLower"]],"terms.list.newButton":["New ",["singularLower"]],"terms.list.searchPlaceholder":["Search ",["pluralLower"],"…"],"tokenSwatch.none":["None"],"type.generic.addNew":["Add New"],"type.generic.addNewItem":["Add"],"type.generic.allItems":["All"],"type.generic.editItem":["Edit"],"type.generic.filterItemsList":["Filter list"],"type.generic.itemPublished":["Published"],"type.generic.itemPublishedPrivately":["Published privately"],"type.generic.itemRevertedToDraft":["Reverted to draft"],"type.generic.itemScheduled":["Scheduled"],"type.generic.itemTrashed":["Moved to trash"],"type.generic.itemUpdated":["Updated"],"type.generic.itemsList":["List"],"type.generic.itemsListNavigation":["List navigation"],"type.generic.loadErrorItems":["Couldn’t load. Try again."],"type.generic.loadingItems":["Loading…"],"type.generic.moveToTrash":["Move to trash?"],"type.generic.newItem":["New"],"type.generic.noMatch":["No matches"],"type.generic.notFound":["Nothing yet"],"type.generic.notFoundInTrash":["Trash is empty"],"type.generic.parentItem":["Parent"],"type.generic.parentItemColon":["Parent:"],"type.generic.plural":["Items"],"type.generic.searchItems":["Search…"],"type.generic.singular":["Item"],"type.generic.taxonomy.addOrRemoveItems":["Add or remove"],"type.generic.taxonomy.backToItems":["← Back"],"type.generic.taxonomy.filterByItem":["Filter"],"type.generic.taxonomy.newItemName":["New name"],"type.generic.taxonomy.noTerms":["—"],"type.generic.taxonomy.plural":["Terms"],"type.generic.taxonomy.separateItemsWithCommas":["Separate with commas"],"type.generic.taxonomy.singular":["Term"],"type.generic.taxonomy.updateItem":["Update"],"type.generic.untitledItem":["Untitled"],"type.generic.viewItem":["View"],"type.generic.viewItems":["View"],"userEdit.backToList":["Back to users"],"userEdit.cancel":["Cancel"],"userEdit.delete.button":["Delete user"],"userEdit.delete.confirm.description":["If this user authored any entries, the next step reassigns them. Leave \\"Keep entries as-is\\" if they have none."],"userEdit.delete.confirm.idle":["Delete forever"],"userEdit.delete.confirm.pending":["Deleting…"],"userEdit.delete.confirm.title":["Confirm delete: ",["email"]],"userEdit.delete.description":["Permanent. Their entries stay, but you'll choose who inherits authorship."],"userEdit.delete.reassign.keepAsIs":["Keep entries as-is (none to reassign)"],"userEdit.delete.reassign.label":["Reassign entries to"],"userEdit.delete.title":["Delete user"],"userEdit.description.other":["Update this account's details. Role changes invalidate existing sessions immediately."],"userEdit.description.self":["Update your display name. Role and account state are managed by administrators."],"userEdit.email.cancelPending.idle":["Cancel"],"userEdit.email.cancelPending.pending":["Cancelling…"],"userEdit.email.changeButton":["Change email"],"userEdit.email.confirmationSent":["Confirmation sent to ",["email"],". The change takes effect once they click the link."],"userEdit.email.dialog.cancel":["Cancel"],"userEdit.email.dialog.currentLabel":["Current email"],"userEdit.email.dialog.description":["We'll send a confirmation link to the new address. The change takes effect after the link is clicked. Sessions on this account are signed out at that point — re-sign-in uses the new email."],"userEdit.email.dialog.newLabel":["New email"],"userEdit.email.dialog.submit.idle":["Send confirmation"],"userEdit.email.dialog.submit.pending":["Sending…"],"userEdit.email.dialog.title":["Change email"],"userEdit.email.error.accountDisabled":["This account is disabled."],"userEdit.email.error.mailerNotConfigured":["Email change requires a magic-link mailer to be configured server-side. Pass \`auth.magicLink\` and \`mailer:\` to \`plumix({...})\` to enable."],"userEdit.email.error.requestFallback":["Couldn't request the change. Try again."],"userEdit.email.error.taken":["That email is already in use on another account."],"userEdit.email.invalid":["Enter a valid email address."],"userEdit.email.label":["Email"],"userEdit.email.pending":["Pending change to <code>",["newEmail"],"</code> — expires ",["expiresAt"]],"userEdit.email.placeholder":["new@example.com"],"userEdit.error.deleteFallback":["Couldn't delete the user. Try again."],"userEdit.error.emailTaken":["A user with that email already exists."],"userEdit.error.hasEntries":["This user has authored entries. Pick someone to reassign them to above."],"userEdit.error.lastAdmin.delete":["Can't delete the last administrator. Promote someone else first."],"userEdit.error.lastAdmin.status":["Can't disable the last administrator. Promote someone else first."],"userEdit.error.lastAdmin.update":["Can't do that — this is the last administrator. Promote someone else first."],"userEdit.error.reassignToSelf":["Can't reassign to the user being deleted."],"userEdit.error.statusFallback":["Couldn't change the account status. Try again."],"userEdit.error.updateFallback":["Couldn't save the changes. Try again."],"userEdit.loadFailed":["Couldn't load that user. They may have been deleted."],"userEdit.loading.aria":["Loading user"],"userEdit.name.label":["Name"],"userEdit.notFound.title":["Not found"],"userEdit.role.label":["Role"],"userEdit.role.selfReadonly":["Only another administrator can change your role."],"userEdit.status.description.active":["Disabling signs the user out immediately and blocks future sign-ins. Their entries stay published."],"userEdit.status.description.disabled":["Disabled accounts can't sign in. Re-enabling restores access; their passkey is still registered."],"userEdit.status.title":["Account status"],"userEdit.status.toggle.disable":["Disable user"],"userEdit.status.toggle.disabling":["Disabling…"],"userEdit.status.toggle.enable":["Re-enable user"],"userEdit.status.toggle.enabling":["Enabling…"],"userEdit.submit.idle":["Save changes"],"userEdit.submit.pending":["Saving…"],"userEdit.title.other":["Edit ",["email"]],"userEdit.title.self":["Your profile"],"userInvite.backToList":["Back to users"],"userInvite.cancel":["Cancel"],"userInvite.copy.aria":["Copy invite link"],"userInvite.copy.copied":["Copied"],"userInvite.copy.idle":["Copy"],"userInvite.description":["They'll enrol a passkey the first time they open the invite link. No password required."],"userInvite.email.invalid":["Enter a valid email address"],"userInvite.email.label":["Email"],"userInvite.error.emailTaken":["A user with that email already exists."],"userInvite.error.fallback":["Couldn't send invite. Try again."],"userInvite.name.label":["Name"],"userInvite.role.label":["Role"],"userInvite.submit.idle":["Send invite"],"userInvite.submit.pending":["Inviting…"],"userInvite.success.another":["Invite another"],"userInvite.success.backToList":["Back to users"],"userInvite.success.description":["Share the link below with ",["email"],". They'll enrol a passkey the first time they open it. Link expires in 7 days."],"userInvite.success.link.label":["Invite link"],"userInvite.success.title":["Invite ready"],"userInvite.title":["Invite user"],"userRole.admin":["Administrator"],"userRole.author":["Author"],"userRole.contributor":["Contributor"],"userRole.editor":["Editor"],"userRole.long.admin":["Administrator — full control"],"userRole.long.author":["Author — publish own entries"],"userRole.long.contributor":["Contributor — draft, no publish"],"userRole.long.editor":["Editor — publish + edit any post"],"userRole.long.subscriber":["Subscriber — read only"],"userRole.subscriber":["Subscriber"],"users.list.column.created":["Created"],"users.list.column.lastSignIn":["Last sign-in"],"users.list.column.role":["Role"],"users.list.column.status":["Status"],"users.list.column.user":["User"],"users.list.empty.description":["Clear the filter, or invite someone new to join."],"users.list.empty.invite":["Invite user"],"users.list.empty.title":["No users match your filter"],"users.list.invite":["Add new"],"users.list.loadFailed":["Couldn't load users. Try again."],"users.list.loading":["Loading users"],"users.list.roleFilter.all":["All roles"],"users.list.roleFilter.aria":["Filter by role"],"users.list.row.active":["Active"],"users.list.row.disabled":["Disabled"],"users.list.row.lastSignIn.never":["Never"],"users.list.row.noName":["(no name)"],"users.list.row.you":["You"],"users.list.searchPlaceholder":["Search by email…"],"users.list.title":["Users"],"validate.email.invalid":["Enter a valid email address."],"validate.email.maxLength":["Email is too long."],"validate.email.required":["Enter an email address."],"validate.id.format":["id must be a positive decimal integer"],"validate.name.maxLength":["Name is too long."]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"core.adminNav.library":["Library"],"plugin.media.adminPage.title":["Media Library"],"plugin.media.altEditor.saved":["✓ Saved"],"plugin.media.banner.dismiss":["Dismiss"],"plugin.media.block.file.description":["Downloadable file with size + MIME label."],"plugin.media.block.file.input.filename.label":["Filename"],"plugin.media.block.file.input.href.label":["Download URL"],"plugin.media.block.file.input.media.label":["File"],"plugin.media.block.file.input.mime.label":["MIME type"],"plugin.media.block.file.input.size.label":["Size (bytes)"],"plugin.media.block.file.keyword.attachment":["attachment"],"plugin.media.block.file.keyword.download":["download"],"plugin.media.block.file.title":["File"],"plugin.media.block.image.description":["Image with alt text, caption, and focal-point cropping."],"plugin.media.block.image.input.alt.label":["Alternative text"],"plugin.media.block.image.input.caption.label":["Caption"],"plugin.media.block.image.input.focalPoint.label":["Focal point"],"plugin.media.block.image.input.media.label":["Image"],"plugin.media.block.image.input.priority.label":["High priority (load eagerly)"],"plugin.media.block.image.input.src.label":["Source URL"],"plugin.media.block.image.keyword.media":["media"],"plugin.media.block.image.keyword.photo":["photo"],"plugin.media.block.image.keyword.picture":["picture"],"plugin.media.block.image.title":["Image"],"plugin.media.detail.altPlaceholderImage":["Describe this image…"],"plugin.media.detail.altPlaceholderOther":["Add a description…"],"plugin.media.detail.closeAria":["Close details"],"plugin.media.detail.copied":["Copied"],"plugin.media.detail.copy":["Copy"],"plugin.media.detail.delete":["Delete"],"plugin.media.detail.deleteConfirm":["Delete"],"plugin.media.detail.deleteDescription":["\\"",["title"],"\\" will be removed permanently. Pages or posts that embed it will show a broken link."],"plugin.media.detail.deleteTitle":["Delete this asset?"],"plugin.media.detail.download":["Download"],"plugin.media.detail.field.altText":["ALT TEXT"],"plugin.media.detail.field.assetType":["ASSET TYPE"],"plugin.media.detail.field.fileSize":["FILE SIZE"],"plugin.media.detail.field.uploaded":["UPLOADED"],"plugin.media.detail.field.url":["URL"],"plugin.media.detail.heading":["ASSET DETAILS"],"plugin.media.dialog.cancel":["Cancel"],"plugin.media.dialog.confirm":["Confirm"],"plugin.media.dropzone.headline":["Your library is empty. Add files to get started."],"plugin.media.dropzone.subline":["Drag and drop or <0>select from computer</0>"],"plugin.media.error.alreadyConfirmed":["This upload was already confirmed by another tab or device."],"plugin.media.error.contentLengthRequired":["Upload missing Content-Length — your browser/proxy may be using chunked transfer."],"plugin.media.error.csrfTokenMissing":["Request blocked by CSRF check. Reload the page and try again."],"plugin.media.error.mimeMismatch":["The uploaded bytes don't match the declared file type."],"plugin.media.error.objectNotFound":["Upload didn't reach storage — check your bucket's CORS rules."],"plugin.media.error.payloadTooLarge":["File exceeds the configured maxUploadSize."],"plugin.media.error.serverCouldntProcess":["Server couldn't process this upload. Try again."],"plugin.media.error.storageNotConfigured":["No storage adapter is wired up — set \`storage:\` in plumix.config.ts."],"plugin.media.error.unsupportedMediaType":["This file type isn't allowed by the media plugin's acceptedTypes."],"plugin.media.keyword.assets":["assets"],"plugin.media.keyword.files":["files"],"plugin.media.keyword.images":["images"],"plugin.media.keyword.photos":["photos"],"plugin.media.keyword.uploads":["uploads"],"plugin.media.library.failedToLoad":["Failed to load media."],"plugin.media.library.loadingMore":["Loading more…"],"plugin.media.library.noMatches":["No files match your search."],"plugin.media.library.openDetailsAria":["Open details for ",["title"]],"plugin.media.library.pickItemAria":["Pick ",["title"]],"plugin.media.library.pickerCancel":["Cancel"],"plugin.media.library.pickerUseSelection":["Use selection"],"plugin.media.library.searchPlaceholder":["Search by filename…"],"plugin.media.library.title.library":["Media Library"],"plugin.media.library.title.picker":["Select media"],"plugin.media.listField.button.addMore":["Add more"],"plugin.media.listField.button.select":["Select"],"plugin.media.listField.empty":["No media selected"],"plugin.media.listField.modalAria":["Add media"],"plugin.media.listField.moveDownAria":["Move ",["name"]," down"],"plugin.media.listField.moveUpAria":["Move ",["name"]," up"],"plugin.media.listField.pending":["Selected (id ",["id"],")"],"plugin.media.listField.removeAria":["Remove ",["name"]],"plugin.media.media.addNew":["Add New"],"plugin.media.media.addNewItem":["Upload Media"],"plugin.media.media.allItems":["All Media"],"plugin.media.media.editItem":["Edit Media"],"plugin.media.media.moveToTrash":["Move media to trash?"],"plugin.media.media.newItem":["New Media"],"plugin.media.media.notFound":["No media yet"],"plugin.media.media.notFoundInTrash":["Trash is empty"],"plugin.media.media.plural":["Media"],"plugin.media.media.searchItems":["Search media…"],"plugin.media.media.singular":["Asset"],"plugin.media.media.untitledItem":["Untitled Media"],"plugin.media.media.viewItem":["View Media"],"plugin.media.pickerField.button.change":["Change"],"plugin.media.pickerField.button.select":["Select"],"plugin.media.pickerField.clear":["Clear"],"plugin.media.pickerField.empty":["No media selected"],"plugin.media.pickerField.modalAria":["Select media"],"plugin.media.pickerField.pending":["Selected (id ",["id"],")"],"plugin.media.upload.button":["Upload"],"plugin.media.upload.progress":["Uploading ",["count","plural",{"one":["#"," file"],"other":["#"," files"]}],"…"]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"plugin.comments.action.approve":["Approve"],"plugin.comments.action.purge":["Delete permanently"],"plugin.comments.action.restore":["Restore"],"plugin.comments.action.spam":["Spam"],"plugin.comments.action.trash":["Trash"],"plugin.comments.adminPage.title":["Comments"],"plugin.comments.detail.author":["Author"],"plugin.comments.detail.email":["Email"],"plugin.comments.detail.entry":["Entry"],"plugin.comments.detail.ipHash":["IP hash"],"plugin.comments.detail.submitted":["Submitted"],"plugin.comments.empty":["No comments to show"],"plugin.comments.error":["Failed to load comments"],"plugin.comments.filter.entryLabel":["Filter by entry id"],"plugin.comments.filter.entryPlaceholder":["Entry id…"],"plugin.comments.filter.searchLabel":["Search comments"],"plugin.comments.filter.searchPlaceholder":["Search comments…"],"plugin.comments.heading":["Comments"],"plugin.comments.keyword.discussion":["discussion"],"plugin.comments.keyword.moderation":["moderation"],"plugin.comments.keyword.replies":["replies"],"plugin.comments.keyword.spam":["spam"],"plugin.comments.row.selectLabel":["Select comment ",["id"]],"plugin.comments.status.approved":["Approved"],"plugin.comments.status.pending":["Pending"],"plugin.comments.status.spam":["Spam"],"plugin.comments.status.trash":["Trash"]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"block.core.button.input.href.label":["Href"],"block.core.button.input.label.label":["Label"],"block.core.button.input.openInNewTab.label":["Open in new tab"],"block.core.button.title":["Button"],"block.core.code.input.language.label":["Language"],"block.core.code.input.text.label":["Code"],"block.core.code.title":["Code"],"block.core.column.input.content.label":["Content"],"block.core.column.input.width.label":["Width"],"block.core.column.title":["Column"],"block.core.columns.input.columns.label":["Columns"],"block.core.columns.input.reverseWhenStacked.label":["Reverse when stacked"],"block.core.columns.input.stackAt.label":["Stack columns at"],"block.core.columns.input.stackAt.option.mobile":["Mobile"],"block.core.columns.input.stackAt.option.never":["Never"],"block.core.columns.input.stackAt.option.tablet":["Tablet"],"block.core.columns.title":["Columns"],"block.core.details.input.content.label":["Content"],"block.core.details.input.open.label":["Open by default"],"block.core.details.input.summary.label":["Summary"],"block.core.details.title":["Details"],"block.core.embed.description":["Embed a YouTube, Vimeo, Loom, Spotify, or CodePen URL — or any other page in a sandboxed iframe."],"block.core.embed.input.caption.label":["Caption"],"block.core.embed.input.title.label":["Accessible title"],"block.core.embed.input.url.label":["URL"],"block.core.embed.keyword.iframe":["iframe"],"block.core.embed.keyword.media":["media"],"block.core.embed.keyword.video":["video"],"block.core.embed.keyword.vimeo":["vimeo"],"block.core.embed.keyword.youtube":["youtube"],"block.core.embed.title":["Embed"],"block.core.group.input.content.label":["Content"],"block.core.group.title":["Box"],"block.core.html.input.html.label":["HTML"],"block.core.html.title":["HTML"],"block.core.pattern-ref.input.slug.label":["Slug"],"block.core.pattern-ref.title":["Pattern reference"],"block.core.rich-text.input.body.label":["Body"],"block.core.rich-text.keyword.body":["body"],"block.core.rich-text.keyword.paragraph":["paragraph"],"block.core.rich-text.keyword.text":["text"],"block.core.rich-text.title":["Rich text"],"block.core.section.input.content.label":["Content"],"block.core.section.input.maxWidth.label":["Content max width"],"block.core.section.title":["Section"],"block.core.separator.title":["Separator"],"block.core.table-body-row.input.cells.label":["Cells"],"block.core.table-body-row.title":["Body Row"],"block.core.table-cell.input.text.label":["Text"],"block.core.table-cell.title":["Cell"],"block.core.table-header-cell.input.text.label":["Text"],"block.core.table-header-cell.title":["Header Cell"],"block.core.table-header-row.input.cells.label":["Cells"],"block.core.table-header-row.title":["Header Row"],"block.core.table.input.align.label":["Align"],"block.core.table.input.align.option.center":["Center"],"block.core.table.input.align.option.left":["Left"],"block.core.table.input.align.option.right":["Right"],"block.core.table.input.align.placeholder":["Left"],"block.core.table.input.rows.label":["Rows"],"block.core.table.title":["Table"],"block.core.video.description":["HTML <video> with browser controls."],"block.core.video.input.autoplay.label":["Autoplay"],"block.core.video.input.controls.label":["Show controls"],"block.core.video.input.loop.label":["Loop"],"block.core.video.input.muted.label":["Muted"],"block.core.video.input.playsinline.label":["Plays inline (iOS)"],"block.core.video.input.poster.label":["Poster image URL"],"block.core.video.input.src.label":["Source URL"],"block.core.video.keyword.clip":["clip"],"block.core.video.keyword.media":["media"],"block.core.video.keyword.movie":["movie"],"block.core.video.title":["Video"],"editor.canvas.addBlock":["Add a block"],"editor.canvas.cantPlaceHere":["This block can't be placed here."],"editor.canvas.pan":["Drag to move the canvas"],"editor.catalog.noResults":["No blocks match your search."],"editor.catalog.patterns":["Patterns"],"editor.catalog.searchLabel":["Search blocks"],"editor.combobox.none":["No match."],"editor.combobox.placeholder":["Select…"],"editor.combobox.search":["Search…"],"editor.header.back":["Back"],"editor.header.preview":["Preview"],"editor.header.source":["View source"],"editor.header.title":["Title"],"editor.header.untitled":["Untitled"],"editor.header.viewDraft":["View current draft"],"editor.header.viewLive":["View live entry"],"editor.htmlAttrs.add":["Add attribute"],"editor.htmlAttrs.add.create":["Create"],"editor.htmlAttrs.add.key":["attribute"],"editor.htmlAttrs.add.none":["No attribute."],"editor.htmlAttrs.add.search":["Search attribute…"],"editor.htmlAttrs.add.value":["value"],"editor.htmlAttrs.none":["No attributes set."],"editor.htmlAttrs.remove":["Remove"],"editor.htmlAttrs.tagName":["Tag name"],"editor.htmlAttrs.tagName.default":["Default"],"editor.htmlAttrs.title":["HTML attributes"],"editor.inspector.addColumn":["Add column"],"editor.inspector.addRow":["Add row"],"editor.inspector.empty":["Select a block to edit its attributes."],"editor.inspector.refreshData":["Refresh data"],"editor.inspector.removeColumn":["Remove column"],"editor.inspector.removeRow":["Remove row"],"editor.json.block":["Block"],"editor.json.empty":["Select a block to inspect."],"editor.json.page":["Page"],"editor.json.title":["Source"],"editor.layers.actions":["Block actions"],"editor.layers.copy":["Copy"],"editor.layers.delete":["Delete"],"editor.layers.duplicate":["Duplicate"],"editor.layers.empty":["No blocks yet."],"editor.layers.paste":["Paste"],"editor.page.empty":["No document settings."],"editor.richtext.hint":["Formatting applies to the selected text."],"editor.selection.count":[["count"]," selected"],"editor.selection.delete":["Delete"],"editor.selection.drag":["Drag to move"],"editor.selection.duplicate":["Duplicate"],"editor.selection.group":["Group"],"editor.selection.moveDown":["Move down"],"editor.selection.moveUp":["Move up"],"editor.selection.selectParent":["Select parent"],"editor.selection.ungroup":["Ungroup"],"editor.styles.add":["Add style"],"editor.styles.add.create":["Create"],"editor.styles.add.key":["property"],"editor.styles.add.none":["No property."],"editor.styles.add.search":["Search property…"],"editor.styles.add.value":["value"],"editor.styles.advanced":["Advanced"],"editor.styles.align.center":["Align center"],"editor.styles.align.left":["Align left"],"editor.styles.align.right":["Align right"],"editor.styles.all":["All styles"],"editor.styles.background":["Background"],"editor.styles.blockId":["Block ID"],"editor.styles.border":["Border"],"editor.styles.css":["CSS"],"editor.styles.cssClasses":["CSS classes"],"editor.styles.cssClasses.hint":["Added to the block root element."],"editor.styles.cssClasses.placeholder":["my-class other-class"],"editor.styles.cssProperties":["CSS Properties"],"editor.styles.customCss":["Custom CSS"],"editor.styles.effects":["Shadows & Effects"],"editor.styles.empty":["Select a block to style it."],"editor.styles.fillImage":["Fill image"],"editor.styles.hideOnDevice":["Hide on this device"],"editor.styles.layout":["Layout"],"editor.styles.margin":["Margin"],"editor.styles.marginPadding":["Margin & Padding"],"editor.styles.mark.bold":["Bold"],"editor.styles.mark.italic":["Italic"],"editor.styles.mark.strikethrough":["Strikethrough"],"editor.styles.mark.underline":["Underline"],"editor.styles.mode.custom":["Custom"],"editor.styles.mode.token":["Token"],"editor.styles.none":["No styles set for this device."],"editor.styles.opacity":["Opacity"],"editor.styles.padding":["Padding"],"editor.styles.remove":["Remove"],"editor.styles.scope":["Editing"],"editor.styles.size":["Size"],"editor.styles.spacing":["Spacing"],"editor.styles.textAlignment":["Text alignment"],"editor.styles.textFormatting":["Text formatting"],"editor.styles.textShadow":["Text shadow"],"editor.styles.typography":["Typography"],"editor.styles.visibility":["Visibility"],"editor.styles.visibility.desktop":["Hide on desktop"],"editor.styles.visibility.mobile":["Hide on mobile"],"editor.styles.visibility.tablet":["Hide on tablet"],"editor.tab.block":["Block"],"editor.tab.blocks":["Blocks"],"editor.tab.json":["JSON"],"editor.tab.layers":["Layers"],"editor.tab.page":["Page"],"editor.tab.styles":["Styles"],"editor.toolbar.addBlock":["Add Block"],"editor.toolbar.copyPreviewLink":["Copy preview link"],"editor.toolbar.device.desktop":["Desktop"],"editor.toolbar.device.group":["Device"],"editor.toolbar.device.mobile":["Mobile"],"editor.toolbar.device.tablet":["Tablet"],"editor.toolbar.discard":["Discard"],"editor.toolbar.fitWidth":["Fit to width"],"editor.toolbar.publish":["Publish"],"editor.toolbar.rails":["Toggle panels"],"editor.toolbar.redo":["Redo"],"editor.toolbar.saveDraft":["Save draft"],"editor.toolbar.undo":["Undo"],"editor.toolbar.unpublished":["Unpublished changes"],"editor.toolbar.xray":["X-ray: outline all blocks"],"editor.toolbar.zoomIn":["Zoom in"],"editor.toolbar.zoomOut":["Zoom out"]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"core.adminNav.tools":["Tools"],"plugin.auditLog.adminPage.title":["Audit log"],"plugin.auditLog.column.actor":["Actor"],"plugin.auditLog.column.changes":["Changes"],"plugin.auditLog.column.event":["Event"],"plugin.auditLog.column.subject":["Subject"],"plugin.auditLog.column.time":["Time"],"plugin.auditLog.diff.overflow":[" +",["count"]," more"],"plugin.auditLog.filter.actorPlaceholder":["Actor user id"],"plugin.auditLog.filter.eventAny":["Any event"],"plugin.auditLog.filter.preset.all":["All time"],"plugin.auditLog.filter.preset.last30":["Last 30 days"],"plugin.auditLog.filter.preset.last7":["Last 7 days"],"plugin.auditLog.filter.preset.today":["Today"],"plugin.auditLog.filter.reset":["Reset"],"plugin.auditLog.filter.subjectAny":["Any subject type"],"plugin.auditLog.keyword.activity":["activity"],"plugin.auditLog.keyword.events":["events"],"plugin.auditLog.keyword.history":["history"],"plugin.auditLog.keyword.log":["log"],"plugin.auditLog.keyword.security":["security"],"plugin.auditLog.row.systemActor":["(system)"],"plugin.auditLog.shell.empty":["No audit events match."],"plugin.auditLog.shell.error":["Failed to load audit log: ",["message"]],"plugin.auditLog.shell.loadMore":["Load more"],"plugin.auditLog.shell.title":["Audit log"]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"core.adminNav.appearance":["Appearance"],"plugin.menu.itemEditor.brokenLinkAria":["broken link"],"plugin.menu.itemEditor.cancelButton":["Cancel"],"plugin.menu.itemEditor.conflictBanner":["Another editor saved changes since you loaded this menu."],"plugin.menu.itemEditor.conflictReload":["Reload to see latest"],"plugin.menu.itemEditor.convertButton":["Convert to Custom URL"],"plugin.menu.itemEditor.customAddButton":["Add to menu"],"plugin.menu.itemEditor.customReplaceButton":["Replace link"],"plugin.menu.itemEditor.deleteButton":["Delete menu"],"plugin.menu.itemEditor.deleteCancel":["Cancel"],"plugin.menu.itemEditor.deleteConfirm":["Delete this menu?"],"plugin.menu.itemEditor.deleteDescription":["This permanently removes the menu and its items. This can't be undone."],"plugin.menu.itemEditor.emptyState":["No items yet."],"plugin.menu.itemEditor.maxDepthLabel":["Max depth"],"plugin.menu.itemEditor.maxDepthRejected":["Cannot set below the current deepest item."],"plugin.menu.itemEditor.relinkBanner":["Pick replacement for ",["label"]],"plugin.menu.itemEditor.relinkButton":["Re-link…"],"plugin.menu.itemEditor.removeButton":["Remove"],"plugin.menu.itemEditor.reorderAria":["Reorder ",["title"]],"plugin.menu.itemEditor.reorderFallbackTitle":["item"],"plugin.menu.itemEditor.saveButton":["Save menu"],"plugin.menu.itemEditor.sourceUnavailable":["This source isn't available yet — add the link via Custom URL."],"plugin.menu.keyword.appearance":["appearance"],"plugin.menu.keyword.footer":["footer"],"plugin.menu.keyword.header":["header"],"plugin.menu.keyword.nav":["nav"],"plugin.menu.keyword.navigation":["navigation"],"plugin.menu.menu.addNew":["Add New"],"plugin.menu.menu.addNewItem":["Add Menu"],"plugin.menu.menu.allItems":["All Menus"],"plugin.menu.menu.backToItems":["← Back to Menus"],"plugin.menu.menu.editItem":["Edit Menu"],"plugin.menu.menu.newItemName":["New Menu Name"],"plugin.menu.menu.notFound":["No menus yet"],"plugin.menu.menu.plural":["Menus"],"plugin.menu.menu.searchItems":["Search menus…"],"plugin.menu.menu.singular":["Menu"],"plugin.menu.menu.updateItem":["Update Menu"],"plugin.menu.menu.viewItem":["View Menu"],"plugin.menu.menuItem.addNew":["Add New"],"plugin.menu.menuItem.addNewItem":["Add Menu Item"],"plugin.menu.menuItem.editItem":["Edit Menu Item"],"plugin.menu.menuItem.newItem":["New Menu Item"],"plugin.menu.menuItem.notFound":["No menu items yet"],"plugin.menu.menuItem.parentItem":["Parent Item"],"plugin.menu.menuItem.plural":["Menu items"],"plugin.menu.menuItem.searchItems":["Search menu items…"],"plugin.menu.menuItem.singular":["Menu item"],"plugin.menu.shell.createButton":["+ Create new menu"],"plugin.menu.shell.createDescription":["Name your new menu. You can add links to it next."],"plugin.menu.shell.createPrompt":["Menu name"],"plugin.menu.shell.createSubmit":["Create menu"],"plugin.menu.shell.createTitle":["Create menu"],"plugin.menu.shell.editEmpty":["Select a menu to start editing."],"plugin.menu.shell.emptyState":["No menus yet. Create your first menu to get started."],"plugin.menu.shell.heading":["Menus"],"plugin.menu.shell.tab.edit":["Edit Menus"],"plugin.menu.shell.tab.locations":["Manage Locations"],"plugin.menu.shell.unassigned":["— Unassigned —"]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"plugin.pages.keyword.page":["page"],"plugin.pages.keyword.static":["static"],"plugin.pages.page.addNew":["Add New"],"plugin.pages.page.addNewItem":["Add Page"],"plugin.pages.page.allItems":["All Pages"],"plugin.pages.page.editItem":["Edit Page"],"plugin.pages.page.moveToTrash":["Move page to trash?"],"plugin.pages.page.newItem":["New Page"],"plugin.pages.page.noMatch":["No pages match"],"plugin.pages.page.notFound":["No pages yet"],"plugin.pages.page.notFoundInTrash":["Trash is empty"],"plugin.pages.page.parentItem":["Parent Page"],"plugin.pages.page.parentItemColon":["Parent Page:"],"plugin.pages.page.plural":["Pages"],"plugin.pages.page.searchItems":["Search Pages…"],"plugin.pages.page.singular":["Page"],"plugin.pages.page.untitledItem":["Untitled Page"],"plugin.pages.page.viewItem":["View Page"],"plugin.pages.page.viewItems":["View Pages"]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e=JSON.parse(`{"plugin.blog.category.addNewItem":["Add Category"],"plugin.blog.category.allItems":["All Categories"],"plugin.blog.category.backToItems":["← Back to Categories"],"plugin.blog.category.editItem":["Edit Category"],"plugin.blog.category.notFound":["No categories yet"],"plugin.blog.category.parentItem":["Parent Category"],"plugin.blog.category.plural":["Categories"],"plugin.blog.category.searchItems":["Search Categories…"],"plugin.blog.category.singular":["Category"],"plugin.blog.keyword.articles":["articles"],"plugin.blog.keyword.blog":["blog"],"plugin.blog.keyword.categories":["categories"],"plugin.blog.keyword.news":["news"],"plugin.blog.keyword.tags":["tags"],"plugin.blog.keyword.taxonomy":["taxonomy"],"plugin.blog.keyword.writing":["writing"],"plugin.blog.post.addNewItem":["Add Post"],"plugin.blog.post.allItems":["All Posts"],"plugin.blog.post.editItem":["Edit Post"],"plugin.blog.post.moveToTrash":["Move post to trash?"],"plugin.blog.post.newItem":["New Post"],"plugin.blog.post.noMatch":["No posts match"],"plugin.blog.post.notFound":["No posts yet"],"plugin.blog.post.notFoundInTrash":["Trash is empty"],"plugin.blog.post.plural":["Posts"],"plugin.blog.post.searchItems":["Search Posts…"],"plugin.blog.post.singular":["Post"],"plugin.blog.post.untitledItem":["Untitled Post"],"plugin.blog.post.viewItem":["View Post"],"plugin.blog.tag.addNewItem":["Add Tag"],"plugin.blog.tag.allItems":["All Tags"],"plugin.blog.tag.backToItems":["← Back to Tags"],"plugin.blog.tag.editItem":["Edit Tag"],"plugin.blog.tag.notFound":["No tags yet"],"plugin.blog.tag.plural":["Tags"],"plugin.blog.tag.searchItems":["Search Tags…"],"plugin.blog.tag.singular":["Tag"]}`);export{e as messages};
@@ -0,0 +1 @@
1
+ var e={status:`all`,page:1,author:`all`,orderBy:`updated_at`,order:`desc`};export{e as t};
@@ -0,0 +1 @@
1
+ import{i as e,r as t,t as n}from"./jsx-runtime-DUAcabCT.js";import{t as r}from"./react-DbyrFoBd.js";import{t as i}from"./react-dom-i-Mcm3wj.js";import{t as a}from"./with-selector-Bf4HMdmS.js";var o=e(r(),1),s=o.use,c=typeof window<`u`?o.useLayoutEffect:o.useEffect;function l(e){let t=o.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function u(e,t,n={},r={}){o.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function d(e){let t=o.useRef(null);return o.useImperativeHandle(e,()=>t.current,[]),t}function f(e){return e[e.length-1]}function p(e){return typeof e==`function`}function m(e,t){return p(e)?e(t):e}var h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;function _(e){for(let t in e)if(h.call(e,t))return!0;return!1}var v=()=>Object.create(null),y=(e,t)=>b(e,t,v);function b(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=w(e)&&w(i);if(!a&&!(S(e)&&S(i)))return i;let o=a?e:x(e);if(!o)return i;let s=a?i:x(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:h.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=b(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function x(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!g.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!g.call(e,t))return!1;r.push(t)}return r}function S(e){if(!C(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!C(n)||!n.hasOwnProperty(`isPrototypeOf`))}function C(e){return Object.prototype.toString.call(e)===`[object Object]`}function w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function E(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!E(e[r],t[r],n))return!1;return!0}if(S(e)&&S(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!E(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!E(e[o],t[o],n)))return!1;return i===a}return!1}function D(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function O(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function k(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}var ee=/[\x00-\x1f\x7f"<>`{}]/g;function te(e){return e.replace(ee,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function ne(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return te(t)}var re=[`http:`,`https:`,`mailto:`,`tel:`];function ie(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var ae={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},oe=/[&><\u2028\u2029]/g;function se(e){return e.replace(oe,e=>ae[e])}function ce(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=ne(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=ne(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function le(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ue(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function A(){throw Error(`Invariant failed`)}function de(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var j=4,fe=5;function pe(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function me(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=pe(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function M(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=me(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=F(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=F(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=I(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=I(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=I(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=F(n.fullPath??n.from);e.kind=fe,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=F(n.fullPath??n.from);e.kind=j,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)M(e,t,r,s,i,a,o)}function N(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function P(e){if(e.pathless)for(let t of e.pathless)P(t);if(e.static)for(let t of e.static.values())P(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())P(t);if(e.dynamic?.length){e.dynamic.sort(N);for(let t of e.dynamic)P(t)}if(e.optional?.length){e.optional.sort(N);for(let t of e.optional)P(t)}if(e.wildcard?.length){e.wildcard.sort(N);for(let t of e.wildcard)P(t)}}function F(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function I(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function he(e,t){let n=F(`/`),r=new Uint16Array(6);for(let t of e)M(!1,r,t,1,n,0);P(n),t.masksTree=n,t.flatCache=de(1e3)}function ge(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=xe(e,t.masksTree);return t.flatCache.set(e,r),r}function _e(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=F(`/`),M(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),xe(r,o,n)}function ve(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=xe(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ce(a.route)),t.matchCache.set(r,a),a}function ye(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function be(e,t=!1,n){let r=F(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return M(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&A(),a[e.id]=e,s!==0&&e.path){let t=ye(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),P(r),{processedTree:{segmentTree:r,singleCache:de(1e3),matchCache:de(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function xe(e,t,n=!1){let r=e.split(`/`),i=we(e,r,t,n);if(!i)return null;let[a]=Se(e,r,i);return{route:i.node.route,rawParams:a}}function Se(e,t,n){let r=L(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===j)break;if(u.kind===fe){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ce(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function L(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function we(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!f(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!De(l,n))continue;if(i.parse){if(!Ee(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==j&&De(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===j||i.kind===2)&&De(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(Ee(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Te(p,o))return n;De(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+R(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+R(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+R(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+R(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function R(e,t){return 2**(e-t-1)}function Te(e,t){return e===2**(t-1)-1}function Ee(e,t,n){let r,i;try{[r,i]=Se(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function De(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===j)>(e.node.kind===j)||t.node.kind===j==(e.node.kind===j)&&t.depth>e.depth))):!0}function z(e){return Oe(e.filter(e=>e!==void 0).join(`/`))}function Oe(e){return e.replace(/\/{2,}/g,`/`)}function ke(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function B(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Ae(e){return B(ke(e))}function je(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Me(e,t,n){return je(e,n)===je(t,n)}function Ne({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&f(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(f(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Oe(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Pe(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Fe(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Le(e,n)).join(`/`):Le(r,n):r}function Ie({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=me(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=Fe(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Fe(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Fe(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Le(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function Re(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function V(e){return e?.isNotFound===!0}function ze(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Be(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Ve(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Be(r):Array.isArray(t)?t.push(Be(r)):n[e]=[t,Be(r)]}return n}var He=We(JSON.parse),Ue=Ge(JSON.stringify,JSON.parse);function We(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ve(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Ge(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=ze(e,r);return t?`?${t}`:``}}var Ke=`__root__`;function qe(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function H(e){return e instanceof Response&&!!e.options}var Je=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ye=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Xe=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ze=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Qe=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},U=(e,t,n)=>{if(!(!H(n)&&!V(n)))throw H(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:H(n)?`redirected`:V(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Ze(e,t.index),isFetching:!1,error:n})),V(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),H(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},$e=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},et=(e,t,n)=>{let r=Ze(e,n);e.updateMatch(t,e=>({...e,context:r}))},tt=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,U(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,U(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!H(n)&&!V(n)&&(e.serialError??=n)},nt=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Xe(e,t)&&(n.options.loader||n.options.beforeLoad||pt(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Je(e)},i);r._nonReactive.pendingTimeout=t}},rt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;nt(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&U(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},it=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=D(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&tt(e,n,o),s&&tt(e,n,s),nt(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=D();let f={...Ze(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Xe(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(H(r)||V(r))&&(u(),tt(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),k(y))return u(),y.catch(t=>{tt(e,n,t)}).then(v)}catch(t){u(),tt(e,n,t)}v(y)},at=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>it(e,n,t,i),s=()=>{if($e(e,n))return;let t=rt(e,n,i);return k(t)?t.then(o):o()};return a()},ot=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},st=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Ze(e,r),d=Xe(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},ct=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{ft(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(st(e,t,n,r,i)),l=!!s&&k(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;U(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Ze(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Ze(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,V(t)&&await i.options.notFoundComponent?.preload?.(),U(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,U(e,e.router.getMatch(n),t)}!H(o)&&!V(o)&&await ft(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Ze(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),U(e,r,t)}},lt=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(st(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await ct(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){H(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await ct(e,t,i,n,d):et(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if($e(e,i)){if(!e.router.getMatch(i))return e.matches[n];et(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Xe(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&U(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=D(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function ut(e){let t=e,n=[];Ye(t.router)&&Je(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=at(t,e);k(n)&&await n}catch(e){if(H(e))throw e;if(V(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?Qe(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(lt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(H(e))throw e;V(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=Qe(t,l);e===void 0&&A();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await ft(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await ft(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=ot(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Je(t);if(k(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function dt(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function ft(e,t=mt){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===mt?(()=>{if(e._componentsPromise===void 0){let t=dt(e,mt);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():dt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function pt(e){for(let t of mt)if(e.options[t]?.preload)return!0;return!1}var mt=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ht(e){return{input:({url:t})=>{for(let n of e)t=_t(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=vt(e[n],t);return t}}}function gt(e){let t=Ae(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=z([`/`,t,e.pathname]),e)}}function _t(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function vt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function yt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>bt(o,_.get())),x=r(()=>bt(s,v.get())),S=r(()=>bt(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),E=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),O=de(64);function k(e){let t=O.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),O.set(e,t)),t}let ee={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:E,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:k,setMatches:te,setPending:ne,setCached:re};te(e.matches),a?.(ee);function te(e){xt(e,o,_,n,i)}function ne(e){xt(e,s,v,n,i)}function re(e){xt(e,c,y,n,i)}return ee}function bt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function xt(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}ue(n.get(),a)||n.set(a)})}var W=`__TSR_index`,St=`popstate`,Ct=`beforeunload`;function wt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=At(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[W];i=Tt(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[W];i=Tt(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[W]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Tt(e,t){t||={};let n=jt();return{...t,key:n,__TSR_key:n,[W]:e}}function Et(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>At(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=jt();t.history.replaceState({[W]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=At(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[W]-l.state[W],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=wt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ct,S,{capture:!0}),t.removeEventListener(St,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ct,S,{capture:!0}),t.addEventListener(St,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Dt(e){let t=e?.window??(typeof document<`u`?window:void 0);return Et({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return At(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function Ot(e={initialEntries:[`/`]}){let t=e.initialEntries,n=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1,r=t.map((e,t)=>Tt(t,void 0)),i=()=>At(t[n],r[n]),a=[];return wt({getLocation:i,getLength:()=>t.length,pushState:(e,i)=>{n<t.length-1&&(t.splice(n+1),r.splice(n+1)),r.push(i),t.push(e),n=Math.max(t.length-1,0)},replaceState:(e,i)=>{r[n]=i,t[n]=e},back:()=>{n=Math.max(n-1,0)},forward:()=>{n=Math.min(n+1,t.length-1)},go:e=>{n=Math.min(Math.max(n+e,0),t.length-1)},createHref:e=>e,getBlockers:()=>a,setBlockers:e=>a=e})}function kt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function At(e,t){let n=kt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=jt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[W]:0,key:a,__TSR_key:a}}}function jt(){return(Math.random()+1).toString(36).substring(7)}function Mt(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Nt(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Pt=new WeakMap,Ft=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Pe(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Et()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=de(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=yt(zt(this.latestLocation),e),sn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Ae(o);t&&t!==`/`&&e.push(gt({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ht(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=be(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&he(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:ce(e).path,external:!1,searchStr:o,search:y(t?.search,i),hash:ce(r.slice(1)).path,state:b(t?.state,a)}}let o=new URL(i,this.origin),s=_t(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:ce(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:y(t?.search,c),hash:ce(s.hash.slice(1)).path,state:b(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>Ne({base:e,to:t.includes(`//`)?Oe(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Vt({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,m(t.params,s)),d=this.routesByPath[B(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&_(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:ce(Ie({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Bt(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=Ht({search:h,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),h=y(o,h);let g=this.options.stringifySearch(h),v=t.hash===!0?n.hash:t.hash?m(t.hash,n.hash):void 0,x=v?`#${v}`:``,S=t.state===!0?n.state:t.state?m(t.state,n.state):{};S=b(n.state,S);let C=`${p}${g}${x}`,w,E,D=!1;if(this.rewrite){let e=new URL(C,this.origin),t=vt(this.rewrite,e);w=e.href.replace(e.origin,``),t.origin===this.origin?E=t.pathname+t.search+t.hash:(E=t.href,D=!0)}else w=le(C),E=w;return{publicHref:E,href:w,pathname:p,search:h,searchStr:g,state:S,hash:v??``,external:D,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ge(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,m(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=E(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=B(this.latestLocation.href)===B(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=D(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=At(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=_t(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ie(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Pt.set(this.latestLocation,t):Pt.delete(this.latestLocation);let n=this.latestLocation,r=Nt(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await ut({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){H(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):V(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Nt(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ie(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=ft,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await ut({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(H(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});V(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=_e(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!E(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?E(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Ue,parseSearch:e.parseSearch??He,protocolAllowlist:e.protocolAllowlist??re}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Ce(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:B(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Wt(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Bt(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof It||(r=new It(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=Ie({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),x=l.get(r.id),S=v?._strictParams??g,C;if(!v)try{Gt(r,S)}catch(e){if(C=V(e)||H(e)?e:new Lt(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(i,S);let w=x?`stay`:`enter`,E;if(v)E={...v,cause:w,params:x?.params??i,_strictParams:S,search:y(x?x.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||pt(r)?`pending`:`success`;E={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:x?.params??i,_strictParams:S,pathname:h,updatedAt:Date.now(),search:x?y(x.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:D()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:w,loaderDeps:x?b(x.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(E.globalNotFound=s===r.id),E.searchError=f;let O=this.getParentContext(o);E.context={...O,...E.__routeContext,...E.__beforeLoadContext},c[n]=E}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?y(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let t=f(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=f(r),o={...e.search};for(let e of r)try{Object.assign(o,Bt(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{Gt(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},It=class extends Error{},Lt=class extends Error{};function Rt(e,t){return async(...n)=>(await e())[t||`default`](...n)}function zt(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Bt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new It(`Async validation not supported`);if(n.issues)throw new It(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Vt({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=B(e),a,o=ve(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Ht({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Ut(n)(e,t,r??!1)}function Ut(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Bt(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=m(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function Wt(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Ke}function Gt(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Kt(){try{return sessionStorage}catch{return}}var qt=`tsr-scroll-restoration-v1_3`,Jt=Kt();function Yt(){try{return JSON.parse(Jt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Xt(){try{Jt?.setItem(qt,JSON.stringify(Zt))}catch{}}var Zt=Yt(),Qt=`data-scroll-restoration-id`,$t=e=>e.state.__TSR_key||e.href;function en(e){let t=e.getAttribute(Qt);if(t)return`[${Qt}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}function tn(e,t){let n=Zt[(t.getKey||$t)(e.latestLocation)];if(!n)return;if(t.id)return n[`[${Qt}="${t.id}"]`];let r=t.getElement?.();if(r)return n[r===window?rn:en(r)]}var nn=!1,rn=`window`;function an(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function on(e){let t=[];for(let n of e){if(n===rn)continue;let e=an(n);e&&t.push(e)}return t}function sn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||$t,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(nn||!r.restoring))if(e.target===document)o(rn,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Zt[e]||={};for(let[e,n]of a)e===rn?t[rn]=n:e.isConnected&&(t[en(e)]=n)};n&&!r.restoration&&(r.restoration=!0,nn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Xt()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Zt[u];if(e){let t=Zt[l];for(let n in e){if(n===rn){if(s)continue}else{let e=an(n);if(!e||s&&o&&(c??=on(o),c.includes(e)))continue}t||=Zt[l]={},t[n]??=e[n]}}}nn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Pt.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Zt[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===rn){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=an(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=on(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{nn=!1}}))}var G=Symbol.for(`TSR_DEFERRED_PROMISE`);function cn(e,t){let n=e;return n[G]?n:(n[G]={status:`pending`},n.then(e=>{n[G].status=`success`,n[G].data=e}).catch(e=>{n[G].status=`error`,n[G].error={data:(t?.serializeError??Mt)(e),__isServerError:!0}}),n)}var ln=`Error preloading route! ☝️`;function un(e,t){if(e)return typeof e==`string`?e:e[t]}function dn(e){return e?.scriptFormat??`module`}function fn(e,t,n){let r=pn(t),i=un(n,`script`)??r.crossOrigin;return{...dn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function pn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function mn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function hn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var gn=(e,t)=>{let n=t.split(`.`),r,i=0,a=e;for(;(r=n[i++])!=null&&a!=null;)a=a[r];return a!=null},_n=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Ke:this.parentRoute||A();let r=n?Ke:t?.path;r&&r!==`/`&&(r=ke(r));let i=t?.id||r,a=n?Ke:z([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=z([`/`,a]));let o=a===`__root__`?`/`:z([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=B(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>qe({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},vn=class{constructor({id:e}){this.notFound=e=>Re({routeId:this.id,...e}),this.redirect=e=>qe({from:this.id,...e}),this.id=e}},yn=class extends _n{constructor(e){super(e)}},bn=e=>({serializationAdapters:e.serializationAdapters,defaultSsr:e.defaultSsr});function xn(e){return({search:t,next:n})=>{let{search:r,meta:i}=n(t,!0);if(e===!0){let e={...t,...r},n=i.removed,a=i.explicit;for(let r of n?.keys()||[])(a&&h.call(a,r)||E(t[r],n.get(r)))&&delete e[r];for(let t of i.removedAny||[])delete e[t];for(let n of i.defaulted?.keys()||[])n in t&&!i.removedAny?.has(n)&&!(i.removed?.has(n)&&(a&&h.call(a,n)||E(t[n],i.removed.get(n))))&&(e[n]=t[n]);return e}let a={...r},o=i.explicit;for(let n of e){let e=n;!(i.removedAny?.has(e)||i.removed?.has(e)&&(o&&h.call(o,e)||E(t[n],i.removed.get(e))))&&(!(n in a)||n in t&&i.defaulted?.has(e)&&E(a[n],i.defaulted.get(e)))&&(a[n]=t[n])}return a}}function Sn(e){return(({search:t,next:n,meta:r})=>{if(e===!0)return Object.keys(t).forEach(e=>{r&&(r.removedAny||=new Set).add(e)}),{};let i={...n(t)};return Array.isArray(e)?e.forEach(e=>{delete i[e],r&&(r.removedAny||=new Set).add(e)}):Object.entries(e).forEach(([e,t])=>{E(i[e],t)&&(delete i[e],r&&(r.removed||=new Map).set(e,t))}),i})}var Cn=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(Cn||{}),K=void 0;function wn(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function q(e){return wn(2,K,e,K,K,K,K,K,K,K,K,K)}q(2),q(3),q(1),q(0),q(4),q(5),q(6),q(7);var Tn=`__SEROVAL_REFS__`,En=new Map;typeof globalThis<`u`?Object.defineProperty(globalThis,Tn,{value:En,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Tn,{value:En,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Tn,{value:En,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Tn,{value:En,configurable:!0,writable:!1,enumerable:!1});var{toString:Dn}=Object.prototype;(()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e}).toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString(),(()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}}).toString(),(e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r}).toString(),((e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l}).toString(),(e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}).toString();var On=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(On||{}),kn=(()=>T).toString();/=>/.test(kn);function An(e){return e}var J=e(n(),1);function jn({promise:e}){if(s)return s(e);let t=cn(e);if(t[G].status===`pending`)throw t;if(t[G].status===`error`)throw t[G].error;return t[G].data}function Mn(e){let t=(0,J.jsx)(Nn,{...e});return e.fallback?(0,J.jsx)(o.Suspense,{fallback:e.fallback,children:t}):t}function Nn(e){let t=jn(e);return e.children(t)}function Pn(e){let t=e.errorComponent??In;return(0,J.jsx)(Fn,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?o.createElement(t,{error:n,reset:r}):e.children})}var Fn=class extends o.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function In({error:e}){let[t,n]=o.useState(!1);return(0,J.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,J.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,J.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,J.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,J.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,J.jsx)(`div`,{children:(0,J.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,J.jsx)(`code`,{children:e.message}):null})}):null]})}function Ln({children:e,fallback:t=null}){return Rn()?(0,J.jsx)(o.Fragment,{children:e}):(0,J.jsx)(o.Fragment,{children:t})}function Rn(){return o.useSyncExternalStore(zn,()=>!0,()=>!1)}function zn(){return()=>{}}var Bn=o.createContext(null);function Y(e){return o.useContext(Bn)}var Vn=o.createContext(void 0),Hn=o.createContext(void 0),X=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(X||{});function Un({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Wn(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Gn=[],Kn=0,{link:qn,unlink:Jn,propagate:Yn,checkDirty:Xn,shallowPropagate:Zn}=Un({update(e){return e._update()},notify(e){Gn[$n++]=e,e.flags&=~X.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=X.Mutable|X.Dirty,nr(e))}}),Qn=0,$n=0,Z,er=0;function tr(e){try{++er,e()}finally{--er||rr()}}function nr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Jn(n,e)}function rr(){if(!(er>0)){for(;Qn<$n;){let e=Gn[Qn];Gn[Qn++]=void 0,e.notify()}Qn=0,$n=0}}function ir(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?X.None:X.Mutable,get(){return Z!==void 0&&qn(i,Z,Kn),i._snapshot},subscribe(e){let t=Wn(e),n={current:!1},r=ar(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Z,o=t?.compare??Object.is;if(n)Z=i,++Kn,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=X.Mutable|X.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Z=a,n&&(i.flags&=~X.RecursedCheck),nr(i)}}};return n?(i.flags=X.Mutable|X.Dirty,i.get=function(){let e=i.flags;if(e&X.Dirty||e&X.Pending&&Xn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Zn(e)}}else e&X.Pending&&(i.flags=e&~X.Pending);return Z!==void 0&&qn(i,Z,Kn),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Yn(e),Zn(e),rr())}},i}function ar(e){let t=()=>{let t=Z;Z=n,++Kn,n.depsTail=void 0,n.flags=X.Watching|X.RecursedCheck;try{return e()}finally{Z=t,n.flags&=~X.RecursedCheck,nr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:X.Watching|X.RecursedCheck,notify(){let e=this.flags;e&X.Dirty||e&X.Pending&&Xn(this.deps,this)?t():this.flags=X.Watching},stop(){this.flags=X.None,this.depsTail=void 0,nr(this)}};return t(),n}var or=a();function sr(e,t){return e===t}function Q(e,t,n=sr){let r=(0,o.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,o.useCallback)(()=>e?.get(),[e]);return(0,or.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var cr={get(){},subscribe(){return{unsubscribe(){}}}};function lr(e,t){let n=o.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=b(n.current,i):i}}function $(e){let t=Y(),n=o.useContext(e.from?Hn:Vn),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=lr(e,t),a=Q(r??cr,e=>e?i(e):cr);if(a!==cr)return a;(e.shouldThrow??!0)&&A()}function ur(e){return $({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function dr(e){let{select:t,...n}=e;return $({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function fr(e){return $({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function pr(e){return $({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function mr(e){let t=Y();return o.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function hr(e){let t=Y(),n=mr(),r=o.useRef(null);return c(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function gr(e){return $({...e,select:t=>e.select?e.select(t.context):t.context})}var _r=e(i(),1);function vr(e,t){let n=Y(),r=d(t),{activeProps:i,inactiveProps:a,activeOptions:s,to:c,preload:l,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:h,replace:g,startTransition:_,resetScroll:v,viewTransition:y,children:b,target:x,disabled:S,style:C,className:w,onClick:D,onBlur:O,onFocus:k,onMouseEnter:ee,onMouseLeave:te,onTouchStart:ne,ignoreBlocker:re,params:ae,search:oe,hash:se,state:ce,mask:le,reloadDocument:ue,unsafeRelative:A,from:de,_fromLocation:j,...fe}=e,pe=Rn(),me=o.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),M=Q(n.stores.location,e=>e,(e,t)=>e.href===t.href),N=o.useMemo(()=>{let e={_fromLocation:M,...me};return n.buildLocation(e)},[n,M,me]),P=N.maskedLocation?N.maskedLocation.publicHref:N.publicHref,F=N.maskedLocation?N.maskedLocation.external:N.external,I=o.useMemo(()=>Dr(P,F,n.history,S),[S,F,P,n.history]),he=o.useMemo(()=>{if(I?.external)return ie(I.href,n.protocolAllowlist)?void 0:I.href;if(!Or(c)&&!(typeof c!=`string`||c.indexOf(`:`)===-1))try{return new URL(c),ie(c,n.protocolAllowlist)?void 0:c}catch{}},[c,I,n.protocolAllowlist]),ge=o.useMemo(()=>{if(he)return!1;if(s?.exact){if(!Me(M.pathname,N.pathname,n.basepath))return!1}else{let e=je(M.pathname,n.basepath),t=je(N.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(s?.includeSearch??!0)&&!E(M.search,N.search,{partial:!s?.exact,ignoreUndefined:!s?.explicitUndefined})?!1:s?.includeHash?pe&&M.hash===N.hash:!0},[s?.exact,s?.explicitUndefined,s?.includeHash,s?.includeSearch,M,he,pe,N.hash,N.pathname,N.search,n.basepath]),_e=ge?m(i,{})??br:yr,ve=ge?yr:m(a,{})??yr,ye=[w,_e.className,ve.className].filter(Boolean).join(` `),be=(C||_e.style||ve.style)&&{...C,..._e.style,...ve.style},[xe,Se]=o.useState(!1),Ce=o.useRef(!1),L=e.reloadDocument||he?!1:l??n.options.defaultPreload,we=f??n.options.defaultPreloadDelay??0,R=o.useCallback(()=>{n.preloadRoute({...me,_builtLocation:N}).catch(e=>{console.warn(e),console.warn(ln)})},[n,me,N]);u(r,o.useCallback(e=>{e?.isIntersecting&&R()},[R]),Tr,{disabled:!!S||L!==`viewport`}),o.useEffect(()=>{Ce.current||!S&&L===`render`&&(R(),Ce.current=!0)},[S,R,L]);let Te=e=>{let t=e.currentTarget.getAttribute(`target`),r=x===void 0?t:x;if(!S&&!jr(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,_r.flushSync)(()=>{Se(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Se(!1)});n.navigate({...me,replace:g,resetScroll:v,hashScrollIntoView:h,startTransition:_,viewTransition:y,ignoreBlocker:re})}};if(he)return{...fe,ref:r,href:he,...b&&{children:b},...x&&{target:x},...S&&{disabled:S},...C&&{style:C},...w&&{className:w},...D&&{onClick:D},...O&&{onBlur:O},...k&&{onFocus:k},...ee&&{onMouseEnter:ee},...te&&{onMouseLeave:te},...ne&&{onTouchStart:ne}};let Ee=e=>{if(S||L!==`intent`)return;if(!we){R();return}let t=e.currentTarget;if(wr.has(t))return;let n=setTimeout(()=>{wr.delete(t),R()},we);wr.set(t,n)},De=e=>{S||L!==`intent`||R()},z=e=>{if(S||!L||!we)return;let t=e.currentTarget,n=wr.get(t);n&&(clearTimeout(n),wr.delete(t))};return{...fe,..._e,...ve,href:I?.href,ref:r,onClick:Er([D,Te]),onBlur:Er([O,z]),onFocus:Er([k,Ee]),onMouseEnter:Er([ee,Ee]),onMouseLeave:Er([te,z]),onTouchStart:Er([ne,De]),disabled:!!S,target:x,...be&&{style:be},...ye&&{className:ye},...S&&xr,...ge&&Sr,...pe&&xe&&Cr}}var yr={},br={className:`active`},xr={role:`link`,"aria-disabled":!0},Sr={"data-status":`active`,"aria-current":`page`},Cr={"data-transitioning":`transitioning`},wr=new WeakMap,Tr={rootMargin:`100px`},Er=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Dr(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Or(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}function kr(e){return o.forwardRef(function(t,n){return(0,J.jsx)(Ar,{...t,_asChild:e,ref:n})})}var Ar=o.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=vr(r,t),s=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return o.createElement(`a`,t,s)}return o.createElement(n,a,s)});function jr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Mr=e=>e;function Nr(e){return new Pr({id:e})}var Pr=class extends vn{constructor({id:e}){super({id:e}),this.useMatch=e=>$({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>gr({...e,from:this.id}),this.useSearch=e=>pr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>fr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>dr({...e,from:this.id,strict:!1}),this.useLoaderData=e=>ur({...e,from:this.id,strict:!1}),this.useNavigate=()=>mr({from:Y().routesById[this.id].fullPath}),this.notFound=e=>Re({routeId:this.id,...e}),this.Link=o.forwardRef((e,t)=>{let n=Y().routesById[this.id].fullPath;return(0,J.jsx)(Ar,{ref:t,from:n,...e})})}},Fr=class extends _n{constructor(e){super(e),this.useMatch=e=>$({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>gr({...e,from:this.id}),this.useSearch=e=>pr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>fr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>dr({...e,from:this.id}),this.useLoaderData=e=>ur({...e,from:this.id}),this.useNavigate=()=>mr({from:this.fullPath}),this.Link=o.forwardRef((e,t)=>(0,J.jsx)(Ar,{ref:t,from:this.fullPath,...e}))}};function Ir(e){return new Fr(e)}function Lr(){return e=>Br(e)}var Rr=Lr,zr=class extends yn{constructor(e){super(e),this.useMatch=e=>$({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>gr({...e,from:this.id}),this.useSearch=e=>pr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>fr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>dr({...e,from:this.id}),this.useLoaderData=e=>ur({...e,from:this.id}),this.useNavigate=()=>mr({from:this.fullPath}),this.Link=o.forwardRef((e,t)=>(0,J.jsx)(Ar,{ref:t,from:this.fullPath,...e}))}};function Br(e){return new zr(e)}function Vr(e){return e}var Hr=class extends Fr{constructor(e){super({...e,id:`404`})}};function Ur(e){return new Wr(e,{silent:!0}).createRoute}var Wr=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Ir(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Gr(e){return e=>e}var Kr=class{constructor(e){this.useMatch=e=>$({select:e?.select,from:this.options.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>gr({...e,from:this.options.id}),this.useSearch=e=>pr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useParams=e=>fr({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useLoaderDeps=e=>dr({...e,from:this.options.id}),this.useLoaderData=e=>ur({...e,from:this.options.id}),this.useNavigate=()=>mr({from:Y().routesById[this.options.id].fullPath}),this.options=e}};function qr(e){return t=>new Kr({id:e,...t})}function Jr(e){return typeof e==`object`?new Kr(e):t=>new Kr({id:e,...t})}function Yr(e,t){let n,r,i,a,c=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,O(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),l=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(s)s(c());else throw c();return o.createElement(r,e)};return l.preload=c,l}function Xr(e){let t=Y(),n=`not-found-${Q(t.stores.location,e=>e.pathname)}-${Q(t.stores.status,e=>e)}`;return(0,J.jsx)(Pn,{getResetKey:()=>n,onCatch:(t,n)=>{if(V(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(V(t))return e.fallback?.(t);throw t},children:e.children})}function Zr(){return(0,J.jsx)(`p`,{children:`Not Found`})}function Qr({children:e}){return Y(),null}function $r(e){return(0,J.jsx)(J.Fragment,{children:e.children})}function ei(e,t,n){return t.options.notFoundComponent?(0,J.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,J.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,J.jsx)(Zr,{})}var ti=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,ni=(e,t)=>e[0]===t[0]&&e[1]===t[1],ri=o.memo(function({matchId:e}){let t=Y(),n=t.stores.matchStores.get(e);n||A();let r=Q(t.stores.loadedAt,e=>e),i=Q(n,e=>e,ti);return(0,J.jsx)(ii,{router:t,matchId:e,resetKey:r,matchState:o.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function ii({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,s=a?(0,J.jsx)(a,{}):null,c=i.options.errorComponent??e.options.defaultErrorComponent,l=i.options.onCatch??e.options.defaultOnCatch,u=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,d=r.ssr===!1||r.ssr===`data-only`,f=(!i.isRoot||i.options.wrapInSuspense||d)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||d))?o.Suspense:$r,p=c?Pn:$r,m=u?Xr:$r;return(0,J.jsxs)(i.isRoot?i.options.shellComponent??$r:$r,{children:[(0,J.jsx)(Vn.Provider,{value:t,children:(0,J.jsx)(f,{fallback:s,children:(0,J.jsx)(p,{getResetKey:()=>n,errorComponent:c||In,onCatch:(e,t)=>{if(V(e))throw e.routeId??=r.routeId,e;l?.(e,t)},children:(0,J.jsx)(m,{fallback:e=>{if(e.routeId??=r.routeId,!u||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return o.createElement(u,e)},children:d||r._displayPending?(0,J.jsx)(Ln,{fallback:s,children:(0,J.jsx)(oi,{matchId:t})}):(0,J.jsx)(oi,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(ai,{}),(e.options.scrollRestoration,null)]}):null]})}function ai(){let e=Y(),t=o.useRef();return c(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Nt(e.stores.location.get(),r??n)}),t.current=n},[Q(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var oi=o.memo(function({matchId:e}){let t=Y(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||A();let i=Q(r,e=>e),a=i.routeId,s=t.routesById[a],c=o.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),l=o.useMemo(()=>{let e=s.options.component??t.options.defaultComponent;return e?(0,J.jsx)(e,{},c):(0,J.jsx)(si,{})},[c,s.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=s.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=D();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return V(i.error)||A(),ei(t,s,i.error);if(i.status===`redirected`)throw H(i.error)||A(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return l}),si=o.memo(function(){let e=Y(),t=o.useContext(Vn),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=Q(a,e=>[e?.routeId,e?.globalNotFound??!1],ni),i=Q(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,s=e.options.defaultPendingComponent?(0,J.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||A(),ei(e,a,void 0);if(!i)return null;let c=(0,J.jsx)(ri,{matchId:i});return n===`__root__`?(0,J.jsx)(o.Suspense,{fallback:s,children:c}):c});function ci(){let e=Y(),t=o.useRef({router:e,mounted:!1}),[n,r]=o.useState(!1),i=Q(e.stores.isLoading,e=>e),a=Q(e.stores.hasPending,e=>e),s=l(i),u=i||n||a,d=l(u),f=i||a,p=l(f);return e.startTransition=e=>{r(!0),o.startTransition(()=>{e(),r(!1)})},o.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return B(e.latestLocation.publicHref)!==B(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),c(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),c(()=>{s&&!i&&e.emit({type:`onLoad`,...Nt(e.stores.location.get(),e.stores.resolvedLocation.get())})},[s,e,i]),c(()=>{p&&!f&&e.emit({type:`onBeforeRouteMount`,...Nt(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,p,e]),c(()=>{if(d&&!u){let t=Nt(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),tr(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[u,d,e]),null}function li(){let e=Y(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,J.jsx)(t,{}):null,r=(0,J.jsxs)(typeof document<`u`&&e.ssr?$r:o.Suspense,{fallback:n,children:[(0,J.jsx)(ci,{}),(0,J.jsx)(ui,{})]});return e.options.InnerWrap?(0,J.jsx)(e.options.InnerWrap,{children:r}):r}function ui(){let e=Y(),t=Q(e.stores.firstId,e=>e),n=Q(e.stores.loadedAt,e=>e),r=t?(0,J.jsx)(ri,{matchId:t}):null;return(0,J.jsx)(Vn.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,J.jsx)(Pn,{getResetKey:()=>n,errorComponent:In,onCatch:void 0,children:r})})}function di(){let e=Y();return Q(e.stores.matchRouteDeps,e=>e),o.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e])}function fi(e){let t=di()(e);return typeof e.children==`function`?e.children(t):t?e.children:null}function pi(e){let t=Y();return Q(t.stores.matches,lr(e,t))}function mi(e){let t=o.useContext(Vn);return pi({select:n=>(n=n.slice(0,n.findIndex(e=>e.id===t)),e?.select?e.select(n):n),structuralSharing:e?.structuralSharing})}function hi(e){let t=o.useContext(Vn);return pi({select:n=>(n=n.slice(n.findIndex(e=>e.id===t)+1),e?.select?e.select(n):n),structuralSharing:e?.structuralSharing})}var gi=e=>({createMutableStore:ir,createReadonlyStore:ir,batch:tr}),_i=e=>new vi(e),vi=class extends Ft{constructor(e){super(e,gi)}};function yi({router:e,children:t,...n}){_(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,J.jsx)(Bn.Provider,{value:e,children:t});return e.options.Wrap?(0,J.jsx)(e.options.Wrap,{children:r}):r}function bi({router:e,...t}){return(0,J.jsx)(yi,{router:e,...t,children:(0,J.jsx)(li,{})})}function xi(){sn(Y(),!0)}function Si(e){return xi(),null}function Ci(e){return xi(),tn(Y(),e)}function wi(e,t){if(e===void 0)return{shouldBlockFn:()=>!0,withResolver:!1};if(`shouldBlockFn`in e)return e;if(typeof e==`function`){let n=!!(t??!0);return{shouldBlockFn:async()=>n?await e():!1,enableBeforeUnload:n,withResolver:!1}}let n=!!(e.condition??!0),r=e.blockerFn;return{shouldBlockFn:async()=>n&&r!==void 0?await r():n,enableBeforeUnload:n,withResolver:r===void 0}}function Ti(e,t){let{shouldBlockFn:n,enableBeforeUnload:r=!0,disabled:i=!1,withResolver:a=!1}=wi(e,t),s=Y(),{history:c}=s,[l,u]=o.useState({status:`idle`,current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0});return o.useEffect(()=>i?void 0:c.block({blockerFn:async e=>{function t(e){let t=s.parseLocation(e),n=s.getMatchedRoutes(t.pathname);return n.foundRoute===void 0?{routeId:`__notFound__`,fullPath:t.pathname,pathname:t.pathname,params:n.routeParams,search:s.options.parseSearch(e.search)}:{routeId:n.foundRoute.id,fullPath:n.foundRoute.fullPath,pathname:t.pathname,params:n.routeParams,search:s.options.parseSearch(e.search)}}let r=t(e.currentLocation),i=t(e.nextLocation);if(r.routeId===`__notFound__`&&i.routeId!==`__notFound__`)return!1;let o=await n({action:e.action,current:r,next:i});if(!a)return o;if(!o)return!1;let c=await new Promise(t=>{u({status:`blocked`,current:r,next:i,action:e.action,proceed:()=>t(!1),reset:()=>t(!0)})});return u({status:`idle`,current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0}),c},enableBeforeUnload:r}),[n,r,i,a,c,s]),l}var Ei=e=>{if(`shouldBlockFn`in e)return{...e};let t=!!(e.condition??!0),n=e.blockerFn;return{shouldBlockFn:async()=>t&&n!==void 0?await n():t,enableBeforeUnload:t,withResolver:n===void 0}};function Di(e){let{children:t,...n}=e,r=Ti(Ei(n));return t?typeof t==`function`?t(r):t:null}function Oi(e){let t=Y({warn:e?.router===void 0}),n=e?.router||t;return Q(n.stores.__store,lr(e,n))}function ki(e){let t=Y();return Q(t.stores.location,lr(e,t))}function Ai(){return Q(Y().stores.location,e=>e.state.__TSR_index!==0)}function ji(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Mi(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,J.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,J.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,J.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,J.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,J.jsx)(Ni,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ni({attrs:e,children:t,preventScriptHoist:n}){Y();let r=Rn(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(o.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return ji(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,ji(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,J.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,J.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,J.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Pi=e=>{let t=Y(),n=t.options.ssr?.nonce,r=Q(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),E),i=o.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:se(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=Q(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),E),s=Q(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=hn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:un(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},E),c=Q(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...fn(a,t,e),nonce:n}})})}),i},E),l=Q(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),E),u=Q(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),E),d=[];return mn(d,i),d.push(...c),mn(d,a),d.push(...s),mn(d,l),mn(d,u),d};function Fi(e){let t=Pi(e.assetCrossOrigin),n=Y().options.ssr?.nonce;return(0,J.jsx)(J.Fragment,{children:t.map(e=>(0,o.createElement)(Mi,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ii=()=>{let e=Y(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=Q(e.stores.matches,n,E);return Li(e,Q(e.stores.matches,r,E),i)};function Li(e,t,n){let r=[...t,...n];return(0,J.jsx)(J.Fragment,{children:r.map((e,t)=>(0,o.createElement)(Mi,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Ri=t({Asset:()=>Mi,Await:()=>Mn,Block:()=>Di,CatchBoundary:()=>Pn,CatchNotFound:()=>Xr,ClientOnly:()=>Ln,DEFAULT_PROTOCOL_ALLOWLIST:()=>re,DefaultGlobalNotFound:()=>Zr,ErrorComponent:()=>In,FileRoute:()=>Wr,FileRouteLoader:()=>Gr,HeadContent:()=>Fi,LazyRoute:()=>Kr,Link:()=>Ar,Match:()=>ri,MatchRoute:()=>fi,Matches:()=>li,Navigate:()=>hr,NotFoundRoute:()=>Hr,Outlet:()=>si,RootRoute:()=>zr,Route:()=>Fr,RouteApi:()=>Pr,Router:()=>vi,RouterContextProvider:()=>yi,RouterProvider:()=>bi,ScriptOnce:()=>Qr,Scripts:()=>Ii,ScrollRestoration:()=>Si,SearchParamError:()=>It,cleanPath:()=>Oe,composeRewrites:()=>ht,createBrowserHistory:()=>Et,createControlledPromise:()=>D,createFileRoute:()=>Ur,createHashHistory:()=>Dt,createHistory:()=>wt,createLazyFileRoute:()=>Jr,createLazyRoute:()=>qr,createLink:()=>kr,createMemoryHistory:()=>Ot,createRootRoute:()=>Br,createRootRouteWithContext:()=>Lr,createRoute:()=>Ir,createRouteMask:()=>Vr,createRouter:()=>_i,createRouterConfig:()=>bn,createSerializationAdapter:()=>An,deepEqual:()=>E,defaultParseSearch:()=>He,defaultStringifySearch:()=>Ue,defer:()=>cn,functionalUpdate:()=>m,getRouteApi:()=>Nr,interpolatePath:()=>Ie,isMatch:()=>gn,isNotFound:()=>V,isPlainArray:()=>w,isPlainObject:()=>S,isRedirect:()=>H,joinPaths:()=>z,lazyFn:()=>Rt,lazyRouteComponent:()=>Yr,linkOptions:()=>Mr,notFound:()=>Re,parseSearchWith:()=>We,reactUse:()=>s,redirect:()=>qe,replaceEqualDeep:()=>b,resolvePath:()=>Ne,retainSearchParams:()=>xn,rootRouteId:()=>Ke,rootRouteWithContext:()=>Rr,stringifySearchWith:()=>Ge,stripSearchParams:()=>Sn,trimPath:()=>Ae,trimPathLeft:()=>ke,trimPathRight:()=>B,useAwaited:()=>jn,useBlocker:()=>Ti,useCanGoBack:()=>Ai,useChildMatches:()=>hi,useElementScrollRestoration:()=>Ci,useHydrated:()=>Rn,useLayoutEffect:()=>c,useLinkProps:()=>vr,useLoaderData:()=>ur,useLoaderDeps:()=>dr,useLocation:()=>ki,useMatch:()=>$,useMatchRoute:()=>di,useMatches:()=>pi,useNavigate:()=>mr,useParams:()=>fr,useParentMatches:()=>mi,useRouteContext:()=>gr,useRouter:()=>Y,useRouterState:()=>Oi,useSearch:()=>pr,useTags:()=>Pi});export{si as a,Lr as c,Y as d,qe as f,_i as i,Ar as l,Oi as n,Yr as o,Re as p,bi as r,Ur as s,Ri as t,mr as u};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./jsx-runtime-DUAcabCT.js";import{t as n}from"./react-DbyrFoBd.js";import{kt as r}from"./dist-Bdi1pykC.js";import{t as i}from"./utils-DKOQrNEG.js";var a=e(t(),1),o=e(n(),1),s=e=>e.type===`checkbox`,c=e=>e instanceof Date,l=e=>e==null,u=e=>typeof e==`object`,d=e=>!l(e)&&!Array.isArray(e)&&u(e)&&!c(e),f=e=>d(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,p=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),m=e=>{let t=e.constructor&&e.constructor.prototype;return d(t)&&t.hasOwnProperty(`isPrototypeOf`)},h=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function g(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(h&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(d(e)&&m(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=g(e[t]));return r}var _={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},v={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},y={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},b=`root`,x=[`__proto__`,`constructor`,`prototype`],S=/^\w*$/,C=e=>S.test(e),w=e=>e===void 0,T=/[.[\]'"]/,E=e=>e.split(T).filter(Boolean),D=(e,t,n)=>{if(!t||!d(e))return n;let r=C(t)?[t]:E(t);if(r.some(e=>x.includes(e)))return n;let i=r.reduce((e,t)=>l(e)?void 0:e[t],e);return w(i)||i===e?w(e[t])?n:e[t]:i},O=e=>typeof e==`boolean`,k=e=>typeof e==`function`,A=(e,t,n)=>{let r=-1,i=C(t)?[t]:E(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=d(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(x.includes(t))return;e[t]=a,e=e[t]}},j=o.createContext(null);j.displayName=`HookFormControlContext`;var M=()=>o.useContext(j),N=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==v.all&&(t._proxyFormState[i]=!r||v.all),n&&(n[i]=!0),e[i]}});return i},P=h?o.useLayoutEffect:o.useEffect;function F(e){let t=M(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[s,c]=o.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=o.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return P(()=>n._subscribe({name:i,formState:l.current,exact:a,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,a]),o.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),o.useMemo(()=>N(s,n,l.current,!1),[s,n])}var I=e=>typeof e==`string`,ee=(e,t,n,r,i)=>I(e)?(r&&t.watch.add(e),D(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),D(n,e))):(r&&(t.watchAll=!0),n),te=e=>l(e)||!u(e),ne=(e,t)=>t.length===0&&!Array.isArray(e)&&!m(e);function L(e,t,n=new WeakMap){if(e===t)return!0;if(te(e)||te(t))return Object.is(e,t);if(c(e)&&c(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(ne(e,r)||ne(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(c(r)&&c(e)||(d(r)||Array.isArray(r))&&(d(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function R(e){let t=M(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:s,compute:c}=e||{},l=o.useRef(i),u=o.useRef(c),d=o.useRef(void 0),f=o.useRef(n),p=o.useRef(r);u.current=c;let[m,h]=o.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=o.useCallback(e=>{let t=ee(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=o.useCallback(e=>{if(!a){let t=ee(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,a,r]);P(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),o.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=o.useMemo(()=>{if(a)return null;let e=!v&&!L(y,r);return v||e?g():null},[a,v,r,y,g]);return b===null?m:b}function z(e){let t=M(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:s,exact:c=!0}=e,l=p(i._names.array,n),u=R({control:i,name:n,defaultValue:o.useMemo(()=>D(i._formValues,n,D(i._defaultValues,n,s)),[i,n,s]),exact:c}),d=F({control:i,name:n,exact:c}),m=o.useRef(e),h=o.useRef(null),v=o.useRef(i.register(n,{...e.rules,value:u,...O(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let y=o.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!D(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!D(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!D(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!D(d.validatingFields,n)},error:{enumerable:!0,get:()=>D(d.errors,n)}}),[d,n]),b=o.useCallback(e=>{let t=f(e);return D(i._fields,n)||(v.current=i.register(n,{...m.current.rules,value:t})),v.current.onChange({target:{value:f(e),name:n},type:_.CHANGE})},[n,i]),x=o.useCallback(()=>v.current.onBlur({target:{value:D(i._formValues,n),name:n},type:_.BLUR}),[n,i._formValues]),S=o.useCallback(e=>{e&&(h.current={focus:()=>k(e.focus)&&e.focus(),select:()=>k(e.select)&&e.select(),setCustomValidity:t=>k(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>k(e.reportValidity)&&e.reportValidity()});let t=D(i._fields,n);t&&t._f&&e&&(t._f.ref=h.current)},[i._fields,n]),C=o.useMemo(()=>({name:n,value:u,...O(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:b,onBlur:x,ref:S}),[n,r,d.disabled,b,x,S,u]);return o.useEffect(()=>{let e=i._options.shouldUnregister||a;i.register(n,{...m.current.rules,...O(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=D(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=g(D(a?i._defaultValues:i._options.values||i._defaultValues,n,D(i._options.defaultValues,n,m.current.defaultValue)));A(i._defaultValues,n,e),w(D(i._formValues,n))&&A(i._formValues,n,e)}if(!l&&i.register(n),h.current){let e=D(i._fields,n);e&&e._f&&(e._f.ref=h.current)}return()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,a]),o.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),o.useMemo(()=>({field:C,formState:d,fieldState:y}),[C,d,y])}var re=e=>e.render(z(e)),ie=o.createContext(null);ie.displayName=`HookFormContext`;var ae=()=>o.useContext(ie),oe=({children:e,watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:s,setValues:c,trigger:l,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v})=>{let y=o.useMemo(()=>({watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:s,setValues:c,trigger:l,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[a,h,u,r,n,p,g,f,d,i,_,s,c,v,l,m,t]);return o.createElement(ie.Provider,{value:y},o.createElement(j.Provider,{value:y.control},e))},se=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ce=e=>Array.isArray(e)?e.filter(Boolean):[],le=e=>Array.isArray(e)?e:[e],ue=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function de(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&d(i)&&a){let e=de(i,a);d(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var B=e=>d(e)&&!Object.keys(e).length,fe=e=>e.type===`file`,pe=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},me=e=>e.type===`select-multiple`,V=e=>e.type===`radio`,he=e=>V(e)||s(e),ge=e=>pe(e)&&e.isConnected;function _e(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if(l(e)){e=void 0;break}e=e[t[r]],r++}return e}function ve(e){for(let t in e)if(e.hasOwnProperty(t)&&!w(e[t]))return!1;return!0}function H(e,t){if(I(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:C(t)?[t]:E(t),r=n.length===1?e:_e(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(d(r)&&B(r)||Array.isArray(r)&&ve(r))&&H(e,n.slice(0,-1)),e}var U=e=>{for(let t in e)if(k(e[t]))return!0;return!1};function ye(e){return Array.isArray(e)||d(e)&&!U(e)}function W(e,t={}){for(let n in e){let r=e[n];ye(r)?(t[n]=Array.isArray(r)?[]:{},W(r,t[n])):w(r)||(t[n]=!0)}return t}function G(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>G(e));return t.some(e=>e!==void 0)?t:void 0}if(d(e)){let t={};for(let n in e){let r=G(e[n]);w(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function K(e,t,n){n||=W(t);for(let r in e){let i=e[r];if(ye(i))w(t)||te(n[r])?n[r]=W(i,Array.isArray(i)?[]:{}):K(i,l(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return G(n)||{}}var be={value:!1,isValid:!1},q={value:!0,isValid:!0},J=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||e[0].value===``?q:{value:e[0].value,isValid:!0}:q:be}return be},xe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>w(e)?e:t?e===``?NaN:e&&+e:n&&I(e)?new Date(e):r?r(e):e,Se={isValid:!1,value:null},Y=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Se):Se;function Ce(e){let t=e.ref;return fe(t)?t.files:V(t)?Y(e.refs).value:me(t)?[...t.selectedOptions].map(({value:e})=>e):s(t)?J(e.refs).value:xe(w(t.value)?e.ref.value:t.value,e)}var we=(e,t,n,r)=>{let i={};for(let n of e){let e=D(t,n);e&&A(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},X=e=>e instanceof RegExp,Te=e=>w(e)?e:X(e)?e.source:d(e)?X(e.value)?e.value.source:e.value:e,Ee=e=>({isOnSubmit:!e||e===v.onSubmit,isOnBlur:e===v.onBlur,isOnChange:e===v.onChange,isOnAll:e===v.all,isOnTouch:e===v.onTouched}),De=`AsyncFunction`,Oe=e=>{if(!e||!e.validate)return!1;if(k(e.validate))return e.validate.constructor.name===De;if(d(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===De)return!0}return!1},ke=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ae=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},je=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=D(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(je(a,t))break}else if(d(a)&&je(a,t))break}}};function Me(e,t,n){let r=D(e,n);if(r||C(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=D(t,r),o=D(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Ne=(e,t,n,r)=>{n(e);let{name:i,...a}=e,o=Object.keys(a);return!o.length||r&&o.length>=Object.keys(t).length||o.find(e=>t[e]===(!r||v.all))},Pe=(e,t,n)=>!e||!t||e===t||le(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Fe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ie=(e,t)=>!ce(D(e,t)).length&&H(e,t),Le=(e,t,n)=>{let r=D(e,n),i=Array.isArray(r)?r:[];return A(i,b,t[n]),A(e,n,i),e};function Z(e,t,n=`validate`){if(I(e)||Array.isArray(e)&&e.every(I)||O(e)&&!e)return{type:n,message:I(e)?e:``,ref:t}}var Q=e=>d(e)&&!X(e)?e:{value:e,message:``},Re=async(e,t,n,r,i,a)=>{let{ref:o,refs:c,required:u,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:_,name:v,valueAsNumber:b,mount:x}=e._f,S=D(n,v);if(!x||t.has(v))return{};let C=c?c[0]:o,T=e=>{if(i&&C.reportValidity){let t=O(e)?``:e||``;c?c.forEach(e=>e.setCustomValidity(t)):C.setCustomValidity(t),C.reportValidity()}},E={},A=V(o),j=s(o),M=A||j,N=(b||fe(o))&&w(o.value)&&w(S)||pe(o)&&o.value===``||S===``||Array.isArray(S)&&!S.length,P=se.bind(null,v,r,E),F=(e,t,n,r=y.maxLength,i=y.minLength)=>{let a=e?t:n;E[v]={type:e?r:i,message:a,ref:o,...P(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:u&&(!M&&(N||l(S))||O(S)&&!S||j&&!J(c).isValid||A&&!Y(c).isValid)){let{value:e,message:t}=I(u)?{value:!!u,message:u}:Q(u);if(e&&(E[v]={type:y.required,message:t,ref:C,...P(y.required,t)},!r))return T(t),E}if(!N&&(!l(m)||!l(h))){let e,t,n=Q(h),i=Q(m);if(!l(S)&&!isNaN(S)){let r=o.valueAsNumber||S&&+S;l(n.value)||(e=r>n.value),l(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(S),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;I(n.value)&&S&&(e=s?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),I(i.value)&&S&&(t=s?a(S)<a(i.value):c?S<i.value:r<new Date(i.value))}if((e||t)&&(F(!!e,n.message,i.message,y.max,y.min),!r))return T(E[v].message),E}if((f||p)&&!N&&(I(S)||a&&Array.isArray(S))){let e=Q(f),t=Q(p),n=!l(e.value)&&S.length>+e.value,i=!l(t.value)&&S.length<+t.value;if((n||i)&&(F(n,e.message,t.message),!r))return T(E[v].message),E}if(g&&!N&&I(S)){let{value:e,message:t}=Q(g);if(X(e)&&!S.match(e)&&(E[v]={type:y.pattern,message:t,ref:o,...P(y.pattern,t)},!r))return T(t),E}if(_){if(k(_)){let e=Z(await _(S,n),C);if(e&&(E[v]={...e,...P(y.validate,e.message)},!r))return T(e.message),E}else if(d(_)){let e={};for(let t in _){if(!B(e)&&!r)break;let i=Z(await _[t](S,n),C,t);i&&(e={...i,...P(t,i.message)},T(i.message),r&&(E[v]=e))}if(!B(e)&&(E[v]={ref:C,...e},!r))return E}}return T(!0),E},ze={mode:v.onSubmit,reValidateMode:v.onChange,shouldFocusError:!0},Be=`form`,Ve={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function He(e={}){let t={...ze,...e},n={...g(Ve),isLoading:k(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(d(t.defaultValues)||d(t.values))&&g(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:g(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},m,x=0,S=0,T=Ee(t.mode),j=Ee(t.reValidateMode),M={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},N={...M},P={...N},F={array:ue(),state:ue()},te=t.criteriaMode===v.all,ne=e=>t=>{clearTimeout(x),x=setTimeout(e,t)},R=async e=>{if(!o.keepIsValid&&!t.disabled&&(N.isValid||P.isValid||e)){let e;t.resolver?(e=B((await U()).errors),z()):e=await G({fields:r,onlyCheckValid:!0,eventType:_.VALID}),e!==n.isValid&&F.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(N.isValidating||N.validatingFields||P.isValidating||P.validatingFields)&&((e||Array.from(u.mount)).forEach(e=>{e&&(r?A(n.validatingFields,e,r):H(n.validatingFields,e))}),F.state.next({validatingFields:n.validatingFields,isValidating:!B(n.validatingFields)}))},re=()=>{n.dirtyFields=K(i,a)},ie=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(D(r,e))){let t=s(D(r,e),c.argA,c.argB);l&&A(r,e,t)}if(u&&Array.isArray(D(n.errors,e))){let t=s(D(n.errors,e),c.argA,c.argB);l&&A(n.errors,e,t),Ie(n.errors,e)}if((N.touchedFields||P.touchedFields)&&u&&Array.isArray(D(n.touchedFields,e))){let t=s(D(n.touchedFields,e),c.argA,c.argB);l&&A(n.touchedFields,e,t)}(N.dirtyFields||P.dirtyFields)&&re(),F.state.next({name:e,isDirty:q(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else A(a,e,i)},ae=(e,t)=>{A(n.errors,e,t),n.errors={...n.errors},F.state.next({errors:n.errors})},oe=e=>{n.errors=e,F.state.next({errors:n.errors,isValid:!1})},se=e=>{let t=C(e)?[e]:E(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=l(n)?n:n[i],r=l(r)?r:r[i],n===null&&r!==null)return!0}return!1},V=(t,s,c,l)=>{let d=D(r,t);if(d){if(se(t))return;let r=w(D(a,t)),f=D(a,t,w(c)?D(i,t):c);w(f)||l&&l.defaultChecked||s?A(a,t,s?f:Ce(d._f)):Y(t,f),o.mount&&!o.action&&(R(),r&&n.isDirty&&(N.isDirty||P.isDirty)&&(q()||(n.isDirty=!1,F.state.next({...n}))),e.shouldUnregister&&r&&!w(D(a,t))&&Ae(t,u)&&(o.watch=!0))}},_e=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){let t=L(D(i,e),r);(N.isDirty||P.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=!t||q(),l=u!==d.isDirty),u=!!D(n.dirtyFields,e),t===n.isDirty?t?H(n.dirtyFields,e):A(n.dirtyFields,e,!0):n.dirtyFields=K(i,a),d.dirtyFields=n.dirtyFields,l||=(N.dirtyFields||P.dirtyFields)&&u!==!t}if(o){let t=D(n.touchedFields,e);t||(A(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(N.touchedFields||P.touchedFields)&&t!==o)}l&&c&&F.state.next(d)}return l?d:{}},ve=(e,r,i,a)=>{let o=D(n.errors,e),s=(N.isValid||P.isValid)&&O(r)&&n.isValid!==r;if(t.delayError&&i?(m=ne(()=>ae(e,i)),m(t.delayError)):(clearTimeout(x),m=null,i?A(n.errors,e,i):H(n.errors,e),n.errors={...n.errors}),(i?!L(o,i):o)||!B(a)||s){let t={...a,...s&&O(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},F.state.next(t)}},U=async e=>(z(e,!0),await t.resolver(a,t.context,we(e||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),ye=async e=>{let{errors:t}=await U(e);if(z(e),e){for(let r of e){let e=D(t,r);e?u.array.has(r)&&d(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Le(n.errors,{[r]:e},r):A(n.errors,r,e):H(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},W=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(d(i))for(let e in i){let t=i[e];t&&$(`${Be}.${e}`,{message:I(t.message)?t.message:``,type:t.type||y.validate})}else I(i)||!i?$(Be,{message:i||``,type:y.validate}):qe(Be);return i}return!0},G=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await W({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...d}=l;if(r){let o=u.array.has(r.name),s=l._f&&Oe(l._f),d=N.validatingFields||N.isValidating||P.validatingFields||P.isValidating;s&&d&&z([r.name],!0);let f=await Re(l,u.disabled,a,te,t.shouldUseNativeValidation&&!i,o);if(s&&d&&z([r.name]),f[r.name]&&(c.valid=!1,i)||(!i&&(D(f,r.name)?o?Le(n.errors,f,r.name):A(n.errors,r.name,f[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!B(d)&&await G({context:c,onlyCheckValid:i,fields:d,name:o,eventType:s})}}return c.valid},be=()=>{for(let e of u.unMount){let t=D(r,e);t&&(t._f.refs?t._f.refs.every(e=>!ge(e)):!ge(t._f.ref))&&Ze(e)}u.unMount=new Set},q=(e,n)=>!t.disabled&&(e&&n&&A(a,e,n),!L(o.mount?a:i,i)),J=(e,t,n)=>ee(e,u,{...o.mount?a:w(t)?i:I(e)?{[e]:t}:t},n,t),Se=e=>ce(D(o.mount?a:i,e,t.shouldUnregister?D(i,e,[]):[])),Y=(e,t,n={},i=!1,o=!1)=>{let c=D(r,e),u=t;if(c){let n=c._f;n&&(!n.disabled&&A(a,e,xe(t,n)),u=pe(n.ref)&&l(t)?``:t,me(n.ref)?[...n.ref.options].forEach(e=>e.selected=u.includes(e.value)):n.refs?s(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(u)?e.checked=!!u.find(t=>t===e.value):e.checked=u===e.value||!!u)}):n.refs.forEach(e=>e.checked=e.value===u):fe(n.ref)?n.ref.value=``:(n.ref.value=u,!n.ref.type&&!o&&F.state.next({name:e,values:i?a:g(a)})))}(n.shouldDirty||n.shouldTouch)&&_e(e,u,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&We(e)},X=(e,t,n,i=!1,a=!1)=>{for(let o in t){if(!t.hasOwnProperty(o))return;let s=t[o],l=e+`.`+o,f=D(r,l);(u.array.has(e)||d(s)||f&&!f._f)&&!c(s)?X(l,s,n,i,a):Y(l,s,n,i,a)}},De=(e,t,i,s,c=!1)=>{let d=D(r,e),f=u.array.has(e),p=s?t:g(t),m=L(D(a,e),p);if(m||A(a,e,p),f)F.array.next({name:e,values:s?a:g(a)}),(N.isDirty||N.dirtyFields||P.isDirty||P.dirtyFields)&&i.shouldDirty&&(re(),c||F.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:q(e,p)}));else{let t=Array.isArray(p)&&!p.length||B(p);!d||d._f||l(p)||t?Y(e,p,i,s,c):X(e,p,i,s,c)}if(!m&&!c){let t=Ae(e,u),r=s?a:g(a);F.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},Z=(e,t,n={})=>De(e,t,n,!1),Q=(e,t={})=>{let r=k(e)?e(a):e;if(!L(a,r)){a={...a,...r};for(let e of u.mount)De(e,D(r,e),t,!0,!0);F.state.next({...n,name:void 0,type:void 0,...S?{values:a}:{}}),t.shouldValidate&&R()}},He=async i=>{o.mount=!0;let s=i.target,l=s.name,d=!0,p=D(r,l),h=e=>{d=Number.isNaN(e)||c(e)&&isNaN(e.getTime())||L(e,D(a,l,e))};if(p){let o,c,v=s.type?Ce(p._f):f(i),y=i.type===_.BLUR||i.type===_.FOCUS_OUT,b=!ke(p._f)&&!e.validate&&!t.resolver&&!D(n.errors,l)&&!p._f.deps,x=b||Fe(y,D(n.touchedFields,l),n.isSubmitted,j,T),C=Ae(l,u,y);A(a,l,v),y?(!s||!s.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),m&&m(0)):p._f.onChange&&p._f.onChange(i);let w=_e(l,v,y),E=!B(w)||C;if(!y&&F.state.next({name:l,type:i.type,...S?{values:g(a)}:{}}),x)return(!b||!n.isValid)&&(N.isValid||P.isValid)&&(t.mode===`onBlur`?y&&R():y||R()),E&&F.state.next({name:l,...C?{}:w});if(!t.resolver&&e.validate&&await W({name:l,eventType:i.type}),!y&&C&&F.state.next({...n}),t.resolver){let{errors:e}=await U([l]);if(z([l]),h(v),!d){!B(w)&&F.state.next(w);return}let t=Me(n.errors,r,l),i=Me(e,r,t.name||l);o=i.error,l=i.name,c=B(e)}else z([l],!0),o=(await Re(p,u.disabled,a,te,t.shouldUseNativeValidation))[l],z([l]),h(v),d&&(o?c=!1:(N.isValid||P.isValid)&&(c=await G({fields:r,onlyCheckValid:!0,name:l,eventType:i.type})));d&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&We(p._f.deps),ve(l,c,o,w))}},Ue=(e,t)=>{if(D(n.errors,t)&&e.focus)return e.focus(),1},We=async(e,i={})=>{let a,o,s=le(e);if(t.resolver){let t=await ye(w(e)?e:s);a=B(t),o=e?!s.some(e=>D(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=D(r,e);return await G({fields:t&&t._f?{[e]:t}:t,eventType:_.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await G({fields:r,name:e,eventType:_.TRIGGER});return F.state.next({...!I(e)||(N.isValid||P.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&je(r,Ue,e?s:u.mount),o},Ge=(e,t)=>{let r={...o.mount?a:i};return t&&(r=de(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),w(e)?r:I(e)?D(r,e):e.map(e=>D(r,e))},Ke=(e,t)=>({invalid:!!D((t||n).errors,e),isDirty:!!D((t||n).dirtyFields,e),error:D((t||n).errors,e),isValidating:!!D(n.validatingFields,e),isTouched:!!D((t||n).touchedFields,e)}),qe=e=>{let t=e?le(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{F.state.next({name:e,errors:n.errors})}):F.state.next({errors:{}})},$=(e,t,i)=>{let a=(D(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=D(n.errors,e)||{};A(n.errors,e,{...l,...t,ref:a}),F.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Je=(e,t)=>{if(k(e)){S++;let{unsubscribe:n}=F.state.subscribe({next:n=>`values`in n&&e(n.values||J(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,S--,n())}}}return J(e,t,!0)},Ye=e=>{let t=!!e.formState?.values;t&&S++;let{unsubscribe:r}=F.state.subscribe({next:t=>{if(Pe(e.name,t.name,e.exact)&&Ne(t,e.formState||N,st,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,S--,r())}},Xe=e=>(o.mount=!0,P={...P,...e.formState},Ye({...e,formState:{...M,...e.formState}})),Ze=(e,o={})=>{for(let s of e?le(e):u.mount)u.mount.delete(s),u.array.delete(s),o.keepValue||(H(r,s),H(a,s)),!o.keepError&&H(n.errors,s),!o.keepDirty&&H(n.dirtyFields,s),!o.keepTouched&&H(n.touchedFields,s),!o.keepIsValidating&&H(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,s);F.state.next({values:g(a)}),F.state.next({...n,...o.keepDirty?{isDirty:q()}:{}}),!o.keepIsValid&&R()},Qe=({disabled:e,name:t})=>{if(O(e)&&o.mount||e||u.disabled.has(t)){let n=u.disabled.has(t)!==!!e;e?u.disabled.add(t):u.disabled.delete(t),n&&o.mount&&!o.action&&R()}},$e=(e,n={})=>{let a=D(r,e),s=O(n.disabled)||O(t.disabled),c=!u.registerName.has(e)&&a&&a._f&&!a._f.mount;return A(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),u.mount.add(e),a&&!c?Qe({disabled:O(n.disabled)?n.disabled:t.disabled,name:e}):V(e,!0,n.value),{...s?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Te(n.min),max:Te(n.max),minLength:Te(n.minLength),maxLength:Te(n.maxLength),pattern:Te(n.pattern)}:{},name:e,onChange:He,onBlur:He,ref:s=>{if(s){u.registerName.add(e),$e(e,n),u.registerName.delete(e),a=D(r,e);let t=w(s.value)&&s.querySelectorAll&&s.querySelectorAll(`input,select,textarea`)[0]||s,o=he(t),c=a._f.refs||[];if(o?c.find(e=>e===t):t===a._f.ref)return;A(r,e,{_f:{...a._f,...o?{refs:[...c.filter(ge),t,...Array.isArray(D(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),V(e,!1,void 0,t)}else a=D(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(p(u.array,e)&&o.action)&&u.unMount.add(e)}}},et=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&je(r,Ue,u.mount),tt=e=>{O(e)&&(F.state.next({disabled:e}),je(r,(t,n)=>{let i=D(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},nt=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=g(a);if(F.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await U();z(),n.errors=e,c=g(t)}else await G({fields:r,eventType:_.SUBMIT});if(u.disabled.size)for(let e of u.disabled)H(c,e);if(H(n.errors,b),B(n.errors)){F.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),et(),setTimeout(et);if(F.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},rt=(e,t={})=>{D(r,e)&&(w(t.defaultValue)?Z(e,g(D(i,e))):(Z(e,t.defaultValue),A(i,e,g(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?q(e,g(D(i,e))):q()),t.keepError||(H(n.errors,e),N.isValid&&R()),F.state.next({...n}))},it=(e,s={})=>{let c=e?g(e):i,l=g(c),d=B(e),f=l;if(s.keepDefaultValues||(i=c),!s.keepValues){if(s.keepDirtyValues){let e=new Set([...u.mount,...Object.keys(K(i,a))]);for(let t of Array.from(e)){let e=D(n.dirtyFields,t),r=D(a,t),i=D(f,t);e&&!w(r)?A(f,t,r):!e&&!w(i)&&Z(t,i)}}else{if(h&&w(e))for(let e of u.mount){let t=D(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(pe(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(s.keepFieldsRef)for(let e of u.mount)Z(e,D(f,e));else r={}}if(t.shouldUnregister){if(a=s.keepDefaultValues?g(i):{},s.keepFieldsRef)for(let e of u.mount)A(a,e,D(f,e))}else a=g(f);F.array.next({values:{...f}}),F.state.next({values:{...f}})}u={mount:s.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!N.isValid||!!s.keepIsValid||!!s.keepDirtyValues||!t.shouldUnregister&&!B(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!s.keepIsValid,o.action=!1,s.keepErrors||(n.errors={}),F.state.next({submitCount:s.keepSubmitCount?n.submitCount:0,isDirty:d?!1:s.keepDirty?n.isDirty:s.keepValues?q():!!(s.keepDefaultValues&&!L(e,i)),isSubmitted:s.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:s.keepDirtyValues?s.keepDefaultValues&&a?K(i,a):n.dirtyFields:s.keepDefaultValues&&e?K(i,e):s.keepDirty?n.dirtyFields:{},touchedFields:s.keepTouched?n.touchedFields:{},errors:s.keepErrors?n.errors:{},isSubmitSuccessful:s.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},at=(e,n)=>it(k(e)?e(a):e,{...t.resetOptions,...n}),ot=(e,t={})=>{let n=D(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&k(e.select)&&e.select()})}},st=e=>{n={...n,...e}},ct={control:{register:$e,unregister:Ze,getFieldState:Ke,handleSubmit:nt,setError:$,_subscribe:Ye,_runSchema:U,_updateIsValidating:z,_focusError:et,_getWatch:J,_getDirty:q,_setValid:R,_setFieldArray:ie,_setDisabledField:Qe,_setErrors:oe,_getFieldArray:Se,_reset:it,_resetDefaultValues:()=>k(t.defaultValues)&&t.defaultValues().then(e=>{at(e,t.resetOptions),F.state.next({isLoading:!1})}),_removeUnmounted:be,_disableForm:tt,_subjects:F,_proxyFormState:N,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return u},set _names(e){u=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},T=Ee(t.mode),j=Ee(t.reValidateMode)}},subscribe:Xe,trigger:We,register:$e,handleSubmit:nt,watch:Je,setValue:Z,setValues:Q,getValues:Ge,reset:at,resetField:rt,resetDefaultValues:(e,t={})=>{if(i=g(e),!t.keepDirty){let e=K(i,a);n.dirtyFields=e,n.isDirty=!B(e)}t.keepIsValid||R(),F.state.next({...n,defaultValues:i})},clearErrors:qe,unregister:Ze,setError:$,setFocus:ot,getFieldState:Ke};return{...ct,formControl:ct}}function Ue(e={}){let t=o.useRef(void 0),n=o.useRef(void 0),r=o.useRef(e.formControl),[i,a]=o.useState(()=>({...g(Ve),isLoading:k(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:k(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!k(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=He(e);t.current={...r,formState:i}}let s=t.current.control;return s._options=e,P(()=>{let e=s._subscribe({formState:s._proxyFormState,callback:()=>a({...s._formState,defaultValues:s._defaultValues}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),s._formState.isReady=!0,e},[s]),o.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),o.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),o.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),o.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),o.useEffect(()=>{if(s._proxyFormState.isDirty){let e=s._getDirty();e!==i.isDirty&&s._subjects.state.next({isDirty:e})}},[s,i.isDirty]),o.useEffect(()=>{e.values&&!L(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),s._options.resetOptions?.keepIsValid||s._setValid(),n.current=e.values,a(e=>({...e}))):s._resetDefaultValues()},[s,e.values]),o.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=o.useMemo(()=>N(i,s),[s,i]),t.current}function We({className:e,...t}){return(0,a.jsx)(`label`,{"data-slot":`label`,className:i(`text-sm leading-none font-medium select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}var Ge=oe,Ke=o.createContext({}),qe=({...e})=>(0,a.jsx)(Ke.Provider,{value:{name:e.name},children:(0,a.jsx)(re,{...e})}),$=()=>{let e=o.useContext(Ke),t=o.useContext(Je),{getFieldState:n}=ae(),r=F({name:e.name}),i=n(e.name,r);if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},Je=o.createContext({});function Ye({className:e,...t}){let n=o.useId();return(0,a.jsx)(Je.Provider,{value:{id:n},children:(0,a.jsx)(`div`,{"data-slot":`form-item`,className:i(`grid gap-2`,e),...t})})}function Xe({className:e,...t}){let{error:n,formItemId:r}=$();return(0,a.jsx)(We,{"data-slot":`form-label`,"data-error":!!n,className:i(`data-[error=true]:text-destructive`,e),htmlFor:r,...t})}function Ze({...e}){let{error:t,formItemId:n,formDescriptionId:i,formMessageId:o}=$();return(0,a.jsx)(r,{"data-slot":`form-control`,id:n,"aria-describedby":t?`${i} ${o}`:`${i}`,"aria-invalid":!!t,...e})}function Qe({className:e,...t}){let{formDescriptionId:n}=$();return(0,a.jsx)(`p`,{"data-slot":`form-description`,id:n,className:i(`text-muted-foreground text-sm`,e),...t})}function $e({className:e,...t}){let{error:n,formMessageId:r}=$(),o=n?String(n?.message??``):t.children;return o?(0,a.jsx)(`p`,{"data-slot":`form-message`,id:r,className:i(`text-destructive text-sm`,e),...t,children:o}):null}export{Ye as a,We as c,A as d,Ue as f,qe as i,se as l,Ze as n,Xe as o,R as p,Qe as r,$e as s,Ge as t,D as u};