markshelf 0.5.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/2un109rr9lovn.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 +116 -97
  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/2un109rr9lovn.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/{9DVUYgXvLt1B880dT5P1l → lGwn6L8yvmgCBC9fv0_jy}/_buildManifest.js +0 -0
  70. /package/.next/standalone/.next/static/{9DVUYgXvLt1B880dT5P1l → lGwn6L8yvmgCBC9fv0_jy}/_clientMiddlewareManifest.js +0 -0
  71. /package/.next/standalone/.next/static/{9DVUYgXvLt1B880dT5P1l → lGwn6L8yvmgCBC9fv0_jy}/_ssgManifest.js +0 -0
  72. /package/.next/static/{9DVUYgXvLt1B880dT5P1l → lGwn6L8yvmgCBC9fv0_jy}/_buildManifest.js +0 -0
  73. /package/.next/static/{9DVUYgXvLt1B880dT5P1l → lGwn6L8yvmgCBC9fv0_jy}/_clientMiddlewareManifest.js +0 -0
  74. /package/.next/static/{9DVUYgXvLt1B880dT5P1l → lGwn6L8yvmgCBC9fv0_jy}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39484,s=>{s.v(t=>Promise.all(["static/chunks/007qy2r9aq0hf.js"].map(t=>s.l(t))).then(()=>t(16400)))},53634,s=>{s.v(t=>Promise.all(["static/chunks/0livhl86ehrs-.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(4246)))},99073,s=>{s.v(t=>Promise.all(["static/chunks/1kz_y2ko2i190.js","static/chunks/3354y3p3xps9z.js","static/chunks/0bgukk-aush3d.js"].map(t=>s.l(t))).then(()=>t(585)))},68602,s=>{s.v(t=>Promise.all(["static/chunks/3ed96tb7kaefk.js","static/chunks/21vltjheqed6k.js","static/chunks/3u05e2qrj2rg1.js"].map(t=>s.l(t))).then(()=>t(250)))},77184,s=>{s.v(t=>Promise.all(["static/chunks/2w8tzerm1gxsv.js","static/chunks/3t8nlv8qyxdfh.js"].map(t=>s.l(t))).then(()=>t(75867)))},72003,s=>{"use strict";var t=s.i(6961),a=s.i(19524);s.i(47716);var e=s.i(23685),i=(0,a.p)(s=>{let{securityLevel:a}=(0,t.z)(),i=(0,e.f)("body");if("sandbox"===a){let t=(0,e.f)(`#i${s}`),a=t.node()?.contentDocument??document;i=(0,e.f)(a.body)}return i.select(`#${s}`)},"selectSvgElement");s.s(["f",0,i])},25133,s=>{"use strict";var t=s.i(36420),a=s.i(7744),e=s.i(19886),i=s.i(6961),l=s.i(8324),c=s.i(19524),n={common:i.E,getConfig:i.N,insertCluster:a.h,insertEdge:t.J,insertEdgeLabel:t.U,insertMarkers:t.o,insertNode:a.I,interpolateToCurve:e.x,labelHelper:a.J,log:l.d,positionEdgeLabel:t.a},r={},h=(0,c.p)(s=>{for(let t of s)r[t.name]=t},"registerLayoutLoaders");(0,c.p)(()=>{h([{name:"dagre",loader:(0,c.p)(async()=>await s.A(55508),"loader")},{name:"swimlane",loader:(0,c.p)(async()=>await s.A(32805),"loader")},{name:"cose-bilkent",loader:(0,c.p)(async()=>await s.A(8503),"loader")}])},"registerDefaultLayoutLoaders")();var o=(0,c.p)(async(s,t,a)=>{if(!(s.layoutAlgorithm in r))throw Error(`Unknown layout algorithm: ${s.layoutAlgorithm}`);if(s.diagramId)for(let t of s.nodes){let a=t.domId||t.id;t.domId=`${s.diagramId}-${a}`}let e=r[s.layoutAlgorithm],i=await e.loader(),{theme:l,themeVariables:c}=s.config,{useGradient:h,gradientStart:o,gradientStop:u}=c,m=t.attr("id");if(t.append("defs").append("filter").attr("id",`${m}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${m}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),h){let s=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");s.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),s.append("svg:stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}return i.render(s,t,n,{algorithm:e.algorithm},a)},"render"),u=(0,c.p)((s="",{fallback:t="dagre"}={})=>{if(s in r)return s;if(t in r)return l.d.warn(`Layout algorithm ${s} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${s} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");s.s(["G",0,u,"F",0,h,"a",0,o])},90784,s=>{s.v(t=>Promise.all(["static/chunks/0mj0hlhsux3mx.js","static/chunks/3ccto2pe34oo7.js"].map(t=>s.l(t))).then(()=>t(10514)))},43552,s=>{s.v(t=>Promise.all(["static/chunks/0we1u7wvqw3ar.js","static/chunks/3ccto2pe34oo7.js"].map(t=>s.l(t))).then(()=>t(7741)))},8503,s=>{s.v(t=>Promise.all(["static/chunks/18mh54xq67c88.js"].map(t=>s.l(t))).then(()=>t(52312)))},49451,s=>{s.v(t=>Promise.all(["static/chunks/392_gnui6c3_v.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(13813)))},55508,s=>{s.v(t=>Promise.all(["static/chunks/0sjbhfjuaz06z.js","static/chunks/1eug5fj-eosbb.js","static/chunks/3u05e2qrj2rg1.js"].map(t=>s.l(t))).then(()=>t(39464)))},99499,s=>{s.v(t=>Promise.all(["static/chunks/0k-fpb8jtae5e.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(63437)))},36959,s=>{s.v(t=>Promise.all(["static/chunks/2b_j3bvwss8mr.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(20907)))},39490,s=>{s.v(t=>Promise.all(["static/chunks/2zadlfv8zopv2.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(47969)))},36896,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/0rvhvizsk-a9n.js"].map(t=>s.l(t))).then(()=>t(31283)))},59577,s=>{s.v(t=>Promise.all(["static/chunks/2ullopifzas0l.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(49666)))},92339,s=>{s.v(t=>Promise.all(["static/chunks/0t2w0h6yrhayn.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(75999)))},35924,s=>{s.v(t=>Promise.all(["static/chunks/2jqcxui4e83x8.js"].map(t=>s.l(t))).then(()=>t(66354)))},23057,s=>{s.v(t=>Promise.all(["static/chunks/372zdrq_4q_yk.js","static/chunks/3zgr7xgr1lrfm.js"].map(t=>s.l(t))).then(()=>t(80602)))},9613,s=>{s.v(t=>Promise.all(["static/chunks/0h-upsn6lazz9.js","static/chunks/12m8rcgxkdzja.js"].map(t=>s.l(t))).then(()=>t(65757)))},13639,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/43e_nsxfczd1e.js"].map(t=>s.l(t))).then(()=>t(684)))},82566,s=>{s.v(t=>Promise.all(["static/chunks/0rb949uv5y87h.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(15419)))},31219,s=>{s.v(t=>Promise.all(["static/chunks/17ehi3g5l9etk.js"].map(t=>s.l(t))).then(()=>t(97875)))},67890,s=>{s.v(t=>Promise.all(["static/chunks/438wum-e609_i.js"].map(t=>s.l(t))).then(()=>t(44719)))},40492,s=>{s.v(t=>Promise.all(["static/chunks/0sa0dah8mlb4w.js"].map(t=>s.l(t))).then(()=>t(49238)))},12897,s=>{s.v(t=>Promise.all(["static/chunks/3w5dguqd926r9.js"].map(t=>s.l(t))).then(()=>t(38037)))},89544,s=>{s.v(t=>Promise.all(["static/chunks/448ohb5hg_3-c.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(85430)))},77817,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/174i2qmrjeph5.js"].map(t=>s.l(t))).then(()=>t(9960)))},14619,s=>{s.v(t=>Promise.all(["static/chunks/0mss7vhmqfwiz.js"].map(t=>s.l(t))).then(()=>t(62156)))},59065,s=>{s.v(t=>Promise.all(["static/chunks/158_ui7mne2sj.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(24159)))},33485,s=>{s.v(t=>Promise.all(["static/chunks/2i_rcm-86s3y9.js"].map(t=>s.l(t))).then(()=>t(49196)))},37976,s=>{s.v(t=>Promise.all(["static/chunks/37irq5wx58644.js"].map(t=>s.l(t))).then(()=>t(12800)))},46986,s=>{s.v(t=>Promise.all(["static/chunks/03ol6t2az7l9_.js","static/chunks/2sf_j1ga6us3v.js"].map(t=>s.l(t))).then(()=>t(76908)))},52785,s=>{s.v(t=>Promise.all(["static/chunks/1x96wv64j2e0i.js","static/chunks/207ljeyjygmh1.js","static/chunks/3u05e2qrj2rg1.js","static/chunks/1eug5fj-eosbb.js"].map(t=>s.l(t))).then(()=>t(15448)))},9063,s=>{s.v(t=>Promise.all(["static/chunks/12n1r0ggdhuie.js","static/chunks/207ljeyjygmh1.js"].map(t=>s.l(t))).then(()=>t(65682)))},32805,s=>{s.v(t=>Promise.all(["static/chunks/36f32g0zc0axf.js","static/chunks/2hm1exjf04rzo.js","static/chunks/3u05e2qrj2rg1.js"].map(t=>s.l(t))).then(()=>t(9826)))},72624,s=>{s.v(t=>Promise.all(["static/chunks/1_f69cuuyiemu.js","static/chunks/3zgr7xgr1lrfm.js"].map(t=>s.l(t))).then(()=>t(95417)))},8288,s=>{s.v(t=>Promise.all(["static/chunks/1m-4n8h_v-ak9.js"].map(t=>s.l(t))).then(()=>t(30481)))},31733,s=>{s.v(t=>Promise.all(["static/chunks/1ttbx6ayn58f6.js"].map(t=>s.l(t))).then(()=>t(23060)))},99089,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/3vfcqed6x1q8p.js"].map(t=>s.l(t))).then(()=>t(57245)))},8874,s=>{s.v(t=>Promise.all(["static/chunks/2yk59ik12pbte.js","static/chunks/3zu7lqbyezet8.js"].map(t=>s.l(t))).then(()=>t(36674)))}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39484,s=>{s.v(t=>Promise.all(["static/chunks/007qy2r9aq0hf.js"].map(t=>s.l(t))).then(()=>t(16400)))},53634,s=>{s.v(t=>Promise.all(["static/chunks/0livhl86ehrs-.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(4246)))},99073,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/0zx7_y1xwx4-6.js"].map(t=>s.l(t))).then(()=>t(585)))},68602,s=>{s.v(t=>Promise.all(["static/chunks/3ed96tb7kaefk.js","static/chunks/21vltjheqed6k.js","static/chunks/3u05e2qrj2rg1.js"].map(t=>s.l(t))).then(()=>t(250)))},77184,s=>{s.v(t=>Promise.all(["static/chunks/2w8tzerm1gxsv.js","static/chunks/3t8nlv8qyxdfh.js"].map(t=>s.l(t))).then(()=>t(75867)))},72003,s=>{"use strict";var t=s.i(6961),a=s.i(19524);s.i(47716);var e=s.i(23685),i=(0,a.p)(s=>{let{securityLevel:a}=(0,t.z)(),i=(0,e.f)("body");if("sandbox"===a){let t=(0,e.f)(`#i${s}`),a=t.node()?.contentDocument??document;i=(0,e.f)(a.body)}return i.select(`#${s}`)},"selectSvgElement");s.s(["f",0,i])},25133,s=>{"use strict";var t=s.i(36420),a=s.i(7744),e=s.i(19886),i=s.i(6961),l=s.i(8324),c=s.i(19524),n={common:i.E,getConfig:i.N,insertCluster:a.h,insertEdge:t.J,insertEdgeLabel:t.U,insertMarkers:t.o,insertNode:a.I,interpolateToCurve:e.x,labelHelper:a.J,log:l.d,positionEdgeLabel:t.a},r={},h=(0,c.p)(s=>{for(let t of s)r[t.name]=t},"registerLayoutLoaders");(0,c.p)(()=>{h([{name:"dagre",loader:(0,c.p)(async()=>await s.A(55508),"loader")},{name:"swimlane",loader:(0,c.p)(async()=>await s.A(32805),"loader")},{name:"cose-bilkent",loader:(0,c.p)(async()=>await s.A(8503),"loader")}])},"registerDefaultLayoutLoaders")();var o=(0,c.p)(async(s,t,a)=>{if(!(s.layoutAlgorithm in r))throw Error(`Unknown layout algorithm: ${s.layoutAlgorithm}`);if(s.diagramId)for(let t of s.nodes){let a=t.domId||t.id;t.domId=`${s.diagramId}-${a}`}let e=r[s.layoutAlgorithm],i=await e.loader(),{theme:l,themeVariables:c}=s.config,{useGradient:h,gradientStart:o,gradientStop:u}=c,m=t.attr("id");if(t.append("defs").append("filter").attr("id",`${m}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${m}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),h){let s=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");s.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),s.append("svg:stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}return i.render(s,t,n,{algorithm:e.algorithm},a)},"render"),u=(0,c.p)((s="",{fallback:t="dagre"}={})=>{if(s in r)return s;if(t in r)return l.d.warn(`Layout algorithm ${s} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${s} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");s.s(["G",0,u,"F",0,h,"a",0,o])},90784,s=>{s.v(t=>Promise.all(["static/chunks/0mj0hlhsux3mx.js","static/chunks/3ccto2pe34oo7.js"].map(t=>s.l(t))).then(()=>t(10514)))},43552,s=>{s.v(t=>Promise.all(["static/chunks/0we1u7wvqw3ar.js","static/chunks/3ccto2pe34oo7.js"].map(t=>s.l(t))).then(()=>t(7741)))},8503,s=>{s.v(t=>Promise.all(["static/chunks/18mh54xq67c88.js"].map(t=>s.l(t))).then(()=>t(52312)))},49451,s=>{s.v(t=>Promise.all(["static/chunks/392_gnui6c3_v.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(13813)))},55508,s=>{s.v(t=>Promise.all(["static/chunks/0sjbhfjuaz06z.js","static/chunks/1eug5fj-eosbb.js","static/chunks/3u05e2qrj2rg1.js"].map(t=>s.l(t))).then(()=>t(39464)))},99499,s=>{s.v(t=>Promise.all(["static/chunks/0k-fpb8jtae5e.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(63437)))},36959,s=>{s.v(t=>Promise.all(["static/chunks/2b_j3bvwss8mr.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(20907)))},39490,s=>{s.v(t=>Promise.all(["static/chunks/2zadlfv8zopv2.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(47969)))},36896,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/0rvhvizsk-a9n.js"].map(t=>s.l(t))).then(()=>t(31283)))},59577,s=>{s.v(t=>Promise.all(["static/chunks/2ullopifzas0l.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(49666)))},92339,s=>{s.v(t=>Promise.all(["static/chunks/0t2w0h6yrhayn.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(75999)))},35924,s=>{s.v(t=>Promise.all(["static/chunks/2jqcxui4e83x8.js"].map(t=>s.l(t))).then(()=>t(66354)))},23057,s=>{s.v(t=>Promise.all(["static/chunks/372zdrq_4q_yk.js","static/chunks/3zgr7xgr1lrfm.js"].map(t=>s.l(t))).then(()=>t(80602)))},9613,s=>{s.v(t=>Promise.all(["static/chunks/0h-upsn6lazz9.js","static/chunks/12m8rcgxkdzja.js"].map(t=>s.l(t))).then(()=>t(65757)))},13639,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/43e_nsxfczd1e.js"].map(t=>s.l(t))).then(()=>t(684)))},82566,s=>{s.v(t=>Promise.all(["static/chunks/0rb949uv5y87h.js","static/chunks/3354y3p3xps9z.js"].map(t=>s.l(t))).then(()=>t(15419)))},31219,s=>{s.v(t=>Promise.all(["static/chunks/17ehi3g5l9etk.js"].map(t=>s.l(t))).then(()=>t(97875)))},67890,s=>{s.v(t=>Promise.all(["static/chunks/438wum-e609_i.js"].map(t=>s.l(t))).then(()=>t(44719)))},40492,s=>{s.v(t=>Promise.all(["static/chunks/0sa0dah8mlb4w.js"].map(t=>s.l(t))).then(()=>t(49238)))},12897,s=>{s.v(t=>Promise.all(["static/chunks/3w5dguqd926r9.js"].map(t=>s.l(t))).then(()=>t(38037)))},89544,s=>{s.v(t=>Promise.all(["static/chunks/448ohb5hg_3-c.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(85430)))},77817,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/174i2qmrjeph5.js"].map(t=>s.l(t))).then(()=>t(9960)))},14619,s=>{s.v(t=>Promise.all(["static/chunks/0mss7vhmqfwiz.js"].map(t=>s.l(t))).then(()=>t(62156)))},59065,s=>{s.v(t=>Promise.all(["static/chunks/158_ui7mne2sj.js","static/chunks/3354y3p3xps9z.js","static/chunks/1jg1wvn9qvlj5.js"].map(t=>s.l(t))).then(()=>t(24159)))},33485,s=>{s.v(t=>Promise.all(["static/chunks/2i_rcm-86s3y9.js"].map(t=>s.l(t))).then(()=>t(49196)))},37976,s=>{s.v(t=>Promise.all(["static/chunks/37irq5wx58644.js"].map(t=>s.l(t))).then(()=>t(12800)))},46986,s=>{s.v(t=>Promise.all(["static/chunks/03ol6t2az7l9_.js","static/chunks/2sf_j1ga6us3v.js"].map(t=>s.l(t))).then(()=>t(76908)))},52785,s=>{s.v(t=>Promise.all(["static/chunks/1x96wv64j2e0i.js","static/chunks/207ljeyjygmh1.js","static/chunks/3u05e2qrj2rg1.js","static/chunks/1eug5fj-eosbb.js"].map(t=>s.l(t))).then(()=>t(15448)))},9063,s=>{s.v(t=>Promise.all(["static/chunks/12n1r0ggdhuie.js","static/chunks/207ljeyjygmh1.js"].map(t=>s.l(t))).then(()=>t(65682)))},32805,s=>{s.v(t=>Promise.all(["static/chunks/36f32g0zc0axf.js","static/chunks/2hm1exjf04rzo.js","static/chunks/3u05e2qrj2rg1.js"].map(t=>s.l(t))).then(()=>t(9826)))},72624,s=>{s.v(t=>Promise.all(["static/chunks/1_f69cuuyiemu.js","static/chunks/3zgr7xgr1lrfm.js"].map(t=>s.l(t))).then(()=>t(95417)))},8288,s=>{s.v(t=>Promise.all(["static/chunks/1m-4n8h_v-ak9.js"].map(t=>s.l(t))).then(()=>t(30481)))},31733,s=>{s.v(t=>Promise.all(["static/chunks/1ttbx6ayn58f6.js"].map(t=>s.l(t))).then(()=>t(23060)))},99089,s=>{s.v(t=>Promise.all(["static/chunks/1qg64a_10lw3z.js","static/chunks/3354y3p3xps9z.js","static/chunks/3vfcqed6x1q8p.js"].map(t=>s.l(t))).then(()=>t(57245)))},8874,s=>{s.v(t=>Promise.all(["static/chunks/2yk59ik12pbte.js","static/chunks/3zu7lqbyezet8.js"].map(t=>s.l(t))).then(()=>t(36674)))}]);
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "markshelf",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "markshelf",
9
- "version": "0.5.0",
9
+ "version": "0.6.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@tailwindcss/typography": "^0.5.19",
13
13
  "cytoscape": "^3.33.2",
14
+ "cytoscape-fcose": "^2.2.0",
14
15
  "lucide-react": "^1.8.0",
15
16
  "mermaid": "^11.14.0",
16
17
  "next": "16.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markshelf",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Structured markdown viewer for git repositories",
5
5
  "license": "MIT",
6
6
  "author": "sksp.work",
@@ -47,6 +47,7 @@
47
47
  "dependencies": {
48
48
  "@tailwindcss/typography": "^0.5.19",
49
49
  "cytoscape": "^3.33.2",
50
+ "cytoscape-fcose": "^2.2.0",
50
51
  "lucide-react": "^1.8.0",
51
52
  "mermaid": "^11.14.0",
52
53
  "next": "16.4.0",
@@ -2,10 +2,13 @@
2
2
 
3
3
  import { useEffect, useMemo, useRef, useState } from "react";
4
4
  import cytoscape from "cytoscape";
5
+ import fcose from "cytoscape-fcose";
5
6
  import { useRefreshTick } from "@/lib/useRefreshTick";
6
7
  import { withBasePath } from "@/lib/basePath";
7
8
  import { Filter } from "lucide-react";
8
9
 
10
+ cytoscape.use(fcose);
11
+
9
12
  interface GraphNode {
10
13
  id: string;
11
14
  label: string;
@@ -40,6 +43,18 @@ const DEPTH_OPTIONS: { value: number; label: string }[] = [
40
43
  { value: Infinity, label: "全階層" },
41
44
  ];
42
45
 
46
+ function seededRandom(seed: string): () => number {
47
+ let h = 2166136261;
48
+ for (let i = 0; i < seed.length; i++) h = Math.imul(h ^ seed.charCodeAt(i), 16777619);
49
+ // mulberry32
50
+ return () => {
51
+ h = (h + 0x6d2b79f5) | 0;
52
+ let t = Math.imul(h ^ (h >>> 15), 1 | h);
53
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
54
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
55
+ };
56
+ }
57
+
43
58
  export function LinkGraph({ currentPath, folders, onNavigate, onPreviewShow, onPreviewHide }: Props) {
44
59
  const containerRef = useRef<HTMLDivElement>(null);
45
60
  const cyRef = useRef<cytoscape.Core | null>(null);
@@ -171,11 +186,6 @@ export function LinkGraph({ currentPath, folders, onNavigate, onPreviewShow, onP
171
186
  (e) => connectedPaths.has(e.source) && connectedPaths.has(e.target),
172
187
  );
173
188
 
174
- // roots = nodes with no incoming edge within the component
175
- const hasIncoming = new Set<string>();
176
- for (const e of localEdges) hasIncoming.add(e.target);
177
- const rootPaths = localNodes.map((n) => n.id).filter((id) => !hasIncoming.has(id));
178
-
179
189
  // Merge A→B and B→A into a single bidirectional edge
180
190
  const edgeKeys = new Set(localEdges.map((e) => `${e.source}\0${e.target}`));
181
191
  const seenPairs = new Set<string>();
@@ -198,100 +208,109 @@ export function LinkGraph({ currentPath, folders, onNavigate, onPreviewShow, onP
198
208
  // Destroy previous instance
199
209
  cyRef.current?.destroy();
200
210
 
201
- const cy = cytoscape({
202
- container: containerRef.current,
203
- elements: [
204
- ...localNodes.map((n) => ({
205
- data: {
206
- id: n.id,
207
- label: n.label,
208
- isCurrent: n.id === currentPath,
211
+ // fcose uses Math.random; seed it so the layout is stable across refreshes
212
+ const originalRandom = Math.random;
213
+ Math.random = seededRandom(currentPath);
214
+ let cy: cytoscape.Core;
215
+ try {
216
+ cy = cytoscape({
217
+ container: containerRef.current,
218
+ elements: [
219
+ ...localNodes.map((n) => ({
220
+ data: {
221
+ id: n.id,
222
+ label: n.label,
223
+ isCurrent: n.id === currentPath,
224
+ },
225
+ })),
226
+ ...displayEdges.map((e, i) => ({
227
+ data: {
228
+ id: `e${i}`,
229
+ source: e.source,
230
+ target: e.target,
231
+ mutual: e.mutual,
232
+ },
233
+ })),
234
+ ],
235
+ style: [
236
+ {
237
+ selector: "node",
238
+ style: {
239
+ label: "data(label)",
240
+ "text-valign": "bottom",
241
+ "text-halign": "center",
242
+ "font-size": "11px",
243
+ "font-family": "var(--font-sans)",
244
+ color: "#4a5060",
245
+ "text-margin-y": 6,
246
+ "background-color": "#e8f0fe",
247
+ "border-width": 2,
248
+ "border-color": "#3b7ddb",
249
+ width: 28,
250
+ height: 28,
251
+ "text-max-width": "180px",
252
+ "text-wrap": "ellipsis",
253
+ "cursor": "pointer",
254
+ } as cytoscape.Css.Node,
209
255
  },
210
- })),
211
- ...displayEdges.map((e, i) => ({
212
- data: {
213
- id: `e${i}`,
214
- source: e.source,
215
- target: e.target,
216
- mutual: e.mutual,
256
+ {
257
+ selector: "node[?isCurrent]",
258
+ style: {
259
+ "background-color": "#2563eb",
260
+ "border-color": "#1d4ed8",
261
+ color: "#1a1d23",
262
+ "font-weight": "bold" as const,
263
+ width: 36,
264
+ height: 36,
265
+ } as cytoscape.Css.Node,
217
266
  },
218
- })),
219
- ],
220
- style: [
221
- {
222
- selector: "node",
223
- style: {
224
- label: "data(label)",
225
- "text-valign": "bottom",
226
- "text-halign": "center",
227
- "font-size": "11px",
228
- "font-family": "var(--font-sans)",
229
- color: "#4a5060",
230
- "text-margin-y": 6,
231
- "background-color": "#e8f0fe",
232
- "border-width": 2,
233
- "border-color": "#3b7ddb",
234
- width: 28,
235
- height: 28,
236
- "text-max-width": "180px",
237
- "text-wrap": "ellipsis",
238
- "cursor": "pointer",
239
- } as cytoscape.Css.Node,
240
- },
241
- {
242
- selector: "node[?isCurrent]",
243
- style: {
244
- "background-color": "#2563eb",
245
- "border-color": "#1d4ed8",
246
- color: "#1a1d23",
247
- "font-weight": "bold" as const,
248
- width: 36,
249
- height: 36,
250
- } as cytoscape.Css.Node,
251
- },
252
- {
253
- selector: "edge",
254
- style: {
255
- width: 1.5,
256
- "line-color": "#c8ccd3",
257
- "target-arrow-color": "#c8ccd3",
258
- "target-arrow-shape": "triangle",
259
- "curve-style": "bezier",
260
- "arrow-scale": 0.8,
261
- } as cytoscape.Css.Edge,
262
- },
263
- {
264
- selector: "edge[?mutual]",
265
- style: {
266
- width: 2,
267
- "line-color": "#8fb0e8",
268
- "target-arrow-color": "#8fb0e8",
269
- "source-arrow-color": "#8fb0e8",
270
- "source-arrow-shape": "triangle",
271
- } as cytoscape.Css.Edge,
272
- },
273
- {
274
- selector: "node:active",
275
- style: {
276
- "overlay-opacity": 0,
277
- } as cytoscape.Css.Node,
278
- },
279
- ],
280
- layout: {
281
- name: "breadthfirst",
282
- animate: false,
283
- padding: 50,
284
- spacingFactor: 1.2,
285
- directed: true,
286
- grid: false,
287
- roots: rootPaths.length > 0 ? rootPaths : [currentPath],
288
- transform: (_node, pos) => ({ x: pos.x, y: -pos.y }),
289
- } as cytoscape.BreadthFirstLayoutOptions,
290
- userZoomingEnabled: true,
291
- userPanningEnabled: true,
292
- boxSelectionEnabled: false,
293
- autoungrabify: false,
294
- });
267
+ {
268
+ selector: "edge",
269
+ style: {
270
+ width: 1.5,
271
+ "line-color": "#c8ccd3",
272
+ "target-arrow-color": "#c8ccd3",
273
+ "target-arrow-shape": "triangle",
274
+ "curve-style": "bezier",
275
+ "arrow-scale": 0.8,
276
+ } as cytoscape.Css.Edge,
277
+ },
278
+ {
279
+ selector: "edge[?mutual]",
280
+ style: {
281
+ width: 2,
282
+ "line-color": "#8fb0e8",
283
+ "target-arrow-color": "#8fb0e8",
284
+ "source-arrow-color": "#8fb0e8",
285
+ "source-arrow-shape": "triangle",
286
+ } as cytoscape.Css.Edge,
287
+ },
288
+ {
289
+ selector: "node:active",
290
+ style: {
291
+ "overlay-opacity": 0,
292
+ } as cytoscape.Css.Node,
293
+ },
294
+ ],
295
+ layout: {
296
+ name: "fcose",
297
+ animate: false,
298
+ randomize: true,
299
+ quality: "proof",
300
+ padding: 50,
301
+ nodeDimensionsIncludeLabels: true,
302
+ idealEdgeLength: 120,
303
+ nodeRepulsion: 12000,
304
+ nodeSeparation: 100,
305
+ } as cytoscape.LayoutOptions,
306
+ userZoomingEnabled: true,
307
+ userPanningEnabled: true,
308
+ boxSelectionEnabled: false,
309
+ autoungrabify: false,
310
+ });
311
+ } finally {
312
+ Math.random = originalRandom;
313
+ }
295
314
 
296
315
  // Defer fit/center until container has layout dimensions
297
316
  requestAnimationFrame(() => {
@@ -0,0 +1,36 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85657,e=>{var t=e.i(89408),r=class extends t.zn{static{(0,t._f)(this,"WardleyValueConverter")}runCustomConverter(e,t,r){return"LINK_LABEL"===e.name.toUpperCase()?t.substring(1).trim():void 0}},i={parser:{ValueConverter:(0,t._f)(()=>new r,"ValueConverter")}};function s(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),n=(0,t.s3)((0,t.Ut)({shared:r}),t.a1,i);return r.ServiceRegistry.register(n),{shared:r,Wardley:n}}(0,t._f)(s,"createWardleyServices"),e.s(["u",0,i,"A",0,s])},40569,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},i=class extends t.zn{static{(0,t._f)(this,"RailroadAbnfValueConverter")}runConverter(e,t,r){let i=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof i){let e=i.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return e.slice(1,-1)}return i}runCustomConverter(e,t,r){if("ABNF_STRING"===e.name)return t.slice(1,-1)}},s={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new i,"ValueConverter")}};function n(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.mJ,s);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}(0,t._f)(n,"createRailroadAbnfServices"),e.s(["u",0,s,"a",0,n])},19135,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},i=new Set(["cmd","command"]),s=new Set(["evt","event"]),n=new Set(["rmo","readmodel"]),a=new Set(["pcr","processor"]),o=new Set(["ui"]);function l(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(e,t)}}(0,t._f)(l,"registerValidationChecks");var d=class{static{(0,t._f)(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){0!==e.sourceFrames.length&&(i.has(e.modelEntityType)?this.validateSources(e,new Set([...o,...a]),"command","ui or processor",t):s.has(e.modelEntityType)?this.validateSources(e,i,"event","command",t):n.has(e.modelEntityType)?this.validateSources(e,s,"read model","event",t):a.has(e.modelEntityType)?this.validateSources(e,n,"processor","read model",t):o.has(e.modelEntityType)&&this.validateSources(e,n,"ui","read model",t))}validateSources(e,t,r,i,s){for(let n of e.sourceFrames){let a=n.ref;void 0===a||t.has(a.modelEntityType)||s("error",`A ${r} can only receive input from a ${i}, not from '${a.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},c={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new t.Xl,"ValueConverter")},validation:{EventModelingValidator:(0,t._f)(()=>new d,"EventModelingValidator")}};function f(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.wU,c);return r.ServiceRegistry.register(i),l(i),{shared:r,EventModel:i}}(0,t._f)(f,"createEventModelingServices"),e.s(["w",0,c,"n",0,f])},33505,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},i=(0,t._f)(e=>{let t=e.slice(1,-1),r="";for(let e=0;e<t.length;e++){let i=t[e];if("\\"===i&&e+1<t.length){let i=t[++e];switch(i){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=i}continue}r+=i}return r},"decodeEscapedString"),s=class extends t.zn{static{(0,t._f)(this,"RailroadValueConverter")}runConverter(e,t,r){let s=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof s){let e=s.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return s}runCustomConverter(e,t,r){if("RR_STRING"===e.name)return i(t)}},n={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new s,"ValueConverter")}};function a(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.st,n);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}(0,t._f)(a,"createRailroadServices"),e.s(["P",0,n,"v",0,a])},26518,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},i={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new t.Xl,"ValueConverter")}};function s(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),n=(0,t.s3)((0,t.Ut)({shared:r}),t.cM,i);return r.ServiceRegistry.register(n),{shared:r,Info:n}}(0,t._f)(s,"createInfoServices"),e.s(["w",0,i,"n",0,s])},19809,e=>{var t=e.i(89408),r=class extends t.zn{static{(0,t._f)(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if("INDENTATION"===e.name)return t?.length||0;if("QUOTED_NAME"===e.name)return t.substring(1,t.length-1);if("BARE_NAME"===e.name)return t.replace(/[\t ]+$/,"");if("CLASS_ANNOTATION"===e.name)return t.trim().substring(3).trim();if("ICON_ANNOTATION"===e.name){let e=t.trim();return e.substring(5,e.length-1)}if("DESC_ANNOTATION"===e.name)return t.trim().substring(2).trim()}},i=class extends t.z6{static{(0,t._f)(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},s={parser:{TokenBuilder:(0,t._f)(()=>new i,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new r,"ValueConverter")}};function n(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.mC,s);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}(0,t._f)(n,"createTreeViewServices"),e.s(["U",0,s,"M",0,n])},32886,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},i={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new t.Xl,"ValueConverter")}};function s(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),n=(0,t.s3)((0,t.Ut)({shared:r}),t.vQ,i);return r.ServiceRegistry.register(n),{shared:r,GitGraph:n}}(0,t._f)(s,"createGitGraphServices"),e.s(["O",0,i,"E",0,s])},15750,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},i={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new t.Xl,"ValueConverter")}};function s(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),n=(0,t.s3)((0,t.Ut)({shared:r}),t.Wv,i);return r.ServiceRegistry.register(n),{shared:r,Packet:n}}(0,t._f)(s,"createPacketServices"),e.s(["n",0,i,"q",0,s])},2833,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},i=(0,t._f)(e=>{let t=e.slice(1,-1),r="";for(let e=0;e<t.length;e++){let i=t[e];if("\\"===i&&e+1<t.length){let i=t[++e];switch(i){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=i}continue}r+=i}return r},"decodeEscapedString"),s=class extends t.zn{static{(0,t._f)(this,"RailroadPegValueConverter")}runConverter(e,t,r){let s=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof s){let e=s.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return s}runCustomConverter(e,t,r){if("PEG_STRING"===e.name)return i(t)}},n={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new s,"ValueConverter")}};function a(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.Mf,n);return r.ServiceRegistry.register(i),{shared:r,RailroadPeg:i}}(0,t._f)(a,"createRailroadPegServices"),e.s(["W",0,n,"U",0,a])},32784,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},i=class extends t.zn{static{(0,t._f)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if("ARCH_ICON"===e.name)return t.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return t.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=t.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=(e=e.slice(1,-1)).replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},s={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new i,"ValueConverter")}};function n(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.qp,s);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}(0,t._f)(n,"createArchitectureServices"),e.s(["L",0,s,"w",0,n])},95461,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},i={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new t.Xl,"ValueConverter")}};function s(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),n=(0,t.s3)((0,t.Ut)({shared:r}),t.ym,i);return r.ServiceRegistry.register(n),{shared:r,Cynefin:n}}(0,t._f)(s,"createCynefinServices"),e.s(["o",0,i,"X",0,s])},49949,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},i={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new t.Xl,"ValueConverter")}};function s(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),n=(0,t.s3)((0,t.Ut)({shared:r}),t.ec,i);return r.ServiceRegistry.register(n),{shared:r,Radar:n}}(0,t._f)(s,"createRadarServices"),e.s(["n",0,i,"P",0,s])},84712,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},i=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,s=class extends t.zn{static{(0,t._f)(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;let e=i.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function n(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let e={Treemap:t.checkSingleRoot.bind(t)};r.register(e,t)}}(0,t._f)(n,"registerValidationChecks");var a=class{static{(0,t._f)(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let i of e.TreemapRows)i.item&&(void 0===r&&void 0===i.indent?r=0:void 0===i.indent?t("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}):void 0!==r&&r>=parseInt(i.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}))}},o={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new s,"ValueConverter")},validation:{TreemapValidator:(0,t._f)(()=>new a,"TreemapValidator")}};function l(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.sF,o);return r.ServiceRegistry.register(i),n(i),{shared:r,Treemap:i}}(0,t._f)(l,"createTreemapServices"),e.s(["j",0,o,"G",0,l])},86196,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},i=(0,t._f)(e=>{let t=e.slice(1,-1),r="";for(let e=0;e<t.length;e++){let i=t[e];if("\\"===i&&e+1<t.length){let i=t[++e];switch(i){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=i}continue}r+=i}return r},"decodeEscapedString"),s=class extends t.zn{static{(0,t._f)(this,"RailroadEbnfValueConverter")}runConverter(e,t,r){let s=super.runConverter(e,t,r);if("TITLE"===e.name&&"string"==typeof s){let e=s.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return i(e)}return s}runCustomConverter(e,t,r){return"EBNF_STRING"===e.name?i(t):"EBNF_SPECIAL_SEQUENCE"===e.name?t.slice(1,-1).trim():void 0}},n={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new s,"ValueConverter")}};function a(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.JM,n);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}(0,t._f)(a,"createRailroadEbnfServices"),e.s(["X",0,n,"S",0,a])},36539,e=>{var t=e.i(89408),r=class extends t.z6{static{(0,t._f)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},i=class extends t.zn{static{(0,t._f)(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},s={parser:{TokenBuilder:(0,t._f)(()=>new r,"TokenBuilder"),ValueConverter:(0,t._f)(()=>new i,"ValueConverter")}};function n(e=t.qh){let r=(0,t.s3)((0,t.ac)(e),t.Sg),i=(0,t.s3)((0,t.Ut)({shared:r}),t.K4,s);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}(0,t._f)(n,"createPieServices"),e.s(["y",0,s,"Q",0,n])},89590,e=>{e.i(49949),e.i(33505),e.i(86196),e.i(40569),e.i(2833),e.i(84712),e.i(85657),e.i(95461),e.i(32886),e.i(26518),e.i(15750),e.i(36539),e.i(19809),e.i(32784),e.i(19135);var t=e.i(89408),r={},i={info:(0,t._f)(async()=>{let{createInfoServices:t}=await e.A(98354);r.info=t().Info.parser.LangiumParser},"info"),packet:(0,t._f)(async()=>{let{createPacketServices:t}=await e.A(39695);r.packet=t().Packet.parser.LangiumParser},"packet"),pie:(0,t._f)(async()=>{let{createPieServices:t}=await e.A(37825);r.pie=t().Pie.parser.LangiumParser},"pie"),treeView:(0,t._f)(async()=>{let{createTreeViewServices:t}=await e.A(63580);r.treeView=t().TreeView.parser.LangiumParser},"treeView"),architecture:(0,t._f)(async()=>{let{createArchitectureServices:t}=await e.A(825);r.architecture=t().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,t._f)(async()=>{let{createGitGraphServices:t}=await e.A(54333);r.gitGraph=t().GitGraph.parser.LangiumParser},"gitGraph"),eventmodeling:(0,t._f)(async()=>{let{createEventModelingServices:t}=await e.A(71699);r.eventmodeling=t().EventModel.parser.LangiumParser},"eventmodeling"),radar:(0,t._f)(async()=>{let{createRadarServices:t}=await e.A(14408);r.radar=t().Radar.parser.LangiumParser},"radar"),railroad:(0,t._f)(async()=>{let{createRailroadServices:t}=await e.A(21269);r.railroad=t().Railroad.parser.LangiumParser},"railroad"),railroadEbnf:(0,t._f)(async()=>{let{createRailroadEbnfServices:t}=await e.A(73796);r.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},"railroadEbnf"),railroadAbnf:(0,t._f)(async()=>{let{createRailroadAbnfServices:t}=await e.A(58780);r.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},"railroadAbnf"),railroadPeg:(0,t._f)(async()=>{let{createRailroadPegServices:t}=await e.A(50684);r.railroadPeg=t().RailroadPeg.parser.LangiumParser},"railroadPeg"),treemap:(0,t._f)(async()=>{let{createTreemapServices:t}=await e.A(80527);r.treemap=t().Treemap.parser.LangiumParser},"treemap"),wardley:(0,t._f)(async()=>{let{createWardleyServices:t}=await e.A(48549);r.wardley=t().Wardley.parser.LangiumParser},"wardley"),cynefin:(0,t._f)(async()=>{let{createCynefinServices:t}=await e.A(84719);r.cynefin=t().Cynefin.parser.LangiumParser},"cynefin")};async function s(e,t){let s=i[e];if(!s)throw Error(`Unknown diagram type: ${e}`);r[e]||await s();let a=r[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new n(a);return a.value}(0,t._f)(s,"parse");var n=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>{let t=void 0===e.line||isNaN(e.line)?"?":e.line,r=void 0===e.column||isNaN(e.column)?"?":e.column;return`Lexer error on line ${t}, column ${r}: ${e.message}`}).join("\n"),r=e.parserErrors.map(e=>{let t=void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine,r=void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn;return`Parse error on line ${t}, column ${r}: ${e.message}`}).join("\n");super(`Parsing failed: ${t} ${r}`),this.result=e}static{(0,t._f)(this,"MermaidParseError")}};e.s(["L",0,n,"x",0,s])},585,e=>{var t=e.i(73474),r=e.i(72003),i=e.i(69786),s=e.i(41130),n=e.i(19886),a=e.i(6961),o=e.i(8324),l=e.i(19524),d=e.i(89590),c=e.i(77871),f=e.i(45108);e.i(47716);var h=e.i(23685),u={L:"left",R:"right",T:"top",B:"bottom"},g={L:(0,l.p)(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:(0,l.p)(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:(0,l.p)(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:(0,l.p)(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},p={L:(0,l.p)((e,t)=>e-t+2,"L"),R:(0,l.p)((e,t)=>e-2,"R"),T:(0,l.p)((e,t)=>e-t+2,"T"),B:(0,l.p)((e,t)=>e-2,"B")},m=(0,l.p)(function(e){return w(e)?"L"===e?"R":"L":"T"===e?"B":"T"},"getOppositeArchitectureDirection"),y=(0,l.p)(function(e){return"L"===e||"R"===e||"T"===e||"B"===e},"isArchitectureDirection"),w=(0,l.p)(function(e){return"L"===e||"R"===e},"isArchitectureDirectionX"),v=(0,l.p)(function(e){return"T"===e||"B"===e},"isArchitectureDirectionY"),k=(0,l.p)(function(e,t){let r=w(e)&&v(t),i=v(e)&&w(t);return r||i},"isArchitectureDirectionXY"),x=(0,l.p)(function(e){let t=e[0],r=e[1],i=w(t)&&v(r),s=v(t)&&w(r);return i||s},"isArchitecturePairXY"),T=(0,l.p)(function(e){return"LL"!==e&&"RR"!==e&&"TT"!==e&&"BB"!==e},"isValidArchitectureDirectionPair"),b=(0,l.p)(function(e,t){let r=`${e}${t}`;return T(r)?r:void 0},"getArchitectureDirectionPair"),S=(0,l.p)(function([e,t],r){let i=r[0],s=r[1];if(w(i))if(v(s))return[e+("L"===i?-1:1),t+("T"===s?1:-1)];else return[e+("L"===i?-1:1),t];return w(s)?[e+("L"===s?1:-1),t+("T"===i?1:-1)]:[e,t+("T"===i?1:-1)]},"shiftPositionByArchitectureDirectionPair"),E=(0,l.p)(function(e){return"LT"===e||"TL"===e?[1,1]:"BL"===e||"LB"===e?[1,-1]:"BR"===e||"RB"===e?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),C=(0,l.p)(function(e,t){return k(e,t)?"bend":w(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),$=(0,l.p)(function(e){return"service"===e.type},"isArchitectureService"),_=(0,l.p)(function(e){return"junction"===e.type},"isArchitectureJunction"),B=(0,l.p)((e,t)=>{let[r,i]=[e,t].sort();return`${JSON.stringify(r)}-${JSON.stringify(i)}`},"architectureGroupAlignmentKey"),A=(0,l.p)(e=>e.data(),"edgeData"),R=(0,l.p)(e=>e.data(),"nodeData"),I=a.f.architecture,L=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=a.b,this.getAccTitle=a.d,this.setDiagramTitle=a.a,this.getDiagramTitle=a.F,this.getAccDescription=a.j,this.setAccDescription=a.C,this.clear()}static{(0,l.p)(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}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,a.M)()}addService({id:e,icon:t,in:r,title:i,iconText:s}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(void 0!==r){if(e===r)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===this.registeredIds.get(r))throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:s,title:i,edges:[],in:r})}getServices(){return[...this.nodes.values()].filter($)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(void 0!==t){if(e===t)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if("node"===this.registeredIds.get(t))throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(_)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:r,title:i}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(void 0!==r){if(e===r)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===this.registeredIds.get(r))throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:i,in:r})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:r,rhsDir:i,lhsInto:s,rhsInto:n,lhsGroup:a,rhsGroup:o,title:l}){if(!y(r))throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!y(i))throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(i)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let d=this.nodes.get(e).in,c=this.nodes.get(t).in;if(a&&d&&c&&d==c)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(o&&d&&c&&d==c)throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);this.edges.push({lhsId:e,lhsDir:r,lhsInto:s,lhsGroup:a,rhsId:t,rhsDir:i,rhsInto:n,rhsGroup:o,title:l});let f=this.nodes.get(e),h=this.nodes.get(t);f&&h&&(f.edges.push(this.edges[this.edges.length-1]),h.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let t=new Set;e.members.forEach(r=>{if("node"!==this.registeredIds.get(r))throw Error(`align ${e.direction} references [${r}], which is not a service or junction`);if(t.has(r))throw Error(`align ${e.direction} lists [${r}] more than once`);t.add(r)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(void 0===this.dataStructures){let e=new Map,t=new Map;for(let[r,i]of this.nodes.entries()){let s=new Map;for(let t of i.edges){let i=this.getNode(t.lhsId)?.in,n=this.getNode(t.rhsId)?.in;if(i&&n&&i!==n){let r=C(t.lhsDir,t.rhsDir);"bend"!==r&&e.set(B(i,n),r)}if(t.lhsId===r){let e=b(t.lhsDir,t.rhsDir);e&&s.set(e,t.rhsId)}else{let e=b(t.rhsDir,t.lhsDir);e&&s.set(e,t.lhsId)}}t.set(r,s)}let r=new Set,i=new Set(t.keys()),s=(0,l.p)(e=>{let s=new Map([[e,[0,0]]]),n=[e];for(;n.length>0;){let e=n.shift();if(e){r.add(e),i.delete(e);let a=t.get(e);if(!a)throw Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);let o=s.get(e);if(!o)throw Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);let[l,d]=o;a.forEach((e,t)=>{r.has(e)||(s.set(e,S([l,d],t)),n.push(e))})}}return s},"BFS"),n=[];for(;i.size>0;){let e=i.values().next().value;n.push(s(e))}this.dataStructures={adjList:t,spatialMaps:n,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return(0,n.z)({...I,...(0,a.N)().architecture})}getConfigField(e){return this.getConfig()[e]}},P=(0,l.p)((e,r)=>{(0,t.f)(e,r),e.groups.map(e=>r.addGroup(e)),e.services.map(e=>r.addService({...e,type:"service"})),e.junctions.map(e=>r.addJunction({...e,type:"junction"})),e.edges.map(e=>r.addEdge(e)),e.alignments?.map(e=>r.addLayoutHint({direction:e.direction,members:[...e.members]}))},"populateDb"),V={parser:{yy:void 0},parse:(0,l.p)(async e=>{let t=await (0,d.x)("architecture",e);o.d.debug(t);let r=V.parser?.yy;if(!(r instanceof L))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.");P(t,r)},"parse")},M=(0,l.p)(e=>`
2
+ .edge {
3
+ stroke-width: ${e.archEdgeWidth};
4
+ stroke: ${e.archEdgeColor};
5
+ fill: none;
6
+ }
7
+
8
+ .arrow {
9
+ fill: ${e.archEdgeArrowColor};
10
+ }
11
+
12
+ .node-bkg {
13
+ fill: none;
14
+ stroke: ${e.archGroupBorderColor};
15
+ stroke-width: ${e.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 N(e,t){if(0===e)return t();let r=Math.random,i=e>>>0;Math.random=function(){let e=i=i+0x6d2b79f5>>>0;return e=Math.imul(e^e>>>15,1|e),(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000};try{return t()}finally{Math.random=r}}(0,l.p)(N,"withSeededRandom");var z=(0,l.p)(e=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),D={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:z('<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:z('<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:z('<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:z('<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:z('<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:s.e,blank:{body:z("")}}},F=(0,l.p)(async function(e,t,r,s){let o=r.getConfigField("padding"),l=r.getConfigField("iconSize"),d=l/2,c=l/6,f=c/2;await Promise.all(t.edges().map(async t=>{let{source:l,sourceDir:h,sourceArrow:u,sourceGroup:m,target:y,targetDir:T,targetArrow:S,targetGroup:C,label:$}=A(t),{x:_,y:B}=t[0].sourceEndpoint(),{x:R,y:I}=t[0].midpoint(),{x:L,y:P}=t[0].targetEndpoint(),V=o+4;if(m&&(w(h)?_+="L"===h?-V:V:B+="T"===h?-V:V+18),C&&(w(T)?L+="L"===T?-V:V:P+="T"===T?-V:V+18),m||r.getNode(l)?.type!=="junction"||(w(h)?_+="L"===h?d:-d:B+="T"===h?d:-d),C||r.getNode(y)?.type!=="junction"||(w(T)?L+="L"===T?d:-d:P+="T"===T?d:-d),t[0]._private.rscratch){let t=e.insert("g");if(t.insert("path").attr("d",`M ${_},${B} L ${R},${I} L${L},${P} `).attr("class","edge").attr("id",`${s}-${(0,n.i)(l,y,{prefix:"L"})}`),u){let e=w(h)?p[h](_,c):_-f,r=v(h)?p[h](B,c):B-f;t.insert("polygon").attr("points",g[h](c)).attr("transform",`translate(${e},${r})`).attr("class","arrow")}if(S){let e=w(T)?p[T](L,c):L-f,r=v(T)?p[T](P,c):P-f;t.insert("polygon").attr("points",g[T](c)).attr("transform",`translate(${e},${r})`).attr("class","arrow")}if($){let e=k(h,T)?"XY":w(h)?"X":"Y",r=0;r="X"===e?Math.abs(_-L):"Y"===e?Math.abs(B-P)/1.5:Math.abs(_-L)/2;let s=t.append("g");if(await (0,i.w)(s,$,{useHtmlLabels:!1,width:r,classes:"architecture-service-label"},(0,a.z)()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===e)s.attr("transform","translate("+R+", "+I+")");else if("Y"===e)s.attr("transform","translate("+R+", "+I+") rotate(-90)");else if("XY"===e){let e=b(h,T);if(e&&x(e)){let t=s.node().getBoundingClientRect(),[r,i]=E(e);s.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*r*i*45})`);let n=s.node().getBoundingClientRect();s.attr("transform",`
33
+ translate(${R}, ${I-t.height/2})
34
+ translate(${r*n.width/2}, ${i*n.height/2})
35
+ rotate(${-1*r*i*45}, 0, ${t.height/2})
36
+ `)}}}}}))},"drawEdges"),G=(0,l.p)(async function(e,t,r,n){let o=.75*r.getConfigField("padding"),l=r.getConfigField("fontSize"),d=r.getConfigField("iconSize")/2;await Promise.all(t.nodes().map(async t=>{let c=R(t);if("group"===c.type){let{h:f,w:h,x1:u,y1:g}=t.boundingBox(),p=e.append("rect");p.attr("id",`${n}-group-${c.id}`).attr("x",u+d).attr("y",g+d).attr("width",h).attr("height",f).attr("class","node-bkg");let m=e.append("g"),y=u,w=g;if(c.icon){let e=m.append("g");e.html(`<g>${await (0,s.v)(c.icon,{height:o,width:o,fallbackPrefix:D.prefix})}</g>`),e.attr("transform","translate("+(y+d+1)+", "+(w+d+1)+")"),y+=o,w+=l/2-1-2}if(c.label){let e=m.append("g");await (0,i.w)(e,c.label,{useHtmlLabels:!1,width:h,classes:"architecture-service-label"},(0,a.z)()),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),e.attr("transform","translate("+(y+d+4)+", "+(w+d+2)+")")}r.setElementForId(c.id,p)}}))},"drawGroups"),W=(0,l.p)(async function(e,t,r,n){let o=(0,a.z)();for(let l of r){let r=t.append("g"),d=e.getConfigField("iconSize");if(l.title){let e=r.append("g");await (0,i.w)(e,l.title,{useHtmlLabels:!1,width:1.5*d,classes:"architecture-service-label"},o),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),e.attr("transform","translate("+d/2+", "+d+")")}let c=r.append("g");if(l.icon)c.html(`<g>${await (0,s.v)(l.icon,{height:d,width:d,fallbackPrefix:D.prefix})}</g>`);else if(l.iconText){c.html(`<g>${await (0,s.v)("blank",{height:d,width:d,fallbackPrefix:D.prefix})}</g>`);let e=c.append("g").append("foreignObject").attr("width",d).attr("height",d).append("div").attr("class","node-icon-text").attr("style",`height: ${d}px;`).append("div").html((0,a.w)(l.iconText,o)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;e.attr("style",`-webkit-line-clamp: ${Math.floor((d-2)/t)};`)}else c.append("path").attr("class","node-bkg").attr("id",`${n}-node-${l.id}`).attr("d",`M0,${d} V5 Q0,0 5,0 H${d-5} Q${d},0 ${d},5 V${d} Z`);r.attr("id",`${n}-service-${l.id}`).attr("class","architecture-service");let{width:f,height:h}=r.node().getBBox();l.width=f,l.height=h,e.setElementForId(l.id,r)}return 0},"drawServices"),j=(0,l.p)(function(e,t,r,i){r.forEach(r=>{let s=t.append("g"),n=e.getConfigField("iconSize");s.append("g").append("rect").attr("id",`${i}-node-${r.id}`).attr("fill-opacity","0").attr("width",n).attr("height",n),s.attr("class","architecture-junction");let{width:a,height:o}=s._groups[0][0].getBBox();s.width=a,s.height=o,e.setElementForId(r.id,s)})},"drawJunctions");function U(e,t,r){e.forEach(e=>{t.add({group:"nodes",data:{type:"service",id:e.id,icon:e.icon,label:e.title,parent:e.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}function O(e,t,r){e.forEach(e=>{t.add({group:"nodes",data:{type:"junction",id:e.id,parent:e.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}function q(e,t){t.nodes().map(t=>{let r=R(t);"group"===r.type||(r.x=t.position().x,r.y=t.position().y,e.getElementById(r.id).attr("transform","translate("+(r.x||0)+","+(r.y||0)+")"))})}function X(e,t){e.forEach(e=>{t.add({group:"nodes",data:{type:"group",id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:"node-group"})})}function H(e,t){e.forEach(e=>{let{lhsId:r,rhsId:i,lhsInto:s,lhsGroup:n,rhsInto:a,lhsDir:o,rhsDir:l,rhsGroup:d,title:c}=e,f=k(e.lhsDir,e.rhsDir)?"segments":"straight",h={id:`${r}-${i}`,label:c,source:r,sourceDir:o,sourceArrow:s,sourceGroup:n,sourceEndpoint:"L"===o?"0 50%":"R"===o?"100% 50%":"T"===o?"50% 0":"50% 100%",target:i,targetDir:l,targetArrow:a,targetGroup:d,targetEndpoint:"L"===l?"0 50%":"R"===l?"100% 50%":"T"===l?"50% 0":"50% 100%"};t.add({group:"edges",data:h,classes:f})})}function J(e,t,r,i=[]){let s=(0,l.p)((e,t)=>{let i=new Map;for(let[s,n]of e.entries()){let e=`${s}`,a=0,o=[...n.entries()];if(1===o.length){i.set(e,o[0][1]);continue}for(let s=0;s<o.length-1;s++)for(let n=s+1;n<o.length;n++){let[l,d]=o[s],[c,f]=o[n];if(r.get(B(l,c))===t)i.set(e,[...i.get(e)??[],...d,...f]);else if("default"===l||"default"===c)i.set(e,[...i.get(e)??[],...d,...f]);else{let t=`${e}-${a++}`;i.set(t,d);let r=`${e}-${a++}`;i.set(r,f)}}}return i},"flattenAlignments"),[n,a]=t.map(t=>{let r=new Map,i=new Map;return t.forEach(([t,s],n)=>{let a=e.getNode(n)?.in??"default",o=r.get(s)??new Map;r.has(s)||r.set(s,o);let l=i.get(t)??new Map;for(let e of(i.has(t)||i.set(t,l),[o,l])){let t=e.get(a)??[];e.has(a)||e.set(a,t),t.push(n)}}),{horiz:[...s(r,"horizontal").values()].filter(e=>e.length>1),vert:[...s(i,"vertical").values()].filter(e=>e.length>1)}}).reduce(([e,t],{horiz:r,vert:i})=>[[...e,...r],[...t,...i]],[[],[]]),o=new Set;i.forEach(e=>e.members.forEach(e=>o.add(e)));let d=(0,l.p)(e=>e.filter(e=>!e.some(e=>o.has(e))),"dropOverlapping"),c=d(n),f=d(a);return i.forEach(e=>{e.members.length<2||("row"===e.direction?c.push([...e.members]):f.push([...e.members]))}),{horizontal:c,vertical:f}}function Z(e,t,r=[]){let i=[],s=t.getConfigField("iconSize"),n=t.getConfigField("idealEdgeLengthMultiplier"),a=n*s,o=new Set;r.forEach(e=>{for(let t=0;t<e.members.length-1;t++){let r=e.members[t],s=e.members[t+1];o.add(`${r}|${s}`),o.add(`${s}|${r}`),"row"===e.direction?i.push({left:r,right:s,gap:a}):i.push({top:r,bottom:s,gap:a})}});let d=(0,l.p)(e=>`${e[0]},${e[1]}`,"posToStr"),c=(0,l.p)(e=>e.split(",").map(e=>parseInt(e)),"strToPos");return e.forEach(e=>{let t=new Map([...e.entries()].map(([e,t])=>[d(t),e])),r=[d([0,0])],a={},l={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;r.length>0;){let e=r.shift();if(e){a[e]=1;let f=t.get(e);if(f){let h=c(e);Object.entries(l).forEach(([e,l])=>{let c=d([h[0]+l[0],h[1]+l[1]]),g=t.get(c);if(g&&!a[c]){if(r.push(c),o.has(`${f}|${g}`))return;i.push({[u[e]]:g,[u[m(e)]]:f,gap:n*s})}})}}}}),i}function Y(e,t,r,i,s,{spatialMaps:n,groupAlignments:a}){return new Promise(d=>{let f=(0,h.f)("body").append("div").attr("id","cy").attr("style","display:none"),u=(0,c.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":`${s.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:`${s.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});f.remove(),X(r,u),U(e,u,s),O(t,u,s),H(i,u);let g=s.getLayoutHints(),p=J(s,n,a,g),m=Z(n,s,g),y=s.getConfigField("iconSize"),w=s.getConfigField("idealEdgeLengthMultiplier")*y,k=.5*y,x=s.getConfigField("edgeElasticity"),T=s.getConfigField("seed"),b=u.layout({name:"fcose",quality:"proof",randomize:s.getConfigField("randomize"),nodeSeparation:s.getConfigField("nodeSeparation"),numIter:s.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){let[t,r]=e.connectedNodes(),{parent:i}=R(t),{parent:s}=R(r);return i===s?w:k},edgeElasticity(e){let[t,r]=e.connectedNodes(),{parent:i}=R(t),{parent:s}=R(r);return i===s?x:.001},alignmentConstraint:p,relativePlacementConstraint:m});b.one("layoutstop",()=>{function e(e,t,r,i){let s,n,{x:a,y:o}=e,{x:l,y:d}=t;n=(i-o+(a-r)*(o-d)/(a-l))/Math.sqrt(1+Math.pow((o-d)/(a-l),2)),s=Math.sqrt(Math.pow(i-o,2)+Math.pow(r-a,2)-Math.pow(n,2))/Math.sqrt(Math.pow(l-a,2)+Math.pow(d-o,2));let c=(l-a)*(i-o)-(d-o)*(r-a);switch(!0){case c>=0:c=1;break;case c<0:c=-1}let f=(l-a)*(r-a)+(d-o)*(i-o);switch(!0){case f>=0:f=1;break;case f<0:f=-1}return{distances:n=Math.abs(n)*c,weights:s*=f}}for(let t of((0,l.p)(e,"getSegmentWeights"),u.startBatch(),Object.values(u.edges())))if(t.data?.()){let{x:r,y:i}=t.source().position(),{x:s,y:n}=t.target().position();if(r!==s&&i!==n){let r=t.sourceEndpoint(),i=t.targetEndpoint(),{sourceDir:s}=A(t),[n,a]=v(s)?[r.x,i.y]:[i.x,r.y],{weights:o,distances:l}=e(r,i,n,a);t.style("segment-distances",l),t.style("segment-weights",o)}}u.endBatch(),N(T,()=>b.run())});try{N(T,()=>b.run())}catch(e){if(e instanceof RangeError&&e.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 e}u.ready(e=>{o.d.info("Ready",e),d(u)})})}(0,s.z)([{name:D.prefix,icons:D}]),c.f.use(f.default),(0,l.p)(U,"addServices"),(0,l.p)(O,"addJunctions"),(0,l.p)(q,"positionNodes"),(0,l.p)(X,"addGroups"),(0,l.p)(H,"addEdges"),(0,l.p)(J,"getAlignments"),(0,l.p)(Z,"getRelativeConstraints"),(0,l.p)(Y,"layoutArchitecture");var Q=(0,l.p)(async(e,t,i,s)=>{let n=s.db;n.setDiagramId(t);let o=n.getServices(),l=n.getJunctions(),d=n.getGroups(),c=n.getEdges(),f=n.getDataStructures(),h=(0,r.f)(t),u=h.append("g");u.attr("class","architecture-edges");let g=h.append("g");g.attr("class","architecture-services");let p=h.append("g");p.attr("class","architecture-groups"),await W(n,g,o,t),j(n,g,l,t);let m=await Y(o,l,d,c,n,f);await F(u,m,n,t),await G(p,m,n,t),q(n,m),(0,a.P)(void 0,h,n.getConfigField("padding"),n.getConfigField("useMaxWidth"))},"draw");e.s(["diagram",0,{parser:V,get db(){return new L},renderer:{draw:Q},styles:M}])},73474,e=>{function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}(0,e.i(19524).p)(t,"populateCommonDb"),e.s(["f",0,t])}])})();
@@ -0,0 +1 @@
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:#fef2f2;--color-red-200:#ffcaca;--color-red-700:#bf000f;--color-yellow-200:#fff085;--color-yellow-900:#733e0a;--color-blue-50:#eff6ff;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18508 1.52328);--color-red-200:lab(86.017% 19.8815 7.75869);--color-red-700:lab(40.4273% 67.2623 53.7441);--color-yellow-200:lab(94.3433% -5.00429 52.9663);--color-yellow-900:lab(32.3865% 21.1273 38.5959);--color-blue-50:lab(96.492% -1.14644 -5.11479)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1\/2{top:50%}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-\[100\]{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.my-2{margin-block:calc(var(--spacing) * 2)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:#364153;--tw-prose-headings:#101828;--tw-prose-lead:#4a5565;--tw-prose-links:#101828;--tw-prose-bold:#101828;--tw-prose-counters:#6a7282;--tw-prose-bullets:#d1d5dc;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#101828;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6a7282;--tw-prose-kbd:#101828;--tw-prose-kbd-shadows:#1018281a;--tw-prose-code:#101828;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1e2939;--tw-prose-th-borders:#d1d5dc;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5dc;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#99a1af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#99a1af;--tw-prose-invert-bullets:#4a5565;--tw-prose-invert-hr:#364153;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#364153;--tw-prose-invert-captions:#99a1af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5dc;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4a5565;--tw-prose-invert-td-borders:#364153;font-size:1rem;line-height:1.75}@supports (color:lab(0% 0 0)){.prose{--tw-prose-body:lab(27.1134% -.956401 -12.3224);--tw-prose-headings:lab(8.11897% .811279 -12.254);--tw-prose-lead:lab(35.6337% -1.58697 -10.8425);--tw-prose-links:lab(8.11897% .811279 -12.254);--tw-prose-bold:lab(8.11897% .811279 -12.254);--tw-prose-counters:lab(47.7841% -.393182 -10.0268);--tw-prose-bullets:lab(85.1236% -.612259 -3.7138);--tw-prose-hr:lab(91.6229% -.159115 -2.26791);--tw-prose-quotes:lab(8.11897% .811279 -12.254);--tw-prose-quote-borders:lab(91.6229% -.159115 -2.26791);--tw-prose-captions:lab(47.7841% -.393182 -10.0268);--tw-prose-kbd:lab(8.11897% .811279 -12.254);--tw-prose-kbd-shadows:lab(8.11897% .811279 -12.254/.1);--tw-prose-code:lab(8.11897% .811279 -12.254);--tw-prose-pre-code:lab(91.6229% -.159115 -2.26791);--tw-prose-pre-bg:lab(16.1051% -1.18239 -11.7533);--tw-prose-th-borders:lab(85.1236% -.612259 -3.7138);--tw-prose-td-borders:lab(91.6229% -.159115 -2.26791);--tw-prose-invert-body:lab(85.1236% -.612259 -3.7138);--tw-prose-invert-lead:lab(65.9269% -.832707 -8.17473);--tw-prose-invert-counters:lab(65.9269% -.832707 -8.17473);--tw-prose-invert-bullets:lab(35.6337% -1.58697 -10.8425);--tw-prose-invert-hr:lab(27.1134% -.956401 -12.3224);--tw-prose-invert-quotes:lab(96.1596% -.0823438 -1.13575);--tw-prose-invert-quote-borders:lab(27.1134% -.956401 -12.3224);--tw-prose-invert-captions:lab(65.9269% -.832707 -8.17473);--tw-prose-invert-pre-code:lab(85.1236% -.612259 -3.7138);--tw-prose-invert-th-borders:lab(35.6337% -1.58697 -10.8425);--tw-prose-invert-td-borders:lab(27.1134% -.956401 -12.3224)}}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.inline{display:inline}.inline-flex{display:inline-flex}.h-7{height:calc(var(--spacing) * 7)}.h-11{height:calc(var(--spacing) * 11)}.h-\[85vh\]{height:85vh}.h-full{height:100%}.h-screen{height:100vh}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[min\(420px\,30vh\)\]{max-height:min(420px,30vh)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-full{min-height:100%}.w-1{width:calc(var(--spacing) * 1)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-4{width:calc(var(--spacing) * 4)}.w-56{width:calc(var(--spacing) * 56)}.w-\[90vw\]{width:90vw}.w-\[min\(480px\,30vw\)\]{width:min(480px,30vw)}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-none{max-width:none}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.scroll-mt-4{scroll-margin-top:calc(var(--spacing) * 4)}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-px>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(1px * var(--tw-space-y-reverse));margin-block-end:calc(1px * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\[var\(--border-default\)\]>:not(:last-child)){border-color:var(--border-default)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-\[var\(--border-default\)\]{border-color:var(--border-default)}.border-red-200{border-color:var(--color-red-200)}.bg-\[var\(--bg-base\)\]{background-color:var(--bg-base)}.bg-\[var\(--bg-muted\)\]{background-color:var(--bg-muted)}.bg-\[var\(--bg-surface\)\]{background-color:var(--bg-surface)}.bg-\[var\(--border-default\)\]{background-color:var(--border-default)}.bg-\[var\(--brand-primary\)\],.bg-\[var\(--brand-primary\)\]\/10{background-color:var(--brand-primary)}@supports (color:color-mix(in lab, red, red)){.bg-\[var\(--brand-primary\)\]\/10{background-color:color-mix(in oklab, var(--brand-primary) 10%, transparent)}}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-yellow-200{background-color:var(--color-yellow-200)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.leading-\[1\.7\]{--tw-leading:1.7;line-height:1.7}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-\[var\(--font-mono\)\]{--tw-font-weight:var(--font-mono);font-weight:var(--font-mono)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[var\(--brand-primary\)\]{color:var(--brand-primary)}.text-\[var\(--folder-text\)\]{color:var(--folder-text)}.text-\[var\(--text-muted\)\]{color:var(--text-muted)}.text-\[var\(--text-primary\)\]{color:var(--text-primary)}.text-\[var\(--text-secondary\)\]{color:var(--text-secondary)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-900{color:var(--color-yellow-900)}.uppercase{text-transform:uppercase}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-\[var\(--text-muted\)\]::placeholder{color:var(--text-muted)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-\[var\(--bg-hover\)\]:hover{background-color:var(--bg-hover)}.hover\:bg-\[var\(--bg-muted\)\]:hover{background-color:var(--bg-muted)}.hover\:bg-\[var\(--brand-primary\)\]:hover{background-color:var(--brand-primary)}.hover\:text-\[var\(--brand-primary\)\]:hover{color:var(--brand-primary)}.hover\:text-\[var\(--text-primary\)\]:hover{color:var(--text-primary)}.hover\:text-\[var\(--text-secondary\)\]:hover{color:var(--text-secondary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-\[var\(--brand-primary\)\]:focus{border-color:var(--brand-primary)}.focus\:opacity-100:focus{opacity:1}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-\[var\(--brand-primary\)\]:focus{--tw-ring-color:var(--brand-primary)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.prose-headings\:font-semibold :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-headings\:tracking-tight :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.prose-headings\:text-\[var\(--text-primary\)\] :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-h1\:mb-4 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 4)}.prose-h1\:text-lg :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.prose-h1\:leading-snug :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-h2\:mt-8 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing) * 8)}.prose-h2\:mb-3 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 3)}.prose-h2\:border-b :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.prose-h2\:border-\[var\(--border-default\)\] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}.prose-h2\:pb-2 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){padding-bottom:calc(var(--spacing) * 2)}.prose-h2\:text-\[15px\] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:15px}.prose-h2\:leading-snug :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-h3\:mt-6 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing) * 6)}.prose-h3\:mb-2 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 2)}.prose-h3\:text-\[13px\] :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-h3\:leading-snug :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-p\:text-\[13px\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-p\:leading-\[1\.75\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:1.75;line-height:1.75}.prose-p\:text-\[var\(--text-secondary\)\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-a\:font-medium :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.prose-a\:text-\[var\(--brand-primary\)\] :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--brand-primary)}.prose-a\:no-underline :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:none}@media (hover:hover){.hover\:prose-a\:underline:hover :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:underline}}.prose-blockquote\:border-l-\[var\(--brand-primary\)\] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--brand-primary)}.prose-blockquote\:text-\[var\(--text-muted\)\] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-muted)}.prose-blockquote\:not-italic :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-style:normal}.prose-strong\:font-semibold :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-strong\:text-\[var\(--text-primary\)\] :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-code\:rounded :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.25rem}.prose-code\:bg-\[var\(--bg-muted\)\] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-code\:px-1 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 1)}.prose-code\:py-0\.5 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * .5)}.prose-code\:text-xs :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.prose-code\:text-\[var\(--text-primary\)\] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-code\:before\:content-none :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose-code\:after\:content-none :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:var(--tw-content);--tw-content:none;content:none}.prose-pre\:bg-\[var\(--bg-muted\)\] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-pre\:text-xs :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.prose-pre\:text-\[var\(--text-primary\)\] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-li\:text-\[13px\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-li\:leading-\[1\.75\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:1.75;line-height:1.75}.prose-li\:text-\[var\(--text-secondary\)\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-table\:text-\[12px\] :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:12px}.prose-th\:bg-\[var\(--bg-muted\)\] :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-th\:px-3 :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 3)}.prose-th\:py-1\.5 :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * 1.5)}.prose-th\:text-left :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:left}.prose-th\:font-semibold :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-th\:text-\[var\(--text-primary\)\] :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-td\:border-\[var\(--border-default\)\] :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}.prose-td\:px-3 :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 3)}.prose-td\:py-1\.5 :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * 1.5)}.prose-td\:text-\[var\(--text-secondary\)\] :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-img\:rounded-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--radius-lg)}.prose-hr\:border-\[var\(--border-default\)\] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}}:root{--font-sans:"Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;--font-mono:"JetBrains Mono", "Fira Code", "Source Code Pro", "Cascadia Code", "Consolas", monospace;--bg-base:#f7f8fa;--bg-surface:#fff;--bg-muted:#f0f2f5;--bg-hover:#ebedf0;--text-primary:#1a1d23;--text-secondary:#4a5060;--text-muted:#8b92a0;--text-inverse:#fff;--border-default:#e0e3e8;--border-hover:#c8ccd3;--brand-primary:#2563eb;--brand-primary-hover:#1d4ed8;--folder-bg:#e8f0fe;--folder-border:#3b7ddb;--folder-text:#1a3a5c;--file-bg:#eee8fb;--file-border:#7c6ec7;--file-text:#3a356a;--add-bg:#ecfdf5;--add-color:#16a34a;--del-bg:#fef2f2;--del-color:#dc2626;--code-bg:#f0f2f5;--code-border:#e0e3e8}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;font-size:15px}body{font-family:var(--font-sans);background:var(--bg-base);color:var(--text-primary);letter-spacing:.01em;line-height:1.65}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-hover)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}