@buildr-ai/buildr 0.1.0-rc.2 → 0.1.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -5
- package/application-payload.json +595 -0
- package/bin/buildr.mjs +14 -0
- package/installation-origin.json +13 -0
- package/package.json +16 -45
- package/payload/licenses/dependencies/yaml-LICENSE +13 -0
- package/payload/product/LICENSE +21 -0
- package/payload/product/README.md +59 -0
- package/payload/product/package/README.md +42 -0
- package/{package → payload/product/package}/bootstrap/contract.yml +26 -11
- package/{package → payload/product/package}/bootstrap/guide.md +11 -11
- package/payload/product/package/launchers/assets/Buildr.icns +0 -0
- package/payload/product/package/launchers/assets/Buildr.ico +0 -0
- package/payload/product/package/manifest.yml +547 -0
- package/payload/product/package/targets/runtime/skills/buildr/SKILL.md +174 -0
- package/{package → payload/product/package}/targets/workspace/commands/buildr/openspec/manifest.yml +2 -2
- package/payload/product/package/targets/workspace/components/buildr/openspec/component.yml +79 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md +21 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-archive-converge.md +5 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-explore-terminology.md +5 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md +21 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-sync-converge.md +5 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-update-sidebar.md +13 -0
- package/payload/product/package/targets/workspace/gitattributes +1 -0
- package/payload/product/package/targets/workspace/gitignore +31 -0
- package/{package → payload/product/package}/targets/workspace/projects/AGENTS.project.md +1 -1
- package/payload/product/package/targets/workspace/rules/buildr/core.md +62 -0
- package/payload/product/package/targets/workspace/skills/buildr/capability-adaptation/SKILL.md +56 -0
- package/payload/product/package/targets/workspace/skills/buildr/capability-adaptation/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/current-knowledge-maintenance/SKILL.md +103 -0
- package/payload/product/package/targets/workspace/skills/buildr/declaration-intake/SKILL.md +65 -0
- package/payload/product/package/targets/workspace/skills/buildr/git-operations/SKILL.md +100 -0
- package/payload/product/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md +65 -0
- package/payload/product/package/targets/workspace/skills/buildr/project-daily-progress/SKILL.md +52 -0
- package/payload/product/package/targets/workspace/skills/buildr/project-testing/SKILL.md +84 -0
- package/payload/product/package/targets/workspace/skills/buildr/project-testing/references/testing-model-v1.md +116 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-development/SKILL.md +108 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/SKILL.md +42 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/references/project-environment-preparation-v1.md +14 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/templates/project-preparation.yml +20 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/templates/task-environment-plan-request.json +17 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-finish/SKILL.md +80 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-manager/SKILL.md +47 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-manager/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-retrospective/SKILL.md +101 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-retrospective/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-review/SKILL.md +60 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-review/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-triage/SKILL.md +119 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-verification/SKILL.md +142 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-verification/references/project-verification-v2.md +51 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-verification/templates/project-verification.yml +16 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-worktree/SKILL.md +28 -0
- package/payload/product/package/targets/workspace/skills/buildr/terminology-governance/SKILL.md +60 -0
- package/payload/product/package/targets/workspace/skills/buildr/ui-preview/SKILL.md +74 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md +36 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md +45 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/git-operations/v1.md +39 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/git-worktree-provider/v1.md +35 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-development/v2.md +61 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-environment/v1.md +37 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-finish/v1.md +59 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-record/v2.md +35 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-retrospective/v2.md +41 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-review/v1.md +39 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-verification/v3.md +63 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/terminology-governance/v1.md +36 -0
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-apply-change/SKILL.md +4 -3
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-archive-change/SKILL.md +4 -3
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-explore/SKILL.md +4 -1
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-propose/SKILL.md +4 -1
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-sync-specs/SKILL.md +4 -3
- package/payload/product/package/targets/workspace/skills/openspec/openspec-update-change/SKILL.md +86 -0
- package/payload/product/package.json +33 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0000_create_migration_ledger.sql +16 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0001_create_task_store.sql +47 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0002_create_parent_task_relations.sql +7 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0003_inline_parent_task_column.sql +19 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0004_create_task_current_records.sql +16 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0005_create_task_retrospective_current.sql +4 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0006_create_task_lifecycle_current.sql +4 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0007_create_task_finish_current.sql +46 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0008_create_task_environment_current.sql +8 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0009_retire_task_lifecycle_current.sql +107 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0010_add_task_retrospective_disposition.sql +19 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0011_create_task_execution_records.sql +115 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0012_compact_task_finish_current.sql +261 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0013_add_todo_task_retrospective_sources.sql +56 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0014_add_task_execution_invocation_identity.sql +14 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0015_add_task_execution_unknown_outcome.sql +143 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0016_allow_terminal_task_finish_target_lease.sql +83 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0017_expand_task_finish_repository_set.sql +111 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/antd-NAtxFWmu.js +394 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-BqoyfMSY.css +1 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-DTqvE0TF.js +39 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/react-9kRp7SbA.js +28 -0
- package/payload/product/src/interfaces/local-app/web-dist/index.html +19 -0
- package/payload/runtime/read-worker.cjs +45071 -0
- package/runtime/buildr.cjs +51533 -0
- package/scripts/postinstall.mjs +15 -0
- package/docs/agent-runtime-adapters.md +0 -94
- package/docs/cli-architecture.md +0 -65
- package/docs/cli-reference.md +0 -67
- package/docs/known-limitations.md +0 -15
- package/examples/minimal-workspace/README.md +0 -24
- package/package/README.md +0 -28
- package/package/manifest.yml +0 -150
- package/package/targets/runtime/skills/buildr/SKILL.md +0 -154
- package/package/targets/workspace/.buildr/workspace.yml +0 -5
- package/package/targets/workspace/commands/manifest.yml +0 -2
- package/package/targets/workspace/components/buildr/openspec/component.yml +0 -16
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-archive-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-explore-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-sync-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/task-finish-post-sync.md +0 -1
- package/package/targets/workspace/components/buildr/openspec/contributions/task-finish-pre-sync.md +0 -1
- package/package/targets/workspace/components/buildr/openspec/contributions/task-triage-change-ready.md +0 -10
- package/package/targets/workspace/components/manifest.yml +0 -2
- package/package/targets/workspace/gitignore +0 -16
- package/package/targets/workspace/projects/manifest.yml +0 -2
- package/package/targets/workspace/projects/services/manifest.yml +0 -3
- package/package/targets/workspace/projects/skills/manifest.yml +0 -2
- package/package/targets/workspace/rules/buildr/core.md +0 -65
- package/package/targets/workspace/rules/manifest.yml +0 -9
- package/package/targets/workspace/skills/buildr/git-ops/SKILL.md +0 -73
- package/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md +0 -67
- package/package/targets/workspace/skills/buildr/task-finish/SKILL.md +0 -104
- package/package/targets/workspace/skills/buildr/task-triage/SKILL.md +0 -103
- package/package/targets/workspace/skills/buildr/task-worktree/SKILL.md +0 -104
- package/package/targets/workspace/skills/manifest.yml +0 -38
- package/tools/buildr +0 -11
- package/tools/cli/application/cli-update.mjs +0 -219
- package/tools/cli/application/compose-runtime.mjs +0 -38
- package/tools/cli/application/doctor/runtime-diagnostics.mjs +0 -227
- package/tools/cli/application/doctor/scope-diagnostics.mjs +0 -440
- package/tools/cli/application/doctor/service-diagnostics.mjs +0 -184
- package/tools/cli/application/doctor.mjs +0 -201
- package/tools/cli/application/package-maintenance/builtin-receipts.mjs +0 -73
- package/tools/cli/application/package-maintenance/output.mjs +0 -148
- package/tools/cli/application/package-maintenance/smoke-checks.mjs +0 -463
- package/tools/cli/application/package-maintenance/static-validation.mjs +0 -680
- package/tools/cli/application/package-maintenance.mjs +0 -540
- package/tools/cli/application/runtime.mjs +0 -118
- package/tools/cli/application/workspace-operations.mjs +0 -311
- package/tools/cli/bootstrap.mjs +0 -6
- package/tools/cli/command/help.mjs +0 -296
- package/tools/cli/command/registry.mjs +0 -97
- package/tools/cli/domains/commands.mjs +0 -661
- package/tools/cli/domains/components.mjs +0 -922
- package/tools/cli/domains/openspec.mjs +0 -603
- package/tools/cli/domains/package-assets.mjs +0 -652
- package/tools/cli/domains/rules.mjs +0 -380
- package/tools/cli/domains/runtime.mjs +0 -87
- package/tools/cli/domains/skills.mjs +0 -647
- package/tools/cli/domains/workspace.mjs +0 -571
- package/tools/cli/shared/infrastructure.mjs +0 -411
- package/tools/cli/shared/json-contracts.mjs +0 -22
- package/tools/cli/shared/platform.mjs +0 -52
- package/tools/runtime/adapter-contract.mjs +0 -655
- package/tools/runtime/check-claude-code.mjs +0 -23
- package/tools/runtime/check-codex.mjs +0 -23
- package/tools/runtime/check-runtime.mjs +0 -98
- package/tools/runtime/projection.mjs +0 -375
- package/tools/runtime/render-claude-code-rules.mjs +0 -459
- package/tools/runtime/render-claude-code.mjs +0 -59
- package/tools/runtime/skills/arguments.mjs +0 -51
- package/tools/runtime/skills/contributions.mjs +0 -171
- package/tools/runtime/skills/manifests.mjs +0 -167
- package/tools/runtime/skills/primitives.mjs +0 -86
- package/tools/runtime/skills/render-plan.mjs +0 -243
- package/tools/runtime/skills/sources.mjs +0 -276
- package/tools/shared/fetch-remote-text.mjs +0 -78
- package/tools/verification/integrity/managed-data-integrity.mjs +0 -107
- package/tools/verification/integrity/managed-mutations.mjs +0 -72
- package/tools/verification/openspec/contract.mjs +0 -212
- package/tools/verification/runtime/adapter-contract.mjs +0 -218
- package/tools/verification/runtime/adapter-parity.mjs +0 -173
- /package/{package → payload/product/package}/targets/workspace/AGENTS.md +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function Ye(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var me={exports:{}},w={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ae;function vt(){if(Ae)return w;Ae=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),o=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),m=Symbol.iterator;function R(u){return u===null||typeof u!="object"?null:(u=m&&u[m]||u["@@iterator"],typeof u=="function"?u:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function y(u,p,C){this.props=u,this.context=p,this.refs=g,this.updater=C||E}y.prototype.isReactComponent={},y.prototype.setState=function(u,p){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,p,"setState")},y.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function _(){}_.prototype=y.prototype;function P(u,p,C){this.props=u,this.context=p,this.refs=g,this.updater=C||E}var $=P.prototype=new _;$.constructor=P,v($,y.prototype),$.isPureReactComponent=!0;var k=Array.isArray;function D(){}var x={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Y(u,p,C){var S=C.ref;return{$$typeof:e,type:u,key:p,ref:S!==void 0?S:null,props:C}}function X(u,p){return Y(u.type,p,u.props)}function Q(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function pe(u){var p={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(C){return p[C]})}var Z=/\/+/g;function z(u,p){return typeof u=="object"&&u!==null&&u.key!=null?pe(""+u.key):p.toString(36)}function j(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(D,D):(u.status="pending",u.then(function(p){u.status==="pending"&&(u.status="fulfilled",u.value=p)},function(p){u.status==="pending"&&(u.status="rejected",u.reason=p)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function K(u,p,C,S,b){var T=typeof u;(T==="undefined"||T==="boolean")&&(u=null);var L=!1;if(u===null)L=!0;else switch(T){case"bigint":case"string":case"number":L=!0;break;case"object":switch(u.$$typeof){case e:case t:L=!0;break;case d:return L=u._init,K(L(u._payload),p,C,S,b)}}if(L)return b=b(u),L=S===""?"."+z(u,0):S,k(b)?(C="",L!=null&&(C=L.replace(Z,"$&/")+"/"),K(b,p,C,"",function(gt){return gt})):b!=null&&(Q(b)&&(b=X(b,C+(b.key==null||u&&u.key===b.key?"":(""+b.key).replace(Z,"$&/")+"/")+L)),p.push(b)),1;L=0;var B=S===""?".":S+":";if(k(u))for(var N=0;N<u.length;N++)S=u[N],T=B+z(S,N),L+=K(S,p,C,T,b);else if(N=R(u),typeof N=="function")for(u=N.call(u),N=0;!(S=u.next()).done;)S=S.value,T=B+z(S,N++),L+=K(S,p,C,T,b);else if(T==="object"){if(typeof u.then=="function")return K(j(u),p,C,S,b);throw p=String(u),Error("Objects are not valid as a React child (found: "+(p==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":p)+"). If you meant to render a collection of children, use an array instead.")}return L}function ae(u,p,C){if(u==null)return u;var S=[],b=0;return K(u,S,"","",function(T){return p.call(C,T,b++)}),S}function mt(u){if(u._status===-1){var p=u._result;p=p(),p.then(function(C){(u._status===0||u._status===-1)&&(u._status=1,u._result=C)},function(C){(u._status===0||u._status===-1)&&(u._status=2,u._result=C)}),u._status===-1&&(u._status=0,u._result=p)}if(u._status===1)return u._result.default;throw u._result}var $e=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},yt={map:ae,forEach:function(u,p,C){ae(u,function(){p.apply(this,arguments)},C)},count:function(u){var p=0;return ae(u,function(){p++}),p},toArray:function(u){return ae(u,function(p){return p})||[]},only:function(u){if(!Q(u))throw Error("React.Children.only expected to receive a single React element child.");return u}};return w.Activity=h,w.Children=yt,w.Component=y,w.Fragment=n,w.Profiler=a,w.PureComponent=P,w.StrictMode=r,w.Suspense=l,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,w.__COMPILER_RUNTIME={__proto__:null,c:function(u){return x.H.useMemoCache(u)}},w.cache=function(u){return function(){return u.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(u,p,C){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var S=v({},u.props),b=u.key;if(p!=null)for(T in p.key!==void 0&&(b=""+p.key),p)!W.call(p,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&p.ref===void 0||(S[T]=p[T]);var T=arguments.length-2;if(T===1)S.children=C;else if(1<T){for(var L=Array(T),B=0;B<T;B++)L[B]=arguments[B+2];S.children=L}return Y(u.type,b,S)},w.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:i,_context:u},u},w.createElement=function(u,p,C){var S,b={},T=null;if(p!=null)for(S in p.key!==void 0&&(T=""+p.key),p)W.call(p,S)&&S!=="key"&&S!=="__self"&&S!=="__source"&&(b[S]=p[S]);var L=arguments.length-2;if(L===1)b.children=C;else if(1<L){for(var B=Array(L),N=0;N<L;N++)B[N]=arguments[N+2];b.children=B}if(u&&u.defaultProps)for(S in L=u.defaultProps,L)b[S]===void 0&&(b[S]=L[S]);return Y(u,T,b)},w.createRef=function(){return{current:null}},w.forwardRef=function(u){return{$$typeof:f,render:u}},w.isValidElement=Q,w.lazy=function(u){return{$$typeof:d,_payload:{_status:-1,_result:u},_init:mt}},w.memo=function(u,p){return{$$typeof:o,type:u,compare:p===void 0?null:p}},w.startTransition=function(u){var p=x.T,C={};x.T=C;try{var S=u(),b=x.S;b!==null&&b(C,S),typeof S=="object"&&S!==null&&typeof S.then=="function"&&S.then(D,$e)}catch(T){$e(T)}finally{p!==null&&C.types!==null&&(p.types=C.types),x.T=p}},w.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},w.use=function(u){return x.H.use(u)},w.useActionState=function(u,p,C){return x.H.useActionState(u,p,C)},w.useCallback=function(u,p){return x.H.useCallback(u,p)},w.useContext=function(u){return x.H.useContext(u)},w.useDebugValue=function(){},w.useDeferredValue=function(u,p){return x.H.useDeferredValue(u,p)},w.useEffect=function(u,p){return x.H.useEffect(u,p)},w.useEffectEvent=function(u){return x.H.useEffectEvent(u)},w.useId=function(){return x.H.useId()},w.useImperativeHandle=function(u,p,C){return x.H.useImperativeHandle(u,p,C)},w.useInsertionEffect=function(u,p){return x.H.useInsertionEffect(u,p)},w.useLayoutEffect=function(u,p){return x.H.useLayoutEffect(u,p)},w.useMemo=function(u,p){return x.H.useMemo(u,p)},w.useOptimistic=function(u,p){return x.H.useOptimistic(u,p)},w.useReducer=function(u,p,C){return x.H.useReducer(u,p,C)},w.useRef=function(u){return x.H.useRef(u)},w.useState=function(u){return x.H.useState(u)},w.useSyncExternalStore=function(u,p,C){return x.H.useSyncExternalStore(u,p,C)},w.useTransition=function(){return x.H.useTransition()},w.version="19.2.8",w}var De;function ze(){return De||(De=1,me.exports=vt()),me.exports}var ye={exports:{}},A={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-dom.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ne;function Rt(){if(Ne)return A;Ne=1;var e=ze();function t(l){var o="https://react.dev/errors/"+l;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)o+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,o,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:l,containerInfo:o,implementation:d}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(l,o){if(l==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}return A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,A.createPortal=function(l,o){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(t(299));return i(l,o,null,d)},A.flushSync=function(l){var o=s.T,d=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=o,r.p=d,r.d.f()}},A.preconnect=function(l,o){typeof l=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,r.d.C(l,o))},A.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},A.preinit=function(l,o){if(typeof l=="string"&&o&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin),m=typeof o.integrity=="string"?o.integrity:void 0,R=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;d==="style"?r.d.S(l,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:h,integrity:m,fetchPriority:R}):d==="script"&&r.d.X(l,{crossOrigin:h,integrity:m,fetchPriority:R,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},A.preinitModule=function(l,o){if(typeof l=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var d=f(o.as,o.crossOrigin);r.d.M(l,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&r.d.M(l)},A.preload=function(l,o){if(typeof l=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin);r.d.L(l,d,{crossOrigin:h,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},A.preloadModule=function(l,o){if(typeof l=="string")if(o){var d=f(o.as,o.crossOrigin);r.d.m(l,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else r.d.m(l)},A.requestFormReset=function(l){r.d.r(l)},A.unstable_batchedUpdates=function(l,o){return l(o)},A.useFormState=function(l,o,d){return s.H.useFormState(l,o,d)},A.useFormStatus=function(){return s.H.useHostTransitionStatus()},A.version="19.2.8",A}var Ie;function Et(){if(Ie)return ye.exports;Ie=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ye.exports=Rt(),ye.exports}var c=ze();const wt=qe(c),nn=Ye({__proto__:null,default:wt},[c]);/**
|
|
18
|
+
* react-router v7.18.2
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Remix Software Inc.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
24
|
+
*
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/var Ce=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Ke=/^[\\/]{2}/;function St(e,t){return t+e.replace(/\\/g,"/")}var Me="popstate";function He(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Ct(e={}){function t(r,a){var o;let i=(o=a.state)==null?void 0:o.masked,{pathname:s,search:f,hash:l}=i||r.location;return Ee("",{pathname:s,search:f,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:te(a)}return Pt(t,n,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _t(){return Math.random().toString(36).substring(2,10)}function Ue(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Ee(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?G(t):t,state:n,key:t&&t.key||r||_t(),mask:a}}function te({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function G(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Pt(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,f="POP",l=null,o=d();o==null&&(o=0,s.replaceState({...s.state,idx:o},""));function d(){return(s.state||{idx:null}).idx}function h(){f="POP";let g=d(),y=g==null?null:g-o;o=g,l&&l({action:f,location:v.location,delta:y})}function m(g,y){f="PUSH";let _=He(g)?g:Ee(v.location,g,y);o=d()+1;let P=Ue(_,o),$=v.createHref(_.mask||_);try{s.pushState(P,"",$)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign($)}i&&l&&l({action:f,location:v.location,delta:1})}function R(g,y){f="REPLACE";let _=He(g)?g:Ee(v.location,g,y);o=d();let P=Ue(_,o),$=v.createHref(_.mask||_);s.replaceState(P,"",$),i&&l&&l({action:f,location:v.location,delta:0})}function E(g){return xt(a,g)}let v={get action(){return f},get location(){return e(a,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Me,h),l=g,()=>{a.removeEventListener(Me,h),l=null}},createHref(g){return t(a,g)},createURL:E,encodeLocation(g){let y=E(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:R,go(g){return s.go(g)}};return v}function xt(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),O(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:te(t);return a=a.replace(/ $/,"%20"),!n&&Ke.test(a)&&(a=r+a),new URL(a,r)}function Ge(e,t,n="/"){return bt(e,t,n,!1)}function bt(e,t,n,r,a){let i=typeof t=="string"?G(t):t,s=q(i.pathname||"/",n);if(s==null)return null;let f=Tt(e),l=null,o=Ut(s);for(let d=0;l==null&&d<f.length;++d)l=Ht(f[d],o,r);return l}function Tt(e){let t=Ve(e);return Lt(t),t}function Ve(e,t=[],n=[],r="",a=!1){let i=(s,f,l=a,o)=>{let d={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;O(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let h=U([r,d.relativePath]),m=n.concat(d);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Ve(s.children,t,m,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:It(h,s.index),routesMeta:m.map((R,E)=>{let[v,g]=Qe(R.relativePath,R.caseSensitive,E===m.length-1);return{...R,matcher:v,compiledParams:g}})})};return e.forEach((s,f)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,f);else for(let o of Je(s.path))i(s,f,!0,o)}),t}function Je(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=Je(r.join("/")),f=[];return f.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&f.push(...s),f.map(l=>e.startsWith("/")&&l===""?"/":l)}function Lt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Mt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Ot=/^:[\w-]+$/,kt=3,$t=2,At=1,Dt=10,Nt=-2,Fe=e=>e==="*";function It(e,t){let n=e.split("/"),r=n.length;return n.some(Fe)&&(r+=Nt),t&&(r+=$t),n.filter(a=>!Fe(a)).reduce((a,i)=>a+(Ot.test(i)?kt:i===""?At:Dt),r)}function Mt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Ht(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let f=0;f<r.length;++f){let l=r[f],o=f===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h={path:l.relativePath,caseSensitive:l.caseSensitive,end:o},m=l.matcher&&l.compiledParams?Xe(h,d,l.matcher,l.compiledParams):le(h,d),R=l.route;if(!m&&o&&n&&!r[r.length-1].route.index&&(m=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!m)return null;Object.assign(a,m.params),s.push({params:a,pathname:U([i,m.pathname]),pathnameBase:Bt(U([i,m.pathnameBase])),route:R}),m.pathnameBase!=="/"&&(i=U([i,m.pathnameBase]))}return s}function le(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Qe(e.path,e.caseSensitive,e.end);return Xe(e,t,n,r)}function Xe(e,t,n,r){let a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:r.reduce((o,{paramName:d,isOptional:h},m)=>{if(d==="*"){let E=f[m]||"";s=i.slice(0,i.length-E.length).replace(/(.)\/+$/,"$1")}const R=f[m];return h&&!R?o[d]=void 0:o[d]=(R||"").replace(/%2F/g,"/"),o},{}),pathname:i,pathnameBase:s,pattern:e}}function Qe(e,t=!1,n=!0){M(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,l,o,d)=>{if(r.push({paramName:f,isOptional:l!=null}),l){let h=d.charAt(o+s.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Ut(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function q(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ft(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?G(e):e,i;return n?(n=Ze(n),n.startsWith("/")?i=je(n.substring(1),"/"):i=je(n,t)):i=t,{pathname:i,search:Wt(r),hash:Yt(a)}}function je(e,t){let n=se(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ge(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jt(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _e(e){let t=jt(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ce(e,t,n,r=!1){let a;typeof e=="string"?a=G(e):(a={...e},O(!a.pathname||!a.pathname.includes("?"),ge("?","pathname","search",a)),O(!a.pathname||!a.pathname.includes("#"),ge("#","pathname","hash",a)),O(!a.search||!a.search.includes("#"),ge("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,f;if(s==null)f=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;a.pathname=m.join("/")}f=h>=0?t[h]:"/"}let l=Ft(a,f),o=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(o||d)&&(l.pathname+="/"),l}var Ze=e=>e.replace(/[\\/]{2,}/g,"/"),U=e=>Ze(e.join("/")),se=e=>e.replace(/\/+$/,""),Bt=e=>se(e).replace(/^\/*/,"/"),Wt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,qt=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function zt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Kt(e){let t=e.map(n=>n.route.path).filter(Boolean);return U(t)||"/"}var et=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tt(e,t){let n=e;if(typeof n!="string"||!Ce.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(et)try{let i=new URL(window.location.href),s=Ke.test(n)?new URL(St(n,i.protocol)):new URL(n),f=q(s.pathname,t);s.origin===i.origin&&f!=null?n=f+s.search+s.hash:a=!0}catch{M(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var rt=["POST","PUT","PATCH","DELETE"];new Set(rt);var Gt=["GET",...rt];new Set(Gt);var Vt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Jt(e){try{return Vt.includes(new URL(e).protocol)}catch{return!1}}var V=c.createContext(null);V.displayName="DataRouter";var fe=c.createContext(null);fe.displayName="DataRouterState";var nt=c.createContext(!1);function Xt(){return c.useContext(nt)}var at=c.createContext({isTransitioning:!1});at.displayName="ViewTransition";var Qt=c.createContext(new Map);Qt.displayName="Fetchers";var Zt=c.createContext(null);Zt.displayName="Await";var I=c.createContext(null);I.displayName="Navigation";var re=c.createContext(null);re.displayName="Location";var H=c.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var Pe=c.createContext(null);Pe.displayName="RouteError";var ot="REACT_ROUTER_ERROR",er="REDIRECT",tr="ROUTE_ERROR_RESPONSE";function rr(e){if(e.startsWith(`${ot}:${er}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function nr(e){if(e.startsWith(`${ot}:${tr}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new qt(t.status,t.statusText,t.data)}catch{}}function ar(e,{relative:t}={}){O(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(I),{hash:a,pathname:i,search:s}=ne(e,{relative:t}),f=i;return n!=="/"&&(f=i==="/"?n:U([n,i])),r.createHref({pathname:f,search:s,hash:a})}function J(){return c.useContext(re)!=null}function F(){return O(J(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(re).location}var it="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ut(e){c.useContext(I).static||c.useLayoutEffect(e)}function xe(){let{isDataRoute:e}=c.useContext(H);return e?Rr():or()}function or(){O(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(V),{basename:t,navigator:n}=c.useContext(I),{matches:r}=c.useContext(H),{pathname:a}=F(),i=JSON.stringify(_e(r)),s=c.useRef(!1);return ut(()=>{s.current=!0}),c.useCallback((l,o={})=>{if(M(s.current,it),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=ce(l,JSON.parse(i),a,o.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:U([t,d.pathname])),(o.replace?n.replace:n.push)(d,o.state,o)},[t,n,i,a,e])}var ir=c.createContext(null);function ur(e){let t=c.useContext(H).outlet;return c.useMemo(()=>t&&c.createElement(ir.Provider,{value:e},t),[t,e])}function an(){let{matches:e}=c.useContext(H),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function ne(e,{relative:t}={}){let{matches:n}=c.useContext(H),{pathname:r}=F(),a=JSON.stringify(_e(n));return c.useMemo(()=>ce(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function lr(e,t){return lt(e,t)}function lt(e,t,n){var g;O(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=c.useContext(I),{matches:a}=c.useContext(H),i=a[a.length-1],s=i?i.params:{},f=i?i.pathname:"/",l=i?i.pathnameBase:"/",o=i&&i.route;{let y=o&&o.path||"";ct(f,!o||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
27
|
+
|
|
28
|
+
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let d=F(),h;if(t){let y=typeof t=="string"?G(t):t;O(l==="/"||((g=y.pathname)==null?void 0:g.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${y.pathname}" was given in the \`location\` prop.`),h=y}else h=d;let m=h.pathname||"/",R=m;if(l!=="/"){let y=l.replace(/^\//,"").split("/");R="/"+m.replace(/^\//,"").split("/").slice(y.length).join("/")}let E=n&&n.state.matches.length?n.state.matches.map(y=>Object.assign(y,{route:n.manifest[y.route.id]||y.route})):Ge(e,{pathname:R});M(o||E!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),M(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=hr(E&&E.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:U([l,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:U([l,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&v?c.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},v):v}function sr(){let e=vr(),t=zt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:i},"ErrorBoundary")," or"," ",c.createElement("code",{style:i},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:a},n):null,s)}var cr=c.createElement(sr,null),st=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=nr(e.digest);n&&(e=n)}let t=e!==void 0?c.createElement(H.Provider,{value:this.props.routeContext},c.createElement(Pe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(fr,{error:e},t):t}};st.contextType=nt;var ve=new WeakMap;function fr({children:e,error:t}){let{basename:n}=c.useContext(I);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=rr(t.digest);if(r){let a=ve.get(t);if(a)throw a;let i=tt(r.location,n),s=i.absoluteURL||i.to;if(Jt(s))throw new Error("Invalid redirect location");if(et&&!ve.get(t))if(i.isExternal||r.reloadDocument)window.location.href=s;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw ve.set(t,f),f}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function dr({routeContext:e,match:t,children:n}){let r=c.useContext(V);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(H.Provider,{value:e},n)}function hr(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let d=a.findIndex(h=>h.route.id&&(i==null?void 0:i[h.route.id])!==void 0);O(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,f=-1;if(n&&r){s=r.renderFallback;for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:m,errors:R}=r,E=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!R||R[h.route.id]===void 0);if(h.route.lazy||E){n.isStatic&&(s=!0),f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}}let l=n==null?void 0:n.onError,o=r&&l?(d,h)=>{var m,R;l(d,{location:r.location,params:((R=(m=r.matches)==null?void 0:m[0])==null?void 0:R.params)??{},pattern:Kt(r.matches),errorInfo:h})}:void 0;return a.reduceRight((d,h,m)=>{let R,E=!1,v=null,g=null;r&&(R=i&&h.route.id?i[h.route.id]:void 0,v=h.route.errorElement||cr,s&&(f<0&&m===0?(ct("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,g=null):f===m&&(E=!0,g=h.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,m+1)),_=()=>{let P;return R?P=v:E?P=g:h.route.Component?P=c.createElement(h.route.Component,null):h.route.element?P=h.route.element:P=d,c.createElement(dr,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:P})};return r&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?c.createElement(st,{location:r.location,revalidation:r.revalidation,component:v,error:R,children:_(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:o}):_()},null)}function be(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pr(e){let t=c.useContext(V);return O(t,be(e)),t}function mr(e){let t=c.useContext(fe);return O(t,be(e)),t}function yr(e){let t=c.useContext(H);return O(t,be(e)),t}function Te(e){let t=yr(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function gr(){return Te("useRouteId")}function vr(){var r;let e=c.useContext(Pe),t=mr("useRouteError"),n=Te("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Rr(){let{router:e}=pr("useNavigate"),t=Te("useNavigate"),n=c.useRef(!1);return ut(()=>{n.current=!0}),c.useCallback(async(a,i={})=>{M(n.current,it),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Be={};function ct(e,t,n){!t&&!Be[e]&&(Be[e]=!0,M(!1,n))}c.memo(Er);function Er({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return lt(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function on({to:e,replace:t,state:n,relative:r}){O(J(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=c.useContext(I);M(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=c.useContext(H),{pathname:s}=F(),f=xe(),l=ce(e,_e(i),s,r==="path"),o=JSON.stringify(l);return c.useEffect(()=>{f(JSON.parse(o),{replace:t,state:n,relative:r})},[f,o,r,t,n]),null}function un(e){return ur(e.context)}function wr(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Sr({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){O(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:f,navigator:a,static:i,useTransitions:s,future:{}}),[f,a,i,s]);typeof n=="string"&&(n=G(n));let{pathname:o="/",search:d="",hash:h="",state:m=null,key:R="default",mask:E}=n,v=c.useMemo(()=>{let g=q(o,f);return g==null?null:{location:{pathname:g,search:d,hash:h,state:m,key:R,mask:E},navigationType:r}},[f,o,d,h,m,R,r,E]);return M(v!=null,`<Router basename="${f}"> is not able to match the URL "${o}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:c.createElement(I.Provider,{value:l},c.createElement(re.Provider,{children:t,value:v}))}function ln({children:e,location:t}){return lr(we(e),t)}function we(e,t=[]){let n=[];return c.Children.forEach(e,(r,a)=>{if(!c.isValidElement(r))return;let i=[...t,a];if(r.type===c.Fragment){n.push.apply(n,we(r.props.children,i));return}O(r.type===wr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=we(r.props.children,i)),n.push(s)}),n}var ie="get",ue="application/x-www-form-urlencoded";function de(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Cr(e){return de(e)&&e.tagName.toLowerCase()==="button"}function _r(e){return de(e)&&e.tagName.toLowerCase()==="form"}function Pr(e){return de(e)&&e.tagName.toLowerCase()==="input"}function xr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function br(e,t){return e.button===0&&(!t||t==="_self")&&!xr(e)}function Se(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function Tr(e,t){let n=Se(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var oe=null;function Lr(){if(oe===null)try{new FormData(document.createElement("form"),0),oe=!1}catch{oe=!0}return oe}var Or=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Re(e){return e!=null&&!Or.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ue}"`),null):e}function kr(e,t){let n,r,a,i,s;if(_r(e)){let f=e.getAttribute("action");r=f?q(f,t):null,n=e.getAttribute("method")||ie,a=Re(e.getAttribute("enctype"))||ue,i=new FormData(e)}else if(Cr(e)||Pr(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||f.getAttribute("action");if(r=l?q(l,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||ie,a=Re(e.getAttribute("formenctype"))||Re(f.getAttribute("enctype"))||ue,i=new FormData(f,e),!Lr()){let{name:o,type:d,value:h}=e;if(d==="image"){let m=o?`${o}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else o&&i.append(o,h)}}else{if(de(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ie,r=null,a=ue,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ft(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&q(a.pathname,t)==="/"?a.pathname=`${se(t)}/_root.${r}`:a.pathname=`${se(a.pathname)}.${r}`,a}async function $r(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ar(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Dr(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await $r(i,n);return s.links?s.links():[]}return[]}));return Hr(r.flat(1).filter(Ar).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function We(e,t,n,r,a,i){let s=(l,o)=>n[o]?l.route.id!==n[o].route.id:!0,f=(l,o)=>{var d;return n[o].pathname!==l.pathname||((d=n[o].route.path)==null?void 0:d.endsWith("*"))&&n[o].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,o)=>s(l,o)||f(l,o)):i==="data"?t.filter((l,o)=>{var h;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,o)||f(l,o))return!0;if(l.route.shouldRevalidate){let m=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function Nr(e,t,{includeHydrateFallback:n}={}){return Ir(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function Ir(e){return[...new Set(e)]}function Mr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Hr(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(Mr(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Oe(){let e=c.useContext(V);return Le(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ur(){let e=c.useContext(fe);return Le(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ke=c.createContext(void 0);ke.displayName="FrameworkContext";function he(){let e=c.useContext(ke);return Le(e,"You must render this element inside a <HydratedRouter> element"),e}function Fr(e,t){let n=c.useContext(ke),[r,a]=c.useState(!1),[i,s]=c.useState(!1),{onFocus:f,onBlur:l,onMouseEnter:o,onMouseLeave:d,onTouchStart:h}=t,m=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let v=y=>{y.forEach(_=>{s(_.isIntersecting)})},g=new IntersectionObserver(v,{threshold:.5});return m.current&&g.observe(m.current),()=>{g.disconnect()}}},[e]),c.useEffect(()=>{if(r){let v=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(v)}}},[r]);let R=()=>{a(!0)},E=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,m,{}]:[i,m,{onFocus:ee(f,R),onBlur:ee(l,E),onMouseEnter:ee(o,R),onMouseLeave:ee(d,E),onTouchStart:ee(h,R)}]:[!1,m,{}]}function ee(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function jr({page:e,...t}){let n=Xt(),{nonce:r}=he(),{router:a}=Oe(),i=c.useMemo(()=>Ge(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?(t.nonce==null&&r&&(t={...t,nonce:r}),n?c.createElement(Wr,{page:e,matches:i,...t}):c.createElement(Yr,{page:e,matches:i,...t})):null}function Br(e){let{manifest:t,routeModules:n}=he(),[r,a]=c.useState([]);return c.useEffect(()=>{let i=!1;return Dr(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function Wr({page:e,matches:t,...n}){let r=F(),{future:a}=he(),{basename:i}=Oe(),s=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let f=ft(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,o=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?l=!0:o.push(d.route.id);return l&&o.length>0&&f.searchParams.set("_routes",o.join(",")),[f.pathname+f.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return c.createElement(c.Fragment,null,s.map(f=>c.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...n})))}function Yr({page:e,matches:t,...n}){let r=F(),{future:a,manifest:i,routeModules:s}=he(),{basename:f}=Oe(),{loaderData:l,matches:o}=Ur(),d=c.useMemo(()=>We(e,t,o,i,r,"data"),[e,t,o,i,r]),h=c.useMemo(()=>We(e,t,o,i,r,"assets"),[e,t,o,i,r]),m=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,g=!1;if(t.forEach(_=>{var $;let P=i.routes[_.route.id];!P||!P.hasLoader||(!d.some(k=>k.route.id===_.route.id)&&_.route.id in l&&(($=s[_.route.id])!=null&&$.shouldRevalidate)||P.hasClientLoader?g=!0:v.add(_.route.id))}),v.size===0)return[];let y=ft(e,f,a.v8_trailingSlashAwareDataRequests,"data");return g&&v.size>0&&y.searchParams.set("_routes",t.filter(_=>v.has(_.route.id)).map(_=>_.route.id).join(",")),[y.pathname+y.search]},[f,a.v8_trailingSlashAwareDataRequests,l,r,i,d,t,e,s]),R=c.useMemo(()=>Nr(h,i),[h,i]),E=Br(h);return c.createElement(c.Fragment,null,m.map(v=>c.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),R.map(v=>c.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),E.map(({key:v,link:g})=>c.createElement("link",{key:v,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function qr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var zr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zr&&(window.__reactRouterVersion="7.18.2")}catch{}function sn({basename:e,children:t,useTransitions:n,window:r}){let a=c.useRef();a.current==null&&(a.current=Ct({window:r,v5Compat:!0}));let i=a.current,[s,f]=c.useState({action:i.action,location:i.location}),l=c.useCallback(o=>{n===!1?f(o):c.startTransition(()=>f(o))},[n]);return c.useLayoutEffect(()=>i.listen(l),[i,l]),c.createElement(Sr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}var dt=c.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,mask:f,state:l,target:o,to:d,preventScrollReset:h,viewTransition:m,defaultShouldRevalidate:R,...E},v){let{basename:g,navigator:y,useTransitions:_}=c.useContext(I),P=typeof d=="string"&&Ce.test(d),$=tt(d,g);d=$.to;let k=ar(d,{relative:a}),D=F(),x=null;if(f){let j=ce(f,[],D.mask?D.mask.pathname:"/",!0);g!=="/"&&(j.pathname=j.pathname==="/"?g:U([g,j.pathname])),x=y.createHref(j)}let[W,Y,X]=Fr(r,E),Q=Jr(d,{replace:s,mask:f,state:l,target:o,preventScrollReset:h,relative:a,viewTransition:m,defaultShouldRevalidate:R,useTransitions:_});function pe(j){t&&t(j),j.defaultPrevented||Q(j)}let Z=!($.isExternal||i),z=c.createElement("a",{...E,...X,href:(Z?x:void 0)||$.absoluteURL||k,onClick:Z?pe:t,ref:qr(v,Y),target:o,"data-discover":!P&&n==="render"?"true":void 0});return W&&!P?c.createElement(c.Fragment,null,z,c.createElement(jr,{page:k})):z});dt.displayName="Link";var Kr=c.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:f,children:l,...o},d){let h=ne(s,{relative:o.relative}),m=F(),R=c.useContext(fe),{navigator:E,basename:v}=c.useContext(I),g=R!=null&&tn(h)&&f===!0,y=E.encodeLocation?E.encodeLocation(h).pathname:h.pathname,_=m.pathname,P=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;n||(_=_.toLowerCase(),P=P?P.toLowerCase():null,y=y.toLowerCase()),P&&v&&(P=q(P,v)||P);const $=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let k=_===y||!a&&_.startsWith(y)&&_.charAt($)==="/",D=P!=null&&(P===y||!a&&P.startsWith(y)&&P.charAt(y.length)==="/"),x={isActive:k,isPending:D,isTransitioning:g},W=k?t:void 0,Y;typeof r=="function"?Y=r(x):Y=[r,k?"active":null,D?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let X=typeof i=="function"?i(x):i;return c.createElement(dt,{...o,"aria-current":W,className:Y,ref:d,style:X,to:s,viewTransition:f},typeof l=="function"?l(x):l)});Kr.displayName="NavLink";var Gr=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=ie,action:f,onSubmit:l,relative:o,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:m,...R},E)=>{let{useTransitions:v}=c.useContext(I),g=Zr(),y=en(f,{relative:o}),_=s.toLowerCase()==="get"?"get":"post",P=typeof f=="string"&&Ce.test(f),$=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let D=k.nativeEvent.submitter,x=(D==null?void 0:D.getAttribute("formmethod"))||s,W=()=>g(D||k.currentTarget,{fetcherKey:t,method:x,navigate:n,replace:a,state:i,relative:o,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:m});v&&n!==!1?c.startTransition(()=>W()):W()};return c.createElement("form",{ref:E,method:_,action:y,onSubmit:r?l:$,...R,"data-discover":!P&&e==="render"?"true":void 0})});Gr.displayName="Form";function Vr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ht(e){let t=c.useContext(V);return O(t,Vr(e)),t}function Jr(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,defaultShouldRevalidate:l,useTransitions:o}={}){let d=xe(),h=F(),m=ne(e,{relative:s});return c.useCallback(R=>{if(br(R,t)){R.preventDefault();let E=n!==void 0?n:te(h)===te(m),v=()=>d(e,{replace:E,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,defaultShouldRevalidate:l});o?c.startTransition(()=>v()):v()}},[h,d,m,n,r,a,t,e,i,s,f,l,o])}function cn(e){M(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=c.useRef(Se(e)),n=c.useRef(!1),r=F(),a=c.useMemo(()=>Tr(r.search,n.current?null:t.current),[r.search]),i=xe(),s=c.useCallback((f,l)=>{const o=Se(typeof f=="function"?f(new URLSearchParams(a)):f);n.current=!0,i("?"+o,l)},[i,a]);return[a,s]}var Xr=0,Qr=()=>`__${String(++Xr)}__`;function Zr(){let{router:e}=ht("useSubmit"),{basename:t}=c.useContext(I),n=gr(),r=e.fetch,a=e.navigate;return c.useCallback(async(i,s={})=>{let{action:f,method:l,encType:o,formData:d,body:h}=kr(i,t);if(s.navigate===!1){let m=s.fetcherKey||Qr();await r(m,n,s.action||f,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,flushSync:s.flushSync})}else await a(s.action||f,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function en(e,{relative:t}={}){let{basename:n}=c.useContext(I),r=c.useContext(H);O(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...ne(e||".",{relative:t})},s=F();if(e==null){i.search=s.search;let f=new URLSearchParams(i.search),l=f.getAll("index");if(l.some(d=>d==="")){f.delete("index"),l.filter(h=>h).forEach(h=>f.append("index",h));let d=f.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:U([n,i.pathname])),te(i)}function tn(e,{relative:t}={}){let n=c.useContext(at);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ht("useViewTransitionState"),a=ne(e,{relative:t});if(!n.isTransitioning)return!1;let i=q(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=q(n.nextLocation.pathname,r)||n.nextLocation.pathname;return le(a.pathname,s)!=null||le(a.pathname,i)!=null}var pt=Et();const rn=qe(pt),fn=Ye({__proto__:null,default:rn},[pt]);export{sn as B,dt as L,Kr as N,un as O,wt as R,rn as a,nn as b,pt as c,fn as d,ze as e,Et as f,qe as g,xe as h,ur as i,cn as j,ln as k,wr as l,on as m,c as r,an as u};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="buildr-session" content="__BUILDR_SESSION_TOKEN__" />
|
|
7
|
+
<meta name="buildr-preview" content="__BUILDR_PREVIEW_IDENTITY__" />
|
|
8
|
+
<meta name="buildr-web-profile" content="__BUILDR_WEB_PROFILE__" />
|
|
9
|
+
<title>Buildr Web</title>
|
|
10
|
+
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAusB9Wl2nKAAAAAASUVORK5CYII=" />
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-DTqvE0TF.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/react-9kRp7SbA.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/antd-NAtxFWmu.js">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BqoyfMSY.css">
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<div id="root"></div>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|