@rashidee/co2 1.3.20 → 1.3.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/.co2-dat/app.db +0 -0
  2. package/dist/.co2-dat/app.db-shm +0 -0
  3. package/dist/.co2-dat/app.db-wal +0 -0
  4. package/dist/index.js +11382 -11057
  5. package/package.json +1 -1
  6. package/plugin/.claude-plugin/marketplace.json +36 -36
  7. package/plugin/.claude-plugin/plugin.json +22 -22
  8. package/plugin/skills/conductor-defect/SKILL.md +10 -3
  9. package/static/assets/{abnfDiagram-VRR7QNED-cQAiKjYG.js → abnfDiagram-VRR7QNED-B_fP8Vz_.js} +1 -1
  10. package/static/assets/{arc-C4ZlEQ3S.js → arc-jQ2jhD3o.js} +1 -1
  11. package/static/assets/{architectureDiagram-ZJ3FMSHR-C_31NGnA.js → architectureDiagram-ZJ3FMSHR-CEunclu9.js} +1 -1
  12. package/static/assets/{blockDiagram-677ZJIJ3-DDQQ2PAJ.js → blockDiagram-677ZJIJ3-DpbPXGGb.js} +1 -1
  13. package/static/assets/{c4Diagram-LMCZKHZV-BPbCZxQJ.js → c4Diagram-LMCZKHZV-BMJArETU.js} +1 -1
  14. package/static/assets/channel-D07NVaUc.js +1 -0
  15. package/static/assets/{chunk-2Q5K7J3B-B3LoONkc.js → chunk-2Q5K7J3B-DWwnQ9gu.js} +1 -1
  16. package/static/assets/{chunk-32BRIVSS-Buim75a9.js → chunk-32BRIVSS-mIi65b4i.js} +1 -1
  17. package/static/assets/{chunk-5VM5RSS4-BjHqxxbw.js → chunk-5VM5RSS4-BDyMPvwt.js} +1 -1
  18. package/static/assets/{chunk-EX3LRPZG-Dn0_qUTW.js → chunk-EX3LRPZG-Cfspbnh5.js} +1 -1
  19. package/static/assets/{chunk-JWPE2WC7-DpYEF0BV.js → chunk-JWPE2WC7-277KBuwS.js} +1 -1
  20. package/static/assets/{chunk-MOJQB5TN-CbNDWijQ.js → chunk-MOJQB5TN-ctV9LaAX.js} +1 -1
  21. package/static/assets/{chunk-RYQCIY6F-DOhXYkGG.js → chunk-RYQCIY6F-CK9NdxUZ.js} +1 -1
  22. package/static/assets/{chunk-V7JOEXUC-CfASUuSJ.js → chunk-V7JOEXUC-CurUrryl.js} +1 -1
  23. package/static/assets/{chunk-VR4S4FIN-vgVNnFtp.js → chunk-VR4S4FIN-C6HOhkwt.js} +1 -1
  24. package/static/assets/{chunk-XXDRQBXY-CVjoYUTB.js → chunk-XXDRQBXY-C09MJsiF.js} +1 -1
  25. package/static/assets/classDiagram-OUVF2IWQ-CVG8E0VE.js +1 -0
  26. package/static/assets/classDiagram-v2-EOCWNBFH-CVG8E0VE.js +1 -0
  27. package/static/assets/{cose-bilkent-JH36ORCC-EqjuuBpY.js → cose-bilkent-JH36ORCC-ET_pJkh9.js} +1 -1
  28. package/static/assets/{cynefin-VYW2F7L2-DioyO_Cm.js → cynefin-VYW2F7L2-B6Oy4mbg.js} +1 -1
  29. package/static/assets/{cynefinDiagram-TSTJHNR4-CuPa5A8w.js → cynefinDiagram-TSTJHNR4-Br7gbIt6.js} +1 -1
  30. package/static/assets/{dagre-VKFMJZFB-MIf1Dtbk.js → dagre-VKFMJZFB-CGRMVLrv.js} +1 -1
  31. package/static/assets/{diagram-FQU43EPY-5OBJqg6R.js → diagram-FQU43EPY-Dasgaqiu.js} +1 -1
  32. package/static/assets/{diagram-G47NLZAW-B2ZGPKp3.js → diagram-G47NLZAW-DZqXpbK0.js} +1 -1
  33. package/static/assets/{diagram-NH7WQ7WH-B5YEN-B-.js → diagram-NH7WQ7WH-Cjp8mQVX.js} +1 -1
  34. package/static/assets/{diagram-OA4YK3LP-BXg_CQ2m.js → diagram-OA4YK3LP-BHpTOief.js} +1 -1
  35. package/static/assets/{diagram-WEI45ONY-DVbqehF6.js → diagram-WEI45ONY-BdjsSjwC.js} +1 -1
  36. package/static/assets/{ebnfDiagram-CCIWWBDH-hmnXWJuZ.js → ebnfDiagram-CCIWWBDH-D3GJit-t.js} +1 -1
  37. package/static/assets/{erDiagram-Q63AITRT-CLYATrvi.js → erDiagram-Q63AITRT-CbreGRUM.js} +1 -1
  38. package/static/assets/{flowDiagram-23GEKE2U-cs1YvuVH.js → flowDiagram-23GEKE2U-Bov8ggVs.js} +1 -1
  39. package/static/assets/{ganttDiagram-NO4QXBWP-CH5rfioY.js → ganttDiagram-NO4QXBWP-DI2TRBdA.js} +1 -1
  40. package/static/assets/{gitGraphDiagram-IHSO6WYX-DjAOB5L7.js → gitGraphDiagram-IHSO6WYX-CB0I9Jzz.js} +1 -1
  41. package/static/assets/{index-B4Y8oBUt.js → index-DHqZVy2E.js} +4 -4
  42. package/static/assets/{infoDiagram-FWYZ7A6U-De2-PVxo.js → infoDiagram-FWYZ7A6U-DrF8yTwW.js} +1 -1
  43. package/static/assets/{ishikawaDiagram-FXEZZL3T-CDikxFR6.js → ishikawaDiagram-FXEZZL3T-DUB8-IzB.js} +1 -1
  44. package/static/assets/{journeyDiagram-5HDEW3XC-Bo6isp1w.js → journeyDiagram-5HDEW3XC-BRfaIEic.js} +1 -1
  45. package/static/assets/{kanban-definition-HUTT4EX6-jM1azdC7.js → kanban-definition-HUTT4EX6-BSSDB9_O.js} +1 -1
  46. package/static/assets/{linear-CUk0_yzf.js → linear-oOGNCaPt.js} +1 -1
  47. package/static/assets/{mindmap-definition-LN4V7U3C-l-cgg6PS.js → mindmap-definition-LN4V7U3C-D7f8ON4e.js} +1 -1
  48. package/static/assets/{pegDiagram-2B236MQR-B-8nGU3G.js → pegDiagram-2B236MQR-BWLmrzb8.js} +1 -1
  49. package/static/assets/{pieDiagram-ENE6RG2P-Di1V86Ag.js → pieDiagram-ENE6RG2P-DcXwgn9I.js} +1 -1
  50. package/static/assets/{quadrantDiagram-ABIIQ3AL-BknVxapP.js → quadrantDiagram-ABIIQ3AL-BzeoX11K.js} +1 -1
  51. package/static/assets/{railroadDiagram-RFXS5EU6-D7Vohrlg.js → railroadDiagram-RFXS5EU6-DPa8V-DS.js} +1 -1
  52. package/static/assets/{requirementDiagram-TGXJPOKE-BlFXj6Li.js → requirementDiagram-TGXJPOKE-Bvv4E9CW.js} +1 -1
  53. package/static/assets/{sankeyDiagram-HTMAVEWB-Ck_A1wxA.js → sankeyDiagram-HTMAVEWB-0MJhpRfa.js} +1 -1
  54. package/static/assets/{sequenceDiagram-DBY2YBRQ-D4mu07Ol.js → sequenceDiagram-DBY2YBRQ-DigLSZlS.js} +1 -1
  55. package/static/assets/{sizeCapture-X5ZJPWSS-BwempBoZ.js → sizeCapture-X5ZJPWSS-6mCHKLvi.js} +1 -1
  56. package/static/assets/{stateDiagram-2N3HPSRC-DSh1YMwZ.js → stateDiagram-2N3HPSRC-BaIapwPh.js} +1 -1
  57. package/static/assets/stateDiagram-v2-6OUMAXLB-DZNVilCm.js +1 -0
  58. package/static/assets/{swimlanes-5IMT3BWC-4EE1KLA5.js → swimlanes-5IMT3BWC-Doushgb5.js} +2 -2
  59. package/static/assets/swimlanesDiagram-G3AALYLV-Dye5Ycrr.js +8 -0
  60. package/static/assets/{timeline-definition-FHXFAJF6-DVZepywq.js → timeline-definition-FHXFAJF6-DQXoUYQ4.js} +1 -1
  61. package/static/assets/{vennDiagram-L72KCM5P-YqnYvNJT.js → vennDiagram-L72KCM5P-DqoXPumC.js} +1 -1
  62. package/static/assets/{wardleyDiagram-EHGQE667-Dc6PvPZE.js → wardleyDiagram-EHGQE667-CjaK_50N.js} +1 -1
  63. package/static/assets/{xychartDiagram-FW5EYKEG-DLbY5Kg1.js → xychartDiagram-FW5EYKEG-DUrmfVTr.js} +1 -1
  64. package/static/index.html +1 -1
  65. package/static/assets/channel-CufY_jLp.js +0 -1
  66. package/static/assets/classDiagram-OUVF2IWQ-CVQD_QZa.js +0 -1
  67. package/static/assets/classDiagram-v2-EOCWNBFH-CVQD_QZa.js +0 -1
  68. package/static/assets/stateDiagram-v2-6OUMAXLB-DrMkFhr2.js +0 -1
  69. package/static/assets/swimlanesDiagram-G3AALYLV-DoZQ3XaY.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rashidee/co2",
3
- "version": "1.3.20",
3
+ "version": "1.3.24",
4
4
  "description": "Compound Context Studio — self-hosted team context authoring for CO2 projects",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,36 +1,36 @@
1
- {
2
- "name": "co2",
3
- "owner": {
4
- "name": "Rashidee M.Rashid"
5
- },
6
- "metadata": {
7
- "description": "Compound Context (CO2) Workflow — an opinionated context engineering methodology for AI-driven software development",
8
- "version": "1.0.2"
9
- },
10
- "plugins": [
11
- {
12
- "name": "co2-skills",
13
- "source": "./",
14
- "description": "Compound Context Skills — generates data models, HTML mockups, technical specifications, test specifications, and orchestrates full-stack development from Agile user stories.",
15
- "version": "1.8.2",
16
- "author": {
17
- "name": "Rashidee M.Rashid"
18
- },
19
- "repository": "https://github.com/rashidee/co2-skills",
20
- "license": "MIT",
21
- "keywords": [
22
- "context-engineering",
23
- "user-stories",
24
- "code-generation",
25
- "ddd",
26
- "spring-boot",
27
- "laravel",
28
- "playwright",
29
- "mockups",
30
- "specifications",
31
- "data-modeling"
32
- ],
33
- "category": "development"
34
- }
35
- ]
36
- }
1
+ {
2
+ "name": "co2",
3
+ "owner": {
4
+ "name": "Rashidee M.Rashid"
5
+ },
6
+ "metadata": {
7
+ "description": "Compound Context (CO2) Workflow — an opinionated context engineering methodology for AI-driven software development",
8
+ "version": "1.0.2"
9
+ },
10
+ "plugins": [
11
+ {
12
+ "name": "co2-skills",
13
+ "source": "./",
14
+ "description": "Compound Context Skills — generates data models, HTML mockups, technical specifications, test specifications, and orchestrates full-stack development from Agile user stories.",
15
+ "version": "1.8.4",
16
+ "author": {
17
+ "name": "Rashidee M.Rashid"
18
+ },
19
+ "repository": "https://github.com/rashidee/co2-skills",
20
+ "license": "MIT",
21
+ "keywords": [
22
+ "context-engineering",
23
+ "user-stories",
24
+ "code-generation",
25
+ "ddd",
26
+ "spring-boot",
27
+ "laravel",
28
+ "playwright",
29
+ "mockups",
30
+ "specifications",
31
+ "data-modeling"
32
+ ],
33
+ "category": "development"
34
+ }
35
+ ]
36
+ }
@@ -1,22 +1,22 @@
1
- {
2
- "name": "co2-skills",
3
- "version": "1.8.2",
4
- "description": "Compound Context Skills — an opinionated context engineering methodology for AI-driven software development. Generates data models, HTML mockups, technical specifications, test specifications, and orchestrates full-stack development from Agile user stories.",
5
- "author": {
6
- "name": "Rashidee M.Rashid"
7
- },
8
- "repository": "https://github.com/rashidee/co2-skills",
9
- "license": "MIT",
10
- "keywords": [
11
- "context-engineering",
12
- "user-stories",
13
- "code-generation",
14
- "ddd",
15
- "spring-boot",
16
- "laravel",
17
- "playwright",
18
- "mockups",
19
- "specifications",
20
- "data-modeling"
21
- ]
22
- }
1
+ {
2
+ "name": "co2-skills",
3
+ "version": "1.8.4",
4
+ "description": "Compound Context Skills — an opinionated context engineering methodology for AI-driven software development. Generates data models, HTML mockups, technical specifications, test specifications, and orchestrates full-stack development from Agile user stories.",
5
+ "author": {
6
+ "name": "Rashidee M.Rashid"
7
+ },
8
+ "repository": "https://github.com/rashidee/co2-skills",
9
+ "license": "MIT",
10
+ "keywords": [
11
+ "context-engineering",
12
+ "user-stories",
13
+ "code-generation",
14
+ "ddd",
15
+ "spring-boot",
16
+ "laravel",
17
+ "playwright",
18
+ "mockups",
19
+ "specifications",
20
+ "data-modeling"
21
+ ]
22
+ }
@@ -519,9 +519,15 @@ Process bugs **version by version** in the order defined in the Version Processi
519
519
  4. Fix that bug using Steps 2.1–2.8 below
520
520
  5. After fixing, check if ALL bugs in the current version have terminal status:
521
521
  - If YES → mark the version as `COMPLETED` in the Version Processing Order table, record
522
- completion date, and move to the NEXT version (step 1)
522
+ completion date, and move to the NEXT version (step 1). **If this was the LAST version
523
+ (no remaining row with status != `COMPLETED`), IMMEDIATELY also set the top-level
524
+ `**Status**:` field to `COMPLETED` in the same edit** — do NOT defer it to Phase 3. The
525
+ top-level `**Status**:` line is the ONLY completion signal Compound Context Studio reads; a
526
+ BUG_MASTER whose version rows are all `COMPLETED` but whose top-level `**Status**:` still says
527
+ `IN PROGRESS` leaves the run stuck "in progress" in the studio.
523
528
  - If NO → find the next `NEW` bug in the same version and continue
524
- 6. Repeat until ALL versions are `COMPLETED`
529
+ 6. Repeat until ALL versions are `COMPLETED` (at which point the top-level `**Status**:` is already
530
+ `COMPLETED` per step 5)
525
531
 
526
532
  For each bug with status `NEW` in BUG_MASTER.md (within the current version), in order:
527
533
 
@@ -786,7 +792,8 @@ If the bug fix is NOT already documented in PRD.md:
786
792
  After all bugs have been processed (every bug has a terminal status):
787
793
 
788
794
  1. Update BUG_MASTER.md:
789
- - Set top-level `**Status**:` to `COMPLETED`
795
+ - Ensure the top-level `**Status**:` field reads `COMPLETED` (Phase 2 step 5 already sets it when
796
+ the last version completes — confirm it here as a backstop; the studio reads ONLY this line)
790
797
  - Update all Summary table counts
791
798
  2. **Regenerate the traceability matrix** so the new `[BUG-XXX]` source markers (Step 2.5) and any
792
799
  code changes are reflected in the requirement-to-code links:
@@ -1 +1 @@
1
- import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-CbNDWijQ.js";import{p as f}from"./chunk-JWPE2WC7-DpYEF0BV.js";import{_ as n,l as o}from"./index-B4Y8oBUt.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-DioyO_Cm.js";var v=d().RailroadAbnf.parser.LangiumParser,l=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),i=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:i,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return l(e.element);case"AbnfOptionalGroup":return{type:"optional",element:l(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:l(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},w={parser:R,db:a,renderer:u,styles:p};export{w as diagram};
1
+ import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-ctV9LaAX.js";import{p as f}from"./chunk-JWPE2WC7-277KBuwS.js";import{_ as n,l as o}from"./index-DHqZVy2E.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-B6Oy4mbg.js";var v=d().RailroadAbnf.parser.LangiumParser,l=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),i=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:i,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return l(e.element);case"AbnfOptionalGroup":return{type:"optional",element:l(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:l(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},w={parser:R,db:a,renderer:u,styles:p};export{w as diagram};
@@ -1 +1 @@
1
- import{Y as ln,$ as an,a0 as y,a1 as tn,a2 as F,a3 as q,a4 as _,a5 as un,a6 as rn,a7 as J,a8 as o,a9 as j,aa as sn,ab as on,ac as fn}from"./index-B4Y8oBUt.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,z,a){var O=I-l,i=D-h,n=z-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 U(l,h,I,D,v,A,z){var a=l-I,O=h-D,i=(z?A:-A)/J(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,B=(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)*J(fn(0,T*T*R-P*P)),Y=(P*g-m*S)/R,$=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=Y-B,e=$-t,r=w-B,C=p-t;return x*x+e*e>r*r+C*C&&(Y=w,$=p),{cx:Y,cy:$,x01:-n,y01:-d,x11:Y*(v/T-1),y11:$*(v/T-1)}}function hn(){var l=cn,h=yn,I=j(0),D=null,v=gn,A=dn,z=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)-an,c=A.apply(this,arguments)-an,B=un(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(B>tn-y)a.moveTo(s*F(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*F(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=B,S=B,Y=z.apply(this,arguments)/2,$=Y>y&&(D?+D.apply(this,arguments):J(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if($>y){var C=sn($/u*q(Y)),K=sn($/s*q(Y));(P-=C*2)>y?(C*=t?1:-1,R+=C,T-=C):(P=0,R=T=(f+c)/2),(S-=K*2)>y?(K*=t?1:-1,m+=K,g-=K):(S=0,m=g=(f+c)/2)}var G=s*F(m),H=s*q(m),L=u*F(T),M=u*q(T);if(w>y){var N=s*F(g),Q=s*q(g),V=u*F(R),W=u*q(R),E;if(B<rn)if(E=pn(G,H,V,W,N,Q,L,M)){var X=G-E[0],Z=H-E[1],b=N-E[0],k=Q-E[1],nn=1/q(on((X*b+Z*k)/(J(X*X+Z*Z)*J(b*b+k*k)))/2),en=J(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=U(V,W,G,H,s,x,t),r=U(N,Q,L,M,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(G,H),a.arc(0,0,s,m,g,!t)):a.moveTo(G,H),!(u>y)||!(P>y)?a.lineTo(L,M):p>y?(e=U(L,M,N,Q,u,-p,t),r=U(G,H,V,W,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-rn/2;return[F(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:j(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:j(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:j(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:j(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:j(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:j(+n),i):A},i.padAngle=function(n){return arguments.length?(z=typeof n=="function"?n:j(+n),i):z},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{Y as ln,$ as an,a0 as y,a1 as tn,a2 as F,a3 as q,a4 as _,a5 as un,a6 as rn,a7 as J,a8 as o,a9 as j,aa as sn,ab as on,ac as fn}from"./index-DHqZVy2E.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,z,a){var O=I-l,i=D-h,n=z-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 U(l,h,I,D,v,A,z){var a=l-I,O=h-D,i=(z?A:-A)/J(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,B=(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)*J(fn(0,T*T*R-P*P)),Y=(P*g-m*S)/R,$=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=Y-B,e=$-t,r=w-B,C=p-t;return x*x+e*e>r*r+C*C&&(Y=w,$=p),{cx:Y,cy:$,x01:-n,y01:-d,x11:Y*(v/T-1),y11:$*(v/T-1)}}function hn(){var l=cn,h=yn,I=j(0),D=null,v=gn,A=dn,z=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)-an,c=A.apply(this,arguments)-an,B=un(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(B>tn-y)a.moveTo(s*F(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*F(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=B,S=B,Y=z.apply(this,arguments)/2,$=Y>y&&(D?+D.apply(this,arguments):J(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if($>y){var C=sn($/u*q(Y)),K=sn($/s*q(Y));(P-=C*2)>y?(C*=t?1:-1,R+=C,T-=C):(P=0,R=T=(f+c)/2),(S-=K*2)>y?(K*=t?1:-1,m+=K,g-=K):(S=0,m=g=(f+c)/2)}var G=s*F(m),H=s*q(m),L=u*F(T),M=u*q(T);if(w>y){var N=s*F(g),Q=s*q(g),V=u*F(R),W=u*q(R),E;if(B<rn)if(E=pn(G,H,V,W,N,Q,L,M)){var X=G-E[0],Z=H-E[1],b=N-E[0],k=Q-E[1],nn=1/q(on((X*b+Z*k)/(J(X*X+Z*Z)*J(b*b+k*k)))/2),en=J(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=U(V,W,G,H,s,x,t),r=U(N,Q,L,M,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(G,H),a.arc(0,0,s,m,g,!t)):a.moveTo(G,H),!(u>y)||!(P>y)?a.lineTo(L,M):p>y?(e=U(L,M,N,Q,u,-p,t),r=U(G,H,V,W,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-rn/2;return[F(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:j(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:j(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:j(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:j(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:j(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:j(+n),i):A},i.padAngle=function(n){return arguments.length?(z=typeof n=="function"?n:j(+n),i):z},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};