@haibun/web-playwright 1.61.0 → 1.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/monitor/artifactDisplays/SequenceDiagramGenerator.js +1 -1
- package/build/monitor/artifactDisplays/SequenceDiagramGenerator.js.map +1 -1
- package/build/monitor/controls.js +2 -2
- package/build/monitor/controls.js.map +1 -1
- package/build/monitor/monitor.js +1 -1
- package/build/monitor/monitor.js.map +1 -1
- package/package.json +3 -3
- package/web/monitor.html +2 -2
|
@@ -204,7 +204,7 @@ export class SequenceDiagramGenerator {
|
|
|
204
204
|
const mermaidElement = mermaidContainer.querySelector('.mermaid');
|
|
205
205
|
if (mermaidElement) {
|
|
206
206
|
await mermaid.run({ nodes: [mermaidElement] });
|
|
207
|
-
console.
|
|
207
|
+
console.info("Mermaid diagram rendered.");
|
|
208
208
|
this.currentDiagramString = diagramToRender;
|
|
209
209
|
this.needsUpdate = false;
|
|
210
210
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceDiagramGenerator.js","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/SequenceDiagramGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAI9B,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,MAAM,sBAAsB,GAAG,CAAC,OAAe,EAAU,EAAE;IAC1D,IAAI,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC3C,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC5C,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7C,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7C,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,IA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YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;gBACrF,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;IACF,CAAC;SAAM,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;QACrC,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;YACxC,MAAM,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;YAClD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;gBACzF,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;IACF,CAAC;SAAM,CAAC;QACP,OAAO,CAAC,IAAI,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC;IACb,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -164,7 +164,7 @@ export function setupVideoPlayback() {
|
|
|
164
164
|
if (mutation.type === 'childList') {
|
|
165
165
|
const newVideo = videoContainer.querySelector('video');
|
|
166
166
|
if (newVideo && newVideo !== existingVideo) {
|
|
167
|
-
console.
|
|
167
|
+
console.info('New video detected, setting up handlers.');
|
|
168
168
|
setupVideoTimeUpdateHandler(newVideo);
|
|
169
169
|
pollVideoTimeAndUpdate(newVideo);
|
|
170
170
|
existingVideo = newVideo;
|
|
@@ -176,7 +176,7 @@ export function setupVideoPlayback() {
|
|
|
176
176
|
const diagramObserver = new MutationObserver((mutations) => {
|
|
177
177
|
mutations.forEach((mutation) => {
|
|
178
178
|
if (mutation.type === 'childList' && mutation.addedNodes.length > 0 && mutation.target === sequenceDiagram) {
|
|
179
|
-
console.
|
|
179
|
+
console.info('Sequence diagram content detected.');
|
|
180
180
|
diagramObserver.disconnect();
|
|
181
181
|
}
|
|
182
182
|
});
|
|
@@ -1 +1 @@
|
|
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CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;YACvE,CAAC,EAAE,CAAC,CAAC,CAAC;QACP,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,OAAoB;IACzC,IAAI,OAAO,GAAG,OAAO,CAAC;IACtB,OAAO,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACnE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC;IACjC,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
package/build/monitor/monitor.js
CHANGED
|
@@ -33,7 +33,7 @@ export function renderLogEntry(logEntryData) {
|
|
|
33
33
|
function renderAllLogs() {
|
|
34
34
|
const container = document.getElementById('haibun-log-display-area');
|
|
35
35
|
if (container) {
|
|
36
|
-
console.
|
|
36
|
+
console.info(`Rendering ${window.haibunCapturedMessages.length} log entries...`);
|
|
37
37
|
window.haibunCapturedMessages.forEach(renderLogEntry);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../src/monitor/monitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,qBAAqB,EAAmB,MAAM,6CAA6C,CAAC;AAC1H,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,MAAM,CAAC,sBAAsB,GAAG,MAAM,CAAC,sBAAsB,IAAI,EAAE,CAAC;AACpE,OAAO,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;AAEvE,qDAAqD;AACrD,MAAM,CAAC,cAAc,GAAG,CAAC,QAAQ,EAAE,EAAE;IACpC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7C,cAAc,CA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,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC9C,CAAC;aAAM,CAAC;YACP,2DAA2D;YAC3D,OAAO,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;QACrF,CAAC;IACF,CAAC;IAED,0CAA0C;IAC1C,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC;AAC9C,CAAC;AACD,SAAS,aAAa;IACrB,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC;IACrE,IAAI,SAAS,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,sBAAsB,CAAC,MAAM,iBAAiB,CAAC,CAAC;QACjF,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACvD,CAAC;AACF,CAAC;AAED,8BAA8B;AAC9B,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAClD,mDAAmD;IACnD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QACtC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;IACnD,CAAC;IAED,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC;IAChB,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;AAExC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haibun/web-playwright",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.61.
|
|
4
|
+
"version": "1.61.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "build/web-playwright.js",
|
|
7
7
|
"files": ["build/", "web/monitor.html"],
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"author": "",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@haibun/core": "1.61.
|
|
22
|
-
"@haibun/domain-storage": "1.61.
|
|
21
|
+
"@haibun/core": "1.61.1",
|
|
22
|
+
"@haibun/domain-storage": "1.61.1",
|
|
23
23
|
"playwright": "1.52"
|
|
24
24
|
},
|
|
25
25
|
"gitHead": "7cf9680bd922fb622fb59f1e6bf5b65284cb8fd5",
|
package/web/monitor.html
CHANGED
|
@@ -460,7 +460,7 @@ ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
|
|
|
460
460
|
</iframe>`},"putIntoIFrame"),JC=x((t,e,r,n,i)=>{const a=t.append("div");a.attr("id",r),n&&a.attr("style",n);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Nce);return i&&s.attr("xmlns:xlink",i),s.append("g"),t},"appendDivSvgG");function gw(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}x(gw,"sandboxedIframe");var Wce=x((t,e,r,n)=>{var i,a,s;(i=t.getElementById(e))==null||i.remove(),(a=t.getElementById(r))==null||a.remove(),(s=t.getElementById(n))==null||s.remove()},"removeExistingElements"),Yce=x(async function(t,e,r){var I,P,_,N,M,O;Q2();const n=kE(e);e=n.code;const i=Ir();ie.debug(i),e.length>((i==null?void 0:i.maxTextSize)??Ace)&&(e=_ce);const a="#"+t,s="i"+t,o="#"+s,l="d"+t,u="#"+l,h=x(()=>{const B=rt(f?o:u).node();B&&"remove"in B&&B.remove()},"removeTempElements");let d=rt("body");const f=i.securityLevel===Lce,p=i.securityLevel===Rce,g=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const D=gw(rt(r),s);d=rt(D.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=rt(r);JC(d,t,l,`font-family: ${g}`,Dce)}else{if(Wce(document,t,l,s),f){const D=gw(rt("body"),s);d=rt(D.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=rt("body");JC(d,t,l)}let m,v;try{m=await pw.fromText(e,{title:n.title})}catch(D){if(i.suppressErrorRendering)throw h(),D;m=await pw.fromText("error"),v=D}const y=d.select(u).node(),b=m.type,w=y.firstChild,T=w.firstChild,E=(P=(I=m.renderer).getClasses)==null?void 0:P.call(I,e,m),S=Uce(i,b,E,a),k=document.createElement("style");k.innerHTML=S,w.insertBefore(k,T);try{await m.renderer.draw(e,t,lw.version,m)}catch(D){throw i.suppressErrorRendering?h():Ble.draw(e,t,lw.version),D}const L=d.select(`${u} svg`),A=(N=(_=m.db).getAccTitle)==null?void 0:N.call(_),R=(O=(M=m.db).getAccDescription)==null?void 0:O.call(M);$F(b,L,A,R),d.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Ice);let C=d.select(u).node().innerHTML;if(ie.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),C=qce(C,f,Dr(i.arrowMarkerAbsolute)),f){const D=d.select(u+" svg").node();C=Hce(C,D)}else p||(C=Td.sanitize(C,{ADD_TAGS:zce,ADD_ATTR:Vce,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Tce(),v)throw v;return h(),{diagramType:b,svg:C,bindFunctions:m.db.bindFunctions}},"render");function BF(t={}){var n;const e=In({},t);e!=null&&e.fontFamily&&!((n=e.themeVariables)!=null&&n.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),kX(e),e!=null&&e.theme&&e.theme in Bo?e.themeVariables=Bo[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Bo.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?EX(e):uD();y6(r.logLevel),Q2()}x(BF,"initialize");var FF=x((t,e={})=>{const{code:r}=EE(t);return pw.fromText(r,e)},"getDiagramFromText");function $F(t,e,r,n){DF(e,t),IF(e,r,n,e.attr("id"))}x($F,"addA11yInfo");var tu=Object.freeze({render:Yce,parse:PF,getDiagramFromText:FF,initialize:BF,getConfig:Ir,setConfig:hD,getSiteConfig:uD,updateSiteConfig:SX,reset:x(()=>{Ev()},"reset"),globalReset:x(()=>{Ev(kd)},"globalReset"),defaultConfig:kd});y6(Ir().logLevel);Ev(Ir());var Xce=x((t,e,r)=>{ie.warn(t),iE(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),zF=x(async function(t={querySelector:".mermaid"}){try{await jce(t)}catch(e){if(iE(e)&&ie.error(e.str),Sa.parseError&&Sa.parseError(e),!t.suppressErrors)throw ie.error("Use the suppressErrors option to suppress these errors"),e}},"run"),jce=x(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=tu.getConfig();ie.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");ie.debug(`Found ${i.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(ie.debug("Start On Load: "+(n==null?void 0:n.startOnLoad)),tu.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad}));const a=new Zt.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const o=[];for(const l of Array.from(i)){if(ie.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=l.innerHTML,s=cP(Zt.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Zt.detectInit(s);h&&ie.debug("Detected early reinit: ",h);try{const{svg:d,bindFunctions:f}=await qF(u,s,l);l.innerHTML=d,t&&await t(u),f&&f(l)}catch(d){Xce(d,o,Sa.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),VF=x(function(t){tu.initialize(t)},"initialize"),Kce=x(async function(t,e,r){ie.warn("mermaid.init is deprecated. Please use run instead."),t&&VF(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await zF(n)},"init"),Zce=x(async(t,{lazyLoad:e=!0}={})=>{Q2(),aD(...t),e===!1&&await bce()},"registerExternalDiagrams"),GF=x(function(){if(Sa.startOnLoad){const{startOnLoad:t}=tu.getConfig();t&&Sa.run().catch(e=>ie.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",GF,!1);var Qce=x(function(t){Sa.parseError=t},"setParseErrorHandler"),hy=[],Bb=!1,UF=x(async()=>{if(!Bb){for(Bb=!0;hy.length>0;){const t=hy.shift();if(t)try{await t()}catch(e){ie.error("Error executing queue",e)}}Bb=!1}},"executeQueue"),Jce=x(async(t,e)=>new Promise((r,n)=>{const i=x(()=>new Promise((a,s)=>{tu.parse(t,e).then(o=>{a(o),r(o)},o=>{var l;ie.error("Error parsing",o),(l=Sa.parseError)==null||l.call(Sa,o),s(o),n(o)})}),"performCall");hy.push(i),UF().catch(n)}),"parse"),qF=x((t,e,r)=>new Promise((n,i)=>{const a=x(()=>new Promise((s,o)=>{tu.render(t,e,r).then(l=>{s(l),n(l)},l=>{var u;ie.error("Error parsing",l),(u=Sa.parseError)==null||u.call(Sa,l),o(l),i(l)})}),"performCall");hy.push(a),UF().catch(i)}),"render"),Sa={startOnLoad:!0,mermaidAPI:tu,parse:Jce,render:qF,init:Kce,run:zF,registerExternalDiagrams:Zce,registerLayoutLoaders:ZB,initialize:VF,parseError:void 0,contentLoaded:GF,setParseErrorHandler:Qce,detectType:x6,registerIconPacks:iM},dy=Sa;/*! Check if previously processed *//*!
|
|
461
461
|
* Wait for document loaded before starting the execution
|
|
462
462
|
*/function e8(t){const e=t.startsWith("https://")?t.replace("https://",""):t;return e.length<32?e:e.substring(0,26)+"..."+e.substring(t.length-6)}const Hf=t=>{let e=t.replace(/"/g,"'");return e=e.replace(/;/g,"#59;"),e=e.replace(/\(/g,"#40;"),e=e.replace(/\)/g,"#41;"),e=e.replace(/,/g,"#44;"),e},eue={request:{method:["GET","POST","PUT","DELETE","PATCH"],accept:["application/json"]},response:{type:["application/json"]}};class tue{constructor(e,r){xt(this,"needsUpdate",!0);xt(this,"diagramLines",["sequenceDiagram"]);xt(this,"pageNames",{});xt(this,"pageCounter",1);xt(this,"participantAdded",{});xt(this,"mermaidContainerId");xt(this,"parentElement");xt(this,"currentDiagramString","");this.mermaidContainerId=`mermaid-container-${e}`,this.parentElement=r,this.ensureMermaidContainer(),this.currentDiagramString=this.buildDiagramString()}ensureMermaidContainer(){let e=this.parentElement.querySelector(`#${this.mermaidContainerId}`);e||(e=document.createElement("div"),e.id=this.mermaidContainerId,e.className="mermaid",this.parentElement.appendChild(e))}addParticipant(e,r){if(!this.participantAdded[e]){let n=1;for(let i=this.diagramLines.length-1;i>=1;i--)if(this.diagramLines[i].startsWith("participant ")){n=i+1;break}this.diagramLines.splice(n,0,`participant ${e} as ${r}`),this.participantAdded[e]=!0}}resetDiagramState(){this.diagramLines=["sequenceDiagram"],this.pageNames={},this.pageCounter=1,this.participantAdded={}}buildDiagramString(){return this.diagramLines.length<=1?"sequenceDiagram":this.diagramLines.join(`
|
|
463
|
-
`)}generateDiagramFromHistory(){if(this.resetDiagramState(),window.haibunCapturedMessages){const r=window.haibunCapturedMessages.filter(n=>{var i,a;return((a=(i=n.messageContext)==null?void 0:i.artifact)==null?void 0:a.artifactType)==="json/http/trace"&&n.messageContext.artifact.httpEvent!=="route"});for(const n of r)if(n.messageContext&&n.messageContext.artifact){const i=n.messageContext.artifact;i&&i.trace&&typeof i.trace=="object"&&this.processSingleEvent(i.trace,i.httpEvent)}}this.buildDiagramString()===this.currentDiagramString?this.needsUpdate=!1:this.needsUpdate=!0}processSingleEvent(e,r,n=eue){this.needsUpdate=!0;const{requestingPage:i,requestingURL:a,method:s,status:o,statusText:l,headers:u}=e;let h="UnknownServerAlias",d="UnknownServer";if(a)try{const g=new URL(a);d=g.hostname,g.hostname==="localhost"&&g.port&&(d=`${g.hostname}:${g.port}`),d?h=d.toLowerCase().replace(/[.:-]/g,""):(h="sourcealias",d="Source")}catch{h="invalidurlalias",d="InvalidURL"}if(this.addParticipant(h,d),rue(n,r,d,e))return;let f="UnknownPageAlias",p="UnknownPage";if(i){const g=this.pageNames[i];if(!g)f=i.toLowerCase().replace(/[.-]/g,""),p=i,f.trim()||(f=`Page${this.pageCounter}`),this.pageNames[i]=f,this.addParticipant(f,p),this.pageCounter++;else{f=g;const m=this.diagramLines.find(v=>v.startsWith(`participant ${f} as `));m?p=m.substring(m.indexOf(" as ")+4):p=f}}else f="ClientPage",p="Client Page",this.addParticipant(f,p);if(s&&a){const g=Hf(`${s} ${e8(a)}`);if(this.diagramLines.push(`${f}->>${h}: ${g}`),u){if(u.referer){const m=e8(Hf(`Referer: ${u.referer}`));this.diagramLines.push(`Note right of ${f}: ${m}`)}if(u.accept){const m=Hf(`Accept: ${u.accept}`);this.diagramLines.push(`Note right of ${f}: ${m}`)}if(u["content-type"]){const m=Hf(`Content-type: ${u["content-type"]}`);this.diagramLines.push(`Note right of ${f}: ${m}`)}}}if(o){const g=Hf(`${o} ${l||""}`);this.diagramLines.push(`${h}-->>${f}: ${g}`)}}getDiagram(){return this.buildDiagramString()}getNeedsUpdate(){return this.needsUpdate}setNeedsUpdate(e){this.needsUpdate=e}async update(){this.generateDiagramFromHistory();const e=this.parentElement.querySelector(`#${this.mermaidContainerId}`);if(!e){console.error("Mermaid container not found for ID:",this.mermaidContainerId);return}if(!this.needsUpdate&&e.querySelector("svg"))return;const r=this.getDiagram();try{dy.initialize({maxTextSize:9e5,startOnLoad:!1}),e.innerHTML="";const n=`<pre class="mermaid">${r}</pre>`;e.insertAdjacentHTML("beforeend",n);const i=e.querySelector(".mermaid");i?(await dy.run({nodes:[i]}),console.
|
|
463
|
+
`)}generateDiagramFromHistory(){if(this.resetDiagramState(),window.haibunCapturedMessages){const r=window.haibunCapturedMessages.filter(n=>{var i,a;return((a=(i=n.messageContext)==null?void 0:i.artifact)==null?void 0:a.artifactType)==="json/http/trace"&&n.messageContext.artifact.httpEvent!=="route"});for(const n of r)if(n.messageContext&&n.messageContext.artifact){const i=n.messageContext.artifact;i&&i.trace&&typeof i.trace=="object"&&this.processSingleEvent(i.trace,i.httpEvent)}}this.buildDiagramString()===this.currentDiagramString?this.needsUpdate=!1:this.needsUpdate=!0}processSingleEvent(e,r,n=eue){this.needsUpdate=!0;const{requestingPage:i,requestingURL:a,method:s,status:o,statusText:l,headers:u}=e;let h="UnknownServerAlias",d="UnknownServer";if(a)try{const g=new URL(a);d=g.hostname,g.hostname==="localhost"&&g.port&&(d=`${g.hostname}:${g.port}`),d?h=d.toLowerCase().replace(/[.:-]/g,""):(h="sourcealias",d="Source")}catch{h="invalidurlalias",d="InvalidURL"}if(this.addParticipant(h,d),rue(n,r,d,e))return;let f="UnknownPageAlias",p="UnknownPage";if(i){const g=this.pageNames[i];if(!g)f=i.toLowerCase().replace(/[.-]/g,""),p=i,f.trim()||(f=`Page${this.pageCounter}`),this.pageNames[i]=f,this.addParticipant(f,p),this.pageCounter++;else{f=g;const m=this.diagramLines.find(v=>v.startsWith(`participant ${f} as `));m?p=m.substring(m.indexOf(" as ")+4):p=f}}else f="ClientPage",p="Client Page",this.addParticipant(f,p);if(s&&a){const g=Hf(`${s} ${e8(a)}`);if(this.diagramLines.push(`${f}->>${h}: ${g}`),u){if(u.referer){const m=e8(Hf(`Referer: ${u.referer}`));this.diagramLines.push(`Note right of ${f}: ${m}`)}if(u.accept){const m=Hf(`Accept: ${u.accept}`);this.diagramLines.push(`Note right of ${f}: ${m}`)}if(u["content-type"]){const m=Hf(`Content-type: ${u["content-type"]}`);this.diagramLines.push(`Note right of ${f}: ${m}`)}}}if(o){const g=Hf(`${o} ${l||""}`);this.diagramLines.push(`${h}-->>${f}: ${g}`)}}getDiagram(){return this.buildDiagramString()}getNeedsUpdate(){return this.needsUpdate}setNeedsUpdate(e){this.needsUpdate=e}async update(){this.generateDiagramFromHistory();const e=this.parentElement.querySelector(`#${this.mermaidContainerId}`);if(!e){console.error("Mermaid container not found for ID:",this.mermaidContainerId);return}if(!this.needsUpdate&&e.querySelector("svg"))return;const r=this.getDiagram();try{dy.initialize({maxTextSize:9e5,startOnLoad:!1}),e.innerHTML="";const n=`<pre class="mermaid">${r}</pre>`;e.insertAdjacentHTML("beforeend",n);const i=e.querySelector(".mermaid");i?(await dy.run({nodes:[i]}),console.info("Mermaid diagram rendered."),this.currentDiagramString=r,this.needsUpdate=!1):(console.error("Mermaid pre element not found after insert."),e.innerHTML="<pre>Error: Could not find .mermaid element for rendering.</pre>")}catch(n){console.error(`Failed Mermaid diagram definition:
|
|
464
464
|
`,r),console.error("Error rendering Mermaid diagram:",n);const a=(typeof n=="object"&&n!==null&&"str"in n?n.str:null)||(n instanceof Error?n.message:String(n));e.innerHTML=`<pre>Error rendering Mermaid diagram:
|
|
465
465
|
|
|
466
466
|
${a}
|
|
@@ -469,7 +469,7 @@ ${a}
|
|
|
469
469
|
${r}</pre>`,this.currentDiagramString=r,this.needsUpdate=!1}}}function rue(t,e,r,{requestingURL:n,headers:i}){if(!r||n==="about:blank")return!0;if(e==="request"){if(i&&i.accept){const a=i.accept;if(!t.request.accept.some(s=>a.includes(s)))return!0}}else if(e==="response"){if(i&&i["content-type"]){const a=i["content-type"];if(!t.response.type.some(s=>a.includes(s)))return!0}}else return console.warn(`Unknown HTTP event type: ${e}`),!0;return!1}class nue extends jl{constructor(r){super(r);xt(this,"placementTarget");xt(this,"diagramGenerator");xt(this,"id");this.artifact=r,this.placementTarget=document.querySelector("#sequence-diagram")?"haibun-focus":"details"}deriveLabel(){return"⇄ Trace"}async render(r){r.innerHTML="";const n=document.createElement("pre");if(n.classList.add("haibun-message-details-json"),n.appendChild(m6(this.artifact.trace)),r.appendChild(n),this.diagramGenerator||(this.id=Math.random().toString(36).substring(2,15),this.diagramGenerator=new tue(this.id,r)),this.artifact.httpEvent!=="route"){const i=document.getElementById("sequence-diagram");if(i&&i.offsetParent!==null)try{await this.diagramGenerator.update()}catch(a){console.error("Error updating sequence diagram:",a);const s=document.createElement("p");s.className="haibun-artifact-error",s.textContent=`Error updating sequence diagram: ${a.message}`,r.appendChild(s)}}}}const vo=t=>t?t.replace(/\W/g,"_"):"empty_sanitized_string",hc=t=>t==null||t===""?'" "':`"${t.replace(/"/g,"#quot;")}"`;function HF(t){const e=new Set;return t.forEach(r=>{r.base&&typeof r.base=="string"&&r.base.trim()!==""&&e.add(r.base)}),e}function iue(t){const e=new Set;return t.forEach(r=>{(r.featureSteps??[]).forEach(i=>{i.path&&i.path!==r.path&&e.add(i.path)})}),e}const aue=Object.freeze(Object.defineProperty({__proto__:null,getBackgroundFeatures:iue,getBaseLocations:HF},Symbol.toStringTag,{value:"Module"}));async function sue(t,e=!0){return(await oue(t,e)).join(`
|
|
470
470
|
`)}async function oue(t,e=!0){const r=["graph TD"];HF(t).forEach(l=>{const u=String(l);r.push(` base_${vo(u)}(${hc(u)})`)});const i=new Set;for(const l of t)for(const u of l.featureSteps)for(const[h,d]of Object.entries(u.action.named||{}))/^e_\d+$/.test(h)&&i.add(d);i.size&&(r.push(" subgraph ENV [Environment Variables]"),i.forEach(l=>{r.push(` env_${vo(l)}([${hc(l)}])`)}),r.push(" end"));const{getBackgroundFeatures:a}=await ur(async()=>{const{getBackgroundFeatures:l}=await Promise.resolve().then(()=>aue);return{getBackgroundFeatures:l}},void 0,import.meta.url),s=a(t);s.size&&(r.push(" subgraph BACKGROUNDS [Backgrounds]"),s.forEach(l=>{r.push(` bg_${vo(l)}[${hc(l)}]`)}),r.push(" end"));const o=[];return t.forEach(l=>{const u=`f_${vo(l.path)}`;r.push(` subgraph ${u} [${hc(l.path)}]`);const h=`base_${vo(l.base)}`;o.push(` ${h} --> ${u}`);let d=0,f=null,p=null,g=!1;l.featureSteps.forEach((m,v)=>{const y=vo(m.action.actionName),b=`s_${y}_${v}`,w=f?" ":" ",T=!!f;if(m.action.actionName==="scenarioStart")f&&r.push(" end"),f=`sc_${++d}`,r.push(` subgraph ${f} [${hc(m.in)}]`),p=null;else if(r.push(`${w}${b}[${hc(m.in)}]`),p&&T===g&&r.push(`${w}${p} ==> ${b}`),p=b,m.path!==l.path&&(s.has(m.path)?r.push(`${w}${b} -.-> bg_${vo(m.path)}`):console.warn(`Background step patah "${m.path}" not found in backgrounds set.`)),e&&m.action.stepVariables&&m.action.actionName!=="scenarioStart"){const E=new Set;m.action.stepVariables.forEach((S,k)=>{const L=S.name;let A,R=!1,C;const I=["q","b","t","s","c","a","n"],_=`e_${k}`;if(m.action.named&&m.action.named[_]!==void 0)A=String(m.action.named[_]),R=!0,C=A;else for(const N of I){const M=`${N}_${k}`;if(m.action.named&&m.action.named[M]!==void 0){A=String(m.action.named[M]);break}}if(A!==void 0)if(R&&C)r.push(`${w}${b} -.-> env_${vo(C)}`);else{const N=`sv_${y}_${v}_${vo(L)}`;E.has(N)||(r.push(`${w}${N}([${hc(L+" = "+A)}])`),E.add(N)),r.push(`${w}${b} -.-> ${N}`)}})}g=T}),f&&r.push(" end"),r.push(" end")}),r.push(...o),r}dy.initialize({maxTextSize:1e6,maxEdges:1e4});let lue=0;class cue extends jl{constructor(r){super(r);xt(this,"placementTarget","details");this.artifact=r}async render(r){if(!this.artifact.resolvedFeatures||this.artifact.resolvedFeatures.length===0){r.innerHTML="<p>No resolved features to display.</p>";return}const n=await sue(this.artifact.resolvedFeatures,!1),i=`mermaid-graph-svg-${lue++}-${Date.now()}`;r.innerHTML="";try{const{svg:a,bindFunctions:s}=await dy.render(i,n);r.innerHTML=a,s&&s(r)}catch(a){console.error("Error rendering Mermaid graph:",a),r.innerHTML=`<p class="haibun-artifact-error">Error rendering graph: ${a.message}</p>`}}}class uue extends rf{constructor(r,n,i,a){super("div",["haibun-log-entry",`haibun-level-${r}`]);xt(this,"detailsSummary");xt(this,"messageContent");(a==null?void 0:a.incident)===Hc.STEP_START&&this.addClass("haibun-step-start"),this.setData("time",`${n}`),this.detailsSummary=new hue(r,n),this.messageContent=new due(i,a),this.append(this.detailsSummary),this.append(this.messageContent)}}class hue extends rf{constructor(e,r){super("summary","haibun-log-details-summary");const n=gue(r);this.setHtml(`${e}<div class="time-small">${mue(n)}s</div>`)}}class due extends rf{constructor(r,n){super("div","haibun-message-content");xt(this,"artifactDisplay",null);xt(this,"artifactContainer",null);xt(this,"hasArtifactBeenRendered",!1);if(n){const{incident:i,incidentDetails:a,artifact:s}=n,o=vue(r,n);let l=Hc[i]||"Context";s&&(this.artifactDisplay=pue(s),this.artifactDisplay&&(l=this.artifactDisplay.label!==this.artifactDisplay.artifactType?this.artifactDisplay.label:this.artifactDisplay.artifactType||l));const u=document.createElement("details");u.classList.add("haibun-context-details");const h=new fue(o,l);if(i===Hc.STEP_START){const d=document.createElement("div");d.className="haibun-loader",h.element.prepend(d)}if(u.appendChild(h.element),a){const d=document.createElement("pre");d.classList.add("haibun-message-details-json"),d.appendChild(m6(a)),u.appendChild(d)}if(this.artifactDisplay){const d=this.artifactDisplay.placementTarget;if(!d||d==="details"){this.artifactContainer=document.createElement("div"),this.artifactContainer.className=`haibun-artifact-container haibun-artifact-${this.artifactDisplay.artifactType.replace(/\//g,"-")}`,this.artifactContainer.textContent="Artifact is loading...",u.appendChild(this.artifactContainer);const f=this.artifactContainer,p=async()=>{if(u.open&&this.artifactDisplay&&!this.hasArtifactBeenRendered){try{await this.artifactDisplay.render(f)}catch(g){console.error(`[LogMessageContent] Error rendering artifact ${this.artifactDisplay.label}:`,g),f.innerHTML=`<p class="haibun-artifact-error">Error loading artifact: ${g.message}</p>`}this.hasArtifactBeenRendered=!0}};u.addEventListener("toggle",()=>{p()})}else this.renderSpecialPlacementArtifact(this.artifactDisplay,d)}this.append(u)}else this.addClass("haibun-simple-message"),this.setText(r)}async renderSpecialPlacementArtifact(r,n){const i=async a=>{const s=document.createElement("div");s.className=`haibun-artifact-special-placement haibun-artifact-${r.artifactType.replace(/\//g,"-")}`,s.textContent="Artifact is loading...";try{await r.render(s)}catch(o){console.error(`[LogMessageContent] Error rendering artifact ${r.label} for special placement ${n}:`,o),s.innerHTML=`<p class="haibun-artifact-error">Error loading artifact: ${o.message}</p>`}a(s)};if(n==="body")await i(a=>document.body.appendChild(a));else if(n==="haibun-focus"){const a=document.querySelector("#haibun-focus");a?await i(s=>{a.replaceChildren(s),a.style.display="flex"}):console.warn("[LogMessageContent] #haibun-focus container not found for artifact placement.")}}}class fue extends rf{constructor(r,n){super("summary","haibun-log-message-summary");xt(this,"labelSpan");this.labelSpan=document.createElement("span"),this.labelSpan.className="details-type",this.updateLabel(n),this.setText(r),this.append(this.labelSpan)}updateLabel(r){this.labelSpan.textContent=r.replace(/_/g," ")}}function pue(t){const{artifactType:e}=t;switch(e){case"html":return new CY(t);case"image":return new AY(t);case"speech":return new LY(t);case"video":return new _Y(t);case"video/start":return new RY(t);case"json":return new SY(t);case"json/http/trace":return new nue(t);case"resolvedFeatures":return new cue(t);default:throw Error(`Unsupported artifact type "${t.artifactType}" for display from ${e}`)}}function gue(t){const e=parseInt(document.body.dataset.startTime||`${Date.now()}`,10);return t-e}function mue(t){return(t/1e3).toFixed(3).replace(".",":")}function vue(t,e){var r,n;return(e==null?void 0:e.incident)===Hc.STEP_END&&((n=(r=e.incidentDetails)==null?void 0:r.result)!=null&&n.in)?`${t} ${e.incidentDetails.result.in}`:t}let Nm=!1;function yue(){const t=document.getElementById("haibun-debug-level-select"),e=["debug","log","info","error"],r=n=>{const i=e.indexOf(n);let a="";e.forEach((o,l)=>{l<i?a+=`div.haibun-log-entry.haibun-level-${o}:not(.disappeared) { display: none; }
|
|
471
471
|
`:a+=`div.haibun-log-entry.haibun-level-${o}:not(.disappeared) { display: flex; }
|
|
472
|
-
`});let s=document.getElementById("haibun-dynamic-styles");s||(s=document.createElement("style"),s.id="haibun-dynamic-styles",document.head.appendChild(s)),s.textContent=a};t&&(t.addEventListener("change",n=>{const i=n.target;r(i.value)}),r(t.value)),xue()}function WF(t){var l;if(Nm)return;const e=document.body.dataset.startTime,r=(l=document.getElementById("haibun-video-start"))==null?void 0:l.dataset.start;if(!e||!r)return;const n=parseInt(e,10),i=parseInt(r,10);if(isNaN(n)||isNaN(i))return;const a=n+i,s=t.currentTime*1e3;let o=null;document.querySelectorAll(".haibun-log-entry").forEach(u=>{u.classList.remove("haibun-stepper-played","haibun-stepper-notplayed","haibun-stepper-current");const h=u.dataset.time;if(!h)return;const d=parseInt(h,10);if(isNaN(d))return;d-a<=s?(u.classList.add("haibun-stepper-played"),(!o||d>parseInt(o.dataset.time||"0",10))&&(o=u)):u.classList.add("haibun-stepper-notplayed")}),o&&(o.classList.add("haibun-stepper-current"),setTimeout(()=>{o.scrollIntoView({behavior:"smooth",block:"center"})},0))}function t8(t){let e=t.currentTime;setInterval(()=>{t.currentTime!==e&&(e=t.currentTime,WF(t))},100)}function xue(){const t=document.getElementById("sequence-diagram"),e=document.getElementById("haibun-focus"),r=document.getElementById("haibun-log-display-area");r.addEventListener("click",u=>{var f;const h=u.target,d=bue(h);if(d&&d.dataset.time){const p=e.querySelector("video");if(p){const g=document.body.dataset.startTime,m=(f=document.getElementById("haibun-video-start"))==null?void 0:f.dataset.start;if(!g||!m){console.warn("Monitor start time or video start offset not found. Cannot seek video.");return}const v=parseInt(g,10),y=parseInt(m,10);if(isNaN(v)||isNaN(y)){console.warn("Invalid monitor start time or video start offset.");return}const b=v+y,w=parseInt(d.dataset.time,10);if(isNaN(w)){console.warn("Clicked log entry missing or invalid data-time:",d);return}const E=(w-b)/1e3;isNaN(E)||(p.currentTime=Math.max(0,E))}}});let n;r.addEventListener("scroll",()=>{clearTimeout(n),n=window.setTimeout(()=>{Nm=!0},150)});const i=u=>{let h;const d=()=>{WF(u)};u.addEventListener("seeked",()=>{Nm=!1,d()}),u.addEventListener("play",()=>{Nm=!1,h===void 0&&(d(),h=window.setInterval(d,50))});const f=()=>{h!==void 0&&(clearInterval(h),h=void 0,d())};u.addEventListener("pause",f),u.addEventListener("ended",f),d()};let a=e.querySelector("video");a&&(i(a),t8(a)),new MutationObserver(u=>{u.forEach(h=>{if(h.type==="childList"){const d=e.querySelector("video");d&&d!==a&&(console.log("New video detected, setting up handlers."),i(d),t8(d),a=d)}})}).observe(e,{childList:!0});const o=new MutationObserver(u=>{u.forEach(h=>{h.type==="childList"&&h.addedNodes.length>0&&h.target===t&&(console.log("Sequence diagram content detected."),o.disconnect())})});t&&o.observe(t,{childList:!0}),window.addEventListener("load",()=>{setTimeout(()=>{const u=document.querySelector(".haibun-log-entry.haibun-stepper-current");u&&u.scrollIntoView({behavior:"auto",block:"nearest"})},0)});function l(){const u=document.getElementById("haibun-log-display-area");if(!u)return;let h=u.querySelector(".haibun-log-entry.haibun-stepper-notplayed");if(!h){const d=u.querySelectorAll(".haibun-log-entry.haibun-stepper-played");d.length&&(h=d[d.length-1])}h&&h.scrollIntoView({behavior:"smooth",block:"center"})}r&&new MutationObserver(()=>{l()}).observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),window.addEventListener("DOMContentLoaded",()=>{const u=document.querySelectorAll(".haibun-log-entry");u.length>0&&(document.querySelector(".haibun-stepper-current")||(u.forEach(h=>{h.classList.remove("haibun-stepper-current","haibun-stepper-played","haibun-stepper-notplayed"),h.classList.add("haibun-stepper-notplayed")}),u[0].classList.add("haibun-stepper-current")),setTimeout(()=>{u[0].scrollIntoView({behavior:"smooth",block:"center"})},0))})}function bue(t){let e=t;for(;e&&!e.classList.contains("haibun-log-entry");)e=e.parentElement;return e}window.haibunCapturedMessages=window.haibunCapturedMessages||[];console.info("monitor.ts: window.haibunCapturedMessages initialized.");window.receiveLogData=t=>{window.haibunCapturedMessages.push(t),YF(t)};function YF(t){const{level:e,message:r,messageContext:n,timestamp:i}=t,a=document.getElementById("haibun-log-display-area"),o=new uue(e,i,r,n).element;if(a.appendChild(o),(n==null?void 0:n.incident)===Hc.STEP_END){const l=a.querySelectorAll(".haibun-step-start:not(.disappeared)");l.length>0?l[l.length-1].classList.add("disappeared"):console.warn("Received STEP_END but found no active STEP_START log entry to hide.")}a.scrollTop=a.scrollHeight}function wue(){document.getElementById("haibun-log-display-area")&&(console.log(`Rendering ${window.haibunCapturedMessages.length} log entries...`),window.haibunCapturedMessages.forEach(YF))}document.addEventListener("DOMContentLoaded",()=>{document.body.dataset.startTime||(document.body.dataset.startTime=`${Date.now()}`),wue(),yue(),console.info("Initial logs rendered.")});class ba{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new ba(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Ka{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Ka(r,ba.range(this,e))}}class at{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var h;a+15<o.length?h=o.slice(a,a+15)+"…":h=o.slice(a),n+=u+l+h}var d=new Error(n);return d.name="ParseError",d.__proto__=at.prototype,d.position=i,i!=null&&a!=null&&(d.length=a-i),d.rawMessage=e,d}}at.prototype.__proto__=Error.prototype;var Tue=function(e,r){return e.indexOf(r)!==-1},Eue=function(e,r){return e===void 0?r:e},kue=/([A-Z])/g,Sue=function(e){return e.replace(kue,"-$1").toLowerCase()},Cue={"&":"&",">":">","<":"<",'"':""","'":"'"},Aue=/[&><"']/g;function _ue(t){return String(t).replace(Aue,e=>Cue[e])}var XF=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},Lue=function(e){var r=XF(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Rue=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Nue=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},$t={contains:Tue,deflt:Eue,escape:_ue,hyphenate:Sue,getBaseElem:XF,isCharacterBox:Lue,protocolFromUrl:Nue},hp={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Due(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class SE{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in hp)if(hp.hasOwnProperty(r)){var n=hp[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:Due(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new at("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=$t.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class cl{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return $s[Iue[this.id]]}sub(){return $s[Mue[this.id]]}fracNum(){return $s[Oue[this.id]]}fracDen(){return $s[Pue[this.id]]}cramp(){return $s[Bue[this.id]]}text(){return $s[Fue[this.id]]}isTight(){return this.size>=2}}var CE=0,fy=1,Th=2,$o=3,Fp=4,Ya=5,$d=6,Fi=7,$s=[new cl(CE,0,!1),new cl(fy,0,!0),new cl(Th,1,!1),new cl($o,1,!0),new cl(Fp,2,!1),new cl(Ya,2,!0),new cl($d,3,!1),new cl(Fi,3,!0)],Iue=[Fp,Ya,Fp,Ya,$d,Fi,$d,Fi],Mue=[Ya,Ya,Ya,Ya,Fi,Fi,Fi,Fi],Oue=[Th,$o,Fp,Ya,$d,Fi,$d,Fi],Pue=[$o,$o,Ya,Ya,Fi,Fi,Fi,Fi],Bue=[fy,fy,$o,$o,Ya,Ya,Fi,Fi],Fue=[CE,fy,Th,$o,Th,$o,Th,$o],Gt={DISPLAY:$s[CE],TEXT:$s[Th],SCRIPT:$s[Fp],SCRIPTSCRIPT:$s[$d]},mw=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function $ue(t){for(var e=0;e<mw.length;e++)for(var r=mw[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}var Dm=[];mw.forEach(t=>t.blocks.forEach(e=>Dm.push(...e)));function jF(t){for(var e=0;e<Dm.length;e+=2)if(t>=Dm[e]&&t<=Dm[e+1])return!0;return!1}var Uu=80,zue=function(e,r){return"M95,"+(622+e+r)+`
|
|
472
|
+
`});let s=document.getElementById("haibun-dynamic-styles");s||(s=document.createElement("style"),s.id="haibun-dynamic-styles",document.head.appendChild(s)),s.textContent=a};t&&(t.addEventListener("change",n=>{const i=n.target;r(i.value)}),r(t.value)),xue()}function WF(t){var l;if(Nm)return;const e=document.body.dataset.startTime,r=(l=document.getElementById("haibun-video-start"))==null?void 0:l.dataset.start;if(!e||!r)return;const n=parseInt(e,10),i=parseInt(r,10);if(isNaN(n)||isNaN(i))return;const a=n+i,s=t.currentTime*1e3;let o=null;document.querySelectorAll(".haibun-log-entry").forEach(u=>{u.classList.remove("haibun-stepper-played","haibun-stepper-notplayed","haibun-stepper-current");const h=u.dataset.time;if(!h)return;const d=parseInt(h,10);if(isNaN(d))return;d-a<=s?(u.classList.add("haibun-stepper-played"),(!o||d>parseInt(o.dataset.time||"0",10))&&(o=u)):u.classList.add("haibun-stepper-notplayed")}),o&&(o.classList.add("haibun-stepper-current"),setTimeout(()=>{o.scrollIntoView({behavior:"smooth",block:"center"})},0))}function t8(t){let e=t.currentTime;setInterval(()=>{t.currentTime!==e&&(e=t.currentTime,WF(t))},100)}function xue(){const t=document.getElementById("sequence-diagram"),e=document.getElementById("haibun-focus"),r=document.getElementById("haibun-log-display-area");r.addEventListener("click",u=>{var f;const h=u.target,d=bue(h);if(d&&d.dataset.time){const p=e.querySelector("video");if(p){const g=document.body.dataset.startTime,m=(f=document.getElementById("haibun-video-start"))==null?void 0:f.dataset.start;if(!g||!m){console.warn("Monitor start time or video start offset not found. Cannot seek video.");return}const v=parseInt(g,10),y=parseInt(m,10);if(isNaN(v)||isNaN(y)){console.warn("Invalid monitor start time or video start offset.");return}const b=v+y,w=parseInt(d.dataset.time,10);if(isNaN(w)){console.warn("Clicked log entry missing or invalid data-time:",d);return}const E=(w-b)/1e3;isNaN(E)||(p.currentTime=Math.max(0,E))}}});let n;r.addEventListener("scroll",()=>{clearTimeout(n),n=window.setTimeout(()=>{Nm=!0},150)});const i=u=>{let h;const d=()=>{WF(u)};u.addEventListener("seeked",()=>{Nm=!1,d()}),u.addEventListener("play",()=>{Nm=!1,h===void 0&&(d(),h=window.setInterval(d,50))});const f=()=>{h!==void 0&&(clearInterval(h),h=void 0,d())};u.addEventListener("pause",f),u.addEventListener("ended",f),d()};let a=e.querySelector("video");a&&(i(a),t8(a)),new MutationObserver(u=>{u.forEach(h=>{if(h.type==="childList"){const d=e.querySelector("video");d&&d!==a&&(console.info("New video detected, setting up handlers."),i(d),t8(d),a=d)}})}).observe(e,{childList:!0});const o=new MutationObserver(u=>{u.forEach(h=>{h.type==="childList"&&h.addedNodes.length>0&&h.target===t&&(console.info("Sequence diagram content detected."),o.disconnect())})});t&&o.observe(t,{childList:!0}),window.addEventListener("load",()=>{setTimeout(()=>{const u=document.querySelector(".haibun-log-entry.haibun-stepper-current");u&&u.scrollIntoView({behavior:"auto",block:"nearest"})},0)});function l(){const u=document.getElementById("haibun-log-display-area");if(!u)return;let h=u.querySelector(".haibun-log-entry.haibun-stepper-notplayed");if(!h){const d=u.querySelectorAll(".haibun-log-entry.haibun-stepper-played");d.length&&(h=d[d.length-1])}h&&h.scrollIntoView({behavior:"smooth",block:"center"})}r&&new MutationObserver(()=>{l()}).observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),window.addEventListener("DOMContentLoaded",()=>{const u=document.querySelectorAll(".haibun-log-entry");u.length>0&&(document.querySelector(".haibun-stepper-current")||(u.forEach(h=>{h.classList.remove("haibun-stepper-current","haibun-stepper-played","haibun-stepper-notplayed"),h.classList.add("haibun-stepper-notplayed")}),u[0].classList.add("haibun-stepper-current")),setTimeout(()=>{u[0].scrollIntoView({behavior:"smooth",block:"center"})},0))})}function bue(t){let e=t;for(;e&&!e.classList.contains("haibun-log-entry");)e=e.parentElement;return e}window.haibunCapturedMessages=window.haibunCapturedMessages||[];console.info("monitor.ts: window.haibunCapturedMessages initialized.");window.receiveLogData=t=>{window.haibunCapturedMessages.push(t),YF(t)};function YF(t){const{level:e,message:r,messageContext:n,timestamp:i}=t,a=document.getElementById("haibun-log-display-area"),o=new uue(e,i,r,n).element;if(a.appendChild(o),(n==null?void 0:n.incident)===Hc.STEP_END){const l=a.querySelectorAll(".haibun-step-start:not(.disappeared)");l.length>0?l[l.length-1].classList.add("disappeared"):console.warn("Received STEP_END but found no active STEP_START log entry to hide.")}a.scrollTop=a.scrollHeight}function wue(){document.getElementById("haibun-log-display-area")&&(console.info(`Rendering ${window.haibunCapturedMessages.length} log entries...`),window.haibunCapturedMessages.forEach(YF))}document.addEventListener("DOMContentLoaded",()=>{document.body.dataset.startTime||(document.body.dataset.startTime=`${Date.now()}`),wue(),yue(),console.info("Initial logs rendered.")});class ba{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new ba(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Ka{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Ka(r,ba.range(this,e))}}class at{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var h;a+15<o.length?h=o.slice(a,a+15)+"…":h=o.slice(a),n+=u+l+h}var d=new Error(n);return d.name="ParseError",d.__proto__=at.prototype,d.position=i,i!=null&&a!=null&&(d.length=a-i),d.rawMessage=e,d}}at.prototype.__proto__=Error.prototype;var Tue=function(e,r){return e.indexOf(r)!==-1},Eue=function(e,r){return e===void 0?r:e},kue=/([A-Z])/g,Sue=function(e){return e.replace(kue,"-$1").toLowerCase()},Cue={"&":"&",">":">","<":"<",'"':""","'":"'"},Aue=/[&><"']/g;function _ue(t){return String(t).replace(Aue,e=>Cue[e])}var XF=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},Lue=function(e){var r=XF(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Rue=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Nue=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},$t={contains:Tue,deflt:Eue,escape:_ue,hyphenate:Sue,getBaseElem:XF,isCharacterBox:Lue,protocolFromUrl:Nue},hp={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function Due(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class SE{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in hp)if(hp.hasOwnProperty(r)){var n=hp[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:Due(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new at("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=$t.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class cl{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return $s[Iue[this.id]]}sub(){return $s[Mue[this.id]]}fracNum(){return $s[Oue[this.id]]}fracDen(){return $s[Pue[this.id]]}cramp(){return $s[Bue[this.id]]}text(){return $s[Fue[this.id]]}isTight(){return this.size>=2}}var CE=0,fy=1,Th=2,$o=3,Fp=4,Ya=5,$d=6,Fi=7,$s=[new cl(CE,0,!1),new cl(fy,0,!0),new cl(Th,1,!1),new cl($o,1,!0),new cl(Fp,2,!1),new cl(Ya,2,!0),new cl($d,3,!1),new cl(Fi,3,!0)],Iue=[Fp,Ya,Fp,Ya,$d,Fi,$d,Fi],Mue=[Ya,Ya,Ya,Ya,Fi,Fi,Fi,Fi],Oue=[Th,$o,Fp,Ya,$d,Fi,$d,Fi],Pue=[$o,$o,Ya,Ya,Fi,Fi,Fi,Fi],Bue=[fy,fy,$o,$o,Ya,Ya,Fi,Fi],Fue=[CE,fy,Th,$o,Th,$o,Th,$o],Gt={DISPLAY:$s[CE],TEXT:$s[Th],SCRIPT:$s[Fp],SCRIPTSCRIPT:$s[$d]},mw=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function $ue(t){for(var e=0;e<mw.length;e++)for(var r=mw[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}var Dm=[];mw.forEach(t=>t.blocks.forEach(e=>Dm.push(...e)));function jF(t){for(var e=0;e<Dm.length;e+=2)if(t>=Dm[e]&&t<=Dm[e+1])return!0;return!1}var Uu=80,zue=function(e,r){return"M95,"+(622+e+r)+`
|
|
473
473
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
474
474
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
475
475
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|