markshelf 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +4 -4
  4. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  10. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  13. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  14. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  15. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  16. package/.next/standalone/.next/server/app/api/asset/route.js.nft.json +1 -1
  17. package/.next/standalone/.next/server/app/api/diff/route.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/api/file/route.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/timeline/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/tree/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/index.html +1 -1
  25. package/.next/standalone/.next/server/app/index.rsc +23 -22
  26. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +24 -23
  27. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +23 -22
  28. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  29. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_architectureDiagram-T3A2C74G_mjs_01mnvkyw356y8._.js +38 -0
  32. package/.next/standalone/.next/server/chunks/ssr/{1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs_1os5wyw2wvsbf._.js → 1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs_1d984g489t_v_._.js} +1 -1
  33. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0g-vy3v9t9tyh._.js +1 -1
  34. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1zwa158v6cu4h._.js → node_modules_06_you5sj36ea._.js} +1 -1
  35. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1_zhxjrdvu__0._.js → node_modules_0urq0y3w3y-x1._.js} +1 -1
  36. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1ksoebjs06iin._.js → node_modules_1p-f83gneg27h._.js} +1 -1
  37. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1-a8_ridg1by1._.js → node_modules_1r01f3o8u2qr9._.js} +1 -1
  38. package/.next/standalone/.next/server/chunks/ssr/node_modules_1uxb2qcnk4ek5._.js +3 -0
  39. package/.next/standalone/.next/server/chunks/ssr/{node_modules_206hxjs9pfggi._.js → node_modules_1zwji4vpuwii8._.js} +1 -1
  40. package/.next/standalone/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0fs__yticb4lo._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1g9pdbaq2r91b._.js} +1 -1
  41. package/.next/standalone/.next/server/chunks/ssr/{node_modules_0ufmcadetyxyl._.js → node_modules_cytoscape-fcose_20-159eqjhba3._.js} +2 -37
  42. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  43. package/.next/standalone/.next/server/pages/404.html +1 -1
  44. package/.next/standalone/.next/server/pages/500.html +1 -1
  45. package/.next/standalone/.next/server/preview-props.json +3 -3
  46. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  48. package/.next/standalone/.next/static/chunks/0zx7_y1xwx4-6.js +36 -0
  49. package/.next/standalone/.next/static/chunks/1meg6zx-prjos.css +1 -0
  50. package/.next/standalone/.next/static/chunks/2dk77qi-hbjhe.js +1 -0
  51. package/.next/{static/chunks/3lua0caljmnb1.js → standalone/.next/static/chunks/2hp_1eqxa-3bp.js} +2 -2
  52. package/.next/standalone/.next/static/chunks/{1ox77t4cdm_pk.js → 3_96bh9sdsp72.js} +1 -1
  53. package/.next/standalone/package-lock.json +3 -2
  54. package/.next/standalone/package.json +2 -1
  55. package/.next/standalone/src/components/LinkGraph.tsx +128 -85
  56. package/.next/static/chunks/0zx7_y1xwx4-6.js +36 -0
  57. package/.next/static/chunks/1meg6zx-prjos.css +1 -0
  58. package/.next/static/chunks/2dk77qi-hbjhe.js +1 -0
  59. package/.next/{standalone/.next/static/chunks/3lua0caljmnb1.js → static/chunks/2hp_1eqxa-3bp.js} +2 -2
  60. package/.next/static/chunks/{1ox77t4cdm_pk.js → 3_96bh9sdsp72.js} +1 -1
  61. package/package.json +2 -1
  62. package/.next/standalone/.next/server/chunks/ssr/node_modules_0q94q8jo25nfn._.js +0 -3
  63. package/.next/standalone/.next/static/chunks/0bgukk-aush3d.js +0 -36
  64. package/.next/standalone/.next/static/chunks/1kz_y2ko2i190.js +0 -1
  65. package/.next/standalone/.next/static/chunks/42m7w6tf9trgs.css +0 -1
  66. package/.next/static/chunks/0bgukk-aush3d.js +0 -36
  67. package/.next/static/chunks/1kz_y2ko2i190.js +0 -1
  68. package/.next/static/chunks/42m7w6tf9trgs.css +0 -1
  69. /package/.next/standalone/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_buildManifest.js +0 -0
  70. /package/.next/standalone/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_clientMiddlewareManifest.js +0 -0
  71. /package/.next/standalone/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_ssgManifest.js +0 -0
  72. /package/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_buildManifest.js +0 -0
  73. /package/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_clientMiddlewareManifest.js +0 -0
  74. /package/.next/static/{hUO5HeCq5PpB5sY7JGIf9 → lGwn6L8yvmgCBC9fv0_jy}/_ssgManifest.js +0 -0
@@ -0,0 +1,38 @@
1
+ module.exports=[95110,a=>{"use strict";var b=a.i(61055),c=a.i(13931),d=a.i(50832),e=a.i(32186),f=a.i(64842),g=a.i(42467),h=a.i(75117),i=a.i(39110),j=a.i(38673),k=a.i(22034),l=a.i(29502);a.i(75930);var m=a.i(71731),n={L:"left",R:"right",T:"top",B:"bottom"},o={L:(0,i.p)(a=>`${a},${a/2} 0,${a} 0,0`,"L"),R:(0,i.p)(a=>`0,${a/2} ${a},0 ${a},${a}`,"R"),T:(0,i.p)(a=>`0,0 ${a},0 ${a/2},${a}`,"T"),B:(0,i.p)(a=>`${a/2},0 ${a},${a} 0,${a}`,"B")},p={L:(0,i.p)((a,b)=>a-b+2,"L"),R:(0,i.p)((a,b)=>a-2,"R"),T:(0,i.p)((a,b)=>a-b+2,"T"),B:(0,i.p)((a,b)=>a-2,"B")},q=(0,i.p)(function(a){return s(a)?"L"===a?"R":"L":"T"===a?"B":"T"},"getOppositeArchitectureDirection"),r=(0,i.p)(function(a){return"L"===a||"R"===a||"T"===a||"B"===a},"isArchitectureDirection"),s=(0,i.p)(function(a){return"L"===a||"R"===a},"isArchitectureDirectionX"),t=(0,i.p)(function(a){return"T"===a||"B"===a},"isArchitectureDirectionY"),u=(0,i.p)(function(a,b){let c=s(a)&&t(b),d=t(a)&&s(b);return c||d},"isArchitectureDirectionXY"),v=(0,i.p)(function(a){let b=a[0],c=a[1],d=s(b)&&t(c),e=t(b)&&s(c);return d||e},"isArchitecturePairXY"),w=(0,i.p)(function(a){return"LL"!==a&&"RR"!==a&&"TT"!==a&&"BB"!==a},"isValidArchitectureDirectionPair"),x=(0,i.p)(function(a,b){let c=`${a}${b}`;return w(c)?c:void 0},"getArchitectureDirectionPair"),y=(0,i.p)(function([a,b],c){let d=c[0],e=c[1];if(s(d))if(t(e))return[a+("L"===d?-1:1),b+("T"===e?1:-1)];else return[a+("L"===d?-1:1),b];return s(e)?[a+("L"===e?1:-1),b+("T"===d?1:-1)]:[a,b+("T"===d?1:-1)]},"shiftPositionByArchitectureDirectionPair"),z=(0,i.p)(function(a){return"LT"===a||"TL"===a?[1,1]:"BL"===a||"LB"===a?[1,-1]:"BR"===a||"RB"===a?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),A=(0,i.p)(function(a,b){return u(a,b)?"bend":s(a)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),B=(0,i.p)(function(a){return"service"===a.type},"isArchitectureService"),C=(0,i.p)(function(a){return"junction"===a.type},"isArchitectureJunction"),D=(0,i.p)((a,b)=>{let[c,d]=[a,b].sort();return`${JSON.stringify(c)}-${JSON.stringify(d)}`},"architectureGroupAlignmentKey"),E=(0,i.p)(a=>a.data(),"edgeData"),F=(0,i.p)(a=>a.data(),"nodeData"),G=g.f.architecture,H=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=g.b,this.getAccTitle=g.d,this.setDiagramTitle=g.a,this.getDiagramTitle=g.F,this.getAccDescription=g.j,this.setAccDescription=g.C,this.clear()}static{(0,i.p)(this,"ArchitectureDB")}setDiagramId(a){this.diagramId=a}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",(0,g.M)()}addService({id:a,icon:b,in:c,title:d,iconText:e}){if(this.registeredIds.has(a))throw Error(`The service id [${a}] is already in use by another ${this.registeredIds.get(a)}`);if(void 0!==c){if(a===c)throw Error(`The service [${a}] cannot be placed within itself`);if(!this.registeredIds.has(c))throw Error(`The service [${a}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===this.registeredIds.get(c))throw Error(`The service [${a}]'s parent is not a group`)}this.registeredIds.set(a,"node"),this.nodes.set(a,{id:a,type:"service",icon:b,iconText:e,title:d,edges:[],in:c})}getServices(){return[...this.nodes.values()].filter(B)}addJunction({id:a,in:b}){if(this.registeredIds.has(a))throw Error(`The junction id [${a}] is already in use by another ${this.registeredIds.get(a)}`);if(void 0!==b){if(a===b)throw Error(`The junction [${a}] cannot be placed within itself`);if(!this.registeredIds.has(b))throw Error(`The junction [${a}]'s parent does not exist. Please make sure the parent is created before this junction`);if("node"===this.registeredIds.get(b))throw Error(`The junction [${a}]'s parent is not a group`)}this.registeredIds.set(a,"node"),this.nodes.set(a,{id:a,type:"junction",edges:[],in:b})}getJunctions(){return[...this.nodes.values()].filter(C)}getNodes(){return[...this.nodes.values()]}getNode(a){return this.nodes.get(a)??null}addGroup({id:a,icon:b,in:c,title:d}){if(this.registeredIds.has(a))throw Error(`The group id [${a}] is already in use by another ${this.registeredIds.get(a)}`);if(void 0!==c){if(a===c)throw Error(`The group [${a}] cannot be placed within itself`);if(!this.registeredIds.has(c))throw Error(`The group [${a}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===this.registeredIds.get(c))throw Error(`The group [${a}]'s parent is not a group`)}this.registeredIds.set(a,"group"),this.groups.set(a,{id:a,icon:b,title:d,in:c})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:a,rhsId:b,lhsDir:c,rhsDir:d,lhsInto:e,rhsInto:f,lhsGroup:g,rhsGroup:h,title:i}){if(!r(c))throw Error(`Invalid direction given for left hand side of edge ${a}--${b}. Expected (L,R,T,B) got ${String(c)}`);if(!r(d))throw Error(`Invalid direction given for right hand side of edge ${a}--${b}. Expected (L,R,T,B) got ${String(d)}`);if(!this.nodes.has(a)&&!this.groups.has(a))throw Error(`The left-hand id [${a}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(b)&&!this.groups.has(b))throw Error(`The right-hand id [${b}] does not yet exist. Please create the service/group before declaring an edge to it.`);let j=this.nodes.get(a).in,k=this.nodes.get(b).in;if(g&&j&&k&&j==k)throw Error(`The left-hand id [${a}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(h&&j&&k&&j==k)throw Error(`The right-hand id [${b}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);this.edges.push({lhsId:a,lhsDir:c,lhsInto:e,lhsGroup:g,rhsId:b,rhsDir:d,rhsInto:f,rhsGroup:h,title:i});let l=this.nodes.get(a),m=this.nodes.get(b);l&&m&&(l.edges.push(this.edges[this.edges.length-1]),m.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(a){if(a.members.length<2)throw Error(`An align directive requires at least two members; got ${a.members.length}`);let b=new Set;a.members.forEach(c=>{if("node"!==this.registeredIds.get(c))throw Error(`align ${a.direction} references [${c}], which is not a service or junction`);if(b.has(c))throw Error(`align ${a.direction} lists [${c}] more than once`);b.add(c)}),this.layoutHints.push(a)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(void 0===this.dataStructures){let a=new Map,b=new Map;for(let[c,d]of this.nodes.entries()){let e=new Map;for(let b of d.edges){let d=this.getNode(b.lhsId)?.in,f=this.getNode(b.rhsId)?.in;if(d&&f&&d!==f){let c=A(b.lhsDir,b.rhsDir);"bend"!==c&&a.set(D(d,f),c)}if(b.lhsId===c){let a=x(b.lhsDir,b.rhsDir);a&&e.set(a,b.rhsId)}else{let a=x(b.rhsDir,b.lhsDir);a&&e.set(a,b.lhsId)}}b.set(c,e)}let c=new Set,d=new Set(b.keys()),e=(0,i.p)(a=>{let e=new Map([[a,[0,0]]]),f=[a];for(;f.length>0;){let a=f.shift();if(a){c.add(a),d.delete(a);let g=b.get(a);if(!g)throw Error(`BFS error: adjacency list for id ${a} not found. Please report this as a bug.`);let h=e.get(a);if(!h)throw Error(`BFS error: position for id ${a} not found in spatial map. Please report this as a bug.`);let[i,j]=h;g.forEach((a,b)=>{c.has(a)||(e.set(a,y([i,j],b)),f.push(a))})}}return e},"BFS"),f=[];for(;d.size>0;){let a=d.values().next().value;f.push(e(a))}this.dataStructures={adjList:b,spatialMaps:f,groupAlignments:a}}return this.dataStructures}setElementForId(a,b){this.elements.set(a,b)}getElementById(a){return this.elements.get(a)}getConfig(){return(0,f.z)({...G,...(0,g.N)().architecture})}getConfigField(a){return this.getConfig()[a]}},I=(0,i.p)((a,c)=>{(0,b.f)(a,c),a.groups.map(a=>c.addGroup(a)),a.services.map(a=>c.addService({...a,type:"service"})),a.junctions.map(a=>c.addJunction({...a,type:"junction"})),a.edges.map(a=>c.addEdge(a)),a.alignments?.map(a=>c.addLayoutHint({direction:a.direction,members:[...a.members]}))},"populateDb"),J={parser:{yy:void 0},parse:(0,i.p)(async a=>{let b=await (0,j.x)("architecture",a);h.d.debug(b);let c=J.parser?.yy;if(!(c instanceof H))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");I(b,c)},"parse")},K=(0,i.p)(a=>`
2
+ .edge {
3
+ stroke-width: ${a.archEdgeWidth};
4
+ stroke: ${a.archEdgeColor};
5
+ fill: none;
6
+ }
7
+
8
+ .arrow {
9
+ fill: ${a.archEdgeArrowColor};
10
+ }
11
+
12
+ .node-bkg {
13
+ fill: none;
14
+ stroke: ${a.archGroupBorderColor};
15
+ stroke-width: ${a.archGroupBorderWidth};
16
+ stroke-dasharray: 8;
17
+ }
18
+ .node-icon-text {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
23
+ .node-icon-text > div {
24
+ color: #fff;
25
+ margin: 1px;
26
+ height: fit-content;
27
+ text-align: center;
28
+ overflow: hidden;
29
+ display: -webkit-box;
30
+ -webkit-box-orient: vertical;
31
+ }
32
+ `,"getStyles");function L(a,b){if(0===a)return b();let c=Math.random,d=a>>>0;Math.random=function(){let a=d=d+0x6d2b79f5>>>0;return a=Math.imul(a^a>>>15,1|a),(((a^=a+Math.imul(a^a>>>7,61|a))^a>>>14)>>>0)/0x100000000};try{return b()}finally{Math.random=c}}(0,i.p)(L,"withSeededRandom");var M=(0,i.p)(a=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${a}</g>`,"wrapIcon"),N={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:M('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:M('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:M('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:M('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:M('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:e.e,blank:{body:M("")}}},O=(0,i.p)(async function(a,b,c,e){let h=c.getConfigField("padding"),i=c.getConfigField("iconSize"),j=i/2,k=i/6,l=k/2;await Promise.all(b.edges().map(async b=>{let{source:i,sourceDir:m,sourceArrow:n,sourceGroup:q,target:r,targetDir:w,targetArrow:y,targetGroup:A,label:B}=E(b),{x:C,y:D}=b[0].sourceEndpoint(),{x:F,y:G}=b[0].midpoint(),{x:H,y:I}=b[0].targetEndpoint(),J=h+4;if(q&&(s(m)?C+="L"===m?-J:J:D+="T"===m?-J:J+18),A&&(s(w)?H+="L"===w?-J:J:I+="T"===w?-J:J+18),q||c.getNode(i)?.type!=="junction"||(s(m)?C+="L"===m?j:-j:D+="T"===m?j:-j),A||c.getNode(r)?.type!=="junction"||(s(w)?H+="L"===w?j:-j:I+="T"===w?j:-j),b[0]._private.rscratch){let b=a.insert("g");if(b.insert("path").attr("d",`M ${C},${D} L ${F},${G} L${H},${I} `).attr("class","edge").attr("id",`${e}-${(0,f.i)(i,r,{prefix:"L"})}`),n){let a=s(m)?p[m](C,k):C-l,c=t(m)?p[m](D,k):D-l;b.insert("polygon").attr("points",o[m](k)).attr("transform",`translate(${a},${c})`).attr("class","arrow")}if(y){let a=s(w)?p[w](H,k):H-l,c=t(w)?p[w](I,k):I-l;b.insert("polygon").attr("points",o[w](k)).attr("transform",`translate(${a},${c})`).attr("class","arrow")}if(B){let a=u(m,w)?"XY":s(m)?"X":"Y",c=0;c="X"===a?Math.abs(C-H):"Y"===a?Math.abs(D-I)/1.5:Math.abs(C-H)/2;let e=b.append("g");if(await (0,d.w)(e,B,{useHtmlLabels:!1,width:c,classes:"architecture-service-label"},(0,g.z)()),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===a)e.attr("transform","translate("+F+", "+G+")");else if("Y"===a)e.attr("transform","translate("+F+", "+G+") rotate(-90)");else if("XY"===a){let a=x(m,w);if(a&&v(a)){let b=e.node().getBoundingClientRect(),[c,d]=z(a);e.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*c*d*45})`);let f=e.node().getBoundingClientRect();e.attr("transform",`
33
+ translate(${F}, ${G-b.height/2})
34
+ translate(${c*f.width/2}, ${d*f.height/2})
35
+ rotate(${-1*c*d*45}, 0, ${b.height/2})
36
+ `)}}}}}))},"drawEdges"),P=(0,i.p)(async function(a,b,c,f){let h=.75*c.getConfigField("padding"),i=c.getConfigField("fontSize"),j=c.getConfigField("iconSize")/2;await Promise.all(b.nodes().map(async b=>{let k=F(b);if("group"===k.type){let{h:l,w:m,x1:n,y1:o}=b.boundingBox(),p=a.append("rect");p.attr("id",`${f}-group-${k.id}`).attr("x",n+j).attr("y",o+j).attr("width",m).attr("height",l).attr("class","node-bkg");let q=a.append("g"),r=n,s=o;if(k.icon){let a=q.append("g");a.html(`<g>${await (0,e.v)(k.icon,{height:h,width:h,fallbackPrefix:N.prefix})}</g>`),a.attr("transform","translate("+(r+j+1)+", "+(s+j+1)+")"),r+=h,s+=i/2-1-2}if(k.label){let a=q.append("g");await (0,d.w)(a,k.label,{useHtmlLabels:!1,width:m,classes:"architecture-service-label"},(0,g.z)()),a.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),a.attr("transform","translate("+(r+j+4)+", "+(s+j+2)+")")}c.setElementForId(k.id,p)}}))},"drawGroups"),Q=(0,i.p)(async function(a,b,c,f){let h=(0,g.z)();for(let i of c){let c=b.append("g"),j=a.getConfigField("iconSize");if(i.title){let a=c.append("g");await (0,d.w)(a,i.title,{useHtmlLabels:!1,width:1.5*j,classes:"architecture-service-label"},h),a.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),a.attr("transform","translate("+j/2+", "+j+")")}let k=c.append("g");if(i.icon)k.html(`<g>${await (0,e.v)(i.icon,{height:j,width:j,fallbackPrefix:N.prefix})}</g>`);else if(i.iconText){k.html(`<g>${await (0,e.v)("blank",{height:j,width:j,fallbackPrefix:N.prefix})}</g>`);let a=k.append("g").append("foreignObject").attr("width",j).attr("height",j).append("div").attr("class","node-icon-text").attr("style",`height: ${j}px;`).append("div").html((0,g.w)(i.iconText,h)),b=parseInt(window.getComputedStyle(a.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;a.attr("style",`-webkit-line-clamp: ${Math.floor((j-2)/b)};`)}else k.append("path").attr("class","node-bkg").attr("id",`${f}-node-${i.id}`).attr("d",`M0,${j} V5 Q0,0 5,0 H${j-5} Q${j},0 ${j},5 V${j} Z`);c.attr("id",`${f}-service-${i.id}`).attr("class","architecture-service");let{width:l,height:m}=c.node().getBBox();i.width=l,i.height=m,a.setElementForId(i.id,c)}return 0},"drawServices"),R=(0,i.p)(function(a,b,c,d){c.forEach(c=>{let e=b.append("g"),f=a.getConfigField("iconSize");e.append("g").append("rect").attr("id",`${d}-node-${c.id}`).attr("fill-opacity","0").attr("width",f).attr("height",f),e.attr("class","architecture-junction");let{width:g,height:h}=e._groups[0][0].getBBox();e.width=g,e.height=h,a.setElementForId(c.id,e)})},"drawJunctions");function S(a,b,c){a.forEach(a=>{b.add({group:"nodes",data:{type:"service",id:a.id,icon:a.icon,label:a.title,parent:a.in,width:c.getConfigField("iconSize"),height:c.getConfigField("iconSize")},classes:"node-service"})})}function T(a,b,c){a.forEach(a=>{b.add({group:"nodes",data:{type:"junction",id:a.id,parent:a.in,width:c.getConfigField("iconSize"),height:c.getConfigField("iconSize")},classes:"node-junction"})})}function U(a,b){b.nodes().map(b=>{let c=F(b);"group"===c.type||(c.x=b.position().x,c.y=b.position().y,a.getElementById(c.id).attr("transform","translate("+(c.x||0)+","+(c.y||0)+")"))})}function V(a,b){a.forEach(a=>{b.add({group:"nodes",data:{type:"group",id:a.id,icon:a.icon,label:a.title,parent:a.in},classes:"node-group"})})}function W(a,b){a.forEach(a=>{let{lhsId:c,rhsId:d,lhsInto:e,lhsGroup:f,rhsInto:g,lhsDir:h,rhsDir:i,rhsGroup:j,title:k}=a,l=u(a.lhsDir,a.rhsDir)?"segments":"straight",m={id:`${c}-${d}`,label:k,source:c,sourceDir:h,sourceArrow:e,sourceGroup:f,sourceEndpoint:"L"===h?"0 50%":"R"===h?"100% 50%":"T"===h?"50% 0":"50% 100%",target:d,targetDir:i,targetArrow:g,targetGroup:j,targetEndpoint:"L"===i?"0 50%":"R"===i?"100% 50%":"T"===i?"50% 0":"50% 100%"};b.add({group:"edges",data:m,classes:l})})}function X(a,b,c,d=[]){let e=(0,i.p)((a,b)=>{let d=new Map;for(let[e,f]of a.entries()){let a=`${e}`,g=0,h=[...f.entries()];if(1===h.length){d.set(a,h[0][1]);continue}for(let e=0;e<h.length-1;e++)for(let f=e+1;f<h.length;f++){let[i,j]=h[e],[k,l]=h[f];if(c.get(D(i,k))===b)d.set(a,[...d.get(a)??[],...j,...l]);else if("default"===i||"default"===k)d.set(a,[...d.get(a)??[],...j,...l]);else{let b=`${a}-${g++}`;d.set(b,j);let c=`${a}-${g++}`;d.set(c,l)}}}return d},"flattenAlignments"),[f,g]=b.map(b=>{let c=new Map,d=new Map;return b.forEach(([b,e],f)=>{let g=a.getNode(f)?.in??"default",h=c.get(e)??new Map;c.has(e)||c.set(e,h);let i=d.get(b)??new Map;for(let a of(d.has(b)||d.set(b,i),[h,i])){let b=a.get(g)??[];a.has(g)||a.set(g,b),b.push(f)}}),{horiz:[...e(c,"horizontal").values()].filter(a=>a.length>1),vert:[...e(d,"vertical").values()].filter(a=>a.length>1)}}).reduce(([a,b],{horiz:c,vert:d})=>[[...a,...c],[...b,...d]],[[],[]]),h=new Set;d.forEach(a=>a.members.forEach(a=>h.add(a)));let j=(0,i.p)(a=>a.filter(a=>!a.some(a=>h.has(a))),"dropOverlapping"),k=j(f),l=j(g);return d.forEach(a=>{a.members.length<2||("row"===a.direction?k.push([...a.members]):l.push([...a.members]))}),{horizontal:k,vertical:l}}function Y(a,b,c=[]){let d=[],e=b.getConfigField("iconSize"),f=b.getConfigField("idealEdgeLengthMultiplier"),g=f*e,h=new Set;c.forEach(a=>{for(let b=0;b<a.members.length-1;b++){let c=a.members[b],e=a.members[b+1];h.add(`${c}|${e}`),h.add(`${e}|${c}`),"row"===a.direction?d.push({left:c,right:e,gap:g}):d.push({top:c,bottom:e,gap:g})}});let j=(0,i.p)(a=>`${a[0]},${a[1]}`,"posToStr"),k=(0,i.p)(a=>a.split(",").map(a=>parseInt(a)),"strToPos");return a.forEach(a=>{let b=new Map([...a.entries()].map(([a,b])=>[j(b),a])),c=[j([0,0])],g={},i={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;c.length>0;){let a=c.shift();if(a){g[a]=1;let l=b.get(a);if(l){let m=k(a);Object.entries(i).forEach(([a,i])=>{let k=j([m[0]+i[0],m[1]+i[1]]),o=b.get(k);if(o&&!g[k]){if(c.push(k),h.has(`${l}|${o}`))return;d.push({[n[a]]:o,[n[q(a)]]:l,gap:f*e})}})}}}}),d}function Z(a,b,c,d,e,{spatialMaps:f,groupAlignments:g}){return new Promise(j=>{let l=(0,m.f)("body").append("div").attr("id","cy").attr("style","display:none"),n=(0,k.f)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${e.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${e.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),V(c,n),S(a,n,e),T(b,n,e),W(d,n);let o=e.getLayoutHints(),p=X(e,f,g,o),q=Y(f,e,o),r=e.getConfigField("iconSize"),s=e.getConfigField("idealEdgeLengthMultiplier")*r,u=.5*r,v=e.getConfigField("edgeElasticity"),w=e.getConfigField("seed"),x=n.layout({name:"fcose",quality:"proof",randomize:e.getConfigField("randomize"),nodeSeparation:e.getConfigField("nodeSeparation"),numIter:e.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(a){let[b,c]=a.connectedNodes(),{parent:d}=F(b),{parent:e}=F(c);return d===e?s:u},edgeElasticity(a){let[b,c]=a.connectedNodes(),{parent:d}=F(b),{parent:e}=F(c);return d===e?v:.001},alignmentConstraint:p,relativePlacementConstraint:q});x.one("layoutstop",()=>{function a(a,b,c,d){let e,f,{x:g,y:h}=a,{x:i,y:j}=b;f=(d-h+(g-c)*(h-j)/(g-i))/Math.sqrt(1+Math.pow((h-j)/(g-i),2)),e=Math.sqrt(Math.pow(d-h,2)+Math.pow(c-g,2)-Math.pow(f,2))/Math.sqrt(Math.pow(i-g,2)+Math.pow(j-h,2));let k=(i-g)*(d-h)-(j-h)*(c-g);switch(!0){case k>=0:k=1;break;case k<0:k=-1}let l=(i-g)*(c-g)+(j-h)*(d-h);switch(!0){case l>=0:l=1;break;case l<0:l=-1}return{distances:f=Math.abs(f)*k,weights:e*=l}}for(let b of((0,i.p)(a,"getSegmentWeights"),n.startBatch(),Object.values(n.edges())))if(b.data?.()){let{x:c,y:d}=b.source().position(),{x:e,y:f}=b.target().position();if(c!==e&&d!==f){let c=b.sourceEndpoint(),d=b.targetEndpoint(),{sourceDir:e}=E(b),[f,g]=t(e)?[c.x,d.y]:[d.x,c.y],{weights:h,distances:i}=a(c,d,f,g);b.style("segment-distances",i),b.style("segment-weights",h)}}n.endBatch(),L(w,()=>x.run())});try{L(w,()=>x.run())}catch(a){if(a instanceof RangeError&&a.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw a}n.ready(a=>{h.d.info("Ready",a),j(n)})})}(0,e.z)([{name:N.prefix,icons:N}]),k.f.use(l.default),(0,i.p)(S,"addServices"),(0,i.p)(T,"addJunctions"),(0,i.p)(U,"positionNodes"),(0,i.p)(V,"addGroups"),(0,i.p)(W,"addEdges"),(0,i.p)(X,"getAlignments"),(0,i.p)(Y,"getRelativeConstraints"),(0,i.p)(Z,"layoutArchitecture");var $=(0,i.p)(async(a,b,d,e)=>{let f=e.db;f.setDiagramId(b);let h=f.getServices(),i=f.getJunctions(),j=f.getGroups(),k=f.getEdges(),l=f.getDataStructures(),m=(0,c.f)(b),n=m.append("g");n.attr("class","architecture-edges");let o=m.append("g");o.attr("class","architecture-services");let p=m.append("g");p.attr("class","architecture-groups"),await Q(f,o,h,b),R(f,o,i,b);let q=await Z(h,i,j,k,f,l);await O(n,q,f,b),await P(p,q,f,b),U(f,q),(0,g.P)(void 0,m,f.getConfigField("padding"),f.getConfigField("useMaxWidth"))},"draw");a.s(["diagram",0,{parser:J,get db(){return new H},renderer:{draw:$},styles:K}])}];
37
+
38
+ //# sourceMappingURL=1daa_mermaid_dist_chunks_mermaid_core_architectureDiagram-T3A2C74G_mjs_01mnvkyw356y8._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[2694,a=>{a.v(b=>Promise.all(["server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs_1upgspnjrhx0d._.js"].map(b=>a.l(b))).then(()=>b(18076)))}];
2
2
 
3
- //# sourceMappingURL=1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs_1os5wyw2wvsbf._.js.map
3
+ //# sourceMappingURL=1q96_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs_1d984g489t_v_._.js.map