diff --git a/.agent/skills/basalt-html/SKILL.md b/.agent/skills/basalt-html/SKILL.md index b77fc4e7..6f9b321a 100644 --- a/.agent/skills/basalt-html/SKILL.md +++ b/.agent/skills/basalt-html/SKILL.md @@ -63,6 +63,7 @@ Markup built only at run time (a `.row` your script writes) won't be seen: add ` - **terminal** `.terminal`: with `.code`; lines are `span[data-kind]`; the script draws the gutter. - **chart** `.chart`: JSON in `script[data-chart]`; `null` is a day not observed, never zero; needs a `summary`. - **diagram** `.diagram`: JSON in `script[data-diagram]`; sides only to change the default; needs a `summary`. +- **diagram-motion** `"motion": "animated"`: added for you, with `loops`; a flow line needs a label; one mover a figure. - **sparkline** `.sparkline`: JSON in `script[data-sparkline]`; one line, no axes or series (that is a `chart`). - **palette** `data-open-palette`, `Basalt.init({ palette })`: `keys` is an array, `['⌘', 'S']`: ⌘, ⌃ or ⌥ plus one key. - **command-list** `.command-list`: the script builds it; items are the palette's; ⌘K goes to the palette when the page has one. diff --git a/.agent/skills/basalt-html/compose.mjs b/.agent/skills/basalt-html/compose.mjs index f3d8550c..d26d08ca 100644 --- a/.agent/skills/basalt-html/compose.mjs +++ b/.agent/skills/basalt-html/compose.mjs @@ -14,7 +14,8 @@ // compose.mjs wraps it in the doctype, meta and theme bootstrap, adds Geist (inlined, unless --no-fonts), the core CSS and // script and only the modules the body uses, the icons it names, and `Basalt.init()` unless the body already calls it. // A comment, script, style, svg or template that is never closed is refused. A style, title, meta or link inside an svg or a template is left where it is. -// The output is the same for the same input. It reads only the files beside it (parts/ and SKILL.md) and writes only --out. +// The output is the same for the same input. It reads only the files beside it (parts/ and SKILL.md), and a diagram's own service-mark files where a +// card names one by path (read from beside the body, so the page stays one file), and writes only --out. // --all adds every module and every icon (for a page that builds markup at run time, and for measuring). No dependencies. // After the page, it prints the one-line warning of each module it added (the module's line in SKILL.md's index), to stdout; a module // the body never uses itself, which is in only because another module's script builds it, says so instead. @@ -513,7 +514,7 @@ export function brandSvg(text) { * The page for a body fragment. Options: fonts (default true), lang ("en"), all (every module), parts (the folder of parts). * Returns { html, modules, icons, glyphs, built, external, bytes } (external: what the body references that leaves the file; built: { module: the module whose script builds it } for a module the body never triggers). Throws an Error with a plain message for input it can't use. */ -export function compose(body, { fonts = true, lang = "en", all = false, parts = path.join(here, "parts") } = {}) { +export function compose(body, { fonts = true, lang = "en", all = false, parts = path.join(here, "parts"), baseDir = process.cwd() } = {}) { if (!/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(lang)) throw new Error(`"${lang}" is not a language code`); const manifest = JSON.parse(read(parts, "manifest.json")); const iconFile = JSON.parse(read(parts, "icons.json")); @@ -524,6 +525,9 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = let markup = held.text; if (held.whole) throw new Error("the input is a whole page; give compose.mjs the body fragment only (the HTML that goes inside )"); const use = []; + // A diagram's service marks (DECISIONS 292, 2.6): the bundled ids a page names (in its cards, or in a comment for a figure drawn + // from script) and its own marks, read into the page. One rule a mark, however many cards use it. + const marks = { named: [], used: new Map(), baseDir, file: null, parts }; const styles = []; const headTags = []; let title = null; @@ -533,6 +537,8 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = if (kind === "title" && title === null) { title = inner.trim(); return ""; } if (kind === "head") { headTags.push(headTag(text.trim(), held.saved[Number(i)].attrs)); return ""; } if (kind === "svg" && readTag(text, 0).attrs.some((a) => a[0] === "data-brand")) return brandSvg(text) + ws; + const named = kind === "comment" && text.match(/^$/); + if (named) { marks.named.push(...named[1].split(/[\s,]+/).filter(Boolean)); return ws; } const directive = kind === "comment" && text.match(/^$/); if (!directive) return all$; use.push(...directive[1].split(/[\s,]+/).filter(Boolean)); @@ -541,7 +547,7 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = for (const name of use) if (!(name in manifest.modules)) throw new Error(`basalt:use names "${name}", which is not a module (modules: ${Object.keys(manifest.modules).join(", ")})`); const diagramNotes = []; - const content = held.restore(writeDiagrams(markup, held, parts, diagramNotes)).replace(/^\s+/, ""); + const content = held.restore(writeDiagrams(markup, held, parts, diagramNotes, marks)).replace(/^\s+/, ""); title ||= held.h1 || "Untitled page"; // an empty names nothing: the heading does // Detection reads markup and code, never comments: a word written about in a comment (an HTML one, or one inside a script or a style) brings nothing in. @@ -552,7 +558,9 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = const direct = detect(code, bare, [], { all, use }).modules; const built = Object.fromEntries(chosen.modules.filter((n) => !direct.includes(n)).flatMap((n) => chosen.modules.filter((m) => (manifest.modules[m].builds ?? []).includes(n)).slice(0, 1).map((m) => [n, m]))); - const css = [read(parts, "core.css"), ...chosen.modules.filter((n) => exists(parts, `${n}.css`)).map((n) => read(parts, `${n}.css`))].join(""); + for (const id of marks.named) useMark(marks, id, null); + const markCss = chosen.modules.includes("diagram") ? markRules(marks) : ""; + const css = [read(parts, "core.css"), ...chosen.modules.filter((n) => exists(parts, `${n}.css`)).map((n) => read(parts, `${n}.css`)), markCss].join(""); const icons = Object.fromEntries(chosen.icons.map((n) => [n, iconFile.icons[n]])); const script = [ read(parts, "core.js"), @@ -601,7 +609,7 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = * example inside one is text and is never expanded. A figure is found by the composer's own tag reader (quoted, single-quoted or unquoted attributes alike), * and is expanded only when its class list holds `diagram` and its content is one `script` with `data-diagram` and nothing else but white space. */ -function writeDiagrams(markup, held, parts, notes) { +function writeDiagrams(markup, held, parts, notes, marks) { if (!exists(parts, "diagram.js")) return markup; const mark = held.mark; const json = new RegExp(`^(\\s*)${mark}(\\d+)${mark}(\\s*)</figure(?=[\\t\\n\\f\\r />])[^>]*>`, "i"); @@ -621,6 +629,22 @@ function writeDiagrams(markup, held, parts, notes) { if (!item || item.kind !== "script" || !item.attrs.some(([k]) => k === "data-diagram")) continue; let spec; try { spec = JSON.parse(item.inner); } catch (e) { notes.push(`a diagram's JSON does not parse (${e.message}); the page's script will say so`); continue; } + // Each card's mark: a bundled id is checked and its rule written once; the page's own mark is read into the page and named by an id, so the JSON + // the script reads carries the id and never a path. + if (spec && spec.type === "architecture" && Array.isArray(spec.nodes)) { + let rewrote = false; + for (const n of spec.nodes) { + if (!n || n.mark === undefined || n.mark === null) continue; + if (typeof n.mark === "string") useMark(marks, n.mark, n, notes); + else { n.mark = ownMark(marks, n.mark); rewrote = true; } + } + if (rewrote) { + // Every < as \u003c, which JSON reads as the same character: a title holding </script> or <!-- cannot end or bend the script it is in. + const inner = `\n${JSON.stringify(spec).replace(/</g, "\\u003c")}\n`; + item.text = item.text.replace(item.inner, () => inner); + item.inner = inner; + } + } if (!engine) { const context = { window: { Basalt: { _: { step() {}, esc: (x) => x } } }, console: { warn() {}, error() {}, log() {} } }; vm.runInNewContext(read(parts, "diagram.js"), context); @@ -644,6 +668,61 @@ function writeDiagrams(markup, held, parts, notes) { return out + markup.slice(at); } +/** The bundled marks file (parts/marks.json), read once a page names a mark. */ +const marksFile = (marks) => (marks.file ??= JSON.parse(read(marks.parts, "marks.json"))); +/** A URL as a CSS string inside a <style>: a backslash and a quote escaped, a newline as \a and every < as \3c (CSS reads both as the character), so a data URI + * holding </style> cannot end the style sheet. */ +const cssUrl = (u) => `url("${u.replace(/[\\"]/g, (c) => `\\${c}`).replace(/\n/g, "\\a ").replace(/</g, "\\3c ")}")`; + +/** A bundled mark a page uses: known, its rule written once, and (for a card) its words checked: a mark never carries a fact alone. */ +function useMark(marks, id, node, notes) { + const file = marksFile(marks); + if (marks.used.has(id)) { if (node) checkSays(file, id, node, notes); return; } + const mark = Object.hasOwn(file.marks, id) ? file.marks[id] : undefined; + if (!mark) throw new Error(`"${id}" is not a bundled service mark (the marks: ${Object.keys(file.marks).join(", ")}); a page's own mark is { "onLight": "path", "onDark": "path" }`); + marks.used.set(id, mark); + if (node) checkSays(file, id, node, notes); +} +function checkSays(file, id, node, notes) { + const says = (Object.hasOwn(file.says, id) ? file.says[id] : undefined) ?? []; + const words = [node.name, node.kind, node.detail].filter(Boolean).join(" ").toLowerCase(); + if (says.length && !says.some((w) => words.includes(w.toLowerCase()))) notes.push(`${node.id}'s mark (${id}) stands for ${says.join(" or ")}, and none of its words say so: a mark never carries a fact alone`); +} + +/** A page's own mark, { onLight, onDark }: each file read from beside the body into a data URI (a page is one file with no network), and an id for its rule. */ +function ownMark(marks, mark) { + const uri = (ref) => { + const at = String(ref ?? ""); + if (!at) throw new Error("a card's own mark needs onLight: a path to the file beside the body"); + if (/^data:/i.test(at)) return at; + if (/^[a-z][\w+.-]*:/i.test(at)) throw new Error(`a card's mark is ${at}, which leaves the file: give a path beside the body, which compose.mjs reads into the page`); + const file = path.resolve(marks.baseDir, at); + const ext = path.extname(file).toLowerCase(); + const type = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".webp": "image/webp", ".gif": "image/gif" }[ext]; + if (ext !== ".svg" && !type) throw new Error(`a card's mark is ${at}: an SVG, PNG, JPEG, WebP or GIF file`); + // Beside the body means inside its folder: a path that climbs out of it, or a link that points out of it, is not read. + const inside = (dir, f) => { const rel = path.relative(dir, f); return rel !== "" && rel !== ".." && !rel.startsWith(`..${path.sep}`) && !path.isAbsolute(rel); }; + if (!inside(marks.baseDir, file)) throw new Error(`a card's mark is ${at}, which is outside the body's folder: put the file beside the body`); + if (!fs.existsSync(file)) throw new Error(`a card's mark is ${at}, and there is no such file beside the body`); + if (!inside(fs.realpathSync(marks.baseDir), fs.realpathSync(file))) throw new Error(`a card's mark is ${at}, which links outside the body's folder: put the file itself beside the body`); + const bytes = fs.readFileSync(file); + if (ext === ".svg") return `data:image/svg+xml,${bytes.toString("utf8").replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ").trim()}`; + return `data:${type};base64,${bytes.toString("base64")}`; + }; + const onLight = uri(mark.onLight); + const onDark = mark.onDark ? uri(mark.onDark) : onLight; + for (const [id, m] of marks.used) if (m.onLight === onLight && (m.onDark ?? m.onLight) === onDark) return id; + const id = `page-${marks.used.size + 1}`; + marks.used.set(id, { onLight, onDark }); + return id; +} + +/** One rule a mark the page uses, in the diagram's layer: the two forms, which the stylesheet picks between by the ground. */ +function markRules(marks) { + if (!marks.used.size) return ""; + return `@layer basalt{${[...marks.used].map(([id, m]) => `.diagram-node[data-mark="${id}"]>.diagram-mark{--_ml:${cssUrl(m.onLight)}${m.onDark ? `;--_md:${cssUrl(m.onDark)}` : ""}}`).join("")}}`; +} + /** The module lines of SKILL.md's "## Modules" index: [{ name, trigger, warning }]. A line is `- **name** \`trigger\`: warning`. */ export function indexLines(skillText) { const section = skillText.match(/^## Modules\n([\s\S]*?)(?=^## |(?![\s\S]))/m)?.[1] ?? ""; @@ -751,7 +830,7 @@ if (isMain) { if (path.resolve(out) === path.resolve(input)) throw new Error(`${input} would be overwritten; name the page with --out`); } if (path.resolve(out) === path.resolve(input)) throw new Error("--out is the input file; name another file"); - const result = compose(fs.readFileSync(input, "utf8"), options); + const result = compose(fs.readFileSync(input, "utf8"), { ...options, baseDir: path.dirname(path.resolve(input)) }); fs.writeFileSync(out, result.html); console.log(`${out}: ${(result.bytes / 1024).toFixed(1)} KB, core + ${result.modules.join(", ") || "no modules"}; icons: ${result.icons.join(", ") || "none"}`); // One line of warning for each module added: the mistake an agent makes with it. The full text is `--usage NAME`. diff --git a/.agent/skills/basalt-html/parts/diagram-motion.css b/.agent/skills/basalt-html/parts/diagram-motion.css new file mode 100644 index 00000000..277f2b30 --- /dev/null +++ b/.agent/skills/basalt-html/parts/diagram-motion.css @@ -0,0 +1 @@ +:root{--basalt-duration-diagram-line-min: .4s;--basalt-duration-diagram-line-max: .9s;--basalt-duration-diagram-stagger: .22s;--basalt-duration-diagram-step: .32s;--basalt-duration-diagram-arrow: .5s;--basalt-duration-diagram-limit: 5s;--basalt-duration-diagram-leg-min: .5s;--basalt-duration-diagram-leg-max: 1.1s;--basalt-duration-diagram-rest: .4s;--basalt-duration-diagram-pause: 1.2s;--basalt-duration-diagram-repeat: 4s;--basalt-speed-diagram-trace: 300;--basalt-speed-diagram-packet: 250;--basalt-speed-diagram-pulse: 120;--basalt-speed-diagram-flow: 16}@layer basalt{.diagram[data-motion=animated][data-entrance=pending] .diagram-edges{visibility:hidden}.diagram[data-motion=animated]:is([data-entrance=pending],[data-entrance=running]) .diagram-mlabel{color:var(--basalt-text-secondary)}.diagram-motion-defs{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none}.diagram-flow,.diagram-bead{position:absolute;overflow:visible;pointer-events:none}.diagram-flow path{fill:none;stroke:var(--_ground);stroke-linecap:butt}.diagram-bead path{fill:none;stroke:var(--basalt-diagram-edge-main);stroke-linecap:butt}.diagram-packet{position:absolute;top:0;left:0;box-sizing:content-box;width:var(--basalt-size-dot);height:var(--basalt-size-dot);border:var(--basalt-size-hairline) solid var(--_ground);border-radius:var(--basalt-radius-full);background:var(--basalt-diagram-edge-main);offset-anchor:center;offset-rotate:0deg;pointer-events:none}.diagram .diagram-node[data-arrival]:not([data-focal]){border-color:var(--basalt-diagram-hit);transition:border-color var(--basalt-duration-slower) var(--basalt-ease-out)}.diagram .diagram-node[data-arrival-out]:not([data-focal]){transition:border-color calc(var(--basalt-duration-slower) * .75) var(--basalt-ease-in)}.diagram .diagram-node[data-focal][data-arrival]{background-color:var(--basalt-diagram-focal-hit);border-color:var(--basalt-diagram-focal-hit);transition:background-color var(--basalt-duration-slower) var(--basalt-ease-out),border-color var(--basalt-duration-slower) var(--basalt-ease-out)}.diagram .diagram-node[data-focal][data-arrival-out]{transition:background-color calc(var(--basalt-duration-slower) * .75) var(--basalt-ease-in),border-color calc(var(--basalt-duration-slower) * .75) var(--basalt-ease-in)}.diagram[data-motion=animated] .diagram-num{transition:color calc(var(--basalt-duration-slower) * .75) var(--basalt-ease-in)}.diagram .diagram-msg[data-arrival] .diagram-num{color:var(--basalt-text-primary);transition:color var(--basalt-duration-slower) var(--basalt-ease-out)}@media(pointer:coarse){.diagram-play,.diagram-pause{min-height:var(--basalt-size-tap-min)}}@media(forced-colors:active){.diagram .diagram-packet{forced-color-adjust:none;background:Highlight;border-color:Canvas}.diagram .diagram-node[data-arrival]:not([data-focal]){border-color:Highlight}.diagram .diagram-node[data-focal][data-arrival]{background:CanvasText;border-color:CanvasText}.diagram .diagram-msg[data-arrival] .diagram-num{color:Highlight}.diagram :is(.diagram-flow,.diagram-bead){display:none}}@media print{.diagram :is(.diagram-play,.diagram-pause){display:none!important}.diagram .diagram-edges{visibility:visible!important}.diagram .diagram-edge{mask:none!important}.diagram .diagram-mlabel{color:var(--basalt-text-primary)!important}.diagram :is(.diagram-flow,.diagram-bead,.diagram-packet,.diagram-motion-defs){display:none!important}}} diff --git a/.agent/skills/basalt-html/parts/diagram-motion.js b/.agent/skills/basalt-html/parts/diagram-motion.js new file mode 100644 index 00000000..cbbf0b25 --- /dev/null +++ b/.agent/skills/basalt-html/parts/diagram-motion.js @@ -0,0 +1 @@ +(()=>{var C=Object.defineProperty,T=(t,s,e)=>s in t?C(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,c=(t,s,e)=>T(t,typeof s!="symbol"?s+"":s,e);function P(t,s){const e=o=>String(Math.round(o*100)/100);let i=`M${e(t[0].x)} ${e(t[0].y)}`;for(let o=1;o<t.length-1;o++){const h=t[o-1],r=t[o],a=t[o+1],l=Math.hypot(r.x-h.x,r.y-h.y),d=Math.hypot(a.x-r.x,a.y-r.y),g=Math.min(s,l/2,d/2);if(g<.5){i+=`L${e(r.x)} ${e(r.y)}`;continue}const u={x:r.x+(h.x-r.x)/l*g,y:r.y+(h.y-r.y)/l*g},m={x:r.x+(a.x-r.x)/d*g,y:r.y+(a.y-r.y)/d*g};i+=`L${e(u.x)} ${e(u.y)}Q${e(r.x)} ${e(r.y)} ${e(m.x)} ${e(m.y)}`}const n=t[t.length-1];return`${i}L${e(n.x)} ${e(n.y)}`}function x(t){const s=t.getAttribute("data-entrance");s!=="pending"&&s!=="running"||(t.setAttribute("data-entrance","done"),t.dispatchEvent(new Event("basalt-diagram-settle")))}var p;function G(t){if(!p){const s=()=>{for(const h of p?.figs??[])h.sync()},e=()=>{for(const h of p?.figs??[])x(h.host.fig);s()},i=new IntersectionObserver(h=>{for(const r of h)for(const a of p?.figs??[])a.drawing===r.target&&a.seen(r)},{threshold:Array.from({length:21},(h,r)=>r/20)}),n=new MutationObserver(h=>{for(const r of h){if(r.target===document.documentElement){for(const a of p?.figs??[])a.holdChanged();continue}for(const a of p?.figs??[])a.host.fig===r.target&&a.traceChanged()}});n.observe(document.documentElement,{attributes:!0,attributeFilter:["data-loops"]});const o=["(prefers-reduced-motion: reduce)","(forced-colors: active)","print"].map(h=>matchMedia(h));for(const h of o)h.addEventListener("change",s);window.addEventListener("beforeprint",e),document.addEventListener("visibilitychange",s),p={figs:new Set,io:i,mo:n,media:o,onChange:s,onPrint:e}}return p.figs.add(t),t.drawing&&p.io.observe(t.drawing),p.mo.observe(t.host.fig,{attributes:!0,attributeFilter:["data-tracing"]}),p}function O(t){if(p&&(p.figs.delete(t),t.drawing&&p.io.unobserve(t.drawing),!p.figs.size)){p.io.disconnect(),p.mo.disconnect();for(const s of p.media)s.removeEventListener("change",p.onChange);window.removeEventListener("beforeprint",p.onPrint),document.removeEventListener("visibilitychange",p.onChange),p=void 0}}function _(t){const s=getComputedStyle(t),e=h=>s.getPropertyValue(`--basalt-${h}`).trim(),i=h=>{const r=e(h),a=parseFloat(r);return/ms$/.test(r)?a:/s$/.test(r)?a*1e3:a||0},n=h=>parseFloat(e(h))||0,o=h=>e(`ease-${h}`)||"ease";return{lineMin:i("duration-diagram-line-min"),lineMax:i("duration-diagram-line-max"),stagger:i("duration-diagram-stagger"),step:i("duration-diagram-step"),arrow:i("duration-diagram-arrow"),limit:i("duration-diagram-limit"),legMin:i("duration-diagram-leg-min"),legMax:i("duration-diagram-leg-max"),rest:i("duration-diagram-rest"),pause:i("duration-diagram-pause"),repeat:i("duration-diagram-repeat"),fast:i("duration-fast"),base:i("duration-base"),slow:i("duration-slow"),slower:i("duration-slower"),trace:n("speed-diagram-trace"),packet:n("speed-diagram-packet"),pulse:n("speed-diagram-pulse"),flow:n("speed-diagram-flow"),bead:n("size-diagram-bead"),flowPeriod:n("size-diagram-flow"),inOut:o("in-out"),out:o("out"),in:o("in")}}var L=(t,s,e)=>Math.max(s,Math.min(e,t)),F="http://www.w3.org/2000/svg",y=(t,s,e)=>{const i=document.createElementNS(F,t);for(const[n,o]of Object.entries(s))i.setAttribute(n,String(o));return e?.appendChild(i),i},E=()=>Number(document.timeline.currentTime??performance.now()),q=t=>t instanceof DOMException&&t.name==="AbortError",R={up:{x:0,y:-1},down:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0}};function $(t,s){const e=t.pts.map(a=>({...a})),i=R[t.dir],n=e[e.length-1],o=e[e.length-2],h=Math.hypot(n.x-o.x,n.y-o.y),r=Math.min(s,Math.max(0,h-.5));return n.x-=i.x*r,n.y-=i.y*r,e}var M=t=>t.slice(1).reduce((s,e,i)=>s+Math.hypot(e.x-t[i].x,e.y-t[i].y),0),I=(t,s)=>{const e=t.map(n=>n.x),i=t.map(n=>n.y);return{l:Math.floor(Math.min(...e)-s),t:Math.floor(Math.min(...i)-s),r:Math.ceil(Math.max(...e)+s),b:Math.ceil(Math.max(...i)+s)}},V=class{constructor(t){c(this,"host"),c(this,"drawing"),c(this,"page"),c(this,"t"),c(this,"listeners",new Set),c(this,"snapshot",{canLoop:!1,runShown:!1,running:!1}),c(this,"destroyed",!1),c(this,"t0",0),c(this,"factor",1),c(this,"plans",new Map),c(this,"intro",new Set),c(this,"labels",new Set),c(this,"introEnd",null),c(this,"defs",null),c(this,"signature",""),c(this,"inView",!1),c(this,"enough",!1),c(this,"loopGen",0),c(this,"loops",new Set),c(this,"looping",!1),c(this,"flowEls",new Map),c(this,"beadEls",new Map),c(this,"dot",null),c(this,"dotOwner",null),c(this,"resumeAt",0),c(this,"resumeTimer",0),c(this,"runGen",0),c(this,"runAnims",new Set),c(this,"runAt",-1),c(this,"inFlight",!1),c(this,"waiting",!1),c(this,"lastSend",null),c(this,"arrivals",new Map),c(this,"state",()=>this.snapshot),c(this,"subscribe",s=>(this.listeners.add(s),()=>{this.listeners.delete(s)})),c(this,"destroy",()=>{if(!this.destroyed){this.destroyed=!0,this.stopRun(),this.clearLoops(),this.entrance()==="running"&&this.host.fig.setAttribute("data-entrance","done"),this.clearIntro(),this.host.fig.removeEventListener("basalt-diagram-settle",this.onSettle),clearTimeout(this.resumeTimer);for(const s of[...this.flowEls.values(),...this.beadEls.values()])s.remove();this.dot?.remove(),O(this)}}),c(this,"onSettle",()=>{this.clearIntro(),this.sync()}),c(this,"redrawn",()=>{if(this.destroyed)return;if(this.entrance()==="running"){const e=this.host.geo();if(!e?.lines.length)this.clearIntro(),this.host.fig.setAttribute("data-entrance","done");else{const i=this.introEnd?.currentTime,n=i!=null?Number(i):E()-this.t0,o=new Set([...this.plans].filter(([,a])=>a.end<=n).map(([a])=>a)),{plans:h,factor:r}=this.plan(this.ordered(e),this.factor);for(const a of o){const l=this.plans.get(a);l&&h.set(a,l)}this.factor=r,this.plans=h,this.build(o,!1)}}this.looping&&this.clearLoops();for(const e of[...this.flowEls.values(),...this.beadEls.values()])e.remove();this.flowEls.clear(),this.beadEls.clear(),this.runAt>=0&&this.playRun(this.runAt),this.sync()}),c(this,"changed",()=>{const s=this.edgeSignature(),e=JSON.stringify([this.host.model().motion.pulse,this.host.model().motion.packet?.path,this.host.model().edges.map(i=>!!i.flow)]);s!==this.signature&&(this.signature=s,x(this.host.fig),this.stopRun()),e!==this.route&&(this.route=e,this.looping&&this.clearLoops()),this.sync()}),c(this,"route",""),c(this,"repeatGap",null),c(this,"sendValue",s=>{if(!this.lastSend){this.lastSend={v:s};return}s===void 0||s===this.lastSend.v||(this.lastSend={v:s},this.send())}),c(this,"toggleRun",()=>{if(this.runAt>=0){this.stopRun(),this.publish();return}x(this.host.fig),this.playRun(0),this.publish()}),this.host=t,this.drawing=t.fig.querySelector(`.${t.P}-drawing`),this.t=_(t.fig),this.signature=this.edgeSignature(),t.fig.addEventListener("basalt-diagram-settle",this.onSettle),this.page=G(this),this.sync()}publish(){const t=this.hasLines(),s=this.host.model(),e=this.modes(),i=s.edges.some(o=>o.flow)||!!s.motion.pulse||!!s.motion.packet?.repeat,n={canLoop:s.motion.animated&&i&&t&&!e.reduce&&!e.forced,runShown:s.motion.animated&&s.motion.run&&t,running:this.runAt>=0};if(!(n.canLoop===this.snapshot.canLoop&&n.runShown===this.snapshot.runShown&&n.running===this.snapshot.running)){this.snapshot=n;for(const o of this.listeners)o()}}modes(){return{reduce:matchMedia("(prefers-reduced-motion: reduce)").matches,forced:matchMedia("(forced-colors: active)").matches,print:matchMedia("print").matches,held:document.documentElement.getAttribute("data-loops")==="held"}}entrance(){return this.host.fig.getAttribute("data-entrance")}hasLines(){return!!this.host.geo()?.lines.length}traced(){return this.host.fig.hasAttribute("data-tracing")}seen(t){this.inView=t.isIntersecting;const s=Math.min(t.boundingClientRect.height,window.innerHeight)*.4;this.enough=t.isIntersecting&&t.intersectionRect.height>=s-.5,this.sync()}holdChanged(){this.modes().held&&x(this.host.fig),this.sync()}traceChanged(){this.traced()?(this.stopRun(),clearTimeout(this.resumeTimer),this.resumeAt=1/0):this.resumeAt===1/0&&(this.resumeAt=E()+this.t.pause,clearTimeout(this.resumeTimer),this.resumeTimer=window.setTimeout(()=>{this.resumeAt=0,this.sync()},this.t.pause)),this.sync()}sync(){if(this.destroyed)return;const t=this.host.fig,s=this.host.model(),e=this.modes(),i=this.entrance();(i==="pending"||i==="running")&&(e.held||e.print||e.reduce||e.forced)?x(t):i==="pending"&&this.enough&&!document.hidden&&this.hasLines()&&this.play(),!i&&this.enough&&this.hasLines()&&t.setAttribute("data-entrance","done"),this.syncLoops(s,e),this.publish()}ordered(t){const s=this.host.model(),e=[...t.lines];return s.type==="schema"?e.sort((i,n)=>i.pts[0].y-n.pts[0].y||i.pts[0].x-n.pts[0].x||i.i-n.i):e.sort((i,n)=>i.i-n.i),e}plan(t,s){const e=this.t,i=this.host.model().type==="sequence",n=i?e.step:e.stagger,o=t.map(a=>{const l=this.lineEl(a)?.querySelector(`.${this.host.P}-line`),d=l?l.getTotalLength():M(a.pts),g=i?e.arrow:L(d/e.trace*1e3,e.lineMin,e.lineMax),u=i?e.base:0;return{lead:u,dur:g,tail:u+Math.max(g,.85*g+e.slow,i?e.slower:0)}});let h=1;for(let a=1;a<o.length;a++)h=Math.min(h,Math.max(0,(e.limit-o[a].tail)/(a*n)));s!==void 0&&(h=Math.min(h,s));const r=new Map;return t.forEach((a,l)=>{const d=l*n*h;r.set(a.i,{start:d+o[l].lead,dur:o[l].dur,end:d+o[l].tail})}),{plans:r,factor:h}}lineEl(t){return this.host.fig.querySelector(`.${this.host.P}-edge[data-edge="${t.i}"]`)}play(){const t=this.host.geo();if(!t?.lines.length)return;this.host.fig.setAttribute("data-entrance","running"),this.t0=E();const{plans:s,factor:e}=this.plan(this.ordered(t));this.factor=e,this.plans=s,this.build(new Set,!0)}build(t,s){const e=this.host.geo(),i=this.host.fig,{P:n}=this.host,o=this.t;if(!e)return;const h=this.introEnd?.playState==="paused"&&this.introEnd.currentTime!==null?Number(this.introEnd.currentTime):null;for(const u of this.intro)u.cancel();this.intro.clear(),this.defs?.remove();const r=i.querySelector(`.${n}-ink`),a=r?.querySelector(`.${n}-svg`);if(!r||!a)return;this.defs=y("svg",{class:`${n}-motion-defs`,width:0,height:0,"aria-hidden":"true",focusable:"false"}),a.after(this.defs);const l=y("defs",{},this.defs),d=(u,m=this.intro)=>(h===null?u.startTime=this.t0:(u.pause(),u.currentTime=h),m.add(u),u);let g=0;for(const u of e.lines){const m=this.plans.get(u.i),f=this.lineEl(u);if(!m||!f)continue;if(g=Math.max(g,m.end),t.has(u.i)){f.removeAttribute("mask");continue}const w=`${this.host.base}-reveal-${u.i}`,k=y("mask",{id:w,maskUnits:"userSpaceOnUse",x:-e.w,y:-e.h,width:3*e.w,height:3*e.h},l),A=f.querySelector(`.${n}-line`);if(A){const b=A.getTotalLength(),z=y("path",{d:A.getAttribute("d")??"",fill:"none",stroke:"#fff","stroke-width":u.width+6,"stroke-dasharray":`${b} ${b+8}`,"stroke-dashoffset":b},k);d(z.animate([{strokeDashoffset:`${b}px`},{strokeDashoffset:"0px"}],{duration:m.dur,delay:m.start,easing:o.inOut,fill:"both"}))}const S=f.querySelector(`.${n}-tip`);if(S){const b=y("path",{d:S.getAttribute("d")??"",fill:"#fff",stroke:"#fff","stroke-width":3,"stroke-linejoin":"round"},k);d(b.animate([{opacity:0},{opacity:1}],{duration:o.slow,delay:m.start+.85*m.dur,easing:o.out,fill:"both"}))}const v=f.querySelector(`.${n}-dot`);if(v){const b=y("circle",{cx:v.getAttribute("cx")??0,cy:v.getAttribute("cy")??0,r:Number(v.getAttribute("r")??3)+1,fill:"#fff"},k);d(b.animate([{opacity:0},{opacity:1}],{duration:o.fast,delay:m.start,easing:o.out,fill:"both"}))}f.setAttribute("mask",`url(#${w})`)}if(s&&this.host.model().type==="sequence"){const u=getComputedStyle(i),m=u.getPropertyValue("--basalt-text-secondary").trim(),f=u.getPropertyValue("--basalt-text-primary").trim(),w=i.querySelectorAll(`.${n}-msg`);this.ordered(e).forEach((k,A)=>{const S=w[A]?.querySelector(`.${n}-mlabel`),v=this.plans.get(k.i);S&&v&&m&&f&&d(S.animate([{color:m},{color:f}],{duration:o.slower,delay:v.start-o.base,easing:o.out,fill:"both"}),this.labels)})}this.introEnd?.cancel(),this.introEnd=d(i.animate([],{duration:Math.max(1,g)}),new Set),this.introEnd.finished.then(()=>this.finishIntro(),()=>{})}finishIntro(){this.entrance()==="running"&&(this.host.fig.setAttribute("data-entrance","done"),this.clearIntro(),this.sync())}clearIntro(){for(const t of[...this.intro,...this.labels])t.cancel();this.intro.clear(),this.labels.clear(),this.introEnd?.cancel(),this.introEnd=null,this.defs?.remove(),this.defs=null,this.host.fig.querySelectorAll(`.${this.host.P}-edge[mask]`).forEach(t=>t.removeAttribute("mask"))}edgeSignature(){const t=this.host.model();return(t.type==="sequence"?t.steps.flatMap(e=>"n"in e?[`${e.from}>${e.to}:${e.kind}`]:[]):t.edges.map(e=>`${e.from}>${e.to}:${e.kind}`)).join("|")}syncLoops(t,s){const e=this.entrance()==="done";if(!t.motion.animated||!e||!this.hasLines()||s.reduce||s.forced||s.print||s.held||this.traced()||E()<this.resumeAt){this.looping&&this.clearLoops();return}const n=!this.inView||document.hidden;if(!this.looping){if(n)return;this.startLoops(t);return}for(const o of this.loops)n&&o.playState==="running"?o.pause():!n&&o.playState==="paused"&&o.play()}startLoops(t){const s=this.host.geo();if(!s)return;this.looping=!0;const e=++this.loopGen;for(const i of t.edges)i.flow&&this.flow(s,i.i);t.motion.pulse?this.pulse(e,t.motion.pulse).catch(()=>{}):t.motion.packet?.repeat&&this.repeat(e,t.motion.packet.path).catch(()=>{})}clearLoops(){this.looping=!1,this.loopGen++;for(const t of this.loops)t.cancel();this.loops.clear();for(const t of[...this.flowEls.values(),...this.beadEls.values()])t.style.display="none";this.dotOwner==="loop"&&this.dot&&(this.dot.style.display="none",this.dotOwner=null),this.runAt<0&&this.dotOwner!=="run"&&this.clearArrivals()}track(t,s){s.add(t);const e=()=>{s.delete(t)};return t.finished.then(e,e),s===this.loops&&(!this.inView||document.hidden)&&t.pause(),t}wait(t,s){return this.track(this.host.fig.animate([],{duration:Math.max(1,t)}),s).finished.then(e=>{e.cancel()})}overlay(t,s,e){const i=this.host.fig.querySelector(`.${this.host.P}-ink`),n=i?.querySelector(`.${this.host.P}-svg`);if(!i||!n)return null;const o=this.host.tokens(),h=$(t,o?.head??8),r=I(h,s),a=y("svg",{class:`${this.host.P}-${e}`,width:r.r-r.l,height:r.b-r.t,viewBox:`${r.l} ${r.t} ${r.r-r.l} ${r.b-r.t}`,"aria-hidden":"true",focusable:"false"});a.style.left=`${r.l}px`,a.style.top=`${r.t}px`;let d=this.defs??n;for(;d.nextElementSibling&&!d.nextElementSibling.classList.contains(`${this.host.P}-label`);)d=d.nextElementSibling;return d.after(a),{svg:a,d:P(h,t.from===t.to?o?.radiusXs??4:o?.radius??8),pts:h}}visible(t,s){const e=this.host.geo();let i=0;for(const n of e?.labels??[])if(n.i===t.i&&n.on){const o=(n.box.t+n.box.b)/2,h=s.some((r,a)=>a>0&&Math.abs(r.y-s[a-1].y)<.5&&Math.abs(o-r.y)<1.5);i+=h?n.box.r-n.box.l:n.box.b-n.box.t}return M(s)-i}flow(t,s){const e=t.lines.find(r=>r.i===s);if(!e)return;const i=this.host.tokens();let n=this.flowEls.get(s);if(n&&!n.isConnected&&(this.flowEls.delete(s),n=void 0),!n){const r=i?.space("1")??4,a=this.overlay({...e,pts:$(e,r)},e.width+2,"flow");if(!a)return;if(this.visible(e,$(e,i?.head??8))<48){a.svg.remove();return}const l=i?.cut??2;y("path",{d:a.d,"stroke-width":e.width+2,"stroke-dasharray":`${l} ${this.t.flowPeriod-l}`},a.svg),n=a.svg,this.flowEls.set(s,n)}n.style.display="";const o=n.firstElementChild,h=this.t.flowPeriod;this.track(o.animate([{strokeDashoffset:"0px"},{strokeDashoffset:`${-h}px`}],{duration:h/this.t.flow*1e3,iterations:1/0,easing:"linear"}),this.loops)}edgeFor(t,s){const i=this.host.model().edges.find(n=>n.from===t&&n.to===s);return i?this.host.geo()?.lines.find(n=>n.i===i.i):void 0}node(t){return this.host.fig.querySelector(`.${this.host.P}-node[data-node="${CSS.escape(t)}"]`)}arrive(t){!t||this.traced()||(clearTimeout(this.arrivals.get(t)),t.removeAttribute("data-arrival-out"),t.setAttribute("data-arrival",""))}depart(t){!t||!t.hasAttribute("data-arrival")||(t.removeAttribute("data-arrival"),t.setAttribute("data-arrival-out",""),this.arrivals.set(t,window.setTimeout(()=>{t.removeAttribute("data-arrival-out"),this.arrivals.delete(t)},this.t.slower*.75)))}clearArrivals(){this.host.fig.querySelectorAll("[data-arrival], [data-arrival-out]").forEach(t=>{t.removeAttribute("data-arrival"),t.removeAttribute("data-arrival-out")});for(const t of this.arrivals.values())clearTimeout(t);this.arrivals.clear()}async pulse(t,s){const e=this.host.tokens();for(;t===this.loopGen;){for(let i=1;i<s.length;i++){const n=this.edgeFor(s[i-1],s[i]);if(!n||t!==this.loopGen)return;let o=this.beadEls.get(n.i);if(o&&!o.isConnected&&(this.beadEls.delete(n.i),o=void 0),!o){const d=this.overlay(n,n.width+2,"bead");if(!d)return;y("path",{d:d.d,"stroke-width":n.width+2*(e?.hair??1)},d.svg),o=d.svg,this.beadEls.set(n.i,o)}o.style.display="";const h=o.firstElementChild,r=h.getTotalLength(),a=Math.min(this.t.bead,.4*this.visible(n,$(n,e?.head??8)));if(h.setAttribute("stroke-dasharray",`${a} ${r+a}`),await this.track(h.animate([{strokeDashoffset:`${a}px`},{strokeDashoffset:`${-r}px`}],{duration:(r+a)/this.t.pulse*1e3,easing:"linear",fill:"forwards"}),this.loops).finished,t!==this.loopGen)return;o.style.display="none";const l=this.node(s[i]);this.arrive(l),await this.wait(this.t.rest,this.loops),this.depart(l)}if(t!==this.loopGen)return;await this.wait(this.t.pause,this.loops)}}dotEl(){const t=this.host.fig.querySelector(`.${this.host.P}-ink`);if(!t)return null;if(!this.dot||!this.dot.isConnected||this.dot.parentElement!==t){this.dot?.remove(),this.dot=document.createElement("span"),this.dot.className=`${this.host.P}-packet`,this.dot.setAttribute("aria-hidden","true");let e=t.querySelector(`.${this.host.P}-svg`);for(;e?.nextElementSibling&&!e.nextElementSibling.classList.contains(`${this.host.P}-label`);)e=e.nextElementSibling;e?e.after(this.dot):t.prepend(this.dot)}return this.dot}async leg(t,s,e,i){const n=this.host.tokens(),o=this.dotEl();if(!o)return;const h=$(t,(n?.head??8)+(n?.space("1")??4)),r=P(h,t.from===t.to?n?.radiusXs??4:n?.radius??8);o.style.offsetPath=`path("${r}")`,o.style.display="",this.dotOwner=s===this.loops?"loop":"run";const a=M(h),l=this.t;if(this.track(o.animate([{opacity:0},{opacity:1}],{duration:l.base,easing:l.out,fill:"both"}),s),await this.track(o.animate([{offsetDistance:"0%"},{offsetDistance:"100%"}],{duration:L(a/l.packet*1e3,l.legMin,l.legMax),easing:l.inOut,fill:"forwards"}),s).finished,!!e()){for(const d of i)this.arrive(d);await this.track(o.animate([{opacity:1},{opacity:0}],{duration:l.base,easing:l.in,fill:"forwards"}),s).finished;for(const d of o.getAnimations())d.cancel();if(o.style.display="none",this.dotOwner=null,!!e()){await this.wait(l.rest,s);for(const d of i)this.depart(d)}}}async packetRun(t,s,e){for(let i=1;i<t.length;i++){const n=this.edgeFor(t[i-1],t[i]);if(!n||!e())return;await this.leg(n,s,e,[this.node(t[i])])}}async repeat(t,s){const e=()=>t===this.loopGen;try{for(;e();){this.inFlight=!0,this.waiting=!1;try{await this.packetRun(s,this.loops,e)}finally{this.inFlight=!1}if(!e())return;if(this.waiting)continue;const i=this.track(this.host.fig.animate([],{duration:Math.max(1,this.t.repeat)}),this.loops);this.repeatGap=i;try{await i.finished}finally{this.repeatGap===i&&(this.repeatGap=null),i.cancel()}}}finally{!e()&&!this.looping&&(this.waiting=!1)}}send(){const t=this.host.model(),s=t.motion.packet?.path;if(!t.motion.animated||!s||!this.hasLines())return;if(this.inFlight){this.waiting=!0;return}const e=this.modes();if(e.held||e.reduce){const n=this.node(s[s.length-1]);this.arrive(n),this.wait(this.t.rest,this.runAnims).then(()=>this.depart(n),()=>this.depart(n));return}if(this.looping&&t.motion.packet?.repeat){this.waiting=!0,this.repeatGap?.finish();return}this.inFlight=!0;const i=++this.runGen;this.packetRun(s,this.runAnims,()=>i===this.runGen).catch(n=>{if(!q(n))throw n}).finally(()=>{this.inFlight=!1,this.waiting&&i===this.runGen&&(this.waiting=!1,this.send())})}stopRun(){this.runGen++,this.runAt=-1;for(const t of this.runAnims)t.cancel();this.runAnims.clear(),this.dot&&this.dotOwner==="run"&&(this.dot.style.display="none",this.dotOwner=null),this.looping||(this.inFlight=!1),this.looping?this.host.fig.querySelectorAll(`.${this.host.P}-msg[data-arrival]`).forEach(t=>t.removeAttribute("data-arrival")):this.clearArrivals()}playRun(t){const s=this.host.geo();if(!s?.lines.length)return;for(const r of this.runAnims)r.cancel();this.runAnims.clear();const e=++this.runGen,i=()=>e===this.runGen,n=this.ordered(s),o=this.host.fig.querySelectorAll(`.${this.host.P}-msg`);this.runAt=t,(async()=>{for(let r=t;r<n.length;r++){if(!i())return;this.runAt=r;const a=n[r],l=[o[r]??null,this.node(a.to)];if(matchMedia("(prefers-reduced-motion: reduce)").matches){const d=this.host.tokens(),g=M($(a,(d?.head??8)+(d?.space("1")??4)));if(await this.wait(L(g/this.t.packet*1e3,this.t.legMin,this.t.legMax)+this.t.base,this.runAnims),!i())return;for(const u of l)this.arrive(u);await this.wait(this.t.rest,this.runAnims);for(const u of l)this.depart(u)}else await this.leg(a,this.runAnims,i,l)}i()&&(this.runAt=-1,this.publish())})().catch(r=>{if(!q(r))throw r})}};function N(t){const s=[],e=[],{pulse:i,packet:n}=t.motion;i&&n&&s.push("a figure names both a pulse and a packet: it has one mover at most");const o=i??n?.path,h=i?"pulse":"packet",r=new Set;if(o){for(const a of o)t.byId.has(a)||s.push(`the ${h} names ${a}, which is not a node`);for(let a=1;a<o.length;a++){const l=t.edges.find(d=>d.from===o[a-1]&&d.to===o[a]);l?r.add(l.i):s.push(`the ${h} goes from ${o[a-1]} to ${o[a]}, and no line joins them in that direction`)}}for(const a of t.edges)a.flow&&(a.kind==="dashed"&&s.push(`the line from ${a.from} to ${a.to} is dashed and flows: flow is on a main or plain line only`),r.has(a.i)&&s.push(`the line from ${a.from} to ${a.to} flows and is on the ${h}'s route: flow never runs on a line the mover travels`),a.label||e.push(`the line from ${a.from} to ${a.to} flows but has no label: motion never carries a fact alone, so its label says it is a stream`));return{errors:s,warnings:e}}function D(t){return new V(t)}(function(t){"use strict";var s=t._;function e(i,n,o){var h=document.createElement("button");return h.type="button",h.className="btn "+i,h.setAttribute("data-variant","secondary"),h.setAttribute("data-size","sm"),o&&o(h),h.appendChild(document.createTextNode(n)),h}s.diagramMotion=function(i,n,o){var h=N(n.model());h.errors.forEach(function(f){console.error("Basalt diagram: "+f)}),h.warnings.forEach(function(f){console.warn("Basalt diagram: "+f)});var r=D(n),a=i.querySelector(".diagram-foot"),l=null,d=null;a&&(l=e("diagram-play","Play the run"),l.addEventListener("click",function(){r.toggleRun()}),d=e("diagram-pause","Pause animations",function(f){f.setAttribute("data-loops-toggle",""),f.setAttribute("aria-pressed",String(!!(t.loops&&t.loops.held())));var w=document.createElement("span");w.className="btn-check",w.setAttribute("aria-hidden","true"),f.appendChild(w)}),l.hidden=d.hidden=!0,a.appendChild(l),a.appendChild(d));function g(){var f=r.state();l&&(l.hidden=!f.runShown,l.lastChild.textContent=f.running?"Stop the run":"Play the run"),d&&(d.hidden=!f.canLoop,d.setAttribute("aria-pressed",String(!!(t.loops&&t.loops.held()))))}var u=r.subscribe(g);g();var m=o&&o.packet?o.packet.send:void 0;return r.sendValue("__diagramSend"in i?i.__diagramSend:m),r.sendValue(m),i.__diagramSend=m,{redrawn:r.redrawn,sendValue:function(f){r.sendValue(f),i.__diagramSend=f},destroy:function(){u(),r.destroy(),l&&l.remove(),d&&d.remove()}}}})(window.Basalt)})(); diff --git a/.agent/skills/basalt-html/parts/diagram.css b/.agent/skills/basalt-html/parts/diagram.css index b06bbdea..9cecd344 100644 --- a/.agent/skills/basalt-html/parts/diagram.css +++ b/.agent/skills/basalt-html/parts/diagram.css @@ -1 +1 @@ -:root{--basalt-size-diagram-node: 144px;--basalt-size-diagram-table: 224px;--basalt-size-diagram-lane: 120px;--basalt-size-diagram-step: 56px;--basalt-size-diagram-head: 8px;--basalt-size-diagram-guide-dash: 4px}:root,[data-theme=light],.light{--basalt-diagram-edge-main: var(--basalt-text-primary);--basalt-diagram-edge: var(--basalt-text-secondary);--basalt-diagram-edge-dim: var(--basalt-border-input);--basalt-diagram-structure: var(--basalt-border-input);--basalt-diagram-focal: var(--basalt-action-primary);--basalt-diagram-focal-ink: var(--basalt-action-primary-text);--basalt-diagram-focal-rule: var(--basalt-white-6);--basalt-diagram-focal-rule-contrast: var(--basalt-white-38)}[data-theme=dark],.dark{--basalt-diagram-edge-main: var(--basalt-text-primary);--basalt-diagram-edge: var(--basalt-text-secondary);--basalt-diagram-edge-dim: var(--basalt-border-input);--basalt-diagram-structure: var(--basalt-border-input);--basalt-diagram-focal: var(--basalt-action-primary);--basalt-diagram-focal-ink: var(--basalt-action-primary-text);--basalt-diagram-focal-rule: var(--basalt-black-8);--basalt-diagram-focal-rule-contrast: var(--basalt-black-45)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not(.light){--basalt-diagram-focal-rule: var(--basalt-black-8);--basalt-diagram-focal-rule-contrast: var(--basalt-black-45)}}@media(prefers-contrast:more){:root,[data-theme=light],[data-theme=dark],.light,.dark,:root:not([data-theme=light]):not(.light){--basalt-diagram-focal-rule: var(--basalt-diagram-focal-rule-contrast)}}@layer basalt{.diagram{--_ground: var(--panel-bg, var(--basalt-surface-page));container-type:inline-size;display:flex;flex-direction:column;gap:var(--basalt-space-4);width:100%;min-width:0;margin:0;font-family:var(--basalt-font-family-sans)}.diagram[hidden]{display:none}.diagram-head{display:flex;flex-direction:column;gap:var(--basalt-space-0-5);min-width:0}.diagram-title{margin:0;color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--bh-md);letter-spacing:var(--basalt-text-md-tracking)}.diagram-source{margin:0;color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-drawing{--_D: initial;--_Display: var(--_D) grid;--_Max: var(--_D) none;--_Cols: var(--_D) repeat(var(--_cols, 1), minmax(0, 1fr));--_Gap: var(--_D) var(--_row-gap) var(--_col-gap);--_Pad: var(--_D) var(--_gpad, 0);--_row-gap: var(--basalt-space-12);--_col-gap: var(--basalt-space-16);position:relative;box-sizing:border-box;display:var(--_Display, flex);flex-direction:column;grid-template-columns:var(--_Cols, none);gap:var(--_Gap, 0);width:100%;max-width:var(--_Max, var(--basalt-size-breakpoint-container));min-width:0;padding:var(--_Pad, 0 var(--_gutter, 0) 0 0)}.diagram[data-layout=drawn]>.diagram-drawing{--_D: }.diagram[data-layout=stacked]>.diagram-drawing{--_D: initial}.diagram[data-gutter]>.diagram-drawing{--_gutter: var(--basalt-space-10)}.diagram[data-type=data-flow]>.diagram-drawing{--_Cols: var(--_D) var(--basalt-size-diagram-lane) repeat(var(--_cols, 1), minmax(0, 1fr));--_row-gap: var(--basalt-space-10);--_col-gap: var(--basalt-space-12)}.diagram[data-type=schema]>.diagram-drawing{--_row-gap: var(--basalt-space-8);--_col-gap: var(--basalt-space-12);display:grid;grid-template-columns:var(--_Cols, repeat(auto-fit, minmax(min(100%, var(--_track, var(--basalt-size-diagram-table))), 1fr)));gap:var(--_Gap, var(--basalt-space-4));align-items:start;max-width:none}.diagram[data-type=sequence]>.diagram-drawing{display:flex;gap:0}.diagram-node{--_Gc: var(--_D) var(--_c);--_Gr: var(--_D) var(--_r) / var(--_r2);--_Mt: var(--_D) 0;--_Align: var(--_D) center;position:relative;z-index:1;box-sizing:border-box;display:flex;flex-direction:column;min-width:0;grid-column:var(--_Gc, auto);grid-row:var(--_Gr, auto);align-self:var(--_Align, stretch);margin-block-start:var(--_Mt, var(--_gap, 0));padding:var(--basalt-space-2-5) var(--basalt-space-3);background:var(--panel-next, var(--basalt-surface-1));border:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-top-color:var(--basalt-border-rim-top);border-radius:var(--basalt-radius-md);color:var(--basalt-text-primary);overflow-wrap:break-word;outline:none;transition:border-color var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram[data-type=data-flow] .diagram-node{--_Gc: var(--_D) var(--_lc)}.diagram-node[data-branch]{--_Mi: var(--_D) 0;margin-inline:var(--_Mi, var(--basalt-space-12) var(--basalt-space-6))}.diagram-node:focus-visible{z-index:2;outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:var(--basalt-size-focus-offset)}.diagram-node[data-near]{border-color:var(--basalt-border-hover)}.diagram-kind{color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-lane-word{--_Lw: var(--_D) none;display:var(--_Lw, inline)}.diagram-name{color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--bh-sm)}.diagram-detail{margin-block-start:var(--basalt-space-0-5);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-detail[data-mono]{font-family:var(--basalt-font-family-mono)}.diagram-run{display:inline-block;max-width:100%}.diagram-node[data-focal]{background:var(--basalt-diagram-focal);border-color:var(--basalt-diagram-focal)}.diagram-node[data-focal] :is(.diagram-name,.diagram-kind,.diagram-detail,.diagram-tname,.diagram-cname,.diagram-keyseat,.diagram-ctype,.diagram-more){color:var(--basalt-diagram-focal-ink)}.diagram-node[data-focal] :is(.diagram-kind,.diagram-detail,.diagram-keyseat,.diagram-ctype,.diagram-more){opacity:var(--basalt-opacity-amount)}.diagram[data-type=flowchart] .diagram-node:not([data-focal]){border-color:var(--basalt-diagram-structure)}.diagram[data-type=flowchart] .diagram-node:not([data-focal],[data-shape=decision])[data-near]{border-color:var(--basalt-text-secondary)}.diagram-node[data-shape=terminal]{align-items:center;padding-inline:var(--basalt-space-5);border-radius:var(--basalt-radius-full);text-align:center}.diagram-node[data-shape=decision]{justify-content:center;align-items:center;height:var(--_h, auto);min-height:var(--basalt-space-16);padding:var(--basalt-space-2) var(--basalt-space-2-5);text-align:center}.diagram-words{position:relative;max-width:calc(62% + (var(--basalt-space-2-5) + var(--basalt-size-hairline)) * 1.24)}.diagram-node[data-shape=decision] .diagram-name{font-weight:var(--basalt-font-weight-medium);text-wrap:balance}.diagram-diamond{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible}.diagram-diamond path{fill:var(--panel-next, var(--basalt-surface-1));stroke:var(--basalt-diagram-structure);stroke-width:var(--basalt-size-hairline);vector-effect:non-scaling-stroke;transition:stroke var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram[data-measured] .diagram-node[data-shape=decision]{background:none;border-color:transparent}.diagram[data-measured] .diagram-node[data-shape=decision] .diagram-diamond{display:block}.diagram-node[data-shape=decision][data-near] .diagram-diamond path{stroke:var(--basalt-text-secondary)}.diagram-node[data-shape=decision][data-focal] .diagram-diamond path{fill:var(--basalt-diagram-focal);stroke:var(--basalt-diagram-focal)}.diagram-group{--_Gd: var(--_D) contents;position:relative;box-sizing:border-box;display:var(--_Gd, flex);flex-direction:column;margin-block-start:calc(var(--basalt-space-12) + var(--basalt-space-4) * var(--_ggrow, 0));padding:var(--basalt-space-8) var(--basalt-space-3) var(--basalt-space-3-5);border:var(--basalt-size-hairline) dashed var(--basalt-diagram-structure);border-radius:var(--basalt-radius-lg)}.diagram-group:first-child{margin-block-start:0}.diagram-group>.diagram-glabel+.diagram-node{--_Mt: 0}.diagram-glabel{position:absolute;top:var(--basalt-space-2);inset-inline-start:var(--basalt-space-3);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-xs-mono);white-space:nowrap}.diagram-group>.diagram-glabel{--_Gl: var(--_D) none;display:var(--_Gl, block)}.diagram-gbox{--_Gb: var(--_D) block;position:relative;display:var(--_Gb, none);grid-column:var(--_c) / var(--_c2);grid-row:var(--_r) / var(--_r2);margin:calc(-1 * var(--basalt-space-8)) calc(-1 * var(--basalt-space-4)) calc(-1 * var(--basalt-space-4));border:var(--basalt-size-hairline) dashed var(--basalt-diagram-structure);border-radius:var(--basalt-radius-lg);pointer-events:none}.diagram-lane{--_Ln: var(--_D) flex;position:relative;display:var(--_Ln, none);grid-column:1 / -1;grid-row:var(--_r);align-items:center;pointer-events:none}.diagram-lane+.diagram-lane:before{content:"";position:absolute;inset-inline:0;top:calc(-1 * var(--basalt-space-5));border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-lane-name{box-sizing:border-box;width:var(--basalt-size-diagram-lane);padding-inline-end:var(--basalt-space-3);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-medium) var(--bh-xs)}.diagram-ink{position:absolute;inset:0;z-index:0;pointer-events:none}.diagram-svg{position:absolute;top:0;left:0;overflow:visible}.diagram-ruler{position:absolute;visibility:hidden;white-space:pre;pointer-events:none}.diagram-ruler[data-f=name]{font:var(--basalt-font-weight-semibold) var(--bh-sm)}.diagram-ruler[data-f=name-500]{font:var(--basalt-font-weight-medium) var(--bh-sm)}.diagram-ruler[data-f=table]{font:var(--basalt-font-weight-semibold) var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-mono)}.diagram-ruler:is([data-f=mono],[data-f=label]){font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-ruler[data-f=sans]{font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-line{fill:none;stroke:var(--basalt-diagram-edge);stroke-width:var(--basalt-size-hairline);transition:stroke var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram-line[data-kind=main]{stroke:var(--basalt-diagram-edge-main);stroke-width:var(--basalt-size-chart-line)}.diagram-line[data-kind=dashed]{stroke-dasharray:var(--basalt-size-chart-dash) var(--basalt-size-chart-dash-gap);stroke-linecap:butt}.diagram-tip{fill:var(--basalt-diagram-edge);transition:fill var(--basalt-duration-fast) var(--basalt-ease-out),stroke var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram-tip[data-kind=main]{fill:var(--basalt-diagram-edge-main)}.diagram-tip[data-open]{fill:none;stroke:var(--basalt-diagram-edge);stroke-width:var(--basalt-size-hairline);stroke-linecap:round;stroke-linejoin:round}.diagram-dot{fill:var(--basalt-diagram-edge)}.diagram-life{fill:none;stroke:var(--basalt-diagram-structure);stroke-width:var(--basalt-size-hairline);stroke-dasharray:var(--basalt-size-diagram-guide-dash) var(--basalt-size-diagram-guide-dash)}.diagram-edge[data-lit] .diagram-line{stroke:var(--basalt-diagram-edge-main)}.diagram-edge[data-lit] .diagram-tip:not([data-open]),.diagram-edge[data-lit] .diagram-dot{fill:var(--basalt-diagram-edge-main)}.diagram-edge[data-lit] .diagram-tip[data-open]{stroke:var(--basalt-diagram-edge-main)}.diagram-edge[data-dim] .diagram-line{stroke:var(--basalt-diagram-edge-dim)}.diagram-edge[data-dim] .diagram-tip:not([data-open]),.diagram-edge[data-dim] .diagram-dot{fill:var(--basalt-diagram-edge-dim)}.diagram-edge[data-dim] .diagram-tip[data-open]{stroke:var(--basalt-diagram-edge-dim)}.diagram-label{position:absolute;box-sizing:border-box;height:var(--basalt-text-xs-line-height);color:var(--basalt-diagram-edge);font:var(--basalt-font-weight-regular) var(--bh-xs-mono);text-align:center;white-space:nowrap;transition:color var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram-label[data-on]{background:var(--_ground)}.diagram-label[data-lit]{color:var(--basalt-diagram-edge-main)}.diagram-cast{--_Cd: var(--_D) grid;display:var(--_Cd, flex);flex-wrap:wrap;grid-template-columns:repeat(var(--_cols, 1),minmax(0,1fr));gap:var(--_Cast-gap, var(--basalt-space-1-5));--_Cast-gap: var(--_D) var(--basalt-space-5);margin:0;padding:0;list-style:none}.diagram-actor{display:flex;min-width:0}.diagram-node[data-shape=participant]{--_Pd: var(--_D) var(--basalt-space-2-5) var(--basalt-space-3);--_Pr: var(--_D) var(--basalt-radius-md);--_Pa: var(--_D) center;flex:var(--_Pflex, none);--_Pflex: var(--_D) 1;align-items:center;justify-content:var(--_Pa, center);min-height:var(--_Ph, var(--basalt-size-badge));--_Ph: var(--_D) 0;padding:var(--_Pd, 0 calc(var(--basalt-space-2) - var(--basalt-size-hairline)));border-radius:var(--_Pr, var(--basalt-radius-xs));text-align:center}.diagram-node[data-shape=participant]:not([data-focal]){--_Pbg: var(--_D) var(--panel-next, var(--basalt-surface-1));--_Pbc: var(--_D) var(--basalt-border-rim);--_Pbt: var(--_D) var(--basalt-border-rim-top);background:var(--_Pbg, none);border-color:var(--_Pbc, var(--basalt-border-hairline));border-top-color:var(--_Pbt, var(--basalt-border-hairline))}.diagram-node[data-shape=participant] .diagram-kind{--_Pk: var(--_D) block;display:var(--_Pk, none)}.diagram-node[data-shape=participant] .diagram-name{font-size:var(--_Pn, var(--basalt-text-xs-size));line-height:var(--_Pnl, var(--basalt-text-xs-line-height));font-weight:var(--_Pw, var(--basalt-font-weight-medium));--_Pn: var(--_D) var(--basalt-text-sm-size);--_Pnl: var(--_D) var(--basalt-text-sm-line-height);--_Pw: var(--_D) var(--basalt-font-weight-semibold)}.diagram-steps{--_Sp: var(--_D) var(--basalt-space-4);position:relative;z-index:1;padding-block-start:var(--_Sp, var(--basalt-space-4))}.diagram-msgs{margin:0;padding:0;list-style:none}.diagram-msg{--_Md: var(--_D) grid;--_Mc: var(--_D) repeat(var(--_cols, 1), minmax(0, 1fr));--_Mr: var(--_D) 1fr 1fr;--_Mh: var(--_D) var(--basalt-size-diagram-step);--_Mg: var(--_D) 0 var(--basalt-space-5);display:grid;grid-template-columns:var(--_Mc, var(--basalt-space-8) minmax(0, 1fr));grid-template-rows:var(--_Mr, auto);column-gap:var(--basalt-space-5);gap:var(--_Mg, 0);height:var(--_Mh, auto);padding-block:var(--_Mpb, var(--basalt-space-2-5));--_Mpb: var(--_D) 0;border-top:var(--_Mb, var(--basalt-size-hairline) solid var(--basalt-border-divider));--_Mb: var(--_D) 0;font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-said{--_Sd: var(--_D) block;display:var(--_Sd, contents);grid-column:var(--_a) / var(--_b);grid-row:1;align-self:end;justify-self:center;margin-block-end:calc(var(--basalt-space-1) + var(--basalt-size-hairline));padding-inline:var(--basalt-space-1-5);background:var(--_ground);white-space:nowrap}.diagram-num{grid-column:1;color:var(--basalt-text-tertiary);font-variant-numeric:tabular-nums}.diagram-said .diagram-num{margin-inline-end:var(--_Nm, 0);--_Nm: var(--_D) var(--basalt-space-1-5)}.diagram-mlabel{grid-column:2;color:var(--basalt-text-primary);font-family:var(--basalt-font-family-mono)}.diagram-route{--_Rd: var(--_D) none;display:var(--_Rd, inline-flex);grid-column:2;align-items:center;gap:var(--basalt-space-1);flex-wrap:wrap;color:var(--basalt-text-secondary)}.diagram-note{--_Nd: var(--_D) 2;grid-column:var(--_Nc, 2);--_Nc: var(--_D) var(--_a) / var(--_b);grid-row:var(--_Nd, auto);align-self:start;justify-self:var(--_Nj, stretch);--_Nj: var(--_D) center;margin-block-start:var(--_Nmt, 0);--_Nmt: var(--_D) calc(var(--basalt-space-1) + var(--basalt-size-hairline));padding-inline:var(--_Npi, 0);--_Npi: var(--_D) var(--basalt-space-1-5);background:var(--_Nbg, none);--_Nbg: var(--_D) var(--_ground);color:var(--basalt-text-tertiary);white-space:var(--_Nws, normal);--_Nws: var(--_D) nowrap}.diagram-msg[data-self=end] :is(.diagram-said,.diagram-note){--_Sj: var(--_D) start;justify-self:var(--_Sj, stretch);--_Sm: var(--_D) calc(50% + var(--basalt-space-6) + var(--basalt-space-1));margin-inline-start:var(--_Sm, 0)}.diagram-msg[data-self=start] :is(.diagram-said,.diagram-note){--_Sj: var(--_D) end;justify-self:var(--_Sj, stretch);--_Sm: var(--_D) calc(50% + var(--basalt-space-6) + var(--basalt-space-1));margin-inline-end:var(--_Sm, 0)}.diagram-arrow{flex:none;overflow:visible}.diagram-band{--_Bh: var(--_D) var(--basalt-size-control-lg);--_Bj: var(--_D) center;position:relative;display:flex;align-items:center;justify-content:var(--_Bj, flex-start);height:var(--_Bh, auto);margin:var(--_Bm, var(--basalt-space-5) 0 var(--basalt-space-2));--_Bm: var(--_D) 0;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-medium) var(--bh-xs)}.diagram-band:before{--_Br: var(--_D) "";content:var(--_Br, none);position:absolute;inset-inline:0;top:50%;border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-band>span{position:relative;padding-inline:var(--_Bp, 0);--_Bp: var(--_D) var(--basalt-space-1-5);background:var(--_ground)}.diagram-node[data-shape=table]{align-self:start;padding:0;overflow-wrap:normal}.diagram-th{padding:var(--basalt-space-2) var(--basalt-space-3);border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-node[data-focal] .diagram-th{border-bottom-color:var(--basalt-diagram-focal-rule)}.diagram-tname{color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-mono)}.diagram-rows{display:flex;flex-direction:column;padding-block:var(--basalt-space-1)}.diagram-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--basalt-space-3);min-height:var(--basalt-size-control-sm);padding-inline:var(--basalt-space-3);font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-keyseat{flex:none;width:var(--basalt-space-6);margin-inline-end:calc(-1 * var(--basalt-space-3));color:var(--basalt-text-tertiary)}.diagram-cname{flex:1 0 auto;color:var(--basalt-text-primary)}.diagram-ctype{margin-inline-start:auto;color:var(--basalt-text-tertiary)}.diagram-ctype[data-ref]{color:var(--basalt-text-secondary)}.diagram-more{padding:0 var(--basalt-space-3) var(--basalt-space-2);color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-key{padding-block-start:var(--basalt-space-3);border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-legend{display:flex;flex-wrap:wrap;gap:var(--basalt-space-2) var(--basalt-space-5);margin:0;padding:0;list-style:none;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-entry{display:inline-flex;align-items:center;gap:var(--basalt-space-1-5)}.diagram[data-layout=drawn] .diagram-entry[data-when=stacked],.diagram[data-layout=stacked] .diagram-entry[data-when=drawn],.diagram:not([data-layout]) .diagram-entry[data-when=drawn]{display:none}.diagram-swatch{flex:none;overflow:visible}.diagram-swatch-shape{fill:var(--_ground);stroke:var(--basalt-diagram-structure);stroke-width:var(--basalt-size-hairline)}.diagram-swatch[data-shape=focal] .diagram-swatch-shape{fill:var(--basalt-diagram-focal);stroke:var(--basalt-diagram-focal)}.diagram-swatch[data-shape=group] .diagram-swatch-shape{fill:none;stroke-dasharray:var(--basalt-space-1) var(--basalt-space-0-5)}.diagram-fk-mark{color:var(--basalt-text-secondary);font-family:var(--basalt-font-family-mono)}.diagram-key-letters{color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-hint{display:flex;flex-wrap:wrap;gap:var(--basalt-space-1) var(--basalt-space-4);margin:0;color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-hint>span{display:inline-flex;align-items:center;gap:var(--basalt-space-1)}.diagram[data-layout=stacked]:is([data-type=sequence],[data-type=schema]) .diagram-hint{display:none}.diagram[data-bare] :is(.diagram-entry[data-line],.diagram-hint){display:none}.diagram-summary{order:1;max-width:var(--basalt-size-prose-width);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-sm);text-wrap:pretty}.diagram-foot{order:2;display:flex}.diagram-list{order:3;max-width:var(--basalt-size-prose-width);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-sm)}.diagram-list[hidden]{display:none}.diagram-list strong{color:var(--basalt-text-primary);font-weight:var(--basalt-font-weight-semibold)}.diagram-code{padding:0;border-radius:0;background:none;color:var(--basalt-text-primary);font:var(--basalt-font-weight-regular) var(--basalt-text-xs-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-mono)}.diagram-list-head{margin:var(--basalt-space-4) 0 var(--basalt-space-2);color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--bh-sm)}.diagram-list-head:first-child{margin-block-start:0}.diagram-list-group{margin:var(--basalt-space-3) 0 var(--basalt-space-1);color:var(--basalt-text-primary);font-size:inherit;font-weight:var(--basalt-font-weight-medium);line-height:inherit}.diagram-list-items{display:flex;flex-direction:column;gap:var(--basalt-space-1);margin:0;padding-inline-start:var(--basalt-space-5)}.diagram-list-exits{margin:var(--basalt-space-1) 0 0;padding-inline-start:var(--basalt-space-5)}@media(pointer:coarse){.diagram-toggle{min-height:var(--basalt-size-tap-min)}}@media(prefers-reduced-motion:reduce){.diagram-node,.diagram-line,.diagram-tip,.diagram-label,.diagram-diamond path{transition:none}}@media(prefers-contrast:more){.diagram-node[data-focal] :is(.diagram-kind,.diagram-detail,.diagram-keyseat,.diagram-ctype,.diagram-more){opacity:1}}@container (width >= 640px){.diagram:not([data-layout]):is(:is([data-type=architecture],[data-type=flowchart]):is([data-cols="1"],[data-cols="2"],[data-cols="3"]),:is([data-type=data-flow],[data-type=schema]):is([data-cols="1"],[data-cols="2"]),[data-type=sequence]:is([data-cols="1"],[data-cols="2"],[data-cols="3"],[data-cols="4"]))>.diagram-drawing{--_D: }}@container (width >= 696px){.diagram:not([data-layout])[data-type=data-flow][data-cols="3"]>.diagram-drawing{--_D: }}@container (width >= 768px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="4"][data-reach="0"],[data-type=flowchart][data-cols="4"],[data-type=schema][data-cols="3"])>.diagram-drawing{--_D: }}@container (width >= 784px){.diagram:not([data-layout])[data-type=architecture][data-cols="4"][data-reach="1"]>.diagram-drawing{--_D: }}@container (width >= 800px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="4"][data-reach="2"],[data-type=sequence][data-cols="5"])>.diagram-drawing{--_D: }}@container (width >= 888px){.diagram:not([data-layout])[data-type=data-flow][data-cols="4"]>.diagram-drawing{--_D: }}@container (width >= 964px){.diagram:not([data-layout])[data-type=sequence][data-cols="6"]>.diagram-drawing{--_D: }}@container (width >= 976px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="5"][data-reach="0"],[data-type=flowchart][data-cols="5"])>.diagram-drawing{--_D: }}@container (width >= 992px){.diagram:not([data-layout])[data-type=architecture][data-cols="5"][data-reach="1"]>.diagram-drawing{--_D: }}@container (width >= 1008px){.diagram:not([data-layout])[data-type=architecture][data-cols="5"][data-reach="2"]>.diagram-drawing{--_D: }}@container (width >= 1040px){.diagram:not([data-layout])[data-type=schema][data-cols="4"]>.diagram-drawing{--_D: }}@container (width >= 1080px){.diagram:not([data-layout])[data-type=data-flow][data-cols="5"]>.diagram-drawing{--_D: }}@container (width >= 1184px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="6"][data-reach="0"],[data-type=flowchart][data-cols="6"])>.diagram-drawing{--_D: }}@container (width >= 1200px){.diagram:not([data-layout])[data-type=architecture][data-cols="6"][data-reach="1"]>.diagram-drawing{--_D: }}@container (width >= 1216px){.diagram:not([data-layout])[data-type=architecture][data-cols="6"][data-reach="2"]>.diagram-drawing{--_D: }}@container (width >= 1272px){.diagram:not([data-layout])[data-type=data-flow][data-cols="6"]>.diagram-drawing{--_D: }}@container (width >= 1312px){.diagram:not([data-layout])[data-type=schema][data-cols="5"]>.diagram-drawing{--_D: }}@container (width >= 1584px){.diagram:not([data-layout])[data-type=schema][data-cols="6"]>.diagram-drawing{--_D: }}@media(scripting:none){.diagram:not(#basalt-diagram-no-id)>.diagram-drawing{--_D: initial}.diagram-list[hidden]{display:block!important}.diagram-foot,.diagram-entry[data-line],.diagram-hint{display:none}}@media(forced-colors:active){.diagram-svg,.diagram-swatch,.diagram-arrow{forced-color-adjust:none}.diagram .diagram-line,.diagram .diagram-line[data-kind]{stroke:CanvasText}.diagram .diagram-tip,.diagram .diagram-tip[data-kind],.diagram .diagram-dot{fill:CanvasText}.diagram .diagram-tip[data-open],.diagram .diagram-tip[data-kind][data-open]{fill:none;stroke:CanvasText}.diagram .diagram-edge[data-dim] .diagram-line{stroke:GrayText}.diagram .diagram-edge[data-dim] :is(.diagram-tip:not([data-open]),.diagram-dot){fill:GrayText}.diagram .diagram-edge[data-dim] .diagram-tip[data-open]{stroke:GrayText}.diagram .diagram-edge[data-lit] .diagram-line{stroke:Highlight}.diagram .diagram-edge[data-lit] :is(.diagram-tip:not([data-open]),.diagram-dot){fill:Highlight}.diagram .diagram-edge[data-lit] .diagram-tip[data-open]{stroke:Highlight}.diagram .diagram-life{stroke:GrayText}.diagram .diagram-label{color:CanvasText;forced-color-adjust:none}.diagram .diagram-label[data-on]{background:Canvas}.diagram .diagram-label[data-lit]{color:Highlight}.diagram .diagram-swatch-shape{fill:Canvas;stroke:CanvasText}.diagram .diagram-swatch[data-shape=group] .diagram-swatch-shape{fill:none;stroke:GrayText}.diagram .diagram-swatch[data-shape=focal] .diagram-swatch-shape{fill:CanvasText;stroke:CanvasText}.diagram[data-type=flowchart] .diagram-node:not([data-focal]),.diagram[data-type=flowchart] .diagram-node:not([data-focal])[data-near]{border-color:CanvasText}.diagram[data-measured][data-type=flowchart] .diagram-node[data-shape=decision][data-shape]{forced-color-adjust:none;background:none;border-color:transparent}.diagram .diagram-diamond{forced-color-adjust:none}.diagram .diagram-diamond path,.diagram .diagram-node[data-near] .diagram-diamond path{fill:Canvas;stroke:CanvasText}.diagram .diagram-group,.diagram .diagram-gbox{border-color:GrayText}.diagram .diagram-lane+.diagram-lane:before,.diagram .diagram-band:before{border-color:GrayText}.diagram .diagram-hint{color:GrayText}.diagram :is(.diagram-kind,.diagram-name,.diagram-detail,.diagram-glabel,.diagram-lane-name,.diagram-title,.diagram-source,.diagram-num,.diagram-mlabel,.diagram-route,.diagram-note,.diagram-band,.diagram-tname,.diagram-cname,.diagram-keyseat,.diagram-ctype,.diagram-more,.diagram-legend,.diagram-fk-mark,.diagram-key-letters){color:CanvasText}.diagram .diagram-node:focus-visible{outline-color:Highlight}.diagram .diagram-node[data-focal],.diagram .diagram-node[data-focal][data-near]{forced-color-adjust:none;background:CanvasText;border-color:CanvasText}.diagram .diagram-node[data-focal] :is(.diagram-name,.diagram-kind,.diagram-detail,.diagram-tname,.diagram-cname,.diagram-keyseat,.diagram-ctype,.diagram-more){color:Canvas;opacity:1}.diagram .diagram-node[data-focal] .diagram-th{border-bottom-color:Canvas}.diagram .diagram-node[data-focal]:focus-visible{outline:var(--basalt-size-focus-width) solid Highlight}.diagram .diagram-node[data-focal][data-shape=decision] .diagram-diamond path{fill:CanvasText;stroke:CanvasText}}@media print{.diagram-svg,.diagram-swatch,.diagram-arrow{print-color-adjust:exact}.diagram-hint{display:none}}} +:root{--basalt-size-diagram-node: 144px;--basalt-size-diagram-table: 224px;--basalt-size-diagram-lane: 120px;--basalt-size-diagram-step: 56px;--basalt-size-diagram-head: 8px;--basalt-size-diagram-guide-dash: 4px;--basalt-size-diagram-bead: 24px;--basalt-size-diagram-flow: 12px}:root,[data-theme=light],.light{--basalt-diagram-edge-main: var(--basalt-text-primary);--basalt-diagram-edge: var(--basalt-text-secondary);--basalt-diagram-edge-dim: var(--basalt-border-input);--basalt-diagram-structure: var(--basalt-border-input);--basalt-diagram-focal: var(--basalt-action-primary);--basalt-diagram-focal-ink: var(--basalt-action-primary-text);--basalt-diagram-focal-rule: var(--basalt-white-6);--basalt-diagram-focal-rule-contrast: var(--basalt-white-38);--basalt-diagram-hit: var(--basalt-text-secondary);--basalt-diagram-focal-hit: var(--basalt-action-primary-hover)}[data-theme=dark],.dark{--basalt-diagram-edge-main: var(--basalt-text-primary);--basalt-diagram-edge: var(--basalt-text-secondary);--basalt-diagram-edge-dim: var(--basalt-border-input);--basalt-diagram-structure: var(--basalt-border-input);--basalt-diagram-focal: var(--basalt-action-primary);--basalt-diagram-focal-ink: var(--basalt-action-primary-text);--basalt-diagram-focal-rule: var(--basalt-black-8);--basalt-diagram-focal-rule-contrast: var(--basalt-black-45);--basalt-diagram-hit: var(--basalt-text-secondary);--basalt-diagram-focal-hit: var(--basalt-action-primary-hover)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not(.light){--basalt-diagram-focal-rule: var(--basalt-black-8);--basalt-diagram-focal-rule-contrast: var(--basalt-black-45)}}@media(prefers-contrast:more){:root,[data-theme=light],[data-theme=dark],.light,.dark,:root:not([data-theme=light]):not(.light){--basalt-diagram-focal-rule: var(--basalt-diagram-focal-rule-contrast);--basalt-diagram-hit: var(--basalt-text-primary)}}@layer basalt{.diagram{--_ground: var(--panel-bg, var(--basalt-surface-page));container-type:inline-size;display:flex;flex-direction:column;gap:var(--basalt-space-4);width:100%;min-width:0;margin:0;font-family:var(--basalt-font-family-sans)}.diagram[hidden]{display:none}.diagram-head{display:flex;flex-direction:column;gap:var(--basalt-space-0-5);min-width:0}.diagram-title{margin:0;color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--bh-md);letter-spacing:var(--basalt-text-md-tracking)}.diagram-source{margin:0;color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-drawing{--_D: initial;--_Display: var(--_D) grid;--_Max: var(--_D) none;--_Cols: var(--_D) repeat(var(--_cols, 1), minmax(0, 1fr));--_Gap: var(--_D) var(--_row-gap) var(--_col-gap);--_Pad: var(--_D) var(--_gpad, 0);--_row-gap: var(--basalt-space-12);--_col-gap: var(--basalt-space-16);position:relative;box-sizing:border-box;display:var(--_Display, flex);flex-direction:column;grid-template-columns:var(--_Cols, none);gap:var(--_Gap, 0);width:100%;max-width:var(--_Max, var(--basalt-size-breakpoint-container));min-width:0;padding:var(--_Pad, 0 var(--_gutter, 0) 0 0)}.diagram[data-layout=drawn]>.diagram-drawing{--_D: }.diagram[data-layout=stacked]>.diagram-drawing{--_D: initial}.diagram[data-gutter]>.diagram-drawing{--_gutter: var(--basalt-space-10)}.diagram[data-type=data-flow]>.diagram-drawing{--_Cols: var(--_D) var(--basalt-size-diagram-lane) repeat(var(--_cols, 1), minmax(0, 1fr));--_row-gap: var(--basalt-space-10);--_col-gap: var(--basalt-space-12)}.diagram[data-type=schema]>.diagram-drawing{--_row-gap: var(--basalt-space-8);--_col-gap: var(--basalt-space-12);display:grid;grid-template-columns:var(--_Cols, repeat(auto-fit, minmax(min(100%, var(--_track, var(--basalt-size-diagram-table))), 1fr)));gap:var(--_Gap, var(--basalt-space-4));align-items:start;max-width:none}.diagram[data-type=sequence]>.diagram-drawing{display:flex;gap:0}.diagram-node{--_Gc: var(--_D) var(--_c);--_Gr: var(--_D) var(--_r) / var(--_r2);--_Mt: var(--_D) 0;--_Align: var(--_D) center;position:relative;z-index:1;box-sizing:border-box;display:flex;flex-direction:column;min-width:0;grid-column:var(--_Gc, auto);grid-row:var(--_Gr, auto);align-self:var(--_Align, stretch);margin-block-start:var(--_Mt, var(--_gap, 0));padding:var(--basalt-space-2-5) var(--basalt-space-3);background:var(--panel-next, var(--basalt-surface-1));border:var(--basalt-size-hairline) solid var(--basalt-border-rim);border-top-color:var(--basalt-border-rim-top);border-radius:var(--basalt-radius-md);color:var(--basalt-text-primary);overflow-wrap:break-word;outline:none;transition:border-color var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram[data-type=data-flow] .diagram-node{--_Gc: var(--_D) var(--_lc)}.diagram-node[data-branch]{--_Mi: var(--_D) 0;margin-inline:var(--_Mi, var(--basalt-space-12) var(--basalt-space-6))}.diagram-node:focus-visible{z-index:2;outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:var(--basalt-size-focus-offset)}.diagram-node[data-near]{border-color:var(--basalt-border-hover)}.diagram-kind{color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-lane-word{--_Lw: var(--_D) none;display:var(--_Lw, inline)}.diagram-name{color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--bh-sm)}.diagram-detail{margin-block-start:var(--basalt-space-0-5);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-detail[data-mono]{font-family:var(--basalt-font-family-mono)}.diagram-run{display:inline-block;max-width:100%}:root,[data-theme=light],.light{--_dkm: initial}[data-theme=dark],.dark{--_dkm: }@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not(.light){--_dkm: }}.diagram-mark{--_mf: var(--_dkm) var(--_md);position:absolute;inset-block-start:var(--basalt-space-2-5);inset-inline-end:var(--basalt-space-3);width:var(--basalt-size-icon-sm);height:var(--basalt-size-icon-sm);background:var(--_mf, var(--_ml)) center / contain no-repeat;pointer-events:none}.diagram-node[data-focal]>.diagram-mark{--_mf: var(--_dkm) var(--_ml);background-image:var(--_mf, var(--_md, var(--_ml)))}.diagram-node[data-mark]>.diagram-mark+:is(.diagram-kind,.diagram-name){padding-inline-end:var(--basalt-space-6)}.diagram-node[data-focal]{background:var(--basalt-diagram-focal);border-color:var(--basalt-diagram-focal)}.diagram-node[data-focal] :is(.diagram-name,.diagram-kind,.diagram-detail,.diagram-tname,.diagram-cname,.diagram-keyseat,.diagram-ctype,.diagram-more){color:var(--basalt-diagram-focal-ink)}.diagram-node[data-focal] :is(.diagram-kind,.diagram-detail,.diagram-keyseat,.diagram-ctype,.diagram-more){opacity:var(--basalt-opacity-amount)}.diagram[data-type=flowchart] .diagram-node:not([data-focal]){border-color:var(--basalt-diagram-structure)}.diagram[data-type=flowchart] .diagram-node:not([data-focal],[data-shape=decision])[data-near]{border-color:var(--basalt-text-secondary)}.diagram-node[data-shape=terminal]{align-items:center;padding-inline:var(--basalt-space-5);border-radius:var(--basalt-radius-full);text-align:center}.diagram-node[data-shape=decision]{justify-content:center;align-items:center;height:var(--_h, auto);min-height:var(--basalt-space-16);padding:var(--basalt-space-2) var(--basalt-space-2-5);text-align:center}.diagram-words{position:relative;max-width:calc(62% + (var(--basalt-space-2-5) + var(--basalt-size-hairline)) * 1.24)}.diagram-node[data-shape=decision] .diagram-name{font-weight:var(--basalt-font-weight-medium);text-wrap:balance}.diagram-diamond{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible}.diagram-diamond path{fill:var(--panel-next, var(--basalt-surface-1));stroke:var(--basalt-diagram-structure);stroke-width:var(--basalt-size-hairline);vector-effect:non-scaling-stroke;transition:stroke var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram[data-measured] .diagram-node[data-shape=decision]{background:none;border-color:transparent}.diagram[data-measured] .diagram-node[data-shape=decision] .diagram-diamond{display:block}.diagram-node[data-shape=decision][data-near] .diagram-diamond path{stroke:var(--basalt-text-secondary)}.diagram-node[data-shape=decision][data-focal] .diagram-diamond path{fill:var(--basalt-diagram-focal);stroke:var(--basalt-diagram-focal)}.diagram-group{--_Gd: var(--_D) contents;position:relative;box-sizing:border-box;display:var(--_Gd, flex);flex-direction:column;margin-block-start:calc(var(--basalt-space-12) + var(--basalt-space-4) * var(--_ggrow, 0));padding:var(--basalt-space-8) var(--basalt-space-3) var(--basalt-space-3-5);border:var(--basalt-size-hairline) dashed var(--basalt-diagram-structure);border-radius:var(--basalt-radius-lg)}.diagram-group:first-child{margin-block-start:0}.diagram-group>.diagram-glabel+.diagram-node{--_Mt: 0}.diagram-glabel{position:absolute;top:var(--basalt-space-2);inset-inline-start:var(--basalt-space-3);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-xs-mono);white-space:nowrap}.diagram-group>.diagram-glabel{--_Gl: var(--_D) none;display:var(--_Gl, block)}.diagram-gbox{--_Gb: var(--_D) block;position:relative;display:var(--_Gb, none);grid-column:var(--_c) / var(--_c2);grid-row:var(--_r) / var(--_r2);margin:calc(-1 * var(--basalt-space-8)) calc(-1 * var(--basalt-space-4)) calc(-1 * var(--basalt-space-4));border:var(--basalt-size-hairline) dashed var(--basalt-diagram-structure);border-radius:var(--basalt-radius-lg);pointer-events:none}.diagram-lane{--_Ln: var(--_D) flex;position:relative;display:var(--_Ln, none);grid-column:1 / -1;grid-row:var(--_r);align-items:center;pointer-events:none}.diagram-lane+.diagram-lane:before{content:"";position:absolute;inset-inline:0;top:calc(-1 * var(--basalt-space-5));border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-lane-name{box-sizing:border-box;width:var(--basalt-size-diagram-lane);padding-inline-end:var(--basalt-space-3);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-medium) var(--bh-xs)}.diagram-ink{position:absolute;inset:0;z-index:0;pointer-events:none}.diagram-svg{position:absolute;top:0;left:0;overflow:visible}.diagram-ruler{position:absolute;visibility:hidden;white-space:pre;pointer-events:none}.diagram-ruler[data-f=name]{font:var(--basalt-font-weight-semibold) var(--bh-sm)}.diagram-ruler[data-f=name-500]{font:var(--basalt-font-weight-medium) var(--bh-sm)}.diagram-ruler[data-f=table]{font:var(--basalt-font-weight-semibold) var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-mono)}.diagram-ruler:is([data-f=mono],[data-f=label]){font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-ruler[data-f=sans]{font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-line{fill:none;stroke:var(--basalt-diagram-edge);stroke-width:var(--basalt-size-hairline);transition:stroke var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram-line[data-kind=main]{stroke:var(--basalt-diagram-edge-main);stroke-width:var(--basalt-size-chart-line)}.diagram-line[data-kind=dashed]{stroke-dasharray:var(--basalt-size-chart-dash) var(--basalt-size-chart-dash-gap);stroke-linecap:butt}.diagram-tip{fill:var(--basalt-diagram-edge);transition:fill var(--basalt-duration-fast) var(--basalt-ease-out),stroke var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram-tip[data-kind=main]{fill:var(--basalt-diagram-edge-main)}.diagram-tip[data-open]{fill:none;stroke:var(--basalt-diagram-edge);stroke-width:var(--basalt-size-hairline);stroke-linecap:round;stroke-linejoin:round}.diagram-dot{fill:var(--basalt-diagram-edge)}.diagram-life{fill:none;stroke:var(--basalt-diagram-structure);stroke-width:var(--basalt-size-hairline);stroke-dasharray:var(--basalt-size-diagram-guide-dash) var(--basalt-size-diagram-guide-dash)}.diagram-edge[data-lit] .diagram-line{stroke:var(--basalt-diagram-edge-main)}.diagram-edge[data-lit] .diagram-tip:not([data-open]),.diagram-edge[data-lit] .diagram-dot{fill:var(--basalt-diagram-edge-main)}.diagram-edge[data-lit] .diagram-tip[data-open]{stroke:var(--basalt-diagram-edge-main)}.diagram-edge[data-dim] .diagram-line{stroke:var(--basalt-diagram-edge-dim)}.diagram-edge[data-dim] .diagram-tip:not([data-open]),.diagram-edge[data-dim] .diagram-dot{fill:var(--basalt-diagram-edge-dim)}.diagram-edge[data-dim] .diagram-tip[data-open]{stroke:var(--basalt-diagram-edge-dim)}.diagram-label{position:absolute;box-sizing:border-box;height:var(--basalt-text-xs-line-height);color:var(--basalt-diagram-edge);font:var(--basalt-font-weight-regular) var(--bh-xs-mono);text-align:center;white-space:nowrap;transition:color var(--basalt-duration-fast) var(--basalt-ease-out)}.diagram-label[data-on]{background:var(--_ground)}.diagram-label[data-lit]{color:var(--basalt-diagram-edge-main)}.diagram-cast{--_Cd: var(--_D) grid;display:var(--_Cd, flex);flex-wrap:wrap;grid-template-columns:repeat(var(--_cols, 1),minmax(0,1fr));gap:var(--_Cast-gap, var(--basalt-space-1-5));--_Cast-gap: var(--_D) var(--basalt-space-5);margin:0;padding:0;list-style:none}.diagram-actor{display:flex;min-width:0}.diagram-node[data-shape=participant]{--_Pd: var(--_D) var(--basalt-space-2-5) var(--basalt-space-3);--_Pr: var(--_D) var(--basalt-radius-md);--_Pa: var(--_D) center;flex:var(--_Pflex, none);--_Pflex: var(--_D) 1;align-items:center;justify-content:var(--_Pa, center);min-height:var(--_Ph, var(--basalt-size-badge));--_Ph: var(--_D) 0;padding:var(--_Pd, 0 calc(var(--basalt-space-2) - var(--basalt-size-hairline)));border-radius:var(--_Pr, var(--basalt-radius-xs));text-align:center}.diagram-node[data-shape=participant]:not([data-focal]){--_Pbg: var(--_D) var(--panel-next, var(--basalt-surface-1));--_Pbc: var(--_D) var(--basalt-border-rim);--_Pbt: var(--_D) var(--basalt-border-rim-top);background:var(--_Pbg, none);border-color:var(--_Pbc, var(--basalt-border-hairline));border-top-color:var(--_Pbt, var(--basalt-border-hairline))}.diagram-node[data-shape=participant] .diagram-kind{--_Pk: var(--_D) block;display:var(--_Pk, none)}.diagram-node[data-shape=participant] .diagram-name{font-size:var(--_Pn, var(--basalt-text-xs-size));line-height:var(--_Pnl, var(--basalt-text-xs-line-height));font-weight:var(--_Pw, var(--basalt-font-weight-medium));--_Pn: var(--_D) var(--basalt-text-sm-size);--_Pnl: var(--_D) var(--basalt-text-sm-line-height);--_Pw: var(--_D) var(--basalt-font-weight-semibold)}.diagram-steps{--_Sp: var(--_D) var(--basalt-space-4);position:relative;z-index:1;padding-block-start:var(--_Sp, var(--basalt-space-4))}.diagram-msgs{margin:0;padding:0;list-style:none}.diagram-msg{--_Md: var(--_D) grid;--_Mc: var(--_D) repeat(var(--_cols, 1), minmax(0, 1fr));--_Mr: var(--_D) 1fr 1fr;--_Mh: var(--_D) var(--basalt-size-diagram-step);--_Mg: var(--_D) 0 var(--basalt-space-5);display:grid;grid-template-columns:var(--_Mc, var(--basalt-space-8) minmax(0, 1fr));grid-template-rows:var(--_Mr, auto);column-gap:var(--basalt-space-5);gap:var(--_Mg, 0);height:var(--_Mh, auto);padding-block:var(--_Mpb, var(--basalt-space-2-5));--_Mpb: var(--_D) 0;border-top:var(--_Mb, var(--basalt-size-hairline) solid var(--basalt-border-divider));--_Mb: var(--_D) 0;font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-said{--_Sd: var(--_D) block;display:var(--_Sd, contents);grid-column:var(--_a) / var(--_b);grid-row:1;align-self:end;justify-self:center;margin-block-end:calc(var(--basalt-space-1) + var(--basalt-size-hairline));padding-inline:var(--basalt-space-1-5);background:var(--_ground);white-space:nowrap}.diagram-num{grid-column:1;color:var(--basalt-text-tertiary);font-variant-numeric:tabular-nums}.diagram-said .diagram-num{margin-inline-end:var(--_Nm, 0);--_Nm: var(--_D) var(--basalt-space-1-5)}.diagram-mlabel{grid-column:2;color:var(--basalt-text-primary);font-family:var(--basalt-font-family-mono)}.diagram-route{--_Rd: var(--_D) none;display:var(--_Rd, inline-flex);grid-column:2;align-items:center;gap:var(--basalt-space-1);flex-wrap:wrap;color:var(--basalt-text-secondary)}.diagram-note{--_Nd: var(--_D) 2;grid-column:var(--_Nc, 2);--_Nc: var(--_D) var(--_a) / var(--_b);grid-row:var(--_Nd, auto);align-self:start;justify-self:var(--_Nj, stretch);--_Nj: var(--_D) center;margin-block-start:var(--_Nmt, 0);--_Nmt: var(--_D) calc(var(--basalt-space-1) + var(--basalt-size-hairline));padding-inline:var(--_Npi, 0);--_Npi: var(--_D) var(--basalt-space-1-5);background:var(--_Nbg, none);--_Nbg: var(--_D) var(--_ground);color:var(--basalt-text-tertiary);white-space:var(--_Nws, normal);--_Nws: var(--_D) nowrap}.diagram-msg[data-self=end] :is(.diagram-said,.diagram-note){--_Sj: var(--_D) start;justify-self:var(--_Sj, stretch);--_Sm: var(--_D) calc(50% + var(--basalt-space-6) + var(--basalt-space-1));margin-inline-start:var(--_Sm, 0)}.diagram-msg[data-self=start] :is(.diagram-said,.diagram-note){--_Sj: var(--_D) end;justify-self:var(--_Sj, stretch);--_Sm: var(--_D) calc(50% + var(--basalt-space-6) + var(--basalt-space-1));margin-inline-end:var(--_Sm, 0)}.diagram-arrow{flex:none;overflow:visible}.diagram-band{--_Bh: var(--_D) var(--basalt-size-control-lg);--_Bj: var(--_D) center;position:relative;display:flex;align-items:center;justify-content:var(--_Bj, flex-start);height:var(--_Bh, auto);margin:var(--_Bm, var(--basalt-space-5) 0 var(--basalt-space-2));--_Bm: var(--_D) 0;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-medium) var(--bh-xs)}.diagram-band:before{--_Br: var(--_D) "";content:var(--_Br, none);position:absolute;inset-inline:0;top:50%;border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-band>span{position:relative;padding-inline:var(--_Bp, 0);--_Bp: var(--_D) var(--basalt-space-1-5);background:var(--_ground)}.diagram-node[data-shape=table]{align-self:start;padding:0;overflow-wrap:normal}.diagram-th{padding:var(--basalt-space-2) var(--basalt-space-3);border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-node[data-focal] .diagram-th{border-bottom-color:var(--basalt-diagram-focal-rule)}.diagram-tname{color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-mono)}.diagram-rows{display:flex;flex-direction:column;padding-block:var(--basalt-space-1)}.diagram-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--basalt-space-3);min-height:var(--basalt-size-control-sm);padding-inline:var(--basalt-space-3);font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-keyseat{flex:none;width:var(--basalt-space-6);margin-inline-end:calc(-1 * var(--basalt-space-3));color:var(--basalt-text-tertiary)}.diagram-cname{flex:1 0 auto;color:var(--basalt-text-primary)}.diagram-ctype{margin-inline-start:auto;color:var(--basalt-text-tertiary)}.diagram-ctype[data-ref]{color:var(--basalt-text-secondary)}.diagram-more{padding:0 var(--basalt-space-3) var(--basalt-space-2);color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-key{padding-block-start:var(--basalt-space-3);border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.diagram-legend{display:flex;flex-wrap:wrap;gap:var(--basalt-space-2) var(--basalt-space-5);margin:0;padding:0;list-style:none;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-entry{display:inline-flex;align-items:center;gap:var(--basalt-space-1-5)}.diagram[data-layout=drawn] .diagram-entry[data-when=stacked],.diagram[data-layout=stacked] .diagram-entry[data-when=drawn],.diagram:not([data-layout]) .diagram-entry[data-when=drawn]{display:none}.diagram-swatch{flex:none;overflow:visible}.diagram-swatch-shape{fill:var(--_ground);stroke:var(--basalt-diagram-structure);stroke-width:var(--basalt-size-hairline)}.diagram-swatch[data-shape=focal] .diagram-swatch-shape{fill:var(--basalt-diagram-focal);stroke:var(--basalt-diagram-focal)}.diagram-swatch[data-shape=group] .diagram-swatch-shape{fill:none;stroke-dasharray:var(--basalt-space-1) var(--basalt-space-0-5)}.diagram-fk-mark{color:var(--basalt-text-secondary);font-family:var(--basalt-font-family-mono)}.diagram-key-letters{color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs-mono)}.diagram-hint{display:flex;flex-wrap:wrap;gap:var(--basalt-space-1) var(--basalt-space-4);margin:0;color:var(--basalt-text-tertiary);font:var(--basalt-font-weight-regular) var(--bh-xs)}.diagram-hint>span{display:inline-flex;align-items:center;gap:var(--basalt-space-1)}.diagram[data-layout=stacked]:is([data-type=sequence],[data-type=schema]) .diagram-hint{display:none}.diagram[data-bare] :is(.diagram-entry[data-line],.diagram-hint){display:none}.diagram-summary{order:1;max-width:var(--basalt-size-prose-width);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-sm);text-wrap:pretty}.diagram-foot{order:2;display:flex;flex-wrap:wrap;gap:var(--basalt-space-2)}.diagram-list{order:3;max-width:var(--basalt-size-prose-width);color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-sm)}.diagram-list[hidden]{display:none}.diagram-list strong{color:var(--basalt-text-primary);font-weight:var(--basalt-font-weight-semibold)}.diagram-code{padding:0;border-radius:0;background:none;color:var(--basalt-text-primary);font:var(--basalt-font-weight-regular) var(--basalt-text-xs-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-mono)}.diagram-list-head{margin:var(--basalt-space-4) 0 var(--basalt-space-2);color:var(--basalt-text-primary);font:var(--basalt-font-weight-semibold) var(--bh-sm)}.diagram-list-head:first-child{margin-block-start:0}.diagram-list-group{margin:var(--basalt-space-3) 0 var(--basalt-space-1);color:var(--basalt-text-primary);font-size:inherit;font-weight:var(--basalt-font-weight-medium);line-height:inherit}.diagram-list-items{display:flex;flex-direction:column;gap:var(--basalt-space-1);margin:0;padding-inline-start:var(--basalt-space-5)}.diagram-list-exits{margin:var(--basalt-space-1) 0 0;padding-inline-start:var(--basalt-space-5)}@media(pointer:coarse){.diagram-toggle{min-height:var(--basalt-size-tap-min)}}@media(prefers-reduced-motion:reduce){.diagram-node,.diagram-line,.diagram-tip,.diagram-label,.diagram-diamond path{transition:none}}@media(prefers-contrast:more){.diagram-node[data-focal] :is(.diagram-kind,.diagram-detail,.diagram-keyseat,.diagram-ctype,.diagram-more){opacity:1}}@container (width >= 640px){.diagram:not([data-layout]):is(:is([data-type=architecture],[data-type=flowchart]):is([data-cols="1"],[data-cols="2"],[data-cols="3"]),:is([data-type=data-flow],[data-type=schema]):is([data-cols="1"],[data-cols="2"]),[data-type=sequence]:is([data-cols="1"],[data-cols="2"],[data-cols="3"],[data-cols="4"]))>.diagram-drawing{--_D: }}@container (width >= 696px){.diagram:not([data-layout])[data-type=data-flow][data-cols="3"]>.diagram-drawing{--_D: }}@container (width >= 768px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="4"][data-reach="0"],[data-type=flowchart][data-cols="4"],[data-type=schema][data-cols="3"])>.diagram-drawing{--_D: }}@container (width >= 784px){.diagram:not([data-layout])[data-type=architecture][data-cols="4"][data-reach="1"]>.diagram-drawing{--_D: }}@container (width >= 800px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="4"][data-reach="2"],[data-type=sequence][data-cols="5"])>.diagram-drawing{--_D: }}@container (width >= 888px){.diagram:not([data-layout])[data-type=data-flow][data-cols="4"]>.diagram-drawing{--_D: }}@container (width >= 964px){.diagram:not([data-layout])[data-type=sequence][data-cols="6"]>.diagram-drawing{--_D: }}@container (width >= 976px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="5"][data-reach="0"],[data-type=flowchart][data-cols="5"])>.diagram-drawing{--_D: }}@container (width >= 992px){.diagram:not([data-layout])[data-type=architecture][data-cols="5"][data-reach="1"]>.diagram-drawing{--_D: }}@container (width >= 1008px){.diagram:not([data-layout])[data-type=architecture][data-cols="5"][data-reach="2"]>.diagram-drawing{--_D: }}@container (width >= 1040px){.diagram:not([data-layout])[data-type=schema][data-cols="4"]>.diagram-drawing{--_D: }}@container (width >= 1080px){.diagram:not([data-layout])[data-type=data-flow][data-cols="5"]>.diagram-drawing{--_D: }}@container (width >= 1184px){.diagram:not([data-layout]):is([data-type=architecture][data-cols="6"][data-reach="0"],[data-type=flowchart][data-cols="6"])>.diagram-drawing{--_D: }}@container (width >= 1200px){.diagram:not([data-layout])[data-type=architecture][data-cols="6"][data-reach="1"]>.diagram-drawing{--_D: }}@container (width >= 1216px){.diagram:not([data-layout])[data-type=architecture][data-cols="6"][data-reach="2"]>.diagram-drawing{--_D: }}@container (width >= 1272px){.diagram:not([data-layout])[data-type=data-flow][data-cols="6"]>.diagram-drawing{--_D: }}@container (width >= 1312px){.diagram:not([data-layout])[data-type=schema][data-cols="5"]>.diagram-drawing{--_D: }}@container (width >= 1584px){.diagram:not([data-layout])[data-type=schema][data-cols="6"]>.diagram-drawing{--_D: }}@media(scripting:none){.diagram:not(#basalt-diagram-no-id)>.diagram-drawing{--_D: initial}.diagram-list[hidden]{display:block!important}.diagram-foot,.diagram-entry[data-line],.diagram-hint{display:none}}@media(forced-colors:active){.diagram-svg,.diagram-swatch,.diagram-arrow{forced-color-adjust:none}.diagram .diagram-line,.diagram .diagram-line[data-kind]{stroke:CanvasText}.diagram .diagram-tip,.diagram .diagram-tip[data-kind],.diagram .diagram-dot{fill:CanvasText}.diagram .diagram-tip[data-open],.diagram .diagram-tip[data-kind][data-open]{fill:none;stroke:CanvasText}.diagram .diagram-edge[data-dim] .diagram-line{stroke:GrayText}.diagram .diagram-edge[data-dim] :is(.diagram-tip:not([data-open]),.diagram-dot){fill:GrayText}.diagram .diagram-edge[data-dim] .diagram-tip[data-open]{stroke:GrayText}.diagram .diagram-edge[data-lit] .diagram-line{stroke:Highlight}.diagram .diagram-edge[data-lit] :is(.diagram-tip:not([data-open]),.diagram-dot){fill:Highlight}.diagram .diagram-edge[data-lit] .diagram-tip[data-open]{stroke:Highlight}.diagram .diagram-life{stroke:GrayText}.diagram .diagram-label{color:CanvasText;forced-color-adjust:none}.diagram .diagram-label[data-on]{background:Canvas}.diagram .diagram-label[data-lit]{color:Highlight}.diagram .diagram-swatch-shape{fill:Canvas;stroke:CanvasText}.diagram .diagram-swatch[data-shape=group] .diagram-swatch-shape{fill:none;stroke:GrayText}.diagram .diagram-swatch[data-shape=focal] .diagram-swatch-shape{fill:CanvasText;stroke:CanvasText}.diagram[data-type=flowchart] .diagram-node:not([data-focal]),.diagram[data-type=flowchart] .diagram-node:not([data-focal])[data-near]{border-color:CanvasText}.diagram[data-measured][data-type=flowchart] .diagram-node[data-shape=decision][data-shape]{forced-color-adjust:none;background:none;border-color:transparent}.diagram .diagram-diamond{forced-color-adjust:none}.diagram .diagram-diamond path,.diagram .diagram-node[data-near] .diagram-diamond path{fill:Canvas;stroke:CanvasText}.diagram .diagram-group,.diagram .diagram-gbox{border-color:GrayText}.diagram .diagram-lane+.diagram-lane:before,.diagram .diagram-band:before{border-color:GrayText}.diagram .diagram-hint{color:GrayText}.diagram :is(.diagram-kind,.diagram-name,.diagram-detail,.diagram-glabel,.diagram-lane-name,.diagram-title,.diagram-source,.diagram-num,.diagram-mlabel,.diagram-route,.diagram-note,.diagram-band,.diagram-tname,.diagram-cname,.diagram-keyseat,.diagram-ctype,.diagram-more,.diagram-legend,.diagram-fk-mark,.diagram-key-letters){color:CanvasText}.diagram .diagram-node:focus-visible{outline-color:Highlight}.diagram .diagram-node[data-focal],.diagram .diagram-node[data-focal][data-near]{forced-color-adjust:none;background:CanvasText;border-color:CanvasText}.diagram .diagram-node[data-focal] :is(.diagram-name,.diagram-kind,.diagram-detail,.diagram-tname,.diagram-cname,.diagram-keyseat,.diagram-ctype,.diagram-more){color:Canvas;opacity:1}.diagram .diagram-node[data-focal] .diagram-th{border-bottom-color:Canvas}.diagram .diagram-node[data-focal]:focus-visible{outline:var(--basalt-size-focus-width) solid Highlight}.diagram .diagram-node[data-focal][data-shape=decision] .diagram-diamond path{fill:CanvasText;stroke:CanvasText}.diagram .diagram-mark{display:none}.diagram .diagram-node[data-mark]>.diagram-mark+:is(.diagram-kind,.diagram-name){padding-inline-end:0}}@media print{.diagram-svg,.diagram-swatch,.diagram-arrow,.diagram-mark,.diagram-node[data-focal]{-webkit-print-color-adjust:exact;print-color-adjust:exact}.diagram-hint{display:none}}} diff --git a/.agent/skills/basalt-html/parts/diagram.js b/.agent/skills/basalt-html/parts/diagram.js index 8f079d3e..af24b73a 100644 --- a/.agent/skills/basalt-html/parts/diagram.js +++ b/.agent/skills/basalt-html/parts/diagram.js @@ -1 +1,2 @@ -(()=>{var Pt=["top","right","bottom","left"],te=["main","plain","dashed"],ee=[2,3,4,5,6],ot=t=>t==null||t===""?void 0:String(t),ut=t=>Object.assign(Object.create(null),t),ht=(t,e)=>t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;function Et(t,e={}){const n=e.checks!==!1,a=[],s=c=>{a.push(c)},o=t.legend??{},r={};for(const c of["main","plain","dashed","focal","group"]){const p=ot(o[c]);p&&(r[c]=p)}const l=t.stepLabel,u=typeof l=="function"?c=>String(l(c)):typeof l=="string"?(c=>l.replace("{n}",String(c))):c=>`Step ${c}`,g=t.shapeLabels??{},h={terminal:ot(g.terminal)??"Start or end",step:ot(g.step)??"Step",decision:ot(g.decision)??"Decision"},i=t.heading===void 0?3:ee.includes(t.heading)?t.heading:(s(`heading ${String(t.heading)} is not a level from 2 to 6: the title is an h3`),3),f=(c,p)=>c==null?"plain":te.includes(c)?c:(s(`"${String(c)}" is not a kind of line (main, plain or dashed): ${p} is drawn plain`),"plain"),x=c=>{if(c!=null){if(Pt.includes(c))return c;s(`"${String(c)}" is not a side (top, right, bottom or left): the derived side is used`)}},m=(c,p)=>typeof c=="number"&&Number.isInteger(c)&&c>=1?c:(s(`${p} is ${JSON.stringify(c)}, not a whole number from 1: it is placed at 1`),1),d=[],y=[];let w=[];const q=[],E=[],L=t.type;if(["architecture","flowchart","data-flow","sequence","schema"].includes(L)||s(`"${String(L)}" is not a type of diagram (architecture, flowchart, data-flow, sequence or schema)`),L==="architecture"||L==="flowchart"){for(const c of t.nodes??[]){const p=L==="flowchart"&&c.shape==="decision"?"decision":L==="flowchart"&&c.shape==="terminal"?"terminal":"box",b=String(c.id??""),k=m(c.row,`the row of ${b}`);d.push({id:b,i:d.length,name:String(c.name??""),kind:p==="decision"?void 0:ot(c.kind),detail:p==="decision"?void 0:ot(c.detail),mono:!!c.detailMono,focal:!!c.focal,col:m(c.col,`the column of ${b}`),row:k,row2:k,branch:!!c.branch,shape:p,group:L==="architecture"?ot(c.group):void 0})}if(L==="architecture")for(const c of t.groups??[]){const p=String(c.id??"");q.push({id:p,label:String(c.label??""),members:d.filter(b=>b.group===p).map(b=>b.id)})}}else if(L==="data-flow"){w=(t.lanes??[]).map(p=>({id:String(p.id??""),label:String(p.label??"")}));const c=new Map(w.map((p,b)=>[p.id,b+1]));for(const p of t.nodes??[]){const b=String(p.id??""),k=String(p.lane??""),R=c.get(k);R===void 0&&s(`a node (${b}) names the lane "${k}", which is not in lanes`);const M=d.length+1;d.push({id:b,i:d.length,name:String(p.name??""),kind:u(M),detail:ot(p.detail),mono:!!p.detailMono,focal:!!p.focal,col:m(p.col,`the column of ${b}`),row:R??1,row2:R??1,branch:!1,shape:"box",lane:R??1,laneLabel:w[(R??1)-1]?.label??k,step:M})}}else if(L==="sequence"){(t.participants??[]).forEach((p,b)=>{const k=String(p.name??"");d.push({id:String(p.id??""),i:b,name:k,kind:ot(p.kind),mono:!1,focal:!!p.focal,col:b+1,row:1,row2:1,branch:!1,shape:"participant",short:ot(p.short)??k})});let c=0;for(const p of t.steps??[])"band"in p?E.push({band:String(p.band??"")}):(c++,E.push({n:c,from:String(p.from??""),to:String(p.to??""),label:String(p.label??""),note:ot(p.note),kind:f(p.kind,`message ${c}`)}))}else if(L==="schema")for(const c of t.tables??[]){const p=String(c.name??""),[b,k]=Array.isArray(c.row)?c.row:[c.row,c.row],R=m(b,`the row of ${p}`),M=Math.max(R,m(k,`the last row of ${p}`)),G=c.more===void 0||c.more===null?void 0:Number.isInteger(c.more)&&c.more>0?c.more:(s(`${p}'s "more" is ${JSON.stringify(c.more)}, not a whole number from 1: it is left out`),void 0);d.push({id:p,i:d.length,name:p,mono:!0,focal:!!c.focal,col:m(c.col,`the column of ${p}`),row:R,row2:M,branch:!1,shape:"table",more:G,columns:(c.columns??[]).map(C=>({name:String(C.name??""),type:ot(C.type),key:C.key==="PK"||C.key==="FK"?C.key:(C.key!==void 0&&C.key!==null&&s(`${p}.${String(C.name)}'s key is "${String(C.key)}", not PK or FK: it is left out`),void 0)}))})}const _=new Map;for(const c of d)c.id?_.has(c.id)&&s(`the id "${c.id}" is used twice`):s("a node has no id"),_.set(c.id,c);if(L==="schema")(t.tables??[]).forEach(c=>(c.columns??[]).forEach((p,b)=>{const k=ot(p.references);if(!k)return;const[R,M]=k.split("."),G=_.get(R??""),C=G?.columns?.findIndex(W=>W.name===M)??-1;if(!G||C<0){s(`${String(c.name)}.${String(p.name)} references ${k}, which is not a shown column`);return}const K=_.get(String(c.name??""));K.columns[b].ref={table:R,column:M,row:C},y.push({i:y.length,from:K.id,to:R,kind:"plain",fromRow:b,toRow:C,fk:!0})}));else if(L!=="sequence")for(const c of t.edges??[]){const p=String(c.from??""),b=String(c.to??"");if(!_.has(p)||!_.has(b)){s(`a line names ${_.has(p)?b:p}, which is not a node`);continue}const k=ot(c.label);k&&k.length>At&&s(`the label "${k}" is over ${At} characters: longer words belong in the node or the summary`),y.push({i:y.length,from:p,to:b,kind:f(c.kind,`the line from ${p} to ${b}`),label:k,fromSide:x(c.fromSide),toSide:x(c.toSide)})}else for(const c of E)"n"in c&&(!_.has(c.from)||!_.has(c.to))&&s(`message ${c.n} names ${_.has(c.from)?c.to:c.from}, which is not a participant`);if(n&&L!=="sequence"){const c=new Map;for(const p of d)for(let b=p.row;b<=p.row2;b++){const k=`${p.col}:${b}`;c.has(k)&&s(`${p.id} and ${c.get(k)} share the cell at column ${p.col}, row ${b}`),c.set(k,p.id)}}if(n){for(const p of q){const b=p.members.map(M=>_.get(M));if(!b.length)continue;const k={c1:Math.min(...b.map(M=>M.col)),c2:Math.max(...b.map(M=>M.col)),r1:Math.min(...b.map(M=>M.row)),r2:Math.max(...b.map(M=>M.row2))};for(const M of d)M.group!==p.id&&M.col>=k.c1&&M.col<=k.c2&&M.row>=k.r1&&M.row<=k.r2&&s(`${M.id} is inside the box of the group "${p.label}" but not a member`);const R=b.map(M=>M.i);Math.max(...R)-Math.min(...R)+1!==R.length&&s(`the members of the group "${p.label}" are not next to each other in the author's order, so the stacked drawing cannot wrap them in one box`)}for(const p of d)p.group&&!q.some(b=>b.id===p.group)&&s(`${p.id} names the group "${p.group}", which is not in groups`);d.filter(p=>p.focal).length>1&&s("more than one node is focal: a diagram has one at most");const c=new Set(L==="sequence"?E.flatMap(p=>"n"in p?[p.kind]:[]):y.map(p=>p.kind));c.has("main")&&!r.main&&s("main lines are drawn but the legend has no words for them (legend.main)"),c.has("dashed")&&!r.dashed&&s("dashed lines are drawn but the legend has no words for them (legend.dashed)"),d.some(p=>p.focal)&&!r.focal&&s("a focal node is drawn but the legend has no words for what it marks (legend.focal)")}const j=Math.max(1,...d.map(c=>c.col)),B=L==="data-flow"?Math.max(1,w.length):Math.max(1,...d.map(c=>c.row2));return{type:L,title:String(t.title??""),heading:i,legend:r,nodes:d,byId:_,edges:y,groups:q,lanes:w,steps:E,cols:j,rows:B,shapeLabels:h,stepWord:u,warnings:a,memo:new Map}}function bt(t,e,n){return t.memo.has(e)||t.memo.set(e,n()),t.memo.get(e)}var At=28,pt=t=>{const e=t.trim();return e?/[.!?]$/.test(e)?e:`${e}.`:""};function Lt(t,e){return t.legend[e]}function ne(t,e){return e.shape==="decision"?"decision":e.shape==="terminal"?t.edges.some(n=>n.from===e.id)?"start":"end":e.kind??"step"}function oe(t,e){return bt(t,`sentence:${e.i}`,()=>se(t,e))}function se(t,e){const n=[];if(t.type==="schema"){n.push(`${e.name}, table.`);const a=(e.columns??[]).filter(o=>o.ref).map(o=>`${o.ref.table} (${o.name})`),s=t.edges.filter(o=>o.to===e.id).map(o=>`${o.from} (${t.byId.get(o.from).columns[o.fromRow].name})`);a.length&&n.push(`References ${a.join(", ")}.`),s.length&&n.push(`Referenced by ${s.join(", ")}.`)}else if(t.type==="sequence"){const a=t.steps.filter(o=>"n"in o&&o.from===e.id).length,s=t.steps.filter(o=>"n"in o&&o.to===e.id).length;n.push(pt(e.kind?`${e.name}, ${e.kind}`:e.name)),n.push(`Sends ${a} ${a===1?"message":"messages"} and receives ${s}.`)}else{const a=t.type==="data-flow"?`${t.stepWord(e.step)} of ${t.nodes.length}, ${e.laneLabel}`:t.type==="flowchart"?ne(t,e):e.kind;if(n.push(pt(a?`${e.name}, ${a}`:e.name)),e.detail&&n.push(pt(e.detail)),e.group){const r=t.groups.find(l=>l.id===e.group);r&&n.push(`In ${r.label}.`)}const s=t.edges.filter(r=>r.to===e.id).map(r=>`${t.byId.get(r.from).name}${r.label?` (${r.label})`:""}`),o=t.edges.filter(r=>r.from===e.id).map(r=>`${t.byId.get(r.to).name}${r.label?` (${r.label})`:""}`);s.length&&n.push(`From: ${s.join(", ")}.`),o.length&&n.push(`To: ${o.join(", ")}.`)}return e.focal&&t.legend.focal&&n.push(pt(t.legend.focal)),n.join(" ")}function ae(t){return t.type==="architecture"?"a part":t.type==="sequence"?"a participant":t.type==="schema"?"a table":"a step"}function $(t,e,...n){const a=[];for(const s of n.flat(1/0))s!=null&&s!==!1&&!Array.isArray(s)&&a.push(s);return{t,a:e??{},c:a}}var re={"&":"&","<":"<",">":">",'"':""","'":"'"},at=t=>t.replace(/[&<>"']/g,e=>re[e]),ie=" br img input meta link hr path polygon polyline circle rect line ";function qt(t,e={}){if(typeof t=="string")return at(t);if("slot"in t)return e[t.slot]??"";if(!/^[a-z][a-z0-9]*$/.test(t.t))throw new Error(`diagram: "${t.t}" is not an element name`);let n="";for(const[a,s]of Object.entries(t.a))if(!(s==null||s===!1)){if(!/^[a-z][a-z0-9:-]*$/i.test(a))throw new Error(`diagram: "${a}" is not an attribute name`);n+=s===!0?` ${a}`:` ${a}="${at(String(s))}"`}return ie.includes(` ${t.t} `)&&!t.c.length?t.t==="path"||t.t==="polygon"||t.t==="polyline"||t.t==="circle"||t.t==="rect"||t.t==="line"?`<${t.t}${n}/>`:`<${t.t}${n}>`:`<${t.t}${n}>${t.c.map(a=>qt(a,e)).join("")}</${t.t}>`}var le=t=>({title:`${t}-title`,summary:`${t}-summary`,keys:`${t}-keys`,list:`${t}-list`,toggle:`${t}-toggle`});function ft(t,e){return!e.layout||e.bare?!1:e.layout==="drawn"?!0:t.type!=="sequence"&&t.type!=="schema"}function ce(t,e){return t.type==="sequence"||t.type==="schema"?e.layout==="drawn":!0}function It(t){let e=0;for(const n of t.groups){const a=n.members.map(s=>t.byId.get(s).col);a.length&&(Math.min(...a)===1&&(e|=1),Math.max(...a)===t.cols&&(e|=2))}return(e&1)+(e>>1&1)}function Mt(t){return t.type==="sequence"?t.nodes.length:t.cols}function Ot(t){return bt(t,"plan",()=>de(t))}function de(t){const e=t.nodes,n=d=>t.type==="data-flow"||!e[d].branch,a=t.edges.map(d=>{const y=t.byId.get(d.from).i,w=t.byId.get(d.to).i,E=e.slice(Math.min(y,w)+1,Math.max(y,w)).every(L=>!n(L.i));return w===y+1&&!(n(y)&&!n(w))?"down":w===y-1?"up":w>y&&n(y)&&!n(w)&&E?"trunk":w>y&&n(y)&&n(w)&&E?"rail":w>y?"end-down":"end-up"}),s=t.edges.map((d,y)=>({e:d,k:y})).filter(({k:d})=>a[d]==="end-down"||a[d]==="end-up"),o=d=>{const y=t.byId.get(d.from).i,w=t.byId.get(d.to).i;return[Math.min(y,w),Math.max(y,w)]},r=(d,y)=>{const[w,q]=o(d),[E,L]=o(y);return w<L&&E<q},l=s.every(({e:d})=>{const y=t.byId.get(d.from).i,[w,q]=o(d);return!n(y)&&e.slice(w+1,q).every(E=>!n(E.i))&&s.every(E=>E.e===d||!r(E.e,d))}),u=s.length>0&&(t.type==="data-flow"||!l),g=d=>{const[y,w]=o(d);return w-y},h=t.edges.map(()=>0);let i=!1;const f=[];for(const d of[...s].sort((y,w)=>g(y.e)-g(w.e)||y.k-w.k)){let y=0;for(const w of f)r(w.e,d.e)&&(y=Math.max(y,h[w.k]+1));h[d.k]=y,y>1&&(i=!0),f.push(d)}const x=t.edges.map(()=>.5);for(const d of e){const y=s.filter(({e:E})=>E.from===d.id);if(y.length<2)continue;const w=y.filter(({k:E})=>a[E]==="end-down").sort((E,L)=>g(L.e)-g(E.e)||E.k-L.k);[...y.filter(({k:E})=>a[E]==="end-up").sort((E,L)=>g(E.e)-g(L.e)||L.k-E.k),...w].forEach(({k:E},L,_)=>{x[E]=_.length===2?L===0?1/3:2/3:(L+1)/(_.length+1)})}const m=ut();for(let d=1;d<e.length;d++){const y=e[d],w=e[d-1];let q=0,E=t.type==="data-flow"?48:32,L=!1,_=!1;t.edges.forEach((j,B)=>{const c=a[B],p=t.byId.get(j.from).i,b=t.byId.get(j.to).i,k=b===d&&(c==="down"||c==="trunk"||c==="rail"||c==="end-down"),R=p===d&&b===d-1&&c==="up",M=b===d-1&&c==="end-up";k&&(c==="trunk"||c==="end-down")&&(L=!0),M&&(_=!0),(k||R||M)&&j.label&&(q++,E=Math.max(E,c==="trunk"?40:48))}),(q>1||L&&_)&&(E=64),m[y.id]=E}return{routes:a,gutter:u,lanes:h,exits:x,gaps:m,third:i}}var gt=(t,e)=>({width:t,height:e,viewBox:`0 0 ${t} ${e}`,"aria-hidden":"true",focusable:"false"});function _t(t,e){const n=e==="fk"?"plain":e,a=n==="main"?8:8.5,s=24,o=n==="dashed"?s-1:s-7;return $("svg",{class:`${t}-swatch`,"data-kind":n,...gt(24,16)},e==="fk"?$("circle",{class:`${t}-dot`,cx:3,cy:a,r:3}):null,$("path",{class:`${t}-line`,"data-kind":n,d:`M${e==="fk"?3:0} ${a}H${o}`}),n==="dashed"?$("path",{class:`${t}-tip`,"data-kind":n,"data-open":"",d:`M${s-8} ${a-4}L${s} ${a}L${s-8} ${a+4}`}):$("path",{class:`${t}-tip`,"data-kind":n,d:`M${s} ${a}L${s-8} ${a-4}L${s-8} ${a+4}Z`}))}function yt(t,e){return e==="decision"?$("svg",{class:`${t}-swatch`,"data-shape":e,...gt(16,16)},$("path",{class:`${t}-swatch-shape`,d:"M8 2.5L14.5 8L8 13.5L1.5 8Z"})):e==="terminal"?$("svg",{class:`${t}-swatch`,"data-shape":e,...gt(16,16)},$("rect",{class:`${t}-swatch-shape`,x:.5,y:3.5,width:15,height:9,rx:4.5})):$("svg",{class:`${t}-swatch`,"data-shape":e,...gt(16,16)},$("rect",{class:`${t}-swatch-shape`,x:.5,y:2.5,width:15,height:11,rx:2}))}function ue(t,e){return bt(e,`key:${t}`,()=>fe(t,e))}function fe(t,e){const n=[],a=(o,r,l={})=>n.push($("li",{class:`${t}-entry`,...l},o,$("span",null,r)));if(e.type==="schema"){const o=new Set(e.nodes.flatMap(r=>(r.columns??[]).map(l=>l.key)));for(const[r,l]of[["PK","Primary key"],["FK","Foreign key"]])o.has(r)&&n.push($("li",{class:`${t}-entry`},$("span",{class:`${t}-key-letters`,"aria-hidden":"true"},r),$("span",null,l)))}if(e.type==="flowchart"){const o=new Set(e.nodes.map(r=>r.shape));o.has("terminal")&&a(yt(t,"terminal"),e.shapeLabels.terminal),o.has("box")&&a(yt(t,"box"),e.shapeLabels.step),o.has("decision")&&a(yt(t,"decision"),e.shapeLabels.decision)}const s=new Set(e.type==="sequence"?e.steps.flatMap(o=>"n"in o?[o.kind]:[]):e.edges.filter(o=>!o.fk).map(o=>o.kind));for(const o of["main","plain","dashed"]){const r=e.legend[o];s.has(o)&&r&&a(_t(t,o),r,{"data-line":""})}return e.type==="schema"&&e.edges.length&&(a(_t(t,"fk"),e.legend.plain??"A foreign key, to the key it references",{"data-line":"","data-when":"drawn"}),n.push($("li",{class:`${t}-entry`,"data-when":"stacked"},$("span",{class:`${t}-fk-mark`,"aria-hidden":"true"},"→"),$("span",null,"The table a foreign key references")))),e.nodes.some(o=>o.focal)&&e.legend.focal&&a(yt(t,"focal"),e.legend.focal,{"data-focal":""}),e.groups.length&&e.legend.group&&a(yt(t,"group"),e.legend.group),n.length?$("div",{class:`${t}-key`},$("ul",{class:`${t}-legend`,"aria-label":"Key"},n)):null}function he(t,e){const n=e==="main"?6:6.5;return $("svg",{class:`${t}-arrow`,"data-kind":e,...gt(20,12)},$("path",{class:`${t}-line`,"data-kind":e,d:`M0 ${n}H${e==="dashed"?19:13}`}),e==="dashed"?$("path",{class:`${t}-tip`,"data-kind":e,"data-open":"",d:`M12 ${n-4}L20 ${n}L12 ${n+4}`}):$("path",{class:`${t}-tip`,"data-kind":e,d:`M20 ${n}L12 ${n-4}L12 ${n+4}Z`}))}function pe(t,e,n){if(n.shape==="decision")return[$("span",{class:`${t}-words`},$("span",{class:`${t}-name`},n.name))];const a=[];return e.type==="data-flow"?a.push($("span",{class:`${t}-kind`},n.kind,$("span",{class:`${t}-lane-word`},` · ${n.laneLabel}`))):n.kind&&a.push($("span",{class:`${t}-kind`},n.kind)),a.push($("span",{class:`${t}-name`},n.name)),n.detail&&a.push($("span",{class:`${t}-detail`,"data-mono":n.mono?"":void 0},n.mono?wt(n.detail).flatMap((s,o)=>[o?" ":"",$("span",{class:`${t}-run`},s)]):n.detail)),a}function ge(t,e){return[$("span",{class:`${t}-th`},$("span",{class:`${t}-tname`},e.name)),$("span",{class:`${t}-rows`},(e.columns??[]).map((n,a)=>$("span",{class:`${t}-row`,"data-row":a,"data-key":n.key},$("span",{class:`${t}-keyseat`},n.key??""),$("span",{class:`${t}-cname`},n.name),n.ref?$("span",{class:`${t}-ctype`,"data-ref":""},`→ ${n.ref.table}`):n.type?$("span",{class:`${t}-ctype`},n.type):null))),e.more?$("span",{class:`${t}-more`},`+ ${e.more} more`):null]}var Ct=t=>{const e={32:"space-8",40:"space-10",48:"space-12",64:"space-16"};return e[t]?`var(--basalt-${e[t]})`:`${t}px`};function vt(t,e,n,a){const{P:s}=t,o=ce(e,a)||a.keep===n.id,r=ft(e,a),l=[`--_c:${n.col}`,`--_r:${n.row}`,`--_r2:${n.row2+1}`];e.type==="data-flow"&&l.push(`--_lc:${n.col+1}`),e.type==="sequence"&&l.push(`--_c2:${n.col+1}`);const u=t.plan;if(u&&n.i>0){const i=ht(u.gaps,n.id)??32,f=ht(a.grow,n.id)??0;l.push(`--_gap:${f?`calc(${Ct(i)} + var(--basalt-space-4) * ${f})`:Ct(i)}`)}const g=ht(a.heights,n.id);g&&l.push(`--_h:${g}px`);const h=r?a.stop===n.id?0:-1:a.keep===n.id?-1:void 0;return $("div",{class:`${s}-node`,"data-node":n.id,"data-shape":n.shape,"data-focal":n.focal?"":void 0,"data-branch":n.branch?"":void 0,"data-level":t.level,style:l.join(";"),role:o?"img":void 0,"aria-label":o?oe(e,n):void 0,tabindex:h},n.shape==="decision"?$("svg",{class:`${s}-diamond`,viewBox:"0 0 100 100",preserveAspectRatio:"none","aria-hidden":"true",focusable:"false"},$("path",{d:"M50 0L100 50L50 100L0 50Z"})):null,n.shape==="table"?ge(s,n):pe(s,e,n))}function ye(t,e,n){const{P:a}=t,s=[];if(e.type==="data-flow"&&s.push(...e.lanes.map((r,l)=>$("div",{class:`${a}-lane`,style:`--_r:${l+1}`,"aria-hidden":"true"},$("span",{class:`${a}-lane-name`},r.label)))),e.type==="architecture")for(const r of e.groups){const l=r.members.map(f=>e.byId.get(f));if(!l.length)continue;const u=Math.min(...l.map(f=>f.col)),g=Math.max(...l.map(f=>f.col)),h=Math.min(...l.map(f=>f.row)),i=Math.max(...l.map(f=>f.row2));s.push($("div",{class:`${a}-gbox`,"data-group":r.id,style:`--_c:${u};--_c2:${g+1};--_r:${h};--_r2:${i+1}`,"aria-hidden":"true"},$("span",{class:`${a}-glabel`},r.label)))}if(e.type==="sequence")return s.push($("ul",{class:`${a}-cast`},e.nodes.map(r=>$("li",{class:`${a}-actor`},vt(t,e,r,n))))),s.push(me(t,e)),s;let o=0;for(;o<e.nodes.length;){const r=e.nodes[o],l=r.group?e.groups.find(h=>h.id===r.group):void 0;if(!l){s.push(vt(t,e,r,n)),o++;continue}const u=[];for(;o<e.nodes.length&&e.nodes[o].group===l.id;)u.push(e.nodes[o++]);const g=t.plan?ht(n.grow,u[0].id)??0:0;s.push($("div",{class:`${a}-group`,"data-group":l.id,style:g?`--_ggrow:${g}`:void 0},$("span",{class:`${a}-glabel`,"aria-hidden":"true"},l.label),u.map(h=>vt(t,e,h,n))))}return s}function me(t,e){const{P:n}=t,a=[];let s=null;for(const o of e.steps){if("band"in o){s=null,a.push($("p",{class:`${n}-band`},$("span",null,o.band)));continue}s||(s=$("ol",{class:`${n}-msgs`,start:o.n}),a.push(s));const r=e.byId.get(o.from),l=e.byId.get(o.to),u=r?.col??1,g=l?.col??1,h=u===g,i=h&&u===e.nodes.length,f=Lt(e,o.kind);s.c.push($("li",{class:`${n}-msg`,"data-kind":o.kind,"data-from":o.from,"data-to":o.to,"data-self":h?i?"start":"end":void 0,style:`--_a:${Math.min(u,g)};--_b:${Math.max(u,g)+1}`},$("span",{class:`${n}-said`},$("span",{class:`${n}-num`},String(o.n)),$("span",{class:`${n}-mlabel`},o.label)),$("span",{class:`${n}-route`},r?.short??o.from," ",he(n,o.kind),$("span",{class:t.hidden}," to ")," ",l?.short??o.to,f?` · ${f}`:""),o.note?$("span",{class:`${n}-note`},o.note):null))}return $("div",{class:`${n}-steps`},a)}function be(t,e){return bt(e,`list:${t}`,()=>$e(t,e))}function $e(t,e){const n=Math.min(6,e.heading+1),a=h=>$(`h${n}`,{class:`${t}-list-head`},h),s=h=>$("strong",null,h),o=h=>$("code",{class:`${t}-code`},h),r=h=>e.byId.get(h)?.name??h,l=h=>{const i=Lt(e,h);return i?` (${i})`:""},u=h=>h.focal&&e.legend.focal?` ${pt(e.legend.focal)}`:"";if(e.type==="architecture"){const h=x=>$("li",null,s(x.name),x.kind?`, ${x.kind}`:"",x.detail?[". ",x.mono?o(x.detail):x.detail,/[.!?]$/.test(x.detail)?"":"."]:/[.!?]$/.test(x.kind??x.name)?"":".",u(x)),i=[a("Parts")],f=e.nodes.filter(x=>!x.group);f.length&&i.push($("ul",{class:`${t}-list-items`},f.map(h)));for(const x of e.groups)i.push($("p",{class:`${t}-list-group`},x.label)),i.push($("ul",{class:`${t}-list-items`},x.members.map(m=>h(e.byId.get(m)))));return i.push(a("Connections")),i.push($("ol",{class:`${t}-list-items`},e.edges.map(x=>$("li",null,s(r(x.from))," to ",s(r(x.to)),x.label?[": ",o(x.label)]:"",`${l(x.kind)}.`)))),i}if(e.type==="flowchart"){const h=i=>(e.byId.get(i)?.i??0)+1;return[$("ol",{class:`${t}-list-items`},e.nodes.map(i=>{const f=e.edges.filter(d=>d.from===i.id),x=i.shape==="decision"?"Decision":i.shape==="terminal"?f.length?"Start":"End":"Step",m=!i.detail&&/[.!?]$/.test(i.name)?" ":". ";return $("li",null,s(i.name),i.detail?[", ",i.mono?o(i.detail):i.detail]:"",`${m}${x}.`,u(i),f.length?$("ul",{class:`${t}-list-exits`},f.map(d=>$("li",null,d.label?`If ${d.label}: go to ${h(d.to)}, `:`Then: go to ${h(d.to)}, `,s(r(d.to)),l(d.kind)))):null)}))]}if(e.type==="data-flow")return[$("ol",{class:`${t}-list-items`},e.nodes.map(h=>{const i=e.edges.filter(f=>f.from===h.id);return $("li",null,`${h.laneLabel}: `,s(h.name),h.detail?[", ",h.mono?o(h.detail):h.detail]:"",".",u(h),i.length?[" Then ",...i.flatMap((f,x)=>[x?"; ":"",`to step ${e.byId.get(f.to).step}, `,s(r(f.to)),f.label?[": ",o(f.label)]:"",l(f.kind)]),"."]:"")}))];if(e.type==="sequence"){const h=[a("Participants"),$("ul",{class:`${t}-list-items`},e.nodes.map(f=>$("li",null,s(f.name),f.kind?`, ${f.kind}`:"",".",u(f))))];h.push(a("Messages"));let i=null;for(const f of e.steps){if("band"in f){i=null,h.push($(`h${Math.min(6,n+1)}`,{class:`${t}-list-group`},f.band));continue}i||(i=$("ol",{class:`${t}-list-items`,start:f.n}),h.push(i)),i.c.push($("li",null,o(f.label),": ",s(r(f.from))," to ",s(r(f.to)),`${l(f.kind)}.`,f.note?` ${pt(f.note)}`:""))}return h}const g=[];for(const h of e.nodes)g.push($(`h${n}`,{class:`${t}-list-group`},o(h.name),u(h))),g.push($("ul",{class:`${t}-list-items`},[...(h.columns??[]).map(i=>$("li",null,o(i.name),i.key==="PK"?", primary key":i.key==="FK"?", foreign key":"",i.ref?[", references ",o(`${i.ref.table}.${i.ref.column}`)]:i.type?`, ${i.type}`:"")),...h.more?[$("li",null,`and ${h.more} more ${h.more===1?"column":"columns"}`)]:[]]));return g}function we(t){return`Arrow keys move to the next or the previous ${t.type==="architecture"?"part":t.type==="sequence"?"participant":t.type==="schema"?"table":"step"}, in the author's order; Home and End go to the ends; Escape clears the trace.`}function xe(t){return[{keys:["←","→"],words:ae(t)},{keys:["Home","End"],words:"the ends"},{keys:["Esc"],words:"clear"}]}function Bt(t,e,n){const a=n.prefix,s=le(n.base),o=t.type==="sequence"||t.type==="schema"?null:Ot(t),r={P:a,ids:s,level:n.level,plan:o,hidden:n.hiddenClass},l=e.layout==="drawn",u=ft(t,e),g=t.type==="sequence"||t.type==="schema"?l:!0,h=`h${t.heading}`,i=[`--_cols:${Mt(t)}`];if(t.type==="architecture"&&t.groups.length||l&&e.pad){const f=t.type==="architecture"?t.groups.flatMap(d=>d.members.map(y=>t.byId.get(y))):[],x=(d,y,w)=>d?`var(--basalt-space-${y})`:w?`var(--basalt-space-${w})`:"0px",m=l&&e.pad?"3":void 0;i.push(`--_gpad:${x(f.some(d=>d.row===1),"8",m)} ${x(f.some(d=>d.col===t.cols),"4")} ${x(f.some(d=>d.row2===t.rows),"4",m)} ${x(f.some(d=>d.col===1),"4")}`)}return t.type==="schema"&&e.track&&i.push(`--_track:${e.track}px`),$("figure",{class:n.className?`${a} ${n.className}`:a,"aria-labelledby":s.title,"data-type":t.type,"data-cols":Mt(t),"data-reach":t.type==="architecture"?It(t):void 0,"data-gutter":o?.gutter?"":void 0,"data-layout":e.layout,"data-measured":e.layout?"":void 0,"data-bare":e.bare?"":void 0,style:i.join(";")},$("div",{class:`${a}-head`},$(h,{id:s.title,class:`${a}-title`},t.title),n.hasSource?$("p",{class:`${a}-source`},{slot:"source"}):null),$("div",{class:`${a}-drawing`,role:g?"group":void 0,"aria-roledescription":g?"diagram":void 0,"aria-labelledby":g?s.title:void 0,"aria-describedby":g?u?`${s.summary} ${s.keys}`:s.summary:void 0,"data-stops":u?"":void 0},ye(r,t,e),$("div",{class:`${a}-ink`,"aria-hidden":"true"}),$("span",{class:`${a}-ruler`,"aria-hidden":"true"})),ue(a,t),$("p",{class:`${a}-hint`,"data-kbd-hint":"","aria-hidden":"true"},{slot:"hint"}),$("div",{class:`${a}-foot`},{slot:"toggle"}),$("div",{id:s.list,class:`${a}-list`,hidden:!e.open},be(a,t)),$("span",{id:s.keys,class:n.hiddenClass},we(t)),$("figcaption",{id:s.summary,class:`${a}-summary`},{slot:"summary"}))}function Me(t){const e=getComputedStyle(t),n=(s,o)=>{const r=parseFloat(e.getPropertyValue(`--basalt-${s}`));return Number.isFinite(r)?r:o},a=new Map;return{space:s=>(a.has(s)||a.set(s,n(`space-${s}`,parseFloat(s.replace("-","."))*4)),a.get(s)),node:n("size-diagram-node",144),table:n("size-diagram-table",224),lane:n("size-diagram-lane",120),step:n("size-diagram-step",56),head:n("size-diagram-head",8),guide:n("size-diagram-guide-dash",4),hair:n("size-hairline",1),line:n("size-chart-line",2),cut:n("size-cut",2),dot:n("size-dot",6),dash:n("size-chart-dash",6),dashGap:n("size-chart-dash-gap",4),wide:n("size-breakpoint-container-lg",640),cap:n("size-breakpoint-container",480),radius:n("radius-md",8),radiusXs:n("radius-xs",4)}}var $t=(t,e)=>t==="main"?e.line:e.hair,rt=(t,e)=>{const n=t.getBoundingClientRect();return{l:n.left-e.left,t:n.top-e.top,r:n.right-e.left,b:n.bottom-e.top}},lt=(t,e,n=.01)=>t.l<e.r-n&&t.r>e.l+n&&t.t<e.b-n&&t.b>e.t+n,Tt=(t,e)=>({l:t.l-e,r:t.r+e,t:t.t-e,b:t.b+e});function nt(t,e,n){const{l:a,t:s,r:o,b:r}=t.rect,l=(a+o)/2,u=(s+r)/2,g=(o-a)/2,h=(r-s)/2,i=e==="top"||e==="bottom";if(t.shape==="decision"){if(i){const m=n,d=h*Math.max(0,1-Math.abs(m-l)/g);return{x:m,y:e==="top"?u-d:u+d}}const f=n,x=g*Math.max(0,1-Math.abs(f-u)/h);return{x:e==="left"?l-x:l+x,y:f}}if(t.shape==="terminal"){const f=Math.min(g,h);if(i){const y=n,w=Math.min(Math.max(y,a+f),o-f),q=y-w,E=Math.abs(q)>=f?0:Math.sqrt(f*f-q*q);return{x:y,y:Math.abs(q)<1e-6?e==="top"?s:r:e==="top"?u-E:u+E}}const x=n,m=x-u,d=Math.abs(m)>=f?0:Math.sqrt(f*f-m*m);return{x:e==="left"?a+f-d:o-f+d,y:x}}return i?{x:n,y:e==="top"?s:r}:{x:e==="left"?a:o,y:n}}function ve(t,e,n){const{l:a,t:s,r:o,b:r}=e.rect,l=(a+o)/2,u=(s+r)/2,g=(o-a)/2,h=(r-s)/2;if(e.shape==="decision")return Math.abs(t.x-l)/g+Math.abs(t.y-u)/h<1-n/Math.min(g,h);if(e.shape==="terminal"){const i=Math.min(g,h),f=Math.min(Math.max(t.x,a+i),o-i);return Math.hypot(t.x-f,t.y-u)<i-n}return t.x>a+n&&t.x<o-n&&t.y>s+n&&t.y<r-n}function jt(t,e){if(!lt(t,e.rect))return!1;if(e.shape!=="decision"&&e.shape!=="terminal")return!0;const{l:n,t:a,r:s,b:o}=e.rect,r=(n+s)/2,l=(a+o)/2,u=(s-n)/2,g=(o-a)/2;if(e.shape==="decision"){const i=Math.max(t.l,Math.min(r,t.r)),f=Math.max(t.t,Math.min(l,t.b));return Math.abs(i-r)/u+Math.abs(f-l)/g<1-1e-6}const h=Math.min(g,u);if(lt(t,{l:n+h,r:s-h,t:a,b:o}))return!0;for(const i of[n+h,s-h]){const f=Math.max(t.l,Math.min(i,t.r)),x=Math.max(t.t,Math.min(l,t.b));if(Math.hypot(f-i,x-l)<h-.01)return!0}return!1}function ke(t,e,n){const a=Math.hypot(e.x-t.x,e.y-t.y),s=Math.max(2,Math.ceil(a/2));for(let o=1;o<s;o++){const r=o/s;if(!(r*a<1.5||(1-r)*a<1.5)&&ve({x:t.x+(e.x-t.x)*r,y:t.y+(e.y-t.y)*r},n,1))return!0}return!1}function Se(t,e){const n=t.querySelector(`.${e}-ruler`),a=new Map;return(s,o)=>{const r=`${o}|${s}`;return a.has(r)||(n.setAttribute("data-f",o),n.textContent=s,a.set(r,n.getBoundingClientRect().width),n.textContent=""),a.get(r)}}var wt=t=>t?t.split(/\s+/).filter(Boolean):[];function Ee(t,e,n){const a=e.space;let s=e.node,o=e.table;for(const u of t.nodes){if(u.shape==="table"){for(const f of u.columns??[]){const x=f.ref?`→ ${f.ref.table}`:f.type??"",m=a("6")+n(f.name,"mono")+(x?a("3")+n(x,"mono"):0)+2*a("3")+2*e.hair;o=Math.max(o,Math.ceil(m))}o=Math.max(o,Math.ceil(n(u.name,"table")+2*a("3")+2*e.hair));continue}const g=u.shape==="terminal"?2*a("5"):2*a("3");let h=0;for(const f of wt(u.name))h=Math.max(h,n(f,u.shape==="decision"?"name-500":"name"));if(t.type!=="data-flow")for(const f of wt(u.kind))h=Math.max(h,n(f,"mono"));for(const f of wt(u.detail))h=Math.max(h,n(f,u.mono?"mono":"sans"));const i=u.shape==="decision"?h/.62:h+g+2*e.hair;s=Math.max(s,Math.ceil(i))}const r=Mt(t);let l;return t.type==="data-flow"?l=e.lane+r*(s+a("12")):t.type==="schema"?l=r*o+(r-1)*a("12"):t.type==="sequence"?l=r*s+(r-1)*a("5"):l=r*s+(r-1)*a("16")+It(t)*a("4"),{track:s,table:o,least:Math.max(e.wide,l)}}function Rt(t,e){return{x:(n,a)=>a%2===1?Math.round(n+t-.5)+.5-t:Math.round(n+t)-t,y:(n,a)=>a%2===1?Math.round(n+e-.5)+.5-e:Math.round(n+e)-e}}function kt(t){const e=t[t.length-2],n=t[t.length-1];return Math.abs(e.x-n.x)<.01?n.y>e.y?"down":"up":n.x>e.x?"right":"left"}function Ft(t,e,n){const a=t.map(o=>({...o}));for(let o=1;o<a.length;o++){const r=a[o-1],l=a[o];if(Math.abs(r.x-l.x)<.75){const u=n.x(r.x,e);r.x=u,l.x=u}else if(Math.abs(r.y-l.y)<.75){const u=n.y(r.y,e);r.y=u,l.y=u}}const s=[a[0]];for(let o=1;o<a.length;o++){const r=a[o],l=s[s.length-1];if(!(Math.abs(r.x-l.x)<.01&&Math.abs(r.y-l.y)<.01)){if(s.length>=2){const u=s[s.length-2];if(Math.abs(u.x-l.x)<.01&&Math.abs(l.x-r.x)<.01||Math.abs(u.y-l.y)<.01&&Math.abs(l.y-r.y)<.01){s[s.length-1]=r;continue}}s.push(r)}}return s}var ct=t=>t.slice(1).map((e,n)=>[t[n],e]);function xt(t,e,n){const a=[];for(let o=0;o<t.length;o++)for(let r=o+1;r<t.length;r++){const l=t[o],u=t[r];if(!(n&&!n.has(l.i)&&!n.has(u.i)))for(const[g,h]of ct(l.pts))for(const[i,f]of ct(u.pts)){const x=Math.abs(g.y-h.y)<.01,m=Math.abs(i.y-f.y)<.01;if(x===m)continue;const[d,y,w,q]=x?[g,h,i,f]:[i,f,g,h],E=w.x,L=d.y;if(E>Math.min(d.x,y.x)+.75&&E<Math.max(d.x,y.x)-.75&&L>Math.min(w.y,q.y)+.75&&L<Math.max(w.y,q.y)-.75){const _=x?o:r,j=x?r:o;let B=_,c=j;if(e){const p=e(t[_]);e(t[j])&&!p&&(B=j,c=_)}a.push({top:B,under:c,at:{x:E,y:L},underVertical:c===j})}}}return a}function Ae(t){const e=getComputedStyle(t),n=s=>s.split(/\s+/).map(parseFloat).filter(o=>Number.isFinite(o)),a=(s,o,r)=>{const l=[];let u=o;for(const g of s)l.push([u,u+g]),u+=g+r;return l};return{cols:a(n(e.gridTemplateColumns),parseFloat(e.paddingLeft)||0,parseFloat(e.columnGap)||0),rows:a(n(e.gridTemplateRows),parseFloat(e.paddingTop)||0,parseFloat(e.rowGap)||0)}}var U=t=>t==="left"||t==="right",Ht={top:"bottom",bottom:"top",left:"right",right:"left"};function Le(t,e){return t.row===e.row?e.col>t.col?["right","left"]:["left","right"]:t.col===e.col?e.row>t.row?["bottom","top"]:["top","bottom"]:[e.col>t.col?"right":"left",e.row>t.row?"top":"bottom"]}function qe(t,e,n){const a=[];t.edges.forEach((o,r)=>{const l=t.byId.get(o.from),u=t.byId.get(o.to),[g,h]=e[r],i=l.row===u.row&&U(g)&&U(h)&&g===Ht[h]||l.col===u.col&&!U(g)&&!U(h)&&g===Ht[h];a.push({edge:r,end:"from",node:l,side:g,far:u,straight:i,f:.5},{edge:r,end:"to",node:u,side:h,far:l,straight:i,f:.5})});const s=new Map;for(const o of a){const r=`${o.node.id}.${o.side}`;s.has(r)||s.set(r,[]),s.get(r).push(o)}for(const[o,r]of s){if(r[0].node.shape==="decision")continue;const l=i=>U(i.side)?i.far.row-i.node.row:i.far.col-i.node.col,u=r.filter(i=>i.straight),g=r.filter(i=>!i.straight);g.sort((i,f)=>l(i)-l(f)||(U(i.side)?i.far.col-f.far.col:i.far.row-f.far.row)*(l(i)<0?1:-1)),r.length>3&&n(`${o.replace(".","'s ")} side has ${r.length} lines; more than three is an error: use another side`),u.length?g.forEach(i=>{i.f=l(i)<0?.25:.75}):g.length===2?(g[0].f=.25,g[1].f=.75):g.length===3?(g[0].f=.25,g[1].f=.5,g[2].f=.75):g.length>3&&g.forEach((i,f)=>{i.f=(f+1)/(g.length+1)});const h=new Map;for(const i of u)h.has(i.far.id)||h.set(i.far.id,[]),h.get(i.far.id).push(i);for(const i of h.values())i.length>1&&i.sort((f,x)=>f.edge-x.edge).forEach((f,x)=>{f.f=i.length===2?x===0?.25:.75:(x+1)/(i.length+1)})}return a}function Nt(t,e,n){const{l:a,t:s,r:o,b:r}=t.rect;return U(e)?nt(t,e,s+(r-s)*n):nt(t,e,a+(o-a)*n)}function zt(t,e,n,a){const s=new Map;return e.querySelectorAll(`.${a}-node`).forEach(o=>{const r=t.byId.get(o.dataset.node);r&&s.set(r.id,{id:r.id,rect:rt(o,n),shape:r.shape,i:r.i})}),s}function Wt(t,e){const n=e.head,a=e.head/2,{x:s,y:o}=t.tip;return t.dir==="down"?{l:s-a,r:s+a,t:o-n,b:o}:t.dir==="up"?{l:s-a,r:s+a,t:o,b:o+n}:t.dir==="right"?{l:s-n,r:s,t:o-a,b:o+a}:{l:s,r:s+n,t:o-a,b:o+a}}var Gt=(t,e,n)=>({l:Math.min(t.x,e.x)-n/2,r:Math.max(t.x,e.x)+n/2,t:Math.min(t.y,e.y)-n/2,b:Math.max(t.y,e.y)+n/2});function Ie(t,e,n,a,s,o,r,l){const u=r.space,g=[],h=[],i=[],f=[],x=u("1"),m=e.filter(d=>t.edges[d.i]?.label).sort((d,y)=>+(t.edges[y.i].kind==="main")-+(t.edges[d.i].kind==="main")||d.i-y.i);for(const d of m){const y=t.edges[d.i].label,w=l(y,"label"),q=16,E=d.pts.length-2,L=[];ct(d.pts).forEach(([c,p],b)=>{const k=Math.abs(c.y-p.y)<.01,R=k?c.x:c.y;let M=k?p.x:p.y;const G=Math.sign(M-R)||1;b===E&&(M-=G*r.head);let C=[[R,M]];for(const V of s)for(const Z of k?[V.l,V.r]:[V.t,V.b]){const Y=k?c.y:c.x;(k?Y>V.t&&Y<V.b:Y>V.l&&Y<V.r)&&(C=C.flatMap(([O,T])=>Z>Math.min(O,T)+1&&Z<Math.max(O,T)-1?[[O,Z],[Z,T]]:[[O,T]]))}const K=(V,Z)=>{const Y=(V+Z)/2,S=k?{x:Y,y:c.y}:{x:c.x,y:Y};return!s.some(O=>S.x>O.l&&S.x<O.r&&S.y>O.t&&S.y<O.b)},W=d.axes?.[b]??(k?c.y:c.x);for(const[V,Z]of C)L.push({horiz:k,c:W,p:V,q:Z,len:Math.abs(Z-V),pri:C.length>1&&K(V,Z)?1:0})}),L.sort((c,p)=>p.pri-c.pri||p.len-c.len);let _=null,j=!1;const B=(c,p=!0)=>{const b=Tt(c,x);return p&&(c.l<o.l||c.r>o.r||c.t<o.t||c.b>o.b)||n.some(k=>jt(b,k))||g.some(k=>lt(b,k))||a.heads.some(k=>lt(b,k))||a.rects.some(k=>lt(b,k))?!1:!e.some(k=>k.i!==d.i&&ct(k.pts).some(([R,M])=>lt(b,Gt(R,M,k.width))))};for(const c of L){for(const p of[1/2,1/3,2/3]){const b=c.p+(c.q-c.p)*p,k=[],R=u("2")+d.width/2;if(c.horiz?(c.len>=w+2*u("1")+u("3-5")&&k.push({box:{l:b-w/2-u("1"),r:b+w/2+u("1"),t:c.c-q/2,b:c.c+q/2},on:!0}),k.push({box:{l:b-w/2,r:b+w/2,t:c.c-R-q,b:c.c-R},on:!1}),k.push({box:{l:b-w/2,r:b+w/2,t:c.c+R,b:c.c+R+q},on:!1})):(c.len>=q+u("3")&&k.push({box:{l:c.c-w/2-u("1"),r:c.c+w/2+u("1"),t:b-q/2,b:b+q/2},on:!0}),k.push({box:{l:c.c+R,r:c.c+R+w,t:b-q/2,b:b+q/2},on:!1}),k.push({box:{l:c.c-R-w,r:c.c-R,t:b-q/2,b:b+q/2},on:!1})),_=k.find(M=>B(M.box))??null,_)break;!j&&k.some(M=>B(M.box,!1))&&(j=!0)}if(_)break}if(!_){i.push(d.i),j&&f.push(d.i);continue}g.push(_.box),h.push({i:d.i,text:y,box:_.box,on:_.on})}return{labels:h,unseated:i,bounded:f}}function Dt(t,e,n,a){const s=[],o=[];return t.querySelectorAll(`.${n}-gbox, .${n}-group`).forEach(r=>{if(r.getClientRects().length===0||getComputedStyle(r).display==="contents")return;const l=rt(r,e);o.push(l),s.push({l:l.l,r:l.r,t:l.t,b:l.t+1},{l:l.l,r:l.r,t:l.b-1,b:l.b},{l:l.l,r:l.l+1,t:l.t,b:l.b},{l:l.r-1,r:l.r,t:l.t,b:l.b});const u=r.querySelector(`:scope > .${n}-glabel`);u&&u.getClientRects().length&&s.push(rt(u,e))}),t.querySelectorAll(`.${n}-lane`).forEach((r,l)=>{if(!r.getClientRects().length)return;const u=rt(r,e);l>0&&s.push({l:u.l,r:u.r,t:u.t-a/2-.5,b:u.t-a/2+.5});const g=r.querySelector(`.${n}-lane-name`);g&&s.push(rt(g,e))}),{obstacles:{rects:s,heads:[]},groups:o}}function Oe(t,e){const{m:n,tk:a,P:s,drawing:o,origin:r,warn:l}=t,u=a.space,g=zt(n,o,r,s),h=[...g.values()],i=Ae(o),f=r.left-Math.floor(r.left),x=r.top-Math.floor(r.top),m=Rt(f,x),d=o.clientWidth,y=o.clientHeight,w=S=>n.type==="data-flow"?S.col+1:S.col,q=parseFloat(getComputedStyle(o).rowGap)||0,E={w:d,h:y,nodes:h,lines:[],lifelines:[],labels:[],crossings:[],through:[],unseated:[],outside:[],ox:f,oy:x};if(n.type==="sequence")return Ce(t,E,m);let L,_=[];n.type==="schema"?L=n.edges.map(S=>{const O=n.byId.get(S.from),T=n.byId.get(S.to);if(O.col===T.col){const A=O.col===n.cols?"left":"right";return[A,A]}return T.col>O.col?["right","left"]:["left","right"]}):(L=n.edges.map(S=>{const O=n.byId.get(S.from),T=n.byId.get(S.to),[A,I]=Le(O,T);return[S.fromSide??A,S.toSide??I]}),_=qe(n,L,l??(()=>{})));const j=(S,O)=>{const T=o.querySelector(`.${s}-node[data-node="${CSS.escape(S)}"] .${s}-row[data-row="${O}"]`);if(!T)return 0;const A=rt(T,r);return(A.t+A.b)/2},B=n.edges.map((S,O)=>{const[T,A]=L[O],I=g.get(S.from),N=g.get(S.to),H=$t(S.kind,a);if(S.fk){const D=j(S.from,S.fromRow),tt=j(S.to,S.toRow),et=m.y(D,H),P=m.y(tt,H);return{p1:{x:T==="right"?I.rect.r:I.rect.l,y:et},p2:{x:A==="right"?N.rect.r:N.rect.l,y:P},r1:D,r2:Math.abs(et-P)<.01?D:tt}}const X=_.find(D=>D.edge===O&&D.end==="from").f,Q=_.find(D=>D.edge===O&&D.end==="to").f;let z=Nt(I,T,X),v=Nt(N,A,Q);const F=U(T)?z.y:z.x;let J=U(A)?v.y:v.x;return U(T)?z={...z,y:m.y(z.y,H)}:z={...z,x:m.x(z.x,H)},U(A)?v={...v,y:m.y(v.y,H)}:v={...v,x:m.x(v.x,H)},U(T)&&U(A)&&Math.abs(z.y-v.y)<1.01&&(v={...v,y:z.y},J=F),!U(T)&&!U(A)&&Math.abs(z.x-v.x)<1.01&&(v={...v,x:z.x},J=F),z=U(T)?nt(I,T,z.y):nt(I,T,z.x),v=U(A)?nt(N,A,v.y):nt(N,A,v.x),{p1:z,p2:v,r1:F,r2:J}}),c=new Set;n.type==="schema"&&n.edges.forEach((S,O)=>{Math.abs(n.byId.get(S.from).col-n.byId.get(S.to).col)>1&&c.add(O)});const p=new Map,b=new Set;n.edges.forEach((S,O)=>{if(c.has(O))return;const[T,A]=L[O],{p1:I,p2:N}=B[O],H=n.byId.get(S.from),X=n.byId.get(S.to);let Q=null,z=null,v=!1;if(T===A){if(U(T)){const D=T==="right"?Math.max(w(H),w(X)):Math.min(w(H),w(X))-1,tt=i.cols[D-1],et=i.cols[D];tt&&et&&(Q=`c${D}`,z=[tt[1],et[0]],v=!0)}else{const D=T==="bottom"?Math.max(H.row2,X.row2):Math.min(H.row,X.row)-1,tt=i.rows[D-1],et=i.rows[D];tt&&et&&(Q=`r${D}`,z=[tt[1],et[0]],v=!1)}Q&&b.add(O)}else if(U(T)&&U(A)&&Math.abs(I.y-N.y)>.5){const D=w(X),tt=A==="left",et=i.cols[(tt?D-1:D)-1],P=i.cols[(tt?D:D+1)-1];et&&P&&(Q=`c${tt?D-1:D}`,z=[et[1],P[0]],v=!0)}else if(!U(T)&&!U(A)&&Math.abs(I.x-N.x)>.5){const tt=A==="top"?X.row-1:X.row2,et=i.rows[tt-1],P=i.rows[tt];et&&P&&(Q=`r${tt}`,z=[et[1],P[0]],v=!1)}if(!Q||!z)return;p.has(Q)||p.set(Q,{span:z,vertical:v,members:new Map});const F=`${S.to}.${A}.${Math.round(v?N.y:N.x)}`,J=p.get(Q);J.members.has(F)||J.members.set(F,[]),J.members.get(F).push(O)});const k=new Map,R=S=>{const[O,T]=L[S],{p1:A,p2:I}=B[S];if(U(O)&&U(T)){if(O===T){const H=k.get(S)??(O==="right"?Math.max(A.x,I.x)+u("4"):Math.min(A.x,I.x)-u("4"));return[A,{x:H,y:A.y},{x:H,y:I.y},I]}if(Math.abs(A.y-I.y)<=.5)return[A,{x:I.x,y:A.y}];const N=k.get(S)??(A.x+I.x)/2;return[A,{x:N,y:A.y},{x:N,y:I.y},I]}if(!U(O)&&!U(T)){if(O===T){const H=k.get(S)??(O==="bottom"?Math.max(A.y,I.y)+u("4"):Math.min(A.y,I.y)-u("4"));return[A,{x:A.x,y:H},{x:I.x,y:H},I]}if(Math.abs(A.x-I.x)<=.5)return[A,{x:A.x,y:I.y}];const N=k.get(S)??(A.y+I.y)/2;return[A,{x:A.x,y:N},{x:I.x,y:N},I]}return U(O)?[A,{x:I.x,y:A.y},I]:[A,{x:A.x,y:I.y},I]},M=S=>{const O=n.edges[S],T=$t(O.kind,a),A=R(S),I=Ft(A,T,m);let N;return A.length===I.length&&(N=ct(A).map(([H,X])=>Math.abs(H.y-X.y)<.75?(H.y+X.y)/2:(H.x+X.x)/2),N[0]=B[S].r1,N.length>1&&(N[N.length-1]=B[S].r2)),{i:S,from:O.from,to:O.to,kind:O.kind,pts:I,tip:I[I.length-1],dir:kt(I),dot:O.fk?I[0]:void 0,width:T,axes:N}},G=()=>n.edges.flatMap((S,O)=>c.has(O)?[]:[M(O)]);let C=null;const K=S=>{C??(C=G());const O=C.map(T=>S.has(T.i)?M(T.i):T);return{lines:O,score:_e(O,S)*1e5+xt(O,void 0,S).length*1e3+St(O.filter(T=>S.has(T.i)),h,n).length}},W=(S,O)=>{const T=S.flatMap(A=>{const{p1:I,p2:N}=B[A];return O?[I.y,N.y]:[I.x,N.x]});return[Math.min(...T),Math.max(...T)]};for(const[,S]of p){const O=[...S.members.values()].map(A=>({members:A,run:W(A,S.vertical)})).sort((A,I)=>A.run[0]-I.run[0]),T=[];for(const A of O){const I=T[T.length-1];I&&I.some(N=>N.run[0]<A.run[1]+u("8")&&A.run[0]<N.run[1]+u("8"))?I.push(A):T.push([A])}for(const A of T){if(A.every(F=>F.members.every(J=>b.has(J))))continue;const I=A.map(F=>F.members),N=I.length,H=(S.span[1]-S.span[0])/(N+1);H<u("3")&&l?.(`a gutter holds ${N} lanes side by side, closer than space-3`);const X=new Set(I.flat());let Q=I,z=1/0,v=null;for(const F of Kt(I)){F.forEach((D,tt)=>D.forEach(et=>k.set(et,S.span[0]+H*(tt+1))));const J=K(X);J.score<z&&(z=J.score,Q=F,v=J.lines)}Q.forEach((F,J)=>F.forEach(D=>k.set(D,S.span[0]+H*(J+1)))),C=v}}E.lines=G();for(const S of c)l?.(`${n.edges[S].from} to ${n.edges[S].to} is two columns apart, so its line is not drawn; its row still writes the target`);E.crossings=xt(E.lines),E.through=St(E.lines,h,n),E.outside=Vt(E.lines,d,y,a);const{obstacles:V,groups:Z}=Dt(o,r,s,q);V.heads=E.lines.map(S=>Wt(S,a));const Y=Ie(n,E.lines,h,V,Z,{l:0,t:0,r:d,b:y},a,e);return E.labels=Y.labels,E.unseated=Y.unseated,E.bounded=Y.bounded,E}function _e(t,e){let n=0;for(let a=0;a<t.length;a++)for(let s=a+1;s<t.length;s++){const o=t[a],r=t[s];if(!e.has(o.i)&&!e.has(r.i)||o.to===r.to&&Math.abs(o.tip.x-r.tip.x)<1&&Math.abs(o.tip.y-r.tip.y)<1)continue;const l=(o.width+r.width)/2+.5;for(const[u,g]of ct(o.pts))for(const[h,i]of ct(r.pts)){const f=Math.abs(u.y-g.y)<.01,x=Math.abs(h.y-i.y)<.01;if(f!==x)continue;const[m,d]=f?[u.y,h.y]:[u.x,h.x];if(Math.abs(m-d)>=l)continue;const[y,w]=f?[u.x,g.x]:[u.y,g.y],[q,E]=f?[h.x,i.x]:[h.y,i.y];Math.min(Math.max(y,w),Math.max(q,E))-Math.max(Math.min(y,w),Math.min(q,E))>1&&n++}}return n}function*Kt(t){if(t.length<=1){yield t.slice();return}if(t.length>5){yield t.slice();return}for(let e=0;e<t.length;e++){const n=t.slice(0,e).concat(t.slice(e+1));for(const a of Kt(n))yield[t[e],...a]}}function Vt(t,e,n,a){const s=[];for(const o of t)o.pts.some((r,l)=>{const u=l===o.pts.length-1?Math.max(o.width/2,a.head/2):o.width/2;return r.x-u<-.5||r.x+u>e+.5||r.y-u<-.5||r.y+u>n+.5})&&s.push(o.i);return s}function St(t,e,n){const a=[];for(const s of t){const o=ct(s.pts);e.some(r=>o.some(([l,u])=>ke(l,u,r)))&&a.push(s.i)}return a}function Ce(t,e,n){const{m:a,tk:s,P:o,drawing:r,origin:l}=t,u=s.space,g=new Map;r.querySelectorAll(`.${o}-node`).forEach(m=>g.set(m.dataset.node,rt(m,l)));const h=r.querySelector(`.${o}-steps`),i=h?rt(h,l).b:e.h,f=m=>{const d=g.get(m);return d?n.x((d.l+d.r)/2,s.hair):0};for(const m of a.nodes){const d=g.get(m.id);d&&e.lifelines.push({x:f(m.id),y1:d.b,y2:i})}const x=m=>g.get(m.id);return r.querySelectorAll(`.${o}-msg`).forEach(m=>{const d=m.dataset.from,y=m.dataset.to,w=m.dataset.kind??"plain",q=$t(w,s),E=rt(m,l),L=n.y((E.t+E.b)/2,q),_=Number(m.querySelector(`.${o}-num`)?.textContent??0),j=f(d),B=f(y);let c;if(d===y){const C=m.dataset.self==="start"?-u("6"):u("6"),K=n.y(L-u("2"),q),W=n.y(L+u("2"),q);c=[{x:j,y:K},{x:n.x(j+C,q),y:K},{x:n.x(j+C,q),y:W},{x:j,y:W}]}else c=[{x:j,y:L},{x:B,y:L}];e.lines.push({i:_,from:d,to:y,kind:w,pts:c,tip:c[c.length-1],dir:kt(c),width:q});const p=m.querySelector(`.${o}-said`),b=m.querySelector(`.${o}-note`),k=a.byId.get(d),R=a.byId.get(y);if(!k||!R)return;const M=d===y?(()=>{const C=a.nodes[k.i+(m.dataset.self==="start"?-1:1)],K=C?f(C.id):m.dataset.self==="start"?0:e.w;return Math.abs(K-j)-u("6")-u("2-5")-u("2")})():Math.abs(B-j)-2*u("2");Math.max(p?p.getBoundingClientRect().width:0,b?b.getBoundingClientRect().width:0)>M+.5&&e.unseated.push(_)}),e}function Zt(t,e,n,a=ut()){const{m:s,tk:o,P:r,drawing:l,origin:u}=t,g=o.space,h=zt(s,l,u,r),i=[...h.values()],f=u.left-Math.floor(u.left),x=u.top-Math.floor(u.top),m=Rt(f,x),d=l.clientWidth,y=l.clientHeight,w={w:d,h:y,nodes:i,lines:[],lifelines:[],labels:[],crossings:[],through:[],unseated:[],outside:[],ox:f,oy:x},q=ut();if(s.type==="sequence"||s.type==="schema")return{geo:w,grow:q};const E=d-(parseFloat(getComputedStyle(l).paddingRight)||0),L=(M,G,C)=>{const K=[M];for(let W=1;W<=(ht(a,G)??0);W++)K.push({...M,t:M.t+C*g("4")*W,b:M.b+C*g("4")*W});return K},_=new Map;l.querySelectorAll(`.${r}-node`).forEach(M=>{const G=M.parentElement,C=rt(G,u),K=getComputedStyle(G);_.set(M.dataset.node,C.r-(parseFloat(K.paddingRight)||0)-(parseFloat(K.borderRightWidth)||0))});const j=s.nodes,B=M=>h.get(j[M].id),c=[],p=M=>$t(s.edges[M].kind,o);s.edges.forEach((M,G)=>{const C=n.routes[G],K=h.get(M.from),W=h.get(M.to),V=p(G);let Z=[];const Y=M.label,S=Y?e(Y,"label"):0,O=16,T=g("4");if(C==="down"||C==="up"){const I=Math.max(K.rect.l,W.rect.l),N=Math.min(K.rect.r,W.rect.r),H=s.edges.map((v,F)=>({o:v,j:F})).filter(({o:v,j:F})=>(n.routes[F]==="down"||n.routes[F]==="up")&&(v.from===M.from&&v.to===M.to||v.from===M.to&&v.to===M.from)),X=H.findIndex(v=>v.j===G),Q=H.length<2?.5:H.length===2?X===0?.25:.75:(X+1)/(H.length+1),z=m.x(I+(N-I)*Q,V);if(Z=C==="down"?[nt(K,"bottom",z),nt(W,"top",z)]:[nt(K,"top",z),nt(W,"bottom",z)],Y){let v=Math.min(Z[0].y,Z[1].y),F=Math.max(Z[0].y,Z[1].y);C==="down"?F-=o.head:v+=o.head;const J=[...l.querySelectorAll(`.${r}-group`)].map(P=>rt(P,u));let D=[[v,F]];for(const P of J)for(const it of[P.t,P.b])D=D.flatMap(([st,dt])=>it>st+1&&it<dt-1?[[st,it],[it,dt]]:[[st,dt]]);const tt=(P,it)=>J.some(st=>(P+it)/2>st.t&&(P+it)/2<st.b&&z>st.l&&z<st.r);if(D.length>1){const P=D.filter(([st,dt])=>!tt(st,dt));[v,F]=(P.length?P:D).reduce((st,dt)=>dt[1]-dt[0]>st[1]-st[0]?dt:st)}const et=[1/2,1/3,2/3].map(P=>{const it=v+(F-v)*P;return{l:z-S/2-g("1"),r:z+S/2+g("1"),t:it-O/2,b:it+O/2}});c.push({k:G,cands:et,on:!0,card:C==="down"?M.to:M.from})}}else if(C==="trunk"||C==="rail"){const I=m.x(Math.max(K.rect.l,C==="rail"?W.rect.l:K.rect.l)+g(C==="trunk"?"8":"3"),V),N=nt(K,"bottom",I);if(C==="rail"){if(Z=[N,nt(W,"top",I)],Y){const H=W.rect.t-g("6");c.push({k:G,cands:L({l:I+g("2-5"),r:I+g("2-5")+S,t:H-O/2,b:H+O/2},M.to,-1),on:!1,card:M.to})}}else{const H=m.x(W.rect.l+g("6"),V),X=m.y(W.rect.t-T,V);Z=[N,{x:I,y:X},{x:H,y:X},nt(W,"top",H)],Y&&c.push({k:G,cands:L({l:H+g("2-5"),r:H+g("2-5")+S,t:X-O/2,b:X+O/2},M.to,-1),on:!1,card:M.to})}}else{const I=Math.min(_.get(M.from)??d,_.get(M.to)??d),N=m.x(n.gutter?E+(n.lanes[G]?2*g("3-5"):g("3-5")):I-g("2-5"),V),H=m.y(K.rect.t+(K.rect.b-K.rect.t)*n.exits[G],V),X=nt(K,"right",H),Q=m.x(W.rect.r-g("6"),V),z=C==="end-down",v=m.y(z?W.rect.t-T:W.rect.b+T,V);Z=[X,{x:N,y:X.y},{x:N,y:v},{x:Q,y:v},nt(W,z?"top":"bottom",Q)];const F=z?M.to:j[W.i+1]?.id??M.to;Y&&c.push({k:G,cands:L({l:Q-g("2-5")-S,r:Q-g("2-5"),t:v-O/2,b:v+O/2},F,z?-1:1),on:!1,card:F})}const A=Ft(Z,V,m);w.lines.push({i:G,from:M.from,to:M.to,kind:M.kind,pts:A,tip:A[A.length-1],dir:kt(A),width:V})}),w.crossings=xt(w.lines),w.through=St(w.lines,i,s),w.outside=Vt(w.lines,d,y,o);const{obstacles:b}=Dt(l,u,r,0);b.heads=w.lines.map(M=>Wt(M,o));const k=[],R={l:0,t:0,r:d,b:y};for(const M of c){const G=W=>{const V=Tt(W,g("1"));return W.l<R.l-.5||W.r>R.r+.5||W.t<R.t-.5||W.b>R.b+.5||i.some(Z=>jt(V,Z))||k.some(Z=>lt(V,Z))||b.heads.some(Z=>lt(V,Z))||b.rects.some(Z=>lt(V,Z))||w.lines.some(Z=>Z.i!==M.k&&ct(Z.pts).some(([Y,S])=>lt(V,Gt(Y,S,Z.width))))},C=M.cands.find(W=>!G(W));C||(q[M.card]=(q[M.card]??0)+1,w.unseated.push(M.k));const K=C??M.cands[0];k.push(K),w.labels.push({i:M.k,text:s.edges[M.k].label,box:K,on:M.on})}return{geo:w,grow:q}}function Be(t,e){const n=o=>String(Math.round(o*100)/100);let a=`M${n(t[0].x)} ${n(t[0].y)}`;for(let o=1;o<t.length-1;o++){const r=t[o-1],l=t[o],u=t[o+1],g=Math.hypot(l.x-r.x,l.y-r.y),h=Math.hypot(u.x-l.x,u.y-l.y),i=Math.min(e,g/2,h/2);if(i<.5){a+=`L${n(l.x)} ${n(l.y)}`;continue}const f={x:l.x+(r.x-l.x)/g*i,y:l.y+(r.y-l.y)/g*i},x={x:l.x+(u.x-l.x)/h*i,y:l.y+(u.y-l.y)/h*i};a+=`L${n(f.x)} ${n(f.y)}Q${n(l.x)} ${n(l.y)} ${n(x.x)} ${n(x.y)}`}const s=t[t.length-1];return`${a}L${n(s.x)} ${n(s.y)}`}var Te={up:{x:0,y:-1},down:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0}};function je(t,e,n,a,s){const o=Te[e.dir],r=e.kind==="dashed",l=n.head,u=n.head/2,g=r?1:l-1,h=e.pts.map(L=>({...L})),i=h[h.length-1];i.x-=o.x*g,i.y-=o.y*g;const f=e.tip.x-o.x*l,x=e.tip.y-o.y*l,m=-o.y*u,d=o.x*u,y=L=>Math.round(L*100)/100,w=at(e.kind),q=r?`<path class="${t}-tip" data-kind="${w}" data-open="" d="M${y(f+m)} ${y(x+d)}L${y(e.tip.x)} ${y(e.tip.y)}L${y(f-m)} ${y(x-d)}"/>`:`<path class="${t}-tip" data-kind="${w}" d="M${y(e.tip.x)} ${y(e.tip.y)}L${y(f+m)} ${y(x+d)}L${y(f-m)} ${y(x-d)}Z"/>`,E=e.dot?`<circle class="${t}-dot" cx="${y(e.dot.x)}" cy="${y(e.dot.y)}" r="${n.dot/2}"/>`:"";return`<g class="${t}-edge" data-edge="${e.i}" data-from="${at(e.from)}" data-to="${at(e.to)}"><path class="${t}-line" data-kind="${w}" d="${Be(h,s)}"${a?` mask="url(#${at(a)})"`:""}/>${q}${E}</g>`}function Xt(t,e,n,a){const s=new Map,o=new Map;for(const l of e.crossings)o.has(l.under)||o.set(l.under,[]),o.get(l.under).push(l);let r="";for(const[l,u]of o){const g=`${a}-cut-${l}`;s.set(l,g);const h=u.map(i=>{const f=e.lines[i.top],x=e.lines[i.under],m=f.width/2+n.cut,d=x.width/2+1;return i.underVertical?`<rect x="${i.at.x-d}" y="${i.at.y-m}" width="${2*d}" height="${2*m}" fill="black"/>`:`<rect x="${i.at.x-m}" y="${i.at.y-d}" width="${2*m}" height="${2*d}" fill="black"/>`}).join("");r+=`<mask id="${at(g)}" maskUnits="userSpaceOnUse" x="0" y="0" width="${e.w}" height="${e.h}"><rect x="0" y="0" width="${e.w}" height="${e.h}" fill="white"/>${h}</mask>`}return{defs:r,ids:s}}function Jt(t,e,n,a){const{defs:s,ids:o}=Xt(t,e,n,a),r=e.lifelines.map(h=>`<path class="${t}-life" d="M${h.x} ${h.y1}V${h.y2}"/>`).join(""),l=e.lines.map((h,i)=>je(t,h,n,o.get(i)??null,h.from===h.to?n.radiusXs:n.radius)).join(""),u=`<svg class="${t}-svg" width="${e.w}" height="${e.h}" viewBox="0 0 ${e.w} ${e.h}" focusable="false">${s?`<defs>${s}</defs>`:""}${r}<g class="${t}-edges">${l}</g></svg>`,g=e.labels.map(h=>`<span class="${t}-label" data-edge="${h.i}"${h.on?' data-on=""':""} style="left:${Math.round(h.box.l*100)/100}px;top:${Math.round(h.box.t*100)/100}px;width:${Math.round((h.box.r-h.box.l)*100)/100}px">${at(h.text)}</span>`).join("");return u+g}function Re(t,e,n,a,s,o,r){const l=t.querySelector(`.${n}-drawing`);if(!l||t.clientWidth===0)return{dyn:s,geo:null,ink:"",tokens:null};const u=Me(t),g=Se(l,n),h=Ee(e,u,g),i=t.clientWidth,f=(()=>{const B=document.activeElement;return B&&l.contains(B)&&B.dataset.node?B.dataset.node:void 0})(),x=B=>ft(e,B)?{...B,stop:B.stop&&e.byId.has(B.stop)?B.stop:e.nodes[0]?.id,keep:void 0}:{...B,stop:B.stop??e.nodes[0]?.id,keep:f&&B.layout!=="drawn"?f:void 0},m=B=>{if(e.type!=="flowchart")return B;o({...B,heights:void 0});const c=ut();return l.querySelectorAll(`.${n}-node[data-shape="decision"]`).forEach(p=>{const b=p.querySelector(`.${n}-words`);if(!b)return;const k=p.getBoundingClientRect(),R=b.getBoundingClientRect(),M={w:R.width+2*u.space("2-5"),h:R.height+2*u.space("2")},G=k.width/2,C=1-M.w/2/G,K=C>.05?M.h/2/C:M.h*10;c[p.dataset.node]=Math.max(u.space("16"),Math.ceil(k.width/5),Math.ceil(2*K))}),{...B,heights:c}},d=()=>({m:e,tk:u,P:n,drawing:l,origin:l.getBoundingClientRect(),warn:r}),y=s.autoOpen?{open:!1,autoOpen:void 0}:{},w=(B,c)=>c.map(p=>mt(e,B.lines.find(b=>b.i===p))).join(", ");if(i>=h.least){const B=b=>{let k=x({...s,...y,layout:"drawn",grow:void 0,track:void 0,bare:void 0,pad:b||void 0});return k=m(k),o(k),{dd:k,g:Oe(d(),g)}};let{dd:c,g:p}=B(!1);if(!p.through.length&&!p.outside.length&&p.unseated.length&&p.unseated.every(b=>p.bounded?.includes(b))){const b=B(!0);!b.g.through.length&&!b.g.unseated.length&&!b.g.outside.length&&({dd:c,g:p}=b)}if(!p.through.length&&!p.unseated.length&&!p.outside.length)return p.crossings.length&&r?.(`${p.crossings.length} crossing${p.crossings.length===1?"":"s"} in the drawn layout: ${p.crossings.map(b=>`${mt(e,p.lines[b.top])} over ${mt(e,p.lines[b.under])}`).join("; ")}`),{dyn:c,geo:p,ink:Jt(n,p,u,a),tokens:u};p.through.length&&r?.(`the drawn layout does not fit at ${Math.round(i)}px: ${w(p,p.through)} would pass through a node`),p.outside.length&&r?.(`the drawn layout does not fit at ${Math.round(i)}px: ${w(p,p.outside)} would leave the drawing`),p.unseated.length&&r?.(`the drawn layout does not fit at ${Math.round(i)}px: no clean seat for ${p.unseated.map(b=>e.type==="sequence"?`message ${b}`:`"${e.edges[b]?.label}"`).join(", ")}`)}let q=x({...s,...y,layout:"stacked",heights:void 0,grow:ut(),track:e.type==="schema"?h.table:void 0,bare:void 0,pad:void 0});if(q=m(q),o(q),e.type==="sequence"||e.type==="schema")return{dyn:q,geo:null,ink:"",tokens:u};const E=Ot(e);let L=Zt(d(),g,E,q.grow);for(let B=0;B<6&&Object.keys(L.grow).length;B++){const c=ut(q.grow);for(const[p,b]of Object.entries(L.grow))c[p]=(ht(c,p)??0)+b;q={...q,grow:c},o(q),L=Zt(d(),g,E,c)}const _=L.geo;if(_.unseated.length>0||_.through.length>0||_.outside.length>0||E.third){_.unseated.length&&r?.(`the stacked drawing has no clean seat for ${[...new Set(_.unseated)].map(p=>`"${e.edges[p]?.label}"`).join(", ")}, so its lines are not drawn; the list holds every connection`),_.through.length&&r?.(`in the stacked drawing ${w(_,_.through)} would pass through a node, so its lines are not drawn`),_.outside.length&&r?.(`in the stacked drawing ${w(_,_.outside)} would leave the drawing, so its lines are not drawn`),E.third&&r?.("the stacked drawing would need a third end lane, so its lines are not drawn");const B={..._,lines:[],labels:[],crossings:[]};return{dyn:x({...q,grow:ut(),bare:!0,open:s.bare?s.open:!0,autoOpen:s.bare?s.autoOpen:s.open?void 0:!0}),geo:B,ink:"",tokens:u}}return _.crossings.length&&r?.(`${_.crossings.length} crossing${_.crossings.length===1?"":"s"} in the stacked drawing (each is cut): ${_.crossings.map(B=>`${mt(e,_.lines[B.top])} over ${mt(e,_.lines[B.under])}`).join("; ")}`),{dyn:q,geo:_,ink:Jt(n,_,u,a),tokens:u}}function mt(t,e){const n=t.byId.get(e.from)?.name??e.from,a=t.byId.get(e.to)?.name??e.to;return`${n} to ${a}`}function Fe(t,e,n,a,s,o){const r=new Set;if(o){r.add(o);for(const d of n?.lines??[])d.from===o&&r.add(d.to),d.to===o&&r.add(d.from)}if(t.toggleAttribute("data-tracing",!!o),t.querySelectorAll(`.${e}-node`).forEach(d=>d.toggleAttribute("data-near",r.has(d.dataset.node))),!n||!a)return;const l=d=>!!o&&(d.from===o||d.to===o),u=t.querySelector(`.${e}-edges`),g=new Map;t.querySelectorAll(`.${e}-edge`).forEach(d=>g.set(d.getAttribute("data-edge"),d));for(const d of n.lines){const y=g.get(String(d.i));y&&(y.toggleAttribute("data-lit",l(d)),y.toggleAttribute("data-dim",!!o&&!l(d)))}if(t.querySelectorAll(`.${e}-label`).forEach(d=>{const y=n.lines.find(w=>String(w.i)===d.dataset.edge);d.toggleAttribute("data-lit",!!(y&&l(y)))}),u){for(const d of n.lines)if(l(d)){const y=g.get(String(d.i));y&&u.appendChild(y)}}const h=xt(n.lines,l),{defs:i,ids:f}=Xt(e,{...n,crossings:h},a,s),x=t.querySelector(`.${e}-svg`);if(!x)return;let m=x.querySelector("defs");!m&&i&&(m=document.createElementNS("http://www.w3.org/2000/svg","defs"),x.insertBefore(m,x.firstChild)),m&&(m.innerHTML=i),n.lines.forEach((d,y)=>{const w=g.get(String(d.i))?.querySelector(`.${e}-line`);if(!w)return;const q=f.get(y);q?w.setAttribute("mask",`url(#${q})`):w.removeAttribute("mask")})}function He(t,e,n){const a=t.byId.get(e)?.i??0,s=t.nodes.length;let o;if(n==="ArrowRight"||n==="ArrowDown")o=a+1;else if(n==="ArrowLeft"||n==="ArrowUp")o=a-1;else if(n==="Home")o=0;else if(n==="End")o=s-1;else return null;return t.nodes[Math.max(0,Math.min(s-1,o))].id}var Ne=["data-layout","data-measured","role","aria-roledescription","aria-labelledby","aria-describedby","aria-label","tabindex","data-stops","hidden"],Ut=["data-layout","data-measured","data-bare"],ze=["--_track","--_h","--_gap","--_ggrow","--_gpad"],Yt=t=>t==null||t===!1;function We(t,e){if(t.tagName.toLowerCase()!==e.t)return!1;const n=typeof e.a.class=="string"?e.a.class.split(" ")[0]:"";return!n||t.classList.contains(n)}function Qt(t,e,n=!0){if(typeof e=="string"||"slot"in e)return;const a=n?Ut:Ne;for(const r of a)Yt(e.a[r])&&t.removeAttribute(r);for(const[r,l]of Object.entries(e.a)){if(r==="class")continue;if(r==="style"){const g=t.style,h=new Map(String(l??"").split(";").map(i=>{const f=i.indexOf(":");return[i.slice(0,f).trim(),i.slice(f+1).trim()]}).filter(([i])=>i));for(const[i,f]of h)g.getPropertyValue(i).trim()!==f&&g.setProperty(i,f);for(const i of ze)h.has(i)||g.removeProperty(i);continue}if(n&&!Ut.includes(r))continue;if(Yt(l)){t.removeAttribute(r);continue}const u=l===!0?"":String(l);t.getAttribute(r)!==u&&t.setAttribute(r,u)}if(e.t==="svg"||typeof e.a.class=="string"&&/-(ink|ruler)$/.test(e.a.class)||e.c.some(r=>typeof r!="string"&&"slot"in r))return;const s=[...t.children];let o=0;for(const r of e.c)if(!(typeof r=="string"||"slot"in r)){for(let l=o;l<s.length;l++)if(We(s[l],r)){Qt(s[l],r,!1),o=l+1;break}}}function Ge(t,e,n,a){if(n===a)return;const s=o=>t.querySelector(`.${e}-node[data-node="${CSS.escape(o)}"]`);n&&s(n)?.setAttribute("tabindex","-1"),s(a)?.setAttribute("tabindex","0")}(function(t){"use strict";var e=t._,n="diagram",a=0;function s(i,f){return{prefix:n,base:i,hasSource:f.source!==void 0&&f.source!==null&&f.source!=="",hiddenClass:"visually-hidden"}}function o(i,f,x,m){var d=function(y){return'<kbd class="kbd">'+at(y)+"</kbd>"};return{source:at(String(f.source||"")),summary:at(String(f.summary||"")),hint:xe(i).map(function(y){return"<span>"+y.keys.map(d).join(" ")+" "+at(y.words)+"</span>"}).join(""),toggle:'<button type="button" class="btn diagram-toggle" data-variant="secondary" data-size="sm" aria-expanded="'+(m?"true":"false")+'" aria-controls="'+at(x)+'-list"><span>'+(m?"Hide the list":"View as list")+"</span></button>"}}function r(i,f){var x=Et(i),m=Bt(x,{},s(f,i)),d=qt(m,o(x,i,f,!1)),y=d.indexOf(">");return{open:d.slice(0,y+1),inner:d.slice(y+1,d.length-9),warnings:x.warnings}}var l=["aria-labelledby","data-type","data-cols","data-reach","data-gutter","data-layout","data-measured","data-bare"],u=["--_cols","--_gpad","--_track"];function g(i,f,x){i.__diagram&&i.__diagram.stop();var m=(i.getAttribute("aria-labelledby")||"").replace(/-title$/,"").replace(/[^A-Za-z0-9_-]/g,""),d=Et(f);if(!x||!m||!i.querySelector(":scope > .diagram-drawing")){if(!m||!i.querySelector("#"+CSS.escape(m+"-title"))){for(;document.getElementById("dg"+ ++a+"-title"););m="dg"+a}var y=r(f,m),w=document.createElement("div");w.innerHTML=y.open+"</figure>";var q=w.firstChild;l.forEach(function(v){i.removeAttribute(v)}),u.forEach(function(v){i.style.removeProperty(v)});for(var E=0;E<q.attributes.length;E++){var L=q.attributes[E];L.name==="class"?i.classList.add.apply(i.classList,L.value.split(" ")):L.name==="style"?i.style.cssText=L.value+";"+i.style.cssText:i.setAttribute(L.name,L.value)}i.querySelectorAll(":scope > :not(script[data-diagram])").forEach(function(v){v.remove()}),i.insertAdjacentHTML("beforeend",y.inner)}d.warnings.forEach(function(v){console.warn("Basalt diagram: "+v)});var _=s(m,f),j={},B=null,c=null,p=null,b=Object.create(null),k=function(v){b[v]||(b[v]=1,console.warn("Basalt diagram: "+v))},R=function(v){Qt(i,Bt(d,v,_))},M=i.querySelector(".diagram-ink"),G=i.querySelector(".diagram-toggle");function C(){Fe(i,n,B&&B.geo,B&&B.tokens,m,c||p)}function K(){G&&(G.setAttribute("aria-expanded",String(!!j.open)),G.firstElementChild.textContent=j.open?"Hide the list":"View as list")}function W(){B=Re(i,d,n,m,j,R,k),j=B.dyn,R(j),K(),ft(d,j)||(p=null),M&&(M.innerHTML=B.ink),C()}function V(v){j=v,R(j)}function Z(v){var F=j.stop;j=Object.assign({},j,{stop:v}),Ge(i,n,F,v)}var Y=function(v){var F=v&&v.closest?v.closest(".diagram-node"):null;return F&&i.contains(F)?F:null};function S(v){var F=Y(v.target);if(!(!F||v.defaultPrevented)){if(v.key==="Escape"){(c||p)&&(v.preventDefault(),c=p=null,C());return}if(ft(d,j)){var J=He(d,F.getAttribute("data-node"),v.key);if(J){v.preventDefault(),Z(J);var D=i.querySelector('.diagram-node[data-node="'+CSS.escape(J)+'"]');D&&D.focus()}}}}function O(v){var F=Y(v.target);if(F){var J=F.getAttribute("data-node");c=F.matches(":focus-visible")?J:null,ft(d,j)&&j.stop!==J&&Z(J),C()}}function T(v){var F=Y(v.target);F&&(Y(v.relatedTarget)||(c=null),j.keep===F.getAttribute("data-node")&&V(Object.assign({},j,{keep:void 0})),C())}function A(v){if(!(v.pointerType!=="mouse"||!matchMedia("(hover: hover)").matches)){var F=Y(v.target),J=F&&ft(d,j)?F.getAttribute("data-node"):null;J!==p&&(p=J,C())}}function I(){p&&(p=null,C())}function N(){V(Object.assign({},j,{open:!j.open,autoOpen:void 0})),K()}i.addEventListener("keydown",S),i.addEventListener("focusin",O),i.addEventListener("focusout",T),i.addEventListener("pointerover",A),i.addEventListener("pointerleave",I),G&&G.addEventListener("click",N),W();var H=i.clientWidth,X=0,Q=!0,z=new ResizeObserver(function(){Math.abs(i.clientWidth-H)<.5||(H=i.clientWidth,cancelAnimationFrame(X),X=requestAnimationFrame(W))});z.observe(i),document.fonts&&document.fonts.ready.then(function(){Q&&W()}),i.__diagram={stop:function(){Q=!1,z.disconnect(),cancelAnimationFrame(X),i.removeEventListener("keydown",S),i.removeEventListener("focusin",O),i.removeEventListener("focusout",T),i.removeEventListener("pointerover",A),i.removeEventListener("pointerleave",I),G&&G.removeEventListener("click",N)},layout:W}}function h(){document.querySelectorAll("figure.diagram").forEach(function(i){if(!i.__diagram){var f=i.querySelector(":scope > script[data-diagram]");if(f)try{g(i,JSON.parse(f.textContent),!0)}catch(x){console.error("Basalt diagram: this figure could not be drawn",x)}}})}e.diagramMarkup=r,t.diagram=function(i,f){g(i,f)},e.step(62,"wireDiagrams",h)})(window.Basalt)})(); +(()=>{var ee=["top","right","bottom","left"],ne=["main","plain","dashed"],oe=[2,3,4,5,6],at=t=>t==null||t===""?void 0:String(t),ut=t=>Object.assign(Object.create(null),t),ht=(t,e)=>t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;function Et(t,e={}){const n=e.checks!==!1,a=[],s=d=>{a.push(d)},o=t.legend??{},r={};for(const d of["main","plain","dashed","focal","group"]){const y=at(o[d]);y&&(r[d]=y)}const i=t.stepLabel,f=typeof i=="function"?d=>String(i(d)):typeof i=="string"?(d=>i.replace("{n}",String(d))):d=>`Step ${d}`,p=t.shapeLabels??{},h={terminal:at(p.terminal)??"Start or end",step:at(p.step)??"Step",decision:at(p.decision)??"Decision"},u=t.heading===void 0?3:oe.includes(t.heading)?t.heading:(s(`heading ${String(t.heading)} is not a level from 2 to 6: the title is an h3`),3),l=(d,y)=>d==null?"plain":ne.includes(d)?d:(s(`"${String(d)}" is not a kind of line (main, plain or dashed): ${y} is drawn plain`),"plain"),m=d=>{if(d!=null){if(ee.includes(d))return d;s(`"${String(d)}" is not a side (top, right, bottom or left): the derived side is used`)}},b=(d,y)=>typeof d=="number"&&Number.isInteger(d)&&d>=1?d:(s(`${y} is ${JSON.stringify(d)}, not a whole number from 1: it is placed at 1`),1),c=[],g=[];let $=[];const I=[],k=[],E=t.type;if(["architecture","flowchart","data-flow","sequence","schema"].includes(E)||s(`"${String(E)}" is not a type of diagram (architecture, flowchart, data-flow, sequence or schema)`),E==="architecture"||E==="flowchart"){for(const d of t.nodes??[]){const y=E==="flowchart"&&d.shape==="decision"?"decision":E==="flowchart"&&d.shape==="terminal"?"terminal":"box",v=String(d.id??""),B=b(d.row,`the row of ${v}`);c.push({id:v,i:c.length,name:String(d.name??""),kind:y==="decision"?void 0:at(d.kind),detail:y==="decision"?void 0:at(d.detail),mono:!!d.detailMono,focal:!!d.focal,col:b(d.col,`the column of ${v}`),row:B,row2:B,branch:!!d.branch,shape:y,group:E==="architecture"?at(d.group):void 0,mark:E==="architecture"?se(d.mark):void 0})}if(E==="architecture")for(const d of t.groups??[]){const y=String(d.id??"");I.push({id:y,label:String(d.label??""),members:c.filter(v=>v.group===y).map(v=>v.id)})}}else if(E==="data-flow"){$=(t.lanes??[]).map(y=>({id:String(y.id??""),label:String(y.label??"")}));const d=new Map($.map((y,v)=>[y.id,v+1]));for(const y of t.nodes??[]){const v=String(y.id??""),B=String(y.lane??""),T=d.get(B);T===void 0&&s(`a node (${v}) names the lane "${B}", which is not in lanes`);const j=c.length+1;c.push({id:v,i:c.length,name:String(y.name??""),kind:f(j),detail:at(y.detail),mono:!!y.detailMono,focal:!!y.focal,col:b(y.col,`the column of ${v}`),row:T??1,row2:T??1,branch:!1,shape:"box",lane:T??1,laneLabel:$[(T??1)-1]?.label??B,step:j})}}else if(E==="sequence"){(t.participants??[]).forEach((y,v)=>{const B=String(y.name??"");c.push({id:String(y.id??""),i:v,name:B,kind:at(y.kind),mono:!1,focal:!!y.focal,col:v+1,row:1,row2:1,branch:!1,shape:"participant",short:at(y.short)??B})});let d=0;for(const y of t.steps??[])"band"in y?k.push({band:String(y.band??"")}):(d++,k.push({n:d,from:String(y.from??""),to:String(y.to??""),label:String(y.label??""),note:at(y.note),kind:l(y.kind,`message ${d}`)}))}else if(E==="schema")for(const d of t.tables??[]){const y=String(d.name??""),[v,B]=Array.isArray(d.row)?d.row:[d.row,d.row],T=b(v,`the row of ${y}`),j=Math.max(T,b(B,`the last row of ${y}`)),z=d.more===void 0||d.more===null?void 0:Number.isInteger(d.more)&&d.more>0?d.more:(s(`${y}'s "more" is ${JSON.stringify(d.more)}, not a whole number from 1: it is left out`),void 0);c.push({id:y,i:c.length,name:y,mono:!0,focal:!!d.focal,col:b(d.col,`the column of ${y}`),row:T,row2:j,branch:!1,shape:"table",more:z,columns:(d.columns??[]).map(K=>({name:String(K.name??""),type:at(K.type),key:K.key==="PK"||K.key==="FK"?K.key:(K.key!==void 0&&K.key!==null&&s(`${y}.${String(K.name)}'s key is "${String(K.key)}", not PK or FK: it is left out`),void 0)}))})}const _=new Map;for(const d of c)d.id?_.has(d.id)&&s(`the id "${d.id}" is used twice`):s("a node has no id"),_.set(d.id,d);if(E==="schema")(t.tables??[]).forEach(d=>(d.columns??[]).forEach((y,v)=>{const B=at(y.references);if(!B)return;const[T,j]=B.split("."),z=_.get(T??""),K=z?.columns?.findIndex(A=>A.name===j)??-1;if(!z||K<0){s(`${String(d.name)}.${String(y.name)} references ${B}, which is not a shown column`);return}const M=_.get(String(d.name??""));M.columns[v].ref={table:T,column:j,row:K},g.push({i:g.length,from:M.id,to:T,kind:"plain",fromRow:v,toRow:K,fk:!0})}));else if(E!=="sequence")for(const d of t.edges??[]){const y=String(d.from??""),v=String(d.to??"");if(!_.has(y)||!_.has(v)){s(`a line names ${_.has(y)?v:y}, which is not a node`);continue}const B=at(d.label);B&&B.length>Lt&&s(`the label "${B}" is over ${Lt} characters: longer words belong in the node or the summary`),g.push({i:g.length,from:y,to:v,kind:l(d.kind,`the line from ${y} to ${v}`),label:B,fromSide:m(d.fromSide),toSide:m(d.toSide),flow:E!=="flowchart"&&d.flow===!0?!0:void 0})}else for(const d of k)"n"in d&&(!_.has(d.from)||!_.has(d.to))&&s(`message ${d.n} names ${_.has(d.from)?d.to:d.from}, which is not a participant`);if(n&&E!=="sequence"){const d=new Map;for(const y of c)for(let v=y.row;v<=y.row2;v++){const B=`${y.col}:${v}`;d.has(B)&&s(`${y.id} and ${d.get(B)} share the cell at column ${y.col}, row ${v}`),d.set(B,y.id)}}if(n){for(const y of I){const v=y.members.map(j=>_.get(j));if(!v.length)continue;const B={c1:Math.min(...v.map(j=>j.col)),c2:Math.max(...v.map(j=>j.col)),r1:Math.min(...v.map(j=>j.row)),r2:Math.max(...v.map(j=>j.row2))};for(const j of c)j.group!==y.id&&j.col>=B.c1&&j.col<=B.c2&&j.row>=B.r1&&j.row<=B.r2&&s(`${j.id} is inside the box of the group "${y.label}" but not a member`);const T=v.map(j=>j.i);Math.max(...T)-Math.min(...T)+1!==T.length&&s(`the members of the group "${y.label}" are not next to each other in the author's order, so the stacked drawing cannot wrap them in one box`)}for(const y of c)y.group&&!I.some(v=>v.id===y.group)&&s(`${y.id} names the group "${y.group}", which is not in groups`);c.filter(y=>y.focal).length>1&&s("more than one node is focal: a diagram has one at most");const d=new Set(E==="sequence"?k.flatMap(y=>"n"in y?[y.kind]:[]):g.map(y=>y.kind));d.has("main")&&!r.main&&s("main lines are drawn but the legend has no words for them (legend.main)"),d.has("dashed")&&!r.dashed&&s("dashed lines are drawn but the legend has no words for them (legend.dashed)"),c.some(y=>y.focal)&&!r.focal&&s("a focal node is drawn but the legend has no words for what it marks (legend.focal)")}const J=E==="architecture"||E==="data-flow",L=d=>Array.isArray(d)&&d.length>1?d.map(String):void 0,w=J&&t.packet&&typeof t.packet=="object"?t.packet:void 0,O=w&&L(w.path),C={animated:t.motion==="animated",pulse:J?L(t.pulse):void 0,packet:O?{path:O,repeat:w.repeat===!0,send:w.send}:void 0,run:E==="sequence"&&t.run===!0};if(n)for(const d of c){const y=d.mark?.says;if(!y?.length)continue;const v=[d.name,d.kind,d.detail].filter(Boolean).join(" ").toLowerCase();y.some(B=>v.includes(B.toLowerCase()))||s(`${d.id}'s mark stands for ${y.join(" or ")}, and none of its words say so`)}const R=Math.max(1,...c.map(d=>d.col)),X=E==="data-flow"?Math.max(1,$.length):Math.max(1,...c.map(d=>d.row2));return{type:E,title:String(t.title??""),heading:u,legend:r,nodes:c,byId:_,edges:g,groups:I,lanes:$,steps:k,cols:R,rows:X,shapeLabels:h,stepWord:f,warnings:a,motion:C,memo:new Map}}function se(t){if(typeof t=="string")return t?{id:t}:void 0;if(!t||typeof t!="object")return;const e=t,n=at(e.onLight);if(n)return{onLight:n,onDark:at(e.onDark)??n,says:Array.isArray(e.says)?e.says.map(String):void 0}}var At=t=>`url("${t.replace(/[\\"\n;]/g,e=>e===` +`?"\\a ":e===";"?"\\3b ":`\\${e}`)}")`;function bt(t,e,n){return t.memo.has(e)||t.memo.set(e,n()),t.memo.get(e)}var Lt=28,pt=t=>{const e=t.trim();return e?/[.!?]$/.test(e)?e:`${e}.`:""};function qt(t,e){return t.legend[e]}function ae(t,e){return e.shape==="decision"?"decision":e.shape==="terminal"?t.edges.some(n=>n.from===e.id)?"start":"end":e.kind??"step"}function re(t,e){return bt(t,`sentence:${e.i}`,()=>ie(t,e))}function ie(t,e){const n=[];if(t.type==="schema"){n.push(`${e.name}, table.`);const a=(e.columns??[]).filter(o=>o.ref).map(o=>`${o.ref.table} (${o.name})`),s=t.edges.filter(o=>o.to===e.id).map(o=>`${o.from} (${t.byId.get(o.from).columns[o.fromRow].name})`);a.length&&n.push(`References ${a.join(", ")}.`),s.length&&n.push(`Referenced by ${s.join(", ")}.`)}else if(t.type==="sequence"){const a=t.steps.filter(o=>"n"in o&&o.from===e.id).length,s=t.steps.filter(o=>"n"in o&&o.to===e.id).length;n.push(pt(e.kind?`${e.name}, ${e.kind}`:e.name)),n.push(`Sends ${a} ${a===1?"message":"messages"} and receives ${s}.`)}else{const a=t.type==="data-flow"?`${t.stepWord(e.step)} of ${t.nodes.length}, ${e.laneLabel}`:t.type==="flowchart"?ae(t,e):e.kind;if(n.push(pt(a?`${e.name}, ${a}`:e.name)),e.detail&&n.push(pt(e.detail)),e.group){const r=t.groups.find(i=>i.id===e.group);r&&n.push(`In ${r.label}.`)}const s=t.edges.filter(r=>r.to===e.id).map(r=>`${t.byId.get(r.from).name}${r.label?` (${r.label})`:""}`),o=t.edges.filter(r=>r.from===e.id).map(r=>`${t.byId.get(r.to).name}${r.label?` (${r.label})`:""}`);s.length&&n.push(`From: ${s.join(", ")}.`),o.length&&n.push(`To: ${o.join(", ")}.`)}return e.focal&&t.legend.focal&&n.push(pt(t.legend.focal)),n.join(" ")}function le(t){return t.type==="architecture"?"a part":t.type==="sequence"?"a participant":t.type==="schema"?"a table":"a step"}function x(t,e,...n){const a=[];for(const s of n.flat(1/0))s!=null&&s!==!1&&!Array.isArray(s)&&a.push(s);return{t,a:e??{},c:a}}var ce={"&":"&","<":"<",">":">",'"':""","'":"'"},it=t=>t.replace(/[&<>"']/g,e=>ce[e]),de=" br img input meta link hr path polygon polyline circle rect line ";function It(t,e={}){if(typeof t=="string")return it(t);if("slot"in t)return e[t.slot]??"";if(!/^[a-z][a-z0-9]*$/.test(t.t))throw new Error(`diagram: "${t.t}" is not an element name`);let n="";for(const[a,s]of Object.entries(t.a))if(!(s==null||s===!1)){if(!/^[a-z][a-z0-9:-]*$/i.test(a))throw new Error(`diagram: "${a}" is not an attribute name`);n+=s===!0?` ${a}`:` ${a}="${it(String(s))}"`}return de.includes(` ${t.t} `)&&!t.c.length?t.t==="path"||t.t==="polygon"||t.t==="polyline"||t.t==="circle"||t.t==="rect"||t.t==="line"?`<${t.t}${n}/>`:`<${t.t}${n}>`:`<${t.t}${n}>${t.c.map(a=>It(a,e)).join("")}</${t.t}>`}var ue=t=>({title:`${t}-title`,summary:`${t}-summary`,keys:`${t}-keys`,list:`${t}-list`,toggle:`${t}-toggle`});function ft(t,e){return!e.layout||e.bare?!1:e.layout==="drawn"?!0:t.type!=="sequence"&&t.type!=="schema"}function fe(t,e){return t.type==="sequence"||t.type==="schema"?e.layout==="drawn":!0}function Ot(t){let e=0;for(const n of t.groups){const a=n.members.map(s=>t.byId.get(s).col);a.length&&(Math.min(...a)===1&&(e|=1),Math.max(...a)===t.cols&&(e|=2))}return(e&1)+(e>>1&1)}function vt(t){return t.type==="sequence"?t.nodes.length:t.cols}function _t(t){return bt(t,"plan",()=>he(t))}function he(t){const e=t.nodes,n=c=>t.type==="data-flow"||!e[c].branch,a=t.edges.map(c=>{const g=t.byId.get(c.from).i,$=t.byId.get(c.to).i,k=e.slice(Math.min(g,$)+1,Math.max(g,$)).every(E=>!n(E.i));return $===g+1&&!(n(g)&&!n($))?"down":$===g-1?"up":$>g&&n(g)&&!n($)&&k?"trunk":$>g&&n(g)&&n($)&&k?"rail":$>g?"end-down":"end-up"}),s=t.edges.map((c,g)=>({e:c,k:g})).filter(({k:c})=>a[c]==="end-down"||a[c]==="end-up"),o=c=>{const g=t.byId.get(c.from).i,$=t.byId.get(c.to).i;return[Math.min(g,$),Math.max(g,$)]},r=(c,g)=>{const[$,I]=o(c),[k,E]=o(g);return $<E&&k<I},i=s.every(({e:c})=>{const g=t.byId.get(c.from).i,[$,I]=o(c);return!n(g)&&e.slice($+1,I).every(k=>!n(k.i))&&s.every(k=>k.e===c||!r(k.e,c))}),f=s.length>0&&(t.type==="data-flow"||!i),p=c=>{const[g,$]=o(c);return $-g},h=t.edges.map(()=>0);let u=!1;const l=[];for(const c of[...s].sort((g,$)=>p(g.e)-p($.e)||g.k-$.k)){let g=0;for(const $ of l)r($.e,c.e)&&(g=Math.max(g,h[$.k]+1));h[c.k]=g,g>1&&(u=!0),l.push(c)}const m=t.edges.map(()=>.5);for(const c of e){const g=s.filter(({e:k})=>k.from===c.id);if(g.length<2)continue;const $=g.filter(({k})=>a[k]==="end-down").sort((k,E)=>p(E.e)-p(k.e)||k.k-E.k);[...g.filter(({k})=>a[k]==="end-up").sort((k,E)=>p(k.e)-p(E.e)||E.k-k.k),...$].forEach(({k},E,_)=>{m[k]=_.length===2?E===0?1/3:2/3:(E+1)/(_.length+1)})}const b=ut();for(let c=1;c<e.length;c++){const g=e[c],$=e[c-1];let I=0,k=t.type==="data-flow"?48:32,E=!1,_=!1;t.edges.forEach((J,L)=>{const w=a[L],O=t.byId.get(J.from).i,C=t.byId.get(J.to).i,R=C===c&&(w==="down"||w==="trunk"||w==="rail"||w==="end-down"),X=O===c&&C===c-1&&w==="up",d=C===c-1&&w==="end-up";R&&(w==="trunk"||w==="end-down")&&(E=!0),d&&(_=!0),(R||X||d)&&J.label&&(I++,k=Math.max(k,w==="trunk"?40:48))}),(I>1||E&&_)&&(k=64),b[g.id]=k}return{routes:a,gutter:f,lanes:h,exits:m,gaps:b,third:u}}var gt=(t,e)=>({width:t,height:e,viewBox:`0 0 ${t} ${e}`,"aria-hidden":"true",focusable:"false"});function Ct(t,e){const n=e==="fk"?"plain":e,a=n==="main"?8:8.5,s=24,o=n==="dashed"?s-1:s-7;return x("svg",{class:`${t}-swatch`,"data-kind":n,...gt(24,16)},e==="fk"?x("circle",{class:`${t}-dot`,cx:3,cy:a,r:3}):null,x("path",{class:`${t}-line`,"data-kind":n,d:`M${e==="fk"?3:0} ${a}H${o}`}),n==="dashed"?x("path",{class:`${t}-tip`,"data-kind":n,"data-open":"",d:`M${s-8} ${a-4}L${s} ${a}L${s-8} ${a+4}`}):x("path",{class:`${t}-tip`,"data-kind":n,d:`M${s} ${a}L${s-8} ${a-4}L${s-8} ${a+4}Z`}))}function mt(t,e){return e==="decision"?x("svg",{class:`${t}-swatch`,"data-shape":e,...gt(16,16)},x("path",{class:`${t}-swatch-shape`,d:"M8 2.5L14.5 8L8 13.5L1.5 8Z"})):e==="terminal"?x("svg",{class:`${t}-swatch`,"data-shape":e,...gt(16,16)},x("rect",{class:`${t}-swatch-shape`,x:.5,y:3.5,width:15,height:9,rx:4.5})):x("svg",{class:`${t}-swatch`,"data-shape":e,...gt(16,16)},x("rect",{class:`${t}-swatch-shape`,x:.5,y:2.5,width:15,height:11,rx:2}))}function pe(t,e){return bt(e,`key:${t}`,()=>ge(t,e))}function ge(t,e){const n=[],a=(o,r,i={})=>n.push(x("li",{class:`${t}-entry`,...i},o,x("span",null,r)));if(e.type==="schema"){const o=new Set(e.nodes.flatMap(r=>(r.columns??[]).map(i=>i.key)));for(const[r,i]of[["PK","Primary key"],["FK","Foreign key"]])o.has(r)&&n.push(x("li",{class:`${t}-entry`},x("span",{class:`${t}-key-letters`,"aria-hidden":"true"},r),x("span",null,i)))}if(e.type==="flowchart"){const o=new Set(e.nodes.map(r=>r.shape));o.has("terminal")&&a(mt(t,"terminal"),e.shapeLabels.terminal),o.has("box")&&a(mt(t,"box"),e.shapeLabels.step),o.has("decision")&&a(mt(t,"decision"),e.shapeLabels.decision)}const s=new Set(e.type==="sequence"?e.steps.flatMap(o=>"n"in o?[o.kind]:[]):e.edges.filter(o=>!o.fk).map(o=>o.kind));for(const o of["main","plain","dashed"]){const r=e.legend[o];s.has(o)&&r&&a(Ct(t,o),r,{"data-line":""})}return e.type==="schema"&&e.edges.length&&(a(Ct(t,"fk"),e.legend.plain??"A foreign key, to the key it references",{"data-line":"","data-when":"drawn"}),n.push(x("li",{class:`${t}-entry`,"data-when":"stacked"},x("span",{class:`${t}-fk-mark`,"aria-hidden":"true"},"→"),x("span",null,"The table a foreign key references")))),e.nodes.some(o=>o.focal)&&e.legend.focal&&a(mt(t,"focal"),e.legend.focal,{"data-focal":""}),e.groups.length&&e.legend.group&&a(mt(t,"group"),e.legend.group),n.length?x("div",{class:`${t}-key`},x("ul",{class:`${t}-legend`,"aria-label":"Key"},n)):null}function me(t,e){const n=e==="main"?6:6.5;return x("svg",{class:`${t}-arrow`,"data-kind":e,...gt(20,12)},x("path",{class:`${t}-line`,"data-kind":e,d:`M0 ${n}H${e==="dashed"?19:13}`}),e==="dashed"?x("path",{class:`${t}-tip`,"data-kind":e,"data-open":"",d:`M12 ${n-4}L20 ${n}L12 ${n+4}`}):x("path",{class:`${t}-tip`,"data-kind":e,d:`M20 ${n}L12 ${n-4}L12 ${n+4}Z`}))}function ye(t,e,n){if(n.shape==="decision")return[x("span",{class:`${t}-words`},x("span",{class:`${t}-name`},n.name))];const a=[];return e.type==="data-flow"?a.push(x("span",{class:`${t}-kind`},n.kind,x("span",{class:`${t}-lane-word`},` · ${n.laneLabel}`))):n.kind&&a.push(x("span",{class:`${t}-kind`},n.kind)),a.push(x("span",{class:`${t}-name`},n.name)),n.detail&&a.push(x("span",{class:`${t}-detail`,"data-mono":n.mono?"":void 0},n.mono?wt(n.detail).flatMap((s,o)=>[o?" ":"",x("span",{class:`${t}-run`},s)]):n.detail)),a}function be(t,e){return[x("span",{class:`${t}-th`},x("span",{class:`${t}-tname`},e.name)),x("span",{class:`${t}-rows`},(e.columns??[]).map((n,a)=>x("span",{class:`${t}-row`,"data-row":a,"data-key":n.key},x("span",{class:`${t}-keyseat`},n.key??""),x("span",{class:`${t}-cname`},n.name),n.ref?x("span",{class:`${t}-ctype`,"data-ref":""},`→ ${n.ref.table}`):n.type?x("span",{class:`${t}-ctype`},n.type):null))),e.more?x("span",{class:`${t}-more`},`+ ${e.more} more`):null]}var Bt=t=>{const e={32:"space-8",40:"space-10",48:"space-12",64:"space-16"};return e[t]?`var(--basalt-${e[t]})`:`${t}px`};function Mt(t,e,n,a){const{P:s}=t,o=fe(e,a)||a.keep===n.id,r=ft(e,a),i=[`--_c:${n.col}`,`--_r:${n.row}`,`--_r2:${n.row2+1}`];e.type==="data-flow"&&i.push(`--_lc:${n.col+1}`),e.type==="sequence"&&i.push(`--_c2:${n.col+1}`);const f=t.plan;if(f&&n.i>0){const u=ht(f.gaps,n.id)??32,l=ht(a.grow,n.id)??0;i.push(`--_gap:${l?`calc(${Bt(u)} + var(--basalt-space-4) * ${l})`:Bt(u)}`)}const p=ht(a.heights,n.id);p&&i.push(`--_h:${p}px`);const h=r?a.stop===n.id?0:-1:a.keep===n.id?-1:void 0;return x("div",{class:`${s}-node`,"data-node":n.id,"data-shape":n.shape,"data-focal":n.focal?"":void 0,"data-branch":n.branch?"":void 0,"data-mark":n.mark?n.mark.id??"":void 0,"data-level":t.level,style:i.join(";"),role:o?"img":void 0,"aria-label":o?re(e,n):void 0,tabindex:h},n.shape==="decision"?x("svg",{class:`${s}-diamond`,viewBox:"0 0 100 100",preserveAspectRatio:"none","aria-hidden":"true",focusable:"false"},x("path",{d:"M50 0L100 50L50 100L0 50Z"})):null,n.mark?x("span",{class:`${s}-mark`,"aria-hidden":"true",style:n.mark.onLight?`--_ml:${At(n.mark.onLight)};--_md:${At(n.mark.onDark??n.mark.onLight)}`:void 0}):null,n.shape==="table"?be(s,n):ye(s,e,n))}function $e(t,e,n){const{P:a}=t,s=[];if(e.type==="data-flow"&&s.push(...e.lanes.map((r,i)=>x("div",{class:`${a}-lane`,style:`--_r:${i+1}`,"aria-hidden":"true"},x("span",{class:`${a}-lane-name`},r.label)))),e.type==="architecture")for(const r of e.groups){const i=r.members.map(l=>e.byId.get(l));if(!i.length)continue;const f=Math.min(...i.map(l=>l.col)),p=Math.max(...i.map(l=>l.col)),h=Math.min(...i.map(l=>l.row)),u=Math.max(...i.map(l=>l.row2));s.push(x("div",{class:`${a}-gbox`,"data-group":r.id,style:`--_c:${f};--_c2:${p+1};--_r:${h};--_r2:${u+1}`,"aria-hidden":"true"},x("span",{class:`${a}-glabel`},r.label)))}if(e.type==="sequence")return s.push(x("ul",{class:`${a}-cast`},e.nodes.map(r=>x("li",{class:`${a}-actor`},Mt(t,e,r,n))))),s.push(we(t,e)),s;let o=0;for(;o<e.nodes.length;){const r=e.nodes[o],i=r.group?e.groups.find(h=>h.id===r.group):void 0;if(!i){s.push(Mt(t,e,r,n)),o++;continue}const f=[];for(;o<e.nodes.length&&e.nodes[o].group===i.id;)f.push(e.nodes[o++]);const p=t.plan?ht(n.grow,f[0].id)??0:0;s.push(x("div",{class:`${a}-group`,"data-group":i.id,style:p?`--_ggrow:${p}`:void 0},x("span",{class:`${a}-glabel`,"aria-hidden":"true"},i.label),f.map(h=>Mt(t,e,h,n))))}return s}function we(t,e){const{P:n}=t,a=[];let s=null;for(const o of e.steps){if("band"in o){s=null,a.push(x("p",{class:`${n}-band`},x("span",null,o.band)));continue}s||(s=x("ol",{class:`${n}-msgs`,start:o.n}),a.push(s));const r=e.byId.get(o.from),i=e.byId.get(o.to),f=r?.col??1,p=i?.col??1,h=f===p,u=h&&f===e.nodes.length,l=qt(e,o.kind);s.c.push(x("li",{class:`${n}-msg`,"data-kind":o.kind,"data-from":o.from,"data-to":o.to,"data-self":h?u?"start":"end":void 0,style:`--_a:${Math.min(f,p)};--_b:${Math.max(f,p)+1}`},x("span",{class:`${n}-said`},x("span",{class:`${n}-num`},String(o.n)),x("span",{class:`${n}-mlabel`},o.label)),x("span",{class:`${n}-route`},r?.short??o.from," ",me(n,o.kind),x("span",{class:t.hidden}," to ")," ",i?.short??o.to,l?` · ${l}`:""),o.note?x("span",{class:`${n}-note`},o.note):null))}return x("div",{class:`${n}-steps`},a)}function xe(t,e){return bt(e,`list:${t}`,()=>ve(t,e))}function ve(t,e){const n=Math.min(6,e.heading+1),a=h=>x(`h${n}`,{class:`${t}-list-head`},h),s=h=>x("strong",null,h),o=h=>x("code",{class:`${t}-code`},h),r=h=>e.byId.get(h)?.name??h,i=h=>{const u=qt(e,h);return u?` (${u})`:""},f=h=>h.focal&&e.legend.focal?` ${pt(e.legend.focal)}`:"";if(e.type==="architecture"){const h=m=>x("li",null,s(m.name),m.kind?`, ${m.kind}`:"",m.detail?[". ",m.mono?o(m.detail):m.detail,/[.!?]$/.test(m.detail)?"":"."]:/[.!?]$/.test(m.kind??m.name)?"":".",f(m)),u=[a("Parts")],l=e.nodes.filter(m=>!m.group);l.length&&u.push(x("ul",{class:`${t}-list-items`},l.map(h)));for(const m of e.groups)u.push(x("p",{class:`${t}-list-group`},m.label)),u.push(x("ul",{class:`${t}-list-items`},m.members.map(b=>h(e.byId.get(b)))));return u.push(a("Connections")),u.push(x("ol",{class:`${t}-list-items`},e.edges.map(m=>x("li",null,s(r(m.from))," to ",s(r(m.to)),m.label?[": ",o(m.label)]:"",`${i(m.kind)}.`)))),u}if(e.type==="flowchart"){const h=u=>(e.byId.get(u)?.i??0)+1;return[x("ol",{class:`${t}-list-items`},e.nodes.map(u=>{const l=e.edges.filter(c=>c.from===u.id),m=u.shape==="decision"?"Decision":u.shape==="terminal"?l.length?"Start":"End":"Step",b=!u.detail&&/[.!?]$/.test(u.name)?" ":". ";return x("li",null,s(u.name),u.detail?[", ",u.mono?o(u.detail):u.detail]:"",`${b}${m}.`,f(u),l.length?x("ul",{class:`${t}-list-exits`},l.map(c=>x("li",null,c.label?`If ${c.label}: go to ${h(c.to)}, `:`Then: go to ${h(c.to)}, `,s(r(c.to)),i(c.kind)))):null)}))]}if(e.type==="data-flow")return[x("ol",{class:`${t}-list-items`},e.nodes.map(h=>{const u=e.edges.filter(l=>l.from===h.id);return x("li",null,`${h.laneLabel}: `,s(h.name),h.detail?[", ",h.mono?o(h.detail):h.detail]:"",".",f(h),u.length?[" Then ",...u.flatMap((l,m)=>[m?"; ":"",`to step ${e.byId.get(l.to).step}, `,s(r(l.to)),l.label?[": ",o(l.label)]:"",i(l.kind)]),"."]:"")}))];if(e.type==="sequence"){const h=[a("Participants"),x("ul",{class:`${t}-list-items`},e.nodes.map(l=>x("li",null,s(l.name),l.kind?`, ${l.kind}`:"",".",f(l))))];h.push(a("Messages"));let u=null;for(const l of e.steps){if("band"in l){u=null,h.push(x(`h${Math.min(6,n+1)}`,{class:`${t}-list-group`},l.band));continue}u||(u=x("ol",{class:`${t}-list-items`,start:l.n}),h.push(u)),u.c.push(x("li",null,o(l.label),": ",s(r(l.from))," to ",s(r(l.to)),`${i(l.kind)}.`,l.note?` ${pt(l.note)}`:""))}return h}const p=[];for(const h of e.nodes)p.push(x(`h${n}`,{class:`${t}-list-group`},o(h.name),f(h))),p.push(x("ul",{class:`${t}-list-items`},[...(h.columns??[]).map(u=>x("li",null,o(u.name),u.key==="PK"?", primary key":u.key==="FK"?", foreign key":"",u.ref?[", references ",o(`${u.ref.table}.${u.ref.column}`)]:u.type?`, ${u.type}`:"")),...h.more?[x("li",null,`and ${h.more} more ${h.more===1?"column":"columns"}`)]:[]]));return p}function Me(t){return`Arrow keys move to the next or the previous ${t.type==="architecture"?"part":t.type==="sequence"?"participant":t.type==="schema"?"table":"step"}, in the author's order; Home and End go to the ends; Escape clears the trace.`}function ke(t){return[{keys:["←","→"],words:le(t)},{keys:["Home","End"],words:"the ends"},{keys:["Esc"],words:"clear"}]}function jt(t,e,n){const a=n.prefix,s=ue(n.base),o=t.type==="sequence"||t.type==="schema"?null:_t(t),r={P:a,ids:s,level:n.level,plan:o,hidden:n.hiddenClass},i=e.layout==="drawn",f=ft(t,e),p=t.type==="sequence"||t.type==="schema"?i:!0,h=`h${t.heading}`,u=[`--_cols:${vt(t)}`];if(t.type==="architecture"&&t.groups.length||i&&e.pad){const l=t.type==="architecture"?t.groups.flatMap(c=>c.members.map(g=>t.byId.get(g))):[],m=(c,g,$)=>c?`var(--basalt-space-${g})`:$?`var(--basalt-space-${$})`:"0px",b=i&&e.pad?"3":void 0;u.push(`--_gpad:${m(l.some(c=>c.row===1),"8",b)} ${m(l.some(c=>c.col===t.cols),"4")} ${m(l.some(c=>c.row2===t.rows),"4",b)} ${m(l.some(c=>c.col===1),"4")}`)}return t.type==="schema"&&e.track&&u.push(`--_track:${e.track}px`),x("figure",{class:n.className?`${a} ${n.className}`:a,"aria-labelledby":s.title,"data-type":t.type,"data-cols":vt(t),"data-reach":t.type==="architecture"?Ot(t):void 0,"data-gutter":o?.gutter?"":void 0,"data-layout":e.layout,"data-measured":e.layout?"":void 0,"data-bare":e.bare?"":void 0,"data-motion":t.motion.animated?"animated":void 0,style:u.join(";")},x("div",{class:`${a}-head`},x(h,{id:s.title,class:`${a}-title`},t.title),n.hasSource?x("p",{class:`${a}-source`},{slot:"source"}):null),x("div",{class:`${a}-drawing`,role:p?"group":void 0,"aria-roledescription":p?"diagram":void 0,"aria-labelledby":p?s.title:void 0,"aria-describedby":p?f?`${s.summary} ${s.keys}`:s.summary:void 0,"data-stops":f?"":void 0},$e(r,t,e),x("div",{class:`${a}-ink`,"aria-hidden":"true"}),x("span",{class:`${a}-ruler`,"aria-hidden":"true"})),pe(a,t),x("p",{class:`${a}-hint`,"data-kbd-hint":"","aria-hidden":"true"},{slot:"hint"}),x("div",{class:`${a}-foot`},{slot:"toggle"}),x("div",{id:s.list,class:`${a}-list`,hidden:!e.open},xe(a,t)),x("span",{id:s.keys,class:n.hiddenClass},Me(t)),x("figcaption",{id:s.summary,class:`${a}-summary`},{slot:"summary"}))}function Se(t){const e=getComputedStyle(t),n=(s,o)=>{const r=parseFloat(e.getPropertyValue(`--basalt-${s}`));return Number.isFinite(r)?r:o},a=new Map;return{space:s=>(a.has(s)||a.set(s,n(`space-${s}`,parseFloat(s.replace("-","."))*4)),a.get(s)),node:n("size-diagram-node",144),table:n("size-diagram-table",224),lane:n("size-diagram-lane",120),step:n("size-diagram-step",56),head:n("size-diagram-head",8),guide:n("size-diagram-guide-dash",4),hair:n("size-hairline",1),line:n("size-chart-line",2),cut:n("size-cut",2),dot:n("size-dot",6),dash:n("size-chart-dash",6),dashGap:n("size-chart-dash-gap",4),wide:n("size-breakpoint-container-lg",640),cap:n("size-breakpoint-container",480),radius:n("radius-md",8),radiusXs:n("radius-xs",4)}}var $t=(t,e)=>t==="main"?e.line:e.hair,lt=(t,e)=>{const n=t.getBoundingClientRect();return{l:n.left-e.left,t:n.top-e.top,r:n.right-e.left,b:n.bottom-e.top}},ct=(t,e,n=.01)=>t.l<e.r-n&&t.r>e.l+n&&t.t<e.b-n&&t.b>e.t+n,Tt=(t,e)=>({l:t.l-e,r:t.r+e,t:t.t-e,b:t.b+e});function rt(t,e,n){const{l:a,t:s,r:o,b:r}=t.rect,i=(a+o)/2,f=(s+r)/2,p=(o-a)/2,h=(r-s)/2,u=e==="top"||e==="bottom";if(t.shape==="decision"){if(u){const b=n,c=h*Math.max(0,1-Math.abs(b-i)/p);return{x:b,y:e==="top"?f-c:f+c}}const l=n,m=p*Math.max(0,1-Math.abs(l-f)/h);return{x:e==="left"?i-m:i+m,y:l}}if(t.shape==="terminal"){const l=Math.min(p,h);if(u){const g=n,$=Math.min(Math.max(g,a+l),o-l),I=g-$,k=Math.abs(I)>=l?0:Math.sqrt(l*l-I*I);return{x:g,y:Math.abs(I)<1e-6?e==="top"?s:r:e==="top"?f-k:f+k}}const m=n,b=m-f,c=Math.abs(b)>=l?0:Math.sqrt(l*l-b*b);return{x:e==="left"?a+l-c:o-l+c,y:m}}return u?{x:n,y:e==="top"?s:r}:{x:e==="left"?a:o,y:n}}function Ee(t,e,n){const{l:a,t:s,r:o,b:r}=e.rect,i=(a+o)/2,f=(s+r)/2,p=(o-a)/2,h=(r-s)/2;if(e.shape==="decision")return Math.abs(t.x-i)/p+Math.abs(t.y-f)/h<1-n/Math.min(p,h);if(e.shape==="terminal"){const u=Math.min(p,h),l=Math.min(Math.max(t.x,a+u),o-u);return Math.hypot(t.x-l,t.y-f)<u-n}return t.x>a+n&&t.x<o-n&&t.y>s+n&&t.y<r-n}function Rt(t,e){if(!ct(t,e.rect))return!1;if(e.shape!=="decision"&&e.shape!=="terminal")return!0;const{l:n,t:a,r:s,b:o}=e.rect,r=(n+s)/2,i=(a+o)/2,f=(s-n)/2,p=(o-a)/2;if(e.shape==="decision"){const u=Math.max(t.l,Math.min(r,t.r)),l=Math.max(t.t,Math.min(i,t.b));return Math.abs(u-r)/f+Math.abs(l-i)/p<1-1e-6}const h=Math.min(p,f);if(ct(t,{l:n+h,r:s-h,t:a,b:o}))return!0;for(const u of[n+h,s-h]){const l=Math.max(t.l,Math.min(u,t.r)),m=Math.max(t.t,Math.min(i,t.b));if(Math.hypot(l-u,m-i)<h-.01)return!0}return!1}function Ae(t,e,n){const a=Math.hypot(e.x-t.x,e.y-t.y),s=Math.max(2,Math.ceil(a/2));for(let o=1;o<s;o++){const r=o/s;if(!(r*a<1.5||(1-r)*a<1.5)&&Ee({x:t.x+(e.x-t.x)*r,y:t.y+(e.y-t.y)*r},n,1))return!0}return!1}var Le=()=>matchMedia("(forced-colors: active)").matches;function qe(t,e){const n=t.querySelector(`.${e}-ruler`),a=new Map;return(s,o)=>{const r=`${o}|${s}`;return a.has(r)||(n.setAttribute("data-f",o),n.textContent=s,a.set(r,n.getBoundingClientRect().width),n.textContent=""),a.get(r)}}var wt=t=>t?t.split(/\s+/).filter(Boolean):[];function Ie(t,e,n){const a=e.space;let s=e.node,o=e.table;for(const f of t.nodes){if(f.shape==="table"){for(const m of f.columns??[]){const b=m.ref?`→ ${m.ref.table}`:m.type??"",c=a("6")+n(m.name,"mono")+(b?a("3")+n(b,"mono"):0)+2*a("3")+2*e.hair;o=Math.max(o,Math.ceil(c))}o=Math.max(o,Math.ceil(n(f.name,"table")+2*a("3")+2*e.hair));continue}const p=f.shape==="terminal"?2*a("5"):2*a("3"),h=f.mark&&!Le()?a("6"):0;let u=0;for(const m of wt(f.name))u=Math.max(u,n(m,f.shape==="decision"?"name-500":"name")+(f.kind?0:h));if(t.type!=="data-flow")for(const m of wt(f.kind))u=Math.max(u,n(m,"mono")+h);for(const m of wt(f.detail))u=Math.max(u,n(m,f.mono?"mono":"sans"));const l=f.shape==="decision"?u/.62:u+p+2*e.hair;s=Math.max(s,Math.ceil(l))}const r=vt(t);let i;return t.type==="data-flow"?i=e.lane+r*(s+a("12")):t.type==="schema"?i=r*o+(r-1)*a("12"):t.type==="sequence"?i=r*s+(r-1)*a("5"):i=r*s+(r-1)*a("16")+Ot(t)*a("4"),{track:s,table:o,least:Math.max(e.wide,i)}}function Ft(t,e){return{x:(n,a)=>a%2===1?Math.round(n+t-.5)+.5-t:Math.round(n+t)-t,y:(n,a)=>a%2===1?Math.round(n+e-.5)+.5-e:Math.round(n+e)-e}}function kt(t){const e=t[t.length-2],n=t[t.length-1];return Math.abs(e.x-n.x)<.01?n.y>e.y?"down":"up":n.x>e.x?"right":"left"}function Ht(t,e,n){const a=t.map(o=>({...o}));for(let o=1;o<a.length;o++){const r=a[o-1],i=a[o];if(Math.abs(r.x-i.x)<.75){const f=n.x(r.x,e);r.x=f,i.x=f}else if(Math.abs(r.y-i.y)<.75){const f=n.y(r.y,e);r.y=f,i.y=f}}const s=[a[0]];for(let o=1;o<a.length;o++){const r=a[o],i=s[s.length-1];if(!(Math.abs(r.x-i.x)<.01&&Math.abs(r.y-i.y)<.01)){if(s.length>=2){const f=s[s.length-2];if(Math.abs(f.x-i.x)<.01&&Math.abs(i.x-r.x)<.01||Math.abs(f.y-i.y)<.01&&Math.abs(i.y-r.y)<.01){s[s.length-1]=r;continue}}s.push(r)}}return s}var dt=t=>t.slice(1).map((e,n)=>[t[n],e]);function xt(t,e,n){const a=[];for(let o=0;o<t.length;o++)for(let r=o+1;r<t.length;r++){const i=t[o],f=t[r];if(!(n&&!n.has(i.i)&&!n.has(f.i)))for(const[p,h]of dt(i.pts))for(const[u,l]of dt(f.pts)){const m=Math.abs(p.y-h.y)<.01,b=Math.abs(u.y-l.y)<.01;if(m===b)continue;const[c,g,$,I]=m?[p,h,u,l]:[u,l,p,h],k=$.x,E=c.y;if(k>Math.min(c.x,g.x)+.75&&k<Math.max(c.x,g.x)-.75&&E>Math.min($.y,I.y)+.75&&E<Math.max($.y,I.y)-.75){const _=m?o:r,J=m?r:o;let L=_,w=J;if(e){const O=e(t[_]);e(t[J])&&!O&&(L=J,w=_)}a.push({top:L,under:w,at:{x:k,y:E},underVertical:w===J})}}}return a}function Oe(t){const e=getComputedStyle(t),n=s=>s.split(/\s+/).map(parseFloat).filter(o=>Number.isFinite(o)),a=(s,o,r)=>{const i=[];let f=o;for(const p of s)i.push([f,f+p]),f+=p+r;return i};return{cols:a(n(e.gridTemplateColumns),parseFloat(e.paddingLeft)||0,parseFloat(e.columnGap)||0),rows:a(n(e.gridTemplateRows),parseFloat(e.paddingTop)||0,parseFloat(e.rowGap)||0)}}var Q=t=>t==="left"||t==="right",Nt={top:"bottom",bottom:"top",left:"right",right:"left"};function _e(t,e){return t.row===e.row?e.col>t.col?["right","left"]:["left","right"]:t.col===e.col?e.row>t.row?["bottom","top"]:["top","bottom"]:[e.col>t.col?"right":"left",e.row>t.row?"top":"bottom"]}function Ce(t,e,n){const a=[];t.edges.forEach((o,r)=>{const i=t.byId.get(o.from),f=t.byId.get(o.to),[p,h]=e[r],u=i.row===f.row&&Q(p)&&Q(h)&&p===Nt[h]||i.col===f.col&&!Q(p)&&!Q(h)&&p===Nt[h];a.push({edge:r,end:"from",node:i,side:p,far:f,straight:u,f:.5},{edge:r,end:"to",node:f,side:h,far:i,straight:u,f:.5})});const s=new Map;for(const o of a){const r=`${o.node.id}.${o.side}`;s.has(r)||s.set(r,[]),s.get(r).push(o)}for(const[o,r]of s){if(r[0].node.shape==="decision")continue;const i=u=>Q(u.side)?u.far.row-u.node.row:u.far.col-u.node.col,f=r.filter(u=>u.straight),p=r.filter(u=>!u.straight);p.sort((u,l)=>i(u)-i(l)||(Q(u.side)?u.far.col-l.far.col:u.far.row-l.far.row)*(i(u)<0?1:-1)),r.length>3&&n(`${o.replace(".","'s ")} side has ${r.length} lines; more than three is an error: use another side`),f.length?p.forEach(u=>{u.f=i(u)<0?.25:.75}):p.length===2?(p[0].f=.25,p[1].f=.75):p.length===3?(p[0].f=.25,p[1].f=.5,p[2].f=.75):p.length>3&&p.forEach((u,l)=>{u.f=(l+1)/(p.length+1)});const h=new Map;for(const u of f)h.has(u.far.id)||h.set(u.far.id,[]),h.get(u.far.id).push(u);for(const u of h.values())u.length>1&&u.sort((l,m)=>l.edge-m.edge).forEach((l,m)=>{l.f=u.length===2?m===0?.25:.75:(m+1)/(u.length+1)})}return a}function zt(t,e,n){const{l:a,t:s,r:o,b:r}=t.rect;return Q(e)?rt(t,e,s+(r-s)*n):rt(t,e,a+(o-a)*n)}function Wt(t,e,n,a){const s=new Map;return e.querySelectorAll(`.${a}-node`).forEach(o=>{const r=t.byId.get(o.dataset.node);r&&s.set(r.id,{id:r.id,rect:lt(o,n),shape:r.shape,i:r.i})}),s}function Dt(t,e){const n=e.head,a=e.head/2,{x:s,y:o}=t.tip;return t.dir==="down"?{l:s-a,r:s+a,t:o-n,b:o}:t.dir==="up"?{l:s-a,r:s+a,t:o,b:o+n}:t.dir==="right"?{l:s-n,r:s,t:o-a,b:o+a}:{l:s,r:s+n,t:o-a,b:o+a}}var Gt=(t,e,n)=>({l:Math.min(t.x,e.x)-n/2,r:Math.max(t.x,e.x)+n/2,t:Math.min(t.y,e.y)-n/2,b:Math.max(t.y,e.y)+n/2});function Be(t,e,n,a,s,o,r,i){const f=r.space,p=[],h=[],u=[],l=[],m=f("1"),b=e.filter(c=>t.edges[c.i]?.label).sort((c,g)=>+(t.edges[g.i].kind==="main")-+(t.edges[c.i].kind==="main")||c.i-g.i);for(const c of b){const g=t.edges[c.i].label,$=i(g,"label"),I=16,k=c.pts.length-2,E=[];dt(c.pts).forEach(([w,O],C)=>{const R=Math.abs(w.y-O.y)<.01,X=R?w.x:w.y;let d=R?O.x:O.y;const y=Math.sign(d-X)||1;C===k&&(d-=y*r.head);let v=[[X,d]];for(const j of s)for(const z of R?[j.l,j.r]:[j.t,j.b]){const K=R?w.y:w.x;(R?K>j.t&&K<j.b:K>j.l&&K<j.r)&&(v=v.flatMap(([A,F])=>z>Math.min(A,F)+1&&z<Math.max(A,F)-1?[[A,z],[z,F]]:[[A,F]]))}const B=(j,z)=>{const K=(j+z)/2,M=R?{x:K,y:w.y}:{x:w.x,y:K};return!s.some(A=>M.x>A.l&&M.x<A.r&&M.y>A.t&&M.y<A.b)},T=c.axes?.[C]??(R?w.y:w.x);for(const[j,z]of v)E.push({horiz:R,c:T,p:j,q:z,len:Math.abs(z-j),pri:v.length>1&&B(j,z)?1:0})}),E.sort((w,O)=>O.pri-w.pri||O.len-w.len);let _=null,J=!1;const L=(w,O=!0)=>{const C=Tt(w,m);return O&&(w.l<o.l||w.r>o.r||w.t<o.t||w.b>o.b)||n.some(R=>Rt(C,R))||p.some(R=>ct(C,R))||a.heads.some(R=>ct(C,R))||a.rects.some(R=>ct(C,R))?!1:!e.some(R=>R.i!==c.i&&dt(R.pts).some(([X,d])=>ct(C,Gt(X,d,R.width))))};for(const w of E){for(const O of[1/2,1/3,2/3]){const C=w.p+(w.q-w.p)*O,R=[],X=f("2")+c.width/2;if(w.horiz?(w.len>=$+2*f("1")+f("3-5")&&R.push({box:{l:C-$/2-f("1"),r:C+$/2+f("1"),t:w.c-I/2,b:w.c+I/2},on:!0}),R.push({box:{l:C-$/2,r:C+$/2,t:w.c-X-I,b:w.c-X},on:!1}),R.push({box:{l:C-$/2,r:C+$/2,t:w.c+X,b:w.c+X+I},on:!1})):(w.len>=I+f("3")&&R.push({box:{l:w.c-$/2-f("1"),r:w.c+$/2+f("1"),t:C-I/2,b:C+I/2},on:!0}),R.push({box:{l:w.c+X,r:w.c+X+$,t:C-I/2,b:C+I/2},on:!1}),R.push({box:{l:w.c-X-$,r:w.c-X,t:C-I/2,b:C+I/2},on:!1})),_=R.find(d=>L(d.box))??null,_)break;!J&&R.some(d=>L(d.box,!1))&&(J=!0)}if(_)break}if(!_){u.push(c.i),J&&l.push(c.i);continue}p.push(_.box),h.push({i:c.i,text:g,box:_.box,on:_.on})}return{labels:h,unseated:u,bounded:l}}function Kt(t,e,n,a){const s=[],o=[];return t.querySelectorAll(`.${n}-gbox, .${n}-group`).forEach(r=>{if(r.getClientRects().length===0||getComputedStyle(r).display==="contents")return;const i=lt(r,e);o.push(i),s.push({l:i.l,r:i.r,t:i.t,b:i.t+1},{l:i.l,r:i.r,t:i.b-1,b:i.b},{l:i.l,r:i.l+1,t:i.t,b:i.b},{l:i.r-1,r:i.r,t:i.t,b:i.b});const f=r.querySelector(`:scope > .${n}-glabel`);f&&f.getClientRects().length&&s.push(lt(f,e))}),t.querySelectorAll(`.${n}-lane`).forEach((r,i)=>{if(!r.getClientRects().length)return;const f=lt(r,e);i>0&&s.push({l:f.l,r:f.r,t:f.t-a/2-.5,b:f.t-a/2+.5});const p=r.querySelector(`.${n}-lane-name`);p&&s.push(lt(p,e))}),{obstacles:{rects:s,heads:[]},groups:o}}function je(t,e){const{m:n,tk:a,P:s,drawing:o,origin:r,warn:i}=t,f=a.space,p=Wt(n,o,r,s),h=[...p.values()],u=Oe(o),l=r.left-Math.floor(r.left),m=r.top-Math.floor(r.top),b=Ft(l,m),c=o.clientWidth,g=o.clientHeight,$=M=>n.type==="data-flow"?M.col+1:M.col,I=parseFloat(getComputedStyle(o).rowGap)||0,k={w:c,h:g,nodes:h,lines:[],lifelines:[],labels:[],crossings:[],through:[],unseated:[],outside:[],ox:l,oy:m};if(n.type==="sequence")return Re(t,k,b);let E,_=[];n.type==="schema"?E=n.edges.map(M=>{const A=n.byId.get(M.from),F=n.byId.get(M.to);if(A.col===F.col){const S=A.col===n.cols?"left":"right";return[S,S]}return F.col>A.col?["right","left"]:["left","right"]}):(E=n.edges.map(M=>{const A=n.byId.get(M.from),F=n.byId.get(M.to),[S,q]=_e(A,F);return[M.fromSide??S,M.toSide??q]}),_=Ce(n,E,i??(()=>{})));const J=(M,A)=>{const F=o.querySelector(`.${s}-node[data-node="${CSS.escape(M)}"] .${s}-row[data-row="${A}"]`);if(!F)return 0;const S=lt(F,r);return(S.t+S.b)/2},L=n.edges.map((M,A)=>{const[F,S]=E[A],q=p.get(M.from),D=p.get(M.to),W=$t(M.kind,a);if(M.fk){const V=J(M.from,M.fromRow),et=J(M.to,M.toRow),ot=b.y(V,W),tt=b.y(et,W);return{p1:{x:F==="right"?q.rect.r:q.rect.l,y:ot},p2:{x:S==="right"?D.rect.r:D.rect.l,y:tt},r1:V,r2:Math.abs(ot-tt)<.01?V:et}}const Y=_.find(V=>V.edge===A&&V.end==="from").f,P=_.find(V=>V.edge===A&&V.end==="to").f;let G=zt(q,F,Y),N=zt(D,S,P);const U=Q(F)?G.y:G.x;let nt=Q(S)?N.y:N.x;return Q(F)?G={...G,y:b.y(G.y,W)}:G={...G,x:b.x(G.x,W)},Q(S)?N={...N,y:b.y(N.y,W)}:N={...N,x:b.x(N.x,W)},Q(F)&&Q(S)&&Math.abs(G.y-N.y)<1.01&&(N={...N,y:G.y},nt=U),!Q(F)&&!Q(S)&&Math.abs(G.x-N.x)<1.01&&(N={...N,x:G.x},nt=U),G=Q(F)?rt(q,F,G.y):rt(q,F,G.x),N=Q(S)?rt(D,S,N.y):rt(D,S,N.x),{p1:G,p2:N,r1:U,r2:nt}}),w=new Set;n.type==="schema"&&n.edges.forEach((M,A)=>{Math.abs(n.byId.get(M.from).col-n.byId.get(M.to).col)>1&&w.add(A)});const O=new Map,C=new Set;n.edges.forEach((M,A)=>{if(w.has(A))return;const[F,S]=E[A],{p1:q,p2:D}=L[A],W=n.byId.get(M.from),Y=n.byId.get(M.to);let P=null,G=null,N=!1;if(F===S){if(Q(F)){const V=F==="right"?Math.max($(W),$(Y)):Math.min($(W),$(Y))-1,et=u.cols[V-1],ot=u.cols[V];et&&ot&&(P=`c${V}`,G=[et[1],ot[0]],N=!0)}else{const V=F==="bottom"?Math.max(W.row2,Y.row2):Math.min(W.row,Y.row)-1,et=u.rows[V-1],ot=u.rows[V];et&&ot&&(P=`r${V}`,G=[et[1],ot[0]],N=!1)}P&&C.add(A)}else if(Q(F)&&Q(S)&&Math.abs(q.y-D.y)>.5){const V=$(Y),et=S==="left",ot=u.cols[(et?V-1:V)-1],tt=u.cols[(et?V:V+1)-1];ot&&tt&&(P=`c${et?V-1:V}`,G=[ot[1],tt[0]],N=!0)}else if(!Q(F)&&!Q(S)&&Math.abs(q.x-D.x)>.5){const et=S==="top"?Y.row-1:Y.row2,ot=u.rows[et-1],tt=u.rows[et];ot&&tt&&(P=`r${et}`,G=[ot[1],tt[0]],N=!1)}if(!P||!G)return;O.has(P)||O.set(P,{span:G,vertical:N,members:new Map});const U=`${M.to}.${S}.${Math.round(N?D.y:D.x)}`,nt=O.get(P);nt.members.has(U)||nt.members.set(U,[]),nt.members.get(U).push(A)});const R=new Map,X=M=>{const[A,F]=E[M],{p1:S,p2:q}=L[M];if(Q(A)&&Q(F)){if(A===F){const W=R.get(M)??(A==="right"?Math.max(S.x,q.x)+f("4"):Math.min(S.x,q.x)-f("4"));return[S,{x:W,y:S.y},{x:W,y:q.y},q]}if(Math.abs(S.y-q.y)<=.5)return[S,{x:q.x,y:S.y}];const D=R.get(M)??(S.x+q.x)/2;return[S,{x:D,y:S.y},{x:D,y:q.y},q]}if(!Q(A)&&!Q(F)){if(A===F){const W=R.get(M)??(A==="bottom"?Math.max(S.y,q.y)+f("4"):Math.min(S.y,q.y)-f("4"));return[S,{x:S.x,y:W},{x:q.x,y:W},q]}if(Math.abs(S.x-q.x)<=.5)return[S,{x:S.x,y:q.y}];const D=R.get(M)??(S.y+q.y)/2;return[S,{x:S.x,y:D},{x:q.x,y:D},q]}return Q(A)?[S,{x:q.x,y:S.y},q]:[S,{x:S.x,y:q.y},q]},d=M=>{const A=n.edges[M],F=$t(A.kind,a),S=X(M),q=Ht(S,F,b);let D;return S.length===q.length&&(D=dt(S).map(([W,Y])=>Math.abs(W.y-Y.y)<.75?(W.y+Y.y)/2:(W.x+Y.x)/2),D[0]=L[M].r1,D.length>1&&(D[D.length-1]=L[M].r2)),{i:M,from:A.from,to:A.to,kind:A.kind,pts:q,tip:q[q.length-1],dir:kt(q),dot:A.fk?q[0]:void 0,width:F,axes:D}},y=()=>n.edges.flatMap((M,A)=>w.has(A)?[]:[d(A)]);let v=null;const B=M=>{v??(v=y());const A=v.map(F=>M.has(F.i)?d(F.i):F);return{lines:A,score:Te(A,M)*1e5+xt(A,void 0,M).length*1e3+St(A.filter(F=>M.has(F.i)),h,n).length}},T=(M,A)=>{const F=M.flatMap(S=>{const{p1:q,p2:D}=L[S];return A?[q.y,D.y]:[q.x,D.x]});return[Math.min(...F),Math.max(...F)]};for(const[,M]of O){const A=[...M.members.values()].map(S=>({members:S,run:T(S,M.vertical)})).sort((S,q)=>S.run[0]-q.run[0]),F=[];for(const S of A){const q=F[F.length-1];q&&q.some(D=>D.run[0]<S.run[1]+f("8")&&S.run[0]<D.run[1]+f("8"))?q.push(S):F.push([S])}for(const S of F){if(S.every(U=>U.members.every(nt=>C.has(nt))))continue;const q=S.map(U=>U.members),D=q.length,W=(M.span[1]-M.span[0])/(D+1);W<f("3")&&i?.(`a gutter holds ${D} lanes side by side, closer than space-3`);const Y=new Set(q.flat());let P=q,G=1/0,N=null;for(const U of Vt(q)){U.forEach((V,et)=>V.forEach(ot=>R.set(ot,M.span[0]+W*(et+1))));const nt=B(Y);nt.score<G&&(G=nt.score,P=U,N=nt.lines)}P.forEach((U,nt)=>U.forEach(V=>R.set(V,M.span[0]+W*(nt+1)))),v=N}}k.lines=y();for(const M of w)i?.(`${n.edges[M].from} to ${n.edges[M].to} is two columns apart, so its line is not drawn; its row still writes the target`);k.crossings=xt(k.lines),k.through=St(k.lines,h,n),k.outside=Zt(k.lines,c,g,a);const{obstacles:j,groups:z}=Kt(o,r,s,I);j.heads=k.lines.map(M=>Dt(M,a));const K=Be(n,k.lines,h,j,z,{l:0,t:0,r:c,b:g},a,e);return k.labels=K.labels,k.unseated=K.unseated,k.bounded=K.bounded,k}function Te(t,e){let n=0;for(let a=0;a<t.length;a++)for(let s=a+1;s<t.length;s++){const o=t[a],r=t[s];if(!e.has(o.i)&&!e.has(r.i)||o.to===r.to&&Math.abs(o.tip.x-r.tip.x)<1&&Math.abs(o.tip.y-r.tip.y)<1)continue;const i=(o.width+r.width)/2+.5;for(const[f,p]of dt(o.pts))for(const[h,u]of dt(r.pts)){const l=Math.abs(f.y-p.y)<.01,m=Math.abs(h.y-u.y)<.01;if(l!==m)continue;const[b,c]=l?[f.y,h.y]:[f.x,h.x];if(Math.abs(b-c)>=i)continue;const[g,$]=l?[f.x,p.x]:[f.y,p.y],[I,k]=l?[h.x,u.x]:[h.y,u.y];Math.min(Math.max(g,$),Math.max(I,k))-Math.max(Math.min(g,$),Math.min(I,k))>1&&n++}}return n}function*Vt(t){if(t.length<=1){yield t.slice();return}if(t.length>5){yield t.slice();return}for(let e=0;e<t.length;e++){const n=t.slice(0,e).concat(t.slice(e+1));for(const a of Vt(n))yield[t[e],...a]}}function Zt(t,e,n,a){const s=[];for(const o of t)o.pts.some((r,i)=>{const f=i===o.pts.length-1?Math.max(o.width/2,a.head/2):o.width/2;return r.x-f<-.5||r.x+f>e+.5||r.y-f<-.5||r.y+f>n+.5})&&s.push(o.i);return s}function St(t,e,n){const a=[];for(const s of t){const o=dt(s.pts);e.some(r=>o.some(([i,f])=>Ae(i,f,r)))&&a.push(s.i)}return a}function Re(t,e,n){const{m:a,tk:s,P:o,drawing:r,origin:i}=t,f=s.space,p=new Map;r.querySelectorAll(`.${o}-node`).forEach(b=>p.set(b.dataset.node,lt(b,i)));const h=r.querySelector(`.${o}-steps`),u=h?lt(h,i).b:e.h,l=b=>{const c=p.get(b);return c?n.x((c.l+c.r)/2,s.hair):0};for(const b of a.nodes){const c=p.get(b.id);c&&e.lifelines.push({x:l(b.id),y1:c.b,y2:u})}const m=b=>p.get(b.id);return r.querySelectorAll(`.${o}-msg`).forEach(b=>{const c=b.dataset.from,g=b.dataset.to,$=b.dataset.kind??"plain",I=$t($,s),k=lt(b,i),E=n.y((k.t+k.b)/2,I),_=Number(b.querySelector(`.${o}-num`)?.textContent??0),J=l(c),L=l(g);let w;if(c===g){const v=b.dataset.self==="start"?-f("6"):f("6"),B=n.y(E-f("2"),I),T=n.y(E+f("2"),I);w=[{x:J,y:B},{x:n.x(J+v,I),y:B},{x:n.x(J+v,I),y:T},{x:J,y:T}]}else w=[{x:J,y:E},{x:L,y:E}];e.lines.push({i:_,from:c,to:g,kind:$,pts:w,tip:w[w.length-1],dir:kt(w),width:I});const O=b.querySelector(`.${o}-said`),C=b.querySelector(`.${o}-note`),R=a.byId.get(c),X=a.byId.get(g);if(!R||!X)return;const d=c===g?(()=>{const v=a.nodes[R.i+(b.dataset.self==="start"?-1:1)],B=v?l(v.id):b.dataset.self==="start"?0:e.w;return Math.abs(B-J)-f("6")-f("2-5")-f("2")})():Math.abs(L-J)-2*f("2");Math.max(O?O.getBoundingClientRect().width:0,C?C.getBoundingClientRect().width:0)>d+.5&&e.unseated.push(_)}),e}function Jt(t,e,n,a=ut()){const{m:s,tk:o,P:r,drawing:i,origin:f}=t,p=o.space,h=Wt(s,i,f,r),u=[...h.values()],l=f.left-Math.floor(f.left),m=f.top-Math.floor(f.top),b=Ft(l,m),c=i.clientWidth,g=i.clientHeight,$={w:c,h:g,nodes:u,lines:[],lifelines:[],labels:[],crossings:[],through:[],unseated:[],outside:[],ox:l,oy:m},I=ut();if(s.type==="sequence"||s.type==="schema")return{geo:$,grow:I};const k=c-(parseFloat(getComputedStyle(i).paddingRight)||0),E=(d,y,v)=>{const B=[d];for(let T=1;T<=(ht(a,y)??0);T++)B.push({...d,t:d.t+v*p("4")*T,b:d.b+v*p("4")*T});return B},_=new Map;i.querySelectorAll(`.${r}-node`).forEach(d=>{const y=d.parentElement,v=lt(y,f),B=getComputedStyle(y);_.set(d.dataset.node,v.r-(parseFloat(B.paddingRight)||0)-(parseFloat(B.borderRightWidth)||0))});const J=s.nodes,L=d=>h.get(J[d].id),w=[],O=d=>$t(s.edges[d].kind,o);s.edges.forEach((d,y)=>{const v=n.routes[y],B=h.get(d.from),T=h.get(d.to),j=O(y);let z=[];const K=d.label,M=K?e(K,"label"):0,A=16,F=p("4");if(v==="down"||v==="up"){const q=Math.max(B.rect.l,T.rect.l),D=Math.min(B.rect.r,T.rect.r),W=s.edges.map((N,U)=>({o:N,j:U})).filter(({o:N,j:U})=>(n.routes[U]==="down"||n.routes[U]==="up")&&(N.from===d.from&&N.to===d.to||N.from===d.to&&N.to===d.from)),Y=W.findIndex(N=>N.j===y),P=W.length<2?.5:W.length===2?Y===0?.25:.75:(Y+1)/(W.length+1),G=b.x(q+(D-q)*P,j);if(z=v==="down"?[rt(B,"bottom",G),rt(T,"top",G)]:[rt(B,"top",G),rt(T,"bottom",G)],K){let N=Math.min(z[0].y,z[1].y),U=Math.max(z[0].y,z[1].y);v==="down"?U-=o.head:N+=o.head;const nt=[...i.querySelectorAll(`.${r}-group`)].map(tt=>lt(tt,f));let V=[[N,U]];for(const tt of nt)for(const H of[tt.t,tt.b])V=V.flatMap(([Z,st])=>H>Z+1&&H<st-1?[[Z,H],[H,st]]:[[Z,st]]);const et=(tt,H)=>nt.some(Z=>(tt+H)/2>Z.t&&(tt+H)/2<Z.b&&G>Z.l&&G<Z.r);if(V.length>1){const tt=V.filter(([Z,st])=>!et(Z,st));[N,U]=(tt.length?tt:V).reduce((Z,st)=>st[1]-st[0]>Z[1]-Z[0]?st:Z)}const ot=[1/2,1/3,2/3].map(tt=>{const H=N+(U-N)*tt;return{l:G-M/2-p("1"),r:G+M/2+p("1"),t:H-A/2,b:H+A/2}});w.push({k:y,cands:ot,on:!0,card:v==="down"?d.to:d.from})}}else if(v==="trunk"||v==="rail"){const q=b.x(Math.max(B.rect.l,v==="rail"?T.rect.l:B.rect.l)+p(v==="trunk"?"8":"3"),j),D=rt(B,"bottom",q);if(v==="rail"){if(z=[D,rt(T,"top",q)],K){const W=T.rect.t-p("6");w.push({k:y,cands:E({l:q+p("2-5"),r:q+p("2-5")+M,t:W-A/2,b:W+A/2},d.to,-1),on:!1,card:d.to})}}else{const W=b.x(T.rect.l+p("6"),j),Y=b.y(T.rect.t-F,j);z=[D,{x:q,y:Y},{x:W,y:Y},rt(T,"top",W)],K&&w.push({k:y,cands:E({l:W+p("2-5"),r:W+p("2-5")+M,t:Y-A/2,b:Y+A/2},d.to,-1),on:!1,card:d.to})}}else{const q=Math.min(_.get(d.from)??c,_.get(d.to)??c),D=b.x(n.gutter?k+(n.lanes[y]?2*p("3-5"):p("3-5")):q-p("2-5"),j),W=b.y(B.rect.t+(B.rect.b-B.rect.t)*n.exits[y],j),Y=rt(B,"right",W),P=b.x(T.rect.r-p("6"),j),G=v==="end-down",N=b.y(G?T.rect.t-F:T.rect.b+F,j);z=[Y,{x:D,y:Y.y},{x:D,y:N},{x:P,y:N},rt(T,G?"top":"bottom",P)];const U=G?d.to:J[T.i+1]?.id??d.to;K&&w.push({k:y,cands:E({l:P-p("2-5")-M,r:P-p("2-5"),t:N-A/2,b:N+A/2},U,G?-1:1),on:!1,card:U})}const S=Ht(z,j,b);$.lines.push({i:y,from:d.from,to:d.to,kind:d.kind,pts:S,tip:S[S.length-1],dir:kt(S),width:j})}),$.crossings=xt($.lines),$.through=St($.lines,u,s),$.outside=Zt($.lines,c,g,o);const{obstacles:C}=Kt(i,f,r,0);C.heads=$.lines.map(d=>Dt(d,o));const R=[],X={l:0,t:0,r:c,b:g};for(const d of w){const y=T=>{const j=Tt(T,p("1"));return T.l<X.l-.5||T.r>X.r+.5||T.t<X.t-.5||T.b>X.b+.5||u.some(z=>Rt(j,z))||R.some(z=>ct(j,z))||C.heads.some(z=>ct(j,z))||C.rects.some(z=>ct(j,z))||$.lines.some(z=>z.i!==d.k&&dt(z.pts).some(([K,M])=>ct(j,Gt(K,M,z.width))))},v=d.cands.find(T=>!y(T));v||(I[d.card]=(I[d.card]??0)+1,$.unseated.push(d.k));const B=v??d.cands[0];R.push(B),$.labels.push({i:d.k,text:s.edges[d.k].label,box:B,on:d.on})}return{geo:$,grow:I}}function Fe(t,e){const n=o=>String(Math.round(o*100)/100);let a=`M${n(t[0].x)} ${n(t[0].y)}`;for(let o=1;o<t.length-1;o++){const r=t[o-1],i=t[o],f=t[o+1],p=Math.hypot(i.x-r.x,i.y-r.y),h=Math.hypot(f.x-i.x,f.y-i.y),u=Math.min(e,p/2,h/2);if(u<.5){a+=`L${n(i.x)} ${n(i.y)}`;continue}const l={x:i.x+(r.x-i.x)/p*u,y:i.y+(r.y-i.y)/p*u},m={x:i.x+(f.x-i.x)/h*u,y:i.y+(f.y-i.y)/h*u};a+=`L${n(l.x)} ${n(l.y)}Q${n(i.x)} ${n(i.y)} ${n(m.x)} ${n(m.y)}`}const s=t[t.length-1];return`${a}L${n(s.x)} ${n(s.y)}`}var He={up:{x:0,y:-1},down:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0}};function Ne(t,e,n,a,s){const o=He[e.dir],r=e.kind==="dashed",i=n.head,f=n.head/2,p=r?1:i-1,h=e.pts.map(E=>({...E})),u=h[h.length-1];u.x-=o.x*p,u.y-=o.y*p;const l=e.tip.x-o.x*i,m=e.tip.y-o.y*i,b=-o.y*f,c=o.x*f,g=E=>Math.round(E*100)/100,$=it(e.kind),I=r?`<path class="${t}-tip" data-kind="${$}" data-open="" d="M${g(l+b)} ${g(m+c)}L${g(e.tip.x)} ${g(e.tip.y)}L${g(l-b)} ${g(m-c)}"/>`:`<path class="${t}-tip" data-kind="${$}" d="M${g(e.tip.x)} ${g(e.tip.y)}L${g(l+b)} ${g(m+c)}L${g(l-b)} ${g(m-c)}Z"/>`,k=e.dot?`<circle class="${t}-dot" cx="${g(e.dot.x)}" cy="${g(e.dot.y)}" r="${n.dot/2}"/>`:"";return`<g class="${t}-edge" data-edge="${e.i}" data-from="${it(e.from)}" data-to="${it(e.to)}"><path class="${t}-line" data-kind="${$}" d="${Fe(h,s)}"${a?` mask="url(#${it(a)})"`:""}/>${I}${k}</g>`}function Ut(t,e,n,a){const s=new Map,o=new Map;for(const i of e.crossings)o.has(i.under)||o.set(i.under,[]),o.get(i.under).push(i);let r="";for(const[i,f]of o){const p=`${a}-cut-${i}`;s.set(i,p);const h=f.map(u=>{const l=e.lines[u.top],m=e.lines[u.under],b=l.width/2+n.cut,c=m.width/2+1;return u.underVertical?`<rect x="${u.at.x-c}" y="${u.at.y-b}" width="${2*c}" height="${2*b}" fill="black"/>`:`<rect x="${u.at.x-b}" y="${u.at.y-c}" width="${2*b}" height="${2*c}" fill="black"/>`}).join("");r+=`<mask id="${it(p)}" maskUnits="userSpaceOnUse" x="0" y="0" width="${e.w}" height="${e.h}"><rect x="0" y="0" width="${e.w}" height="${e.h}" fill="white"/>${h}</mask>`}return{defs:r,ids:s}}function Xt(t,e,n,a){const{defs:s,ids:o}=Ut(t,e,n,a),r=e.lifelines.map(h=>`<path class="${t}-life" d="M${h.x} ${h.y1}V${h.y2}"/>`).join(""),i=e.lines.map((h,u)=>Ne(t,h,n,o.get(u)??null,h.from===h.to?n.radiusXs:n.radius)).join(""),f=`<svg class="${t}-svg" width="${e.w}" height="${e.h}" viewBox="0 0 ${e.w} ${e.h}" focusable="false">${s?`<defs>${s}</defs>`:""}${r}<g class="${t}-edges">${i}</g></svg>`,p=e.labels.map(h=>`<span class="${t}-label" data-edge="${h.i}"${h.on?' data-on=""':""} style="left:${Math.round(h.box.l*100)/100}px;top:${Math.round(h.box.t*100)/100}px;width:${Math.round((h.box.r-h.box.l)*100)/100}px">${it(h.text)}</span>`).join("");return f+p}function ze(t,e,n,a,s,o,r){const i=t.querySelector(`.${n}-drawing`);if(!i||t.clientWidth===0)return{dyn:s,geo:null,ink:"",tokens:null};const f=Se(t),p=qe(i,n),h=Ie(e,f,p),u=t.clientWidth,l=(()=>{const L=document.activeElement;return L&&i.contains(L)&&L.dataset.node?L.dataset.node:void 0})(),m=L=>ft(e,L)?{...L,stop:L.stop&&e.byId.has(L.stop)?L.stop:e.nodes[0]?.id,keep:void 0}:{...L,stop:L.stop??e.nodes[0]?.id,keep:l&&L.layout!=="drawn"?l:void 0},b=L=>{if(e.type!=="flowchart")return L;o({...L,heights:void 0});const w=ut();return i.querySelectorAll(`.${n}-node[data-shape="decision"]`).forEach(O=>{const C=O.querySelector(`.${n}-words`);if(!C)return;const R=O.getBoundingClientRect(),X=C.getBoundingClientRect(),d={w:X.width+2*f.space("2-5"),h:X.height+2*f.space("2")},y=R.width/2,v=1-d.w/2/y,B=v>.05?d.h/2/v:d.h*10;w[O.dataset.node]=Math.max(f.space("16"),Math.ceil(R.width/5),Math.ceil(2*B))}),{...L,heights:w}},c=()=>({m:e,tk:f,P:n,drawing:i,origin:i.getBoundingClientRect(),warn:r}),g=s.autoOpen?{open:!1,autoOpen:void 0}:{},$=(L,w)=>w.map(O=>yt(e,L.lines.find(C=>C.i===O))).join(", ");if(u>=h.least){const L=C=>{let R=m({...s,...g,layout:"drawn",grow:void 0,track:void 0,bare:void 0,pad:C||void 0});return R=b(R),o(R),{dd:R,g:je(c(),p)}};let{dd:w,g:O}=L(!1);if(!O.through.length&&!O.outside.length&&O.unseated.length&&O.unseated.every(C=>O.bounded?.includes(C))){const C=L(!0);!C.g.through.length&&!C.g.unseated.length&&!C.g.outside.length&&({dd:w,g:O}=C)}if(!O.through.length&&!O.unseated.length&&!O.outside.length)return O.crossings.length&&r?.(`${O.crossings.length} crossing${O.crossings.length===1?"":"s"} in the drawn layout: ${O.crossings.map(C=>`${yt(e,O.lines[C.top])} over ${yt(e,O.lines[C.under])}`).join("; ")}`),{dyn:w,geo:O,ink:Xt(n,O,f,a),tokens:f};O.through.length&&r?.(`the drawn layout does not fit at ${Math.round(u)}px: ${$(O,O.through)} would pass through a node`),O.outside.length&&r?.(`the drawn layout does not fit at ${Math.round(u)}px: ${$(O,O.outside)} would leave the drawing`),O.unseated.length&&r?.(`the drawn layout does not fit at ${Math.round(u)}px: no clean seat for ${O.unseated.map(C=>e.type==="sequence"?`message ${C}`:`"${e.edges[C]?.label}"`).join(", ")}`)}let I=m({...s,...g,layout:"stacked",heights:void 0,grow:ut(),track:e.type==="schema"?h.table:void 0,bare:void 0,pad:void 0});if(I=b(I),o(I),e.type==="sequence"||e.type==="schema")return{dyn:I,geo:null,ink:"",tokens:f};const k=_t(e);let E=Jt(c(),p,k,I.grow);for(let L=0;L<6&&Object.keys(E.grow).length;L++){const w=ut(I.grow);for(const[O,C]of Object.entries(E.grow))w[O]=(ht(w,O)??0)+C;I={...I,grow:w},o(I),E=Jt(c(),p,k,w)}const _=E.geo;if(_.unseated.length>0||_.through.length>0||_.outside.length>0||k.third){_.unseated.length&&r?.(`the stacked drawing has no clean seat for ${[...new Set(_.unseated)].map(O=>`"${e.edges[O]?.label}"`).join(", ")}, so its lines are not drawn; the list holds every connection`),_.through.length&&r?.(`in the stacked drawing ${$(_,_.through)} would pass through a node, so its lines are not drawn`),_.outside.length&&r?.(`in the stacked drawing ${$(_,_.outside)} would leave the drawing, so its lines are not drawn`),k.third&&r?.("the stacked drawing would need a third end lane, so its lines are not drawn");const L={..._,lines:[],labels:[],crossings:[]};return{dyn:m({...I,grow:ut(),bare:!0,open:s.bare?s.open:!0,autoOpen:s.bare?s.autoOpen:s.open?void 0:!0}),geo:L,ink:"",tokens:f}}return _.crossings.length&&r?.(`${_.crossings.length} crossing${_.crossings.length===1?"":"s"} in the stacked drawing (each is cut): ${_.crossings.map(L=>`${yt(e,_.lines[L.top])} over ${yt(e,_.lines[L.under])}`).join("; ")}`),{dyn:I,geo:_,ink:Xt(n,_,f,a),tokens:f}}function yt(t,e){const n=t.byId.get(e.from)?.name??e.from,a=t.byId.get(e.to)?.name??e.to;return`${n} to ${a}`}function We(t,e,n,a,s,o){const r=new Set;if(o){r.add(o);for(const c of n?.lines??[])c.from===o&&r.add(c.to),c.to===o&&r.add(c.from)}if(t.toggleAttribute("data-tracing",!!o),t.querySelectorAll(`.${e}-node`).forEach(c=>c.toggleAttribute("data-near",r.has(c.dataset.node))),!n||!a)return;const i=c=>!!o&&(c.from===o||c.to===o),f=t.querySelector(`.${e}-edges`),p=new Map;t.querySelectorAll(`.${e}-edge`).forEach(c=>p.set(c.getAttribute("data-edge"),c));for(const c of n.lines){const g=p.get(String(c.i));g&&(g.toggleAttribute("data-lit",i(c)),g.toggleAttribute("data-dim",!!o&&!i(c)))}if(t.querySelectorAll(`.${e}-label`).forEach(c=>{const g=n.lines.find($=>String($.i)===c.dataset.edge);c.toggleAttribute("data-lit",!!(g&&i(g)))}),f){for(const c of n.lines)if(i(c)){const g=p.get(String(c.i));g&&f.appendChild(g)}}const h=xt(n.lines,i),{defs:u,ids:l}=Ut(e,{...n,crossings:h},a,s),m=t.querySelector(`.${e}-svg`);if(!m)return;let b=m.querySelector("defs");!b&&u&&(b=document.createElementNS("http://www.w3.org/2000/svg","defs"),m.insertBefore(b,m.firstChild)),b&&(b.innerHTML=u),n.lines.forEach((c,g)=>{const $=p.get(String(c.i))?.querySelector(`.${e}-line`);if(!$)return;const I=l.get(g);I?$.setAttribute("mask",`url(#${I})`):$.removeAttribute("mask")})}var De=()=>matchMedia("(prefers-reduced-motion: reduce), (forced-colors: active), print").matches||document.documentElement.getAttribute("data-loops")==="held";function Ge(t,e){const n=t.getAttribute("data-entrance");if(!(n==="running"||n==="done")){if(!e){n&&t.removeAttribute("data-entrance");return}n||t.setAttribute("data-entrance",De()?"done":"pending")}}function Ke(t){const e=t.getAttribute("data-entrance");e!=="pending"&&e!=="running"||(t.setAttribute("data-entrance","done"),t.dispatchEvent(new Event("basalt-diagram-settle")))}function Ve(t,e,n){const a=t.byId.get(e)?.i??0,s=t.nodes.length;let o;if(n==="ArrowRight"||n==="ArrowDown")o=a+1;else if(n==="ArrowLeft"||n==="ArrowUp")o=a-1;else if(n==="Home")o=0;else if(n==="End")o=s-1;else return null;return t.nodes[Math.max(0,Math.min(s-1,o))].id}var Ze=["data-layout","data-measured","role","aria-roledescription","aria-labelledby","aria-describedby","aria-label","tabindex","data-stops","hidden"],Yt=["data-layout","data-measured","data-bare","data-motion"],Je=["--_track","--_h","--_gap","--_ggrow","--_gpad"],Qt=t=>t==null||t===!1;function Ue(t,e){if(t.tagName.toLowerCase()!==e.t)return!1;const n=typeof e.a.class=="string"?e.a.class.split(" ")[0]:"";return!n||t.classList.contains(n)}function Pt(t,e,n=!0){if(typeof e=="string"||"slot"in e)return;const a=n?Yt:Ze;for(const r of a)Qt(e.a[r])&&t.removeAttribute(r);for(const[r,i]of Object.entries(e.a)){if(r==="class")continue;if(r==="style"){const p=t.style,h=new Map(String(i??"").split(";").map(u=>{const l=u.indexOf(":");return[u.slice(0,l).trim(),u.slice(l+1).trim()]}).filter(([u])=>u));for(const[u,l]of h)p.getPropertyValue(u).trim()!==l&&p.setProperty(u,l);for(const u of Je)h.has(u)||p.removeProperty(u);continue}if(n&&!Yt.includes(r))continue;if(Qt(i)){t.removeAttribute(r);continue}const f=i===!0?"":String(i);t.getAttribute(r)!==f&&t.setAttribute(r,f)}if(e.t==="svg"||typeof e.a.class=="string"&&/-(ink|ruler)$/.test(e.a.class)||e.c.some(r=>typeof r!="string"&&"slot"in r))return;const s=[...t.children];let o=0;for(const r of e.c)if(!(typeof r=="string"||"slot"in r)){for(let i=o;i<s.length;i++)if(Ue(s[i],r)){Pt(s[i],r,!1),o=i+1;break}}}function Xe(t,e,n,a){if(n===a)return;const s=o=>t.querySelector(`.${e}-node[data-node="${CSS.escape(o)}"]`);n&&s(n)?.setAttribute("tabindex","-1"),s(a)?.setAttribute("tabindex","0")}(function(t){"use strict";var e=t._,n="diagram",a=0;function s(l,m){return{prefix:n,base:l,hasSource:m.source!==void 0&&m.source!==null&&m.source!=="",hiddenClass:"visually-hidden"}}function o(l,m,b,c){var g=function($){return'<kbd class="kbd">'+it($)+"</kbd>"};return{source:it(String(m.source||"")),summary:it(String(m.summary||"")),hint:ke(l).map(function($){return"<span>"+$.keys.map(g).join(" ")+" "+it($.words)+"</span>"}).join(""),toggle:'<button type="button" class="btn diagram-toggle" data-variant="secondary" data-size="sm" aria-expanded="'+(c?"true":"false")+'" aria-controls="'+it(b)+'-list"><span>'+(c?"Hide the list":"View as list")+"</span></button>"}}function r(l,m){var b=Et(l),c=jt(b,{},s(m,l)),g=It(c,o(b,l,m,!1)),$=g.indexOf(">");return{open:g.slice(0,$+1),inner:g.slice($+1,g.length-9),warnings:b.warnings}}var i=["aria-labelledby","data-type","data-cols","data-reach","data-gutter","data-layout","data-measured","data-bare"],f=["--_cols","--_gpad","--_track"];function p(l,m,b){l.__diagram&&l.__diagram.stop();var c=(l.getAttribute("aria-labelledby")||"").replace(/-title$/,"").replace(/[^A-Za-z0-9_-]/g,""),g=Et(m);if(!b||!c||!l.querySelector(":scope > .diagram-drawing")){if(!c||!l.querySelector("#"+CSS.escape(c+"-title"))){for(;document.getElementById("dg"+ ++a+"-title"););c="dg"+a}var $=r(m,c),I=document.createElement("div");I.innerHTML=$.open+"</figure>";var k=I.firstChild;i.forEach(function(H){l.removeAttribute(H)}),f.forEach(function(H){l.style.removeProperty(H)});for(var E=0;E<k.attributes.length;E++){var _=k.attributes[E];_.name==="class"?l.classList.add.apply(l.classList,_.value.split(" ")):_.name==="style"?l.style.cssText=_.value+";"+l.style.cssText:l.setAttribute(_.name,_.value)}l.querySelectorAll(":scope > :not(script[data-diagram])").forEach(function(H){H.remove()}),l.insertAdjacentHTML("beforeend",$.inner)}g.warnings.forEach(function(H){console.warn("Basalt diagram: "+H)});var J=s(c,m),L={},w=null,O=null,C=null,R=Object.create(null),X=function(H){R[H]||(R[H]=1,console.warn("Basalt diagram: "+H))},d=function(H){Pt(l,jt(g,H,J))},y=l.querySelector(".diagram-ink"),v=l.querySelector(".diagram-toggle"),B=g.motion.animated&&typeof e.diagramMotion=="function",T=null,j=null,z=function(){B&&Ke(l)};function K(){We(l,n,w&&w.geo,w&&w.tokens,c,O||C)}function M(){v&&(v.setAttribute("aria-expanded",String(!!L.open)),v.firstElementChild.textContent=L.open?"Hide the list":"View as list")}function A(){w=ze(l,g,n,c,L,d,X),L=w.dyn,d(L),M(),ft(g,L)||(C=null);var H=y&&w.ink!==j;H&&(y.innerHTML=w.ink,j=w.ink),K(),B&&w.tokens&&(Ge(l,!!(w.geo&&w.geo.lines.length)),H&&T&&T.redrawn())}function F(H){L=H,d(L)}function S(H){var Z=L.stop;L=Object.assign({},L,{stop:H}),Xe(l,n,Z,H)}var q=function(H){var Z=H&&H.closest?H.closest(".diagram-node"):null;return Z&&l.contains(Z)?Z:null};function D(H){var Z=q(H.target);if(!(!Z||H.defaultPrevented)){if(z(),H.key==="Escape"){(O||C)&&(H.preventDefault(),O=C=null,K());return}if(ft(g,L)){var st=Ve(g,Z.getAttribute("data-node"),H.key);if(st){H.preventDefault(),S(st);var te=l.querySelector('.diagram-node[data-node="'+CSS.escape(st)+'"]');te&&te.focus()}}}}function W(H){var Z=q(H.target);if(Z){z();var st=Z.getAttribute("data-node");O=Z.matches(":focus-visible")?st:null,ft(g,L)&&L.stop!==st&&S(st),K()}}function Y(H){var Z=q(H.target);Z&&(q(H.relatedTarget)||(O=null),L.keep===Z.getAttribute("data-node")&&F(Object.assign({},L,{keep:void 0})),K())}function P(H){if(!(H.pointerType!=="mouse"||!matchMedia("(hover: hover)").matches)){var Z=q(H.target);Z&&z();var st=Z&&ft(g,L)?Z.getAttribute("data-node"):null;st!==C&&(C=st,K())}}function G(){C&&(C=null,K())}function N(){z(),F(Object.assign({},L,{open:!L.open,autoOpen:void 0})),M()}l.addEventListener("keydown",D),l.addEventListener("focusin",W),l.addEventListener("focusout",Y),l.addEventListener("pointerover",P),l.addEventListener("pointerleave",G),v&&v.addEventListener("click",N),A();var U=l.clientWidth,nt=0,V=!0,et=new ResizeObserver(function(){Math.abs(l.clientWidth-U)<.5||(U=l.clientWidth,cancelAnimationFrame(nt),nt=requestAnimationFrame(A))});et.observe(l),document.fonts&&document.fonts.ready.then(function(){V&&A()});var ot=matchMedia("(forced-colors: active)"),tt=g.nodes.some(function(H){return H.mark});tt&&ot.addEventListener("change",A),B&&(T=e.diagramMotion(l,{fig:l,P:n,base:c,model:function(){return g},geo:function(){return w&&w.geo},tokens:function(){return w&&w.tokens}},m)),l.__diagram={stop:function(){V=!1,et.disconnect(),cancelAnimationFrame(nt),tt&&ot.removeEventListener("change",A),T&&T.destroy(),l.removeEventListener("keydown",D),l.removeEventListener("focusin",W),l.removeEventListener("focusout",Y),l.removeEventListener("pointerover",P),l.removeEventListener("pointerleave",G),v&&v.removeEventListener("click",N)},layout:A,key:h(m),send:T&&T.sendValue?T.sendValue:null}}function h(l){try{return JSON.stringify(l,function(m,b){return m==="packet"&&b&&typeof b=="object"?Object.assign({},b,{send:void 0}):b})}catch{return null}}function u(){document.querySelectorAll("figure.diagram").forEach(function(l){if(!l.__diagram){var m=l.querySelector(":scope > script[data-diagram]");if(m)try{p(l,JSON.parse(m.textContent),!0)}catch(b){console.error("Basalt diagram: this figure could not be drawn",b)}}})}e.diagramMarkup=r,t.diagram=function(l,m){var b=l.__diagram,c=b&&b.send?h(m):null;if(c!==null&&c===b.key){b.send(m.packet?m.packet.send:void 0);return}p(l,m)},e.step(62,"wireDiagrams",u)})(window.Basalt)})(); diff --git a/.agent/skills/basalt-html/parts/manifest.json b/.agent/skills/basalt-html/parts/manifest.json index 84409c32..0659a0c4 100644 --- a/.agent/skills/basalt-html/parts/manifest.json +++ b/.agent/skills/basalt-html/parts/manifest.json @@ -1,7 +1,7 @@ { - "$comment": "Which parts of the skill's CSS and JS a page gets. The core is always in. A module is in when the page's body has one of its classes, attributes or tags, matches one of its text patterns, or is named in a <!-- basalt:use name --> comment, and when another module needs it (requires). Modules are added in the order listed here, which is the order of the source files' cascade. classes: every class the module's CSS styles (the test checks them against the CSS and against SKILL.md). budget: the most bytes its minified CSS and JS may reach together. budgets: skillMd (SKILL.md, the context an agent pays: never above what it was), core (the CSS and JS of every page). icons: Phosphor names the module's script draws itself. Raised in the first parity PR (the owner's \"bring up the parity\"): forms (the number-input, search-clear and file-input chrome), disclosure (the native details marker), status (the accent reader and the forced-colours badge border), spinner (a fixed 16px ring), and the new number, range and accent modules. skillMd rose 10555 to 10900 for the new rules (number field, native chrome, the braille rule, the accent). Raised in the second parity PR (popup rows, levels and the segment's pill): segment 1400 to 3700 (the shared sliding pill: its script, 1.5 KB, and its CSS with the pill's two fallbacks), rows 3600 to 4300 (#27's plate-in-a-row geometry, the plate per level, the glide's shared plate and the forced-colours lit row, net of the removed bar), palette 9400 to 11300 (the glide's script, 2.4 KB: it follows the lit row, travels on a pointer, snaps on a key, and fades in place on leaving). The art module (DECISIONS 101 and 104) is the token groups only some pages name, taken out of the core so the core stays under its cap: the chart roles and lengths, the art colours, the aspect ratios and the stage headroom, in both themes (2087 bytes at 2100; it grows only when a token of those groups is added). A page gets it when its body names one of them, a var() in its own style included. The every-module page has no cap of its own (owner, DECISIONS 79): each part is capped, and a page carries only the parts it uses. usage: the most bytes of a module's usage text (src/usage/NAME.md; core.usage for core.md), which compose.mjs --usage prints on demand. It is context an agent pays only for the modules its page uses, so it is capped per part as SKILL.md and the CSS and script are (DECISIONS 79 and 109). Each is set a little above what its text was when the usage moved out of SKILL.md (DECISIONS 109); raising one needs a reason in the PR, and a rise of 40 to 50% is the owner's. textWords: each text pattern said in words, which compose.mjs --usage prints instead of the regular expression (one for each entry of text, in order). builds: modules a module requires whose markup its script writes, so --usage prints a line saying so instead of their usage text (the palette builds its own rows and key chips). The council's clarity check of the usage texts (all three: not yet clear) raised eight caps because the texts gained what an agent had to guess: callout 200 to 700 (the icon and one wrapper div around the title and body as markup, the four status icons, the role React's Callout renders), palette 1100 to 1300 (an item shown whole, keys as an array, keywords), stats 450 to 800 (a snippet of the figures and of the dl), tabs 500 to 650 (the unselected panels), code 250 to 450 (the markup and what each token class means), segment 150 to 300 (a click does not switch it), progress 150 to 350 (the empty span that paints the fill), theme 250 to 400 (leave the button empty), and accent 250 to 300. Topbar went down, 700 to 500, as its build detail was cut. Raised in the usage PR (the council's clarity check): palette 11300 to 11450 (the module grew 11283 to 11448, +165, about 1.5%), for the guard that makes a string `keys` warn and draw no chip instead of throwing in `keys.filter`, which the palette's usage already promised. Round 2 of the clarity check: tabs 650 to 750 (the panel's top space shown in the snippet, and that the script selects a tab on click). Raised in the site-icons and status PR (skill-parity part A, DECISIONS 106 and 107): status 1650 to 1900 (the neutral, pending and running marks, the badge's real border, and the forced-colours disc, net of the red danger word it drops) and its usage 400 to 1000 (every status in words, the word alone, running, forced colours); rows 4300 to 4450 (the profile list's seat rule and the status parts on a lit row) and its usage 300 to 600 (the profile list, with the one mistake: never an empty element for the seat). New: the links module (2671 bytes: the social row, the new-tab arrow's CSS and the script that draws it; budget 2750) and its usage (1746 bytes; cap 1850), which carries the social link, the glyph set, icon only and the new tab. Dropping Regular halves icons.json. Added in the overlay PR (skill-parity-4, batch 7 step 2, DECISIONS 108): the shared plate leaves palette.js for a glide module (the palette, a menu and the notification centre all call it), so the palette's cap went down, 11450 to 9250, and rows 4450 to 3850 (the plate's CSS moved to glide); and the overlay layer comes in as seven modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: popover (the native popup shell), menu, dialog (the dialog and alert dialog), sheet (on every side, the top one the site header's narrow menu), tooltip, toast and notifications (the centre). skillMd is unchanged in its cap (the eight new index lines fit within it); the core is unchanged in bytes. Added in the figures and charts PR (skill-parity-5, batch 7 step 3, DECISIONS 108): four modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: meter (React's Meter, CSS only, 2581 bytes), dlist (the description list, CSS only, 1265), terminal (the code block's transcript: its CSS, 3242, and the script that draws the gutter, the copy button and the replay, 4824) and chart (React's TimeChart and ChartGroup: 7313 of CSS and 23262 of script, which port chart.tsx's scale, layout, lane, labels, sentences, keyboard and table; it needs the art tokens, the table and the kbd chips, and a page without a chart carries none of it). Stats grew for the source line (budget 700 to 850, 798 bytes; its usage 800 to 950, 675 to 899 bytes, +33%, under the owner's 40 to 50%). skillMd is unchanged in its cap (four index lines fit within it); the core is unchanged in bytes. Added in the forms and selection PR (skill-parity-6, batch 7 step 4, DECISIONS 108): six modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: select (React's Select: the native select's closed trigger in every browser and, where `appearance: base-select` is shipped, the styled list with its two-line rows; a small script that says which input lit a row, 7740 bytes before it, choice (Checkbox, Radio, RadioGroup and Switch as styled native inputs; CSS only, with the first-frame rule), choice-card (ChoiceCard; CSS only), toggle (the pressed toggle's plate and check seat on .btn; CSS only), selection (a table's checkbox column: its fixed width and the script that sets aria-selected, the mixed header box and the count) and loops (the page-level hold on every loop with its switch: the held look and the script that stores it). The select's styles left forms, whose budget fell 3650 to 3250. skillMd rose 8621 to the size of its six new index lines, within its cap; the core is unchanged in bytes; compose adds the stored-hold line to the head of a page that has the loops module. Revised in the same PR (the lead's review of the build): the select gains select.js (one row is lit at a time, by whichever of the pointer and the keys moved last), and choice, toggle, selection and loops carry the first-frame rule, so a state a script sets on load (a mixed header box, the stored hold) paints at once with no crossfade. Added in the navigation and layout PR (skill-parity-7, batch 7 step 5, DECISIONS 108): five modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: glyph (Basalt's core glyphs drawn by name, at rest and selected, from a table the build works out from the drawn set; a page carries only the glyphs it names, and the drawing of a core glyph from data-glyph left the sheet module, which draws none now), nav (React's Nav: the sidebar's, the narrow menu's and More's rows, with the shared hugging pill), topbar-nav (the site header's links, one action and narrow menu, built by script from the bar's markup), app-shell (the shell, its sidebar and rail, and the app header) and tab-bar (the phone tab bar). The topbar module became the site header's bar (React's SiteHeader, DECISIONS 108: 56px with its line inside, the 44 by 44 brand target, the narrow-screen buttons, the derived sticky offset), budget 1600 to 3200 because its rules gained the app header's shared smoke, and its usage 500 to 750 (+50%) for the lockup's markup (the links, action and menu are topbar-nav's usage). Glide 3700 to 3950: the navigation's pill is a shape inside the row that the plate follows (about 200 bytes). The core's usage 2000 to 2100 (+5%): h2 is the Section step, the prose column's measure, and a link already 44px tall needs no margin. skillMd rose 9317 to 9863 for five index lines, under its cap; the core CSS grew 38 bytes (the layout tokens replace raw lengths, the gutter is one derived property, h2, .prose and .lead follow foundations) and the core script is unchanged. A module's media query writes %bp-md%, %bp-lg% or %bp-container% and the build substitutes the breakpoint tokens. Added in the tables and filters PR (skill-parity-8, batch 7 step 6, DECISIONS 108): the existing table module gains React's table additions (DECISIONS 95: the row header, \"Not observed\", the row density and the scroll hint with its small script), budget 1400 to 3000 (it was 1134 bytes of CSS; it is 2168 of CSS and 693 of script) and its usage 700 to 950 (+36%); and two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: still-table (React's Table with `columns`: the fixed layout from a colgroup, the whole header cell as the sort button with its reserved seat, aria-sort, the pinned columns and their divider, the empty row; 4767 of CSS and 3264 of script, budget 8200) and filter (React's MultiSelect and FilterResult: the chips, the trigger and checklist with the search band from ten values, Clear held in place, the one debounced result line, and the narrowing of a table by `data-column`; 8240 of CSS and 7978 of script, budget 16400; it needs the popover, glide, glyph and choice modules). The core is unchanged in bytes. skillMd rose 9863 to 10128 for two index lines and the CaretUpDown icon's name, within its cap. Added in the commands PR (skill-parity-9, batch 7 step 7, DECISIONS 103 and 108): one new module a page carries only when it uses it, command-list (React's CommandList: the command panel set in the page, list plus preview, the push; it extends the palette and needs rows, kbd and glide; 5229 of CSS and 8734 of script, budget 14000, usage 2150). Two-line rows come to the existing modules: rows 3850 to 5350 (the described row's grid and description line, the push's chevron: 1481 bytes of CSS, the same rules React's menu rows carry), palette 9250 to 9900 (its rows are one function the list shares, with the description and the two-tier ranking of title matches over keyword and description matches; +636) and its usage 1300 to 1350, rows' usage 600 to 800, and glide 3950 to 4000 (a host that is idle counts as having no lit row, +54). skillMd rose 10128 to 10259 for one index line, within its cap; the core's CSS grew 24 bytes (.split.aside takes size-list-width in place of its raw 20rem: the same 320px, so no pixel moves) and the core script is unchanged. Added in the art PR (skill-parity-10, batch 7 step 8, DECISIONS 104 and 108): two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: stage (React's Stage and PairedArt: full-bleed art under the site header, the pull-up by the sticky offset, the headroom, the paired art that follows the page's theme, and the forced-colours and print rules; CSS only, 1179 bytes) and framed-art (React's FramedArt: the figure, its rim and radius, the reserved box, the placeholder and the failed alt, the caption and credit; 2208 bytes of CSS and the 733-byte script that sets the frame's phase); both need the art tokens. The bar stays smoked over a stage: React clears it only over a stage that passed the headroom test helper, and a page has no test run (DECISIONS 108's note), so the skill builds no clear state. skillMd rose 10259 to 10500 for two index lines, within its cap; the core is unchanged in bytes. The callout gained the status rim in the same PR (DECISIONS 82, D8's status callouts): success, warning and danger draw their border in the status colour at 45% mixed in sRGB over the callout's own level, one solid colour on every side, and CanvasText in forced colours with the icon; the status colour is now one property the icon and the rim read. Its budget rose 900 to 1150 (the module is 1089 bytes, from 792: +297, about 37%); its usage is unchanged. Added in the overlays-and-the-rest PR (skill-parity-11, batch 7 step 9, DECISIONS 90 and 108): the last two parts of D8's part 5, each a module a page carries only when it uses it, with its own cap and usage cap set a little above its size: combobox (React's Combobox: the input with its caret button inside, the popup of the menu's rows with the glide's shared plate and two-line options, the filtering, the keys, the hidden value, the empty message and the check; 4342 of CSS and 6423 of script, budget 10900, usage 2150; it needs forms, popover and glide, and builds the last two) and sparkline (React's Sparkline: the label and latest value, the line, the axis, the empty sentence and the loading line that breathes; 1609 of CSS and 1874 of script, budget 3600, usage 950). The combobox copies the menu's row rules, as the select's list does, because React's Combobox renders MenuItem rows (a 40px hit area, a 36px plate) and the skill's .row is the palette's 44px: it carries no menu script. popover.js gains the combobox popup in the list of popups that keep focus where it is (+21 bytes, within its cap). skillMd rose 10500 to 10724 for two index lines, within its cap; the core is unchanged in bytes. Added in the motion-rules PR (DECISIONS 136 and 139): one module, ambient (a page's one ambient loop: CSS 828 bytes, script 433, budget 1300, usage 800), taken out of loops so the hold's own module grows only by the icon toggle's glyph swap (loops 2000 to 2200, +10%; its usage 1300 to 1650 for the icon form and the new settings-row sentence, +27%); and the chart's entrance (`entrance: true`: the marks' animations, their conditions and the redraw that restarts them at the elapsed time, 23262 to 25299 bytes of script; budget 30700 to 32800, +7%, usage 2500 to 2950, +18%). The core grew by the three tokens (27704 to 27862 bytes of CSS, under its cap). its stage usage gained the ambient art's line (1650 to 1750, +6%). skillMd rose 10724 to the size of the ambient index line, within its cap. Raised again in the motion-rules amendment (DECISIONS 143): chart 32800 to 33800 (script 25299 to 26375 bytes, +4%; +10% over the 30700 it began with) for the glide a new data set makes mid-entrance, print settling it, and `Basalt.pageChange()`; its usage 2950 to 3150 (+26% over the 2500 it began with). Raised in the second motion-rules amendment (DECISIONS 148): chart 33800 to 34400 (script 26375 to 26970 bytes: a line and its markers glide from their drawn geometry, and `beforeprint` settles the entrance; +12% over the 30700 it began with); topbar-nav 6900 to 7500 (+8.7%: the narrow menu's pause row, its CSS and 275 bytes of script, DECISIONS 148 item 2); loops usage 1650 to 1800 (+38% over the 1300 it began with, for the icon form's `title` and the menu row). Raised in the audit-design-b PR (DECISIONS 138 and 139): still-table 8200 to 13400 (+63%: the module was 7927 bytes and is 13311; the cut cell's plate, its focus stops and its dismissal, ported from React's cell-peek.ts, are 4273 bytes of script and 1111 of CSS; a still table that truncates needs them). The same PR: core usage 2100 to 2250 (+7%: the skip link, one bullet), forms usage 350 to 480 (+37%: the required mark), still-table usage 1950 to 2150 (+10%: the cut cell and the width rule), notifications usage 1050 to 1100 (+5%: the 44px entry on touch). The skip link's rim and radius took the core 30457 to 30609 bytes, under its cap (the rules that hang it under the bar are the topbar module's: 3200 to 3600, +12.5%); core 30720 to 31050 (+1.1%, DECISIONS 147: also the bar's links left out of the rule: the pseudo-element that makes a short standalone link a 44 by 44 target), skip-link script in the topbar module (3200 to 4150 over this PR, +30%: the rules that hang the link under the bar, 3600, and the script that reads the bar's real edge, 4150), sparkline 3600 to 4050 (+12.5%: React's ticker structure, so the value copies once on its line, and in forced colours the strips go and the number is plain text), forms budget 3250 to 3500 (+7.7%: the necessity word), notifications 9050 to 9250 (+2.2%: the 44px entry). Raised in the audit-design-b PR's E2 port (DECISIONS 138 and 139: the core set draws check, close, the chevrons, copy, plus, minus and search wherever a component draws them): the modules that drew a Phosphor icon for one of those now carry the core glyph's whole SVG, written in at build time (`%glyph-svg:name%`, the markup the glyph module's `_.glyph(name)` returns, so no module needs the glyph module and a page pays for nothing it does not use), and the Phosphor path of the same icon leaves the page. Each module's own bytes rose by that markup, and a page's total moved by what the Phosphor path it no longer carries saves: menu 8600 to 8900 (+303), combobox 10900 to 11200 (+303), copy 1900 to 2400 (+640), terminal 8100 to 8850 (+761), toast 13850 to 14150 (+325), number 2900 to 3400 (+557), filter 16400 to 17050 (+785), palette 9900 to 10450 (+536); the command list shares the palette's search drawing and fell 20 bytes. Set in integration-nov15, where the type-layout, motion-rules and audit-design-b branches meet: the combined tree measured SKILL.md 10959 bytes (each side's cap was 10900: both added index lines), core 31192 bytes (caps 30720 and 31050: the page-row and display rules, the three motion tokens and the skip link and 44px target rules all land in the core CSS) and core usage 2348 bytes (caps 2300 and 2250: type-layout's line and the skip-link bullet), so each is set to the measured bytes rounded up to the next 50: skillMd 10900 to 11000, core 31050 to 31200, core usage 2300 to 2350. Raised in the audit-design PR (decisions 138 and 139, parts A, D and C11): core 30720 to 31600 (+2.9%: the more-contrast block and its three aliases, and the field boundary token, every page carries as React does; the shadow-pill token is gone; the script gained `reserve`, 240 bytes), segment 3700 to 4100 and tabs 2300 to 2700 (the chosen label is 600 against 400, its width reserved by a span that carries its own copy, drawn unseen at 600; the pill's drop shadow is gone), and the segment's usage 300 to 380 (the weight and the glyph-only button). Raised again in the audit-design-a amendment (decision 145): core 31600 to 32300 (reserve() also reserves a label that is not plain text), segment 4100 to 5100 and tabs 2700 to 3500 (the second copy of such a label, and an icon drawn in both its forms), glyph 1100 to 1300 (a glyph in a segment or tab is drawn in both forms). Raised in the second audit-design-a amendment (decision 149): core 32300 to 32800 (reserve() builds the second copy of a label without any id, name, reference or hidden control, and does not copy a frame or media), segment 5100 to 5400 and its usage 380 to 500 (the 600 is on the label, the one-line rule and the usage text); the still-table cap is back at 8200, as the wash is on every cell again. Return 3 of the audit-design-a build (decision 149): tabs 3500 to 3700 (a tab the script has not reserved is 600 itself when selected, and one it declined is marked; the same two lines are in segment, which stays under 5400). Raised in the audit-fix-c2 PR (engineering, no pixel changes): toast 13850 to 14350 (the module was 13789 bytes and is 14288, +499, 3.6%) for F6, which focuses the Notifications region and Shift+Tab or Escape from it (or from the first toast) leaves it for where focus came from (and keeps a dialog's focus trap from wrapping it), as Base UI's viewport does in React, and for placing the region from focus (in the modal that holds it, or in the body), so a toast is never under a backdrop or in an inert modal whatever order the modals opened in (A3-09); the palette module grew 9864 to 9897 of its 9900 so that a palette opened over a modal sits inside it; topbar 3200 to 3250 (3123 to 3233, +110) for the scroll margin on what the bar holds, so a Tab into the bar from a scrolled page does not scroll the page (React's rule from PR #66); stage usage 1650 to 1750 (1580 to 1713, +8%) for the art's new place in the markup, after the content (A1-09), the stage's own CSS rising 1179 to 1208 within its 1250. skillMd rose 10724 to 10876 for the sentence that says a body may carry head tags, within its 10900. compose.mjs, the tool an agent runs, has no cap here (it is never in a page): it grew 21673 to 38153 bytes for the tokenizer that reads a body as HTML does and the head tags. Raised in the site-parts PR (DECISIONS 146, round 39), which folds each new part into the module it belongs with, so SKILL.md gains no index line (it has 41 bytes under its cap and a new module needs about 100): topbar 4150 to 17600 (+13450: the site footer and its disclosures, the lockup by pixel density, and a bar that arrives or leaves and returns, with its observer; a page that has a .topbar and no footer carries them too: the alternative, a module for each, needs its own index line and so SKILL.md bytes) and its usage 950 to 2900 (the footer's markup, the lockup's and the phase's); theme 650 to 4550 (the three-word theme choice: its CSS 2230 bytes and its script, 2277, with arrows, storage and the system listener) and its usage 400 to 1150 (the choice's markup written in full, so the right word is chosen before any script); segment 3700 to 3800 (a radio group's checked state besides a pressed button); stage 1250 to 2150 (its first script, 768 bytes, for fit and anchor) and its usage 1750 to 2000; framed-art 3000 to 3900 (drawn art in the frame: fit, anchor, no scaling strokes) and its usage 1250 to 1400. SKILL.md rose 10959 to 10992 (the topbar and theme index lines name .site-footer and .theme-choice). The head's theme line also writes data-theme-choice. Raised in site-parts return 2 (DECISIONS 146 B1 and B4): theme 4550 to 5350 (+800: the icon form of the theme choice, [data-theme-menu], whose button shows the theme in use, is named for the choice and opens the page's own .menu of three radio rows, in the theme script's 3073 bytes; the menu and popover modules are the page's, brought by its markup, so no module line was added and SKILL.md is 10993 of 11000) and its usage 1150 to 2200 (+91%: the menu's markup is written in full, and the deprecated toggle is said once); app-shell usage 2000 to 2100 and topbar-nav usage 1900 to 1950 (the theme control leaves the bar's text; the tools and the end cluster come in). The two example bodies still carry the deprecated data-theme-toggle. Return 2, F3 (DECISIONS 146 F): stage 2150 to 2250 (script 842 bytes: slice is the stage's default, as a frame's, and a drawing's own preserveAspectRatio stands unless the stage names data-fit or data-anchor) and its usage 2000 to 2150. framed-art 3900 to 4000 (a drawing's own preserveAspectRatio stands unless the figure names data-fit or data-anchor, +101 bytes). Return 3: theme 5350 to 5900 (script +569 bytes: who wrote data-theme, so System follows the system's change live and a theme the page set by hand, or a .dark or .light root, survives it). Raised in the controls port (DECISIONS 154): skillMd 11000 to 11200 for two index lines (link-tabs and option-chips, 214 bytes together), and core 31200 to 31600 for the nine tokens the port adds to every page's token CSS (the control rungs 44 to 64, two container widths, the confirm hold and the amount's opacity, 311 bytes). New modules (DECISIONS 154): link-tabs 2700 (its sizes, the 640 container step, the forced-colours underline, and the select that replaces the row under 720 with its 590-byte script, A15; it requires the select module), option-chips 5700 (the chip's states each written for a native radio inside a label, which needs :has on every one, plus the 1 KB script that keeps an aria-disabled chip reachable and never chosen). Return 3 (DECISIONS 154 conformance): link-tabs 2700 to 3100 and its usage 1650 to 1850 (the select's height for each row size, and a script that reads aria-current when it is needed and watches it move: 3,048 bytes), option-chips 5700 to 6700 (each state written twice, as a state attribute and as :has(), so no browser needs :has(): 4,975 CSS and 1,623 script). Return 4 (DECISIONS 158, Q2): link-tabs 3100 to 4300 and its usage 1850 to 2400 (the \"Go to\" label drawn at the select's start with its measured clearance, the select's accessible name kept as the words and the chosen page's, and the key hold that keeps a letter or an arrow on the closed select from navigating: 4,174 bytes, CSS 2,951 and script 1,223). Raised in the links-and-rows port (DECISIONS 152; the owner's approval is the lead's to confirm): the new link-rows module (5050 bytes of CSS, 50 of them for Castle's big-row arrow stepping colour over duration-fast, return 1, 1500 of usage: the directory's and the big rows' CSS, whose arrow is a core glyph drawn as a mask, and their tokens, size-row taken out of the core like type-layout's), disclosure 1550 to 3500 (Show all: the track, the clip and the settle, 1.5 KB of script and 1.8 KB of CSS), copy 2400 to 3500 (the form with words: the one cell and its script). SKILL.md rose 10959 to 10997 for one line, within its 11000 cap. Raised in the charts port PR (DECISIONS 153, D7a): chart 34400 to 34650 (script 26970 to 27270 bytes, +1.1% on the 34283 it was: `Basalt.trailingMean`, the trend maths React exports as `trailingMean`, 300 bytes), its usage 3150 to 3350 (+6%: one line for it). The tokens the batch adds (chart-lit-top, -mid and -base in both themes, size-chart-plot-sm, size-chart-row, size-meter-marker and radius-2xs) took the art module 2087 to 2546 bytes (budget 2100 to 2600, +24%: the chart tokens are its group) and the core 31192 to 31250 (cap 31200 to 31300, +0.3%: radius-2xs). Only D7a names a skill module in the charts ballot; the lit marks, the headline frame, the phase chart, the share bar, the coverage strip, the marks row and the range meter are React-only in this batch. Added in the overlays-and-search PR (DECISIONS 155, D10b and D13a): the sheet gains React's head, body and foot (the 44px close, the 20/28 title over a 13px count, the divider and the safe areas; its CSS 3.6 to 5.2 KB, budget 4050 to 5250, +30%) and its usage 1050 to 1450 (+38%: the anatomy and the step's focus, two bullets); and one new module a page carries only when it uses it, search (React's SearchDialog: the form, the field's -2 outline, the count line, the fixed-height results area and the rows with their picture slots and full-bleed hover wash; CSS only, 4368 bytes, budget 4400, usage 2050; it requires the dialog). The dialog's title draws no ring when script focuses it. skillMd rose 10959 to 11079 for the search line (the sheet's line is unchanged: its usage carries the anatomy), so its cap rose 11000 to 11100 (+0.9%). The core's CSS grew 31192 to 31421 bytes for the six new size tokens (the wide dialog, the search trigger and the logo and picture slots of a search result): its cap rose 31200 to 31450 (+0.8%). The two 44px values (the sheet's close and the search field) are local to their modules, with a lint exception that says they join the controls batch's size token (DECISIONS 154). Set in integration-nov15b, where audit-design-a, audit-fix-c2, site-parts, port-controls, port-links-rows, port-charts and port-overlays-search meet: the combined tree measured SKILL.md 11560 bytes (the caps were 11000, 11100 and 11200: each side added index lines), core 34086 bytes (caps 31300 to 33550: every side's rules land in the core CSS and script), topbar 17660 (17600 from site-parts, plus audit-fix-c2's skip-link and focus work), number 3453 (3400), palette 11379 (11000, audit-fix-c2's hosted scrim plus the core search glyph), dialog 5120 (5100), toast 15692 (15400) and stage usage 2248 (2150), each over every side's cap, so each is set to the measured bytes rounded up to the next 50: skillMd 11200 to 11600, core 33550 to 34100, topbar 17600 to 17700, number 3400 to 3500, palette 11000 to 11400, dialog 5100 to 5150, toast 15400 to 15700, stage usage 2150 to 2250. The segment cap is the base's 5400 plus port-controls' 100 (5500), unchanged by the merge. Raised in integration-nov15b, join 2 (a link tab takes the selected state, DECISIONS 138 A, 145, 149 and 154's D12 row): link-tabs 4300 to 5750 (+34%: the module was 4174 bytes and is 5736; the 600 against 400, the reserved width and the second copy of a composed label, an icon drawn in both its forms, the same rules a tab carries, 1,530 bytes of CSS and script) and its usage 2400 to 2550 (+6%: one bullet). The cap is the measured bytes rounded up to the next 50; a module that needs the tab's rules carries them as the segment and tabs modules do, so a page without link tabs pays nothing. Raised in the panels, art and parts port (DECISIONS 162): table 3000 to 3150 and its usage 950 to 1450 (the flat form and the two-line cell), stage 2250 to 2600 and its usage 2250 to 3100 (the closing block: its held art, forced colours and print; its section gap is type-layout's --basalt-section-gap, which a page with data-closing brings), the new app-tile 4300 (a 120-point polygon clip and the hairline's mask of the same outline), captioned 2000 and period 1400; skillMd 11600 to 11950 for one index line each for captioned, app-tile and period (358 bytes; the file is 11918). Raised in the logs, status and forms port (DECISIONS 162): core 34100 to 34200 (the new size-field-label-inline token, 80px, is written into every page's tokens: 25 bytes); dlist 1300 to 1900 and its usage 950 to 1060 (the stacked form, R9 and R10: a title over its text, 20px between entries, no divider; one usage line). Raised in audit-fix-c6 (the owner's cap, raised by the builder and for the owner to confirm): glyph 1300 to 1900, for redrawing a glyph when its ancestor's aria-current or data-current moves (the lists that hold glyphs are watched). Raised in the colour-ink-ladder build (DECISIONS 166): core 34200 to 34350 (the four lifted dark inks are four new primitives, each written into every page's tokens: the core measured 34307). Raised in the audit-2-design build (DECISIONS 167, Q7a): disclosure 3500 to 3800 (the core chevron drawn as a mask in place of two borders: the module measured 3755). Joined in the integration of c7 (#86) and c10 (#91): option-chips 6750 to 6850 (c7's reset resync and c10's data-ready together measure 6839). Raised in table-sort-3 (DECISIONS 257 and 261, the owner's pick: three sort states, the arrow after the label, explainers on column titles): still-table 13400 to 14650 (+9.3%: the module was 13343 bytes and is 14602; the end-aligned label's move by a transform, its right-to-left sign and the indicator that waits for it on a fine pointer, 912 bytes of CSS; the third state, the sort from the table's own order and a .explainer kept out of the button, 347 bytes of script) and its usage 2150 to 2250 (2197: the third state and the own order); the new explainer module 5850 (5842: a manual native popover opened from the sort button on hover, keyboard focus and a long press, placed above the header or beside it, 1752 bytes of CSS and 4090 of script; a page without explainers pays nothing) and its usage 900; skillMd 12250 to 12400 for the explainer's index line (113 bytes; the file is 12352). Each cap is the measured bytes rounded up to the next 50. Raised in table-sort-3's fix pass (Astra's review): explainer 5850 to 6900 (+18%: 5842 to 6864 bytes; the gap between the header and the card kept while a pointer crosses it, the close when its header leaves the view whatever has focus, the dismissal held until pointer and focus have both left, and its page-wide listeners and timers scoped to an open card and stopped when the table leaves the page, 1,022 bytes of script). Raised in cimip-gaps-2 batch B5 (the touch sizes under 720 whatever the pointer: each coarse-pointer target rule also answers a window under 720, about 20 bytes a rule; forms merged its three into one and stays under 3500): select 9000 to 9100 (measured 9064), selection 1480 to 1500 (1486), filter 17450 to 17500 (17473), option-chips 6850 to 6900 (6853), menu 8900 to 8950 (8902). B5 fix pass 1 (Astra): core 34550 to 34950 (measured 34911: 30762 CSS and 4149 JS) for stacked links in a column, each giving up the side of its 44px box that meets a neighbour, so a tap on a link's words is always that link's; core had 12 bytes free. DECISIONS 274 (the owner's pick: under 720 the toast stack hangs from the bar): toast 15700 to 16050 (measured 16035; 8 bytes were free; the stack's direction became one sign variable, trimming 585 of the 920 bytes the phone form first took). B5 merged with main (5ad5345a): main's own core measured 34930 against its 34550 cap before B5; with B5 (the touch sizes under 720 and stacked links in a column) it is 35331, so core is 35350; nav 5350 to 5400 (measured 5364: B4's nav plus the touch size under 720). The full run after the stream (DECISIONS 246): the site footer's links keep their own flex column under 720, as React's, out of the bare-link touch rule (26 bytes), so core is 35400 (measured 35357); sheet 5250 to 5400 (measured 5368: React's B5 ring room, ported: the held actions reach space-1-5 above their band, clipped, and the body keeps space-1-5 at each end).", + "$comment": "Which parts of the skill's CSS and JS a page gets. The core is always in. A module is in when the page's body has one of its classes, attributes or tags, matches one of its text patterns, or is named in a <!-- basalt:use name --> comment, and when another module needs it (requires). Modules are added in the order listed here, which is the order of the source files' cascade. classes: every class the module's CSS styles (the test checks them against the CSS and against SKILL.md). budget: the most bytes its minified CSS and JS may reach together. budgets: skillMd (SKILL.md, the context an agent pays: never above what it was), core (the CSS and JS of every page). icons: Phosphor names the module's script draws itself. Raised in the first parity PR (the owner's \"bring up the parity\"): forms (the number-input, search-clear and file-input chrome), disclosure (the native details marker), status (the accent reader and the forced-colours badge border), spinner (a fixed 16px ring), and the new number, range and accent modules. skillMd rose 10555 to 10900 for the new rules (number field, native chrome, the braille rule, the accent). Raised in the second parity PR (popup rows, levels and the segment's pill): segment 1400 to 3700 (the shared sliding pill: its script, 1.5 KB, and its CSS with the pill's two fallbacks), rows 3600 to 4300 (#27's plate-in-a-row geometry, the plate per level, the glide's shared plate and the forced-colours lit row, net of the removed bar), palette 9400 to 11300 (the glide's script, 2.4 KB: it follows the lit row, travels on a pointer, snaps on a key, and fades in place on leaving). The art module (DECISIONS 101 and 104) is the token groups only some pages name, taken out of the core so the core stays under its cap: the chart roles and lengths, the art colours, the aspect ratios and the stage headroom, in both themes (2087 bytes at 2100; it grows only when a token of those groups is added). A page gets it when its body names one of them, a var() in its own style included. The every-module page has no cap of its own (owner, DECISIONS 79): each part is capped, and a page carries only the parts it uses. usage: the most bytes of a module's usage text (src/usage/NAME.md; core.usage for core.md), which compose.mjs --usage prints on demand. It is context an agent pays only for the modules its page uses, so it is capped per part as SKILL.md and the CSS and script are (DECISIONS 79 and 109). Each is set a little above what its text was when the usage moved out of SKILL.md (DECISIONS 109); raising one needs a reason in the PR, and a rise of 40 to 50% is the owner's. textWords: each text pattern said in words, which compose.mjs --usage prints instead of the regular expression (one for each entry of text, in order). builds: modules a module requires whose markup its script writes, so --usage prints a line saying so instead of their usage text (the palette builds its own rows and key chips). The council's clarity check of the usage texts (all three: not yet clear) raised eight caps because the texts gained what an agent had to guess: callout 200 to 700 (the icon and one wrapper div around the title and body as markup, the four status icons, the role React's Callout renders), palette 1100 to 1300 (an item shown whole, keys as an array, keywords), stats 450 to 800 (a snippet of the figures and of the dl), tabs 500 to 650 (the unselected panels), code 250 to 450 (the markup and what each token class means), segment 150 to 300 (a click does not switch it), progress 150 to 350 (the empty span that paints the fill), theme 250 to 400 (leave the button empty), and accent 250 to 300. Topbar went down, 700 to 500, as its build detail was cut. Raised in the usage PR (the council's clarity check): palette 11300 to 11450 (the module grew 11283 to 11448, +165, about 1.5%), for the guard that makes a string `keys` warn and draw no chip instead of throwing in `keys.filter`, which the palette's usage already promised. Round 2 of the clarity check: tabs 650 to 750 (the panel's top space shown in the snippet, and that the script selects a tab on click). Raised in the site-icons and status PR (skill-parity part A, DECISIONS 106 and 107): status 1650 to 1900 (the neutral, pending and running marks, the badge's real border, and the forced-colours disc, net of the red danger word it drops) and its usage 400 to 1000 (every status in words, the word alone, running, forced colours); rows 4300 to 4450 (the profile list's seat rule and the status parts on a lit row) and its usage 300 to 600 (the profile list, with the one mistake: never an empty element for the seat). New: the links module (2671 bytes: the social row, the new-tab arrow's CSS and the script that draws it; budget 2750) and its usage (1746 bytes; cap 1850), which carries the social link, the glyph set, icon only and the new tab. Dropping Regular halves icons.json. Added in the overlay PR (skill-parity-4, batch 7 step 2, DECISIONS 108): the shared plate leaves palette.js for a glide module (the palette, a menu and the notification centre all call it), so the palette's cap went down, 11450 to 9250, and rows 4450 to 3850 (the plate's CSS moved to glide); and the overlay layer comes in as seven modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: popover (the native popup shell), menu, dialog (the dialog and alert dialog), sheet (on every side, the top one the site header's narrow menu), tooltip, toast and notifications (the centre). skillMd is unchanged in its cap (the eight new index lines fit within it); the core is unchanged in bytes. Added in the figures and charts PR (skill-parity-5, batch 7 step 3, DECISIONS 108): four modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: meter (React's Meter, CSS only, 2581 bytes), dlist (the description list, CSS only, 1265), terminal (the code block's transcript: its CSS, 3242, and the script that draws the gutter, the copy button and the replay, 4824) and chart (React's TimeChart and ChartGroup: 7313 of CSS and 23262 of script, which port chart.tsx's scale, layout, lane, labels, sentences, keyboard and table; it needs the art tokens, the table and the kbd chips, and a page without a chart carries none of it). Stats grew for the source line (budget 700 to 850, 798 bytes; its usage 800 to 950, 675 to 899 bytes, +33%, under the owner's 40 to 50%). skillMd is unchanged in its cap (four index lines fit within it); the core is unchanged in bytes. Added in the forms and selection PR (skill-parity-6, batch 7 step 4, DECISIONS 108): six modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: select (React's Select: the native select's closed trigger in every browser and, where `appearance: base-select` is shipped, the styled list with its two-line rows; a small script that says which input lit a row, 7740 bytes before it, choice (Checkbox, Radio, RadioGroup and Switch as styled native inputs; CSS only, with the first-frame rule), choice-card (ChoiceCard; CSS only), toggle (the pressed toggle's plate and check seat on .btn; CSS only), selection (a table's checkbox column: its fixed width and the script that sets aria-selected, the mixed header box and the count) and loops (the page-level hold on every loop with its switch: the held look and the script that stores it). The select's styles left forms, whose budget fell 3650 to 3250. skillMd rose 8621 to the size of its six new index lines, within its cap; the core is unchanged in bytes; compose adds the stored-hold line to the head of a page that has the loops module. Revised in the same PR (the lead's review of the build): the select gains select.js (one row is lit at a time, by whichever of the pointer and the keys moved last), and choice, toggle, selection and loops carry the first-frame rule, so a state a script sets on load (a mixed header box, the stored hold) paints at once with no crossfade. Added in the navigation and layout PR (skill-parity-7, batch 7 step 5, DECISIONS 108): five modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: glyph (Basalt's core glyphs drawn by name, at rest and selected, from a table the build works out from the drawn set; a page carries only the glyphs it names, and the drawing of a core glyph from data-glyph left the sheet module, which draws none now), nav (React's Nav: the sidebar's, the narrow menu's and More's rows, with the shared hugging pill), topbar-nav (the site header's links, one action and narrow menu, built by script from the bar's markup), app-shell (the shell, its sidebar and rail, and the app header) and tab-bar (the phone tab bar). The topbar module became the site header's bar (React's SiteHeader, DECISIONS 108: 56px with its line inside, the 44 by 44 brand target, the narrow-screen buttons, the derived sticky offset), budget 1600 to 3200 because its rules gained the app header's shared smoke, and its usage 500 to 750 (+50%) for the lockup's markup (the links, action and menu are topbar-nav's usage). Glide 3700 to 3950: the navigation's pill is a shape inside the row that the plate follows (about 200 bytes). The core's usage 2000 to 2100 (+5%): h2 is the Section step, the prose column's measure, and a link already 44px tall needs no margin. skillMd rose 9317 to 9863 for five index lines, under its cap; the core CSS grew 38 bytes (the layout tokens replace raw lengths, the gutter is one derived property, h2, .prose and .lead follow foundations) and the core script is unchanged. A module's media query writes %bp-md%, %bp-lg% or %bp-container% and the build substitutes the breakpoint tokens. Added in the tables and filters PR (skill-parity-8, batch 7 step 6, DECISIONS 108): the existing table module gains React's table additions (DECISIONS 95: the row header, \"Not observed\", the row density and the scroll hint with its small script), budget 1400 to 3000 (it was 1134 bytes of CSS; it is 2168 of CSS and 693 of script) and its usage 700 to 950 (+36%); and two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: still-table (React's Table with `columns`: the fixed layout from a colgroup, the whole header cell as the sort button with its reserved seat, aria-sort, the pinned columns and their divider, the empty row; 4767 of CSS and 3264 of script, budget 8200) and filter (React's MultiSelect and FilterResult: the chips, the trigger and checklist with the search band from ten values, Clear held in place, the one debounced result line, and the narrowing of a table by `data-column`; 8240 of CSS and 7978 of script, budget 16400; it needs the popover, glide, glyph and choice modules). The core is unchanged in bytes. skillMd rose 9863 to 10128 for two index lines and the CaretUpDown icon's name, within its cap. Added in the commands PR (skill-parity-9, batch 7 step 7, DECISIONS 103 and 108): one new module a page carries only when it uses it, command-list (React's CommandList: the command panel set in the page, list plus preview, the push; it extends the palette and needs rows, kbd and glide; 5229 of CSS and 8734 of script, budget 14000, usage 2150). Two-line rows come to the existing modules: rows 3850 to 5350 (the described row's grid and description line, the push's chevron: 1481 bytes of CSS, the same rules React's menu rows carry), palette 9250 to 9900 (its rows are one function the list shares, with the description and the two-tier ranking of title matches over keyword and description matches; +636) and its usage 1300 to 1350, rows' usage 600 to 800, and glide 3950 to 4000 (a host that is idle counts as having no lit row, +54). skillMd rose 10128 to 10259 for one index line, within its cap; the core's CSS grew 24 bytes (.split.aside takes size-list-width in place of its raw 20rem: the same 320px, so no pixel moves) and the core script is unchanged. Added in the art PR (skill-parity-10, batch 7 step 8, DECISIONS 104 and 108): two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: stage (React's Stage and PairedArt: full-bleed art under the site header, the pull-up by the sticky offset, the headroom, the paired art that follows the page's theme, and the forced-colours and print rules; CSS only, 1179 bytes) and framed-art (React's FramedArt: the figure, its rim and radius, the reserved box, the placeholder and the failed alt, the caption and credit; 2208 bytes of CSS and the 733-byte script that sets the frame's phase); both need the art tokens. The bar stays smoked over a stage: React clears it only over a stage that passed the headroom test helper, and a page has no test run (DECISIONS 108's note), so the skill builds no clear state. skillMd rose 10259 to 10500 for two index lines, within its cap; the core is unchanged in bytes. The callout gained the status rim in the same PR (DECISIONS 82, D8's status callouts): success, warning and danger draw their border in the status colour at 45% mixed in sRGB over the callout's own level, one solid colour on every side, and CanvasText in forced colours with the icon; the status colour is now one property the icon and the rim read. Its budget rose 900 to 1150 (the module is 1089 bytes, from 792: +297, about 37%); its usage is unchanged. Added in the overlays-and-the-rest PR (skill-parity-11, batch 7 step 9, DECISIONS 90 and 108): the last two parts of D8's part 5, each a module a page carries only when it uses it, with its own cap and usage cap set a little above its size: combobox (React's Combobox: the input with its caret button inside, the popup of the menu's rows with the glide's shared plate and two-line options, the filtering, the keys, the hidden value, the empty message and the check; 4342 of CSS and 6423 of script, budget 10900, usage 2150; it needs forms, popover and glide, and builds the last two) and sparkline (React's Sparkline: the label and latest value, the line, the axis, the empty sentence and the loading line that breathes; 1609 of CSS and 1874 of script, budget 3600, usage 950). The combobox copies the menu's row rules, as the select's list does, because React's Combobox renders MenuItem rows (a 40px hit area, a 36px plate) and the skill's .row is the palette's 44px: it carries no menu script. popover.js gains the combobox popup in the list of popups that keep focus where it is (+21 bytes, within its cap). skillMd rose 10500 to 10724 for two index lines, within its cap; the core is unchanged in bytes. Added in the motion-rules PR (DECISIONS 136 and 139): one module, ambient (a page's one ambient loop: CSS 828 bytes, script 433, budget 1300, usage 800), taken out of loops so the hold's own module grows only by the icon toggle's glyph swap (loops 2000 to 2200, +10%; its usage 1300 to 1650 for the icon form and the new settings-row sentence, +27%); and the chart's entrance (`entrance: true`: the marks' animations, their conditions and the redraw that restarts them at the elapsed time, 23262 to 25299 bytes of script; budget 30700 to 32800, +7%, usage 2500 to 2950, +18%). The core grew by the three tokens (27704 to 27862 bytes of CSS, under its cap). its stage usage gained the ambient art's line (1650 to 1750, +6%). skillMd rose 10724 to the size of the ambient index line, within its cap. Raised again in the motion-rules amendment (DECISIONS 143): chart 32800 to 33800 (script 25299 to 26375 bytes, +4%; +10% over the 30700 it began with) for the glide a new data set makes mid-entrance, print settling it, and `Basalt.pageChange()`; its usage 2950 to 3150 (+26% over the 2500 it began with). Raised in the second motion-rules amendment (DECISIONS 148): chart 33800 to 34400 (script 26375 to 26970 bytes: a line and its markers glide from their drawn geometry, and `beforeprint` settles the entrance; +12% over the 30700 it began with); topbar-nav 6900 to 7500 (+8.7%: the narrow menu's pause row, its CSS and 275 bytes of script, DECISIONS 148 item 2); loops usage 1650 to 1800 (+38% over the 1300 it began with, for the icon form's `title` and the menu row). Raised in the audit-design-b PR (DECISIONS 138 and 139): still-table 8200 to 13400 (+63%: the module was 7927 bytes and is 13311; the cut cell's plate, its focus stops and its dismissal, ported from React's cell-peek.ts, are 4273 bytes of script and 1111 of CSS; a still table that truncates needs them). The same PR: core usage 2100 to 2250 (+7%: the skip link, one bullet), forms usage 350 to 480 (+37%: the required mark), still-table usage 1950 to 2150 (+10%: the cut cell and the width rule), notifications usage 1050 to 1100 (+5%: the 44px entry on touch). The skip link's rim and radius took the core 30457 to 30609 bytes, under its cap (the rules that hang it under the bar are the topbar module's: 3200 to 3600, +12.5%); core 30720 to 31050 (+1.1%, DECISIONS 147: also the bar's links left out of the rule: the pseudo-element that makes a short standalone link a 44 by 44 target), skip-link script in the topbar module (3200 to 4150 over this PR, +30%: the rules that hang the link under the bar, 3600, and the script that reads the bar's real edge, 4150), sparkline 3600 to 4050 (+12.5%: React's ticker structure, so the value copies once on its line, and in forced colours the strips go and the number is plain text), forms budget 3250 to 3500 (+7.7%: the necessity word), notifications 9050 to 9250 (+2.2%: the 44px entry). Raised in the audit-design-b PR's E2 port (DECISIONS 138 and 139: the core set draws check, close, the chevrons, copy, plus, minus and search wherever a component draws them): the modules that drew a Phosphor icon for one of those now carry the core glyph's whole SVG, written in at build time (`%glyph-svg:name%`, the markup the glyph module's `_.glyph(name)` returns, so no module needs the glyph module and a page pays for nothing it does not use), and the Phosphor path of the same icon leaves the page. Each module's own bytes rose by that markup, and a page's total moved by what the Phosphor path it no longer carries saves: menu 8600 to 8900 (+303), combobox 10900 to 11200 (+303), copy 1900 to 2400 (+640), terminal 8100 to 8850 (+761), toast 13850 to 14150 (+325), number 2900 to 3400 (+557), filter 16400 to 17050 (+785), palette 9900 to 10450 (+536); the command list shares the palette's search drawing and fell 20 bytes. Set in integration-nov15, where the type-layout, motion-rules and audit-design-b branches meet: the combined tree measured SKILL.md 10959 bytes (each side's cap was 10900: both added index lines), core 31192 bytes (caps 30720 and 31050: the page-row and display rules, the three motion tokens and the skip link and 44px target rules all land in the core CSS) and core usage 2348 bytes (caps 2300 and 2250: type-layout's line and the skip-link bullet), so each is set to the measured bytes rounded up to the next 50: skillMd 10900 to 11000, core 31050 to 31200, core usage 2300 to 2350. Raised in the audit-design PR (decisions 138 and 139, parts A, D and C11): core 30720 to 31600 (+2.9%: the more-contrast block and its three aliases, and the field boundary token, every page carries as React does; the shadow-pill token is gone; the script gained `reserve`, 240 bytes), segment 3700 to 4100 and tabs 2300 to 2700 (the chosen label is 600 against 400, its width reserved by a span that carries its own copy, drawn unseen at 600; the pill's drop shadow is gone), and the segment's usage 300 to 380 (the weight and the glyph-only button). Raised again in the audit-design-a amendment (decision 145): core 31600 to 32300 (reserve() also reserves a label that is not plain text), segment 4100 to 5100 and tabs 2700 to 3500 (the second copy of such a label, and an icon drawn in both its forms), glyph 1100 to 1300 (a glyph in a segment or tab is drawn in both forms). Raised in the second audit-design-a amendment (decision 149): core 32300 to 32800 (reserve() builds the second copy of a label without any id, name, reference or hidden control, and does not copy a frame or media), segment 5100 to 5400 and its usage 380 to 500 (the 600 is on the label, the one-line rule and the usage text); the still-table cap is back at 8200, as the wash is on every cell again. Return 3 of the audit-design-a build (decision 149): tabs 3500 to 3700 (a tab the script has not reserved is 600 itself when selected, and one it declined is marked; the same two lines are in segment, which stays under 5400). Raised in the audit-fix-c2 PR (engineering, no pixel changes): toast 13850 to 14350 (the module was 13789 bytes and is 14288, +499, 3.6%) for F6, which focuses the Notifications region and Shift+Tab or Escape from it (or from the first toast) leaves it for where focus came from (and keeps a dialog's focus trap from wrapping it), as Base UI's viewport does in React, and for placing the region from focus (in the modal that holds it, or in the body), so a toast is never under a backdrop or in an inert modal whatever order the modals opened in (A3-09); the palette module grew 9864 to 9897 of its 9900 so that a palette opened over a modal sits inside it; topbar 3200 to 3250 (3123 to 3233, +110) for the scroll margin on what the bar holds, so a Tab into the bar from a scrolled page does not scroll the page (React's rule from PR #66); stage usage 1650 to 1750 (1580 to 1713, +8%) for the art's new place in the markup, after the content (A1-09), the stage's own CSS rising 1179 to 1208 within its 1250. skillMd rose 10724 to 10876 for the sentence that says a body may carry head tags, within its 10900. compose.mjs, the tool an agent runs, has no cap here (it is never in a page): it grew 21673 to 38153 bytes for the tokenizer that reads a body as HTML does and the head tags. Raised in the site-parts PR (DECISIONS 146, round 39), which folds each new part into the module it belongs with, so SKILL.md gains no index line (it has 41 bytes under its cap and a new module needs about 100): topbar 4150 to 17600 (+13450: the site footer and its disclosures, the lockup by pixel density, and a bar that arrives or leaves and returns, with its observer; a page that has a .topbar and no footer carries them too: the alternative, a module for each, needs its own index line and so SKILL.md bytes) and its usage 950 to 2900 (the footer's markup, the lockup's and the phase's); theme 650 to 4550 (the three-word theme choice: its CSS 2230 bytes and its script, 2277, with arrows, storage and the system listener) and its usage 400 to 1150 (the choice's markup written in full, so the right word is chosen before any script); segment 3700 to 3800 (a radio group's checked state besides a pressed button); stage 1250 to 2150 (its first script, 768 bytes, for fit and anchor) and its usage 1750 to 2000; framed-art 3000 to 3900 (drawn art in the frame: fit, anchor, no scaling strokes) and its usage 1250 to 1400. SKILL.md rose 10959 to 10992 (the topbar and theme index lines name .site-footer and .theme-choice). The head's theme line also writes data-theme-choice. Raised in site-parts return 2 (DECISIONS 146 B1 and B4): theme 4550 to 5350 (+800: the icon form of the theme choice, [data-theme-menu], whose button shows the theme in use, is named for the choice and opens the page's own .menu of three radio rows, in the theme script's 3073 bytes; the menu and popover modules are the page's, brought by its markup, so no module line was added and SKILL.md is 10993 of 11000) and its usage 1150 to 2200 (+91%: the menu's markup is written in full, and the deprecated toggle is said once); app-shell usage 2000 to 2100 and topbar-nav usage 1900 to 1950 (the theme control leaves the bar's text; the tools and the end cluster come in). The two example bodies still carry the deprecated data-theme-toggle. Return 2, F3 (DECISIONS 146 F): stage 2150 to 2250 (script 842 bytes: slice is the stage's default, as a frame's, and a drawing's own preserveAspectRatio stands unless the stage names data-fit or data-anchor) and its usage 2000 to 2150. framed-art 3900 to 4000 (a drawing's own preserveAspectRatio stands unless the figure names data-fit or data-anchor, +101 bytes). Return 3: theme 5350 to 5900 (script +569 bytes: who wrote data-theme, so System follows the system's change live and a theme the page set by hand, or a .dark or .light root, survives it). Raised in the controls port (DECISIONS 154): skillMd 11000 to 11200 for two index lines (link-tabs and option-chips, 214 bytes together), and core 31200 to 31600 for the nine tokens the port adds to every page's token CSS (the control rungs 44 to 64, two container widths, the confirm hold and the amount's opacity, 311 bytes). New modules (DECISIONS 154): link-tabs 2700 (its sizes, the 640 container step, the forced-colours underline, and the select that replaces the row under 720 with its 590-byte script, A15; it requires the select module), option-chips 5700 (the chip's states each written for a native radio inside a label, which needs :has on every one, plus the 1 KB script that keeps an aria-disabled chip reachable and never chosen). Return 3 (DECISIONS 154 conformance): link-tabs 2700 to 3100 and its usage 1650 to 1850 (the select's height for each row size, and a script that reads aria-current when it is needed and watches it move: 3,048 bytes), option-chips 5700 to 6700 (each state written twice, as a state attribute and as :has(), so no browser needs :has(): 4,975 CSS and 1,623 script). Return 4 (DECISIONS 158, Q2): link-tabs 3100 to 4300 and its usage 1850 to 2400 (the \"Go to\" label drawn at the select's start with its measured clearance, the select's accessible name kept as the words and the chosen page's, and the key hold that keeps a letter or an arrow on the closed select from navigating: 4,174 bytes, CSS 2,951 and script 1,223). Raised in the links-and-rows port (DECISIONS 152; the owner's approval is the lead's to confirm): the new link-rows module (5050 bytes of CSS, 50 of them for Castle's big-row arrow stepping colour over duration-fast, return 1, 1500 of usage: the directory's and the big rows' CSS, whose arrow is a core glyph drawn as a mask, and their tokens, size-row taken out of the core like type-layout's), disclosure 1550 to 3500 (Show all: the track, the clip and the settle, 1.5 KB of script and 1.8 KB of CSS), copy 2400 to 3500 (the form with words: the one cell and its script). SKILL.md rose 10959 to 10997 for one line, within its 11000 cap. Raised in the charts port PR (DECISIONS 153, D7a): chart 34400 to 34650 (script 26970 to 27270 bytes, +1.1% on the 34283 it was: `Basalt.trailingMean`, the trend maths React exports as `trailingMean`, 300 bytes), its usage 3150 to 3350 (+6%: one line for it). The tokens the batch adds (chart-lit-top, -mid and -base in both themes, size-chart-plot-sm, size-chart-row, size-meter-marker and radius-2xs) took the art module 2087 to 2546 bytes (budget 2100 to 2600, +24%: the chart tokens are its group) and the core 31192 to 31250 (cap 31200 to 31300, +0.3%: radius-2xs). Only D7a names a skill module in the charts ballot; the lit marks, the headline frame, the phase chart, the share bar, the coverage strip, the marks row and the range meter are React-only in this batch. Added in the overlays-and-search PR (DECISIONS 155, D10b and D13a): the sheet gains React's head, body and foot (the 44px close, the 20/28 title over a 13px count, the divider and the safe areas; its CSS 3.6 to 5.2 KB, budget 4050 to 5250, +30%) and its usage 1050 to 1450 (+38%: the anatomy and the step's focus, two bullets); and one new module a page carries only when it uses it, search (React's SearchDialog: the form, the field's -2 outline, the count line, the fixed-height results area and the rows with their picture slots and full-bleed hover wash; CSS only, 4368 bytes, budget 4400, usage 2050; it requires the dialog). The dialog's title draws no ring when script focuses it. skillMd rose 10959 to 11079 for the search line (the sheet's line is unchanged: its usage carries the anatomy), so its cap rose 11000 to 11100 (+0.9%). The core's CSS grew 31192 to 31421 bytes for the six new size tokens (the wide dialog, the search trigger and the logo and picture slots of a search result): its cap rose 31200 to 31450 (+0.8%). The two 44px values (the sheet's close and the search field) are local to their modules, with a lint exception that says they join the controls batch's size token (DECISIONS 154). Set in integration-nov15b, where audit-design-a, audit-fix-c2, site-parts, port-controls, port-links-rows, port-charts and port-overlays-search meet: the combined tree measured SKILL.md 11560 bytes (the caps were 11000, 11100 and 11200: each side added index lines), core 34086 bytes (caps 31300 to 33550: every side's rules land in the core CSS and script), topbar 17660 (17600 from site-parts, plus audit-fix-c2's skip-link and focus work), number 3453 (3400), palette 11379 (11000, audit-fix-c2's hosted scrim plus the core search glyph), dialog 5120 (5100), toast 15692 (15400) and stage usage 2248 (2150), each over every side's cap, so each is set to the measured bytes rounded up to the next 50: skillMd 11200 to 11600, core 33550 to 34100, topbar 17600 to 17700, number 3400 to 3500, palette 11000 to 11400, dialog 5100 to 5150, toast 15400 to 15700, stage usage 2150 to 2250. The segment cap is the base's 5400 plus port-controls' 100 (5500), unchanged by the merge. Raised in integration-nov15b, join 2 (a link tab takes the selected state, DECISIONS 138 A, 145, 149 and 154's D12 row): link-tabs 4300 to 5750 (+34%: the module was 4174 bytes and is 5736; the 600 against 400, the reserved width and the second copy of a composed label, an icon drawn in both its forms, the same rules a tab carries, 1,530 bytes of CSS and script) and its usage 2400 to 2550 (+6%: one bullet). The cap is the measured bytes rounded up to the next 50; a module that needs the tab's rules carries them as the segment and tabs modules do, so a page without link tabs pays nothing. Raised in the panels, art and parts port (DECISIONS 162): table 3000 to 3150 and its usage 950 to 1450 (the flat form and the two-line cell), stage 2250 to 2600 and its usage 2250 to 3100 (the closing block: its held art, forced colours and print; its section gap is type-layout's --basalt-section-gap, which a page with data-closing brings), the new app-tile 4300 (a 120-point polygon clip and the hairline's mask of the same outline), captioned 2000 and period 1400; skillMd 11600 to 11950 for one index line each for captioned, app-tile and period (358 bytes; the file is 11918). Raised in the logs, status and forms port (DECISIONS 162): core 34100 to 34200 (the new size-field-label-inline token, 80px, is written into every page's tokens: 25 bytes); dlist 1300 to 1900 and its usage 950 to 1060 (the stacked form, R9 and R10: a title over its text, 20px between entries, no divider; one usage line). Raised in audit-fix-c6 (the owner's cap, raised by the builder and for the owner to confirm): glyph 1300 to 1900, for redrawing a glyph when its ancestor's aria-current or data-current moves (the lists that hold glyphs are watched). Raised in the colour-ink-ladder build (DECISIONS 166): core 34200 to 34350 (the four lifted dark inks are four new primitives, each written into every page's tokens: the core measured 34307). Raised in the audit-2-design build (DECISIONS 167, Q7a): disclosure 3500 to 3800 (the core chevron drawn as a mask in place of two borders: the module measured 3755). Joined in the integration of c7 (#86) and c10 (#91): option-chips 6750 to 6850 (c7's reset resync and c10's data-ready together measure 6839). Raised in table-sort-3 (DECISIONS 257 and 261, the owner's pick: three sort states, the arrow after the label, explainers on column titles): still-table 13400 to 14650 (+9.3%: the module was 13343 bytes and is 14602; the end-aligned label's move by a transform, its right-to-left sign and the indicator that waits for it on a fine pointer, 912 bytes of CSS; the third state, the sort from the table's own order and a .explainer kept out of the button, 347 bytes of script) and its usage 2150 to 2250 (2197: the third state and the own order); the new explainer module 5850 (5842: a manual native popover opened from the sort button on hover, keyboard focus and a long press, placed above the header or beside it, 1752 bytes of CSS and 4090 of script; a page without explainers pays nothing) and its usage 900; skillMd 12250 to 12400 for the explainer's index line (113 bytes; the file is 12352). Each cap is the measured bytes rounded up to the next 50. Raised in table-sort-3's fix pass (Astra's review): explainer 5850 to 6900 (+18%: 5842 to 6864 bytes; the gap between the header and the card kept while a pointer crosses it, the close when its header leaves the view whatever has focus, the dismissal held until pointer and focus have both left, and its page-wide listeners and timers scoped to an open card and stopped when the table leaves the page, 1,022 bytes of script). Raised in cimip-gaps-2 batch B5 (the touch sizes under 720 whatever the pointer: each coarse-pointer target rule also answers a window under 720, about 20 bytes a rule; forms merged its three into one and stays under 3500): select 9000 to 9100 (measured 9064), selection 1480 to 1500 (1486), filter 17450 to 17500 (17473), option-chips 6850 to 6900 (6853), menu 8900 to 8950 (8902). B5 fix pass 1 (Astra): core 34550 to 34950 (measured 34911: 30762 CSS and 4149 JS) for stacked links in a column, each giving up the side of its 44px box that meets a neighbour, so a tap on a link's words is always that link's; core had 12 bytes free. DECISIONS 274 (the owner's pick: under 720 the toast stack hangs from the bar): toast 15700 to 16050 (measured 16035; 8 bytes were free; the stack's direction became one sign variable, trimming 585 of the 920 bytes the phone form first took). B5 merged with main (5ad5345a): main's own core measured 34930 against its 34550 cap before B5; with B5 (the touch sizes under 720 and stacked links in a column) it is 35331, so core is 35350; nav 5350 to 5400 (measured 5364: B4's nav plus the touch size under 720). The full run after the stream (DECISIONS 246): the site footer's links keep their own flex column under 720, as React's, out of the bare-link touch rule (26 bytes), so core is 35400 (measured 35357); sheet 5250 to 5400 (measured 5368: React's B5 ring room, ported: the held actions reach space-1-5 above their band, clipped, and the body keeps space-1-5 at each end). Raised for diagram motion and service marks (DECISIONS 292): skillMd 12550 to 12650 for the diagram-motion module's one line; diagram 87200 to 91000 for what a still diagram now carries (a card's mark and its seat, the pending frame, the comparison that writes a drawing only when it changed, and the print rule), and its usage 2600 to 4300 for the decision's four lines and the list of mark ids; the new diagram-motion module (the motion engine, its stylesheet and the motion tokens, in a page only when a diagram is animated) at 26200. Raised when the diagram tests were first run (DECISIONS 298): diagram 91000 to 91250 and diagram-motion 26200 to 26850. Fix round 1 of #124 had already taken them to 91205 and 26621 with the tests unrun; this round added 1 byte (every focal node prints its fill; a one-form mark's dark form falls back to its light one) and 180 (the entrance keeps its own clock when it is drawn again while paused).", "budgets": { - "skillMd": 12550, + "skillMd": 12650, "core": 35400 }, "core": { @@ -737,6 +737,7 @@ "diagram-list-group", "diagram-list-head", "diagram-list-items", + "diagram-mark", "diagram-mlabel", "diagram-more", "diagram-msg", @@ -777,12 +778,39 @@ "art", "kbd" ], - "budget": 87200, - "usage": 2600, + "budget": 91250, + "usage": 4300, "builds": [ "kbd" ] }, + "diagram-motion": { + "classes": [ + "diagram-bead", + "diagram-flow", + "diagram-motion-defs", + "diagram-packet", + "diagram-pause", + "diagram-play" + ], + "text": [ + "\"motion\"\\s*:\\s*\"animated\"" + ], + "textWords": [ + "a diagram's \"motion\": \"animated\"" + ], + "requires": [ + "diagram", + "loops", + "toggle" + ], + "budget": 26850, + "usage": 1300, + "builds": [ + "loops", + "toggle" + ] + }, "sparkline": { "classes": [ "sparkline", diff --git a/.agent/skills/basalt-html/parts/marks.json b/.agent/skills/basalt-html/parts/marks.json new file mode 100644 index 00000000..5ba97522 --- /dev/null +++ b/.agent/skills/basalt-html/parts/marks.json @@ -0,0 +1 @@ +{"$comment":"Generated by packages/react/marks/generate.mjs from packages/react/marks/manifest.json. Do not edit. Every bundled mark's two forms as data URIs; compose.mjs writes into a page only the marks it names.","says":{"aws-application-load-balancer":["ALB","Application Load Balancer","load balancer"],"aws-network-load-balancer":["NLB","Network Load Balancer","load balancer"],"aws-cloudfront-distribution":["CloudFront"],"aws-route-53-hosted-zone":["Route 53","hosted zone","DNS"],"aws-api-gateway-endpoint":["API Gateway"],"aws-internet-gateway":["internet gateway","IGW"],"aws-nat-gateway":["NAT gateway","NAT"],"aws-ecs-service":["ECS","Elastic Container Service"],"aws-ecs-task":["ECS","task","Elastic Container Service"],"aws-ecr-registry":["ECR","Elastic Container Registry","registry"],"aws-ec2-instance":["EC2"],"aws-lambda-function":["Lambda"],"aws-s3-bucket":["S3"],"aws-dynamodb-table":["DynamoDB"],"aws-sqs-queue":["SQS","queue"],"aws-eventbridge-event-bus":["EventBridge","event bus"],"aws-cloudwatch-logs":["CloudWatch","logs"],"aws-cloudwatch-alarm":["CloudWatch","alarm"],"aws-parameter-store":["Parameter Store","Systems Manager","SSM"],"aws-iam-role":["IAM","role"],"aws-sagemaker-model":["SageMaker","model"],"aws-bedrock":["Bedrock"],"aws-client":["client","browser","app"],"aws-mobile-client":["mobile","phone","client"],"aws-user":["user","person","people"],"aws-users":["users","people","user"],"aws-internet":["internet","web"],"aws-server":["server","host"],"aws-database":["database","DB","Aurora","RDS","Postgres","PostgreSQL","MySQL"],"aws-application":["app","application","service"],"aws-git-repository":["Git","repository","repo"],"aws-email":["email","mail","SES"],"temporal":["Temporal"],"sonarqube":["SonarQube","Sonar"],"github":["GitHub"],"coderabbit":["CodeRabbit"],"greptile":["Greptile"],"blacksmith":["Blacksmith"],"jenkins":["Jenkins"],"servicenow":["ServiceNow"],"blazemeter":["BlazeMeter"]},"marks":{"aws-application-load-balancer":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.69,34.375 L36.035,34.375 L36.035,32 L33.69,32 L33.69,34.375 Z M26.751,34.375 L29.126,34.375 L29.126,32 L26.751,32 L26.751,34.375 Z M18.876,34.375 L21.251,34.375 L21.251,32 L18.876,32 L18.876,34.375 Z M11.966,34.375 L14.251,34.375 L14.251,32 L11.966,32 L11.966,34.375 Z M18.001,16.875 L30.001,16.875 L30.001,11 L18.001,11 L18.001,16.875 Z M37.035,30 L35.501,30 L35.501,26.625 C35.501,26.072 35.053,25.625 34.501,25.625 L32.001,25.625 L32.001,22.25 C32.001,21.697 31.553,21.25 31.001,21.25 L25.001,21.25 L25.001,18.875 L31.001,18.875 C31.553,18.875 32.001,18.428 32.001,17.875 L32.001,10 C32.001,9.447 31.553,9 31.001,9 L17.001,9 C16.448,9 16.001,9.447 16.001,10 L16.001,17.875 C16.001,18.428 16.448,18.875 17.001,18.875 L23.001,18.875 L23.001,21.25 L17.001,21.25 C16.448,21.25 16.001,21.697 16.001,22.25 L16.001,25.625 L13.501,25.625 C12.948,25.625 12.501,26.072 12.501,26.625 L12.501,30 L10.965,30 C10.413,30 9.965,30.447 9.965,31 L9.965,35.375 C9.965,35.928 10.413,36.375 10.965,36.375 L15.251,36.375 C15.803,36.375 16.251,35.928 16.251,35.375 L16.251,31 C16.251,30.447 15.803,30 15.251,30 L14.501,30 L14.501,27.625 L18.626,27.625 L18.626,30 L17.876,30 C17.323,30 16.876,30.447 16.876,31 L16.876,35.375 C16.876,35.928 17.323,36.375 17.876,36.375 L22.251,36.375 C22.803,36.375 23.251,35.928 23.251,35.375 L23.251,31 C23.251,30.447 22.803,30 22.251,30 L20.626,30 L20.626,26.625 C20.626,26.072 20.178,25.625 19.626,25.625 L18.001,25.625 L18.001,23.25 L30.001,23.25 L30.001,25.625 L28.376,25.625 C27.823,25.625 27.376,26.072 27.376,26.625 L27.376,30 L25.751,30 C25.198,30 24.751,30.447 24.751,31 L24.751,35.375 C24.751,35.928 25.198,36.375 25.751,36.375 L30.126,36.375 C30.678,36.375 31.126,35.928 31.126,35.375 L31.126,31 C31.126,30.447 30.678,30 30.126,30 L29.376,30 L29.376,27.625 L33.501,27.625 L33.501,30 L32.69,30 C32.137,30 31.69,30.447 31.69,31 L31.69,35.375 C31.69,35.928 32.137,36.375 32.69,36.375 L37.035,36.375 C37.587,36.375 38.035,35.928 38.035,35.375 L38.035,31 C38.035,30.447 37.587,30 37.035,30 L37.035,30 Z M24.001,44 C12.972,44 4,35.028 4,24 C4,12.972 12.972,4 24.001,4 C35.029,4 44.001,12.972 44.001,24 C44.001,35.028 35.029,44 24.001,44 L24.001,44 Z M24.001,2 C11.869,2 2,11.869 2,24 C2,36.131 11.869,46 24.001,46 C36.131,46 46.001,36.131 46.001,24 C46.001,11.869 36.131,2 24.001,2 L24.001,2 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-network-load-balancer":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24.0015,44.0029 C12.9725,44.0029 3.9995,35.0299 3.9995,24.0009 C3.9995,12.9729 12.9725,3.9999 24.0015,3.9999 C35.0295,3.9999 44.0025,12.9729 44.0025,24.0009 C44.0025,35.0299 35.0295,44.0029 24.0015,44.0029 L24.0015,44.0029 Z M24.0015,1.9999 C11.8695,1.9999 1.9995,11.8689 1.9995,24.0009 C1.9995,36.1329 11.8695,46.0029 24.0015,46.0029 C36.1335,46.0029 46.0025,36.1329 46.0025,24.0009 C46.0025,11.8689 36.1335,1.9999 24.0015,1.9999 L24.0015,1.9999 Z M29.0835,23.2939 C29.4745,23.6849 29.4745,24.3169 29.0835,24.7079 L26.1405,27.6539 L24.7265,26.2399 L25.9645,25.0009 L18.7505,25.0009 L18.7505,23.0009 L25.9645,23.0009 L24.7265,21.7619 L26.1405,20.3479 L29.0835,23.2939 Z M32.0015,35.2519 L35.2515,35.2519 L35.2515,32.0019 L32.0015,32.0019 L32.0015,35.2519 Z M36.2515,30.0019 L31.0015,30.0019 C30.4485,30.0019 30.0015,30.4489 30.0015,31.0019 L30.0015,36.2519 C30.0015,36.8049 30.4485,37.2519 31.0015,37.2519 L36.2515,37.2519 C36.8045,37.2519 37.2515,36.8049 37.2515,36.2519 L37.2515,31.0019 C37.2515,30.4489 36.8045,30.0019 36.2515,30.0019 L36.2515,30.0019 Z M17.6665,18.7409 L24.9615,14.8909 L23.3945,14.4659 L23.9175,12.5359 L27.9365,13.6249 C28.4695,13.7699 28.7835,14.3179 28.6395,14.8519 L27.5505,18.8729 L25.6205,18.3499 L26.1085,16.5469 L18.6005,20.5109 L17.6665,18.7409 Z M32.0015,16.0009 L35.2515,16.0009 L35.2515,12.7509 L32.0015,12.7509 L32.0015,16.0009 Z M36.2515,10.7509 L31.0015,10.7509 C30.4485,10.7509 30.0015,11.1979 30.0015,11.7509 L30.0015,17.0009 C30.0015,17.5539 30.4485,18.0009 31.0015,18.0009 L36.2515,18.0009 C36.8045,18.0009 37.2515,17.5539 37.2515,17.0009 L37.2515,11.7509 C37.2515,11.1979 36.8045,10.7509 36.2515,10.7509 L36.2515,10.7509 Z M8.3455,27.3469 L15.0355,27.3469 L15.0355,20.6569 L8.3455,20.6569 L8.3455,27.3469 Z M16.0355,18.6559 L7.3455,18.6559 C6.7925,18.6559 6.3455,19.1039 6.3455,19.6559 L6.3455,28.3469 C6.3455,28.8989 6.7925,29.3469 7.3455,29.3469 L16.0355,29.3469 C16.5885,29.3469 17.0355,28.8989 17.0355,28.3469 L17.0355,19.6559 C17.0355,19.1039 16.5885,18.6559 16.0355,18.6559 L16.0355,18.6559 Z M28.6395,33.1499 C28.7835,33.6839 28.4695,34.2319 27.9365,34.3769 L23.9175,35.4669 L23.3945,33.5369 L24.9625,33.1119 L17.6665,29.2619 L18.6005,27.4919 L26.1085,31.4549 L25.6205,29.6519 L27.5505,29.1289 L28.6395,33.1499 Z M32.0015,25.6259 L35.2515,25.6259 L35.2515,22.3759 L32.0015,22.3759 L32.0015,25.6259 Z M36.2515,20.3759 L31.0015,20.3759 C30.4485,20.3759 30.0015,20.8229 30.0015,21.3759 L30.0015,26.6259 C30.0015,27.1789 30.4485,27.6259 31.0015,27.6259 L36.2515,27.6259 C36.8045,27.6259 37.2515,27.1789 37.2515,26.6259 L37.2515,21.3759 C37.2515,20.8229 36.8045,20.3759 36.2515,20.3759 L36.2515,20.3759 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-cloudfront-distribution":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.9581,27.6694 L17.3721,29.0834 L15.9581,30.4974 L14.5441,29.0834 L15.9581,27.6694 Z M18.8531,30.5644 L21.8131,33.5244 L20.3991,34.9394 L17.4381,31.9784 L18.8531,30.5644 Z M29.1501,30.5644 L30.5641,31.9784 L27.6041,34.9394 L26.1891,33.5244 L29.1501,30.5644 Z M32.0451,27.6694 L33.4591,29.0834 L32.0451,30.4974 L30.6311,29.0834 L32.0451,27.6694 Z M25.0011,35.2984 L26.1221,36.4194 L24.7081,37.8344 C24.5131,38.0294 24.2571,38.1274 24.0011,38.1274 C23.7451,38.1274 23.4891,38.0294 23.2941,37.8344 L21.8801,36.4194 L23.0011,35.2984 L23.0011,34.2524 L25.0011,34.2524 L25.0011,35.2984 Z M23.0011,16.4624 L25.0011,16.4624 L25.0011,12.9044 L23.0011,12.9044 L23.0011,16.4624 Z M23.0011,21.7994 L25.0011,21.7994 L25.0011,18.2414 L23.0011,18.2414 L23.0011,21.7994 Z M23.0011,27.1364 L25.0011,27.1364 L25.0011,23.5784 L23.0011,23.5784 L23.0011,27.1364 Z M23.0011,32.4734 L25.0011,32.4734 L25.0011,28.9154 L23.0011,28.9154 L23.0011,32.4734 Z M23.0011,11.1254 L25.0011,11.1254 L25.0011,9.1254 L23.0011,9.1254 L23.0011,11.1254 Z M24.0011,44.0024 C12.9731,44.0024 4.0001,35.0294 4.0001,24.0014 C4.0001,12.9724 12.9731,4.0004 24.0011,4.0004 C35.0291,4.0004 44.0021,12.9724 44.0021,24.0014 C44.0021,35.0294 35.0291,44.0024 24.0011,44.0024 L24.0011,44.0024 Z M24.0011,2.0004 C11.8691,2.0004 2.0001,11.8694 2.0001,24.0014 C2.0001,36.1324 11.8691,46.0024 24.0011,46.0024 C36.1331,46.0024 46.0021,36.1324 46.0021,24.0014 C46.0021,11.8694 36.1331,2.0004 24.0011,2.0004 L24.0011,2.0004 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-route-53-hosted-zone":{"onLight":"data:image/svg+xml,%3Csvg width='43.2' height='44.09' viewBox='1.99 1.99 43.2 44.09' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.4488,39.3643 C28.8848,40.1843 25.0338,42.5853 23.5848,43.5833 C22.1358,42.5853 18.2848,40.1843 13.7198,39.3643 C11.4398,38.9553 3.9998,37.1363 3.9998,30.9253 C3.9998,28.3293 4.9828,26.6353 6.0238,24.8433 C7.0038,23.1543 8.0158,21.4103 8.0158,19.0203 C8.0158,15.4343 6.0408,12.8533 4.9278,11.6843 C6.0608,10.3063 8.5278,7.2973 9.8918,5.5523 C11.9708,7.4423 14.3708,8.4703 16.7468,8.4703 C19.3928,8.4703 21.5918,7.4293 23.5848,5.2123 C25.5768,7.4293 27.7748,8.4703 30.4228,8.4703 C32.7988,8.4703 35.1968,7.4423 37.2758,5.5523 C38.6398,7.2963 41.1068,10.3063 42.2408,11.6843 C41.1278,12.8533 39.1518,15.4343 39.1518,19.0203 C39.1518,21.4103 40.1648,23.1543 41.1438,24.8433 C42.1848,26.6353 43.1688,28.3293 43.1688,30.9253 C43.1688,37.1363 35.7288,38.9553 33.4488,39.3643 M42.8748,23.8383 C41.9498,22.2463 41.1518,20.8713 41.1518,19.0203 C41.1518,15.1103 44.2038,12.5673 44.2328,12.5443 L45.0178,11.9093 L44.3758,11.1303 C44.3248,11.0693 39.3318,5.0173 38.1898,3.4543 L37.4768,2.4783 L36.6518,3.3613 C34.7758,5.3663 32.5638,6.4703 30.4228,6.4703 C28.0598,6.4703 26.1968,5.4123 24.3788,3.0373 L23.5848,2.0003 L22.7908,3.0363 C20.9718,5.4113 19.1078,6.4703 16.7468,6.4703 C14.6038,6.4703 12.3918,5.3663 10.5158,3.3613 L9.6898,2.4773 L8.9778,3.4553 C7.8378,5.0173 2.8448,11.0693 2.7938,11.1303 L2.1508,11.9093 L2.9358,12.5443 C2.9678,12.5693 6.0158,15.0803 6.0158,19.0203 C6.0158,20.8713 5.2188,22.2463 4.2938,23.8383 C3.2188,25.6913 1.9998,27.7913 1.9998,30.9253 C1.9998,36.1653 6.2488,40.0553 13.3668,41.3333 C18.5718,42.2673 22.9318,45.5733 22.9758,45.6063 L23.5858,46.0723 L24.1928,45.6063 C24.2368,45.5733 28.5968,42.2673 33.8028,41.3333 C40.9198,40.0553 45.1688,36.1653 45.1688,30.9253 C45.1688,27.7913 43.9498,25.6913 42.8748,23.8383' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-api-gateway-endpoint":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.909 24.955H27.817V23.046H25.909V24.955ZM23.045 24.955H24.954V23.046H23.045V24.955ZM20.182 24.955H22.091V23.046H20.182V24.955ZM37.318 31.003L30.728 36.802V11.332L37.318 17.13V31.003ZM30.944 8.926C30.74 8.839 29.856 8.579 29.242 8.92L28.728 9.205V38.929L29.242 39.214C29.471 39.341 29.737 39.385 29.993 39.385C30.421 39.385 30.816 39.263 30.944 39.208L31.092 39.146L38.565 32.569C39.028 32.299 39.318 31.813 39.318 31.284V16.849C39.318 16.321 39.029 15.835 38.566 15.564L31.092 8.988L30.944 8.926ZM17.273 36.803L10.682 31.004V17.129L17.273 11.331V36.803ZM17.055 8.926L16.907 8.988L9.432 15.565C8.971 15.836 8.682 16.321 8.682 16.849V31.284C8.682 31.812 8.971 32.299 9.433 32.568L16.907 39.146L17.055 39.208C17.182 39.263 17.578 39.385 18.006 39.385C18.261 39.385 18.527 39.341 18.756 39.215L19.273 38.93V9.204L18.756 8.919C18.144 8.582 17.258 8.839 17.055 8.926V8.926ZM44 32.284L32.284 44H15.715L4 32.284V15.716L15.715 4H32.284L44 15.716V32.284ZM33.112 2H14.887L2 14.888V33.112L14.887 46H33.112L46 33.112V14.888L33.112 2Z' fill='%238C4FFF'/%3E%3C/g%3E%3C/svg%3E"},"aws-internet-gateway":{"onLight":"data:image/svg+xml,%3Csvg width='43.93' height='43.93' viewBox='1.99 1.99 43.93 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.4312,35.1778 L31.9332,35.1778 L31.9332,17.5018 C31.9332,17.1088 31.7022,16.7518 31.3442,16.5908 L31.2522,16.5488 C29.2432,15.6418 27.1642,14.7028 24.1762,14.7028 C21.0532,14.7028 18.7612,15.7118 16.4952,16.8368 C16.1552,17.0058 15.9402,17.3528 15.9402,17.7328 L15.9402,35.1778 L14.4772,35.1778 L14.4772,16.3118 C16.9112,14.3328 20.4202,13.2048 24.1862,13.2048 C27.6872,13.2048 31.0252,14.2018 33.4312,15.9528 L33.4312,35.1778 Z M24.1862,11.2048 C19.7612,11.2048 15.6172,12.6238 12.8152,15.0998 C12.6002,15.2888 12.4772,15.5618 12.4772,15.8488 L12.4772,36.1778 C12.4772,36.7308 12.9242,37.1778 13.4772,37.1778 L16.9402,37.1778 C17.4932,37.1778 17.9402,36.7308 17.9402,36.1778 L17.9402,18.3558 C19.8592,17.4288 21.7192,16.7028 24.1762,16.7028 C26.5112,16.7028 28.2092,17.3778 29.9332,18.1488 L29.9332,36.1778 C29.9332,36.7308 30.3802,37.1778 30.9332,37.1778 L34.4312,37.1778 C34.9842,37.1778 35.4312,36.7308 35.4312,36.1778 L35.4312,15.4578 C35.4312,15.1538 35.2922,14.8658 35.0532,14.6748 C32.2792,12.4698 28.3182,11.2048 24.1862,11.2048 L24.1862,11.2048 Z M23.9542,43.9088 C12.9522,43.9088 3.9992,34.9568 3.9992,23.9538 C3.9992,12.9508 12.9522,3.9998 23.9542,3.9998 C34.9572,3.9998 43.9092,12.9508 43.9092,23.9538 C43.9092,34.9568 34.9572,43.9088 23.9542,43.9088 L23.9542,43.9088 Z M23.9542,1.9998 C11.8482,1.9998 1.9992,11.8488 1.9992,23.9538 C1.9992,36.0608 11.8482,45.9088 23.9542,45.9088 C36.0602,45.9088 45.9092,36.0608 45.9092,23.9538 C45.9092,11.8488 36.0602,1.9998 23.9542,1.9998 L23.9542,1.9998 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-nat-gateway":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M13.6255,35.9209 L13.6255,33.0829 L15.3995,34.5019 L13.6255,35.9209 Z M13.2505,30.2209 C12.9495,29.9799 12.5365,29.9329 12.1915,30.1009 C11.8465,30.2679 11.6255,30.6169 11.6255,31.0019 L11.6255,38.0019 C11.6255,38.3869 11.8465,38.7359 12.1915,38.9029 C12.3305,38.9699 12.4785,39.0019 12.6255,39.0019 C12.8485,39.0019 13.0695,38.9279 13.2505,38.7829 L17.6255,35.2829 C17.8625,35.0929 18.0005,34.8059 18.0005,34.5019 C18.0005,34.1979 17.8625,33.9109 17.6255,33.7209 L13.2505,30.2209 Z M37.2515,26.8369 L37.2515,22.9149 L39.2125,24.8759 L37.2515,26.8369 Z M41.3335,24.1689 L36.9585,19.7939 C36.6725,19.5079 36.2445,19.4219 35.8685,19.5769 C35.4945,19.7319 35.2515,20.0969 35.2515,20.5009 L35.2515,23.8759 L27.6255,23.8759 L27.6255,14.3759 C27.6255,13.8229 27.1785,13.3759 26.6255,13.3759 L18.9315,13.3759 L18.9315,15.3759 L25.6255,15.3759 L25.6255,23.8759 L18.7505,23.8759 L18.7505,25.8759 L25.6255,25.8759 L25.6255,34.3769 L18.9315,34.3769 L18.9315,36.3769 L26.6255,36.3769 C27.1785,36.3769 27.6255,35.9299 27.6255,35.3769 L27.6255,25.8759 L35.2515,25.8759 L35.2515,29.2519 C35.2515,29.6559 35.4955,30.0219 35.8685,30.1759 C35.9925,30.2279 36.1225,30.2519 36.2515,30.2519 C36.5115,30.2519 36.7675,30.1499 36.9585,29.9589 L41.3335,25.5829 C41.7245,25.1919 41.7245,24.5599 41.3335,24.1689 L41.3335,24.1689 Z M13.6255,26.2959 L13.6255,23.4569 L15.3995,24.8759 L13.6255,26.2959 Z M13.2505,20.5949 C12.9495,20.3539 12.5365,20.3079 12.1915,20.4749 C11.8465,20.6419 11.6255,20.9909 11.6255,21.3759 L11.6255,28.3769 C11.6255,28.7619 11.8465,29.1109 12.1915,29.2779 C12.3305,29.3449 12.4785,29.3769 12.6255,29.3769 C12.8485,29.3769 13.0695,29.3029 13.2505,29.1579 L17.6255,25.6569 C17.8625,25.4669 18.0005,25.1799 18.0005,24.8759 C18.0005,24.5719 17.8625,24.2849 17.6255,24.0949 L13.2505,20.5949 Z M13.6255,15.7949 L13.6255,12.9569 L15.3995,14.3759 L13.6255,15.7949 Z M13.2505,10.0949 C12.9495,9.8539 12.5365,9.8069 12.1915,9.9749 C11.8465,10.1419 11.6255,10.4909 11.6255,10.8759 L11.6255,17.8759 C11.6255,18.2609 11.8465,18.6099 12.1915,18.7769 C12.3305,18.8439 12.4785,18.8759 12.6255,18.8759 C12.8485,18.8759 13.0695,18.8019 13.2505,18.6569 L17.6255,15.1569 C17.8625,14.9669 18.0005,14.6799 18.0005,14.3759 C18.0005,14.0719 17.8625,13.7849 17.6255,13.5949 L13.2505,10.0949 Z M24.0005,44.0029 C12.9725,44.0029 3.9995,35.0299 3.9995,24.0009 C3.9995,12.9729 12.9725,3.9999 24.0005,3.9999 C35.0295,3.9999 44.0025,12.9729 44.0025,24.0009 C44.0025,35.0299 35.0295,44.0029 24.0005,44.0029 L24.0005,44.0029 Z M24.0005,1.9999 C11.8685,1.9999 1.9995,11.8689 1.9995,24.0009 C1.9995,36.1329 11.8685,46.0029 24.0005,46.0029 C36.1325,46.0029 46.0025,36.1329 46.0025,24.0009 C46.0025,11.8689 36.1325,1.9999 24.0005,1.9999 L24.0005,1.9999 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ecs-service":{"onLight":"data:image/svg+xml,%3Csvg width='35.51' height='44.02' viewBox='6 1.99 35.51 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24.933,38.213 L37.674,38.213 L37.674,36.213 L24.933,36.213 L24.933,38.213 Z M24.933,28.303 L37.674,28.303 L37.674,26.303 L24.933,26.303 L24.933,28.303 Z M24.933,18.393 L37.674,18.393 L37.674,16.393 L24.933,16.393 L24.933,18.393 Z M19.561,38.337 L21.808,38.337 L21.808,36.09 L19.561,36.09 L19.561,38.337 Z M18.561,40.337 L22.808,40.337 C23.361,40.337 23.808,39.89 23.808,39.337 L23.808,35.09 C23.808,34.537 23.361,34.09 22.808,34.09 L18.561,34.09 C18.009,34.09 17.561,34.537 17.561,35.09 L17.561,39.337 C17.561,39.89 18.009,40.337 18.561,40.337 L18.561,40.337 Z M19.561,28.427 L21.808,28.427 L21.808,26.18 L19.561,26.18 L19.561,28.427 Z M18.561,30.427 L22.808,30.427 C23.361,30.427 23.808,29.98 23.808,29.427 L23.808,25.18 C23.808,24.627 23.361,24.18 22.808,24.18 L18.561,24.18 C18.009,24.18 17.561,24.627 17.561,25.18 L17.561,29.427 C17.561,29.98 18.009,30.427 18.561,30.427 L18.561,30.427 Z M19.561,18.517 L21.808,18.517 L21.808,16.27 L19.561,16.27 L19.561,18.517 Z M18.561,20.517 L22.808,20.517 C23.361,20.517 23.808,20.07 23.808,19.517 L23.808,15.27 C23.808,14.717 23.361,14.27 22.808,14.27 L18.561,14.27 C18.009,14.27 17.561,14.717 17.561,15.27 L17.561,19.517 C17.561,20.07 18.009,20.517 18.561,20.517 L18.561,20.517 Z M16.023,44 L39.506,44 L39.506,12.022 L16.023,12.022 L16.023,44 Z M14.022,11.023 L14.022,39.753 L11.775,39.753 L11.775,7.776 L35.259,7.776 L35.259,10.023 L15.022,10.023 C14.469,10.023 14.022,10.47 14.022,11.023 L14.022,11.023 Z M9.775,6.776 L9.775,35.978 L8,35.978 L8,4 L31.483,4 L31.483,5.776 L10.775,5.776 C10.222,5.776 9.775,6.223 9.775,6.776 L9.775,6.776 Z M40.506,10.023 L37.259,10.023 L37.259,6.776 C37.259,6.223 36.811,5.776 36.259,5.776 L33.483,5.776 L33.483,3 C33.483,2.448 33.036,2 32.483,2 L7,2 C6.447,2 6,2.448 6,3 L6,36.978 C6,37.531 6.447,37.978 7,37.978 L9.775,37.978 L9.775,40.753 C9.775,41.306 10.222,41.753 10.775,41.753 L14.022,41.753 L14.022,45 C14.022,45.553 14.469,46 15.022,46 L40.506,46 C41.058,46 41.506,45.553 41.506,45 L41.506,11.023 C41.506,10.47 41.058,10.023 40.506,10.023 L40.506,10.023 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ecs-task":{"onLight":"data:image/svg+xml,%3Csvg width='33.52' height='44.02' viewBox='6.98 1.99 33.52 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M20.25,36.375 L36,36.375 L36,34.375 L20.25,34.375 L20.25,36.375 Z M20.25,24.125 L36,24.125 L36,22.125 L20.25,22.125 L20.25,24.125 Z M20.25,11.875 L36,11.875 L36,9.875 L20.25,9.875 L20.25,11.875 Z M13.375,37 L16.625,37 L16.625,33.75 L13.375,33.75 L13.375,37 Z M12.375,39 L17.625,39 C18.178,39 18.625,38.553 18.625,38 L18.625,32.75 C18.625,32.198 18.178,31.75 17.625,31.75 L12.375,31.75 C11.822,31.75 11.375,32.198 11.375,32.75 L11.375,38 C11.375,38.553 11.822,39 12.375,39 L12.375,39 Z M13.375,24.75 L16.625,24.75 L16.625,21.5 L13.375,21.5 L13.375,24.75 Z M12.375,26.75 L17.625,26.75 C18.178,26.75 18.625,26.303 18.625,25.75 L18.625,20.5 C18.625,19.948 18.178,19.5 17.625,19.5 L12.375,19.5 C11.822,19.5 11.375,19.948 11.375,20.5 L11.375,25.75 C11.375,26.303 11.822,26.75 12.375,26.75 L12.375,26.75 Z M13.375,12.5 L16.625,12.5 L16.625,9.25 L13.375,9.25 L13.375,12.5 Z M12.375,14.5 L17.625,14.5 C18.178,14.5 18.625,14.053 18.625,13.5 L18.625,8.25 C18.625,7.698 18.178,7.25 17.625,7.25 L12.375,7.25 C11.822,7.25 11.375,7.698 11.375,8.25 L11.375,13.5 C11.375,14.053 11.822,14.5 12.375,14.5 L12.375,14.5 Z M9,44 L38.5,44 L38.5,4 L9,4 L9,44 Z M39.5,2 L8,2 C7.447,2 7,2.448 7,3 L7,45 C7,45.553 7.447,46 8,46 L39.5,46 C40.053,46 40.5,45.553 40.5,45 L40.5,3 C40.5,2.448 40.053,2 39.5,2 L39.5,2 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ecr-registry":{"onLight":"data:image/svg+xml,%3Csvg width='43.98' height='43.98' viewBox='1.99 1.99 43.98 43.98' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M35.207,37.954 L37.207,37.954 L37.207,34.459 L35.207,34.459 L35.207,37.954 Z M31.711,37.954 L33.711,37.954 L33.711,34.459 L31.711,34.459 L31.711,37.954 Z M28.216,37.954 L30.216,37.954 L30.216,34.459 L28.216,34.459 L28.216,37.954 Z M26.721,39.576 L38.702,39.576 L38.702,32.837 L26.721,32.837 L26.721,39.576 Z M39.702,30.837 L25.72,30.837 C25.168,30.837 24.72,31.284 24.72,31.837 L24.72,40.576 C24.72,41.129 25.168,41.576 25.72,41.576 L39.702,41.576 C40.255,41.576 40.702,41.129 40.702,40.576 L40.702,31.837 C40.702,31.284 40.255,30.837 39.702,30.837 L39.702,30.837 Z M35.207,25.721 L37.207,25.721 L37.207,22.225 L35.207,22.225 L35.207,25.721 Z M31.711,25.721 L33.711,25.721 L33.711,22.225 L31.711,22.225 L31.711,25.721 Z M28.216,25.721 L30.216,25.721 L30.216,22.225 L28.216,22.225 L28.216,25.721 Z M26.721,27.342 L38.702,27.342 L38.702,20.604 L26.721,20.604 L26.721,27.342 Z M39.702,18.604 L25.72,18.604 C25.168,18.604 24.72,19.051 24.72,19.604 L24.72,28.342 C24.72,28.895 25.168,29.342 25.72,29.342 L39.702,29.342 C40.255,29.342 40.702,28.895 40.702,28.342 L40.702,19.604 C40.702,19.051 40.255,18.604 39.702,18.604 L39.702,18.604 Z M35.207,13.486 L37.207,13.486 L37.207,9.991 L35.207,9.991 L35.207,13.486 Z M31.711,13.486 L33.711,13.486 L33.711,9.991 L31.711,9.991 L31.711,13.486 Z M28.216,13.486 L30.216,13.486 L30.216,9.991 L28.216,9.991 L28.216,13.486 Z M26.721,15.108 L38.702,15.108 L38.702,8.369 L26.721,8.369 L26.721,15.108 Z M39.702,6.369 L25.72,6.369 C25.168,6.369 24.72,6.817 24.72,7.369 L24.72,16.108 C24.72,16.661 25.168,17.108 25.72,17.108 L39.702,17.108 C40.255,17.108 40.702,16.661 40.702,16.108 L40.702,7.369 C40.702,6.817 40.255,6.369 39.702,6.369 L39.702,6.369 Z M17.729,37.954 L19.729,37.954 L19.729,34.459 L17.729,34.459 L17.729,37.954 Z M14.234,37.954 L16.234,37.954 L16.234,34.459 L14.234,34.459 L14.234,37.954 Z M10.738,37.954 L12.738,37.954 L12.738,34.459 L10.738,34.459 L10.738,37.954 Z M9.243,39.576 L21.224,39.576 L21.224,32.837 L9.243,32.837 L9.243,39.576 Z M22.224,30.837 L8.243,30.837 C7.69,30.837 7.243,31.284 7.243,31.837 L7.243,40.576 C7.243,41.129 7.69,41.576 8.243,41.576 L22.224,41.576 C22.777,41.576 23.224,41.129 23.224,40.576 L23.224,31.837 C23.224,31.284 22.777,30.837 22.224,30.837 L22.224,30.837 Z M17.729,25.721 L19.729,25.721 L19.729,22.225 L17.729,22.225 L17.729,25.721 Z M14.234,25.721 L16.234,25.721 L16.234,22.225 L14.234,22.225 L14.234,25.721 Z M10.738,25.721 L12.738,25.721 L12.738,22.225 L10.738,22.225 L10.738,25.721 Z M9.243,27.342 L21.224,27.342 L21.224,20.604 L9.243,20.604 L9.243,27.342 Z M22.224,18.604 L8.243,18.604 C7.69,18.604 7.243,19.051 7.243,19.604 L7.243,28.342 C7.243,28.895 7.69,29.342 8.243,29.342 L22.224,29.342 C22.777,29.342 23.224,28.895 23.224,28.342 L23.224,19.604 C23.224,19.051 22.777,18.604 22.224,18.604 L22.224,18.604 Z M17.729,13.486 L19.729,13.486 L19.729,9.991 L17.729,9.991 L17.729,13.486 Z M14.234,13.486 L16.234,13.486 L16.234,9.991 L14.234,9.991 L14.234,13.486 Z M10.738,13.486 L12.738,13.486 L12.738,9.991 L10.738,9.991 L10.738,13.486 Z M9.243,15.108 L21.224,15.108 L21.224,8.369 L9.243,8.369 L9.243,15.108 Z M22.224,6.369 L8.243,6.369 C7.69,6.369 7.243,6.817 7.243,7.369 L7.243,16.108 C7.243,16.661 7.69,17.108 8.243,17.108 L22.224,17.108 C22.777,17.108 23.224,16.661 23.224,16.108 L23.224,7.369 C23.224,6.817 22.777,6.369 22.224,6.369 L22.224,6.369 Z M43.945,39.497 C43.945,41.95 41.95,43.945 39.497,43.945 L8.448,43.945 C5.995,43.945 4,41.95 4,39.497 L4,8.448 C4,5.995 5.995,4 8.448,4 L39.497,4 C41.95,4 43.945,5.995 43.945,8.448 L43.945,39.497 Z M39.497,2 L8.448,2 C4.892,2 2,4.893 2,8.448 L2,39.497 C2,43.053 4.892,45.945 8.448,45.945 L39.497,45.945 C43.053,45.945 45.945,43.053 45.945,39.497 L45.945,8.448 C45.945,4.893 43.053,2 39.497,2 L39.497,2 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ec2-instance":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M9,39 L39,39 L39,9 L9,9 L9,39 Z M46,13 L46,11 L41,11 L41,8 C41,7.448 40.552,7 40,7 L37,7 L37,2 L35,2 L35,7 L31,7 L31,2 L29,2 L29,7 L25,7 L25,2 L23,2 L23,7 L19,7 L19,2 L17,2 L17,7 L13,7 L13,2 L11,2 L11,7 L8,7 C7.447,7 7,7.448 7,8 L7,11 L2,11 L2,13 L7,13 L7,17 L2,17 L2,19 L7,19 L7,23 L2,23 L2,25 L7,25 L7,29 L2,29 L2,31 L7,31 L7,35 L2,35 L2,37 L7,37 L7,40 C7,40.553 7.447,41 8,41 L11,41 L11,46 L13,46 L13,41 L17,41 L17,46 L19,46 L19,41 L23,41 L23,46 L25,46 L25,41 L29,41 L29,46 L31,46 L31,41 L35,41 L35,46 L37,46 L37,41 L40,41 C40.552,41 41,40.553 41,40 L41,37 L46,37 L46,35 L41,35 L41,31 L46,31 L46,29 L41,29 L41,25 L46,25 L46,23 L41,23 L41,19 L46,19 L46,17 L41,17 L41,13 L46,13 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-lambda-function":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24,44 C12.972,44 4,35.028 4,24 C4,12.972 12.972,4 24,4 C35.028,4 44,12.972 44,24 C44,35.028 35.028,44 24,44 L24,44 Z M24,2 C11.869,2 2,11.869 2,24 C2,36.131 11.869,46 24,46 C36.131,46 46,36.131 46,24 C46,11.869 36.131,2 24,2 L24,2 Z M17.231,35.25 L11.876,35.25 L18.221,21.959 L20.902,27.492 L17.231,35.25 Z M19.114,19.215 C18.946,18.87 18.597,18.651 18.214,18.651 L18.211,18.651 C17.826,18.652 17.477,18.874 17.312,19.221 L9.389,35.819 C9.24,36.129 9.262,36.493 9.445,36.783 C9.628,37.074 9.947,37.25 10.291,37.25 L17.864,37.25 C18.251,37.25 18.603,37.027 18.769,36.678 L22.915,27.915 C23.044,27.642 23.043,27.323 22.911,27.051 L19.114,19.215 Z M36.125,35.25 L30.673,35.25 L20.761,13.953 C20.597,13.601 20.243,13.375 19.854,13.375 L16.251,13.375 L16.255,9.25 L23.475,9.25 L33.339,30.545 C33.503,30.898 33.856,31.125 34.246,31.125 L36.125,31.125 L36.125,35.25 Z M37.125,29.125 L34.885,29.125 L25.021,7.83 C24.856,7.477 24.503,7.25 24.113,7.25 L15.256,7.25 C14.704,7.25 14.257,7.697 14.256,8.249 L14.25,14.374 C14.25,14.64 14.355,14.894 14.543,15.082 C14.73,15.27 14.984,15.375 15.25,15.375 L19.217,15.375 L29.129,36.672 C29.293,37.024 29.646,37.25 30.035,37.25 L37.125,37.25 C37.678,37.25 38.125,36.803 38.125,36.25 L38.125,30.125 C38.125,29.572 37.678,29.125 37.125,29.125 L37.125,29.125 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-s3-bucket":{"onLight":"data:image/svg+xml,%3Csvg width='42.34' height='44.07' viewBox='2.97 1.99 42.34 44.07' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M40.5038,26.1601 L40.7278,24.4941 C42.5118,25.5811 43.0628,26.2091 43.2228,26.4741 C42.7498,26.6171 41.7948,26.4911 40.5038,26.1601 L40.5038,26.1601 Z M22.8018,20.1111 C22.8018,20.0581 22.8448,20.0151 22.8978,20.0151 C22.9128,20.0151 22.9238,20.0251 22.9368,20.0321 L22.8638,20.1791 C22.8308,20.1691 22.8018,20.1491 22.8018,20.1111 L22.8018,20.1111 Z M36.5138,40.7981 C36.5078,40.8431 36.5048,40.8871 36.5048,40.9311 C36.5048,41.0861 36.1258,41.6751 34.4408,42.3401 C33.6898,42.6371 32.8028,42.9031 31.8028,43.1331 C29.2278,43.7291 26.0638,44.0571 22.8958,44.0571 C14.4298,44.0571 9.2888,41.8871 9.2888,40.9311 C9.2888,40.8871 9.2858,40.8431 9.2798,40.7981 L5.4408,12.2851 C5.6878,12.4291 5.9528,12.5661 6.2308,12.7001 C6.3098,12.7381 6.3958,12.7741 6.4778,12.8121 C6.7178,12.9231 6.9668,13.0301 7.2268,13.1341 C7.3388,13.1781 7.4518,13.2221 7.5668,13.2651 C7.8428,13.3691 8.1278,13.4691 8.4228,13.5651 C8.5098,13.5941 8.5928,13.6241 8.6808,13.6511 C9.0598,13.7701 9.4528,13.8841 9.8578,13.9911 C9.9708,14.0211 10.0878,14.0501 10.2028,14.0781 C10.5148,14.1581 10.8328,14.2341 11.1578,14.3061 C11.2988,14.3381 11.4388,14.3691 11.5808,14.3981 C11.9458,14.4751 12.3188,14.5491 12.6978,14.6181 C12.7798,14.6331 12.8588,14.6491 12.9418,14.6641 C13.3998,14.7441 13.8688,14.8181 14.3448,14.8881 C14.4788,14.9071 14.6148,14.9241 14.7508,14.9421 C15.1108,14.9921 15.4758,15.0381 15.8438,15.0811 C15.9938,15.0981 16.1448,15.1161 16.2968,15.1331 C16.7408,15.1801 17.1888,15.2231 17.6398,15.2621 C17.6928,15.2661 17.7468,15.2721 17.8018,15.2761 C18.3058,15.3171 18.8128,15.3501 19.3208,15.3801 C19.4658,15.3881 19.6108,15.3941 19.7568,15.4011 C20.1408,15.4201 20.5248,15.4351 20.9088,15.4481 C21.0598,15.4531 21.2088,15.4581 21.3588,15.4621 C21.8718,15.4731 22.3848,15.4821 22.8958,15.4821 C23.4058,15.4821 23.9188,15.4731 24.4318,15.4621 C24.5818,15.4581 24.7328,15.4531 24.8828,15.4481 C25.2678,15.4351 25.6508,15.4201 26.0338,15.4011 C26.1808,15.3941 26.3258,15.3881 26.4718,15.3801 C26.9808,15.3501 27.4868,15.3171 27.9898,15.2761 C28.0458,15.2711 28.1008,15.2651 28.1558,15.2621 C28.6068,15.2231 29.0518,15.1801 29.4938,15.1331 C29.6478,15.1161 29.7988,15.0981 29.9508,15.0811 C30.3168,15.0381 30.6808,14.9921 31.0398,14.9431 C31.1768,14.9251 31.3148,14.9071 31.4498,14.8871 C31.9248,14.8181 32.3928,14.7441 32.8518,14.6641 C32.9348,14.6491 33.0158,14.6331 33.0988,14.6171 C33.4768,14.5491 33.8478,14.4751 34.2128,14.3981 C34.3558,14.3691 34.4948,14.3381 34.6358,14.3061 C34.9608,14.2331 35.2788,14.1571 35.5918,14.0781 C35.7058,14.0491 35.8228,14.0211 35.9358,13.9921 C36.3418,13.8841 36.7348,13.7701 37.1138,13.6511 C37.2008,13.6241 37.2828,13.5951 37.3678,13.5661 C37.6648,13.4701 37.9518,13.3691 38.2298,13.2641 C38.3428,13.2221 38.4548,13.1791 38.5658,13.1351 C38.8278,13.0301 39.0788,12.9221 39.3218,12.8101 C39.4008,12.7731 39.4848,12.7381 39.5628,12.7011 C39.8408,12.5671 40.1068,12.4291 40.3538,12.2851 L38.5618,25.5911 C34.9248,24.4241 29.8168,22.3071 24.9818,20.0081 C24.9268,18.9011 24.0178,18.0151 22.8978,18.0151 C21.7418,18.0151 20.8018,18.9561 20.8018,20.1111 C20.8018,21.2661 21.7418,22.2061 22.8978,22.2061 C23.3518,22.2061 23.7698,22.0571 24.1128,21.8101 C28.4448,23.8891 33.9758,26.3421 38.2928,27.5881 L36.5138,40.7981 Z M22.8958,4.0001 C33.3148,4.0001 40.6558,7.2281 40.7918,9.0211 L40.7658,9.2291 C40.7478,9.2911 40.7088,9.3541 40.6758,9.4181 C40.6488,9.4701 40.6288,9.5201 40.5918,9.5731 C40.5478,9.6351 40.4828,9.6981 40.4258,9.7611 C40.3748,9.8161 40.3318,9.8711 40.2708,9.9271 C40.2028,9.9881 40.1158,10.0511 40.0348,10.1131 C39.9598,10.1711 39.8938,10.2281 39.8078,10.2871 C39.7168,10.3471 39.6078,10.4091 39.5058,10.4711 C39.4068,10.5301 39.3158,10.5901 39.2048,10.6491 C39.0948,10.7091 38.9658,10.7671 38.8448,10.8271 C38.7208,10.8881 38.6048,10.9481 38.4688,11.0091 C38.3398,11.0661 38.1928,11.1231 38.0548,11.1801 C37.9048,11.2401 37.7638,11.3021 37.6038,11.3611 C37.4558,11.4171 37.2898,11.4711 37.1328,11.5251 C36.9618,11.5841 36.7978,11.6441 36.6158,11.7021 C36.4468,11.7561 36.2608,11.8061 36.0818,11.8591 C35.8918,11.9151 35.7088,11.9721 35.5088,12.0261 C35.3168,12.0781 35.1098,12.1261 34.9098,12.1761 C34.7028,12.2271 34.5028,12.2801 34.2858,12.3301 C34.0698,12.3791 33.8378,12.4241 33.6118,12.4711 C33.3938,12.5161 33.1818,12.5641 32.9538,12.6071 C32.7138,12.6531 32.4568,12.6941 32.2068,12.7371 C31.9768,12.7761 31.7538,12.8181 31.5148,12.8551 C31.2548,12.8951 30.9788,12.9311 30.7088,12.9681 C30.4648,13.0011 30.2268,13.0381 29.9748,13.0681 C29.6818,13.1041 29.3728,13.1341 29.0698,13.1651 C28.8258,13.1911 28.5898,13.2201 28.3398,13.2421 C28.0038,13.2731 27.6518,13.2961 27.3058,13.3201 C27.0728,13.3381 26.8478,13.3581 26.6098,13.3731 C26.2308,13.3951 25.8338,13.4091 25.4408,13.4261 C25.2248,13.4341 25.0148,13.4471 24.7938,13.4541 C24.1748,13.4721 23.5418,13.4821 22.8958,13.4821 C22.2498,13.4821 21.6168,13.4721 20.9968,13.4541 C20.7748,13.4471 20.5628,13.4331 20.3428,13.4251 C19.9528,13.4091 19.5598,13.3951 19.1818,13.3731 C18.9318,13.3571 18.6938,13.3361 18.4488,13.3181 C18.1158,13.2941 17.7758,13.2721 17.4528,13.2421 C17.2018,13.2201 16.9658,13.1901 16.7208,13.1651 C16.4178,13.1341 16.1088,13.1041 15.8168,13.0681 C15.5668,13.0381 15.3298,13.0021 15.0868,12.9681 C14.8168,12.9311 14.5388,12.8961 14.2778,12.8551 C14.0298,12.8171 13.7978,12.7731 13.5588,12.7321 C13.3178,12.6901 13.0708,12.6511 12.8398,12.6071 C12.6078,12.5631 12.3928,12.5151 12.1688,12.4691 C11.9468,12.4221 11.7188,12.3781 11.5058,12.3291 C11.2898,12.2801 11.0908,12.2271 10.8838,12.1761 C10.6838,12.1261 10.4758,12.0781 10.2848,12.0261 C10.0818,11.9721 9.8968,11.9141 9.7038,11.8571 C9.5278,11.8061 9.3448,11.7551 9.1778,11.7021 C8.9928,11.6431 8.8268,11.5831 8.6538,11.5221 C8.4988,11.4691 8.3358,11.4161 8.1908,11.3611 C8.0288,11.3021 7.8878,11.2391 7.7378,11.1791 C7.5998,11.1221 7.4528,11.0651 7.3248,11.0091 C7.1908,10.9481 7.0738,10.8881 6.9498,10.8271 C6.8288,10.7671 6.6988,10.7091 6.5888,10.6481 C6.4788,10.5891 6.3868,10.5291 6.2868,10.4691 C6.1858,10.4081 6.0768,10.3471 5.9868,10.2871 C5.8998,10.2271 5.8318,10.1691 5.7558,10.1101 C5.6768,10.0491 5.5908,9.9871 5.5248,9.9271 C5.4618,9.8701 5.4178,9.8131 5.3658,9.7581 C5.3098,9.6961 5.2468,9.6341 5.2028,9.5731 C5.1648,9.5191 5.1458,9.4671 5.1178,9.4131 C5.0858,9.3511 5.0468,9.2891 5.0298,9.2291 L5.0018,9.0201 C5.1408,7.2271 12.4798,4.0001 22.8958,4.0001 L22.8958,4.0001 Z M45.2548,26.2571 C45.0418,25.1071 43.7168,23.8891 41.0178,22.3471 L42.7338,9.5951 L42.7338,9.5911 L42.7338,9.5901 L42.7848,9.2001 C42.7908,9.1571 42.7938,9.1141 42.7938,9.0711 C42.7938,4.9041 32.3078,2.0001 22.8958,2.0001 C13.4848,2.0001 2.9998,4.9041 2.9998,9.0711 C2.9998,9.1151 3.0028,9.1591 3.0088,9.2031 L3.0608,9.5931 L3.0608,9.5951 L7.2898,41.0091 C7.4208,44.6851 16.9028,46.0571 22.8958,46.0571 C26.2108,46.0571 29.5338,45.7111 32.2528,45.0821 C33.3478,44.8301 34.3308,44.5331 35.1748,44.2001 C37.3408,43.3451 38.4598,42.2711 38.5038,41.0091 L40.2448,28.0801 C41.1968,28.2821 42.0618,28.4051 42.7808,28.4051 C43.7498,28.4051 44.4748,28.2001 44.8668,27.7321 C45.2168,27.3161 45.3548,26.7921 45.2548,26.2571 L45.2548,26.2571 Z' fill='%237AA116'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-dynamodb-table":{"onLight":"data:image/svg+xml,%3Csvg width='43.95' height='43.95' viewBox='1.99 1.99 43.95 43.95' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M13.355,11.862 L45.928,11.862 L45.928,2 L13.355,2 L13.355,11.862 Z M15.355,9.862 L43.927,9.862 L43.927,4.001 L15.355,4.001 L15.355,9.862 Z M2,11.862 L11.861,11.862 L11.861,2 L2,2 L2,11.862 Z M4,9.862 L9.862,9.862 L9.862,4.001 L4,4.001 L4,9.862 Z M13.355,23.217 L45.928,23.217 L45.928,13.356 L13.355,13.356 L13.355,23.217 Z M15.355,21.217 L43.927,21.217 L43.927,15.356 L15.355,15.356 L15.355,21.217 Z M2,23.217 L11.861,23.217 L11.861,13.356 L2,13.356 L2,23.217 Z M4,21.217 L9.862,21.217 L9.862,15.356 L4,15.356 L4,21.217 Z M13.355,34.572 L45.928,34.572 L45.928,24.711 L13.355,24.711 L13.355,34.572 Z M15.355,32.572 L43.927,32.572 L43.927,26.71 L15.355,26.71 L15.355,32.572 Z M2,34.572 L11.861,34.572 L11.861,24.711 L2,24.711 L2,34.572 Z M4,32.572 L9.862,32.572 L9.862,26.71 L4,26.71 L4,32.572 Z M13.355,45.927 L45.928,45.927 L45.928,36.066 L13.355,36.066 L13.355,45.927 Z M15.355,43.928 L43.927,43.928 L43.927,38.066 L15.355,38.066 L15.355,43.928 Z M2,45.927 L11.861,45.927 L11.861,36.066 L2,36.066 L2,45.927 Z M4,43.928 L9.862,43.928 L9.862,38.066 L4,38.066 L4,43.928 Z' fill='%23C925D1'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-sqs-queue":{"onLight":"data:image/svg+xml,%3Csvg width='44' height='26.8' viewBox='1.99 10.99 44 26.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37.449,22.261 L37.449,26.221 L35.026,24.207 L37.449,22.261 Z M37.81,29.121 C37.993,29.273 38.22,29.352 38.449,29.352 C38.594,29.352 38.738,29.321 38.874,29.257 C39.224,29.092 39.449,28.74 39.449,28.352 L39.449,20.176 C39.449,19.791 39.228,19.441 38.882,19.275 C38.535,19.108 38.123,19.156 37.823,19.397 L32.819,23.414 C32.585,23.602 32.448,23.885 32.4449503,24.185 C32.442,24.486 32.575,24.771 32.806,24.963 L37.81,29.121 Z M10.527,22.307 L12.951,24.322 L10.527,26.267 L10.527,22.307 Z M9.095,29.253 C9.232,29.32 9.38,29.352 9.527,29.352 C9.751,29.352 9.972,29.277 10.153,29.132 L15.158,25.115 C15.392,24.927 15.529,24.644 15.5320497,24.344 C15.535,24.043 15.402,23.758 15.171,23.566 L10.166,19.407 C9.868,19.16 9.453,19.107 9.102,19.271 C8.752,19.436 8.527,19.788 8.527,20.176 L8.527,28.352 C8.527,28.737 8.748,29.087 9.095,29.253 L9.095,29.253 Z M28.368,34.027 L30.368,34.027 L30.368,14.747 L28.368,14.747 L28.368,34.027 Z M23.121,34.027 L25.121,34.027 L25.121,14.747 L23.121,14.747 L23.121,34.027 Z M17.711,34.027 L19.711,34.027 L19.711,14.747 L17.711,14.747 L17.711,34.027 Z M3.999,35.773 L43.977,35.773 L43.977,13.001 L3.999,13.001 L3.999,35.773 Z M44.977,11 L3,11 C2.447,11 2,11.448 2,12 L2,36.773 C2,37.325 2.447,37.773 3,37.773 L44.977,37.773 C45.53,37.773 45.977,37.325 45.977,36.773 L45.977,12 C45.977,11.448 45.53,11 44.977,11 L44.977,11 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-eventbridge-event-bus":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='30' viewBox='1.99 9 44.02 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M11.001,39.001 L37.001,39.001 L37.001,37.001 L11.001,37.001 L11.001,39.001 Z M35.88,12.009 L34.153,10.998 L30.544,17.16 L32.271,18.17 L35.88,12.009 Z M42.567,18.594 L36.323,22.147 L37.312,23.885 L43.556,20.332 L42.567,18.594 Z M39.002,28.995 L39,30.995 L46,31.001 L46.002,29.001 L39.002,28.995 Z M2,31.001 L9,31.007 L9.002,29.007 L2.002,29.001 L2,31.001 Z M5.454,18.562 L4.462,20.298 L10.701,23.863 L11.693,22.126 L5.454,18.562 Z M17.48,17.148 L13.882,10.981 L12.153,11.989 L15.751,18.156 L17.48,17.148 Z M25.001,9.002 L23.001,9 L22.994,16 L24.994,16.002 L25.001,9.002 Z M13.095,27.196 L18.114,18.501 C18.293,18.192 18.623,18.001 18.981,18.001 L29.021,18.001 C29.378,18.001 29.708,18.192 29.887,18.501 L34.907,27.196 C35.086,27.505 35.086,27.886 34.907,28.196 L31.071,34.838 L29.339,33.838 L32.887,27.696 L28.443,20.001 L19.558,20.001 L15.115,27.696 L18.662,33.838 L16.93,34.838 L13.095,28.196 C12.916,27.886 12.916,27.505 13.095,27.196 L13.095,27.196 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-cloudwatch-logs":{"onLight":"data:image/svg+xml,%3Csvg width='44.21' height='33.03' viewBox='1.99 7.99 44.21 33.03' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M29.4998,17.0004 C26.2418,17.0004 23.4708,19.0924 22.4378,22.0004 L24.6068,22.0004 C25.5198,20.2224 27.3678,19.0004 29.4998,19.0004 C32.5318,19.0004 34.9998,21.4674 34.9998,24.5004 C34.9998,27.5324 32.5318,30.0004 29.4998,30.0004 C27.7958,30.0004 26.2708,29.2214 25.2608,28.0004 L22.8718,28.0004 C24.1318,30.3764 26.6288,32.0004 29.4998,32.0004 C33.6358,32.0004 36.9998,28.6364 36.9998,24.5004 C36.9998,20.3644 33.6358,17.0004 29.4998,17.0004 L29.4998,17.0004 Z M1.9998,33.0004 L14.9998,33.0004 L14.9998,31.0004 L1.9998,31.0004 L1.9998,33.0004 Z M1.9998,18.0004 L14.9998,18.0004 L14.9998,16.0004 L1.9998,16.0004 L1.9998,18.0004 Z M1.9998,26.0004 L28.9998,26.0004 L28.9998,24.0004 L1.9998,24.0004 L1.9998,26.0004 Z M43.8428,35.7384 L38.8178,31.2134 C38.3998,31.7924 37.9318,32.3304 37.4148,32.8214 L42.4118,37.3294 C42.8478,37.7224 43.5278,37.6874 43.9228,37.2494 C44.3148,36.8124 44.2798,36.1344 43.8428,35.7384 L43.8428,35.7384 Z M45.4088,38.5884 C44.8028,39.2594 43.9658,39.6004 43.1248,39.6004 C42.3938,39.6004 41.6588,39.3414 41.0738,38.8154 L35.8338,34.0894 C34.0168,35.2934 31.8398,36.0004 29.4998,36.0004 C24.3798,36.0004 20.0328,32.6344 18.5488,28.0004 L20.6768,28.0004 C22.0738,31.5094 25.4988,34.0004 29.4998,34.0004 C34.7378,34.0004 38.9998,29.7384 38.9998,24.5004 C38.9998,19.2624 34.7378,15.0004 29.4998,15.0004 C25.1278,15.0004 21.4458,17.9734 20.3448,22.0004 L18.2818,22.0004 C19.4278,16.8574 24.0188,13.0004 29.4998,13.0004 C35.8408,13.0004 40.9998,18.1584 40.9998,24.5004 C40.9998,26.2774 40.5828,27.9554 39.8588,29.4604 L45.1828,34.2544 C46.4368,35.3884 46.5378,37.3314 45.4088,38.5884 L45.4088,38.5884 Z M1.9998,41.0004 L20.9998,41.0004 L20.9998,39.0004 L1.9998,39.0004 L1.9998,41.0004 Z M1.9998,10.0004 L22.9998,10.0004 L22.9998,8.0004 L1.9998,8.0004 L1.9998,10.0004 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-cloudwatch-alarm":{"onLight":"data:image/svg+xml,%3Csvg width='43.98' height='44.21' viewBox='1.99 1.99 43.98 44.21' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M41.4246,40.6675 L34.6366,40.6675 L34.6366,19.8305 C36.8216,20.5265 39.2386,20.5265 41.4246,19.8305 L41.4246,40.6675 Z M41.9946,17.4595 C39.4996,18.6475 36.5596,18.6465 34.0666,17.4595 C33.7586,17.3125 33.3946,17.3335 33.1026,17.5165 C32.8126,17.6995 32.6366,18.0185 32.6366,18.3615 L32.6366,41.6675 C32.6366,42.2205 33.0836,42.6675 33.6366,42.6675 L42.4246,42.6675 C42.9776,42.6675 43.4246,42.2205 43.4246,41.6675 L43.4246,18.3615 C43.4246,18.0185 43.2486,17.6995 42.9586,17.5165 C42.6676,17.3335 42.3036,17.3115 41.9946,17.4595 L41.9946,17.4595 Z M38.0306,4.0005 C40.8716,4.0005 43.1826,6.3115 43.1826,9.1515 C43.1826,11.9925 40.8716,14.3035 38.0306,14.3035 C35.1906,14.3035 32.8796,11.9925 32.8796,9.1515 C32.8796,6.3115 35.1906,4.0005 38.0306,4.0005 L38.0306,4.0005 Z M38.0306,16.3035 C41.9746,16.3035 45.1826,13.0955 45.1826,9.1515 C45.1826,5.2085 41.9746,2.0005 38.0306,2.0005 C34.0876,2.0005 30.8796,5.2085 30.8796,9.1515 C30.8796,13.0955 34.0876,16.3035 38.0306,16.3035 L38.0306,16.3035 Z M2.0006,46.1835 L45.9406,46.1835 L45.9406,44.1835 L2.0006,44.1835 L2.0006,46.1835 Z M20.5756,40.6675 L27.3636,40.6675 L27.3636,27.7285 L20.5756,27.7285 L20.5756,40.6675 Z M19.5756,42.6675 L28.3636,42.6675 C28.9166,42.6675 29.3636,42.2205 29.3636,41.6675 L29.3636,26.7285 C29.3636,26.1755 28.9166,25.7285 28.3636,25.7285 L19.5756,25.7285 C19.0236,25.7285 18.5756,26.1755 18.5756,26.7285 L18.5756,41.6675 C18.5756,42.2205 19.0236,42.6675 19.5756,42.6675 L19.5756,42.6675 Z M6.5156,40.6675 L13.3036,40.6675 L13.3036,23.3345 L6.5156,23.3345 L6.5156,40.6675 Z M5.5156,42.6675 L14.3036,42.6675 C14.8566,42.6675 15.3036,42.2205 15.3036,41.6675 L15.3036,22.3345 C15.3036,21.7815 14.8566,21.3345 14.3036,21.3345 L5.5156,21.3345 C4.9626,21.3345 4.5156,21.7815 4.5156,22.3345 L4.5156,41.6675 C4.5156,42.2205 4.9626,42.6675 5.5156,42.6675 L5.5156,42.6675 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-parameter-store":{"onLight":"data:image/svg+xml,%3Csvg width='42.12' height='43.86' viewBox='3 1.99 42.12 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M35.5886,36.7588 C35.5886,37.1338 35.8946,37.4408 36.2696,37.4408 L36.2706,37.4408 C36.4516,37.4408 36.6226,37.3698 36.7506,37.2418 C36.8796,37.1128 36.9506,36.9418 36.9506,36.7588 L36.9506,36.7568 C36.9506,36.5758 36.8806,36.4048 36.7526,36.2778 C36.6236,36.1488 36.4526,36.0768 36.2706,36.0768 L36.2696,36.0768 C36.0876,36.0768 35.9166,36.1478 35.7886,36.2768 C35.6596,36.4048 35.5886,36.5758 35.5886,36.7588 L35.5886,36.7588 Z M33.5886,36.7578 C33.5896,36.0408 33.8686,35.3678 34.3746,34.8618 C34.8806,34.3558 35.5536,34.0768 36.2686,34.0768 L36.2716,34.0768 C36.9876,34.0768 37.6616,34.3568 38.1686,34.8638 C38.6746,35.3718 38.9526,36.0448 38.9506107,36.7608 C38.9496,37.4778 38.6706,38.1508 38.1646,38.6558 C37.9046,38.9158 37.6006,39.1128 37.2696,39.2458 L37.2706,42.0428 L35.2706,42.0428 L35.2696,39.2428 C34.2856,38.8458 33.5886,37.8828 33.5886,36.7578 L33.5886,36.7578 Z M43.1156,32.7748 L29.4286,32.7688 L29.4246,43.8378 L43.1096,43.8448 L43.1156,32.7748 Z M32.9016,30.7708 L39.614618,30.7728 L39.614618,28.3028 C39.6206,26.2818 38.1276,24.6358 36.2866,24.6298 L36.2756,24.6298 C35.3936,24.6298 34.5606,24.9978 33.9276,25.6658 C33.2766,26.3548 32.9166,27.2758 32.9136,28.2598 L32.9016,30.7708 Z M45.1156,31.7748 L45.1096,44.8448 C45.1096,45.3978 44.6616,45.8448 44.1096,45.8448 L28.4246,45.8378 C27.8716,45.8378 27.4246,45.3898 27.4246,44.8378 L27.4286,31.7688 C27.4286,31.5028 27.5336,31.2488 27.7216,31.0618 C27.9086,30.8738 28.1636,30.7688 28.4286,30.7688 L30.9016,30.7698 L30.9136,28.2518 C30.9186,26.7588 31.4726,25.3518 32.4746,24.2918 C33.4886,23.2198 34.8386,22.6298 36.2756,22.6298 L36.2926,22.6298 C39.2366,22.6398 41.6246,25.1858 41.6146,28.3058 L41.6146,30.7738 L44.1156,30.7748 C44.3816,30.7748 44.6356,30.8798 44.8226,31.0678 C45.0106,31.2548 45.1156,31.5098 45.1156,31.7748 L45.1156,31.7748 Z M14.4756,31.0248 L21.4496,31.0248 L21.4496,29.0248 L14.4756,29.0248 L14.4756,31.0248 Z M14.4756,27.5378 L21.4496,27.5378 L21.4496,25.5378 L14.4756,25.5378 L14.4756,27.5378 Z M14.4756,24.0508 L21.4496,24.0508 L21.4496,22.0508 L14.4756,22.0508 L14.4756,24.0508 Z M12.9056,33.3838 L23.1096,33.3838 L23.1096,19.6928 L12.9056,19.6928 L12.9056,33.3838 Z M25.1096,18.6928 L25.1096,34.3838 C25.1096,34.9368 24.6626,35.3838 24.1096,35.3838 L11.9056,35.3838 C11.3536,35.3838 10.9056,34.9368 10.9056,34.3838 L10.9056,18.6928 C10.9056,18.1398 11.3536,17.6928 11.9056,17.6928 L24.1096,17.6928 C24.6626,17.6928 25.1096,18.1398 25.1096,18.6928 L25.1096,18.6928 Z M5.9406,8.9748 L30.0166,8.9748 L26.4706,3.9998 L9.4856,3.9998 L5.9406,8.9748 Z M3.1106,10.4328 C2.9396,10.0998 2.9686,9.6988 3.1856,9.3948 L8.1556,2.4198 C8.3436,2.1558 8.6476,1.9998 8.9706,1.9998 L26.9856,1.9998 C27.3096,1.9998 27.6126,2.1558 27.8006,2.4198 L32.7716,9.3948 C32.9876,9.6988 33.0176,10.0998 32.8456,10.4328 C32.6746,10.7658 32.3306,10.9748 31.9566,10.9748 L3.9996,10.9748 C3.6256,10.9748 3.2816,10.7658 3.1106,10.4328 L3.1106,10.4328 Z M5.0496,39.4868 L24.9376,39.4868 L24.9376,41.4868 L4.0496,41.4868 C3.4966,41.4868 3.0496,41.0388 3.0496,40.4868 L3.0496,13.4618 C3.0496,12.9088 3.4966,12.4618 4.0496,12.4618 L31.9546,12.4618 C32.5076,12.4618 32.9546,12.9088 32.9546,13.4618 L32.9546,22.1788 L30.9546,22.1788 L30.9546,14.4618 L5.0496,14.4618 L5.0496,39.4868 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-iam-role":{"onLight":"data:image/svg+xml,%3Csvg width='44.12' height='25.44' viewBox='1.99 10.99 44.12 25.44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M44.0827,32.581 C43.9267,32.592 43.7697,32.604 43.6207,32.619 C43.0987,32.662 42.5527,32.714 42.0007,32.772 L41.8327,32.79 C40.0677,32.972 38.0697,33.177 37.1187,33.047 C36.5247,32.962 35.4307,32.487 34.2707,31.984 C32.3047,31.132 29.8567,30.07 27.6437,29.9 C24.5977,29.666 19.3347,30.24 15.9407,31.831 C13.9787,31.743 12.1587,31.215 10.7447,30.343 C10.7387,30.071 10.7327,29.799 10.7327,29.694 C10.7327,25.558 12.6707,21.679 16.0527,19.044 C18.3497,17.701 20.9967,16.992 23.7127,16.992 C29.8337,16.992 35.2657,20.609 37.3847,25.934 L36.5717,25.934 C35.7577,25.934 35.0757,26.51 34.9087,27.274 C34.7707,27.222 34.6447,27.175 34.4967,27.118 C32.4677,26.335 29.6837,25.264 26.4657,25.455 C21.7607,25.731 19.4457,26.015 17.6227,26.535 L18.1717,28.459 C19.8397,27.982 22.0397,27.719 26.5827,27.451 C29.3667,27.293 31.9197,28.269 33.7767,28.984 C34.1717,29.137 34.5287,29.27 34.8677,29.391 L34.8677,29.596 C34.8677,30.535 35.6327,31.3 36.5717,31.3 L40.2187,31.3 C41.1557,31.3 41.9197,30.538 41.9227,29.602 L42.2767,29.57 C42.8697,29.517 43.4147,29.464 43.8717,29.419 L44.0827,29.398 L44.0827,32.581 Z M9.7987,34.249 C7.1487,34.612 5.0567,34.288 4.1907,33.753 C4.7157,33.382 5.9007,32.863 6.7347,32.499 C7.4567,32.184 8.1877,31.851 8.8947,31.495 C10.0487,32.374 11.4777,33.033 13.0597,33.426 C12.1447,33.794 11.0117,34.084 9.7987,34.249 L9.7987,34.249 Z M36.8677,29.3 L39.9227,29.3 L39.9227,27.934 L36.8677,27.934 L36.8677,29.3 Z M26.5857,13 C34.9537,13 41.9817,19.295 43.0167,27.492 C42.7287,27.52 42.4247,27.549 42.1037,27.578 L41.9187,27.594 C41.8947,26.676 41.1437,25.934 40.2187,25.934 L39.5077,25.934 C37.3067,19.457 30.9317,14.992 23.7127,14.992 C21.0387,14.992 18.4227,15.604 16.0717,16.767 C16.0887,16.753 16.1027,16.738 16.1177,16.725 C19.0587,14.323 22.7757,13 26.5857,13 L26.5857,13 Z M45.5267,27.794 C45.3817,27.663 45.2107,27.568 45.0287,27.496 C43.9827,18.185 36.0497,11 26.5857,11 C22.3167,11 18.1497,12.483 14.8537,15.175 C10.5007,18.719 8.0047,23.97 8.0047,29.581 C8.0047,29.622 8.0077,29.663 8.0077,29.704 C7.3407,30.039 6.6357,30.359 5.9347,30.666 C3.7987,31.6 2.2557,32.274 2.0257,33.492 C1.9677,33.801 1.9577,34.406 2.5457,34.994 C3.5827,36.031 5.5727,36.403 7.5947,36.403 C8.4367,36.403 9.2827,36.339 10.0687,36.231 C11.4077,36.049 13.9077,35.558 15.6047,34.316 C18.2827,32.375 24.3377,31.649 27.4907,31.894 C29.3697,32.039 31.6457,33.026 33.4757,33.819 C34.8717,34.426 35.9757,34.904 36.8417,35.027 C38.0327,35.19 39.9777,34.99 42.0367,34.779 L42.2097,34.762 C42.7477,34.704 43.2777,34.654 43.8017,34.611 C44.0167,34.59 44.2297,34.575 44.5137,34.555 C45.3937,34.493 46.0827,33.755 46.0827,32.875 L46.0827,29.046 C46.0827,28.568 45.8807,28.112 45.5267,27.794 L45.5267,27.794 Z' fill='%23DD344C'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-sagemaker-model":{"onLight":"data:image/svg+xml,%3Csvg width='43.95' height='44.19' viewBox='1.99 1.99 43.95 44.19' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M29.9559,29.8297 C29.9559,30.3157 29.5599,30.7117 29.0749,30.7117 C28.5889,30.7117 28.1929,30.3157 28.1929,29.8297 C28.1929,29.3447 28.5889,28.9487 29.0749,28.9487 C29.5599,28.9487 29.9559,29.3447 29.9559,29.8297 L29.9559,29.8297 Z M32.8379,11.8947 C32.3519,11.8947 31.9559,11.4997 31.9559,11.0137 C31.9559,10.5267 32.3519,10.1317 32.8379,10.1317 C33.3239,10.1317 33.7199,10.5267 33.7199,11.0137 C33.7199,11.4997 33.3239,11.8947 32.8379,11.8947 L32.8379,11.8947 Z M29.4189,20.6907 C29.4189,21.1767 29.0229,21.5717 28.5369,21.5717 C28.0509,21.5717 27.6549,21.1767 27.6549,20.6907 C27.6549,20.2047 28.0509,19.8087 28.5369,19.8087 C29.0229,19.8087 29.4189,20.2047 29.4189,20.6907 L29.4189,20.6907 Z M34.1059,36.2817 C34.1059,35.7957 34.5019,35.3997 34.9879,35.3997 C35.4749,35.3997 35.8699,35.7957 35.8699,36.2817 C35.8699,36.7667 35.4749,37.1627 34.9879,37.1627 C34.5019,37.1627 34.1059,36.7667 34.1059,36.2817 L34.1059,36.2817 Z M38.5299,31.3027 C38.2149,31.4787 38.0199,31.8117 38.0199,32.1737 L38.0199,38.3647 L30.8809,42.5867 L30.8809,37.5507 L32.4139,37.5507 C32.8859,38.5017 33.8559,39.1627 34.9879,39.1627 C36.5769,39.1627 37.8699,37.8707 37.8699,36.2817 C37.8699,34.6927 36.5769,33.3997 34.9879,33.3997 C33.6539,33.3997 32.5379,34.3167 32.2119,35.5507 L29.8809,35.5507 C29.3279,35.5507 28.8809,35.9977 28.8809,36.5507 L28.8809,43.7687 L28.4759,44.0087 L24.9679,41.9757 L24.9679,16.0457 L27.8059,16.0457 L27.8059,17.9147 C26.5719,18.2407 25.6549,19.3557 25.6549,20.6907 C25.6549,22.2797 26.9479,23.5717 28.5369,23.5717 C30.1259,23.5717 31.4189,22.2797 31.4189,20.6907 C31.4189,19.5587 30.7569,18.5877 29.8059,18.1167 L29.8059,16.0457 L33.1059,16.0457 C33.6589,16.0457 34.1059,15.5987 34.1059,15.0457 L34.1059,13.5877 C35.0579,13.1167 35.7199,12.1447 35.7199,11.0137 C35.7199,9.4247 34.4269,8.1317 32.8379,8.1317 C31.2489,8.1317 29.9559,9.4247 29.9559,11.0137 C29.9559,12.3487 30.8729,13.4637 32.1059,13.7897 L32.1059,14.0457 L24.9679,14.0457 L24.9679,6.8037 L29.3659,4.1697 L38.5579,9.7737 L38.5589,15.9377 C38.5589,16.2987 38.7519,16.6307 39.0649,16.8087 L43.9339,19.5687 L43.9349,22.6467 L34.7199,22.6467 C34.1669,22.6467 33.7199,23.0947 33.7199,23.6467 L33.7199,28.5607 L31.6489,28.5607 C31.1779,27.6097 30.2069,26.9487 29.0749,26.9487 C27.4859,26.9487 26.1929,28.2407 26.1929,29.8297 C26.1929,31.4187 27.4859,32.7117 29.0749,32.7117 C30.4099,32.7117 31.5239,31.7947 31.8509,30.5607 L34.7199,30.5607 C35.2719,30.5607 35.7199,30.1137 35.7199,29.5607 L35.7199,24.6467 L43.9349,24.6467 L43.9349,28.2597 L38.5299,31.3027 Z M17.2469,28.4107 C17.7329,28.4107 18.1289,28.8067 18.1289,29.2927 C18.1289,29.7787 17.7329,30.1747 17.2469,30.1747 C16.7609,30.1747 16.3649,29.7787 16.3649,29.2927 C16.3649,28.8067 16.7609,28.4107 17.2469,28.4107 L17.2469,28.4107 Z M15.8279,12.6267 C15.8279,12.1407 16.2239,11.7447 16.7099,11.7447 C17.1949,11.7447 17.5909,12.1407 17.5909,12.6267 C17.5909,13.1127 17.1949,13.5087 16.7099,13.5087 C16.2239,13.5087 15.8279,13.1127 15.8279,12.6267 L15.8279,12.6267 Z M12.2149,20.6907 C12.2149,21.1767 11.8189,21.5717 11.3329,21.5717 C10.8479,21.5717 10.4519,21.1767 10.4519,20.6907 C10.4519,20.2047 10.8479,19.8087 11.3329,19.8087 C11.8189,19.8087 12.2149,20.2047 12.2149,20.6907 L12.2149,20.6907 Z M17.4399,37.8937 C17.4399,37.4077 17.8359,37.0127 18.3219,37.0127 C18.8089,37.0127 19.2039,37.4077 19.2039,37.8937 C19.2039,38.3807 18.8089,38.7757 18.3219,38.7757 C17.8359,38.7757 17.4399,38.3807 17.4399,37.8937 L17.4399,37.8937 Z M18.9119,44.0027 L9.3759,38.3627 L9.3769,32.1727 C9.3769,31.8087 9.1789,31.4727 8.8589,31.2967 L8.5009,31.0997 L11.1399,31.0997 L11.1399,38.1627 C11.1399,38.7157 11.5869,39.1627 12.1399,39.1627 L15.7479,39.1627 C16.2189,40.1137 17.1899,40.7757 18.3219,40.7757 C19.9109,40.7757 21.2039,39.4827 21.2039,37.8937 C21.2039,36.3057 19.9109,35.0127 18.3219,35.0127 C16.9879,35.0127 15.8719,35.9297 15.5459,37.1627 L13.1399,37.1627 L13.1399,30.0997 C13.1399,29.5467 12.6919,29.0997 12.1399,29.0997 L4.8639,29.0997 L4.0009,28.6247 L3.9999,19.5677 L8.8689,16.8067 C9.1829,16.6287 9.3759,16.2967 9.3759,15.9357 L9.3769,13.3567 L10.6019,13.3567 L10.6019,17.9147 C9.3689,18.2407 8.4519,19.3557 8.4519,20.6907 C8.4519,22.2797 9.7439,23.5717 11.3329,23.5717 C12.9219,23.5717 14.2149,22.2797 14.2149,20.6907 C14.2149,19.5597 13.5539,18.5887 12.6019,18.1167 L12.6019,13.3567 L13.9339,13.3567 C14.2599,14.5917 15.3749,15.5087 16.7099,15.5087 C18.2989,15.5087 19.5909,14.2157 19.5909,12.6267 C19.5909,11.0377 18.2989,9.7447 16.7099,9.7447 C15.5789,9.7447 14.6069,10.4057 14.1359,11.3567 L9.3769,11.3567 L9.3769,9.7717 L18.5679,4.1687 L22.9679,6.8027 L22.9679,18.3467 L16.9779,18.3467 C16.4259,18.3467 15.9779,18.7937 15.9779,19.3467 L15.9779,26.7187 C15.0269,27.1887 14.3649,28.1607 14.3649,29.2927 C14.3649,30.8817 15.6579,32.1747 17.2469,32.1747 C18.8359,32.1747 20.1289,30.8817 20.1289,29.2927 C20.1289,27.9577 19.2119,26.8427 17.9779,26.5167 L17.9779,20.3467 L22.9679,20.3467 L22.9679,41.5897 L18.9119,44.0027 Z M45.9339,18.9867 C45.9339,18.6267 45.7399,18.2947 45.4269,18.1167 L40.5589,15.3557 L40.5579,9.2127 C40.5579,8.8637 40.3759,8.5407 40.0779,8.3587 L29.8919,2.1477 C29.5739,1.9547 29.1769,1.9517 28.8569,2.1427 L23.9689,5.0697 L19.0769,2.1427 C18.7569,1.9507 18.3589,1.9527 18.0429,2.1467 L7.8559,8.3567 C7.5589,8.5387 7.3769,8.8617 7.3769,9.2107 L7.3759,15.3537 L2.5069,18.1157 C2.1929,18.2937 1.9999,18.6257 1.9999,18.9857 L2.0009,29.2157 C2.0009,29.5807 2.1989,29.9157 2.5179,30.0917 L7.3769,32.7637 L7.3759,38.9337 C7.3759,39.2867 7.5619,39.6137 7.8669,39.7937 L18.4049,46.0257 C18.7209,46.2127 19.1099,46.2127 19.4259,46.0247 L23.6399,43.5177 L27.9789,46.0317 C28.1339,46.1217 28.3079,46.1667 28.4799,46.1667 C28.6559,46.1667 28.8319,46.1197 28.9889,46.0267 L39.5289,39.7957 C39.8339,39.6157 40.0199,39.2887 40.0199,38.9347 L40.0199,32.7587 L45.4249,29.7157 C45.7399,29.5387 45.9349,29.2057 45.9349,28.8447 L45.9339,18.9867 Z' fill='%2301A88D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-bedrock":{"onLight":"data:image/svg+xml,%3Csvg width='44' height='44' viewBox='10 10 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(10.000000, 10.000000)' fill='%2301A88D'%3E%3Cpath d='M41,20.9998818 C40.448,20.9998818 40,20.5508818 40,19.9998818 C40,19.4488818 40.448,18.9998818 41,18.9998818 C41.552,18.9998818 42,19.4488818 42,19.9998818 C42,20.5508818 41.552,20.9998818 41,20.9998818 L41,20.9998818 Z M16.977,41.8478818 L13.774,40.1018818 L17.515,37.8568818 L16.485,36.1428818 L11.738,38.9908818 L7,36.4058818 L7,30.5658818 L11.515,27.8568818 L10.485,26.1428818 L6,28.8338818 L2,26.4338818 L2,22.6178818 L7.447,19.8948818 L6.553,18.1048818 L2,20.3818818 L2,17.6178818 L6.956,15.1398818 L11,17.5658818 L11,20.3818818 L7.553,22.1048818 L8.447,23.8948818 L12.003,22.1168818 L15.557,23.8768818 L16.443,22.0848818 L13,20.3798818 L13,17.5658818 L17.515,14.8568818 C17.815,14.6768818 18,14.3508818 18,13.9998818 L18,8.99988178 L16,8.99988178 L16,13.4338818 L12,15.8338818 L8,13.4338818 L8,6.58788178 L11,4.92188178 L11,10.9998818 L13,10.9998818 L13,3.81088178 L16.024,2.12988178 L21.002,4.61588178 L21.001,26.4498818 L10.463,33.1558818 L11.537,34.8438818 L21.001,28.8218818 L21,39.4338818 L16.977,41.8478818 Z M38,28.9998818 C38.552,28.9998818 39,29.4488818 39,29.9998818 C39,30.5508818 38.552,30.9998818 38,30.9998818 C37.448,30.9998818 37,30.5508818 37,29.9998818 C37,29.4488818 37.448,28.9998818 38,28.9998818 L38,28.9998818 Z M30,38.9998818 C29.448,38.9998818 29,38.5508818 29,37.9998818 C29,37.4488818 29.448,36.9998818 30,36.9998818 C30.552,36.9998818 31,37.4488818 31,37.9998818 C31,38.5508818 30.552,38.9998818 30,38.9998818 L30,38.9998818 Z M32,5.99988178 C32.552,5.99988178 33,6.44888178 33,6.99988178 C33,7.55088178 32.552,7.99988178 32,7.99988178 C31.448,7.99988178 31,7.55088178 31,6.99988178 C31,6.44888178 31.448,5.99988178 32,5.99988178 L32,5.99988178 Z M41,16.9998818 C39.698,16.9998818 38.598,17.8388818 38.184,18.9998818 L23.001,18.9998818 L23.001,14.9998818 L32,14.9998818 C32.553,14.9998818 33,14.5518818 33,13.9998818 L33,9.81588178 C34.161,9.40188178 35,8.30188178 35,6.99988178 C35,5.34588178 33.654,3.99988178 32,3.99988178 C30.346,3.99988178 29,5.34588178 29,6.99988178 C29,8.30188178 29.839,9.40188178 31,9.81588178 L31,12.9998818 L23.001,12.9998818 L23.002,3.99788178 C23.002,3.61888178 22.788,3.27288178 22.449,3.10388178 L16.447,0.104881781 C16.151,-0.0421182195 15.803,-0.0341182195 15.515,0.125881781 L6.515,5.12588178 C6.197,5.30188178 6,5.63688178 6,5.99988178 L6,13.3818818 L0.553,16.1048818 C0.214,16.2748818 0,16.6208818 0,16.9998818 L0,26.9998818 C0,27.3508818 0.185,27.6768818 0.485,27.8568818 L5,30.5658818 L5,36.9998818 C5,37.3658818 5.2,37.7028818 5.521,37.8778818 L16.521,43.8778818 C16.671,43.9588818 16.835,43.9998818 17,43.9998818 C17.179,43.9998818 17.356,43.9518818 17.515,43.8568818 L22.515,40.8568818 C22.815,40.6768818 23,40.3508818 23,39.9998818 L23,32.9998818 L29,32.9998818 L29,35.1838818 C27.839,35.5978818 27,36.6978818 27,37.9998818 C27,39.6538818 28.346,40.9998818 30,40.9998818 C31.654,40.9998818 33,39.6538818 33,37.9998818 C33,36.6978818 32.161,35.5978818 31,35.1838818 L31,31.9998818 C31,31.4478818 30.553,30.9998818 30,30.9998818 L23,30.9998818 L23.001,26.9998818 L33.586,26.9998818 L35.301,28.7148818 C35.113,29.1058818 35,29.5378818 35,29.9998818 C35,31.6538818 36.346,32.9998818 38,32.9998818 C39.654,32.9998818 41,31.6538818 41,29.9998818 C41,28.3458818 39.654,26.9998818 38,26.9998818 C37.538,26.9998818 37.106,27.1128818 36.715,27.3008818 L34.707,25.2928818 C34.52,25.1048818 34.266,24.9998818 34,24.9998818 L23.001,24.9998818 L23.001,20.9998818 L38.184,20.9998818 C38.598,22.1608818 39.698,22.9998818 41,22.9998818 C42.654,22.9998818 44,21.6538818 44,19.9998818 C44,18.3458818 42.654,16.9998818 41,16.9998818 L41,16.9998818 Z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E"},"aws-client":{"onLight":"data:image/svg+xml,%3Csvg width='43.84' height='43.06' viewBox='1.99 1.99 43.84 43.06' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M42.299,38.773 L42.299,40.696 C42.299,41.134 41.945,41.49 41.506,41.49 L30.762,41.49 C30.323,41.49 29.968,41.134 29.968,40.696 L29.968,38.773 C29.968,38.335 30.323,37.98 30.762,37.98 L41.506,37.98 C41.945,37.98 42.299,38.335 42.299,38.773 L42.299,38.773 Z M43.797,42.399 C43.797,42.754 43.508,43.044 43.153,43.044 L4.645,43.044 C4.289,43.044 4,42.754 4,42.399 L4,37.011 C4,36.656 4.289,36.367 4.645,36.367 L43.153,36.367 C43.508,36.367 43.797,36.656 43.797,37.011 L43.797,42.399 Z M43.153,34.367 L4.645,34.367 C3.187,34.367 2,35.553 2,37.011 L2,42.399 C2,43.857 3.187,45.044 4.645,45.044 L43.153,45.044 C44.611,45.044 45.797,43.857 45.797,42.399 L45.797,37.011 C45.797,35.553 44.611,34.367 43.153,34.367 L43.153,34.367 Z M7.501,27.21 L40.264,27.21 L40.264,7.502 L7.501,7.502 L7.501,27.21 Z M40.842,5.502 L6.924,5.502 C6.14,5.502 5.501,6.139 5.501,6.923 L5.501,27.788 C5.501,28.572 6.14,29.21 6.924,29.21 L40.842,29.21 C41.626,29.21 42.264,28.572 42.264,27.788 L42.264,6.923 C42.264,6.139 41.626,5.502 40.842,5.502 L40.842,5.502 Z M43.797,30.067 C43.797,30.422 43.508,30.711 43.153,30.711 L4.645,30.711 C4.289,30.711 4,30.422 4,30.067 L4,4.644 C4,4.289 4.289,4 4.645,4 L43.153,4 C43.508,4 43.797,4.289 43.797,4.644 L43.797,30.067 Z M43.153,2 L4.645,2 C3.187,2 2,3.186 2,4.644 L2,30.067 C2,31.525 3.187,32.711 4.645,32.711 L43.153,32.711 C44.611,32.711 45.797,31.525 45.797,30.067 L45.797,4.644 C45.797,3.186 44.611,2 43.153,2 L43.153,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='43.84' height='43.06' viewBox='1.99 1.99 43.84 43.06' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M42.299,38.773 L42.299,40.696 C42.299,41.134 41.945,41.49 41.506,41.49 L30.762,41.49 C30.323,41.49 29.968,41.134 29.968,40.696 L29.968,38.773 C29.968,38.335 30.323,37.98 30.762,37.98 L41.506,37.98 C41.945,37.98 42.299,38.335 42.299,38.773 L42.299,38.773 Z M43.797,42.399 C43.797,42.754 43.508,43.044 43.153,43.044 L4.645,43.044 C4.289,43.044 4,42.754 4,42.399 L4,37.011 C4,36.656 4.289,36.367 4.645,36.367 L43.153,36.367 C43.508,36.367 43.797,36.656 43.797,37.011 L43.797,42.399 Z M43.153,34.367 L4.645,34.367 C3.187,34.367 2,35.553 2,37.011 L2,42.399 C2,43.857 3.187,45.044 4.645,45.044 L43.153,45.044 C44.611,45.044 45.797,43.857 45.797,42.399 L45.797,37.011 C45.797,35.553 44.611,34.367 43.153,34.367 L43.153,34.367 Z M7.501,27.21 L40.264,27.21 L40.264,7.502 L7.501,7.502 L7.501,27.21 Z M40.842,5.502 L6.924,5.502 C6.14,5.502 5.501,6.139 5.501,6.923 L5.501,27.788 C5.501,28.572 6.14,29.21 6.924,29.21 L40.842,29.21 C41.626,29.21 42.264,28.572 42.264,27.788 L42.264,6.923 C42.264,6.139 41.626,5.502 40.842,5.502 L40.842,5.502 Z M43.797,30.067 C43.797,30.422 43.508,30.711 43.153,30.711 L4.645,30.711 C4.289,30.711 4,30.422 4,30.067 L4,4.644 C4,4.289 4.289,4 4.645,4 L43.153,4 C43.508,4 43.797,4.289 43.797,4.644 L43.797,30.067 Z M43.153,2 L4.645,2 C3.187,2 2,3.186 2,4.644 L2,30.067 C2,31.525 3.187,32.711 4.645,32.711 L43.153,32.711 C44.611,32.711 45.797,31.525 45.797,30.067 L45.797,4.644 C45.797,3.186 44.611,2 43.153,2 L43.153,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-mobile-client":{"onLight":"data:image/svg+xml,%3Csvg width='24.03' height='43.86' viewBox='11.97 1.99 24.03 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M19.603,6.109 C19.773,6.109 19.911,6.247 19.911,6.417 C19.911,6.586 19.773,6.724 19.603,6.724 C19.433,6.724 19.295,6.586 19.295,6.417 C19.295,6.247 19.433,6.109 19.603,6.109 L19.603,6.109 Z M19.603,8.224 C20.6,8.224 21.411,7.413 21.411,6.417 C21.411,5.42 20.6,4.609 19.603,4.609 C18.606,4.609 17.795,5.42 17.795,6.417 C17.795,7.413 18.606,8.224 19.603,8.224 L19.603,8.224 Z M23.012,7.401 L28.374,7.401 L28.374,5.401 L23.012,5.401 L23.012,7.401 Z M32.173,43.826 L15.812,43.826 C14.813,43.826 14,43.029 14,42.05 L14,40.641 L33.986,40.641 L33.986,42.05 C33.986,43.029 33.172,43.826 32.173,43.826 L32.173,43.826 Z M14,10.802 L33.986,10.802 L33.986,38.641 L14,38.641 L14,28.943 L14,10.802 Z M16.646,4 L31.339,4 C32.798,4 33.986,5.167 33.986,6.6 L33.986,8.802 L14,8.802 L14,6.6 C14,5.167 15.187,4 16.646,4 L16.646,4 Z M31.354,2 L31.339,2 L16.646,2 C14.084,2 12,4.064 12,6.6 L12,42.05 C12,44.132 13.71,45.826 15.812,45.826 L32.173,45.826 C34.276,45.826 35.986,44.132 35.986,42.05 L35.986,6.6 L35.986,6.597 C35.986,4.067 33.91,2.008 31.354,2 L31.354,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='24.03' height='43.86' viewBox='11.97 1.99 24.03 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M19.603,6.109 C19.773,6.109 19.911,6.247 19.911,6.417 C19.911,6.586 19.773,6.724 19.603,6.724 C19.433,6.724 19.295,6.586 19.295,6.417 C19.295,6.247 19.433,6.109 19.603,6.109 L19.603,6.109 Z M19.603,8.224 C20.6,8.224 21.411,7.413 21.411,6.417 C21.411,5.42 20.6,4.609 19.603,4.609 C18.606,4.609 17.795,5.42 17.795,6.417 C17.795,7.413 18.606,8.224 19.603,8.224 L19.603,8.224 Z M23.012,7.401 L28.374,7.401 L28.374,5.401 L23.012,5.401 L23.012,7.401 Z M32.173,43.826 L15.812,43.826 C14.813,43.826 14,43.029 14,42.05 L14,40.641 L33.986,40.641 L33.986,42.05 C33.986,43.029 33.172,43.826 32.173,43.826 L32.173,43.826 Z M14,10.802 L33.986,10.802 L33.986,38.641 L14,38.641 L14,28.943 L14,10.802 Z M16.646,4 L31.339,4 C32.798,4 33.986,5.167 33.986,6.6 L33.986,8.802 L14,8.802 L14,6.6 C14,5.167 15.187,4 16.646,4 L16.646,4 Z M31.354,2 L31.339,2 L16.646,2 C14.084,2 12,4.064 12,6.6 L12,42.05 C12,44.132 13.71,45.826 15.812,45.826 L32.173,45.826 C34.276,45.826 35.986,44.132 35.986,42.05 L35.986,6.6 L35.986,6.597 C35.986,4.067 33.91,2.008 31.354,2 L31.354,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-user":{"onLight":"data:image/svg+xml,%3Csvg width='40.04' height='44.02' viewBox='3.98 1.99 40.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6.025,44 C6.524,34.085 14.395,26.178 24,26.178 C27.248,26.178 30.43,27.092 33.205,28.822 C38.354,32.033 41.653,37.783 41.974,44 L6.025,44 Z M14.192,13.878 C14.192,8.432 18.592,4 24.001,4 C29.408,4 33.807,8.432 33.807,13.878 C33.807,19.325 29.408,23.757 24.001,23.757 C18.592,23.757 14.192,19.325 14.192,13.878 L14.192,13.878 Z M34.263,27.125 C32.53,26.044 30.65,25.26 28.698,24.771 C32.877,22.939 35.807,18.749 35.807,13.878 C35.807,7.329 30.51,2 24.001,2 C17.489,2 12.192,7.329 12.192,13.878 C12.192,18.755 15.13,22.95 19.317,24.778 C10.545,26.981 4,35.2 4,45 C4,45.552 4.447,46 5,46 L43,46 C43.552,46 44,45.552 44,45 C44,37.719 40.269,30.87 34.263,27.125 L34.263,27.125 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='40.04' height='44.02' viewBox='3.98 1.99 40.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6.025,44 C6.524,34.085 14.395,26.178 24,26.178 C27.248,26.178 30.43,27.092 33.205,28.822 C38.354,32.033 41.653,37.783 41.974,44 L6.025,44 Z M14.192,13.878 C14.192,8.432 18.592,4 24.001,4 C29.408,4 33.807,8.432 33.807,13.878 C33.807,19.325 29.408,23.757 24.001,23.757 C18.592,23.757 14.192,19.325 14.192,13.878 L14.192,13.878 Z M34.263,27.125 C32.53,26.044 30.65,25.26 28.698,24.771 C32.877,22.939 35.807,18.749 35.807,13.878 C35.807,7.329 30.51,2 24.001,2 C17.489,2 12.192,7.329 12.192,13.878 C12.192,18.755 15.13,22.95 19.317,24.778 C10.545,26.981 4,35.2 4,45 C4,45.552 4.447,46 5,46 L43,46 C43.552,46 44,45.552 44,45 C44,37.719 40.269,30.87 34.263,27.125 L34.263,27.125 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-users":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M28.639,9.286 C28.639,6.371 31.052,4 34.019,4 C36.985,4 39.397,6.371 39.397,9.286 C39.397,12.201 36.985,14.572 34.019,14.572 C31.052,14.572 28.639,12.201 28.639,9.286 L28.639,9.286 Z M40.163,16.334 C39.516,15.932 38.833,15.6 38.128,15.333 C40.098,14.023 41.397,11.802 41.397,9.286 C41.397,5.269 38.087,2 34.019,2 C29.95,2 26.639,5.269 26.639,9.286 C26.639,11.796 27.932,14.014 29.895,15.325 C28.614,15.808 27.41,16.515 26.349,17.425 L27.652,18.943 C29.434,17.414 31.689,16.572 34,16.572 C35.802,16.572 37.569,17.077 39.109,18.033 C41.849,19.735 43.647,22.725 43.953,26 L34,26 L34,28 L45,28 C45.553,28 46,27.553 46,27 C46,22.657 43.764,18.57 40.163,16.334 L40.163,16.334 Z M8.639,9.286 C8.639,6.371 11.052,4 14.019,4 C16.985,4 19.397,6.371 19.397,9.286 C19.397,12.201 16.985,14.572 14.019,14.572 C11.052,14.572 8.639,12.201 8.639,9.286 L8.639,9.286 Z M14,26 L4.046,26 C4.53,20.717 8.81,16.572 14,16.572 C15.802,16.572 17.569,17.077 19.109,18.033 C19.541,18.302 19.958,18.608 20.349,18.943 L21.652,17.426 C21.184,17.024 20.684,16.657 20.163,16.334 C19.516,15.932 18.833,15.6 18.128,15.333 C20.098,14.023 21.397,11.802 21.397,9.286 C21.397,5.269 18.087,2 14.019,2 C9.95,2 6.639,5.269 6.639,9.286 C6.639,11.801 7.937,14.023 9.907,15.332 C5.302,17.071 2,21.638 2,27 C2,27.553 2.448,28 3,28 L14,28 L14,26 Z M14.046,44 C14.53,38.717 18.81,34.572 24,34.572 C25.802,34.572 27.569,35.077 29.109,36.033 C31.849,37.735 33.647,40.725 33.953,44 L14.046,44 Z M18.639,27.286 C18.639,24.371 21.052,22 24.019,22 C26.985,22 29.397,24.371 29.397,27.286 C29.397,30.201 26.985,32.572 24.019,32.572 C21.052,32.572 18.639,30.201 18.639,27.286 L18.639,27.286 Z M30.163,34.334 C29.516,33.932 28.833,33.6 28.128,33.333 C30.098,32.023 31.397,29.802 31.397,27.286 C31.397,23.269 28.087,20 24.019,20 C19.95,20 16.639,23.269 16.639,27.286 C16.639,29.801 17.937,32.023 19.907,33.332 C15.302,35.071 12,39.638 12,45 C12,45.553 12.448,46 13,46 L35,46 C35.553,46 36,45.553 36,45 C36,40.657 33.764,36.57 30.163,34.334 L30.163,34.334 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M28.639,9.286 C28.639,6.371 31.052,4 34.019,4 C36.985,4 39.397,6.371 39.397,9.286 C39.397,12.201 36.985,14.572 34.019,14.572 C31.052,14.572 28.639,12.201 28.639,9.286 L28.639,9.286 Z M40.163,16.334 C39.516,15.932 38.833,15.6 38.128,15.333 C40.098,14.023 41.397,11.802 41.397,9.286 C41.397,5.269 38.087,2 34.019,2 C29.95,2 26.639,5.269 26.639,9.286 C26.639,11.796 27.932,14.014 29.895,15.325 C28.614,15.808 27.41,16.515 26.349,17.425 L27.652,18.943 C29.434,17.414 31.689,16.572 34,16.572 C35.802,16.572 37.569,17.077 39.109,18.033 C41.849,19.735 43.647,22.725 43.953,26 L34,26 L34,28 L45,28 C45.553,28 46,27.553 46,27 C46,22.657 43.764,18.57 40.163,16.334 L40.163,16.334 Z M8.639,9.286 C8.639,6.371 11.052,4 14.019,4 C16.985,4 19.397,6.371 19.397,9.286 C19.397,12.201 16.985,14.572 14.019,14.572 C11.052,14.572 8.639,12.201 8.639,9.286 L8.639,9.286 Z M14,26 L4.046,26 C4.53,20.717 8.81,16.572 14,16.572 C15.802,16.572 17.569,17.077 19.109,18.033 C19.541,18.302 19.958,18.608 20.349,18.943 L21.652,17.426 C21.184,17.024 20.684,16.657 20.163,16.334 C19.516,15.932 18.833,15.6 18.128,15.333 C20.098,14.023 21.397,11.802 21.397,9.286 C21.397,5.269 18.087,2 14.019,2 C9.95,2 6.639,5.269 6.639,9.286 C6.639,11.801 7.937,14.023 9.907,15.332 C5.302,17.071 2,21.638 2,27 C2,27.553 2.448,28 3,28 L14,28 L14,26 Z M14.046,44 C14.53,38.717 18.81,34.572 24,34.572 C25.802,34.572 27.569,35.077 29.109,36.033 C31.849,37.735 33.647,40.725 33.953,44 L14.046,44 Z M18.639,27.286 C18.639,24.371 21.052,22 24.019,22 C26.985,22 29.397,24.371 29.397,27.286 C29.397,30.201 26.985,32.572 24.019,32.572 C21.052,32.572 18.639,30.201 18.639,27.286 L18.639,27.286 Z M30.163,34.334 C29.516,33.932 28.833,33.6 28.128,33.333 C30.098,32.023 31.397,29.802 31.397,27.286 C31.397,23.269 28.087,20 24.019,20 C19.95,20 16.639,23.269 16.639,27.286 C16.639,29.801 17.937,32.023 19.907,33.332 C15.302,35.071 12,39.638 12,45 C12,45.553 12.448,46 13,46 L35,46 C35.553,46 36,45.553 36,45 C36,40.657 33.764,36.57 30.163,34.334 L30.163,34.334 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-internet":{"onLight":"data:image/svg+xml,%3Csvg width='44.05' height='27.62' viewBox='1.99 9.98 44.05 27.62' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M34.59,29.7893333 L30.997,33.3813333 L30.997,21.7593333 L28.997,21.7593333 L28.997,33.2703333 L25.556,29.7733333 L24.13,31.1763333 L29.325,36.4553333 C29.513,36.6453333 29.768,36.7533333 30.034,36.7543333 L30.038,36.7543333 C30.303,36.7543333 30.558,36.6483333 30.745,36.4613333 L36.004,31.2033333 L34.59,29.7893333 Z M22.35,27.7243333 L23.764,26.3103333 L18.506,21.0523333 C18.319,20.8643333 18.065,20.7593333 17.799,20.7593333 L17.795,20.7593333 C17.528,20.7603333 17.274,20.8673333 17.086,21.0583333 L11.89,26.3363333 L13.316,27.7383333 L16.757,24.2433333 L16.757,37.5543333 L18.757,37.5543333 L18.757,24.1313333 L22.35,27.7243333 Z M20.333,37.5723333 L27.4,37.5793333 L27.402,35.5793333 L20.335,35.5723333 L20.333,37.5723333 Z M46.026,29.1303333 C46.026,31.6173333 45.272,33.6283333 43.783,35.1053333 C41.332,37.5403333 37.776,37.5903333 37.496,37.5903333 L37.484,37.5903333 L32.721,37.5853333 L32.723,35.5853333 L37.491,35.5903333 C37.531,35.5903333 40.489,35.5693333 42.385,33.6763333 C43.474,32.5883333 44.026,31.0593333 44.026,29.1303333 C44.026,27.9483333 43.701,26.1793333 40.896,24.4603333 C39.422,23.5573333 38.041,23.2593333 37.517,23.1743333 C36.986,23.0873333 36.622,22.5993333 36.685,22.0693333 C36.507,19.9743333 35.526,18.5083333 33.982,18.0403333 C32.647,17.6363333 31.218,18.1083333 30.337,19.2443333 C30.116,19.5313333 29.763,19.6773333 29.396,19.6203333 C29.036,19.5653333 28.736,19.3203333 28.61,18.9793333 C27.992,17.3143333 27.099,15.9173333 25.955,14.8233333 C24.545,13.4753333 20.675,10.5743333 15.204,12.7843333 C12.069,14.0513333 9.611,17.6893333 9.611,21.0673333 C9.611,21.4443333 9.635,21.8223333 9.682,22.1893333 C9.743,22.6733333 9.446,23.1313333 8.981,23.2723333 C8.943,23.2843333 8.903,23.2933333 8.865,23.3003333 C7.02,23.7643333 4,25.1573333 4,29.2983333 C4,32.4433333 5.799,34.1823333 7.308,35.0873333 C7.823,35.3963333 8.419,35.5603333 9.029,35.5613333 L15.181,35.5673333 L15.179,37.5673333 L9.028,37.5613333 C8.055,37.5603333 7.104,37.2983333 6.278,36.8023333 C4.681,35.8443333 2,33.5953333 2,29.2983333 C2,25.5833333 4.084,22.7513333 7.623,21.5793333 C7.615,21.4093333 7.611,21.2383333 7.611,21.0673333 C7.611,16.8633333 10.554,12.5053333 14.456,10.9303333 C19.001,9.09333332 23.817,10.0113333 27.338,13.3783333 C28.37,14.3643333 29.228,15.5503333 29.897,16.9143333 C31.234,15.9453333 32.938,15.6373333 34.562,16.1263333 C36.751,16.7903333 38.234,18.7233333 38.615,21.3603333 C39.748,21.6423333 40.925,22.1323333 41.941,22.7553333 C44.69,24.4383333 46.026,26.5243333 46.026,29.1303333 L46.026,29.1303333 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.05' height='27.62' viewBox='1.99 9.98 44.05 27.62' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M34.59,29.7893333 L30.997,33.3813333 L30.997,21.7593333 L28.997,21.7593333 L28.997,33.2703333 L25.556,29.7733333 L24.13,31.1763333 L29.325,36.4553333 C29.513,36.6453333 29.768,36.7533333 30.034,36.7543333 L30.038,36.7543333 C30.303,36.7543333 30.558,36.6483333 30.745,36.4613333 L36.004,31.2033333 L34.59,29.7893333 Z M22.35,27.7243333 L23.764,26.3103333 L18.506,21.0523333 C18.319,20.8643333 18.065,20.7593333 17.799,20.7593333 L17.795,20.7593333 C17.528,20.7603333 17.274,20.8673333 17.086,21.0583333 L11.89,26.3363333 L13.316,27.7383333 L16.757,24.2433333 L16.757,37.5543333 L18.757,37.5543333 L18.757,24.1313333 L22.35,27.7243333 Z M20.333,37.5723333 L27.4,37.5793333 L27.402,35.5793333 L20.335,35.5723333 L20.333,37.5723333 Z M46.026,29.1303333 C46.026,31.6173333 45.272,33.6283333 43.783,35.1053333 C41.332,37.5403333 37.776,37.5903333 37.496,37.5903333 L37.484,37.5903333 L32.721,37.5853333 L32.723,35.5853333 L37.491,35.5903333 C37.531,35.5903333 40.489,35.5693333 42.385,33.6763333 C43.474,32.5883333 44.026,31.0593333 44.026,29.1303333 C44.026,27.9483333 43.701,26.1793333 40.896,24.4603333 C39.422,23.5573333 38.041,23.2593333 37.517,23.1743333 C36.986,23.0873333 36.622,22.5993333 36.685,22.0693333 C36.507,19.9743333 35.526,18.5083333 33.982,18.0403333 C32.647,17.6363333 31.218,18.1083333 30.337,19.2443333 C30.116,19.5313333 29.763,19.6773333 29.396,19.6203333 C29.036,19.5653333 28.736,19.3203333 28.61,18.9793333 C27.992,17.3143333 27.099,15.9173333 25.955,14.8233333 C24.545,13.4753333 20.675,10.5743333 15.204,12.7843333 C12.069,14.0513333 9.611,17.6893333 9.611,21.0673333 C9.611,21.4443333 9.635,21.8223333 9.682,22.1893333 C9.743,22.6733333 9.446,23.1313333 8.981,23.2723333 C8.943,23.2843333 8.903,23.2933333 8.865,23.3003333 C7.02,23.7643333 4,25.1573333 4,29.2983333 C4,32.4433333 5.799,34.1823333 7.308,35.0873333 C7.823,35.3963333 8.419,35.5603333 9.029,35.5613333 L15.181,35.5673333 L15.179,37.5673333 L9.028,37.5613333 C8.055,37.5603333 7.104,37.2983333 6.278,36.8023333 C4.681,35.8443333 2,33.5953333 2,29.2983333 C2,25.5833333 4.084,22.7513333 7.623,21.5793333 C7.615,21.4093333 7.611,21.2383333 7.611,21.0673333 C7.611,16.8633333 10.554,12.5053333 14.456,10.9303333 C19.001,9.09333332 23.817,10.0113333 27.338,13.3783333 C28.37,14.3643333 29.228,15.5503333 29.897,16.9143333 C31.234,15.9453333 32.938,15.6373333 34.562,16.1263333 C36.751,16.7903333 38.234,18.7233333 38.615,21.3603333 C39.748,21.6423333 40.925,22.1323333 41.941,22.7553333 C44.69,24.4383333 46.026,26.5243333 46.026,29.1303333 L46.026,29.1303333 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-server":{"onLight":"data:image/svg+xml,%3Csvg width='25.53' height='44.05' viewBox='10.99 1.99 25.53 44.05' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.437,21.52 L32.064,21.52 L32.064,19.52 L15.437,19.52 L15.437,21.52 Z M15.437,17.196 L32.064,17.196 L32.064,15.196 L15.437,15.196 L15.437,17.196 Z M15.437,12.762 L32.064,12.762 L32.064,10.762 L15.437,10.762 L15.437,12.762 Z M15.437,8.494 L32.064,8.494 L32.064,6.494 L15.437,6.494 L15.437,8.494 Z M13,44.013 L34.499,44.013 L34.499,4 L13,4 L13,44.013 Z M35.032,2 L12.468,2 C11.659,2 11,2.659 11,3.469 L11,44.545 C11,45.355 11.659,46.013 12.468,46.013 L35.032,46.013 C35.841,46.013 36.499,45.355 36.499,44.545 L36.499,3.469 C36.499,2.659 35.841,2 35.032,2 L35.032,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='25.53' height='44.05' viewBox='10.99 1.99 25.53 44.05' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.437,21.52 L32.064,21.52 L32.064,19.52 L15.437,19.52 L15.437,21.52 Z M15.437,17.196 L32.064,17.196 L32.064,15.196 L15.437,15.196 L15.437,17.196 Z M15.437,12.762 L32.064,12.762 L32.064,10.762 L15.437,10.762 L15.437,12.762 Z M15.437,8.494 L32.064,8.494 L32.064,6.494 L15.437,6.494 L15.437,8.494 Z M13,44.013 L34.499,44.013 L34.499,4 L13,4 L13,44.013 Z M35.032,2 L12.468,2 C11.659,2 11,2.659 11,3.469 L11,44.545 C11,45.355 11.659,46.013 12.468,46.013 L35.032,46.013 C35.841,46.013 36.499,45.355 36.499,44.545 L36.499,3.469 C36.499,2.659 35.841,2 35.032,2 L35.032,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-database":{"onLight":"data:image/svg+xml,%3Csvg width='34.67' height='43.93' viewBox='6.98 1.99 34.67 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.755,43.307 C30.506,43.519 29.176,43.677 27.801,43.777 C27.244,43.817 26.678,43.847 26.105,43.869 C24.954,43.908 23.754,43.908 22.608,43.869 C22.033,43.847 21.467,43.817 20.91,43.777 C19.535,43.677 18.205,43.519 16.956,43.307 C12.049,42.475 9,40.73 9,38.754 L9,10.765 C11.997,12.661 17.74,13.841 24.356,13.841 C30.966,13.841 36.636,12.68 39.645,10.803 L39.645,38.754 C39.645,40.767 36.695,42.469 31.755,43.307 M24.356,4 C32.896,4 38.476,6.184 39.47,8.432 C37.802,10.098 32.46,11.841 24.356,11.841 C16.26,11.841 10.828,10.061 9.207,8.408 L9.171,8.443 C10.155,6.191 15.765,4 24.356,4 M24.356,2 C14.137,2 7,4.938 7,9.145 L7,38.754 C7,40.581 8.25,43.86 16.622,45.28 C17.933,45.501 19.327,45.667 20.766,45.771 C21.346,45.813 21.936,45.845 22.536,45.867 C23.134,45.888 23.741,45.899 24.356,45.899 C24.97,45.899 25.576,45.888 26.176,45.867 C26.776,45.845 27.365,45.813 27.945,45.771 C29.384,45.667 30.778,45.501 32.089,45.28 C40.403,43.869 41.645,40.586 41.645,38.754 L41.645,9.145 C41.645,4.938 34.535,2 24.356,2' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='34.67' height='43.93' viewBox='6.98 1.99 34.67 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.755,43.307 C30.506,43.519 29.176,43.677 27.801,43.777 C27.244,43.817 26.678,43.847 26.105,43.869 C24.954,43.908 23.754,43.908 22.608,43.869 C22.033,43.847 21.467,43.817 20.91,43.777 C19.535,43.677 18.205,43.519 16.956,43.307 C12.049,42.475 9,40.73 9,38.754 L9,10.765 C11.997,12.661 17.74,13.841 24.356,13.841 C30.966,13.841 36.636,12.68 39.645,10.803 L39.645,38.754 C39.645,40.767 36.695,42.469 31.755,43.307 M24.356,4 C32.896,4 38.476,6.184 39.47,8.432 C37.802,10.098 32.46,11.841 24.356,11.841 C16.26,11.841 10.828,10.061 9.207,8.408 L9.171,8.443 C10.155,6.191 15.765,4 24.356,4 M24.356,2 C14.137,2 7,4.938 7,9.145 L7,38.754 C7,40.581 8.25,43.86 16.622,45.28 C17.933,45.501 19.327,45.667 20.766,45.771 C21.346,45.813 21.936,45.845 22.536,45.867 C23.134,45.888 23.741,45.899 24.356,45.899 C24.97,45.899 25.576,45.888 26.176,45.867 C26.776,45.845 27.365,45.813 27.945,45.771 C29.384,45.667 30.778,45.501 32.089,45.28 C40.403,43.869 41.645,40.586 41.645,38.754 L41.645,9.145 C41.645,4.938 34.535,2 24.356,2' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-application":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37,35 L46,35 L46,37 L37,37 L37,46 L35,46 L35,37 L26,37 L26,35 L35,35 L35,26 L37,26 L37,35 Z M4,44 L20,44 L20,28 L4,28 L4,44 Z M21,26 L3,26 C2.447,26 2,26.448 2,27 L2,45 C2,45.552 2.447,46 3,46 L21,46 C21.553,46 22,45.552 22,45 L22,27 C22,26.448 21.553,26 21,26 L21,26 Z M28,20 L44,20 L44,4 L28,4 L28,20 Z M45,2 L27,2 C26.447,2 26,2.448 26,3 L26,21 C26,21.552 26.447,22 27,22 L45,22 C45.553,22 46,21.552 46,21 L46,3 C46,2.448 45.553,2 45,2 L45,2 Z M4,20 L20,20 L20,4 L4,4 L4,20 Z M21,2 L3,2 C2.447,2 2,2.448 2,3 L2,21 C2,21.552 2.447,22 3,22 L21,22 C21.553,22 22,21.552 22,21 L22,3 C22,2.448 21.553,2 21,2 L21,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37,35 L46,35 L46,37 L37,37 L37,46 L35,46 L35,37 L26,37 L26,35 L35,35 L35,26 L37,26 L37,35 Z M4,44 L20,44 L20,28 L4,28 L4,44 Z M21,26 L3,26 C2.447,26 2,26.448 2,27 L2,45 C2,45.552 2.447,46 3,46 L21,46 C21.553,46 22,45.552 22,45 L22,27 C22,26.448 21.553,26 21,26 L21,26 Z M28,20 L44,20 L44,4 L28,4 L28,20 Z M45,2 L27,2 C26.447,2 26,2.448 26,3 L26,21 C26,21.552 26.447,22 27,22 L45,22 C45.553,22 46,21.552 46,21 L46,3 C46,2.448 45.553,2 45,2 L45,2 Z M4,20 L20,20 L20,4 L4,4 L4,20 Z M21,2 L3,2 C2.447,2 2,2.448 2,3 L2,21 C2,21.552 2.447,22 3,22 L21,22 C21.553,22 22,21.552 22,21 L22,3 C22,2.448 21.553,2 21,2 L21,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-git-repository":{"onLight":"data:image/svg+xml,%3Csvg width='34.04' height='44.02' viewBox='6.98 1.99 34.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M36.002,44 C34.348,44 33.002,42.654 33.002,41 C33.002,39.346 34.348,38 36.002,38 C37.656,38 39.002,39.346 39.002,41 C39.002,42.654 37.656,44 36.002,44 M12,10 C10.346,10 9,8.654 9,7 C9,5.346 10.346,4 12,4 C13.654,4 15,5.346 15,7 C15,8.654 13.654,10 12,10 M36.002,21.001 C37.656,21.001 39.002,22.347 39.002,24.001 C39.002,25.655 37.656,27.001 36.002,27.001 C34.348,27.001 33.002,25.655 33.002,24.001 C33.002,22.347 34.348,21.001 36.002,21.001 M36.002,36 C33.587,36 31.567,37.721 31.103,40.001 L26.001,40.001 C25.338,40.001 25.001,39.685 25.001,39.062 L25.001,25.001 L31.103,25.001 C31.568,27.28 33.588,29.001 36.002,29.001 C38.759,29.001 41.002,26.758 41.002,24.001 C41.002,21.244 38.759,19.001 36.002,19.001 C33.588,19.001 31.568,20.722 31.103,23.001 L25.001,23.001 L25.001,8.938 C25.001,7.208 23.768,5.999 22.001,5.999 L16.899,5.999 C16.434,3.72 14.414,2 12,2 C9.243,2 7,4.243 7,7 C7,9.757 9.243,12 12,12 C14.415,12 16.435,10.279 16.899,7.999 L22.001,7.999 C22.674,7.999 23.001,8.306 23.001,8.938 L23.001,39.062 C23.001,40.792 24.234,42.001 26.001,42.001 L31.103,42.001 C31.568,44.28 33.588,46 36.002,46 C38.759,46 41.002,43.757 41.002,41 C41.002,38.243 38.759,36 36.002,36' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='34.04' height='44.02' viewBox='6.98 1.99 34.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M36.002,44 C34.348,44 33.002,42.654 33.002,41 C33.002,39.346 34.348,38 36.002,38 C37.656,38 39.002,39.346 39.002,41 C39.002,42.654 37.656,44 36.002,44 M12,10 C10.346,10 9,8.654 9,7 C9,5.346 10.346,4 12,4 C13.654,4 15,5.346 15,7 C15,8.654 13.654,10 12,10 M36.002,21.001 C37.656,21.001 39.002,22.347 39.002,24.001 C39.002,25.655 37.656,27.001 36.002,27.001 C34.348,27.001 33.002,25.655 33.002,24.001 C33.002,22.347 34.348,21.001 36.002,21.001 M36.002,36 C33.587,36 31.567,37.721 31.103,40.001 L26.001,40.001 C25.338,40.001 25.001,39.685 25.001,39.062 L25.001,25.001 L31.103,25.001 C31.568,27.28 33.588,29.001 36.002,29.001 C38.759,29.001 41.002,26.758 41.002,24.001 C41.002,21.244 38.759,19.001 36.002,19.001 C33.588,19.001 31.568,20.722 31.103,23.001 L25.001,23.001 L25.001,8.938 C25.001,7.208 23.768,5.999 22.001,5.999 L16.899,5.999 C16.434,3.72 14.414,2 12,2 C9.243,2 7,4.243 7,7 C7,9.757 9.243,12 12,12 C14.415,12 16.435,10.279 16.899,7.999 L22.001,7.999 C22.674,7.999 23.001,8.306 23.001,8.938 L23.001,39.062 C23.001,40.792 24.234,42.001 26.001,42.001 L31.103,42.001 C31.568,44.28 33.588,46 36.002,46 C38.759,46 41.002,43.757 41.002,41 C41.002,38.243 38.759,36 36.002,36' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-email":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='27.24' viewBox='1.99 9.98 44.02 27.24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.4824,23.5332 L44.0004,13.2252 L44.0004,33.9642 L31.4824,23.5332 Z M18.0884,24.8272 L24.0004,29.6952 L29.9114,24.8272 L42.3584,35.2002 L5.6424,35.2002 L18.0884,24.8272 Z M16.5174,23.5332 L4.0004,33.9652 L4.0004,13.2242 L16.5174,23.5332 Z M24.0004,27.1042 L5.6594,12.0002 L42.3404,12.0002 L24.0004,27.1042 Z M2.0004,10.6462 L2.0004,36.5532 C2.0004,36.9102 2.2894,37.2002 2.6464,37.2002 L45.3534,37.2002 C45.7114,37.2002 46.0004,36.9102 46.0004,36.5532 L46.0004,10.6462 C46.0004,10.2892 45.7114,10.0002 45.3534,10.0002 L2.6464,10.0002 C2.2894,10.0002 2.0004,10.2892 2.0004,10.6462 L2.0004,10.6462 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.02' height='27.24' viewBox='1.99 9.98 44.02 27.24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.4824,23.5332 L44.0004,13.2252 L44.0004,33.9642 L31.4824,23.5332 Z M18.0884,24.8272 L24.0004,29.6952 L29.9114,24.8272 L42.3584,35.2002 L5.6424,35.2002 L18.0884,24.8272 Z M16.5174,23.5332 L4.0004,33.9652 L4.0004,13.2242 L16.5174,23.5332 Z M24.0004,27.1042 L5.6594,12.0002 L42.3404,12.0002 L24.0004,27.1042 Z M2.0004,10.6462 L2.0004,36.5532 C2.0004,36.9102 2.2894,37.2002 2.6464,37.2002 L45.3534,37.2002 C45.7114,37.2002 46.0004,36.9102 46.0004,36.5532 L46.0004,10.6462 C46.0004,10.2892 45.7114,10.0002 45.3534,10.0002 L2.6464,10.0002 C2.2894,10.0002 2.0004,10.2892 2.0004,10.6462 L2.0004,10.6462 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"temporal":{"onLight":"data:image/svg+xml,%3Csvg width='386.73' height='386.14' viewBox='390.23 391.99 386.73 386.14' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle type='text/css'%3E .st0{fill:%23141414;} %3C/style%3E%3Cpath class='st0' d='M651.14,517.35C642.02,449.03,618.94,392,583.49,392s-58.53,57.03-67.65,125.35 c-68.32,9.12-125.35,32.2-125.35,67.65s57.04,58.53,125.35,67.65c9.12,68.31,32.2,125.35,67.65,125.35s58.53-57.04,67.65-125.35 c68.32-9.12,125.35-32.2,125.35-67.65S719.45,526.47,651.14,517.35z M513.61,632.75c-65.43-9.45-103.59-31.08-103.59-47.75 s38.16-38.3,103.59-47.75c-1.44,15.75-2.19,31.83-2.19,47.75C511.42,600.92,512.17,617.01,513.61,632.75z M583.49,411.53 c16.67,0,38.3,38.16,47.75,103.59c-15.74-1.44-31.83-2.19-47.75-2.19s-32.01,0.75-47.75,2.19 C545.19,449.69,566.82,411.53,583.49,411.53z M653.37,632.75c-3.22,0.47-16.43,2.02-19.77,2.35c-0.33,3.35-1.89,16.55-2.35,19.77 c-9.45,65.43-31.08,103.59-47.75,103.59s-38.3-38.16-47.75-103.59c-0.46-3.22-2.02-16.43-2.35-19.77 c-1.52-15.51-2.44-32.17-2.44-50.1s0.92-34.59,2.44-50.11c15.51-1.52,32.17-2.44,50.1-2.44s34.59,0.92,50.1,2.44 c3.35,0.33,16.55,1.89,19.77,2.35c65.43,9.45,103.6,31.09,103.6,47.75S718.8,623.3,653.37,632.75z'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='386.73' height='386.14' viewBox='390.23 391.99 386.73 386.14' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle type='text/css'%3E .st0{fill:%23F2F2F2;} %3C/style%3E%3Cpath class='st0' d='M651.14,517.35C642.02,449.03,618.94,392,583.49,392s-58.53,57.03-67.65,125.35 c-68.32,9.12-125.35,32.2-125.35,67.65s57.04,58.53,125.35,67.65c9.12,68.31,32.2,125.35,67.65,125.35s58.53-57.04,67.65-125.35 c68.32-9.12,125.35-32.2,125.35-67.65S719.45,526.47,651.14,517.35z M513.61,632.75c-65.43-9.45-103.59-31.08-103.59-47.75 s38.16-38.3,103.59-47.75c-1.44,15.75-2.19,31.83-2.19,47.75C511.42,600.92,512.17,617.01,513.61,632.75z M583.49,411.53 c16.67,0,38.3,38.16,47.75,103.59c-15.74-1.44-31.83-2.19-47.75-2.19s-32.01,0.75-47.75,2.19 C545.19,449.69,566.82,411.53,583.49,411.53z M653.37,632.75c-3.22,0.47-16.43,2.02-19.77,2.35c-0.33,3.35-1.89,16.55-2.35,19.77 c-9.45,65.43-31.08,103.59-47.75,103.59s-38.3-38.16-47.75-103.59c-0.46-3.22-2.02-16.43-2.35-19.77 c-1.52-15.51-2.44-32.17-2.44-50.1s0.92-34.59,2.44-50.11c15.51-1.52,32.17-2.44,50.1-2.44s34.59,0.92,50.1,2.44 c3.35,0.33,16.55,1.89,19.77,2.35c65.43,9.45,103.6,31.09,103.6,47.75S718.8,623.3,653.37,632.75z'/%3E%3C/svg%3E"},"sonarqube":{"onLight":"data:image/svg+xml,%3Csvg width='46.44' height='46.44' viewBox='14.94 14.94 46.44 46.44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M59.86,39.66c-.83,0-1.5-.67-1.5-1.5,0-11.14-9.06-20.2-20.2-20.2-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c12.79,0,23.2,10.41,23.2,23.2,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,61.36c-12.79,0-23.2-10.41-23.2-23.2,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,11.14,9.06,20.2,20.2,20.2.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M44.67,39.66c-.83,0-1.5-.67-1.5-1.5,0-2.76-2.25-5.01-5.01-5.01-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c4.42,0,8.01,3.59,8.01,8.01,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,46.17c-4.42,0-8.01-3.59-8.01-8.01,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,2.76,2.25,5.01,5.01,5.01.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M52.26,39.66c-.83,0-1.5-.67-1.5-1.5,0-6.95-5.65-12.6-12.6-12.6-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c8.6,0,15.6,7,15.6,15.6,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,53.76c-8.6,0-15.6-7-15.6-15.6,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,6.95,5.65,12.6,12.6,12.6.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3C/svg%3E"},"github":{"onLight":"data:image/svg+xml,%3Csvg width='98.01' height='94.99' viewBox='0 0 98.01 94.99' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_730_27126)'%3E%3Cpath d='M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z' fill='black'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_730_27126'%3E%3Crect width='98' height='96' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='98.01' height='94.99' viewBox='0 0 98.01 94.99' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_730_27136)'%3E%3Cpath d='M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_730_27136'%3E%3Crect width='98' height='96' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E"},"coderabbit":{"onLight":"data:image/svg+xml,%3Csvg width='1200.42' height='1200.42' viewBox='0.58 0 1200.42 1200.42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M600.867 1200C932.238 1200 1200.87 931.37 1200.87 600C1200.87 268.629 932.238 -0.000488281 600.867 -0.000488281C269.496 -0.000488281 0.867188 268.629 0.867188 600C0.867188 931.37 269.496 1200 600.867 1200Z' fill='%23FF570A'/%3E%3Cpath d='M1008.3 500.615C1008.3 500.615 924.706 393.751 819.62 387.639C751.807 383.636 735.379 392.696 732.434 399.444C728.226 364.456 698.322 202.361 491.729 168.008C518.102 357.589 627.02 308.191 691.161 438.86C691.161 438.86 582.921 291.734 404.969 345.903C404.969 345.903 469.83 482.07 661.676 509.891C661.676 509.891 677.05 562.586 681.684 571.862C681.684 571.862 386.224 417.779 296.512 713.505C229.747 698.382 207.352 770.859 284.09 820.369C284.09 820.369 297.147 768.519 328.943 753.131C328.943 753.131 260.711 829.226 340.946 920.36H628.925C635.883 908.834 666.68 848.19 590.514 802.285C644.278 801.516 688.042 902.932 735.128 921.058H803.61C805.927 915.428 810.771 898.567 799.395 883.395C781.857 863.278 743.46 866.002 743.802 828.8C757.062 655.746 1016.55 708.888 1008.3 500.615Z' fill='%23FEFEFE'/%3E%3C/svg%3E"},"greptile":{"onLight":"data:image/svg+xml,%3Csvg width='366.68' height='420' viewBox='0 0 366.68 420' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M240.269 49.8154L166.804 115.963L115.966 159.44L181.335 220.585L249.784 162.048L196.78 112.47L253.068 61.7881L362.605 164.246L178.739 321.489L3.14502 157.242L187.011 0L240.269 49.8154Z' fill='%233D3B4F'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.75471 -0.656059 0 1 188.017 336.544)' fill='%233D3B4F'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.731354 0.681998 0 1 0 174.962)' fill='%233D3B4F'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='366.68' height='420' viewBox='0 0 366.68 420' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M240.269 49.8154L166.804 115.963L115.966 159.44L181.335 220.585L249.784 162.048L196.78 112.47L253.068 61.7881L362.605 164.246L178.739 321.489L3.14502 157.242L187.011 0L240.269 49.8154Z' fill='%23ffffff'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.75471 -0.656059 0 1 188.017 336.544)' fill='%23ffffff'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.731354 0.681998 0 1 0 174.962)' fill='%23ffffff'/%3E%3C/svg%3E"},"blacksmith":{"onLight":"data:image/svg+xml,%3Csvg width='144' height='96.05' viewBox='0 0 144 96.05' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M144 0H0V48C26.5097 48 48 69.4903 48 96H144V0Z' fill='%23202020'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='144' height='96.05' viewBox='0 0 144 96.05' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M144 0H0V48C26.5097 48 48 69.4903 48 96H144V0Z' fill='%23ffffff'/%3E%3C/svg%3E"},"jenkins":{"onLight":"data:image/svg+xml,%3Csvg width='21.78' height='24' viewBox='1.11 0 21.78 24' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M2.872 24h-.975a3.866 3.866 0 01-.07-.197c-.215-.666-.594-1.49-.692-2.154-.146-.984.78-1.039 1.374-1.465.915-.66 1.635-1.025 2.627-1.62.295-.179 1.182-.624 1.281-.829.201-.408-.345-.982-.49-1.3-.225-.507-.345-.937-.376-1.435-.824-.13-1.455-.627-1.844-1.185-.63-.925-1.066-2.635-.525-3.936.045-.103.254-.305.285-.463.06-.308-.105-.72-.12-1.048-.06-1.692.284-3.15 1.425-3.66.463-1.84 2.113-2.453 3.673-3.367.58-.342 1.224-.562 1.89-.807 2.372-.877 6.027-.712 7.994.783.836.633 2.176 1.97 2.656 2.939 1.262 2.555 1.17 6.825.287 9.934-.12.421-.29 1.032-.533 1.533-.168.35-.689 1.05-.625 1.36.064.314 1.19 1.17 1.432 1.395.434.422 1.26.975 1.324 1.5.07.557-.248 1.336-.41 1.875-.217.721-.436 1.441-.654 2.131H2.87zm11.104-3.54c-.545-.3-1.361-.622-2.065-.757-.87-.164-.78 1.188-.75 1.994.03.643.36 1.316.51 1.744.076.197.09.41.256.449.3.068 1.29-.326 1.575-.479.6-.328 1.064-.844 1.574-1.189.016-.17.016-.34.03-.508a2.648 2.648 0 00-1.095-.277c.314-.15.75-.15 1.035-.332l.016-.193c-.496-.03-.69-.254-1.021-.436zm7.454 2.935a17.78 17.78 0 00.465-1.752c.06-.287.215-.918.178-1.176-.059-.459-.684-.799-1.004-1.086-.584-.525-.95-.975-1.56-1.469-.249.375-.78.615-.983.914 1.447-.689 1.71 2.625 1.141 3.69.09.329.391.45.514.735l-.086.166h1.29c.013 0 .03 0 .044.014zm-6.634-.012c-.05-.074-.1-.135-.15-.209l-.301.195h.45zm2.77 0c.008-.209.018-.404.03-.598-.53.029-.825-.48-1.196-.527-.324-.045-.6.361-1.02.195-.095.105-.183.227-.284.316.154.18.295.375.424.584h.815c.014-.164.135-.285.3-.285.165 0 .284.121.284.27h.66zm2.116 0c-.314-.479-.947-.898-1.68-.555l-.03.541h1.71zm-8.51 0l-.104-.344c-.225-.72-.36-1.26-.405-1.68-.914-.436-1.875-.87-2.654-1.426-.15-.105-1.109-1.35-1.23-1.305-1.739.676-3.359 1.86-4.814 2.984.256.557.48 1.141.69 1.74h8.505zm8.265-2.113c-.029-.512-.164-1.56-.48-1.74-.66-.39-1.846.78-2.34.943.045.15.135.271.15.48.285-.074.645-.029.898.092-.299.03-.629.03-.824.164-.074.195.016.48-.029.764.69.197 1.5.303 2.385.332.164-.227.225-.645.211-1.082zm-4.08-.36c-.044.375.046.51.12.943 1.26.391 1.034-1.74-.135-.959zM8.76 19.5c-.45.457 1.27 1.082 1.814 1.115 0-.29.165-.564.135-.77-.65-.118-1.502-.042-1.945-.347zm5.565.215c0 .043-.061.03-.068.064.58.451 1.014.545 1.802.51.354-.262.67-.563 1.043-.807-.855.074-1.931.607-2.774.23zm3.42-17.726c-1.606-.906-4.35-1.591-6.076-.731-1.38.692-3.27 1.84-3.899 3.292.6 1.402-.166 2.686-.226 4.109-.018.757.36 1.42.391 2.242-.2.338-.825.38-1.26.356-.146-.729-.4-1.549-1.155-1.63-1.064-.116-1.845.764-1.89 1.683-.06 1.08.833 2.864 2.085 2.745.488-.046.608-.54 1.139-.54.285.57-.445.75-.523 1.154-.016.105.06.511.104.705.233.944.744 2.16 1.245 2.88.635.9 1.884 1.051 3.229 1.141.24-.525 1.125-.48 1.706-.346-.691-.27-1.336-.945-1.875-1.529-.615-.676-1.23-1.41-1.261-2.28 1.155 1.604 2.1 3 4.2 3.704 1.59.525 3.45-.254 4.664-1.109.51-.359.811-.93 1.17-1.439 1.35-1.936 1.98-4.71 1.846-7.394-.06-1.111-.06-2.221-.436-2.955-.389-.781-1.695-1.471-2.475-.781-.15-.764.63-1.23 1.545-.96-.66-.854-1.336-1.858-2.266-2.384zM13.58 14.896c.615 1.544 2.724 1.363 4.505 1.323-.084.194-.256.435-.465.515-.57.232-2.145.408-2.937-.012-.506-.27-.824-.873-1.102-1.227-.137-.172-.795-.608-.012-.609zm.164-.87c.893.464 2.52.517 3.731.48.066.267.066.593.068.913-1.55.08-3.386-.304-3.794-1.395h-.005zm6.675-.586c-.473.9-1.145 1.897-2.539 1.928-.023-.284-.045-.735 0-.904 1.064-.103 1.727-.646 2.543-1.017zm-.649-.667c-1.02.66-2.154 1.375-3.824 1.21-.351-.31-.485-1-.14-1.458.181.313.06.885.57.97.944.165 2.038-.579 2.73-.84.42-.713-.046-.976-.42-1.433-.782-.93-1.83-2.1-1.802-3.51.314-.224.346.346.391.45.404.96 1.424 2.175 2.174 3 .18.21.48.39.51.524.092.39-.254.854-.209 1.11zm-13.439-.675c-.314-.184-.393-.99-.768-1.01-.535-.03-.438 1.05-.436 1.68-.37-.33-.435-1.365-.164-1.89-.308-.15-.445.164-.618.284.22-1.59 2.34-.734 1.99.96zM4.713 5.995c-.685.756-.54 2.174-.459 3.188 1.244-.785 2.898.06 2.883 1.394.595-.016.223-.744.115-1.215-.353-1.528.592-3.187.041-4.59-1.064.084-1.939.52-2.578 1.215zm9.12 1.113c.307.562.404 1.148.84 1.57.195.19.574.424.387.95-.045.121-.365.391-.551.45-.674.195-2.254.03-1.721-.81.563.015 1.314.36 1.732-.045-.314-.524-.885-1.53-.674-2.13zm6.198-.013h.068c.33.668.6 1.375 1.004 1.965-.27.628-2.053 1.19-2.023.057.39-.17 1.05-.035 1.395-.25-.193-.556-.48-1.006-.434-1.771zm-6.927-1.617c-1.422-.33-2.131.592-2.56 1.553-.384-.094-.231-.615-.135-.883.255-.701 1.28-1.633 2.119-1.506.359.057.848.386.576.834zM9.642 1.593c-1.56.44-3.56 1.574-4.2 2.974.495-.07.84-.321 1.33-.351.186-.016.428.074.641.015.424-.104.78-1.065 1.102-1.41.31-.345.685-.496.94-.81.167-.09.409-.074.42-.33-.073-.075-.15-.135-.232-.105v.017z'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='21.78' height='24' viewBox='1.11 0 21.78 24' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M2.872 24h-.975a3.866 3.866 0 01-.07-.197c-.215-.666-.594-1.49-.692-2.154-.146-.984.78-1.039 1.374-1.465.915-.66 1.635-1.025 2.627-1.62.295-.179 1.182-.624 1.281-.829.201-.408-.345-.982-.49-1.3-.225-.507-.345-.937-.376-1.435-.824-.13-1.455-.627-1.844-1.185-.63-.925-1.066-2.635-.525-3.936.045-.103.254-.305.285-.463.06-.308-.105-.72-.12-1.048-.06-1.692.284-3.15 1.425-3.66.463-1.84 2.113-2.453 3.673-3.367.58-.342 1.224-.562 1.89-.807 2.372-.877 6.027-.712 7.994.783.836.633 2.176 1.97 2.656 2.939 1.262 2.555 1.17 6.825.287 9.934-.12.421-.29 1.032-.533 1.533-.168.35-.689 1.05-.625 1.36.064.314 1.19 1.17 1.432 1.395.434.422 1.26.975 1.324 1.5.07.557-.248 1.336-.41 1.875-.217.721-.436 1.441-.654 2.131H2.87zm11.104-3.54c-.545-.3-1.361-.622-2.065-.757-.87-.164-.78 1.188-.75 1.994.03.643.36 1.316.51 1.744.076.197.09.41.256.449.3.068 1.29-.326 1.575-.479.6-.328 1.064-.844 1.574-1.189.016-.17.016-.34.03-.508a2.648 2.648 0 00-1.095-.277c.314-.15.75-.15 1.035-.332l.016-.193c-.496-.03-.69-.254-1.021-.436zm7.454 2.935a17.78 17.78 0 00.465-1.752c.06-.287.215-.918.178-1.176-.059-.459-.684-.799-1.004-1.086-.584-.525-.95-.975-1.56-1.469-.249.375-.78.615-.983.914 1.447-.689 1.71 2.625 1.141 3.69.09.329.391.45.514.735l-.086.166h1.29c.013 0 .03 0 .044.014zm-6.634-.012c-.05-.074-.1-.135-.15-.209l-.301.195h.45zm2.77 0c.008-.209.018-.404.03-.598-.53.029-.825-.48-1.196-.527-.324-.045-.6.361-1.02.195-.095.105-.183.227-.284.316.154.18.295.375.424.584h.815c.014-.164.135-.285.3-.285.165 0 .284.121.284.27h.66zm2.116 0c-.314-.479-.947-.898-1.68-.555l-.03.541h1.71zm-8.51 0l-.104-.344c-.225-.72-.36-1.26-.405-1.68-.914-.436-1.875-.87-2.654-1.426-.15-.105-1.109-1.35-1.23-1.305-1.739.676-3.359 1.86-4.814 2.984.256.557.48 1.141.69 1.74h8.505zm8.265-2.113c-.029-.512-.164-1.56-.48-1.74-.66-.39-1.846.78-2.34.943.045.15.135.271.15.48.285-.074.645-.029.898.092-.299.03-.629.03-.824.164-.074.195.016.48-.029.764.69.197 1.5.303 2.385.332.164-.227.225-.645.211-1.082zm-4.08-.36c-.044.375.046.51.12.943 1.26.391 1.034-1.74-.135-.959zM8.76 19.5c-.45.457 1.27 1.082 1.814 1.115 0-.29.165-.564.135-.77-.65-.118-1.502-.042-1.945-.347zm5.565.215c0 .043-.061.03-.068.064.58.451 1.014.545 1.802.51.354-.262.67-.563 1.043-.807-.855.074-1.931.607-2.774.23zm3.42-17.726c-1.606-.906-4.35-1.591-6.076-.731-1.38.692-3.27 1.84-3.899 3.292.6 1.402-.166 2.686-.226 4.109-.018.757.36 1.42.391 2.242-.2.338-.825.38-1.26.356-.146-.729-.4-1.549-1.155-1.63-1.064-.116-1.845.764-1.89 1.683-.06 1.08.833 2.864 2.085 2.745.488-.046.608-.54 1.139-.54.285.57-.445.75-.523 1.154-.016.105.06.511.104.705.233.944.744 2.16 1.245 2.88.635.9 1.884 1.051 3.229 1.141.24-.525 1.125-.48 1.706-.346-.691-.27-1.336-.945-1.875-1.529-.615-.676-1.23-1.41-1.261-2.28 1.155 1.604 2.1 3 4.2 3.704 1.59.525 3.45-.254 4.664-1.109.51-.359.811-.93 1.17-1.439 1.35-1.936 1.98-4.71 1.846-7.394-.06-1.111-.06-2.221-.436-2.955-.389-.781-1.695-1.471-2.475-.781-.15-.764.63-1.23 1.545-.96-.66-.854-1.336-1.858-2.266-2.384zM13.58 14.896c.615 1.544 2.724 1.363 4.505 1.323-.084.194-.256.435-.465.515-.57.232-2.145.408-2.937-.012-.506-.27-.824-.873-1.102-1.227-.137-.172-.795-.608-.012-.609zm.164-.87c.893.464 2.52.517 3.731.48.066.267.066.593.068.913-1.55.08-3.386-.304-3.794-1.395h-.005zm6.675-.586c-.473.9-1.145 1.897-2.539 1.928-.023-.284-.045-.735 0-.904 1.064-.103 1.727-.646 2.543-1.017zm-.649-.667c-1.02.66-2.154 1.375-3.824 1.21-.351-.31-.485-1-.14-1.458.181.313.06.885.57.97.944.165 2.038-.579 2.73-.84.42-.713-.046-.976-.42-1.433-.782-.93-1.83-2.1-1.802-3.51.314-.224.346.346.391.45.404.96 1.424 2.175 2.174 3 .18.21.48.39.51.524.092.39-.254.854-.209 1.11zm-13.439-.675c-.314-.184-.393-.99-.768-1.01-.535-.03-.438 1.05-.436 1.68-.37-.33-.435-1.365-.164-1.89-.308-.15-.445.164-.618.284.22-1.59 2.34-.734 1.99.96zM4.713 5.995c-.685.756-.54 2.174-.459 3.188 1.244-.785 2.898.06 2.883 1.394.595-.016.223-.744.115-1.215-.353-1.528.592-3.187.041-4.59-1.064.084-1.939.52-2.578 1.215zm9.12 1.113c.307.562.404 1.148.84 1.57.195.19.574.424.387.95-.045.121-.365.391-.551.45-.674.195-2.254.03-1.721-.81.563.015 1.314.36 1.732-.045-.314-.524-.885-1.53-.674-2.13zm6.198-.013h.068c.33.668.6 1.375 1.004 1.965-.27.628-2.053 1.19-2.023.057.39-.17 1.05-.035 1.395-.25-.193-.556-.48-1.006-.434-1.771zm-6.927-1.617c-1.422-.33-2.131.592-2.56 1.553-.384-.094-.231-.615-.135-.883.255-.701 1.28-1.633 2.119-1.506.359.057.848.386.576.834zM9.642 1.593c-1.56.44-3.56 1.574-4.2 2.974.495-.07.84-.321 1.33-.351.186-.016.428.074.641.015.424-.104.78-1.065 1.102-1.41.31-.345.685-.496.94-.81.167-.09.409-.074.42-.33-.073-.075-.15-.135-.232-.105v.017z'/%3E%3C/svg%3E"},"servicenow":{"onLight":"data:image/svg+xml,%3Csvg width='128' height='114.5' viewBox='0 6.75 128 114.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M64.378 6.776c26.175.253 49.579 16.363 59.161 40.723s3.426 52.097-15.562 70.115a12.72 12.72 0 0 1-16.592.968c-16.252-12.095-38.515-12.095-54.768 0a12.686 12.686 0 0 1-16.497-.857C.977 99.635-5.184 71.692 4.576 47.23S38.04 6.738 64.378 6.793m-.377 96.285a31.153 31.153 0 0 0 31.984-31.975C95.985 53.44 81.665 39.12 64 39.12S32.017 53.44 32.017 71.103a31.153 31.153 0 0 0 31.984 31.975'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='128' height='114.5' viewBox='0 6.75 128 114.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M64.378 6.776c26.175.253 49.579 16.363 59.161 40.723s3.426 52.097-15.562 70.115a12.72 12.72 0 0 1-16.592.968c-16.252-12.095-38.515-12.095-54.768 0a12.686 12.686 0 0 1-16.497-.857C.977 99.635-5.184 71.692 4.576 47.23S38.04 6.738 64.378 6.793m-.377 96.285a31.153 31.153 0 0 0 31.984-31.975C95.985 53.44 81.665 39.12 64 39.12S32.017 53.44 32.017 71.103a31.153 31.153 0 0 0 31.984 31.975'/%3E%3C/svg%3E"},"blazemeter":{"onLight":"data:image/svg+xml,%3Csvg width='24' height='10.3' viewBox='0 6.85 24 10.3' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M15.04 17.135c-.256 0-.352-.128-.32-.352l1.696-9.566c.032-.224.16-.352.416-.352h3.584c2.4 0 3.584.736 3.584 2.24 0 .607-.16 1.151-.48 1.6-.32.48-.768.8-1.344.991.384.096.736.32.96.672.256.32.384.768.384 1.28 0 1.215-.416 2.08-1.248 2.655-.832.544-1.952.832-3.328.832H15.04zm3.968-1.664c1.664 0 2.496-.608 2.496-1.823 0-.384-.16-.64-.448-.832-.288-.192-.8-.256-1.472-.256h-2.08l-.512 2.88h2.016v.031zm.768-4.383c1.472 0 2.176-.544 2.176-1.663 0-.352-.128-.576-.416-.736-.288-.16-.736-.224-1.344-.224h-1.984l-.48 2.623h2.048zm-6.88-.256a.608.608 0 0 0-.608-.608H.608a.608.608 0 1 0 0 1.216h11.648c.352 0 .64-.256.64-.608zm1.344-2.175a.608.608 0 0 0-.608-.608H6.464a.608.608 0 1 0 0 1.216h7.168c.32 0 .608-.256.608-.608zm-2.464 6.654a.608.608 0 0 0-.608-.608H8.256a.608.608 0 1 0 0 1.216h2.912c.32 0 .608-.256.608-.608zm-.864-2.271a.608.608 0 0 0-.608-.608H3.2a.608.608 0 1 0 0 1.216h7.104a.63.63 0 0 0 .608-.608z'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='24' height='10.3' viewBox='0 6.85 24 10.3' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M15.04 17.135c-.256 0-.352-.128-.32-.352l1.696-9.566c.032-.224.16-.352.416-.352h3.584c2.4 0 3.584.736 3.584 2.24 0 .607-.16 1.151-.48 1.6-.32.48-.768.8-1.344.991.384.096.736.32.96.672.256.32.384.768.384 1.28 0 1.215-.416 2.08-1.248 2.655-.832.544-1.952.832-3.328.832H15.04zm3.968-1.664c1.664 0 2.496-.608 2.496-1.823 0-.384-.16-.64-.448-.832-.288-.192-.8-.256-1.472-.256h-2.08l-.512 2.88h2.016v.031zm.768-4.383c1.472 0 2.176-.544 2.176-1.663 0-.352-.128-.576-.416-.736-.288-.16-.736-.224-1.344-.224h-1.984l-.48 2.623h2.048zm-6.88-.256a.608.608 0 0 0-.608-.608H.608a.608.608 0 1 0 0 1.216h11.648c.352 0 .64-.256.64-.608zm1.344-2.175a.608.608 0 0 0-.608-.608H6.464a.608.608 0 1 0 0 1.216h7.168c.32 0 .608-.256.608-.608zm-2.464 6.654a.608.608 0 0 0-.608-.608H8.256a.608.608 0 1 0 0 1.216h2.912c.32 0 .608-.256.608-.608zm-.864-2.271a.608.608 0 0 0-.608-.608H3.2a.608.608 0 1 0 0 1.216h7.104a.63.63 0 0 0 .608-.608z'/%3E%3C/svg%3E"}}} diff --git a/.agent/skills/basalt-html/parts/usage/diagram-motion.md b/.agent/skills/basalt-html/parts/usage/diagram-motion.md new file mode 100644 index 00000000..479364ef --- /dev/null +++ b/.agent/skills/basalt-html/parts/usage/diagram-motion.md @@ -0,0 +1,9 @@ +# diagram-motion + +Added for you when a diagram's JSON says `"motion": "animated"` (with `loops`); a page that draws one from script writes `<!-- basalt:use diagram-motion -->`. + +- **Entrance:** in view (two fifths of it), each line draws once in the author's order, inside five seconds; a sequence's arrows go in message order and each label lifts from secondary to primary. Every word is at rest from the first frame. It never plays under reduced motion, in forced colours, under the hold or in print, and settles at once on a hover, a focus, a key or a control. +- **Loops:** a flow line's cuts, a pulse's bead, a repeating packet. They run only in view, never while a node is traced, and stop under the page's hold. The figure's foot then has "Pause animations" (the hold's own button, built for you) after "View as list". Don't add a second one for the diagram. +- **One mover a figure:** a pulse or a packet, never both. Flow is a state of a line and never runs on a line the mover travels. +- **Run:** "Play the run" sends one dot through a sequence's messages; it reads "Stop the run" while it runs. It works under the hold and under reduced motion (by colour alone). +- `Basalt.diagram(figure, spec)` with a new `packet.send` value sends one message. diff --git a/.agent/skills/basalt-html/parts/usage/diagram.md b/.agent/skills/basalt-html/parts/usage/diagram.md index bae2985d..172fd2a9 100644 --- a/.agent/skills/basalt-html/parts/usage/diagram.md +++ b/.agent/skills/basalt-html/parts/usage/diagram.md @@ -21,4 +21,9 @@ Boxes and the lines between them. `compose.mjs` writes the figure's words into t - **Place, don't route:** `col` and `row` are whole tracks from 1. Sides, slots, jogs, lanes, the group's box and a foreign key's line are derived. Write `fromSide` or `toSide` (`top`, `right`, `bottom`, `left`) only to change the default. `branch: true` indents a node in the stacked drawing. - **Lines:** `kind` is `main` (2px), `plain` (default) or `dashed` (a reply, a stream). One `label` each, at most 28 characters. `legend` gives each kind its words; `main`, `dashed` and a `focal` node must have words. One node at most is `focal`. - **Required:** `title`, `summary` (what it shows, in a sentence). `source`, `heading` (2 to 6, default 3). -- Monochrome: nothing takes a colour. The drawn layout is used only where it fits; otherwise the figure is stacked, one column at most 480 wide. +- Monochrome: nothing takes a colour but a card's service mark. The drawn layout is used only where it fits; otherwise the figure is stacked, one column at most 480 wide. +- **Motion:** `"motion": "animated"` (default still) draws each line once in view, every word at rest; it brings in `diagram-motion` (its usage says the rest). Motion never carries a fact alone. +- **Flow, pulse, packet:** `"flow": true` on a `main` or `plain` edge marches it (give it a label). `"pulse": ["a", "b", "c"]` runs a bead along a route; `"packet": { "path": [...], "repeat": true }` sends a dot. One of pulse and packet; never flow on the mover's route. Architecture and data flow only. +- **Run:** `"run": true` on a sequence adds "Play the run", a dot through every message. +- **Mark:** `"mark": "aws-ecs-service"` on an architecture node, 16px in the card's top end corner, the owner's file and colours; the card's words still name the service. Your own: `{ "onLight": "logo.svg", "onDark": "logo-dark.svg" }`, read into the page. A page drawing from script names its marks: `<!-- basalt:marks aws-s3-bucket temporal -->`. +- **Marks:** aws-application-load-balancer, aws-network-load-balancer, aws-cloudfront-distribution, aws-route-53-hosted-zone, aws-api-gateway-endpoint, aws-internet-gateway, aws-nat-gateway, aws-ecs-service, aws-ecs-task, aws-ecr-registry, aws-ec2-instance, aws-lambda-function, aws-s3-bucket, aws-dynamodb-table, aws-sqs-queue, aws-eventbridge-event-bus, aws-cloudwatch-logs, aws-cloudwatch-alarm, aws-parameter-store, aws-iam-role, aws-sagemaker-model, aws-bedrock, aws-client, aws-mobile-client, aws-user, aws-users, aws-internet, aws-server, aws-database, aws-application, aws-git-repository, aws-email, temporal, sonarqube, github, coderabbit, greptile, blacksmith, jenkins, servicenow, blazemeter. `aws-database` is the card for Aurora and RDS. aws-bedrock, jenkins, servicenow and blazemeter are unofficial. diff --git a/AGENTS.md b/AGENTS.md index a53212c1..5da0e2a6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,8 +47,8 @@ Basalt has one owner (Bailey) and a design panel of two independent design revie `docs/foundations.md` wins if this file and it disagree; fix this file. -- **Monochrome.** Colour appears only in named roles: a product's accent, status, and - syntax inside code. Never decorative. Colour never carries meaning alone: pair it with +- **Monochrome.** Colour appears only in named roles: a product's accent, status, syntax inside code, and a service's own mark on a + diagram's card. Never decorative. Colour never carries meaning alone: pair it with a word, icon or shape. Syntax colours never carry status (diff colours are a deferred exception). - **WCAG 2.2 AA everywhere:** 4.5:1 for text, 3:1 for boundaries, focus and icons, on @@ -148,7 +148,7 @@ Basalt has one owner (Bailey) and a design panel of two independent design revie - **More contrast** (`prefers-contrast: more`; Increase Contrast on Apple platforms): three aliases and no new colour. Lines (the hairline, the divider, the rim, the pill's hairline) step to `border-input`, tertiary ink to `text-secondary`, a hovered edge (`border-hover`) to `text-secondary`, and a field's boundary (`border-field`, equal to `border-input` outside the - mode) to `text-secondary`; the input boundary itself, and so a progress or slider track and a link's underline, does not step. It works in both themes and under a theme chosen with the toggle, and the contrast + mode) to `text-secondary`, and a diagram card's arrival rim (`diagram-hit`) to `text-primary`; the input boundary itself, and so a progress or slider track and a link's underline, does not step. It works in both themes and under a theme chosen with the toggle, and the contrast tests prove every text pair at 4.5:1 and every boundary at 3:1 in the mode. - **Motion** comes from the duration and easing tokens. Entries ease out; exits run at 0.75× with ease-in. A press is a colour step, and Button and IconButton also scale to .98 @@ -156,9 +156,9 @@ Basalt has one owner (Bailey) and a design panel of two independent design revie the parts of a field or a disabled, loading or busy button). In popup rows (Menu, Select, Combobox, command menu) one plate glides between rows (`duration-base`, `ease-out`): it appears in place on entry, freezes and fades on leave, keys move it at once, and it is off on touch, under - reduced motion and in forced colours. Nothing overshoots. Two kinds of thing loop, and nothing else: a mark that says work is running - (the ring, braille, a busy Button's ring, a busy TextButton's underline, the indeterminate Progress bar, Sparkline's loading line, Skeleton's pulse and a written field's fill), and a page's - one ambient loop, opacity only, in its art; `data-loops="held"` stops both. One figure on a page's first screen may draw its marks once + reduced motion and in forced colours. Nothing overshoots. Three kinds of thing loop, and nothing else: a mark that says work is running + (the ring, braille, a busy Button's ring, a busy TextButton's underline, the indeterminate Progress bar, Sparkline's loading line, Skeleton's pulse and a written field's fill), a + page's one ambient loop, opacity only, in its art, and an animated diagram's live lines; `data-loops="held"` stops all three. One figure on a page's first screen may draw its marks once at load on a first visit (`duration-figure` 600ms, `duration-stagger` 22ms, at rest on a second visit and under reduced motion); a traveller between two resting places on screen uses `ease-in-out` (a leg of 300ms up to 150px, 2ms a pixel above, 600ms from 300px); a filtered or sorted list or grid moves what stays by transform and never replaces an item (past 48 items that would move, it lands at once); a number beside a figure never counts up. The hold or printing settles a running entrance at once, and a page change without a reload counts as a load. @@ -192,6 +192,13 @@ Basalt has one owner (Bailey) and a design panel of two independent design revie each means. The drawn layout is used only when it fits (640, the track minimums, a clean seat for every label); otherwise stacked, in the author's order, at most 480 wide. Nothing is cut and nothing overlaps at any width. Ports, routes, groups and foreign keys are derived from one record each. A flowchart's shapes have a 3:1 contour. Tracing changes ink, never weight. The words are in the HTML before script. + Still by default; `motion="animated"` adds an entrance on view (each line draws once, every word at rest, inside five seconds) and, + where the data names them, a flow line (cuts, only while they move), a pulse (a bead) or a packet (a dot): one mover a figure, loops + only in view, and "Pause animations" in the figure's foot. A reduced-motion or forced-colours figure is still. Measuring a figure again + (the faces arriving, a resize) never restarts, hides or cuts short an entrance. An architecture card may carry its service's own mark, + 16px in the top end corner: the owner's file, never recoloured, a form for each ground, decoration beside the name, recorded in + `packages/react/marks/manifest.json`; a service without one is its name alone. In print a mark prints, and so does the fill of a + focal node that carries one (`print-color-adjust: exact`). - **Type:** Geist and Geist Mono at 400, 500 and 600 only, and a `Geist Fallback` face (local Arial, one face per weight) that reduces the shift when Geist arrives; it does not promise the same wrap at every width. - **Display type:** two roles a page writes, hero (96/96; 72/76 from 720 to 1023; 44/48 under 720) and display (72/76; 56/60; 36/40), made of the fixed diff --git a/Sources/BasaltTokens/Tokens.swift b/Sources/BasaltTokens/Tokens.swift index d9d0e909..05938a86 100644 --- a/Sources/BasaltTokens/Tokens.swift +++ b/Sources/BasaltTokens/Tokens.swift @@ -407,6 +407,18 @@ extension Basalt { dark: RGBA(red: 0, green: 0, blue: 0, alpha: 0.45) ) + /// A diagram card's rim while a mover rests on it: its arrival step (DECISIONS 292). 3:1 on levels 0 to 3. Under more contrast it steps to text-primary, because the rim it replaces is the input boundary's value there and secondary ink is under 3:1 against that. + public static let diagramHit = ThemedColor( + light: RGBA(red: 0.301921, green: 0.301921, blue: 0.301921, alpha: 1), + dark: RGBA(red: 0.730753, green: 0.730753, blue: 0.730753, alpha: 1) + ) + + /// The focal card's fill and edge while a mover rests on it: the primary action's hover value, a colour step of the fill (DECISIONS 292). Focal ink holds 4.5:1 on it at full strength and at opacity-amount. + public static let diagramFocalHit = ThemedColor( + light: RGBA(red: 0, green: 0, blue: 0, alpha: 1), + dark: RGBA(red: 1, green: 1, blue: 1, alpha: 1) + ) + /// The ground of drawn art and of a stage. It is the page colour, so a stage meets the page with no seam, and it is the stage's placeholder while the art loads. public static let artField = ThemedColor( light: RGBA(red: 0.980387, green: 0.980387, blue: 0.980387, alpha: 1), @@ -692,6 +704,10 @@ extension Basalt { public static let diagramHead: Double = 8 /// A sequence diagram's lifeline dash, on and off (4 on 4 off), unlike a message's 6 on 4 off (DECISIONS 281). public static let diagramGuideDash: Double = 4 + /// A diagram pulse's bead, along the line (DECISIONS 292); never more than two fifths of the line's visible length. + public static let diagramBead: Double = 24 + /// From one flow cut to the next on a diagram's live line (DECISIONS 292): a cut is size-cut, so 10 on, 2 off. + public static let diagramFlow: Double = 12 /// A range meter's marker: a dot, ringed size-cut in the colour of the surface (DECISIONS 153, consent row 14). public static let meterMarker: Double = 12 /// The top of a stage the art keeps quiet for the bar: size-header (56) plus space-6 (24). The top safe area is added by the layout CSS. No pixel of it passes art-quiet-limit, and a stage declares that the product's headroom check passed. diff --git a/docs/foundations.md b/docs/foundations.md index caea1663..bb0c3758 100644 --- a/docs/foundations.md +++ b/docs/foundations.md @@ -611,7 +611,7 @@ kept as a rule so both themes behave alike (DECISIONS 166). Four text levels wer pressed; `aria-pressed` or the switch's state says it is on): on a site, an icon-only ghost toggle (`LoopsToggleIcon`, which loads no `Switch`) with the core `pause` glyph, named by its `title` alone (the browser's own tooltip on a fine pointer; no `aria-label` beside it, so a screen reader hears the name once; no `Tooltip`) in the site header's end cluster, first in it (before any tools and the primary Button), on any page with an ambient loop or a loop that can run past five seconds; in an app, a pressed toggle in the head band of the view that shows running work, in either of two forms: the Button form (`form="button"`, - secondary or ghost, labelled "Pause animations") or the icon form (`LoopsToggleIcon`, the same ghost icon toggle as a site's), and a settings row (the + secondary or ghost, labelled "Pause animations", `size` `md` or `sm`) or the icon form (`LoopsToggleIcon`, the same ghost icon toggle as a site's), and a settings row (the label, the description "Moving art and spinners hold still. Your work keeps running.", and a `Switch`); and a command, "Pause animations", reading "Resume animations" while held. Nothing is announced when the hold changes: the control speaks its own state. **The app's own text is its part too:** while held, an elapsed time shows when the work @@ -684,7 +684,8 @@ selected washes and the smoked header do not change: the washes stay at their va selected wash put it at 3.5:1). The aliases are declared on every selector that sets a theme, after all of them, so the mode works in both themes and under a theme chosen with `data-theme`; each alias reads the theme of the element it is on. The contrast tests prove every text pair at 4.5:1 and every boundary at 3:1 in the mode too. A diagram's focal node draws its quiet ink at full strength, and its structure lines (`diagram-structure`) stay on the input boundary -as a chart's baseline does (DECISIONS 281). Status: decided by the council and approved by the owner +as a chart's baseline does (DECISIONS 281). A service mark does not change in the mode. A diagram card's arrival rim (`diagram-hit`) is drawn as `text-primary`: the rim it +replaces is the input boundary's value in the mode, and secondary ink is under 3:1 against that (DECISIONS 292). Status: decided by the council and approved by the owner (DECISIONS 138, 139 and 145); the implementation hasn't been reviewed. ### Accent classes @@ -1682,7 +1683,8 @@ owner's prototype, one draft, a check and a decision, revised after the final po **Status:** decided by the council (DECISIONS 281, a handoff); the implementation has not been reviewed. **The idea: the words are in the boxes, the lines say how they connect, and the key says what each line means.** A diagram is -monochrome. Nothing takes a colour, the accent or a status. One node may be focal, and it is inverted ink. +monochrome. Nothing takes a colour, the accent or a status, with one exception: a service's own mark on an architecture +card keeps its owner's colours ([Service marks](#service-marks)). One node may be focal, and it is inverted ink. ### The figure @@ -1763,7 +1765,78 @@ monochrome. Nothing takes a colour, the accent or a status. One node may be foca region. The SVG is `aria-hidden`. A layout change keeps focus on the same node, and never moves it, even into a stack with no stops. - **Tracing** a node (hover, or keyboard focus) lifts its lines to primary ink and dims the rest to `diagram-edge-dim`. It changes ink and never weight, dash or head, so the key stays true. There is no trace on touch, and a node is not a target. -- No motion in the drawing and no entrance. A trace's ink changes over `duration-fast`, at once under reduced motion. +- A diagram is still unless its author asks for motion (`motion="animated"`); see [Motion in a diagram](#motion-in-a-diagram). A + trace's ink changes over `duration-fast`, at once under reduced motion. + +### Motion in a diagram + +Decided by the council for the owner's handoff (DECISIONS 287 to 291 and 292). **Status:** the implementation has not been reviewed. + +Still is the default and is the drawing above, unchanged. Animated adds an entrance and, where the data names them, a flow line, a pulse +or a packet. Motion never carries a fact alone, and it runs only where lines are drawn. + +- **The entrance plays when the figure comes into view** (two fifths of the drawing, or of the window for a taller one), once a figure + a page load, on every figure that asks for it. It is not the page's one entrance and is not stored between visits. +- **Trace:** each line draws along its length at `speed-diagram-trace`, between `duration-diagram-line-min` and `-line-max`, on + `ease-in-out`, in the author's order (a schema's by where each starts), `duration-diagram-stagger` apart. A head fades in over + `duration-slow` as its line is 85% drawn. Each line is revealed on its own. +- **A sequence:** its messages go in order, `duration-diagram-step` apart. A message's label lifts from secondary to primary ink over + `duration-slower`, then its arrow draws over `duration-diagram-arrow`. +- **Every word is at rest in the first frame,** edge labels included. An entrance ends inside `duration-diagram-limit` (five seconds): + the stagger or the step shrinks to fit. +- **It never plays** when the figure is still, under reduced motion, in forced colours, under the hold or in print. **It settles at + once** when a node is hovered or focused, a key is pressed in the drawing, one of the figure's controls is used, the hold is set, the + page prints or the figure's data changes. +- **Measured again** (the faces arriving, a change of width, a parent's render), a figure whose lines are the same is not written to; a + pending figure stays pending on its new lines; a running entrance carries on, on the new lines, from the clock it started on, with + every line that was whole still whole; a layout with no lines is at rest. A loop starts again on the new lines. +- **Flow** (`flow` on a main or plain edge): cuts of `size-cut` in the ground colour every `size-diagram-flow` march toward the head at + `speed-diagram-flow`. Cuts exist only while they move: held, traced, still and printed, the line is solid, so the key stays true. A line + with under 48px showing does not flow. +- **Pulse** (`pulse`, a route of nodes): a solid bead of `size-diagram-bead`, at most two fifths of the line showing, one hairline proud + of its line on each side, at `speed-diagram-pulse`. It leaves from a card's edge and is taken in at the line's end, rests + `duration-diagram-rest` at each card, and starts again `duration-diagram-pause` after the route. +- **Packet** (`packet`, a route of nodes): a `size-dot` dot with a hairline ring in the ground colour. A leg runs at + `speed-diagram-packet`, between `duration-diagram-leg-min` and `-leg-max`, on `ease-in-out`; the dot stops `space-1` short of the line's + end, is taken in over `duration-base`, and rests `duration-diagram-rest`. It sends itself every `duration-diagram-repeat` (`repeat`), or + once for each new `send` value. +- **A card a mover rests on** takes its arrival step: its rim `diagram-hit`; the focal card's fill and edge `diagram-focal-hit`. +- **One mover a figure:** a pulse or a packet, never both. A second message waits for the first, and one may wait. Flow is a state of a + line and never runs on an edge the mover travels. +- **The loops** (flow, a pulse, a packet that repeats) run only while the figure is in view, the tab is showing and no node is traced. + `data-loops="held"` clears them to rest. A figure that can loop draws "Pause animations", the hold's own button (`LoopsToggle`'s + Button form at `size="sm"`), in its foot after "View as list" (WCAG 2.2.2). A trace stops them; they start again + `duration-diagram-pause` after it ends. Neither motion button prints. +- **A sequence's run** (`run`): "Play the run" sends one packet through every message in order. It may pass five seconds; while it + runs the button reads "Stop the run" and stops it. The hold does not stop it. +- **Reduced motion:** the figure is still; a run steps through its messages by colour alone. **Forced colours:** the figure is still; a + run's dot is `Highlight` with a `Canvas` ring. **More contrast:** a card's arrival rim is `text-primary`. **Print:** at rest, every + line whole. + +### Service marks + +Decided by the council for the owner's handoff (DECISIONS 287 to 291 and 292). **Status:** the implementation has not been reviewed. + +An architecture card may carry its service's own mark: 16px (`size-icon-sm`), in the top end corner inside the padding, with nothing +behind it. The card's first line keeps `space-6` clear of it. + +- **A mark is its owner's file and Basalt never recolours it.** It has a form for light grounds and a form for dark grounds; a card takes + the form for its ground, and the focal card the other theme's. A one-colour mark with one published file and no rule against it gets its + second form by swapping its one fill for white or black. Nothing else is done to a file but stripping what does not draw and fitting + the view box to the artwork. +- **A mark is decoration.** It is hidden from assistive technology and not drawn in forced colours, and it never carries a fact alone: + the card's words name the service. It is not a control or a status and does not change on hover, trace or arrival. +- **A mark is in Basalt's set only if** it is the owner's own file, has both forms, reads at 16px on every ground, holds no lettering, + and its ink is 3:1 on levels 1 to 3 in both themes. A service without one is its name alone, never a stand-in. On the dark theme's + focal card AWS's orange, green and teal and CodeRabbit's orange are 2.57 to 2.71:1; that is recorded and accepted, and the test names + them. **The exceptions** (the owner's word, DECISIONS 297): Jenkins, ServiceNow and BlazeMeter carry unofficial one-colour drawings + (Simple Icons' and Devicon's), black on light grounds and white on dark, and Bedrock carries AWS's service icon with its tile removed and + its glyph in the tile's teal. Each is marked unofficial in the manifest, with every edit made to the fetched file. +- **Each mark is recorded** in `packages/react/marks/manifest.json`: its source, the date fetched, its terms, its forms and what was done + to the file. Each is one module (`@srasyndicate/basalt/marks/<id>`), outside the package's index, and the HTML skill writes into a page + only the marks it names. The owner decided to bundle them and may remove any (DECISIONS 291). +- An app's own mark is `{ onLight, onDark }`, two URLs it has the right to show, drawn in the same seat. +- **In print** a mark prints (`print-color-adjust: exact`, with the `-webkit-` form), in the form of the theme the page prints in. ### Forced colours and more contrast @@ -1772,6 +1845,8 @@ monochrome. Nothing takes a colour, the accent or a status. One node may be foca it and every colour inside set by hand (Chromium otherwise paints a `Canvas` backplate under its words); the focus ring `Highlight`. - More contrast: the aliases apply. The focal node's quiet ink goes to full strength. `diagram-structure` and `diagram-edge-dim` are the input boundary and do not step. +- Print: the lines, the key's swatches, a card's mark and every focal node's fill (with a mark or without, DECISIONS 298) print whatever + the reader's "Background graphics" setting (`print-color-adjust: exact`, with the `-webkit-` form). ### Diagram tokens @@ -1794,6 +1869,30 @@ monochrome. Nothing takes a colour, the accent or a status. One node may be foca | `size-diagram-head` | 8px | An arrowhead's length and its width | | `size-diagram-guide-dash` | 4px | A lifeline's dash, on and off | +The motion tokens (DECISIONS 292). The motion tokens do not collapse under reduced motion: nothing they time runs there. + +| Token | Value | Use | +|---|---|---| +| `duration-diagram-line-min` | 400ms | The shortest a traced line takes to draw | +| `duration-diagram-line-max` | 900ms | The longest | +| `duration-diagram-stagger` | 220ms | Between one traced line's start and the next | +| `duration-diagram-step` | 320ms | Between one sequence message's start and the next | +| `duration-diagram-arrow` | 500ms | A sequence message's arrow drawing | +| `duration-diagram-limit` | 5000ms | An entrance ends inside it; the stagger or the step shrinks to fit | +| `duration-diagram-leg-min` | 500ms | The shortest leg of a packet | +| `duration-diagram-leg-max` | 1100ms | The longest | +| `duration-diagram-rest` | 400ms | A mover's rest at a stop, while the stop holds its arrival step | +| `duration-diagram-pause` | 1200ms | Between two runs of a pulse; and before loops resume after a trace | +| `duration-diagram-repeat` | 4000ms | Between a repeating packet landing and its next start | +| `speed-diagram-trace` | 300 | A traced line, in pixels a second, clamped by the two line durations | +| `speed-diagram-packet` | 250 | A packet's leg (4ms a pixel), clamped by the two leg durations | +| `speed-diagram-pulse` | 120 | A pulse's bead | +| `speed-diagram-flow` | 16 | A flow line's march | +| `size-diagram-bead` | 24px | A pulse's bead, along the line | +| `size-diagram-flow` | 12px | From one flow cut to the next (a cut is `size-cut`, so 10 on, 2 off) | +| `diagram-hit` | `text-secondary`; `text-primary` under more contrast | A card's rim while a mover rests on it | +| `diagram-focal-hit` | `action-primary-hover` (`#fff` dark, `#000` light) | The focal card's fill and edge while a mover rests on it | + Under more contrast `diagram-focal-rule` is drawn as `diagram-focal-rule-contrast` (`black-45` in dark, `white-38` in light: the other theme's input boundary, 1.18), the way the other aliases of that mode are declared. @@ -1993,6 +2092,8 @@ A picture in the flow is a distinct object, so a panel's geometry. `duration-stagger` is 22ms: the step between the marks of one figure entering, shrunk so every start falls within `duration-slow` of the first. Under reduced motion `duration-figure` is 100ms and `duration-stagger` is 0. +A diagram's own durations and speeds (`duration-diagram-*`, `speed-diagram-*`) are in [Motion in a diagram](#motion-in-a-diagram); +they time nothing but a diagram. Loops are not on this scale: they repeat while work is happening. `duration-loop-ring` is 640ms, `duration-loop-braille` 800ms, `duration-loop-fade` 1200ms and `duration-loop-ambient` 6000ms, the middle period of a page's @@ -2012,9 +2113,10 @@ else (no row, card, menu item, command row or the parts of a field; there is no Combobox, Popover, Tooltip) enters from opacity 0 and scale .98, from where it grew (`--transform-origin`), with no offset, in `duration-base` on `ease-out`, and leaves at three quarters of that on `ease-in`. A Dialog enters the same way from its own centre (it grows from no opener), in `duration-slow`, and leaves at three quarters of that on `ease-in`. The horizontal tab underline, and the panel that moves 8px with it, run on -`duration-slow` `ease-out`; the panel never remounts. Two kinds of thing loop, and nothing else: a mark that says work is running -(the ring, braille, a busy Button's ring, a busy TextButton's underline, the indeterminate Progress bar, Sparkline's loading line, Skeleton's pulse and a written field's fill), and a page's -one ambient loop, opacity only, in its art; `data-loops="held"` stops both. +`duration-slow` `ease-out`; the panel never remounts. Three kinds of thing loop, and nothing else: a mark that says work is running +(the ring, braille, a busy Button's ring, a busy TextButton's underline, the indeterminate Progress bar, Sparkline's loading line, Skeleton's pulse and a written field's fill), a +page's one ambient loop, opacity only, in its art, and an animated diagram's live lines (a flow line, a pulse, a packet that repeats); +`data-loops="held"` stops all three. **The sliding pill.** A one-of-many control, the segmented control and vertical tabs, holds one pill, and it slides to the chosen item by `transform` and size (`width`, and `height` for the vertical list) on `duration-slow` and `ease-out`, @@ -2070,6 +2172,8 @@ change without a reload counts as a load (DECISIONS 143): the app tells the entr with nothing reported, the document's own clock is used. A path reached that way is stored as seen when its entrance finishes or gives way. The skill's chart glides every mark from where it is drawn when a new data set arrives mid-entrance, as React's does. One a page, and only for a figure whose marks carry the page's point: a `Chart` with `entrance`. A brand mark's own entrance is the brand player's rule and is not counted here. Status: decided by the council (DECISIONS 136) and approved by the owner (DECISIONS 139); the implementation hasn't been reviewed. +A diagram's entrance is a rule of its own and is not this one: it plays when its figure comes into view, on every figure that asks for +it ([Motion in a diagram](#motion-in-a-diagram)). **Travel.** A traveller that leaves a resting place and stops at another on screen, carrying something the reader follows, moves by transform on `ease-in-out`: a leg is `duration-slower` up to 150px, 2ms a pixel above that, and `duration-figure` from 300px (so a @@ -2079,7 +2183,8 @@ two in flight a third lands the oldest at once, its outcome written. Under reduc with a 100ms fade and the outcome is written at once. The hold does not stop a travel the reader started, and nothing sends itself under it. The timing is `travelLeg`, `travelRun` and `createTravellers`, exported; a run ends inside five seconds for every plan it accepts (no leg is made shorter than 100ms, and a plan whose rests and shortest legs cannot fit, more than 17 legs, 16 stops, is refused with an error); `TravelSpinner` keeps its single `duration-slower` leg, because it answers an accept in an app. Anything that answers a pointer or key in place (the pill, the plate), an entry or exit, -scroll and a loop is not a travel. Status: decided by the council (DECISIONS 136) and approved by the owner (DECISIONS 139); the implementation hasn't been reviewed. +scroll and a loop is not a travel. Basalt's own diagrams move their packet on slower legs of their own, hold one mover at a time and let a run the reader starts pass five +seconds with a button that stops it ([Motion in a diagram](#motion-in-a-diagram)). The hold still never stops what the reader started. Status: decided by the council (DECISIONS 136) and approved by the owner (DECISIONS 139); the implementation hasn't been reviewed. **An ambient loop.** One a page, only in its art (a `Stage`'s art or a framed drawing; a closing block's art is held still, DECISIONS 162), and never on text, a control, a data mark, a panel, a rim, a block or anything that carries information. Opacity only, from 1 to 0.2 and back on `ease-in-out`: no translate, @@ -2120,7 +2225,8 @@ The components and what each does are in [Motion and primitives](motion.md). Basalt has a core set of its own, drawn by the design council (decisions 38 to 40, 54 and 55): the core actions, navigation and Blacksand's product nouns. Each glyph is a module of `@srasyndicate/basalt` (`HomeGlyph`), and the long tail is Phosphor (MIT), Bold at 16, 20 and 24. -A product's own logo is its own; the social marks are Phosphor's (below). +A product's own logo is its own; the social marks are Phosphor's (below). A diagram's service marks are not icons: they are their owners' files, in their owners' colours, with rules of their own +([Service marks](#service-marks)). - **Which set draws a glyph.** Wherever a component draws check, close, the chevrons, copy, plus, minus or search, it draws the core set's glyph; Phosphor Bold draws what the core set lacks (the status marks, the sort caret, the social @@ -2252,9 +2358,9 @@ for large; 2 from 480 and 4 from 960 of the container for small) and the breakpo superellipse of exponent 5 at every size and takes no radius**; the hairline follows it, drawn over the picture and half a pixel outside it, `border-hairline`, non-scaling. It is flat: a tile in the flow does not float, so no shadow. Nothing is drawn over the picture, and none is recoloured, dimmed, cropped, turned or animated. Sizes: 20, 32, 36, 40, 44, 48 and 52 (or the parent's, square). It is decorative (`aria-hidden`), **always beside the company's name,** and not drawn in -forced colours. Each tile carries its own clip, so none can be left unclipped by a page that forgot a definition. **Basalt ships no company's icon file,** in the +forced colours. Each tile carries its own clip, so none can be left unclipped by a page that forgot a definition. **Basalt ships no company's picture for a tile,** in the package, the reference or the skill: the tile shows what a product has the right to show, and the tests and the round use a neutral stand-in. There is no -fallback when the picture is missing. +fallback when the picture is missing. The one set of company files Basalt ships is a diagram's service marks, by the owner's decision ([Service marks](#service-marks)). ### The period stepper diff --git a/docs/motion.md b/docs/motion.md index 64c14b9f..29ff3f12 100644 --- a/docs/motion.md +++ b/docs/motion.md @@ -77,6 +77,14 @@ A traveller that leaves a resting place and stops at another, carrying something One a page, only in its art, opacity only, from 1 to 0.2 and back on `ease-in-out`; each mark runs 0.6 to 1.4 times `duration-loop-ambient` with its own phase; a looping mark is no wider than `size-dot` and a page has at most 24. It joins the hold, and is still under reduced motion, in forced colours and in print. `LoopsToggle` is the control. A closing block's art (`Stage closing`) is held still: its marks stay at full opacity, because the page's one loop is the top stage's (DECISIONS 162, vote 2). Status: decided by the council (DECISIONS 136) and approved by the owner (DECISIONS 139); the implementation hasn't been reviewed. +## A diagram's motion + +A diagram is still unless its author asks for motion (`motion="animated"`). Still is the default and is the drawing as merged, unchanged. +Animated adds an entrance and, where the data names them, a flow line, a pulse or a packet. Motion never carries a fact alone, and it runs +only where lines are drawn. The entrance plays when the figure comes into view and is not the page's one entrance; the loops join the hold. +The rules and the tokens are in [Motion in a diagram](foundations.md#motion-in-a-diagram). Status: decided by the council (DECISIONS 287 +to 291 and 292); the implementation hasn't been reviewed. + ## The hover glide Menu, Select, Combobox and CommandMenu draw one plate per popup, and navigation draws one pill per list, which follows the pointer between rows on `duration-base` and `ease-out`, whatever the distance. Each row's own plate is the fallback and stays correct with no script. Base UI's `data-highlighted` (and cmdk's `data-selected`) stays the authority for which row is active; the glide only paints it, and an input-modality check decides whether the plate travels (pointer) or snaps (keyboard). diff --git a/packages/react/README.md b/packages/react/README.md index 14070534..9abd7bf1 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -252,7 +252,7 @@ None of these changes how anything looks: each is an option Base UI already had, | `ThemeChoiceControl`, `ThemeMenu` | System, Light and Dark on `useTheme`: `ThemeChoiceControl` is a radio group in the segmented control's drawing for a footer or a settings row; `ThemeMenu` is a ghost icon button named "Theme: System" opening three radio rows, for an app with no footer. `themeBootstrap` writes `data-theme-choice` beside `data-theme`, and CSS draws the chosen word from it before any script. | | `SiteBrand`, `SiteNav`, `SiteNavList`, `SiteNavLink`, `SiteMenu`, `SiteLockupDefs` | The parts a site's own bar and footer are built from (DECISIONS 146 C, F): the brand link (with `lockup={{ x1, x2 }}`, each drawing `{ viewBox, d }` (`lockupDrawing(file)` reads it from the text of the brand file), defined once as a `symbol`), the pill link list (`size` `md` or `sm`, `orientation`, `hang`), and the narrow menu's trigger and sheet. `SiteHeader`'s slots are `brand` (or `lockup`), `links`, `tools` and `action`; `themeToggle` is deprecated and kept for one release. | | `useSitePhase`, `SitePhaseSlot` | A bar that arrives, or leaves and returns (DECISIONS 146 D): `useSitePhase(headerRef, { after })` reports `rest`, `between` and `pinned` from one observer on two sentinels and writes `data-phase`, `data-form` and `data-motion`; `SiteHeader` takes `phase={{ after }}` and draws its slot. | -| `LoopsToggle`, `LoopsToggleIcon`, `LOOPS_TOGGLE_NAME`, `LOOPS_TOGGLE_DESCRIPTION` | The hold on every loop, on `useLoops`: `form="icon"` (default; an icon-only ghost toggle with the core `pause` glyph, named by its `title` alone, for `SiteHeader`'s `loopsToggle` slot, first in the end cluster; import `LoopsToggleIcon` to load no `Switch`), `form="button"` (a pressed-toggle Button; `SiteHeader` draws it as its narrow menu's first row when `loopsToggle` is passed) or `form="switch"` (a settings row with the description "Moving art and spinners hold still. Your work keeps running."). The name is always "Pause animations" (`LOOPS_TOGGLE_NAME`); `LOOPS_TOGGLE_DESCRIPTION` is the settings row's description. | +| `LoopsToggle`, `LoopsToggleIcon`, `LOOPS_TOGGLE_NAME`, `LOOPS_TOGGLE_DESCRIPTION` | The hold on every loop, on `useLoops`: `form="icon"` (default; an icon-only ghost toggle with the core `pause` glyph, named by its `title` alone, for `SiteHeader`'s `loopsToggle` slot, first in the end cluster; import `LoopsToggleIcon` to load no `Switch`), `form="button"` (a pressed-toggle Button, `size="md"` or `"sm"`; `SiteHeader` draws it as its narrow menu's first row when `loopsToggle` is passed) or `form="switch"` (a settings row with the description "Moving art and spinners hold still. Your work keeps running."). The name is always "Pause animations" (`LOOPS_TOGGLE_NAME`); `LOOPS_TOGGLE_DESCRIPTION` is the settings row's description. | | `PairedArt` | A stage's art in two versions, `dark` and `light` (URLs; `position`, `loading`, `width`, `height`), the page's theme choosing: the one for `[data-theme]` or `.dark` or `.light`, else the system's. Decorative (empty `alt`), never filtered. | | `FramedArt`, `Stage` with `art`, `fit`, `anchor` | Drawn art (an inline `svg` or `canvas`) in the same frame as a picture (`art` in place of `src`), or in a `Stage` (which takes the same two): it keeps its proportions and fills the box (`fit="slice"`, the default for both; `meet` shows all of it). A drawing's own `preserveAspectRatio` stands unless a `fit` or an `anchor` is passed, held at its `anchor` (`"end floor"`), and its lines do not scale. `checkHeadroom` reads each `data-quiet` box grown by `space-1-5` (DECISIONS 146 F). | | `Stage closing` | The closing block at a page's end (DECISIONS 162, vote 2): level 0 on `art-field`, no headroom marker and no pull-up (`headroom` has no effect), `--basalt-section-gap` above it and as its top padding, `--basalt-stage-room` (the app's) as its bottom padding (`space-16` in forced colours and print). Its art is held still: a `data-ambient` mark in it is drawn at full opacity and does not loop. Its marks keep out of its `data-quiet` zones at every width (pixels inside the top padding, not a percentage of its height); `checkHeadroom` reads a closing block with `stage: ".basalt-stage[data-closing]"` (only its zones, no headroom). At most one, at the end; the stage at the top stays the page's one. | diff --git a/packages/react/THIRD-PARTY-MARKS.md b/packages/react/THIRD-PARTY-MARKS.md new file mode 100644 index 00000000..5ca3eacb --- /dev/null +++ b/packages/react/THIRD-PARTY-MARKS.md @@ -0,0 +1,73 @@ +<!-- Generated by packages/react/marks/generate.mjs from marks/manifest.json. Do not edit. --> +# Third-party marks + +`@srasyndicate/basalt/marks/*` holds service marks for a diagram's architecture cards (DECISIONS 292). Each is its owner's own file, as its owner +publishes it, with only what does not draw stripped, its view box fitted to its artwork and, where noted, its one fill swapped for white for dark grounds. +The exceptions are marked **unofficial** below (DECISIONS 297): a drawing that is not its owner's own file (from Simple Icons or Devicon), or an owner's +file edited before the steps above; the manifest records each edit. + +**Each mark is a trademark of its owner.** None is under this package's licence, and showing one implies no endorsement by, or affiliation with, its +owner. Use each as its owner's terms allow; the terms that matter are quoted in `marks/manifest.json` in the Basalt repository, with each file's +source, the date it was fetched and its hash. A mark is removed by deleting its manifest entry and its source file. + +## Amazon Web Services, Inc. + +Application Load Balancer (`aws-application-load-balancer`), Network Load Balancer (`aws-network-load-balancer`), Amazon CloudFront distribution (`aws-cloudfront-distribution`), Amazon Route 53 hosted zone (`aws-route-53-hosted-zone`), Amazon API Gateway endpoint (`aws-api-gateway-endpoint`), Amazon VPC internet gateway (`aws-internet-gateway`), Amazon VPC NAT gateway (`aws-nat-gateway`), Amazon ECS service (`aws-ecs-service`), Amazon ECS task (`aws-ecs-task`), Amazon ECR registry (`aws-ecr-registry`), Amazon EC2 instance (`aws-ec2-instance`), AWS Lambda function (`aws-lambda-function`), Amazon S3 bucket (`aws-s3-bucket`), Amazon DynamoDB table (`aws-dynamodb-table`), Amazon SQS queue (`aws-sqs-queue`), Amazon EventBridge event bus (`aws-eventbridge-event-bus`), Amazon CloudWatch Logs (`aws-cloudwatch-logs`), Amazon CloudWatch alarm (`aws-cloudwatch-alarm`), AWS Systems Manager Parameter Store (`aws-parameter-store`), AWS IAM role (`aws-iam-role`), Amazon SageMaker AI model (`aws-sagemaker-model`), Amazon Bedrock (`aws-bedrock`, unofficial), Client (`aws-client`), Mobile client (`aws-mobile-client`), User (`aws-user`), Users (`aws-users`), Internet (`aws-internet`), Server (`aws-server`), Database (`aws-database`), Generic application (`aws-application`), Git repository (`aws-git-repository`), Email (`aws-email`). + +Source: https://aws.amazon.com/architecture/icons/. Terms: https://aws.amazon.com/architecture/icons/. + +## Temporal Technologies Inc. + +Temporal (`temporal`). + +Source: https://temporal.io/brand. Terms: https://temporal.io/brand. + +## SonarSource SA + +SonarQube (`sonarqube`). + +Source: https://www.sonarsource.com/company/press-kit/. Terms: https://www.sonarsource.com/brand-identity/. + +## GitHub, Inc. + +GitHub (`github`). + +Source: https://brand.github.com/foundations/logo. Terms: https://github.com/logos. + +## CodeRabbit Inc. + +CodeRabbit (`coderabbit`). + +Source: https://www.coderabbit.ai/brand. Terms: https://www.coderabbit.ai/brand. + +## Greptile, Inc. + +Greptile (`greptile`). + +Source: https://www.greptile.com. Terms: https://www.greptile.com. + +## Blacksmith Software Inc. + +Blacksmith (`blacksmith`). + +Source: https://www.blacksmith.sh. Terms: https://www.blacksmith.sh. + +## LF Charities, Inc. + +Jenkins (`jenkins`, unofficial). + +Source: https://simpleicons.org/?q=jenkins. Terms: https://www.jenkins.io/project/trademark/. + +The Jenkins head is Simple Icons' drawing of the Jenkins logo by jenkins.io (https://get.jenkins.io/art/), CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/), made one-colour. + +## ServiceNow, Inc. + +ServiceNow (`servicenow`, unofficial). + +Source: https://github.com/devicons/devicon/tree/develop/icons/servicenow. Terms: https://github.com/devicons/devicon/blob/develop/LICENSE. + +## Perforce Software, Inc. + +BlazeMeter (`blazemeter`, unofficial). + +Source: https://simpleicons.org/?q=blazemeter. Terms: https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/LICENSE.md. diff --git a/packages/react/build.mjs b/packages/react/build.mjs index 0053c961..7ace96f1 100644 --- a/packages/react/build.mjs +++ b/packages/react/build.mjs @@ -76,6 +76,25 @@ await esbuild.build({ banner: { js: `"use client";` }, }); +// The diagrams' motion is the third (an animated figure loads it the first time it is drawn, diagram-figure.tsx), built the same way and for the same reason: it +// draws the foot's two buttons with Button and the hold's state (useLoops), and in the main build those would become chunks that every ordinary import then loads +// (Spinner paid 16 KB for them). Inlined here, it shares no file with the rest of the package: even importing ./loops.js from it put loops.ts in every +// import's static graph (an app's bundler assigns the shared chunk before it shakes). Its copy of the hold's state keeps in step with the page's through the +// root's data-loops attribute, which every copy watches (loops.ts). A glyph change in its buttons still loads the one glyph engine (./glyph-flight.js). +await esbuild.build({ + bundle: true, + format: "esm", + platform: "neutral", + target: "es2022", + jsx: "automatic", + logLevel: "warning", + entryPoints: [path.join(here, "src/diagram-motion.tsx")], + outdir: dist, + external: external.filter((name) => !name.startsWith("@phosphor-icons")), + plugins: [{ name: "lazy-flight", setup(build) { build.onResolve({ filter: /^\.\/glyph-flight$/ }, (args) => (args.kind === "dynamic-import" ? { path: "./glyph-flight.js", external: true } : undefined)); } }], + banner: { js: `"use client";` }, +}); + // The root's map for the imports plugin (src/tooling/imports.ts): every name the root exports at run time, and the module that holds it, read from the barrel's source. // `export * from "./glyph-set"` is the one star, and glyph-set is itself a list of `export { X } from "./glyphs/x"`: each glyph maps to its own module. Every // `export` statement in the barrel must be one of the three forms below (`export { … } from "./x";`, `export type { … } from "./x";`, `export * from "./x";`, double @@ -116,15 +135,18 @@ await esbuild.build({ // The core glyphs are modules of their own (src/glyphs), so an app that imports HomeGlyph bundles only HomeGlyph. entryPoints: [ // index.ts is not bundled: it is a barrel of `export { … } from "./module"` and is written as one, below, so each export comes from the module that holds it. - ...fs.readdirSync(path.join(here, "src")).filter((f) => /\.tsx?$/.test(f) && !f.endsWith(".d.ts") && f !== "command-panel.tsx" && f !== "glyph-flight.tsx" && f !== "index.ts").map((f) => path.join(here, "src", f)), + ...fs.readdirSync(path.join(here, "src")).filter((f) => /\.tsx?$/.test(f) && !f.endsWith(".d.ts") && !["command-panel.tsx", "glyph-flight.tsx", "diagram-motion.tsx", "diagram-motion-core.ts", "index.ts"].includes(f)).map((f) => path.join(here, "src", f)), ...fs.readdirSync(path.join(here, "src", "glyphs")).filter((f) => /\.ts$/.test(f)).map((f) => path.join(here, "src", "glyphs", f)), + // The service marks (DECISIONS 292, 2.6): one module a mark under dist/marks, at @srasyndicate/basalt/marks/<id>, never imported by the index, so an + // app pays for the marks it imports and no others. Generated by marks/generate.mjs. + ...fs.readdirSync(path.join(here, "src", "marks")).filter((f) => /\.ts$/.test(f)).map((f) => path.join(here, "src", "marks", f)), // Development tooling (the headroom check): its own entry under dist/testing, imported by no component and not exported from the root. ...fs.readdirSync(path.join(here, "src", "testing")).filter((f) => /\.ts$/.test(f)).map((f) => path.join(here, "src", "testing", f)), // Build tooling (the opt-in Phosphor weights plugin): its own entry under dist/tooling, at @srasyndicate/basalt/phosphor. ...fs.readdirSync(path.join(here, "src", "tooling")).filter((f) => /\.ts$/.test(f)).map((f) => path.join(here, "src", "tooling", f)), ], define: { __PHOSPHOR_NOTICE__: JSON.stringify(phosphorNotice), __BASALT_ROOT_MAP__: JSON.stringify(JSON.stringify(rootMap)) }, - plugins: [{ name: "lazy-modules", setup(build) { build.onResolve({ filter: /^\.\/(command-panel|glyph-flight)$/ }, (args) => (args.kind === "dynamic-import" ? { path: `${args.path}.js`, external: true } : undefined)); } }], + plugins: [{ name: "lazy-modules", setup(build) { build.onResolve({ filter: /^\.\/(command-panel|glyph-flight|diagram-motion)$/ }, (args) => (args.kind === "dynamic-import" ? { path: `${args.path}.js`, external: true } : undefined)); } }], outdir: dist, bundle: true, splitting: true, @@ -177,7 +199,7 @@ const needsClient = (file, seen = new Set()) => { seen.add(file); return staticImports(fs.readFileSync(path.join(dist, file), "utf8")).some((specifier) => clientImport.test(specifier) || (/^\.\/chunk-/.test(specifier) && needsClient(specifier.slice(2), seen))); }; -for (const file of fs.readdirSync(dist, { recursive: true }).filter((f) => f.endsWith(".js") && !path.basename(f).startsWith("chunk-") && f !== "command-panel.js" && f !== "glyph-flight.js")) { +for (const file of fs.readdirSync(dist, { recursive: true }).filter((f) => f.endsWith(".js") && !path.basename(f).startsWith("chunk-") && !["command-panel.js", "glyph-flight.js", "diagram-motion.js"].includes(f))) { const code = fs.readFileSync(path.join(dist, file), "utf8"); if (needsClient(file)) fs.writeFileSync(path.join(dist, file), `"use client";\n${code}`); } diff --git a/packages/react/marks/clean.mjs b/packages/react/marks/clean.mjs new file mode 100644 index 00000000..43a753f4 --- /dev/null +++ b/packages/react/marks/clean.mjs @@ -0,0 +1,45 @@ +// What is done to an owner's file, and nothing else (DECISIONS 292, 2.3): what does not draw is stripped (the XML declaration, comments, +// metadata, title, desc and editor attributes), the view box is set to the artwork's own bounds, and, where the manifest says so, a one-colour +// mark's one fill is swapped for white or black. No path, proportion, opacity or other colour is changed, and no number in a path is rounded. +// Shared by fit.mjs (which works the bounds out once) and generate.mjs (which writes the modules from the recorded bounds). + +/** The file with what does not draw taken out. Its drawing is untouched. */ +export function strip(svg) { + let out = svg + .replace(/<\?xml[\s\S]*?\?>/g, "") + .replace(/<!--[\s\S]*?-->/g, "") + .replace(/<metadata[\s\S]*?<\/metadata>/g, "") + .replace(/<title[\s\S]*?<\/title>/g, "") + .replace(/<desc[\s\S]*?<\/desc>/g, ""); + // An id nothing refers to is an editor's (Illustrator's layer names, Sketch's paths); one a clip path or a gradient is found by stays. + const used = new Set([...out.matchAll(/url\(#([^)]+)\)|href="#([^"]+)"/g)].map((m) => m[1] ?? m[2])); + out = out.replace(/\sid="([^"]*)"/g, (all, id) => (used.has(id) ? all : "")); + // The root's editor attributes: its version, its place, xml:space and Illustrator's enable-background; xlink's namespace where nothing uses it. + out = out.replace(/<svg\b[^>]*>/, (tag) => { + let t = tag.replace(/\s(version|x|y|xml:space)="[^"]*"/g, "").replace(/\sstyle="enable-background:[^"]*"/g, ""); + if (!/xlink:/.test(out.replace(tag, ""))) t = t.replace(/\sxmlns:xlink="[^"]*"/, ""); + return t.replace(/\s+>$/, ">"); + }); + // White space between tags draws nothing. + return out.replace(/>\s+</g, "><").trim(); +} + +/** The root's view box set to `box` (x, y, width, height), and its width and height to the box's, so its intrinsic size is the artwork's. */ +export function fit(svg, box) { + const [x, y, w, h] = box; + return svg.replace(/<svg\b[^>]*>/, (tag) => { + const t = tag.replace(/\s(viewBox|width|height)="[^"]*"/g, ""); + return t.replace(/^<svg/, `<svg width="${w}" height="${h}" viewBox="${x} ${y} ${w} ${h}"`); + }); +} + +/** The one swap of 2.2: every use of the mark's one fill (in an attribute or a style rule, any case) as `to`. */ +export function swap(svg, from, to) { + const hex = from.replace(/^#/, ""); + return svg.replace(new RegExp(`#${hex}\\b`, "gi"), to); +} + +/** The drawing as a data URI for a CSS `url("…")`: quotes as single quotes, and the characters a URL cannot carry escaped. */ +export function dataUri(svg) { + return `data:image/svg+xml,${svg.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ")}`; +} diff --git a/packages/react/marks/fit.mjs b/packages/react/marks/fit.mjs new file mode 100644 index 00000000..6448735a --- /dev/null +++ b/packages/react/marks/fit.mjs @@ -0,0 +1,58 @@ +// Works out each mark's view box from its artwork once, and records it in manifest.json (DECISIONS 292, 2.3): each form is drawn in Chromium at +// 2048px on its longer side and the box is the smallest one that holds every pixel it inks, stroke, clip and all, outward to a hundredth of a unit. +// The numbers are then the manifest's, so generate.mjs makes the same files on every machine. Run it when a source file is added or replaced: +// node packages/react/marks/fit.mjs +import fs from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +import { chromium } from "playwright"; + +import { launchOptions } from "../../../scripts/chromium-launch.mjs"; +import { dataUri, strip, swap } from "./clean.mjs"; + +const here = path.dirname(fileURLToPath(import.meta.url)); +const manifestFile = path.join(here, "manifest.json"); +const manifest = JSON.parse(fs.readFileSync(manifestFile, "utf8")); +const read = (file) => fs.readFileSync(path.join(here, "source", file), "utf8"); +const SIDE = 2048; + +const browser = await chromium.launch(launchOptions()); +const page = await browser.newPage(); +await page.setContent("<!doctype html><canvas></canvas>"); +const bounds = (uri) => page.evaluate(async ({ uri, side }) => { + const img = new Image(); + img.src = uri; + await img.decode(); + const vb = new DOMParser().parseFromString(decodeURIComponent(uri.slice(uri.indexOf(",") + 1)), "image/svg+xml").documentElement.getAttribute("viewBox").split(/[\s,]+/).map(Number); + const scale = side / Math.max(vb[2], vb[3]); + const w = Math.ceil(vb[2] * scale), h = Math.ceil(vb[3] * scale); + const canvas = document.querySelector("canvas"); + canvas.width = w; canvas.height = h; + const ctx = canvas.getContext("2d"); + ctx.clearRect(0, 0, w, h); + ctx.drawImage(img, 0, 0, w, h); + const { data } = ctx.getImageData(0, 0, w, h); + let l = w, t = h, r = -1, b = -1; + for (let y = 0; y < h; y++) for (let x = 0; x < w; x++) if (data[(y * w + x) * 4 + 3] > 0) { if (x < l) l = x; if (x > r) r = x; if (y < t) t = y; if (y > b) b = y; } + const down = (v) => Math.floor(v * 100) / 100, up = (v) => Math.ceil(v * 100) / 100; + const x0 = down(vb[0] + l / scale), y0 = down(vb[1] + t / scale), x1 = up(vb[0] + (r + 1) / scale), y1 = up(vb[1] + (b + 1) / scale); + return [x0, y0, Math.round((x1 - x0) * 100) / 100, Math.round((y1 - y0) * 100) / 100]; +}, { uri, side: SIDE }); + +for (const mark of manifest.marks) { + mark.viewBox = {}; + const changes = new Set(); + for (const form of ["light", "dark"]) { + const file = mark.forms[form] === "swapped" ? mark.forms.light : mark.forms[form]; + let svg = strip(read(file)); + if (svg !== read(file).replace(/>\s+</g, "><").trim()) changes.add("stripped"); + if (mark.forms[form] === "swapped") { svg = swap(svg, mark.swap.from, mark.swap.to); changes.add("swapped"); } + mark.viewBox[form] = await bounds(dataUri(svg)); + changes.add("fitted"); + } + mark.changes = ["stripped", "fitted", "swapped"].filter((c) => changes.has(c)); + console.log(mark.id.padEnd(32), JSON.stringify(mark.viewBox), mark.changes.join(", ")); +} +await browser.close(); +fs.writeFileSync(manifestFile, `${JSON.stringify(manifest, null, 1)}\n`); diff --git a/packages/react/marks/generate.mjs b/packages/react/marks/generate.mjs new file mode 100644 index 00000000..66f331d0 --- /dev/null +++ b/packages/react/marks/generate.mjs @@ -0,0 +1,106 @@ +// Writes the service marks (DECISIONS 292, 2.5 and 2.6) from manifest.json and the owners' files in source/, as the glyphs' generator writes the +// glyphs: one module a mark (packages/react/src/marks/<id>.ts, reached at @srasyndicate/basalt/marks/<id>, never from the package's index) and the HTML +// skill's part (tools/html-skill/src/marks.json, every mark, from which compose.mjs writes into a page only the marks it names). Each source file's +// hash is checked first, and no file in source/ may be unlisted. A file is never edited by hand: change the manifest or the source and run +// node packages/react/marks/generate.mjs +import crypto from "node:crypto"; +import fs from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +import { dataUri, fit, strip, swap } from "./clean.mjs"; + +const here = path.dirname(fileURLToPath(import.meta.url)); +const repo = path.join(here, "..", "..", ".."); +const manifest = JSON.parse(fs.readFileSync(path.join(here, "manifest.json"), "utf8")); +const sourceDir = path.join(here, "source"); +const read = (file) => fs.readFileSync(path.join(sourceDir, file)); + +/** Every field the decision asks of an entry (2.5). */ +export const FIELDS = ["id", "name", "says", "owner", "source", "file", "release", "fetched", "sha256", "terms", "forms", "ink", "changes", "viewBox", "departures"]; + +/** A mark's two forms as SVG markup: the owner's file with only 2.3's changes, by the manifest. */ +export function forms(mark) { + const out = {}; + for (const form of ["light", "dark"]) { + const file = mark.forms[form] === "swapped" ? mark.forms.light : mark.forms[form]; + let svg = strip(read(file).toString("utf8")); + if (mark.forms[form] === "swapped") svg = swap(svg, mark.swap.from, mark.swap.to); + out[form] = fit(svg, mark.viewBox[form]); + } + return out; +} + +/** The export's name: aws-ecs-service is awsEcsService. */ +export const exportName = (id) => id.replace(/-([a-z0-9])/g, (_, c) => c.toUpperCase()); + +function check() { + const listed = new Set(); + for (const mark of manifest.marks) { + for (const field of FIELDS) if (mark[field] === undefined) throw new Error(`marks: ${mark.id} has no ${field}`); + if (!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(mark.id)) throw new Error(`marks: "${mark.id}" is not a lowercase id`); + for (const [file, hash] of Object.entries(mark.sha256)) { + const actual = crypto.createHash("sha256").update(read(file)).digest("hex"); + if (actual !== hash) throw new Error(`marks: ${file} does not match its recorded hash (${actual})`); + listed.add(file); + } + for (const form of ["light", "dark"]) if (mark.forms[form] !== "swapped" && !mark.sha256[mark.forms[form]]) throw new Error(`marks: ${mark.id}'s ${form} form, ${mark.forms[form]}, has no hash`); + if (mark.unofficial && !mark.edits?.every((e) => mark.sha256[e.from] && mark.sha256[e.to] && e.edit)) throw new Error(`marks: ${mark.id} is unofficial and must record each edit, from a hashed file to a hashed file`); + } + const files = fs.readdirSync(sourceDir, { recursive: true }).filter((f) => fs.statSync(path.join(sourceDir, f)).isFile()).map((f) => f.split(path.sep).join("/")); + const unlisted = files.filter((f) => !listed.has(f)); + if (unlisted.length) throw new Error(`marks: ${unlisted.join(", ")} in source/ is in no manifest entry`); +} + +if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { + check(); + const outDir = path.join(repo, "packages", "react", "src", "marks"); + fs.rmSync(outDir, { recursive: true, force: true }); + fs.mkdirSync(outDir, { recursive: true }); + const skill = {}; + for (const mark of manifest.marks) { + const f = forms(mark); + const onLight = dataUri(f.light), onDark = dataUri(f.dark); + skill[mark.id] = onDark === onLight ? { onLight } : { onLight, onDark }; + fs.writeFileSync(path.join(outDir, `${mark.id}.ts`), [ + "// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit.", + `// ${mark.name} is a trademark of ${mark.owner.replace(/\.$/, "")}. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md).`, + `// Source: ${mark.source}. Changes: ${mark.changes.join(", ")} (DECISIONS 292, 2.3).`, + // An unofficial mark (DECISIONS 297) says so, with each edit made to the fetched file before the pipeline's own. + ...(mark.unofficial ? [`// Unofficial: not its owner's own file (DECISIONS 297). Edits: ${mark.edits.map((e) => e.edit).join(" ")}`] : []), + 'import type { DiagramMark } from "../diagram-core";', + "", + `/** ${mark.unofficial ? `An unofficial mark for ${mark.name}` : `${mark.name}'s own mark`} for an architecture card (\`mark\` on ArchitectureNode). The card's words must name the service: ${mark.says.map((s) => `"${s}"`).join(", ")}. */`, + `export const ${exportName(mark.id)}: DiagramMark = {`, + ` onLight: ${JSON.stringify(onLight)},`, + // A mark with one form for both grounds writes it once: onDark defaults to onLight. + ...(onDark === onLight ? [] : [` onDark: ${JSON.stringify(onDark)},`]), + ` says: ${JSON.stringify(mark.says)},`, + "};", + "", + ].join("\n")); + } + fs.writeFileSync(path.join(repo, "tools", "html-skill", "src", "marks.json"), `${JSON.stringify({ $comment: "Generated by packages/react/marks/generate.mjs from packages/react/marks/manifest.json. Do not edit. Every bundled mark's two forms as data URIs; compose.mjs writes into a page only the marks it names.", says: Object.fromEntries(manifest.marks.map((m) => [m.id, m.says])), marks: skill })}\n`); + // The notice that ships in the package: each mark's owner, that each is its owner's trademark and not under the package's licence, and no endorsement. + const owners = [...new Set(manifest.marks.map((m) => m.owner))]; + fs.writeFileSync(path.join(repo, "packages", "react", "THIRD-PARTY-MARKS.md"), [ + "<!-- Generated by packages/react/marks/generate.mjs from marks/manifest.json. Do not edit. -->", + "# Third-party marks", + "", + "`@srasyndicate/basalt/marks/*` holds service marks for a diagram's architecture cards (DECISIONS 292). Each is its owner's own file, as its owner", + "publishes it, with only what does not draw stripped, its view box fitted to its artwork and, where noted, its one fill swapped for white for dark grounds.", + "The exceptions are marked **unofficial** below (DECISIONS 297): a drawing that is not its owner's own file (from Simple Icons or Devicon), or an owner's", + "file edited before the steps above; the manifest records each edit.", + "", + "**Each mark is a trademark of its owner.** None is under this package's licence, and showing one implies no endorsement by, or affiliation with, its", + "owner. Use each as its owner's terms allow; the terms that matter are quoted in `marks/manifest.json` in the Basalt repository, with each file's", + "source, the date it was fetched and its hash. A mark is removed by deleting its manifest entry and its source file.", + "", + ...owners.flatMap((owner) => { + const list = manifest.marks.filter((m) => m.owner === owner); + const terms = [...new Set(list.map((m) => m.terms.url))]; + return [`## ${owner}`, "", `${list.map((m) => `${m.name} (\`${m.id}\`${m.unofficial ? ", unofficial" : ""})`).join(", ")}.`, "", `Source: ${[...new Set(list.map((m) => m.page ?? m.source))].join(", ")}. Terms: ${terms.join(", ")}.`, ...list.filter((m) => m.attribution).flatMap((m) => ["", m.attribution]), ""]; + }), + ].join("\n")); + console.log(`marks: ${manifest.marks.length} written to packages/react/src/marks and tools/html-skill/src/marks.json`); +} diff --git a/packages/react/marks/manifest.json b/packages/react/marks/manifest.json new file mode 100644 index 00000000..dd6ffed6 --- /dev/null +++ b/packages/react/marks/manifest.json @@ -0,0 +1,2363 @@ +{ + "$comment": "The source of truth for the service marks Basalt bundles for an architecture card (DECISIONS 292, 2.4 and 2.5). One entry a mark. forms names which file draws on light grounds and which on dark (\"swapped\": the light file with its one fill swapped, as swap says). ink is each form's ink that meets the ground (the contrast test reads it). changes are which of 2.3's three were applied: stripped (what does not draw), fitted (the view box set to the artwork's bounds), swapped. viewBox is the fitted box per form, worked out once by fit.mjs and recorded here, so generating is the same on every machine. A mark is removed by deleting its entry and its source file; nothing else names it. Run node packages/react/marks/generate.mjs after an edit. unofficial: true marks a drawing that is not the owner's own file (DECISIONS 297: the owner asked for a mark on these even where it is not an official logo); its edits list every change made to the fetched file before the pipeline's own, and both files are in source/ with their hashes.", + "notShipped": [ + { + "service": "Amazon Aurora, RDS and ElastiCache", + "why": "Every instance icon carries lettering that is dust at 16px. A database card takes aws-database." + }, + { + "service": "Amazon SNS", + "why": "Its topic is drawn in dotted rows that vanish at 16px." + } + ], + "marks": [ + { + "id": "aws-application-load-balancer", + "name": "Application Load Balancer", + "says": [ + "ALB", + "Application Load Balancer", + "load balancer" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Networking-Content-Delivery/Res_Elastic-Load-Balancing_Application-Load-Balancer_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Elastic-Load-Balancing_Application-Load-Balancer_48.svg": "27bea44fffd83cc42ce68411e659761a114d41d6b89efc556afef969f96414aa" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Elastic-Load-Balancing_Application-Load-Balancer_48.svg", + "dark": "aws/Res_Elastic-Load-Balancing_Application-Load-Balancer_48.svg" + }, + "ink": { + "light": "#8C4FFF", + "dark": "#8C4FFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-network-load-balancer", + "name": "Network Load Balancer", + "says": [ + "NLB", + "Network Load Balancer", + "load balancer" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Networking-Content-Delivery/Res_Elastic-Load-Balancing_Network-Load-Balancer_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Elastic-Load-Balancing_Network-Load-Balancer_48.svg": "f7a5062131e9764ddc98c571cbffa5670c56d3020024408707614ce15f2cfcef" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Elastic-Load-Balancing_Network-Load-Balancer_48.svg", + "dark": "aws/Res_Elastic-Load-Balancing_Network-Load-Balancer_48.svg" + }, + "ink": { + "light": "#8C4FFF", + "dark": "#8C4FFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-cloudfront-distribution", + "name": "Amazon CloudFront distribution", + "says": [ + "CloudFront" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Networking-Content-Delivery/Res_Amazon-CloudFront_Download-Distribution_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-CloudFront_Download-Distribution_48.svg": "bac2624e854540b40de3caf11a0fad4a885c07971235fcf71a386c5c4fd22aff" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-CloudFront_Download-Distribution_48.svg", + "dark": "aws/Res_Amazon-CloudFront_Download-Distribution_48.svg" + }, + "ink": { + "light": "#8C4FFF", + "dark": "#8C4FFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-route-53-hosted-zone", + "name": "Amazon Route 53 hosted zone", + "says": [ + "Route 53", + "hosted zone", + "DNS" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Networking-Content-Delivery/Res_Amazon-Route-53-Hosted-Zone_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-Route-53-Hosted-Zone_48.svg": "a0f92a509d14b9eb35d4c4fba6907f59e98e067f1a2685032141277dc077d39f" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-Route-53-Hosted-Zone_48.svg", + "dark": "aws/Res_Amazon-Route-53-Hosted-Zone_48.svg" + }, + "ink": { + "light": "#8C4FFF", + "dark": "#8C4FFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 43.2, + 44.09 + ], + "dark": [ + 1.99, + 1.99, + 43.2, + 44.09 + ] + } + }, + { + "id": "aws-api-gateway-endpoint", + "name": "Amazon API Gateway endpoint", + "says": [ + "API Gateway" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Networking-Content-Delivery/Res_Amazon-API-Gateway_Endpoint_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-API-Gateway_Endpoint_48.svg": "db3d5314570d55834276737dcd8988f9c8ab557ab851c7a8bd9c1683adfe8ae1" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-API-Gateway_Endpoint_48.svg", + "dark": "aws/Res_Amazon-API-Gateway_Endpoint_48.svg" + }, + "ink": { + "light": "#8C4FFF", + "dark": "#8C4FFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-internet-gateway", + "name": "Amazon VPC internet gateway", + "says": [ + "internet gateway", + "IGW" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Networking-Content-Delivery/Res_Amazon-VPC_Internet-Gateway_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-VPC_Internet-Gateway_48.svg": "d31cd837a33508372a7d43a556daa0138b6e2004c94a76e2f7f8b977409659aa" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-VPC_Internet-Gateway_48.svg", + "dark": "aws/Res_Amazon-VPC_Internet-Gateway_48.svg" + }, + "ink": { + "light": "#8C4FFF", + "dark": "#8C4FFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 43.93, + 43.93 + ], + "dark": [ + 1.99, + 1.99, + 43.93, + 43.93 + ] + } + }, + { + "id": "aws-nat-gateway", + "name": "Amazon VPC NAT gateway", + "says": [ + "NAT gateway", + "NAT" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Networking-Content-Delivery/Res_Amazon-VPC_NAT-Gateway_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-VPC_NAT-Gateway_48.svg": "dcb6c564523dd54b0a7475e99f926d92001b7295413b598f766922efc07bd768" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-VPC_NAT-Gateway_48.svg", + "dark": "aws/Res_Amazon-VPC_NAT-Gateway_48.svg" + }, + "ink": { + "light": "#8C4FFF", + "dark": "#8C4FFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-ecs-service", + "name": "Amazon ECS service", + "says": [ + "ECS", + "Elastic Container Service" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Containers/Res_Amazon-Elastic-Container-Service_Service_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-Elastic-Container-Service_Service_48.svg": "1c126898214b87568a5c50cd23025d92be86de3712d68716feb4a167ab1bbb98" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-Elastic-Container-Service_Service_48.svg", + "dark": "aws/Res_Amazon-Elastic-Container-Service_Service_48.svg" + }, + "ink": { + "light": "#ED7100", + "dark": "#ED7100" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 6, + 1.99, + 35.51, + 44.02 + ], + "dark": [ + 6, + 1.99, + 35.51, + 44.02 + ] + } + }, + { + "id": "aws-ecs-task", + "name": "Amazon ECS task", + "says": [ + "ECS", + "task", + "Elastic Container Service" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Containers/Res_Amazon-Elastic-Container-Service_Task_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-Elastic-Container-Service_Task_48.svg": "6cc12036f3e8df2a73618725ed37487c3f0bfe71f7e690a22a149d419d0bc0c2" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-Elastic-Container-Service_Task_48.svg", + "dark": "aws/Res_Amazon-Elastic-Container-Service_Task_48.svg" + }, + "ink": { + "light": "#ED7100", + "dark": "#ED7100" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 6.98, + 1.99, + 33.52, + 44.02 + ], + "dark": [ + 6.98, + 1.99, + 33.52, + 44.02 + ] + } + }, + { + "id": "aws-ecr-registry", + "name": "Amazon ECR registry", + "says": [ + "ECR", + "Elastic Container Registry", + "registry" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Containers/Res_Amazon-Elastic-Container-Registry_Registry_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-Elastic-Container-Registry_Registry_48.svg": "977468508983159c58b9845d7837326c35130ee2a0aaa3556c6464815bc346e6" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-Elastic-Container-Registry_Registry_48.svg", + "dark": "aws/Res_Amazon-Elastic-Container-Registry_Registry_48.svg" + }, + "ink": { + "light": "#ED7100", + "dark": "#ED7100" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 43.98, + 43.98 + ], + "dark": [ + 1.99, + 1.99, + 43.98, + 43.98 + ] + } + }, + { + "id": "aws-ec2-instance", + "name": "Amazon EC2 instance", + "says": [ + "EC2" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Compute/Res_Amazon-EC2_Instance_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-EC2_Instance_48.svg": "d79a847f8d026f6852a6cc90f060488099362110d72f7876517d9094fae31c2c" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-EC2_Instance_48.svg", + "dark": "aws/Res_Amazon-EC2_Instance_48.svg" + }, + "ink": { + "light": "#ED7100", + "dark": "#ED7100" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-lambda-function", + "name": "AWS Lambda function", + "says": [ + "Lambda" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Compute/Res_AWS-Lambda_Lambda-Function_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_AWS-Lambda_Lambda-Function_48.svg": "fedc74964e42037598104090d2c9641c702c5d862461010e54d173c555f6a274" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_AWS-Lambda_Lambda-Function_48.svg", + "dark": "aws/Res_AWS-Lambda_Lambda-Function_48.svg" + }, + "ink": { + "light": "#ED7100", + "dark": "#ED7100" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-s3-bucket", + "name": "Amazon S3 bucket", + "says": [ + "S3" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Storage/Res_Amazon-Simple-Storage-Service_Bucket_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-Simple-Storage-Service_Bucket_48.svg": "ac5ba6de5ce1e914c9b9606cad1800692fe52ca308ef5bf3556bbebe062f7d9e" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-Simple-Storage-Service_Bucket_48.svg", + "dark": "aws/Res_Amazon-Simple-Storage-Service_Bucket_48.svg" + }, + "ink": { + "light": "#7AA116", + "dark": "#7AA116" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 2.97, + 1.99, + 42.34, + 44.07 + ], + "dark": [ + 2.97, + 1.99, + 42.34, + 44.07 + ] + } + }, + { + "id": "aws-dynamodb-table", + "name": "Amazon DynamoDB table", + "says": [ + "DynamoDB" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Databases/Res_Amazon-DynamoDB_Table_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-DynamoDB_Table_48.svg": "201cc55e7a235d6f935f73a64540769f65b0d425d52ce4dd692fb92ab3e0941c" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-DynamoDB_Table_48.svg", + "dark": "aws/Res_Amazon-DynamoDB_Table_48.svg" + }, + "ink": { + "light": "#C925D1", + "dark": "#C925D1" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 43.95, + 43.95 + ], + "dark": [ + 1.99, + 1.99, + 43.95, + 43.95 + ] + } + }, + { + "id": "aws-sqs-queue", + "name": "Amazon SQS queue", + "says": [ + "SQS", + "queue" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Application-Integration/Res_Amazon-Simple-Queue-Service_Queue_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-Simple-Queue-Service_Queue_48.svg": "39915b6e2eb2d77286a905bb0ca94912bca36605d518433db3b3f0d113e5d07d" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-Simple-Queue-Service_Queue_48.svg", + "dark": "aws/Res_Amazon-Simple-Queue-Service_Queue_48.svg" + }, + "ink": { + "light": "#E7157B", + "dark": "#E7157B" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 10.99, + 44, + 26.8 + ], + "dark": [ + 1.99, + 10.99, + 44, + 26.8 + ] + } + }, + { + "id": "aws-eventbridge-event-bus", + "name": "Amazon EventBridge event bus", + "says": [ + "EventBridge", + "event bus" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Application-Integration/Res_Amazon-EventBridge_Default-Event-Bus_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-EventBridge_Default-Event-Bus_48.svg": "0a7840e7f6da7a916ef344b67b1f69a4fd1c5289bc01f22d1f5d63abd2aba294" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-EventBridge_Default-Event-Bus_48.svg", + "dark": "aws/Res_Amazon-EventBridge_Default-Event-Bus_48.svg" + }, + "ink": { + "light": "#E7157B", + "dark": "#E7157B" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 9, + 44.02, + 30 + ], + "dark": [ + 1.99, + 9, + 44.02, + 30 + ] + } + }, + { + "id": "aws-cloudwatch-logs", + "name": "Amazon CloudWatch Logs", + "says": [ + "CloudWatch", + "logs" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Management-Governance/Res_Amazon-CloudWatch_Logs_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-CloudWatch_Logs_48.svg": "d395fbcdfe2a524b8cb8ea1f157be8f8cb02e29e635607acbfa9644a31ff4e12" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-CloudWatch_Logs_48.svg", + "dark": "aws/Res_Amazon-CloudWatch_Logs_48.svg" + }, + "ink": { + "light": "#E7157B", + "dark": "#E7157B" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 7.99, + 44.21, + 33.03 + ], + "dark": [ + 1.99, + 7.99, + 44.21, + 33.03 + ] + } + }, + { + "id": "aws-cloudwatch-alarm", + "name": "Amazon CloudWatch alarm", + "says": [ + "CloudWatch", + "alarm" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Management-Governance/Res_Amazon-CloudWatch_Alarm_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-CloudWatch_Alarm_48.svg": "1ffcc967c3e9915777169b6100f015a311aa1eda304d23c626c258db1b8633ad" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-CloudWatch_Alarm_48.svg", + "dark": "aws/Res_Amazon-CloudWatch_Alarm_48.svg" + }, + "ink": { + "light": "#E7157B", + "dark": "#E7157B" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 43.98, + 44.21 + ], + "dark": [ + 1.99, + 1.99, + 43.98, + 44.21 + ] + } + }, + { + "id": "aws-parameter-store", + "name": "AWS Systems Manager Parameter Store", + "says": [ + "Parameter Store", + "Systems Manager", + "SSM" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Management-Governance/Res_AWS-Systems-Manager_Parameter-Store_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_AWS-Systems-Manager_Parameter-Store_48.svg": "467cec947b3208eed582f11cb8502079fece17e972d0f0653fb9a4bdfd958ed3" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_AWS-Systems-Manager_Parameter-Store_48.svg", + "dark": "aws/Res_AWS-Systems-Manager_Parameter-Store_48.svg" + }, + "ink": { + "light": "#E7157B", + "dark": "#E7157B" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 3, + 1.99, + 42.12, + 43.86 + ], + "dark": [ + 3, + 1.99, + 42.12, + 43.86 + ] + } + }, + { + "id": "aws-iam-role", + "name": "AWS IAM role", + "says": [ + "IAM", + "role" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Security-Identity/Res_AWS-Identity-Access-Management_Role_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_AWS-Identity-Access-Management_Role_48.svg": "e47256f0e788e6bda40d17b0da4cf9abab170a29dfc7a22f579e13f4891407da" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_AWS-Identity-Access-Management_Role_48.svg", + "dark": "aws/Res_AWS-Identity-Access-Management_Role_48.svg" + }, + "ink": { + "light": "#DD344C", + "dark": "#DD344C" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 10.99, + 44.12, + 25.44 + ], + "dark": [ + 1.99, + 10.99, + 44.12, + 25.44 + ] + } + }, + { + "id": "aws-sagemaker-model", + "name": "Amazon SageMaker AI model", + "says": [ + "SageMaker", + "model" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_Artificial-Intelligence/Res_Amazon-SageMaker-AI_Model_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Amazon-SageMaker-AI_Model_48.svg": "7636d8ac74a8bc84bec92ec7beaa471a7f4a8f0c65474f4ea190ba89c3147b7d" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Amazon-SageMaker-AI_Model_48.svg", + "dark": "aws/Res_Amazon-SageMaker-AI_Model_48.svg" + }, + "ink": { + "light": "#01A88D", + "dark": "#01A88D" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 43.95, + 44.19 + ], + "dark": [ + 1.99, + 1.99, + 43.95, + 44.19 + ] + } + }, + { + "id": "aws-bedrock", + "name": "Amazon Bedrock", + "says": [ + "Bedrock" + ], + "unofficial": true, + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Architecture-Service-Icons_07312026/Arch_Artificial-Intelligence/48/Arch_Amazon-Bedrock_48.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-23", + "sha256": { + "aws/Arch_Amazon-Bedrock_48.svg": "01c39972d595d848ffc91d31aa6087b033c65279f8416c7c9a6659bc54406182", + "aws/Arch_Amazon-Bedrock_48_tile-removed.svg": "04291b88b423a0fb012a7bc5f7a032ada4fb010ab8fe2e907d4ab3dbfdb9359e" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "edits": [ + { + "from": "aws/Arch_Amazon-Bedrock_48.svg", + "to": "aws/Arch_Amazon-Bedrock_48_tile-removed.svg", + "edit": "Tile removed: the Machine-Learning background group (its #01A88D 64 by 64 rect) deleted, and the glyph's fill #FFFFFF set to #01A88D, the tile's own colour, as AWS's resource icons draw their glyphs. The paths are unchanged." + } + ], + "forms": { + "light": "aws/Arch_Amazon-Bedrock_48_tile-removed.svg", + "dark": "aws/Arch_Amazon-Bedrock_48_tile-removed.svg" + }, + "ink": { + "light": "#01A88D", + "dark": "#01A88D" + }, + "changes": [ + "stripped", + "fitted" + ], + "viewBox": { + "light": [ + 10, + 10, + 44, + 44 + ], + "dark": [ + 10, + 10, + 44, + 44 + ] + }, + "departures": [ + "Unofficial (DECISIONS 297): the release has no Bedrock resource icon, so this is the service icon with its tile removed and its glyph in the tile's colour. AWS's deck forbids changing an icon's color and format; the owner decided to ship it.", + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291)." + ] + }, + { + "id": "aws-client", + "name": "Client", + "says": [ + "client", + "browser", + "app" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Client_48_Light.svg and Res_48_Dark/Res_Client_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Client_48_Light.svg": "5c0eb210ca9cca0f53c136eb524273ce5ad90e40545752aeadb129bdcb2af0f3", + "aws/Res_Client_48_Dark.svg": "e4666d0fdba4b26c6d2515b4178318d5b0d107c498c7e4d8309845b496dfbeb2" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Client_48_Light.svg", + "dark": "aws/Res_Client_48_Dark.svg" + }, + "ink": { + "light": "#232F3D", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 43.84, + 43.06 + ], + "dark": [ + 1.99, + 1.99, + 43.84, + 43.06 + ] + } + }, + { + "id": "aws-mobile-client", + "name": "Mobile client", + "says": [ + "mobile", + "phone", + "client" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Mobile-client_48_Light.svg and Res_48_Dark/Res_Mobile-client_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Mobile-client_48_Light.svg": "294246d02cc40e2cd8e2a17dfa52f55657517b1ceca87124762f51146b46524e", + "aws/Res_Mobile-client_48_Dark.svg": "22af5af4ce350d650d76fedaf5db81b39fad0769fb2677b164eb2ac0c73bd13c" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Mobile-client_48_Light.svg", + "dark": "aws/Res_Mobile-client_48_Dark.svg" + }, + "ink": { + "light": "#232F3D", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 11.97, + 1.99, + 24.03, + 43.86 + ], + "dark": [ + 11.97, + 1.99, + 24.03, + 43.86 + ] + } + }, + { + "id": "aws-user", + "name": "User", + "says": [ + "user", + "person", + "people" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_User_48_Light.svg and Res_48_Dark/Res_User_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_User_48_Light.svg": "82cad1b559b84252e86f17ee9707ff9228e6c92816f207e4fde5daadaa346d38", + "aws/Res_User_48_Dark.svg": "cc4cad74ed51d3bd04c4addea34b5fd73992bfdaea0736f56cbc5e954f3da727" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_User_48_Light.svg", + "dark": "aws/Res_User_48_Dark.svg" + }, + "ink": { + "light": "#242F3E", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 3.98, + 1.99, + 40.04, + 44.02 + ], + "dark": [ + 3.98, + 1.99, + 40.04, + 44.02 + ] + } + }, + { + "id": "aws-users", + "name": "Users", + "says": [ + "users", + "people", + "user" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Users_48_Light.svg and Res_48_Dark/Res_Users_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Users_48_Light.svg": "70a2a73c69e9f21a46133b60a3a07e45b23f35c3f141d572e61a43945cbb4682", + "aws/Res_Users_48_Dark.svg": "73861576114dbaaf21125a8d9945b6e4d9b41e20c86c6a2bf6c39e7465162f5e" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Users_48_Light.svg", + "dark": "aws/Res_Users_48_Dark.svg" + }, + "ink": { + "light": "#242F3E", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-internet", + "name": "Internet", + "says": [ + "internet", + "web" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Internet_48_Light.svg and Res_48_Dark/Res_Internet_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Internet_48_Light.svg": "37ca1da361e1eecc1d28ff5476e973023f1111fb7132094428ec3d0e4136b7bf", + "aws/Res_Internet_48_Dark.svg": "4a3205bfd2932d9a769ed6287b3d661f38e9474b352f9cffd149b32c8389db20" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Internet_48_Light.svg", + "dark": "aws/Res_Internet_48_Dark.svg" + }, + "ink": { + "light": "#232F3D", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 9.98, + 44.05, + 27.62 + ], + "dark": [ + 1.99, + 9.98, + 44.05, + 27.62 + ] + } + }, + { + "id": "aws-server", + "name": "Server", + "says": [ + "server", + "host" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Server_48_Light.svg and Res_48_Dark/Res_Server_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Server_48_Light.svg": "ae8d259b4fcb30a8f2e2e25ec1026ee27e87e2579b66f67f3b893898c2d8b4b0", + "aws/Res_Server_48_Dark.svg": "1bacf100d800f83a8c6145729f5c066e908f514319387c3fec3e328f737ca6d0" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Server_48_Light.svg", + "dark": "aws/Res_Server_48_Dark.svg" + }, + "ink": { + "light": "#232F3D", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 10.99, + 1.99, + 25.53, + 44.05 + ], + "dark": [ + 10.99, + 1.99, + 25.53, + 44.05 + ] + } + }, + { + "id": "aws-database", + "name": "Database", + "says": [ + "database", + "DB", + "Aurora", + "RDS", + "Postgres", + "PostgreSQL", + "MySQL" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Database_48_Light.svg and Res_48_Dark/Res_Database_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Database_48_Light.svg": "c18bb92be55c5d8c6ce4630bdc70179fb438e078b215210e7b5fb523ed2303da", + "aws/Res_Database_48_Dark.svg": "73b7891bd8942c8afefd221bb1effec43b57cebb50489e6698fac84fdb505ab2" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Database_48_Light.svg", + "dark": "aws/Res_Database_48_Dark.svg" + }, + "ink": { + "light": "#232F3D", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 6.98, + 1.99, + 34.67, + 43.93 + ], + "dark": [ + 6.98, + 1.99, + 34.67, + 43.93 + ] + } + }, + { + "id": "aws-application", + "name": "Generic application", + "says": [ + "app", + "application", + "service" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Generic-Application_48_Light.svg and Res_48_Dark/Res_Generic-Application_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Generic-Application_48_Light.svg": "adbea176db7aa41aeee5fc2faddb0adef71bd9be8b6dbeb7a199170051838da7", + "aws/Res_Generic-Application_48_Dark.svg": "b55fd8fba7d4fa5780e58a37178ea90d6b9bcc5e9bcc3f19298f068d6e61bc6b" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Generic-Application_48_Light.svg", + "dark": "aws/Res_Generic-Application_48_Dark.svg" + }, + "ink": { + "light": "#232F3D", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 1.99, + 44.02, + 44.02 + ], + "dark": [ + 1.99, + 1.99, + 44.02, + 44.02 + ] + } + }, + { + "id": "aws-git-repository", + "name": "Git repository", + "says": [ + "Git", + "repository", + "repo" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Git-Repository_48_Light.svg and Res_48_Dark/Res_Git-Repository_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Git-Repository_48_Light.svg": "3f139d4acfbf9e352ed87302c28f9d87fdd01b4370f359c90cb1746e30136dc0", + "aws/Res_Git-Repository_48_Dark.svg": "b4b19e768178bc036c9c4b2cdd84d4630af293d97f58963dd00e1002920d356a" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Git-Repository_48_Light.svg", + "dark": "aws/Res_Git-Repository_48_Dark.svg" + }, + "ink": { + "light": "#232F3D", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 6.98, + 1.99, + 34.04, + 44.02 + ], + "dark": [ + 6.98, + 1.99, + 34.04, + 44.02 + ] + } + }, + { + "id": "aws-email", + "name": "Email", + "says": [ + "email", + "mail", + "SES" + ], + "owner": "Amazon Web Services, Inc.", + "source": "https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip", + "page": "https://aws.amazon.com/architecture/icons/", + "file": "Resource-Icons_07312026/Res_General-Icons/Res_48_Light/Res_Email_48_Light.svg and Res_48_Dark/Res_Email_48_Dark.svg", + "release": "Release 24-2026.07.31 (Icon-package_07312026)", + "fetched": "2026-11-22", + "sha256": { + "aws/Res_Email_48_Light.svg": "0e48dca08c59dedaf6988b7da6340c3561848b80f2fe92f6f3afe87fed1a1220", + "aws/Res_Email_48_Dark.svg": "bcb7e1c770fd9eac67d1e0711862f358826f61624354a333836be5abaf92bae9" + }, + "terms": { + "url": "https://aws.amazon.com/architecture/icons/", + "quotes": [ + "We allow customers and partners to use these toolkits and assets to create architecture diagrams.", + "You can also put icons in materials like whitepapers, presentations, data sheets, and posters.", + "The deck in the release's PowerPoint toolkit: use the icons in a diagram at their predefined size, color, and format; do not crop, flip, rotate, or change the shape." + ], + "also": "https://aws.amazon.com/trademark-guidelines/" + }, + "forms": { + "light": "aws/Res_Email_48_Light.svg", + "dark": "aws/Res_Email_48_Dark.svg" + }, + "ink": { + "light": "#242F3E", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "AWS's deck says diagrams use the icons \"at their predefined size\", and its pages grant use in diagrams, not redistribution in a package. Basalt draws a 48px icon at 16 and ships the files (the owner's decision to bundle, DECISIONS 291).", + "The view box is fitted to the artwork (DECISIONS 292, 2.3), so the icon fills the 16px seat where the package's 48px box leaves about 8% clear." + ], + "viewBox": { + "light": [ + 1.99, + 9.98, + 44.02, + 27.24 + ], + "dark": [ + 1.99, + 9.98, + 44.02, + 27.24 + ] + } + }, + { + "id": "temporal", + "name": "Temporal", + "says": [ + "Temporal" + ], + "owner": "Temporal Technologies Inc.", + "source": "https://temporal.io/brand", + "file": "Temporal_Symbol_dark.svg (for light grounds) and Temporal_Symbol_light.svg (for dark grounds), on images.ctfassets.net, linked from the brand page", + "release": "as published on 22 Nov 2026", + "fetched": "2026-11-22", + "sha256": { + "temporal/Temporal_Symbol_dark.svg": "5c9617618f60940907e35045dd502f44b1377042aa8bf822d7c9e07847b293e2", + "temporal/Temporal_Symbol_light.svg": "6687690e2e38707bae111398270eed69c84526f27c325193277fa6ce76cf49d2" + }, + "terms": { + "url": "https://temporal.io/brand", + "quotes": [ + "The logo should only ever be in Space Black, Off White, or standard black and white.", + "Ensure adequate spacing of at least a capital T's worth around the logo.", + "Ghosting or fading the logo should not be done unless approved by the Temporal design team." + ] + }, + "forms": { + "light": "temporal/Temporal_Symbol_dark.svg", + "dark": "temporal/Temporal_Symbol_light.svg" + }, + "ink": { + "light": "#141414", + "dark": "#F2F2F2" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "Temporal asks for clear space of a capital T; the seat gives space-2 (8px) to the text and space-2-5 (10) and space-3 (12) to the card's edges.", + "The published symbol fills about a third of its 1200 box; its view box is fitted to the artwork so it is drawn at the seat's size." + ], + "viewBox": { + "light": [ + 390.23, + 391.99, + 386.73, + 386.14 + ], + "dark": [ + 390.23, + 391.99, + 386.73, + 386.14 + ] + } + }, + { + "id": "sonarqube", + "name": "SonarQube", + "says": [ + "SonarQube", + "Sonar" + ], + "owner": "SonarSource SA", + "source": "https://www.sonarsource.com/company/press-kit/", + "file": "Sonar_Product_Logos.zip: Sonar_Product_Logos/SonarQube/Mark/Light and Dark Backgrounds/SonarQube_Mark.svg", + "release": "Sonar_Product_Logos.zip as published on 22 Nov 2026", + "fetched": "2026-11-22", + "sha256": { + "sonarqube/SonarQube_Mark.svg": "b338b2c5f3276ad578b2bc6a1a2e6417823ca63481619bd473e6d6add9a4baed" + }, + "terms": { + "url": "https://www.sonarsource.com/brand-identity/", + "quotes": [ + "The press kit states no rules of its own; it points to the brand identity page, whose guide did not render for the scout." + ] + }, + "forms": { + "light": "sonarqube/SonarQube_Mark.svg", + "dark": "sonarqube/SonarQube_Mark.svg" + }, + "ink": { + "light": "#126ED3", + "dark": "#126ED3" + }, + "changes": [ + "stripped", + "fitted" + ], + "departures": [ + "The file carries an embedded C2PA block (17,930 of its 19,101 bytes), which does not draw and is stripped.", + "Sonar's rules were not read: its brand guide did not render." + ], + "viewBox": { + "light": [ + 14.94, + 14.94, + 46.44, + 46.44 + ], + "dark": [ + 14.94, + 14.94, + 46.44, + 46.44 + ] + } + }, + { + "id": "github", + "name": "GitHub", + "says": [ + "GitHub" + ], + "owner": "GitHub, Inc.", + "source": "https://brand.github.com/GitHub_Logos.zip", + "page": "https://brand.github.com/foundations/logo", + "file": "GitHub Logos/SVG/GitHub_Invertocat_Black.svg (for light grounds) and GitHub_Invertocat_White.svg (for dark grounds)", + "release": "GitHub_Logos.zip as published on 22 Nov 2026", + "fetched": "2026-11-22", + "sha256": { + "github/GitHub_Invertocat_Black.svg": "693d7abe6f899646cc2e96856723b45e95f71885a54910b2749f6decdf7e1ee1", + "github/GitHub_Invertocat_White.svg": "ccd84c89b1056345608fc3489357f8acc7397e49a3cdc2d418b6c8016911d47b" + }, + "terms": { + "url": "https://github.com/logos", + "quotes": [ + "Use a permitted GitHub logo to inform others that your project integrates with GitHub.", + "The Invertocat and our wordmark should only appear in white, black, or in few cases grey or green.", + "Do not use GitHub trademarks, logos, or artwork without GitHub's prior written permission." + ] + }, + "forms": { + "light": "github/GitHub_Invertocat_Black.svg", + "dark": "github/GitHub_Invertocat_White.svg" + }, + "ink": { + "light": "#000000", + "dark": "#FFFFFF" + }, + "changes": [ + "fitted" + ], + "departures": [ + "GitHub permits its mark \"to inform others that your project integrates with GitHub\" and asks for written permission otherwise. It was not named by the owner; it was in the prototype's kit that he confirmed." + ], + "viewBox": { + "light": [ + 0, + 0, + 98.01, + 94.99 + ], + "dark": [ + 0, + 0, + 98.01, + 94.99 + ] + } + }, + { + "id": "coderabbit", + "name": "CodeRabbit", + "says": [ + "CodeRabbit" + ], + "owner": "CodeRabbit Inc.", + "source": "https://www.coderabbit.ai/brand", + "file": "https://www.coderabbit.ai/content/assets/orange-logomark.svg", + "release": "as published on 22 Nov 2026", + "fetched": "2026-11-22", + "sha256": { + "coderabbit/orange-logomark.svg": "25c8cd16561dbad015504d2b2c2ed9eb86a49956c91af161bdc9aa05499336ee" + }, + "terms": { + "url": "https://www.coderabbit.ai/brand", + "quotes": [ + "Use the orange mark on light and dark backgrounds only when the full logotype cannot fit.", + "Keep the rabbit upright, uncropped, and unchanged.", + "Use only the supplied logo files." + ] + }, + "forms": { + "light": "coderabbit/orange-logomark.svg", + "dark": "coderabbit/orange-logomark.svg" + }, + "ink": { + "light": "#FF570A", + "dark": "#FF570A" + }, + "changes": [ + "fitted" + ], + "departures": [ + "A 16px card seat cannot hold the full logotype, so the orange mark is used on both grounds, as its terms give." + ], + "viewBox": { + "light": [ + 0.58, + 0, + 1200.42, + 1200.42 + ], + "dark": [ + 0.58, + 0, + 1200.42, + 1200.42 + ] + } + }, + { + "id": "greptile", + "name": "Greptile", + "says": [ + "Greptile" + ], + "owner": "Greptile, Inc.", + "source": "https://www.greptile.com", + "file": "https://www.greptile.com/logo.svg", + "release": "as published on 22 Nov 2026", + "fetched": "2026-11-22", + "sha256": { + "greptile/logo.svg": "2bd1e15ef7700376c4fce21802e8ecade92d055520be63d13d0a7b5e2969cfa3" + }, + "terms": { + "url": "https://www.greptile.com", + "quotes": [ + "No brand page or terms found (https://www.greptile.com/brand returned 404 for the scout)." + ] + }, + "forms": { + "light": "greptile/logo.svg", + "dark": "swapped" + }, + "swap": { + "from": "#3D3B4F", + "to": "#ffffff" + }, + "ink": { + "light": "#3D3B4F", + "dark": "#FFFFFF" + }, + "changes": [ + "fitted", + "swapped" + ], + "departures": [ + "Greptile publishes no terms; its dark-ground form is Basalt's swap of its one fill for white (DECISIONS 292, 2.2)." + ], + "viewBox": { + "light": [ + 0, + 0, + 366.68, + 420 + ], + "dark": [ + 0, + 0, + 366.68, + 420 + ] + } + }, + { + "id": "blacksmith", + "name": "Blacksmith", + "says": [ + "Blacksmith" + ], + "owner": "Blacksmith Software Inc.", + "source": "https://www.blacksmith.sh", + "file": "https://www.blacksmith.sh/webflow/assets/683ca847da3bc476a2729c70_f5d2bfe3617d9aff82a3e717fb2ed0ba_logo-bracksmith-icon-light.svg", + "release": "as published on 22 Nov 2026", + "fetched": "2026-11-22", + "sha256": { + "blacksmith/logo-bracksmith-icon-light.svg": "2fe20482e6912ff4077010780add9de326f61615f02becfd08cdec382b674bd4" + }, + "terms": { + "url": "https://www.blacksmith.sh", + "quotes": [ + "No brand page or terms found (https://www.blacksmith.sh/brand returned 404 for the scout)." + ] + }, + "forms": { + "light": "blacksmith/logo-bracksmith-icon-light.svg", + "dark": "swapped" + }, + "swap": { + "from": "#202020", + "to": "#ffffff" + }, + "ink": { + "light": "#202020", + "dark": "#FFFFFF" + }, + "changes": [ + "fitted", + "swapped" + ], + "departures": [ + "Blacksmith publishes no terms; its dark-ground form is Basalt's swap of its one fill for white (DECISIONS 292, 2.2)." + ], + "viewBox": { + "light": [ + 0, + 0, + 144, + 96.05 + ], + "dark": [ + 0, + 0, + 144, + 96.05 + ] + } + }, + { + "id": "jenkins", + "name": "Jenkins", + "says": [ + "Jenkins" + ], + "unofficial": true, + "owner": "LF Charities, Inc.", + "source": "https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/icons/jenkins.svg", + "page": "https://simpleicons.org/?q=jenkins", + "file": "icons/jenkins.svg in simple-icons 16.38.1 (Simple Icons gives its source as https://get.jenkins.io/art/)", + "release": "simple-icons 16.38.1", + "fetched": "2026-11-23", + "sha256": { + "jenkins/jenkins.svg": "95ab5d541710c116d939f44e4e72c8b1503e78d04a1c298ad257c4e26d3a1873", + "jenkins/jenkins-black.svg": "22c0102d1c24a4801c520ca7ee59139def6ded994a566b1b63d45e8a54f5de97" + }, + "terms": { + "url": "https://www.jenkins.io/project/trademark/", + "quotes": [ + "Simple Icons' LICENSE.md is CC0 1.0 Universal.", + "DISCLAIMER.md: \"Simple Icons is released under CC0 - though that doesn't mean to imply that all icons within the project are also CC0. Please see individual licenses where available.\"", + "DISCLAIMER.md: \"We ask that our users seek the correct permissions to use the icons relevant to their project.\"", + "Simple Icons' data for Jenkins (data/simple-icons.json): license CC-BY-SA-3.0, guidelines https://www.jenkins.io/press/.", + "https://www.jenkins.io/project/trademark/: the Jenkins name and logo are trademarks held by LF Charities, Inc. under the Linux Foundation's trademark policy." + ], + "also": "https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/DISCLAIMER.md" + }, + "attribution": "The Jenkins head is Simple Icons' drawing of the Jenkins logo by jenkins.io (https://get.jenkins.io/art/), CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/), made one-colour.", + "edits": [ + { + "from": "jenkins/jenkins.svg", + "to": "jenkins/jenkins-black.svg", + "edit": "fill=\"#000000\" set on the one path (the file draws in the default black and names no fill; the swap needs one). No pixel changes." + } + ], + "forms": { + "light": "jenkins/jenkins-black.svg", + "dark": "swapped" + }, + "swap": { + "from": "#000000", + "to": "#ffffff" + }, + "ink": { + "light": "#000000", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted", + "swapped" + ], + "viewBox": { + "light": [ + 1.11, + 0, + 21.78, + 24 + ], + "dark": [ + 1.11, + 0, + 21.78, + 24 + ] + }, + "departures": [ + "Unofficial (DECISIONS 297): Jenkins publishes the butler in colour; this is Simple Icons' one-colour drawing of the head, shown black on light grounds and white on dark.", + "Simple Icons records the Jenkins artwork as CC BY-SA 3.0, which asks for attribution to jenkins.io and share-alike; this entry and THIRD-PARTY-MARKS.md carry the attribution." + ] + }, + { + "id": "servicenow", + "name": "ServiceNow", + "says": [ + "ServiceNow" + ], + "unofficial": true, + "owner": "ServiceNow, Inc.", + "source": "https://raw.githubusercontent.com/devicons/devicon/381959631eef98bdc7c22b78fd186cb20f415f72/icons/servicenow/servicenow-original.svg", + "page": "https://github.com/devicons/devicon/tree/develop/icons/servicenow", + "file": "icons/servicenow/servicenow-original.svg in Devicon, develop at 38195963 (added in 80defb67, #2835). Simple Icons has no ServiceNow icon.", + "release": "Devicon develop, commit 381959631eef98bdc7c22b78fd186cb20f415f72", + "fetched": "2026-11-23", + "sha256": { + "servicenow/servicenow-original.svg": "2a318ca13d4e65500ef7ec3b898f465a5a3b53c32bfbf021b9f89fe5f0041eb7", + "servicenow/servicenow-black.svg": "7c91bdd52a2937b55a4f5f9b327d43574e8fd4ad4507197b8338d910b7fd99cc" + }, + "terms": { + "url": "https://github.com/devicons/devicon/blob/develop/LICENSE", + "quotes": [ + "Devicon's LICENSE: \"The MIT License (MIT) Copyright (c) 2015 konpa\".", + "ServiceNow's brand pages (https://www.servicenow.com/brand.html, https://brand.servicenow.com/) could not be fetched; no ServiceNow guideline was read." + ] + }, + "edits": [ + { + "from": "servicenow/servicenow-original.svg", + "to": "servicenow/servicenow-black.svg", + "edit": "The one fill #62d84e set to #000000: the green is 1.83:1 on a light card, so the mark is one-colour, black on light grounds and white on dark (DECISIONS 297)." + } + ], + "forms": { + "light": "servicenow/servicenow-black.svg", + "dark": "swapped" + }, + "swap": { + "from": "#000000", + "to": "#ffffff" + }, + "ink": { + "light": "#000000", + "dark": "#FFFFFF" + }, + "changes": [ + "fitted", + "swapped" + ], + "viewBox": { + "light": [ + 0, + 6.75, + 128, + 114.5 + ], + "dark": [ + 0, + 6.75, + 128, + 114.5 + ] + }, + "departures": [ + "Unofficial (DECISIONS 297): Devicon's drawing of ServiceNow's ring, not a file from ServiceNow, and recoloured from its green to black and white." + ] + }, + { + "id": "blazemeter", + "name": "BlazeMeter", + "says": [ + "BlazeMeter" + ], + "unofficial": true, + "owner": "Perforce Software, Inc.", + "source": "https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/icons/blazemeter.svg", + "page": "https://simpleicons.org/?q=blazemeter", + "file": "icons/blazemeter.svg in simple-icons 16.38.1 (Simple Icons gives its source as https://www.blazemeter.com)", + "release": "simple-icons 16.38.1", + "fetched": "2026-11-23", + "sha256": { + "blazemeter/blazemeter.svg": "1d333e392bb9ffee9d0288c17cccc1690fba9115770ff6322ca2fd9ceba2689e", + "blazemeter/blazemeter-black.svg": "5c0160ec0cea5a31fceb35111c8718f7b6e5e657919c611dd4ada4ab09b22666" + }, + "terms": { + "url": "https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/LICENSE.md", + "quotes": [ + "Simple Icons' LICENSE.md is CC0 1.0 Universal.", + "DISCLAIMER.md: \"Simple Icons is released under CC0 - though that doesn't mean to imply that all icons within the project are also CC0. Please see individual licenses where available.\"", + "DISCLAIMER.md: \"We ask that our users seek the correct permissions to use the icons relevant to their project.\"", + "Simple Icons' data for Blazemeter records no licence and no guidelines.", + "BlazeMeter has no brand page (https://www.blazemeter.com/brand returned 404); its site's footer reads \"Perforce Software Inc. All Rights Reserved.\"" + ], + "also": "https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/DISCLAIMER.md" + }, + "edits": [ + { + "from": "blazemeter/blazemeter.svg", + "to": "blazemeter/blazemeter-black.svg", + "edit": "fill=\"#000000\" set on the one path (the file draws in the default black and names no fill; the swap needs one). No pixel changes." + } + ], + "forms": { + "light": "blazemeter/blazemeter-black.svg", + "dark": "swapped" + }, + "swap": { + "from": "#000000", + "to": "#ffffff" + }, + "ink": { + "light": "#000000", + "dark": "#FFFFFF" + }, + "changes": [ + "stripped", + "fitted", + "swapped" + ], + "viewBox": { + "light": [ + 0, + 6.85, + 24, + 10.3 + ], + "dark": [ + 0, + 6.85, + 24, + 10.3 + ] + }, + "departures": [ + "Unofficial (DECISIONS 297): BlazeMeter publishes no mark file; this is Simple Icons' drawing, shown black on light grounds and white on dark rather than its red.", + "The mark is wide: at 16px wide it is about 6px tall. It holds a letter B, which the set's no-lettering rule would exclude; the owner asked for it (DECISIONS 297)." + ] + } + ] +} diff --git a/packages/react/marks/source/aws/Arch_Amazon-Bedrock_48.svg b/packages/react/marks/source/aws/Arch_Amazon-Bedrock_48.svg new file mode 100644 index 00000000..41fe7b53 --- /dev/null +++ b/packages/react/marks/source/aws/Arch_Amazon-Bedrock_48.svg @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Icon-Architecture/48/Arch_Amazon-Bedrock_48 + + + + + + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Arch_Amazon-Bedrock_48_tile-removed.svg b/packages/react/marks/source/aws/Arch_Amazon-Bedrock_48_tile-removed.svg new file mode 100644 index 00000000..879a979d --- /dev/null +++ b/packages/react/marks/source/aws/Arch_Amazon-Bedrock_48_tile-removed.svg @@ -0,0 +1,9 @@ + + + Icon-Architecture/48/Arch_Amazon-Bedrock_48 + + + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_AWS-Identity-Access-Management_Role_48.svg b/packages/react/marks/source/aws/Res_AWS-Identity-Access-Management_Role_48.svg new file mode 100644 index 00000000..e353ef20 --- /dev/null +++ b/packages/react/marks/source/aws/Res_AWS-Identity-Access-Management_Role_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Security-Identity-and-Compliance/Res_AWS-Identity-Access-Management_Role_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_AWS-Lambda_Lambda-Function_48.svg b/packages/react/marks/source/aws/Res_AWS-Lambda_Lambda-Function_48.svg new file mode 100644 index 00000000..b30cd9d9 --- /dev/null +++ b/packages/react/marks/source/aws/Res_AWS-Lambda_Lambda-Function_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Compute/Res_AWS-Lambda_Lambda-Function_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_AWS-Systems-Manager_Parameter-Store_48.svg b/packages/react/marks/source/aws/Res_AWS-Systems-Manager_Parameter-Store_48.svg new file mode 100644 index 00000000..de677ceb --- /dev/null +++ b/packages/react/marks/source/aws/Res_AWS-Systems-Manager_Parameter-Store_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Management-Governance/Res_AWS-Systems-Manager_Parameter-Store_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-API-Gateway_Endpoint_48.svg b/packages/react/marks/source/aws/Res_Amazon-API-Gateway_Endpoint_48.svg new file mode 100644 index 00000000..9693f887 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-API-Gateway_Endpoint_48.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/packages/react/marks/source/aws/Res_Amazon-CloudFront_Download-Distribution_48.svg b/packages/react/marks/source/aws/Res_Amazon-CloudFront_Download-Distribution_48.svg new file mode 100644 index 00000000..346efff0 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-CloudFront_Download-Distribution_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_Amazon-CloudFront_Download-Distribution_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-CloudWatch_Alarm_48.svg b/packages/react/marks/source/aws/Res_Amazon-CloudWatch_Alarm_48.svg new file mode 100644 index 00000000..3e0db660 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-CloudWatch_Alarm_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Management-Governance/Res_Amazon-CloudWatch_Alarm_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-CloudWatch_Logs_48.svg b/packages/react/marks/source/aws/Res_Amazon-CloudWatch_Logs_48.svg new file mode 100644 index 00000000..bcfb8029 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-CloudWatch_Logs_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Management-Governance/Res_Amazon-CloudWatch_Logs_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-DynamoDB_Table_48.svg b/packages/react/marks/source/aws/Res_Amazon-DynamoDB_Table_48.svg new file mode 100644 index 00000000..f18247e8 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-DynamoDB_Table_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Database/Res_Amazon-DynamoDB_Table_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-EC2_Instance_48.svg b/packages/react/marks/source/aws/Res_Amazon-EC2_Instance_48.svg new file mode 100644 index 00000000..542dc805 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-EC2_Instance_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Compute/Res_Amazon-EC2_Instance_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Registry_Registry_48.svg b/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Registry_Registry_48.svg new file mode 100644 index 00000000..d29a1aa7 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Registry_Registry_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Containers/Res_Amazon-Elastic-Container-Registry_Registry_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Service_Service_48.svg b/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Service_Service_48.svg new file mode 100644 index 00000000..e58e5310 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Service_Service_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Containers/Res_Amazon-Elastic-Container-Service_Service_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Service_Task_48.svg b/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Service_Task_48.svg new file mode 100644 index 00000000..c7c37274 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-Elastic-Container-Service_Task_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Containers/Res_Amazon-Elastic-Container-Service_Task_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-EventBridge_Default-Event-Bus_48.svg b/packages/react/marks/source/aws/Res_Amazon-EventBridge_Default-Event-Bus_48.svg new file mode 100644 index 00000000..fc9e8572 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-EventBridge_Default-Event-Bus_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Application-Integration/Res_Amazon-EventBridge_Default-Event-Bus_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-Route-53-Hosted-Zone_48.svg b/packages/react/marks/source/aws/Res_Amazon-Route-53-Hosted-Zone_48.svg new file mode 100644 index 00000000..40bf3a52 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-Route-53-Hosted-Zone_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_Amazon-Route-53-Hosted-Zone_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-SageMaker-AI_Model_48.svg b/packages/react/marks/source/aws/Res_Amazon-SageMaker-AI_Model_48.svg new file mode 100644 index 00000000..4872667d --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-SageMaker-AI_Model_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Machine-Learning/Res_Amazon-SageMaker_Model_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-Simple-Queue-Service_Queue_48.svg b/packages/react/marks/source/aws/Res_Amazon-Simple-Queue-Service_Queue_48.svg new file mode 100644 index 00000000..d1270107 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-Simple-Queue-Service_Queue_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Application-Integration/Res_Amazon-Simple-Queue-Service_Queue_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-Simple-Storage-Service_Bucket_48.svg b/packages/react/marks/source/aws/Res_Amazon-Simple-Storage-Service_Bucket_48.svg new file mode 100644 index 00000000..e0b95975 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-Simple-Storage-Service_Bucket_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Storage/Res_Amazon-Simple-Storage-Service_Bucket_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-VPC_Internet-Gateway_48.svg b/packages/react/marks/source/aws/Res_Amazon-VPC_Internet-Gateway_48.svg new file mode 100644 index 00000000..8d35e22b --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-VPC_Internet-Gateway_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_Amazon-VPC_Internet-Gateway_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Amazon-VPC_NAT-Gateway_48.svg b/packages/react/marks/source/aws/Res_Amazon-VPC_NAT-Gateway_48.svg new file mode 100644 index 00000000..cace6895 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Amazon-VPC_NAT-Gateway_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_Amazon-VPC_NAT-Gateway_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Client_48_Dark.svg b/packages/react/marks/source/aws/Res_Client_48_Dark.svg new file mode 100644 index 00000000..0c6fc903 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Client_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Client_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Client_48_Light.svg b/packages/react/marks/source/aws/Res_Client_48_Light.svg new file mode 100644 index 00000000..1d2ee9b1 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Client_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Client_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Database_48_Dark.svg b/packages/react/marks/source/aws/Res_Database_48_Dark.svg new file mode 100644 index 00000000..ade7c1d0 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Database_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Generic-database_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Database_48_Light.svg b/packages/react/marks/source/aws/Res_Database_48_Light.svg new file mode 100644 index 00000000..1326447a --- /dev/null +++ b/packages/react/marks/source/aws/Res_Database_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Database_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Elastic-Load-Balancing_Application-Load-Balancer_48.svg b/packages/react/marks/source/aws/Res_Elastic-Load-Balancing_Application-Load-Balancer_48.svg new file mode 100644 index 00000000..992c5024 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Elastic-Load-Balancing_Application-Load-Balancer_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_Elastic-Load-Balancing_Application-Load-Balancer_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Elastic-Load-Balancing_Network-Load-Balancer_48.svg b/packages/react/marks/source/aws/Res_Elastic-Load-Balancing_Network-Load-Balancer_48.svg new file mode 100644 index 00000000..bb6b4f06 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Elastic-Load-Balancing_Network-Load-Balancer_48.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_Elastic-Load-Balancing_Network-Load-Balancer_48 + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Email_48_Dark.svg b/packages/react/marks/source/aws/Res_Email_48_Dark.svg new file mode 100644 index 00000000..84a581da --- /dev/null +++ b/packages/react/marks/source/aws/Res_Email_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Email_48_White + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Email_48_Light.svg b/packages/react/marks/source/aws/Res_Email_48_Light.svg new file mode 100644 index 00000000..81e9cd50 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Email_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Email_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Generic-Application_48_Dark.svg b/packages/react/marks/source/aws/Res_Generic-Application_48_Dark.svg new file mode 100644 index 00000000..aab6e984 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Generic-Application_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Generic-Application_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Generic-Application_48_Light.svg b/packages/react/marks/source/aws/Res_Generic-Application_48_Light.svg new file mode 100644 index 00000000..1aa7ac19 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Generic-Application_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Generic-Application_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Git-Repository_48_Dark.svg b/packages/react/marks/source/aws/Res_Git-Repository_48_Dark.svg new file mode 100644 index 00000000..a40f4675 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Git-Repository_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Git-Repository_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Git-Repository_48_Light.svg b/packages/react/marks/source/aws/Res_Git-Repository_48_Light.svg new file mode 100644 index 00000000..8c56fb2e --- /dev/null +++ b/packages/react/marks/source/aws/Res_Git-Repository_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Git-Repository_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Internet_48_Dark.svg b/packages/react/marks/source/aws/Res_Internet_48_Dark.svg new file mode 100644 index 00000000..c22ef74b --- /dev/null +++ b/packages/react/marks/source/aws/Res_Internet_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Internet_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Internet_48_Light.svg b/packages/react/marks/source/aws/Res_Internet_48_Light.svg new file mode 100644 index 00000000..58ac1ec5 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Internet_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Internet_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Mobile-client_48_Dark.svg b/packages/react/marks/source/aws/Res_Mobile-client_48_Dark.svg new file mode 100644 index 00000000..aac04f5b --- /dev/null +++ b/packages/react/marks/source/aws/Res_Mobile-client_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Mobile-client_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Mobile-client_48_Light.svg b/packages/react/marks/source/aws/Res_Mobile-client_48_Light.svg new file mode 100644 index 00000000..9bdcbe9f --- /dev/null +++ b/packages/react/marks/source/aws/Res_Mobile-client_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Mobile-client_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Server_48_Dark.svg b/packages/react/marks/source/aws/Res_Server_48_Dark.svg new file mode 100644 index 00000000..c58107a1 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Server_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Traditional-server_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Server_48_Light.svg b/packages/react/marks/source/aws/Res_Server_48_Light.svg new file mode 100644 index 00000000..e394fcff --- /dev/null +++ b/packages/react/marks/source/aws/Res_Server_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Traditional-server_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_User_48_Dark.svg b/packages/react/marks/source/aws/Res_User_48_Dark.svg new file mode 100644 index 00000000..a389faa0 --- /dev/null +++ b/packages/react/marks/source/aws/Res_User_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_User_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_User_48_Light.svg b/packages/react/marks/source/aws/Res_User_48_Light.svg new file mode 100644 index 00000000..3242153e --- /dev/null +++ b/packages/react/marks/source/aws/Res_User_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_User_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Users_48_Dark.svg b/packages/react/marks/source/aws/Res_Users_48_Dark.svg new file mode 100644 index 00000000..b08a4eb0 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Users_48_Dark.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Users_48_Dark + + + + \ No newline at end of file diff --git a/packages/react/marks/source/aws/Res_Users_48_Light.svg b/packages/react/marks/source/aws/Res_Users_48_Light.svg new file mode 100644 index 00000000..e24afed0 --- /dev/null +++ b/packages/react/marks/source/aws/Res_Users_48_Light.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Users_48_Light + + + + \ No newline at end of file diff --git a/packages/react/marks/source/blacksmith/logo-bracksmith-icon-light.svg b/packages/react/marks/source/blacksmith/logo-bracksmith-icon-light.svg new file mode 100644 index 00000000..e9efb50e --- /dev/null +++ b/packages/react/marks/source/blacksmith/logo-bracksmith-icon-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/react/marks/source/blazemeter/blazemeter-black.svg b/packages/react/marks/source/blazemeter/blazemeter-black.svg new file mode 100644 index 00000000..01fa1715 --- /dev/null +++ b/packages/react/marks/source/blazemeter/blazemeter-black.svg @@ -0,0 +1 @@ +Blazemeter \ No newline at end of file diff --git a/packages/react/marks/source/blazemeter/blazemeter.svg b/packages/react/marks/source/blazemeter/blazemeter.svg new file mode 100644 index 00000000..9aaca593 --- /dev/null +++ b/packages/react/marks/source/blazemeter/blazemeter.svg @@ -0,0 +1 @@ +Blazemeter \ No newline at end of file diff --git a/packages/react/marks/source/coderabbit/orange-logomark.svg b/packages/react/marks/source/coderabbit/orange-logomark.svg new file mode 100644 index 00000000..199b6915 --- /dev/null +++ b/packages/react/marks/source/coderabbit/orange-logomark.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/react/marks/source/github/GitHub_Invertocat_Black.svg b/packages/react/marks/source/github/GitHub_Invertocat_Black.svg new file mode 100755 index 00000000..4f46bf35 --- /dev/null +++ b/packages/react/marks/source/github/GitHub_Invertocat_Black.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/react/marks/source/github/GitHub_Invertocat_White.svg b/packages/react/marks/source/github/GitHub_Invertocat_White.svg new file mode 100755 index 00000000..527ba11c --- /dev/null +++ b/packages/react/marks/source/github/GitHub_Invertocat_White.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/react/marks/source/greptile/logo.svg b/packages/react/marks/source/greptile/logo.svg new file mode 100644 index 00000000..237d515d --- /dev/null +++ b/packages/react/marks/source/greptile/logo.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/packages/react/marks/source/jenkins/jenkins-black.svg b/packages/react/marks/source/jenkins/jenkins-black.svg new file mode 100644 index 00000000..18669f7d --- /dev/null +++ b/packages/react/marks/source/jenkins/jenkins-black.svg @@ -0,0 +1 @@ +Jenkins \ No newline at end of file diff --git a/packages/react/marks/source/jenkins/jenkins.svg b/packages/react/marks/source/jenkins/jenkins.svg new file mode 100644 index 00000000..3a604d1e --- /dev/null +++ b/packages/react/marks/source/jenkins/jenkins.svg @@ -0,0 +1 @@ +Jenkins \ No newline at end of file diff --git a/packages/react/marks/source/servicenow/servicenow-black.svg b/packages/react/marks/source/servicenow/servicenow-black.svg new file mode 100644 index 00000000..07ea61df --- /dev/null +++ b/packages/react/marks/source/servicenow/servicenow-black.svg @@ -0,0 +1 @@ + diff --git a/packages/react/marks/source/servicenow/servicenow-original.svg b/packages/react/marks/source/servicenow/servicenow-original.svg new file mode 100644 index 00000000..5d323b18 --- /dev/null +++ b/packages/react/marks/source/servicenow/servicenow-original.svg @@ -0,0 +1 @@ + diff --git a/packages/react/marks/source/sonarqube/SonarQube_Mark.svg b/packages/react/marks/source/sonarqube/SonarQube_Mark.svg new file mode 100644 index 00000000..022fc492 --- /dev/null +++ b/packages/react/marks/source/sonarqube/SonarQube_Mark.svg @@ -0,0 +1,9 @@ + +AAA0RGp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAADQeanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46dXVpZDoyNTk0MWU2ZC05ODJmLTQzODItOWE4Yy05ZTNiNzE4MTVhMjIAAAABtGp1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAANdqdW1iAAAAJmp1bWRjYm9yABEAEIAAAKoAOJtxA2MycGEuYWN0aW9ucwAAAACpY2JvcqFnYWN0aW9uc4GjZmFjdGlvbmtjMnBhLmVkaXRlZG1zb2Z0d2FyZUFnZW50bUFkb2JlIEZpcmVmbHlxZGlnaXRhbFNvdXJjZVR5cGV4U2h0dHA6Ly9jdi5pcHRjLm9yZy9uZXdzY29kZXMvZGlnaXRhbHNvdXJjZXR5cGUvY29tcG9zaXRlV2l0aFRyYWluZWRBbGdvcml0aG1pY01lZGlhAAAArGp1bWIAAAAoanVtZGNib3IAEQAQgAAAqgA4m3EDYzJwYS5oYXNoLmRhdGEAAAAAfGNib3KlamV4Y2x1c2lvbnOBomVzdGFydBiwZmxlbmd0aBlFsGRuYW1lbmp1bWJmIG1hbmlmZXN0Y2FsZ2ZzaGEyNTZkaGFzaFggW9Aw6uhSo/MvCIXeiN2lfYTmeVeRIc7EomckckE1DaRjcGFkSQAAAAAAAAAAAAAAAgtqdW1iAAAAJGp1bWRjMmNsABEAEIAAAKoAOJtxA2MycGEuY2xhaW0AAAAB32Nib3KoaGRjOnRpdGxlb0dlbmVyYXRlZCBJbWFnZWlkYzpmb3JtYXRtaW1hZ2Uvc3ZnK3htbGppbnN0YW5jZUlEeCx4bXA6aWlkOjU4OGYwNjk0LWVjOWYtNDYzZi04ZmVjLTQwYWViYmU5NDc1NG9jbGFpbV9nZW5lcmF0b3J4NkFkb2JlX0lsbHVzdHJhdG9yLzI4LjcgYWRvYmVfYzJwYS8wLjcuNiBjMnBhLXJzLzAuMjUuMnRjbGFpbV9nZW5lcmF0b3JfaW5mb4G/ZG5hbWVxQWRvYmUgSWxsdXN0cmF0b3JndmVyc2lvbmQyOC43/2lzaWduYXR1cmV4GXNlbGYjanVtYmY9YzJwYS5zaWduYXR1cmVqYXNzZXJ0aW9uc4KiY3VybHgnc2VsZiNqdW1iZj1jMnBhLmFzc2VydGlvbnMvYzJwYS5hY3Rpb25zZGhhc2hYIEppwb3/qN5BMHi+JO3M+DE6wdFklTRWcaANawazN9SvomN1cmx4KXNlbGYjanVtYmY9YzJwYS5hc3NlcnRpb25zL2MycGEuaGFzaC5kYXRhZGhhc2hYIMu6yhLEkjM2VrjKYqvfEd4ds9mG3dMInH1E+jhyP01SY2FsZ2ZzaGEyNTYAADAQanVtYgAAAChqdW1kYzJjcwARABCAAACqADibcQNjMnBhLnNpZ25hdHVyZQAAAC/gY2JvctKEWQzCogE4JBghglkGEDCCBgwwggP0oAMCAQICEH/ydB/Rxt5DtZR6jmVwnp4wDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCVVMxIzAhBgNVBAoTGkFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkMR0wGwYDVQQLExRBZG9iZSBUcnVzdCBTZXJ2aWNlczEiMCAGA1UEAxMZQWRvYmUgUHJvZHVjdCBTZXJ2aWNlcyBHMzAeFw0yNDAxMTEwMDAwMDBaFw0yNTAxMTAyMzU5NTlaMH8xETAPBgNVBAMMCGNhaS1wcm9kMRMwEQYDVQQKDApBZG9iZSBJbmMuMREwDwYDVQQHDAhTYW4gSm9zZTETMBEGA1UECAwKQ2FsaWZvcm5pYTELMAkGA1UEBhMCVVMxIDAeBgkqhkiG9w0BCQEWEWNhaS1vcHNAYWRvYmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA79MAp32GPZZBw7MpK0xuxWJZ2BwXMrmpbg+bvVC487/hbE1ji4PDYa8/UU8SPRHgW7t1pu3+L6j7EGH8ZBKdMCGug1ZhDmYWwHkX24cm1kPw+Fr73JOJhGUfkGZk6SJ+x1+tYG7TBR5SVMZGAXLSKALfUwQBW8/XeSINlhtG7B9/W+v/FEl5yCJOBQenbQUU9cXhMEg7cDndWAaV1zQSZkVh1zSWWfOaH9rQU3rIP5DL06ziScWA2fe1ONesHL21aJpXnrPjV1GN/2QeMR/jbGYpbO5tWy9r9oUpx4i6KmXlCpJWx1Jk+GaY62QnbbiLFpuY9jz1yq+xylLgm2UlwQIDAQAFo4IBjDCCAYgwDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMCB4AwHgYDVR0lBBcwFQYJKoZIhvcvAQEMBggrBgEFBQcDBDCBjgYDVR0gBIGGMIGDMIGABgkqhkiG9y8BAgMwczBxBggrBgEFBQcCAjBlDGNZb3UgYXJlIG5vdCBwZXJtaXR0ZWQgdG8gdXNlIHRoaXMgTGljZW5zZSBDZXJ0aWZpY2F0ZSBleGNlcHQgYXMgcGVybWl0dGVkIGJ5IHRoZSBsaWNlbnNlIGFncmVlbWVudC4wXQYDVR0fBFYwVDBSoFCgToZMaHR0cDovL3BraS1jcmwuc3ltYXV0aC5jb20vY2FfN2E1YzNhMGM3MzExNzQwNmFkZDE5MzEyYmMxYmMyM2YvTGF0ZXN0Q1JMLmNybDA3BggrBgEFBQcBAQQrMCkwJwYIKwYBBQUHMAGGG2h0dHA6Ly9wa2ktb2NzcC5zeW1hdXRoLmNvbTAfBgNVHSMEGDAWgBRXKXoyTcz+5DVOwB8kc85zU6vfajANBgkqhkiG9w0BAQsFAAOCAgEAIWPV/Nti76MPfipUnZACP/eVrEv59WObHuWCZHj1By8bGm5UmjTgPQYlXyTj8XE/iY27phgrHg0piDsWDzu5s8B6TKkaMmUvgtk+UgukybbfdtBC6KvtGgy40cO4DkEUoPDitDxT1igbQqdKogAoVKqDEVqnF+CFQQztbGcZhFI9XKTsCQwf9hw7LhJCo6jANBIABNyQtSwWIpPeSEJhPVgWLyKepgQxJMqL6sgYZxGq9pCSQn2gS8pafyQFLByZwEBD/DxytRZZL6b3ZXqF+fZZsE9fsBxpcWFiv8pFvgBQOtCzlSbfG8o7bgBPJXm7mAA8j3t3hDEeEx0Gx8B/9a89pzTebWVrD3SEe0uZl9EbVC++F4EosRJFdYwzuP1iJO1d5I3VxGa9FrVq/FYBGORvvDaTwandizCwae43ozCI97QPEUtS+jJztz1kapHcBsLAh7LxnE82rlmq1o4vfdFsQUz7HEpOkPFkyKohyPTn1FIq4lkJKX3jBA6Na/sxyUZo9uvs4CA+0AeNcTXldyugRUF+mspdbMLiIduigdDLu+LJ3UcxvvLTE3374waDvUD1vzrXVsmJrCxk9CnI/RGmiINSZoDbUQcKPX/PXmCUmMHp0PhnXaanZwSI5Ot0Pit4AnZaU7PvrSQmew1/cp3ZmJcfeB4FGRT3DYprp+lZBqUwggahMIIEiaADAgECAhAMqLZUe4nm0gaJdc2Lm4niMA0GCSqGSIb3DQEBCwUAMGwxCzAJBgNVBAYTAlVTMSMwIQYDVQQKExpBZG9iZSBTeXN0ZW1zIEluY29ycG9yYXRlZDEdMBsGA1UECxMUQWRvYmUgVHJ1c3QgU2VydmljZXMxGTAXBgNVBAMTEEFkb2JlIFJvb3QgQ0EgRzIwHhcNMTYxMTI5MDAwMDAwWhcNNDExMTI4MjM1OTU5WjB1MQswCQYDVQQGEwJVUzEjMCEGA1UEChMaQWRvYmUgU3lzdGVtcyBJbmNvcnBvcmF0ZWQxHTAbBgNVBAsTFEFkb2JlIFRydXN0IFNlcnZpY2VzMSIwIAYDVQQDExlBZG9iZSBQcm9kdWN0IFNlcnZpY2VzIEczMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtx8uvb0Js1xIbP4Mg65sAepReCWkgD6Jp7GyiGTa9ol2gfn5HfOV/HiYjZiOz+TuHFU+DXNad86xEqgVeGVMlvIHGe/EHcKBxvEDXdlTXB5zIEkfl0/SGn7J6vTX8MNybfSi95eQDUOZ9fjCaq+PBFjS5ZfeNmzi/yR+MsA0jKKoWarSRCFFFBpUFQWfAgLyXOyxOnXQOQudjxNj6Wu0X0IB13+IH11WcKcWEWXM4j4jh6hLy29Cd3EoVG3oxcVenMF/EMgD2tXjx4NUbTNB1/g9+MR6Nw5Mhp5k/g3atNExAxhtugC+T3SDShSEJfs2quiiRUHtX3RhOcK1s1OJgT5s2s9xGy5/uxVpcAIaK2KiDJXW3xxN8nXPmk1NSVu/mxtfapr4TvSJbhrU7UA3qhQY9n4On2sbH1X1Tw+7LTek8KCA5ZDghOERPiIp/Jt893qov1bE5rJkagcVg0Wqjh89NhCaBA8VyRt3ovlGyCKdNV2UL3bn5vdFsTk7qqmp9makz1/SuVXYxIf6L6+8RXOatXWaPkmucuLE1TPOeP7S1N5JToFCs80l2D2EtxoQXGCR48K/cTUR5zV/fQ+hdIOzoo0nFn77Y8Ydd2k7/x9BE78pmoeMnw6VXYfXCuWEgj6p7jpbLoxQMoWMCVzlg72WVNhJFlSw4aD8fc6ezeECAwEAAaOCATQwggEwMBIGA1UdEwEB/wQIMAYBAf8CAQAwNQYDVR0fBC4wLDAqoCigJoYkaHR0cDovL2NybC5hZG9iZS5jb20vYWRvYmVyb290ZzIuY3JsMA4GA1UdDwEB/wQEAwIBBjAUBgNVHSUEDTALBgkqhkiG9y8BAQcwVwYDVR0gBFAwTjBMBgkqhkiG9y8BAgMwPzA9BggrBgEFBQcCARYxaHR0cHM6Ly93d3cuYWRvYmUuY29tL21pc2MvcGtpL3Byb2Rfc3ZjZV9jcHMuaHRtbDAkBgNVHREEHTAbpBkwFzEVMBMGA1UEAxMMU1lNQy00MDk2LTMzMB0GA1UdDgQWBBRXKXoyTcz+5DVOwB8kc85zU6vfajAfBgNVHSMEGDAWgBSmHOFtVCRMqI9Icr9uqYzV5Owx1DANBgkqhkiG9w0BAQsFAAOCAgEAcc7lB4ym3C3cyOA7ZV4AkoGV65UgJK+faThdyXzxuNqlTQBlOyXBGFyevlm33BsGO1mDJfozuyLyT2+7IVxWFvW5yYMV+5S1NeChMXIZnCzWNXnuiIQSdmPD82TEVCkneQpFET4NDwSxo8/ykfw6Hx8fhuKz0wjhjkWMXmK3dNZXIuYVcbynHLyJOzA+vWU3sH2T0jPtFp7FN39GZne4YG0aVMlnHhtHhxaXVCiv2RVoR4w1QtvKHQpzfPObR53Cl74iLStGVFKPwCLYRSpYRF7J6vVS/XxW4LzvN2b6VEKOcvJmN3LhpxFRl3YYzW+dwnwtbuHW6WJlmjffbLm1MxLFGlG95aCz31X8wzqYNsvb9+5AXcv8Ll69tLXmO1OtsY/3wILNUEp4VLZTE3wqm3n8hMnClZiiKyZCS7L4E0mClbx+BRSMH3eVo6jgve41/fK3FQM4QCNIkpGs7FjjLy+ptC+JyyWqcfvORrFV/GOgB5hD+G5ghJcIpeigD/lHsCRYsOa5sFdqREhwIWLmSWtNwfLZdJ3dkCc7yRpm3gal6qRfTkYpxTNxxKyvKbkaJDoxR9vtWrC3iNrQd9VvxC3TXtuzoHbqumeqgcAqefWF9u6snQ4Q9FkXzeuJArNuSvPIhgBjVtggH0w0vm/lmCQYiC/Y12GeCxfgYlL33buiZnNpZ1RzdKFpdHN0VG9rZW5zgaFjdmFsWQ43MIIOMzADAgEAMIIOKgYJKoZIhvcNAQcCoIIOGzCCDhcCAQMxDzANBglghkgBZQMEAgEFADCBgwYLKoZIhvcNAQkQAQSgdARyMHACAQEGCWCGSAGG/WwHATAxMA0GCWCGSAFlAwQCAQUABCBYAaux1TShQdwtX9SDkSBSX8k73Qm7uU8E3uxQZtvfzAIRAMEBQ5UwxNOeTorlqmS6duwYDzIwMjQxMDE2MjA0MjU1WgIJALqfQQm7rrisoIILvTCCBQcwggLvoAMCAQICEAUenpHXHpEKu+Q9XO3Q3dkwDQYJKoZIhvcNAQELBQAwYzELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMuMTswOQYDVQQDEzJEaWdpQ2VydCBUcnVzdGVkIEc0IFJTQTQwOTYgU0hBMjU2IFRpbWVTdGFtcGluZyBDQTAeFw0yMzA5MDgwMDAwMDBaFw0zNDEyMDcyMzU5NTlaMFgxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5EaWdpQ2VydCwgSW5jLjEwMC4GA1UEAxMnRGlnaUNlcnQgQWRvYmUgQUFUTCBUaW1lc3RhbXAgUmVzcG9uZGVyMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETSyuUfkD/7Xn8wWXVqw2HxDxO5s6wRV+7SqUmsXSyaO3AvUh4dn8AHsnn27VOumGjUEM3zmV9NjfSs0Gx9P6bKOCAYswggGHMA4GA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8EAjAAMBYGA1UdJQEB/wQMMAoGCCsGAQUFBwMIMCAGA1UdIAQZMBcwCAYGZ4EMAQQCMAsGCWCGSAGG/WwHATAfBgNVHSMEGDAWgBS6FtltTYUvcyl2mi91jGogj57IbzAdBgNVHQ4EFgQUsDWqVsMhqYvO07i8ixYlV53vNOEwWgYDVR0fBFMwUTBPoE2gS4ZJaHR0cDovL2NybDMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZEc0UlNBNDA5NlNIQTI1NlRpbWVTdGFtcGluZ0NBLmNybDCBkAYIKwYBBQUHAQEEgYMwgYAwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBYBggrBgEFBQcwAoZMaHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZEc0UlNBNDA5NlNIQTI1NlRpbWVTdGFtcGluZ0NBLmNydDANBgkqhkiG9w0BAQsFAAOCAgEAeCuMQseEEIRYlILJFfuWwvQL0smBtfWvJVjJI1HEeQxHYuoLs9BlEmAM1H6Qminw/m/YHOn+MyvPDhTiljqti/cjwekWUlri4HBRMhSAdamLxfF3UkQRf3g844OLsfJJ6RfrQDTnkGjMVvsYZVrFvQut5BNFeeSvqCA81Q9f0aH7ZJw7GVN1BAuBluR1i/GjcCnpzL2uJmKNHE5mqI7JZLExSGArF4rPCsVbpdt7RrA2E5RdnMjFziLGkrNZIi2k8nfRmIFCfj1TcANhOeyFs31mRMDWkd/82i/ZlS+912RnxRi/Cj28G8tMO+eYAGdEwEppdgCzdkK/D0KQM85ZN5QkwVEC2ZTHnaiFoDecPxsInpR+lDakV851KHClvoYq/SD4GBx0gbYsc8nRR+av5eamBmCr8ciB7SGNwIAOmMOCrbPgHQvjG0ADUzwytTHTaHFvvXTicUqoy6/nMlNCXeyDCpdTI/73MdA/3L9nkXH8BBas5cJbnp1Xs/hwUEmXzMeqKeWGQ5K1nWbbb70eWr54LSEnaWQXUu7NF0klv/nUteg8pGeikUOeDpemgPt4brDhikDH34/TQm5SgGxhKt2y4WLJbJBAYECeMjr2CBtItxb6EnK26KdrFrBWUi0mRLZ5XlnhezE+Dt/za5GR203SFMd4j3cI3c5Z5F5ucrswggauMIIElqADAgECAhAHNje3JFR82Ees/ShmKl5bMA0GCSqGSIb3DQEBCwUAMGIxCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IFRydXN0ZWQgUm9vdCBHNDAeFw0yMjAzMjMwMDAwMDBaFw0zNzAzMjIyMzU5NTlaMGMxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5EaWdpQ2VydCwgSW5jLjE7MDkGA1UEAxMyRGlnaUNlcnQgVHJ1c3RlZCBHNCBSU0E0MDk2IFNIQTI1NiBUaW1lU3RhbXBpbmcgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDGhjUGSbPBPXJJUVXHJQPE8pE3qZdRodbSg9GeTKJtoLDMg/la9hGhRBVCX6SI82j6ffOciQt/nR+eDzMfUBMLJnOWbfhXqAJ9/UO0hNoR8XOxs+4rgISKIhjf69o9xBd/qxkrPkLcZ47qUT3w1lbU5ygt69OxtXXnHwZljZQp09nsad/ZkIdGAHvbREGJ3HxqV3rwN3mfXazL6IRktFLydkf3YYMZ3V+0VAshaG43IbtArF+y3kp9zvU5EmfvDqVjbOSmxR3NNg1c1eYbqMFkdECnwHLFuk4fsbVYTXn+149zk6wsOeKlSNbwsDETqVcplicu9Yemj052FVUmcJgmf6AaRyBD40NjgHt1biclkJg6OBGz9vae5jtb7IHeIhTZgirHkr+g3uM+onP65x9abJTyUpURK1h0QCirc0PO30qhHGs4xSnzyqqWc0Jon7ZGs506o9UD4L/wojzKQtwYSH8UNM/STKvvmz3+DrhkKvp1KCRB7UK/BZxmSVJQ9FHzNklNiyDSLFc1eSuo80VgvCONWPfcYd6T/jnA+bIwpUzX6ZhKWD7TA4j+s4/TXkt2ElGTyYwMO1uKIqjBJgj5FBASA31fI7tk42PgpuE+9sJ0sj8eCXbsq11GdeJgo1gJASgADoRU7s7pXcheMBK9Rp6103a50g5rmQzSM7TNsQIDAQABo4IBXTCCAVkwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUuhbZbU2FL3MpdpovdYxqII+eyG8wHwYDVR0jBBgwFoAU7NfjgtJxXWRM3y5nP+e6mK4cD08wDgYDVR0PAQH/BAQDAgGGMBMGA1UdJQQMMAoGCCsGAQUFBwMIMHcGCCsGAQUFBwEBBGswaTAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29tMEEGCCsGAQUFBzAChjVodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGlnaUNlcnRUcnVzdGVkUm9vdEc0LmNydDBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vY3JsMy5kaWdpY2VydC5jb20vRGlnaUNlcnRUcnVzdGVkUm9vdEc0LmNybDAgBgNVHSAEGTAXMAgGBmeBDAEEAjALBglghkgBhv1sBwEwDQYJKoZIhvcNAQELBQADggIBAH1ZjsCTtm+YqUQiAX5m1tghQuGwGC4QTRPPMFPOvxj7x1Bd4ksp+3CKDaopafxpwc8dB+k+YMjYC+VcW9dth/qEICU0MWfNthKWb8RQTGIdDAiCqBa9qVbPFXONASIlzpVpP0d3+3J0FNf/q0+KLHqrhc1DX+1gtqpPkWaeLJ7giqzl/Yy8ZCaHbJK9nXzQcAp876i8dU+6WvepELJd6f8oVInw1YpxdmXazPByoyP6wCeCRK6ZJxurJB4mwbfeKuv2nrF5mYGjVoarCkXJ38SNoOeY+/umnXKvxMfBwWpx2cYTgAnEtp/Nh4cku0+jSbl3ZpHxcpzpSwJSpzd+k1OsOx0ISQ+UzTl63f8lY5knLD0/a6fxZsNBzU+2QJshIUDQtxMkzdwdeDrknq3lNHGS1yZr5Dhzq6YBT70/O3itTK37xJV77QpfMzmHQXh6OOmc4d0j/R0o08f56PGYX/sr2H7yRp11LB4nLCbbbxV7HhmLNriT1ObyF5lZynDwN7+YAN8gFk8n+2BnFqFmut1VwDophrCYoCvtlUG3OtUVmDG0YgkPCr2B2RP+v6TR81fZvAT6gt4y3wSJ8ADNXcL50CN/AAvkdgIm2fBldkKmKYcJRyvmfxqkhQ/8mJb2VVQrH4D6wPIOK+XW+6kvRBVK5xMOHds3OBqhK/bt1nz8MYIBuDCCAbQCAQEwdzBjMQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xOzA5BgNVBAMTMkRpZ2lDZXJ0IFRydXN0ZWQgRzQgUlNBNDA5NiBTSEEyNTYgVGltZVN0YW1waW5nIENBAhAFHp6R1x6RCrvkPVzt0N3ZMA0GCWCGSAFlAwQCAQUAoIHRMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAcBgkqhkiG9w0BCQUxDxcNMjQxMDE2MjA0MjU1WjArBgsqhkiG9w0BCRACDDEcMBowGDAWBBTZGrkz/het6YIephP1pDpxTj5+fTAvBgkqhkiG9w0BCQQxIgQg6EaW/0uj2SpY7R1XrNr2lrRK4e9w7GKKp1PdRsgbESIwNwYLKoZIhvcNAQkQAi8xKDAmMCQwIgQggtrxlJV7NoQCRY/VJwBp/mLHFFb6nguGq/gn6FMgJ9kwCgYIKoZIzj0EAwIERzBFAiEAk2jLgX4VQT9Pqb/W5aQflqHzduvVEyJfxSLj4Bl+T+8CIAOIYbxIvzKqZXqTug1mgCTDA/t7h60nnG2X37BJ6/1gY3BhZFkTswAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZZAQAAJecXmLF1crD00Q0cdmtaKhqsYpkP+f7x/Qk4X+PtVjGTdZUzQMpONLJsZqsebo9znKsL4f7ypd9NzuC6QL44bUn8GuGxifxkhapcIEs7DAYdZ69b1JOyHAAj0dbGG4YnTPVOVnrOFlHZjT5PxR2Yt1ecmlgro19P/HN6H2pym2rnMUUuDsCM6bt8h4IM0elzQAUg0M0oHpfHDnkq5Xe/vTOhfKGYLNX9rwUW5rWoQzknZq+ONAuE3fcZsFTaQuLAhE6oOcFIndiFOu92DtbtvNk5eLJSErn8U73OL6crby/ol1jMO6/gZcGdCWoFd1GrEqQ4F1f5e7ZN0zxO66n+ + + + + + + + \ No newline at end of file diff --git a/packages/react/marks/source/temporal/Temporal_Symbol_dark.svg b/packages/react/marks/source/temporal/Temporal_Symbol_dark.svg new file mode 100644 index 00000000..b0098bb6 --- /dev/null +++ b/packages/react/marks/source/temporal/Temporal_Symbol_dark.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/packages/react/marks/source/temporal/Temporal_Symbol_light.svg b/packages/react/marks/source/temporal/Temporal_Symbol_light.svg new file mode 100644 index 00000000..95cae570 --- /dev/null +++ b/packages/react/marks/source/temporal/Temporal_Symbol_light.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/packages/react/package.json b/packages/react/package.json index 18e35cc1..471bf516 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -25,6 +25,10 @@ "types": "./dist/tooling/imports.d.ts", "default": "./dist/tooling/imports.js" }, + "./marks/*": { + "types": "./dist/marks/*.d.ts", + "default": "./dist/marks/*.js" + }, "./head/theme.js": "./dist/head/theme.js", "./head/loops.js": "./dist/head/loops.js", "./styles.css": "./dist/styles.css", @@ -32,7 +36,8 @@ "./fonts.css": "./dist/fonts.css" }, "files": [ - "dist" + "dist", + "THIRD-PARTY-MARKS.md" ], "scripts": { "build": "node build.mjs", diff --git a/packages/react/src/architecture-diagram.tsx b/packages/react/src/architecture-diagram.tsx index c1575929..779c3b91 100644 --- a/packages/react/src/architecture-diagram.tsx +++ b/packages/react/src/architecture-diagram.tsx @@ -2,9 +2,9 @@ import * as React from "react"; import { DiagramFigure } from "./diagram-figure"; import type { DiagramFigureProps } from "./diagram-figure"; -import type { ArchitectureNode, DiagramEdge, DiagramGroup } from "./diagram-core"; +import type { ArchitectureNode, DiagramFlowEdge, DiagramGroup, DiagramPacket } from "./diagram-core"; -export type { ArchitectureNode, DiagramEdge, DiagramGroup, DiagramLegend, DiagramLineKind, DiagramNode, DiagramSide } from "./diagram-core"; +export type { ArchitectureNode, DiagramEdge, DiagramFlowEdge, DiagramGroup, DiagramLegend, DiagramLineKind, DiagramMark, DiagramMotion, DiagramNode, DiagramPacket, DiagramSide } from "./diagram-core"; export type { DiagramFigureProps } from "./diagram-figure"; export interface ArchitectureDiagramProps extends DiagramFigureProps { @@ -12,12 +12,16 @@ export interface ArchitectureDiagramProps extends DiagramFigureProps { nodes: ArchitectureNode[]; /** One level of grouping: `group: "aws"` on the members and `{ id, label }` here. The box is derived from its members. */ groups?: DiagramGroup[]; - /** The lines, by node id. Sides are derived; name one only to change it. */ - edges: DiagramEdge[]; + /** The lines, by node id. Sides are derived; name one only to change it. `flow` marks a live stream (main or plain), which an animated figure marches. */ + edges: DiagramFlowEdge[]; + /** Animated only: a bead runs this route of node ids (each pair joined by a line in that direction), resting at each card. One of pulse and packet. */ + pulse?: string[]; + /** Animated only: a dot carries one message along `path`, sending itself (`repeat`) or once for each new `send` value. One of pulse and packet. */ + packet?: DiagramPacket; } /** An architecture diagram (DECISIONS 281): nodes with a kind, a name and a detail, groups, and three kinds of line. */ -export function ArchitectureDiagram({ nodes, groups, edges, title, heading, legend, ...props }: ArchitectureDiagramProps) { - const spec = React.useMemo(() => ({ type: "architecture" as const, title, heading, legend, nodes, groups, edges }), [title, heading, legend, nodes, groups, edges]); +export function ArchitectureDiagram({ nodes, groups, edges, pulse, packet, motion, title, heading, legend, ...props }: ArchitectureDiagramProps) { + const spec = React.useMemo(() => ({ type: "architecture" as const, title, heading, legend, nodes, groups, edges, motion, pulse, packet }), [title, heading, legend, nodes, groups, edges, motion, pulse, packet]); return ; } diff --git a/packages/react/src/data-flow-diagram.tsx b/packages/react/src/data-flow-diagram.tsx index 4297e1e1..707c7039 100644 --- a/packages/react/src/data-flow-diagram.tsx +++ b/packages/react/src/data-flow-diagram.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { DiagramFigure } from "./diagram-figure"; import type { DiagramFigureProps } from "./diagram-figure"; -import type { DataFlowLane, DataFlowNode, DiagramEdge } from "./diagram-core"; +import type { DataFlowLane, DataFlowNode, DiagramFlowEdge, DiagramPacket } from "./diagram-core"; export type { DataFlowLane, DataFlowNode, DiagramEdge, DiagramLegend, DiagramLineKind, DiagramSide } from "./diagram-core"; @@ -11,13 +11,18 @@ export interface DataFlowDiagramProps extends DiagramFigureProps { lanes: DataFlowLane[]; /** The steps in order: a node's place here is its step number. `col` counts the step columns. */ nodes: DataFlowNode[]; - edges: DiagramEdge[]; + /** `flow` marks a live stream (main or plain), which an animated figure marches. */ + edges: DiagramFlowEdge[]; /** How a step's number is written (default "Step 3"). */ stepLabel?: (n: number) => string; + /** Animated only: a bead runs this route of node ids, resting at each card. One of pulse and packet. */ + pulse?: string[]; + /** Animated only: a dot carries one message along `path` (`repeat`, or once for each new `send` value). One of pulse and packet. */ + packet?: DiagramPacket; } /** A data flow (DECISIONS 281): lanes as bands, steps numbered in order; stacked, a step says its lane. */ -export function DataFlowDiagram({ lanes, nodes, edges, stepLabel, title, heading, legend, ...props }: DataFlowDiagramProps) { - const spec = React.useMemo(() => ({ type: "data-flow" as const, title, heading, legend, lanes, nodes, edges, stepLabel }), [title, heading, legend, lanes, nodes, edges, stepLabel]); +export function DataFlowDiagram({ lanes, nodes, edges, stepLabel, pulse, packet, motion, title, heading, legend, ...props }: DataFlowDiagramProps) { + const spec = React.useMemo(() => ({ type: "data-flow" as const, title, heading, legend, lanes, nodes, edges, stepLabel, motion, pulse, packet }), [title, heading, legend, lanes, nodes, edges, stepLabel, motion, pulse, packet]); return ; } diff --git a/packages/react/src/diagram-core.ts b/packages/react/src/diagram-core.ts index 13466a60..d017b1af 100644 --- a/packages/react/src/diagram-core.ts +++ b/packages/react/src/diagram-core.ts @@ -47,7 +47,29 @@ export interface DiagramEdge { } export interface DiagramGroup { id: string; label: string } -export type ArchitectureNode = DiagramNode & { group?: string }; +/** + * A service's own mark for an architecture card (DECISIONS 292, 2.7): its owner's file for light grounds and, if it has one, for dark grounds, each + * a URL the app has the right to show (a file path or a data URI). `onDark` defaults to `onLight`. Basalt draws it 16px in the card's top end corner + * and does nothing to the file. The bundled marks are `@srasyndicate/basalt/marks/`. + */ +export interface DiagramMark { + onLight: string; + onDark?: string; + /** The words the mark stands for (each bundled mark carries them): a development build warns when a card's words say none of them. */ + says?: readonly string[]; +} +export type ArchitectureNode = DiagramNode & { group?: string; mark?: DiagramMark }; +/** A line of an architecture or a data flow. `flow` marks a live stream (main or plain only): an animated figure marches it. */ +export type DiagramFlowEdge = DiagramEdge & { flow?: boolean }; +/** A packet (DECISIONS 292, 1.8): a dot that carries one message along `path`, a route of node ids. */ +export interface DiagramPacket { + path: string[]; + /** It sends itself: when the entrance settles, then duration-diagram-repeat after each landing. */ + repeat?: boolean; + /** A number or a string the app changes: each new value sends one message (the first render sends none). */ + send?: number | string; +} +export type DiagramMotion = "still" | "animated"; export type FlowchartNode = DiagramNode & { shape?: "step" | "decision" | "terminal" }; export interface DataFlowLane { id: string; label: string } export type DataFlowNode = Omit & { lane: string }; @@ -72,6 +94,11 @@ export interface DiagramSpec { tables?: SchemaTable[]; shapeLabels?: DiagramShapeLabels; stepLabel?: ((n: number) => string) | string; + /** Default "still": the drawing as merged, with no motion code loaded (DECISIONS 292). */ + motion?: DiagramMotion; + pulse?: string[]; + packet?: DiagramPacket; + run?: boolean; } // ============================================================================================================================================ @@ -101,6 +128,8 @@ export interface MNode { columns?: MColumn[]; more?: number; short?: string; + /** A card's mark: a bundled id (the HTML skill's page holds its rule) or the two URLs. */ + mark?: { id?: string; onLight?: string; onDark?: string; says?: string[] }; } export interface MEdge { i: number; @@ -114,6 +143,8 @@ export interface MEdge { fromRow?: number; toRow?: number; fk?: boolean; + /** A live stream (DECISIONS 292, 1.6). */ + flow?: boolean; } export type MStep = { band: string } | { n: number; from: string; to: string; label: string; note?: string; kind: DiagramLineKind }; export interface Model { @@ -132,6 +163,8 @@ export interface Model { shapeLabels: Required; stepWord: (n: number) => string; warnings: string[]; + /** Motion (DECISIONS 292). Read and ignored when still. */ + motion: { animated: boolean; pulse?: string[]; packet?: { path: string[]; repeat: boolean; send?: number | string }; run: boolean }; /** Work that depends on the model alone, done once (see `memo`). */ memo: Map; } @@ -202,6 +235,7 @@ export function buildModel(spec: DiagramSpec, options: BuildOptions = {}): Model nodes.push({ id, i: nodes.length, name: String(raw.name ?? ""), kind: shape === "decision" ? undefined : txt(raw.kind), detail: shape === "decision" ? undefined : txt(raw.detail), mono: Boolean(raw.detailMono), focal: Boolean(raw.focal), col: trackOf(raw.col, `the column of ${id}`), row, row2: row, branch: Boolean(raw.branch), shape, group: type === "architecture" ? txt(raw.group) : undefined, + mark: type === "architecture" ? markOf((raw as { mark?: unknown }).mark) : undefined, }); } if (type === "architecture") for (const g of spec.groups ?? []) { const gid = String(g.id ?? ""); groups.push({ id: gid, label: String(g.label ?? ""), members: nodes.filter((n) => n.group === gid).map((n) => n.id) }); } @@ -266,7 +300,7 @@ export function buildModel(spec: DiagramSpec, options: BuildOptions = {}): Model if (!byId.has(from) || !byId.has(to)) { warn(`a line names ${!byId.has(from) ? from : to}, which is not a node`); continue; } const label = txt(e.label); if (label && label.length > MAX_LABEL) warn(`the label "${label}" is over ${MAX_LABEL} characters: longer words belong in the node or the summary`); - edges.push({ i: edges.length, from, to, kind: kindOf(e.kind, `the line from ${from} to ${to}`), label, fromSide: sideOf(e.fromSide), toSide: sideOf(e.toSide) }); + edges.push({ i: edges.length, from, to, kind: kindOf(e.kind, `the line from ${from} to ${to}`), label, fromSide: sideOf(e.fromSide), toSide: sideOf(e.toSide), flow: type !== "flowchart" && (e as DiagramFlowEdge).flow === true ? true : undefined }); } } else { for (const s of steps) if ("n" in s) { @@ -301,11 +335,41 @@ export function buildModel(spec: DiagramSpec, options: BuildOptions = {}): Model if (nodes.some((n) => n.focal) && !legend.focal) warn("a focal node is drawn but the legend has no words for what it marks (legend.focal)"); } + // Motion (DECISIONS 292). Movers and flow belong to an architecture and a data flow, the run to a sequence; anywhere else they are not read. The + // development errors about them are the motion module's (motionErrors), which only an animated figure loads. + const movers = type === "architecture" || type === "data-flow"; + const route = (v: unknown): string[] | undefined => (Array.isArray(v) && v.length > 1 ? v.map(String) : undefined); + const packetIn = movers && spec.packet && typeof spec.packet === "object" ? spec.packet : undefined; + const packetPath = packetIn && route(packetIn.path); + const motion: Model["motion"] = { + animated: spec.motion === "animated", + pulse: movers ? route(spec.pulse) : undefined, + packet: packetPath ? { path: packetPath, repeat: packetIn!.repeat === true, send: packetIn!.send } : undefined, + run: type === "sequence" && spec.run === true, + }; + if (checks) for (const n of nodes) { + const says = n.mark?.says; + if (!says?.length) continue; + const words = [n.name, n.kind, n.detail].filter(Boolean).join(" ").toLowerCase(); + if (!says.some((w) => words.includes(w.toLowerCase()))) warn(`${n.id}'s mark stands for ${says.join(" or ")}, and none of its words say so`); + } const cols = Math.max(1, ...nodes.map((n) => n.col)); const rows = type === "data-flow" ? Math.max(1, lanes.length) : Math.max(1, ...nodes.map((n) => n.row2)); - return { type, title: String(spec.title ?? ""), heading: heading as Model["heading"], legend, nodes, byId, edges, groups, lanes, steps, cols, rows, shapeLabels, stepWord, warnings, memo: new Map() }; + return { type, title: String(spec.title ?? ""), heading: heading as Model["heading"], legend, nodes, byId, edges, groups, lanes, steps, cols, rows, shapeLabels, stepWord, warnings, motion, memo: new Map() }; } +/** A card's mark from the author's data: a bundled id (a string), or `{ onLight, onDark }` (with the words a bundled one stands for, `says`). */ +function markOf(v: unknown): MNode["mark"] { + if (typeof v === "string") return v ? { id: v } : undefined; + if (!v || typeof v !== "object") return undefined; + const o = v as { onLight?: unknown; onDark?: unknown; says?: unknown }; + const onLight = txt(o.onLight); + if (!onLight) return undefined; + return { onLight, onDark: txt(o.onDark) ?? onLight, says: Array.isArray(o.says) ? o.says.map(String) : undefined }; +} +/** A URL as a CSS string: what would end it or the declaration is escaped, so a URL can only ever be read as one. */ +const cssUrl = (u: string) => `url("${u.replace(/[\\"\n;]/g, (c) => (c === "\n" ? "\\a " : c === ";" ? "\\3b " : `\\${c}`))}")`; + /** A value worked out once a model (the stack's plan, the sentences, the key and the list), kept on the model so a state change does not redo it. */ function memo(m: Model, key: string, make: () => T): T { if (!m.memo.has(key)) m.memo.set(key, make()); @@ -662,6 +726,7 @@ function nodeTree(ctx: TreeContext, m: Model, n: MNode, dyn: Dyn): VElement { "data-shape": n.shape, "data-focal": n.focal ? "" : undefined, "data-branch": n.branch ? "" : undefined, + "data-mark": n.mark ? n.mark.id ?? "" : undefined, "data-level": ctx.level, style: style.join(";"), role: images ? "img" : undefined, @@ -669,6 +734,8 @@ function nodeTree(ctx: TreeContext, m: Model, n: MNode, dyn: Dyn): VElement { tabindex: tabbable, }, n.shape === "decision" ? h("svg", { class: `${P}-diamond`, viewBox: "0 0 100 100", preserveAspectRatio: "none", "aria-hidden": "true", focusable: "false" }, h("path", { d: "M50 0L100 50L50 100L0 50Z" })) : null, + // A mark (DECISIONS 292, 2.6): an empty span, the form a background image, so its colours cannot be restyled and nothing of the file reaches the page. + n.mark ? h("span", { class: `${P}-mark`, "aria-hidden": "true", style: n.mark.onLight ? `--_ml:${cssUrl(n.mark.onLight)};--_md:${cssUrl(n.mark.onDark ?? n.mark.onLight)}` : undefined }) : null, n.shape === "table" ? tableText(P, n) : nodeText(P, m, n)); } @@ -849,6 +916,7 @@ export function figureTree(m: Model, dyn: Dyn, o: FigureOptions): VElement { "data-layout": dyn.layout, "data-measured": dyn.layout ? "" : undefined, "data-bare": dyn.bare ? "" : undefined, + "data-motion": m.motion.animated ? "animated" : undefined, style: style.join(";"), }, h("div", { class: `${P}-head` }, h(Head, { id: ids.title, class: `${P}-title` }, m.title), o.hasSource ? h("p", { class: `${P}-source` }, { slot: "source" }) : null), @@ -918,14 +986,14 @@ export interface Geo { oy: number; } -interface Tokens { +export interface Tokens { space: (step: string) => number; node: number; table: number; lane: number; step: number; head: number; guide: number; hair: number; line: number; cut: number; dot: number; dash: number; dashGap: number; wide: number; cap: number; radius: number; radiusXs: number; } -function readTokens(el: Element): Tokens { +export function readTokens(el: Element): Tokens { const style = getComputedStyle(el); const px = (name: string, fallback: number) => { const v = parseFloat(style.getPropertyValue(`--basalt-${name}`)); return Number.isFinite(v) ? v : fallback; }; const cache = new Map(); @@ -1012,6 +1080,8 @@ function segmentThrough(a: Pt, b: Pt, n: GNode): boolean { // ---- Measuring words ---- +const forced = () => matchMedia("(forced-colors: active)").matches; + function ruler(drawing: Element, P: string) { const el = drawing.querySelector(`.${P}-ruler`)!; const known = new Map(); @@ -1039,9 +1109,11 @@ function minimums(m: Model, tk: Tokens, measure: ReturnType) { continue; } const pad = n.shape === "terminal" ? 2 * s("5") : 2 * s("3"); + // The first line (the kind, or the name on a card with no kind) keeps space-6 clear of a mark, except in forced colours, where none is drawn. + const seat = n.mark && !forced() ? s("6") : 0; let widest = 0; - for (const w of words(n.name)) widest = Math.max(widest, measure(w, n.shape === "decision" ? "name-500" : "name")); - if (m.type !== "data-flow") for (const w of words(n.kind)) widest = Math.max(widest, measure(w, "mono")); + for (const w of words(n.name)) widest = Math.max(widest, measure(w, n.shape === "decision" ? "name-500" : "name") + (n.kind ? 0 : seat)); + if (m.type !== "data-flow") for (const w of words(n.kind)) widest = Math.max(widest, measure(w, "mono") + seat); for (const w of words(n.detail)) widest = Math.max(widest, measure(w, n.mono ? "mono" : "sans")); const need = n.shape === "decision" ? widest / 0.62 : widest + pad + 2 * tk.hair; track = Math.max(track, Math.ceil(need)); @@ -1712,7 +1784,7 @@ function stackedGeometry(input: DrawnInput, measure: ReturnType, p // ---- The ink: one string of SVG and labels, the same in React and in the skill ---- -function pathD(pts: Pt[], radius: number): string { +export function pathD(pts: Pt[], radius: number): string { const f = (n: number) => String(Math.round(n * 100) / 100); let d = `M${f(pts[0]!.x)} ${f(pts[0]!.y)}`; for (let k = 1; k < pts.length - 1; k++) { @@ -1931,6 +2003,33 @@ export function applyTrace(fig: HTMLElement, P: string, geo: Geo | null, tokens: }); } +// ============================================================================================================================================ +// The entrance's first frame (DECISIONS 292, 1.5): the part of motion the still code holds, so nothing drawn is ever taken away +// ============================================================================================================================================ + +/** Whether an entrance may not play now: reduced motion, forced colours, print or the page's hold. */ +export const entranceBlocked = (): boolean => matchMedia("(prefers-reduced-motion: reduce), (forced-colors: active), print").matches || document.documentElement.getAttribute("data-loops") === "held"; + +/** + * Called by both engines each time an animated figure's lines are drawn. In the frame the lines are first drawn the figure is marked pending (its lines + * not shown, a sequence's labels in their quieter ink), unless an entrance may not play, when it is at rest for good. A layout with no lines is not + * pending. A running or settled entrance is the motion module's and is left alone: measuring again never replays, hides or cuts one short. + */ +export function entranceDrawn(fig: HTMLElement, lines: boolean): void { + const state = fig.getAttribute("data-entrance"); + if (state === "running" || state === "done") return; + if (!lines) { if (state) fig.removeAttribute("data-entrance"); return; } + if (!state) fig.setAttribute("data-entrance", entranceBlocked() ? "done" : "pending"); +} + +/** Settles a pending or running entrance at once (a node hovered or focused, a key, a control used): every line whole, and the module told. */ +export function settleEntrance(fig: HTMLElement): void { + const state = fig.getAttribute("data-entrance"); + if (state !== "pending" && state !== "running") return; + fig.setAttribute("data-entrance", "done"); + fig.dispatchEvent(new Event("basalt-diagram-settle")); +} + /** The node a key moves to (1.14): → ↓ the next, ← ↑ the one before, in the author's order, stopping at the ends; Home and End the ends. */ export function keyTarget(m: Model, from: string, key: string): string | null { const i = m.byId.get(from)?.i ?? 0; @@ -1954,7 +2053,7 @@ export function keyTarget(m: Model, from: string, key: string): string | null { * script, first in the figure) is passed over, never mistaken for the heading. */ const MANAGED = ["data-layout", "data-measured", "role", "aria-roledescription", "aria-labelledby", "aria-describedby", "aria-label", "tabindex", "data-stops", "hidden"]; -const ROOT_MANAGED = ["data-layout", "data-measured", "data-bare"]; +const ROOT_MANAGED = ["data-layout", "data-measured", "data-bare", "data-motion"]; const MANAGED_STYLE = ["--_track", "--_h", "--_gap", "--_ggrow", "--_gpad"]; const absent = (value: VAttrs[string]) => value === undefined || value === null || value === false; function pairs(el: Element, v: VElement): boolean { diff --git a/packages/react/src/diagram-figure.tsx b/packages/react/src/diagram-figure.tsx index 91503f87..a7c76e71 100644 --- a/packages/react/src/diagram-figure.tsx +++ b/packages/react/src/diagram-figure.tsx @@ -4,9 +4,15 @@ import { Kbd } from "./kbd"; import { useShortcutsVisible } from "./keyboard"; import { usePanelLevel } from "./layers"; import { - applyTrace, buildModel, figureTree, hasStops, hintEntries, keyTarget, measureFigure, syncAttributes, + applyTrace, buildModel, entranceDrawn, figureTree, hasStops, hintEntries, keyTarget, measureFigure, settleEntrance, syncAttributes, } from "./diagram-core"; -import type { DiagramLegend, DiagramSpec, Dyn, Measured, VNode } from "./diagram-core"; +import type { DiagramLegend, DiagramMotion, DiagramSpec, Dyn, Measured, VNode } from "./diagram-core"; +import type { MotionController } from "./diagram-motion-core"; + +type MotionModule = typeof import("./diagram-motion"); +let motionLoading: Promise | undefined; +/** The motion code (DECISIONS 292, 2.6): a module of its own, loaded the first time a figure is animated, so a still figure never pays for it. */ +const loadMotion = () => (motionLoading ??= import("./diagram-motion").catch((error) => { motionLoading = undefined; throw error; })); // The figure every diagram shares (DECISIONS 281): the title, the drawing, the key, the key hint, the required summary and "View as list". // Not exported from the package: each of the five diagrams is its own module on top of it. The markup is the engine's tree, so it is the @@ -23,6 +29,12 @@ export interface DiagramFigureProps extends Omit, summary: React.ReactNode; /** The words for the marks. The key is built from what is drawn; main, dashed and the focal node must have words when drawn. */ legend?: DiagramLegend; + /** + * `"still"` (the default) is the drawing as it is, with no motion code loaded. `"animated"` (DECISIONS 292) draws each line once when the figure + * comes into view, every word at rest, and runs whichever of flow, a pulse or a packet the data names, with "Pause animations" in the foot. A + * reduced-motion or forced-colours figure is still. Motion never carries a fact alone: the words say what moves. + */ + motion?: DiagramMotion; } const P = "basalt-diagram"; @@ -38,8 +50,12 @@ function styleObject(style: string): Record { return out; } -/** The engine's tree as React elements; slots are React's own, the ink is set as HTML (it is the same string the skill writes). */ -function toReact(v: VNode, slots: Record, ink: string, root?: Record): React.ReactNode { +/** + * The engine's tree as React elements; slots are React's own, the ink is set as HTML (it is the same string the skill writes). `ink` is one object for one + * string: React writes the HTML again whenever the object changes, and the motion module's overlays and masks live inside it, so a render that draws the + * same lines must hand React the same object. + */ +function toReact(v: VNode, slots: Record, ink: { __html: string }, root?: Record): React.ReactNode { if (typeof v === "string") return v; if ("slot" in v) return slots[v.slot] ?? null; const props: Record = {}; @@ -49,7 +65,7 @@ function toReact(v: VNode, slots: Record, ink: string, else props[CAMEL[k] ?? k] = value === true ? (k === "hidden" ? true : "") : value; } if (typeof v.a.class === "string" && v.a.class.endsWith("-ink")) { - props.dangerouslySetInnerHTML = { __html: ink }; + props.dangerouslySetInnerHTML = ink; return React.createElement(v.t, props); } if (root) Object.assign(props, root, { className: [props.className, root.className].filter(Boolean).join(" "), style: { ...(props.style as object), ...(root.style as object) } }); @@ -70,13 +86,14 @@ export interface DiagramFigureInternalProps extends DiagramFigureProps { component: string; } -export function DiagramFigure({ spec, component, title: _title, heading: _heading, legend: _legend, source, summary, className, style, onKeyDown, onFocus, onBlur, onPointerOver, onPointerLeave, ref: callerRef, ...props }: DiagramFigureInternalProps) { +export function DiagramFigure({ spec, component, title: _title, heading: _heading, legend: _legend, motion: _motion, source, summary, className, style, onKeyDown, onFocus, onBlur, onPointerOver, onPointerLeave, ref: callerRef, ...props }: DiagramFigureInternalProps) { const base = `dg${React.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`; const level = usePanelLevel(); // The key hint is a data-kbd-hint legend, hidden on touch until a hardware key is pressed: this installs the listener that reveals it. useShortcutsVisible(); // The development checks (placement, groups, the key's words) cost production nothing: a bundler that sets NODE_ENV drops them. const model = React.useMemo(() => buildModel(spec, { checks: process.env.NODE_ENV !== "production" }), [spec]); + const animated = model.motion.animated; const figRef = React.useRef(null); // The figure's own ref, which measuring reads, and the caller's, both set: a caller's ref never replaces the figure's. const setRef = React.useCallback((el: HTMLElement | null) => { @@ -86,9 +103,21 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin }, [callerRef]); const [dyn, setDyn] = React.useState({}); const [ink, setInk] = React.useState(""); + const inkHtml = React.useMemo(() => ({ __html: ink }), [ink]); const measured = React.useRef(null); const dynRef = React.useRef(dyn); dynRef.current = dyn; + const [motionModule, setMotionModule] = React.useState(null); + // A development error (DECISIONS 292, 4.1), checked once the motion code is here: a mover's route that does not exist, two movers, flow on a dashed + // line or on the mover's route. A flow line with no label is a warning. + if (process.env.NODE_ENV !== "production" && motionModule && animated) { + const { errors, warnings } = motionModule.motionErrors(model); + if (errors.length) throw new Error(`Basalt ${component}: ${errors.join("; ")}`); + for (const w of warnings) warnOnce(component, w); + } + const [controller, setController] = React.useState(null); + const modelRef = React.useRef(model); + modelRef.current = model; const [focusTrace, setFocusTrace] = React.useState(null); const [hoverTrace, setHoverTrace] = React.useState(null); const options = React.useMemo(() => ({ prefix: P, base, level, hasSource: source !== undefined && source !== null, hiddenClass: "basalt-visually-hidden" }), [base, level, source]); @@ -104,8 +133,9 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin const warn = process.env.NODE_ENV !== "production" ? (message: string) => warnOnce(component, message) : undefined; const result = measureFigure(fig, model, P, base, dynRef.current, (d) => syncAttributes(fig, figureTree(model, d, options)), warn); measured.current = result; - dynRef.current = result.dyn; - setDyn(result.dyn); + // The same layout is the same state: a measure that changes nothing renders nothing. + // (A layout is plain data that the engine builds in one order, so its text is a fair test.) + if (JSON.stringify(dynRef.current) !== JSON.stringify(result.dyn)) { dynRef.current = result.dyn; setDyn(result.dyn); } setInk(result.ink); // A layout with no stops traces nothing: a pointer resting on a node as the figure narrows into one leaves no trace behind. if (!hasStops(model, result.dyn)) setHoverTrace(null); @@ -127,14 +157,50 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin observer.observe(fig); let live = true; document.fonts?.ready.then(() => { if (live) measure(); }); - return () => { live = false; observer.disconnect(); cancelAnimationFrame(frame); }; - }, [measure]); + // A card's mark keeps its seat's padding out of forced colours, where no mark is drawn: the mode changing is a new measure (DECISIONS 292, 2.7). + const forced = matchMedia("(forced-colors: active)"); + const marks = model.nodes.some((n) => n.mark); + if (marks) forced.addEventListener("change", measure); + return () => { live = false; observer.disconnect(); cancelAnimationFrame(frame); if (marks) forced.removeEventListener("change", measure); }; + }, [measure, model]); const trace = focusTrace ?? hoverTrace; React.useLayoutEffect(() => { const fig = figRef.current; if (fig) applyTrace(fig, P, measured.current?.geo ?? null, measured.current?.tokens ?? null, base, trace); }, [trace, ink, base]); + // In the frame an animated figure's lines are first drawn it is marked pending, before any paint (DECISIONS 292, 1.5); the module, once loaded, + // follows the lines each time they are drawn again. What it follows is the drawing itself, not the string: if React wrote the ink again for any reason + // (a remount, the faces arriving with the same lines), the reveal and the loops are built again on the new elements. + const drawn = React.useRef<{ svg: Element | null; controller: MotionController | null } | null>(null); + React.useLayoutEffect(() => { + const fig = figRef.current; + if (!fig || !animated || !measured.current?.tokens) return; + const svg = fig.querySelector(`.${P}-ink > .${P}-svg`); + if (drawn.current && drawn.current.svg === svg && drawn.current.controller === controller) return; + drawn.current = { svg, controller }; + entranceDrawn(fig, Boolean(measured.current.geo?.lines.length)); + controller?.redrawn(); + }); + React.useEffect(() => { + if (!animated) return undefined; + let live = true; + // If the motion code cannot load, the figure settles: every line whole, as still. + loadMotion().then((mod) => { if (live) setMotionModule(() => mod); }, () => { const fig = figRef.current; if (fig && live) settleEntrance(fig); }); + return () => { live = false; }; + }, [animated]); + React.useLayoutEffect(() => { + const fig = figRef.current; + if (!fig || !animated || !motionModule) return undefined; + const made = motionModule.attachMotion({ fig, P, base, model: () => modelRef.current, geo: () => measured.current?.geo ?? null, tokens: () => measured.current?.tokens ?? null }); + setController(made); + return () => { made.destroy(); setController(null); }; + }, [animated, motionModule, base]); + // New data is a different figure: its entrance settles if its lines are not the same lines (1.5), and its mover follows the new route. + React.useEffect(() => { controller?.changed(); }, [model, controller]); + const sendValue = model.motion.packet?.send; + React.useEffect(() => { controller?.sendValue(sendValue); }, [sendValue, controller]); + const settle = () => { if (animated && figRef.current) settleEntrance(figRef.current); }; const nodeOf = (target: EventTarget | null) => { const el = (target as HTMLElement | null)?.closest?.(`.${P}-node`); @@ -151,6 +217,7 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin onKeyDown?.(event); const node = nodeOf(event.target); if (!node || event.defaultPrevented) return; + settle(); if (event.key === "Escape") { if (focusTrace || hoverTrace) { event.preventDefault(); setFocusTrace(null); setHoverTrace(null); } return; } if (!stops) return; const to = keyTarget(model, node.dataset.node!, event.key); @@ -165,6 +232,7 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin onFocus?.(event); const node = nodeOf(event.target); if (!node) return; + settle(); const id = node.dataset.node!; // Tracing follows the keyboard's focus (:focus-visible), so a press that focuses a node traces nothing. setFocusTrace(node.matches(":focus-visible") ? id : null); @@ -182,6 +250,7 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin onPointerOver?.(event); if (event.pointerType !== "mouse" || !window.matchMedia("(hover: hover)").matches) return; const node = nodeOf(event.target); + if (node) settle(); setHoverTrace(node && hasStops(model, dynRef.current) ? node.dataset.node! : null); }, onPointerLeave: (event: React.PointerEvent) => { onPointerLeave?.(event); setHoverTrace(null); }, @@ -195,7 +264,7 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin data-size="sm" aria-expanded={Boolean(dyn.open)} aria-controls={`${base}-list`} - onClick={() => { const next = { ...dynRef.current, open: !dynRef.current.open, autoOpen: undefined }; dynRef.current = next; setDyn(next); }} + onClick={() => { settle(); const next = { ...dynRef.current, open: !dynRef.current.open, autoOpen: undefined }; dynRef.current = next; setDyn(next); }} > {dyn.open ? "Hide the list" : "View as list"} @@ -204,5 +273,8 @@ export function DiagramFigure({ spec, component, title: _title, heading: _headin {entry.keys.map((k, i) => {i ? " " : null}{k})} {entry.words} )); const tree = figureTree(model, dyn, options); - return toReact(tree, { source, summary, hint, toggle }, ink, root) as React.ReactElement; + // The foot (1.9): "View as list", then the run button and "Pause animations", which the motion module draws when it has loaded. + const Foot = motionModule?.MotionFoot; + const foot = Foot && controller ? <>{toggle} : toggle; + return toReact(tree, { source, summary, hint, toggle: foot }, inkHtml, root) as React.ReactElement; } diff --git a/packages/react/src/diagram-motion-core.ts b/packages/react/src/diagram-motion-core.ts new file mode 100644 index 00000000..75f56fb7 --- /dev/null +++ b/packages/react/src/diagram-motion-core.ts @@ -0,0 +1,847 @@ +// A diagram's motion (DECISIONS 292): the entrance, flow, the pulse, the packet and the sequence's run, for React and the HTML skill alike. It holds +// no React. It is never imported by a still figure: React loads it on demand (diagram-motion.tsx) the first time a figure is animated, and the skill +// adds it to a page (the diagram-motion module) only when a diagram's JSON says "motion": "animated". Nothing runs when it loads: the page's one set +// of observers is made by the first figure that attaches, and taken down by the last that leaves. +// +// The still engine (diagram-core.ts) draws every line and marks an animated figure pending in the frame its lines are first drawn (entranceDrawn). +// This module plays that entrance when the figure comes into view, carries it across a re-measure on its one clock, settles it at once when the reader +// acts or a mode turns on, and then runs the loops the data names while they may run. Every value is a token, read from the page. + +import { entranceBlocked, pathD, settleEntrance } from "./diagram-core"; +import type { Geo, GLine, Model, Pt, Tokens } from "./diagram-core"; + +export interface MotionHost { + /** The figure element, which carries data-motion="animated". */ + fig: HTMLElement; + /** The class prefix: "basalt-diagram" in React, "diagram" in the skill. */ + P: string; + base: string; + model: () => Model; + /** The lines as last drawn. */ + geo: () => Geo | null; + tokens: () => Tokens | null; +} + +export interface MotionState { + /** "Pause animations" is shown (1.9). */ + canLoop: boolean; + /** "Play the run" is shown (1.10). */ + runShown: boolean; + /** A run the reader started is going: the button reads "Stop the run". */ + running: boolean; +} + +export interface MotionController { + /** The engine drew the lines again (the faces arriving, a resize): they are different from the lines it drew before. */ + redrawn: () => void; + /** The data may have changed: a different figure settles, and its mover follows the new route. */ + changed: () => void; + /** The packet's `send` value as the app has it now: a new value sends one message; the first one seen sends none. */ + sendValue: (value: number | string | undefined) => void; + /** The run button: plays the run, or stops it. */ + toggleRun: () => void; + state: () => MotionState; + subscribe: (notify: () => void) => () => void; + destroy: () => void; +} + +// ---- The page: one set of observers for every animated figure on it ---- + +interface Page { figs: Set
; io: IntersectionObserver; mo: MutationObserver; media: MediaQueryList[]; onChange: () => void; onPrint: () => void } +let page: Page | undefined; + +function join(fig: Figure): Page { + if (!page) { + const onChange = () => { for (const f of page?.figs ?? []) f.sync(); }; + // The browser's own print path fires beforeprint with no media change: every entrance settles on it as well (1.5). + const onPrint = () => { for (const f of page?.figs ?? []) settleEntrance(f.host.fig); onChange(); }; + const io = new IntersectionObserver((entries) => { + for (const entry of entries) for (const f of page?.figs ?? []) if (f.drawing === entry.target) f.seen(entry); + }, { threshold: Array.from({ length: 21 }, (_, k) => k / 20) }); + const mo = new MutationObserver((records) => { + for (const r of records) { + if (r.target === document.documentElement) { for (const f of page?.figs ?? []) f.holdChanged(); continue; } + for (const f of page?.figs ?? []) if (f.host.fig === r.target) f.traceChanged(); + } + }); + mo.observe(document.documentElement, { attributes: true, attributeFilter: ["data-loops"] }); + const media = ["(prefers-reduced-motion: reduce)", "(forced-colors: active)", "print"].map((q) => matchMedia(q)); + for (const mq of media) mq.addEventListener("change", onChange); + window.addEventListener("beforeprint", onPrint); + document.addEventListener("visibilitychange", onChange); + page = { figs: new Set(), io, mo, media, onChange, onPrint }; + } + page.figs.add(fig); + if (fig.drawing) page.io.observe(fig.drawing); + page.mo.observe(fig.host.fig, { attributes: true, attributeFilter: ["data-tracing"] }); + return page; +} + +function leave(fig: Figure) { + if (!page) return; + page.figs.delete(fig); + if (fig.drawing) page.io.unobserve(fig.drawing); + if (page.figs.size) return; + page.io.disconnect(); + page.mo.disconnect(); + for (const mq of page.media) mq.removeEventListener("change", page.onChange); + window.removeEventListener("beforeprint", page.onPrint); + document.removeEventListener("visibilitychange", page.onChange); + page = undefined; +} + +// ---- Tokens ---- + +interface Timing { + lineMin: number; lineMax: number; stagger: number; step: number; arrow: number; limit: number; legMin: number; legMax: number; + rest: number; pause: number; repeat: number; fast: number; base: number; slow: number; slower: number; + trace: number; packet: number; pulse: number; flow: number; bead: number; flowPeriod: number; + inOut: string; out: string; in: string; +} + +function readTiming(el: Element): Timing { + const cs = getComputedStyle(el); + const raw = (name: string) => cs.getPropertyValue(`--basalt-${name}`).trim(); + const ms = (name: string) => { const v = raw(name); const n = parseFloat(v); return /ms$/.test(v) ? n : /s$/.test(v) ? n * 1000 : n || 0; }; + const num = (name: string) => parseFloat(raw(name)) || 0; + const ease = (name: string) => raw(`ease-${name}`) || "ease"; + return { + lineMin: ms("duration-diagram-line-min"), lineMax: ms("duration-diagram-line-max"), stagger: ms("duration-diagram-stagger"), step: ms("duration-diagram-step"), + arrow: ms("duration-diagram-arrow"), limit: ms("duration-diagram-limit"), legMin: ms("duration-diagram-leg-min"), legMax: ms("duration-diagram-leg-max"), + rest: ms("duration-diagram-rest"), pause: ms("duration-diagram-pause"), repeat: ms("duration-diagram-repeat"), + fast: ms("duration-fast"), base: ms("duration-base"), slow: ms("duration-slow"), slower: ms("duration-slower"), + trace: num("speed-diagram-trace"), packet: num("speed-diagram-packet"), pulse: num("speed-diagram-pulse"), flow: num("speed-diagram-flow"), + bead: num("size-diagram-bead"), flowPeriod: num("size-diagram-flow"), + inOut: ease("in-out"), out: ease("out"), in: ease("in"), + }; +} + +const clamp = (v: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, v)); +const SVG = "http://www.w3.org/2000/svg"; +const svgEl = (name: string, attrs: Record, parent?: Element) => { + const el = document.createElementNS(SVG, name); + for (const [k, v] of Object.entries(attrs)) el.setAttribute(k, String(v)); + parent?.appendChild(el); + return el; +}; +const now = () => Number(document.timeline.currentTime ?? performance.now()); +const aborted = (e: unknown) => e instanceof DOMException && e.name === "AbortError"; +const unit: Record = { up: { x: 0, y: -1 }, down: { x: 0, y: 1 }, left: { x: -1, y: 0 }, right: { x: 1, y: 0 } }; + +/** A line's points with its end moved back from the tip by `back` along its last run. */ +function trimmed(l: GLine, back: number): Pt[] { + const pts = l.pts.map((p) => ({ ...p })); + const u = unit[l.dir]!; + const last = pts[pts.length - 1]!, prev = pts[pts.length - 2]!; + const room = Math.hypot(last.x - prev.x, last.y - prev.y); + const by = Math.min(back, Math.max(0, room - 0.5)); + last.x -= u.x * by; last.y -= u.y * by; + return pts; +} +const lengthOf = (pts: Pt[]) => pts.slice(1).reduce((sum, p, k) => sum + Math.hypot(p.x - pts[k]!.x, p.y - pts[k]!.y), 0); +const boundsOf = (pts: Pt[], pad: number) => { + const xs = pts.map((p) => p.x), ys = pts.map((p) => p.y); + return { l: Math.floor(Math.min(...xs) - pad), t: Math.floor(Math.min(...ys) - pad), r: Math.ceil(Math.max(...xs) + pad), b: Math.ceil(Math.max(...ys) + pad) }; +}; + +// ---- One figure ---- + +interface Plan { start: number; dur: number; end: number } + +class Figure implements MotionController { + host: MotionHost; + drawing: Element | null; + private page: Page; + private t: Timing; + private listeners = new Set<() => void>(); + private snapshot: MotionState = { canLoop: false, runShown: false, running: false }; + private destroyed = false; + // The entrance: one clock (t0), one stagger factor, the plan each line was last given, the animations on it. + private t0 = 0; + private factor = 1; + private plans = new Map(); + private intro = new Set(); + private labels = new Set(); + private introEnd: Animation | null = null; + private defs: SVGSVGElement | null = null; + private signature = ""; + // What the reader can see of the figure. + private inView = false; + private enough = false; + // The loops: a generation that every async step checks, the animations they run, the elements that persist between runs. + private loopGen = 0; + private loops = new Set(); + private looping = false; + private flowEls = new Map(); + private beadEls = new Map(); + private dot: HTMLElement | null = null; + /** Whose the dot is while it travels: a loop's (cleared by the hold) or a run's or a send's (never stopped by it). */ + private dotOwner: "loop" | "run" | null = null; + private resumeAt = 0; + private resumeTimer = 0; + // A run the reader started, and the app's messages. + private runGen = 0; + private runAnims = new Set(); + private runAt = -1; + private inFlight = false; + private waiting = false; + private lastSend: { v: number | string | undefined } | null = null; + private arrivals = new Map(); + + constructor(host: MotionHost) { + this.host = host; + this.drawing = host.fig.querySelector(`.${host.P}-drawing`); + this.t = readTiming(host.fig); + this.signature = this.edgeSignature(); + host.fig.addEventListener("basalt-diagram-settle", this.onSettle); + this.page = join(this); + this.sync(); + } + + // ---- The controller's face ---- + + state = () => this.snapshot; + subscribe = (notify: () => void) => { this.listeners.add(notify); return () => { this.listeners.delete(notify); }; }; + private publish() { + const lines = this.hasLines(); + const m = this.host.model(); + const modes = this.modes(); + const loopsNamed = m.edges.some((e) => e.flow) || Boolean(m.motion.pulse) || Boolean(m.motion.packet?.repeat); + const next: MotionState = { + canLoop: m.motion.animated && loopsNamed && lines && !modes.reduce && !modes.forced, + runShown: m.motion.animated && m.motion.run && lines, + running: this.runAt >= 0, + }; + if (next.canLoop === this.snapshot.canLoop && next.runShown === this.snapshot.runShown && next.running === this.snapshot.running) return; + this.snapshot = next; + for (const notify of this.listeners) notify(); + } + + destroy = () => { + if (this.destroyed) return; + this.destroyed = true; + this.stopRun(); + this.clearLoops(); + // Motion turned off, or the figure gone: a running entrance is settled. A pending one is left as it is: it is drawn only while the figure says + // data-motion="animated", and a figure attached again (React's development double effects) plays it. + if (this.entrance() === "running") this.host.fig.setAttribute("data-entrance", "done"); + this.clearIntro(); + this.host.fig.removeEventListener("basalt-diagram-settle", this.onSettle); + clearTimeout(this.resumeTimer); + for (const el of [...this.flowEls.values(), ...this.beadEls.values()]) el.remove(); + this.dot?.remove(); + leave(this); + }; + + // ---- What the page tells every figure ---- + + private modes() { + return { + reduce: matchMedia("(prefers-reduced-motion: reduce)").matches, + forced: matchMedia("(forced-colors: active)").matches, + print: matchMedia("print").matches, + held: document.documentElement.getAttribute("data-loops") === "held", + }; + } + private entrance() { return this.host.fig.getAttribute("data-entrance"); } + private hasLines() { return Boolean(this.host.geo()?.lines.length); } + private traced() { return this.host.fig.hasAttribute("data-tracing"); } + + seen(entry: IntersectionObserverEntry) { + this.inView = entry.isIntersecting; + // Two fifths of the drawing's height in view, or of the window's for a drawing taller than the window (1.5). + const need = Math.min(entry.boundingClientRect.height, window.innerHeight) * 0.4; + this.enough = entry.isIntersecting && entry.intersectionRect.height >= need - 0.5; + this.sync(); + } + + holdChanged() { + // The hold settles an entrance (1.5) and clears the loops to rest; releasing it starts them again at once (1.9). + if (this.modes().held) settleEntrance(this.host.fig); + this.sync(); + } + + traceChanged() { + if (this.traced()) { + // A run the reader started ends when a node is traced: the reader has turned to something else (1.13). + this.stopRun(); + clearTimeout(this.resumeTimer); + this.resumeAt = Infinity; + } else if (this.resumeAt === Infinity) { + // Loops start again duration-diagram-pause after a trace ends, so a pointer crossing the cards does not flicker them. The timer ends the pause + // itself: the timeline's clock moves only on a frame, so a timer can fire before it reads the pause as over. + this.resumeAt = now() + this.t.pause; + clearTimeout(this.resumeTimer); + this.resumeTimer = window.setTimeout(() => { this.resumeAt = 0; this.sync(); }, this.t.pause); + } + this.sync(); + } + + /** Brings the figure in line with everything it depends on: whether its entrance plays, settles or waits, and whether its loops run, freeze or rest. */ + sync() { + if (this.destroyed) return; + const fig = this.host.fig; + const m = this.host.model(); + const modes = this.modes(); + const state = this.entrance(); + // A mode that turns on settles (1.5): the hold, print, reduced motion, forced colours. Motion turned off is the host's: it destroys this figure. + if ((state === "pending" || state === "running") && (modes.held || modes.print || modes.reduce || modes.forced)) settleEntrance(fig); + else if (state === "pending" && this.enough && !document.hidden && this.hasLines()) this.play(); + // A figure that came into view at rest stays at rest: a later release starts its loops, not an entrance. + if (!state && this.enough && this.hasLines()) fig.setAttribute("data-entrance", "done"); + this.syncLoops(m, modes); + this.publish(); + } + + // ---- The entrance (1.3 to 1.5) ---- + + private onSettle = () => { + // settleEntrance has already set data-entrance="done": every line whole, every label at rest, and then the loops may start. + this.clearIntro(); + this.sync(); + }; + + private ordered(geo: Geo): GLine[] { + const m = this.host.model(); + const lines = [...geo.lines]; + // A schema's lines are derived, so they go by where each starts: top to bottom, then start to end. Every other type keeps the author's order. + if (m.type === "schema") lines.sort((a, b) => a.pts[0]!.y - b.pts[0]!.y || a.pts[0]!.x - b.pts[0]!.x || a.i - b.i); + else lines.sort((a, b) => a.i - b.i); + return lines; + } + + /** Each line's own times on the entrance's clock (its start, duration and the end of its head), and the stagger factor that keeps it inside the limit. */ + private plan(lines: GLine[], factor?: number): { plans: Map; factor: number } { + const t = this.t; + const sequence = this.host.model().type === "sequence"; + const step = sequence ? t.step : t.stagger; + const own = lines.map((l) => { + const path = this.lineEl(l)?.querySelector(`.${this.host.P}-line`); + const len = path ? path.getTotalLength() : lengthOf(l.pts); + // A message's arrow draws duration-base after its label starts lifting, over duration-diagram-arrow; a traced line takes its length at the + // trace speed, clamped. A line ends when its head has: the head starts at 85% and fades in over duration-slow. + const dur = sequence ? t.arrow : clamp((len / t.trace) * 1000, t.lineMin, t.lineMax); + const lead = sequence ? t.base : 0; + return { lead, dur, tail: lead + Math.max(dur, 0.85 * dur + t.slow, sequence ? t.slower : 0) }; + }); + let f = 1; + for (let k = 1; k < own.length; k++) f = Math.min(f, Math.max(0, (t.limit - own[k]!.tail) / (k * step))); + if (factor !== undefined) f = Math.min(f, factor); + const plans = new Map(); + lines.forEach((l, k) => { const at = k * step * f; plans.set(l.i, { start: at + own[k]!.lead, dur: own[k]!.dur, end: at + own[k]!.tail }); }); + return { plans, factor: f }; + } + + private lineEl(l: GLine) { return this.host.fig.querySelector(`.${this.host.P}-edge[data-edge="${l.i}"]`); } + + private play() { + const geo = this.host.geo(); + if (!geo?.lines.length) return; + this.host.fig.setAttribute("data-entrance", "running"); + this.t0 = now(); + const { plans, factor } = this.plan(this.ordered(geo)); + this.factor = factor; + this.plans = plans; + this.build(new Set(), true); + } + + /** Builds the reveal from the one clock: every line not yet whole is masked and drawn on, a whole one is left whole, and a sequence's labels lift. */ + private build(whole: Set, labels: boolean) { + const geo = this.host.geo(); + const fig = this.host.fig; + const { P } = this.host; + const t = this.t; + if (!geo) return; + // The entrance's one clock is its end's animation: built again while it is paused (seeked, or posed for a picture), the new reveal is paused at + // the same moment; otherwise it runs from the entrance's start. + const posed = this.introEnd?.playState === "paused" && this.introEnd.currentTime !== null ? Number(this.introEnd.currentTime) : null; + // The lines' reveal is built again; a sequence's labels keep the lift they were given on the clock. + for (const a of this.intro) a.cancel(); + this.intro.clear(); + this.defs?.remove(); + const ink = fig.querySelector(`.${P}-ink`); + const svg = ink?.querySelector(`.${P}-svg`); + if (!ink || !svg) return; + this.defs = svgEl("svg", { class: `${P}-motion-defs`, width: 0, height: 0, "aria-hidden": "true", focusable: "false" }) as SVGSVGElement; + svg.after(this.defs); + const defs = svgEl("defs", {}, this.defs); + const clocked = (a: Animation, into = this.intro) => { + if (posed === null) a.startTime = this.t0; + else { a.pause(); a.currentTime = posed; } + into.add(a); + return a; + }; + let last = 0; + for (const l of geo.lines) { + const plan = this.plans.get(l.i); + const g = this.lineEl(l); + if (!plan || !g) continue; + last = Math.max(last, plan.end); + if (whole.has(l.i)) { g.removeAttribute("mask"); continue; } + // Each line is revealed on its own (1.3): its own mask on its own edge group, over the engine's crossing mask on its path. + const id = `${this.host.base}-reveal-${l.i}`; + const mask = svgEl("mask", { id, maskUnits: "userSpaceOnUse", x: -geo.w, y: -geo.h, width: 3 * geo.w, height: 3 * geo.h }, defs); + const line = g.querySelector(`.${P}-line`); + if (line) { + const len = line.getTotalLength(); + const copy = svgEl("path", { d: line.getAttribute("d") ?? "", fill: "none", stroke: "#fff", "stroke-width": l.width + 6, "stroke-dasharray": `${len} ${len + 8}`, "stroke-dashoffset": len }, mask); + clocked(copy.animate([{ strokeDashoffset: `${len}px` }, { strokeDashoffset: "0px" }], { duration: plan.dur, delay: plan.start, easing: t.inOut, fill: "both" })); + } + const tip = g.querySelector(`.${P}-tip`); + if (tip) { + const copy = svgEl("path", { d: tip.getAttribute("d") ?? "", fill: "#fff", stroke: "#fff", "stroke-width": 3, "stroke-linejoin": "round" }, mask); + clocked(copy.animate([{ opacity: 0 }, { opacity: 1 }], { duration: t.slow, delay: plan.start + 0.85 * plan.dur, easing: t.out, fill: "both" })); + } + const dot = g.querySelector(`.${P}-dot`); + if (dot) { + const copy = svgEl("circle", { cx: dot.getAttribute("cx") ?? 0, cy: dot.getAttribute("cy") ?? 0, r: Number(dot.getAttribute("r") ?? 3) + 1, fill: "#fff" }, mask); + clocked(copy.animate([{ opacity: 0 }, { opacity: 1 }], { duration: t.fast, delay: plan.start, easing: t.out, fill: "both" })); + } + g.setAttribute("mask", `url(#${id})`); + } + // A sequence's labels are drawn in secondary ink before their turn and lift to primary over duration-slower (1.4). Built once, on the clock. + if (labels && this.host.model().type === "sequence") { + const cs = getComputedStyle(fig); + const from = cs.getPropertyValue("--basalt-text-secondary").trim(), to = cs.getPropertyValue("--basalt-text-primary").trim(); + const msgs = fig.querySelectorAll(`.${P}-msg`); + this.ordered(geo).forEach((l, k) => { + const label = msgs[k]?.querySelector(`.${P}-mlabel`); + const plan = this.plans.get(l.i); + if (label && plan && from && to) clocked(label.animate([{ color: from }, { color: to }], { duration: t.slower, delay: plan.start - t.base, easing: t.out, fill: "both" }), this.labels); + }); + } + this.introEnd?.cancel(); + // The entrance's own end, on the same clock: an animation of nothing on the figure, so finishing or seeking the figure's animations settles it. + this.introEnd = clocked(fig.animate([], { duration: Math.max(1, last) }), new Set()); + this.introEnd.finished.then(() => this.finishIntro(), () => {}); + } + + private finishIntro() { + if (this.entrance() !== "running") return; + this.host.fig.setAttribute("data-entrance", "done"); + this.clearIntro(); + this.sync(); + } + + private clearIntro() { + for (const a of [...this.intro, ...this.labels]) a.cancel(); + this.intro.clear(); + this.labels.clear(); + this.introEnd?.cancel(); + this.introEnd = null; + this.defs?.remove(); + this.defs = null; + this.host.fig.querySelectorAll(`.${this.host.P}-edge[mask]`).forEach((g) => g.removeAttribute("mask")); + } + + redrawn = () => { + if (this.destroyed) return; + const state = this.entrance(); + if (state === "running") { + const geo = this.host.geo(); + if (!geo?.lines.length) { + // Narrowed to a layout with no lines: at rest, with no control (1.5). + this.clearIntro(); + this.host.fig.setAttribute("data-entrance", "done"); + } else { + // Different lines, running: the entrance carries on, on the new lines, from its one clock. A line that was whole stays whole; the stagger + // never grows, so no line starts later than it was going to; the limit is still counted from the first start. + // Elapsed on the entrance's own clock (its end's animation), which is the page's time unless the figure's animations were seeked or paused. + const clock = this.introEnd?.currentTime; + const elapsed = clock !== null && clock !== undefined ? Number(clock) : now() - this.t0; + const whole = new Set([...this.plans].filter(([, p]) => p.end <= elapsed).map(([i]) => i)); + const { plans, factor } = this.plan(this.ordered(geo), this.factor); + for (const i of whole) { const old = this.plans.get(i); if (old) plans.set(i, old); } + this.factor = factor; + this.plans = plans; + this.build(whole, false); + } + } + // A loop follows the new lines: cleared and started again at once (1.9). A run the reader started carries on from its message, that leg again. + if (this.looping) { this.clearLoops(); } + for (const el of [...this.flowEls.values(), ...this.beadEls.values()]) el.remove(); + this.flowEls.clear(); + this.beadEls.clear(); + if (this.runAt >= 0) this.playRun(this.runAt); + this.sync(); + }; + + private edgeSignature() { + const m = this.host.model(); + const lines = m.type === "sequence" ? m.steps.flatMap((s) => ("n" in s ? [`${s.from}>${s.to}:${s.kind}`] : [])) : m.edges.map((e) => `${e.from}>${e.to}:${e.kind}`); + return lines.join("|"); + } + + changed = () => { + const next = this.edgeSignature(); + const route = JSON.stringify([this.host.model().motion.pulse, this.host.model().motion.packet?.path, this.host.model().edges.map((e) => Boolean(e.flow))]); + if (next !== this.signature) { + this.signature = next; + // A different figure: its edges are no longer the same edges in the same order. + settleEntrance(this.host.fig); + this.stopRun(); + } + if (route !== this.route) { this.route = route; if (this.looping) this.clearLoops(); } + this.sync(); + }; + private route = ""; + + // ---- The loops (1.6, 1.7, 1.8, 1.9) ---- + + private syncLoops(m: Model, modes: ReturnType) { + const settled = this.entrance() === "done"; + const rest = !m.motion.animated || !settled || !this.hasLines() || modes.reduce || modes.forced || modes.print || modes.held || this.traced() || now() < this.resumeAt; + if (rest) { if (this.looping) this.clearLoops(); return; } + const freeze = !this.inView || document.hidden; + if (!this.looping) { + if (freeze) return; + this.startLoops(m); + return; + } + // Out of view or in a hidden tab they freeze where they are and carry on from there. + for (const a of this.loops) { if (freeze && a.playState === "running") a.pause(); else if (!freeze && a.playState === "paused") a.play(); } + } + + private startLoops(m: Model) { + const geo = this.host.geo(); + if (!geo) return; + this.looping = true; + const gen = ++this.loopGen; + for (const e of m.edges) if (e.flow) this.flow(geo, e.i); + if (m.motion.pulse) this.pulse(gen, m.motion.pulse).catch(() => {}); + else if (m.motion.packet?.repeat) this.repeat(gen, m.motion.packet.path).catch(() => {}); + } + + private clearLoops() { + this.looping = false; + this.loopGen++; + for (const a of this.loops) a.cancel(); + this.loops.clear(); + // Cleared to rest: solid lines, no bead, no dot, no arrival step. The elements persist, hidden, for the next run. + for (const el of [...this.flowEls.values(), ...this.beadEls.values()]) el.style.display = "none"; + if (this.dotOwner === "loop" && this.dot) { this.dot.style.display = "none"; this.dotOwner = null; } + if (this.runAt < 0 && this.dotOwner !== "run") this.clearArrivals(); + } + + private track(a: Animation, into: Set) { + into.add(a); + const drop = () => { into.delete(a); }; + a.finished.then(drop, drop); + if (into === this.loops && (!this.inView || document.hidden)) a.pause(); + return a; + } + /** A rest that freezes with the loops: an animation of nothing on the figure, so a rest pauses out of view and a test can seek it like any other. */ + private wait(ms: number, into: Set) { + return this.track(this.host.fig.animate([], { duration: Math.max(1, ms) }), into).finished.then((a) => { a.cancel(); }); + } + + /** A small overlay the size of one line, never the figure's (1.14), placed in the ink after the lines and before the labels. */ + private overlay(l: GLine, pad: number, cls: string): { svg: SVGSVGElement; d: string; pts: Pt[] } | null { + const ink = this.host.fig.querySelector(`.${this.host.P}-ink`); + const svg = ink?.querySelector(`.${this.host.P}-svg`); + if (!ink || !svg) return null; + const tk = this.host.tokens(); + const pts = trimmed(l, tk?.head ?? 8); + const b = boundsOf(pts, pad); + const el = svgEl("svg", { class: `${this.host.P}-${cls}`, width: b.r - b.l, height: b.b - b.t, viewBox: `${b.l} ${b.t} ${b.r - b.l} ${b.b - b.t}`, "aria-hidden": "true", focusable: "false" }) as SVGSVGElement; + el.style.left = `${b.l}px`; + el.style.top = `${b.t}px`; + const after = this.defs ?? svg; + let at: Element = after; + while (at.nextElementSibling && !at.nextElementSibling.classList.contains(`${this.host.P}-label`)) at = at.nextElementSibling; + at.after(el); + return { svg: el, d: pathD(pts, l.from === l.to ? tk?.radiusXs ?? 4 : tk?.radius ?? 8), pts }; + } + + /** How much of a line shows: its length to the head's base, less any label plate on it. */ + private visible(l: GLine, pts: Pt[]) { + const geo = this.host.geo(); + let plates = 0; + for (const lab of geo?.labels ?? []) if (lab.i === l.i && lab.on) { + // A plate on a run: along a horizontal run it takes its width, along a vertical one its height. + const cy = (lab.box.t + lab.box.b) / 2; + const horiz = pts.some((p, k) => k > 0 && Math.abs(p.y - pts[k - 1]!.y) < 0.5 && Math.abs(cy - p.y) < 1.5); + plates += horiz ? lab.box.r - lab.box.l : lab.box.b - lab.box.t; + } + return lengthOf(pts) - plates; + } + + private flow(geo: Geo, i: number) { + const l = geo.lines.find((x) => x.i === i); + if (!l) return; + const tk = this.host.tokens(); + let made = this.flowEls.get(i); + // An overlay lives in the ink: one the host wrote over is made again. + if (made && !made.isConnected) { this.flowEls.delete(i); made = undefined; } + if (!made) { + // The cuts stop space-1 short of the line's end, so a head is never cut off its shaft (1.6). + const space1 = tk?.space("1") ?? 4; + const o = this.overlay({ ...l, pts: trimmed(l, space1) }, l.width + 2, "flow"); + if (!o) return; + // A flow line needs 48px of visible line: four periods. A shorter one stays solid at this layout. + if (this.visible(l, trimmed(l, tk?.head ?? 8)) < 48) { o.svg.remove(); return; } + const cut = tk?.cut ?? 2; + svgEl("path", { d: o.d, "stroke-width": l.width + 2, "stroke-dasharray": `${cut} ${this.t.flowPeriod - cut}` }, o.svg); + made = o.svg; + this.flowEls.set(i, made); + } + made.style.display = ""; + const path = made.firstElementChild as SVGGeometryElement; + const period = this.t.flowPeriod; + // Cuts of size-cut in the ground colour every size-diagram-flow, marching toward the head at speed-diagram-flow on ease-linear. + this.track(path.animate([{ strokeDashoffset: "0px" }, { strokeDashoffset: `${-period}px` }], { duration: (period / this.t.flow) * 1000, iterations: Infinity, easing: "linear" }), this.loops); + } + + private edgeFor(from: string, to: string): GLine | undefined { + const m = this.host.model(); + const e = m.edges.find((x) => x.from === from && x.to === to); + return e ? this.host.geo()?.lines.find((l) => l.i === e.i) : undefined; + } + private node(id: string) { return this.host.fig.querySelector(`.${this.host.P}-node[data-node="${CSS.escape(id)}"]`); } + + /** A card's arrival step (1.10): its rim diagram-hit, the focal card's fill and edge diagram-focal-hit, in over duration-slower, out over three quarters of it. */ + private arrive(el: Element | null) { + if (!el || this.traced()) return; + clearTimeout(this.arrivals.get(el)); + el.removeAttribute("data-arrival-out"); + el.setAttribute("data-arrival", ""); + } + private depart(el: Element | null) { + if (!el || !el.hasAttribute("data-arrival")) return; + el.removeAttribute("data-arrival"); + el.setAttribute("data-arrival-out", ""); + this.arrivals.set(el, window.setTimeout(() => { el.removeAttribute("data-arrival-out"); this.arrivals.delete(el); }, this.t.slower * 0.75)); + } + private clearArrivals() { + this.host.fig.querySelectorAll("[data-arrival], [data-arrival-out]").forEach((el) => { el.removeAttribute("data-arrival"); el.removeAttribute("data-arrival-out"); }); + for (const timer of this.arrivals.values()) clearTimeout(timer); + this.arrivals.clear(); + } + + private async pulse(gen: number, route: string[]) { + const tk = this.host.tokens(); + while (gen === this.loopGen) { + for (let k = 1; k < route.length; k++) { + const l = this.edgeFor(route[k - 1]!, route[k]!); + if (!l || gen !== this.loopGen) return; + let el = this.beadEls.get(l.i); + if (el && !el.isConnected) { this.beadEls.delete(l.i); el = undefined; } + if (!el) { + const o = this.overlay(l, l.width + 2, "bead"); + if (!o) return; + svgEl("path", { d: o.d, "stroke-width": l.width + 2 * (tk?.hair ?? 1) }, o.svg); + el = o.svg; + this.beadEls.set(l.i, el); + } + el.style.display = ""; + const path = el.firstElementChild as SVGGeometryElement; + const len = path.getTotalLength(); + // A solid segment of size-diagram-bead, never more than two fifths of the line showing (1.7); it leaves from under the source card's edge + // and is taken in at the line's end, at speed-diagram-pulse. + const bead = Math.min(this.t.bead, 0.4 * this.visible(l, trimmed(l, tk?.head ?? 8))); + path.setAttribute("stroke-dasharray", `${bead} ${len + bead}`); + await this.track(path.animate([{ strokeDashoffset: `${bead}px` }, { strokeDashoffset: `${-len}px` }], { duration: ((len + bead) / this.t.pulse) * 1000, easing: "linear", fill: "forwards" }), this.loops).finished; + if (gen !== this.loopGen) return; + el.style.display = "none"; + const card = this.node(route[k]!); + this.arrive(card); + await this.wait(this.t.rest, this.loops); + this.depart(card); + } + if (gen !== this.loopGen) return; + await this.wait(this.t.pause, this.loops); + } + } + + /** The one dot (1.8): an HTML element moved along offset-path, which is exact here because a diagram is never scaled through a viewBox. */ + private dotEl(): HTMLElement | null { + const ink = this.host.fig.querySelector(`.${this.host.P}-ink`); + if (!ink) return null; + if (!this.dot || !this.dot.isConnected || this.dot.parentElement !== ink) { + this.dot?.remove(); + this.dot = document.createElement("span"); + this.dot.className = `${this.host.P}-packet`; + this.dot.setAttribute("aria-hidden", "true"); + const svg = ink.querySelector(`.${this.host.P}-svg`); + let at: Element | null = svg; + while (at?.nextElementSibling && !at.nextElementSibling.classList.contains(`${this.host.P}-label`)) at = at.nextElementSibling; + if (at) at.after(this.dot); else ink.prepend(this.dot); + } + return this.dot; + } + + /** One leg: the dot appears at the source's port, travels on ease-in-out, stops space-1 short of the line's end and is taken in as the stop arrives. */ + private async leg(l: GLine, into: Set, gen: () => boolean, stops: Array) { + const tk = this.host.tokens(); + const dot = this.dotEl(); + if (!dot) return; + const pts = trimmed(l, (tk?.head ?? 8) + (tk?.space("1") ?? 4)); + const d = pathD(pts, l.from === l.to ? tk?.radiusXs ?? 4 : tk?.radius ?? 8); + dot.style.offsetPath = `path("${d}")`; + dot.style.display = ""; + this.dotOwner = into === this.loops ? "loop" : "run"; + const len = lengthOf(pts); + const t = this.t; + this.track(dot.animate([{ opacity: 0 }, { opacity: 1 }], { duration: t.base, easing: t.out, fill: "both" }), into); + await this.track(dot.animate([{ offsetDistance: "0%" }, { offsetDistance: "100%" }], { duration: clamp((len / t.packet) * 1000, t.legMin, t.legMax), easing: t.inOut, fill: "forwards" }), into).finished; + if (!gen()) return; + for (const s of stops) this.arrive(s); + await this.track(dot.animate([{ opacity: 1 }, { opacity: 0 }], { duration: t.base, easing: t.in, fill: "forwards" }), into).finished; + for (const a of dot.getAnimations()) a.cancel(); + dot.style.display = "none"; + this.dotOwner = null; + if (!gen()) return; + await this.wait(t.rest, into); + for (const s of stops) this.depart(s); + } + + private async packetRun(path: string[], into: Set, gen: () => boolean) { + for (let k = 1; k < path.length; k++) { + const l = this.edgeFor(path[k - 1]!, path[k]!); + if (!l || !gen()) return; + await this.leg(l, into, gen, [this.node(path[k]!)]); + } + } + + private async repeat(gen: number, path: string[]) { + const live = () => gen === this.loopGen; + try { + while (live()) { + this.inFlight = true; + this.waiting = false; + try { await this.packetRun(path, this.loops, live); } finally { this.inFlight = false; } + if (!live()) return; + // An app's send while the dot flew waited for it, and goes now; the next self-send is duration-diagram-repeat after the last landing (1.8, 1.9). + if (this.waiting) continue; + const gap = this.track(this.host.fig.animate([], { duration: Math.max(1, this.t.repeat) }), this.loops); + this.repeatGap = gap; + try { await gap.finished; } finally { if (this.repeatGap === gap) this.repeatGap = null; gap.cancel(); } + } + } finally { + // Cleared to rest (the hold, a trace, out of motion): a send that was waiting on the loop is dropped with it. + if (!live() && !this.looping) this.waiting = false; + } + } + /** The rest between a repeating packet's self-sends: a send in it ends it, so the message goes at once. */ + private repeatGap: Animation | null = null; + + // ---- What the app and the reader start: a send, and the sequence's run (1.8, 1.10, 1.11) ---- + + sendValue = (value: number | string | undefined) => { + if (!this.lastSend) { this.lastSend = { v: value }; return; } + if (value === undefined || value === this.lastSend.v) return; + this.lastSend = { v: value }; + this.send(); + }; + + private send() { + const m = this.host.model(); + const path = m.motion.packet?.path; + if (!m.motion.animated || !path || !this.hasLines()) return; + // One mover a figure: a second send while a dot is in flight waits for it; one may wait, and further ones are dropped. + if (this.inFlight) { this.waiting = true; return; } + const modes = this.modes(); + if (modes.held || modes.reduce) { + // Nothing sends itself under the hold, and nothing travels under reduced motion: the last stop takes its arrival step for the rest. + const stop = this.node(path[path.length - 1]!); + this.arrive(stop); + this.wait(this.t.rest, this.runAnims).then(() => this.depart(stop), () => this.depart(stop)); + return; + } + // A repeating packet is the one mover: a send rides it, at once in its rest, or after the dot in flight lands. + if (this.looping && m.motion.packet?.repeat) { this.waiting = true; this.repeatGap?.finish(); return; } + this.inFlight = true; + const gen = ++this.runGen; + this.packetRun(path, this.runAnims, () => gen === this.runGen).catch((e) => { if (!aborted(e)) throw e; }).finally(() => { + this.inFlight = false; + if (this.waiting && gen === this.runGen) { this.waiting = false; this.send(); } + }); + } + + toggleRun = () => { + if (this.runAt >= 0) { this.stopRun(); this.publish(); return; } + // It settles a running entrance first. It runs under the hold. + settleEntrance(this.host.fig); + this.playRun(0); + this.publish(); + }; + + private stopRun() { + this.runGen++; + this.runAt = -1; + for (const a of this.runAnims) a.cancel(); + this.runAnims.clear(); + if (this.dot && this.dotOwner === "run") { this.dot.style.display = "none"; this.dotOwner = null; } + if (!this.looping) this.inFlight = false; + if (!this.looping) this.clearArrivals(); + else this.host.fig.querySelectorAll(`.${this.host.P}-msg[data-arrival]`).forEach((el) => el.removeAttribute("data-arrival")); + } + + /** The run: a packet through every message in order, each arrow a leg; at each arrival the number lifts and the receiver's head steps (1.10). */ + private playRun(from: number) { + const geo = this.host.geo(); + if (!geo?.lines.length) return; + for (const a of this.runAnims) a.cancel(); + this.runAnims.clear(); + const gen = ++this.runGen; + const live = () => gen === this.runGen; + const lines = this.ordered(geo); + const msgs = this.host.fig.querySelectorAll(`.${this.host.P}-msg`); + this.runAt = from; + const go = async () => { + for (let k = from; k < lines.length; k++) { + if (!live()) return; + this.runAt = k; + const l = lines[k]!; + const stops = [msgs[k] ?? null, this.node(l.to)]; + if (matchMedia("(prefers-reduced-motion: reduce)").matches) { + // Reduced motion: no traveller; each number lifts and each participant steps in turn, on the same schedule. Colour only. + const tk = this.host.tokens(); + const len = lengthOf(trimmed(l, (tk?.head ?? 8) + (tk?.space("1") ?? 4))); + await this.wait(clamp((len / this.t.packet) * 1000, this.t.legMin, this.t.legMax) + this.t.base, this.runAnims); + if (!live()) return; + for (const s of stops) this.arrive(s); + await this.wait(this.t.rest, this.runAnims); + for (const s of stops) this.depart(s); + } else await this.leg(l, this.runAnims, live, stops); + } + if (live()) { this.runAt = -1; this.publish(); } + }; + go().catch((e) => { if (!aborted(e)) throw e; }); + } +} + +/** + * What a development build throws on (DECISIONS 292, 4.1): an id in the pulse or the packet's path that no node has, two neighbouring ids no line joins in + * that direction, both a pulse and a packet, flow on a dashed line, and flow on a line of the mover's route. And what it warns on: a flow line with no + * label. Here, and not in the still engine, because only an animated figure reads them. + */ +export function motionErrors(m: Model): { errors: string[]; warnings: string[] } { + const errors: string[] = []; + const warnings: string[] = []; + const { pulse, packet } = m.motion; + if (pulse && packet) errors.push("a figure names both a pulse and a packet: it has one mover at most"); + const path = pulse ?? packet?.path; + const what = pulse ? "pulse" : "packet"; + const onPath = new Set(); + if (path) { + for (const id of path) if (!m.byId.has(id)) errors.push(`the ${what} names ${id}, which is not a node`); + for (let k = 1; k < path.length; k++) { + const e = m.edges.find((x) => x.from === path[k - 1] && x.to === path[k]); + if (!e) errors.push(`the ${what} goes from ${path[k - 1]} to ${path[k]}, and no line joins them in that direction`); + else onPath.add(e.i); + } + } + for (const e of m.edges) { + if (!e.flow) continue; + if (e.kind === "dashed") errors.push(`the line from ${e.from} to ${e.to} is dashed and flows: flow is on a main or plain line only`); + if (onPath.has(e.i)) errors.push(`the line from ${e.from} to ${e.to} flows and is on the ${what}'s route: flow never runs on a line the mover travels`); + if (!e.label) warnings.push(`the line from ${e.from} to ${e.to} flows but has no label: motion never carries a fact alone, so its label says it is a stream`); + } + return { errors, warnings }; +} + +/** Attaches motion to one animated figure. The host calls `redrawn` after each new drawing, `changed` after new data, and `destroy` when done. */ +export function attachMotion(host: MotionHost): MotionController { + return new Figure(host); +} diff --git a/packages/react/src/diagram-motion.tsx b/packages/react/src/diagram-motion.tsx new file mode 100644 index 00000000..3b1870e7 --- /dev/null +++ b/packages/react/src/diagram-motion.tsx @@ -0,0 +1,32 @@ +import * as React from "react"; + +import { Button } from "./button"; +import { LoopsToggleButton } from "./loops-toggle-button"; +import type { MotionController } from "./diagram-motion-core"; + +export { attachMotion, motionErrors } from "./diagram-motion-core"; + +// A diagram's motion, React's side (DECISIONS 292): the engine (diagram-motion-core.ts) and the two buttons it adds to the figure's foot. This module is +// loaded on demand by an animated figure (diagram-figure.tsx), never by a still one, so the buttons, the hold's state and the engine cost a still diagram +// nothing. It is not exported from the package. + +const RUN_PLAY = "Play the run"; +const RUN_STOP = "Stop the run"; + +/** + * The foot's motion controls (1.9, 1.10), after "View as list": the run button, where the sequence names `run` and lines are drawn, and "Pause + * animations", the page's hold (`LoopsToggle`'s button form at the small size), where the figure can loop. Each is a secondary small button, at least 44px on touch. + */ +export function MotionFoot({ controller }: { controller: MotionController }) { + const state = React.useSyncExternalStore(controller.subscribe, controller.state, controller.state); + return ( + <> + {state.runShown ? ( + + ) : null} + {state.canLoop ? ( + + ) : null} + + ); +} diff --git a/packages/react/src/flowchart-diagram.tsx b/packages/react/src/flowchart-diagram.tsx index 766570cf..bd6115ec 100644 --- a/packages/react/src/flowchart-diagram.tsx +++ b/packages/react/src/flowchart-diagram.tsx @@ -16,7 +16,7 @@ export interface FlowchartDiagramProps extends DiagramFigureProps { } /** A flowchart (DECISIONS 281): shape carries type, so every shape has a 3:1 contour; a decision is a diamond behind its words. */ -export function FlowchartDiagram({ nodes, edges, shapeLabels, title, heading, legend, ...props }: FlowchartDiagramProps) { - const spec = React.useMemo(() => ({ type: "flowchart" as const, title, heading, legend, nodes, edges, shapeLabels }), [title, heading, legend, nodes, edges, shapeLabels]); +export function FlowchartDiagram({ nodes, edges, shapeLabels, motion, title, heading, legend, ...props }: FlowchartDiagramProps) { + const spec = React.useMemo(() => ({ type: "flowchart" as const, title, heading, legend, nodes, edges, shapeLabels, motion }), [title, heading, legend, nodes, edges, shapeLabels, motion]); return ; } diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index 11f6cca3..c6930b42 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -93,7 +93,7 @@ export { ChartGroup, TimeChart } from "./chart"; export { trailingMean } from "./trailing-mean"; export type { ChartGroupProps, ChartKind, ChartLaneGeometry, ChartPlan, ChartSeries, TimeChartProps } from "./chart"; export { ArchitectureDiagram } from "./architecture-diagram"; -export type { ArchitectureDiagramProps, ArchitectureNode, DiagramEdge, DiagramFigureProps, DiagramGroup, DiagramLegend, DiagramLineKind, DiagramNode, DiagramSide } from "./architecture-diagram"; +export type { ArchitectureDiagramProps, ArchitectureNode, DiagramEdge, DiagramFigureProps, DiagramFlowEdge, DiagramGroup, DiagramLegend, DiagramLineKind, DiagramMark, DiagramMotion, DiagramNode, DiagramPacket, DiagramSide } from "./architecture-diagram"; export { FlowchartDiagram } from "./flowchart-diagram"; export type { DiagramShapeLabels, FlowchartDiagramProps, FlowchartNode } from "./flowchart-diagram"; export { DataFlowDiagram } from "./data-flow-diagram"; diff --git a/packages/react/src/loops-toggle-button.tsx b/packages/react/src/loops-toggle-button.tsx index 0232646e..190a8d65 100644 --- a/packages/react/src/loops-toggle-button.tsx +++ b/packages/react/src/loops-toggle-button.tsx @@ -6,10 +6,12 @@ import { LOOPS_TOGGLE_NAME } from "./constants"; export interface LoopsToggleButtonProps { className?: string; + /** The Button's size: `md` (the default), or `sm` beside other small buttons, as in a diagram's foot. */ + size?: "sm" | "md"; } /** `LoopsToggle`'s Button form: a pressed-toggle Button labelled "Pause animations". `SiteHeader`'s narrow menu draws it as its first row. */ -export function LoopsToggleButton({ className }: LoopsToggleButtonProps) { +export function LoopsToggleButton({ className, size = "md" }: LoopsToggleButtonProps) { const { held, setHeld } = useLoops(); - return ; + return ; } diff --git a/packages/react/src/loops-toggle.tsx b/packages/react/src/loops-toggle.tsx index 7c7722ba..cd51f9ed 100644 --- a/packages/react/src/loops-toggle.tsx +++ b/packages/react/src/loops-toggle.tsx @@ -24,6 +24,8 @@ export type LoopsToggleProps = | (Common & { /** A pressed-toggle `Button` labelled "Pause animations", for the head band of the view that shows running work (the icon form fits there too). `SiteHeader` draws it as its narrow menu's first row. */ form: "button"; + /** The Button's size: `md` (the default), or `sm` beside other small buttons, as in a diagram's foot. */ + size?: "sm" | "md"; }) | (Common & { /** @@ -39,7 +41,7 @@ export type LoopsToggleProps = * of these on a page, and the command that does the same, stay in step. */ export function LoopsToggle(props: LoopsToggleProps) { - if (props.form === "button") return ; + if (props.form === "button") return ; if (props.form === "switch") return ; return ; } diff --git a/packages/react/src/loops.ts b/packages/react/src/loops.ts index f501d8e8..c325be76 100644 --- a/packages/react/src/loops.ts +++ b/packages/react/src/loops.ts @@ -33,7 +33,6 @@ function apply(held: boolean) { if (held) root.setAttribute("data-loops", HELD); else root.removeAttribute("data-loops"); if (!held) rejoinClock(); - for (const notify of subscribers ?? []) notify(); } function onStorage(event: StorageEvent) { @@ -51,6 +50,9 @@ function install() { if (localStorage.getItem(KEY) === HELD && !isHeld()) document.documentElement.setAttribute("data-loops", HELD); } catch { /* storage can be blocked; the hold then lasts for this page */ } window.addEventListener("storage", onStorage); + // Every change of the hold reaches the subscribers through the attribute, whoever wrote it: this module, or another copy of it (a lazy module carries + // its own, as the diagrams' motion does). + new MutationObserver(() => { for (const notify of subscribers ?? []) notify(); }).observe(document.documentElement, { attributeFilter: ["data-loops"] }); } function subscribe(notify: () => void) { diff --git a/packages/react/src/marks/aws-api-gateway-endpoint.ts b/packages/react/src/marks/aws-api-gateway-endpoint.ts new file mode 100644 index 00000000..03d3cda0 --- /dev/null +++ b/packages/react/src/marks/aws-api-gateway-endpoint.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon API Gateway endpoint is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon API Gateway endpoint's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "API Gateway". */ +export const awsApiGatewayEndpoint: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.909 24.955H27.817V23.046H25.909V24.955ZM23.045 24.955H24.954V23.046H23.045V24.955ZM20.182 24.955H22.091V23.046H20.182V24.955ZM37.318 31.003L30.728 36.802V11.332L37.318 17.13V31.003ZM30.944 8.926C30.74 8.839 29.856 8.579 29.242 8.92L28.728 9.205V38.929L29.242 39.214C29.471 39.341 29.737 39.385 29.993 39.385C30.421 39.385 30.816 39.263 30.944 39.208L31.092 39.146L38.565 32.569C39.028 32.299 39.318 31.813 39.318 31.284V16.849C39.318 16.321 39.029 15.835 38.566 15.564L31.092 8.988L30.944 8.926ZM17.273 36.803L10.682 31.004V17.129L17.273 11.331V36.803ZM17.055 8.926L16.907 8.988L9.432 15.565C8.971 15.836 8.682 16.321 8.682 16.849V31.284C8.682 31.812 8.971 32.299 9.433 32.568L16.907 39.146L17.055 39.208C17.182 39.263 17.578 39.385 18.006 39.385C18.261 39.385 18.527 39.341 18.756 39.215L19.273 38.93V9.204L18.756 8.919C18.144 8.582 17.258 8.839 17.055 8.926V8.926ZM44 32.284L32.284 44H15.715L4 32.284V15.716L15.715 4H32.284L44 15.716V32.284ZM33.112 2H14.887L2 14.888V33.112L14.887 46H33.112L46 33.112V14.888L33.112 2Z' fill='%238C4FFF'/%3E%3C/g%3E%3C/svg%3E", + says: ["API Gateway"], +}; diff --git a/packages/react/src/marks/aws-application-load-balancer.ts b/packages/react/src/marks/aws-application-load-balancer.ts new file mode 100644 index 00000000..619fb394 --- /dev/null +++ b/packages/react/src/marks/aws-application-load-balancer.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Application Load Balancer is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Application Load Balancer's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "ALB", "Application Load Balancer", "load balancer". */ +export const awsApplicationLoadBalancer: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.69,34.375 L36.035,34.375 L36.035,32 L33.69,32 L33.69,34.375 Z M26.751,34.375 L29.126,34.375 L29.126,32 L26.751,32 L26.751,34.375 Z M18.876,34.375 L21.251,34.375 L21.251,32 L18.876,32 L18.876,34.375 Z M11.966,34.375 L14.251,34.375 L14.251,32 L11.966,32 L11.966,34.375 Z M18.001,16.875 L30.001,16.875 L30.001,11 L18.001,11 L18.001,16.875 Z M37.035,30 L35.501,30 L35.501,26.625 C35.501,26.072 35.053,25.625 34.501,25.625 L32.001,25.625 L32.001,22.25 C32.001,21.697 31.553,21.25 31.001,21.25 L25.001,21.25 L25.001,18.875 L31.001,18.875 C31.553,18.875 32.001,18.428 32.001,17.875 L32.001,10 C32.001,9.447 31.553,9 31.001,9 L17.001,9 C16.448,9 16.001,9.447 16.001,10 L16.001,17.875 C16.001,18.428 16.448,18.875 17.001,18.875 L23.001,18.875 L23.001,21.25 L17.001,21.25 C16.448,21.25 16.001,21.697 16.001,22.25 L16.001,25.625 L13.501,25.625 C12.948,25.625 12.501,26.072 12.501,26.625 L12.501,30 L10.965,30 C10.413,30 9.965,30.447 9.965,31 L9.965,35.375 C9.965,35.928 10.413,36.375 10.965,36.375 L15.251,36.375 C15.803,36.375 16.251,35.928 16.251,35.375 L16.251,31 C16.251,30.447 15.803,30 15.251,30 L14.501,30 L14.501,27.625 L18.626,27.625 L18.626,30 L17.876,30 C17.323,30 16.876,30.447 16.876,31 L16.876,35.375 C16.876,35.928 17.323,36.375 17.876,36.375 L22.251,36.375 C22.803,36.375 23.251,35.928 23.251,35.375 L23.251,31 C23.251,30.447 22.803,30 22.251,30 L20.626,30 L20.626,26.625 C20.626,26.072 20.178,25.625 19.626,25.625 L18.001,25.625 L18.001,23.25 L30.001,23.25 L30.001,25.625 L28.376,25.625 C27.823,25.625 27.376,26.072 27.376,26.625 L27.376,30 L25.751,30 C25.198,30 24.751,30.447 24.751,31 L24.751,35.375 C24.751,35.928 25.198,36.375 25.751,36.375 L30.126,36.375 C30.678,36.375 31.126,35.928 31.126,35.375 L31.126,31 C31.126,30.447 30.678,30 30.126,30 L29.376,30 L29.376,27.625 L33.501,27.625 L33.501,30 L32.69,30 C32.137,30 31.69,30.447 31.69,31 L31.69,35.375 C31.69,35.928 32.137,36.375 32.69,36.375 L37.035,36.375 C37.587,36.375 38.035,35.928 38.035,35.375 L38.035,31 C38.035,30.447 37.587,30 37.035,30 L37.035,30 Z M24.001,44 C12.972,44 4,35.028 4,24 C4,12.972 12.972,4 24.001,4 C35.029,4 44.001,12.972 44.001,24 C44.001,35.028 35.029,44 24.001,44 L24.001,44 Z M24.001,2 C11.869,2 2,11.869 2,24 C2,36.131 11.869,46 24.001,46 C36.131,46 46.001,36.131 46.001,24 C46.001,11.869 36.131,2 24.001,2 L24.001,2 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["ALB","Application Load Balancer","load balancer"], +}; diff --git a/packages/react/src/marks/aws-application.ts b/packages/react/src/marks/aws-application.ts new file mode 100644 index 00000000..a152783c --- /dev/null +++ b/packages/react/src/marks/aws-application.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Generic application is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Generic application's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "app", "application", "service". */ +export const awsApplication: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37,35 L46,35 L46,37 L37,37 L37,46 L35,46 L35,37 L26,37 L26,35 L35,35 L35,26 L37,26 L37,35 Z M4,44 L20,44 L20,28 L4,28 L4,44 Z M21,26 L3,26 C2.447,26 2,26.448 2,27 L2,45 C2,45.552 2.447,46 3,46 L21,46 C21.553,46 22,45.552 22,45 L22,27 C22,26.448 21.553,26 21,26 L21,26 Z M28,20 L44,20 L44,4 L28,4 L28,20 Z M45,2 L27,2 C26.447,2 26,2.448 26,3 L26,21 C26,21.552 26.447,22 27,22 L45,22 C45.553,22 46,21.552 46,21 L46,3 C46,2.448 45.553,2 45,2 L45,2 Z M4,20 L20,20 L20,4 L4,4 L4,20 Z M21,2 L3,2 C2.447,2 2,2.448 2,3 L2,21 C2,21.552 2.447,22 3,22 L21,22 C21.553,22 22,21.552 22,21 L22,3 C22,2.448 21.553,2 21,2 L21,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37,35 L46,35 L46,37 L37,37 L37,46 L35,46 L35,37 L26,37 L26,35 L35,35 L35,26 L37,26 L37,35 Z M4,44 L20,44 L20,28 L4,28 L4,44 Z M21,26 L3,26 C2.447,26 2,26.448 2,27 L2,45 C2,45.552 2.447,46 3,46 L21,46 C21.553,46 22,45.552 22,45 L22,27 C22,26.448 21.553,26 21,26 L21,26 Z M28,20 L44,20 L44,4 L28,4 L28,20 Z M45,2 L27,2 C26.447,2 26,2.448 26,3 L26,21 C26,21.552 26.447,22 27,22 L45,22 C45.553,22 46,21.552 46,21 L46,3 C46,2.448 45.553,2 45,2 L45,2 Z M4,20 L20,20 L20,4 L4,4 L4,20 Z M21,2 L3,2 C2.447,2 2,2.448 2,3 L2,21 C2,21.552 2.447,22 3,22 L21,22 C21.553,22 22,21.552 22,21 L22,3 C22,2.448 21.553,2 21,2 L21,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["app","application","service"], +}; diff --git a/packages/react/src/marks/aws-bedrock.ts b/packages/react/src/marks/aws-bedrock.ts new file mode 100644 index 00000000..bfa25020 --- /dev/null +++ b/packages/react/src/marks/aws-bedrock.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon Bedrock is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +// Unofficial: not its owner's own file (DECISIONS 297). Edits: Tile removed: the Machine-Learning background group (its #01A88D 64 by 64 rect) deleted, and the glyph's fill #FFFFFF set to #01A88D, the tile's own colour, as AWS's resource icons draw their glyphs. The paths are unchanged. +import type { DiagramMark } from "../diagram-core"; + +/** An unofficial mark for Amazon Bedrock for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Bedrock". */ +export const awsBedrock: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44' height='44' viewBox='10 10 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(10.000000, 10.000000)' fill='%2301A88D'%3E%3Cpath d='M41,20.9998818 C40.448,20.9998818 40,20.5508818 40,19.9998818 C40,19.4488818 40.448,18.9998818 41,18.9998818 C41.552,18.9998818 42,19.4488818 42,19.9998818 C42,20.5508818 41.552,20.9998818 41,20.9998818 L41,20.9998818 Z M16.977,41.8478818 L13.774,40.1018818 L17.515,37.8568818 L16.485,36.1428818 L11.738,38.9908818 L7,36.4058818 L7,30.5658818 L11.515,27.8568818 L10.485,26.1428818 L6,28.8338818 L2,26.4338818 L2,22.6178818 L7.447,19.8948818 L6.553,18.1048818 L2,20.3818818 L2,17.6178818 L6.956,15.1398818 L11,17.5658818 L11,20.3818818 L7.553,22.1048818 L8.447,23.8948818 L12.003,22.1168818 L15.557,23.8768818 L16.443,22.0848818 L13,20.3798818 L13,17.5658818 L17.515,14.8568818 C17.815,14.6768818 18,14.3508818 18,13.9998818 L18,8.99988178 L16,8.99988178 L16,13.4338818 L12,15.8338818 L8,13.4338818 L8,6.58788178 L11,4.92188178 L11,10.9998818 L13,10.9998818 L13,3.81088178 L16.024,2.12988178 L21.002,4.61588178 L21.001,26.4498818 L10.463,33.1558818 L11.537,34.8438818 L21.001,28.8218818 L21,39.4338818 L16.977,41.8478818 Z M38,28.9998818 C38.552,28.9998818 39,29.4488818 39,29.9998818 C39,30.5508818 38.552,30.9998818 38,30.9998818 C37.448,30.9998818 37,30.5508818 37,29.9998818 C37,29.4488818 37.448,28.9998818 38,28.9998818 L38,28.9998818 Z M30,38.9998818 C29.448,38.9998818 29,38.5508818 29,37.9998818 C29,37.4488818 29.448,36.9998818 30,36.9998818 C30.552,36.9998818 31,37.4488818 31,37.9998818 C31,38.5508818 30.552,38.9998818 30,38.9998818 L30,38.9998818 Z M32,5.99988178 C32.552,5.99988178 33,6.44888178 33,6.99988178 C33,7.55088178 32.552,7.99988178 32,7.99988178 C31.448,7.99988178 31,7.55088178 31,6.99988178 C31,6.44888178 31.448,5.99988178 32,5.99988178 L32,5.99988178 Z M41,16.9998818 C39.698,16.9998818 38.598,17.8388818 38.184,18.9998818 L23.001,18.9998818 L23.001,14.9998818 L32,14.9998818 C32.553,14.9998818 33,14.5518818 33,13.9998818 L33,9.81588178 C34.161,9.40188178 35,8.30188178 35,6.99988178 C35,5.34588178 33.654,3.99988178 32,3.99988178 C30.346,3.99988178 29,5.34588178 29,6.99988178 C29,8.30188178 29.839,9.40188178 31,9.81588178 L31,12.9998818 L23.001,12.9998818 L23.002,3.99788178 C23.002,3.61888178 22.788,3.27288178 22.449,3.10388178 L16.447,0.104881781 C16.151,-0.0421182195 15.803,-0.0341182195 15.515,0.125881781 L6.515,5.12588178 C6.197,5.30188178 6,5.63688178 6,5.99988178 L6,13.3818818 L0.553,16.1048818 C0.214,16.2748818 0,16.6208818 0,16.9998818 L0,26.9998818 C0,27.3508818 0.185,27.6768818 0.485,27.8568818 L5,30.5658818 L5,36.9998818 C5,37.3658818 5.2,37.7028818 5.521,37.8778818 L16.521,43.8778818 C16.671,43.9588818 16.835,43.9998818 17,43.9998818 C17.179,43.9998818 17.356,43.9518818 17.515,43.8568818 L22.515,40.8568818 C22.815,40.6768818 23,40.3508818 23,39.9998818 L23,32.9998818 L29,32.9998818 L29,35.1838818 C27.839,35.5978818 27,36.6978818 27,37.9998818 C27,39.6538818 28.346,40.9998818 30,40.9998818 C31.654,40.9998818 33,39.6538818 33,37.9998818 C33,36.6978818 32.161,35.5978818 31,35.1838818 L31,31.9998818 C31,31.4478818 30.553,30.9998818 30,30.9998818 L23,30.9998818 L23.001,26.9998818 L33.586,26.9998818 L35.301,28.7148818 C35.113,29.1058818 35,29.5378818 35,29.9998818 C35,31.6538818 36.346,32.9998818 38,32.9998818 C39.654,32.9998818 41,31.6538818 41,29.9998818 C41,28.3458818 39.654,26.9998818 38,26.9998818 C37.538,26.9998818 37.106,27.1128818 36.715,27.3008818 L34.707,25.2928818 C34.52,25.1048818 34.266,24.9998818 34,24.9998818 L23.001,24.9998818 L23.001,20.9998818 L38.184,20.9998818 C38.598,22.1608818 39.698,22.9998818 41,22.9998818 C42.654,22.9998818 44,21.6538818 44,19.9998818 C44,18.3458818 42.654,16.9998818 41,16.9998818 L41,16.9998818 Z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E", + says: ["Bedrock"], +}; diff --git a/packages/react/src/marks/aws-client.ts b/packages/react/src/marks/aws-client.ts new file mode 100644 index 00000000..27f0705b --- /dev/null +++ b/packages/react/src/marks/aws-client.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Client is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Client's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "client", "browser", "app". */ +export const awsClient: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='43.84' height='43.06' viewBox='1.99 1.99 43.84 43.06' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M42.299,38.773 L42.299,40.696 C42.299,41.134 41.945,41.49 41.506,41.49 L30.762,41.49 C30.323,41.49 29.968,41.134 29.968,40.696 L29.968,38.773 C29.968,38.335 30.323,37.98 30.762,37.98 L41.506,37.98 C41.945,37.98 42.299,38.335 42.299,38.773 L42.299,38.773 Z M43.797,42.399 C43.797,42.754 43.508,43.044 43.153,43.044 L4.645,43.044 C4.289,43.044 4,42.754 4,42.399 L4,37.011 C4,36.656 4.289,36.367 4.645,36.367 L43.153,36.367 C43.508,36.367 43.797,36.656 43.797,37.011 L43.797,42.399 Z M43.153,34.367 L4.645,34.367 C3.187,34.367 2,35.553 2,37.011 L2,42.399 C2,43.857 3.187,45.044 4.645,45.044 L43.153,45.044 C44.611,45.044 45.797,43.857 45.797,42.399 L45.797,37.011 C45.797,35.553 44.611,34.367 43.153,34.367 L43.153,34.367 Z M7.501,27.21 L40.264,27.21 L40.264,7.502 L7.501,7.502 L7.501,27.21 Z M40.842,5.502 L6.924,5.502 C6.14,5.502 5.501,6.139 5.501,6.923 L5.501,27.788 C5.501,28.572 6.14,29.21 6.924,29.21 L40.842,29.21 C41.626,29.21 42.264,28.572 42.264,27.788 L42.264,6.923 C42.264,6.139 41.626,5.502 40.842,5.502 L40.842,5.502 Z M43.797,30.067 C43.797,30.422 43.508,30.711 43.153,30.711 L4.645,30.711 C4.289,30.711 4,30.422 4,30.067 L4,4.644 C4,4.289 4.289,4 4.645,4 L43.153,4 C43.508,4 43.797,4.289 43.797,4.644 L43.797,30.067 Z M43.153,2 L4.645,2 C3.187,2 2,3.186 2,4.644 L2,30.067 C2,31.525 3.187,32.711 4.645,32.711 L43.153,32.711 C44.611,32.711 45.797,31.525 45.797,30.067 L45.797,4.644 C45.797,3.186 44.611,2 43.153,2 L43.153,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='43.84' height='43.06' viewBox='1.99 1.99 43.84 43.06' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M42.299,38.773 L42.299,40.696 C42.299,41.134 41.945,41.49 41.506,41.49 L30.762,41.49 C30.323,41.49 29.968,41.134 29.968,40.696 L29.968,38.773 C29.968,38.335 30.323,37.98 30.762,37.98 L41.506,37.98 C41.945,37.98 42.299,38.335 42.299,38.773 L42.299,38.773 Z M43.797,42.399 C43.797,42.754 43.508,43.044 43.153,43.044 L4.645,43.044 C4.289,43.044 4,42.754 4,42.399 L4,37.011 C4,36.656 4.289,36.367 4.645,36.367 L43.153,36.367 C43.508,36.367 43.797,36.656 43.797,37.011 L43.797,42.399 Z M43.153,34.367 L4.645,34.367 C3.187,34.367 2,35.553 2,37.011 L2,42.399 C2,43.857 3.187,45.044 4.645,45.044 L43.153,45.044 C44.611,45.044 45.797,43.857 45.797,42.399 L45.797,37.011 C45.797,35.553 44.611,34.367 43.153,34.367 L43.153,34.367 Z M7.501,27.21 L40.264,27.21 L40.264,7.502 L7.501,7.502 L7.501,27.21 Z M40.842,5.502 L6.924,5.502 C6.14,5.502 5.501,6.139 5.501,6.923 L5.501,27.788 C5.501,28.572 6.14,29.21 6.924,29.21 L40.842,29.21 C41.626,29.21 42.264,28.572 42.264,27.788 L42.264,6.923 C42.264,6.139 41.626,5.502 40.842,5.502 L40.842,5.502 Z M43.797,30.067 C43.797,30.422 43.508,30.711 43.153,30.711 L4.645,30.711 C4.289,30.711 4,30.422 4,30.067 L4,4.644 C4,4.289 4.289,4 4.645,4 L43.153,4 C43.508,4 43.797,4.289 43.797,4.644 L43.797,30.067 Z M43.153,2 L4.645,2 C3.187,2 2,3.186 2,4.644 L2,30.067 C2,31.525 3.187,32.711 4.645,32.711 L43.153,32.711 C44.611,32.711 45.797,31.525 45.797,30.067 L45.797,4.644 C45.797,3.186 44.611,2 43.153,2 L43.153,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["client","browser","app"], +}; diff --git a/packages/react/src/marks/aws-cloudfront-distribution.ts b/packages/react/src/marks/aws-cloudfront-distribution.ts new file mode 100644 index 00000000..976686eb --- /dev/null +++ b/packages/react/src/marks/aws-cloudfront-distribution.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon CloudFront distribution is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon CloudFront distribution's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "CloudFront". */ +export const awsCloudfrontDistribution: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.9581,27.6694 L17.3721,29.0834 L15.9581,30.4974 L14.5441,29.0834 L15.9581,27.6694 Z M18.8531,30.5644 L21.8131,33.5244 L20.3991,34.9394 L17.4381,31.9784 L18.8531,30.5644 Z M29.1501,30.5644 L30.5641,31.9784 L27.6041,34.9394 L26.1891,33.5244 L29.1501,30.5644 Z M32.0451,27.6694 L33.4591,29.0834 L32.0451,30.4974 L30.6311,29.0834 L32.0451,27.6694 Z M25.0011,35.2984 L26.1221,36.4194 L24.7081,37.8344 C24.5131,38.0294 24.2571,38.1274 24.0011,38.1274 C23.7451,38.1274 23.4891,38.0294 23.2941,37.8344 L21.8801,36.4194 L23.0011,35.2984 L23.0011,34.2524 L25.0011,34.2524 L25.0011,35.2984 Z M23.0011,16.4624 L25.0011,16.4624 L25.0011,12.9044 L23.0011,12.9044 L23.0011,16.4624 Z M23.0011,21.7994 L25.0011,21.7994 L25.0011,18.2414 L23.0011,18.2414 L23.0011,21.7994 Z M23.0011,27.1364 L25.0011,27.1364 L25.0011,23.5784 L23.0011,23.5784 L23.0011,27.1364 Z M23.0011,32.4734 L25.0011,32.4734 L25.0011,28.9154 L23.0011,28.9154 L23.0011,32.4734 Z M23.0011,11.1254 L25.0011,11.1254 L25.0011,9.1254 L23.0011,9.1254 L23.0011,11.1254 Z M24.0011,44.0024 C12.9731,44.0024 4.0001,35.0294 4.0001,24.0014 C4.0001,12.9724 12.9731,4.0004 24.0011,4.0004 C35.0291,4.0004 44.0021,12.9724 44.0021,24.0014 C44.0021,35.0294 35.0291,44.0024 24.0011,44.0024 L24.0011,44.0024 Z M24.0011,2.0004 C11.8691,2.0004 2.0001,11.8694 2.0001,24.0014 C2.0001,36.1324 11.8691,46.0024 24.0011,46.0024 C36.1331,46.0024 46.0021,36.1324 46.0021,24.0014 C46.0021,11.8694 36.1331,2.0004 24.0011,2.0004 L24.0011,2.0004 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["CloudFront"], +}; diff --git a/packages/react/src/marks/aws-cloudwatch-alarm.ts b/packages/react/src/marks/aws-cloudwatch-alarm.ts new file mode 100644 index 00000000..bba3ccc4 --- /dev/null +++ b/packages/react/src/marks/aws-cloudwatch-alarm.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon CloudWatch alarm is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon CloudWatch alarm's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "CloudWatch", "alarm". */ +export const awsCloudwatchAlarm: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='43.98' height='44.21' viewBox='1.99 1.99 43.98 44.21' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M41.4246,40.6675 L34.6366,40.6675 L34.6366,19.8305 C36.8216,20.5265 39.2386,20.5265 41.4246,19.8305 L41.4246,40.6675 Z M41.9946,17.4595 C39.4996,18.6475 36.5596,18.6465 34.0666,17.4595 C33.7586,17.3125 33.3946,17.3335 33.1026,17.5165 C32.8126,17.6995 32.6366,18.0185 32.6366,18.3615 L32.6366,41.6675 C32.6366,42.2205 33.0836,42.6675 33.6366,42.6675 L42.4246,42.6675 C42.9776,42.6675 43.4246,42.2205 43.4246,41.6675 L43.4246,18.3615 C43.4246,18.0185 43.2486,17.6995 42.9586,17.5165 C42.6676,17.3335 42.3036,17.3115 41.9946,17.4595 L41.9946,17.4595 Z M38.0306,4.0005 C40.8716,4.0005 43.1826,6.3115 43.1826,9.1515 C43.1826,11.9925 40.8716,14.3035 38.0306,14.3035 C35.1906,14.3035 32.8796,11.9925 32.8796,9.1515 C32.8796,6.3115 35.1906,4.0005 38.0306,4.0005 L38.0306,4.0005 Z M38.0306,16.3035 C41.9746,16.3035 45.1826,13.0955 45.1826,9.1515 C45.1826,5.2085 41.9746,2.0005 38.0306,2.0005 C34.0876,2.0005 30.8796,5.2085 30.8796,9.1515 C30.8796,13.0955 34.0876,16.3035 38.0306,16.3035 L38.0306,16.3035 Z M2.0006,46.1835 L45.9406,46.1835 L45.9406,44.1835 L2.0006,44.1835 L2.0006,46.1835 Z M20.5756,40.6675 L27.3636,40.6675 L27.3636,27.7285 L20.5756,27.7285 L20.5756,40.6675 Z M19.5756,42.6675 L28.3636,42.6675 C28.9166,42.6675 29.3636,42.2205 29.3636,41.6675 L29.3636,26.7285 C29.3636,26.1755 28.9166,25.7285 28.3636,25.7285 L19.5756,25.7285 C19.0236,25.7285 18.5756,26.1755 18.5756,26.7285 L18.5756,41.6675 C18.5756,42.2205 19.0236,42.6675 19.5756,42.6675 L19.5756,42.6675 Z M6.5156,40.6675 L13.3036,40.6675 L13.3036,23.3345 L6.5156,23.3345 L6.5156,40.6675 Z M5.5156,42.6675 L14.3036,42.6675 C14.8566,42.6675 15.3036,42.2205 15.3036,41.6675 L15.3036,22.3345 C15.3036,21.7815 14.8566,21.3345 14.3036,21.3345 L5.5156,21.3345 C4.9626,21.3345 4.5156,21.7815 4.5156,22.3345 L4.5156,41.6675 C4.5156,42.2205 4.9626,42.6675 5.5156,42.6675 L5.5156,42.6675 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["CloudWatch","alarm"], +}; diff --git a/packages/react/src/marks/aws-cloudwatch-logs.ts b/packages/react/src/marks/aws-cloudwatch-logs.ts new file mode 100644 index 00000000..612bfba6 --- /dev/null +++ b/packages/react/src/marks/aws-cloudwatch-logs.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon CloudWatch Logs is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon CloudWatch Logs's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "CloudWatch", "logs". */ +export const awsCloudwatchLogs: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.21' height='33.03' viewBox='1.99 7.99 44.21 33.03' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M29.4998,17.0004 C26.2418,17.0004 23.4708,19.0924 22.4378,22.0004 L24.6068,22.0004 C25.5198,20.2224 27.3678,19.0004 29.4998,19.0004 C32.5318,19.0004 34.9998,21.4674 34.9998,24.5004 C34.9998,27.5324 32.5318,30.0004 29.4998,30.0004 C27.7958,30.0004 26.2708,29.2214 25.2608,28.0004 L22.8718,28.0004 C24.1318,30.3764 26.6288,32.0004 29.4998,32.0004 C33.6358,32.0004 36.9998,28.6364 36.9998,24.5004 C36.9998,20.3644 33.6358,17.0004 29.4998,17.0004 L29.4998,17.0004 Z M1.9998,33.0004 L14.9998,33.0004 L14.9998,31.0004 L1.9998,31.0004 L1.9998,33.0004 Z M1.9998,18.0004 L14.9998,18.0004 L14.9998,16.0004 L1.9998,16.0004 L1.9998,18.0004 Z M1.9998,26.0004 L28.9998,26.0004 L28.9998,24.0004 L1.9998,24.0004 L1.9998,26.0004 Z M43.8428,35.7384 L38.8178,31.2134 C38.3998,31.7924 37.9318,32.3304 37.4148,32.8214 L42.4118,37.3294 C42.8478,37.7224 43.5278,37.6874 43.9228,37.2494 C44.3148,36.8124 44.2798,36.1344 43.8428,35.7384 L43.8428,35.7384 Z M45.4088,38.5884 C44.8028,39.2594 43.9658,39.6004 43.1248,39.6004 C42.3938,39.6004 41.6588,39.3414 41.0738,38.8154 L35.8338,34.0894 C34.0168,35.2934 31.8398,36.0004 29.4998,36.0004 C24.3798,36.0004 20.0328,32.6344 18.5488,28.0004 L20.6768,28.0004 C22.0738,31.5094 25.4988,34.0004 29.4998,34.0004 C34.7378,34.0004 38.9998,29.7384 38.9998,24.5004 C38.9998,19.2624 34.7378,15.0004 29.4998,15.0004 C25.1278,15.0004 21.4458,17.9734 20.3448,22.0004 L18.2818,22.0004 C19.4278,16.8574 24.0188,13.0004 29.4998,13.0004 C35.8408,13.0004 40.9998,18.1584 40.9998,24.5004 C40.9998,26.2774 40.5828,27.9554 39.8588,29.4604 L45.1828,34.2544 C46.4368,35.3884 46.5378,37.3314 45.4088,38.5884 L45.4088,38.5884 Z M1.9998,41.0004 L20.9998,41.0004 L20.9998,39.0004 L1.9998,39.0004 L1.9998,41.0004 Z M1.9998,10.0004 L22.9998,10.0004 L22.9998,8.0004 L1.9998,8.0004 L1.9998,10.0004 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["CloudWatch","logs"], +}; diff --git a/packages/react/src/marks/aws-database.ts b/packages/react/src/marks/aws-database.ts new file mode 100644 index 00000000..05eb0cf6 --- /dev/null +++ b/packages/react/src/marks/aws-database.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Database is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Database's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "database", "DB", "Aurora", "RDS", "Postgres", "PostgreSQL", "MySQL". */ +export const awsDatabase: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='34.67' height='43.93' viewBox='6.98 1.99 34.67 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.755,43.307 C30.506,43.519 29.176,43.677 27.801,43.777 C27.244,43.817 26.678,43.847 26.105,43.869 C24.954,43.908 23.754,43.908 22.608,43.869 C22.033,43.847 21.467,43.817 20.91,43.777 C19.535,43.677 18.205,43.519 16.956,43.307 C12.049,42.475 9,40.73 9,38.754 L9,10.765 C11.997,12.661 17.74,13.841 24.356,13.841 C30.966,13.841 36.636,12.68 39.645,10.803 L39.645,38.754 C39.645,40.767 36.695,42.469 31.755,43.307 M24.356,4 C32.896,4 38.476,6.184 39.47,8.432 C37.802,10.098 32.46,11.841 24.356,11.841 C16.26,11.841 10.828,10.061 9.207,8.408 L9.171,8.443 C10.155,6.191 15.765,4 24.356,4 M24.356,2 C14.137,2 7,4.938 7,9.145 L7,38.754 C7,40.581 8.25,43.86 16.622,45.28 C17.933,45.501 19.327,45.667 20.766,45.771 C21.346,45.813 21.936,45.845 22.536,45.867 C23.134,45.888 23.741,45.899 24.356,45.899 C24.97,45.899 25.576,45.888 26.176,45.867 C26.776,45.845 27.365,45.813 27.945,45.771 C29.384,45.667 30.778,45.501 32.089,45.28 C40.403,43.869 41.645,40.586 41.645,38.754 L41.645,9.145 C41.645,4.938 34.535,2 24.356,2' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='34.67' height='43.93' viewBox='6.98 1.99 34.67 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.755,43.307 C30.506,43.519 29.176,43.677 27.801,43.777 C27.244,43.817 26.678,43.847 26.105,43.869 C24.954,43.908 23.754,43.908 22.608,43.869 C22.033,43.847 21.467,43.817 20.91,43.777 C19.535,43.677 18.205,43.519 16.956,43.307 C12.049,42.475 9,40.73 9,38.754 L9,10.765 C11.997,12.661 17.74,13.841 24.356,13.841 C30.966,13.841 36.636,12.68 39.645,10.803 L39.645,38.754 C39.645,40.767 36.695,42.469 31.755,43.307 M24.356,4 C32.896,4 38.476,6.184 39.47,8.432 C37.802,10.098 32.46,11.841 24.356,11.841 C16.26,11.841 10.828,10.061 9.207,8.408 L9.171,8.443 C10.155,6.191 15.765,4 24.356,4 M24.356,2 C14.137,2 7,4.938 7,9.145 L7,38.754 C7,40.581 8.25,43.86 16.622,45.28 C17.933,45.501 19.327,45.667 20.766,45.771 C21.346,45.813 21.936,45.845 22.536,45.867 C23.134,45.888 23.741,45.899 24.356,45.899 C24.97,45.899 25.576,45.888 26.176,45.867 C26.776,45.845 27.365,45.813 27.945,45.771 C29.384,45.667 30.778,45.501 32.089,45.28 C40.403,43.869 41.645,40.586 41.645,38.754 L41.645,9.145 C41.645,4.938 34.535,2 24.356,2' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["database","DB","Aurora","RDS","Postgres","PostgreSQL","MySQL"], +}; diff --git a/packages/react/src/marks/aws-dynamodb-table.ts b/packages/react/src/marks/aws-dynamodb-table.ts new file mode 100644 index 00000000..85148355 --- /dev/null +++ b/packages/react/src/marks/aws-dynamodb-table.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon DynamoDB table is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon DynamoDB table's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "DynamoDB". */ +export const awsDynamodbTable: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='43.95' height='43.95' viewBox='1.99 1.99 43.95 43.95' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M13.355,11.862 L45.928,11.862 L45.928,2 L13.355,2 L13.355,11.862 Z M15.355,9.862 L43.927,9.862 L43.927,4.001 L15.355,4.001 L15.355,9.862 Z M2,11.862 L11.861,11.862 L11.861,2 L2,2 L2,11.862 Z M4,9.862 L9.862,9.862 L9.862,4.001 L4,4.001 L4,9.862 Z M13.355,23.217 L45.928,23.217 L45.928,13.356 L13.355,13.356 L13.355,23.217 Z M15.355,21.217 L43.927,21.217 L43.927,15.356 L15.355,15.356 L15.355,21.217 Z M2,23.217 L11.861,23.217 L11.861,13.356 L2,13.356 L2,23.217 Z M4,21.217 L9.862,21.217 L9.862,15.356 L4,15.356 L4,21.217 Z M13.355,34.572 L45.928,34.572 L45.928,24.711 L13.355,24.711 L13.355,34.572 Z M15.355,32.572 L43.927,32.572 L43.927,26.71 L15.355,26.71 L15.355,32.572 Z M2,34.572 L11.861,34.572 L11.861,24.711 L2,24.711 L2,34.572 Z M4,32.572 L9.862,32.572 L9.862,26.71 L4,26.71 L4,32.572 Z M13.355,45.927 L45.928,45.927 L45.928,36.066 L13.355,36.066 L13.355,45.927 Z M15.355,43.928 L43.927,43.928 L43.927,38.066 L15.355,38.066 L15.355,43.928 Z M2,45.927 L11.861,45.927 L11.861,36.066 L2,36.066 L2,45.927 Z M4,43.928 L9.862,43.928 L9.862,38.066 L4,38.066 L4,43.928 Z' fill='%23C925D1'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["DynamoDB"], +}; diff --git a/packages/react/src/marks/aws-ec2-instance.ts b/packages/react/src/marks/aws-ec2-instance.ts new file mode 100644 index 00000000..11965465 --- /dev/null +++ b/packages/react/src/marks/aws-ec2-instance.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon EC2 instance is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon EC2 instance's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "EC2". */ +export const awsEc2Instance: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M9,39 L39,39 L39,9 L9,9 L9,39 Z M46,13 L46,11 L41,11 L41,8 C41,7.448 40.552,7 40,7 L37,7 L37,2 L35,2 L35,7 L31,7 L31,2 L29,2 L29,7 L25,7 L25,2 L23,2 L23,7 L19,7 L19,2 L17,2 L17,7 L13,7 L13,2 L11,2 L11,7 L8,7 C7.447,7 7,7.448 7,8 L7,11 L2,11 L2,13 L7,13 L7,17 L2,17 L2,19 L7,19 L7,23 L2,23 L2,25 L7,25 L7,29 L2,29 L2,31 L7,31 L7,35 L2,35 L2,37 L7,37 L7,40 C7,40.553 7.447,41 8,41 L11,41 L11,46 L13,46 L13,41 L17,41 L17,46 L19,46 L19,41 L23,41 L23,46 L25,46 L25,41 L29,41 L29,46 L31,46 L31,41 L35,41 L35,46 L37,46 L37,41 L40,41 C40.552,41 41,40.553 41,40 L41,37 L46,37 L46,35 L41,35 L41,31 L46,31 L46,29 L41,29 L41,25 L46,25 L46,23 L41,23 L41,19 L46,19 L46,17 L41,17 L41,13 L46,13 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["EC2"], +}; diff --git a/packages/react/src/marks/aws-ecr-registry.ts b/packages/react/src/marks/aws-ecr-registry.ts new file mode 100644 index 00000000..2b64217e --- /dev/null +++ b/packages/react/src/marks/aws-ecr-registry.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon ECR registry is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon ECR registry's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "ECR", "Elastic Container Registry", "registry". */ +export const awsEcrRegistry: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='43.98' height='43.98' viewBox='1.99 1.99 43.98 43.98' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M35.207,37.954 L37.207,37.954 L37.207,34.459 L35.207,34.459 L35.207,37.954 Z M31.711,37.954 L33.711,37.954 L33.711,34.459 L31.711,34.459 L31.711,37.954 Z M28.216,37.954 L30.216,37.954 L30.216,34.459 L28.216,34.459 L28.216,37.954 Z M26.721,39.576 L38.702,39.576 L38.702,32.837 L26.721,32.837 L26.721,39.576 Z M39.702,30.837 L25.72,30.837 C25.168,30.837 24.72,31.284 24.72,31.837 L24.72,40.576 C24.72,41.129 25.168,41.576 25.72,41.576 L39.702,41.576 C40.255,41.576 40.702,41.129 40.702,40.576 L40.702,31.837 C40.702,31.284 40.255,30.837 39.702,30.837 L39.702,30.837 Z M35.207,25.721 L37.207,25.721 L37.207,22.225 L35.207,22.225 L35.207,25.721 Z M31.711,25.721 L33.711,25.721 L33.711,22.225 L31.711,22.225 L31.711,25.721 Z M28.216,25.721 L30.216,25.721 L30.216,22.225 L28.216,22.225 L28.216,25.721 Z M26.721,27.342 L38.702,27.342 L38.702,20.604 L26.721,20.604 L26.721,27.342 Z M39.702,18.604 L25.72,18.604 C25.168,18.604 24.72,19.051 24.72,19.604 L24.72,28.342 C24.72,28.895 25.168,29.342 25.72,29.342 L39.702,29.342 C40.255,29.342 40.702,28.895 40.702,28.342 L40.702,19.604 C40.702,19.051 40.255,18.604 39.702,18.604 L39.702,18.604 Z M35.207,13.486 L37.207,13.486 L37.207,9.991 L35.207,9.991 L35.207,13.486 Z M31.711,13.486 L33.711,13.486 L33.711,9.991 L31.711,9.991 L31.711,13.486 Z M28.216,13.486 L30.216,13.486 L30.216,9.991 L28.216,9.991 L28.216,13.486 Z M26.721,15.108 L38.702,15.108 L38.702,8.369 L26.721,8.369 L26.721,15.108 Z M39.702,6.369 L25.72,6.369 C25.168,6.369 24.72,6.817 24.72,7.369 L24.72,16.108 C24.72,16.661 25.168,17.108 25.72,17.108 L39.702,17.108 C40.255,17.108 40.702,16.661 40.702,16.108 L40.702,7.369 C40.702,6.817 40.255,6.369 39.702,6.369 L39.702,6.369 Z M17.729,37.954 L19.729,37.954 L19.729,34.459 L17.729,34.459 L17.729,37.954 Z M14.234,37.954 L16.234,37.954 L16.234,34.459 L14.234,34.459 L14.234,37.954 Z M10.738,37.954 L12.738,37.954 L12.738,34.459 L10.738,34.459 L10.738,37.954 Z M9.243,39.576 L21.224,39.576 L21.224,32.837 L9.243,32.837 L9.243,39.576 Z M22.224,30.837 L8.243,30.837 C7.69,30.837 7.243,31.284 7.243,31.837 L7.243,40.576 C7.243,41.129 7.69,41.576 8.243,41.576 L22.224,41.576 C22.777,41.576 23.224,41.129 23.224,40.576 L23.224,31.837 C23.224,31.284 22.777,30.837 22.224,30.837 L22.224,30.837 Z M17.729,25.721 L19.729,25.721 L19.729,22.225 L17.729,22.225 L17.729,25.721 Z M14.234,25.721 L16.234,25.721 L16.234,22.225 L14.234,22.225 L14.234,25.721 Z M10.738,25.721 L12.738,25.721 L12.738,22.225 L10.738,22.225 L10.738,25.721 Z M9.243,27.342 L21.224,27.342 L21.224,20.604 L9.243,20.604 L9.243,27.342 Z M22.224,18.604 L8.243,18.604 C7.69,18.604 7.243,19.051 7.243,19.604 L7.243,28.342 C7.243,28.895 7.69,29.342 8.243,29.342 L22.224,29.342 C22.777,29.342 23.224,28.895 23.224,28.342 L23.224,19.604 C23.224,19.051 22.777,18.604 22.224,18.604 L22.224,18.604 Z M17.729,13.486 L19.729,13.486 L19.729,9.991 L17.729,9.991 L17.729,13.486 Z M14.234,13.486 L16.234,13.486 L16.234,9.991 L14.234,9.991 L14.234,13.486 Z M10.738,13.486 L12.738,13.486 L12.738,9.991 L10.738,9.991 L10.738,13.486 Z M9.243,15.108 L21.224,15.108 L21.224,8.369 L9.243,8.369 L9.243,15.108 Z M22.224,6.369 L8.243,6.369 C7.69,6.369 7.243,6.817 7.243,7.369 L7.243,16.108 C7.243,16.661 7.69,17.108 8.243,17.108 L22.224,17.108 C22.777,17.108 23.224,16.661 23.224,16.108 L23.224,7.369 C23.224,6.817 22.777,6.369 22.224,6.369 L22.224,6.369 Z M43.945,39.497 C43.945,41.95 41.95,43.945 39.497,43.945 L8.448,43.945 C5.995,43.945 4,41.95 4,39.497 L4,8.448 C4,5.995 5.995,4 8.448,4 L39.497,4 C41.95,4 43.945,5.995 43.945,8.448 L43.945,39.497 Z M39.497,2 L8.448,2 C4.892,2 2,4.893 2,8.448 L2,39.497 C2,43.053 4.892,45.945 8.448,45.945 L39.497,45.945 C43.053,45.945 45.945,43.053 45.945,39.497 L45.945,8.448 C45.945,4.893 43.053,2 39.497,2 L39.497,2 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["ECR","Elastic Container Registry","registry"], +}; diff --git a/packages/react/src/marks/aws-ecs-service.ts b/packages/react/src/marks/aws-ecs-service.ts new file mode 100644 index 00000000..33a65c8c --- /dev/null +++ b/packages/react/src/marks/aws-ecs-service.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon ECS service is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon ECS service's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "ECS", "Elastic Container Service". */ +export const awsEcsService: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='35.51' height='44.02' viewBox='6 1.99 35.51 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24.933,38.213 L37.674,38.213 L37.674,36.213 L24.933,36.213 L24.933,38.213 Z M24.933,28.303 L37.674,28.303 L37.674,26.303 L24.933,26.303 L24.933,28.303 Z M24.933,18.393 L37.674,18.393 L37.674,16.393 L24.933,16.393 L24.933,18.393 Z M19.561,38.337 L21.808,38.337 L21.808,36.09 L19.561,36.09 L19.561,38.337 Z M18.561,40.337 L22.808,40.337 C23.361,40.337 23.808,39.89 23.808,39.337 L23.808,35.09 C23.808,34.537 23.361,34.09 22.808,34.09 L18.561,34.09 C18.009,34.09 17.561,34.537 17.561,35.09 L17.561,39.337 C17.561,39.89 18.009,40.337 18.561,40.337 L18.561,40.337 Z M19.561,28.427 L21.808,28.427 L21.808,26.18 L19.561,26.18 L19.561,28.427 Z M18.561,30.427 L22.808,30.427 C23.361,30.427 23.808,29.98 23.808,29.427 L23.808,25.18 C23.808,24.627 23.361,24.18 22.808,24.18 L18.561,24.18 C18.009,24.18 17.561,24.627 17.561,25.18 L17.561,29.427 C17.561,29.98 18.009,30.427 18.561,30.427 L18.561,30.427 Z M19.561,18.517 L21.808,18.517 L21.808,16.27 L19.561,16.27 L19.561,18.517 Z M18.561,20.517 L22.808,20.517 C23.361,20.517 23.808,20.07 23.808,19.517 L23.808,15.27 C23.808,14.717 23.361,14.27 22.808,14.27 L18.561,14.27 C18.009,14.27 17.561,14.717 17.561,15.27 L17.561,19.517 C17.561,20.07 18.009,20.517 18.561,20.517 L18.561,20.517 Z M16.023,44 L39.506,44 L39.506,12.022 L16.023,12.022 L16.023,44 Z M14.022,11.023 L14.022,39.753 L11.775,39.753 L11.775,7.776 L35.259,7.776 L35.259,10.023 L15.022,10.023 C14.469,10.023 14.022,10.47 14.022,11.023 L14.022,11.023 Z M9.775,6.776 L9.775,35.978 L8,35.978 L8,4 L31.483,4 L31.483,5.776 L10.775,5.776 C10.222,5.776 9.775,6.223 9.775,6.776 L9.775,6.776 Z M40.506,10.023 L37.259,10.023 L37.259,6.776 C37.259,6.223 36.811,5.776 36.259,5.776 L33.483,5.776 L33.483,3 C33.483,2.448 33.036,2 32.483,2 L7,2 C6.447,2 6,2.448 6,3 L6,36.978 C6,37.531 6.447,37.978 7,37.978 L9.775,37.978 L9.775,40.753 C9.775,41.306 10.222,41.753 10.775,41.753 L14.022,41.753 L14.022,45 C14.022,45.553 14.469,46 15.022,46 L40.506,46 C41.058,46 41.506,45.553 41.506,45 L41.506,11.023 C41.506,10.47 41.058,10.023 40.506,10.023 L40.506,10.023 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["ECS","Elastic Container Service"], +}; diff --git a/packages/react/src/marks/aws-ecs-task.ts b/packages/react/src/marks/aws-ecs-task.ts new file mode 100644 index 00000000..b6c6bbef --- /dev/null +++ b/packages/react/src/marks/aws-ecs-task.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon ECS task is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon ECS task's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "ECS", "task", "Elastic Container Service". */ +export const awsEcsTask: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='33.52' height='44.02' viewBox='6.98 1.99 33.52 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M20.25,36.375 L36,36.375 L36,34.375 L20.25,34.375 L20.25,36.375 Z M20.25,24.125 L36,24.125 L36,22.125 L20.25,22.125 L20.25,24.125 Z M20.25,11.875 L36,11.875 L36,9.875 L20.25,9.875 L20.25,11.875 Z M13.375,37 L16.625,37 L16.625,33.75 L13.375,33.75 L13.375,37 Z M12.375,39 L17.625,39 C18.178,39 18.625,38.553 18.625,38 L18.625,32.75 C18.625,32.198 18.178,31.75 17.625,31.75 L12.375,31.75 C11.822,31.75 11.375,32.198 11.375,32.75 L11.375,38 C11.375,38.553 11.822,39 12.375,39 L12.375,39 Z M13.375,24.75 L16.625,24.75 L16.625,21.5 L13.375,21.5 L13.375,24.75 Z M12.375,26.75 L17.625,26.75 C18.178,26.75 18.625,26.303 18.625,25.75 L18.625,20.5 C18.625,19.948 18.178,19.5 17.625,19.5 L12.375,19.5 C11.822,19.5 11.375,19.948 11.375,20.5 L11.375,25.75 C11.375,26.303 11.822,26.75 12.375,26.75 L12.375,26.75 Z M13.375,12.5 L16.625,12.5 L16.625,9.25 L13.375,9.25 L13.375,12.5 Z M12.375,14.5 L17.625,14.5 C18.178,14.5 18.625,14.053 18.625,13.5 L18.625,8.25 C18.625,7.698 18.178,7.25 17.625,7.25 L12.375,7.25 C11.822,7.25 11.375,7.698 11.375,8.25 L11.375,13.5 C11.375,14.053 11.822,14.5 12.375,14.5 L12.375,14.5 Z M9,44 L38.5,44 L38.5,4 L9,4 L9,44 Z M39.5,2 L8,2 C7.447,2 7,2.448 7,3 L7,45 C7,45.553 7.447,46 8,46 L39.5,46 C40.053,46 40.5,45.553 40.5,45 L40.5,3 C40.5,2.448 40.053,2 39.5,2 L39.5,2 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["ECS","task","Elastic Container Service"], +}; diff --git a/packages/react/src/marks/aws-email.ts b/packages/react/src/marks/aws-email.ts new file mode 100644 index 00000000..43fa61f0 --- /dev/null +++ b/packages/react/src/marks/aws-email.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Email is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Email's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "email", "mail", "SES". */ +export const awsEmail: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='27.24' viewBox='1.99 9.98 44.02 27.24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.4824,23.5332 L44.0004,13.2252 L44.0004,33.9642 L31.4824,23.5332 Z M18.0884,24.8272 L24.0004,29.6952 L29.9114,24.8272 L42.3584,35.2002 L5.6424,35.2002 L18.0884,24.8272 Z M16.5174,23.5332 L4.0004,33.9652 L4.0004,13.2242 L16.5174,23.5332 Z M24.0004,27.1042 L5.6594,12.0002 L42.3404,12.0002 L24.0004,27.1042 Z M2.0004,10.6462 L2.0004,36.5532 C2.0004,36.9102 2.2894,37.2002 2.6464,37.2002 L45.3534,37.2002 C45.7114,37.2002 46.0004,36.9102 46.0004,36.5532 L46.0004,10.6462 C46.0004,10.2892 45.7114,10.0002 45.3534,10.0002 L2.6464,10.0002 C2.2894,10.0002 2.0004,10.2892 2.0004,10.6462 L2.0004,10.6462 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='44.02' height='27.24' viewBox='1.99 9.98 44.02 27.24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.4824,23.5332 L44.0004,13.2252 L44.0004,33.9642 L31.4824,23.5332 Z M18.0884,24.8272 L24.0004,29.6952 L29.9114,24.8272 L42.3584,35.2002 L5.6424,35.2002 L18.0884,24.8272 Z M16.5174,23.5332 L4.0004,33.9652 L4.0004,13.2242 L16.5174,23.5332 Z M24.0004,27.1042 L5.6594,12.0002 L42.3404,12.0002 L24.0004,27.1042 Z M2.0004,10.6462 L2.0004,36.5532 C2.0004,36.9102 2.2894,37.2002 2.6464,37.2002 L45.3534,37.2002 C45.7114,37.2002 46.0004,36.9102 46.0004,36.5532 L46.0004,10.6462 C46.0004,10.2892 45.7114,10.0002 45.3534,10.0002 L2.6464,10.0002 C2.2894,10.0002 2.0004,10.2892 2.0004,10.6462 L2.0004,10.6462 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["email","mail","SES"], +}; diff --git a/packages/react/src/marks/aws-eventbridge-event-bus.ts b/packages/react/src/marks/aws-eventbridge-event-bus.ts new file mode 100644 index 00000000..7a0d5305 --- /dev/null +++ b/packages/react/src/marks/aws-eventbridge-event-bus.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon EventBridge event bus is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon EventBridge event bus's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "EventBridge", "event bus". */ +export const awsEventbridgeEventBus: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='30' viewBox='1.99 9 44.02 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M11.001,39.001 L37.001,39.001 L37.001,37.001 L11.001,37.001 L11.001,39.001 Z M35.88,12.009 L34.153,10.998 L30.544,17.16 L32.271,18.17 L35.88,12.009 Z M42.567,18.594 L36.323,22.147 L37.312,23.885 L43.556,20.332 L42.567,18.594 Z M39.002,28.995 L39,30.995 L46,31.001 L46.002,29.001 L39.002,28.995 Z M2,31.001 L9,31.007 L9.002,29.007 L2.002,29.001 L2,31.001 Z M5.454,18.562 L4.462,20.298 L10.701,23.863 L11.693,22.126 L5.454,18.562 Z M17.48,17.148 L13.882,10.981 L12.153,11.989 L15.751,18.156 L17.48,17.148 Z M25.001,9.002 L23.001,9 L22.994,16 L24.994,16.002 L25.001,9.002 Z M13.095,27.196 L18.114,18.501 C18.293,18.192 18.623,18.001 18.981,18.001 L29.021,18.001 C29.378,18.001 29.708,18.192 29.887,18.501 L34.907,27.196 C35.086,27.505 35.086,27.886 34.907,28.196 L31.071,34.838 L29.339,33.838 L32.887,27.696 L28.443,20.001 L19.558,20.001 L15.115,27.696 L18.662,33.838 L16.93,34.838 L13.095,28.196 C12.916,27.886 12.916,27.505 13.095,27.196 L13.095,27.196 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["EventBridge","event bus"], +}; diff --git a/packages/react/src/marks/aws-git-repository.ts b/packages/react/src/marks/aws-git-repository.ts new file mode 100644 index 00000000..f2e5da36 --- /dev/null +++ b/packages/react/src/marks/aws-git-repository.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Git repository is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Git repository's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Git", "repository", "repo". */ +export const awsGitRepository: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='34.04' height='44.02' viewBox='6.98 1.99 34.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M36.002,44 C34.348,44 33.002,42.654 33.002,41 C33.002,39.346 34.348,38 36.002,38 C37.656,38 39.002,39.346 39.002,41 C39.002,42.654 37.656,44 36.002,44 M12,10 C10.346,10 9,8.654 9,7 C9,5.346 10.346,4 12,4 C13.654,4 15,5.346 15,7 C15,8.654 13.654,10 12,10 M36.002,21.001 C37.656,21.001 39.002,22.347 39.002,24.001 C39.002,25.655 37.656,27.001 36.002,27.001 C34.348,27.001 33.002,25.655 33.002,24.001 C33.002,22.347 34.348,21.001 36.002,21.001 M36.002,36 C33.587,36 31.567,37.721 31.103,40.001 L26.001,40.001 C25.338,40.001 25.001,39.685 25.001,39.062 L25.001,25.001 L31.103,25.001 C31.568,27.28 33.588,29.001 36.002,29.001 C38.759,29.001 41.002,26.758 41.002,24.001 C41.002,21.244 38.759,19.001 36.002,19.001 C33.588,19.001 31.568,20.722 31.103,23.001 L25.001,23.001 L25.001,8.938 C25.001,7.208 23.768,5.999 22.001,5.999 L16.899,5.999 C16.434,3.72 14.414,2 12,2 C9.243,2 7,4.243 7,7 C7,9.757 9.243,12 12,12 C14.415,12 16.435,10.279 16.899,7.999 L22.001,7.999 C22.674,7.999 23.001,8.306 23.001,8.938 L23.001,39.062 C23.001,40.792 24.234,42.001 26.001,42.001 L31.103,42.001 C31.568,44.28 33.588,46 36.002,46 C38.759,46 41.002,43.757 41.002,41 C41.002,38.243 38.759,36 36.002,36' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='34.04' height='44.02' viewBox='6.98 1.99 34.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M36.002,44 C34.348,44 33.002,42.654 33.002,41 C33.002,39.346 34.348,38 36.002,38 C37.656,38 39.002,39.346 39.002,41 C39.002,42.654 37.656,44 36.002,44 M12,10 C10.346,10 9,8.654 9,7 C9,5.346 10.346,4 12,4 C13.654,4 15,5.346 15,7 C15,8.654 13.654,10 12,10 M36.002,21.001 C37.656,21.001 39.002,22.347 39.002,24.001 C39.002,25.655 37.656,27.001 36.002,27.001 C34.348,27.001 33.002,25.655 33.002,24.001 C33.002,22.347 34.348,21.001 36.002,21.001 M36.002,36 C33.587,36 31.567,37.721 31.103,40.001 L26.001,40.001 C25.338,40.001 25.001,39.685 25.001,39.062 L25.001,25.001 L31.103,25.001 C31.568,27.28 33.588,29.001 36.002,29.001 C38.759,29.001 41.002,26.758 41.002,24.001 C41.002,21.244 38.759,19.001 36.002,19.001 C33.588,19.001 31.568,20.722 31.103,23.001 L25.001,23.001 L25.001,8.938 C25.001,7.208 23.768,5.999 22.001,5.999 L16.899,5.999 C16.434,3.72 14.414,2 12,2 C9.243,2 7,4.243 7,7 C7,9.757 9.243,12 12,12 C14.415,12 16.435,10.279 16.899,7.999 L22.001,7.999 C22.674,7.999 23.001,8.306 23.001,8.938 L23.001,39.062 C23.001,40.792 24.234,42.001 26.001,42.001 L31.103,42.001 C31.568,44.28 33.588,46 36.002,46 C38.759,46 41.002,43.757 41.002,41 C41.002,38.243 38.759,36 36.002,36' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["Git","repository","repo"], +}; diff --git a/packages/react/src/marks/aws-iam-role.ts b/packages/react/src/marks/aws-iam-role.ts new file mode 100644 index 00000000..da634327 --- /dev/null +++ b/packages/react/src/marks/aws-iam-role.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// AWS IAM role is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** AWS IAM role's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "IAM", "role". */ +export const awsIamRole: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.12' height='25.44' viewBox='1.99 10.99 44.12 25.44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M44.0827,32.581 C43.9267,32.592 43.7697,32.604 43.6207,32.619 C43.0987,32.662 42.5527,32.714 42.0007,32.772 L41.8327,32.79 C40.0677,32.972 38.0697,33.177 37.1187,33.047 C36.5247,32.962 35.4307,32.487 34.2707,31.984 C32.3047,31.132 29.8567,30.07 27.6437,29.9 C24.5977,29.666 19.3347,30.24 15.9407,31.831 C13.9787,31.743 12.1587,31.215 10.7447,30.343 C10.7387,30.071 10.7327,29.799 10.7327,29.694 C10.7327,25.558 12.6707,21.679 16.0527,19.044 C18.3497,17.701 20.9967,16.992 23.7127,16.992 C29.8337,16.992 35.2657,20.609 37.3847,25.934 L36.5717,25.934 C35.7577,25.934 35.0757,26.51 34.9087,27.274 C34.7707,27.222 34.6447,27.175 34.4967,27.118 C32.4677,26.335 29.6837,25.264 26.4657,25.455 C21.7607,25.731 19.4457,26.015 17.6227,26.535 L18.1717,28.459 C19.8397,27.982 22.0397,27.719 26.5827,27.451 C29.3667,27.293 31.9197,28.269 33.7767,28.984 C34.1717,29.137 34.5287,29.27 34.8677,29.391 L34.8677,29.596 C34.8677,30.535 35.6327,31.3 36.5717,31.3 L40.2187,31.3 C41.1557,31.3 41.9197,30.538 41.9227,29.602 L42.2767,29.57 C42.8697,29.517 43.4147,29.464 43.8717,29.419 L44.0827,29.398 L44.0827,32.581 Z M9.7987,34.249 C7.1487,34.612 5.0567,34.288 4.1907,33.753 C4.7157,33.382 5.9007,32.863 6.7347,32.499 C7.4567,32.184 8.1877,31.851 8.8947,31.495 C10.0487,32.374 11.4777,33.033 13.0597,33.426 C12.1447,33.794 11.0117,34.084 9.7987,34.249 L9.7987,34.249 Z M36.8677,29.3 L39.9227,29.3 L39.9227,27.934 L36.8677,27.934 L36.8677,29.3 Z M26.5857,13 C34.9537,13 41.9817,19.295 43.0167,27.492 C42.7287,27.52 42.4247,27.549 42.1037,27.578 L41.9187,27.594 C41.8947,26.676 41.1437,25.934 40.2187,25.934 L39.5077,25.934 C37.3067,19.457 30.9317,14.992 23.7127,14.992 C21.0387,14.992 18.4227,15.604 16.0717,16.767 C16.0887,16.753 16.1027,16.738 16.1177,16.725 C19.0587,14.323 22.7757,13 26.5857,13 L26.5857,13 Z M45.5267,27.794 C45.3817,27.663 45.2107,27.568 45.0287,27.496 C43.9827,18.185 36.0497,11 26.5857,11 C22.3167,11 18.1497,12.483 14.8537,15.175 C10.5007,18.719 8.0047,23.97 8.0047,29.581 C8.0047,29.622 8.0077,29.663 8.0077,29.704 C7.3407,30.039 6.6357,30.359 5.9347,30.666 C3.7987,31.6 2.2557,32.274 2.0257,33.492 C1.9677,33.801 1.9577,34.406 2.5457,34.994 C3.5827,36.031 5.5727,36.403 7.5947,36.403 C8.4367,36.403 9.2827,36.339 10.0687,36.231 C11.4077,36.049 13.9077,35.558 15.6047,34.316 C18.2827,32.375 24.3377,31.649 27.4907,31.894 C29.3697,32.039 31.6457,33.026 33.4757,33.819 C34.8717,34.426 35.9757,34.904 36.8417,35.027 C38.0327,35.19 39.9777,34.99 42.0367,34.779 L42.2097,34.762 C42.7477,34.704 43.2777,34.654 43.8017,34.611 C44.0167,34.59 44.2297,34.575 44.5137,34.555 C45.3937,34.493 46.0827,33.755 46.0827,32.875 L46.0827,29.046 C46.0827,28.568 45.8807,28.112 45.5267,27.794 L45.5267,27.794 Z' fill='%23DD344C'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["IAM","role"], +}; diff --git a/packages/react/src/marks/aws-internet-gateway.ts b/packages/react/src/marks/aws-internet-gateway.ts new file mode 100644 index 00000000..c1811897 --- /dev/null +++ b/packages/react/src/marks/aws-internet-gateway.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon VPC internet gateway is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon VPC internet gateway's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "internet gateway", "IGW". */ +export const awsInternetGateway: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='43.93' height='43.93' viewBox='1.99 1.99 43.93 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.4312,35.1778 L31.9332,35.1778 L31.9332,17.5018 C31.9332,17.1088 31.7022,16.7518 31.3442,16.5908 L31.2522,16.5488 C29.2432,15.6418 27.1642,14.7028 24.1762,14.7028 C21.0532,14.7028 18.7612,15.7118 16.4952,16.8368 C16.1552,17.0058 15.9402,17.3528 15.9402,17.7328 L15.9402,35.1778 L14.4772,35.1778 L14.4772,16.3118 C16.9112,14.3328 20.4202,13.2048 24.1862,13.2048 C27.6872,13.2048 31.0252,14.2018 33.4312,15.9528 L33.4312,35.1778 Z M24.1862,11.2048 C19.7612,11.2048 15.6172,12.6238 12.8152,15.0998 C12.6002,15.2888 12.4772,15.5618 12.4772,15.8488 L12.4772,36.1778 C12.4772,36.7308 12.9242,37.1778 13.4772,37.1778 L16.9402,37.1778 C17.4932,37.1778 17.9402,36.7308 17.9402,36.1778 L17.9402,18.3558 C19.8592,17.4288 21.7192,16.7028 24.1762,16.7028 C26.5112,16.7028 28.2092,17.3778 29.9332,18.1488 L29.9332,36.1778 C29.9332,36.7308 30.3802,37.1778 30.9332,37.1778 L34.4312,37.1778 C34.9842,37.1778 35.4312,36.7308 35.4312,36.1778 L35.4312,15.4578 C35.4312,15.1538 35.2922,14.8658 35.0532,14.6748 C32.2792,12.4698 28.3182,11.2048 24.1862,11.2048 L24.1862,11.2048 Z M23.9542,43.9088 C12.9522,43.9088 3.9992,34.9568 3.9992,23.9538 C3.9992,12.9508 12.9522,3.9998 23.9542,3.9998 C34.9572,3.9998 43.9092,12.9508 43.9092,23.9538 C43.9092,34.9568 34.9572,43.9088 23.9542,43.9088 L23.9542,43.9088 Z M23.9542,1.9998 C11.8482,1.9998 1.9992,11.8488 1.9992,23.9538 C1.9992,36.0608 11.8482,45.9088 23.9542,45.9088 C36.0602,45.9088 45.9092,36.0608 45.9092,23.9538 C45.9092,11.8488 36.0602,1.9998 23.9542,1.9998 L23.9542,1.9998 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["internet gateway","IGW"], +}; diff --git a/packages/react/src/marks/aws-internet.ts b/packages/react/src/marks/aws-internet.ts new file mode 100644 index 00000000..47985ec6 --- /dev/null +++ b/packages/react/src/marks/aws-internet.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Internet is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Internet's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "internet", "web". */ +export const awsInternet: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.05' height='27.62' viewBox='1.99 9.98 44.05 27.62' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M34.59,29.7893333 L30.997,33.3813333 L30.997,21.7593333 L28.997,21.7593333 L28.997,33.2703333 L25.556,29.7733333 L24.13,31.1763333 L29.325,36.4553333 C29.513,36.6453333 29.768,36.7533333 30.034,36.7543333 L30.038,36.7543333 C30.303,36.7543333 30.558,36.6483333 30.745,36.4613333 L36.004,31.2033333 L34.59,29.7893333 Z M22.35,27.7243333 L23.764,26.3103333 L18.506,21.0523333 C18.319,20.8643333 18.065,20.7593333 17.799,20.7593333 L17.795,20.7593333 C17.528,20.7603333 17.274,20.8673333 17.086,21.0583333 L11.89,26.3363333 L13.316,27.7383333 L16.757,24.2433333 L16.757,37.5543333 L18.757,37.5543333 L18.757,24.1313333 L22.35,27.7243333 Z M20.333,37.5723333 L27.4,37.5793333 L27.402,35.5793333 L20.335,35.5723333 L20.333,37.5723333 Z M46.026,29.1303333 C46.026,31.6173333 45.272,33.6283333 43.783,35.1053333 C41.332,37.5403333 37.776,37.5903333 37.496,37.5903333 L37.484,37.5903333 L32.721,37.5853333 L32.723,35.5853333 L37.491,35.5903333 C37.531,35.5903333 40.489,35.5693333 42.385,33.6763333 C43.474,32.5883333 44.026,31.0593333 44.026,29.1303333 C44.026,27.9483333 43.701,26.1793333 40.896,24.4603333 C39.422,23.5573333 38.041,23.2593333 37.517,23.1743333 C36.986,23.0873333 36.622,22.5993333 36.685,22.0693333 C36.507,19.9743333 35.526,18.5083333 33.982,18.0403333 C32.647,17.6363333 31.218,18.1083333 30.337,19.2443333 C30.116,19.5313333 29.763,19.6773333 29.396,19.6203333 C29.036,19.5653333 28.736,19.3203333 28.61,18.9793333 C27.992,17.3143333 27.099,15.9173333 25.955,14.8233333 C24.545,13.4753333 20.675,10.5743333 15.204,12.7843333 C12.069,14.0513333 9.611,17.6893333 9.611,21.0673333 C9.611,21.4443333 9.635,21.8223333 9.682,22.1893333 C9.743,22.6733333 9.446,23.1313333 8.981,23.2723333 C8.943,23.2843333 8.903,23.2933333 8.865,23.3003333 C7.02,23.7643333 4,25.1573333 4,29.2983333 C4,32.4433333 5.799,34.1823333 7.308,35.0873333 C7.823,35.3963333 8.419,35.5603333 9.029,35.5613333 L15.181,35.5673333 L15.179,37.5673333 L9.028,37.5613333 C8.055,37.5603333 7.104,37.2983333 6.278,36.8023333 C4.681,35.8443333 2,33.5953333 2,29.2983333 C2,25.5833333 4.084,22.7513333 7.623,21.5793333 C7.615,21.4093333 7.611,21.2383333 7.611,21.0673333 C7.611,16.8633333 10.554,12.5053333 14.456,10.9303333 C19.001,9.09333332 23.817,10.0113333 27.338,13.3783333 C28.37,14.3643333 29.228,15.5503333 29.897,16.9143333 C31.234,15.9453333 32.938,15.6373333 34.562,16.1263333 C36.751,16.7903333 38.234,18.7233333 38.615,21.3603333 C39.748,21.6423333 40.925,22.1323333 41.941,22.7553333 C44.69,24.4383333 46.026,26.5243333 46.026,29.1303333 L46.026,29.1303333 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='44.05' height='27.62' viewBox='1.99 9.98 44.05 27.62' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M34.59,29.7893333 L30.997,33.3813333 L30.997,21.7593333 L28.997,21.7593333 L28.997,33.2703333 L25.556,29.7733333 L24.13,31.1763333 L29.325,36.4553333 C29.513,36.6453333 29.768,36.7533333 30.034,36.7543333 L30.038,36.7543333 C30.303,36.7543333 30.558,36.6483333 30.745,36.4613333 L36.004,31.2033333 L34.59,29.7893333 Z M22.35,27.7243333 L23.764,26.3103333 L18.506,21.0523333 C18.319,20.8643333 18.065,20.7593333 17.799,20.7593333 L17.795,20.7593333 C17.528,20.7603333 17.274,20.8673333 17.086,21.0583333 L11.89,26.3363333 L13.316,27.7383333 L16.757,24.2433333 L16.757,37.5543333 L18.757,37.5543333 L18.757,24.1313333 L22.35,27.7243333 Z M20.333,37.5723333 L27.4,37.5793333 L27.402,35.5793333 L20.335,35.5723333 L20.333,37.5723333 Z M46.026,29.1303333 C46.026,31.6173333 45.272,33.6283333 43.783,35.1053333 C41.332,37.5403333 37.776,37.5903333 37.496,37.5903333 L37.484,37.5903333 L32.721,37.5853333 L32.723,35.5853333 L37.491,35.5903333 C37.531,35.5903333 40.489,35.5693333 42.385,33.6763333 C43.474,32.5883333 44.026,31.0593333 44.026,29.1303333 C44.026,27.9483333 43.701,26.1793333 40.896,24.4603333 C39.422,23.5573333 38.041,23.2593333 37.517,23.1743333 C36.986,23.0873333 36.622,22.5993333 36.685,22.0693333 C36.507,19.9743333 35.526,18.5083333 33.982,18.0403333 C32.647,17.6363333 31.218,18.1083333 30.337,19.2443333 C30.116,19.5313333 29.763,19.6773333 29.396,19.6203333 C29.036,19.5653333 28.736,19.3203333 28.61,18.9793333 C27.992,17.3143333 27.099,15.9173333 25.955,14.8233333 C24.545,13.4753333 20.675,10.5743333 15.204,12.7843333 C12.069,14.0513333 9.611,17.6893333 9.611,21.0673333 C9.611,21.4443333 9.635,21.8223333 9.682,22.1893333 C9.743,22.6733333 9.446,23.1313333 8.981,23.2723333 C8.943,23.2843333 8.903,23.2933333 8.865,23.3003333 C7.02,23.7643333 4,25.1573333 4,29.2983333 C4,32.4433333 5.799,34.1823333 7.308,35.0873333 C7.823,35.3963333 8.419,35.5603333 9.029,35.5613333 L15.181,35.5673333 L15.179,37.5673333 L9.028,37.5613333 C8.055,37.5603333 7.104,37.2983333 6.278,36.8023333 C4.681,35.8443333 2,33.5953333 2,29.2983333 C2,25.5833333 4.084,22.7513333 7.623,21.5793333 C7.615,21.4093333 7.611,21.2383333 7.611,21.0673333 C7.611,16.8633333 10.554,12.5053333 14.456,10.9303333 C19.001,9.09333332 23.817,10.0113333 27.338,13.3783333 C28.37,14.3643333 29.228,15.5503333 29.897,16.9143333 C31.234,15.9453333 32.938,15.6373333 34.562,16.1263333 C36.751,16.7903333 38.234,18.7233333 38.615,21.3603333 C39.748,21.6423333 40.925,22.1323333 41.941,22.7553333 C44.69,24.4383333 46.026,26.5243333 46.026,29.1303333 L46.026,29.1303333 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["internet","web"], +}; diff --git a/packages/react/src/marks/aws-lambda-function.ts b/packages/react/src/marks/aws-lambda-function.ts new file mode 100644 index 00000000..5bf8aaef --- /dev/null +++ b/packages/react/src/marks/aws-lambda-function.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// AWS Lambda function is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** AWS Lambda function's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Lambda". */ +export const awsLambdaFunction: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24,44 C12.972,44 4,35.028 4,24 C4,12.972 12.972,4 24,4 C35.028,4 44,12.972 44,24 C44,35.028 35.028,44 24,44 L24,44 Z M24,2 C11.869,2 2,11.869 2,24 C2,36.131 11.869,46 24,46 C36.131,46 46,36.131 46,24 C46,11.869 36.131,2 24,2 L24,2 Z M17.231,35.25 L11.876,35.25 L18.221,21.959 L20.902,27.492 L17.231,35.25 Z M19.114,19.215 C18.946,18.87 18.597,18.651 18.214,18.651 L18.211,18.651 C17.826,18.652 17.477,18.874 17.312,19.221 L9.389,35.819 C9.24,36.129 9.262,36.493 9.445,36.783 C9.628,37.074 9.947,37.25 10.291,37.25 L17.864,37.25 C18.251,37.25 18.603,37.027 18.769,36.678 L22.915,27.915 C23.044,27.642 23.043,27.323 22.911,27.051 L19.114,19.215 Z M36.125,35.25 L30.673,35.25 L20.761,13.953 C20.597,13.601 20.243,13.375 19.854,13.375 L16.251,13.375 L16.255,9.25 L23.475,9.25 L33.339,30.545 C33.503,30.898 33.856,31.125 34.246,31.125 L36.125,31.125 L36.125,35.25 Z M37.125,29.125 L34.885,29.125 L25.021,7.83 C24.856,7.477 24.503,7.25 24.113,7.25 L15.256,7.25 C14.704,7.25 14.257,7.697 14.256,8.249 L14.25,14.374 C14.25,14.64 14.355,14.894 14.543,15.082 C14.73,15.27 14.984,15.375 15.25,15.375 L19.217,15.375 L29.129,36.672 C29.293,37.024 29.646,37.25 30.035,37.25 L37.125,37.25 C37.678,37.25 38.125,36.803 38.125,36.25 L38.125,30.125 C38.125,29.572 37.678,29.125 37.125,29.125 L37.125,29.125 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["Lambda"], +}; diff --git a/packages/react/src/marks/aws-mobile-client.ts b/packages/react/src/marks/aws-mobile-client.ts new file mode 100644 index 00000000..336a940a --- /dev/null +++ b/packages/react/src/marks/aws-mobile-client.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Mobile client is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Mobile client's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "mobile", "phone", "client". */ +export const awsMobileClient: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='24.03' height='43.86' viewBox='11.97 1.99 24.03 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M19.603,6.109 C19.773,6.109 19.911,6.247 19.911,6.417 C19.911,6.586 19.773,6.724 19.603,6.724 C19.433,6.724 19.295,6.586 19.295,6.417 C19.295,6.247 19.433,6.109 19.603,6.109 L19.603,6.109 Z M19.603,8.224 C20.6,8.224 21.411,7.413 21.411,6.417 C21.411,5.42 20.6,4.609 19.603,4.609 C18.606,4.609 17.795,5.42 17.795,6.417 C17.795,7.413 18.606,8.224 19.603,8.224 L19.603,8.224 Z M23.012,7.401 L28.374,7.401 L28.374,5.401 L23.012,5.401 L23.012,7.401 Z M32.173,43.826 L15.812,43.826 C14.813,43.826 14,43.029 14,42.05 L14,40.641 L33.986,40.641 L33.986,42.05 C33.986,43.029 33.172,43.826 32.173,43.826 L32.173,43.826 Z M14,10.802 L33.986,10.802 L33.986,38.641 L14,38.641 L14,28.943 L14,10.802 Z M16.646,4 L31.339,4 C32.798,4 33.986,5.167 33.986,6.6 L33.986,8.802 L14,8.802 L14,6.6 C14,5.167 15.187,4 16.646,4 L16.646,4 Z M31.354,2 L31.339,2 L16.646,2 C14.084,2 12,4.064 12,6.6 L12,42.05 C12,44.132 13.71,45.826 15.812,45.826 L32.173,45.826 C34.276,45.826 35.986,44.132 35.986,42.05 L35.986,6.6 L35.986,6.597 C35.986,4.067 33.91,2.008 31.354,2 L31.354,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='24.03' height='43.86' viewBox='11.97 1.99 24.03 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M19.603,6.109 C19.773,6.109 19.911,6.247 19.911,6.417 C19.911,6.586 19.773,6.724 19.603,6.724 C19.433,6.724 19.295,6.586 19.295,6.417 C19.295,6.247 19.433,6.109 19.603,6.109 L19.603,6.109 Z M19.603,8.224 C20.6,8.224 21.411,7.413 21.411,6.417 C21.411,5.42 20.6,4.609 19.603,4.609 C18.606,4.609 17.795,5.42 17.795,6.417 C17.795,7.413 18.606,8.224 19.603,8.224 L19.603,8.224 Z M23.012,7.401 L28.374,7.401 L28.374,5.401 L23.012,5.401 L23.012,7.401 Z M32.173,43.826 L15.812,43.826 C14.813,43.826 14,43.029 14,42.05 L14,40.641 L33.986,40.641 L33.986,42.05 C33.986,43.029 33.172,43.826 32.173,43.826 L32.173,43.826 Z M14,10.802 L33.986,10.802 L33.986,38.641 L14,38.641 L14,28.943 L14,10.802 Z M16.646,4 L31.339,4 C32.798,4 33.986,5.167 33.986,6.6 L33.986,8.802 L14,8.802 L14,6.6 C14,5.167 15.187,4 16.646,4 L16.646,4 Z M31.354,2 L31.339,2 L16.646,2 C14.084,2 12,4.064 12,6.6 L12,42.05 C12,44.132 13.71,45.826 15.812,45.826 L32.173,45.826 C34.276,45.826 35.986,44.132 35.986,42.05 L35.986,6.6 L35.986,6.597 C35.986,4.067 33.91,2.008 31.354,2 L31.354,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["mobile","phone","client"], +}; diff --git a/packages/react/src/marks/aws-nat-gateway.ts b/packages/react/src/marks/aws-nat-gateway.ts new file mode 100644 index 00000000..32859199 --- /dev/null +++ b/packages/react/src/marks/aws-nat-gateway.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon VPC NAT gateway is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon VPC NAT gateway's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "NAT gateway", "NAT". */ +export const awsNatGateway: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M13.6255,35.9209 L13.6255,33.0829 L15.3995,34.5019 L13.6255,35.9209 Z M13.2505,30.2209 C12.9495,29.9799 12.5365,29.9329 12.1915,30.1009 C11.8465,30.2679 11.6255,30.6169 11.6255,31.0019 L11.6255,38.0019 C11.6255,38.3869 11.8465,38.7359 12.1915,38.9029 C12.3305,38.9699 12.4785,39.0019 12.6255,39.0019 C12.8485,39.0019 13.0695,38.9279 13.2505,38.7829 L17.6255,35.2829 C17.8625,35.0929 18.0005,34.8059 18.0005,34.5019 C18.0005,34.1979 17.8625,33.9109 17.6255,33.7209 L13.2505,30.2209 Z M37.2515,26.8369 L37.2515,22.9149 L39.2125,24.8759 L37.2515,26.8369 Z M41.3335,24.1689 L36.9585,19.7939 C36.6725,19.5079 36.2445,19.4219 35.8685,19.5769 C35.4945,19.7319 35.2515,20.0969 35.2515,20.5009 L35.2515,23.8759 L27.6255,23.8759 L27.6255,14.3759 C27.6255,13.8229 27.1785,13.3759 26.6255,13.3759 L18.9315,13.3759 L18.9315,15.3759 L25.6255,15.3759 L25.6255,23.8759 L18.7505,23.8759 L18.7505,25.8759 L25.6255,25.8759 L25.6255,34.3769 L18.9315,34.3769 L18.9315,36.3769 L26.6255,36.3769 C27.1785,36.3769 27.6255,35.9299 27.6255,35.3769 L27.6255,25.8759 L35.2515,25.8759 L35.2515,29.2519 C35.2515,29.6559 35.4955,30.0219 35.8685,30.1759 C35.9925,30.2279 36.1225,30.2519 36.2515,30.2519 C36.5115,30.2519 36.7675,30.1499 36.9585,29.9589 L41.3335,25.5829 C41.7245,25.1919 41.7245,24.5599 41.3335,24.1689 L41.3335,24.1689 Z M13.6255,26.2959 L13.6255,23.4569 L15.3995,24.8759 L13.6255,26.2959 Z M13.2505,20.5949 C12.9495,20.3539 12.5365,20.3079 12.1915,20.4749 C11.8465,20.6419 11.6255,20.9909 11.6255,21.3759 L11.6255,28.3769 C11.6255,28.7619 11.8465,29.1109 12.1915,29.2779 C12.3305,29.3449 12.4785,29.3769 12.6255,29.3769 C12.8485,29.3769 13.0695,29.3029 13.2505,29.1579 L17.6255,25.6569 C17.8625,25.4669 18.0005,25.1799 18.0005,24.8759 C18.0005,24.5719 17.8625,24.2849 17.6255,24.0949 L13.2505,20.5949 Z M13.6255,15.7949 L13.6255,12.9569 L15.3995,14.3759 L13.6255,15.7949 Z M13.2505,10.0949 C12.9495,9.8539 12.5365,9.8069 12.1915,9.9749 C11.8465,10.1419 11.6255,10.4909 11.6255,10.8759 L11.6255,17.8759 C11.6255,18.2609 11.8465,18.6099 12.1915,18.7769 C12.3305,18.8439 12.4785,18.8759 12.6255,18.8759 C12.8485,18.8759 13.0695,18.8019 13.2505,18.6569 L17.6255,15.1569 C17.8625,14.9669 18.0005,14.6799 18.0005,14.3759 C18.0005,14.0719 17.8625,13.7849 17.6255,13.5949 L13.2505,10.0949 Z M24.0005,44.0029 C12.9725,44.0029 3.9995,35.0299 3.9995,24.0009 C3.9995,12.9729 12.9725,3.9999 24.0005,3.9999 C35.0295,3.9999 44.0025,12.9729 44.0025,24.0009 C44.0025,35.0299 35.0295,44.0029 24.0005,44.0029 L24.0005,44.0029 Z M24.0005,1.9999 C11.8685,1.9999 1.9995,11.8689 1.9995,24.0009 C1.9995,36.1329 11.8685,46.0029 24.0005,46.0029 C36.1325,46.0029 46.0025,36.1329 46.0025,24.0009 C46.0025,11.8689 36.1325,1.9999 24.0005,1.9999 L24.0005,1.9999 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["NAT gateway","NAT"], +}; diff --git a/packages/react/src/marks/aws-network-load-balancer.ts b/packages/react/src/marks/aws-network-load-balancer.ts new file mode 100644 index 00000000..aecb2528 --- /dev/null +++ b/packages/react/src/marks/aws-network-load-balancer.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Network Load Balancer is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Network Load Balancer's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "NLB", "Network Load Balancer", "load balancer". */ +export const awsNetworkLoadBalancer: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24.0015,44.0029 C12.9725,44.0029 3.9995,35.0299 3.9995,24.0009 C3.9995,12.9729 12.9725,3.9999 24.0015,3.9999 C35.0295,3.9999 44.0025,12.9729 44.0025,24.0009 C44.0025,35.0299 35.0295,44.0029 24.0015,44.0029 L24.0015,44.0029 Z M24.0015,1.9999 C11.8695,1.9999 1.9995,11.8689 1.9995,24.0009 C1.9995,36.1329 11.8695,46.0029 24.0015,46.0029 C36.1335,46.0029 46.0025,36.1329 46.0025,24.0009 C46.0025,11.8689 36.1335,1.9999 24.0015,1.9999 L24.0015,1.9999 Z M29.0835,23.2939 C29.4745,23.6849 29.4745,24.3169 29.0835,24.7079 L26.1405,27.6539 L24.7265,26.2399 L25.9645,25.0009 L18.7505,25.0009 L18.7505,23.0009 L25.9645,23.0009 L24.7265,21.7619 L26.1405,20.3479 L29.0835,23.2939 Z M32.0015,35.2519 L35.2515,35.2519 L35.2515,32.0019 L32.0015,32.0019 L32.0015,35.2519 Z M36.2515,30.0019 L31.0015,30.0019 C30.4485,30.0019 30.0015,30.4489 30.0015,31.0019 L30.0015,36.2519 C30.0015,36.8049 30.4485,37.2519 31.0015,37.2519 L36.2515,37.2519 C36.8045,37.2519 37.2515,36.8049 37.2515,36.2519 L37.2515,31.0019 C37.2515,30.4489 36.8045,30.0019 36.2515,30.0019 L36.2515,30.0019 Z M17.6665,18.7409 L24.9615,14.8909 L23.3945,14.4659 L23.9175,12.5359 L27.9365,13.6249 C28.4695,13.7699 28.7835,14.3179 28.6395,14.8519 L27.5505,18.8729 L25.6205,18.3499 L26.1085,16.5469 L18.6005,20.5109 L17.6665,18.7409 Z M32.0015,16.0009 L35.2515,16.0009 L35.2515,12.7509 L32.0015,12.7509 L32.0015,16.0009 Z M36.2515,10.7509 L31.0015,10.7509 C30.4485,10.7509 30.0015,11.1979 30.0015,11.7509 L30.0015,17.0009 C30.0015,17.5539 30.4485,18.0009 31.0015,18.0009 L36.2515,18.0009 C36.8045,18.0009 37.2515,17.5539 37.2515,17.0009 L37.2515,11.7509 C37.2515,11.1979 36.8045,10.7509 36.2515,10.7509 L36.2515,10.7509 Z M8.3455,27.3469 L15.0355,27.3469 L15.0355,20.6569 L8.3455,20.6569 L8.3455,27.3469 Z M16.0355,18.6559 L7.3455,18.6559 C6.7925,18.6559 6.3455,19.1039 6.3455,19.6559 L6.3455,28.3469 C6.3455,28.8989 6.7925,29.3469 7.3455,29.3469 L16.0355,29.3469 C16.5885,29.3469 17.0355,28.8989 17.0355,28.3469 L17.0355,19.6559 C17.0355,19.1039 16.5885,18.6559 16.0355,18.6559 L16.0355,18.6559 Z M28.6395,33.1499 C28.7835,33.6839 28.4695,34.2319 27.9365,34.3769 L23.9175,35.4669 L23.3945,33.5369 L24.9625,33.1119 L17.6665,29.2619 L18.6005,27.4919 L26.1085,31.4549 L25.6205,29.6519 L27.5505,29.1289 L28.6395,33.1499 Z M32.0015,25.6259 L35.2515,25.6259 L35.2515,22.3759 L32.0015,22.3759 L32.0015,25.6259 Z M36.2515,20.3759 L31.0015,20.3759 C30.4485,20.3759 30.0015,20.8229 30.0015,21.3759 L30.0015,26.6259 C30.0015,27.1789 30.4485,27.6259 31.0015,27.6259 L36.2515,27.6259 C36.8045,27.6259 37.2515,27.1789 37.2515,26.6259 L37.2515,21.3759 C37.2515,20.8229 36.8045,20.3759 36.2515,20.3759 L36.2515,20.3759 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["NLB","Network Load Balancer","load balancer"], +}; diff --git a/packages/react/src/marks/aws-parameter-store.ts b/packages/react/src/marks/aws-parameter-store.ts new file mode 100644 index 00000000..8f6168a8 --- /dev/null +++ b/packages/react/src/marks/aws-parameter-store.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// AWS Systems Manager Parameter Store is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** AWS Systems Manager Parameter Store's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Parameter Store", "Systems Manager", "SSM". */ +export const awsParameterStore: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='42.12' height='43.86' viewBox='3 1.99 42.12 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M35.5886,36.7588 C35.5886,37.1338 35.8946,37.4408 36.2696,37.4408 L36.2706,37.4408 C36.4516,37.4408 36.6226,37.3698 36.7506,37.2418 C36.8796,37.1128 36.9506,36.9418 36.9506,36.7588 L36.9506,36.7568 C36.9506,36.5758 36.8806,36.4048 36.7526,36.2778 C36.6236,36.1488 36.4526,36.0768 36.2706,36.0768 L36.2696,36.0768 C36.0876,36.0768 35.9166,36.1478 35.7886,36.2768 C35.6596,36.4048 35.5886,36.5758 35.5886,36.7588 L35.5886,36.7588 Z M33.5886,36.7578 C33.5896,36.0408 33.8686,35.3678 34.3746,34.8618 C34.8806,34.3558 35.5536,34.0768 36.2686,34.0768 L36.2716,34.0768 C36.9876,34.0768 37.6616,34.3568 38.1686,34.8638 C38.6746,35.3718 38.9526,36.0448 38.9506107,36.7608 C38.9496,37.4778 38.6706,38.1508 38.1646,38.6558 C37.9046,38.9158 37.6006,39.1128 37.2696,39.2458 L37.2706,42.0428 L35.2706,42.0428 L35.2696,39.2428 C34.2856,38.8458 33.5886,37.8828 33.5886,36.7578 L33.5886,36.7578 Z M43.1156,32.7748 L29.4286,32.7688 L29.4246,43.8378 L43.1096,43.8448 L43.1156,32.7748 Z M32.9016,30.7708 L39.614618,30.7728 L39.614618,28.3028 C39.6206,26.2818 38.1276,24.6358 36.2866,24.6298 L36.2756,24.6298 C35.3936,24.6298 34.5606,24.9978 33.9276,25.6658 C33.2766,26.3548 32.9166,27.2758 32.9136,28.2598 L32.9016,30.7708 Z M45.1156,31.7748 L45.1096,44.8448 C45.1096,45.3978 44.6616,45.8448 44.1096,45.8448 L28.4246,45.8378 C27.8716,45.8378 27.4246,45.3898 27.4246,44.8378 L27.4286,31.7688 C27.4286,31.5028 27.5336,31.2488 27.7216,31.0618 C27.9086,30.8738 28.1636,30.7688 28.4286,30.7688 L30.9016,30.7698 L30.9136,28.2518 C30.9186,26.7588 31.4726,25.3518 32.4746,24.2918 C33.4886,23.2198 34.8386,22.6298 36.2756,22.6298 L36.2926,22.6298 C39.2366,22.6398 41.6246,25.1858 41.6146,28.3058 L41.6146,30.7738 L44.1156,30.7748 C44.3816,30.7748 44.6356,30.8798 44.8226,31.0678 C45.0106,31.2548 45.1156,31.5098 45.1156,31.7748 L45.1156,31.7748 Z M14.4756,31.0248 L21.4496,31.0248 L21.4496,29.0248 L14.4756,29.0248 L14.4756,31.0248 Z M14.4756,27.5378 L21.4496,27.5378 L21.4496,25.5378 L14.4756,25.5378 L14.4756,27.5378 Z M14.4756,24.0508 L21.4496,24.0508 L21.4496,22.0508 L14.4756,22.0508 L14.4756,24.0508 Z M12.9056,33.3838 L23.1096,33.3838 L23.1096,19.6928 L12.9056,19.6928 L12.9056,33.3838 Z M25.1096,18.6928 L25.1096,34.3838 C25.1096,34.9368 24.6626,35.3838 24.1096,35.3838 L11.9056,35.3838 C11.3536,35.3838 10.9056,34.9368 10.9056,34.3838 L10.9056,18.6928 C10.9056,18.1398 11.3536,17.6928 11.9056,17.6928 L24.1096,17.6928 C24.6626,17.6928 25.1096,18.1398 25.1096,18.6928 L25.1096,18.6928 Z M5.9406,8.9748 L30.0166,8.9748 L26.4706,3.9998 L9.4856,3.9998 L5.9406,8.9748 Z M3.1106,10.4328 C2.9396,10.0998 2.9686,9.6988 3.1856,9.3948 L8.1556,2.4198 C8.3436,2.1558 8.6476,1.9998 8.9706,1.9998 L26.9856,1.9998 C27.3096,1.9998 27.6126,2.1558 27.8006,2.4198 L32.7716,9.3948 C32.9876,9.6988 33.0176,10.0998 32.8456,10.4328 C32.6746,10.7658 32.3306,10.9748 31.9566,10.9748 L3.9996,10.9748 C3.6256,10.9748 3.2816,10.7658 3.1106,10.4328 L3.1106,10.4328 Z M5.0496,39.4868 L24.9376,39.4868 L24.9376,41.4868 L4.0496,41.4868 C3.4966,41.4868 3.0496,41.0388 3.0496,40.4868 L3.0496,13.4618 C3.0496,12.9088 3.4966,12.4618 4.0496,12.4618 L31.9546,12.4618 C32.5076,12.4618 32.9546,12.9088 32.9546,13.4618 L32.9546,22.1788 L30.9546,22.1788 L30.9546,14.4618 L5.0496,14.4618 L5.0496,39.4868 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["Parameter Store","Systems Manager","SSM"], +}; diff --git a/packages/react/src/marks/aws-route-53-hosted-zone.ts b/packages/react/src/marks/aws-route-53-hosted-zone.ts new file mode 100644 index 00000000..96c29385 --- /dev/null +++ b/packages/react/src/marks/aws-route-53-hosted-zone.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon Route 53 hosted zone is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon Route 53 hosted zone's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Route 53", "hosted zone", "DNS". */ +export const awsRoute53HostedZone: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='43.2' height='44.09' viewBox='1.99 1.99 43.2 44.09' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.4488,39.3643 C28.8848,40.1843 25.0338,42.5853 23.5848,43.5833 C22.1358,42.5853 18.2848,40.1843 13.7198,39.3643 C11.4398,38.9553 3.9998,37.1363 3.9998,30.9253 C3.9998,28.3293 4.9828,26.6353 6.0238,24.8433 C7.0038,23.1543 8.0158,21.4103 8.0158,19.0203 C8.0158,15.4343 6.0408,12.8533 4.9278,11.6843 C6.0608,10.3063 8.5278,7.2973 9.8918,5.5523 C11.9708,7.4423 14.3708,8.4703 16.7468,8.4703 C19.3928,8.4703 21.5918,7.4293 23.5848,5.2123 C25.5768,7.4293 27.7748,8.4703 30.4228,8.4703 C32.7988,8.4703 35.1968,7.4423 37.2758,5.5523 C38.6398,7.2963 41.1068,10.3063 42.2408,11.6843 C41.1278,12.8533 39.1518,15.4343 39.1518,19.0203 C39.1518,21.4103 40.1648,23.1543 41.1438,24.8433 C42.1848,26.6353 43.1688,28.3293 43.1688,30.9253 C43.1688,37.1363 35.7288,38.9553 33.4488,39.3643 M42.8748,23.8383 C41.9498,22.2463 41.1518,20.8713 41.1518,19.0203 C41.1518,15.1103 44.2038,12.5673 44.2328,12.5443 L45.0178,11.9093 L44.3758,11.1303 C44.3248,11.0693 39.3318,5.0173 38.1898,3.4543 L37.4768,2.4783 L36.6518,3.3613 C34.7758,5.3663 32.5638,6.4703 30.4228,6.4703 C28.0598,6.4703 26.1968,5.4123 24.3788,3.0373 L23.5848,2.0003 L22.7908,3.0363 C20.9718,5.4113 19.1078,6.4703 16.7468,6.4703 C14.6038,6.4703 12.3918,5.3663 10.5158,3.3613 L9.6898,2.4773 L8.9778,3.4553 C7.8378,5.0173 2.8448,11.0693 2.7938,11.1303 L2.1508,11.9093 L2.9358,12.5443 C2.9678,12.5693 6.0158,15.0803 6.0158,19.0203 C6.0158,20.8713 5.2188,22.2463 4.2938,23.8383 C3.2188,25.6913 1.9998,27.7913 1.9998,30.9253 C1.9998,36.1653 6.2488,40.0553 13.3668,41.3333 C18.5718,42.2673 22.9318,45.5733 22.9758,45.6063 L23.5858,46.0723 L24.1928,45.6063 C24.2368,45.5733 28.5968,42.2673 33.8028,41.3333 C40.9198,40.0553 45.1688,36.1653 45.1688,30.9253 C45.1688,27.7913 43.9498,25.6913 42.8748,23.8383' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["Route 53","hosted zone","DNS"], +}; diff --git a/packages/react/src/marks/aws-s3-bucket.ts b/packages/react/src/marks/aws-s3-bucket.ts new file mode 100644 index 00000000..dd953b33 --- /dev/null +++ b/packages/react/src/marks/aws-s3-bucket.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon S3 bucket is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon S3 bucket's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "S3". */ +export const awsS3Bucket: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='42.34' height='44.07' viewBox='2.97 1.99 42.34 44.07' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M40.5038,26.1601 L40.7278,24.4941 C42.5118,25.5811 43.0628,26.2091 43.2228,26.4741 C42.7498,26.6171 41.7948,26.4911 40.5038,26.1601 L40.5038,26.1601 Z M22.8018,20.1111 C22.8018,20.0581 22.8448,20.0151 22.8978,20.0151 C22.9128,20.0151 22.9238,20.0251 22.9368,20.0321 L22.8638,20.1791 C22.8308,20.1691 22.8018,20.1491 22.8018,20.1111 L22.8018,20.1111 Z M36.5138,40.7981 C36.5078,40.8431 36.5048,40.8871 36.5048,40.9311 C36.5048,41.0861 36.1258,41.6751 34.4408,42.3401 C33.6898,42.6371 32.8028,42.9031 31.8028,43.1331 C29.2278,43.7291 26.0638,44.0571 22.8958,44.0571 C14.4298,44.0571 9.2888,41.8871 9.2888,40.9311 C9.2888,40.8871 9.2858,40.8431 9.2798,40.7981 L5.4408,12.2851 C5.6878,12.4291 5.9528,12.5661 6.2308,12.7001 C6.3098,12.7381 6.3958,12.7741 6.4778,12.8121 C6.7178,12.9231 6.9668,13.0301 7.2268,13.1341 C7.3388,13.1781 7.4518,13.2221 7.5668,13.2651 C7.8428,13.3691 8.1278,13.4691 8.4228,13.5651 C8.5098,13.5941 8.5928,13.6241 8.6808,13.6511 C9.0598,13.7701 9.4528,13.8841 9.8578,13.9911 C9.9708,14.0211 10.0878,14.0501 10.2028,14.0781 C10.5148,14.1581 10.8328,14.2341 11.1578,14.3061 C11.2988,14.3381 11.4388,14.3691 11.5808,14.3981 C11.9458,14.4751 12.3188,14.5491 12.6978,14.6181 C12.7798,14.6331 12.8588,14.6491 12.9418,14.6641 C13.3998,14.7441 13.8688,14.8181 14.3448,14.8881 C14.4788,14.9071 14.6148,14.9241 14.7508,14.9421 C15.1108,14.9921 15.4758,15.0381 15.8438,15.0811 C15.9938,15.0981 16.1448,15.1161 16.2968,15.1331 C16.7408,15.1801 17.1888,15.2231 17.6398,15.2621 C17.6928,15.2661 17.7468,15.2721 17.8018,15.2761 C18.3058,15.3171 18.8128,15.3501 19.3208,15.3801 C19.4658,15.3881 19.6108,15.3941 19.7568,15.4011 C20.1408,15.4201 20.5248,15.4351 20.9088,15.4481 C21.0598,15.4531 21.2088,15.4581 21.3588,15.4621 C21.8718,15.4731 22.3848,15.4821 22.8958,15.4821 C23.4058,15.4821 23.9188,15.4731 24.4318,15.4621 C24.5818,15.4581 24.7328,15.4531 24.8828,15.4481 C25.2678,15.4351 25.6508,15.4201 26.0338,15.4011 C26.1808,15.3941 26.3258,15.3881 26.4718,15.3801 C26.9808,15.3501 27.4868,15.3171 27.9898,15.2761 C28.0458,15.2711 28.1008,15.2651 28.1558,15.2621 C28.6068,15.2231 29.0518,15.1801 29.4938,15.1331 C29.6478,15.1161 29.7988,15.0981 29.9508,15.0811 C30.3168,15.0381 30.6808,14.9921 31.0398,14.9431 C31.1768,14.9251 31.3148,14.9071 31.4498,14.8871 C31.9248,14.8181 32.3928,14.7441 32.8518,14.6641 C32.9348,14.6491 33.0158,14.6331 33.0988,14.6171 C33.4768,14.5491 33.8478,14.4751 34.2128,14.3981 C34.3558,14.3691 34.4948,14.3381 34.6358,14.3061 C34.9608,14.2331 35.2788,14.1571 35.5918,14.0781 C35.7058,14.0491 35.8228,14.0211 35.9358,13.9921 C36.3418,13.8841 36.7348,13.7701 37.1138,13.6511 C37.2008,13.6241 37.2828,13.5951 37.3678,13.5661 C37.6648,13.4701 37.9518,13.3691 38.2298,13.2641 C38.3428,13.2221 38.4548,13.1791 38.5658,13.1351 C38.8278,13.0301 39.0788,12.9221 39.3218,12.8101 C39.4008,12.7731 39.4848,12.7381 39.5628,12.7011 C39.8408,12.5671 40.1068,12.4291 40.3538,12.2851 L38.5618,25.5911 C34.9248,24.4241 29.8168,22.3071 24.9818,20.0081 C24.9268,18.9011 24.0178,18.0151 22.8978,18.0151 C21.7418,18.0151 20.8018,18.9561 20.8018,20.1111 C20.8018,21.2661 21.7418,22.2061 22.8978,22.2061 C23.3518,22.2061 23.7698,22.0571 24.1128,21.8101 C28.4448,23.8891 33.9758,26.3421 38.2928,27.5881 L36.5138,40.7981 Z M22.8958,4.0001 C33.3148,4.0001 40.6558,7.2281 40.7918,9.0211 L40.7658,9.2291 C40.7478,9.2911 40.7088,9.3541 40.6758,9.4181 C40.6488,9.4701 40.6288,9.5201 40.5918,9.5731 C40.5478,9.6351 40.4828,9.6981 40.4258,9.7611 C40.3748,9.8161 40.3318,9.8711 40.2708,9.9271 C40.2028,9.9881 40.1158,10.0511 40.0348,10.1131 C39.9598,10.1711 39.8938,10.2281 39.8078,10.2871 C39.7168,10.3471 39.6078,10.4091 39.5058,10.4711 C39.4068,10.5301 39.3158,10.5901 39.2048,10.6491 C39.0948,10.7091 38.9658,10.7671 38.8448,10.8271 C38.7208,10.8881 38.6048,10.9481 38.4688,11.0091 C38.3398,11.0661 38.1928,11.1231 38.0548,11.1801 C37.9048,11.2401 37.7638,11.3021 37.6038,11.3611 C37.4558,11.4171 37.2898,11.4711 37.1328,11.5251 C36.9618,11.5841 36.7978,11.6441 36.6158,11.7021 C36.4468,11.7561 36.2608,11.8061 36.0818,11.8591 C35.8918,11.9151 35.7088,11.9721 35.5088,12.0261 C35.3168,12.0781 35.1098,12.1261 34.9098,12.1761 C34.7028,12.2271 34.5028,12.2801 34.2858,12.3301 C34.0698,12.3791 33.8378,12.4241 33.6118,12.4711 C33.3938,12.5161 33.1818,12.5641 32.9538,12.6071 C32.7138,12.6531 32.4568,12.6941 32.2068,12.7371 C31.9768,12.7761 31.7538,12.8181 31.5148,12.8551 C31.2548,12.8951 30.9788,12.9311 30.7088,12.9681 C30.4648,13.0011 30.2268,13.0381 29.9748,13.0681 C29.6818,13.1041 29.3728,13.1341 29.0698,13.1651 C28.8258,13.1911 28.5898,13.2201 28.3398,13.2421 C28.0038,13.2731 27.6518,13.2961 27.3058,13.3201 C27.0728,13.3381 26.8478,13.3581 26.6098,13.3731 C26.2308,13.3951 25.8338,13.4091 25.4408,13.4261 C25.2248,13.4341 25.0148,13.4471 24.7938,13.4541 C24.1748,13.4721 23.5418,13.4821 22.8958,13.4821 C22.2498,13.4821 21.6168,13.4721 20.9968,13.4541 C20.7748,13.4471 20.5628,13.4331 20.3428,13.4251 C19.9528,13.4091 19.5598,13.3951 19.1818,13.3731 C18.9318,13.3571 18.6938,13.3361 18.4488,13.3181 C18.1158,13.2941 17.7758,13.2721 17.4528,13.2421 C17.2018,13.2201 16.9658,13.1901 16.7208,13.1651 C16.4178,13.1341 16.1088,13.1041 15.8168,13.0681 C15.5668,13.0381 15.3298,13.0021 15.0868,12.9681 C14.8168,12.9311 14.5388,12.8961 14.2778,12.8551 C14.0298,12.8171 13.7978,12.7731 13.5588,12.7321 C13.3178,12.6901 13.0708,12.6511 12.8398,12.6071 C12.6078,12.5631 12.3928,12.5151 12.1688,12.4691 C11.9468,12.4221 11.7188,12.3781 11.5058,12.3291 C11.2898,12.2801 11.0908,12.2271 10.8838,12.1761 C10.6838,12.1261 10.4758,12.0781 10.2848,12.0261 C10.0818,11.9721 9.8968,11.9141 9.7038,11.8571 C9.5278,11.8061 9.3448,11.7551 9.1778,11.7021 C8.9928,11.6431 8.8268,11.5831 8.6538,11.5221 C8.4988,11.4691 8.3358,11.4161 8.1908,11.3611 C8.0288,11.3021 7.8878,11.2391 7.7378,11.1791 C7.5998,11.1221 7.4528,11.0651 7.3248,11.0091 C7.1908,10.9481 7.0738,10.8881 6.9498,10.8271 C6.8288,10.7671 6.6988,10.7091 6.5888,10.6481 C6.4788,10.5891 6.3868,10.5291 6.2868,10.4691 C6.1858,10.4081 6.0768,10.3471 5.9868,10.2871 C5.8998,10.2271 5.8318,10.1691 5.7558,10.1101 C5.6768,10.0491 5.5908,9.9871 5.5248,9.9271 C5.4618,9.8701 5.4178,9.8131 5.3658,9.7581 C5.3098,9.6961 5.2468,9.6341 5.2028,9.5731 C5.1648,9.5191 5.1458,9.4671 5.1178,9.4131 C5.0858,9.3511 5.0468,9.2891 5.0298,9.2291 L5.0018,9.0201 C5.1408,7.2271 12.4798,4.0001 22.8958,4.0001 L22.8958,4.0001 Z M45.2548,26.2571 C45.0418,25.1071 43.7168,23.8891 41.0178,22.3471 L42.7338,9.5951 L42.7338,9.5911 L42.7338,9.5901 L42.7848,9.2001 C42.7908,9.1571 42.7938,9.1141 42.7938,9.0711 C42.7938,4.9041 32.3078,2.0001 22.8958,2.0001 C13.4848,2.0001 2.9998,4.9041 2.9998,9.0711 C2.9998,9.1151 3.0028,9.1591 3.0088,9.2031 L3.0608,9.5931 L3.0608,9.5951 L7.2898,41.0091 C7.4208,44.6851 16.9028,46.0571 22.8958,46.0571 C26.2108,46.0571 29.5338,45.7111 32.2528,45.0821 C33.3478,44.8301 34.3308,44.5331 35.1748,44.2001 C37.3408,43.3451 38.4598,42.2711 38.5038,41.0091 L40.2448,28.0801 C41.1968,28.2821 42.0618,28.4051 42.7808,28.4051 C43.7498,28.4051 44.4748,28.2001 44.8668,27.7321 C45.2168,27.3161 45.3548,26.7921 45.2548,26.2571 L45.2548,26.2571 Z' fill='%237AA116'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["S3"], +}; diff --git a/packages/react/src/marks/aws-sagemaker-model.ts b/packages/react/src/marks/aws-sagemaker-model.ts new file mode 100644 index 00000000..7b880657 --- /dev/null +++ b/packages/react/src/marks/aws-sagemaker-model.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon SageMaker AI model is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon SageMaker AI model's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "SageMaker", "model". */ +export const awsSagemakerModel: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='43.95' height='44.19' viewBox='1.99 1.99 43.95 44.19' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M29.9559,29.8297 C29.9559,30.3157 29.5599,30.7117 29.0749,30.7117 C28.5889,30.7117 28.1929,30.3157 28.1929,29.8297 C28.1929,29.3447 28.5889,28.9487 29.0749,28.9487 C29.5599,28.9487 29.9559,29.3447 29.9559,29.8297 L29.9559,29.8297 Z M32.8379,11.8947 C32.3519,11.8947 31.9559,11.4997 31.9559,11.0137 C31.9559,10.5267 32.3519,10.1317 32.8379,10.1317 C33.3239,10.1317 33.7199,10.5267 33.7199,11.0137 C33.7199,11.4997 33.3239,11.8947 32.8379,11.8947 L32.8379,11.8947 Z M29.4189,20.6907 C29.4189,21.1767 29.0229,21.5717 28.5369,21.5717 C28.0509,21.5717 27.6549,21.1767 27.6549,20.6907 C27.6549,20.2047 28.0509,19.8087 28.5369,19.8087 C29.0229,19.8087 29.4189,20.2047 29.4189,20.6907 L29.4189,20.6907 Z M34.1059,36.2817 C34.1059,35.7957 34.5019,35.3997 34.9879,35.3997 C35.4749,35.3997 35.8699,35.7957 35.8699,36.2817 C35.8699,36.7667 35.4749,37.1627 34.9879,37.1627 C34.5019,37.1627 34.1059,36.7667 34.1059,36.2817 L34.1059,36.2817 Z M38.5299,31.3027 C38.2149,31.4787 38.0199,31.8117 38.0199,32.1737 L38.0199,38.3647 L30.8809,42.5867 L30.8809,37.5507 L32.4139,37.5507 C32.8859,38.5017 33.8559,39.1627 34.9879,39.1627 C36.5769,39.1627 37.8699,37.8707 37.8699,36.2817 C37.8699,34.6927 36.5769,33.3997 34.9879,33.3997 C33.6539,33.3997 32.5379,34.3167 32.2119,35.5507 L29.8809,35.5507 C29.3279,35.5507 28.8809,35.9977 28.8809,36.5507 L28.8809,43.7687 L28.4759,44.0087 L24.9679,41.9757 L24.9679,16.0457 L27.8059,16.0457 L27.8059,17.9147 C26.5719,18.2407 25.6549,19.3557 25.6549,20.6907 C25.6549,22.2797 26.9479,23.5717 28.5369,23.5717 C30.1259,23.5717 31.4189,22.2797 31.4189,20.6907 C31.4189,19.5587 30.7569,18.5877 29.8059,18.1167 L29.8059,16.0457 L33.1059,16.0457 C33.6589,16.0457 34.1059,15.5987 34.1059,15.0457 L34.1059,13.5877 C35.0579,13.1167 35.7199,12.1447 35.7199,11.0137 C35.7199,9.4247 34.4269,8.1317 32.8379,8.1317 C31.2489,8.1317 29.9559,9.4247 29.9559,11.0137 C29.9559,12.3487 30.8729,13.4637 32.1059,13.7897 L32.1059,14.0457 L24.9679,14.0457 L24.9679,6.8037 L29.3659,4.1697 L38.5579,9.7737 L38.5589,15.9377 C38.5589,16.2987 38.7519,16.6307 39.0649,16.8087 L43.9339,19.5687 L43.9349,22.6467 L34.7199,22.6467 C34.1669,22.6467 33.7199,23.0947 33.7199,23.6467 L33.7199,28.5607 L31.6489,28.5607 C31.1779,27.6097 30.2069,26.9487 29.0749,26.9487 C27.4859,26.9487 26.1929,28.2407 26.1929,29.8297 C26.1929,31.4187 27.4859,32.7117 29.0749,32.7117 C30.4099,32.7117 31.5239,31.7947 31.8509,30.5607 L34.7199,30.5607 C35.2719,30.5607 35.7199,30.1137 35.7199,29.5607 L35.7199,24.6467 L43.9349,24.6467 L43.9349,28.2597 L38.5299,31.3027 Z M17.2469,28.4107 C17.7329,28.4107 18.1289,28.8067 18.1289,29.2927 C18.1289,29.7787 17.7329,30.1747 17.2469,30.1747 C16.7609,30.1747 16.3649,29.7787 16.3649,29.2927 C16.3649,28.8067 16.7609,28.4107 17.2469,28.4107 L17.2469,28.4107 Z M15.8279,12.6267 C15.8279,12.1407 16.2239,11.7447 16.7099,11.7447 C17.1949,11.7447 17.5909,12.1407 17.5909,12.6267 C17.5909,13.1127 17.1949,13.5087 16.7099,13.5087 C16.2239,13.5087 15.8279,13.1127 15.8279,12.6267 L15.8279,12.6267 Z M12.2149,20.6907 C12.2149,21.1767 11.8189,21.5717 11.3329,21.5717 C10.8479,21.5717 10.4519,21.1767 10.4519,20.6907 C10.4519,20.2047 10.8479,19.8087 11.3329,19.8087 C11.8189,19.8087 12.2149,20.2047 12.2149,20.6907 L12.2149,20.6907 Z M17.4399,37.8937 C17.4399,37.4077 17.8359,37.0127 18.3219,37.0127 C18.8089,37.0127 19.2039,37.4077 19.2039,37.8937 C19.2039,38.3807 18.8089,38.7757 18.3219,38.7757 C17.8359,38.7757 17.4399,38.3807 17.4399,37.8937 L17.4399,37.8937 Z M18.9119,44.0027 L9.3759,38.3627 L9.3769,32.1727 C9.3769,31.8087 9.1789,31.4727 8.8589,31.2967 L8.5009,31.0997 L11.1399,31.0997 L11.1399,38.1627 C11.1399,38.7157 11.5869,39.1627 12.1399,39.1627 L15.7479,39.1627 C16.2189,40.1137 17.1899,40.7757 18.3219,40.7757 C19.9109,40.7757 21.2039,39.4827 21.2039,37.8937 C21.2039,36.3057 19.9109,35.0127 18.3219,35.0127 C16.9879,35.0127 15.8719,35.9297 15.5459,37.1627 L13.1399,37.1627 L13.1399,30.0997 C13.1399,29.5467 12.6919,29.0997 12.1399,29.0997 L4.8639,29.0997 L4.0009,28.6247 L3.9999,19.5677 L8.8689,16.8067 C9.1829,16.6287 9.3759,16.2967 9.3759,15.9357 L9.3769,13.3567 L10.6019,13.3567 L10.6019,17.9147 C9.3689,18.2407 8.4519,19.3557 8.4519,20.6907 C8.4519,22.2797 9.7439,23.5717 11.3329,23.5717 C12.9219,23.5717 14.2149,22.2797 14.2149,20.6907 C14.2149,19.5597 13.5539,18.5887 12.6019,18.1167 L12.6019,13.3567 L13.9339,13.3567 C14.2599,14.5917 15.3749,15.5087 16.7099,15.5087 C18.2989,15.5087 19.5909,14.2157 19.5909,12.6267 C19.5909,11.0377 18.2989,9.7447 16.7099,9.7447 C15.5789,9.7447 14.6069,10.4057 14.1359,11.3567 L9.3769,11.3567 L9.3769,9.7717 L18.5679,4.1687 L22.9679,6.8027 L22.9679,18.3467 L16.9779,18.3467 C16.4259,18.3467 15.9779,18.7937 15.9779,19.3467 L15.9779,26.7187 C15.0269,27.1887 14.3649,28.1607 14.3649,29.2927 C14.3649,30.8817 15.6579,32.1747 17.2469,32.1747 C18.8359,32.1747 20.1289,30.8817 20.1289,29.2927 C20.1289,27.9577 19.2119,26.8427 17.9779,26.5167 L17.9779,20.3467 L22.9679,20.3467 L22.9679,41.5897 L18.9119,44.0027 Z M45.9339,18.9867 C45.9339,18.6267 45.7399,18.2947 45.4269,18.1167 L40.5589,15.3557 L40.5579,9.2127 C40.5579,8.8637 40.3759,8.5407 40.0779,8.3587 L29.8919,2.1477 C29.5739,1.9547 29.1769,1.9517 28.8569,2.1427 L23.9689,5.0697 L19.0769,2.1427 C18.7569,1.9507 18.3589,1.9527 18.0429,2.1467 L7.8559,8.3567 C7.5589,8.5387 7.3769,8.8617 7.3769,9.2107 L7.3759,15.3537 L2.5069,18.1157 C2.1929,18.2937 1.9999,18.6257 1.9999,18.9857 L2.0009,29.2157 C2.0009,29.5807 2.1989,29.9157 2.5179,30.0917 L7.3769,32.7637 L7.3759,38.9337 C7.3759,39.2867 7.5619,39.6137 7.8669,39.7937 L18.4049,46.0257 C18.7209,46.2127 19.1099,46.2127 19.4259,46.0247 L23.6399,43.5177 L27.9789,46.0317 C28.1339,46.1217 28.3079,46.1667 28.4799,46.1667 C28.6559,46.1667 28.8319,46.1197 28.9889,46.0267 L39.5289,39.7957 C39.8339,39.6157 40.0199,39.2887 40.0199,38.9347 L40.0199,32.7587 L45.4249,29.7157 C45.7399,29.5387 45.9349,29.2057 45.9349,28.8447 L45.9339,18.9867 Z' fill='%2301A88D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["SageMaker","model"], +}; diff --git a/packages/react/src/marks/aws-server.ts b/packages/react/src/marks/aws-server.ts new file mode 100644 index 00000000..53d19140 --- /dev/null +++ b/packages/react/src/marks/aws-server.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Server is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Server's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "server", "host". */ +export const awsServer: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='25.53' height='44.05' viewBox='10.99 1.99 25.53 44.05' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.437,21.52 L32.064,21.52 L32.064,19.52 L15.437,19.52 L15.437,21.52 Z M15.437,17.196 L32.064,17.196 L32.064,15.196 L15.437,15.196 L15.437,17.196 Z M15.437,12.762 L32.064,12.762 L32.064,10.762 L15.437,10.762 L15.437,12.762 Z M15.437,8.494 L32.064,8.494 L32.064,6.494 L15.437,6.494 L15.437,8.494 Z M13,44.013 L34.499,44.013 L34.499,4 L13,4 L13,44.013 Z M35.032,2 L12.468,2 C11.659,2 11,2.659 11,3.469 L11,44.545 C11,45.355 11.659,46.013 12.468,46.013 L35.032,46.013 C35.841,46.013 36.499,45.355 36.499,44.545 L36.499,3.469 C36.499,2.659 35.841,2 35.032,2 L35.032,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='25.53' height='44.05' viewBox='10.99 1.99 25.53 44.05' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.437,21.52 L32.064,21.52 L32.064,19.52 L15.437,19.52 L15.437,21.52 Z M15.437,17.196 L32.064,17.196 L32.064,15.196 L15.437,15.196 L15.437,17.196 Z M15.437,12.762 L32.064,12.762 L32.064,10.762 L15.437,10.762 L15.437,12.762 Z M15.437,8.494 L32.064,8.494 L32.064,6.494 L15.437,6.494 L15.437,8.494 Z M13,44.013 L34.499,44.013 L34.499,4 L13,4 L13,44.013 Z M35.032,2 L12.468,2 C11.659,2 11,2.659 11,3.469 L11,44.545 C11,45.355 11.659,46.013 12.468,46.013 L35.032,46.013 C35.841,46.013 36.499,45.355 36.499,44.545 L36.499,3.469 C36.499,2.659 35.841,2 35.032,2 L35.032,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["server","host"], +}; diff --git a/packages/react/src/marks/aws-sqs-queue.ts b/packages/react/src/marks/aws-sqs-queue.ts new file mode 100644 index 00000000..9c68f81b --- /dev/null +++ b/packages/react/src/marks/aws-sqs-queue.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Amazon SQS queue is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Amazon SQS queue's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "SQS", "queue". */ +export const awsSqsQueue: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44' height='26.8' viewBox='1.99 10.99 44 26.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37.449,22.261 L37.449,26.221 L35.026,24.207 L37.449,22.261 Z M37.81,29.121 C37.993,29.273 38.22,29.352 38.449,29.352 C38.594,29.352 38.738,29.321 38.874,29.257 C39.224,29.092 39.449,28.74 39.449,28.352 L39.449,20.176 C39.449,19.791 39.228,19.441 38.882,19.275 C38.535,19.108 38.123,19.156 37.823,19.397 L32.819,23.414 C32.585,23.602 32.448,23.885 32.4449503,24.185 C32.442,24.486 32.575,24.771 32.806,24.963 L37.81,29.121 Z M10.527,22.307 L12.951,24.322 L10.527,26.267 L10.527,22.307 Z M9.095,29.253 C9.232,29.32 9.38,29.352 9.527,29.352 C9.751,29.352 9.972,29.277 10.153,29.132 L15.158,25.115 C15.392,24.927 15.529,24.644 15.5320497,24.344 C15.535,24.043 15.402,23.758 15.171,23.566 L10.166,19.407 C9.868,19.16 9.453,19.107 9.102,19.271 C8.752,19.436 8.527,19.788 8.527,20.176 L8.527,28.352 C8.527,28.737 8.748,29.087 9.095,29.253 L9.095,29.253 Z M28.368,34.027 L30.368,34.027 L30.368,14.747 L28.368,14.747 L28.368,34.027 Z M23.121,34.027 L25.121,34.027 L25.121,14.747 L23.121,14.747 L23.121,34.027 Z M17.711,34.027 L19.711,34.027 L19.711,14.747 L17.711,14.747 L17.711,34.027 Z M3.999,35.773 L43.977,35.773 L43.977,13.001 L3.999,13.001 L3.999,35.773 Z M44.977,11 L3,11 C2.447,11 2,11.448 2,12 L2,36.773 C2,37.325 2.447,37.773 3,37.773 L44.977,37.773 C45.53,37.773 45.977,37.325 45.977,36.773 L45.977,12 C45.977,11.448 45.53,11 44.977,11 L44.977,11 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["SQS","queue"], +}; diff --git a/packages/react/src/marks/aws-user.ts b/packages/react/src/marks/aws-user.ts new file mode 100644 index 00000000..250bfff6 --- /dev/null +++ b/packages/react/src/marks/aws-user.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// User is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** User's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "user", "person", "people". */ +export const awsUser: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='40.04' height='44.02' viewBox='3.98 1.99 40.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6.025,44 C6.524,34.085 14.395,26.178 24,26.178 C27.248,26.178 30.43,27.092 33.205,28.822 C38.354,32.033 41.653,37.783 41.974,44 L6.025,44 Z M14.192,13.878 C14.192,8.432 18.592,4 24.001,4 C29.408,4 33.807,8.432 33.807,13.878 C33.807,19.325 29.408,23.757 24.001,23.757 C18.592,23.757 14.192,19.325 14.192,13.878 L14.192,13.878 Z M34.263,27.125 C32.53,26.044 30.65,25.26 28.698,24.771 C32.877,22.939 35.807,18.749 35.807,13.878 C35.807,7.329 30.51,2 24.001,2 C17.489,2 12.192,7.329 12.192,13.878 C12.192,18.755 15.13,22.95 19.317,24.778 C10.545,26.981 4,35.2 4,45 C4,45.552 4.447,46 5,46 L43,46 C43.552,46 44,45.552 44,45 C44,37.719 40.269,30.87 34.263,27.125 L34.263,27.125 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='40.04' height='44.02' viewBox='3.98 1.99 40.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6.025,44 C6.524,34.085 14.395,26.178 24,26.178 C27.248,26.178 30.43,27.092 33.205,28.822 C38.354,32.033 41.653,37.783 41.974,44 L6.025,44 Z M14.192,13.878 C14.192,8.432 18.592,4 24.001,4 C29.408,4 33.807,8.432 33.807,13.878 C33.807,19.325 29.408,23.757 24.001,23.757 C18.592,23.757 14.192,19.325 14.192,13.878 L14.192,13.878 Z M34.263,27.125 C32.53,26.044 30.65,25.26 28.698,24.771 C32.877,22.939 35.807,18.749 35.807,13.878 C35.807,7.329 30.51,2 24.001,2 C17.489,2 12.192,7.329 12.192,13.878 C12.192,18.755 15.13,22.95 19.317,24.778 C10.545,26.981 4,35.2 4,45 C4,45.552 4.447,46 5,46 L43,46 C43.552,46 44,45.552 44,45 C44,37.719 40.269,30.87 34.263,27.125 L34.263,27.125 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["user","person","people"], +}; diff --git a/packages/react/src/marks/aws-users.ts b/packages/react/src/marks/aws-users.ts new file mode 100644 index 00000000..ad5bb8d3 --- /dev/null +++ b/packages/react/src/marks/aws-users.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Users is a trademark of Amazon Web Services, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://d1.awsstatic.com/onedam/marketing-channels/website/public/shared/architecture-icon-release/Icon-package_07312026.5846e92413caa21490223536cc97f1269e44fa92.zip. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Users's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "users", "people", "user". */ +export const awsUsers: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M28.639,9.286 C28.639,6.371 31.052,4 34.019,4 C36.985,4 39.397,6.371 39.397,9.286 C39.397,12.201 36.985,14.572 34.019,14.572 C31.052,14.572 28.639,12.201 28.639,9.286 L28.639,9.286 Z M40.163,16.334 C39.516,15.932 38.833,15.6 38.128,15.333 C40.098,14.023 41.397,11.802 41.397,9.286 C41.397,5.269 38.087,2 34.019,2 C29.95,2 26.639,5.269 26.639,9.286 C26.639,11.796 27.932,14.014 29.895,15.325 C28.614,15.808 27.41,16.515 26.349,17.425 L27.652,18.943 C29.434,17.414 31.689,16.572 34,16.572 C35.802,16.572 37.569,17.077 39.109,18.033 C41.849,19.735 43.647,22.725 43.953,26 L34,26 L34,28 L45,28 C45.553,28 46,27.553 46,27 C46,22.657 43.764,18.57 40.163,16.334 L40.163,16.334 Z M8.639,9.286 C8.639,6.371 11.052,4 14.019,4 C16.985,4 19.397,6.371 19.397,9.286 C19.397,12.201 16.985,14.572 14.019,14.572 C11.052,14.572 8.639,12.201 8.639,9.286 L8.639,9.286 Z M14,26 L4.046,26 C4.53,20.717 8.81,16.572 14,16.572 C15.802,16.572 17.569,17.077 19.109,18.033 C19.541,18.302 19.958,18.608 20.349,18.943 L21.652,17.426 C21.184,17.024 20.684,16.657 20.163,16.334 C19.516,15.932 18.833,15.6 18.128,15.333 C20.098,14.023 21.397,11.802 21.397,9.286 C21.397,5.269 18.087,2 14.019,2 C9.95,2 6.639,5.269 6.639,9.286 C6.639,11.801 7.937,14.023 9.907,15.332 C5.302,17.071 2,21.638 2,27 C2,27.553 2.448,28 3,28 L14,28 L14,26 Z M14.046,44 C14.53,38.717 18.81,34.572 24,34.572 C25.802,34.572 27.569,35.077 29.109,36.033 C31.849,37.735 33.647,40.725 33.953,44 L14.046,44 Z M18.639,27.286 C18.639,24.371 21.052,22 24.019,22 C26.985,22 29.397,24.371 29.397,27.286 C29.397,30.201 26.985,32.572 24.019,32.572 C21.052,32.572 18.639,30.201 18.639,27.286 L18.639,27.286 Z M30.163,34.334 C29.516,33.932 28.833,33.6 28.128,33.333 C30.098,32.023 31.397,29.802 31.397,27.286 C31.397,23.269 28.087,20 24.019,20 C19.95,20 16.639,23.269 16.639,27.286 C16.639,29.801 17.937,32.023 19.907,33.332 C15.302,35.071 12,39.638 12,45 C12,45.553 12.448,46 13,46 L35,46 C35.553,46 36,45.553 36,45 C36,40.657 33.764,36.57 30.163,34.334 L30.163,34.334 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M28.639,9.286 C28.639,6.371 31.052,4 34.019,4 C36.985,4 39.397,6.371 39.397,9.286 C39.397,12.201 36.985,14.572 34.019,14.572 C31.052,14.572 28.639,12.201 28.639,9.286 L28.639,9.286 Z M40.163,16.334 C39.516,15.932 38.833,15.6 38.128,15.333 C40.098,14.023 41.397,11.802 41.397,9.286 C41.397,5.269 38.087,2 34.019,2 C29.95,2 26.639,5.269 26.639,9.286 C26.639,11.796 27.932,14.014 29.895,15.325 C28.614,15.808 27.41,16.515 26.349,17.425 L27.652,18.943 C29.434,17.414 31.689,16.572 34,16.572 C35.802,16.572 37.569,17.077 39.109,18.033 C41.849,19.735 43.647,22.725 43.953,26 L34,26 L34,28 L45,28 C45.553,28 46,27.553 46,27 C46,22.657 43.764,18.57 40.163,16.334 L40.163,16.334 Z M8.639,9.286 C8.639,6.371 11.052,4 14.019,4 C16.985,4 19.397,6.371 19.397,9.286 C19.397,12.201 16.985,14.572 14.019,14.572 C11.052,14.572 8.639,12.201 8.639,9.286 L8.639,9.286 Z M14,26 L4.046,26 C4.53,20.717 8.81,16.572 14,16.572 C15.802,16.572 17.569,17.077 19.109,18.033 C19.541,18.302 19.958,18.608 20.349,18.943 L21.652,17.426 C21.184,17.024 20.684,16.657 20.163,16.334 C19.516,15.932 18.833,15.6 18.128,15.333 C20.098,14.023 21.397,11.802 21.397,9.286 C21.397,5.269 18.087,2 14.019,2 C9.95,2 6.639,5.269 6.639,9.286 C6.639,11.801 7.937,14.023 9.907,15.332 C5.302,17.071 2,21.638 2,27 C2,27.553 2.448,28 3,28 L14,28 L14,26 Z M14.046,44 C14.53,38.717 18.81,34.572 24,34.572 C25.802,34.572 27.569,35.077 29.109,36.033 C31.849,37.735 33.647,40.725 33.953,44 L14.046,44 Z M18.639,27.286 C18.639,24.371 21.052,22 24.019,22 C26.985,22 29.397,24.371 29.397,27.286 C29.397,30.201 26.985,32.572 24.019,32.572 C21.052,32.572 18.639,30.201 18.639,27.286 L18.639,27.286 Z M30.163,34.334 C29.516,33.932 28.833,33.6 28.128,33.333 C30.098,32.023 31.397,29.802 31.397,27.286 C31.397,23.269 28.087,20 24.019,20 C19.95,20 16.639,23.269 16.639,27.286 C16.639,29.801 17.937,32.023 19.907,33.332 C15.302,35.071 12,39.638 12,45 C12,45.553 12.448,46 13,46 L35,46 C35.553,46 36,45.553 36,45 C36,40.657 33.764,36.57 30.163,34.334 L30.163,34.334 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E", + says: ["users","people","user"], +}; diff --git a/packages/react/src/marks/blacksmith.ts b/packages/react/src/marks/blacksmith.ts new file mode 100644 index 00000000..945221d2 --- /dev/null +++ b/packages/react/src/marks/blacksmith.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Blacksmith is a trademark of Blacksmith Software Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://www.blacksmith.sh. Changes: fitted, swapped (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Blacksmith's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Blacksmith". */ +export const blacksmith: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='144' height='96.05' viewBox='0 0 144 96.05' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M144 0H0V48C26.5097 48 48 69.4903 48 96H144V0Z' fill='%23202020'/%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='144' height='96.05' viewBox='0 0 144 96.05' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M144 0H0V48C26.5097 48 48 69.4903 48 96H144V0Z' fill='%23ffffff'/%3E%3C/svg%3E", + says: ["Blacksmith"], +}; diff --git a/packages/react/src/marks/blazemeter.ts b/packages/react/src/marks/blazemeter.ts new file mode 100644 index 00000000..b267cec5 --- /dev/null +++ b/packages/react/src/marks/blazemeter.ts @@ -0,0 +1,12 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// BlazeMeter is a trademark of Perforce Software, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/icons/blazemeter.svg. Changes: stripped, fitted, swapped (DECISIONS 292, 2.3). +// Unofficial: not its owner's own file (DECISIONS 297). Edits: fill="#000000" set on the one path (the file draws in the default black and names no fill; the swap needs one). No pixel changes. +import type { DiagramMark } from "../diagram-core"; + +/** An unofficial mark for BlazeMeter for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "BlazeMeter". */ +export const blazemeter: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='24' height='10.3' viewBox='0 6.85 24 10.3' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M15.04 17.135c-.256 0-.352-.128-.32-.352l1.696-9.566c.032-.224.16-.352.416-.352h3.584c2.4 0 3.584.736 3.584 2.24 0 .607-.16 1.151-.48 1.6-.32.48-.768.8-1.344.991.384.096.736.32.96.672.256.32.384.768.384 1.28 0 1.215-.416 2.08-1.248 2.655-.832.544-1.952.832-3.328.832H15.04zm3.968-1.664c1.664 0 2.496-.608 2.496-1.823 0-.384-.16-.64-.448-.832-.288-.192-.8-.256-1.472-.256h-2.08l-.512 2.88h2.016v.031zm.768-4.383c1.472 0 2.176-.544 2.176-1.663 0-.352-.128-.576-.416-.736-.288-.16-.736-.224-1.344-.224h-1.984l-.48 2.623h2.048zm-6.88-.256a.608.608 0 0 0-.608-.608H.608a.608.608 0 1 0 0 1.216h11.648c.352 0 .64-.256.64-.608zm1.344-2.175a.608.608 0 0 0-.608-.608H6.464a.608.608 0 1 0 0 1.216h7.168c.32 0 .608-.256.608-.608zm-2.464 6.654a.608.608 0 0 0-.608-.608H8.256a.608.608 0 1 0 0 1.216h2.912c.32 0 .608-.256.608-.608zm-.864-2.271a.608.608 0 0 0-.608-.608H3.2a.608.608 0 1 0 0 1.216h7.104a.63.63 0 0 0 .608-.608z'/%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='24' height='10.3' viewBox='0 6.85 24 10.3' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M15.04 17.135c-.256 0-.352-.128-.32-.352l1.696-9.566c.032-.224.16-.352.416-.352h3.584c2.4 0 3.584.736 3.584 2.24 0 .607-.16 1.151-.48 1.6-.32.48-.768.8-1.344.991.384.096.736.32.96.672.256.32.384.768.384 1.28 0 1.215-.416 2.08-1.248 2.655-.832.544-1.952.832-3.328.832H15.04zm3.968-1.664c1.664 0 2.496-.608 2.496-1.823 0-.384-.16-.64-.448-.832-.288-.192-.8-.256-1.472-.256h-2.08l-.512 2.88h2.016v.031zm.768-4.383c1.472 0 2.176-.544 2.176-1.663 0-.352-.128-.576-.416-.736-.288-.16-.736-.224-1.344-.224h-1.984l-.48 2.623h2.048zm-6.88-.256a.608.608 0 0 0-.608-.608H.608a.608.608 0 1 0 0 1.216h11.648c.352 0 .64-.256.64-.608zm1.344-2.175a.608.608 0 0 0-.608-.608H6.464a.608.608 0 1 0 0 1.216h7.168c.32 0 .608-.256.608-.608zm-2.464 6.654a.608.608 0 0 0-.608-.608H8.256a.608.608 0 1 0 0 1.216h2.912c.32 0 .608-.256.608-.608zm-.864-2.271a.608.608 0 0 0-.608-.608H3.2a.608.608 0 1 0 0 1.216h7.104a.63.63 0 0 0 .608-.608z'/%3E%3C/svg%3E", + says: ["BlazeMeter"], +}; diff --git a/packages/react/src/marks/coderabbit.ts b/packages/react/src/marks/coderabbit.ts new file mode 100644 index 00000000..53a79f57 --- /dev/null +++ b/packages/react/src/marks/coderabbit.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// CodeRabbit is a trademark of CodeRabbit Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://www.coderabbit.ai/brand. Changes: fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** CodeRabbit's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "CodeRabbit". */ +export const coderabbit: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='1200.42' height='1200.42' viewBox='0.58 0 1200.42 1200.42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M600.867 1200C932.238 1200 1200.87 931.37 1200.87 600C1200.87 268.629 932.238 -0.000488281 600.867 -0.000488281C269.496 -0.000488281 0.867188 268.629 0.867188 600C0.867188 931.37 269.496 1200 600.867 1200Z' fill='%23FF570A'/%3E%3Cpath d='M1008.3 500.615C1008.3 500.615 924.706 393.751 819.62 387.639C751.807 383.636 735.379 392.696 732.434 399.444C728.226 364.456 698.322 202.361 491.729 168.008C518.102 357.589 627.02 308.191 691.161 438.86C691.161 438.86 582.921 291.734 404.969 345.903C404.969 345.903 469.83 482.07 661.676 509.891C661.676 509.891 677.05 562.586 681.684 571.862C681.684 571.862 386.224 417.779 296.512 713.505C229.747 698.382 207.352 770.859 284.09 820.369C284.09 820.369 297.147 768.519 328.943 753.131C328.943 753.131 260.711 829.226 340.946 920.36H628.925C635.883 908.834 666.68 848.19 590.514 802.285C644.278 801.516 688.042 902.932 735.128 921.058H803.61C805.927 915.428 810.771 898.567 799.395 883.395C781.857 863.278 743.46 866.002 743.802 828.8C757.062 655.746 1016.55 708.888 1008.3 500.615Z' fill='%23FEFEFE'/%3E%3C/svg%3E", + says: ["CodeRabbit"], +}; diff --git a/packages/react/src/marks/github.ts b/packages/react/src/marks/github.ts new file mode 100644 index 00000000..a7ff1bbe --- /dev/null +++ b/packages/react/src/marks/github.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// GitHub is a trademark of GitHub, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://brand.github.com/GitHub_Logos.zip. Changes: fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** GitHub's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "GitHub". */ +export const github: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='98.01' height='94.99' viewBox='0 0 98.01 94.99' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_730_27126)'%3E%3Cpath d='M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z' fill='black'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_730_27126'%3E%3Crect width='98' height='96' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='98.01' height='94.99' viewBox='0 0 98.01 94.99' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_730_27136)'%3E%3Cpath d='M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_730_27136'%3E%3Crect width='98' height='96' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E", + says: ["GitHub"], +}; diff --git a/packages/react/src/marks/greptile.ts b/packages/react/src/marks/greptile.ts new file mode 100644 index 00000000..7f9d4bbe --- /dev/null +++ b/packages/react/src/marks/greptile.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Greptile is a trademark of Greptile, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://www.greptile.com. Changes: fitted, swapped (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Greptile's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Greptile". */ +export const greptile: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='366.68' height='420' viewBox='0 0 366.68 420' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M240.269 49.8154L166.804 115.963L115.966 159.44L181.335 220.585L249.784 162.048L196.78 112.47L253.068 61.7881L362.605 164.246L178.739 321.489L3.14502 157.242L187.011 0L240.269 49.8154Z' fill='%233D3B4F'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.75471 -0.656059 0 1 188.017 336.544)' fill='%233D3B4F'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.731354 0.681998 0 1 0 174.962)' fill='%233D3B4F'/%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='366.68' height='420' viewBox='0 0 366.68 420' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M240.269 49.8154L166.804 115.963L115.966 159.44L181.335 220.585L249.784 162.048L196.78 112.47L253.068 61.7881L362.605 164.246L178.739 321.489L3.14502 157.242L187.011 0L240.269 49.8154Z' fill='%23ffffff'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.75471 -0.656059 0 1 188.017 336.544)' fill='%23ffffff'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.731354 0.681998 0 1 0 174.962)' fill='%23ffffff'/%3E%3C/svg%3E", + says: ["Greptile"], +}; diff --git a/packages/react/src/marks/jenkins.ts b/packages/react/src/marks/jenkins.ts new file mode 100644 index 00000000..7a236c57 --- /dev/null +++ b/packages/react/src/marks/jenkins.ts @@ -0,0 +1,12 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Jenkins is a trademark of LF Charities, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://cdn.jsdelivr.net/npm/simple-icons@16.38.1/icons/jenkins.svg. Changes: stripped, fitted, swapped (DECISIONS 292, 2.3). +// Unofficial: not its owner's own file (DECISIONS 297). Edits: fill="#000000" set on the one path (the file draws in the default black and names no fill; the swap needs one). No pixel changes. +import type { DiagramMark } from "../diagram-core"; + +/** An unofficial mark for Jenkins for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Jenkins". */ +export const jenkins: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='21.78' height='24' viewBox='1.11 0 21.78 24' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M2.872 24h-.975a3.866 3.866 0 01-.07-.197c-.215-.666-.594-1.49-.692-2.154-.146-.984.78-1.039 1.374-1.465.915-.66 1.635-1.025 2.627-1.62.295-.179 1.182-.624 1.281-.829.201-.408-.345-.982-.49-1.3-.225-.507-.345-.937-.376-1.435-.824-.13-1.455-.627-1.844-1.185-.63-.925-1.066-2.635-.525-3.936.045-.103.254-.305.285-.463.06-.308-.105-.72-.12-1.048-.06-1.692.284-3.15 1.425-3.66.463-1.84 2.113-2.453 3.673-3.367.58-.342 1.224-.562 1.89-.807 2.372-.877 6.027-.712 7.994.783.836.633 2.176 1.97 2.656 2.939 1.262 2.555 1.17 6.825.287 9.934-.12.421-.29 1.032-.533 1.533-.168.35-.689 1.05-.625 1.36.064.314 1.19 1.17 1.432 1.395.434.422 1.26.975 1.324 1.5.07.557-.248 1.336-.41 1.875-.217.721-.436 1.441-.654 2.131H2.87zm11.104-3.54c-.545-.3-1.361-.622-2.065-.757-.87-.164-.78 1.188-.75 1.994.03.643.36 1.316.51 1.744.076.197.09.41.256.449.3.068 1.29-.326 1.575-.479.6-.328 1.064-.844 1.574-1.189.016-.17.016-.34.03-.508a2.648 2.648 0 00-1.095-.277c.314-.15.75-.15 1.035-.332l.016-.193c-.496-.03-.69-.254-1.021-.436zm7.454 2.935a17.78 17.78 0 00.465-1.752c.06-.287.215-.918.178-1.176-.059-.459-.684-.799-1.004-1.086-.584-.525-.95-.975-1.56-1.469-.249.375-.78.615-.983.914 1.447-.689 1.71 2.625 1.141 3.69.09.329.391.45.514.735l-.086.166h1.29c.013 0 .03 0 .044.014zm-6.634-.012c-.05-.074-.1-.135-.15-.209l-.301.195h.45zm2.77 0c.008-.209.018-.404.03-.598-.53.029-.825-.48-1.196-.527-.324-.045-.6.361-1.02.195-.095.105-.183.227-.284.316.154.18.295.375.424.584h.815c.014-.164.135-.285.3-.285.165 0 .284.121.284.27h.66zm2.116 0c-.314-.479-.947-.898-1.68-.555l-.03.541h1.71zm-8.51 0l-.104-.344c-.225-.72-.36-1.26-.405-1.68-.914-.436-1.875-.87-2.654-1.426-.15-.105-1.109-1.35-1.23-1.305-1.739.676-3.359 1.86-4.814 2.984.256.557.48 1.141.69 1.74h8.505zm8.265-2.113c-.029-.512-.164-1.56-.48-1.74-.66-.39-1.846.78-2.34.943.045.15.135.271.15.48.285-.074.645-.029.898.092-.299.03-.629.03-.824.164-.074.195.016.48-.029.764.69.197 1.5.303 2.385.332.164-.227.225-.645.211-1.082zm-4.08-.36c-.044.375.046.51.12.943 1.26.391 1.034-1.74-.135-.959zM8.76 19.5c-.45.457 1.27 1.082 1.814 1.115 0-.29.165-.564.135-.77-.65-.118-1.502-.042-1.945-.347zm5.565.215c0 .043-.061.03-.068.064.58.451 1.014.545 1.802.51.354-.262.67-.563 1.043-.807-.855.074-1.931.607-2.774.23zm3.42-17.726c-1.606-.906-4.35-1.591-6.076-.731-1.38.692-3.27 1.84-3.899 3.292.6 1.402-.166 2.686-.226 4.109-.018.757.36 1.42.391 2.242-.2.338-.825.38-1.26.356-.146-.729-.4-1.549-1.155-1.63-1.064-.116-1.845.764-1.89 1.683-.06 1.08.833 2.864 2.085 2.745.488-.046.608-.54 1.139-.54.285.57-.445.75-.523 1.154-.016.105.06.511.104.705.233.944.744 2.16 1.245 2.88.635.9 1.884 1.051 3.229 1.141.24-.525 1.125-.48 1.706-.346-.691-.27-1.336-.945-1.875-1.529-.615-.676-1.23-1.41-1.261-2.28 1.155 1.604 2.1 3 4.2 3.704 1.59.525 3.45-.254 4.664-1.109.51-.359.811-.93 1.17-1.439 1.35-1.936 1.98-4.71 1.846-7.394-.06-1.111-.06-2.221-.436-2.955-.389-.781-1.695-1.471-2.475-.781-.15-.764.63-1.23 1.545-.96-.66-.854-1.336-1.858-2.266-2.384zM13.58 14.896c.615 1.544 2.724 1.363 4.505 1.323-.084.194-.256.435-.465.515-.57.232-2.145.408-2.937-.012-.506-.27-.824-.873-1.102-1.227-.137-.172-.795-.608-.012-.609zm.164-.87c.893.464 2.52.517 3.731.48.066.267.066.593.068.913-1.55.08-3.386-.304-3.794-1.395h-.005zm6.675-.586c-.473.9-1.145 1.897-2.539 1.928-.023-.284-.045-.735 0-.904 1.064-.103 1.727-.646 2.543-1.017zm-.649-.667c-1.02.66-2.154 1.375-3.824 1.21-.351-.31-.485-1-.14-1.458.181.313.06.885.57.97.944.165 2.038-.579 2.73-.84.42-.713-.046-.976-.42-1.433-.782-.93-1.83-2.1-1.802-3.51.314-.224.346.346.391.45.404.96 1.424 2.175 2.174 3 .18.21.48.39.51.524.092.39-.254.854-.209 1.11zm-13.439-.675c-.314-.184-.393-.99-.768-1.01-.535-.03-.438 1.05-.436 1.68-.37-.33-.435-1.365-.164-1.89-.308-.15-.445.164-.618.284.22-1.59 2.34-.734 1.99.96zM4.713 5.995c-.685.756-.54 2.174-.459 3.188 1.244-.785 2.898.06 2.883 1.394.595-.016.223-.744.115-1.215-.353-1.528.592-3.187.041-4.59-1.064.084-1.939.52-2.578 1.215zm9.12 1.113c.307.562.404 1.148.84 1.57.195.19.574.424.387.95-.045.121-.365.391-.551.45-.674.195-2.254.03-1.721-.81.563.015 1.314.36 1.732-.045-.314-.524-.885-1.53-.674-2.13zm6.198-.013h.068c.33.668.6 1.375 1.004 1.965-.27.628-2.053 1.19-2.023.057.39-.17 1.05-.035 1.395-.25-.193-.556-.48-1.006-.434-1.771zm-6.927-1.617c-1.422-.33-2.131.592-2.56 1.553-.384-.094-.231-.615-.135-.883.255-.701 1.28-1.633 2.119-1.506.359.057.848.386.576.834zM9.642 1.593c-1.56.44-3.56 1.574-4.2 2.974.495-.07.84-.321 1.33-.351.186-.016.428.074.641.015.424-.104.78-1.065 1.102-1.41.31-.345.685-.496.94-.81.167-.09.409-.074.42-.33-.073-.075-.15-.135-.232-.105v.017z'/%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='21.78' height='24' viewBox='1.11 0 21.78 24' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M2.872 24h-.975a3.866 3.866 0 01-.07-.197c-.215-.666-.594-1.49-.692-2.154-.146-.984.78-1.039 1.374-1.465.915-.66 1.635-1.025 2.627-1.62.295-.179 1.182-.624 1.281-.829.201-.408-.345-.982-.49-1.3-.225-.507-.345-.937-.376-1.435-.824-.13-1.455-.627-1.844-1.185-.63-.925-1.066-2.635-.525-3.936.045-.103.254-.305.285-.463.06-.308-.105-.72-.12-1.048-.06-1.692.284-3.15 1.425-3.66.463-1.84 2.113-2.453 3.673-3.367.58-.342 1.224-.562 1.89-.807 2.372-.877 6.027-.712 7.994.783.836.633 2.176 1.97 2.656 2.939 1.262 2.555 1.17 6.825.287 9.934-.12.421-.29 1.032-.533 1.533-.168.35-.689 1.05-.625 1.36.064.314 1.19 1.17 1.432 1.395.434.422 1.26.975 1.324 1.5.07.557-.248 1.336-.41 1.875-.217.721-.436 1.441-.654 2.131H2.87zm11.104-3.54c-.545-.3-1.361-.622-2.065-.757-.87-.164-.78 1.188-.75 1.994.03.643.36 1.316.51 1.744.076.197.09.41.256.449.3.068 1.29-.326 1.575-.479.6-.328 1.064-.844 1.574-1.189.016-.17.016-.34.03-.508a2.648 2.648 0 00-1.095-.277c.314-.15.75-.15 1.035-.332l.016-.193c-.496-.03-.69-.254-1.021-.436zm7.454 2.935a17.78 17.78 0 00.465-1.752c.06-.287.215-.918.178-1.176-.059-.459-.684-.799-1.004-1.086-.584-.525-.95-.975-1.56-1.469-.249.375-.78.615-.983.914 1.447-.689 1.71 2.625 1.141 3.69.09.329.391.45.514.735l-.086.166h1.29c.013 0 .03 0 .044.014zm-6.634-.012c-.05-.074-.1-.135-.15-.209l-.301.195h.45zm2.77 0c.008-.209.018-.404.03-.598-.53.029-.825-.48-1.196-.527-.324-.045-.6.361-1.02.195-.095.105-.183.227-.284.316.154.18.295.375.424.584h.815c.014-.164.135-.285.3-.285.165 0 .284.121.284.27h.66zm2.116 0c-.314-.479-.947-.898-1.68-.555l-.03.541h1.71zm-8.51 0l-.104-.344c-.225-.72-.36-1.26-.405-1.68-.914-.436-1.875-.87-2.654-1.426-.15-.105-1.109-1.35-1.23-1.305-1.739.676-3.359 1.86-4.814 2.984.256.557.48 1.141.69 1.74h8.505zm8.265-2.113c-.029-.512-.164-1.56-.48-1.74-.66-.39-1.846.78-2.34.943.045.15.135.271.15.48.285-.074.645-.029.898.092-.299.03-.629.03-.824.164-.074.195.016.48-.029.764.69.197 1.5.303 2.385.332.164-.227.225-.645.211-1.082zm-4.08-.36c-.044.375.046.51.12.943 1.26.391 1.034-1.74-.135-.959zM8.76 19.5c-.45.457 1.27 1.082 1.814 1.115 0-.29.165-.564.135-.77-.65-.118-1.502-.042-1.945-.347zm5.565.215c0 .043-.061.03-.068.064.58.451 1.014.545 1.802.51.354-.262.67-.563 1.043-.807-.855.074-1.931.607-2.774.23zm3.42-17.726c-1.606-.906-4.35-1.591-6.076-.731-1.38.692-3.27 1.84-3.899 3.292.6 1.402-.166 2.686-.226 4.109-.018.757.36 1.42.391 2.242-.2.338-.825.38-1.26.356-.146-.729-.4-1.549-1.155-1.63-1.064-.116-1.845.764-1.89 1.683-.06 1.08.833 2.864 2.085 2.745.488-.046.608-.54 1.139-.54.285.57-.445.75-.523 1.154-.016.105.06.511.104.705.233.944.744 2.16 1.245 2.88.635.9 1.884 1.051 3.229 1.141.24-.525 1.125-.48 1.706-.346-.691-.27-1.336-.945-1.875-1.529-.615-.676-1.23-1.41-1.261-2.28 1.155 1.604 2.1 3 4.2 3.704 1.59.525 3.45-.254 4.664-1.109.51-.359.811-.93 1.17-1.439 1.35-1.936 1.98-4.71 1.846-7.394-.06-1.111-.06-2.221-.436-2.955-.389-.781-1.695-1.471-2.475-.781-.15-.764.63-1.23 1.545-.96-.66-.854-1.336-1.858-2.266-2.384zM13.58 14.896c.615 1.544 2.724 1.363 4.505 1.323-.084.194-.256.435-.465.515-.57.232-2.145.408-2.937-.012-.506-.27-.824-.873-1.102-1.227-.137-.172-.795-.608-.012-.609zm.164-.87c.893.464 2.52.517 3.731.48.066.267.066.593.068.913-1.55.08-3.386-.304-3.794-1.395h-.005zm6.675-.586c-.473.9-1.145 1.897-2.539 1.928-.023-.284-.045-.735 0-.904 1.064-.103 1.727-.646 2.543-1.017zm-.649-.667c-1.02.66-2.154 1.375-3.824 1.21-.351-.31-.485-1-.14-1.458.181.313.06.885.57.97.944.165 2.038-.579 2.73-.84.42-.713-.046-.976-.42-1.433-.782-.93-1.83-2.1-1.802-3.51.314-.224.346.346.391.45.404.96 1.424 2.175 2.174 3 .18.21.48.39.51.524.092.39-.254.854-.209 1.11zm-13.439-.675c-.314-.184-.393-.99-.768-1.01-.535-.03-.438 1.05-.436 1.68-.37-.33-.435-1.365-.164-1.89-.308-.15-.445.164-.618.284.22-1.59 2.34-.734 1.99.96zM4.713 5.995c-.685.756-.54 2.174-.459 3.188 1.244-.785 2.898.06 2.883 1.394.595-.016.223-.744.115-1.215-.353-1.528.592-3.187.041-4.59-1.064.084-1.939.52-2.578 1.215zm9.12 1.113c.307.562.404 1.148.84 1.57.195.19.574.424.387.95-.045.121-.365.391-.551.45-.674.195-2.254.03-1.721-.81.563.015 1.314.36 1.732-.045-.314-.524-.885-1.53-.674-2.13zm6.198-.013h.068c.33.668.6 1.375 1.004 1.965-.27.628-2.053 1.19-2.023.057.39-.17 1.05-.035 1.395-.25-.193-.556-.48-1.006-.434-1.771zm-6.927-1.617c-1.422-.33-2.131.592-2.56 1.553-.384-.094-.231-.615-.135-.883.255-.701 1.28-1.633 2.119-1.506.359.057.848.386.576.834zM9.642 1.593c-1.56.44-3.56 1.574-4.2 2.974.495-.07.84-.321 1.33-.351.186-.016.428.074.641.015.424-.104.78-1.065 1.102-1.41.31-.345.685-.496.94-.81.167-.09.409-.074.42-.33-.073-.075-.15-.135-.232-.105v.017z'/%3E%3C/svg%3E", + says: ["Jenkins"], +}; diff --git a/packages/react/src/marks/servicenow.ts b/packages/react/src/marks/servicenow.ts new file mode 100644 index 00000000..02c5143a --- /dev/null +++ b/packages/react/src/marks/servicenow.ts @@ -0,0 +1,12 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// ServiceNow is a trademark of ServiceNow, Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://raw.githubusercontent.com/devicons/devicon/381959631eef98bdc7c22b78fd186cb20f415f72/icons/servicenow/servicenow-original.svg. Changes: fitted, swapped (DECISIONS 292, 2.3). +// Unofficial: not its owner's own file (DECISIONS 297). Edits: The one fill #62d84e set to #000000: the green is 1.83:1 on a light card, so the mark is one-colour, black on light grounds and white on dark (DECISIONS 297). +import type { DiagramMark } from "../diagram-core"; + +/** An unofficial mark for ServiceNow for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "ServiceNow". */ +export const servicenow: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='128' height='114.5' viewBox='0 6.75 128 114.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M64.378 6.776c26.175.253 49.579 16.363 59.161 40.723s3.426 52.097-15.562 70.115a12.72 12.72 0 0 1-16.592.968c-16.252-12.095-38.515-12.095-54.768 0a12.686 12.686 0 0 1-16.497-.857C.977 99.635-5.184 71.692 4.576 47.23S38.04 6.738 64.378 6.793m-.377 96.285a31.153 31.153 0 0 0 31.984-31.975C95.985 53.44 81.665 39.12 64 39.12S32.017 53.44 32.017 71.103a31.153 31.153 0 0 0 31.984 31.975'/%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='128' height='114.5' viewBox='0 6.75 128 114.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M64.378 6.776c26.175.253 49.579 16.363 59.161 40.723s3.426 52.097-15.562 70.115a12.72 12.72 0 0 1-16.592.968c-16.252-12.095-38.515-12.095-54.768 0a12.686 12.686 0 0 1-16.497-.857C.977 99.635-5.184 71.692 4.576 47.23S38.04 6.738 64.378 6.793m-.377 96.285a31.153 31.153 0 0 0 31.984-31.975C95.985 53.44 81.665 39.12 64 39.12S32.017 53.44 32.017 71.103a31.153 31.153 0 0 0 31.984 31.975'/%3E%3C/svg%3E", + says: ["ServiceNow"], +}; diff --git a/packages/react/src/marks/sonarqube.ts b/packages/react/src/marks/sonarqube.ts new file mode 100644 index 00000000..f4bae750 --- /dev/null +++ b/packages/react/src/marks/sonarqube.ts @@ -0,0 +1,10 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// SonarQube is a trademark of SonarSource SA. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://www.sonarsource.com/company/press-kit/. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** SonarQube's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "SonarQube", "Sonar". */ +export const sonarqube: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='46.44' height='46.44' viewBox='14.94 14.94 46.44 46.44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M59.86,39.66c-.83,0-1.5-.67-1.5-1.5,0-11.14-9.06-20.2-20.2-20.2-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c12.79,0,23.2,10.41,23.2,23.2,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,61.36c-12.79,0-23.2-10.41-23.2-23.2,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,11.14,9.06,20.2,20.2,20.2.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M44.67,39.66c-.83,0-1.5-.67-1.5-1.5,0-2.76-2.25-5.01-5.01-5.01-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c4.42,0,8.01,3.59,8.01,8.01,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,46.17c-4.42,0-8.01-3.59-8.01-8.01,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,2.76,2.25,5.01,5.01,5.01.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M52.26,39.66c-.83,0-1.5-.67-1.5-1.5,0-6.95-5.65-12.6-12.6-12.6-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c8.6,0,15.6,7,15.6,15.6,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,53.76c-8.6,0-15.6-7-15.6-15.6,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,6.95,5.65,12.6,12.6,12.6.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3C/svg%3E", + says: ["SonarQube","Sonar"], +}; diff --git a/packages/react/src/marks/temporal.ts b/packages/react/src/marks/temporal.ts new file mode 100644 index 00000000..d84a7ced --- /dev/null +++ b/packages/react/src/marks/temporal.ts @@ -0,0 +1,11 @@ +// Generated by packages/react/marks/generate.mjs from marks/manifest.json and the owner's file. Do not edit. +// Temporal is a trademark of Temporal Technologies Inc. It is not under this package's licence, and showing it implies no endorsement (THIRD-PARTY-MARKS.md). +// Source: https://temporal.io/brand. Changes: stripped, fitted (DECISIONS 292, 2.3). +import type { DiagramMark } from "../diagram-core"; + +/** Temporal's own mark for an architecture card (`mark` on ArchitectureNode). The card's words must name the service: "Temporal". */ +export const temporal: DiagramMark = { + onLight: "data:image/svg+xml,%3Csvg width='386.73' height='386.14' viewBox='390.23 391.99 386.73 386.14' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle type='text/css'%3E .st0{fill:%23141414;} %3C/style%3E%3Cpath class='st0' d='M651.14,517.35C642.02,449.03,618.94,392,583.49,392s-58.53,57.03-67.65,125.35 c-68.32,9.12-125.35,32.2-125.35,67.65s57.04,58.53,125.35,67.65c9.12,68.31,32.2,125.35,67.65,125.35s58.53-57.04,67.65-125.35 c68.32-9.12,125.35-32.2,125.35-67.65S719.45,526.47,651.14,517.35z M513.61,632.75c-65.43-9.45-103.59-31.08-103.59-47.75 s38.16-38.3,103.59-47.75c-1.44,15.75-2.19,31.83-2.19,47.75C511.42,600.92,512.17,617.01,513.61,632.75z M583.49,411.53 c16.67,0,38.3,38.16,47.75,103.59c-15.74-1.44-31.83-2.19-47.75-2.19s-32.01,0.75-47.75,2.19 C545.19,449.69,566.82,411.53,583.49,411.53z M653.37,632.75c-3.22,0.47-16.43,2.02-19.77,2.35c-0.33,3.35-1.89,16.55-2.35,19.77 c-9.45,65.43-31.08,103.59-47.75,103.59s-38.3-38.16-47.75-103.59c-0.46-3.22-2.02-16.43-2.35-19.77 c-1.52-15.51-2.44-32.17-2.44-50.1s0.92-34.59,2.44-50.11c15.51-1.52,32.17-2.44,50.1-2.44s34.59,0.92,50.1,2.44 c3.35,0.33,16.55,1.89,19.77,2.35c65.43,9.45,103.6,31.09,103.6,47.75S718.8,623.3,653.37,632.75z'/%3E%3C/svg%3E", + onDark: "data:image/svg+xml,%3Csvg width='386.73' height='386.14' viewBox='390.23 391.99 386.73 386.14' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle type='text/css'%3E .st0{fill:%23F2F2F2;} %3C/style%3E%3Cpath class='st0' d='M651.14,517.35C642.02,449.03,618.94,392,583.49,392s-58.53,57.03-67.65,125.35 c-68.32,9.12-125.35,32.2-125.35,67.65s57.04,58.53,125.35,67.65c9.12,68.31,32.2,125.35,67.65,125.35s58.53-57.04,67.65-125.35 c68.32-9.12,125.35-32.2,125.35-67.65S719.45,526.47,651.14,517.35z M513.61,632.75c-65.43-9.45-103.59-31.08-103.59-47.75 s38.16-38.3,103.59-47.75c-1.44,15.75-2.19,31.83-2.19,47.75C511.42,600.92,512.17,617.01,513.61,632.75z M583.49,411.53 c16.67,0,38.3,38.16,47.75,103.59c-15.74-1.44-31.83-2.19-47.75-2.19s-32.01,0.75-47.75,2.19 C545.19,449.69,566.82,411.53,583.49,411.53z M653.37,632.75c-3.22,0.47-16.43,2.02-19.77,2.35c-0.33,3.35-1.89,16.55-2.35,19.77 c-9.45,65.43-31.08,103.59-47.75,103.59s-38.3-38.16-47.75-103.59c-0.46-3.22-2.02-16.43-2.35-19.77 c-1.52-15.51-2.44-32.17-2.44-50.1s0.92-34.59,2.44-50.11c15.51-1.52,32.17-2.44,50.1-2.44s34.59,0.92,50.1,2.44 c3.35,0.33,16.55,1.89,19.77,2.35c65.43,9.45,103.6,31.09,103.6,47.75S718.8,623.3,653.37,632.75z'/%3E%3C/svg%3E", + says: ["Temporal"], +}; diff --git a/packages/react/src/schema-diagram.tsx b/packages/react/src/schema-diagram.tsx index 6b28a0b3..41b451d5 100644 --- a/packages/react/src/schema-diagram.tsx +++ b/packages/react/src/schema-diagram.tsx @@ -15,7 +15,7 @@ export interface SchemaDiagramProps extends DiagramFigureProps { } /** A database schema (DECISIONS 281): table cards with keys and a few columns; drawn, a line from each foreign key to the key it references. */ -export function SchemaDiagram({ tables, title, heading, legend, ...props }: SchemaDiagramProps) { - const spec = React.useMemo(() => ({ type: "schema" as const, title, heading, legend, tables }), [title, heading, legend, tables]); +export function SchemaDiagram({ tables, motion, title, heading, legend, ...props }: SchemaDiagramProps) { + const spec = React.useMemo(() => ({ type: "schema" as const, title, heading, legend, tables, motion }), [title, heading, legend, tables, motion]); return ; } diff --git a/packages/react/src/sequence-diagram.tsx b/packages/react/src/sequence-diagram.tsx index 62dd6d44..157cbf36 100644 --- a/packages/react/src/sequence-diagram.tsx +++ b/packages/react/src/sequence-diagram.tsx @@ -11,10 +11,12 @@ export interface SequenceDiagramProps extends DiagramFigureProps { participants: SequenceParticipant[]; /** The messages in order, numbered through; `{ band }` names a phase. A reply or a stream is `dashed`. */ steps: SequenceStep[]; + /** Animated only: "Play the run" in the foot sends one packet through every message in order; while it runs it reads "Stop the run". */ + run?: boolean; } /** A sequence diagram (DECISIONS 281): a head and a lifeline a participant, a 56px row a message; stacked, a numbered list. */ -export function SequenceDiagram({ participants, steps, title, heading, legend, ...props }: SequenceDiagramProps) { - const spec = React.useMemo(() => ({ type: "sequence" as const, title, heading, legend, participants, steps }), [title, heading, legend, participants, steps]); +export function SequenceDiagram({ participants, steps, run, motion, title, heading, legend, ...props }: SequenceDiagramProps) { + const spec = React.useMemo(() => ({ type: "sequence" as const, title, heading, legend, participants, steps, motion, run }), [title, heading, legend, participants, steps, motion, run]); return ; } diff --git a/packages/react/src/styles/components.css b/packages/react/src/styles/components.css index 7c44be8c..29ff45ac 100644 --- a/packages/react/src/styles/components.css +++ b/packages/react/src/styles/components.css @@ -4519,6 +4519,30 @@ /* An identifier breaks only at its spaces: each run is kept whole, and is one word for the track's least width; break-word stays the net. */ .basalt-diagram-run { display: inline-block; max-width: 100%; } + /* A service's own mark on an architecture card (DECISIONS 292, 2.1 to 2.7): 16px in the top end corner inside the padding, with nothing behind it, + the owner's file as a background image so its colours cannot be restyled. Its form follows the ground it sits on: a card takes the form for its + theme, the focal card the other theme's, because its fill is the other theme's ink. --_dkm is the theme's switch (empty in dark, `initial` in + light), set on every selector that sets a theme, so a theme nested in another picks its own form. The first line (the kind, or the name on a + card with no kind) keeps space-6 clear of it: the mark plus space-2. A mark is decoration: hidden from assistive technology, never a control. */ + :root, [data-theme="light"], .light { --_dkm: initial; } + [data-theme="dark"], .dark { --_dkm: ; } + @media (prefers-color-scheme: dark) { + :root:not([data-theme="light"]):not(.light) { --_dkm: ; } + } + .basalt-diagram-mark { + --_mf: var(--_dkm) var(--_md); + position: absolute; + inset-block-start: var(--basalt-space-2-5); + inset-inline-end: var(--basalt-space-3); + width: var(--basalt-size-icon-sm); + height: var(--basalt-size-icon-sm); + background: var(--_mf, var(--_ml)) center / contain no-repeat; + pointer-events: none; + } + /* A mark with one form for both grounds may set --_ml alone (the skill writes it once): the dark form falls back to it. */ + .basalt-diagram-node[data-focal] > .basalt-diagram-mark { --_mf: var(--_dkm) var(--_ml); background-image: var(--_mf, var(--_md, var(--_ml))); } + .basalt-diagram-node[data-mark] > .basalt-diagram-mark + :is(.basalt-diagram-kind, .basalt-diagram-name) { padding-inline-end: var(--basalt-space-6); } + /* The focal node: inverted ink; its quiet lines at opacity-amount, at full strength under more contrast. */ .basalt-diagram-node[data-focal] { background: var(--basalt-diagram-focal); border-color: var(--basalt-diagram-focal); } .basalt-diagram-node[data-focal] :is(.basalt-diagram-name, .basalt-diagram-kind, .basalt-diagram-detail, .basalt-diagram-tname, .basalt-diagram-cname, .basalt-diagram-keyseat, .basalt-diagram-ctype, .basalt-diagram-more) { color: var(--basalt-diagram-focal-ink); } @@ -4722,7 +4746,8 @@ /* A stack drawn with no lines (1.13) is dressed as where scripting is off: no line in the key and no key hint (the list is open by script). */ .basalt-diagram[data-bare] :is(.basalt-diagram-entry[data-line], .basalt-diagram-hint) { display: none; } .basalt-diagram-summary { order: 1; max-width: var(--basalt-size-prose-width); color: var(--basalt-text-secondary); font: var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-sans); text-wrap: pretty; } - .basalt-diagram-foot { order: 2; display: flex; } + /* The foot: "View as list", then an animated figure's run button and "Pause animations" (DECISIONS 292, 1.9), space-2 apart and wrapping. */ + .basalt-diagram-foot { order: 2; display: flex; flex-wrap: wrap; gap: var(--basalt-space-2); } /* "View as list": real lists, no box round them. */ .basalt-diagram-list { order: 3; max-width: var(--basalt-size-prose-width); color: var(--basalt-text-secondary); font: var(--basalt-font-weight-regular) var(--basalt-text-sm-size) / var(--basalt-text-sm-line-height) var(--basalt-font-family-sans); } .basalt-diagram-list[hidden] { display: none; } @@ -4828,12 +4853,75 @@ .basalt-diagram .basalt-diagram-node[data-focal] .basalt-diagram-th { border-bottom-color: Canvas; } .basalt-diagram .basalt-diagram-node[data-focal]:focus-visible { outline: var(--basalt-size-focus-width) solid Highlight; } .basalt-diagram .basalt-diagram-node[data-focal][data-shape="decision"] .basalt-diagram-diamond path { fill: CanvasText; stroke: CanvasText; } + /* No mark is drawn, and the first line keeps no padding for one (DECISIONS 292, 2.7): the card's words name the service. */ + .basalt-diagram .basalt-diagram-mark { display: none; } + .basalt-diagram .basalt-diagram-node[data-mark] > .basalt-diagram-mark + :is(.basalt-diagram-kind, .basalt-diagram-name) { padding-inline-end: 0; } } + /* Print: the lines, the key's swatches, a card's mark and every focal node's fill print whatever the reader's "Background graphics" setting + (DECISIONS 292, 2.6; every focal node, with a mark or without, DECISIONS 298). */ @media print { - .basalt-diagram-svg, .basalt-diagram-swatch, .basalt-diagram-arrow { print-color-adjust: exact; } + .basalt-diagram-svg, .basalt-diagram-swatch, .basalt-diagram-arrow, .basalt-diagram-mark, .basalt-diagram-node[data-focal] { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .basalt-diagram-hint { display: none; } } + /* ---- Diagram motion (DECISIONS 292): the entrance, flow, the pulse, the packet, the arrival step and the foot's two buttons ---- + Only on a figure that asks for it (data-motion="animated"); a still figure is the drawing above, unchanged. The motion code is a module of its + own (diagram-motion), loaded on demand; the still engine marks a figure pending in the frame its lines are first drawn (data-entrance). Every + moving part is hidden from assistive technology. Order, back to front: lines; flow cuts, the bead and the dot; labels and their plates; nodes. + Reviewed once (round 65: Neon on the code, Fable on the pixels) and fixed; the fixes have not been reviewed again. */ + /* Pending: the lines are not shown until the figure comes into view, and a sequence's labels are in their quieter ink, still 4.5:1. */ + .basalt-diagram[data-motion="animated"][data-entrance="pending"] .basalt-diagram-edges { visibility: hidden; } + .basalt-diagram[data-motion="animated"]:is([data-entrance="pending"], [data-entrance="running"]) .basalt-diagram-mlabel { color: var(--basalt-text-secondary); } + .basalt-diagram-motion-defs { position: absolute; top: 0; left: 0; overflow: hidden; pointer-events: none; } + /* Flow: cuts of size-cut in the ground colour every size-diagram-flow, only while they move. The bead: a solid segment of the main ink, a hairline + proud of its line on each side, butt ends. Each in a small overlay the size of its own line. */ + .basalt-diagram-flow, .basalt-diagram-bead { position: absolute; overflow: visible; pointer-events: none; } + .basalt-diagram-flow path { fill: none; stroke: var(--_ground); stroke-linecap: butt; } + .basalt-diagram-bead path { fill: none; stroke: var(--basalt-diagram-edge-main); stroke-linecap: butt; } + /* The packet: a round dot of size-dot in the main ink with a hairline ring in the ground colour (a plate, not a glow), moved along offset-path. */ + .basalt-diagram-packet { + position: absolute; + top: 0; + left: 0; + box-sizing: content-box; + width: var(--basalt-size-dot); + height: var(--basalt-size-dot); + border: var(--basalt-size-hairline) solid var(--_ground); + border-radius: var(--basalt-radius-full); + background: var(--basalt-diagram-edge-main); + offset-anchor: center; + offset-rotate: 0deg; + pointer-events: none; + } + /* A card's arrival step while a mover rests on it: its rim diagram-hit, the focal card's fill and edge diagram-focal-hit; in over duration-slower + on ease-out, out over three quarters of it on ease-in. Written to outrank the type selectors. A sequence's number lifts to primary. */ + .basalt-diagram .basalt-diagram-node[data-arrival]:not([data-focal]) { border-color: var(--basalt-diagram-hit); transition: border-color var(--basalt-duration-slower) var(--basalt-ease-out); } + .basalt-diagram .basalt-diagram-node[data-arrival-out]:not([data-focal]) { transition: border-color calc(var(--basalt-duration-slower) * 0.75) var(--basalt-ease-in); } + .basalt-diagram .basalt-diagram-node[data-focal][data-arrival] { background-color: var(--basalt-diagram-focal-hit); border-color: var(--basalt-diagram-focal-hit); transition: background-color var(--basalt-duration-slower) var(--basalt-ease-out), border-color var(--basalt-duration-slower) var(--basalt-ease-out); } + .basalt-diagram .basalt-diagram-node[data-focal][data-arrival-out] { transition: background-color calc(var(--basalt-duration-slower) * 0.75) var(--basalt-ease-in), border-color calc(var(--basalt-duration-slower) * 0.75) var(--basalt-ease-in); } + .basalt-diagram[data-motion="animated"] .basalt-diagram-num { transition: color calc(var(--basalt-duration-slower) * 0.75) var(--basalt-ease-in); } + .basalt-diagram .basalt-diagram-msg[data-arrival] .basalt-diagram-num { color: var(--basalt-text-primary); transition: color var(--basalt-duration-slower) var(--basalt-ease-out); } + @media (pointer: coarse) { + .basalt-diagram-play, .basalt-diagram-pause { min-height: var(--basalt-size-tap-min); } + } + @media (forced-colors: active) { + /* The figure is still in forced colours; a run the reader starts and an app's send still travel, in Highlight. The focal card keeps its edge. */ + .basalt-diagram .basalt-diagram-packet { forced-color-adjust: none; background: Highlight; border-color: Canvas; } + .basalt-diagram .basalt-diagram-node[data-arrival]:not([data-focal]) { border-color: Highlight; } + .basalt-diagram .basalt-diagram-node[data-focal][data-arrival] { background: CanvasText; border-color: CanvasText; } + .basalt-diagram .basalt-diagram-msg[data-arrival] .basalt-diagram-num { color: Highlight; } + .basalt-diagram :is(.basalt-diagram-flow, .basalt-diagram-bead) { display: none; } + } + /* Print, with or without script: every line whole and shown, every label in its resting ink, no mover, and no motion control (a pause or a run + button on paper says nothing). Important, so it outranks a running animation and the pending rule. */ + @media print { + .basalt-diagram :is(.basalt-diagram-play, .basalt-diagram-pause) { display: none !important; } + .basalt-diagram .basalt-diagram-edges { visibility: visible !important; } + .basalt-diagram .basalt-diagram-edge { mask: none !important; } + .basalt-diagram .basalt-diagram-mlabel { color: var(--basalt-text-primary) !important; } + .basalt-diagram :is(.basalt-diagram-flow, .basalt-diagram-bead, .basalt-diagram-packet, .basalt-diagram-motion-defs) { display: none !important; } + } + /* ---- Lit figures, the headline frame and N1's figures (DECISIONS 153) ---- Ported from the owner's approved prototypes, with the council's changes. The lit gradient is three neutral stops that each hold 3:1 on levels 0 to 3; a lit line is one stroke in the top stop; there is no area under a line, no cursor, no halo and no plate on a trend. The implementation hasn't been reviewed. */ diff --git a/packages/react/test/diagram-geometry.mjs b/packages/react/test/diagram-geometry.mjs index 71633861..48a78f76 100644 --- a/packages/react/test/diagram-geometry.mjs +++ b/packages/react/test/diagram-geometry.mjs @@ -115,9 +115,24 @@ function inspect(P, selector) { const aH = Math.abs(p1.y - p2.y) < 0.01, bH = Math.abs(q1.y - q2.y) < 0.01; if (aH === bH) continue; const [h1, h2, v1, v2] = aH ? [p1, p2, q1, q2] : [q1, q2, p1, p2]; - if (v1.x > Math.min(h1.x, h2.x) + 0.75 && v1.x < Math.max(h1.x, h2.x) - 0.75 && h1.y > Math.min(v1.y, v2.y) + 0.75 && h1.y < Math.max(v1.y, v2.y) - 0.75) crossings.push({ a: lines[x], b: lines[y], x: v1.x, y: h1.y, under: aH ? lines[y] : lines[x] }); + if (v1.x > Math.min(h1.x, h2.x) + 0.75 && v1.x < Math.max(h1.x, h2.x) - 0.75 && h1.y > Math.min(v1.y, v2.y) + 0.75 && h1.y < Math.max(v1.y, v2.y) - 0.75) crossings.push({ a: lines[x], b: lines[y], x: v1.x, y: h1.y, h: aH ? lines[x] : lines[y], v: aH ? lines[y] : lines[x] }); } - const cuts = crossings.map((c) => { const path = drawing.querySelector(`.${P}-edge[data-edge="${c.under.i}"] .${P}-line`); return Boolean(path?.getAttribute("mask")); }); + // A cut is a hole in a line's mask over the crossing's point. Which lines are cut there, read from the masks themselves: so a cut at the wrong + // place, or on the wrong line, is seen. The rule (1.7, 4): the horizontal run is on top, and a traced line is on top of an untraced one. + const cutAt = (line, x, y) => { + const ref = drawing.querySelector(`.${P}-edge[data-edge="${line.i}"] .${P}-line`)?.getAttribute("mask")?.match(/url\(#([^)]+)\)/)?.[1]; + const mask = ref && drawing.querySelector(`mask[id="${ref}"]`); + if (!mask) return false; + return [...mask.querySelectorAll("rect[fill='black']")].some((r) => { const rx = +r.getAttribute("x"), ry = +r.getAttribute("y"), rw = +r.getAttribute("width"), rh = +r.getAttribute("height"); return x > rx && x < rx + rw && y > ry && y < ry + rh; }); + }; + const lit = (line) => drawing.querySelector(`.${P}-edge[data-edge="${line.i}"]`).hasAttribute("data-lit"); + const cuts = crossings.map((c) => { + const under = lit(c.v) && !lit(c.h) ? c.h : c.v; + const over = under === c.h ? c.v : c.h; + const ok = cutAt(under, c.x, c.y) && !cutAt(over, c.x, c.y); + if (!ok) problems.push(`the crossing of ${c.h.from} to ${c.h.to} and ${c.v.from} to ${c.v.to} at (${c.x.toFixed(1)}, ${c.y.toFixed(1)}) is not cut on ${under.from} to ${under.to} alone`); + return { ok, under: `${under.from}>${under.to}` }; + }); // ---- labels ---- for (const lab of labels) { const G = grow(lab, 0); @@ -137,7 +152,7 @@ function inspect(P, selector) { layout, type, width: fig.clientWidth, problems: [...new Set(problems)], lines: lines.map((l) => ({ i: l.i, from: l.from, to: l.to, pts: l.pts, width: l.width })), labels: labels.map((l) => ({ i: l.i, text: l.text })), - crossings: crossings.map((c, k) => ({ a: `${c.a.from}>${c.a.to}`, b: `${c.b.from}>${c.b.to}`, cut: cuts[k] })), + crossings: crossings.map((c, k) => ({ a: `${c.a.from}>${c.a.to}`, b: `${c.b.from}>${c.b.to}`, cut: cuts[k].ok, under: cuts[k].under })), nodes: nodes.map((n) => ({ id: n.id, shape: n.shape, w: n.r - n.l, h: n.b - n.t, l: n.l, t: n.t })), }; } diff --git a/packages/react/test/diagram-motion-fixture.mjs b/packages/react/test/diagram-motion-fixture.mjs new file mode 100644 index 00000000..c0e9fd72 --- /dev/null +++ b/packages/react/test/diagram-motion-fixture.mjs @@ -0,0 +1,21 @@ +// The animated examples (DECISIONS 292): CIMIP's five diagrams with what fixtures/diagram-motion.json adds to each, and the kit. Marks stay bundled ids, +// as the HTML skill writes them; React's side turns an id into its module (marks/). +import fs from "node:fs"; + +const read = (name) => JSON.parse(fs.readFileSync(new URL(`./fixtures/${name}`, import.meta.url), "utf8")); +export const STILL = read("cimip-diagrams.json"); +export const MOTION = read("diagram-motion.json"); + +/** One CIMIP figure, animated: a copy of the still fixture with its motion keys, its flow lines and its cards' marks. */ +export function animated(key) { + const { flow = [], marks = {}, ...keys } = MOTION.cimip[key]; + const spec = structuredClone(STILL[key]); + Object.assign(spec, keys); + if (spec.edges) spec.edges = spec.edges.map((e) => (flow.some(([f, t]) => f === e.from && t === e.to) ? { ...e, flow: true } : e)); + if (spec.nodes) spec.nodes = spec.nodes.map((n) => (marks[n.id] ? { ...n, mark: marks[n.id] } : n)); + return spec; +} + +/** Every figure a page of the animated examples draws: the five, then the kit. */ +export const FIGURES = ["architecture", "flowchart", "dataFlow", "sequence", "schema"]; +export const kit = () => structuredClone(MOTION.kit); diff --git a/packages/react/test/diagram-motion.test.mjs b/packages/react/test/diagram-motion.test.mjs new file mode 100644 index 00000000..23f13c2c --- /dev/null +++ b/packages/react/test/diagram-motion.test.mjs @@ -0,0 +1,924 @@ +// Diagram motion and service marks (DECISIONS 292; review round 65), in Chromium against the built package with the real stylesheet. Section 7 of the +// decision is the list this file follows: still untouched, nothing ever missing, settling, measured again, the hold and the reader (all "first"), then +// one mover, geometry, timing as numbers, tracing and the modes. Time is driven by seeking the figure's own animations (every part of the entrance and +// of a loop is an animation on an element of the figure, the rests and the entrance's end included), never by waiting, and no test asserts a +// wall-clock duration (one waits a lower bound, which a slow machine cannot break). Written when test runs were paused (DECISIONS 271); fixed and run when +// the owner lifted the skip for diagrams (DECISIONS 298), with the checks Neon's review found missing added at the end. +import assert from "node:assert/strict"; +import fs from "node:fs"; +import path from "node:path"; +import { after, before, describe, test } from "node:test"; + +import { fixturePage, launch, pixels, pkg } from "./support.mjs"; + +const P = "basalt-diagram"; +const MOTION = JSON.parse(fs.readFileSync(path.join(pkg, "test", "fixtures", "diagram-motion.json"), "utf8")); +const MANIFEST = JSON.parse(fs.readFileSync(path.join(pkg, "marks", "manifest.json"), "utf8")); +const font = (file) => fs.readFileSync(path.join(pkg, "dist", "fonts", file)).toString("base64"); +const FONTS = `@font-face{font-family:"Geist";src:url(data:font/woff2;base64,${font("Geist-Variable.woff2")}) format("woff2");font-weight:100 900}@font-face{font-family:"Geist Mono";src:url(data:font/woff2;base64,${font("GeistMono-Variable.woff2")}) format("woff2");font-weight:100 900}`; +const PAGE = `body{background:var(--basalt-surface-page);margin:0;padding:16px;box-sizing:border-box} #root{max-width:1104px;margin:0 auto}`; +const exportName = (id) => id.replace(/-([a-z0-9])/g, (_, c) => c.toUpperCase()); + +let browser; +before(async () => { browser = await launch(); }); +after(async () => { await browser?.close(); }); + +// The host: `window.__set(list)` draws a list of { key, spec, gap } (a spec's `type` picks the component, the rest are its props); every figure has the id +// `fig-`, and `gap` puts that much page above it (a figure below the fold). Marks are bundled ids, turned into their modules here, as an app imports them. +const HOST = ` +import still from "./test/fixtures/cimip-diagrams.json"; +import motion from "./test/fixtures/diagram-motion.json"; +${MANIFEST.marks.map((m) => `import { ${exportName(m.id)} } from "./dist/marks/${m.id}.js";`).join("\n")} +const MARKS = { ${MANIFEST.marks.map((m) => `"${m.id}": ${exportName(m.id)}`).join(", ")} }; +const C = { architecture: B.ArchitectureDiagram, flowchart: B.FlowchartDiagram, "data-flow": B.DataFlowDiagram, sequence: B.SequenceDiagram, schema: B.SchemaDiagram }; +const animated = (key, extra = {}) => { + const { flow = [], marks = {}, ...keys } = motion.cimip[key]; + const spec = { ...structuredClone(still[key]), ...keys, ...extra }; + if (spec.edges) spec.edges = spec.edges.map((e) => (flow.some(([f, t]) => f === e.from && t === e.to) ? { ...e, flow: true } : e)); + if (spec.nodes) spec.nodes = spec.nodes.map((n) => (marks[n.id] ? { ...n, mark: marks[n.id] } : n)); + return spec; +}; +window.SPECS = { still, motion, animated, kit: () => structuredClone(motion.kit) }; +const withMarks = (spec) => (spec.nodes ? { ...spec, nodes: spec.nodes.map((n) => (typeof n.mark === "string" ? { ...n, mark: MARKS[n.mark] } : n)) } : spec); +class Catch extends React.Component { constructor(p) { super(p); this.state = { error: null }; } static getDerivedStateFromError(error) { return { error }; } render() { return this.state.error ?

{String(this.state.error.message)}

: this.props.children; } } +function Host() { + const [list, setList] = React.useState([]); + window.__set = (next) => flushSync(() => setList(next)); + return
{list.map(({ key, spec, gap = 0 }) => { const { type, ...props } = withMarks(spec); const X = C[type]; return
; })}
; +} +createRoot(document.getElementById("root")).render();`; + +const frames = (page, n = 3) => page.evaluate((n) => new Promise((resolve) => { let k = 0; const step = () => (++k >= n ? resolve() : requestAnimationFrame(step)); requestAnimationFrame(step); }), n); + +async function motionPage({ theme = "dark", viewport = { width: 1440, height: 1000 }, fonts = true, ...rest } = {}) { + const { page, errors } = await fixturePage(browser, HOST, { theme, viewport, standards: true, ...rest }); + const warnings = []; + page.on("console", (m) => { if (m.type() === "warning" || m.type() === "error") warnings.push(m.text()); }); + await page.addStyleTag({ content: `${fonts ? FONTS : ""}${PAGE}` }); + if (fonts) await page.evaluate(() => document.fonts.ready); + return { page, errors, warnings }; +} +/** + * The same host built as an app's development build (NODE_ENV "development"): the fixtures are production builds, where the development errors and + * warnings (DECISIONS 292, 4.1) are dropped. The page and its stylesheet are the fixture page's; this bundle is built once and then reused. + */ +let devBundle; +async function devPage({ theme = "dark", viewport = { width: 1440, height: 1000 } } = {}) { + const { page, errors } = await fixturePage(browser, "", { theme, viewport, standards: true }); + const warnings = []; + page.on("console", (m) => { if (m.type() === "warning" || m.type() === "error") warnings.push(m.text()); }); + await page.addStyleTag({ content: `${FONTS}${PAGE}` }); + devBundle ??= (async () => { + const esbuild = await import("esbuild"); + const built = await esbuild.build({ + stdin: { contents: `import * as React from "react"; import { createRoot } from "react-dom/client"; import { flushSync } from "react-dom"; import * as B from "./dist/index.js"; ${HOST}`, resolveDir: pkg, loader: "tsx" }, + bundle: true, format: "iife", write: false, jsx: "automatic", platform: "browser", logLevel: "silent", define: { "process.env.NODE_ENV": '"development"' }, + }); + return built.outputFiles[0].text; + })(); + await page.addScriptTag({ content: await devBundle }); + await page.evaluate(() => document.fonts.ready); + return { page, errors, warnings }; +} +/** Draws figures: each item is [key, spec expression evaluated in the page, gap]. */ +async function draw(page, items) { + await page.evaluate((items) => window.__set(items.map(([key, expr, gap]) => ({ key, gap, spec: new Function("S", `return ${expr}`)(window.SPECS) }))), items); + await frames(page, 4); +} +const state = (page, key) => page.evaluate((key) => document.getElementById(`fig-${key}`)?.getAttribute("data-entrance") ?? null, key); +/** Waits (in frames, not time) until a figure's entrance is in a state: the motion module is imported on demand. */ +const until = (page, test, arg) => page.waitForFunction(test, arg, { timeout: 5000, polling: "raf" }); +const untilState = (page, key, value) => until(page, ([key, value]) => document.getElementById(`fig-${key}`)?.getAttribute("data-entrance") === value, [key, value]); +/** Every animation of a figure's entrance and loops is on an element of the figure: seek them all to `ms` after the entrance's start, paused. */ +const seek = (page, key, ms) => page.evaluate(([key, ms]) => { + const fig = document.getElementById(`fig-${key}`); + for (const a of fig.getAnimations({ subtree: true })) if (a.effect?.getComputedTiming().iterations !== Infinity) { a.pause(); a.currentTime = ms; } +}, [key, ms]); +const running = (page, key) => page.evaluate((key) => document.getElementById(`fig-${key}`).getAnimations({ subtree: true }).filter((a) => a.playState === "running" || a.playState === "paused").length, key); + +describe("still is untouched (first)", () => { + test("with motion absent, no figure is pending, no motion part or control is drawn, and no line is masked", async () => { + const { page, errors } = await motionPage(); + await draw(page, ["architecture", "flowchart", "dataFlow", "sequence", "schema"].map((k) => [k, `S.still.${k}`])); + const seen = await page.evaluate(() => [...document.querySelectorAll("figure")].map((f) => ({ + entrance: f.getAttribute("data-entrance"), motion: f.getAttribute("data-motion"), + parts: f.querySelectorAll(".basalt-diagram-flow, .basalt-diagram-bead, .basalt-diagram-packet, .basalt-diagram-motion-defs, .basalt-diagram-play, .basalt-diagram-pause, [mask^='url(#dg']").length, + foot: f.querySelector(".basalt-diagram-foot").children.length, + }))); + for (const s of seen) assert.deepEqual(s, { entrance: null, motion: null, parts: 0, foot: 1 }); + assert.deepEqual(errors, []); + }); + + test("animated under reduced motion draws the same pixels as still, in both themes", async () => { + for (const theme of ["dark", "light"]) { + for (const key of ["architecture", "dataFlow", "sequence"]) { + const shots = []; + // The same data, marks included, drawn still and drawn animated under reduced motion. + for (const expr of [`{ ...S.animated("${key}"), motion: "still" }`, `S.animated("${key}")`]) { + const { page } = await motionPage({ theme, reducedMotion: "reduce" }); + await draw(page, [[key, expr]]); + await frames(page, 6); + shots.push(await pixels(page, await page.locator(`#fig-${key} .basalt-diagram-drawing`).boundingBox())); + await page.close(); + } + assert.deepEqual(shots[1], shots[0], `${theme} ${key}: reduced motion is the still drawing`); + } + } + }); + + test("a still diagram's export loads no motion code and no mark (the size gate is bundle.test.mjs's)", async () => { + const { measureExport } = await import("./export-sizes.mjs"); + const esbuild = (await import("esbuild")).default ?? (await import("esbuild")); + for (const name of ["ArchitectureDiagram", "DataFlowDiagram", "FlowchartDiagram", "SequenceDiagram", "SchemaDiagram"]) { + const result = await esbuild.build({ + stdin: { contents: `import { ${name} } from "./dist/index.js"; console.log(${name});`, resolveDir: pkg, loader: "js" }, + bundle: true, minify: true, format: "esm", write: false, external: ["react", "react-dom", "react/jsx-runtime"], logLevel: "silent", + plugins: [{ name: "on-demand", setup(build) { build.onResolve({ filter: /.*/ }, (args) => (args.kind === "dynamic-import" ? { path: args.path, external: true } : undefined)); } }], + }); + const code = result.outputFiles[0].text; + assert.ok(!code.includes("Play the run") && !code.includes("speed-diagram-trace"), `${name} carries the motion code`); + assert.ok(!code.includes("data:image/svg+xml"), `${name} carries a mark`); + assert.ok(code.includes("diagram-motion"), `${name} imports the motion module on demand`); + assert.ok((await measureExport(name)).bytes > 0); + } + }); +}); + +describe("nothing is ever missing (first)", () => { + test("print from the top of a page of unseen animated figures: every line, head and label present, every label at rest, no mover", async () => { + const { page } = await motionPage(); + await draw(page, ["architecture", "flowchart", "dataFlow", "sequence", "schema"].map((k, i) => [k, `S.animated("${k}")`, i ? 1400 : 2000])); + for (const k of ["architecture", "sequence"]) assert.equal(await state(page, k), "pending"); + await page.emulateMedia({ media: "print" }); + await frames(page, 4); + const seen = await page.evaluate(() => [...document.querySelectorAll("figure")].map((f) => { + const edges = f.querySelector(".basalt-diagram-edges"); + const primary = getComputedStyle(f).getPropertyValue("--basalt-text-primary").trim(); + const probe = document.createElement("span"); probe.style.color = primary; f.append(probe); const rest = getComputedStyle(probe).color; probe.remove(); + return { + state: f.getAttribute("data-entrance"), + edges: edges ? getComputedStyle(edges).visibility : "none", + masked: [...f.querySelectorAll(".basalt-diagram-edge")].filter((g) => getComputedStyle(g).maskImage !== "none" && getComputedStyle(g).mask !== "none").length, + labels: [...f.querySelectorAll(".basalt-diagram-mlabel")].filter((l) => getComputedStyle(l).color !== rest).length, + movers: [...f.querySelectorAll(".basalt-diagram-flow, .basalt-diagram-bead, .basalt-diagram-packet")].filter((x) => getComputedStyle(x).display !== "none").length, + }; + })); + for (const s of seen) { + assert.notEqual(s.state, "pending"); + if (s.edges !== "none") assert.equal(s.edges, "visible"); + assert.equal(s.masked, 0); + assert.equal(s.labels, 0); + assert.equal(s.movers, 0); + } + }); + + test("the same in the print media with script stopped after the first paint: the stylesheet alone shows the lines", async () => { + const { page } = await motionPage(); + await draw(page, [["sequence", `S.animated("sequence")`, 2000]]); + assert.equal(await state(page, "sequence"), "pending"); + assert.equal(await page.evaluate(() => getComputedStyle(document.querySelector("#fig-sequence .basalt-diagram-edges")).visibility), "hidden", "pending hides the lines on screen"); + // Script stopped after the first paint: the page as painted, opened again with script off, so nothing can settle it. Only the print stylesheet stands + // between the pending attribute and paper. + const html = await page.evaluate(() => `${document.documentElement.outerHTML}`); + const context = await browser.newContext({ javaScriptEnabled: false, viewport: { width: 1440, height: 1000 } }); + const still = await context.newPage(); + await still.setContent(html); + assert.equal(await still.evaluate(() => document.getElementById("fig-sequence").getAttribute("data-entrance")), "pending"); + await still.emulateMedia({ media: "print" }); + const seen = await still.evaluate(() => { const f = document.getElementById("fig-sequence"); return { edges: getComputedStyle(f.querySelector(".basalt-diagram-edges")).visibility, lines: [...f.querySelectorAll(".basalt-diagram-svg .basalt-diagram-line")].filter((l) => getComputedStyle(l).visibility !== "visible").length, labels: [...f.querySelectorAll(".basalt-diagram-mlabel")].filter((l) => getComputedStyle(l).visibility !== "visible").length }; }); + assert.deepEqual(seen, { edges: "visible", lines: 0, labels: 0 }); + await context.close(); + }); + + test("in the print media every mark and every focal node, with a mark or without, compute print-color-adjust: exact (DECISIONS 298)", async () => { + const { page } = await motionPage(); + await draw(page, [["kit", `{ ...S.kit(), nodes: S.kit().nodes.map((n) => (n.id === "github" ? { ...n, focal: true } : n)), legend: { ...S.kit().legend, focal: "The start" } }`], ["arch", `{ ...S.still.architecture }`]]); + await page.emulateMedia({ media: "print" }); + const seen = await page.evaluate(() => ({ + marks: [...document.querySelectorAll(".basalt-diagram-mark")].map((m) => getComputedStyle(m).printColorAdjust), + focalMarked: getComputedStyle(document.querySelector("#fig-kit .basalt-diagram-node[data-focal]")).printColorAdjust, + focalBare: getComputedStyle(document.querySelector("#fig-arch .basalt-diagram-node[data-focal]")).printColorAdjust, + lines: getComputedStyle(document.querySelector("#fig-kit .basalt-diagram-svg")).printColorAdjust, + })); + assert.ok(seen.marks.length >= 6 && seen.marks.every((v) => v === "exact"), JSON.stringify(seen.marks)); + assert.equal(seen.focalMarked, "exact"); + assert.equal(seen.focalBare, "exact"); + assert.equal(seen.lines, "exact"); + }); + + test("a stacked sequence and a stacked schema at 390: no pending state, no motion control, every word present", async () => { + const { page } = await motionPage({ viewport: { width: 390, height: 900 } }); + await draw(page, [["sequence", `S.animated("sequence")`], ["schema", `S.animated("schema")`]]); + await frames(page, 10); + for (const k of ["sequence", "schema"]) { + const seen = await page.evaluate((k) => { const f = document.getElementById(`fig-${k}`); return { layout: f.dataset.layout, state: f.getAttribute("data-entrance"), controls: f.querySelectorAll(".basalt-diagram-play, .basalt-diagram-pause").length, hidden: [...f.querySelectorAll(".basalt-diagram-drawing *")].filter((e) => e.textContent.trim() && getComputedStyle(e).visibility === "hidden").length }; }, k); + assert.deepEqual(seen, { layout: "stacked", state: null, controls: 0, hidden: 0 }); + } + }); + + test("from the frame the lines are first drawn to the entrance's end, no node, label, key or summary is under opacity 1, and no word is under 4.5:1", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`], ["sequence", `S.animated("sequence")`, 200]]); + for (const key of ["architecture", "sequence"]) { + // An entrance starts when two fifths of the figure is in view: the sequence is below the fold until it is scrolled to. + await page.locator(`#fig-${key}`).scrollIntoViewIfNeeded(); + await untilState(page, key, "running"); + for (const ms of [0, 300, 900, 1800, 2600, 3400, 4300]) { + await seek(page, key, ms); + const seen = await page.evaluate((key) => { + const f = document.getElementById(`fig-${key}`); + const quiet = (el) => { for (let e = el; e && e !== f.parentElement; e = e.parentElement) if (Number(getComputedStyle(e).opacity) < 1) return true; return false; }; + const low = [...f.querySelectorAll(".basalt-diagram-node, .basalt-diagram-label, .basalt-diagram-key, .basalt-diagram-summary, .basalt-diagram-mlabel, .basalt-diagram-num")].filter(quiet).length; + // Every word as painted at this moment (its colour, mid-lift included, and every opacity above it) against the ground it sits on: the + // fills above it, translucent ones (a key chip's) laid over what is under them, on the page. Drawn into a pixel, so any colour space reads as + // the sRGB the screen shows. + const c = document.createElement("canvas"); c.width = c.height = 1; const ctx = c.getContext("2d", { willReadFrequently: true }); + const paint = (ground, ink, alpha) => { ctx.globalAlpha = 1; for (const layer of ground) { ctx.fillStyle = layer; ctx.fillRect(0, 0, 1, 1); } if (ink) { ctx.globalAlpha = alpha; ctx.fillStyle = ink; ctx.fillRect(0, 0, 1, 1); } return [...ctx.getImageData(0, 0, 1, 1).data.slice(0, 3)]; }; + const L = (rgb) => { const f2 = (v) => { const x = v / 255; return x <= 0.04045 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4; }; return 0.2126 * f2(rgb[0]) + 0.7152 * f2(rgb[1]) + 0.0722 * f2(rgb[2]); }; + const ratio = (a, b) => { const [x, y] = [L(a), L(b)].sort((m, n) => n - m); return (x + 0.05) / (y + 0.05); }; + const groundOf = (el) => { const layers = []; for (let e = el; e; e = e.parentElement) { const bg = getComputedStyle(e).backgroundColor; if (bg && !/rgba\(0, 0, 0, 0\)|transparent/.test(bg)) layers.unshift(bg); } return layers; }; + const words = [...f.querySelectorAll("*")].filter((el) => [...el.childNodes].some((n) => n.nodeType === 3 && n.textContent.trim()) && el.getClientRects().length && el.getBoundingClientRect().width > 1 && el.getBoundingClientRect().height > 1 && getComputedStyle(el).visibility === "visible"); + const weak = []; + for (const el of words) { + let alpha = 1; for (let e = el; e && e !== f.parentElement; e = e.parentElement) alpha *= Number(getComputedStyle(e).opacity); + const ground = groundOf(el); + const r = ratio(paint(ground, getComputedStyle(el).color, alpha), paint(ground, null, 1)); + if (r < 4.5) weak.push(`${el.className || el.tagName} "${el.textContent.trim().slice(0, 24)}" ${r.toFixed(2)}`); + } + return { low, weak, words: words.length }; + }, key); + assert.equal(seen.low, 0, `${key} at ${ms}ms`); + assert.ok(seen.words > 10, `${key}: ${seen.words} words read`); + assert.deepEqual(seen.weak, [], `${key} at ${ms}ms: words under 4.5:1`); + } + } + }); + + test("a server-rendered figure hydrated in view: nothing that was painted is hidden afterwards", async () => { + // The server's HTML: the words and no lines. What it painted is every word; after hydration and the first draw, every one is still painted. + const { createRequire } = await import("node:module"); + const require = createRequire(import.meta.url); + const React = require("react"); + const { renderToString } = require("react-dom/server"); + const { pathToFileURL } = await import("node:url"); + const B = await import(pathToFileURL(path.join(pkg, "dist", "index.js")).href); + const still = JSON.parse(fs.readFileSync(path.join(pkg, "test", "fixtures", "cimip-diagrams.json"), "utf8")).sequence; + const { type, ...props } = { ...still, ...MOTION.cimip.sequence }; + const html = renderToString(React.createElement(B.SequenceDiagram, { id: "fig-ssr", ...props })); + const { page, errors } = await fixturePage(browser, "", { theme: "dark", viewport: { width: 1440, height: 1000 }, standards: true }); + await page.addStyleTag({ content: `${FONTS}${PAGE}` }); + await page.evaluate((html) => { document.getElementById("root").innerHTML = html; }, html); + await page.evaluate(() => document.fonts.ready); + const WORDS = "#fig-ssr .basalt-diagram-mlabel, #fig-ssr .basalt-diagram-name, #fig-ssr .basalt-diagram-note, #fig-ssr .basalt-diagram-num, #fig-ssr .basalt-diagram-summary"; + const painted = (sel) => page.evaluate((sel) => [...document.querySelectorAll(sel)].map((e) => { let o = 1; for (let x = e; x; x = x.parentElement) o *= Number(getComputedStyle(x).opacity); return { text: e.textContent.trim(), shown: getComputedStyle(e).visibility === "visible" && o === 1 && e.getClientRects().length > 0 }; }), sel); + const before = await painted(WORDS); + assert.ok(before.length > 10 && before.every((w) => w.shown), "the server's HTML paints every word"); + const esbuild = await import("esbuild"); + const built = await esbuild.build({ + stdin: { contents: `import * as React from "react"; import { hydrateRoot } from "react-dom/client"; import * as B from "./dist/index.js"; window.recovered = []; hydrateRoot(document.getElementById("root"), , { onRecoverableError: (e) => window.recovered.push(String(e.message)) });`, resolveDir: pkg, loader: "tsx" }, + bundle: true, format: "iife", write: false, jsx: "automatic", platform: "browser", logLevel: "silent", define: { "process.env.NODE_ENV": '"production"' }, + }); + await page.addScriptTag({ content: built.outputFiles[0].text }); + await until(page, () => document.querySelector("#fig-ssr .basalt-diagram-svg .basalt-diagram-line")); + // Through the entrance: its first frame, and seeked across it. + for (const ms of [null, 0, 600, 2000, 4300]) { + if (ms !== null) { await untilState(page, "ssr", "running"); await seek(page, "ssr", ms); } + await frames(page, 2); + const after = await painted(WORDS); + assert.deepEqual(after.map((w) => w.text), before.map((w) => w.text), "the same words"); + assert.deepEqual(after.filter((w) => !w.shown).map((w) => w.text), [], `nothing painted is hidden${ms === null ? " at the first draw" : ` at ${ms}ms`}`); + } + assert.deepEqual(await page.evaluate(() => window.recovered), [], "hydration recovered from nothing"); + assert.deepEqual(errors, []); + }); +}); + +describe("settling (first)", () => { + const triggers = { + hover: (page) => page.hover("#fig-architecture [data-node='alb']"), + focus: (page) => page.evaluate(() => document.querySelector("#fig-architecture [data-node][tabindex='0']").focus()), + key: async (page) => { await page.evaluate(() => document.querySelector("#fig-architecture [data-node][tabindex='0']").focus()); await page.keyboard.press("ArrowRight"); }, + list: (page) => page.click("#fig-architecture .basalt-diagram-toggle"), + pause: (page) => page.click("#fig-architecture .basalt-diagram-pause"), + hold: (page) => page.evaluate(() => document.documentElement.setAttribute("data-loops", "held")), + beforeprint: (page) => page.evaluate(() => window.dispatchEvent(new Event("beforeprint"))), + print: (page) => page.emulateMedia({ media: "print" }), + "reduced motion": (page) => page.emulateMedia({ reducedMotion: "reduce" }), + "forced colours": (page) => page.emulateMedia({ forcedColors: "active" }), + "new data": (page) => page.evaluate(() => window.__set([{ key: "architecture", spec: { ...window.SPECS.animated("architecture"), edges: [...window.SPECS.animated("architecture").edges, { from: "browser", to: "cw" }] } }])), + "motion still": (page) => page.evaluate(() => window.__set([{ key: "architecture", spec: { ...window.SPECS.animated("architecture"), motion: "still" } }])), + }; + for (const [name, act] of Object.entries(triggers)) { + test(`mid-entrance, ${name} settles it in one frame with no animation of it left`, async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`]]); + await untilState(page, "architecture", "running"); + await seek(page, "architecture", 1000); + await act(page); + await frames(page, 2); + const seen = await page.evaluate(() => { const f = document.getElementById("fig-architecture"); return { state: f.getAttribute("data-entrance"), masks: f.querySelectorAll(".basalt-diagram-edge[mask]").length, defs: f.querySelectorAll(".basalt-diagram-motion-defs").length }; }); + assert.notEqual(seen.state, "running", name); + assert.notEqual(seen.state, "pending", name); + assert.equal(seen.masks, 0, name); + assert.equal(seen.defs, 0, name); + }); + } + + test("a re-measure after settling starts no entrance", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`]]); + await untilState(page, "architecture", "running"); + await page.hover("#fig-architecture [data-node='alb']"); + await page.setViewportSize({ width: 1300, height: 1000 }); + await frames(page, 6); + assert.equal(await state(page, "architecture"), "done"); + assert.equal(await page.evaluate(() => document.querySelectorAll("#fig-architecture .basalt-diagram-edge[mask]").length), 0); + }); +}); + +describe("measured again (first)", () => { + // The faces are held back: the page asks for them from an address the test answers when it says, so the re-measure of document.fonts.ready lands then. + async function heldFaces() { + const { page, errors } = await motionPage({ fonts: false }); + let release; + const gate = new Promise((resolve) => { release = resolve; }); + await page.route("https://faces.invalid/**", async (route) => { await gate; route.fulfill({ body: fs.readFileSync(path.join(pkg, "dist", "fonts", route.request().url().endsWith("mono") ? "GeistMono-Variable.woff2" : "Geist-Variable.woff2")), contentType: "font/woff2" }); }); + await page.addStyleTag({ content: `@font-face{font-family:"Geist";src:url(https://faces.invalid/sans) format("woff2");font-weight:100 900}@font-face{font-family:"Geist Mono";src:url(https://faces.invalid/mono) format("woff2");font-weight:100 900}` }); + return { page, errors, release: async () => { release(); await page.evaluate(() => document.fonts.ready); await frames(page, 6); } }; + } + + test("a figure below the fold is pending before the faces arrive and after; scrolled into view, it plays. On a page of the five, every one", async () => { + const { page, release } = await heldFaces(); + const keys = ["architecture", "flowchart", "dataFlow", "sequence", "schema"]; + await draw(page, keys.map((k) => [k, `S.animated("${k}")`, 1600])); + for (const k of keys) assert.equal(await state(page, k), "pending", `${k} before the faces`); + await release(); + for (const k of keys) assert.equal(await state(page, k), "pending", `${k} after the faces`); + for (const k of keys) { + await page.evaluate((k) => document.getElementById(`fig-${k}`).scrollIntoView({ block: "center" }), k); + await untilState(page, k, "running"); + } + }); + + test("a figure in view at load has started before the faces arrive, and is still running after, on the lines just drawn", async () => { + const { page, release } = await heldFaces(); + await draw(page, [["dataFlow", `S.animated("dataFlow")`]]); + await untilState(page, "dataFlow", "running"); + await page.evaluate(() => { for (const a of document.getElementById("fig-dataFlow").getAnimations({ subtree: true })) a.pause(); }); + await release(); + assert.equal(await state(page, "dataFlow"), "running"); + // Each masked line's reveal is a copy of the path drawn now. + const same = await page.evaluate(() => [...document.querySelectorAll("#fig-dataFlow .basalt-diagram-edge[mask]")].every((g) => { const id = g.getAttribute("mask").slice(5, -1); const copy = document.getElementById(id)?.querySelector("path"); return copy && copy.getAttribute("d") === g.querySelector(".basalt-diagram-line").getAttribute("d"); })); + assert.ok(same); + }); + + test("seeked mid-entrance, then 24px narrower: every whole line is whole, none is back at its start, the clock is where it was, and it ends inside the limit", async () => { + const { page } = await motionPage(); + await page.setViewportSize({ width: 1440, height: 1000 }); + await draw(page, [["architecture", `S.animated("architecture")`]]); + await untilState(page, "architecture", "running"); + await seek(page, "architecture", 1000); + const read = () => page.evaluate(() => { + const f = document.getElementById("fig-architecture"); + const edges = [...f.querySelectorAll(".basalt-diagram-edge")].map((g) => ({ i: g.dataset.edge, masked: g.hasAttribute("mask") })); + const anims = f.getAnimations({ subtree: true }); + // Seeking pauses every animation (a paused animation has no start time), so the entrance's clock is read as each one's current time: one moment + // for all of them, the one seeked to. Its end is each animation's end on that clock, which all share. + return { edges, clock: [...new Set(anims.map((a) => Math.round(Number(a.currentTime))))], end: Math.max(...anims.map((a) => Number(a.effect.getComputedTiming().endTime))), progress: Object.fromEntries(anims.filter((a) => a.effect.target?.closest?.("mask")).map((a) => [a.effect.target.closest("mask").id, a.effect.getComputedTiming().progress])) }; + }); + const before = await read(); + await page.evaluate(() => { document.getElementById("root").style.maxWidth = `${document.getElementById("root").clientWidth - 24}px`; }); + await frames(page, 6); + const after = await read(); + assert.equal(await state(page, "architecture"), "running"); + for (const e of before.edges) if (!e.masked) assert.ok(!after.edges.find((x) => x.i === e.i).masked, `line ${e.i} was whole`); + for (const [id, p] of Object.entries(after.progress)) if (before.progress[id] > 0) assert.ok(p > 0, `${id} went back to its start`); + assert.deepEqual(before.clock, [1000], "every part of the entrance was seeked to one moment"); + assert.deepEqual(after.clock, [1000], "the reveal built again is on the same clock, at the same moment"); + const limit = await page.evaluate(() => parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--basalt-duration-diagram-limit"))); + assert.ok(after.end <= limit + 1, `ends at ${after.end}, the limit ${limit}`); + }); + + test("a re-measure that changes nothing: the line elements are the same nodes, and their animations the same objects", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`]]); + await untilState(page, "architecture", "running"); + await page.evaluate(() => { const f = document.getElementById("fig-architecture"); window.__lines = [...f.querySelectorAll(".basalt-diagram-line")]; window.__anims = f.getAnimations({ subtree: true }); }); + // A parent's render with the same data, as a new object: the engine measures again and draws the same lines. + await draw(page, [["architecture", `S.animated("architecture")`]]); + const same = await page.evaluate(() => { const f = document.getElementById("fig-architecture"); const lines = [...f.querySelectorAll(".basalt-diagram-line")]; const anims = f.getAnimations({ subtree: true }); return lines.length === window.__lines.length && lines.every((l, k) => l === window.__lines[k]) && window.__anims.every((a) => anims.includes(a)); }); + assert.ok(same); + }); + + test("mid-entrance, narrowed to a layout with no lines: no pending state, no animation, no control", async () => { + const { page } = await motionPage(); + await draw(page, [["sequence", `S.animated("sequence")`]]); + await untilState(page, "sequence", "running"); + await page.setViewportSize({ width: 390, height: 900 }); + await frames(page, 8); + const seen = await page.evaluate(() => { const f = document.getElementById("fig-sequence"); return { state: f.getAttribute("data-entrance"), anims: f.getAnimations({ subtree: true }).length, controls: f.querySelectorAll(".basalt-diagram-play, .basalt-diagram-pause").length }; }); + assert.notEqual(seen.state, "pending"); + assert.notEqual(seen.state, "running"); + assert.equal(seen.anims, 0); + assert.equal(seen.controls, 0); + }); + + test("a loop running, then the figure narrowed: the loop is on the new lines; a run in progress is on the message it was on", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`], ["sequence", `S.animated("sequence")`, 100]]); + // Both entrances to their end, so the architecture's loops start and the sequence's run can play. + const finish = (key) => page.evaluate((key) => { for (const a of document.getElementById(`fig-${key}`).getAnimations({ subtree: true })) if (a.effect?.getComputedTiming().iterations !== Infinity) a.finish(); }, key); + await untilState(page, "architecture", "running"); + await finish("architecture"); + await untilState(page, "architecture", "done"); + // A flow overlay persists, hidden, while the loops rest: wait for one that is shown and moving. + const shownFlow = () => page.evaluate(() => { const f = document.getElementById("fig-architecture"); const flow = [...f.querySelectorAll(".basalt-diagram-flow")].find((x) => getComputedStyle(x).display !== "none"); return flow ? { running: flow.getAnimations({ subtree: true }).some((a) => a.playState === "running"), box: flow.getBoundingClientRect().toJSON() } : null; }); + await until(page, () => [...document.querySelectorAll("#fig-architecture .basalt-diagram-flow")].some((x) => getComputedStyle(x).display !== "none" && x.getAnimations({ subtree: true }).some((a) => a.playState === "running"))); + await page.evaluate(() => { window.__flow = document.querySelector("#fig-architecture .basalt-diagram-flow"); window.__svg = document.querySelector("#fig-architecture .basalt-diagram-svg"); }); + await page.evaluate(() => { document.getElementById("root").style.maxWidth = `${document.getElementById("root").clientWidth - 24}px`; }); + await frames(page, 6); + const seen = await page.evaluate(() => { + const f = document.getElementById("fig-architecture"); + const line = f.querySelector(".basalt-diagram-edge[data-from='svc'][data-to='agent'] .basalt-diagram-line").getBoundingClientRect().toJSON(); + return { layout: f.dataset.layout, redrawn: window.__svg !== f.querySelector(".basalt-diagram-svg"), line }; + }); + assert.equal(seen.layout, "drawn"); + assert.ok(seen.redrawn, "the narrower figure is a new drawing"); + const flow = await shownFlow(); + assert.ok(flow?.running, "a flow is shown and moving after the redraw"); + // On the new line: the overlay lies along the cimip service to sandbox line as it is drawn now (its pad is the line's width and a hairline). + const near = (a, b) => Math.abs(a - b) <= 4; + assert.ok(near(flow.box.left, seen.line.left) || near(flow.box.right, seen.line.right), `the flow ${JSON.stringify(flow.box)} is on the line ${JSON.stringify(seen.line)}`); + assert.ok(flow.box.top <= seen.line.bottom && flow.box.bottom >= seen.line.top, "and spans it"); + + // The run: played, then narrowed mid-run. The dot is on the same message's line afterwards, drawn on the new geometry. + await page.locator("#fig-sequence").scrollIntoViewIfNeeded(); + await untilState(page, "sequence", "running"); + await finish("sequence"); + await untilState(page, "sequence", "done"); + await page.click("#fig-sequence .basalt-diagram-play"); + await until(page, () => document.querySelectorAll("#fig-sequence .basalt-diagram-msg")[2]?.hasAttribute("data-arrival")); + await until(page, () => { const d = document.querySelector("#fig-sequence .basalt-diagram-packet"); return d && d.style.display !== "none" && !document.querySelectorAll("#fig-sequence .basalt-diagram-msg")[2].hasAttribute("data-arrival"); }); + // Which message the dot is on: the line whose drawn path starts where the dot's path starts. + const on = () => page.evaluate(() => { + const f = document.getElementById("fig-sequence"); + const start = (d) => d.match(/M\s*(-?[\d.]+)[ ,](-?[\d.]+)/).slice(1).map(Number); + const dot = f.querySelector(".basalt-diagram-packet"); + const at = start(dot.style.offsetPath); + const lines = [...f.querySelectorAll(".basalt-diagram-svg .basalt-diagram-edge")].sort((a, b) => a.dataset.edge - b.dataset.edge); + return lines.findIndex((g) => { const p = start(g.querySelector(".basalt-diagram-line").getAttribute("d")); return Math.hypot(p[0] - at[0], p[1] - at[1]) < 1; }); + }); + const before = await on(); + assert.ok(before >= 3, `the run is on message ${before + 1}`); + await page.evaluate(() => { window.__seqSvg = document.querySelector("#fig-sequence .basalt-diagram-svg"); document.getElementById("root").style.maxWidth = `${document.getElementById("root").clientWidth - 24}px`; }); + await frames(page, 6); + assert.ok(await page.evaluate(() => window.__seqSvg !== document.querySelector("#fig-sequence .basalt-diagram-svg")), "the sequence is a new drawing"); + assert.equal(await page.textContent("#fig-sequence .basalt-diagram-play"), "Stop the run", "the run carries on"); + assert.equal(await on(), before, "on the message it was on, on the new lines"); + }); +}); + +describe("the hold and the reader (first)", () => { + test("under the hold: no cut, bead or dot and no arrival step; the run starts and finishes; a send moves nothing and the last stop steps; releasing starts the loops", async () => { + const { page } = await motionPage(); + await page.evaluate(() => document.documentElement.setAttribute("data-loops", "held")); + await draw(page, [["architecture", `S.animated("architecture")`], ["sequence", `S.animated("sequence")`, 80], ["send", `{ ...S.animated("dataFlow"), packet: { path: ["send", "append", "row", "hear", "see"], send: 1 } }`, 80]]); + await frames(page, 10); + const parts = () => page.evaluate(() => [...document.querySelectorAll(".basalt-diagram-flow, .basalt-diagram-bead, .basalt-diagram-packet")].filter((x) => getComputedStyle(x).display !== "none").length + document.querySelectorAll("[data-arrival]").length); + assert.equal(await parts(), 0); + await page.click("#fig-sequence .basalt-diagram-play"); + assert.equal(await page.textContent("#fig-sequence .basalt-diagram-play"), "Stop the run"); + for (let k = 0; k < 60 && (await page.textContent("#fig-sequence .basalt-diagram-play")) === "Stop the run"; k++) { await page.evaluate(() => { for (const a of document.getElementById("fig-sequence").getAnimations({ subtree: true })) if (a.playState === "running") a.finish(); }); await frames(page, 1); } + assert.equal(await page.textContent("#fig-sequence .basalt-diagram-play"), "Play the run"); + await page.evaluate(() => window.__set([{ key: "send", spec: { ...window.SPECS.animated("dataFlow"), packet: { path: ["send", "append", "row", "hear", "see"], send: 2 } } }])); + await frames(page, 3); + assert.equal(await page.evaluate(() => document.querySelectorAll("#fig-send .basalt-diagram-packet").length ? getComputedStyle(document.querySelector("#fig-send .basalt-diagram-packet")).display : "none"), "none"); + assert.ok(await page.evaluate(() => document.querySelector("#fig-send [data-node='see']").hasAttribute("data-arrival"))); + await page.evaluate(() => document.documentElement.removeAttribute("data-loops")); + }); + + test("the pause control is present exactly when it may be, is named Pause animations with aria-pressed, and is 44px on touch", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`], ["flowchart", `S.animated("flowchart")`, 80], ["sequence", `S.animated("sequence")`, 80], ["still", `S.still.architecture`, 80]]); + await until(page, () => document.querySelector("#fig-architecture .basalt-diagram-pause")); + const seen = await page.evaluate(() => Object.fromEntries(["architecture", "flowchart", "sequence", "still"].map((k) => [k, document.querySelectorAll(`#fig-${k} .basalt-diagram-pause`).length]))); + assert.deepEqual(seen, { architecture: 1, flowchart: 0, sequence: 0, still: 0 }); + const pause = page.locator("#fig-architecture .basalt-diagram-pause"); + assert.equal((await pause.textContent()).trim(), "Pause animations"); + assert.equal(await pause.getAttribute("aria-pressed"), "false"); + await pause.click(); + assert.equal(await pause.getAttribute("aria-pressed"), "true"); + assert.equal(await page.evaluate(() => document.documentElement.getAttribute("data-loops")), "held"); + await page.emulateMedia({ reducedMotion: "reduce" }); + await frames(page, 3); + assert.equal(await page.evaluate(() => document.querySelectorAll("#fig-architecture .basalt-diagram-pause").length), 0, "not under reduced motion"); + const touch = await motionPage({ hasTouch: true, isMobile: true, viewport: { width: 1100, height: 900 } }); + await draw(touch.page, [["architecture", `S.animated("architecture")`]]); + await until(touch.page, () => document.querySelector("#fig-architecture .basalt-diagram-pause")); + assert.ok((await touch.page.locator("#fig-architecture .basalt-diagram-pause").boundingBox()).height >= 44); + }); +}); + +describe("one mover (then)", () => { + const cases = { + "a pulse id that is no node": `{ ...S.animated("architecture"), pulse: ["browser", "nowhere"] }`, + "two ids no line joins that way": `{ ...S.animated("architecture"), pulse: ["svc", "alb"] }`, + "both a pulse and a packet": `{ ...S.animated("architecture"), packet: { path: ["browser", "alb"] } }`, + "flow on a dashed line": `{ ...S.animated("architecture"), edges: S.animated("architecture").edges.map((e) => (e.kind === "dashed" ? { ...e, flow: true } : e)) }`, + "flow on the mover's line": `{ ...S.animated("architecture"), edges: S.animated("architecture").edges.map((e) => (e.from === "alb" ? { ...e, flow: true } : e)) }`, + }; + for (const [name, expr] of Object.entries(cases)) { + test(`a development build throws on ${name}`, async () => { + const { page } = await devPage(); + await draw(page, [["bad", expr]]); + await until(page, () => document.getElementById("error-bad")); + assert.match(await page.textContent("#error-bad"), /Basalt ArchitectureDiagram:/); + }); + } + + test("a flow line with no label warns", async () => { + const { page, warnings } = await devPage(); + await draw(page, [["arch", `{ ...S.animated("architecture"), edges: S.animated("architecture").edges.map((e) => (e.from === "svc" && e.to === "s3" ? { ...e, flow: true, label: undefined } : e)) }`]]); + await until(page, () => document.querySelector("#fig-arch .basalt-diagram-pause")); + assert.ok(warnings.some((w) => /flows but has no label/.test(w))); + }); + + test("no frame holds a bead and a dot; no flow cut is on an edge of the mover's path", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`], ["dataFlow", `S.animated("dataFlow")`, 80]]); + for (const k of ["architecture", "dataFlow"]) await page.evaluate((k) => { const f = document.getElementById(`fig-${k}`); f.setAttribute("data-entrance", "done"); f.dispatchEvent(new Event("basalt-diagram-settle")); }, k); + for (let n = 0; n < 40; n++) { + await frames(page, 3); + const both = await page.evaluate(() => [...document.querySelectorAll("figure")].some((f) => f.querySelector(".basalt-diagram-bead:not([style*='none'])") && f.querySelector(".basalt-diagram-packet:not([style*='none'])"))); + assert.ok(!both); + } + }); +}); + +describe("geometry (then)", () => { + for (const width of [1440, 390]) for (const theme of ["dark", "light"]) { + test(`at ${width} in ${theme}: a dot never covers a head, a bead is at most two fifths of its line, no cut is near a line's end, and a mover is never above a node`, async () => { + const { page } = await motionPage({ theme, viewport: { width, height: 1400 } }); + await draw(page, [["architecture", `S.animated("architecture")`], ["dataFlow", `S.animated("dataFlow")`, 80]]); + for (const k of ["architecture", "dataFlow"]) await page.evaluate((k) => { const f = document.getElementById(`fig-${k}`); f.setAttribute("data-entrance", "done"); f.dispatchEvent(new Event("basalt-diagram-settle")); }, k); + for (let n = 0; n < 30; n++) { + await frames(page, 4); + const bad = await page.evaluate(() => { + const out = []; + for (const f of document.querySelectorAll("figure")) { + const dot = f.querySelector(".basalt-diagram-packet"); + if (dot && getComputedStyle(dot).display !== "none" && Number(getComputedStyle(dot).opacity) > 0.5) { + const d = dot.getBoundingClientRect(); + for (const tip of f.querySelectorAll(".basalt-diagram-tip")) { const t = tip.getBoundingClientRect(); if (d.left < t.right - 0.5 && d.right > t.left + 0.5 && d.top < t.bottom - 0.5 && d.bottom > t.top + 0.5) out.push("dot over head"); } + if (getComputedStyle(dot).zIndex !== "auto" && Number(getComputedStyle(dot).zIndex) > 0) out.push("dot above nodes"); + } + for (const svg of f.querySelectorAll(".basalt-diagram-bead")) { + const path = svg.querySelector("path"); + const bead = parseFloat(path.getAttribute("stroke-dasharray")); + if (bead > 0.4 * path.getTotalLength() + 0.5) out.push(`bead ${bead} on ${path.getTotalLength()}`); + } + } + return out; + }); + assert.deepEqual(bad, []); + } + }); + } + + test("two lines on one bus are each hidden until their own start", async () => { + const { page } = await motionPage(); + await draw(page, [["schema", `S.animated("schema")`]]); + await untilState(page, "schema", "running"); + await seek(page, "schema", 0); + // Every line has its own mask: no edge group shares a mask with another. + const masks = await page.evaluate(() => [...document.querySelectorAll("#fig-schema .basalt-diagram-edge[mask]")].map((g) => g.getAttribute("mask"))); + assert.equal(new Set(masks).size, masks.length); + }); +}); + +describe("timing as numbers (then)", () => { + test("each line takes its length at the trace speed, clamped; lines start the stagger apart; the CIMIP totals are the decision's; the schema goes top to bottom", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`], ["sequence", `S.animated("sequence")`, 80], ["schema", `S.animated("schema")`, 80]]); + const tokens = await page.evaluate(() => { const cs = getComputedStyle(document.documentElement); const n = (x) => parseFloat(cs.getPropertyValue(`--basalt-${x}`)); return { min: n("duration-diagram-line-min"), max: n("duration-diagram-line-max"), stagger: n("duration-diagram-stagger"), speed: n("speed-diagram-trace"), step: n("duration-diagram-step"), arrow: n("duration-diagram-arrow") }; }); + assert.deepEqual(tokens, { min: 400, max: 900, stagger: 220, speed: 300, step: 320, arrow: 500 }); + await untilState(page, "architecture", "running"); + const lines = await page.evaluate(() => [...document.querySelectorAll("#fig-architecture .basalt-diagram-motion-defs mask")].map((m) => { const p = m.querySelector("path"); const t = p.getAnimations()[0].effect.getComputedTiming(); return { len: p.getTotalLength(), delay: t.delay, duration: t.duration }; })); + lines.forEach((l, k) => { + assert.ok(Math.abs(l.duration - Math.min(900, Math.max(400, (l.len / 300) * 1000))) < 1, `line ${k}`); + assert.ok(Math.abs(l.delay - k * 220) < 1, `line ${k} starts at ${l.delay}`); + }); + const last = lines.at(-1); + assert.ok(last.delay + last.duration > 2400 && last.delay + last.duration < 2800, "the architecture's last line ends near 2.6s"); + await page.evaluate(() => document.getElementById("fig-sequence").scrollIntoView()); + await untilState(page, "sequence", "running"); + const seqEnd = await page.evaluate(() => Math.max(...document.getElementById("fig-sequence").getAnimations({ subtree: true }).map((a) => Number(a.effect.getComputedTiming().endTime)))); + assert.ok(seqEnd > 4200 && seqEnd < 4400, `the sequence ends at ${seqEnd}`); + await page.evaluate(() => document.getElementById("fig-schema").scrollIntoView()); + await untilState(page, "schema", "running"); + const starts = await page.evaluate(() => [...document.querySelectorAll("#fig-schema .basalt-diagram-motion-defs mask")].map((m) => ({ id: m.id.split("-reveal-")[1], delay: m.querySelector("path").getAnimations()[0].effect.getComputedTiming().delay, y: Number(m.querySelector("path").getAttribute("d").match(/^M\s*-?[\d.]+[ ,](-?[\d.]+)/)[1]) })).sort((a, b) => a.delay - b.delay)); + assert.ok(starts.length > 3 && starts.every((x) => Number.isFinite(x.y)), JSON.stringify(starts)); + for (let k = 1; k < starts.length; k++) assert.ok(starts[k].y >= starts[k - 1].y - 0.5, `top to bottom: ${JSON.stringify(starts)}`); + }); + + test("an entrance of 40 lines ends inside duration-diagram-limit", async () => { + const { page } = await motionPage(); + const nodes = Array.from({ length: 41 }, (_, k) => ({ id: `n${k}`, name: `Node ${k}`, col: (k % 6) + 1, row: Math.floor(k / 6) + 1 })); + const edges = nodes.slice(1).map((n, k) => ({ from: `n${k}`, to: n.id })); + await draw(page, [["many", JSON.stringify({ type: "architecture", motion: "animated", title: "Forty lines", summary: "A chain.", nodes, edges })]]); + const drawn = await page.evaluate(() => document.querySelectorAll("#fig-many .basalt-diagram-edge").length); + if (drawn) { + await untilState(page, "many", "running"); + const end = await page.evaluate(() => Math.max(...document.getElementById("fig-many").getAnimations({ subtree: true }).map((a) => Number(a.effect.getComputedTiming().endTime)))); + assert.ok(end <= 5000 + 1, `ends at ${end}`); + } + }); +}); + +describe("tracing (then)", () => { + test("while a node is traced: no cut, bead, dot or arrival step; a run ends", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`], ["sequence", `S.animated("sequence")`, 80]]); + await page.evaluate(() => { const f = document.getElementById("fig-architecture"); f.setAttribute("data-entrance", "done"); f.dispatchEvent(new Event("basalt-diagram-settle")); }); + await until(page, () => document.querySelector("#fig-architecture .basalt-diagram-flow")); + await page.hover("#fig-architecture [data-node='aurora']"); + await frames(page, 2); + const shown = await page.evaluate(() => [...document.querySelectorAll("#fig-architecture :is(.basalt-diagram-flow, .basalt-diagram-bead, .basalt-diagram-packet)")].filter((x) => getComputedStyle(x).display !== "none").length + document.querySelectorAll("#fig-architecture [data-arrival]").length); + assert.equal(shown, 0); + await page.click("#fig-sequence .basalt-diagram-play"); + await page.hover("#fig-sequence [data-node='ecs']"); + await frames(page, 2); + assert.equal(await page.textContent("#fig-sequence .basalt-diagram-play"), "Play the run"); + }); +}); + +describe("modes (then)", () => { + for (const theme of ["dark", "light"]) { + test(`forced colours in ${theme}: no entrance, no loop, no pause control, no mark and no padding for one`, async () => { + const { page } = await motionPage({ theme, forcedColors: "active" }); + await draw(page, [["architecture", `S.animated("architecture")`]]); + await frames(page, 10); + const seen = await page.evaluate(() => { const f = document.getElementById("fig-architecture"); return { state: f.getAttribute("data-entrance"), loops: f.querySelectorAll(".basalt-diagram-flow, .basalt-diagram-bead").length, pause: f.querySelectorAll(".basalt-diagram-pause").length, marks: [...f.querySelectorAll(".basalt-diagram-mark")].filter((m) => getComputedStyle(m).display !== "none").length, pad: [...f.querySelectorAll(".basalt-diagram-node[data-mark] > .basalt-diagram-kind")].map((k) => getComputedStyle(k).paddingInlineEnd) }; }); + assert.deepEqual({ ...seen, pad: [...new Set(seen.pad)] }, { state: "done", loops: 0, pause: 0, marks: 0, pad: ["0px"] }); + }); + test(`more contrast in ${theme}: a card's arrival rim is primary ink, and not a traced neighbour's rim`, async () => { + const { page } = await motionPage({ theme, contrast: "more" }); + await draw(page, [["architecture", `S.animated("architecture")`]]); + const seen = await page.evaluate(() => { + const n = document.querySelector("#fig-architecture [data-node='alb']"); + n.setAttribute("data-arrival", ""); + n.style.transition = "none"; + const rim = getComputedStyle(n).borderTopColor; + const probe = document.createElement("span"); probe.style.color = "var(--basalt-text-primary)"; n.append(probe); const primary = getComputedStyle(probe).color; probe.style.color = "var(--basalt-border-hover)"; const hover = getComputedStyle(probe).color; probe.remove(); + return { rim, primary, hover }; + }); + assert.equal(seen.rim, seen.primary); + assert.notEqual(seen.rim, seen.hover); + }); + } + test("reduced motion: the run lifts each number in order and stops on its button", async () => { + const { page } = await motionPage({ reducedMotion: "reduce" }); + await draw(page, [["sequence", `S.animated("sequence")`]]); + await page.click("#fig-sequence .basalt-diagram-play"); + const order = []; + for (let k = 0; k < 200 && order.length < 3; k++) { + await page.evaluate(() => { for (const a of document.getElementById("fig-sequence").getAnimations({ subtree: true })) if (a.playState === "running") a.finish(); }); + await frames(page, 1); + const lit = await page.evaluate(() => [...document.querySelectorAll("#fig-sequence .basalt-diagram-msg")].findIndex((m) => m.hasAttribute("data-arrival"))); + if (lit >= 0 && order.at(-1) !== lit) order.push(lit); + } + assert.deepEqual(order, [0, 1, 2]); + assert.equal(await page.evaluate(() => document.querySelectorAll("#fig-sequence .basalt-diagram-packet:not([style*='none'])").length), 0, "no traveller"); + await page.click("#fig-sequence .basalt-diagram-play"); + assert.equal(await page.textContent("#fig-sequence .basalt-diagram-play"), "Play the run"); + }); +}); + +describe("marks (first for the first three)", () => { + test("each generated mark draws the same pixels as its owner's file framed to its artwork, form for form", async () => { + const { forms } = await import("../marks/generate.mjs"); + const { dataUri } = await import("../marks/clean.mjs"); + const page = await browser.newPage(); + await page.setContent(""); + for (const mark of MANIFEST.marks) { + const made = forms(mark); + for (const form of ["light", "dark"]) { + const file = mark.forms[form] === "swapped" ? mark.forms.light : mark.forms[form]; + let source = fs.readFileSync(path.join(pkg, "marks", "source", file), "utf8"); + if (mark.forms[form] === "swapped") source = source.replace(new RegExp(mark.swap.from, "gi"), mark.swap.to); + // The owner's file, untouched, nested whole in a frame of the recorded box: both are then one SVG document drawn the same way, so an edge is + // rasterised alike in both and any difference is the file's own (a path, a colour, a crop), never where drawImage put a fractional offset. The + // nested viewport does not clip (Chromium snaps a nested clip to whole pixels; the generated file's only edge is its fitted box, as here). + const vb = source.match(/]*\bviewBox="([^"]+)"/)[1].split(/[\s,]+/).map(Number); + const inner = source.replace(/<\?xml[\s\S]*?\?>/, "").replace(/]*>/, (tag) => tag.replace(/\s(x|y|width|height)="[^"]*"/g, "").replace(/^${inner}`; + const diff = await page.evaluate(async ({ a, b, box }) => { + const draw = async (uri) => { + const img = new Image(); img.src = uri; await img.decode(); + const c = document.createElement("canvas"); c.width = c.height = 64; const ctx = c.getContext("2d"); + const s = 64 / Math.max(box[2], box[3]); + ctx.drawImage(img, (64 - box[2] * s) / 2, (64 - box[3] * s) / 2, box[2] * s, box[3] * s); + return ctx.getImageData(0, 0, 64, 64).data; + }; + const x = await draw(a), y = await draw(b); + let worst = 0; for (let k = 0; k < x.length; k++) worst = Math.max(worst, Math.abs(x[k] - y[k])); + return worst; + }, { a: dataUri(made[form]), b: `data:image/svg+xml,${encodeURIComponent(framed)}`, box }); + assert.ok(diff <= 8, `${mark.id} ${form}: ${diff}`); + } + } + await page.close(); + }); + + test("no mark module is reachable from the package's index; an app that imports one diagram and one mark loads one mark", async () => { + const esbuild = await import("esbuild"); + const result = await esbuild.build({ + stdin: { contents: `import { ArchitectureDiagram } from "./dist/index.js"; import { awsEcsService } from "./dist/marks/aws-ecs-service.js"; console.log(ArchitectureDiagram, awsEcsService);`, resolveDir: pkg, loader: "js" }, + bundle: true, write: false, metafile: true, format: "esm", external: ["react", "react-dom", "react/jsx-runtime", "@base-ui/react", "@base-ui/react/*", "@phosphor-icons/react", "@phosphor-icons/react/*", "cmdk", "shiki", "shiki/*"], logLevel: "silent", + }); + const inputs = Object.keys(result.metafile.inputs).filter((f) => f.includes("dist/marks/")); + assert.deepEqual(inputs.map((f) => path.basename(f)), ["aws-ecs-service.js"]); + assert.ok(!fs.readFileSync(path.join(pkg, "dist", "index.js"), "utf8").includes("marks/")); + }); + + test("every mark's ink, read from the manifest, is 3:1 on levels 1 to 3 in both themes; on the focal fills too, but for the four recorded", async () => { + const tokens = JSON.parse(fs.readFileSync(path.join(pkg, "..", "tokens", "dist", "json", "tokens.json"), "utf8")); + const hex = (theme, name) => tokens[theme][name].hex.slice(0, 7); + const lum = (h) => { const [r, g, b] = [1, 3, 5].map((i) => parseInt(h.slice(i, i + 2), 16) / 255).map((c) => (c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4)); return 0.2126 * r + 0.7152 * g + 0.0722 * b; }; + const ratio = (a, b) => { const [x, y] = [lum(a), lum(b)].sort((p, q) => q - p); return (x + 0.05) / (y + 0.05); }; + const RECORDED = { "#ED7100": 2.58, "#7AA116": 2.59, "#01A88D": 2.57, "#FF570A": 2.71 }; + for (const mark of MANIFEST.marks) { + for (const theme of ["dark", "light"]) { + const ink = (theme === "dark" ? mark.ink.dark : mark.ink.light).toUpperCase(); + for (const level of ["surface-1", "surface-2", "surface-3"]) assert.ok(ratio(ink, hex(theme, level)) >= 3, `${mark.id} on ${theme} ${level}: ${ratio(ink, hex(theme, level)).toFixed(2)}`); + // The focal card takes the other theme's form. + const focalInk = (theme === "dark" ? mark.ink.light : mark.ink.dark).toUpperCase(); + const r = ratio(focalInk, hex(theme, "diagram-focal")); + if (theme === "dark" && RECORDED[focalInk]) assert.ok(Math.abs(r - RECORDED[focalInk]) < 0.015, `${mark.id} on the dark focal card is ${r.toFixed(2)}, recorded ${RECORDED[focalInk]}`); + else assert.ok(r >= 3, `${mark.id} on the ${theme} focal card: ${r.toFixed(2)}`); + } + } + }); + + test("the form drawn is right on all four grounds, and on the focal card in both themes", async () => { + for (const theme of ["dark", "light"]) { + const { page } = await motionPage({ theme }); + await draw(page, [["kit", `{ ...S.kit(), nodes: S.kit().nodes.map((n) => (n.id === "github" ? { ...n, focal: true } : n)), legend: { ...S.kit().legend, focal: "The start" } }`]]); + const seen = await page.evaluate(() => Object.fromEntries([...document.querySelectorAll("#fig-kit .basalt-diagram-node[data-mark]")].map((n) => { const m = n.querySelector(".basalt-diagram-mark"); const cs = getComputedStyle(m); return [n.dataset.node, { image: cs.backgroundImage, light: cs.getPropertyValue("--_ml").trim(), dark: cs.getPropertyValue("--_md").trim() }]; }))); + // A computed url() is serialised as a CSS string, which escapes what it must (Temporal's style rule's ";" comes back as "\3b "): unescape it. + const url = (v) => v.replace(/^url\(["']?|["']?\)$/g, "").replace(/\\([0-9a-fA-F]{1,6}) ?/g, (_, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\(.)/g, "$1"); + for (const [id, s] of Object.entries(seen)) { + const focal = id === "github"; + const want = (theme === "dark") !== focal ? s.dark : s.light; + assert.equal(url(s.image), url(want), `${theme} ${id}`); + } + await page.close(); + } + }); + + test("a card with a mark and no kind: the name does not overlap the mark", async () => { + const { page } = await motionPage(); + await draw(page, [["arch", `{ ...S.animated("architecture"), nodes: S.animated("architecture").nodes.map((n) => ({ ...n, kind: undefined, name: n.id === "s3" ? "Simple Storage Service bucket" : n.name })) }`]]); + const bad = await page.evaluate(() => [...document.querySelectorAll("#fig-arch .basalt-diagram-node[data-mark]")].filter((n) => { + const m = n.querySelector(".basalt-diagram-mark").getBoundingClientRect(); + const range = document.createRange(); range.selectNodeContents(n.querySelector(".basalt-diagram-name")); + return [...range.getClientRects()].some((r) => r.left < m.right && r.right > m.left && r.top < m.bottom && r.bottom > m.top); + }).map((n) => n.dataset.node)); + assert.deepEqual(bad, []); + }); + + test("the manifest: every entry has every field, each source file's hash matches, no file is unlisted, THIRD-PARTY-MARKS.md names every owner", async () => { + const { FIELDS } = await import("../marks/generate.mjs"); + const crypto = await import("node:crypto"); + const listed = new Set(); + assert.equal(MANIFEST.marks.length, 41); + for (const mark of MANIFEST.marks) { + for (const field of FIELDS) assert.ok(mark[field] !== undefined, `${mark.id}: ${field}`); + for (const [file, hash] of Object.entries(mark.sha256)) { + assert.equal(crypto.createHash("sha256").update(fs.readFileSync(path.join(pkg, "marks", "source", file))).digest("hex"), hash, file); + listed.add(file); + } + } + const files = fs.readdirSync(path.join(pkg, "marks", "source"), { recursive: true }).filter((f) => fs.statSync(path.join(pkg, "marks", "source", f)).isFile()).map((f) => f.split(path.sep).join("/")); + assert.deepEqual(files.filter((f) => !listed.has(f)), []); + const notice = fs.readFileSync(path.join(pkg, "THIRD-PARTY-MARKS.md"), "utf8"); + for (const owner of new Set(MANIFEST.marks.map((m) => m.owner))) assert.ok(notice.includes(owner), owner); + assert.ok(JSON.parse(fs.readFileSync(path.join(pkg, "package.json"), "utf8")).files.includes("THIRD-PARTY-MARKS.md")); + }); + + test("axe in both themes with marks and motion on, and the node sentences equal the still figure's", async () => { + for (const theme of ["dark", "light"]) { + const { page } = await motionPage({ theme }); + await draw(page, [["architecture", `S.animated("architecture")`], ["still", `S.still.architecture`, 40]]); + await until(page, () => document.querySelector("#fig-architecture .basalt-diagram-pause")); + const sentences = await page.evaluate(() => ["architecture", "still"].map((k) => [...document.querySelectorAll(`#fig-${k} .basalt-diagram-node`)].map((n) => n.getAttribute("aria-label")))); + assert.deepEqual(sentences[0], sentences[1]); + await page.evaluate(() => { document.title = "Basalt"; document.documentElement.lang = "en"; }); + const require = (await import("node:module")).createRequire(import.meta.url); + await page.addScriptTag({ content: fs.readFileSync(require.resolve("axe-core/axe.min.js"), "utf8") }); + const violations = await page.evaluate(() => window.axe.run(document, { runOnly: { type: "tag", values: ["wcag2a", "wcag2aa", "wcag21a", "wcag21aa", "wcag22aa"] } }).then((r) => r.violations.map((v) => v.id))); + assert.deepEqual(violations, []); + await page.close(); + } + }); +}); + +// Section 7's checks the first draft of this file left out (Neon's finding 8 in round 65's code review), added when the owner lifted the test skip. +describe("section 7's remaining checks", () => { + test("every motion token is the decision's value", async () => { + const { page } = await motionPage(); + const seen = await page.evaluate(() => { + const cs = getComputedStyle(document.documentElement); + const names = ["duration-diagram-line-min", "duration-diagram-line-max", "duration-diagram-stagger", "duration-diagram-step", "duration-diagram-arrow", "duration-diagram-limit", "duration-diagram-leg-min", "duration-diagram-leg-max", "duration-diagram-rest", "duration-diagram-pause", "duration-diagram-repeat", "speed-diagram-trace", "speed-diagram-packet", "speed-diagram-pulse", "speed-diagram-flow", "size-diagram-bead", "size-diagram-flow"]; + return Object.fromEntries(names.map((n) => [n, parseFloat(cs.getPropertyValue(`--basalt-${n}`))])); + }); + assert.deepEqual(seen, { + "duration-diagram-line-min": 400, "duration-diagram-line-max": 900, "duration-diagram-stagger": 220, "duration-diagram-step": 320, "duration-diagram-arrow": 500, + "duration-diagram-limit": 5000, "duration-diagram-leg-min": 500, "duration-diagram-leg-max": 1100, "duration-diagram-rest": 400, "duration-diagram-pause": 1200, + "duration-diagram-repeat": 4000, "speed-diagram-trace": 300, "speed-diagram-packet": 250, "speed-diagram-pulse": 120, "speed-diagram-flow": 16, + "size-diagram-bead": 24, "size-diagram-flow": 12, + }); + }); + + test("a development build warns when a card's words do not say what its mark stands for", async () => { + const { page, warnings } = await devPage(); + await draw(page, [["arch", `{ ...S.animated("architecture"), nodes: S.animated("architecture").nodes.map((n) => (n.id === "browser" ? { ...n, mark: "temporal" } : n)) }`]]); + await until(page, () => document.querySelector("#fig-arch .basalt-diagram-svg .basalt-diagram-line")); + assert.ok(warnings.some((w) => /browser's mark stands for Temporal, and none of its words say so/.test(w)), JSON.stringify(warnings)); + }); + + test("a sequence of 40 messages draws, runs and ends inside duration-diagram-limit", async () => { + const { page } = await motionPage(); + const steps = Array.from({ length: 40 }, (_, k) => ({ from: k % 2 ? "b" : "a", to: k % 2 ? "a" : "b", label: `Message ${k + 1}` })); + await draw(page, [["forty", JSON.stringify({ type: "sequence", motion: "animated", title: "Forty messages", summary: "Back and forth.", participants: [{ id: "a", name: "A" }, { id: "b", name: "B" }], steps })]]); + assert.equal(await page.evaluate(() => document.getElementById("fig-forty").dataset.layout), "drawn"); + assert.equal(await page.evaluate(() => document.querySelectorAll("#fig-forty .basalt-diagram-svg .basalt-diagram-edge").length), 40); + await untilState(page, "forty", "running"); + const end = await page.evaluate(() => Math.max(...document.getElementById("fig-forty").getAnimations({ subtree: true }).map((a) => Number(a.effect.getComputedTiming().endTime)))); + assert.ok(end <= 5000 + 1, `ends at ${end}`); + }); + + test("a trace: the node's lines take the traced ink; the loops rest through it and for duration-diagram-pause after, then start again", async () => { + const { page } = await motionPage(); + await draw(page, [["architecture", `S.animated("architecture")`]]); + await untilState(page, "architecture", "running"); + await page.evaluate(() => { for (const a of document.getElementById("fig-architecture").getAnimations({ subtree: true })) if (a.effect?.getComputedTiming().iterations !== Infinity) a.finish(); }); + const moving = () => page.evaluate(() => [...document.querySelectorAll("#fig-architecture .basalt-diagram-flow")].some((x) => getComputedStyle(x).display !== "none" && x.getAnimations({ subtree: true }).some((a) => a.playState === "running"))); + await until(page, () => [...document.querySelectorAll("#fig-architecture .basalt-diagram-flow")].some((x) => getComputedStyle(x).display !== "none")); + await page.hover("#fig-architecture [data-node='svc']"); + await frames(page, 2); + const ink = await page.evaluate(() => { + const f = document.getElementById("fig-architecture"); + const probe = document.createElement("span"); probe.style.color = "var(--basalt-diagram-edge-main)"; f.append(probe); const main = getComputedStyle(probe).color; probe.remove(); + return { main, lit: [...f.querySelectorAll(".basalt-diagram-edge[data-lit] .basalt-diagram-line")].map((p) => getComputedStyle(p).stroke) }; + }); + assert.ok(ink.lit.length > 0 && ink.lit.every((s) => s === ink.main), JSON.stringify(ink)); + assert.equal(await moving(), false, "no flow while traced"); + await page.mouse.move(0, 0); + await frames(page, 2); + assert.equal(await moving(), false, "none at once when the trace ends"); + // Half the pause later, still none (a lower bound: a slow machine only makes the timer later). + await page.waitForTimeout(600); + assert.equal(await moving(), false, "none half the pause after"); + await until(page, () => [...document.querySelectorAll("#fig-architecture .basalt-diagram-flow")].some((x) => getComputedStyle(x).display !== "none" && x.getAnimations({ subtree: true }).some((a) => a.playState === "running"))); + }); + + for (const theme of ["dark", "light"]) { + test(`forced colours under a saved ${theme} theme: the run's dot is Highlight with a Canvas ring`, async () => { + const { page } = await motionPage({ theme, forcedColors: "active" }); + await draw(page, [["sequence", `S.animated("sequence")`]]); + await page.click("#fig-sequence .basalt-diagram-play"); + await until(page, () => { const d = document.querySelector("#fig-sequence .basalt-diagram-packet"); return d && d.style.display !== "none"; }); + const seen = await page.evaluate(() => { + const sys = (name) => { const s = document.createElement("i"); s.style.color = name; document.body.append(s); const c = getComputedStyle(s).color; s.remove(); return c; }; + const d = getComputedStyle(document.querySelector("#fig-sequence .basalt-diagram-packet")); + return { fill: d.backgroundColor, ring: [d.boxShadow, d.outlineColor, d.borderTopColor].join(" "), highlight: sys("Highlight"), canvas: sys("Canvas") }; + }); + assert.equal(seen.fill, seen.highlight); + assert.ok(seen.ring.includes(seen.canvas), `the ring is Canvas: ${seen.ring}`); + }); + } + + for (const theme of ["dark", "light"]) { + test(`printed from the ${theme} theme, each card's mark is the form for the ground it prints on, the focal card's too`, async () => { + const { page } = await motionPage({ theme }); + await draw(page, [["kit", `{ ...S.kit(), nodes: S.kit().nodes.map((n) => (n.id === "github" ? { ...n, focal: true } : n)), legend: { ...S.kit().legend, focal: "The start" } }`]]); + await page.emulateMedia({ media: "print" }); + const seen = await page.evaluate(() => { + const c = document.createElement("canvas"); c.width = c.height = 1; const ctx = c.getContext("2d", { willReadFrequently: true }); + const light = (color) => { ctx.clearRect(0, 0, 1, 1); ctx.fillStyle = color; ctx.fillRect(0, 0, 1, 1); const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data; return (r + g + b) / 3 > 128; }; + const ground = (el) => { for (let e = el; e; e = e.parentElement) { const bg = getComputedStyle(e).backgroundColor; if (!/rgba\(0, 0, 0, 0\)|transparent/.test(bg)) return bg; } return "white"; }; + const url = (v) => v.trim().replace(/^url\(["']?|["']?\)$/g, "").replace(/\\([0-9a-fA-F]{1,6}) ?/g, (_, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\(.)/g, "$1"); + return [...document.querySelectorAll("#fig-kit .basalt-diagram-node[data-mark]")].map((n) => { + const m = n.querySelector(".basalt-diagram-mark"); const cs = getComputedStyle(m); + const onLight = url(cs.getPropertyValue("--_ml")), onDark = url(cs.getPropertyValue("--_md") || cs.getPropertyValue("--_ml")); + const want = light(ground(n)) ? onLight : onDark; + return { id: n.dataset.node, right: url(cs.backgroundImage) === want }; + }); + }); + assert.equal(seen.length, 9); + assert.deepEqual(seen.filter((s) => !s.right).map((s) => s.id), []); + }); + } +}); diff --git a/packages/react/test/diagrams.test.mjs b/packages/react/test/diagrams.test.mjs index fc465cdc..3f06b9dc 100644 --- a/packages/react/test/diagrams.test.mjs +++ b/packages/react/test/diagrams.test.mjs @@ -72,9 +72,9 @@ async function audit(page) { const WIDTHS = [...new Set([...Array.from({ length: 71 }, (_, k) => 320 + 16 * k), 359, 360, 390, 412, 479, 480, 481, 639, 640, 641])].sort((a, b) => a - b); const PAD = 32; // the host page's padding: a figure is the viewport less 32 -describe("geometry: the five examples at every test width", () => { - test("nothing scrolls, overlaps, is cut or crosses; every edge and label is drawn; the stack is at most 480 and no decision is flatter than 5:1", async () => { - const { page, errors } = await diagramPage(); +describe("geometry: the five examples at every test width, in both themes", () => { + for (const theme of ["dark", "light"]) test(`${theme}: nothing scrolls, overlaps, is cut or crosses; every edge and label is drawn; the stack is at most 480 and no decision is flatter than 5:1`, async () => { + const { page, errors } = await diagramPage({ theme }); // Each example's first drawn width, found by growing the figure a pixel at a time across the band where it can turn on. const first = {}; for (let w = 640; w <= 1104 && Object.keys(first).length < KEYS.length; w += 1) { @@ -121,15 +121,6 @@ describe("geometry: the five examples at every test width", () => { await page.close(); }); - test("in the light theme too, at 1440, 390 and 360", async () => { - const { page } = await diagramPage({ theme: "light" }); - for (const width of [1440, 390, 360]) { - await resize(page, width); - for (const key of KEYS) assert.deepEqual((await inspect(page, key)).problems, [], `${key} at ${width}`); - } - await page.close(); - }); - test("on the 1,104px page row all five are drawn; in a card (level 2) too", async () => { const { page } = await diagramPage(); for (const key of KEYS) assert.equal(await page.getAttribute(`#fig-${key}`, "data-layout"), "drawn", key); @@ -216,6 +207,48 @@ describe("the fit rule (1.11) and seats (1.8)", () => { await page.close(); }); + test("two cards with a labelled line each way: two stems, both labels seated, nothing on anything, drawn or stacked, from 320", async () => { + const { page } = await diagramPage(); + await page.evaluate(() => window.__set([{ key: "pair", type: "architecture", props: { title: "Pair", summary: "One line each way.", nodes: [{ id: "a", name: "A", col: 1, row: 1 }, { id: "b", name: "B", col: 1, row: 2 }], + edges: [{ from: "a", to: "b", label: "a label going down" }, { from: "b", to: "a", label: "a label coming up" }] } }])); + for (const width of [320, 360, 390, 480 + PAD, 640 + PAD, 1440]) { + await resize(page, width); + const r = await inspect(page, "pair"); + assert.deepEqual(r.problems, [], `at ${width}`); + assert.equal(r.lines.length, 2, `at ${width}: both lines`); + assert.equal(r.labels.length, 2, `at ${width}: both labels`); + const xs = r.lines.map((l) => l.pts[0].x); + assert.ok(Math.abs(xs[0] - xs[1]) > 8, `at ${width} the two stems are apart: ${xs.join(", ")}`); + } + await page.close(); + }); + + test("a sequence whose participant has a 200px word stays stacked until its columns hold the word (the measured minimum, not the token)", async () => { + const { page } = await diagramPage(); + await page.addStyleTag({ content: "#root{max-width:none}" }); + const word = "Supercalifragilisticexpialidocious"; + await page.evaluate((word) => window.__set([{ key: "seq", type: "sequence", props: { title: "Seq", summary: "A long name.", participants: [{ id: "a", name: word }, { id: "b", name: "B" }, { id: "c", name: "C" }, { id: "d", name: "D" }], steps: [{ from: "a", to: "b", label: "go" }, { from: "c", to: "d", label: "go" }] } }]), word); + await frames(page, 4); + const need = await page.evaluate((word) => { const r = document.querySelector("#fig-seq .basalt-diagram-ruler"); r.setAttribute("data-f", "name"); r.textContent = word; const w = r.getBoundingClientRect().width; r.textContent = ""; return w; }, word); + assert.ok(need > 200, `the word is ${need}px`); + const least = 4 * Math.ceil(need + 2 * 12 + 2) + 3 * 20; + for (const [w, layout] of [[640, "stacked"], [least - 2, "stacked"], [least + 2, "drawn"]]) { + await resize(page, w + PAD); + assert.equal(await page.getAttribute("#fig-seq", "data-layout"), layout, `at ${w}`); + } + await page.close(); + }); + + test("a route that would leave the drawing is not drawn: a one-column schema with a foreign key stays stacked", async () => { + const { page } = await diagramPage({ viewport: { width: 640 + PAD, height: 1000 } }); + await page.evaluate(() => window.__set([{ key: "one", type: "schema", props: { title: "One", summary: "One column.", tables: [ + { name: "a", col: 1, row: 1, columns: [{ name: "id", key: "PK" }] }, { name: "b", col: 1, row: 2, columns: [{ name: "a_id", key: "FK", references: "a.id" }] }] } }])); + await frames(page, 4); + assert.equal(await page.getAttribute("#fig-one", "data-layout"), "stacked"); + assert.deepEqual((await inspect(page, "one")).problems, []); + await page.close(); + }); + test("no decision is flatter than 5:1 or under 64 tall: a two-column flowchart on the page row, and at 480 and 607", async () => { const { page } = await diagramPage(); await page.evaluate(() => window.__set([{ key: "two", type: "flowchart", props: { title: "Two", summary: "Two columns.", legend: { main: "Usual" }, nodes: [ @@ -263,6 +296,35 @@ describe("the stacked drawing's end gutter (1.13)", () => { } }); +describe("crossings (1.7): a fixture built to cross, each crossing cut on the right line, at its point, before and during a trace", () => { + // Four spine cards with A to C and D to B: both are end lines in the gutter, A to C in the inner lane and D to B in the outer, so D to B's run + // into B crosses A to C's vertical run once (A to C's run into C stops at its own lane, short of D to B's). At rest the horizontal is on top, so + // the cut is on A to C. Tracing A lights A to C alone: the traced line goes on top and the cut moves to D to B. The reader checks every cut against + // the mask's own holes (the point, the line). + const spec = { title: "Crossing", summary: "Two end lines that cross.", nodes: ["a", "b", "c", "d"].map((id, k) => node(id, 1, k + 1)), edges: [{ from: "a", to: "c" }, { from: "d", to: "b" }] }; + for (const width of [390, 640 + PAD, 1440]) { + test(`at ${width}: one crossing, cut under the horizontal (on A to C) at rest; with A traced, cut on D to B`, async () => { + const { page } = await diagramPage({ viewport: { width, height: 1000 } }); + await page.evaluate((spec) => window.__set([{ key: "cross", type: "architecture", props: spec }]), spec); + await frames(page, 4); + const rest = await inspect(page, "cross"); + assert.equal(rest.layout, "stacked"); + assert.deepEqual(rest.problems, [], "at rest"); + assert.equal(rest.crossings.length, 1, JSON.stringify(rest.crossings)); + assert.deepEqual(rest.crossings.map((c) => c.under), ["a>c"], "at rest the crossing is cut on the vertical run's line, under the horizontal"); + await page.evaluate(() => document.querySelector("#fig-cross .basalt-diagram-node[data-node='b']").focus({ focusVisible: true })); + await page.keyboard.press("ArrowLeft"); + await frames(page); + assert.equal(await page.evaluate(() => document.activeElement?.dataset.node), "a"); + const traced = await inspect(page, "cross"); + assert.deepEqual(traced.problems, [], "while A is traced"); + assert.equal(traced.crossings.length, 1); + assert.deepEqual(traced.crossings.map((c) => c.under), ["d>b"], "the traced line is on top: the cut moves to D to B"); + await page.close(); + }); + } +}); + describe("derivation (1.6, 1.13): the sides, slots and stacked routes of the examples equal the recorded table", () => { test("ports and routes", async () => { const core = await import(pathToFileURL(path.join(pkg, "dist", "diagram-core.js")).href); @@ -286,6 +348,16 @@ describe("derivation (1.6, 1.13): the sides, slots and stacked routes of the exa // A third overlapping end line is a development error. const third = core.buildModel({ type: "architecture", title: "t", nodes: ["a", "b", "c", "d", "e"].map((id, k) => node(id, 1, k + 1)), edges: [{ from: "a", to: "d" }, { from: "b", to: "e" }, { from: "a", to: "e" }] }); assert.equal(core.stackPlan(third).third, true); + // Lanes are allocated across each overlapping set: A to C, B to E and D to H overlap in a chain, so each takes the lane outside the one before, and the + // third lane is reported, never laid on the second. + const chain = core.stackPlan(core.buildModel({ type: "architecture", title: "t", nodes: "abcdefgh".split("").map((id, k) => node(id, 1, k + 1)), edges: [{ from: "a", to: "c" }, { from: "b", to: "e" }, { from: "d", to: "h" }] })); + assert.deepEqual(chain.lanes, [0, 1, 2]); + assert.equal(chain.third, true); + // Two that do not overlap share the inner lane; two that do take one each. + assert.deepEqual(core.stackPlan(core.buildModel({ type: "architecture", title: "t", nodes: "abcdef".split("").map((id, k) => node(id, 1, k + 1)), edges: [{ from: "a", to: "c" }, { from: "d", to: "f" }, { from: "b", to: "e" }] })).lanes, [0, 0, 1]); + // Two straight lines between one pair, one each way, take the quarter points at both ends, so neither lies on the other. + const pair = core.derivedPorts(core.buildModel({ type: "architecture", title: "t", nodes: [node("a", 1, 1), node("b", 1, 2)], edges: [{ from: "a", to: "b" }, { from: "b", to: "a" }] })); + assert.deepEqual(pair.map((p) => [p.fromSlot, p.toSlot]), [[0.25, 0.25], [0.75, 0.75]]); }); test("a foreign key's row, line, sentence and list entry all come from `references`", async () => { @@ -473,30 +545,69 @@ describe("modes (1.16 to 1.19)", () => { const sys = (name) => { const s = document.createElement("i"); s.style.color = name; document.body.append(s); const c = getComputedStyle(s).color; s.remove(); return c; }; const main = document.querySelector("#fig-architecture .basalt-diagram-line[data-kind='main']"); const contour = getComputedStyle(document.querySelector("#fig-flowchart .basalt-diagram-node[data-shape='terminal']")).borderTopColor; + const diamond = getComputedStyle(document.querySelector("#fig-flowchart .basalt-diagram-node[data-shape='decision'] .basalt-diagram-diamond path")).stroke; const focal = document.querySelector("#fig-architecture .basalt-diagram-node[data-focal]"); - return { canvasText: sys("CanvasText"), canvas: sys("Canvas"), gray: sys("GrayText"), main: getComputedStyle(main).stroke, contour, focalFill: getComputedStyle(focal).backgroundColor, focalName: getComputedStyle(focal.querySelector(".basalt-diagram-name")).color, focalKind: getComputedStyle(focal.querySelector(".basalt-diagram-kind")).color, life: getComputedStyle(document.querySelector("#fig-sequence .basalt-diagram-life")).stroke, group: getComputedStyle(document.querySelector("#fig-architecture .basalt-diagram-gbox")).borderTopColor }; + return { canvasText: sys("CanvasText"), canvas: sys("Canvas"), gray: sys("GrayText"), main: getComputedStyle(main).stroke, contour, diamond, focalFill: getComputedStyle(focal).backgroundColor, focalName: getComputedStyle(focal.querySelector(".basalt-diagram-name")).color, focalKind: getComputedStyle(focal.querySelector(".basalt-diagram-kind")).color, life: getComputedStyle(document.querySelector("#fig-sequence .basalt-diagram-life")).stroke, group: getComputedStyle(document.querySelector("#fig-architecture .basalt-diagram-gbox")).borderTopColor }; }); assert.equal(r.main, r.canvasText, "the main line is CanvasText"); assert.equal(r.contour, r.canvasText, "a flowchart contour is CanvasText"); + assert.equal(r.diamond, r.canvasText, "a decision's diamond is CanvasText"); assert.equal(r.life, r.gray, "a lifeline is GrayText"); assert.equal(r.group, r.gray, "a group's boundary is GrayText"); assert.equal(r.focalFill, r.canvasText, "the focal fill is CanvasText"); assert.equal(r.focalName, r.canvas, "the focal words are Canvas"); assert.equal(r.focalKind, r.canvas); - // The pixels under the focal node's words: the words against the fill they sit on, never against a Canvas backplate. The word box's pixels hold two - // colours, the fill and the ink; a backplate would make the fill there Canvas, and the ink's contrast against its surround 1:1. - const box = await page.locator("#fig-architecture .basalt-diagram-node[data-focal] .basalt-diagram-name").boundingBox(); - const px = await pixels(page, { x: Math.floor(box.x), y: Math.floor(box.y), width: Math.ceil(box.width), height: Math.ceil(box.height) }); + // The pixels under each focal part's words (the focal node, the focal table, and below the stacked sequence's focal chip): the words against the fill + // they sit on, never against a Canvas backplate. The word box's pixels hold two colours, the fill and the ink; a backplate would make the fill there + // Canvas, and the ink's contrast against its surround 1:1. const L = (c) => { const f = (v) => { const s = v / 255; return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4; }; return 0.2126 * f(c[0]) + 0.7152 * f(c[1]) + 0.0722 * f(c[2]); }; const ratio = (a, b) => { const [x, y] = [L(a), L(b)].sort((m, n) => n - m); return (x + 0.05) / (y + 0.05); }; const parse = (c) => c.match(/\d+/g).slice(0, 3).map(Number); - const fill = parse(r.focalFill), canvas = parse(r.canvas); - const fillShare = px.filter((p) => ratio(p, fill) < 1.1).length / px.length; - assert.ok(fillShare > 0.4, `${Math.round(fillShare * 100)}% of the words' box is the fill: a backplate would cover it`); - const strongest = Math.max(...px.map((p) => ratio(p, fill))); - assert.ok(strongest >= 4.5, `the words are ${strongest.toFixed(2)}:1 on their fill`); - assert.ok(ratio(fill, canvas) >= 3, "the fill stands 3:1 off Canvas"); - assert.equal(await page.evaluate(() => getComputedStyle(document.querySelector("#fig-architecture .basalt-diagram-node[data-focal]")).forcedColorAdjust), "none"); + const canvas = parse(r.canvas); + const under = async (selector) => { const words = page.locator(selector).first(); await words.scrollIntoViewIfNeeded(); const box = await words.boundingBox(); return pixels(page, { x: Math.floor(box.x), y: Math.floor(box.y), width: Math.ceil(box.width), height: Math.ceil(box.height) }); }; + const onFill = async (what, words, part) => { + const fill = parse(await page.$eval(part, (el) => getComputedStyle(el).backgroundColor)); + assert.equal(await page.$eval(part, (el) => getComputedStyle(el).forcedColorAdjust), "none", `${what}: forced-color-adjust`); + const px = await under(words); + const fillShare = px.filter((p) => ratio(p, fill) < 1.1).length / px.length; + assert.ok(fillShare > 0.4, `${what}: ${Math.round(fillShare * 100)}% of the words' box is the fill: a backplate would cover it`); + const strongest = Math.max(...px.map((p) => ratio(p, fill))); + assert.ok(strongest >= 4.5, `${what}: the words are ${strongest.toFixed(2)}:1 on their fill`); + assert.ok(ratio(fill, canvas) >= 3, `${what}: the fill stands 3:1 off Canvas`); + }; + await onFill("the focal node", "#fig-architecture .basalt-diagram-node[data-focal] .basalt-diagram-name", "#fig-architecture .basalt-diagram-node[data-focal]"); + await onFill("the focal node's kind", "#fig-architecture .basalt-diagram-node[data-focal] .basalt-diagram-kind", "#fig-architecture .basalt-diagram-node[data-focal]"); + await onFill("the focal table", "#fig-schema .basalt-diagram-node[data-focal] .basalt-diagram-tname", "#fig-schema .basalt-diagram-node[data-focal]"); + await onFill("the focal table's type", "#fig-schema .basalt-diagram-node[data-focal] .basalt-diagram-ctype", "#fig-schema .basalt-diagram-node[data-focal]"); + // Every other word at 4.5:1 against Canvas: a node's name, kind and detail, a label, the key, a lane's name, a table's row. + for (const words of ["#fig-architecture .basalt-diagram-node[data-node='alb'] .basalt-diagram-name", "#fig-architecture .basalt-diagram-node[data-node='alb'] .basalt-diagram-kind", "#fig-architecture .basalt-diagram-node[data-node='aurora'] .basalt-diagram-detail", "#fig-architecture .basalt-diagram-label", "#fig-architecture .basalt-diagram-legend", "#fig-dataFlow .basalt-diagram-lane-name", "#fig-schema .basalt-diagram-node:not([data-focal]) .basalt-diagram-cname", "#fig-flowchart .basalt-diagram-node[data-shape='decision'] .basalt-diagram-name"]) { + const strongest = Math.max(...(await under(words)).map((p) => ratio(p, canvas))); + assert.ok(strongest >= 4.5, `${words} is ${strongest.toFixed(2)}:1 on Canvas`); + } + // A measured decision is its diamond alone, at rest and traced: no rectangle round it (its box's border stays transparent, and its corner is Canvas). + const decision = "#fig-flowchart .basalt-diagram-node[data-node='who']"; + const corner = async () => { await page.locator(decision).scrollIntoViewIfNeeded(); const box = await page.locator(decision).boundingBox(); return pixels(page, { x: Math.floor(box.x) + 1, y: Math.floor(box.y) + 1, width: 3, height: 3 }); }; + for (const state of ["at rest", "traced"]) { + if (state === "traced") { await page.hover(decision); await page.waitForTimeout(150); assert.ok(await page.$eval(decision, (el) => el.hasAttribute("data-near"))); } + assert.equal(await page.$eval(decision, (el) => getComputedStyle(el).borderTopColor), "rgba(0, 0, 0, 0)", `a decision's box has no border ${state}`); + assert.ok((await corner()).every((p) => ratio(p, canvas) < 1.1), `a decision's box corner is Canvas ${state}`); + } + // A trace in system colours: the node's own lines and their labels Highlight, every other line GrayText. + await page.hover("#fig-architecture .basalt-diagram-node[data-node='svc']"); + await page.waitForTimeout(150); + const traced = await page.evaluate(() => ({ + lit: [...document.querySelectorAll("#fig-architecture .basalt-diagram-edge[data-lit] .basalt-diagram-line")].map((p) => getComputedStyle(p).stroke), + dim: [...document.querySelectorAll("#fig-architecture .basalt-diagram-edge[data-dim] .basalt-diagram-line")].map((p) => getComputedStyle(p).stroke), + label: [...document.querySelectorAll("#fig-architecture .basalt-diagram-label[data-lit]")].map((l) => getComputedStyle(l).color), + highlight: (() => { const s = document.createElement("i"); s.style.color = "Highlight"; document.body.append(s); const c = getComputedStyle(s).color; s.remove(); return c; })(), + })); + assert.ok(traced.lit.length && traced.lit.every((c) => c === traced.highlight), "a traced line is Highlight"); + assert.ok(traced.dim.length && traced.dim.every((c) => c === r.gray), "a dimmed line is GrayText"); + assert.ok(traced.label.length && traced.label.every((c) => c === traced.highlight), "a traced line's label is Highlight"); + await page.mouse.move(2, 2); + // The stacked sequence's focal chip, at 390. + await resize(page, 390); + await onFill("the stacked sequence's focal chip", "#fig-sequence .basalt-diagram-node[data-focal] .basalt-diagram-name", "#fig-sequence .basalt-diagram-node[data-focal]"); await page.close(); }); } @@ -616,6 +727,63 @@ describe("before script (1.19)", () => { } }); + test("client-rendered, no example paints before it is measured: at the first frame each figure is measured and its ink drawn", async () => { + const page = await browser.newPage({ viewport: { width: 1440, height: 1000 } }); + await page.setContent(`
`); + // The state each figure is in at the first frame after it is put in the page: a requestAnimationFrame callback runs before that frame's paint. + await page.evaluate(() => { + window.__first = {}; + new MutationObserver((records) => { + for (const r of records) for (const n of r.addedNodes) { + if (n.nodeType !== 1) continue; + for (const fig of [n, ...n.querySelectorAll("figure")]) { + if (!fig.matches("figure.basalt-diagram") || fig.id in window.__first) continue; + window.__first[fig.id] = null; + requestAnimationFrame(() => { window.__first[fig.id] = { measured: fig.hasAttribute("data-measured"), layout: fig.getAttribute("data-layout"), ink: fig.querySelector(".basalt-diagram-ink").innerHTML.length }; }); + } + } + }).observe(document.getElementById("root"), { childList: true, subtree: true }); + }); + await page.addScriptTag({ content: await bundleFixture(HOST) }); + await frames(page, 3); + const first = await page.evaluate(() => window.__first); + for (const key of KEYS) { + const f = first[`fig-${key}`]; + assert.ok(f, `${key} was seen`); + assert.equal(f.measured, true, `${key} is measured at its first frame`); + assert.equal(f.layout, "drawn", `${key} is laid out at its first frame`); + assert.ok(f.ink > 0, `${key}'s lines are drawn at its first frame`); + } + await page.close(); + }); + + test("a caller's ref is set and the figure still measures; a caller's hidden and ARIA stay through every state", async () => { + const { page } = await fixturePage(browser, ` +import data from "./test/fixtures/cimip-diagrams.json"; +const { type, ...props } = data.architecture; +function Host() { + const ref = React.useRef(null); + React.useEffect(() => { window.__ref = ref.current; }); + return
; +} +createRoot(document.getElementById("root")).render();`, { theme: "dark", viewport: { width: 1440, height: 1000 } }); + await page.addStyleTag({ content: PAGE }); + await frames(page, 4); + assert.ok(await page.evaluate(() => window.__ref === document.getElementById("with-ref")), "the caller's ref is the figure"); + assert.equal(await page.getAttribute("#with-ref", "data-layout"), "drawn"); + assert.equal(await page.locator(`#with-ref .${P}-svg .${P}-line`).count(), DATA.architecture.edges.length, "its lines are drawn (the key's swatches are not counted)"); + assert.equal(await page.locator(`#with-ref .${P}-node[tabindex="0"]`).count(), 1, "one stop"); + // The figure is measured when it mounts and again when the faces arrive: neither takes the caller's attributes away. + await page.evaluate(() => document.fonts.ready); + for (const width of [1440, 390, 1440]) { + await resize(page, width); + assert.equal(await page.getAttribute("#caller", "hidden"), "", `at ${width} the caller's hidden stays`); + assert.equal(await page.getAttribute("#caller", "aria-describedby"), "elsewhere", `at ${width} the caller's aria-describedby stays`); + assert.equal(await page.getAttribute("#caller", "data-mine"), "1"); + } + await page.close(); + }); + test("a seven-column figure stays stacked before script at every width", async () => { basalt ??= await import(pathToFileURL(path.join(pkg, "dist", "index.js")).href); const nodes = Array.from({ length: 7 }, (_, k) => node(`n${k}`, k + 1, 1)); diff --git a/packages/react/test/export-sizes.json b/packages/react/test/export-sizes.json index 3297e26f..263e9700 100644 --- a/packages/react/test/export-sizes.json +++ b/packages/react/test/export-sizes.json @@ -18,14 +18,14 @@ "AppHeader": 1285, "AppShell": 103887, "AppTile": 1112, - "ArchitectureDiagram": 67486, + "ArchitectureDiagram": 70763, "ArrowDownGlyph": 2868, "ArrowLeftGlyph": 2869, "ArrowRightGlyph": 2859, "ArrowUpGlyph": 2867, "Avatar": 11505, "BackLink": 3844, - "BackToTop": 20461, + "BackToTop": 20467, "Badge": 556, "BadgePair": 411, "BigLinkList": 257, @@ -33,7 +33,7 @@ "Bones": 9174, "BrandSvg": 1084, "Breadcrumbs": 5584, - "Button": 17513, + "Button": 17519, "CONFIRM_MS": 31, "COPIED_MS": 35, "CSPProvider": 449, @@ -56,21 +56,21 @@ "ChevronUpGlyph": 2844, "ChoiceCard": 4424, "ChoiceCardGroup": 294, - "Clock": 2826, + "Clock": 2921, "CloseGlyph": 2836, - "CodeBlock": 23122, + "CodeBlock": 23128, "Columns": 265, "ColumnsItem": 257, - "Combobox": 164576, + "Combobox": 164582, "CommandBlock": 4923, - "CommandList": 33057, - "CommandMenu": 86828, - "Composer": 51964, - "CopyButton": 18435, + "CommandList": 33063, + "CommandMenu": 86834, + "Composer": 51970, + "CopyButton": 18441, "CopyGlyph": 2884, - "Countdown": 2921, + "Countdown": 3016, "CoverageStrip": 1570, - "DataFlowDiagram": 67503, + "DataFlowDiagram": 70780, "DateAge": 2527, "DescriptionColumns": 216, "DescriptionItem": 593, @@ -82,18 +82,18 @@ "DialogDescription": 69877, "DialogTitle": 69890, "DialogTrigger": 69869, - "DirectoryList": 19896, + "DirectoryList": 19902, "DirectoryRow": 5065, "DisclosureRow": 24902, "DotLine": 584, "DotSep": 337, "DownloadGlyph": 2853, - "Drawer": 18064, + "Drawer": 18070, "DrawerSection": 1884, - "DrawerTrigger": 17683, + "DrawerTrigger": 17689, "ENTRANCE_LATE_MS": 26, "EditGlyph": 2915, - "Elapsed": 2496, + "Elapsed": 2591, "EmptyState": 942, "EventLine": 1689, "EventLog": 1180, @@ -105,7 +105,7 @@ "Fieldset": 6390, "FilterResult": 698, "FilterToolbar": 774, - "FlowchartDiagram": 67490, + "FlowchartDiagram": 70729, "Form": 8730, "FormGrid": 438, "FormGridItem": 628, @@ -115,7 +115,7 @@ "HistoryGlyph": 3004, "HomeGlyph": 2945, "Icon": 384, - "IconButton": 16519, + "IconButton": 16525, "InlineCode": 233, "InlineField": 25894, "InlineFields": 210, @@ -133,21 +133,21 @@ "LinkTab": 3764, "LinkTabs": 141116, "LinkTile": 4463, - "ListBand": 158558, + "ListBand": 158564, "Listbox": 3240, "ListboxGroup": 405, "ListboxOption": 4052, - "LivePreview": 46055, + "LivePreview": 46061, "LoadingShape": 11753, "LogFields": 414, "LogLine": 602, "LogSlots": 1588, "LogSummary": 993, - "LoopsToggle": 30148, - "LoopsToggleIcon": 17952, + "LoopsToggle": 30286, + "LoopsToggleIcon": 18053, "MarksRow": 886, "Mention": 342, - "MentionPicker": 13737, + "MentionPicker": 14028, "Menu": 181593, "MenuCheckboxItem": 184918, "MenuContent": 186383, @@ -160,23 +160,23 @@ "MenuSeparator": 181404, "MenuSubmenu": 181229, "MenuSubmenuTrigger": 184749, - "MenuTrigger": 181630, + "MenuTrigger": 181638, "MessagesGlyph": 2976, "Meter": 9757, "MinusGlyph": 2800, "MoreGlyph": 2809, "MoreNavGlyph": 2918, "MorphIcon": 6713, - "MultiSelect": 150482, + "MultiSelect": 150488, "Nav": 4774, "NavGroup": 538, "NavItem": 110701, "NoticeBar": 813, - "NotificationCenter": 151993, - "NotificationCentre": 152003, - "NotificationList": 32602, + "NotificationCenter": 152005, + "NotificationCentre": 152015, + "NotificationList": 32608, "NotificationsGlyph": 3066, - "NumberField": 43928, + "NumberField": 43934, "NumberTicker": 2587, "OpenList": 2045, "OpenListGroup": 476, @@ -186,13 +186,13 @@ "PageSection": 227, "PageSections": 246, "PageWait": 2453, - "Pagination": 21648, + "Pagination": 21654, "PairedArt": 462, "PaneLayout": 1307, "PanelList": 469, "PanelRow": 4642, "PauseGlyph": 2819, - "PeriodStepper": 17812, + "PeriodStepper": 17818, "PhaseChart": 51249, "PlanGlyph": 2966, "PlayGlyph": 2838, @@ -204,7 +204,7 @@ "PopoverDescription": 118926, "PopoverTitle": 118914, "PopoverTrigger": 118936, - "Presence": 3528, + "Presence": 3623, "ProfileGlyph": 3073, "ProfileLink": 24979, "ProfileLinks": 278, @@ -219,14 +219,14 @@ "ReflowItem": 470, "Refreshing": 1911, "Reserve": 441, - "Reveal": 19494, + "Reveal": 19500, "RoutesGlyph": 3009, "RunsGlyph": 3128, "STATUS_MESSAGE_MS": 26, "SandboxesGlyph": 2963, - "SchemaDiagram": 67438, - "SearchDialog": 88271, - "SearchField": 18295, + "SchemaDiagram": 70677, + "SearchDialog": 88277, + "SearchField": 18301, "SearchGlyph": 3181, "SearchMatch": 248, "SearchPassage": 784, @@ -239,11 +239,11 @@ "Segment": 15718, "SegmentedControl": 19383, "Select": 140139, - "SelectableItem": 26537, + "SelectableItem": 26617, "SelectableList": 821, "SelectionBar": 25913, "Separator": 4531, - "SequenceDiagram": 67472, + "SequenceDiagram": 70725, "SettingsGlyph": 3100, "ShareBar": 1411, "Sheet": 70793, @@ -253,16 +253,16 @@ "SheetContent": 74552, "SheetDescription": 69877, "SheetFooter": 234, - "SheetHeader": 79343, + "SheetHeader": 79349, "SheetTitle": 69890, "SheetTrigger": 69869, "ShortcutList": 10032, "SingleKeysSwitch": 17082, "SiteBrand": 1302, "SiteFooter": 14780, - "SiteHeader": 178804, + "SiteHeader": 178924, "SiteLockupDefs": 694, - "SiteMenu": 171126, + "SiteMenu": 171246, "SiteNav": 5102, "SiteNavLink": 411, "SiteNavList": 5112, @@ -272,10 +272,10 @@ "SkipLink": 1014, "Slide": 397, "Slider": 38283, - "SocialLink": 38420, + "SocialLink": 38426, "SocialLinks": 434, "SourceStamp": 3895, - "SourceStateWords": 12703, + "SourceStateWords": 12709, "SourcesGlyph": 2938, "Sparkline": 4585, "Spinner": 1509, @@ -284,7 +284,7 @@ "Stats": 314, "StatusBar": 6813, "StatusLine": 504, - "Stepper": 26707, + "Stepper": 26713, "Stream": 283, "StreamArrivedWord": 470, "StreamBlock": 2764, @@ -304,7 +304,7 @@ "Tab": 40055, "TabBar": 3501, "TabBarItem": 1859, - "TabBarMore": 91222, + "TabBarMore": 91228, "Table": 8305, "TableBody": 143, "TableCall": 391, @@ -321,19 +321,19 @@ "TabsList": 38844, "TabsPanel": 36673, "TabsPanels": 385, - "Terminal": 32255, + "Terminal": 32267, "Text": 922, - "TextButton": 10415, + "TextButton": 10421, "TextMorph": 4504, "Textarea": 26941, "ThemeChoiceControl": 4794, - "ThemeMenu": 206315, + "ThemeMenu": 206329, "TimeChart": 48001, "ToastProvider": 92989, "Toolbar": 22915, - "ToolbarButton": 31812, + "ToolbarButton": 31818, "ToolbarGroup": 21467, - "ToolbarIconButton": 30824, + "ToolbarIconButton": 30830, "ToolbarInput": 43513, "ToolbarLink": 26715, "ToolbarSeparator": 21471, @@ -341,7 +341,7 @@ "TooltipProvider": 97618, "TrashGlyph": 2906, "TravelSpinner": 2100, - "Tray": 90404, + "Tray": 90410, "TrayRow": 502, "TrendsGlyph": 2924, "VisuallyHidden": 258, @@ -391,9 +391,9 @@ "useConfirm": 269, "useGlide": 1355, "useInShape": 189, - "useLoops": 1050, + "useLoops": 1145, "useMediaQuery": 260, - "useNow": 1614, + "useNow": 1709, "usePaneScroller": 154, "usePinnedEdges": 2090, "useReducedMotion": 307, @@ -412,11 +412,11 @@ "useWaitMark": 303 }, "package": { - "bytes": 869454, - "gzip": 288502 + "bytes": 873383, + "gzip": 289962 }, "styles": { - "bytes": 377206, - "gzip": 49222 + "bytes": 382498, + "gzip": 49967 } } diff --git a/packages/react/test/fixtures/diagram-motion.json b/packages/react/test/fixtures/diagram-motion.json new file mode 100644 index 00000000..5eae3100 --- /dev/null +++ b/packages/react/test/fixtures/diagram-motion.json @@ -0,0 +1,45 @@ +{ + "$comment": "DECISIONS 292: what the CIMIP examples add to be animated (the base is cimip-diagrams.json, which stays the still drawing), and the kit: the prototype's \"How a change reaches production\", carrying nine brands' marks: six their owners' files and Jenkins, BlazeMeter and ServiceNow unofficial (DECISIONS 297). A mark is a bundled id here; React reads the module of that id (@srasyndicate/basalt/marks/), the skill the id itself. flow lists the lines that flow, by from and to.", + "cimip": { + "architecture": { + "motion": "animated", + "pulse": ["browser", "alb", "svc"], + "flow": [["svc", "agent"]], + "marks": { "alb": "aws-application-load-balancer", "svc": "aws-ecs-service", "ecs": "aws-ecs-service", "agent": "aws-ecs-task", "aurora": "aws-database", "s3": "aws-s3-bucket", "cw": "aws-cloudwatch-logs", "bedrock": "aws-bedrock" } + }, + "dataFlow": { "motion": "animated", "packet": { "path": ["send", "append", "row", "hear", "see"], "repeat": true } }, + "sequence": { "motion": "animated", "run": true }, + "flowchart": { "motion": "animated" }, + "schema": { "motion": "animated" } + }, + "kit": { + "type": "architecture", + "motion": "animated", + "title": "How a change reaches production", + "source": "A sample to show the service marks; not a real system", + "summary": "A pull request on GitHub is reviewed by CodeRabbit and Greptile and built on Blacksmith's runners. The build is scanned by SonarQube, and Jenkins takes the artifact, runs a BlazeMeter load test, files a ServiceNow change and starts the Temporal deploy workflow.", + "legend": { "main": "Release path", "plain": "Call", "dashed": "Async or one-way" }, + "pulse": ["github", "blacksmith", "jenkins", "temporal"], + "nodes": [ + { "id": "github", "kind": "repository", "name": "GitHub", "detail": "pull request", "col": 1, "row": 2, "mark": "github" }, + { "id": "coderabbit", "kind": "AI review", "name": "CodeRabbit", "detail": "line comments", "col": 1, "row": 1, "mark": "coderabbit" }, + { "id": "greptile", "kind": "AI review", "name": "Greptile", "detail": "codebase context", "col": 1, "row": 3, "mark": "greptile" }, + { "id": "blacksmith", "kind": "CI runners", "name": "Blacksmith", "detail": "Actions jobs", "col": 2, "row": 2, "mark": "blacksmith" }, + { "id": "sonar", "kind": "quality gate", "name": "SonarQube", "detail": "coverage · issues", "col": 2, "row": 3, "mark": "sonarqube" }, + { "id": "jenkins", "kind": "release pipeline", "name": "Jenkins", "detail": "artifact → stages", "col": 3, "row": 2, "mark": "jenkins" }, + { "id": "blazemeter", "kind": "load test", "name": "BlazeMeter", "detail": "500 users · 10 min", "col": 3, "row": 3, "mark": "blazemeter" }, + { "id": "temporal", "kind": "workflows", "name": "Temporal", "detail": "deploy workflow", "col": 4, "row": 2, "mark": "temporal" }, + { "id": "servicenow", "kind": "change record", "name": "ServiceNow", "detail": "normal change", "col": 4, "row": 1, "mark": "servicenow" } + ], + "edges": [ + { "from": "github", "to": "coderabbit", "label": "review" }, + { "from": "github", "to": "blacksmith", "kind": "main", "label": "push" }, + { "from": "github", "to": "greptile", "label": "review" }, + { "from": "blacksmith", "to": "sonar", "label": "scan" }, + { "from": "blacksmith", "to": "jenkins", "kind": "main", "label": "build" }, + { "from": "jenkins", "to": "blazemeter", "label": "load" }, + { "from": "jenkins", "to": "servicenow", "kind": "dashed", "label": "change", "fromSide": "top", "toSide": "left" }, + { "from": "jenkins", "to": "temporal", "kind": "main", "label": "deploy" } + ] + } +} diff --git a/packages/react/test/motion-docs.test.mjs b/packages/react/test/motion-docs.test.mjs index 2866f49b..d9c3120e 100644 --- a/packages/react/test/motion-docs.test.mjs +++ b/packages/react/test/motion-docs.test.mjs @@ -13,11 +13,14 @@ const foundations = flat(read("docs/foundations.md")); const motion = flat(read("docs/motion.md")); const agents = flat(read("AGENTS.md")); -const SENTENCE = "Two kinds of thing loop, and nothing else: a mark that says work is running (the ring, braille, a busy Button's ring, a busy TextButton's underline, the indeterminate Progress bar, Sparkline's loading line, Skeleton's pulse and a written field's fill), and a page's one ambient loop, opacity only, in its art; `data-loops=\"held\"` stops both."; +// DECISIONS 292 (5.3, 5.9) added a third kind, an animated diagram's live lines; foundations names them, AGENTS.md keeps the shorter form. +const LOOPS = "Three kinds of thing loop, and nothing else: a mark that says work is running (the ring, braille, a busy Button's ring, a busy TextButton's underline, the indeterminate Progress bar, Sparkline's loading line, Skeleton's pulse and a written field's fill), a page's one ambient loop, opacity only, in its art, and an animated diagram's live lines"; +const SENTENCE = `${LOOPS} (a flow line, a pulse, a packet that repeats); \`data-loops="held"\` stops all three.`; +const AGENTS_SENTENCE = `${LOOPS}; \`data-loops="held"\` stops all three.`; test("the one sentence for loops is in foundations and in AGENTS.md, and the three older wordings are gone", () => { assert.ok(foundations.includes(SENTENCE), "foundations"); - assert.ok(agents.includes(SENTENCE), "AGENTS.md"); + assert.ok(agents.includes(AGENTS_SENTENCE), "AGENTS.md"); for (const [name, text] of [["foundations", foundations], ["motion", motion], ["AGENTS.md", agents]]) { assert.ok(!/Nothing loops except spinners/.test(text), `${name}: the old sentence`); assert.ok(!/Nothing overshoots or loops, except spinners/.test(text), `${name}: the old sentence`); diff --git a/packages/tokens/build.mjs b/packages/tokens/build.mjs index f0becc31..0d49b0cb 100644 --- a/packages/tokens/build.mjs +++ b/packages/tokens/build.mjs @@ -136,6 +136,9 @@ const MORE_CONTRAST = { "border-hover": "text-secondary", // A diagram's focal table draws its header rule as the other theme's input boundary (DECISIONS 281, 1.18). "diagram-focal-rule": "diagram-focal-rule-contrast", + // A diagram card's arrival rim (DECISIONS 292, 1.12): the rim it replaces is the input boundary's value in the mode, and secondary ink is under 3:1 + // against that, and the same colour as a traced neighbour's rim (border-hover). It steps to primary ink, a colour the theme already has. + "diagram-hit": "text-primary", }; for (const [token, alias] of Object.entries(MORE_CONTRAST)) { for (const name of [token, alias]) if (!lightNames.includes(`--${PREFIX}-${name}`)) throw new Error(`more contrast: --${PREFIX}-${name} does not exist`); @@ -168,7 +171,7 @@ const css = [ "", "/* More contrast (decisions 138 and 139, part D). A person who asks for it (prefers-contrast: more) gets three aliases and no new", " colour: lines (the hairline, the divider, the rim and the pill's hairline) are drawn in the input boundary's value, and tertiary ink,", - " a hovered edge (decision 145) and a field's boundary as secondary. The same declarations are made on every selector that sets a theme, after all of", + " a hovered edge (decision 145) and a field's boundary as secondary, and a diagram card's arrival rim as primary (DECISIONS 292). The same declarations are made on every selector that sets a theme, after all of", " them and at the system-dark rule's own specificity, so they win in both themes and under a theme chosen with data-theme. A var()", " is substituted where it is declared, so each alias reads the theme of the element it is on. */", "@media (prefers-contrast: more) {", diff --git a/packages/tokens/test/contrast.test.mjs b/packages/tokens/test/contrast.test.mjs index 2995053b..dae3efd8 100644 --- a/packages/tokens/test/contrast.test.mjs +++ b/packages/tokens/test/contrast.test.mjs @@ -844,7 +844,7 @@ const MORE = Object.fromEntries([...moreBlock[2].matchAll(/--basalt-([\w-]+): va const more = (theme, name) => color(theme, MORE[name] ?? name); test("more contrast: lines step to border-input, tertiary ink to text-secondary and a field's boundary to text-secondary, and nothing else is replaced", () => { - assert.deepEqual(MORE, { "border-hairline": "line-contrast", "border-rim": "line-contrast", "border-rim-top": "line-contrast", "border-divider": "line-contrast", "text-tertiary": "ink-contrast", "border-field": "field-contrast", "border-hover": "text-secondary", "diagram-focal-rule": "diagram-focal-rule-contrast" }); + assert.deepEqual(MORE, { "border-hairline": "line-contrast", "border-rim": "line-contrast", "border-rim-top": "line-contrast", "border-divider": "line-contrast", "text-tertiary": "ink-contrast", "border-field": "field-contrast", "border-hover": "text-secondary", "diagram-focal-rule": "diagram-focal-rule-contrast", "diagram-hit": "text-primary" }); // the block is declared on every selector that sets a theme, the system-dark rule's own selector included, so it wins in both themes for (const selector of [":root", '[data-theme="light"]', '[data-theme="dark"]', ".light", ".dark", ':root:not([data-theme="light"]):not(.light)']) assert.ok(moreBlock[1].includes(selector), `the mode is not declared on ${selector}`); assert.ok(tokensCss.indexOf("prefers-contrast: more") > tokensCss.indexOf("@media (prefers-color-scheme: dark)"), "the mode comes after the system-dark rule, which it must outrank"); @@ -996,6 +996,26 @@ for (const theme of THEMES) { for (const name of ["text-primary", "text-secondary", "text-tertiary"]) atLeast(theme, name, 4.5, levels.slice(1)); atLeast(theme, "diagram-edge-dim", 3, levels); }); + + // DECISIONS 292 (1.2, 1.12): the two motion roles are aliases, the arrival rim is 3:1 on every level and, under more contrast, 3:1 against the rim it + // replaces there (the input boundary over each level) and never the colour of a traced neighbour's rim (border-hover); focal ink holds on the focal step. + test(`${theme}: a diagram's arrival step: the rim and the focal fill are aliases, 3:1 at rest and under more contrast, and focal ink holds on the step`, () => { + assert.deepEqual(color(theme, "diagram-hit"), color(theme, "text-secondary")); + assert.deepEqual(color(theme, "diagram-focal-hit"), color(theme, "action-primary-hover")); + assert.deepEqual(more(theme, "diagram-hit"), color(theme, "text-primary"), "under more contrast the arrival rim is primary ink"); + atLeast(theme, "diagram-hit", 3, levels); + for (const [bgName, bg] of levels) { + const rim = over(more(theme, "border-rim"), bg); + const hit = over(more(theme, "diagram-hit"), bg); + assert.ok(ratio(hit, rim) >= 3, `${theme}: the arrival rim against the resting rim over ${bgName} under more contrast is ${fmt(ratio(hit, rim))}:1`); + assert.notDeepEqual(hit, over(more(theme, "border-hover"), bg), `${theme}: under more contrast the arrival rim is the traced neighbour's rim over ${bgName}`); + } + const step = color(theme, "diagram-focal-hit"); + const ink = color(theme, "diagram-focal-ink"); + const amount = Number.parseFloat(tokens.primitives["opacity-amount"].css); + assert.ok(ratio(ink, step) >= 4.5, `${theme}: focal ink on the focal step is ${fmt(ratio(ink, step))}:1`); + assert.ok(ratio(over({ ...ink, alpha: amount }, step), step) >= 4.5, `${theme}: focal ink at opacity-amount on the focal step`); + }); } // ---- The public plate (cimip-gaps-2, B3): plate-0 to plate-3 ---- diff --git a/packages/tokens/tokens/primitives.tokens.json b/packages/tokens/tokens/primitives.tokens.json index 061ee7b6..a640eeef 100644 --- a/packages/tokens/tokens/primitives.tokens.json +++ b/packages/tokens/tokens/primitives.tokens.json @@ -1227,6 +1227,22 @@ }, "$description": "A sequence diagram's lifeline dash, on and off (4 on 4 off), unlike a message's 6 on 4 off (DECISIONS 281)." }, + "diagram-bead": { + "$type": "dimension", + "$value": { + "value": 24, + "unit": "px" + }, + "$description": "A diagram pulse's bead, along the line (DECISIONS 292); never more than two fifths of the line's visible length." + }, + "diagram-flow": { + "$type": "dimension", + "$value": { + "value": 12, + "unit": "px" + }, + "$description": "From one flow cut to the next on a diagram's live line (DECISIONS 292): a cut is size-cut, so 10 on, 2 off." + }, "meter-marker": { "$type": "dimension", "$value": { @@ -1666,6 +1682,97 @@ }, "$description": "The step between the marks of one figure entering, shrunk so every start falls within duration-slow of the first. Under reduced motion 0." }, +"diagram": { + "$description": "A diagram's own motion (DECISIONS 292), when its author asks for it (motion=\"animated\"). They time nothing but a diagram, and they do not collapse under reduced motion: nothing they time runs there. rest is a hold, as confirm is.", + "line-min": { + "$type": "duration", + "$value": { + "value": 400, + "unit": "ms" + }, + "$description": "The shortest a traced line takes to draw (a line takes its length at speed-diagram-trace, never under this nor over line-max)." + }, + "line-max": { + "$type": "duration", + "$value": { + "value": 900, + "unit": "ms" + }, + "$description": "The longest a traced line takes to draw." + }, + "stagger": { + "$type": "duration", + "$value": { + "value": 220, + "unit": "ms" + }, + "$description": "Between one traced line's start and the next. It shrinks by one factor when an entrance would pass duration-diagram-limit." + }, + "step": { + "$type": "duration", + "$value": { + "value": 320, + "unit": "ms" + }, + "$description": "Between one sequence message's start and the next. It shrinks to fit the limit, as the stagger does." + }, + "arrow": { + "$type": "duration", + "$value": { + "value": 500, + "unit": "ms" + }, + "$description": "A sequence message's arrow drawing." + }, + "limit": { + "$type": "duration", + "$value": { + "value": 5000, + "unit": "ms" + }, + "$description": "An entrance ends inside it (WCAG 2.2.2's five seconds): the stagger or the step shrinks to fit, and no line's own duration changes." + }, + "leg-min": { + "$type": "duration", + "$value": { + "value": 500, + "unit": "ms" + }, + "$description": "The shortest leg of a packet (a leg takes its length at speed-diagram-packet, never under this nor over leg-max)." + }, + "leg-max": { + "$type": "duration", + "$value": { + "value": 1100, + "unit": "ms" + }, + "$description": "The longest leg of a packet." + }, + "rest": { + "$type": "duration", + "$value": { + "value": 400, + "unit": "ms" + }, + "$description": "A mover's rest at a stop, while the stop holds its arrival step. A hold, not an animation." + }, + "pause": { + "$type": "duration", + "$value": { + "value": 1200, + "unit": "ms" + }, + "$description": "Between two runs of a pulse; and before the loops resume after a trace ends." + }, + "repeat": { + "$type": "duration", + "$value": { + "value": 4000, + "unit": "ms" + }, + "$description": "Between a repeating packet landing and its next start." + } + }, "loop": { "$description": "Loops: they repeat while work is happening, so they may run longer than an entry. Under reduced motion a spinner fades instead of moving, and a loop is never cut to the 100ms floor, or it flickers.", "ring": { @@ -1702,6 +1809,28 @@ } } }, + "speed": { + "$type": "number", + "$description": "Speeds in pixels a second, plain numbers (as opacity and aspect are). A diagram's motion only (DECISIONS 292).", + "diagram": { + "trace": { + "$value": 300, + "$description": "A traced line's drawing, clamped by duration-diagram-line-min and -line-max." + }, + "packet": { + "$value": 250, + "$description": "A packet's leg (4ms a pixel), clamped by duration-diagram-leg-min and -leg-max." + }, + "pulse": { + "$value": 120, + "$description": "A pulse's bead along its route." + }, + "flow": { + "$value": 16, + "$description": "A flow line's march: its cuts move toward the head." + } + } + }, "ease": { "$description": "No overshoot anywhere. out: entries and moves that answer input. in: exits, at 0.75 of the entry. in-out: rest-to-rest travel the eye follows, and loop pulses. linear: spinners.", "out": { diff --git a/packages/tokens/tokens/theme.dark.tokens.json b/packages/tokens/tokens/theme.dark.tokens.json index c4110131..a2ba6d13 100644 --- a/packages/tokens/tokens/theme.dark.tokens.json +++ b/packages/tokens/tokens/theme.dark.tokens.json @@ -284,6 +284,14 @@ "focal-rule-contrast": { "$value": "{color.black.45}", "$description": "Under more contrast, the focal table's header rule: the other theme's input boundary (DECISIONS 281, 1.18). An alias, no new colour." + }, + "hit": { + "$value": "{color.text.secondary}", + "$description": "A diagram card's rim while a mover rests on it: its arrival step (DECISIONS 292). 3:1 on levels 0 to 3. Under more contrast it steps to text-primary, because the rim it replaces is the input boundary's value there and secondary ink is under 3:1 against that." + }, + "focal-hit": { + "$value": "{color.action.primary-hover}", + "$description": "The focal card's fill and edge while a mover rests on it: the primary action's hover value, a colour step of the fill (DECISIONS 292). Focal ink holds 4.5:1 on it at full strength and at opacity-amount." } }, "art": { diff --git a/packages/tokens/tokens/theme.light.tokens.json b/packages/tokens/tokens/theme.light.tokens.json index 49c27b6d..4adf15f9 100644 --- a/packages/tokens/tokens/theme.light.tokens.json +++ b/packages/tokens/tokens/theme.light.tokens.json @@ -284,6 +284,14 @@ "focal-rule-contrast": { "$value": "{color.white.38}", "$description": "Under more contrast, the focal table's header rule: the other theme's input boundary (DECISIONS 281, 1.18). An alias, no new colour." + }, + "hit": { + "$value": "{color.text.secondary}", + "$description": "A diagram card's rim while a mover rests on it: its arrival step (DECISIONS 292). 3:1 on levels 0 to 3. Under more contrast it steps to text-primary, because the rim it replaces is the input boundary's value there and secondary ink is under 3:1 against that." + }, + "focal-hit": { + "$value": "{color.action.primary-hover}", + "$description": "The focal card's fill and edge while a mover rests on it: the primary action's hover value, a colour step of the fill (DECISIONS 292). Focal ink holds 4.5:1 on it at full strength and at opacity-amount." } }, "art": { diff --git a/scripts/check-vocabulary.mjs b/scripts/check-vocabulary.mjs index da21f270..445fc432 100644 --- a/scripts/check-vocabulary.mjs +++ b/scripts/check-vocabulary.mjs @@ -27,6 +27,12 @@ export const SURFACE = [ /** One app's nouns, as whole words (lower case). */ const NOUNS = new Set(["incident", "incidents", "commander", "commanders", "severity", "severities", "sev", "sev1", "sev2", "sev3", "sev4", "scribe", "scribes", "rolodex", "rolodexes", "servicenow", "warroom", "warrooms"]); +/** + * A service mark's files (DECISIONS 297): a bundled mark is named for its owner's brand, and ServiceNow is a vendor's mark like GitHub's, not an + * app's noun, so its name may stand in the generated mark modules and the skill's marks part. Every other noun is still refused there. + */ +const BRANDS = [{ under: "packages/react/src/marks/", words: ["servicenow"] }, { under: "tools/html-skill/src/marks.json", words: ["servicenow"] }]; +const brandWords = (file) => BRANDS.filter((b) => file.split(path.sep).join("/").startsWith(b.under)).flatMap((b) => b.words); /** Two words that are a noun together. */ const PAIRS = [["war", "room"], ["war", "rooms"]]; /** @@ -187,7 +193,8 @@ export function checkSource(file, source) { }; code.split("\n").forEach((text, index) => { const line = index + 1; - const found = nounsIn(text); + const brands = brandWords(file); + const found = nounsIn(text).filter((noun) => !brands.includes(noun)); if (!found.length) return; if (excuses(line)) return; problems.push({ line, message: `an app's noun in the public surface: ${[...new Set(found)].join(", ")} (name it for what it is, or take the word from the app as a prop)` }); diff --git a/scripts/verify-packages.mjs b/scripts/verify-packages.mjs index 4656684f..b8401dce 100644 --- a/scripts/verify-packages.mjs +++ b/scripts/verify-packages.mjs @@ -21,7 +21,7 @@ try { archives.push(path.join(out, packed.filename)); packedPackages.push({ packed, manifest: JSON.parse(fs.readFileSync(path.join(repo, workspace, "package.json"), "utf8")) }); const files = new Set(packed.files.map((file) => file.path)); - for (const required of workspace.endsWith("react") ? ["dist/index.js", "dist/index.d.ts", "dist/testing/headroom.js", "dist/testing/headroom.d.ts", "dist/tooling/phosphor.js", "dist/tooling/phosphor.d.ts", "dist/tooling/imports.js", "dist/tooling/imports.d.ts", "dist/head/theme.js", "dist/head/loops.js", "dist/styles.css", "dist/fonts.css", "dist/fonts/OFL.txt", "dist/fonts/Geist-Variable.woff2", "dist/fonts/GeistMono-Variable.woff2"] : ["dist/css/tokens.css", "dist/css/accents.css", "dist/css/shadcn.css", "dist/js/tokens.js", "dist/js/tokens.d.ts", "dist/js/breakpoints.js", "dist/js/durations.js", "dist/js/durations.d.ts", "dist/json/tokens.json"]) assert.ok(files.has(required), `${packed.name} is missing ${required}`); + for (const required of workspace.endsWith("react") ? ["dist/index.js", "dist/index.d.ts", "dist/testing/headroom.js", "dist/testing/headroom.d.ts", "dist/tooling/phosphor.js", "dist/tooling/phosphor.d.ts", "dist/tooling/imports.js", "dist/tooling/imports.d.ts", "dist/head/theme.js", "dist/head/loops.js", "dist/styles.css", "dist/fonts.css", "dist/fonts/OFL.txt", "dist/fonts/Geist-Variable.woff2", "dist/fonts/GeistMono-Variable.woff2", "dist/marks/aws-ecs-service.js", "dist/marks/aws-ecs-service.d.ts", "THIRD-PARTY-MARKS.md"] : ["dist/css/tokens.css", "dist/css/accents.css", "dist/css/shadcn.css", "dist/js/tokens.js", "dist/js/tokens.d.ts", "dist/js/breakpoints.js", "dist/js/durations.js", "dist/js/durations.d.ts", "dist/json/tokens.json"]) assert.ok(files.has(required), `${packed.name} is missing ${required}`); } // Next.js is in the lockfile (geist's peer), so the server-component check below installs the version the repository already resolves, offline. const nextVersion = JSON.parse(fs.readFileSync(path.join(repo, "package-lock.json"), "utf8")).packages["node_modules/next"].version; diff --git a/tools/html-skill/build.mjs b/tools/html-skill/build.mjs index 4f792c47..90372899 100644 --- a/tools/html-skill/build.mjs +++ b/tools/html-skill/build.mjs @@ -93,7 +93,10 @@ const TYPE_LAYOUT_TOKEN = /^--basalt-(?:text-(?:6xl|7xl|hero-narrow|display-narr const LINK_ROWS_TOKEN = /^--basalt-size-row\b/; /** The diagram roles and lengths (DECISIONS 281), the same way: the `diagram` module's, out of the core. */ const DIAGRAM_TOKEN = /^--basalt-(?:diagram-|size-diagram-)/; -const inCore = Object.assign((name) => !MODULE_TOKEN.test(name) && !TYPE_LAYOUT_TOKEN.test(name) && !LINK_ROWS_TOKEN.test(name) && !DIAGRAM_TOKEN.test(name), { keepsOther: true }); +/** A diagram's durations and speeds (DECISIONS 292): the `diagram-motion` module's, out of the core and out of the still diagram's. */ +const DIAGRAM_MOTION_TOKEN = /^--basalt-(?:duration-diagram-|speed-)/; +const inCore = Object.assign((name) => !MODULE_TOKEN.test(name) && !TYPE_LAYOUT_TOKEN.test(name) && !LINK_ROWS_TOKEN.test(name) && !DIAGRAM_TOKEN.test(name) && !DIAGRAM_MOTION_TOKEN.test(name), { keepsOther: true }); +const inDiagramMotion = Object.assign((name) => DIAGRAM_MOTION_TOKEN.test(name), { keepsOther: false }); const inDiagram = Object.assign((name) => DIAGRAM_TOKEN.test(name), { keepsOther: false }); const inLinkRows = Object.assign((name) => LINK_ROWS_TOKEN.test(name), { keepsOther: false }); const inArt = Object.assign((name) => MODULE_TOKEN.test(name), { keepsOther: false }); @@ -245,6 +248,14 @@ function diagramCss() { if (css.includes("--_surface")) throw new Error("html-skill: the diagrams section reads --_surface in a form diagramCss does not rename"); return `@layer basalt {\n${css}\n}\n`; } +/** The diagram-motion module's stylesheet (DECISIONS 292): the "Diagram motion" section of components.css, renamed the same way. */ +function diagramMotionCss() { + const react = fs.readFileSync(path.join(repo, "packages", "react", "src", "styles", "components.css"), "utf8"); + const start = react.indexOf(" /* ---- Diagram motion (DECISIONS 292"); + const end = react.indexOf(" /* ---- ", start + 10); + if (start < 0 || end < 0) throw new Error("html-skill: the diagram motion section of packages/react/src/styles/components.css moved; update diagramMotionCss"); + return `@layer basalt {\n${react.slice(start, end).replaceAll(".basalt-diagram", ".diagram")}\n}\n`; +} /** A module whose source imports React's engine (the diagram module): bundled into one script, the import inlined. */ function bundleModule(file) { const out = esbuild.buildSync({ entryPoints: [file], bundle: true, format: "iife", platform: "browser", target: "es2020", write: false, logLevel: "silent", legalComments: "inline", charset: "utf8" }); @@ -273,10 +284,12 @@ export function build() { const tokens = name === "type-layout" ? `${filterTokens(tokensCss(), inTypeLayout)}\n` : name === "link-rows" ? `${filterTokens(tokensCss(), inLinkRows)}\n` : ""; // The diagram module's stylesheet is React's own section, renamed (diagramCss), so the two cannot drift; its script bundles React's engine. if (name === "diagram") files["parts/diagram.css"] = minifyCss(`${dedupeSystemDark(filterTokens(tokensCss(), inDiagram))}\n${diagramCss()}`); + // The motion section, with the motion tokens (the diagram durations and speeds) that only an animated diagram reads. + if (name === "diagram-motion") files["parts/diagram-motion.css"] = minifyCss(`${filterTokens(tokensCss(), inDiagramMotion)}\n${diagramMotionCss()}`); for (const ext of ["css", "js"]) { const file = path.join(srcDir, "modules", `${name}.${ext}`); if (!fs.existsSync(file)) continue; - if (ext === "js" && name === "diagram") files[`parts/${name}.js`] = minifyJs(bundleModule(file)); + if (ext === "js" && (name === "diagram" || name === "diagram-motion")) files[`parts/${name}.js`] = minifyJs(bundleModule(file)); else files[`parts/${name}.${ext}`] = ext === "css" ? minifyCss(tokens + fs.readFileSync(file, "utf8")) : minifyJs(fs.readFileSync(file, "utf8")); } } @@ -284,6 +297,8 @@ export function build() { const notice = licenceComment(path.join(findPackage("@phosphor-icons/react"), "LICENSE"), "The icon paths below are from Phosphor Icons (@phosphor-icons/react):"); files["parts/icons.json"] = `${JSON.stringify({ notice, icons: iconData(JSON.parse(src("icons.json"))) })}\n`; files["parts/glyphs.json"] = `${JSON.stringify(glyphData())}\n`; + // Every bundled service mark (DECISIONS 292, 2.6), generated by packages/react/marks/generate.mjs; compose.mjs writes into a page only the marks it names. + files["parts/marks.json"] = src("marks.json"); files["parts/geist.css"] = `${geistFonts()}\n`; // The usage text is prose, so it is copied as it is: one file for the core and one for each module. const usageDir = path.join(srcDir, "usage"); diff --git a/tools/html-skill/src/compose.mjs b/tools/html-skill/src/compose.mjs index f3d8550c..d26d08ca 100644 --- a/tools/html-skill/src/compose.mjs +++ b/tools/html-skill/src/compose.mjs @@ -14,7 +14,8 @@ // compose.mjs wraps it in the doctype, meta and theme bootstrap, adds Geist (inlined, unless --no-fonts), the core CSS and // script and only the modules the body uses, the icons it names, and `Basalt.init()` unless the body already calls it. // A comment, script, style, svg or template that is never closed is refused. A style, title, meta or link inside an svg or a template is left where it is. -// The output is the same for the same input. It reads only the files beside it (parts/ and SKILL.md) and writes only --out. +// The output is the same for the same input. It reads only the files beside it (parts/ and SKILL.md), and a diagram's own service-mark files where a +// card names one by path (read from beside the body, so the page stays one file), and writes only --out. // --all adds every module and every icon (for a page that builds markup at run time, and for measuring). No dependencies. // After the page, it prints the one-line warning of each module it added (the module's line in SKILL.md's index), to stdout; a module // the body never uses itself, which is in only because another module's script builds it, says so instead. @@ -513,7 +514,7 @@ export function brandSvg(text) { * The page for a body fragment. Options: fonts (default true), lang ("en"), all (every module), parts (the folder of parts). * Returns { html, modules, icons, glyphs, built, external, bytes } (external: what the body references that leaves the file; built: { module: the module whose script builds it } for a module the body never triggers). Throws an Error with a plain message for input it can't use. */ -export function compose(body, { fonts = true, lang = "en", all = false, parts = path.join(here, "parts") } = {}) { +export function compose(body, { fonts = true, lang = "en", all = false, parts = path.join(here, "parts"), baseDir = process.cwd() } = {}) { if (!/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(lang)) throw new Error(`"${lang}" is not a language code`); const manifest = JSON.parse(read(parts, "manifest.json")); const iconFile = JSON.parse(read(parts, "icons.json")); @@ -524,6 +525,9 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = let markup = held.text; if (held.whole) throw new Error("the input is a whole page; give compose.mjs the body fragment only (the HTML that goes inside )"); const use = []; + // A diagram's service marks (DECISIONS 292, 2.6): the bundled ids a page names (in its cards, or in a comment for a figure drawn + // from script) and its own marks, read into the page. One rule a mark, however many cards use it. + const marks = { named: [], used: new Map(), baseDir, file: null, parts }; const styles = []; const headTags = []; let title = null; @@ -533,6 +537,8 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = if (kind === "title" && title === null) { title = inner.trim(); return ""; } if (kind === "head") { headTags.push(headTag(text.trim(), held.saved[Number(i)].attrs)); return ""; } if (kind === "svg" && readTag(text, 0).attrs.some((a) => a[0] === "data-brand")) return brandSvg(text) + ws; + const named = kind === "comment" && text.match(/^$/); + if (named) { marks.named.push(...named[1].split(/[\s,]+/).filter(Boolean)); return ws; } const directive = kind === "comment" && text.match(/^$/); if (!directive) return all$; use.push(...directive[1].split(/[\s,]+/).filter(Boolean)); @@ -541,7 +547,7 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = for (const name of use) if (!(name in manifest.modules)) throw new Error(`basalt:use names "${name}", which is not a module (modules: ${Object.keys(manifest.modules).join(", ")})`); const diagramNotes = []; - const content = held.restore(writeDiagrams(markup, held, parts, diagramNotes)).replace(/^\s+/, ""); + const content = held.restore(writeDiagrams(markup, held, parts, diagramNotes, marks)).replace(/^\s+/, ""); title ||= held.h1 || "Untitled page"; // an empty names nothing: the heading does // Detection reads markup and code, never comments: a word written about in a comment (an HTML one, or one inside a script or a style) brings nothing in. @@ -552,7 +558,9 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = const direct = detect(code, bare, [], { all, use }).modules; const built = Object.fromEntries(chosen.modules.filter((n) => !direct.includes(n)).flatMap((n) => chosen.modules.filter((m) => (manifest.modules[m].builds ?? []).includes(n)).slice(0, 1).map((m) => [n, m]))); - const css = [read(parts, "core.css"), ...chosen.modules.filter((n) => exists(parts, `${n}.css`)).map((n) => read(parts, `${n}.css`))].join(""); + for (const id of marks.named) useMark(marks, id, null); + const markCss = chosen.modules.includes("diagram") ? markRules(marks) : ""; + const css = [read(parts, "core.css"), ...chosen.modules.filter((n) => exists(parts, `${n}.css`)).map((n) => read(parts, `${n}.css`)), markCss].join(""); const icons = Object.fromEntries(chosen.icons.map((n) => [n, iconFile.icons[n]])); const script = [ read(parts, "core.js"), @@ -601,7 +609,7 @@ export function compose(body, { fonts = true, lang = "en", all = false, parts = * example inside one is text and is never expanded. A figure is found by the composer's own tag reader (quoted, single-quoted or unquoted attributes alike), * and is expanded only when its class list holds `diagram` and its content is one `script` with `data-diagram` and nothing else but white space. */ -function writeDiagrams(markup, held, parts, notes) { +function writeDiagrams(markup, held, parts, notes, marks) { if (!exists(parts, "diagram.js")) return markup; const mark = held.mark; const json = new RegExp(`^(\\s*)${mark}(\\d+)${mark}(\\s*)</figure(?=[\\t\\n\\f\\r />])[^>]*>`, "i"); @@ -621,6 +629,22 @@ function writeDiagrams(markup, held, parts, notes) { if (!item || item.kind !== "script" || !item.attrs.some(([k]) => k === "data-diagram")) continue; let spec; try { spec = JSON.parse(item.inner); } catch (e) { notes.push(`a diagram's JSON does not parse (${e.message}); the page's script will say so`); continue; } + // Each card's mark: a bundled id is checked and its rule written once; the page's own mark is read into the page and named by an id, so the JSON + // the script reads carries the id and never a path. + if (spec && spec.type === "architecture" && Array.isArray(spec.nodes)) { + let rewrote = false; + for (const n of spec.nodes) { + if (!n || n.mark === undefined || n.mark === null) continue; + if (typeof n.mark === "string") useMark(marks, n.mark, n, notes); + else { n.mark = ownMark(marks, n.mark); rewrote = true; } + } + if (rewrote) { + // Every < as \u003c, which JSON reads as the same character: a title holding </script> or <!-- cannot end or bend the script it is in. + const inner = `\n${JSON.stringify(spec).replace(/</g, "\\u003c")}\n`; + item.text = item.text.replace(item.inner, () => inner); + item.inner = inner; + } + } if (!engine) { const context = { window: { Basalt: { _: { step() {}, esc: (x) => x } } }, console: { warn() {}, error() {}, log() {} } }; vm.runInNewContext(read(parts, "diagram.js"), context); @@ -644,6 +668,61 @@ function writeDiagrams(markup, held, parts, notes) { return out + markup.slice(at); } +/** The bundled marks file (parts/marks.json), read once a page names a mark. */ +const marksFile = (marks) => (marks.file ??= JSON.parse(read(marks.parts, "marks.json"))); +/** A URL as a CSS string inside a <style>: a backslash and a quote escaped, a newline as \a and every < as \3c (CSS reads both as the character), so a data URI + * holding </style> cannot end the style sheet. */ +const cssUrl = (u) => `url("${u.replace(/[\\"]/g, (c) => `\\${c}`).replace(/\n/g, "\\a ").replace(/</g, "\\3c ")}")`; + +/** A bundled mark a page uses: known, its rule written once, and (for a card) its words checked: a mark never carries a fact alone. */ +function useMark(marks, id, node, notes) { + const file = marksFile(marks); + if (marks.used.has(id)) { if (node) checkSays(file, id, node, notes); return; } + const mark = Object.hasOwn(file.marks, id) ? file.marks[id] : undefined; + if (!mark) throw new Error(`"${id}" is not a bundled service mark (the marks: ${Object.keys(file.marks).join(", ")}); a page's own mark is { "onLight": "path", "onDark": "path" }`); + marks.used.set(id, mark); + if (node) checkSays(file, id, node, notes); +} +function checkSays(file, id, node, notes) { + const says = (Object.hasOwn(file.says, id) ? file.says[id] : undefined) ?? []; + const words = [node.name, node.kind, node.detail].filter(Boolean).join(" ").toLowerCase(); + if (says.length && !says.some((w) => words.includes(w.toLowerCase()))) notes.push(`${node.id}'s mark (${id}) stands for ${says.join(" or ")}, and none of its words say so: a mark never carries a fact alone`); +} + +/** A page's own mark, { onLight, onDark }: each file read from beside the body into a data URI (a page is one file with no network), and an id for its rule. */ +function ownMark(marks, mark) { + const uri = (ref) => { + const at = String(ref ?? ""); + if (!at) throw new Error("a card's own mark needs onLight: a path to the file beside the body"); + if (/^data:/i.test(at)) return at; + if (/^[a-z][\w+.-]*:/i.test(at)) throw new Error(`a card's mark is ${at}, which leaves the file: give a path beside the body, which compose.mjs reads into the page`); + const file = path.resolve(marks.baseDir, at); + const ext = path.extname(file).toLowerCase(); + const type = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".webp": "image/webp", ".gif": "image/gif" }[ext]; + if (ext !== ".svg" && !type) throw new Error(`a card's mark is ${at}: an SVG, PNG, JPEG, WebP or GIF file`); + // Beside the body means inside its folder: a path that climbs out of it, or a link that points out of it, is not read. + const inside = (dir, f) => { const rel = path.relative(dir, f); return rel !== "" && rel !== ".." && !rel.startsWith(`..${path.sep}`) && !path.isAbsolute(rel); }; + if (!inside(marks.baseDir, file)) throw new Error(`a card's mark is ${at}, which is outside the body's folder: put the file beside the body`); + if (!fs.existsSync(file)) throw new Error(`a card's mark is ${at}, and there is no such file beside the body`); + if (!inside(fs.realpathSync(marks.baseDir), fs.realpathSync(file))) throw new Error(`a card's mark is ${at}, which links outside the body's folder: put the file itself beside the body`); + const bytes = fs.readFileSync(file); + if (ext === ".svg") return `data:image/svg+xml,${bytes.toString("utf8").replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ").trim()}`; + return `data:${type};base64,${bytes.toString("base64")}`; + }; + const onLight = uri(mark.onLight); + const onDark = mark.onDark ? uri(mark.onDark) : onLight; + for (const [id, m] of marks.used) if (m.onLight === onLight && (m.onDark ?? m.onLight) === onDark) return id; + const id = `page-${marks.used.size + 1}`; + marks.used.set(id, { onLight, onDark }); + return id; +} + +/** One rule a mark the page uses, in the diagram's layer: the two forms, which the stylesheet picks between by the ground. */ +function markRules(marks) { + if (!marks.used.size) return ""; + return `@layer basalt{${[...marks.used].map(([id, m]) => `.diagram-node[data-mark="${id}"]>.diagram-mark{--_ml:${cssUrl(m.onLight)}${m.onDark ? `;--_md:${cssUrl(m.onDark)}` : ""}}`).join("")}}`; +} + /** The module lines of SKILL.md's "## Modules" index: [{ name, trigger, warning }]. A line is `- **name** \`trigger\`: warning`. */ export function indexLines(skillText) { const section = skillText.match(/^## Modules\n([\s\S]*?)(?=^## |(?![\s\S]))/m)?.[1] ?? ""; @@ -751,7 +830,7 @@ if (isMain) { if (path.resolve(out) === path.resolve(input)) throw new Error(`${input} would be overwritten; name the page with --out`); } if (path.resolve(out) === path.resolve(input)) throw new Error("--out is the input file; name another file"); - const result = compose(fs.readFileSync(input, "utf8"), options); + const result = compose(fs.readFileSync(input, "utf8"), { ...options, baseDir: path.dirname(path.resolve(input)) }); fs.writeFileSync(out, result.html); console.log(`${out}: ${(result.bytes / 1024).toFixed(1)} KB, core + ${result.modules.join(", ") || "no modules"}; icons: ${result.icons.join(", ") || "none"}`); // One line of warning for each module added: the mistake an agent makes with it. The full text is `--usage NAME`. diff --git a/tools/html-skill/src/marks.json b/tools/html-skill/src/marks.json new file mode 100644 index 00000000..5ba97522 --- /dev/null +++ b/tools/html-skill/src/marks.json @@ -0,0 +1 @@ +{"$comment":"Generated by packages/react/marks/generate.mjs from packages/react/marks/manifest.json. Do not edit. Every bundled mark's two forms as data URIs; compose.mjs writes into a page only the marks it names.","says":{"aws-application-load-balancer":["ALB","Application Load Balancer","load balancer"],"aws-network-load-balancer":["NLB","Network Load Balancer","load balancer"],"aws-cloudfront-distribution":["CloudFront"],"aws-route-53-hosted-zone":["Route 53","hosted zone","DNS"],"aws-api-gateway-endpoint":["API Gateway"],"aws-internet-gateway":["internet gateway","IGW"],"aws-nat-gateway":["NAT gateway","NAT"],"aws-ecs-service":["ECS","Elastic Container Service"],"aws-ecs-task":["ECS","task","Elastic Container Service"],"aws-ecr-registry":["ECR","Elastic Container Registry","registry"],"aws-ec2-instance":["EC2"],"aws-lambda-function":["Lambda"],"aws-s3-bucket":["S3"],"aws-dynamodb-table":["DynamoDB"],"aws-sqs-queue":["SQS","queue"],"aws-eventbridge-event-bus":["EventBridge","event bus"],"aws-cloudwatch-logs":["CloudWatch","logs"],"aws-cloudwatch-alarm":["CloudWatch","alarm"],"aws-parameter-store":["Parameter Store","Systems Manager","SSM"],"aws-iam-role":["IAM","role"],"aws-sagemaker-model":["SageMaker","model"],"aws-bedrock":["Bedrock"],"aws-client":["client","browser","app"],"aws-mobile-client":["mobile","phone","client"],"aws-user":["user","person","people"],"aws-users":["users","people","user"],"aws-internet":["internet","web"],"aws-server":["server","host"],"aws-database":["database","DB","Aurora","RDS","Postgres","PostgreSQL","MySQL"],"aws-application":["app","application","service"],"aws-git-repository":["Git","repository","repo"],"aws-email":["email","mail","SES"],"temporal":["Temporal"],"sonarqube":["SonarQube","Sonar"],"github":["GitHub"],"coderabbit":["CodeRabbit"],"greptile":["Greptile"],"blacksmith":["Blacksmith"],"jenkins":["Jenkins"],"servicenow":["ServiceNow"],"blazemeter":["BlazeMeter"]},"marks":{"aws-application-load-balancer":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.69,34.375 L36.035,34.375 L36.035,32 L33.69,32 L33.69,34.375 Z M26.751,34.375 L29.126,34.375 L29.126,32 L26.751,32 L26.751,34.375 Z M18.876,34.375 L21.251,34.375 L21.251,32 L18.876,32 L18.876,34.375 Z M11.966,34.375 L14.251,34.375 L14.251,32 L11.966,32 L11.966,34.375 Z M18.001,16.875 L30.001,16.875 L30.001,11 L18.001,11 L18.001,16.875 Z M37.035,30 L35.501,30 L35.501,26.625 C35.501,26.072 35.053,25.625 34.501,25.625 L32.001,25.625 L32.001,22.25 C32.001,21.697 31.553,21.25 31.001,21.25 L25.001,21.25 L25.001,18.875 L31.001,18.875 C31.553,18.875 32.001,18.428 32.001,17.875 L32.001,10 C32.001,9.447 31.553,9 31.001,9 L17.001,9 C16.448,9 16.001,9.447 16.001,10 L16.001,17.875 C16.001,18.428 16.448,18.875 17.001,18.875 L23.001,18.875 L23.001,21.25 L17.001,21.25 C16.448,21.25 16.001,21.697 16.001,22.25 L16.001,25.625 L13.501,25.625 C12.948,25.625 12.501,26.072 12.501,26.625 L12.501,30 L10.965,30 C10.413,30 9.965,30.447 9.965,31 L9.965,35.375 C9.965,35.928 10.413,36.375 10.965,36.375 L15.251,36.375 C15.803,36.375 16.251,35.928 16.251,35.375 L16.251,31 C16.251,30.447 15.803,30 15.251,30 L14.501,30 L14.501,27.625 L18.626,27.625 L18.626,30 L17.876,30 C17.323,30 16.876,30.447 16.876,31 L16.876,35.375 C16.876,35.928 17.323,36.375 17.876,36.375 L22.251,36.375 C22.803,36.375 23.251,35.928 23.251,35.375 L23.251,31 C23.251,30.447 22.803,30 22.251,30 L20.626,30 L20.626,26.625 C20.626,26.072 20.178,25.625 19.626,25.625 L18.001,25.625 L18.001,23.25 L30.001,23.25 L30.001,25.625 L28.376,25.625 C27.823,25.625 27.376,26.072 27.376,26.625 L27.376,30 L25.751,30 C25.198,30 24.751,30.447 24.751,31 L24.751,35.375 C24.751,35.928 25.198,36.375 25.751,36.375 L30.126,36.375 C30.678,36.375 31.126,35.928 31.126,35.375 L31.126,31 C31.126,30.447 30.678,30 30.126,30 L29.376,30 L29.376,27.625 L33.501,27.625 L33.501,30 L32.69,30 C32.137,30 31.69,30.447 31.69,31 L31.69,35.375 C31.69,35.928 32.137,36.375 32.69,36.375 L37.035,36.375 C37.587,36.375 38.035,35.928 38.035,35.375 L38.035,31 C38.035,30.447 37.587,30 37.035,30 L37.035,30 Z M24.001,44 C12.972,44 4,35.028 4,24 C4,12.972 12.972,4 24.001,4 C35.029,4 44.001,12.972 44.001,24 C44.001,35.028 35.029,44 24.001,44 L24.001,44 Z M24.001,2 C11.869,2 2,11.869 2,24 C2,36.131 11.869,46 24.001,46 C36.131,46 46.001,36.131 46.001,24 C46.001,11.869 36.131,2 24.001,2 L24.001,2 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-network-load-balancer":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24.0015,44.0029 C12.9725,44.0029 3.9995,35.0299 3.9995,24.0009 C3.9995,12.9729 12.9725,3.9999 24.0015,3.9999 C35.0295,3.9999 44.0025,12.9729 44.0025,24.0009 C44.0025,35.0299 35.0295,44.0029 24.0015,44.0029 L24.0015,44.0029 Z M24.0015,1.9999 C11.8695,1.9999 1.9995,11.8689 1.9995,24.0009 C1.9995,36.1329 11.8695,46.0029 24.0015,46.0029 C36.1335,46.0029 46.0025,36.1329 46.0025,24.0009 C46.0025,11.8689 36.1335,1.9999 24.0015,1.9999 L24.0015,1.9999 Z M29.0835,23.2939 C29.4745,23.6849 29.4745,24.3169 29.0835,24.7079 L26.1405,27.6539 L24.7265,26.2399 L25.9645,25.0009 L18.7505,25.0009 L18.7505,23.0009 L25.9645,23.0009 L24.7265,21.7619 L26.1405,20.3479 L29.0835,23.2939 Z M32.0015,35.2519 L35.2515,35.2519 L35.2515,32.0019 L32.0015,32.0019 L32.0015,35.2519 Z M36.2515,30.0019 L31.0015,30.0019 C30.4485,30.0019 30.0015,30.4489 30.0015,31.0019 L30.0015,36.2519 C30.0015,36.8049 30.4485,37.2519 31.0015,37.2519 L36.2515,37.2519 C36.8045,37.2519 37.2515,36.8049 37.2515,36.2519 L37.2515,31.0019 C37.2515,30.4489 36.8045,30.0019 36.2515,30.0019 L36.2515,30.0019 Z M17.6665,18.7409 L24.9615,14.8909 L23.3945,14.4659 L23.9175,12.5359 L27.9365,13.6249 C28.4695,13.7699 28.7835,14.3179 28.6395,14.8519 L27.5505,18.8729 L25.6205,18.3499 L26.1085,16.5469 L18.6005,20.5109 L17.6665,18.7409 Z M32.0015,16.0009 L35.2515,16.0009 L35.2515,12.7509 L32.0015,12.7509 L32.0015,16.0009 Z M36.2515,10.7509 L31.0015,10.7509 C30.4485,10.7509 30.0015,11.1979 30.0015,11.7509 L30.0015,17.0009 C30.0015,17.5539 30.4485,18.0009 31.0015,18.0009 L36.2515,18.0009 C36.8045,18.0009 37.2515,17.5539 37.2515,17.0009 L37.2515,11.7509 C37.2515,11.1979 36.8045,10.7509 36.2515,10.7509 L36.2515,10.7509 Z M8.3455,27.3469 L15.0355,27.3469 L15.0355,20.6569 L8.3455,20.6569 L8.3455,27.3469 Z M16.0355,18.6559 L7.3455,18.6559 C6.7925,18.6559 6.3455,19.1039 6.3455,19.6559 L6.3455,28.3469 C6.3455,28.8989 6.7925,29.3469 7.3455,29.3469 L16.0355,29.3469 C16.5885,29.3469 17.0355,28.8989 17.0355,28.3469 L17.0355,19.6559 C17.0355,19.1039 16.5885,18.6559 16.0355,18.6559 L16.0355,18.6559 Z M28.6395,33.1499 C28.7835,33.6839 28.4695,34.2319 27.9365,34.3769 L23.9175,35.4669 L23.3945,33.5369 L24.9625,33.1119 L17.6665,29.2619 L18.6005,27.4919 L26.1085,31.4549 L25.6205,29.6519 L27.5505,29.1289 L28.6395,33.1499 Z M32.0015,25.6259 L35.2515,25.6259 L35.2515,22.3759 L32.0015,22.3759 L32.0015,25.6259 Z M36.2515,20.3759 L31.0015,20.3759 C30.4485,20.3759 30.0015,20.8229 30.0015,21.3759 L30.0015,26.6259 C30.0015,27.1789 30.4485,27.6259 31.0015,27.6259 L36.2515,27.6259 C36.8045,27.6259 37.2515,27.1789 37.2515,26.6259 L37.2515,21.3759 C37.2515,20.8229 36.8045,20.3759 36.2515,20.3759 L36.2515,20.3759 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-cloudfront-distribution":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.9581,27.6694 L17.3721,29.0834 L15.9581,30.4974 L14.5441,29.0834 L15.9581,27.6694 Z M18.8531,30.5644 L21.8131,33.5244 L20.3991,34.9394 L17.4381,31.9784 L18.8531,30.5644 Z M29.1501,30.5644 L30.5641,31.9784 L27.6041,34.9394 L26.1891,33.5244 L29.1501,30.5644 Z M32.0451,27.6694 L33.4591,29.0834 L32.0451,30.4974 L30.6311,29.0834 L32.0451,27.6694 Z M25.0011,35.2984 L26.1221,36.4194 L24.7081,37.8344 C24.5131,38.0294 24.2571,38.1274 24.0011,38.1274 C23.7451,38.1274 23.4891,38.0294 23.2941,37.8344 L21.8801,36.4194 L23.0011,35.2984 L23.0011,34.2524 L25.0011,34.2524 L25.0011,35.2984 Z M23.0011,16.4624 L25.0011,16.4624 L25.0011,12.9044 L23.0011,12.9044 L23.0011,16.4624 Z M23.0011,21.7994 L25.0011,21.7994 L25.0011,18.2414 L23.0011,18.2414 L23.0011,21.7994 Z M23.0011,27.1364 L25.0011,27.1364 L25.0011,23.5784 L23.0011,23.5784 L23.0011,27.1364 Z M23.0011,32.4734 L25.0011,32.4734 L25.0011,28.9154 L23.0011,28.9154 L23.0011,32.4734 Z M23.0011,11.1254 L25.0011,11.1254 L25.0011,9.1254 L23.0011,9.1254 L23.0011,11.1254 Z M24.0011,44.0024 C12.9731,44.0024 4.0001,35.0294 4.0001,24.0014 C4.0001,12.9724 12.9731,4.0004 24.0011,4.0004 C35.0291,4.0004 44.0021,12.9724 44.0021,24.0014 C44.0021,35.0294 35.0291,44.0024 24.0011,44.0024 L24.0011,44.0024 Z M24.0011,2.0004 C11.8691,2.0004 2.0001,11.8694 2.0001,24.0014 C2.0001,36.1324 11.8691,46.0024 24.0011,46.0024 C36.1331,46.0024 46.0021,36.1324 46.0021,24.0014 C46.0021,11.8694 36.1331,2.0004 24.0011,2.0004 L24.0011,2.0004 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-route-53-hosted-zone":{"onLight":"data:image/svg+xml,%3Csvg width='43.2' height='44.09' viewBox='1.99 1.99 43.2 44.09' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.4488,39.3643 C28.8848,40.1843 25.0338,42.5853 23.5848,43.5833 C22.1358,42.5853 18.2848,40.1843 13.7198,39.3643 C11.4398,38.9553 3.9998,37.1363 3.9998,30.9253 C3.9998,28.3293 4.9828,26.6353 6.0238,24.8433 C7.0038,23.1543 8.0158,21.4103 8.0158,19.0203 C8.0158,15.4343 6.0408,12.8533 4.9278,11.6843 C6.0608,10.3063 8.5278,7.2973 9.8918,5.5523 C11.9708,7.4423 14.3708,8.4703 16.7468,8.4703 C19.3928,8.4703 21.5918,7.4293 23.5848,5.2123 C25.5768,7.4293 27.7748,8.4703 30.4228,8.4703 C32.7988,8.4703 35.1968,7.4423 37.2758,5.5523 C38.6398,7.2963 41.1068,10.3063 42.2408,11.6843 C41.1278,12.8533 39.1518,15.4343 39.1518,19.0203 C39.1518,21.4103 40.1648,23.1543 41.1438,24.8433 C42.1848,26.6353 43.1688,28.3293 43.1688,30.9253 C43.1688,37.1363 35.7288,38.9553 33.4488,39.3643 M42.8748,23.8383 C41.9498,22.2463 41.1518,20.8713 41.1518,19.0203 C41.1518,15.1103 44.2038,12.5673 44.2328,12.5443 L45.0178,11.9093 L44.3758,11.1303 C44.3248,11.0693 39.3318,5.0173 38.1898,3.4543 L37.4768,2.4783 L36.6518,3.3613 C34.7758,5.3663 32.5638,6.4703 30.4228,6.4703 C28.0598,6.4703 26.1968,5.4123 24.3788,3.0373 L23.5848,2.0003 L22.7908,3.0363 C20.9718,5.4113 19.1078,6.4703 16.7468,6.4703 C14.6038,6.4703 12.3918,5.3663 10.5158,3.3613 L9.6898,2.4773 L8.9778,3.4553 C7.8378,5.0173 2.8448,11.0693 2.7938,11.1303 L2.1508,11.9093 L2.9358,12.5443 C2.9678,12.5693 6.0158,15.0803 6.0158,19.0203 C6.0158,20.8713 5.2188,22.2463 4.2938,23.8383 C3.2188,25.6913 1.9998,27.7913 1.9998,30.9253 C1.9998,36.1653 6.2488,40.0553 13.3668,41.3333 C18.5718,42.2673 22.9318,45.5733 22.9758,45.6063 L23.5858,46.0723 L24.1928,45.6063 C24.2368,45.5733 28.5968,42.2673 33.8028,41.3333 C40.9198,40.0553 45.1688,36.1653 45.1688,30.9253 C45.1688,27.7913 43.9498,25.6913 42.8748,23.8383' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-api-gateway-endpoint":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.909 24.955H27.817V23.046H25.909V24.955ZM23.045 24.955H24.954V23.046H23.045V24.955ZM20.182 24.955H22.091V23.046H20.182V24.955ZM37.318 31.003L30.728 36.802V11.332L37.318 17.13V31.003ZM30.944 8.926C30.74 8.839 29.856 8.579 29.242 8.92L28.728 9.205V38.929L29.242 39.214C29.471 39.341 29.737 39.385 29.993 39.385C30.421 39.385 30.816 39.263 30.944 39.208L31.092 39.146L38.565 32.569C39.028 32.299 39.318 31.813 39.318 31.284V16.849C39.318 16.321 39.029 15.835 38.566 15.564L31.092 8.988L30.944 8.926ZM17.273 36.803L10.682 31.004V17.129L17.273 11.331V36.803ZM17.055 8.926L16.907 8.988L9.432 15.565C8.971 15.836 8.682 16.321 8.682 16.849V31.284C8.682 31.812 8.971 32.299 9.433 32.568L16.907 39.146L17.055 39.208C17.182 39.263 17.578 39.385 18.006 39.385C18.261 39.385 18.527 39.341 18.756 39.215L19.273 38.93V9.204L18.756 8.919C18.144 8.582 17.258 8.839 17.055 8.926V8.926ZM44 32.284L32.284 44H15.715L4 32.284V15.716L15.715 4H32.284L44 15.716V32.284ZM33.112 2H14.887L2 14.888V33.112L14.887 46H33.112L46 33.112V14.888L33.112 2Z' fill='%238C4FFF'/%3E%3C/g%3E%3C/svg%3E"},"aws-internet-gateway":{"onLight":"data:image/svg+xml,%3Csvg width='43.93' height='43.93' viewBox='1.99 1.99 43.93 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M33.4312,35.1778 L31.9332,35.1778 L31.9332,17.5018 C31.9332,17.1088 31.7022,16.7518 31.3442,16.5908 L31.2522,16.5488 C29.2432,15.6418 27.1642,14.7028 24.1762,14.7028 C21.0532,14.7028 18.7612,15.7118 16.4952,16.8368 C16.1552,17.0058 15.9402,17.3528 15.9402,17.7328 L15.9402,35.1778 L14.4772,35.1778 L14.4772,16.3118 C16.9112,14.3328 20.4202,13.2048 24.1862,13.2048 C27.6872,13.2048 31.0252,14.2018 33.4312,15.9528 L33.4312,35.1778 Z M24.1862,11.2048 C19.7612,11.2048 15.6172,12.6238 12.8152,15.0998 C12.6002,15.2888 12.4772,15.5618 12.4772,15.8488 L12.4772,36.1778 C12.4772,36.7308 12.9242,37.1778 13.4772,37.1778 L16.9402,37.1778 C17.4932,37.1778 17.9402,36.7308 17.9402,36.1778 L17.9402,18.3558 C19.8592,17.4288 21.7192,16.7028 24.1762,16.7028 C26.5112,16.7028 28.2092,17.3778 29.9332,18.1488 L29.9332,36.1778 C29.9332,36.7308 30.3802,37.1778 30.9332,37.1778 L34.4312,37.1778 C34.9842,37.1778 35.4312,36.7308 35.4312,36.1778 L35.4312,15.4578 C35.4312,15.1538 35.2922,14.8658 35.0532,14.6748 C32.2792,12.4698 28.3182,11.2048 24.1862,11.2048 L24.1862,11.2048 Z M23.9542,43.9088 C12.9522,43.9088 3.9992,34.9568 3.9992,23.9538 C3.9992,12.9508 12.9522,3.9998 23.9542,3.9998 C34.9572,3.9998 43.9092,12.9508 43.9092,23.9538 C43.9092,34.9568 34.9572,43.9088 23.9542,43.9088 L23.9542,43.9088 Z M23.9542,1.9998 C11.8482,1.9998 1.9992,11.8488 1.9992,23.9538 C1.9992,36.0608 11.8482,45.9088 23.9542,45.9088 C36.0602,45.9088 45.9092,36.0608 45.9092,23.9538 C45.9092,11.8488 36.0602,1.9998 23.9542,1.9998 L23.9542,1.9998 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-nat-gateway":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M13.6255,35.9209 L13.6255,33.0829 L15.3995,34.5019 L13.6255,35.9209 Z M13.2505,30.2209 C12.9495,29.9799 12.5365,29.9329 12.1915,30.1009 C11.8465,30.2679 11.6255,30.6169 11.6255,31.0019 L11.6255,38.0019 C11.6255,38.3869 11.8465,38.7359 12.1915,38.9029 C12.3305,38.9699 12.4785,39.0019 12.6255,39.0019 C12.8485,39.0019 13.0695,38.9279 13.2505,38.7829 L17.6255,35.2829 C17.8625,35.0929 18.0005,34.8059 18.0005,34.5019 C18.0005,34.1979 17.8625,33.9109 17.6255,33.7209 L13.2505,30.2209 Z M37.2515,26.8369 L37.2515,22.9149 L39.2125,24.8759 L37.2515,26.8369 Z M41.3335,24.1689 L36.9585,19.7939 C36.6725,19.5079 36.2445,19.4219 35.8685,19.5769 C35.4945,19.7319 35.2515,20.0969 35.2515,20.5009 L35.2515,23.8759 L27.6255,23.8759 L27.6255,14.3759 C27.6255,13.8229 27.1785,13.3759 26.6255,13.3759 L18.9315,13.3759 L18.9315,15.3759 L25.6255,15.3759 L25.6255,23.8759 L18.7505,23.8759 L18.7505,25.8759 L25.6255,25.8759 L25.6255,34.3769 L18.9315,34.3769 L18.9315,36.3769 L26.6255,36.3769 C27.1785,36.3769 27.6255,35.9299 27.6255,35.3769 L27.6255,25.8759 L35.2515,25.8759 L35.2515,29.2519 C35.2515,29.6559 35.4955,30.0219 35.8685,30.1759 C35.9925,30.2279 36.1225,30.2519 36.2515,30.2519 C36.5115,30.2519 36.7675,30.1499 36.9585,29.9589 L41.3335,25.5829 C41.7245,25.1919 41.7245,24.5599 41.3335,24.1689 L41.3335,24.1689 Z M13.6255,26.2959 L13.6255,23.4569 L15.3995,24.8759 L13.6255,26.2959 Z M13.2505,20.5949 C12.9495,20.3539 12.5365,20.3079 12.1915,20.4749 C11.8465,20.6419 11.6255,20.9909 11.6255,21.3759 L11.6255,28.3769 C11.6255,28.7619 11.8465,29.1109 12.1915,29.2779 C12.3305,29.3449 12.4785,29.3769 12.6255,29.3769 C12.8485,29.3769 13.0695,29.3029 13.2505,29.1579 L17.6255,25.6569 C17.8625,25.4669 18.0005,25.1799 18.0005,24.8759 C18.0005,24.5719 17.8625,24.2849 17.6255,24.0949 L13.2505,20.5949 Z M13.6255,15.7949 L13.6255,12.9569 L15.3995,14.3759 L13.6255,15.7949 Z M13.2505,10.0949 C12.9495,9.8539 12.5365,9.8069 12.1915,9.9749 C11.8465,10.1419 11.6255,10.4909 11.6255,10.8759 L11.6255,17.8759 C11.6255,18.2609 11.8465,18.6099 12.1915,18.7769 C12.3305,18.8439 12.4785,18.8759 12.6255,18.8759 C12.8485,18.8759 13.0695,18.8019 13.2505,18.6569 L17.6255,15.1569 C17.8625,14.9669 18.0005,14.6799 18.0005,14.3759 C18.0005,14.0719 17.8625,13.7849 17.6255,13.5949 L13.2505,10.0949 Z M24.0005,44.0029 C12.9725,44.0029 3.9995,35.0299 3.9995,24.0009 C3.9995,12.9729 12.9725,3.9999 24.0005,3.9999 C35.0295,3.9999 44.0025,12.9729 44.0025,24.0009 C44.0025,35.0299 35.0295,44.0029 24.0005,44.0029 L24.0005,44.0029 Z M24.0005,1.9999 C11.8685,1.9999 1.9995,11.8689 1.9995,24.0009 C1.9995,36.1329 11.8685,46.0029 24.0005,46.0029 C36.1325,46.0029 46.0025,36.1329 46.0025,24.0009 C46.0025,11.8689 36.1325,1.9999 24.0005,1.9999 L24.0005,1.9999 Z' fill='%238C4FFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ecs-service":{"onLight":"data:image/svg+xml,%3Csvg width='35.51' height='44.02' viewBox='6 1.99 35.51 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24.933,38.213 L37.674,38.213 L37.674,36.213 L24.933,36.213 L24.933,38.213 Z M24.933,28.303 L37.674,28.303 L37.674,26.303 L24.933,26.303 L24.933,28.303 Z M24.933,18.393 L37.674,18.393 L37.674,16.393 L24.933,16.393 L24.933,18.393 Z M19.561,38.337 L21.808,38.337 L21.808,36.09 L19.561,36.09 L19.561,38.337 Z M18.561,40.337 L22.808,40.337 C23.361,40.337 23.808,39.89 23.808,39.337 L23.808,35.09 C23.808,34.537 23.361,34.09 22.808,34.09 L18.561,34.09 C18.009,34.09 17.561,34.537 17.561,35.09 L17.561,39.337 C17.561,39.89 18.009,40.337 18.561,40.337 L18.561,40.337 Z M19.561,28.427 L21.808,28.427 L21.808,26.18 L19.561,26.18 L19.561,28.427 Z M18.561,30.427 L22.808,30.427 C23.361,30.427 23.808,29.98 23.808,29.427 L23.808,25.18 C23.808,24.627 23.361,24.18 22.808,24.18 L18.561,24.18 C18.009,24.18 17.561,24.627 17.561,25.18 L17.561,29.427 C17.561,29.98 18.009,30.427 18.561,30.427 L18.561,30.427 Z M19.561,18.517 L21.808,18.517 L21.808,16.27 L19.561,16.27 L19.561,18.517 Z M18.561,20.517 L22.808,20.517 C23.361,20.517 23.808,20.07 23.808,19.517 L23.808,15.27 C23.808,14.717 23.361,14.27 22.808,14.27 L18.561,14.27 C18.009,14.27 17.561,14.717 17.561,15.27 L17.561,19.517 C17.561,20.07 18.009,20.517 18.561,20.517 L18.561,20.517 Z M16.023,44 L39.506,44 L39.506,12.022 L16.023,12.022 L16.023,44 Z M14.022,11.023 L14.022,39.753 L11.775,39.753 L11.775,7.776 L35.259,7.776 L35.259,10.023 L15.022,10.023 C14.469,10.023 14.022,10.47 14.022,11.023 L14.022,11.023 Z M9.775,6.776 L9.775,35.978 L8,35.978 L8,4 L31.483,4 L31.483,5.776 L10.775,5.776 C10.222,5.776 9.775,6.223 9.775,6.776 L9.775,6.776 Z M40.506,10.023 L37.259,10.023 L37.259,6.776 C37.259,6.223 36.811,5.776 36.259,5.776 L33.483,5.776 L33.483,3 C33.483,2.448 33.036,2 32.483,2 L7,2 C6.447,2 6,2.448 6,3 L6,36.978 C6,37.531 6.447,37.978 7,37.978 L9.775,37.978 L9.775,40.753 C9.775,41.306 10.222,41.753 10.775,41.753 L14.022,41.753 L14.022,45 C14.022,45.553 14.469,46 15.022,46 L40.506,46 C41.058,46 41.506,45.553 41.506,45 L41.506,11.023 C41.506,10.47 41.058,10.023 40.506,10.023 L40.506,10.023 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ecs-task":{"onLight":"data:image/svg+xml,%3Csvg width='33.52' height='44.02' viewBox='6.98 1.99 33.52 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M20.25,36.375 L36,36.375 L36,34.375 L20.25,34.375 L20.25,36.375 Z M20.25,24.125 L36,24.125 L36,22.125 L20.25,22.125 L20.25,24.125 Z M20.25,11.875 L36,11.875 L36,9.875 L20.25,9.875 L20.25,11.875 Z M13.375,37 L16.625,37 L16.625,33.75 L13.375,33.75 L13.375,37 Z M12.375,39 L17.625,39 C18.178,39 18.625,38.553 18.625,38 L18.625,32.75 C18.625,32.198 18.178,31.75 17.625,31.75 L12.375,31.75 C11.822,31.75 11.375,32.198 11.375,32.75 L11.375,38 C11.375,38.553 11.822,39 12.375,39 L12.375,39 Z M13.375,24.75 L16.625,24.75 L16.625,21.5 L13.375,21.5 L13.375,24.75 Z M12.375,26.75 L17.625,26.75 C18.178,26.75 18.625,26.303 18.625,25.75 L18.625,20.5 C18.625,19.948 18.178,19.5 17.625,19.5 L12.375,19.5 C11.822,19.5 11.375,19.948 11.375,20.5 L11.375,25.75 C11.375,26.303 11.822,26.75 12.375,26.75 L12.375,26.75 Z M13.375,12.5 L16.625,12.5 L16.625,9.25 L13.375,9.25 L13.375,12.5 Z M12.375,14.5 L17.625,14.5 C18.178,14.5 18.625,14.053 18.625,13.5 L18.625,8.25 C18.625,7.698 18.178,7.25 17.625,7.25 L12.375,7.25 C11.822,7.25 11.375,7.698 11.375,8.25 L11.375,13.5 C11.375,14.053 11.822,14.5 12.375,14.5 L12.375,14.5 Z M9,44 L38.5,44 L38.5,4 L9,4 L9,44 Z M39.5,2 L8,2 C7.447,2 7,2.448 7,3 L7,45 C7,45.553 7.447,46 8,46 L39.5,46 C40.053,46 40.5,45.553 40.5,45 L40.5,3 C40.5,2.448 40.053,2 39.5,2 L39.5,2 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ecr-registry":{"onLight":"data:image/svg+xml,%3Csvg width='43.98' height='43.98' viewBox='1.99 1.99 43.98 43.98' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M35.207,37.954 L37.207,37.954 L37.207,34.459 L35.207,34.459 L35.207,37.954 Z M31.711,37.954 L33.711,37.954 L33.711,34.459 L31.711,34.459 L31.711,37.954 Z M28.216,37.954 L30.216,37.954 L30.216,34.459 L28.216,34.459 L28.216,37.954 Z M26.721,39.576 L38.702,39.576 L38.702,32.837 L26.721,32.837 L26.721,39.576 Z M39.702,30.837 L25.72,30.837 C25.168,30.837 24.72,31.284 24.72,31.837 L24.72,40.576 C24.72,41.129 25.168,41.576 25.72,41.576 L39.702,41.576 C40.255,41.576 40.702,41.129 40.702,40.576 L40.702,31.837 C40.702,31.284 40.255,30.837 39.702,30.837 L39.702,30.837 Z M35.207,25.721 L37.207,25.721 L37.207,22.225 L35.207,22.225 L35.207,25.721 Z M31.711,25.721 L33.711,25.721 L33.711,22.225 L31.711,22.225 L31.711,25.721 Z M28.216,25.721 L30.216,25.721 L30.216,22.225 L28.216,22.225 L28.216,25.721 Z M26.721,27.342 L38.702,27.342 L38.702,20.604 L26.721,20.604 L26.721,27.342 Z M39.702,18.604 L25.72,18.604 C25.168,18.604 24.72,19.051 24.72,19.604 L24.72,28.342 C24.72,28.895 25.168,29.342 25.72,29.342 L39.702,29.342 C40.255,29.342 40.702,28.895 40.702,28.342 L40.702,19.604 C40.702,19.051 40.255,18.604 39.702,18.604 L39.702,18.604 Z M35.207,13.486 L37.207,13.486 L37.207,9.991 L35.207,9.991 L35.207,13.486 Z M31.711,13.486 L33.711,13.486 L33.711,9.991 L31.711,9.991 L31.711,13.486 Z M28.216,13.486 L30.216,13.486 L30.216,9.991 L28.216,9.991 L28.216,13.486 Z M26.721,15.108 L38.702,15.108 L38.702,8.369 L26.721,8.369 L26.721,15.108 Z M39.702,6.369 L25.72,6.369 C25.168,6.369 24.72,6.817 24.72,7.369 L24.72,16.108 C24.72,16.661 25.168,17.108 25.72,17.108 L39.702,17.108 C40.255,17.108 40.702,16.661 40.702,16.108 L40.702,7.369 C40.702,6.817 40.255,6.369 39.702,6.369 L39.702,6.369 Z M17.729,37.954 L19.729,37.954 L19.729,34.459 L17.729,34.459 L17.729,37.954 Z M14.234,37.954 L16.234,37.954 L16.234,34.459 L14.234,34.459 L14.234,37.954 Z M10.738,37.954 L12.738,37.954 L12.738,34.459 L10.738,34.459 L10.738,37.954 Z M9.243,39.576 L21.224,39.576 L21.224,32.837 L9.243,32.837 L9.243,39.576 Z M22.224,30.837 L8.243,30.837 C7.69,30.837 7.243,31.284 7.243,31.837 L7.243,40.576 C7.243,41.129 7.69,41.576 8.243,41.576 L22.224,41.576 C22.777,41.576 23.224,41.129 23.224,40.576 L23.224,31.837 C23.224,31.284 22.777,30.837 22.224,30.837 L22.224,30.837 Z M17.729,25.721 L19.729,25.721 L19.729,22.225 L17.729,22.225 L17.729,25.721 Z M14.234,25.721 L16.234,25.721 L16.234,22.225 L14.234,22.225 L14.234,25.721 Z M10.738,25.721 L12.738,25.721 L12.738,22.225 L10.738,22.225 L10.738,25.721 Z M9.243,27.342 L21.224,27.342 L21.224,20.604 L9.243,20.604 L9.243,27.342 Z M22.224,18.604 L8.243,18.604 C7.69,18.604 7.243,19.051 7.243,19.604 L7.243,28.342 C7.243,28.895 7.69,29.342 8.243,29.342 L22.224,29.342 C22.777,29.342 23.224,28.895 23.224,28.342 L23.224,19.604 C23.224,19.051 22.777,18.604 22.224,18.604 L22.224,18.604 Z M17.729,13.486 L19.729,13.486 L19.729,9.991 L17.729,9.991 L17.729,13.486 Z M14.234,13.486 L16.234,13.486 L16.234,9.991 L14.234,9.991 L14.234,13.486 Z M10.738,13.486 L12.738,13.486 L12.738,9.991 L10.738,9.991 L10.738,13.486 Z M9.243,15.108 L21.224,15.108 L21.224,8.369 L9.243,8.369 L9.243,15.108 Z M22.224,6.369 L8.243,6.369 C7.69,6.369 7.243,6.817 7.243,7.369 L7.243,16.108 C7.243,16.661 7.69,17.108 8.243,17.108 L22.224,17.108 C22.777,17.108 23.224,16.661 23.224,16.108 L23.224,7.369 C23.224,6.817 22.777,6.369 22.224,6.369 L22.224,6.369 Z M43.945,39.497 C43.945,41.95 41.95,43.945 39.497,43.945 L8.448,43.945 C5.995,43.945 4,41.95 4,39.497 L4,8.448 C4,5.995 5.995,4 8.448,4 L39.497,4 C41.95,4 43.945,5.995 43.945,8.448 L43.945,39.497 Z M39.497,2 L8.448,2 C4.892,2 2,4.893 2,8.448 L2,39.497 C2,43.053 4.892,45.945 8.448,45.945 L39.497,45.945 C43.053,45.945 45.945,43.053 45.945,39.497 L45.945,8.448 C45.945,4.893 43.053,2 39.497,2 L39.497,2 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-ec2-instance":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M9,39 L39,39 L39,9 L9,9 L9,39 Z M46,13 L46,11 L41,11 L41,8 C41,7.448 40.552,7 40,7 L37,7 L37,2 L35,2 L35,7 L31,7 L31,2 L29,2 L29,7 L25,7 L25,2 L23,2 L23,7 L19,7 L19,2 L17,2 L17,7 L13,7 L13,2 L11,2 L11,7 L8,7 C7.447,7 7,7.448 7,8 L7,11 L2,11 L2,13 L7,13 L7,17 L2,17 L2,19 L7,19 L7,23 L2,23 L2,25 L7,25 L7,29 L2,29 L2,31 L7,31 L7,35 L2,35 L2,37 L7,37 L7,40 C7,40.553 7.447,41 8,41 L11,41 L11,46 L13,46 L13,41 L17,41 L17,46 L19,46 L19,41 L23,41 L23,46 L25,46 L25,41 L29,41 L29,46 L31,46 L31,41 L35,41 L35,46 L37,46 L37,41 L40,41 C40.552,41 41,40.553 41,40 L41,37 L46,37 L46,35 L41,35 L41,31 L46,31 L46,29 L41,29 L41,25 L46,25 L46,23 L41,23 L41,19 L46,19 L46,17 L41,17 L41,13 L46,13 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-lambda-function":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M24,44 C12.972,44 4,35.028 4,24 C4,12.972 12.972,4 24,4 C35.028,4 44,12.972 44,24 C44,35.028 35.028,44 24,44 L24,44 Z M24,2 C11.869,2 2,11.869 2,24 C2,36.131 11.869,46 24,46 C36.131,46 46,36.131 46,24 C46,11.869 36.131,2 24,2 L24,2 Z M17.231,35.25 L11.876,35.25 L18.221,21.959 L20.902,27.492 L17.231,35.25 Z M19.114,19.215 C18.946,18.87 18.597,18.651 18.214,18.651 L18.211,18.651 C17.826,18.652 17.477,18.874 17.312,19.221 L9.389,35.819 C9.24,36.129 9.262,36.493 9.445,36.783 C9.628,37.074 9.947,37.25 10.291,37.25 L17.864,37.25 C18.251,37.25 18.603,37.027 18.769,36.678 L22.915,27.915 C23.044,27.642 23.043,27.323 22.911,27.051 L19.114,19.215 Z M36.125,35.25 L30.673,35.25 L20.761,13.953 C20.597,13.601 20.243,13.375 19.854,13.375 L16.251,13.375 L16.255,9.25 L23.475,9.25 L33.339,30.545 C33.503,30.898 33.856,31.125 34.246,31.125 L36.125,31.125 L36.125,35.25 Z M37.125,29.125 L34.885,29.125 L25.021,7.83 C24.856,7.477 24.503,7.25 24.113,7.25 L15.256,7.25 C14.704,7.25 14.257,7.697 14.256,8.249 L14.25,14.374 C14.25,14.64 14.355,14.894 14.543,15.082 C14.73,15.27 14.984,15.375 15.25,15.375 L19.217,15.375 L29.129,36.672 C29.293,37.024 29.646,37.25 30.035,37.25 L37.125,37.25 C37.678,37.25 38.125,36.803 38.125,36.25 L38.125,30.125 C38.125,29.572 37.678,29.125 37.125,29.125 L37.125,29.125 Z' fill='%23ED7100'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-s3-bucket":{"onLight":"data:image/svg+xml,%3Csvg width='42.34' height='44.07' viewBox='2.97 1.99 42.34 44.07' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M40.5038,26.1601 L40.7278,24.4941 C42.5118,25.5811 43.0628,26.2091 43.2228,26.4741 C42.7498,26.6171 41.7948,26.4911 40.5038,26.1601 L40.5038,26.1601 Z M22.8018,20.1111 C22.8018,20.0581 22.8448,20.0151 22.8978,20.0151 C22.9128,20.0151 22.9238,20.0251 22.9368,20.0321 L22.8638,20.1791 C22.8308,20.1691 22.8018,20.1491 22.8018,20.1111 L22.8018,20.1111 Z M36.5138,40.7981 C36.5078,40.8431 36.5048,40.8871 36.5048,40.9311 C36.5048,41.0861 36.1258,41.6751 34.4408,42.3401 C33.6898,42.6371 32.8028,42.9031 31.8028,43.1331 C29.2278,43.7291 26.0638,44.0571 22.8958,44.0571 C14.4298,44.0571 9.2888,41.8871 9.2888,40.9311 C9.2888,40.8871 9.2858,40.8431 9.2798,40.7981 L5.4408,12.2851 C5.6878,12.4291 5.9528,12.5661 6.2308,12.7001 C6.3098,12.7381 6.3958,12.7741 6.4778,12.8121 C6.7178,12.9231 6.9668,13.0301 7.2268,13.1341 C7.3388,13.1781 7.4518,13.2221 7.5668,13.2651 C7.8428,13.3691 8.1278,13.4691 8.4228,13.5651 C8.5098,13.5941 8.5928,13.6241 8.6808,13.6511 C9.0598,13.7701 9.4528,13.8841 9.8578,13.9911 C9.9708,14.0211 10.0878,14.0501 10.2028,14.0781 C10.5148,14.1581 10.8328,14.2341 11.1578,14.3061 C11.2988,14.3381 11.4388,14.3691 11.5808,14.3981 C11.9458,14.4751 12.3188,14.5491 12.6978,14.6181 C12.7798,14.6331 12.8588,14.6491 12.9418,14.6641 C13.3998,14.7441 13.8688,14.8181 14.3448,14.8881 C14.4788,14.9071 14.6148,14.9241 14.7508,14.9421 C15.1108,14.9921 15.4758,15.0381 15.8438,15.0811 C15.9938,15.0981 16.1448,15.1161 16.2968,15.1331 C16.7408,15.1801 17.1888,15.2231 17.6398,15.2621 C17.6928,15.2661 17.7468,15.2721 17.8018,15.2761 C18.3058,15.3171 18.8128,15.3501 19.3208,15.3801 C19.4658,15.3881 19.6108,15.3941 19.7568,15.4011 C20.1408,15.4201 20.5248,15.4351 20.9088,15.4481 C21.0598,15.4531 21.2088,15.4581 21.3588,15.4621 C21.8718,15.4731 22.3848,15.4821 22.8958,15.4821 C23.4058,15.4821 23.9188,15.4731 24.4318,15.4621 C24.5818,15.4581 24.7328,15.4531 24.8828,15.4481 C25.2678,15.4351 25.6508,15.4201 26.0338,15.4011 C26.1808,15.3941 26.3258,15.3881 26.4718,15.3801 C26.9808,15.3501 27.4868,15.3171 27.9898,15.2761 C28.0458,15.2711 28.1008,15.2651 28.1558,15.2621 C28.6068,15.2231 29.0518,15.1801 29.4938,15.1331 C29.6478,15.1161 29.7988,15.0981 29.9508,15.0811 C30.3168,15.0381 30.6808,14.9921 31.0398,14.9431 C31.1768,14.9251 31.3148,14.9071 31.4498,14.8871 C31.9248,14.8181 32.3928,14.7441 32.8518,14.6641 C32.9348,14.6491 33.0158,14.6331 33.0988,14.6171 C33.4768,14.5491 33.8478,14.4751 34.2128,14.3981 C34.3558,14.3691 34.4948,14.3381 34.6358,14.3061 C34.9608,14.2331 35.2788,14.1571 35.5918,14.0781 C35.7058,14.0491 35.8228,14.0211 35.9358,13.9921 C36.3418,13.8841 36.7348,13.7701 37.1138,13.6511 C37.2008,13.6241 37.2828,13.5951 37.3678,13.5661 C37.6648,13.4701 37.9518,13.3691 38.2298,13.2641 C38.3428,13.2221 38.4548,13.1791 38.5658,13.1351 C38.8278,13.0301 39.0788,12.9221 39.3218,12.8101 C39.4008,12.7731 39.4848,12.7381 39.5628,12.7011 C39.8408,12.5671 40.1068,12.4291 40.3538,12.2851 L38.5618,25.5911 C34.9248,24.4241 29.8168,22.3071 24.9818,20.0081 C24.9268,18.9011 24.0178,18.0151 22.8978,18.0151 C21.7418,18.0151 20.8018,18.9561 20.8018,20.1111 C20.8018,21.2661 21.7418,22.2061 22.8978,22.2061 C23.3518,22.2061 23.7698,22.0571 24.1128,21.8101 C28.4448,23.8891 33.9758,26.3421 38.2928,27.5881 L36.5138,40.7981 Z M22.8958,4.0001 C33.3148,4.0001 40.6558,7.2281 40.7918,9.0211 L40.7658,9.2291 C40.7478,9.2911 40.7088,9.3541 40.6758,9.4181 C40.6488,9.4701 40.6288,9.5201 40.5918,9.5731 C40.5478,9.6351 40.4828,9.6981 40.4258,9.7611 C40.3748,9.8161 40.3318,9.8711 40.2708,9.9271 C40.2028,9.9881 40.1158,10.0511 40.0348,10.1131 C39.9598,10.1711 39.8938,10.2281 39.8078,10.2871 C39.7168,10.3471 39.6078,10.4091 39.5058,10.4711 C39.4068,10.5301 39.3158,10.5901 39.2048,10.6491 C39.0948,10.7091 38.9658,10.7671 38.8448,10.8271 C38.7208,10.8881 38.6048,10.9481 38.4688,11.0091 C38.3398,11.0661 38.1928,11.1231 38.0548,11.1801 C37.9048,11.2401 37.7638,11.3021 37.6038,11.3611 C37.4558,11.4171 37.2898,11.4711 37.1328,11.5251 C36.9618,11.5841 36.7978,11.6441 36.6158,11.7021 C36.4468,11.7561 36.2608,11.8061 36.0818,11.8591 C35.8918,11.9151 35.7088,11.9721 35.5088,12.0261 C35.3168,12.0781 35.1098,12.1261 34.9098,12.1761 C34.7028,12.2271 34.5028,12.2801 34.2858,12.3301 C34.0698,12.3791 33.8378,12.4241 33.6118,12.4711 C33.3938,12.5161 33.1818,12.5641 32.9538,12.6071 C32.7138,12.6531 32.4568,12.6941 32.2068,12.7371 C31.9768,12.7761 31.7538,12.8181 31.5148,12.8551 C31.2548,12.8951 30.9788,12.9311 30.7088,12.9681 C30.4648,13.0011 30.2268,13.0381 29.9748,13.0681 C29.6818,13.1041 29.3728,13.1341 29.0698,13.1651 C28.8258,13.1911 28.5898,13.2201 28.3398,13.2421 C28.0038,13.2731 27.6518,13.2961 27.3058,13.3201 C27.0728,13.3381 26.8478,13.3581 26.6098,13.3731 C26.2308,13.3951 25.8338,13.4091 25.4408,13.4261 C25.2248,13.4341 25.0148,13.4471 24.7938,13.4541 C24.1748,13.4721 23.5418,13.4821 22.8958,13.4821 C22.2498,13.4821 21.6168,13.4721 20.9968,13.4541 C20.7748,13.4471 20.5628,13.4331 20.3428,13.4251 C19.9528,13.4091 19.5598,13.3951 19.1818,13.3731 C18.9318,13.3571 18.6938,13.3361 18.4488,13.3181 C18.1158,13.2941 17.7758,13.2721 17.4528,13.2421 C17.2018,13.2201 16.9658,13.1901 16.7208,13.1651 C16.4178,13.1341 16.1088,13.1041 15.8168,13.0681 C15.5668,13.0381 15.3298,13.0021 15.0868,12.9681 C14.8168,12.9311 14.5388,12.8961 14.2778,12.8551 C14.0298,12.8171 13.7978,12.7731 13.5588,12.7321 C13.3178,12.6901 13.0708,12.6511 12.8398,12.6071 C12.6078,12.5631 12.3928,12.5151 12.1688,12.4691 C11.9468,12.4221 11.7188,12.3781 11.5058,12.3291 C11.2898,12.2801 11.0908,12.2271 10.8838,12.1761 C10.6838,12.1261 10.4758,12.0781 10.2848,12.0261 C10.0818,11.9721 9.8968,11.9141 9.7038,11.8571 C9.5278,11.8061 9.3448,11.7551 9.1778,11.7021 C8.9928,11.6431 8.8268,11.5831 8.6538,11.5221 C8.4988,11.4691 8.3358,11.4161 8.1908,11.3611 C8.0288,11.3021 7.8878,11.2391 7.7378,11.1791 C7.5998,11.1221 7.4528,11.0651 7.3248,11.0091 C7.1908,10.9481 7.0738,10.8881 6.9498,10.8271 C6.8288,10.7671 6.6988,10.7091 6.5888,10.6481 C6.4788,10.5891 6.3868,10.5291 6.2868,10.4691 C6.1858,10.4081 6.0768,10.3471 5.9868,10.2871 C5.8998,10.2271 5.8318,10.1691 5.7558,10.1101 C5.6768,10.0491 5.5908,9.9871 5.5248,9.9271 C5.4618,9.8701 5.4178,9.8131 5.3658,9.7581 C5.3098,9.6961 5.2468,9.6341 5.2028,9.5731 C5.1648,9.5191 5.1458,9.4671 5.1178,9.4131 C5.0858,9.3511 5.0468,9.2891 5.0298,9.2291 L5.0018,9.0201 C5.1408,7.2271 12.4798,4.0001 22.8958,4.0001 L22.8958,4.0001 Z M45.2548,26.2571 C45.0418,25.1071 43.7168,23.8891 41.0178,22.3471 L42.7338,9.5951 L42.7338,9.5911 L42.7338,9.5901 L42.7848,9.2001 C42.7908,9.1571 42.7938,9.1141 42.7938,9.0711 C42.7938,4.9041 32.3078,2.0001 22.8958,2.0001 C13.4848,2.0001 2.9998,4.9041 2.9998,9.0711 C2.9998,9.1151 3.0028,9.1591 3.0088,9.2031 L3.0608,9.5931 L3.0608,9.5951 L7.2898,41.0091 C7.4208,44.6851 16.9028,46.0571 22.8958,46.0571 C26.2108,46.0571 29.5338,45.7111 32.2528,45.0821 C33.3478,44.8301 34.3308,44.5331 35.1748,44.2001 C37.3408,43.3451 38.4598,42.2711 38.5038,41.0091 L40.2448,28.0801 C41.1968,28.2821 42.0618,28.4051 42.7808,28.4051 C43.7498,28.4051 44.4748,28.2001 44.8668,27.7321 C45.2168,27.3161 45.3548,26.7921 45.2548,26.2571 L45.2548,26.2571 Z' fill='%237AA116'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-dynamodb-table":{"onLight":"data:image/svg+xml,%3Csvg width='43.95' height='43.95' viewBox='1.99 1.99 43.95 43.95' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M13.355,11.862 L45.928,11.862 L45.928,2 L13.355,2 L13.355,11.862 Z M15.355,9.862 L43.927,9.862 L43.927,4.001 L15.355,4.001 L15.355,9.862 Z M2,11.862 L11.861,11.862 L11.861,2 L2,2 L2,11.862 Z M4,9.862 L9.862,9.862 L9.862,4.001 L4,4.001 L4,9.862 Z M13.355,23.217 L45.928,23.217 L45.928,13.356 L13.355,13.356 L13.355,23.217 Z M15.355,21.217 L43.927,21.217 L43.927,15.356 L15.355,15.356 L15.355,21.217 Z M2,23.217 L11.861,23.217 L11.861,13.356 L2,13.356 L2,23.217 Z M4,21.217 L9.862,21.217 L9.862,15.356 L4,15.356 L4,21.217 Z M13.355,34.572 L45.928,34.572 L45.928,24.711 L13.355,24.711 L13.355,34.572 Z M15.355,32.572 L43.927,32.572 L43.927,26.71 L15.355,26.71 L15.355,32.572 Z M2,34.572 L11.861,34.572 L11.861,24.711 L2,24.711 L2,34.572 Z M4,32.572 L9.862,32.572 L9.862,26.71 L4,26.71 L4,32.572 Z M13.355,45.927 L45.928,45.927 L45.928,36.066 L13.355,36.066 L13.355,45.927 Z M15.355,43.928 L43.927,43.928 L43.927,38.066 L15.355,38.066 L15.355,43.928 Z M2,45.927 L11.861,45.927 L11.861,36.066 L2,36.066 L2,45.927 Z M4,43.928 L9.862,43.928 L9.862,38.066 L4,38.066 L4,43.928 Z' fill='%23C925D1'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-sqs-queue":{"onLight":"data:image/svg+xml,%3Csvg width='44' height='26.8' viewBox='1.99 10.99 44 26.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37.449,22.261 L37.449,26.221 L35.026,24.207 L37.449,22.261 Z M37.81,29.121 C37.993,29.273 38.22,29.352 38.449,29.352 C38.594,29.352 38.738,29.321 38.874,29.257 C39.224,29.092 39.449,28.74 39.449,28.352 L39.449,20.176 C39.449,19.791 39.228,19.441 38.882,19.275 C38.535,19.108 38.123,19.156 37.823,19.397 L32.819,23.414 C32.585,23.602 32.448,23.885 32.4449503,24.185 C32.442,24.486 32.575,24.771 32.806,24.963 L37.81,29.121 Z M10.527,22.307 L12.951,24.322 L10.527,26.267 L10.527,22.307 Z M9.095,29.253 C9.232,29.32 9.38,29.352 9.527,29.352 C9.751,29.352 9.972,29.277 10.153,29.132 L15.158,25.115 C15.392,24.927 15.529,24.644 15.5320497,24.344 C15.535,24.043 15.402,23.758 15.171,23.566 L10.166,19.407 C9.868,19.16 9.453,19.107 9.102,19.271 C8.752,19.436 8.527,19.788 8.527,20.176 L8.527,28.352 C8.527,28.737 8.748,29.087 9.095,29.253 L9.095,29.253 Z M28.368,34.027 L30.368,34.027 L30.368,14.747 L28.368,14.747 L28.368,34.027 Z M23.121,34.027 L25.121,34.027 L25.121,14.747 L23.121,14.747 L23.121,34.027 Z M17.711,34.027 L19.711,34.027 L19.711,14.747 L17.711,14.747 L17.711,34.027 Z M3.999,35.773 L43.977,35.773 L43.977,13.001 L3.999,13.001 L3.999,35.773 Z M44.977,11 L3,11 C2.447,11 2,11.448 2,12 L2,36.773 C2,37.325 2.447,37.773 3,37.773 L44.977,37.773 C45.53,37.773 45.977,37.325 45.977,36.773 L45.977,12 C45.977,11.448 45.53,11 44.977,11 L44.977,11 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-eventbridge-event-bus":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='30' viewBox='1.99 9 44.02 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M11.001,39.001 L37.001,39.001 L37.001,37.001 L11.001,37.001 L11.001,39.001 Z M35.88,12.009 L34.153,10.998 L30.544,17.16 L32.271,18.17 L35.88,12.009 Z M42.567,18.594 L36.323,22.147 L37.312,23.885 L43.556,20.332 L42.567,18.594 Z M39.002,28.995 L39,30.995 L46,31.001 L46.002,29.001 L39.002,28.995 Z M2,31.001 L9,31.007 L9.002,29.007 L2.002,29.001 L2,31.001 Z M5.454,18.562 L4.462,20.298 L10.701,23.863 L11.693,22.126 L5.454,18.562 Z M17.48,17.148 L13.882,10.981 L12.153,11.989 L15.751,18.156 L17.48,17.148 Z M25.001,9.002 L23.001,9 L22.994,16 L24.994,16.002 L25.001,9.002 Z M13.095,27.196 L18.114,18.501 C18.293,18.192 18.623,18.001 18.981,18.001 L29.021,18.001 C29.378,18.001 29.708,18.192 29.887,18.501 L34.907,27.196 C35.086,27.505 35.086,27.886 34.907,28.196 L31.071,34.838 L29.339,33.838 L32.887,27.696 L28.443,20.001 L19.558,20.001 L15.115,27.696 L18.662,33.838 L16.93,34.838 L13.095,28.196 C12.916,27.886 12.916,27.505 13.095,27.196 L13.095,27.196 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-cloudwatch-logs":{"onLight":"data:image/svg+xml,%3Csvg width='44.21' height='33.03' viewBox='1.99 7.99 44.21 33.03' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M29.4998,17.0004 C26.2418,17.0004 23.4708,19.0924 22.4378,22.0004 L24.6068,22.0004 C25.5198,20.2224 27.3678,19.0004 29.4998,19.0004 C32.5318,19.0004 34.9998,21.4674 34.9998,24.5004 C34.9998,27.5324 32.5318,30.0004 29.4998,30.0004 C27.7958,30.0004 26.2708,29.2214 25.2608,28.0004 L22.8718,28.0004 C24.1318,30.3764 26.6288,32.0004 29.4998,32.0004 C33.6358,32.0004 36.9998,28.6364 36.9998,24.5004 C36.9998,20.3644 33.6358,17.0004 29.4998,17.0004 L29.4998,17.0004 Z M1.9998,33.0004 L14.9998,33.0004 L14.9998,31.0004 L1.9998,31.0004 L1.9998,33.0004 Z M1.9998,18.0004 L14.9998,18.0004 L14.9998,16.0004 L1.9998,16.0004 L1.9998,18.0004 Z M1.9998,26.0004 L28.9998,26.0004 L28.9998,24.0004 L1.9998,24.0004 L1.9998,26.0004 Z M43.8428,35.7384 L38.8178,31.2134 C38.3998,31.7924 37.9318,32.3304 37.4148,32.8214 L42.4118,37.3294 C42.8478,37.7224 43.5278,37.6874 43.9228,37.2494 C44.3148,36.8124 44.2798,36.1344 43.8428,35.7384 L43.8428,35.7384 Z M45.4088,38.5884 C44.8028,39.2594 43.9658,39.6004 43.1248,39.6004 C42.3938,39.6004 41.6588,39.3414 41.0738,38.8154 L35.8338,34.0894 C34.0168,35.2934 31.8398,36.0004 29.4998,36.0004 C24.3798,36.0004 20.0328,32.6344 18.5488,28.0004 L20.6768,28.0004 C22.0738,31.5094 25.4988,34.0004 29.4998,34.0004 C34.7378,34.0004 38.9998,29.7384 38.9998,24.5004 C38.9998,19.2624 34.7378,15.0004 29.4998,15.0004 C25.1278,15.0004 21.4458,17.9734 20.3448,22.0004 L18.2818,22.0004 C19.4278,16.8574 24.0188,13.0004 29.4998,13.0004 C35.8408,13.0004 40.9998,18.1584 40.9998,24.5004 C40.9998,26.2774 40.5828,27.9554 39.8588,29.4604 L45.1828,34.2544 C46.4368,35.3884 46.5378,37.3314 45.4088,38.5884 L45.4088,38.5884 Z M1.9998,41.0004 L20.9998,41.0004 L20.9998,39.0004 L1.9998,39.0004 L1.9998,41.0004 Z M1.9998,10.0004 L22.9998,10.0004 L22.9998,8.0004 L1.9998,8.0004 L1.9998,10.0004 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-cloudwatch-alarm":{"onLight":"data:image/svg+xml,%3Csvg width='43.98' height='44.21' viewBox='1.99 1.99 43.98 44.21' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M41.4246,40.6675 L34.6366,40.6675 L34.6366,19.8305 C36.8216,20.5265 39.2386,20.5265 41.4246,19.8305 L41.4246,40.6675 Z M41.9946,17.4595 C39.4996,18.6475 36.5596,18.6465 34.0666,17.4595 C33.7586,17.3125 33.3946,17.3335 33.1026,17.5165 C32.8126,17.6995 32.6366,18.0185 32.6366,18.3615 L32.6366,41.6675 C32.6366,42.2205 33.0836,42.6675 33.6366,42.6675 L42.4246,42.6675 C42.9776,42.6675 43.4246,42.2205 43.4246,41.6675 L43.4246,18.3615 C43.4246,18.0185 43.2486,17.6995 42.9586,17.5165 C42.6676,17.3335 42.3036,17.3115 41.9946,17.4595 L41.9946,17.4595 Z M38.0306,4.0005 C40.8716,4.0005 43.1826,6.3115 43.1826,9.1515 C43.1826,11.9925 40.8716,14.3035 38.0306,14.3035 C35.1906,14.3035 32.8796,11.9925 32.8796,9.1515 C32.8796,6.3115 35.1906,4.0005 38.0306,4.0005 L38.0306,4.0005 Z M38.0306,16.3035 C41.9746,16.3035 45.1826,13.0955 45.1826,9.1515 C45.1826,5.2085 41.9746,2.0005 38.0306,2.0005 C34.0876,2.0005 30.8796,5.2085 30.8796,9.1515 C30.8796,13.0955 34.0876,16.3035 38.0306,16.3035 L38.0306,16.3035 Z M2.0006,46.1835 L45.9406,46.1835 L45.9406,44.1835 L2.0006,44.1835 L2.0006,46.1835 Z M20.5756,40.6675 L27.3636,40.6675 L27.3636,27.7285 L20.5756,27.7285 L20.5756,40.6675 Z M19.5756,42.6675 L28.3636,42.6675 C28.9166,42.6675 29.3636,42.2205 29.3636,41.6675 L29.3636,26.7285 C29.3636,26.1755 28.9166,25.7285 28.3636,25.7285 L19.5756,25.7285 C19.0236,25.7285 18.5756,26.1755 18.5756,26.7285 L18.5756,41.6675 C18.5756,42.2205 19.0236,42.6675 19.5756,42.6675 L19.5756,42.6675 Z M6.5156,40.6675 L13.3036,40.6675 L13.3036,23.3345 L6.5156,23.3345 L6.5156,40.6675 Z M5.5156,42.6675 L14.3036,42.6675 C14.8566,42.6675 15.3036,42.2205 15.3036,41.6675 L15.3036,22.3345 C15.3036,21.7815 14.8566,21.3345 14.3036,21.3345 L5.5156,21.3345 C4.9626,21.3345 4.5156,21.7815 4.5156,22.3345 L4.5156,41.6675 C4.5156,42.2205 4.9626,42.6675 5.5156,42.6675 L5.5156,42.6675 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-parameter-store":{"onLight":"data:image/svg+xml,%3Csvg width='42.12' height='43.86' viewBox='3 1.99 42.12 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M35.5886,36.7588 C35.5886,37.1338 35.8946,37.4408 36.2696,37.4408 L36.2706,37.4408 C36.4516,37.4408 36.6226,37.3698 36.7506,37.2418 C36.8796,37.1128 36.9506,36.9418 36.9506,36.7588 L36.9506,36.7568 C36.9506,36.5758 36.8806,36.4048 36.7526,36.2778 C36.6236,36.1488 36.4526,36.0768 36.2706,36.0768 L36.2696,36.0768 C36.0876,36.0768 35.9166,36.1478 35.7886,36.2768 C35.6596,36.4048 35.5886,36.5758 35.5886,36.7588 L35.5886,36.7588 Z M33.5886,36.7578 C33.5896,36.0408 33.8686,35.3678 34.3746,34.8618 C34.8806,34.3558 35.5536,34.0768 36.2686,34.0768 L36.2716,34.0768 C36.9876,34.0768 37.6616,34.3568 38.1686,34.8638 C38.6746,35.3718 38.9526,36.0448 38.9506107,36.7608 C38.9496,37.4778 38.6706,38.1508 38.1646,38.6558 C37.9046,38.9158 37.6006,39.1128 37.2696,39.2458 L37.2706,42.0428 L35.2706,42.0428 L35.2696,39.2428 C34.2856,38.8458 33.5886,37.8828 33.5886,36.7578 L33.5886,36.7578 Z M43.1156,32.7748 L29.4286,32.7688 L29.4246,43.8378 L43.1096,43.8448 L43.1156,32.7748 Z M32.9016,30.7708 L39.614618,30.7728 L39.614618,28.3028 C39.6206,26.2818 38.1276,24.6358 36.2866,24.6298 L36.2756,24.6298 C35.3936,24.6298 34.5606,24.9978 33.9276,25.6658 C33.2766,26.3548 32.9166,27.2758 32.9136,28.2598 L32.9016,30.7708 Z M45.1156,31.7748 L45.1096,44.8448 C45.1096,45.3978 44.6616,45.8448 44.1096,45.8448 L28.4246,45.8378 C27.8716,45.8378 27.4246,45.3898 27.4246,44.8378 L27.4286,31.7688 C27.4286,31.5028 27.5336,31.2488 27.7216,31.0618 C27.9086,30.8738 28.1636,30.7688 28.4286,30.7688 L30.9016,30.7698 L30.9136,28.2518 C30.9186,26.7588 31.4726,25.3518 32.4746,24.2918 C33.4886,23.2198 34.8386,22.6298 36.2756,22.6298 L36.2926,22.6298 C39.2366,22.6398 41.6246,25.1858 41.6146,28.3058 L41.6146,30.7738 L44.1156,30.7748 C44.3816,30.7748 44.6356,30.8798 44.8226,31.0678 C45.0106,31.2548 45.1156,31.5098 45.1156,31.7748 L45.1156,31.7748 Z M14.4756,31.0248 L21.4496,31.0248 L21.4496,29.0248 L14.4756,29.0248 L14.4756,31.0248 Z M14.4756,27.5378 L21.4496,27.5378 L21.4496,25.5378 L14.4756,25.5378 L14.4756,27.5378 Z M14.4756,24.0508 L21.4496,24.0508 L21.4496,22.0508 L14.4756,22.0508 L14.4756,24.0508 Z M12.9056,33.3838 L23.1096,33.3838 L23.1096,19.6928 L12.9056,19.6928 L12.9056,33.3838 Z M25.1096,18.6928 L25.1096,34.3838 C25.1096,34.9368 24.6626,35.3838 24.1096,35.3838 L11.9056,35.3838 C11.3536,35.3838 10.9056,34.9368 10.9056,34.3838 L10.9056,18.6928 C10.9056,18.1398 11.3536,17.6928 11.9056,17.6928 L24.1096,17.6928 C24.6626,17.6928 25.1096,18.1398 25.1096,18.6928 L25.1096,18.6928 Z M5.9406,8.9748 L30.0166,8.9748 L26.4706,3.9998 L9.4856,3.9998 L5.9406,8.9748 Z M3.1106,10.4328 C2.9396,10.0998 2.9686,9.6988 3.1856,9.3948 L8.1556,2.4198 C8.3436,2.1558 8.6476,1.9998 8.9706,1.9998 L26.9856,1.9998 C27.3096,1.9998 27.6126,2.1558 27.8006,2.4198 L32.7716,9.3948 C32.9876,9.6988 33.0176,10.0998 32.8456,10.4328 C32.6746,10.7658 32.3306,10.9748 31.9566,10.9748 L3.9996,10.9748 C3.6256,10.9748 3.2816,10.7658 3.1106,10.4328 L3.1106,10.4328 Z M5.0496,39.4868 L24.9376,39.4868 L24.9376,41.4868 L4.0496,41.4868 C3.4966,41.4868 3.0496,41.0388 3.0496,40.4868 L3.0496,13.4618 C3.0496,12.9088 3.4966,12.4618 4.0496,12.4618 L31.9546,12.4618 C32.5076,12.4618 32.9546,12.9088 32.9546,13.4618 L32.9546,22.1788 L30.9546,22.1788 L30.9546,14.4618 L5.0496,14.4618 L5.0496,39.4868 Z' fill='%23E7157B'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-iam-role":{"onLight":"data:image/svg+xml,%3Csvg width='44.12' height='25.44' viewBox='1.99 10.99 44.12 25.44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M44.0827,32.581 C43.9267,32.592 43.7697,32.604 43.6207,32.619 C43.0987,32.662 42.5527,32.714 42.0007,32.772 L41.8327,32.79 C40.0677,32.972 38.0697,33.177 37.1187,33.047 C36.5247,32.962 35.4307,32.487 34.2707,31.984 C32.3047,31.132 29.8567,30.07 27.6437,29.9 C24.5977,29.666 19.3347,30.24 15.9407,31.831 C13.9787,31.743 12.1587,31.215 10.7447,30.343 C10.7387,30.071 10.7327,29.799 10.7327,29.694 C10.7327,25.558 12.6707,21.679 16.0527,19.044 C18.3497,17.701 20.9967,16.992 23.7127,16.992 C29.8337,16.992 35.2657,20.609 37.3847,25.934 L36.5717,25.934 C35.7577,25.934 35.0757,26.51 34.9087,27.274 C34.7707,27.222 34.6447,27.175 34.4967,27.118 C32.4677,26.335 29.6837,25.264 26.4657,25.455 C21.7607,25.731 19.4457,26.015 17.6227,26.535 L18.1717,28.459 C19.8397,27.982 22.0397,27.719 26.5827,27.451 C29.3667,27.293 31.9197,28.269 33.7767,28.984 C34.1717,29.137 34.5287,29.27 34.8677,29.391 L34.8677,29.596 C34.8677,30.535 35.6327,31.3 36.5717,31.3 L40.2187,31.3 C41.1557,31.3 41.9197,30.538 41.9227,29.602 L42.2767,29.57 C42.8697,29.517 43.4147,29.464 43.8717,29.419 L44.0827,29.398 L44.0827,32.581 Z M9.7987,34.249 C7.1487,34.612 5.0567,34.288 4.1907,33.753 C4.7157,33.382 5.9007,32.863 6.7347,32.499 C7.4567,32.184 8.1877,31.851 8.8947,31.495 C10.0487,32.374 11.4777,33.033 13.0597,33.426 C12.1447,33.794 11.0117,34.084 9.7987,34.249 L9.7987,34.249 Z M36.8677,29.3 L39.9227,29.3 L39.9227,27.934 L36.8677,27.934 L36.8677,29.3 Z M26.5857,13 C34.9537,13 41.9817,19.295 43.0167,27.492 C42.7287,27.52 42.4247,27.549 42.1037,27.578 L41.9187,27.594 C41.8947,26.676 41.1437,25.934 40.2187,25.934 L39.5077,25.934 C37.3067,19.457 30.9317,14.992 23.7127,14.992 C21.0387,14.992 18.4227,15.604 16.0717,16.767 C16.0887,16.753 16.1027,16.738 16.1177,16.725 C19.0587,14.323 22.7757,13 26.5857,13 L26.5857,13 Z M45.5267,27.794 C45.3817,27.663 45.2107,27.568 45.0287,27.496 C43.9827,18.185 36.0497,11 26.5857,11 C22.3167,11 18.1497,12.483 14.8537,15.175 C10.5007,18.719 8.0047,23.97 8.0047,29.581 C8.0047,29.622 8.0077,29.663 8.0077,29.704 C7.3407,30.039 6.6357,30.359 5.9347,30.666 C3.7987,31.6 2.2557,32.274 2.0257,33.492 C1.9677,33.801 1.9577,34.406 2.5457,34.994 C3.5827,36.031 5.5727,36.403 7.5947,36.403 C8.4367,36.403 9.2827,36.339 10.0687,36.231 C11.4077,36.049 13.9077,35.558 15.6047,34.316 C18.2827,32.375 24.3377,31.649 27.4907,31.894 C29.3697,32.039 31.6457,33.026 33.4757,33.819 C34.8717,34.426 35.9757,34.904 36.8417,35.027 C38.0327,35.19 39.9777,34.99 42.0367,34.779 L42.2097,34.762 C42.7477,34.704 43.2777,34.654 43.8017,34.611 C44.0167,34.59 44.2297,34.575 44.5137,34.555 C45.3937,34.493 46.0827,33.755 46.0827,32.875 L46.0827,29.046 C46.0827,28.568 45.8807,28.112 45.5267,27.794 L45.5267,27.794 Z' fill='%23DD344C'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-sagemaker-model":{"onLight":"data:image/svg+xml,%3Csvg width='43.95' height='44.19' viewBox='1.99 1.99 43.95 44.19' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M29.9559,29.8297 C29.9559,30.3157 29.5599,30.7117 29.0749,30.7117 C28.5889,30.7117 28.1929,30.3157 28.1929,29.8297 C28.1929,29.3447 28.5889,28.9487 29.0749,28.9487 C29.5599,28.9487 29.9559,29.3447 29.9559,29.8297 L29.9559,29.8297 Z M32.8379,11.8947 C32.3519,11.8947 31.9559,11.4997 31.9559,11.0137 C31.9559,10.5267 32.3519,10.1317 32.8379,10.1317 C33.3239,10.1317 33.7199,10.5267 33.7199,11.0137 C33.7199,11.4997 33.3239,11.8947 32.8379,11.8947 L32.8379,11.8947 Z M29.4189,20.6907 C29.4189,21.1767 29.0229,21.5717 28.5369,21.5717 C28.0509,21.5717 27.6549,21.1767 27.6549,20.6907 C27.6549,20.2047 28.0509,19.8087 28.5369,19.8087 C29.0229,19.8087 29.4189,20.2047 29.4189,20.6907 L29.4189,20.6907 Z M34.1059,36.2817 C34.1059,35.7957 34.5019,35.3997 34.9879,35.3997 C35.4749,35.3997 35.8699,35.7957 35.8699,36.2817 C35.8699,36.7667 35.4749,37.1627 34.9879,37.1627 C34.5019,37.1627 34.1059,36.7667 34.1059,36.2817 L34.1059,36.2817 Z M38.5299,31.3027 C38.2149,31.4787 38.0199,31.8117 38.0199,32.1737 L38.0199,38.3647 L30.8809,42.5867 L30.8809,37.5507 L32.4139,37.5507 C32.8859,38.5017 33.8559,39.1627 34.9879,39.1627 C36.5769,39.1627 37.8699,37.8707 37.8699,36.2817 C37.8699,34.6927 36.5769,33.3997 34.9879,33.3997 C33.6539,33.3997 32.5379,34.3167 32.2119,35.5507 L29.8809,35.5507 C29.3279,35.5507 28.8809,35.9977 28.8809,36.5507 L28.8809,43.7687 L28.4759,44.0087 L24.9679,41.9757 L24.9679,16.0457 L27.8059,16.0457 L27.8059,17.9147 C26.5719,18.2407 25.6549,19.3557 25.6549,20.6907 C25.6549,22.2797 26.9479,23.5717 28.5369,23.5717 C30.1259,23.5717 31.4189,22.2797 31.4189,20.6907 C31.4189,19.5587 30.7569,18.5877 29.8059,18.1167 L29.8059,16.0457 L33.1059,16.0457 C33.6589,16.0457 34.1059,15.5987 34.1059,15.0457 L34.1059,13.5877 C35.0579,13.1167 35.7199,12.1447 35.7199,11.0137 C35.7199,9.4247 34.4269,8.1317 32.8379,8.1317 C31.2489,8.1317 29.9559,9.4247 29.9559,11.0137 C29.9559,12.3487 30.8729,13.4637 32.1059,13.7897 L32.1059,14.0457 L24.9679,14.0457 L24.9679,6.8037 L29.3659,4.1697 L38.5579,9.7737 L38.5589,15.9377 C38.5589,16.2987 38.7519,16.6307 39.0649,16.8087 L43.9339,19.5687 L43.9349,22.6467 L34.7199,22.6467 C34.1669,22.6467 33.7199,23.0947 33.7199,23.6467 L33.7199,28.5607 L31.6489,28.5607 C31.1779,27.6097 30.2069,26.9487 29.0749,26.9487 C27.4859,26.9487 26.1929,28.2407 26.1929,29.8297 C26.1929,31.4187 27.4859,32.7117 29.0749,32.7117 C30.4099,32.7117 31.5239,31.7947 31.8509,30.5607 L34.7199,30.5607 C35.2719,30.5607 35.7199,30.1137 35.7199,29.5607 L35.7199,24.6467 L43.9349,24.6467 L43.9349,28.2597 L38.5299,31.3027 Z M17.2469,28.4107 C17.7329,28.4107 18.1289,28.8067 18.1289,29.2927 C18.1289,29.7787 17.7329,30.1747 17.2469,30.1747 C16.7609,30.1747 16.3649,29.7787 16.3649,29.2927 C16.3649,28.8067 16.7609,28.4107 17.2469,28.4107 L17.2469,28.4107 Z M15.8279,12.6267 C15.8279,12.1407 16.2239,11.7447 16.7099,11.7447 C17.1949,11.7447 17.5909,12.1407 17.5909,12.6267 C17.5909,13.1127 17.1949,13.5087 16.7099,13.5087 C16.2239,13.5087 15.8279,13.1127 15.8279,12.6267 L15.8279,12.6267 Z M12.2149,20.6907 C12.2149,21.1767 11.8189,21.5717 11.3329,21.5717 C10.8479,21.5717 10.4519,21.1767 10.4519,20.6907 C10.4519,20.2047 10.8479,19.8087 11.3329,19.8087 C11.8189,19.8087 12.2149,20.2047 12.2149,20.6907 L12.2149,20.6907 Z M17.4399,37.8937 C17.4399,37.4077 17.8359,37.0127 18.3219,37.0127 C18.8089,37.0127 19.2039,37.4077 19.2039,37.8937 C19.2039,38.3807 18.8089,38.7757 18.3219,38.7757 C17.8359,38.7757 17.4399,38.3807 17.4399,37.8937 L17.4399,37.8937 Z M18.9119,44.0027 L9.3759,38.3627 L9.3769,32.1727 C9.3769,31.8087 9.1789,31.4727 8.8589,31.2967 L8.5009,31.0997 L11.1399,31.0997 L11.1399,38.1627 C11.1399,38.7157 11.5869,39.1627 12.1399,39.1627 L15.7479,39.1627 C16.2189,40.1137 17.1899,40.7757 18.3219,40.7757 C19.9109,40.7757 21.2039,39.4827 21.2039,37.8937 C21.2039,36.3057 19.9109,35.0127 18.3219,35.0127 C16.9879,35.0127 15.8719,35.9297 15.5459,37.1627 L13.1399,37.1627 L13.1399,30.0997 C13.1399,29.5467 12.6919,29.0997 12.1399,29.0997 L4.8639,29.0997 L4.0009,28.6247 L3.9999,19.5677 L8.8689,16.8067 C9.1829,16.6287 9.3759,16.2967 9.3759,15.9357 L9.3769,13.3567 L10.6019,13.3567 L10.6019,17.9147 C9.3689,18.2407 8.4519,19.3557 8.4519,20.6907 C8.4519,22.2797 9.7439,23.5717 11.3329,23.5717 C12.9219,23.5717 14.2149,22.2797 14.2149,20.6907 C14.2149,19.5597 13.5539,18.5887 12.6019,18.1167 L12.6019,13.3567 L13.9339,13.3567 C14.2599,14.5917 15.3749,15.5087 16.7099,15.5087 C18.2989,15.5087 19.5909,14.2157 19.5909,12.6267 C19.5909,11.0377 18.2989,9.7447 16.7099,9.7447 C15.5789,9.7447 14.6069,10.4057 14.1359,11.3567 L9.3769,11.3567 L9.3769,9.7717 L18.5679,4.1687 L22.9679,6.8027 L22.9679,18.3467 L16.9779,18.3467 C16.4259,18.3467 15.9779,18.7937 15.9779,19.3467 L15.9779,26.7187 C15.0269,27.1887 14.3649,28.1607 14.3649,29.2927 C14.3649,30.8817 15.6579,32.1747 17.2469,32.1747 C18.8359,32.1747 20.1289,30.8817 20.1289,29.2927 C20.1289,27.9577 19.2119,26.8427 17.9779,26.5167 L17.9779,20.3467 L22.9679,20.3467 L22.9679,41.5897 L18.9119,44.0027 Z M45.9339,18.9867 C45.9339,18.6267 45.7399,18.2947 45.4269,18.1167 L40.5589,15.3557 L40.5579,9.2127 C40.5579,8.8637 40.3759,8.5407 40.0779,8.3587 L29.8919,2.1477 C29.5739,1.9547 29.1769,1.9517 28.8569,2.1427 L23.9689,5.0697 L19.0769,2.1427 C18.7569,1.9507 18.3589,1.9527 18.0429,2.1467 L7.8559,8.3567 C7.5589,8.5387 7.3769,8.8617 7.3769,9.2107 L7.3759,15.3537 L2.5069,18.1157 C2.1929,18.2937 1.9999,18.6257 1.9999,18.9857 L2.0009,29.2157 C2.0009,29.5807 2.1989,29.9157 2.5179,30.0917 L7.3769,32.7637 L7.3759,38.9337 C7.3759,39.2867 7.5619,39.6137 7.8669,39.7937 L18.4049,46.0257 C18.7209,46.2127 19.1099,46.2127 19.4259,46.0247 L23.6399,43.5177 L27.9789,46.0317 C28.1339,46.1217 28.3079,46.1667 28.4799,46.1667 C28.6559,46.1667 28.8319,46.1197 28.9889,46.0267 L39.5289,39.7957 C39.8339,39.6157 40.0199,39.2887 40.0199,38.9347 L40.0199,32.7587 L45.4249,29.7157 C45.7399,29.5387 45.9349,29.2057 45.9349,28.8447 L45.9339,18.9867 Z' fill='%2301A88D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-bedrock":{"onLight":"data:image/svg+xml,%3Csvg width='44' height='44' viewBox='10 10 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(10.000000, 10.000000)' fill='%2301A88D'%3E%3Cpath d='M41,20.9998818 C40.448,20.9998818 40,20.5508818 40,19.9998818 C40,19.4488818 40.448,18.9998818 41,18.9998818 C41.552,18.9998818 42,19.4488818 42,19.9998818 C42,20.5508818 41.552,20.9998818 41,20.9998818 L41,20.9998818 Z M16.977,41.8478818 L13.774,40.1018818 L17.515,37.8568818 L16.485,36.1428818 L11.738,38.9908818 L7,36.4058818 L7,30.5658818 L11.515,27.8568818 L10.485,26.1428818 L6,28.8338818 L2,26.4338818 L2,22.6178818 L7.447,19.8948818 L6.553,18.1048818 L2,20.3818818 L2,17.6178818 L6.956,15.1398818 L11,17.5658818 L11,20.3818818 L7.553,22.1048818 L8.447,23.8948818 L12.003,22.1168818 L15.557,23.8768818 L16.443,22.0848818 L13,20.3798818 L13,17.5658818 L17.515,14.8568818 C17.815,14.6768818 18,14.3508818 18,13.9998818 L18,8.99988178 L16,8.99988178 L16,13.4338818 L12,15.8338818 L8,13.4338818 L8,6.58788178 L11,4.92188178 L11,10.9998818 L13,10.9998818 L13,3.81088178 L16.024,2.12988178 L21.002,4.61588178 L21.001,26.4498818 L10.463,33.1558818 L11.537,34.8438818 L21.001,28.8218818 L21,39.4338818 L16.977,41.8478818 Z M38,28.9998818 C38.552,28.9998818 39,29.4488818 39,29.9998818 C39,30.5508818 38.552,30.9998818 38,30.9998818 C37.448,30.9998818 37,30.5508818 37,29.9998818 C37,29.4488818 37.448,28.9998818 38,28.9998818 L38,28.9998818 Z M30,38.9998818 C29.448,38.9998818 29,38.5508818 29,37.9998818 C29,37.4488818 29.448,36.9998818 30,36.9998818 C30.552,36.9998818 31,37.4488818 31,37.9998818 C31,38.5508818 30.552,38.9998818 30,38.9998818 L30,38.9998818 Z M32,5.99988178 C32.552,5.99988178 33,6.44888178 33,6.99988178 C33,7.55088178 32.552,7.99988178 32,7.99988178 C31.448,7.99988178 31,7.55088178 31,6.99988178 C31,6.44888178 31.448,5.99988178 32,5.99988178 L32,5.99988178 Z M41,16.9998818 C39.698,16.9998818 38.598,17.8388818 38.184,18.9998818 L23.001,18.9998818 L23.001,14.9998818 L32,14.9998818 C32.553,14.9998818 33,14.5518818 33,13.9998818 L33,9.81588178 C34.161,9.40188178 35,8.30188178 35,6.99988178 C35,5.34588178 33.654,3.99988178 32,3.99988178 C30.346,3.99988178 29,5.34588178 29,6.99988178 C29,8.30188178 29.839,9.40188178 31,9.81588178 L31,12.9998818 L23.001,12.9998818 L23.002,3.99788178 C23.002,3.61888178 22.788,3.27288178 22.449,3.10388178 L16.447,0.104881781 C16.151,-0.0421182195 15.803,-0.0341182195 15.515,0.125881781 L6.515,5.12588178 C6.197,5.30188178 6,5.63688178 6,5.99988178 L6,13.3818818 L0.553,16.1048818 C0.214,16.2748818 0,16.6208818 0,16.9998818 L0,26.9998818 C0,27.3508818 0.185,27.6768818 0.485,27.8568818 L5,30.5658818 L5,36.9998818 C5,37.3658818 5.2,37.7028818 5.521,37.8778818 L16.521,43.8778818 C16.671,43.9588818 16.835,43.9998818 17,43.9998818 C17.179,43.9998818 17.356,43.9518818 17.515,43.8568818 L22.515,40.8568818 C22.815,40.6768818 23,40.3508818 23,39.9998818 L23,32.9998818 L29,32.9998818 L29,35.1838818 C27.839,35.5978818 27,36.6978818 27,37.9998818 C27,39.6538818 28.346,40.9998818 30,40.9998818 C31.654,40.9998818 33,39.6538818 33,37.9998818 C33,36.6978818 32.161,35.5978818 31,35.1838818 L31,31.9998818 C31,31.4478818 30.553,30.9998818 30,30.9998818 L23,30.9998818 L23.001,26.9998818 L33.586,26.9998818 L35.301,28.7148818 C35.113,29.1058818 35,29.5378818 35,29.9998818 C35,31.6538818 36.346,32.9998818 38,32.9998818 C39.654,32.9998818 41,31.6538818 41,29.9998818 C41,28.3458818 39.654,26.9998818 38,26.9998818 C37.538,26.9998818 37.106,27.1128818 36.715,27.3008818 L34.707,25.2928818 C34.52,25.1048818 34.266,24.9998818 34,24.9998818 L23.001,24.9998818 L23.001,20.9998818 L38.184,20.9998818 C38.598,22.1608818 39.698,22.9998818 41,22.9998818 C42.654,22.9998818 44,21.6538818 44,19.9998818 C44,18.3458818 42.654,16.9998818 41,16.9998818 L41,16.9998818 Z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E"},"aws-client":{"onLight":"data:image/svg+xml,%3Csvg width='43.84' height='43.06' viewBox='1.99 1.99 43.84 43.06' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M42.299,38.773 L42.299,40.696 C42.299,41.134 41.945,41.49 41.506,41.49 L30.762,41.49 C30.323,41.49 29.968,41.134 29.968,40.696 L29.968,38.773 C29.968,38.335 30.323,37.98 30.762,37.98 L41.506,37.98 C41.945,37.98 42.299,38.335 42.299,38.773 L42.299,38.773 Z M43.797,42.399 C43.797,42.754 43.508,43.044 43.153,43.044 L4.645,43.044 C4.289,43.044 4,42.754 4,42.399 L4,37.011 C4,36.656 4.289,36.367 4.645,36.367 L43.153,36.367 C43.508,36.367 43.797,36.656 43.797,37.011 L43.797,42.399 Z M43.153,34.367 L4.645,34.367 C3.187,34.367 2,35.553 2,37.011 L2,42.399 C2,43.857 3.187,45.044 4.645,45.044 L43.153,45.044 C44.611,45.044 45.797,43.857 45.797,42.399 L45.797,37.011 C45.797,35.553 44.611,34.367 43.153,34.367 L43.153,34.367 Z M7.501,27.21 L40.264,27.21 L40.264,7.502 L7.501,7.502 L7.501,27.21 Z M40.842,5.502 L6.924,5.502 C6.14,5.502 5.501,6.139 5.501,6.923 L5.501,27.788 C5.501,28.572 6.14,29.21 6.924,29.21 L40.842,29.21 C41.626,29.21 42.264,28.572 42.264,27.788 L42.264,6.923 C42.264,6.139 41.626,5.502 40.842,5.502 L40.842,5.502 Z M43.797,30.067 C43.797,30.422 43.508,30.711 43.153,30.711 L4.645,30.711 C4.289,30.711 4,30.422 4,30.067 L4,4.644 C4,4.289 4.289,4 4.645,4 L43.153,4 C43.508,4 43.797,4.289 43.797,4.644 L43.797,30.067 Z M43.153,2 L4.645,2 C3.187,2 2,3.186 2,4.644 L2,30.067 C2,31.525 3.187,32.711 4.645,32.711 L43.153,32.711 C44.611,32.711 45.797,31.525 45.797,30.067 L45.797,4.644 C45.797,3.186 44.611,2 43.153,2 L43.153,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='43.84' height='43.06' viewBox='1.99 1.99 43.84 43.06' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M42.299,38.773 L42.299,40.696 C42.299,41.134 41.945,41.49 41.506,41.49 L30.762,41.49 C30.323,41.49 29.968,41.134 29.968,40.696 L29.968,38.773 C29.968,38.335 30.323,37.98 30.762,37.98 L41.506,37.98 C41.945,37.98 42.299,38.335 42.299,38.773 L42.299,38.773 Z M43.797,42.399 C43.797,42.754 43.508,43.044 43.153,43.044 L4.645,43.044 C4.289,43.044 4,42.754 4,42.399 L4,37.011 C4,36.656 4.289,36.367 4.645,36.367 L43.153,36.367 C43.508,36.367 43.797,36.656 43.797,37.011 L43.797,42.399 Z M43.153,34.367 L4.645,34.367 C3.187,34.367 2,35.553 2,37.011 L2,42.399 C2,43.857 3.187,45.044 4.645,45.044 L43.153,45.044 C44.611,45.044 45.797,43.857 45.797,42.399 L45.797,37.011 C45.797,35.553 44.611,34.367 43.153,34.367 L43.153,34.367 Z M7.501,27.21 L40.264,27.21 L40.264,7.502 L7.501,7.502 L7.501,27.21 Z M40.842,5.502 L6.924,5.502 C6.14,5.502 5.501,6.139 5.501,6.923 L5.501,27.788 C5.501,28.572 6.14,29.21 6.924,29.21 L40.842,29.21 C41.626,29.21 42.264,28.572 42.264,27.788 L42.264,6.923 C42.264,6.139 41.626,5.502 40.842,5.502 L40.842,5.502 Z M43.797,30.067 C43.797,30.422 43.508,30.711 43.153,30.711 L4.645,30.711 C4.289,30.711 4,30.422 4,30.067 L4,4.644 C4,4.289 4.289,4 4.645,4 L43.153,4 C43.508,4 43.797,4.289 43.797,4.644 L43.797,30.067 Z M43.153,2 L4.645,2 C3.187,2 2,3.186 2,4.644 L2,30.067 C2,31.525 3.187,32.711 4.645,32.711 L43.153,32.711 C44.611,32.711 45.797,31.525 45.797,30.067 L45.797,4.644 C45.797,3.186 44.611,2 43.153,2 L43.153,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-mobile-client":{"onLight":"data:image/svg+xml,%3Csvg width='24.03' height='43.86' viewBox='11.97 1.99 24.03 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M19.603,6.109 C19.773,6.109 19.911,6.247 19.911,6.417 C19.911,6.586 19.773,6.724 19.603,6.724 C19.433,6.724 19.295,6.586 19.295,6.417 C19.295,6.247 19.433,6.109 19.603,6.109 L19.603,6.109 Z M19.603,8.224 C20.6,8.224 21.411,7.413 21.411,6.417 C21.411,5.42 20.6,4.609 19.603,4.609 C18.606,4.609 17.795,5.42 17.795,6.417 C17.795,7.413 18.606,8.224 19.603,8.224 L19.603,8.224 Z M23.012,7.401 L28.374,7.401 L28.374,5.401 L23.012,5.401 L23.012,7.401 Z M32.173,43.826 L15.812,43.826 C14.813,43.826 14,43.029 14,42.05 L14,40.641 L33.986,40.641 L33.986,42.05 C33.986,43.029 33.172,43.826 32.173,43.826 L32.173,43.826 Z M14,10.802 L33.986,10.802 L33.986,38.641 L14,38.641 L14,28.943 L14,10.802 Z M16.646,4 L31.339,4 C32.798,4 33.986,5.167 33.986,6.6 L33.986,8.802 L14,8.802 L14,6.6 C14,5.167 15.187,4 16.646,4 L16.646,4 Z M31.354,2 L31.339,2 L16.646,2 C14.084,2 12,4.064 12,6.6 L12,42.05 C12,44.132 13.71,45.826 15.812,45.826 L32.173,45.826 C34.276,45.826 35.986,44.132 35.986,42.05 L35.986,6.6 L35.986,6.597 C35.986,4.067 33.91,2.008 31.354,2 L31.354,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='24.03' height='43.86' viewBox='11.97 1.99 24.03 43.86' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M19.603,6.109 C19.773,6.109 19.911,6.247 19.911,6.417 C19.911,6.586 19.773,6.724 19.603,6.724 C19.433,6.724 19.295,6.586 19.295,6.417 C19.295,6.247 19.433,6.109 19.603,6.109 L19.603,6.109 Z M19.603,8.224 C20.6,8.224 21.411,7.413 21.411,6.417 C21.411,5.42 20.6,4.609 19.603,4.609 C18.606,4.609 17.795,5.42 17.795,6.417 C17.795,7.413 18.606,8.224 19.603,8.224 L19.603,8.224 Z M23.012,7.401 L28.374,7.401 L28.374,5.401 L23.012,5.401 L23.012,7.401 Z M32.173,43.826 L15.812,43.826 C14.813,43.826 14,43.029 14,42.05 L14,40.641 L33.986,40.641 L33.986,42.05 C33.986,43.029 33.172,43.826 32.173,43.826 L32.173,43.826 Z M14,10.802 L33.986,10.802 L33.986,38.641 L14,38.641 L14,28.943 L14,10.802 Z M16.646,4 L31.339,4 C32.798,4 33.986,5.167 33.986,6.6 L33.986,8.802 L14,8.802 L14,6.6 C14,5.167 15.187,4 16.646,4 L16.646,4 Z M31.354,2 L31.339,2 L16.646,2 C14.084,2 12,4.064 12,6.6 L12,42.05 C12,44.132 13.71,45.826 15.812,45.826 L32.173,45.826 C34.276,45.826 35.986,44.132 35.986,42.05 L35.986,6.6 L35.986,6.597 C35.986,4.067 33.91,2.008 31.354,2 L31.354,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-user":{"onLight":"data:image/svg+xml,%3Csvg width='40.04' height='44.02' viewBox='3.98 1.99 40.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6.025,44 C6.524,34.085 14.395,26.178 24,26.178 C27.248,26.178 30.43,27.092 33.205,28.822 C38.354,32.033 41.653,37.783 41.974,44 L6.025,44 Z M14.192,13.878 C14.192,8.432 18.592,4 24.001,4 C29.408,4 33.807,8.432 33.807,13.878 C33.807,19.325 29.408,23.757 24.001,23.757 C18.592,23.757 14.192,19.325 14.192,13.878 L14.192,13.878 Z M34.263,27.125 C32.53,26.044 30.65,25.26 28.698,24.771 C32.877,22.939 35.807,18.749 35.807,13.878 C35.807,7.329 30.51,2 24.001,2 C17.489,2 12.192,7.329 12.192,13.878 C12.192,18.755 15.13,22.95 19.317,24.778 C10.545,26.981 4,35.2 4,45 C4,45.552 4.447,46 5,46 L43,46 C43.552,46 44,45.552 44,45 C44,37.719 40.269,30.87 34.263,27.125 L34.263,27.125 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='40.04' height='44.02' viewBox='3.98 1.99 40.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6.025,44 C6.524,34.085 14.395,26.178 24,26.178 C27.248,26.178 30.43,27.092 33.205,28.822 C38.354,32.033 41.653,37.783 41.974,44 L6.025,44 Z M14.192,13.878 C14.192,8.432 18.592,4 24.001,4 C29.408,4 33.807,8.432 33.807,13.878 C33.807,19.325 29.408,23.757 24.001,23.757 C18.592,23.757 14.192,19.325 14.192,13.878 L14.192,13.878 Z M34.263,27.125 C32.53,26.044 30.65,25.26 28.698,24.771 C32.877,22.939 35.807,18.749 35.807,13.878 C35.807,7.329 30.51,2 24.001,2 C17.489,2 12.192,7.329 12.192,13.878 C12.192,18.755 15.13,22.95 19.317,24.778 C10.545,26.981 4,35.2 4,45 C4,45.552 4.447,46 5,46 L43,46 C43.552,46 44,45.552 44,45 C44,37.719 40.269,30.87 34.263,27.125 L34.263,27.125 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-users":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M28.639,9.286 C28.639,6.371 31.052,4 34.019,4 C36.985,4 39.397,6.371 39.397,9.286 C39.397,12.201 36.985,14.572 34.019,14.572 C31.052,14.572 28.639,12.201 28.639,9.286 L28.639,9.286 Z M40.163,16.334 C39.516,15.932 38.833,15.6 38.128,15.333 C40.098,14.023 41.397,11.802 41.397,9.286 C41.397,5.269 38.087,2 34.019,2 C29.95,2 26.639,5.269 26.639,9.286 C26.639,11.796 27.932,14.014 29.895,15.325 C28.614,15.808 27.41,16.515 26.349,17.425 L27.652,18.943 C29.434,17.414 31.689,16.572 34,16.572 C35.802,16.572 37.569,17.077 39.109,18.033 C41.849,19.735 43.647,22.725 43.953,26 L34,26 L34,28 L45,28 C45.553,28 46,27.553 46,27 C46,22.657 43.764,18.57 40.163,16.334 L40.163,16.334 Z M8.639,9.286 C8.639,6.371 11.052,4 14.019,4 C16.985,4 19.397,6.371 19.397,9.286 C19.397,12.201 16.985,14.572 14.019,14.572 C11.052,14.572 8.639,12.201 8.639,9.286 L8.639,9.286 Z M14,26 L4.046,26 C4.53,20.717 8.81,16.572 14,16.572 C15.802,16.572 17.569,17.077 19.109,18.033 C19.541,18.302 19.958,18.608 20.349,18.943 L21.652,17.426 C21.184,17.024 20.684,16.657 20.163,16.334 C19.516,15.932 18.833,15.6 18.128,15.333 C20.098,14.023 21.397,11.802 21.397,9.286 C21.397,5.269 18.087,2 14.019,2 C9.95,2 6.639,5.269 6.639,9.286 C6.639,11.801 7.937,14.023 9.907,15.332 C5.302,17.071 2,21.638 2,27 C2,27.553 2.448,28 3,28 L14,28 L14,26 Z M14.046,44 C14.53,38.717 18.81,34.572 24,34.572 C25.802,34.572 27.569,35.077 29.109,36.033 C31.849,37.735 33.647,40.725 33.953,44 L14.046,44 Z M18.639,27.286 C18.639,24.371 21.052,22 24.019,22 C26.985,22 29.397,24.371 29.397,27.286 C29.397,30.201 26.985,32.572 24.019,32.572 C21.052,32.572 18.639,30.201 18.639,27.286 L18.639,27.286 Z M30.163,34.334 C29.516,33.932 28.833,33.6 28.128,33.333 C30.098,32.023 31.397,29.802 31.397,27.286 C31.397,23.269 28.087,20 24.019,20 C19.95,20 16.639,23.269 16.639,27.286 C16.639,29.801 17.937,32.023 19.907,33.332 C15.302,35.071 12,39.638 12,45 C12,45.553 12.448,46 13,46 L35,46 C35.553,46 36,45.553 36,45 C36,40.657 33.764,36.57 30.163,34.334 L30.163,34.334 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M28.639,9.286 C28.639,6.371 31.052,4 34.019,4 C36.985,4 39.397,6.371 39.397,9.286 C39.397,12.201 36.985,14.572 34.019,14.572 C31.052,14.572 28.639,12.201 28.639,9.286 L28.639,9.286 Z M40.163,16.334 C39.516,15.932 38.833,15.6 38.128,15.333 C40.098,14.023 41.397,11.802 41.397,9.286 C41.397,5.269 38.087,2 34.019,2 C29.95,2 26.639,5.269 26.639,9.286 C26.639,11.796 27.932,14.014 29.895,15.325 C28.614,15.808 27.41,16.515 26.349,17.425 L27.652,18.943 C29.434,17.414 31.689,16.572 34,16.572 C35.802,16.572 37.569,17.077 39.109,18.033 C41.849,19.735 43.647,22.725 43.953,26 L34,26 L34,28 L45,28 C45.553,28 46,27.553 46,27 C46,22.657 43.764,18.57 40.163,16.334 L40.163,16.334 Z M8.639,9.286 C8.639,6.371 11.052,4 14.019,4 C16.985,4 19.397,6.371 19.397,9.286 C19.397,12.201 16.985,14.572 14.019,14.572 C11.052,14.572 8.639,12.201 8.639,9.286 L8.639,9.286 Z M14,26 L4.046,26 C4.53,20.717 8.81,16.572 14,16.572 C15.802,16.572 17.569,17.077 19.109,18.033 C19.541,18.302 19.958,18.608 20.349,18.943 L21.652,17.426 C21.184,17.024 20.684,16.657 20.163,16.334 C19.516,15.932 18.833,15.6 18.128,15.333 C20.098,14.023 21.397,11.802 21.397,9.286 C21.397,5.269 18.087,2 14.019,2 C9.95,2 6.639,5.269 6.639,9.286 C6.639,11.801 7.937,14.023 9.907,15.332 C5.302,17.071 2,21.638 2,27 C2,27.553 2.448,28 3,28 L14,28 L14,26 Z M14.046,44 C14.53,38.717 18.81,34.572 24,34.572 C25.802,34.572 27.569,35.077 29.109,36.033 C31.849,37.735 33.647,40.725 33.953,44 L14.046,44 Z M18.639,27.286 C18.639,24.371 21.052,22 24.019,22 C26.985,22 29.397,24.371 29.397,27.286 C29.397,30.201 26.985,32.572 24.019,32.572 C21.052,32.572 18.639,30.201 18.639,27.286 L18.639,27.286 Z M30.163,34.334 C29.516,33.932 28.833,33.6 28.128,33.333 C30.098,32.023 31.397,29.802 31.397,27.286 C31.397,23.269 28.087,20 24.019,20 C19.95,20 16.639,23.269 16.639,27.286 C16.639,29.801 17.937,32.023 19.907,33.332 C15.302,35.071 12,39.638 12,45 C12,45.553 12.448,46 13,46 L35,46 C35.553,46 36,45.553 36,45 C36,40.657 33.764,36.57 30.163,34.334 L30.163,34.334 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-internet":{"onLight":"data:image/svg+xml,%3Csvg width='44.05' height='27.62' viewBox='1.99 9.98 44.05 27.62' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M34.59,29.7893333 L30.997,33.3813333 L30.997,21.7593333 L28.997,21.7593333 L28.997,33.2703333 L25.556,29.7733333 L24.13,31.1763333 L29.325,36.4553333 C29.513,36.6453333 29.768,36.7533333 30.034,36.7543333 L30.038,36.7543333 C30.303,36.7543333 30.558,36.6483333 30.745,36.4613333 L36.004,31.2033333 L34.59,29.7893333 Z M22.35,27.7243333 L23.764,26.3103333 L18.506,21.0523333 C18.319,20.8643333 18.065,20.7593333 17.799,20.7593333 L17.795,20.7593333 C17.528,20.7603333 17.274,20.8673333 17.086,21.0583333 L11.89,26.3363333 L13.316,27.7383333 L16.757,24.2433333 L16.757,37.5543333 L18.757,37.5543333 L18.757,24.1313333 L22.35,27.7243333 Z M20.333,37.5723333 L27.4,37.5793333 L27.402,35.5793333 L20.335,35.5723333 L20.333,37.5723333 Z M46.026,29.1303333 C46.026,31.6173333 45.272,33.6283333 43.783,35.1053333 C41.332,37.5403333 37.776,37.5903333 37.496,37.5903333 L37.484,37.5903333 L32.721,37.5853333 L32.723,35.5853333 L37.491,35.5903333 C37.531,35.5903333 40.489,35.5693333 42.385,33.6763333 C43.474,32.5883333 44.026,31.0593333 44.026,29.1303333 C44.026,27.9483333 43.701,26.1793333 40.896,24.4603333 C39.422,23.5573333 38.041,23.2593333 37.517,23.1743333 C36.986,23.0873333 36.622,22.5993333 36.685,22.0693333 C36.507,19.9743333 35.526,18.5083333 33.982,18.0403333 C32.647,17.6363333 31.218,18.1083333 30.337,19.2443333 C30.116,19.5313333 29.763,19.6773333 29.396,19.6203333 C29.036,19.5653333 28.736,19.3203333 28.61,18.9793333 C27.992,17.3143333 27.099,15.9173333 25.955,14.8233333 C24.545,13.4753333 20.675,10.5743333 15.204,12.7843333 C12.069,14.0513333 9.611,17.6893333 9.611,21.0673333 C9.611,21.4443333 9.635,21.8223333 9.682,22.1893333 C9.743,22.6733333 9.446,23.1313333 8.981,23.2723333 C8.943,23.2843333 8.903,23.2933333 8.865,23.3003333 C7.02,23.7643333 4,25.1573333 4,29.2983333 C4,32.4433333 5.799,34.1823333 7.308,35.0873333 C7.823,35.3963333 8.419,35.5603333 9.029,35.5613333 L15.181,35.5673333 L15.179,37.5673333 L9.028,37.5613333 C8.055,37.5603333 7.104,37.2983333 6.278,36.8023333 C4.681,35.8443333 2,33.5953333 2,29.2983333 C2,25.5833333 4.084,22.7513333 7.623,21.5793333 C7.615,21.4093333 7.611,21.2383333 7.611,21.0673333 C7.611,16.8633333 10.554,12.5053333 14.456,10.9303333 C19.001,9.09333332 23.817,10.0113333 27.338,13.3783333 C28.37,14.3643333 29.228,15.5503333 29.897,16.9143333 C31.234,15.9453333 32.938,15.6373333 34.562,16.1263333 C36.751,16.7903333 38.234,18.7233333 38.615,21.3603333 C39.748,21.6423333 40.925,22.1323333 41.941,22.7553333 C44.69,24.4383333 46.026,26.5243333 46.026,29.1303333 L46.026,29.1303333 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.05' height='27.62' viewBox='1.99 9.98 44.05 27.62' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M34.59,29.7893333 L30.997,33.3813333 L30.997,21.7593333 L28.997,21.7593333 L28.997,33.2703333 L25.556,29.7733333 L24.13,31.1763333 L29.325,36.4553333 C29.513,36.6453333 29.768,36.7533333 30.034,36.7543333 L30.038,36.7543333 C30.303,36.7543333 30.558,36.6483333 30.745,36.4613333 L36.004,31.2033333 L34.59,29.7893333 Z M22.35,27.7243333 L23.764,26.3103333 L18.506,21.0523333 C18.319,20.8643333 18.065,20.7593333 17.799,20.7593333 L17.795,20.7593333 C17.528,20.7603333 17.274,20.8673333 17.086,21.0583333 L11.89,26.3363333 L13.316,27.7383333 L16.757,24.2433333 L16.757,37.5543333 L18.757,37.5543333 L18.757,24.1313333 L22.35,27.7243333 Z M20.333,37.5723333 L27.4,37.5793333 L27.402,35.5793333 L20.335,35.5723333 L20.333,37.5723333 Z M46.026,29.1303333 C46.026,31.6173333 45.272,33.6283333 43.783,35.1053333 C41.332,37.5403333 37.776,37.5903333 37.496,37.5903333 L37.484,37.5903333 L32.721,37.5853333 L32.723,35.5853333 L37.491,35.5903333 C37.531,35.5903333 40.489,35.5693333 42.385,33.6763333 C43.474,32.5883333 44.026,31.0593333 44.026,29.1303333 C44.026,27.9483333 43.701,26.1793333 40.896,24.4603333 C39.422,23.5573333 38.041,23.2593333 37.517,23.1743333 C36.986,23.0873333 36.622,22.5993333 36.685,22.0693333 C36.507,19.9743333 35.526,18.5083333 33.982,18.0403333 C32.647,17.6363333 31.218,18.1083333 30.337,19.2443333 C30.116,19.5313333 29.763,19.6773333 29.396,19.6203333 C29.036,19.5653333 28.736,19.3203333 28.61,18.9793333 C27.992,17.3143333 27.099,15.9173333 25.955,14.8233333 C24.545,13.4753333 20.675,10.5743333 15.204,12.7843333 C12.069,14.0513333 9.611,17.6893333 9.611,21.0673333 C9.611,21.4443333 9.635,21.8223333 9.682,22.1893333 C9.743,22.6733333 9.446,23.1313333 8.981,23.2723333 C8.943,23.2843333 8.903,23.2933333 8.865,23.3003333 C7.02,23.7643333 4,25.1573333 4,29.2983333 C4,32.4433333 5.799,34.1823333 7.308,35.0873333 C7.823,35.3963333 8.419,35.5603333 9.029,35.5613333 L15.181,35.5673333 L15.179,37.5673333 L9.028,37.5613333 C8.055,37.5603333 7.104,37.2983333 6.278,36.8023333 C4.681,35.8443333 2,33.5953333 2,29.2983333 C2,25.5833333 4.084,22.7513333 7.623,21.5793333 C7.615,21.4093333 7.611,21.2383333 7.611,21.0673333 C7.611,16.8633333 10.554,12.5053333 14.456,10.9303333 C19.001,9.09333332 23.817,10.0113333 27.338,13.3783333 C28.37,14.3643333 29.228,15.5503333 29.897,16.9143333 C31.234,15.9453333 32.938,15.6373333 34.562,16.1263333 C36.751,16.7903333 38.234,18.7233333 38.615,21.3603333 C39.748,21.6423333 40.925,22.1323333 41.941,22.7553333 C44.69,24.4383333 46.026,26.5243333 46.026,29.1303333 L46.026,29.1303333 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-server":{"onLight":"data:image/svg+xml,%3Csvg width='25.53' height='44.05' viewBox='10.99 1.99 25.53 44.05' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.437,21.52 L32.064,21.52 L32.064,19.52 L15.437,19.52 L15.437,21.52 Z M15.437,17.196 L32.064,17.196 L32.064,15.196 L15.437,15.196 L15.437,17.196 Z M15.437,12.762 L32.064,12.762 L32.064,10.762 L15.437,10.762 L15.437,12.762 Z M15.437,8.494 L32.064,8.494 L32.064,6.494 L15.437,6.494 L15.437,8.494 Z M13,44.013 L34.499,44.013 L34.499,4 L13,4 L13,44.013 Z M35.032,2 L12.468,2 C11.659,2 11,2.659 11,3.469 L11,44.545 C11,45.355 11.659,46.013 12.468,46.013 L35.032,46.013 C35.841,46.013 36.499,45.355 36.499,44.545 L36.499,3.469 C36.499,2.659 35.841,2 35.032,2 L35.032,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='25.53' height='44.05' viewBox='10.99 1.99 25.53 44.05' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M15.437,21.52 L32.064,21.52 L32.064,19.52 L15.437,19.52 L15.437,21.52 Z M15.437,17.196 L32.064,17.196 L32.064,15.196 L15.437,15.196 L15.437,17.196 Z M15.437,12.762 L32.064,12.762 L32.064,10.762 L15.437,10.762 L15.437,12.762 Z M15.437,8.494 L32.064,8.494 L32.064,6.494 L15.437,6.494 L15.437,8.494 Z M13,44.013 L34.499,44.013 L34.499,4 L13,4 L13,44.013 Z M35.032,2 L12.468,2 C11.659,2 11,2.659 11,3.469 L11,44.545 C11,45.355 11.659,46.013 12.468,46.013 L35.032,46.013 C35.841,46.013 36.499,45.355 36.499,44.545 L36.499,3.469 C36.499,2.659 35.841,2 35.032,2 L35.032,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-database":{"onLight":"data:image/svg+xml,%3Csvg width='34.67' height='43.93' viewBox='6.98 1.99 34.67 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.755,43.307 C30.506,43.519 29.176,43.677 27.801,43.777 C27.244,43.817 26.678,43.847 26.105,43.869 C24.954,43.908 23.754,43.908 22.608,43.869 C22.033,43.847 21.467,43.817 20.91,43.777 C19.535,43.677 18.205,43.519 16.956,43.307 C12.049,42.475 9,40.73 9,38.754 L9,10.765 C11.997,12.661 17.74,13.841 24.356,13.841 C30.966,13.841 36.636,12.68 39.645,10.803 L39.645,38.754 C39.645,40.767 36.695,42.469 31.755,43.307 M24.356,4 C32.896,4 38.476,6.184 39.47,8.432 C37.802,10.098 32.46,11.841 24.356,11.841 C16.26,11.841 10.828,10.061 9.207,8.408 L9.171,8.443 C10.155,6.191 15.765,4 24.356,4 M24.356,2 C14.137,2 7,4.938 7,9.145 L7,38.754 C7,40.581 8.25,43.86 16.622,45.28 C17.933,45.501 19.327,45.667 20.766,45.771 C21.346,45.813 21.936,45.845 22.536,45.867 C23.134,45.888 23.741,45.899 24.356,45.899 C24.97,45.899 25.576,45.888 26.176,45.867 C26.776,45.845 27.365,45.813 27.945,45.771 C29.384,45.667 30.778,45.501 32.089,45.28 C40.403,43.869 41.645,40.586 41.645,38.754 L41.645,9.145 C41.645,4.938 34.535,2 24.356,2' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='34.67' height='43.93' viewBox='6.98 1.99 34.67 43.93' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.755,43.307 C30.506,43.519 29.176,43.677 27.801,43.777 C27.244,43.817 26.678,43.847 26.105,43.869 C24.954,43.908 23.754,43.908 22.608,43.869 C22.033,43.847 21.467,43.817 20.91,43.777 C19.535,43.677 18.205,43.519 16.956,43.307 C12.049,42.475 9,40.73 9,38.754 L9,10.765 C11.997,12.661 17.74,13.841 24.356,13.841 C30.966,13.841 36.636,12.68 39.645,10.803 L39.645,38.754 C39.645,40.767 36.695,42.469 31.755,43.307 M24.356,4 C32.896,4 38.476,6.184 39.47,8.432 C37.802,10.098 32.46,11.841 24.356,11.841 C16.26,11.841 10.828,10.061 9.207,8.408 L9.171,8.443 C10.155,6.191 15.765,4 24.356,4 M24.356,2 C14.137,2 7,4.938 7,9.145 L7,38.754 C7,40.581 8.25,43.86 16.622,45.28 C17.933,45.501 19.327,45.667 20.766,45.771 C21.346,45.813 21.936,45.845 22.536,45.867 C23.134,45.888 23.741,45.899 24.356,45.899 C24.97,45.899 25.576,45.888 26.176,45.867 C26.776,45.845 27.365,45.813 27.945,45.771 C29.384,45.667 30.778,45.501 32.089,45.28 C40.403,43.869 41.645,40.586 41.645,38.754 L41.645,9.145 C41.645,4.938 34.535,2 24.356,2' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-application":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37,35 L46,35 L46,37 L37,37 L37,46 L35,46 L35,37 L26,37 L26,35 L35,35 L35,26 L37,26 L37,35 Z M4,44 L20,44 L20,28 L4,28 L4,44 Z M21,26 L3,26 C2.447,26 2,26.448 2,27 L2,45 C2,45.552 2.447,46 3,46 L21,46 C21.553,46 22,45.552 22,45 L22,27 C22,26.448 21.553,26 21,26 L21,26 Z M28,20 L44,20 L44,4 L28,4 L28,20 Z M45,2 L27,2 C26.447,2 26,2.448 26,3 L26,21 C26,21.552 26.447,22 27,22 L45,22 C45.553,22 46,21.552 46,21 L46,3 C46,2.448 45.553,2 45,2 L45,2 Z M4,20 L20,20 L20,4 L4,4 L4,20 Z M21,2 L3,2 C2.447,2 2,2.448 2,3 L2,21 C2,21.552 2.447,22 3,22 L21,22 C21.553,22 22,21.552 22,21 L22,3 C22,2.448 21.553,2 21,2 L21,2 Z' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.02' height='44.02' viewBox='1.99 1.99 44.02 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M37,35 L46,35 L46,37 L37,37 L37,46 L35,46 L35,37 L26,37 L26,35 L35,35 L35,26 L37,26 L37,35 Z M4,44 L20,44 L20,28 L4,28 L4,44 Z M21,26 L3,26 C2.447,26 2,26.448 2,27 L2,45 C2,45.552 2.447,46 3,46 L21,46 C21.553,46 22,45.552 22,45 L22,27 C22,26.448 21.553,26 21,26 L21,26 Z M28,20 L44,20 L44,4 L28,4 L28,20 Z M45,2 L27,2 C26.447,2 26,2.448 26,3 L26,21 C26,21.552 26.447,22 27,22 L45,22 C45.553,22 46,21.552 46,21 L46,3 C46,2.448 45.553,2 45,2 L45,2 Z M4,20 L20,20 L20,4 L4,4 L4,20 Z M21,2 L3,2 C2.447,2 2,2.448 2,3 L2,21 C2,21.552 2.447,22 3,22 L21,22 C21.553,22 22,21.552 22,21 L22,3 C22,2.448 21.553,2 21,2 L21,2 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-git-repository":{"onLight":"data:image/svg+xml,%3Csvg width='34.04' height='44.02' viewBox='6.98 1.99 34.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M36.002,44 C34.348,44 33.002,42.654 33.002,41 C33.002,39.346 34.348,38 36.002,38 C37.656,38 39.002,39.346 39.002,41 C39.002,42.654 37.656,44 36.002,44 M12,10 C10.346,10 9,8.654 9,7 C9,5.346 10.346,4 12,4 C13.654,4 15,5.346 15,7 C15,8.654 13.654,10 12,10 M36.002,21.001 C37.656,21.001 39.002,22.347 39.002,24.001 C39.002,25.655 37.656,27.001 36.002,27.001 C34.348,27.001 33.002,25.655 33.002,24.001 C33.002,22.347 34.348,21.001 36.002,21.001 M36.002,36 C33.587,36 31.567,37.721 31.103,40.001 L26.001,40.001 C25.338,40.001 25.001,39.685 25.001,39.062 L25.001,25.001 L31.103,25.001 C31.568,27.28 33.588,29.001 36.002,29.001 C38.759,29.001 41.002,26.758 41.002,24.001 C41.002,21.244 38.759,19.001 36.002,19.001 C33.588,19.001 31.568,20.722 31.103,23.001 L25.001,23.001 L25.001,8.938 C25.001,7.208 23.768,5.999 22.001,5.999 L16.899,5.999 C16.434,3.72 14.414,2 12,2 C9.243,2 7,4.243 7,7 C7,9.757 9.243,12 12,12 C14.415,12 16.435,10.279 16.899,7.999 L22.001,7.999 C22.674,7.999 23.001,8.306 23.001,8.938 L23.001,39.062 C23.001,40.792 24.234,42.001 26.001,42.001 L31.103,42.001 C31.568,44.28 33.588,46 36.002,46 C38.759,46 41.002,43.757 41.002,41 C41.002,38.243 38.759,36 36.002,36' fill='%23232F3D'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='34.04' height='44.02' viewBox='6.98 1.99 34.04 44.02' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M36.002,44 C34.348,44 33.002,42.654 33.002,41 C33.002,39.346 34.348,38 36.002,38 C37.656,38 39.002,39.346 39.002,41 C39.002,42.654 37.656,44 36.002,44 M12,10 C10.346,10 9,8.654 9,7 C9,5.346 10.346,4 12,4 C13.654,4 15,5.346 15,7 C15,8.654 13.654,10 12,10 M36.002,21.001 C37.656,21.001 39.002,22.347 39.002,24.001 C39.002,25.655 37.656,27.001 36.002,27.001 C34.348,27.001 33.002,25.655 33.002,24.001 C33.002,22.347 34.348,21.001 36.002,21.001 M36.002,36 C33.587,36 31.567,37.721 31.103,40.001 L26.001,40.001 C25.338,40.001 25.001,39.685 25.001,39.062 L25.001,25.001 L31.103,25.001 C31.568,27.28 33.588,29.001 36.002,29.001 C38.759,29.001 41.002,26.758 41.002,24.001 C41.002,21.244 38.759,19.001 36.002,19.001 C33.588,19.001 31.568,20.722 31.103,23.001 L25.001,23.001 L25.001,8.938 C25.001,7.208 23.768,5.999 22.001,5.999 L16.899,5.999 C16.434,3.72 14.414,2 12,2 C9.243,2 7,4.243 7,7 C7,9.757 9.243,12 12,12 C14.415,12 16.435,10.279 16.899,7.999 L22.001,7.999 C22.674,7.999 23.001,8.306 23.001,8.938 L23.001,39.062 C23.001,40.792 24.234,42.001 26.001,42.001 L31.103,42.001 C31.568,44.28 33.588,46 36.002,46 C38.759,46 41.002,43.757 41.002,41 C41.002,38.243 38.759,36 36.002,36' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"aws-email":{"onLight":"data:image/svg+xml,%3Csvg width='44.02' height='27.24' viewBox='1.99 9.98 44.02 27.24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.4824,23.5332 L44.0004,13.2252 L44.0004,33.9642 L31.4824,23.5332 Z M18.0884,24.8272 L24.0004,29.6952 L29.9114,24.8272 L42.3584,35.2002 L5.6424,35.2002 L18.0884,24.8272 Z M16.5174,23.5332 L4.0004,33.9652 L4.0004,13.2242 L16.5174,23.5332 Z M24.0004,27.1042 L5.6594,12.0002 L42.3404,12.0002 L24.0004,27.1042 Z M2.0004,10.6462 L2.0004,36.5532 C2.0004,36.9102 2.2894,37.2002 2.6464,37.2002 L45.3534,37.2002 C45.7114,37.2002 46.0004,36.9102 46.0004,36.5532 L46.0004,10.6462 C46.0004,10.2892 45.7114,10.0002 45.3534,10.0002 L2.6464,10.0002 C2.2894,10.0002 2.0004,10.2892 2.0004,10.6462 L2.0004,10.6462 Z' fill='%23242F3E'%3E%3C/path%3E%3C/g%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='44.02' height='27.24' viewBox='1.99 9.98 44.02 27.24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M31.4824,23.5332 L44.0004,13.2252 L44.0004,33.9642 L31.4824,23.5332 Z M18.0884,24.8272 L24.0004,29.6952 L29.9114,24.8272 L42.3584,35.2002 L5.6424,35.2002 L18.0884,24.8272 Z M16.5174,23.5332 L4.0004,33.9652 L4.0004,13.2242 L16.5174,23.5332 Z M24.0004,27.1042 L5.6594,12.0002 L42.3404,12.0002 L24.0004,27.1042 Z M2.0004,10.6462 L2.0004,36.5532 C2.0004,36.9102 2.2894,37.2002 2.6464,37.2002 L45.3534,37.2002 C45.7114,37.2002 46.0004,36.9102 46.0004,36.5532 L46.0004,10.6462 C46.0004,10.2892 45.7114,10.0002 45.3534,10.0002 L2.6464,10.0002 C2.2894,10.0002 2.0004,10.2892 2.0004,10.6462 L2.0004,10.6462 Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"},"temporal":{"onLight":"data:image/svg+xml,%3Csvg width='386.73' height='386.14' viewBox='390.23 391.99 386.73 386.14' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle type='text/css'%3E .st0{fill:%23141414;} %3C/style%3E%3Cpath class='st0' d='M651.14,517.35C642.02,449.03,618.94,392,583.49,392s-58.53,57.03-67.65,125.35 c-68.32,9.12-125.35,32.2-125.35,67.65s57.04,58.53,125.35,67.65c9.12,68.31,32.2,125.35,67.65,125.35s58.53-57.04,67.65-125.35 c68.32-9.12,125.35-32.2,125.35-67.65S719.45,526.47,651.14,517.35z M513.61,632.75c-65.43-9.45-103.59-31.08-103.59-47.75 s38.16-38.3,103.59-47.75c-1.44,15.75-2.19,31.83-2.19,47.75C511.42,600.92,512.17,617.01,513.61,632.75z M583.49,411.53 c16.67,0,38.3,38.16,47.75,103.59c-15.74-1.44-31.83-2.19-47.75-2.19s-32.01,0.75-47.75,2.19 C545.19,449.69,566.82,411.53,583.49,411.53z M653.37,632.75c-3.22,0.47-16.43,2.02-19.77,2.35c-0.33,3.35-1.89,16.55-2.35,19.77 c-9.45,65.43-31.08,103.59-47.75,103.59s-38.3-38.16-47.75-103.59c-0.46-3.22-2.02-16.43-2.35-19.77 c-1.52-15.51-2.44-32.17-2.44-50.1s0.92-34.59,2.44-50.11c15.51-1.52,32.17-2.44,50.1-2.44s34.59,0.92,50.1,2.44 c3.35,0.33,16.55,1.89,19.77,2.35c65.43,9.45,103.6,31.09,103.6,47.75S718.8,623.3,653.37,632.75z'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='386.73' height='386.14' viewBox='390.23 391.99 386.73 386.14' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle type='text/css'%3E .st0{fill:%23F2F2F2;} %3C/style%3E%3Cpath class='st0' d='M651.14,517.35C642.02,449.03,618.94,392,583.49,392s-58.53,57.03-67.65,125.35 c-68.32,9.12-125.35,32.2-125.35,67.65s57.04,58.53,125.35,67.65c9.12,68.31,32.2,125.35,67.65,125.35s58.53-57.04,67.65-125.35 c68.32-9.12,125.35-32.2,125.35-67.65S719.45,526.47,651.14,517.35z M513.61,632.75c-65.43-9.45-103.59-31.08-103.59-47.75 s38.16-38.3,103.59-47.75c-1.44,15.75-2.19,31.83-2.19,47.75C511.42,600.92,512.17,617.01,513.61,632.75z M583.49,411.53 c16.67,0,38.3,38.16,47.75,103.59c-15.74-1.44-31.83-2.19-47.75-2.19s-32.01,0.75-47.75,2.19 C545.19,449.69,566.82,411.53,583.49,411.53z M653.37,632.75c-3.22,0.47-16.43,2.02-19.77,2.35c-0.33,3.35-1.89,16.55-2.35,19.77 c-9.45,65.43-31.08,103.59-47.75,103.59s-38.3-38.16-47.75-103.59c-0.46-3.22-2.02-16.43-2.35-19.77 c-1.52-15.51-2.44-32.17-2.44-50.1s0.92-34.59,2.44-50.11c15.51-1.52,32.17-2.44,50.1-2.44s34.59,0.92,50.1,2.44 c3.35,0.33,16.55,1.89,19.77,2.35c65.43,9.45,103.6,31.09,103.6,47.75S718.8,623.3,653.37,632.75z'/%3E%3C/svg%3E"},"sonarqube":{"onLight":"data:image/svg+xml,%3Csvg width='46.44' height='46.44' viewBox='14.94 14.94 46.44 46.44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M59.86,39.66c-.83,0-1.5-.67-1.5-1.5,0-11.14-9.06-20.2-20.2-20.2-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c12.79,0,23.2,10.41,23.2,23.2,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,61.36c-12.79,0-23.2-10.41-23.2-23.2,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,11.14,9.06,20.2,20.2,20.2.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M44.67,39.66c-.83,0-1.5-.67-1.5-1.5,0-2.76-2.25-5.01-5.01-5.01-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c4.42,0,8.01,3.59,8.01,8.01,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,46.17c-4.42,0-8.01-3.59-8.01-8.01,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,2.76,2.25,5.01,5.01,5.01.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M52.26,39.66c-.83,0-1.5-.67-1.5-1.5,0-6.95-5.65-12.6-12.6-12.6-.83,0-1.5-.67-1.5-1.5s.67-1.5,1.5-1.5c8.6,0,15.6,7,15.6,15.6,0,.83-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3Cpath d='M38.16,53.76c-8.6,0-15.6-7-15.6-15.6,0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5c0,6.95,5.65,12.6,12.6,12.6.83,0,1.5.67,1.5,1.5s-.67,1.5-1.5,1.5Z' fill='%23126ed3'/%3E%3C/svg%3E"},"github":{"onLight":"data:image/svg+xml,%3Csvg width='98.01' height='94.99' viewBox='0 0 98.01 94.99' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_730_27126)'%3E%3Cpath d='M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z' fill='black'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_730_27126'%3E%3Crect width='98' height='96' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='98.01' height='94.99' viewBox='0 0 98.01 94.99' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_730_27136)'%3E%3Cpath d='M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_730_27136'%3E%3Crect width='98' height='96' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E"},"coderabbit":{"onLight":"data:image/svg+xml,%3Csvg width='1200.42' height='1200.42' viewBox='0.58 0 1200.42 1200.42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M600.867 1200C932.238 1200 1200.87 931.37 1200.87 600C1200.87 268.629 932.238 -0.000488281 600.867 -0.000488281C269.496 -0.000488281 0.867188 268.629 0.867188 600C0.867188 931.37 269.496 1200 600.867 1200Z' fill='%23FF570A'/%3E%3Cpath d='M1008.3 500.615C1008.3 500.615 924.706 393.751 819.62 387.639C751.807 383.636 735.379 392.696 732.434 399.444C728.226 364.456 698.322 202.361 491.729 168.008C518.102 357.589 627.02 308.191 691.161 438.86C691.161 438.86 582.921 291.734 404.969 345.903C404.969 345.903 469.83 482.07 661.676 509.891C661.676 509.891 677.05 562.586 681.684 571.862C681.684 571.862 386.224 417.779 296.512 713.505C229.747 698.382 207.352 770.859 284.09 820.369C284.09 820.369 297.147 768.519 328.943 753.131C328.943 753.131 260.711 829.226 340.946 920.36H628.925C635.883 908.834 666.68 848.19 590.514 802.285C644.278 801.516 688.042 902.932 735.128 921.058H803.61C805.927 915.428 810.771 898.567 799.395 883.395C781.857 863.278 743.46 866.002 743.802 828.8C757.062 655.746 1016.55 708.888 1008.3 500.615Z' fill='%23FEFEFE'/%3E%3C/svg%3E"},"greptile":{"onLight":"data:image/svg+xml,%3Csvg width='366.68' height='420' viewBox='0 0 366.68 420' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M240.269 49.8154L166.804 115.963L115.966 159.44L181.335 220.585L249.784 162.048L196.78 112.47L253.068 61.7881L362.605 164.246L178.739 321.489L3.14502 157.242L187.011 0L240.269 49.8154Z' fill='%233D3B4F'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.75471 -0.656059 0 1 188.017 336.544)' fill='%233D3B4F'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.731354 0.681998 0 1 0 174.962)' fill='%233D3B4F'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='366.68' height='420' viewBox='0 0 366.68 420' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M240.269 49.8154L166.804 115.963L115.966 159.44L181.335 220.585L249.784 162.048L196.78 112.47L253.068 61.7881L362.605 164.246L178.739 321.489L3.14502 157.242L187.011 0L240.269 49.8154Z' fill='%23ffffff'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.75471 -0.656059 0 1 188.017 336.544)' fill='%23ffffff'/%3E%3Crect width='236.453' height='83.4566' transform='matrix(0.731354 0.681998 0 1 0 174.962)' fill='%23ffffff'/%3E%3C/svg%3E"},"blacksmith":{"onLight":"data:image/svg+xml,%3Csvg width='144' height='96.05' viewBox='0 0 144 96.05' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M144 0H0V48C26.5097 48 48 69.4903 48 96H144V0Z' fill='%23202020'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='144' height='96.05' viewBox='0 0 144 96.05' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M144 0H0V48C26.5097 48 48 69.4903 48 96H144V0Z' fill='%23ffffff'/%3E%3C/svg%3E"},"jenkins":{"onLight":"data:image/svg+xml,%3Csvg width='21.78' height='24' viewBox='1.11 0 21.78 24' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M2.872 24h-.975a3.866 3.866 0 01-.07-.197c-.215-.666-.594-1.49-.692-2.154-.146-.984.78-1.039 1.374-1.465.915-.66 1.635-1.025 2.627-1.62.295-.179 1.182-.624 1.281-.829.201-.408-.345-.982-.49-1.3-.225-.507-.345-.937-.376-1.435-.824-.13-1.455-.627-1.844-1.185-.63-.925-1.066-2.635-.525-3.936.045-.103.254-.305.285-.463.06-.308-.105-.72-.12-1.048-.06-1.692.284-3.15 1.425-3.66.463-1.84 2.113-2.453 3.673-3.367.58-.342 1.224-.562 1.89-.807 2.372-.877 6.027-.712 7.994.783.836.633 2.176 1.97 2.656 2.939 1.262 2.555 1.17 6.825.287 9.934-.12.421-.29 1.032-.533 1.533-.168.35-.689 1.05-.625 1.36.064.314 1.19 1.17 1.432 1.395.434.422 1.26.975 1.324 1.5.07.557-.248 1.336-.41 1.875-.217.721-.436 1.441-.654 2.131H2.87zm11.104-3.54c-.545-.3-1.361-.622-2.065-.757-.87-.164-.78 1.188-.75 1.994.03.643.36 1.316.51 1.744.076.197.09.41.256.449.3.068 1.29-.326 1.575-.479.6-.328 1.064-.844 1.574-1.189.016-.17.016-.34.03-.508a2.648 2.648 0 00-1.095-.277c.314-.15.75-.15 1.035-.332l.016-.193c-.496-.03-.69-.254-1.021-.436zm7.454 2.935a17.78 17.78 0 00.465-1.752c.06-.287.215-.918.178-1.176-.059-.459-.684-.799-1.004-1.086-.584-.525-.95-.975-1.56-1.469-.249.375-.78.615-.983.914 1.447-.689 1.71 2.625 1.141 3.69.09.329.391.45.514.735l-.086.166h1.29c.013 0 .03 0 .044.014zm-6.634-.012c-.05-.074-.1-.135-.15-.209l-.301.195h.45zm2.77 0c.008-.209.018-.404.03-.598-.53.029-.825-.48-1.196-.527-.324-.045-.6.361-1.02.195-.095.105-.183.227-.284.316.154.18.295.375.424.584h.815c.014-.164.135-.285.3-.285.165 0 .284.121.284.27h.66zm2.116 0c-.314-.479-.947-.898-1.68-.555l-.03.541h1.71zm-8.51 0l-.104-.344c-.225-.72-.36-1.26-.405-1.68-.914-.436-1.875-.87-2.654-1.426-.15-.105-1.109-1.35-1.23-1.305-1.739.676-3.359 1.86-4.814 2.984.256.557.48 1.141.69 1.74h8.505zm8.265-2.113c-.029-.512-.164-1.56-.48-1.74-.66-.39-1.846.78-2.34.943.045.15.135.271.15.48.285-.074.645-.029.898.092-.299.03-.629.03-.824.164-.074.195.016.48-.029.764.69.197 1.5.303 2.385.332.164-.227.225-.645.211-1.082zm-4.08-.36c-.044.375.046.51.12.943 1.26.391 1.034-1.74-.135-.959zM8.76 19.5c-.45.457 1.27 1.082 1.814 1.115 0-.29.165-.564.135-.77-.65-.118-1.502-.042-1.945-.347zm5.565.215c0 .043-.061.03-.068.064.58.451 1.014.545 1.802.51.354-.262.67-.563 1.043-.807-.855.074-1.931.607-2.774.23zm3.42-17.726c-1.606-.906-4.35-1.591-6.076-.731-1.38.692-3.27 1.84-3.899 3.292.6 1.402-.166 2.686-.226 4.109-.018.757.36 1.42.391 2.242-.2.338-.825.38-1.26.356-.146-.729-.4-1.549-1.155-1.63-1.064-.116-1.845.764-1.89 1.683-.06 1.08.833 2.864 2.085 2.745.488-.046.608-.54 1.139-.54.285.57-.445.75-.523 1.154-.016.105.06.511.104.705.233.944.744 2.16 1.245 2.88.635.9 1.884 1.051 3.229 1.141.24-.525 1.125-.48 1.706-.346-.691-.27-1.336-.945-1.875-1.529-.615-.676-1.23-1.41-1.261-2.28 1.155 1.604 2.1 3 4.2 3.704 1.59.525 3.45-.254 4.664-1.109.51-.359.811-.93 1.17-1.439 1.35-1.936 1.98-4.71 1.846-7.394-.06-1.111-.06-2.221-.436-2.955-.389-.781-1.695-1.471-2.475-.781-.15-.764.63-1.23 1.545-.96-.66-.854-1.336-1.858-2.266-2.384zM13.58 14.896c.615 1.544 2.724 1.363 4.505 1.323-.084.194-.256.435-.465.515-.57.232-2.145.408-2.937-.012-.506-.27-.824-.873-1.102-1.227-.137-.172-.795-.608-.012-.609zm.164-.87c.893.464 2.52.517 3.731.48.066.267.066.593.068.913-1.55.08-3.386-.304-3.794-1.395h-.005zm6.675-.586c-.473.9-1.145 1.897-2.539 1.928-.023-.284-.045-.735 0-.904 1.064-.103 1.727-.646 2.543-1.017zm-.649-.667c-1.02.66-2.154 1.375-3.824 1.21-.351-.31-.485-1-.14-1.458.181.313.06.885.57.97.944.165 2.038-.579 2.73-.84.42-.713-.046-.976-.42-1.433-.782-.93-1.83-2.1-1.802-3.51.314-.224.346.346.391.45.404.96 1.424 2.175 2.174 3 .18.21.48.39.51.524.092.39-.254.854-.209 1.11zm-13.439-.675c-.314-.184-.393-.99-.768-1.01-.535-.03-.438 1.05-.436 1.68-.37-.33-.435-1.365-.164-1.89-.308-.15-.445.164-.618.284.22-1.59 2.34-.734 1.99.96zM4.713 5.995c-.685.756-.54 2.174-.459 3.188 1.244-.785 2.898.06 2.883 1.394.595-.016.223-.744.115-1.215-.353-1.528.592-3.187.041-4.59-1.064.084-1.939.52-2.578 1.215zm9.12 1.113c.307.562.404 1.148.84 1.57.195.19.574.424.387.95-.045.121-.365.391-.551.45-.674.195-2.254.03-1.721-.81.563.015 1.314.36 1.732-.045-.314-.524-.885-1.53-.674-2.13zm6.198-.013h.068c.33.668.6 1.375 1.004 1.965-.27.628-2.053 1.19-2.023.057.39-.17 1.05-.035 1.395-.25-.193-.556-.48-1.006-.434-1.771zm-6.927-1.617c-1.422-.33-2.131.592-2.56 1.553-.384-.094-.231-.615-.135-.883.255-.701 1.28-1.633 2.119-1.506.359.057.848.386.576.834zM9.642 1.593c-1.56.44-3.56 1.574-4.2 2.974.495-.07.84-.321 1.33-.351.186-.016.428.074.641.015.424-.104.78-1.065 1.102-1.41.31-.345.685-.496.94-.81.167-.09.409-.074.42-.33-.073-.075-.15-.135-.232-.105v.017z'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='21.78' height='24' viewBox='1.11 0 21.78 24' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M2.872 24h-.975a3.866 3.866 0 01-.07-.197c-.215-.666-.594-1.49-.692-2.154-.146-.984.78-1.039 1.374-1.465.915-.66 1.635-1.025 2.627-1.62.295-.179 1.182-.624 1.281-.829.201-.408-.345-.982-.49-1.3-.225-.507-.345-.937-.376-1.435-.824-.13-1.455-.627-1.844-1.185-.63-.925-1.066-2.635-.525-3.936.045-.103.254-.305.285-.463.06-.308-.105-.72-.12-1.048-.06-1.692.284-3.15 1.425-3.66.463-1.84 2.113-2.453 3.673-3.367.58-.342 1.224-.562 1.89-.807 2.372-.877 6.027-.712 7.994.783.836.633 2.176 1.97 2.656 2.939 1.262 2.555 1.17 6.825.287 9.934-.12.421-.29 1.032-.533 1.533-.168.35-.689 1.05-.625 1.36.064.314 1.19 1.17 1.432 1.395.434.422 1.26.975 1.324 1.5.07.557-.248 1.336-.41 1.875-.217.721-.436 1.441-.654 2.131H2.87zm11.104-3.54c-.545-.3-1.361-.622-2.065-.757-.87-.164-.78 1.188-.75 1.994.03.643.36 1.316.51 1.744.076.197.09.41.256.449.3.068 1.29-.326 1.575-.479.6-.328 1.064-.844 1.574-1.189.016-.17.016-.34.03-.508a2.648 2.648 0 00-1.095-.277c.314-.15.75-.15 1.035-.332l.016-.193c-.496-.03-.69-.254-1.021-.436zm7.454 2.935a17.78 17.78 0 00.465-1.752c.06-.287.215-.918.178-1.176-.059-.459-.684-.799-1.004-1.086-.584-.525-.95-.975-1.56-1.469-.249.375-.78.615-.983.914 1.447-.689 1.71 2.625 1.141 3.69.09.329.391.45.514.735l-.086.166h1.29c.013 0 .03 0 .044.014zm-6.634-.012c-.05-.074-.1-.135-.15-.209l-.301.195h.45zm2.77 0c.008-.209.018-.404.03-.598-.53.029-.825-.48-1.196-.527-.324-.045-.6.361-1.02.195-.095.105-.183.227-.284.316.154.18.295.375.424.584h.815c.014-.164.135-.285.3-.285.165 0 .284.121.284.27h.66zm2.116 0c-.314-.479-.947-.898-1.68-.555l-.03.541h1.71zm-8.51 0l-.104-.344c-.225-.72-.36-1.26-.405-1.68-.914-.436-1.875-.87-2.654-1.426-.15-.105-1.109-1.35-1.23-1.305-1.739.676-3.359 1.86-4.814 2.984.256.557.48 1.141.69 1.74h8.505zm8.265-2.113c-.029-.512-.164-1.56-.48-1.74-.66-.39-1.846.78-2.34.943.045.15.135.271.15.48.285-.074.645-.029.898.092-.299.03-.629.03-.824.164-.074.195.016.48-.029.764.69.197 1.5.303 2.385.332.164-.227.225-.645.211-1.082zm-4.08-.36c-.044.375.046.51.12.943 1.26.391 1.034-1.74-.135-.959zM8.76 19.5c-.45.457 1.27 1.082 1.814 1.115 0-.29.165-.564.135-.77-.65-.118-1.502-.042-1.945-.347zm5.565.215c0 .043-.061.03-.068.064.58.451 1.014.545 1.802.51.354-.262.67-.563 1.043-.807-.855.074-1.931.607-2.774.23zm3.42-17.726c-1.606-.906-4.35-1.591-6.076-.731-1.38.692-3.27 1.84-3.899 3.292.6 1.402-.166 2.686-.226 4.109-.018.757.36 1.42.391 2.242-.2.338-.825.38-1.26.356-.146-.729-.4-1.549-1.155-1.63-1.064-.116-1.845.764-1.89 1.683-.06 1.08.833 2.864 2.085 2.745.488-.046.608-.54 1.139-.54.285.57-.445.75-.523 1.154-.016.105.06.511.104.705.233.944.744 2.16 1.245 2.88.635.9 1.884 1.051 3.229 1.141.24-.525 1.125-.48 1.706-.346-.691-.27-1.336-.945-1.875-1.529-.615-.676-1.23-1.41-1.261-2.28 1.155 1.604 2.1 3 4.2 3.704 1.59.525 3.45-.254 4.664-1.109.51-.359.811-.93 1.17-1.439 1.35-1.936 1.98-4.71 1.846-7.394-.06-1.111-.06-2.221-.436-2.955-.389-.781-1.695-1.471-2.475-.781-.15-.764.63-1.23 1.545-.96-.66-.854-1.336-1.858-2.266-2.384zM13.58 14.896c.615 1.544 2.724 1.363 4.505 1.323-.084.194-.256.435-.465.515-.57.232-2.145.408-2.937-.012-.506-.27-.824-.873-1.102-1.227-.137-.172-.795-.608-.012-.609zm.164-.87c.893.464 2.52.517 3.731.48.066.267.066.593.068.913-1.55.08-3.386-.304-3.794-1.395h-.005zm6.675-.586c-.473.9-1.145 1.897-2.539 1.928-.023-.284-.045-.735 0-.904 1.064-.103 1.727-.646 2.543-1.017zm-.649-.667c-1.02.66-2.154 1.375-3.824 1.21-.351-.31-.485-1-.14-1.458.181.313.06.885.57.97.944.165 2.038-.579 2.73-.84.42-.713-.046-.976-.42-1.433-.782-.93-1.83-2.1-1.802-3.51.314-.224.346.346.391.45.404.96 1.424 2.175 2.174 3 .18.21.48.39.51.524.092.39-.254.854-.209 1.11zm-13.439-.675c-.314-.184-.393-.99-.768-1.01-.535-.03-.438 1.05-.436 1.68-.37-.33-.435-1.365-.164-1.89-.308-.15-.445.164-.618.284.22-1.59 2.34-.734 1.99.96zM4.713 5.995c-.685.756-.54 2.174-.459 3.188 1.244-.785 2.898.06 2.883 1.394.595-.016.223-.744.115-1.215-.353-1.528.592-3.187.041-4.59-1.064.084-1.939.52-2.578 1.215zm9.12 1.113c.307.562.404 1.148.84 1.57.195.19.574.424.387.95-.045.121-.365.391-.551.45-.674.195-2.254.03-1.721-.81.563.015 1.314.36 1.732-.045-.314-.524-.885-1.53-.674-2.13zm6.198-.013h.068c.33.668.6 1.375 1.004 1.965-.27.628-2.053 1.19-2.023.057.39-.17 1.05-.035 1.395-.25-.193-.556-.48-1.006-.434-1.771zm-6.927-1.617c-1.422-.33-2.131.592-2.56 1.553-.384-.094-.231-.615-.135-.883.255-.701 1.28-1.633 2.119-1.506.359.057.848.386.576.834zM9.642 1.593c-1.56.44-3.56 1.574-4.2 2.974.495-.07.84-.321 1.33-.351.186-.016.428.074.641.015.424-.104.78-1.065 1.102-1.41.31-.345.685-.496.94-.81.167-.09.409-.074.42-.33-.073-.075-.15-.135-.232-.105v.017z'/%3E%3C/svg%3E"},"servicenow":{"onLight":"data:image/svg+xml,%3Csvg width='128' height='114.5' viewBox='0 6.75 128 114.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M64.378 6.776c26.175.253 49.579 16.363 59.161 40.723s3.426 52.097-15.562 70.115a12.72 12.72 0 0 1-16.592.968c-16.252-12.095-38.515-12.095-54.768 0a12.686 12.686 0 0 1-16.497-.857C.977 99.635-5.184 71.692 4.576 47.23S38.04 6.738 64.378 6.793m-.377 96.285a31.153 31.153 0 0 0 31.984-31.975C95.985 53.44 81.665 39.12 64 39.12S32.017 53.44 32.017 71.103a31.153 31.153 0 0 0 31.984 31.975'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='128' height='114.5' viewBox='0 6.75 128 114.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M64.378 6.776c26.175.253 49.579 16.363 59.161 40.723s3.426 52.097-15.562 70.115a12.72 12.72 0 0 1-16.592.968c-16.252-12.095-38.515-12.095-54.768 0a12.686 12.686 0 0 1-16.497-.857C.977 99.635-5.184 71.692 4.576 47.23S38.04 6.738 64.378 6.793m-.377 96.285a31.153 31.153 0 0 0 31.984-31.975C95.985 53.44 81.665 39.12 64 39.12S32.017 53.44 32.017 71.103a31.153 31.153 0 0 0 31.984 31.975'/%3E%3C/svg%3E"},"blazemeter":{"onLight":"data:image/svg+xml,%3Csvg width='24' height='10.3' viewBox='0 6.85 24 10.3' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M15.04 17.135c-.256 0-.352-.128-.32-.352l1.696-9.566c.032-.224.16-.352.416-.352h3.584c2.4 0 3.584.736 3.584 2.24 0 .607-.16 1.151-.48 1.6-.32.48-.768.8-1.344.991.384.096.736.32.96.672.256.32.384.768.384 1.28 0 1.215-.416 2.08-1.248 2.655-.832.544-1.952.832-3.328.832H15.04zm3.968-1.664c1.664 0 2.496-.608 2.496-1.823 0-.384-.16-.64-.448-.832-.288-.192-.8-.256-1.472-.256h-2.08l-.512 2.88h2.016v.031zm.768-4.383c1.472 0 2.176-.544 2.176-1.663 0-.352-.128-.576-.416-.736-.288-.16-.736-.224-1.344-.224h-1.984l-.48 2.623h2.048zm-6.88-.256a.608.608 0 0 0-.608-.608H.608a.608.608 0 1 0 0 1.216h11.648c.352 0 .64-.256.64-.608zm1.344-2.175a.608.608 0 0 0-.608-.608H6.464a.608.608 0 1 0 0 1.216h7.168c.32 0 .608-.256.608-.608zm-2.464 6.654a.608.608 0 0 0-.608-.608H8.256a.608.608 0 1 0 0 1.216h2.912c.32 0 .608-.256.608-.608zm-.864-2.271a.608.608 0 0 0-.608-.608H3.2a.608.608 0 1 0 0 1.216h7.104a.63.63 0 0 0 .608-.608z'/%3E%3C/svg%3E","onDark":"data:image/svg+xml,%3Csvg width='24' height='10.3' viewBox='0 6.85 24 10.3' role='img' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M15.04 17.135c-.256 0-.352-.128-.32-.352l1.696-9.566c.032-.224.16-.352.416-.352h3.584c2.4 0 3.584.736 3.584 2.24 0 .607-.16 1.151-.48 1.6-.32.48-.768.8-1.344.991.384.096.736.32.96.672.256.32.384.768.384 1.28 0 1.215-.416 2.08-1.248 2.655-.832.544-1.952.832-3.328.832H15.04zm3.968-1.664c1.664 0 2.496-.608 2.496-1.823 0-.384-.16-.64-.448-.832-.288-.192-.8-.256-1.472-.256h-2.08l-.512 2.88h2.016v.031zm.768-4.383c1.472 0 2.176-.544 2.176-1.663 0-.352-.128-.576-.416-.736-.288-.16-.736-.224-1.344-.224h-1.984l-.48 2.623h2.048zm-6.88-.256a.608.608 0 0 0-.608-.608H.608a.608.608 0 1 0 0 1.216h11.648c.352 0 .64-.256.64-.608zm1.344-2.175a.608.608 0 0 0-.608-.608H6.464a.608.608 0 1 0 0 1.216h7.168c.32 0 .608-.256.608-.608zm-2.464 6.654a.608.608 0 0 0-.608-.608H8.256a.608.608 0 1 0 0 1.216h2.912c.32 0 .608-.256.608-.608zm-.864-2.271a.608.608 0 0 0-.608-.608H3.2a.608.608 0 1 0 0 1.216h7.104a.63.63 0 0 0 .608-.608z'/%3E%3C/svg%3E"}}} diff --git a/tools/html-skill/src/modules.json b/tools/html-skill/src/modules.json index 84409c32..0659a0c4 100644 --- a/tools/html-skill/src/modules.json +++ b/tools/html-skill/src/modules.json @@ -1,7 +1,7 @@ { - "$comment": "Which parts of the skill's CSS and JS a page gets. The core is always in. A module is in when the page's body has one of its classes, attributes or tags, matches one of its text patterns, or is named in a <!-- basalt:use name --> comment, and when another module needs it (requires). Modules are added in the order listed here, which is the order of the source files' cascade. classes: every class the module's CSS styles (the test checks them against the CSS and against SKILL.md). budget: the most bytes its minified CSS and JS may reach together. budgets: skillMd (SKILL.md, the context an agent pays: never above what it was), core (the CSS and JS of every page). icons: Phosphor names the module's script draws itself. Raised in the first parity PR (the owner's \"bring up the parity\"): forms (the number-input, search-clear and file-input chrome), disclosure (the native details marker), status (the accent reader and the forced-colours badge border), spinner (a fixed 16px ring), and the new number, range and accent modules. skillMd rose 10555 to 10900 for the new rules (number field, native chrome, the braille rule, the accent). Raised in the second parity PR (popup rows, levels and the segment's pill): segment 1400 to 3700 (the shared sliding pill: its script, 1.5 KB, and its CSS with the pill's two fallbacks), rows 3600 to 4300 (#27's plate-in-a-row geometry, the plate per level, the glide's shared plate and the forced-colours lit row, net of the removed bar), palette 9400 to 11300 (the glide's script, 2.4 KB: it follows the lit row, travels on a pointer, snaps on a key, and fades in place on leaving). The art module (DECISIONS 101 and 104) is the token groups only some pages name, taken out of the core so the core stays under its cap: the chart roles and lengths, the art colours, the aspect ratios and the stage headroom, in both themes (2087 bytes at 2100; it grows only when a token of those groups is added). A page gets it when its body names one of them, a var() in its own style included. The every-module page has no cap of its own (owner, DECISIONS 79): each part is capped, and a page carries only the parts it uses. usage: the most bytes of a module's usage text (src/usage/NAME.md; core.usage for core.md), which compose.mjs --usage prints on demand. It is context an agent pays only for the modules its page uses, so it is capped per part as SKILL.md and the CSS and script are (DECISIONS 79 and 109). Each is set a little above what its text was when the usage moved out of SKILL.md (DECISIONS 109); raising one needs a reason in the PR, and a rise of 40 to 50% is the owner's. textWords: each text pattern said in words, which compose.mjs --usage prints instead of the regular expression (one for each entry of text, in order). builds: modules a module requires whose markup its script writes, so --usage prints a line saying so instead of their usage text (the palette builds its own rows and key chips). The council's clarity check of the usage texts (all three: not yet clear) raised eight caps because the texts gained what an agent had to guess: callout 200 to 700 (the icon and one wrapper div around the title and body as markup, the four status icons, the role React's Callout renders), palette 1100 to 1300 (an item shown whole, keys as an array, keywords), stats 450 to 800 (a snippet of the figures and of the dl), tabs 500 to 650 (the unselected panels), code 250 to 450 (the markup and what each token class means), segment 150 to 300 (a click does not switch it), progress 150 to 350 (the empty span that paints the fill), theme 250 to 400 (leave the button empty), and accent 250 to 300. Topbar went down, 700 to 500, as its build detail was cut. Raised in the usage PR (the council's clarity check): palette 11300 to 11450 (the module grew 11283 to 11448, +165, about 1.5%), for the guard that makes a string `keys` warn and draw no chip instead of throwing in `keys.filter`, which the palette's usage already promised. Round 2 of the clarity check: tabs 650 to 750 (the panel's top space shown in the snippet, and that the script selects a tab on click). Raised in the site-icons and status PR (skill-parity part A, DECISIONS 106 and 107): status 1650 to 1900 (the neutral, pending and running marks, the badge's real border, and the forced-colours disc, net of the red danger word it drops) and its usage 400 to 1000 (every status in words, the word alone, running, forced colours); rows 4300 to 4450 (the profile list's seat rule and the status parts on a lit row) and its usage 300 to 600 (the profile list, with the one mistake: never an empty element for the seat). New: the links module (2671 bytes: the social row, the new-tab arrow's CSS and the script that draws it; budget 2750) and its usage (1746 bytes; cap 1850), which carries the social link, the glyph set, icon only and the new tab. Dropping Regular halves icons.json. Added in the overlay PR (skill-parity-4, batch 7 step 2, DECISIONS 108): the shared plate leaves palette.js for a glide module (the palette, a menu and the notification centre all call it), so the palette's cap went down, 11450 to 9250, and rows 4450 to 3850 (the plate's CSS moved to glide); and the overlay layer comes in as seven modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: popover (the native popup shell), menu, dialog (the dialog and alert dialog), sheet (on every side, the top one the site header's narrow menu), tooltip, toast and notifications (the centre). skillMd is unchanged in its cap (the eight new index lines fit within it); the core is unchanged in bytes. Added in the figures and charts PR (skill-parity-5, batch 7 step 3, DECISIONS 108): four modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: meter (React's Meter, CSS only, 2581 bytes), dlist (the description list, CSS only, 1265), terminal (the code block's transcript: its CSS, 3242, and the script that draws the gutter, the copy button and the replay, 4824) and chart (React's TimeChart and ChartGroup: 7313 of CSS and 23262 of script, which port chart.tsx's scale, layout, lane, labels, sentences, keyboard and table; it needs the art tokens, the table and the kbd chips, and a page without a chart carries none of it). Stats grew for the source line (budget 700 to 850, 798 bytes; its usage 800 to 950, 675 to 899 bytes, +33%, under the owner's 40 to 50%). skillMd is unchanged in its cap (four index lines fit within it); the core is unchanged in bytes. Added in the forms and selection PR (skill-parity-6, batch 7 step 4, DECISIONS 108): six modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: select (React's Select: the native select's closed trigger in every browser and, where `appearance: base-select` is shipped, the styled list with its two-line rows; a small script that says which input lit a row, 7740 bytes before it, choice (Checkbox, Radio, RadioGroup and Switch as styled native inputs; CSS only, with the first-frame rule), choice-card (ChoiceCard; CSS only), toggle (the pressed toggle's plate and check seat on .btn; CSS only), selection (a table's checkbox column: its fixed width and the script that sets aria-selected, the mixed header box and the count) and loops (the page-level hold on every loop with its switch: the held look and the script that stores it). The select's styles left forms, whose budget fell 3650 to 3250. skillMd rose 8621 to the size of its six new index lines, within its cap; the core is unchanged in bytes; compose adds the stored-hold line to the head of a page that has the loops module. Revised in the same PR (the lead's review of the build): the select gains select.js (one row is lit at a time, by whichever of the pointer and the keys moved last), and choice, toggle, selection and loops carry the first-frame rule, so a state a script sets on load (a mixed header box, the stored hold) paints at once with no crossfade. Added in the navigation and layout PR (skill-parity-7, batch 7 step 5, DECISIONS 108): five modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: glyph (Basalt's core glyphs drawn by name, at rest and selected, from a table the build works out from the drawn set; a page carries only the glyphs it names, and the drawing of a core glyph from data-glyph left the sheet module, which draws none now), nav (React's Nav: the sidebar's, the narrow menu's and More's rows, with the shared hugging pill), topbar-nav (the site header's links, one action and narrow menu, built by script from the bar's markup), app-shell (the shell, its sidebar and rail, and the app header) and tab-bar (the phone tab bar). The topbar module became the site header's bar (React's SiteHeader, DECISIONS 108: 56px with its line inside, the 44 by 44 brand target, the narrow-screen buttons, the derived sticky offset), budget 1600 to 3200 because its rules gained the app header's shared smoke, and its usage 500 to 750 (+50%) for the lockup's markup (the links, action and menu are topbar-nav's usage). Glide 3700 to 3950: the navigation's pill is a shape inside the row that the plate follows (about 200 bytes). The core's usage 2000 to 2100 (+5%): h2 is the Section step, the prose column's measure, and a link already 44px tall needs no margin. skillMd rose 9317 to 9863 for five index lines, under its cap; the core CSS grew 38 bytes (the layout tokens replace raw lengths, the gutter is one derived property, h2, .prose and .lead follow foundations) and the core script is unchanged. A module's media query writes %bp-md%, %bp-lg% or %bp-container% and the build substitutes the breakpoint tokens. Added in the tables and filters PR (skill-parity-8, batch 7 step 6, DECISIONS 108): the existing table module gains React's table additions (DECISIONS 95: the row header, \"Not observed\", the row density and the scroll hint with its small script), budget 1400 to 3000 (it was 1134 bytes of CSS; it is 2168 of CSS and 693 of script) and its usage 700 to 950 (+36%); and two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: still-table (React's Table with `columns`: the fixed layout from a colgroup, the whole header cell as the sort button with its reserved seat, aria-sort, the pinned columns and their divider, the empty row; 4767 of CSS and 3264 of script, budget 8200) and filter (React's MultiSelect and FilterResult: the chips, the trigger and checklist with the search band from ten values, Clear held in place, the one debounced result line, and the narrowing of a table by `data-column`; 8240 of CSS and 7978 of script, budget 16400; it needs the popover, glide, glyph and choice modules). The core is unchanged in bytes. skillMd rose 9863 to 10128 for two index lines and the CaretUpDown icon's name, within its cap. Added in the commands PR (skill-parity-9, batch 7 step 7, DECISIONS 103 and 108): one new module a page carries only when it uses it, command-list (React's CommandList: the command panel set in the page, list plus preview, the push; it extends the palette and needs rows, kbd and glide; 5229 of CSS and 8734 of script, budget 14000, usage 2150). Two-line rows come to the existing modules: rows 3850 to 5350 (the described row's grid and description line, the push's chevron: 1481 bytes of CSS, the same rules React's menu rows carry), palette 9250 to 9900 (its rows are one function the list shares, with the description and the two-tier ranking of title matches over keyword and description matches; +636) and its usage 1300 to 1350, rows' usage 600 to 800, and glide 3950 to 4000 (a host that is idle counts as having no lit row, +54). skillMd rose 10128 to 10259 for one index line, within its cap; the core's CSS grew 24 bytes (.split.aside takes size-list-width in place of its raw 20rem: the same 320px, so no pixel moves) and the core script is unchanged. Added in the art PR (skill-parity-10, batch 7 step 8, DECISIONS 104 and 108): two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: stage (React's Stage and PairedArt: full-bleed art under the site header, the pull-up by the sticky offset, the headroom, the paired art that follows the page's theme, and the forced-colours and print rules; CSS only, 1179 bytes) and framed-art (React's FramedArt: the figure, its rim and radius, the reserved box, the placeholder and the failed alt, the caption and credit; 2208 bytes of CSS and the 733-byte script that sets the frame's phase); both need the art tokens. The bar stays smoked over a stage: React clears it only over a stage that passed the headroom test helper, and a page has no test run (DECISIONS 108's note), so the skill builds no clear state. skillMd rose 10259 to 10500 for two index lines, within its cap; the core is unchanged in bytes. The callout gained the status rim in the same PR (DECISIONS 82, D8's status callouts): success, warning and danger draw their border in the status colour at 45% mixed in sRGB over the callout's own level, one solid colour on every side, and CanvasText in forced colours with the icon; the status colour is now one property the icon and the rim read. Its budget rose 900 to 1150 (the module is 1089 bytes, from 792: +297, about 37%); its usage is unchanged. Added in the overlays-and-the-rest PR (skill-parity-11, batch 7 step 9, DECISIONS 90 and 108): the last two parts of D8's part 5, each a module a page carries only when it uses it, with its own cap and usage cap set a little above its size: combobox (React's Combobox: the input with its caret button inside, the popup of the menu's rows with the glide's shared plate and two-line options, the filtering, the keys, the hidden value, the empty message and the check; 4342 of CSS and 6423 of script, budget 10900, usage 2150; it needs forms, popover and glide, and builds the last two) and sparkline (React's Sparkline: the label and latest value, the line, the axis, the empty sentence and the loading line that breathes; 1609 of CSS and 1874 of script, budget 3600, usage 950). The combobox copies the menu's row rules, as the select's list does, because React's Combobox renders MenuItem rows (a 40px hit area, a 36px plate) and the skill's .row is the palette's 44px: it carries no menu script. popover.js gains the combobox popup in the list of popups that keep focus where it is (+21 bytes, within its cap). skillMd rose 10500 to 10724 for two index lines, within its cap; the core is unchanged in bytes. Added in the motion-rules PR (DECISIONS 136 and 139): one module, ambient (a page's one ambient loop: CSS 828 bytes, script 433, budget 1300, usage 800), taken out of loops so the hold's own module grows only by the icon toggle's glyph swap (loops 2000 to 2200, +10%; its usage 1300 to 1650 for the icon form and the new settings-row sentence, +27%); and the chart's entrance (`entrance: true`: the marks' animations, their conditions and the redraw that restarts them at the elapsed time, 23262 to 25299 bytes of script; budget 30700 to 32800, +7%, usage 2500 to 2950, +18%). The core grew by the three tokens (27704 to 27862 bytes of CSS, under its cap). its stage usage gained the ambient art's line (1650 to 1750, +6%). skillMd rose 10724 to the size of the ambient index line, within its cap. Raised again in the motion-rules amendment (DECISIONS 143): chart 32800 to 33800 (script 25299 to 26375 bytes, +4%; +10% over the 30700 it began with) for the glide a new data set makes mid-entrance, print settling it, and `Basalt.pageChange()`; its usage 2950 to 3150 (+26% over the 2500 it began with). Raised in the second motion-rules amendment (DECISIONS 148): chart 33800 to 34400 (script 26375 to 26970 bytes: a line and its markers glide from their drawn geometry, and `beforeprint` settles the entrance; +12% over the 30700 it began with); topbar-nav 6900 to 7500 (+8.7%: the narrow menu's pause row, its CSS and 275 bytes of script, DECISIONS 148 item 2); loops usage 1650 to 1800 (+38% over the 1300 it began with, for the icon form's `title` and the menu row). Raised in the audit-design-b PR (DECISIONS 138 and 139): still-table 8200 to 13400 (+63%: the module was 7927 bytes and is 13311; the cut cell's plate, its focus stops and its dismissal, ported from React's cell-peek.ts, are 4273 bytes of script and 1111 of CSS; a still table that truncates needs them). The same PR: core usage 2100 to 2250 (+7%: the skip link, one bullet), forms usage 350 to 480 (+37%: the required mark), still-table usage 1950 to 2150 (+10%: the cut cell and the width rule), notifications usage 1050 to 1100 (+5%: the 44px entry on touch). The skip link's rim and radius took the core 30457 to 30609 bytes, under its cap (the rules that hang it under the bar are the topbar module's: 3200 to 3600, +12.5%); core 30720 to 31050 (+1.1%, DECISIONS 147: also the bar's links left out of the rule: the pseudo-element that makes a short standalone link a 44 by 44 target), skip-link script in the topbar module (3200 to 4150 over this PR, +30%: the rules that hang the link under the bar, 3600, and the script that reads the bar's real edge, 4150), sparkline 3600 to 4050 (+12.5%: React's ticker structure, so the value copies once on its line, and in forced colours the strips go and the number is plain text), forms budget 3250 to 3500 (+7.7%: the necessity word), notifications 9050 to 9250 (+2.2%: the 44px entry). Raised in the audit-design-b PR's E2 port (DECISIONS 138 and 139: the core set draws check, close, the chevrons, copy, plus, minus and search wherever a component draws them): the modules that drew a Phosphor icon for one of those now carry the core glyph's whole SVG, written in at build time (`%glyph-svg:name%`, the markup the glyph module's `_.glyph(name)` returns, so no module needs the glyph module and a page pays for nothing it does not use), and the Phosphor path of the same icon leaves the page. Each module's own bytes rose by that markup, and a page's total moved by what the Phosphor path it no longer carries saves: menu 8600 to 8900 (+303), combobox 10900 to 11200 (+303), copy 1900 to 2400 (+640), terminal 8100 to 8850 (+761), toast 13850 to 14150 (+325), number 2900 to 3400 (+557), filter 16400 to 17050 (+785), palette 9900 to 10450 (+536); the command list shares the palette's search drawing and fell 20 bytes. Set in integration-nov15, where the type-layout, motion-rules and audit-design-b branches meet: the combined tree measured SKILL.md 10959 bytes (each side's cap was 10900: both added index lines), core 31192 bytes (caps 30720 and 31050: the page-row and display rules, the three motion tokens and the skip link and 44px target rules all land in the core CSS) and core usage 2348 bytes (caps 2300 and 2250: type-layout's line and the skip-link bullet), so each is set to the measured bytes rounded up to the next 50: skillMd 10900 to 11000, core 31050 to 31200, core usage 2300 to 2350. Raised in the audit-design PR (decisions 138 and 139, parts A, D and C11): core 30720 to 31600 (+2.9%: the more-contrast block and its three aliases, and the field boundary token, every page carries as React does; the shadow-pill token is gone; the script gained `reserve`, 240 bytes), segment 3700 to 4100 and tabs 2300 to 2700 (the chosen label is 600 against 400, its width reserved by a span that carries its own copy, drawn unseen at 600; the pill's drop shadow is gone), and the segment's usage 300 to 380 (the weight and the glyph-only button). Raised again in the audit-design-a amendment (decision 145): core 31600 to 32300 (reserve() also reserves a label that is not plain text), segment 4100 to 5100 and tabs 2700 to 3500 (the second copy of such a label, and an icon drawn in both its forms), glyph 1100 to 1300 (a glyph in a segment or tab is drawn in both forms). Raised in the second audit-design-a amendment (decision 149): core 32300 to 32800 (reserve() builds the second copy of a label without any id, name, reference or hidden control, and does not copy a frame or media), segment 5100 to 5400 and its usage 380 to 500 (the 600 is on the label, the one-line rule and the usage text); the still-table cap is back at 8200, as the wash is on every cell again. Return 3 of the audit-design-a build (decision 149): tabs 3500 to 3700 (a tab the script has not reserved is 600 itself when selected, and one it declined is marked; the same two lines are in segment, which stays under 5400). Raised in the audit-fix-c2 PR (engineering, no pixel changes): toast 13850 to 14350 (the module was 13789 bytes and is 14288, +499, 3.6%) for F6, which focuses the Notifications region and Shift+Tab or Escape from it (or from the first toast) leaves it for where focus came from (and keeps a dialog's focus trap from wrapping it), as Base UI's viewport does in React, and for placing the region from focus (in the modal that holds it, or in the body), so a toast is never under a backdrop or in an inert modal whatever order the modals opened in (A3-09); the palette module grew 9864 to 9897 of its 9900 so that a palette opened over a modal sits inside it; topbar 3200 to 3250 (3123 to 3233, +110) for the scroll margin on what the bar holds, so a Tab into the bar from a scrolled page does not scroll the page (React's rule from PR #66); stage usage 1650 to 1750 (1580 to 1713, +8%) for the art's new place in the markup, after the content (A1-09), the stage's own CSS rising 1179 to 1208 within its 1250. skillMd rose 10724 to 10876 for the sentence that says a body may carry head tags, within its 10900. compose.mjs, the tool an agent runs, has no cap here (it is never in a page): it grew 21673 to 38153 bytes for the tokenizer that reads a body as HTML does and the head tags. Raised in the site-parts PR (DECISIONS 146, round 39), which folds each new part into the module it belongs with, so SKILL.md gains no index line (it has 41 bytes under its cap and a new module needs about 100): topbar 4150 to 17600 (+13450: the site footer and its disclosures, the lockup by pixel density, and a bar that arrives or leaves and returns, with its observer; a page that has a .topbar and no footer carries them too: the alternative, a module for each, needs its own index line and so SKILL.md bytes) and its usage 950 to 2900 (the footer's markup, the lockup's and the phase's); theme 650 to 4550 (the three-word theme choice: its CSS 2230 bytes and its script, 2277, with arrows, storage and the system listener) and its usage 400 to 1150 (the choice's markup written in full, so the right word is chosen before any script); segment 3700 to 3800 (a radio group's checked state besides a pressed button); stage 1250 to 2150 (its first script, 768 bytes, for fit and anchor) and its usage 1750 to 2000; framed-art 3000 to 3900 (drawn art in the frame: fit, anchor, no scaling strokes) and its usage 1250 to 1400. SKILL.md rose 10959 to 10992 (the topbar and theme index lines name .site-footer and .theme-choice). The head's theme line also writes data-theme-choice. Raised in site-parts return 2 (DECISIONS 146 B1 and B4): theme 4550 to 5350 (+800: the icon form of the theme choice, [data-theme-menu], whose button shows the theme in use, is named for the choice and opens the page's own .menu of three radio rows, in the theme script's 3073 bytes; the menu and popover modules are the page's, brought by its markup, so no module line was added and SKILL.md is 10993 of 11000) and its usage 1150 to 2200 (+91%: the menu's markup is written in full, and the deprecated toggle is said once); app-shell usage 2000 to 2100 and topbar-nav usage 1900 to 1950 (the theme control leaves the bar's text; the tools and the end cluster come in). The two example bodies still carry the deprecated data-theme-toggle. Return 2, F3 (DECISIONS 146 F): stage 2150 to 2250 (script 842 bytes: slice is the stage's default, as a frame's, and a drawing's own preserveAspectRatio stands unless the stage names data-fit or data-anchor) and its usage 2000 to 2150. framed-art 3900 to 4000 (a drawing's own preserveAspectRatio stands unless the figure names data-fit or data-anchor, +101 bytes). Return 3: theme 5350 to 5900 (script +569 bytes: who wrote data-theme, so System follows the system's change live and a theme the page set by hand, or a .dark or .light root, survives it). Raised in the controls port (DECISIONS 154): skillMd 11000 to 11200 for two index lines (link-tabs and option-chips, 214 bytes together), and core 31200 to 31600 for the nine tokens the port adds to every page's token CSS (the control rungs 44 to 64, two container widths, the confirm hold and the amount's opacity, 311 bytes). New modules (DECISIONS 154): link-tabs 2700 (its sizes, the 640 container step, the forced-colours underline, and the select that replaces the row under 720 with its 590-byte script, A15; it requires the select module), option-chips 5700 (the chip's states each written for a native radio inside a label, which needs :has on every one, plus the 1 KB script that keeps an aria-disabled chip reachable and never chosen). Return 3 (DECISIONS 154 conformance): link-tabs 2700 to 3100 and its usage 1650 to 1850 (the select's height for each row size, and a script that reads aria-current when it is needed and watches it move: 3,048 bytes), option-chips 5700 to 6700 (each state written twice, as a state attribute and as :has(), so no browser needs :has(): 4,975 CSS and 1,623 script). Return 4 (DECISIONS 158, Q2): link-tabs 3100 to 4300 and its usage 1850 to 2400 (the \"Go to\" label drawn at the select's start with its measured clearance, the select's accessible name kept as the words and the chosen page's, and the key hold that keeps a letter or an arrow on the closed select from navigating: 4,174 bytes, CSS 2,951 and script 1,223). Raised in the links-and-rows port (DECISIONS 152; the owner's approval is the lead's to confirm): the new link-rows module (5050 bytes of CSS, 50 of them for Castle's big-row arrow stepping colour over duration-fast, return 1, 1500 of usage: the directory's and the big rows' CSS, whose arrow is a core glyph drawn as a mask, and their tokens, size-row taken out of the core like type-layout's), disclosure 1550 to 3500 (Show all: the track, the clip and the settle, 1.5 KB of script and 1.8 KB of CSS), copy 2400 to 3500 (the form with words: the one cell and its script). SKILL.md rose 10959 to 10997 for one line, within its 11000 cap. Raised in the charts port PR (DECISIONS 153, D7a): chart 34400 to 34650 (script 26970 to 27270 bytes, +1.1% on the 34283 it was: `Basalt.trailingMean`, the trend maths React exports as `trailingMean`, 300 bytes), its usage 3150 to 3350 (+6%: one line for it). The tokens the batch adds (chart-lit-top, -mid and -base in both themes, size-chart-plot-sm, size-chart-row, size-meter-marker and radius-2xs) took the art module 2087 to 2546 bytes (budget 2100 to 2600, +24%: the chart tokens are its group) and the core 31192 to 31250 (cap 31200 to 31300, +0.3%: radius-2xs). Only D7a names a skill module in the charts ballot; the lit marks, the headline frame, the phase chart, the share bar, the coverage strip, the marks row and the range meter are React-only in this batch. Added in the overlays-and-search PR (DECISIONS 155, D10b and D13a): the sheet gains React's head, body and foot (the 44px close, the 20/28 title over a 13px count, the divider and the safe areas; its CSS 3.6 to 5.2 KB, budget 4050 to 5250, +30%) and its usage 1050 to 1450 (+38%: the anatomy and the step's focus, two bullets); and one new module a page carries only when it uses it, search (React's SearchDialog: the form, the field's -2 outline, the count line, the fixed-height results area and the rows with their picture slots and full-bleed hover wash; CSS only, 4368 bytes, budget 4400, usage 2050; it requires the dialog). The dialog's title draws no ring when script focuses it. skillMd rose 10959 to 11079 for the search line (the sheet's line is unchanged: its usage carries the anatomy), so its cap rose 11000 to 11100 (+0.9%). The core's CSS grew 31192 to 31421 bytes for the six new size tokens (the wide dialog, the search trigger and the logo and picture slots of a search result): its cap rose 31200 to 31450 (+0.8%). The two 44px values (the sheet's close and the search field) are local to their modules, with a lint exception that says they join the controls batch's size token (DECISIONS 154). Set in integration-nov15b, where audit-design-a, audit-fix-c2, site-parts, port-controls, port-links-rows, port-charts and port-overlays-search meet: the combined tree measured SKILL.md 11560 bytes (the caps were 11000, 11100 and 11200: each side added index lines), core 34086 bytes (caps 31300 to 33550: every side's rules land in the core CSS and script), topbar 17660 (17600 from site-parts, plus audit-fix-c2's skip-link and focus work), number 3453 (3400), palette 11379 (11000, audit-fix-c2's hosted scrim plus the core search glyph), dialog 5120 (5100), toast 15692 (15400) and stage usage 2248 (2150), each over every side's cap, so each is set to the measured bytes rounded up to the next 50: skillMd 11200 to 11600, core 33550 to 34100, topbar 17600 to 17700, number 3400 to 3500, palette 11000 to 11400, dialog 5100 to 5150, toast 15400 to 15700, stage usage 2150 to 2250. The segment cap is the base's 5400 plus port-controls' 100 (5500), unchanged by the merge. Raised in integration-nov15b, join 2 (a link tab takes the selected state, DECISIONS 138 A, 145, 149 and 154's D12 row): link-tabs 4300 to 5750 (+34%: the module was 4174 bytes and is 5736; the 600 against 400, the reserved width and the second copy of a composed label, an icon drawn in both its forms, the same rules a tab carries, 1,530 bytes of CSS and script) and its usage 2400 to 2550 (+6%: one bullet). The cap is the measured bytes rounded up to the next 50; a module that needs the tab's rules carries them as the segment and tabs modules do, so a page without link tabs pays nothing. Raised in the panels, art and parts port (DECISIONS 162): table 3000 to 3150 and its usage 950 to 1450 (the flat form and the two-line cell), stage 2250 to 2600 and its usage 2250 to 3100 (the closing block: its held art, forced colours and print; its section gap is type-layout's --basalt-section-gap, which a page with data-closing brings), the new app-tile 4300 (a 120-point polygon clip and the hairline's mask of the same outline), captioned 2000 and period 1400; skillMd 11600 to 11950 for one index line each for captioned, app-tile and period (358 bytes; the file is 11918). Raised in the logs, status and forms port (DECISIONS 162): core 34100 to 34200 (the new size-field-label-inline token, 80px, is written into every page's tokens: 25 bytes); dlist 1300 to 1900 and its usage 950 to 1060 (the stacked form, R9 and R10: a title over its text, 20px between entries, no divider; one usage line). Raised in audit-fix-c6 (the owner's cap, raised by the builder and for the owner to confirm): glyph 1300 to 1900, for redrawing a glyph when its ancestor's aria-current or data-current moves (the lists that hold glyphs are watched). Raised in the colour-ink-ladder build (DECISIONS 166): core 34200 to 34350 (the four lifted dark inks are four new primitives, each written into every page's tokens: the core measured 34307). Raised in the audit-2-design build (DECISIONS 167, Q7a): disclosure 3500 to 3800 (the core chevron drawn as a mask in place of two borders: the module measured 3755). Joined in the integration of c7 (#86) and c10 (#91): option-chips 6750 to 6850 (c7's reset resync and c10's data-ready together measure 6839). Raised in table-sort-3 (DECISIONS 257 and 261, the owner's pick: three sort states, the arrow after the label, explainers on column titles): still-table 13400 to 14650 (+9.3%: the module was 13343 bytes and is 14602; the end-aligned label's move by a transform, its right-to-left sign and the indicator that waits for it on a fine pointer, 912 bytes of CSS; the third state, the sort from the table's own order and a .explainer kept out of the button, 347 bytes of script) and its usage 2150 to 2250 (2197: the third state and the own order); the new explainer module 5850 (5842: a manual native popover opened from the sort button on hover, keyboard focus and a long press, placed above the header or beside it, 1752 bytes of CSS and 4090 of script; a page without explainers pays nothing) and its usage 900; skillMd 12250 to 12400 for the explainer's index line (113 bytes; the file is 12352). Each cap is the measured bytes rounded up to the next 50. Raised in table-sort-3's fix pass (Astra's review): explainer 5850 to 6900 (+18%: 5842 to 6864 bytes; the gap between the header and the card kept while a pointer crosses it, the close when its header leaves the view whatever has focus, the dismissal held until pointer and focus have both left, and its page-wide listeners and timers scoped to an open card and stopped when the table leaves the page, 1,022 bytes of script). Raised in cimip-gaps-2 batch B5 (the touch sizes under 720 whatever the pointer: each coarse-pointer target rule also answers a window under 720, about 20 bytes a rule; forms merged its three into one and stays under 3500): select 9000 to 9100 (measured 9064), selection 1480 to 1500 (1486), filter 17450 to 17500 (17473), option-chips 6850 to 6900 (6853), menu 8900 to 8950 (8902). B5 fix pass 1 (Astra): core 34550 to 34950 (measured 34911: 30762 CSS and 4149 JS) for stacked links in a column, each giving up the side of its 44px box that meets a neighbour, so a tap on a link's words is always that link's; core had 12 bytes free. DECISIONS 274 (the owner's pick: under 720 the toast stack hangs from the bar): toast 15700 to 16050 (measured 16035; 8 bytes were free; the stack's direction became one sign variable, trimming 585 of the 920 bytes the phone form first took). B5 merged with main (5ad5345a): main's own core measured 34930 against its 34550 cap before B5; with B5 (the touch sizes under 720 and stacked links in a column) it is 35331, so core is 35350; nav 5350 to 5400 (measured 5364: B4's nav plus the touch size under 720). The full run after the stream (DECISIONS 246): the site footer's links keep their own flex column under 720, as React's, out of the bare-link touch rule (26 bytes), so core is 35400 (measured 35357); sheet 5250 to 5400 (measured 5368: React's B5 ring room, ported: the held actions reach space-1-5 above their band, clipped, and the body keeps space-1-5 at each end).", + "$comment": "Which parts of the skill's CSS and JS a page gets. The core is always in. A module is in when the page's body has one of its classes, attributes or tags, matches one of its text patterns, or is named in a <!-- basalt:use name --> comment, and when another module needs it (requires). Modules are added in the order listed here, which is the order of the source files' cascade. classes: every class the module's CSS styles (the test checks them against the CSS and against SKILL.md). budget: the most bytes its minified CSS and JS may reach together. budgets: skillMd (SKILL.md, the context an agent pays: never above what it was), core (the CSS and JS of every page). icons: Phosphor names the module's script draws itself. Raised in the first parity PR (the owner's \"bring up the parity\"): forms (the number-input, search-clear and file-input chrome), disclosure (the native details marker), status (the accent reader and the forced-colours badge border), spinner (a fixed 16px ring), and the new number, range and accent modules. skillMd rose 10555 to 10900 for the new rules (number field, native chrome, the braille rule, the accent). Raised in the second parity PR (popup rows, levels and the segment's pill): segment 1400 to 3700 (the shared sliding pill: its script, 1.5 KB, and its CSS with the pill's two fallbacks), rows 3600 to 4300 (#27's plate-in-a-row geometry, the plate per level, the glide's shared plate and the forced-colours lit row, net of the removed bar), palette 9400 to 11300 (the glide's script, 2.4 KB: it follows the lit row, travels on a pointer, snaps on a key, and fades in place on leaving). The art module (DECISIONS 101 and 104) is the token groups only some pages name, taken out of the core so the core stays under its cap: the chart roles and lengths, the art colours, the aspect ratios and the stage headroom, in both themes (2087 bytes at 2100; it grows only when a token of those groups is added). A page gets it when its body names one of them, a var() in its own style included. The every-module page has no cap of its own (owner, DECISIONS 79): each part is capped, and a page carries only the parts it uses. usage: the most bytes of a module's usage text (src/usage/NAME.md; core.usage for core.md), which compose.mjs --usage prints on demand. It is context an agent pays only for the modules its page uses, so it is capped per part as SKILL.md and the CSS and script are (DECISIONS 79 and 109). Each is set a little above what its text was when the usage moved out of SKILL.md (DECISIONS 109); raising one needs a reason in the PR, and a rise of 40 to 50% is the owner's. textWords: each text pattern said in words, which compose.mjs --usage prints instead of the regular expression (one for each entry of text, in order). builds: modules a module requires whose markup its script writes, so --usage prints a line saying so instead of their usage text (the palette builds its own rows and key chips). The council's clarity check of the usage texts (all three: not yet clear) raised eight caps because the texts gained what an agent had to guess: callout 200 to 700 (the icon and one wrapper div around the title and body as markup, the four status icons, the role React's Callout renders), palette 1100 to 1300 (an item shown whole, keys as an array, keywords), stats 450 to 800 (a snippet of the figures and of the dl), tabs 500 to 650 (the unselected panels), code 250 to 450 (the markup and what each token class means), segment 150 to 300 (a click does not switch it), progress 150 to 350 (the empty span that paints the fill), theme 250 to 400 (leave the button empty), and accent 250 to 300. Topbar went down, 700 to 500, as its build detail was cut. Raised in the usage PR (the council's clarity check): palette 11300 to 11450 (the module grew 11283 to 11448, +165, about 1.5%), for the guard that makes a string `keys` warn and draw no chip instead of throwing in `keys.filter`, which the palette's usage already promised. Round 2 of the clarity check: tabs 650 to 750 (the panel's top space shown in the snippet, and that the script selects a tab on click). Raised in the site-icons and status PR (skill-parity part A, DECISIONS 106 and 107): status 1650 to 1900 (the neutral, pending and running marks, the badge's real border, and the forced-colours disc, net of the red danger word it drops) and its usage 400 to 1000 (every status in words, the word alone, running, forced colours); rows 4300 to 4450 (the profile list's seat rule and the status parts on a lit row) and its usage 300 to 600 (the profile list, with the one mistake: never an empty element for the seat). New: the links module (2671 bytes: the social row, the new-tab arrow's CSS and the script that draws it; budget 2750) and its usage (1746 bytes; cap 1850), which carries the social link, the glyph set, icon only and the new tab. Dropping Regular halves icons.json. Added in the overlay PR (skill-parity-4, batch 7 step 2, DECISIONS 108): the shared plate leaves palette.js for a glide module (the palette, a menu and the notification centre all call it), so the palette's cap went down, 11450 to 9250, and rows 4450 to 3850 (the plate's CSS moved to glide); and the overlay layer comes in as seven modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: popover (the native popup shell), menu, dialog (the dialog and alert dialog), sheet (on every side, the top one the site header's narrow menu), tooltip, toast and notifications (the centre). skillMd is unchanged in its cap (the eight new index lines fit within it); the core is unchanged in bytes. Added in the figures and charts PR (skill-parity-5, batch 7 step 3, DECISIONS 108): four modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: meter (React's Meter, CSS only, 2581 bytes), dlist (the description list, CSS only, 1265), terminal (the code block's transcript: its CSS, 3242, and the script that draws the gutter, the copy button and the replay, 4824) and chart (React's TimeChart and ChartGroup: 7313 of CSS and 23262 of script, which port chart.tsx's scale, layout, lane, labels, sentences, keyboard and table; it needs the art tokens, the table and the kbd chips, and a page without a chart carries none of it). Stats grew for the source line (budget 700 to 850, 798 bytes; its usage 800 to 950, 675 to 899 bytes, +33%, under the owner's 40 to 50%). skillMd is unchanged in its cap (four index lines fit within it); the core is unchanged in bytes. Added in the forms and selection PR (skill-parity-6, batch 7 step 4, DECISIONS 108): six modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: select (React's Select: the native select's closed trigger in every browser and, where `appearance: base-select` is shipped, the styled list with its two-line rows; a small script that says which input lit a row, 7740 bytes before it, choice (Checkbox, Radio, RadioGroup and Switch as styled native inputs; CSS only, with the first-frame rule), choice-card (ChoiceCard; CSS only), toggle (the pressed toggle's plate and check seat on .btn; CSS only), selection (a table's checkbox column: its fixed width and the script that sets aria-selected, the mixed header box and the count) and loops (the page-level hold on every loop with its switch: the held look and the script that stores it). The select's styles left forms, whose budget fell 3650 to 3250. skillMd rose 8621 to the size of its six new index lines, within its cap; the core is unchanged in bytes; compose adds the stored-hold line to the head of a page that has the loops module. Revised in the same PR (the lead's review of the build): the select gains select.js (one row is lit at a time, by whichever of the pointer and the keys moved last), and choice, toggle, selection and loops carry the first-frame rule, so a state a script sets on load (a mixed header box, the stored hold) paints at once with no crossfade. Added in the navigation and layout PR (skill-parity-7, batch 7 step 5, DECISIONS 108): five modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: glyph (Basalt's core glyphs drawn by name, at rest and selected, from a table the build works out from the drawn set; a page carries only the glyphs it names, and the drawing of a core glyph from data-glyph left the sheet module, which draws none now), nav (React's Nav: the sidebar's, the narrow menu's and More's rows, with the shared hugging pill), topbar-nav (the site header's links, one action and narrow menu, built by script from the bar's markup), app-shell (the shell, its sidebar and rail, and the app header) and tab-bar (the phone tab bar). The topbar module became the site header's bar (React's SiteHeader, DECISIONS 108: 56px with its line inside, the 44 by 44 brand target, the narrow-screen buttons, the derived sticky offset), budget 1600 to 3200 because its rules gained the app header's shared smoke, and its usage 500 to 750 (+50%) for the lockup's markup (the links, action and menu are topbar-nav's usage). Glide 3700 to 3950: the navigation's pill is a shape inside the row that the plate follows (about 200 bytes). The core's usage 2000 to 2100 (+5%): h2 is the Section step, the prose column's measure, and a link already 44px tall needs no margin. skillMd rose 9317 to 9863 for five index lines, under its cap; the core CSS grew 38 bytes (the layout tokens replace raw lengths, the gutter is one derived property, h2, .prose and .lead follow foundations) and the core script is unchanged. A module's media query writes %bp-md%, %bp-lg% or %bp-container% and the build substitutes the breakpoint tokens. Added in the tables and filters PR (skill-parity-8, batch 7 step 6, DECISIONS 108): the existing table module gains React's table additions (DECISIONS 95: the row header, \"Not observed\", the row density and the scroll hint with its small script), budget 1400 to 3000 (it was 1134 bytes of CSS; it is 2168 of CSS and 693 of script) and its usage 700 to 950 (+36%); and two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: still-table (React's Table with `columns`: the fixed layout from a colgroup, the whole header cell as the sort button with its reserved seat, aria-sort, the pinned columns and their divider, the empty row; 4767 of CSS and 3264 of script, budget 8200) and filter (React's MultiSelect and FilterResult: the chips, the trigger and checklist with the search band from ten values, Clear held in place, the one debounced result line, and the narrowing of a table by `data-column`; 8240 of CSS and 7978 of script, budget 16400; it needs the popover, glide, glyph and choice modules). The core is unchanged in bytes. skillMd rose 9863 to 10128 for two index lines and the CaretUpDown icon's name, within its cap. Added in the commands PR (skill-parity-9, batch 7 step 7, DECISIONS 103 and 108): one new module a page carries only when it uses it, command-list (React's CommandList: the command panel set in the page, list plus preview, the push; it extends the palette and needs rows, kbd and glide; 5229 of CSS and 8734 of script, budget 14000, usage 2150). Two-line rows come to the existing modules: rows 3850 to 5350 (the described row's grid and description line, the push's chevron: 1481 bytes of CSS, the same rules React's menu rows carry), palette 9250 to 9900 (its rows are one function the list shares, with the description and the two-tier ranking of title matches over keyword and description matches; +636) and its usage 1300 to 1350, rows' usage 600 to 800, and glide 3950 to 4000 (a host that is idle counts as having no lit row, +54). skillMd rose 10128 to 10259 for one index line, within its cap; the core's CSS grew 24 bytes (.split.aside takes size-list-width in place of its raw 20rem: the same 320px, so no pixel moves) and the core script is unchanged. Added in the art PR (skill-parity-10, batch 7 step 8, DECISIONS 104 and 108): two modules a page carries only when it uses them, each with its own cap and usage cap set a little above its size: stage (React's Stage and PairedArt: full-bleed art under the site header, the pull-up by the sticky offset, the headroom, the paired art that follows the page's theme, and the forced-colours and print rules; CSS only, 1179 bytes) and framed-art (React's FramedArt: the figure, its rim and radius, the reserved box, the placeholder and the failed alt, the caption and credit; 2208 bytes of CSS and the 733-byte script that sets the frame's phase); both need the art tokens. The bar stays smoked over a stage: React clears it only over a stage that passed the headroom test helper, and a page has no test run (DECISIONS 108's note), so the skill builds no clear state. skillMd rose 10259 to 10500 for two index lines, within its cap; the core is unchanged in bytes. The callout gained the status rim in the same PR (DECISIONS 82, D8's status callouts): success, warning and danger draw their border in the status colour at 45% mixed in sRGB over the callout's own level, one solid colour on every side, and CanvasText in forced colours with the icon; the status colour is now one property the icon and the rim read. Its budget rose 900 to 1150 (the module is 1089 bytes, from 792: +297, about 37%); its usage is unchanged. Added in the overlays-and-the-rest PR (skill-parity-11, batch 7 step 9, DECISIONS 90 and 108): the last two parts of D8's part 5, each a module a page carries only when it uses it, with its own cap and usage cap set a little above its size: combobox (React's Combobox: the input with its caret button inside, the popup of the menu's rows with the glide's shared plate and two-line options, the filtering, the keys, the hidden value, the empty message and the check; 4342 of CSS and 6423 of script, budget 10900, usage 2150; it needs forms, popover and glide, and builds the last two) and sparkline (React's Sparkline: the label and latest value, the line, the axis, the empty sentence and the loading line that breathes; 1609 of CSS and 1874 of script, budget 3600, usage 950). The combobox copies the menu's row rules, as the select's list does, because React's Combobox renders MenuItem rows (a 40px hit area, a 36px plate) and the skill's .row is the palette's 44px: it carries no menu script. popover.js gains the combobox popup in the list of popups that keep focus where it is (+21 bytes, within its cap). skillMd rose 10500 to 10724 for two index lines, within its cap; the core is unchanged in bytes. Added in the motion-rules PR (DECISIONS 136 and 139): one module, ambient (a page's one ambient loop: CSS 828 bytes, script 433, budget 1300, usage 800), taken out of loops so the hold's own module grows only by the icon toggle's glyph swap (loops 2000 to 2200, +10%; its usage 1300 to 1650 for the icon form and the new settings-row sentence, +27%); and the chart's entrance (`entrance: true`: the marks' animations, their conditions and the redraw that restarts them at the elapsed time, 23262 to 25299 bytes of script; budget 30700 to 32800, +7%, usage 2500 to 2950, +18%). The core grew by the three tokens (27704 to 27862 bytes of CSS, under its cap). its stage usage gained the ambient art's line (1650 to 1750, +6%). skillMd rose 10724 to the size of the ambient index line, within its cap. Raised again in the motion-rules amendment (DECISIONS 143): chart 32800 to 33800 (script 25299 to 26375 bytes, +4%; +10% over the 30700 it began with) for the glide a new data set makes mid-entrance, print settling it, and `Basalt.pageChange()`; its usage 2950 to 3150 (+26% over the 2500 it began with). Raised in the second motion-rules amendment (DECISIONS 148): chart 33800 to 34400 (script 26375 to 26970 bytes: a line and its markers glide from their drawn geometry, and `beforeprint` settles the entrance; +12% over the 30700 it began with); topbar-nav 6900 to 7500 (+8.7%: the narrow menu's pause row, its CSS and 275 bytes of script, DECISIONS 148 item 2); loops usage 1650 to 1800 (+38% over the 1300 it began with, for the icon form's `title` and the menu row). Raised in the audit-design-b PR (DECISIONS 138 and 139): still-table 8200 to 13400 (+63%: the module was 7927 bytes and is 13311; the cut cell's plate, its focus stops and its dismissal, ported from React's cell-peek.ts, are 4273 bytes of script and 1111 of CSS; a still table that truncates needs them). The same PR: core usage 2100 to 2250 (+7%: the skip link, one bullet), forms usage 350 to 480 (+37%: the required mark), still-table usage 1950 to 2150 (+10%: the cut cell and the width rule), notifications usage 1050 to 1100 (+5%: the 44px entry on touch). The skip link's rim and radius took the core 30457 to 30609 bytes, under its cap (the rules that hang it under the bar are the topbar module's: 3200 to 3600, +12.5%); core 30720 to 31050 (+1.1%, DECISIONS 147: also the bar's links left out of the rule: the pseudo-element that makes a short standalone link a 44 by 44 target), skip-link script in the topbar module (3200 to 4150 over this PR, +30%: the rules that hang the link under the bar, 3600, and the script that reads the bar's real edge, 4150), sparkline 3600 to 4050 (+12.5%: React's ticker structure, so the value copies once on its line, and in forced colours the strips go and the number is plain text), forms budget 3250 to 3500 (+7.7%: the necessity word), notifications 9050 to 9250 (+2.2%: the 44px entry). Raised in the audit-design-b PR's E2 port (DECISIONS 138 and 139: the core set draws check, close, the chevrons, copy, plus, minus and search wherever a component draws them): the modules that drew a Phosphor icon for one of those now carry the core glyph's whole SVG, written in at build time (`%glyph-svg:name%`, the markup the glyph module's `_.glyph(name)` returns, so no module needs the glyph module and a page pays for nothing it does not use), and the Phosphor path of the same icon leaves the page. Each module's own bytes rose by that markup, and a page's total moved by what the Phosphor path it no longer carries saves: menu 8600 to 8900 (+303), combobox 10900 to 11200 (+303), copy 1900 to 2400 (+640), terminal 8100 to 8850 (+761), toast 13850 to 14150 (+325), number 2900 to 3400 (+557), filter 16400 to 17050 (+785), palette 9900 to 10450 (+536); the command list shares the palette's search drawing and fell 20 bytes. Set in integration-nov15, where the type-layout, motion-rules and audit-design-b branches meet: the combined tree measured SKILL.md 10959 bytes (each side's cap was 10900: both added index lines), core 31192 bytes (caps 30720 and 31050: the page-row and display rules, the three motion tokens and the skip link and 44px target rules all land in the core CSS) and core usage 2348 bytes (caps 2300 and 2250: type-layout's line and the skip-link bullet), so each is set to the measured bytes rounded up to the next 50: skillMd 10900 to 11000, core 31050 to 31200, core usage 2300 to 2350. Raised in the audit-design PR (decisions 138 and 139, parts A, D and C11): core 30720 to 31600 (+2.9%: the more-contrast block and its three aliases, and the field boundary token, every page carries as React does; the shadow-pill token is gone; the script gained `reserve`, 240 bytes), segment 3700 to 4100 and tabs 2300 to 2700 (the chosen label is 600 against 400, its width reserved by a span that carries its own copy, drawn unseen at 600; the pill's drop shadow is gone), and the segment's usage 300 to 380 (the weight and the glyph-only button). Raised again in the audit-design-a amendment (decision 145): core 31600 to 32300 (reserve() also reserves a label that is not plain text), segment 4100 to 5100 and tabs 2700 to 3500 (the second copy of such a label, and an icon drawn in both its forms), glyph 1100 to 1300 (a glyph in a segment or tab is drawn in both forms). Raised in the second audit-design-a amendment (decision 149): core 32300 to 32800 (reserve() builds the second copy of a label without any id, name, reference or hidden control, and does not copy a frame or media), segment 5100 to 5400 and its usage 380 to 500 (the 600 is on the label, the one-line rule and the usage text); the still-table cap is back at 8200, as the wash is on every cell again. Return 3 of the audit-design-a build (decision 149): tabs 3500 to 3700 (a tab the script has not reserved is 600 itself when selected, and one it declined is marked; the same two lines are in segment, which stays under 5400). Raised in the audit-fix-c2 PR (engineering, no pixel changes): toast 13850 to 14350 (the module was 13789 bytes and is 14288, +499, 3.6%) for F6, which focuses the Notifications region and Shift+Tab or Escape from it (or from the first toast) leaves it for where focus came from (and keeps a dialog's focus trap from wrapping it), as Base UI's viewport does in React, and for placing the region from focus (in the modal that holds it, or in the body), so a toast is never under a backdrop or in an inert modal whatever order the modals opened in (A3-09); the palette module grew 9864 to 9897 of its 9900 so that a palette opened over a modal sits inside it; topbar 3200 to 3250 (3123 to 3233, +110) for the scroll margin on what the bar holds, so a Tab into the bar from a scrolled page does not scroll the page (React's rule from PR #66); stage usage 1650 to 1750 (1580 to 1713, +8%) for the art's new place in the markup, after the content (A1-09), the stage's own CSS rising 1179 to 1208 within its 1250. skillMd rose 10724 to 10876 for the sentence that says a body may carry head tags, within its 10900. compose.mjs, the tool an agent runs, has no cap here (it is never in a page): it grew 21673 to 38153 bytes for the tokenizer that reads a body as HTML does and the head tags. Raised in the site-parts PR (DECISIONS 146, round 39), which folds each new part into the module it belongs with, so SKILL.md gains no index line (it has 41 bytes under its cap and a new module needs about 100): topbar 4150 to 17600 (+13450: the site footer and its disclosures, the lockup by pixel density, and a bar that arrives or leaves and returns, with its observer; a page that has a .topbar and no footer carries them too: the alternative, a module for each, needs its own index line and so SKILL.md bytes) and its usage 950 to 2900 (the footer's markup, the lockup's and the phase's); theme 650 to 4550 (the three-word theme choice: its CSS 2230 bytes and its script, 2277, with arrows, storage and the system listener) and its usage 400 to 1150 (the choice's markup written in full, so the right word is chosen before any script); segment 3700 to 3800 (a radio group's checked state besides a pressed button); stage 1250 to 2150 (its first script, 768 bytes, for fit and anchor) and its usage 1750 to 2000; framed-art 3000 to 3900 (drawn art in the frame: fit, anchor, no scaling strokes) and its usage 1250 to 1400. SKILL.md rose 10959 to 10992 (the topbar and theme index lines name .site-footer and .theme-choice). The head's theme line also writes data-theme-choice. Raised in site-parts return 2 (DECISIONS 146 B1 and B4): theme 4550 to 5350 (+800: the icon form of the theme choice, [data-theme-menu], whose button shows the theme in use, is named for the choice and opens the page's own .menu of three radio rows, in the theme script's 3073 bytes; the menu and popover modules are the page's, brought by its markup, so no module line was added and SKILL.md is 10993 of 11000) and its usage 1150 to 2200 (+91%: the menu's markup is written in full, and the deprecated toggle is said once); app-shell usage 2000 to 2100 and topbar-nav usage 1900 to 1950 (the theme control leaves the bar's text; the tools and the end cluster come in). The two example bodies still carry the deprecated data-theme-toggle. Return 2, F3 (DECISIONS 146 F): stage 2150 to 2250 (script 842 bytes: slice is the stage's default, as a frame's, and a drawing's own preserveAspectRatio stands unless the stage names data-fit or data-anchor) and its usage 2000 to 2150. framed-art 3900 to 4000 (a drawing's own preserveAspectRatio stands unless the figure names data-fit or data-anchor, +101 bytes). Return 3: theme 5350 to 5900 (script +569 bytes: who wrote data-theme, so System follows the system's change live and a theme the page set by hand, or a .dark or .light root, survives it). Raised in the controls port (DECISIONS 154): skillMd 11000 to 11200 for two index lines (link-tabs and option-chips, 214 bytes together), and core 31200 to 31600 for the nine tokens the port adds to every page's token CSS (the control rungs 44 to 64, two container widths, the confirm hold and the amount's opacity, 311 bytes). New modules (DECISIONS 154): link-tabs 2700 (its sizes, the 640 container step, the forced-colours underline, and the select that replaces the row under 720 with its 590-byte script, A15; it requires the select module), option-chips 5700 (the chip's states each written for a native radio inside a label, which needs :has on every one, plus the 1 KB script that keeps an aria-disabled chip reachable and never chosen). Return 3 (DECISIONS 154 conformance): link-tabs 2700 to 3100 and its usage 1650 to 1850 (the select's height for each row size, and a script that reads aria-current when it is needed and watches it move: 3,048 bytes), option-chips 5700 to 6700 (each state written twice, as a state attribute and as :has(), so no browser needs :has(): 4,975 CSS and 1,623 script). Return 4 (DECISIONS 158, Q2): link-tabs 3100 to 4300 and its usage 1850 to 2400 (the \"Go to\" label drawn at the select's start with its measured clearance, the select's accessible name kept as the words and the chosen page's, and the key hold that keeps a letter or an arrow on the closed select from navigating: 4,174 bytes, CSS 2,951 and script 1,223). Raised in the links-and-rows port (DECISIONS 152; the owner's approval is the lead's to confirm): the new link-rows module (5050 bytes of CSS, 50 of them for Castle's big-row arrow stepping colour over duration-fast, return 1, 1500 of usage: the directory's and the big rows' CSS, whose arrow is a core glyph drawn as a mask, and their tokens, size-row taken out of the core like type-layout's), disclosure 1550 to 3500 (Show all: the track, the clip and the settle, 1.5 KB of script and 1.8 KB of CSS), copy 2400 to 3500 (the form with words: the one cell and its script). SKILL.md rose 10959 to 10997 for one line, within its 11000 cap. Raised in the charts port PR (DECISIONS 153, D7a): chart 34400 to 34650 (script 26970 to 27270 bytes, +1.1% on the 34283 it was: `Basalt.trailingMean`, the trend maths React exports as `trailingMean`, 300 bytes), its usage 3150 to 3350 (+6%: one line for it). The tokens the batch adds (chart-lit-top, -mid and -base in both themes, size-chart-plot-sm, size-chart-row, size-meter-marker and radius-2xs) took the art module 2087 to 2546 bytes (budget 2100 to 2600, +24%: the chart tokens are its group) and the core 31192 to 31250 (cap 31200 to 31300, +0.3%: radius-2xs). Only D7a names a skill module in the charts ballot; the lit marks, the headline frame, the phase chart, the share bar, the coverage strip, the marks row and the range meter are React-only in this batch. Added in the overlays-and-search PR (DECISIONS 155, D10b and D13a): the sheet gains React's head, body and foot (the 44px close, the 20/28 title over a 13px count, the divider and the safe areas; its CSS 3.6 to 5.2 KB, budget 4050 to 5250, +30%) and its usage 1050 to 1450 (+38%: the anatomy and the step's focus, two bullets); and one new module a page carries only when it uses it, search (React's SearchDialog: the form, the field's -2 outline, the count line, the fixed-height results area and the rows with their picture slots and full-bleed hover wash; CSS only, 4368 bytes, budget 4400, usage 2050; it requires the dialog). The dialog's title draws no ring when script focuses it. skillMd rose 10959 to 11079 for the search line (the sheet's line is unchanged: its usage carries the anatomy), so its cap rose 11000 to 11100 (+0.9%). The core's CSS grew 31192 to 31421 bytes for the six new size tokens (the wide dialog, the search trigger and the logo and picture slots of a search result): its cap rose 31200 to 31450 (+0.8%). The two 44px values (the sheet's close and the search field) are local to their modules, with a lint exception that says they join the controls batch's size token (DECISIONS 154). Set in integration-nov15b, where audit-design-a, audit-fix-c2, site-parts, port-controls, port-links-rows, port-charts and port-overlays-search meet: the combined tree measured SKILL.md 11560 bytes (the caps were 11000, 11100 and 11200: each side added index lines), core 34086 bytes (caps 31300 to 33550: every side's rules land in the core CSS and script), topbar 17660 (17600 from site-parts, plus audit-fix-c2's skip-link and focus work), number 3453 (3400), palette 11379 (11000, audit-fix-c2's hosted scrim plus the core search glyph), dialog 5120 (5100), toast 15692 (15400) and stage usage 2248 (2150), each over every side's cap, so each is set to the measured bytes rounded up to the next 50: skillMd 11200 to 11600, core 33550 to 34100, topbar 17600 to 17700, number 3400 to 3500, palette 11000 to 11400, dialog 5100 to 5150, toast 15400 to 15700, stage usage 2150 to 2250. The segment cap is the base's 5400 plus port-controls' 100 (5500), unchanged by the merge. Raised in integration-nov15b, join 2 (a link tab takes the selected state, DECISIONS 138 A, 145, 149 and 154's D12 row): link-tabs 4300 to 5750 (+34%: the module was 4174 bytes and is 5736; the 600 against 400, the reserved width and the second copy of a composed label, an icon drawn in both its forms, the same rules a tab carries, 1,530 bytes of CSS and script) and its usage 2400 to 2550 (+6%: one bullet). The cap is the measured bytes rounded up to the next 50; a module that needs the tab's rules carries them as the segment and tabs modules do, so a page without link tabs pays nothing. Raised in the panels, art and parts port (DECISIONS 162): table 3000 to 3150 and its usage 950 to 1450 (the flat form and the two-line cell), stage 2250 to 2600 and its usage 2250 to 3100 (the closing block: its held art, forced colours and print; its section gap is type-layout's --basalt-section-gap, which a page with data-closing brings), the new app-tile 4300 (a 120-point polygon clip and the hairline's mask of the same outline), captioned 2000 and period 1400; skillMd 11600 to 11950 for one index line each for captioned, app-tile and period (358 bytes; the file is 11918). Raised in the logs, status and forms port (DECISIONS 162): core 34100 to 34200 (the new size-field-label-inline token, 80px, is written into every page's tokens: 25 bytes); dlist 1300 to 1900 and its usage 950 to 1060 (the stacked form, R9 and R10: a title over its text, 20px between entries, no divider; one usage line). Raised in audit-fix-c6 (the owner's cap, raised by the builder and for the owner to confirm): glyph 1300 to 1900, for redrawing a glyph when its ancestor's aria-current or data-current moves (the lists that hold glyphs are watched). Raised in the colour-ink-ladder build (DECISIONS 166): core 34200 to 34350 (the four lifted dark inks are four new primitives, each written into every page's tokens: the core measured 34307). Raised in the audit-2-design build (DECISIONS 167, Q7a): disclosure 3500 to 3800 (the core chevron drawn as a mask in place of two borders: the module measured 3755). Joined in the integration of c7 (#86) and c10 (#91): option-chips 6750 to 6850 (c7's reset resync and c10's data-ready together measure 6839). Raised in table-sort-3 (DECISIONS 257 and 261, the owner's pick: three sort states, the arrow after the label, explainers on column titles): still-table 13400 to 14650 (+9.3%: the module was 13343 bytes and is 14602; the end-aligned label's move by a transform, its right-to-left sign and the indicator that waits for it on a fine pointer, 912 bytes of CSS; the third state, the sort from the table's own order and a .explainer kept out of the button, 347 bytes of script) and its usage 2150 to 2250 (2197: the third state and the own order); the new explainer module 5850 (5842: a manual native popover opened from the sort button on hover, keyboard focus and a long press, placed above the header or beside it, 1752 bytes of CSS and 4090 of script; a page without explainers pays nothing) and its usage 900; skillMd 12250 to 12400 for the explainer's index line (113 bytes; the file is 12352). Each cap is the measured bytes rounded up to the next 50. Raised in table-sort-3's fix pass (Astra's review): explainer 5850 to 6900 (+18%: 5842 to 6864 bytes; the gap between the header and the card kept while a pointer crosses it, the close when its header leaves the view whatever has focus, the dismissal held until pointer and focus have both left, and its page-wide listeners and timers scoped to an open card and stopped when the table leaves the page, 1,022 bytes of script). Raised in cimip-gaps-2 batch B5 (the touch sizes under 720 whatever the pointer: each coarse-pointer target rule also answers a window under 720, about 20 bytes a rule; forms merged its three into one and stays under 3500): select 9000 to 9100 (measured 9064), selection 1480 to 1500 (1486), filter 17450 to 17500 (17473), option-chips 6850 to 6900 (6853), menu 8900 to 8950 (8902). B5 fix pass 1 (Astra): core 34550 to 34950 (measured 34911: 30762 CSS and 4149 JS) for stacked links in a column, each giving up the side of its 44px box that meets a neighbour, so a tap on a link's words is always that link's; core had 12 bytes free. DECISIONS 274 (the owner's pick: under 720 the toast stack hangs from the bar): toast 15700 to 16050 (measured 16035; 8 bytes were free; the stack's direction became one sign variable, trimming 585 of the 920 bytes the phone form first took). B5 merged with main (5ad5345a): main's own core measured 34930 against its 34550 cap before B5; with B5 (the touch sizes under 720 and stacked links in a column) it is 35331, so core is 35350; nav 5350 to 5400 (measured 5364: B4's nav plus the touch size under 720). The full run after the stream (DECISIONS 246): the site footer's links keep their own flex column under 720, as React's, out of the bare-link touch rule (26 bytes), so core is 35400 (measured 35357); sheet 5250 to 5400 (measured 5368: React's B5 ring room, ported: the held actions reach space-1-5 above their band, clipped, and the body keeps space-1-5 at each end). Raised for diagram motion and service marks (DECISIONS 292): skillMd 12550 to 12650 for the diagram-motion module's one line; diagram 87200 to 91000 for what a still diagram now carries (a card's mark and its seat, the pending frame, the comparison that writes a drawing only when it changed, and the print rule), and its usage 2600 to 4300 for the decision's four lines and the list of mark ids; the new diagram-motion module (the motion engine, its stylesheet and the motion tokens, in a page only when a diagram is animated) at 26200. Raised when the diagram tests were first run (DECISIONS 298): diagram 91000 to 91250 and diagram-motion 26200 to 26850. Fix round 1 of #124 had already taken them to 91205 and 26621 with the tests unrun; this round added 1 byte (every focal node prints its fill; a one-form mark's dark form falls back to its light one) and 180 (the entrance keeps its own clock when it is drawn again while paused).", "budgets": { - "skillMd": 12550, + "skillMd": 12650, "core": 35400 }, "core": { @@ -737,6 +737,7 @@ "diagram-list-group", "diagram-list-head", "diagram-list-items", + "diagram-mark", "diagram-mlabel", "diagram-more", "diagram-msg", @@ -777,12 +778,39 @@ "art", "kbd" ], - "budget": 87200, - "usage": 2600, + "budget": 91250, + "usage": 4300, "builds": [ "kbd" ] }, + "diagram-motion": { + "classes": [ + "diagram-bead", + "diagram-flow", + "diagram-motion-defs", + "diagram-packet", + "diagram-pause", + "diagram-play" + ], + "text": [ + "\"motion\"\\s*:\\s*\"animated\"" + ], + "textWords": [ + "a diagram's \"motion\": \"animated\"" + ], + "requires": [ + "diagram", + "loops", + "toggle" + ], + "budget": 26850, + "usage": 1300, + "builds": [ + "loops", + "toggle" + ] + }, "sparkline": { "classes": [ "sparkline", diff --git a/tools/html-skill/src/modules/diagram-motion.js b/tools/html-skill/src/modules/diagram-motion.js new file mode 100644 index 00000000..351b3252 --- /dev/null +++ b/tools/html-skill/src/modules/diagram-motion.js @@ -0,0 +1,66 @@ +/* Basalt HTML script, diagram-motion module (DECISIONS 292): a diagram whose JSON says "motion": "animated" draws each line once when it comes into + view (every word at rest), then runs whichever of flow, a pulse or a packet its data names, and a sequence's run. compose.mjs adds this module, and + loops, only to a page with such a diagram (a page that draws one from script names it with <!-- basalt:use diagram-motion -->). The engine is React's + own (packages/react/src/diagram-motion-core.ts): build.mjs bundles it in, so the skill and React move the same way. This file builds the foot's two + buttons: the run button ("Play the run", "Stop the run") and "Pause animations", the page's hold (a data-loops-toggle button, which the loops module + wires). Basalt.diagram(figure, spec) with a new packet.send sends one message, as a new prop does in React. + Source: tools/html-skill/src/modules/diagram-motion.js (do not edit the copy in the skill folder). */ +import { attachMotion, motionErrors } from "../../../../packages/react/src/diagram-motion-core.ts"; + +(function (B) { + 'use strict'; + var _ = B._; + + function button(cls, words, extra) { + var b = document.createElement('button'); + b.type = 'button'; + b.className = 'btn ' + cls; + b.setAttribute('data-variant', 'secondary'); + b.setAttribute('data-size', 'sm'); + if (extra) extra(b); + b.appendChild(document.createTextNode(words)); + return b; + } + + /** Called by the diagram module once an animated figure is first laid out. Returns the controller the diagram module tells about new drawings. */ + _.diagramMotion = function (figure, host, spec) { + var checked = motionErrors(host.model()); + checked.errors.forEach(function (e) { console.error('Basalt diagram: ' + e); }); + checked.warnings.forEach(function (w) { console.warn('Basalt diagram: ' + w); }); + var controller = attachMotion(host); + var foot = figure.querySelector('.diagram-foot'); + var run = null, pause = null; + if (foot) { + run = button('diagram-play', 'Play the run'); + run.addEventListener('click', function () { controller.toggleRun(); }); + pause = button('diagram-pause', 'Pause animations', function (b) { + b.setAttribute('data-loops-toggle', ''); + b.setAttribute('aria-pressed', String(Boolean(B.loops && B.loops.held()))); + var check = document.createElement('span'); + check.className = 'btn-check'; + check.setAttribute('aria-hidden', 'true'); + b.appendChild(check); + }); + run.hidden = pause.hidden = true; + foot.appendChild(run); + foot.appendChild(pause); + } + function show() { + var s = controller.state(); + if (run) { run.hidden = !s.runShown; run.lastChild.textContent = s.running ? 'Stop the run' : 'Play the run'; } + if (pause) { pause.hidden = !s.canLoop; pause.setAttribute('aria-pressed', String(Boolean(B.loops && B.loops.held()))); } + } + var unsubscribe = controller.subscribe(show); + show(); + // A send carries on from the figure's last drawing: the value it had is seen first, so only a new one sends. + var send = spec && spec.packet ? spec.packet.send : undefined; + controller.sendValue('__diagramSend' in figure ? figure.__diagramSend : send); + controller.sendValue(send); + figure.__diagramSend = send; + return { + redrawn: controller.redrawn, + sendValue: function (v) { controller.sendValue(v); figure.__diagramSend = v; }, + destroy: function () { unsubscribe(); controller.destroy(); if (run) run.remove(); if (pause) pause.remove(); }, + }; + }; +})(window.Basalt); diff --git a/tools/html-skill/src/modules/diagram.js b/tools/html-skill/src/modules/diagram.js index 8580da0d..d44efada 100644 --- a/tools/html-skill/src/modules/diagram.js +++ b/tools/html-skill/src/modules/diagram.js @@ -4,7 +4,7 @@ and draw the same pixels. compose.mjs runs `Basalt._.diagramMarkup` at build time and writes each figure's words into the page, so it reads before any script runs; this script then measures it, draws its lines and labels, and wires the keys, the trace and the list. Source: tools/html-skill/src/modules/diagram.js (do not edit the copy in the skill folder). */ -import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, keyTarget, measureFigure, moveStop, syncAttributes, toHtml } from "../../../../packages/react/src/diagram-core.ts"; +import { applyTrace, buildModel, entranceDrawn, escapeHtml, figureTree, hasStops, hintEntries, keyTarget, measureFigure, moveStop, settleEntrance, syncAttributes, toHtml } from "../../../../packages/react/src/diagram-core.ts"; (function (B) { 'use strict'; @@ -78,6 +78,11 @@ import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, var apply = function (d) { syncAttributes(figure, figureTree(model, d, opts)); }; var ink = figure.querySelector('.diagram-ink'); var toggle = figure.querySelector('.diagram-toggle'); + // Motion (DECISIONS 292) is the diagram-motion module's: compose.mjs adds it to a page whose diagram says "motion": "animated". Without it the + // figure is as still. `drawn` is the ink last written, so a measure that draws the same lines writes nothing. + var animated = model.motion.animated && typeof _.diagramMotion === 'function'; + var motion = null, drawn = null; + var settle = function () { if (animated) settleEntrance(figure); }; function retrace() { applyTrace(figure, P, measured && measured.geo, measured && measured.tokens, base, focusTrace || hoverTrace); } // The toggle's words and state follow the list's (a stack drawn with no lines opens it). @@ -93,8 +98,11 @@ import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, syncToggle(); // A layout with no stops traces nothing: a pointer resting on a node as the figure narrows into one leaves no trace behind. if (!hasStops(model, state)) hoverTrace = null; - if (ink) ink.innerHTML = measured.ink; + var fresh = ink && measured.ink !== drawn; + if (fresh) { ink.innerHTML = measured.ink; drawn = measured.ink; } retrace(); + // In the frame an animated figure's lines are first drawn it is pending; after that the motion module follows a drawing that changed. + if (animated && measured.tokens) { entranceDrawn(figure, Boolean(measured.geo && measured.geo.lines.length)); if (fresh && motion) motion.redrawn(); } } function setState(next) { state = next; apply(state); } // A move of the roving stop touches the two nodes it moves between, not the whole figure. @@ -104,6 +112,7 @@ import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, function onKey(event) { var node = nodeOf(event.target); if (!node || event.defaultPrevented) return; + settle(); if (event.key === 'Escape') { if (focusTrace || hoverTrace) { event.preventDefault(); focusTrace = hoverTrace = null; retrace(); } return; } if (!hasStops(model, state)) return; var to = keyTarget(model, node.getAttribute('data-node'), event.key); @@ -116,6 +125,7 @@ import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, function onFocusIn(event) { var node = nodeOf(event.target); if (!node) return; + settle(); var id = node.getAttribute('data-node'); // Tracing follows the keyboard's focus (:focus-visible), so a press that focuses a node traces nothing. focusTrace = node.matches(':focus-visible') ? id : null; @@ -132,11 +142,13 @@ import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, function onOver(event) { if (event.pointerType !== 'mouse' || !matchMedia('(hover: hover)').matches) return; var node = nodeOf(event.target); + if (node) settle(); var next = node && hasStops(model, state) ? node.getAttribute('data-node') : null; if (next !== hoverTrace) { hoverTrace = next; retrace(); } } function onLeave() { if (hoverTrace) { hoverTrace = null; retrace(); } } function onToggle() { + settle(); setState(Object.assign({}, state, { open: !state.open, autoOpen: undefined })); syncToggle(); } @@ -157,17 +169,34 @@ import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, }); observer.observe(figure); if (document.fonts) document.fonts.ready.then(function () { if (live) layout(); }); + // A card's mark keeps its seat's padding out of forced colours, where none is drawn: the mode changing is a new measure (DECISIONS 292, 2.7). + var forced = matchMedia('(forced-colors: active)'); + var marks = model.nodes.some(function (n) { return n.mark; }); + if (marks) forced.addEventListener('change', layout); + if (animated) motion = _.diagramMotion(figure, { fig: figure, P: P, base: base, model: function () { return model; }, geo: function () { return measured && measured.geo; }, tokens: function () { return measured && measured.tokens; } }, spec); figure.__diagram = { stop: function () { live = false; observer.disconnect(); cancelAnimationFrame(frame); + if (marks) forced.removeEventListener('change', layout); + if (motion) motion.destroy(); figure.removeEventListener('keydown', onKey); figure.removeEventListener('focusin', onFocusIn); figure.removeEventListener('focusout', onFocusOut); figure.removeEventListener('pointerover', onOver); figure.removeEventListener('pointerleave', onLeave); if (toggle) toggle.removeEventListener('click', onToggle); }, layout: layout, + key: sendless(spec), + // The same figure with only a new packet.send: the message goes on the figure as it is, so a dot in flight is not cut short (1.8, 1.9). + send: motion && motion.sendValue ? motion.sendValue : null, }; } + /** A spec as text without its packet's send, so two calls that differ only in what they send are seen as the same figure. */ + function sendless(spec) { + try { + return JSON.stringify(spec, function (k, v) { return k === 'packet' && v && typeof v === 'object' ? Object.assign({}, v, { send: undefined }) : v; }); + } catch (e) { return null; } + } + function wireDiagrams() { document.querySelectorAll('figure.diagram').forEach(function (figure) { if (figure.__diagram) return; @@ -178,6 +207,11 @@ import { applyTrace, buildModel, escapeHtml, figureTree, hasStops, hintEntries, } _.diagramMarkup = markup; - B.diagram = function (figure, spec) { draw(figure, spec); }; + B.diagram = function (figure, spec) { + var d = figure.__diagram; + var key = d && d.send ? sendless(spec) : null; + if (key !== null && key === d.key) { d.send(spec.packet ? spec.packet.send : undefined); return; } + draw(figure, spec); + }; _.step(62, 'wireDiagrams', wireDiagrams); })(window.Basalt); diff --git a/tools/html-skill/src/usage/diagram-motion.md b/tools/html-skill/src/usage/diagram-motion.md new file mode 100644 index 00000000..479364ef --- /dev/null +++ b/tools/html-skill/src/usage/diagram-motion.md @@ -0,0 +1,9 @@ +# diagram-motion + +Added for you when a diagram's JSON says `"motion": "animated"` (with `loops`); a page that draws one from script writes `<!-- basalt:use diagram-motion -->`. + +- **Entrance:** in view (two fifths of it), each line draws once in the author's order, inside five seconds; a sequence's arrows go in message order and each label lifts from secondary to primary. Every word is at rest from the first frame. It never plays under reduced motion, in forced colours, under the hold or in print, and settles at once on a hover, a focus, a key or a control. +- **Loops:** a flow line's cuts, a pulse's bead, a repeating packet. They run only in view, never while a node is traced, and stop under the page's hold. The figure's foot then has "Pause animations" (the hold's own button, built for you) after "View as list". Don't add a second one for the diagram. +- **One mover a figure:** a pulse or a packet, never both. Flow is a state of a line and never runs on a line the mover travels. +- **Run:** "Play the run" sends one dot through a sequence's messages; it reads "Stop the run" while it runs. It works under the hold and under reduced motion (by colour alone). +- `Basalt.diagram(figure, spec)` with a new `packet.send` value sends one message. diff --git a/tools/html-skill/src/usage/diagram.md b/tools/html-skill/src/usage/diagram.md index bae2985d..172fd2a9 100644 --- a/tools/html-skill/src/usage/diagram.md +++ b/tools/html-skill/src/usage/diagram.md @@ -21,4 +21,9 @@ Boxes and the lines between them. `compose.mjs` writes the figure's words into t - **Place, don't route:** `col` and `row` are whole tracks from 1. Sides, slots, jogs, lanes, the group's box and a foreign key's line are derived. Write `fromSide` or `toSide` (`top`, `right`, `bottom`, `left`) only to change the default. `branch: true` indents a node in the stacked drawing. - **Lines:** `kind` is `main` (2px), `plain` (default) or `dashed` (a reply, a stream). One `label` each, at most 28 characters. `legend` gives each kind its words; `main`, `dashed` and a `focal` node must have words. One node at most is `focal`. - **Required:** `title`, `summary` (what it shows, in a sentence). `source`, `heading` (2 to 6, default 3). -- Monochrome: nothing takes a colour. The drawn layout is used only where it fits; otherwise the figure is stacked, one column at most 480 wide. +- Monochrome: nothing takes a colour but a card's service mark. The drawn layout is used only where it fits; otherwise the figure is stacked, one column at most 480 wide. +- **Motion:** `"motion": "animated"` (default still) draws each line once in view, every word at rest; it brings in `diagram-motion` (its usage says the rest). Motion never carries a fact alone. +- **Flow, pulse, packet:** `"flow": true` on a `main` or `plain` edge marches it (give it a label). `"pulse": ["a", "b", "c"]` runs a bead along a route; `"packet": { "path": [...], "repeat": true }` sends a dot. One of pulse and packet; never flow on the mover's route. Architecture and data flow only. +- **Run:** `"run": true` on a sequence adds "Play the run", a dot through every message. +- **Mark:** `"mark": "aws-ecs-service"` on an architecture node, 16px in the card's top end corner, the owner's file and colours; the card's words still name the service. Your own: `{ "onLight": "logo.svg", "onDark": "logo-dark.svg" }`, read into the page. A page drawing from script names its marks: `<!-- basalt:marks aws-s3-bucket temporal -->`. +- **Marks:** aws-application-load-balancer, aws-network-load-balancer, aws-cloudfront-distribution, aws-route-53-hosted-zone, aws-api-gateway-endpoint, aws-internet-gateway, aws-nat-gateway, aws-ecs-service, aws-ecs-task, aws-ecr-registry, aws-ec2-instance, aws-lambda-function, aws-s3-bucket, aws-dynamodb-table, aws-sqs-queue, aws-eventbridge-event-bus, aws-cloudwatch-logs, aws-cloudwatch-alarm, aws-parameter-store, aws-iam-role, aws-sagemaker-model, aws-bedrock, aws-client, aws-mobile-client, aws-user, aws-users, aws-internet, aws-server, aws-database, aws-application, aws-git-repository, aws-email, temporal, sonarqube, github, coderabbit, greptile, blacksmith, jenkins, servicenow, blazemeter. `aws-database` is the card for Aurora and RDS. aws-bedrock, jenkins, servicenow and blazemeter are unofficial. diff --git a/tools/html-skill/test/diagram-motion.test.mjs b/tools/html-skill/test/diagram-motion.test.mjs new file mode 100644 index 00000000..dd3dfec9 --- /dev/null +++ b/tools/html-skill/test/diagram-motion.test.mjs @@ -0,0 +1,137 @@ +// The skill's diagram motion and service marks (DECISIONS 292): what compose.mjs writes (the diagram-motion module only for an animated diagram, one rule a +// mark a page names, a page's own mark read into the file), and the module in a page: pending until in view, the entrance, settling, the hold, print, and +// a one-form mark written once. Written when test runs were paused (DECISIONS 271); fixed and run when the owner lifted the skip for diagrams +// (DECISIONS 298). React's and the skill's figures at rest drawing the same pixels is not yet here. +import assert from "node:assert/strict"; +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; +import { after, before, describe, test } from "node:test"; + +import { compose } from "../../../.agent/skills/basalt-html/compose.mjs"; +import { animated, FIGURES, kit, STILL } from "../../../packages/react/test/diagram-motion-fixture.mjs"; +import { launch, openHtml } from "./support.mjs"; + +let browser; +before(async () => { browser = await launch(); }); +after(async () => { await browser?.close(); }); + +const figure = (spec, id) => `<figure class="diagram"${id ? ` id="${id}"` : ""}><script type="application/json" data-diagram>${JSON.stringify(spec)}</script></figure>`; +const page = (figs, gap = 0) => `<title>Motion
${figs.join("")}
`; + +describe("compose.mjs", () => { + test("a still diagram brings in no motion module, no loops and no mark; an animated one brings both modules", () => { + const still = compose(page([figure(STILL.architecture)])); + assert.ok(!still.modules.includes("diagram-motion") && !still.modules.includes("loops")); + assert.ok(!still.html.includes("data:image/svg+xml,%3Csvg")); + const moving = compose(page([figure(animated("dataFlow"))])); + assert.ok(moving.modules.includes("diagram-motion") && moving.modules.includes("loops")); + assert.match(moving.html, /]*data-motion="animated"/); + }); + + test("a page with two cards on one mark holds its data once; a page with no mark holds none", () => { + const spec = animated("architecture"); + const { html } = compose(page([figure(spec)])); + const marks = JSON.parse(fs.readFileSync(new URL("../src/marks.json", import.meta.url), "utf8")).marks; + const ecs = marks["aws-ecs-service"].onLight; + const count = html.split(ecs.slice(0, 200)).length - 1; + assert.equal(count, 1, "aws-ecs-service is on two cards and in the page once"); + assert.equal((html.match(/\.diagram-node\[data-mark="aws-ecs-service"\]/g) ?? []).length, 1); + assert.ok(!html.includes(marks.temporal.onLight.slice(0, 200)), "a mark no card names is not in the page"); + }); + + test("a page's own mark is read into the file, and its JSON carries an id, never the path", () => { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), "basalt-mark-")); + fs.writeFileSync(path.join(dir, "acme.svg"), ''); + const spec = { ...STILL.architecture, nodes: STILL.architecture.nodes.map((n) => (n.id === "alb" ? { ...n, mark: { onLight: "acme.svg" } } : n)) }; + const { html } = compose(page([figure(spec)]), { baseDir: dir }); + assert.ok(!html.includes("acme.svg")); + assert.match(html, /\.diagram-node\[data-mark="page-1"\]>\.diagram-mark\{--_ml:url\("data:image\/svg\+xml,/); + assert.match(html, /"mark":"page-1"/); + assert.throws(() => compose(page([figure({ ...spec, nodes: spec.nodes.map((n) => (n.id === "alb" ? { ...n, mark: { onLight: "https://example.com/a.svg" } } : n)) })]), { baseDir: dir }), /leaves the file/); + }); + + test("a figure drawn from script names its marks in a comment; an unknown id is refused", () => { + const { html } = compose(`x
`); + assert.match(html, /data-mark="temporal"/); + assert.match(html, /data-mark="aws-s3-bucket"/); + assert.throws(() => compose(page([figure({ ...STILL.architecture, nodes: STILL.architecture.nodes.map((n) => ({ ...n, mark: "no-such-mark" })) })])), /not a bundled service mark/); + }); + + test("a card whose words do not say what its mark stands for is noted", () => { + const spec = { ...STILL.architecture, nodes: STILL.architecture.nodes.map((n) => (n.id === "browser" ? { ...n, mark: "temporal" } : n)) }; + const { diagrams } = compose(page([figure(spec)])); + assert.ok(diagrams.some((d) => /browser's mark \(temporal\) stands for Temporal/.test(d))); + }); +}); + +describe("the module in a page", () => { + const all = () => compose(page([...FIGURES.map((k) => figure(animated(k), `fig-${k}`)), figure(kit(), "fig-kit")], 1600)).html; + const entrance = (p, id) => p.evaluate((id) => document.getElementById(id).getAttribute("data-entrance"), id); + + test("every figure below the fold is pending after the faces; the first plays; scrolled to, each plays; nothing errs", async () => { + const { page: p, errors } = await openHtml(browser, all()); + await p.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)))); + assert.equal(await entrance(p, "fig-architecture"), "running"); + for (const k of ["flowchart", "dataFlow", "sequence", "schema"]) assert.equal(await entrance(p, `fig-${k}`), "pending", k); + for (const k of ["flowchart", "dataFlow", "sequence", "schema", "kit"]) { + await p.evaluate((k) => document.getElementById(`fig-${k}`).scrollIntoView({ block: "center" }), k); + await p.waitForFunction((k) => document.getElementById(`fig-${k}`).getAttribute("data-entrance") !== "pending", k, { polling: "raf", timeout: 5000 }); + } + assert.deepEqual(errors, []); + }); + + test("a hover settles; the hold clears the loops and the foot's button is the hold, pressed; print shows every line", async () => { + const { page: p } = await openHtml(browser, all()); + await p.hover("#fig-architecture [data-node='alb']"); + assert.equal(await entrance(p, "fig-architecture"), "done"); + await p.mouse.move(0, 0); + await p.click("#fig-architecture .diagram-pause"); + const held = await p.evaluate(() => ({ root: document.documentElement.getAttribute("data-loops"), pressed: document.querySelector("#fig-architecture .diagram-pause").getAttribute("aria-pressed"), shown: [...document.querySelectorAll("#fig-architecture :is(.diagram-flow, .diagram-bead, .diagram-packet)")].filter((x) => getComputedStyle(x).display !== "none").length })); + assert.deepEqual(held, { root: "held", pressed: "true", shown: 0 }); + await p.emulateMedia({ media: "print" }); + const lines = await p.evaluate(() => [...document.querySelectorAll(".diagram-edges")].every((e) => getComputedStyle(e).visibility === "visible")); + assert.ok(lines); + }); + + test("under reduced motion every figure is at rest and no pause control is shown; the run is", async () => { + const { page: p } = await openHtml(browser, all(), { reducedMotion: "reduce" }); + const seen = await p.evaluate(() => [...document.querySelectorAll("figure.diagram")].map((f) => [f.getAttribute("data-entrance"), [...f.querySelectorAll(".diagram-foot button")].filter((b) => !b.hidden).map((b) => b.textContent.trim())])); + for (const [state] of seen) assert.equal(state, "done"); + assert.ok(seen.every(([, buttons]) => !buttons.includes("Pause animations"))); + assert.ok(seen.some(([, buttons]) => buttons.includes("Play the run"))); + }); + + test("Basalt.diagram with a new packet.send sends one message; the first draw sends none", async () => { + const spec = { ...animated("dataFlow"), packet: { path: ["send", "append", "row", "hear", "see"], send: 1 } }; + // The page composed, as every other page here is: an uncomposed fragment has no Basalt runtime and no styles. + const { page: p } = await openHtml(browser, compose(page([figure(spec, "fig-send")])).html); + await p.evaluate(() => { const f = document.getElementById("fig-send"); f.setAttribute("data-entrance", "done"); f.dispatchEvent(new Event("basalt-diagram-settle")); }); + assert.equal(await p.evaluate(() => document.querySelectorAll("#fig-send .diagram-packet").length), 0); + await p.evaluate((spec) => window.Basalt.diagram(document.getElementById("fig-send"), { ...spec, packet: { ...spec.packet, send: 2 } }), spec); + await p.waitForFunction(() => document.querySelector("#fig-send .diagram-packet") && getComputedStyle(document.querySelector("#fig-send .diagram-packet")).display !== "none", null, { polling: "raf", timeout: 3000 }); + }); + + test("a mark with one form is written once and drawn on every card, the focal card too, in both themes", async () => { + // CodeRabbit has one form for both grounds; on the focal card it takes the other theme's form, which falls back to its one. + const spec = { ...kit(), nodes: kit().nodes.map((n) => (n.id === "coderabbit" ? { ...n, focal: true } : n)), legend: { ...kit().legend, focal: "The review" } }; + const { html } = compose(page([figure(spec, "fig-kit")])); + assert.doesNotMatch(html, /\[data-mark="coderabbit"\]>\.diagram-mark\{[^}]*--_md:/, "no second copy of a one-form mark"); + for (const scheme of ["dark", "light"]) { + const { page: p } = await openHtml(browser, html, { scheme }); + const seen = await p.evaluate(() => [...document.querySelectorAll("#fig-kit .diagram-node[data-mark]")].map((n) => [n.dataset.node, getComputedStyle(n.querySelector(".diagram-mark")).backgroundImage.startsWith('url("data:image/svg+xml')])); + assert.equal(seen.length, kit().nodes.filter((n) => n.mark).length); + assert.deepEqual(seen.filter(([, drawn]) => !drawn), [], `${scheme}: every mark draws`); + } + }); + + test("in forced colours no mark is drawn and the first line keeps no padding; in print every mark computes print-color-adjust: exact", async () => { + const { page: p } = await openHtml(browser, compose(page([figure(kit(), "fig-kit")])).html); + await p.emulateMedia({ forcedColors: "active" }); + const forced = await p.evaluate(() => [...document.querySelectorAll(".diagram-mark")].map((m) => getComputedStyle(m).display)); + assert.ok(forced.every((d) => d === "none")); + await p.emulateMedia({ forcedColors: "none", media: "print" }); + const print = await p.evaluate(() => [...document.querySelectorAll(".diagram-mark")].map((m) => getComputedStyle(m).printColorAdjust)); + assert.ok(print.length === kit().nodes.filter((n) => n.mark).length && print.every((v) => v === "exact"), JSON.stringify(print)); + }); +}); diff --git a/tools/html-skill/test/diagrams.test.mjs b/tools/html-skill/test/diagrams.test.mjs index ecd51a3b..bf296f43 100644 --- a/tools/html-skill/test/diagrams.test.mjs +++ b/tools/html-skill/test/diagrams.test.mjs @@ -116,6 +116,52 @@ describe("the page before script (1.19)", () => { await skill.context.close(); await written.context.close(); }); + + test("a second Basalt.diagram call draws the new data: its words, its list and its sentences", async () => { + const skill = await openHtml(browser, compose(`D
`).html, { scheme: "dark" }); + const renamed = structuredClone(DATA.architecture); + renamed.nodes[0].name = "Renamed"; + await skill.page.evaluate((spec) => window.Basalt.diagram(document.getElementById("fig-a"), spec), renamed); + await skill.page.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)))); + const id = renamed.nodes[0].id; + assert.equal(await skill.page.locator(`#fig-a .diagram-node[data-node="${id}"] .diagram-name`).innerText(), "Renamed"); + assert.match(await skill.page.getAttribute(`#fig-a .diagram-node[data-node="${id}"]`, "aria-label"), /^Renamed,/); + assert.match(await skill.page.locator("#fig-a .diagram-list").textContent(), /Renamed/); + assert.equal(await skill.page.locator("#fig-a > .diagram-drawing").count(), 1, "one drawing, not two"); + assert.equal(await skill.page.locator("#fig-a .diagram-node[tabindex='0']").count(), 1); + assert.deepEqual(skill.errors, []); + await skill.context.close(); + }); +}); + +describe("compose.mjs and the diagram's markup", () => { + const bodyOf = (html) => html.slice(html.indexOf("")); + const json = JSON.stringify(DATA.architecture); + const figure = (attrs) => `
`; + + test("a figure with an unquoted class is written; a figure written as an example inside a textarea, a comment, code or a text script is not", () => { + assert.match(bodyOf(compose(`

x

${figure("class=diagram")}`).html), /class="diagram-drawing"/); + const example = figure('class="diagram"'); + const html = compose(`

x

${example.replaceAll("<", "<")}
`).html; + assert.doesNotMatch(bodyOf(html), /class="diagram-drawing"/); + assert.ok(html.includes(``), "the textarea's text is as written"); + assert.doesNotMatch(bodyOf(compose(`

x

${figure('class="diagrams"')}`).html), /class="diagram-drawing"/, "the class is matched as a word"); + assert.equal(compose(`

x

${figure('class="diagram" id="f"')}`).html, compose(`

x

${figure('class="diagram" id="f"')}`).html, "the same input, the same page"); + }); + + test("JSON that is not the documented shape never reaches the page as markup: a heading, a kind, a column and a name are checked", () => { + const bad = { type: "architecture", title: "t", heading: "3 onclick=alert(1)", summary: "s", nodes: [{ id: "a", name: "A", col: 1, row: 1 }, { id: "b", name: { t: "script", a: {}, c: ["alert(1)"] }, col: "2;x:y", row: 1 }], edges: [{ from: "a", to: "b", kind: 'main" onload="alert(1)', label: "x" }] }; + const result = compose(`

x

`); + const body = bodyOf(result.html).replace(/