@dotobokuri/fleet-console 1.32.0 → 1.33.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.
- package/dist/cli.mjs +25 -18
- package/dist/client/assets/{_baseUniq-BcB5wmG1.js → _baseUniq-DGGrBWAb.js} +1 -1
- package/dist/client/assets/{arc-DdDM-o2K.js → arc-BNCMUJG_.js} +1 -1
- package/dist/client/assets/{architectureDiagram-Q4EWVU46-CIF7NLBh.js → architectureDiagram-Q4EWVU46-C7qQq1FU.js} +1 -1
- package/dist/client/assets/{blockDiagram-DXYQGD6D-uTDIsi9C.js → blockDiagram-DXYQGD6D-Cd8j3SNd.js} +1 -1
- package/dist/client/assets/{c4Diagram-AHTNJAMY-B-L5_peH.js → c4Diagram-AHTNJAMY-fFAORcJP.js} +1 -1
- package/dist/client/assets/channel-BDofRchL.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-R3NuBeMM.js → chunk-4BX2VUAB-peomhKWw.js} +1 -1
- package/dist/client/assets/{chunk-4TB4RGXK-GqEsM9Hl.js → chunk-4TB4RGXK-TEb8s6Dl.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-D4a7-QMt.js → chunk-55IACEB6-11aKxGwZ.js} +1 -1
- package/dist/client/assets/{chunk-EDXVE4YY-CFnwIApt.js → chunk-EDXVE4YY-CPeOY-w0.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-Bx6k_N10.js → chunk-FMBD7UC4-DpbKBDUG.js} +1 -1
- package/dist/client/assets/{chunk-OYMX7WX6-2QjCvEfI.js → chunk-OYMX7WX6-DQiIenR8.js} +1 -1
- package/dist/client/assets/{chunk-QZHKN3VN-SRIQm3h2.js → chunk-QZHKN3VN-ByEBhAst.js} +1 -1
- package/dist/client/assets/{chunk-YZCP3GAM-D3j-Ehhn.js → chunk-YZCP3GAM-Ca8uNdzu.js} +1 -1
- package/dist/client/assets/classDiagram-6PBFFD2Q-BrRbVOSf.js +1 -0
- package/dist/client/assets/classDiagram-v2-HSJHXN6E-BrRbVOSf.js +1 -0
- package/dist/client/assets/clone-CEWs7Jhj.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-BDRpmFTS.js → cose-bilkent-S5V4N54A-B9r4jGi9.js} +1 -1
- package/dist/client/assets/{dagre-KV5264BT-CNnBa0oO.js → dagre-KV5264BT-Csnn3Aws.js} +1 -1
- package/dist/client/assets/{diagram-5BDNPKRD-DmLR5VLJ.js → diagram-5BDNPKRD-xgvBmNve.js} +1 -1
- package/dist/client/assets/{diagram-G4DWMVQ6-D9-S4gAC.js → diagram-G4DWMVQ6-eDo2cgdI.js} +1 -1
- package/dist/client/assets/{diagram-MMDJMWI5-BgkkFSRH.js → diagram-MMDJMWI5-C3GDlrcv.js} +1 -1
- package/dist/client/assets/{diagram-TYMM5635-CRwM_tDY.js → diagram-TYMM5635-BDyVzMHP.js} +1 -1
- package/dist/client/assets/{erDiagram-SMLLAGMA-DU-pow1m.js → erDiagram-SMLLAGMA-YegVvYsw.js} +1 -1
- package/dist/client/assets/{flowDiagram-DWJPFMVM-B91EFbjc.js → flowDiagram-DWJPFMVM-zcVenDmh.js} +1 -1
- package/dist/client/assets/{ganttDiagram-T4ZO3ILL-B-gUVWSs.js → ganttDiagram-T4ZO3ILL-CkMabQtg.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-UUTBAWPF-TBkviHit.js → gitGraphDiagram-UUTBAWPF-CuD1D5LQ.js} +1 -1
- package/dist/client/assets/{graph-Da2r3MMt.js → graph-DvVj819O.js} +1 -1
- package/dist/client/assets/index-DeA0aGZd.css +1 -0
- package/dist/client/assets/index-Dk_jqw8o.js +451 -0
- package/dist/client/assets/{infoDiagram-42DDH7IO-CAdIgU9C.js → infoDiagram-42DDH7IO-DPoWXM0E.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-UXIWVN3A-DKMRplux.js → ishikawaDiagram-UXIWVN3A-BBoXoRxo.js} +1 -1
- package/dist/client/assets/{journeyDiagram-VCZTEJTY-CPR33z10.js → journeyDiagram-VCZTEJTY-B-IoiUw0.js} +1 -1
- package/dist/client/assets/{kanban-definition-6JOO6SKY-CDsviLfH.js → kanban-definition-6JOO6SKY-BcjjEa8G.js} +1 -1
- package/dist/client/assets/{layout-CkN1-8C9.js → layout-BjaFRuOv.js} +1 -1
- package/dist/client/assets/{linear-BxLFCpuS.js → linear-DLVG-hZ_.js} +1 -1
- package/dist/client/assets/{mermaid.core-DA-WJY50.js → mermaid.core-6fYEjApv.js} +4 -4
- package/dist/client/assets/{min-BsISxNaF.js → min-BfgBrJLR.js} +1 -1
- package/dist/client/assets/{mindmap-definition-QFDTVHPH-B-IUTdhh.js → mindmap-definition-QFDTVHPH-BjelYLWH.js} +1 -1
- package/dist/client/assets/{pieDiagram-DEJITSTG-hwSroJDA.js → pieDiagram-DEJITSTG-BznY8oUt.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-34T5L4WZ-DDt9AzF7.js → quadrantDiagram-34T5L4WZ-jEnKUROj.js} +1 -1
- package/dist/client/assets/{requirementDiagram-MS252O5E-C5Xj9gqW.js → requirementDiagram-MS252O5E-BuQqQSjX.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-XADWPNL6-ZwBDrthi.js → sankeyDiagram-XADWPNL6-B9g8trZW.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-FGHM5R23-DmyMDdrv.js → sequenceDiagram-FGHM5R23-V6Zwufo5.js} +1 -1
- package/dist/client/assets/{stateDiagram-FHFEXIEX-VD5zvoai.js → stateDiagram-FHFEXIEX-8E2cIHyh.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-0HROefWC.js +1 -0
- package/dist/client/assets/{timeline-definition-GMOUNBTQ-DP8udMAZ.js → timeline-definition-GMOUNBTQ-DpiM_Ig9.js} +1 -1
- package/dist/client/assets/{vennDiagram-DHZGUBPP-CiBN7TbR.js → vennDiagram-DHZGUBPP-D975VPJg.js} +1 -1
- package/dist/client/assets/{wardley-RL74JXVD-BtqeTzop.js → wardley-RL74JXVD-BiM6uI8Z.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-NUSXRM2D-DaRdj2RP.js → wardleyDiagram-NUSXRM2D-IoXxaljw.js} +1 -1
- package/dist/client/assets/{xychartDiagram-5P7HB3ND-jlgNCyFB.js → xychartDiagram-5P7HB3ND-BqNE-iqW.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/fleet-plugins/terminal/routes.mjs +120 -136
- package/package.json +1 -1
- package/dist/client/assets/channel-BamKwHPs.js +0 -1
- package/dist/client/assets/classDiagram-6PBFFD2Q-sEh9Glhk.js +0 -1
- package/dist/client/assets/classDiagram-v2-HSJHXN6E-sEh9Glhk.js +0 -1
- package/dist/client/assets/clone-iMU-qXwc.js +0 -1
- package/dist/client/assets/index-5-y-ZMI6.js +0 -451
- package/dist/client/assets/index-BBOlVlPk.css +0 -1
- package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-CFTLlJ0p.js +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1679,55 +1679,55 @@ authority: Admiral of the Navy (\uB300\uC6D0\uC218)
|
|
|
1679
1679
|
|
|
1680
1680
|
# Fleet Wiki Workspace Doctrine
|
|
1681
1681
|
|
|
1682
|
-
This directory is the **Fleet Wiki** \u2014 a workspace-local markdown knowledge base. All entries here are governed by a deterministic patch queue with mandatory
|
|
1682
|
+
This directory is the **Fleet Wiki** \u2014 a workspace-local markdown knowledge base. All entries here are governed by a deterministic patch queue with mandatory host approval. **Direct filesystem edits are forbidden for any agent or carrier.**
|
|
1683
1683
|
|
|
1684
1684
|
The active entry schema is defined in \`schema/wiki-schema.md\` and may be revised by the Admiral of the Navy (\uB300\uC6D0\uC218) at any time. Always consult the current schema rather than assuming a fixed format.
|
|
1685
1685
|
|
|
1686
1686
|
## 1. Hard Boundaries (CRITICAL)
|
|
1687
1687
|
|
|
1688
|
-
The following prohibitions are **absolute** for every carrier
|
|
1688
|
+
The following prohibitions are **absolute** for every carrier and any sub-agent operating in this directory:
|
|
1689
1689
|
|
|
1690
|
-
- **NEVER** edit any file under \`wiki/\` directly via filesystem tools (Read/Write/Edit). Entry creation and new staged revisions must go through \`wiki_ingest\`; already-pending queue proposal revisions may use \`wiki_patch_edit\`.
|
|
1690
|
+
- **NEVER** edit any file under \`wiki/\` directly via filesystem tools (Read/Write/Edit). Entry creation and new staged revisions must go through host-only \`wiki_ingest\`; already-pending queue proposal revisions may use host-only \`wiki_patch_edit\`.
|
|
1691
1691
|
- **NEVER** edit \`index.json\`, \`wiki/index.md\`, or \`log.md\` by hand. These files are **system-managed** and rebuilt automatically when patches are approved.
|
|
1692
1692
|
- **NEVER** edit files under \`raw/\` after creation \u2014 raw sources are immutable evidence and \`wiki_ingest\` writes them automatically.
|
|
1693
1693
|
- **NEVER** touch \`queue/\`, \`archive/\`, or \`conflicts/\` \u2014 these are workflow-internal stores managed by the wiki tooling.
|
|
1694
|
-
-
|
|
1694
|
+
- **NEVER** invoke mutation, staging, lint, schema, or approval Wiki tools from a carrier executor. Those tools are **host-only**; runtime ACLs are authoritative.
|
|
1695
|
+
- **NEVER** approve or reject patches from a carrier executor. Approval authority is **host-only** through \`wiki_patch_queue\`.
|
|
1695
1696
|
|
|
1696
1697
|
## 2. Roles and Gates
|
|
1697
1698
|
|
|
1698
1699
|
| Role | Capability | Gate |
|
|
1699
1700
|
|------|-----------|------|
|
|
1700
|
-
| **Carriers**
|
|
1701
|
-
| **
|
|
1701
|
+
| **Carriers** | Read-only consult: \`wiki_orient\` \xB7 \`wiki_briefing\` \xB7 \`wiki_read\` \xB7 \`wiki_resolve\` | Cannot mutate, stage, lint, inspect/create schema, or approve patches |
|
|
1702
|
+
| **Host (Admiral PI)** | Read, compose, stage (\`wiki_ingest\`), revise pending (\`wiki_patch_edit\`), lint (\`wiki_drydock\`), query (\`wiki_query\`), compile (\`wiki_compile_source\`), schema (\`wiki_schema_list\` / \`wiki_schema_read\` / \`wiki_schema_create\`), approve/reject (\`wiki_patch_queue\`) | Sole mutation, schema, and approval authority |
|
|
1702
1703
|
|
|
1703
|
-
|
|
1704
|
+
The host performs every Fleet Wiki operation directly. Carriers may consult read-only tools for context but must not stage entries, revise patches, lint, create schema templates, or approve queue items.
|
|
1704
1705
|
|
|
1705
1706
|
## 3. Standard Workflow
|
|
1706
1707
|
|
|
1707
1708
|
### 3.1 Read / Lookup
|
|
1708
1709
|
|
|
1709
|
-
\`wiki_orient\` \u2192 \`wiki_briefing\` \u2192 \`wiki_read\` \u2192 \`wiki_resolve\`. Read-only; no approval needed.
|
|
1710
|
+
\`wiki_orient\` \u2192 \`wiki_briefing\` \u2192 \`wiki_read\` \u2192 \`wiki_resolve\`. Read-only; globally shared with carriers; no approval needed.
|
|
1710
1711
|
|
|
1711
|
-
### 3.2
|
|
1712
|
+
### 3.2 Stage a New Entry (Host)
|
|
1712
1713
|
|
|
1713
1714
|
1. **Orient** \u2014 \`wiki_orient\` to confirm workspace state and locate the active schema.
|
|
1714
1715
|
2. **Compose** \u2014 Draft the entry body per the active workspace schema (see \`schema/wiki-schema.md\`). Synthesize raw sources, never copy verbatim.
|
|
1715
1716
|
3. **Ingest** \u2014 \`wiki_ingest\` with \`id\`, \`title\`, \`tags\`, \`body\`, and \`source\` (raw evidence). System auto-writes raw, stages a patch under \`queue/\`, and returns a \`patch_id\`.
|
|
1716
1717
|
4. **Lint** \u2014 \`wiki_drydock\` to verify schema compliance and link integrity.
|
|
1717
|
-
5. **
|
|
1718
|
-
6. **Admiral approves** \u2014 \`wiki_patch_queue approve\` writes the entry to \`wiki/\`, updates indexes, and appends to \`log.md\`. No mutation is performed by hand.
|
|
1718
|
+
5. **Approve** \u2014 \`wiki_patch_queue approve\` writes the entry to \`wiki/\`, updates indexes, and appends to \`log.md\`. No filesystem mutation is performed by hand.
|
|
1719
1719
|
|
|
1720
|
-
### 3.3 Update an Existing Entry
|
|
1720
|
+
### 3.3 Update an Existing Entry (Host)
|
|
1721
1721
|
|
|
1722
1722
|
Same as 3.2 but \`wiki_ingest\` runs in \`update\` mode with \`base_version\` for stale-base detection.
|
|
1723
1723
|
|
|
1724
|
-
### 3.4 Revise an Already-Pending Patch
|
|
1724
|
+
### 3.4 Revise an Already-Pending Patch (Host)
|
|
1725
1725
|
|
|
1726
|
-
Use \`wiki_patch_edit\` with a pending \`patch_id\` for small exact body replacements or metadata corrections before
|
|
1726
|
+
Use \`wiki_patch_edit\` with a pending \`patch_id\` for small exact body replacements or metadata corrections before approval. Do not create another ingest patch for a one-line correction to an existing pending proposal.
|
|
1727
1727
|
|
|
1728
1728
|
## 4. Schema Reference
|
|
1729
1729
|
|
|
1730
|
-
The authoritative source is **\`schema/wiki-schema.md\`**. The Admiral of the Navy (\uB300\uC6D0\uC218) may revise the schema at any time, and \`wiki_drydock\` enforces the current version.
|
|
1730
|
+
The authoritative source is **\`schema/wiki-schema.md\`**. The Admiral of the Navy (\uB300\uC6D0\uC218) may revise the schema at any time through host-only schema tools, and \`wiki_drydock\` enforces the current version.
|
|
1731
1731
|
|
|
1732
1732
|
\`schema/AGENTS.md\` defines the maintainer role for the schema directory itself.
|
|
1733
1733
|
|
|
@@ -1742,7 +1742,7 @@ Always read \`schema/wiki-schema.md\` directly before composing or revising entr
|
|
|
1742
1742
|
## 6. Escalation
|
|
1743
1743
|
|
|
1744
1744
|
- Schema disputes \u2192 Admiral.
|
|
1745
|
-
- Approval
|
|
1745
|
+
- Approval or rejection decisions \u2192 host via \`wiki_patch_queue\`.
|
|
1746
1746
|
- Tool failures / stale state \u2192 re-run \`wiki_drydock\`, then escalate to Admiral if unresolved.
|
|
1747
1747
|
`;
|
|
1748
1748
|
async function ensureWorkspaceSchema(paths) {
|
|
@@ -1911,9 +1911,10 @@ async function writeDefaultFileIfMissing(filePath, content) {
|
|
|
1911
1911
|
try {
|
|
1912
1912
|
await writeFile(filePath, content, { encoding: "utf8", flag: "wx" });
|
|
1913
1913
|
} catch (error51) {
|
|
1914
|
-
if (
|
|
1915
|
-
|
|
1914
|
+
if (isAlreadyExistsError(error51) || isEisdirError(error51) || isEloopError(error51)) {
|
|
1915
|
+
return;
|
|
1916
1916
|
}
|
|
1917
|
+
throw error51;
|
|
1917
1918
|
}
|
|
1918
1919
|
}
|
|
1919
1920
|
async function tryReadSchemaFile(paths, filePath) {
|
|
@@ -2023,6 +2024,12 @@ function parseRequiredSections(content) {
|
|
|
2023
2024
|
}
|
|
2024
2025
|
return sections;
|
|
2025
2026
|
}
|
|
2027
|
+
function isEloopError(error51) {
|
|
2028
|
+
return typeof error51 === "object" && error51 !== null && "code" in error51 && error51.code === "ELOOP";
|
|
2029
|
+
}
|
|
2030
|
+
function isEisdirError(error51) {
|
|
2031
|
+
return typeof error51 === "object" && error51 !== null && "code" in error51 && error51.code === "EISDIR";
|
|
2032
|
+
}
|
|
2026
2033
|
function isAlreadyExistsError(error51) {
|
|
2027
2034
|
return typeof error51 === "object" && error51 !== null && "code" in error51 && error51.code === "EEXIST";
|
|
2028
2035
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aW as L,bs as ln,aG as A,aU as P,aF as W,bt as gn,bu as dn,bv as hn,bw as z,bx as pn,bn as An,by as m,aX as N,b0 as U,b3 as T,bz as _n,a_ as on,bA as wn,bq as On,aH as V,bo as vn,bB as I}from"./mermaid.core-
|
|
1
|
+
import{aW as L,bs as ln,aG as A,aU as P,aF as W,bt as gn,bu as dn,bv as hn,bw as z,bx as pn,bn as An,by as m,aX as N,b0 as U,b3 as T,bz as _n,a_ as on,bA as wn,bq as On,aH as V,bo as vn,bB as I}from"./mermaid.core-6fYEjApv.js";var Pn="[object Symbol]";function x(n){return typeof n=="symbol"||L(n)&&ln(n)==Pn}function yn(n,r){for(var e=-1,i=n==null?0:n.length,f=Array(i);++e<i;)f[e]=r(n[e],e,n);return f}var B=P?P.prototype:void 0,H=B?B.toString:void 0;function k(n){if(typeof n=="string")return n;if(A(n))return yn(n,k)+"";if(x(n))return H?H.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function bn(){}function En(n,r){for(var e=-1,i=n==null?0:n.length;++e<i&&r(n[e],e,n)!==!1;);return n}function cn(n,r,e,i){for(var f=n.length,t=e+-1;++t<f;)if(r(n[t],t,n))return t;return-1}function Tn(n){return n!==n}function Rn(n,r,e){for(var i=e-1,f=n.length;++i<f;)if(n[i]===r)return i;return-1}function In(n,r,e){return r===r?Rn(n,r,e):cn(n,Tn,e)}function Sn(n,r){var e=n==null?0:n.length;return!!e&&In(n,r,0)>-1}function M(n){return W(n)?gn(n):dn(n)}var Ln=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xn=/^\w*$/;function $(n,r){if(A(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||x(n)?!0:xn.test(n)||!Ln.test(n)||r!=null&&n in Object(r)}var Mn=500;function $n(n){var r=hn(n,function(i){return e.size===Mn&&e.clear(),i}),e=r.cache;return r}var Cn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fn=/\\(\\)?/g,Gn=$n(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(Cn,function(e,i,f,t){r.push(f?t.replace(Fn,"$1"):i||e)}),r});function Dn(n){return n==null?"":k(n)}function j(n,r){return A(n)?n:$(n,r)?[n]:Gn(Dn(n))}function R(n){if(typeof n=="string"||x(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function nn(n,r){r=j(r,n);for(var e=0,i=r.length;n!=null&&e<i;)n=n[R(r[e++])];return e&&e==i?n:void 0}function mn(n,r,e){var i=n==null?void 0:nn(n,r);return i===void 0?e:i}function rn(n,r){for(var e=-1,i=r.length,f=n.length;++e<i;)n[f+e]=r[e];return n}var K=P?P.isConcatSpreadable:void 0;function Nn(n){return A(n)||z(n)||!!(K&&n&&n[K])}function Kr(n,r,e,i,f){var t=-1,s=n.length;for(e||(e=Nn),f||(f=[]);++t<s;){var u=n[t];e(u)?rn(f,u):i||(f[f.length]=u)}return f}function Un(n,r,e,i){var f=-1,t=n==null?0:n.length;for(i&&t&&(e=n[++f]);++f<t;)e=r(e,n[f],f,n);return e}function en(n,r){for(var e=-1,i=n==null?0:n.length,f=0,t=[];++e<i;){var s=n[e];r(s,e,n)&&(t[f++]=s)}return t}function Bn(){return[]}var Hn=Object.prototype,Kn=Hn.propertyIsEnumerable,q=Object.getOwnPropertySymbols,qn=q?function(n){return n==null?[]:(n=Object(n),en(q(n),function(r){return Kn.call(n,r)}))}:Bn;function Zn(n,r,e){var i=r(n);return A(n)?i:rn(i,e(n))}function Z(n){return Zn(n,M,qn)}var Xn="__lodash_hash_undefined__";function Yn(n){return this.__data__.set(n,Xn),this}function Jn(n){return this.__data__.has(n)}function y(n){var r=-1,e=n==null?0:n.length;for(this.__data__=new pn;++r<e;)this.add(n[r])}y.prototype.add=y.prototype.push=Yn;y.prototype.has=Jn;function Qn(n,r){for(var e=-1,i=n==null?0:n.length;++e<i;)if(r(n[e],e,n))return!0;return!1}function tn(n,r){return n.has(r)}var Wn=1,zn=2;function fn(n,r,e,i,f,t){var s=e&Wn,u=n.length,a=r.length;if(u!=a&&!(s&&a>u))return!1;var h=t.get(n),g=t.get(r);if(h&&g)return h==r&&g==n;var l=-1,d=!0,o=e&zn?new y:void 0;for(t.set(n,r),t.set(r,n);++l<u;){var p=n[l],_=r[l];if(i)var w=s?i(_,p,l,r,n,t):i(p,_,l,n,r,t);if(w!==void 0){if(w)continue;d=!1;break}if(o){if(!Qn(r,function(O,v){if(!tn(o,v)&&(p===O||f(p,O,e,i,t)))return o.push(v)})){d=!1;break}}else if(!(p===_||f(p,_,e,i,t))){d=!1;break}}return t.delete(n),t.delete(r),d}function Vn(n){var r=-1,e=Array(n.size);return n.forEach(function(i,f){e[++r]=[f,i]}),e}function C(n){var r=-1,e=Array(n.size);return n.forEach(function(i){e[++r]=i}),e}var kn=1,jn=2,nr="[object Boolean]",rr="[object Date]",er="[object Error]",ir="[object Map]",tr="[object Number]",fr="[object RegExp]",sr="[object Set]",ur="[object String]",ar="[object Symbol]",lr="[object ArrayBuffer]",gr="[object DataView]",X=P?P.prototype:void 0,S=X?X.valueOf:void 0;function dr(n,r,e,i,f,t,s){switch(e){case gr:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case lr:return!(n.byteLength!=r.byteLength||!t(new m(n),new m(r)));case nr:case rr:case tr:return An(+n,+r);case er:return n.name==r.name&&n.message==r.message;case fr:case ur:return n==r+"";case ir:var u=Vn;case sr:var a=i&kn;if(u||(u=C),n.size!=r.size&&!a)return!1;var h=s.get(n);if(h)return h==r;i|=jn,s.set(n,r);var g=fn(u(n),u(r),i,f,t,s);return s.delete(n),g;case ar:if(S)return S.call(n)==S.call(r)}return!1}var hr=1,pr=Object.prototype,Ar=pr.hasOwnProperty;function _r(n,r,e,i,f,t){var s=e&hr,u=Z(n),a=u.length,h=Z(r),g=h.length;if(a!=g&&!s)return!1;for(var l=a;l--;){var d=u[l];if(!(s?d in r:Ar.call(r,d)))return!1}var o=t.get(n),p=t.get(r);if(o&&p)return o==r&&p==n;var _=!0;t.set(n,r),t.set(r,n);for(var w=s;++l<a;){d=u[l];var O=n[d],v=r[d];if(i)var D=s?i(v,O,d,r,n,t):i(O,v,d,n,r,t);if(!(D===void 0?O===v||f(O,v,e,i,t):D)){_=!1;break}w||(w=d=="constructor")}if(_&&!w){var b=n.constructor,E=r.constructor;b!=E&&"constructor"in n&&"constructor"in r&&!(typeof b=="function"&&b instanceof b&&typeof E=="function"&&E instanceof E)&&(_=!1)}return t.delete(n),t.delete(r),_}var or=1,Y="[object Arguments]",J="[object Array]",c="[object Object]",wr=Object.prototype,Q=wr.hasOwnProperty;function Or(n,r,e,i,f,t){var s=A(n),u=A(r),a=s?J:N(n),h=u?J:N(r);a=a==Y?c:a,h=h==Y?c:h;var g=a==c,l=h==c,d=a==h;if(d&&U(n)){if(!U(r))return!1;s=!0,g=!1}if(d&&!g)return t||(t=new T),s||_n(n)?fn(n,r,e,i,f,t):dr(n,r,a,e,i,f,t);if(!(e&or)){var o=g&&Q.call(n,"__wrapped__"),p=l&&Q.call(r,"__wrapped__");if(o||p){var _=o?n.value():n,w=p?r.value():r;return t||(t=new T),f(_,w,e,i,t)}}return d?(t||(t=new T),_r(n,r,e,i,f,t)):!1}function F(n,r,e,i,f){return n===r?!0:n==null||r==null||!L(n)&&!L(r)?n!==n&&r!==r:Or(n,r,e,i,F,f)}var vr=1,Pr=2;function yr(n,r,e,i){var f=e.length,t=f;if(n==null)return!t;for(n=Object(n);f--;){var s=e[f];if(s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++f<t;){s=e[f];var u=s[0],a=n[u],h=s[1];if(s[2]){if(a===void 0&&!(u in n))return!1}else{var g=new T,l;if(!(l===void 0?F(h,a,vr|Pr,i,g):l))return!1}}return!0}function sn(n){return n===n&&!on(n)}function br(n){for(var r=M(n),e=r.length;e--;){var i=r[e],f=n[i];r[e]=[i,f,sn(f)]}return r}function un(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function Er(n){var r=br(n);return r.length==1&&r[0][2]?un(r[0][0],r[0][1]):function(e){return e===n||yr(e,n,r)}}function cr(n,r){return n!=null&&r in Object(n)}function Tr(n,r,e){r=j(r,n);for(var i=-1,f=r.length,t=!1;++i<f;){var s=R(r[i]);if(!(t=n!=null&&e(n,s)))break;n=n[s]}return t||++i!=f?t:(f=n==null?0:n.length,!!f&&wn(f)&&On(s,f)&&(A(n)||z(n)))}function Rr(n,r){return n!=null&&Tr(n,r,cr)}var Ir=1,Sr=2;function Lr(n,r){return $(n)&&sn(r)?un(R(n),r):function(e){var i=mn(e,n);return i===void 0&&i===r?Rr(e,n):F(r,i,Ir|Sr)}}function xr(n){return function(r){return r?.[n]}}function Mr(n){return function(r){return nn(r,n)}}function $r(n){return $(n)?xr(R(n)):Mr(n)}function an(n){return typeof n=="function"?n:n==null?V:typeof n=="object"?A(n)?Lr(n[0],n[1]):Er(n):$r(n)}function Cr(n,r){return n&&vn(n,r,M)}function Fr(n,r){return function(e,i){if(e==null)return e;if(!W(e))return n(e,i);for(var f=e.length,t=-1,s=Object(e);++t<f&&i(s[t],t,s)!==!1;);return e}}var G=Fr(Cr);function Gr(n){return typeof n=="function"?n:V}function qr(n,r){var e=A(n)?En:G;return e(n,Gr(r))}function Dr(n,r){var e=[];return G(n,function(i,f,t){r(i,f,t)&&e.push(i)}),e}function Zr(n,r){var e=A(n)?en:Dr;return e(n,an(r))}function mr(n,r,e,i,f){return f(n,function(t,s,u){e=i?(i=!1,t):r(e,t,s,u)}),e}function Xr(n,r,e){var i=A(n)?Un:mr,f=arguments.length<3;return i(n,an(r),e,f,G)}var Nr=1/0,Ur=I&&1/C(new I([,-0]))[1]==Nr?function(n){return new I(n)}:bn,Br=200;function Yr(n,r,e){var i=-1,f=Sn,t=n.length,s=!0,u=[],a=u;if(t>=Br){var h=r?null:Ur(n);if(h)return C(h);s=!1,f=tn,a=new y}else a=r?[]:u;n:for(;++i<t;){var g=n[i],l=r?r(g):g;if(g=g!==0?g:0,s&&l===l){for(var d=a.length;d--;)if(a[d]===l)continue n;r&&a.push(l),u.push(g)}else f(a,l,e)||(a!==u&&a.push(l),u.push(g))}return u}export{G as a,Kr as b,an as c,yn as d,rn as e,Zn as f,qn as g,En as h,x as i,Z as j,M as k,Yr as l,Zr as m,qr as n,cn as o,Gr as p,Cr as q,Xr as r,Bn as s,Tr as t,j as u,R as v,nn as w,Rr as x,Dn as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as ln,a0 as an,a1 as G,a2 as q,a3 as z,a4 as un,a5 as y,a6 as tn,a7 as K,a8 as _,a9 as rn,aa as o,ab as on,ac as sn,ad as fn}from"./mermaid.core-
|
|
1
|
+
import{$ as ln,a0 as an,a1 as G,a2 as q,a3 as z,a4 as un,a5 as y,a6 as tn,a7 as K,a8 as _,a9 as rn,aa as o,ab as on,ac as sn,ad as fn}from"./mermaid.core-6fYEjApv.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,I,D,v,A,B,a){var O=I-l,i=D-h,n=B-v,d=a-A,u=d*O-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*O,h+u*i]}function V(l,h,I,D,v,A,B){var a=l-I,O=h-D,i=(B?A:-A)/K(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,C=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,S=(g<0?-1:1)*K(on(0,T*T*R-P*P)),$=(P*g-m*S)/R,j=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=$-C,e=j-t,r=w-C,F=p-t;return x*x+e*e>r*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,C=rn(c-f),t=c>f;if(a||(a=n=O()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(C<an)if(E=pn(H,J,W,X,Q,U,M,N)){var Y=H-E[0],Z=J-E[1],b=Q-E[0],k=U-E[1],nn=1/q(fn((Y*b+Z*k)/(K(Y*Y+Z*Z)*K(b*b+k*k)))/2),en=K(E[0]*E[0]+E[1]*E[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}S>y?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(H,J),a.arc(0,0,s,m,g,!t)):a.moveTo(H,J),!(u>y)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[G(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:z(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:z(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:z(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:z(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:z(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:z(+n),i):A},i.padAngle=function(n){return arguments.length?(B=typeof n=="function"?n:z(+n),i):B},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|