@haibun/web-playwright 1.62.0 → 1.62.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/monitor/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqI,eAAe,EAA6B,MAAM,6CAA6C,CAAC;AAI5O,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAW1F,qBAAa,QAAS,SAAQ,YAAY;IACzC,OAAO,CAAC,cAAc,CAAoB;IAC1C,OAAO,CAAC,cAAc,CAAoB;gBAE9B,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,eAAe;CAe/F;AAYD,qBAAa,iBAAkB,SAAQ,YAAY;IAClD,QAAQ,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CAAQ;IACxD,OAAO,CAAC,iBAAiB,CAA4B;IACrD,OAAO,CAAC,uBAAuB,CAAS;gBAE5B,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/monitor/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqI,eAAe,EAA6B,MAAM,6CAA6C,CAAC;AAI5O,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAW1F,qBAAa,QAAS,SAAQ,YAAY;IACzC,OAAO,CAAC,cAAc,CAAoB;IAC1C,OAAO,CAAC,cAAc,CAAoB;gBAE9B,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,eAAe;CAe/F;AAYD,qBAAa,iBAAkB,SAAQ,YAAY;IAClD,QAAQ,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CAAQ;IACxD,OAAO,CAAC,iBAAiB,CAA4B;IACrD,OAAO,CAAC,uBAAuB,CAAS;gBAE5B,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,eAAe;YAoE/C,8BAA8B;CA4B5C"}
|
|
@@ -61,7 +61,7 @@ export class LogMessageContent extends LogComponent {
|
|
|
61
61
|
}
|
|
62
62
|
detailsElement.appendChild(messageSummary.element);
|
|
63
63
|
if (incidentDetails) {
|
|
64
|
-
const pre = document.createElement('
|
|
64
|
+
const pre = document.createElement('div');
|
|
65
65
|
pre.classList.add('haibun-message-details-json');
|
|
66
66
|
pre.appendChild(disclosureJson(incidentDetails));
|
|
67
67
|
detailsElement.appendChild(pre);
|
|
@@ -71,7 +71,7 @@ export class LogMessageContent extends LogComponent {
|
|
|
71
71
|
if (!placement || placement === 'details') {
|
|
72
72
|
this.artifactContainer = document.createElement('div');
|
|
73
73
|
this.artifactContainer.className = `haibun-artifact-container haibun-artifact-${this.artifactDisplay.artifactType.replace(/\//g, '-')}`;
|
|
74
|
-
this.artifactContainer.textContent = 'Artifact is
|
|
74
|
+
this.artifactContainer.textContent = 'Artifact is rendering...';
|
|
75
75
|
detailsElement.appendChild(this.artifactContainer);
|
|
76
76
|
const targetContainer = this.artifactContainer;
|
|
77
77
|
const onceToggleListener = async () => {
|
|
@@ -89,7 +89,6 @@ export class LogMessageContent extends LogComponent {
|
|
|
89
89
|
detailsElement.addEventListener('toggle', () => { void onceToggleListener(); });
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
92
|
-
// Special placement, artifact rendered outside detailsElement
|
|
93
92
|
void this.renderSpecialPlacementArtifact(this.artifactDisplay, placement);
|
|
94
93
|
}
|
|
95
94
|
}
|
|
@@ -104,7 +103,7 @@ export class LogMessageContent extends LogComponent {
|
|
|
104
103
|
const createAndRenderArtifact = async (targetElementUpdater) => {
|
|
105
104
|
const container = document.createElement('div');
|
|
106
105
|
container.className = `haibun-artifact-special-placement haibun-artifact-${artifactDisplay.artifactType.replace(/\//g, '-')}`;
|
|
107
|
-
container.textContent = 'Artifact is
|
|
106
|
+
container.textContent = 'Artifact is rendering...';
|
|
108
107
|
try {
|
|
109
108
|
await artifactDisplay.render(container);
|
|
110
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/monitor/messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAmB,MAAM,2CAA2C,CAAC;AAE1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,uDAAuD,CAAC;AAExG,MAAM,OAAO,QAAS,SAAQ,YAAY;IACjC,cAAc,CAAoB;IAClC,cAAc,CAAoB;IAE1C,YAAY,KAAa,EAAE,SAAiB,EAAE,OAAe,EAAE,cAAgC;QAC9F,KAAK,CAAC,KAAK,EAAE,CAAC,kBAAkB,EAAE,gBAAgB,KAAK,EAAE,CAAC,CAAC,CAAC;QAC5D,IAAI,cAAc,EAAE,QAAQ,KAAK,qBAAqB,CAAC,UAAU,EAAE,CAAC;YACnE,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QACpC,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,MAAM,EA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,EAAE,CAAC;IACjE,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haibun/web-playwright",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.62.
|
|
4
|
+
"version": "1.62.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.62.
|
|
22
|
-
"@haibun/domain-storage": "1.62.
|
|
21
|
+
"@haibun/core": "1.62.1",
|
|
22
|
+
"@haibun/domain-storage": "1.62.1",
|
|
23
23
|
"playwright": "1.52"
|
|
24
24
|
},
|
|
25
25
|
"gitHead": "7cf9680bd922fb622fb59f1e6bf5b65284cb8fd5",
|
package/web/monitor.html
CHANGED
|
@@ -24,15 +24,13 @@
|
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
background-color: #e8e8e8;
|
|
27
|
+
.haibun-message-details-json {
|
|
29
28
|
padding: 5px 10px;
|
|
30
|
-
border-radius:
|
|
29
|
+
border-radius: 9px;
|
|
31
30
|
font-family: 'Roboto Mono', monospace;
|
|
32
31
|
font-size: 0.6em;
|
|
33
32
|
line-height: 1.4;
|
|
34
33
|
overflow-x: auto;
|
|
35
|
-
white-space: pre-wrap;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
.haibun-header {
|
|
@@ -96,11 +94,6 @@
|
|
|
96
94
|
|
|
97
95
|
.haibun-message-content details summary {
|
|
98
96
|
display: list-item;
|
|
99
|
-
list-style-type: disclosure-closed;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.haibun-message-content details[open] summary {
|
|
103
|
-
list-style-type: disclosure-open;
|
|
104
97
|
}
|
|
105
98
|
|
|
106
99
|
.haibun-log-message-summary {
|
|
@@ -272,7 +265,7 @@
|
|
|
272
265
|
margin-bottom: 5px;
|
|
273
266
|
background-color: #f9f9f9;
|
|
274
267
|
font-family: 'Roboto Mono', monospace;
|
|
275
|
-
|
|
268
|
+
font-size: 1.1em;
|
|
276
269
|
}
|
|
277
270
|
|
|
278
271
|
.json-line {
|
|
@@ -299,7 +292,7 @@
|
|
|
299
292
|
.key.index {
|
|
300
293
|
background-color: #007bff;
|
|
301
294
|
color: white;
|
|
302
|
-
|
|
295
|
+
padding: 2px 2px 2px 4px;
|
|
303
296
|
}
|
|
304
297
|
|
|
305
298
|
.inline-key {
|
|
@@ -314,7 +307,6 @@
|
|
|
314
307
|
|
|
315
308
|
.value {
|
|
316
309
|
color: #0000cd;
|
|
317
|
-
white-space: pre-wrap;
|
|
318
310
|
}
|
|
319
311
|
|
|
320
312
|
.value-string {
|
|
@@ -339,36 +331,39 @@
|
|
|
339
331
|
font-style: italic;
|
|
340
332
|
}
|
|
341
333
|
|
|
342
|
-
.simple-aggregate-inline {
|
|
343
|
-
white-space: pre-wrap;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
334
|
.expandable {
|
|
347
335
|
margin-bottom: 3px;
|
|
348
336
|
}
|
|
349
337
|
|
|
350
|
-
.expandable
|
|
338
|
+
.expandable>summary {
|
|
351
339
|
cursor: pointer;
|
|
352
340
|
display: list-item;
|
|
353
341
|
padding: 2px 0;
|
|
354
342
|
}
|
|
355
343
|
|
|
356
|
-
.expandable
|
|
344
|
+
.expandable>summary::-webkit-details-marker {
|
|
345
|
+
color: #333;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.expandable>summary::marker {
|
|
349
|
+
color: #333;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.expandable>summary .key {
|
|
357
353
|
background-color: #4A0082;
|
|
358
354
|
}
|
|
359
355
|
|
|
360
|
-
.expandable
|
|
356
|
+
.expandable>summary .key.index {
|
|
361
357
|
background-color: #005f87;
|
|
362
358
|
}
|
|
363
359
|
|
|
364
|
-
.expandable
|
|
360
|
+
.expandable:hover {
|
|
365
361
|
background-color: #f0f0f0;
|
|
366
362
|
}
|
|
367
363
|
|
|
368
364
|
.children-summary-inline {
|
|
369
365
|
color: #333;
|
|
370
366
|
margin-left: 5px;
|
|
371
|
-
white-space: pre-wrap;
|
|
372
367
|
}
|
|
373
368
|
|
|
374
369
|
.children-summary-inline.hidden {
|
|
@@ -633,7 +628,7 @@ ${a}
|
|
|
633
628
|
|
|
634
629
|
--- Diagram Definition ---
|
|
635
630
|
${r}</pre>`,this.currentDiagramString=r,this.needsUpdate=!1}}}function aue(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 sue 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");n.classList.add("haibun-message-details-json");const i=b6(this.artifact.trace);if(i&&n.appendChild(i),r.appendChild(n),this.diagramGenerator||(this.id=Math.random().toString(36).substring(2,15),this.diagramGenerator=new iue(this.id,r)),this.artifact.httpEvent!=="route"){const a=document.getElementById("sequence-diagram");if(a&&a.offsetParent!==null)try{await this.diagramGenerator.update()}catch(s){console.error("Error updating sequence diagram:",s);const o=document.createElement("p");o.className="haibun-artifact-error",o.textContent=`Error updating sequence diagram: ${s.message}`,r.appendChild(o)}}}}const vo=t=>t?t.replace(/\W/g,"_"):"empty_sanitized_string",hc=t=>t==null||t===""?'" "':`"${t.replace(/"/g,"#quot;")}"`;function jF(t){const e=new Set;return t.forEach(r=>{r.base&&typeof r.base=="string"&&r.base.trim()!==""&&e.add(r.base)}),e}function oue(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 lue=Object.freeze(Object.defineProperty({__proto__:null,getBackgroundFeatures:oue,getBaseLocations:jF},Symbol.toStringTag,{value:"Module"}));async function cue(t,e=!0){return(await uue(t,e)).join(`
|
|
636
|
-
`)}async function uue(t,e=!0){const r=["graph TD"];jF(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(()=>lue);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((k,S)=>{const L=k.name;let A,R=!1,C;const I=["q","b","t","s","c","a","n"],_=`e_${S}`;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}_${S}`;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}my.initialize({maxTextSize:1e6,maxEdges:1e4});let hue=0;class due 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 cue(this.artifact.resolvedFeatures,!1),i=`mermaid-graph-svg-${hue++}-${Date.now()}`;r.innerHTML="";try{const{svg:a,bindFunctions:s}=await my.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 fue 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 pue(r,n),this.messageContent=new gue(i,a),this.append(this.detailsSummary),this.append(this.messageContent)}}class pue extends rf{constructor(e,r){super("summary","haibun-log-details-summary");const n=yue(r);this.setHtml(`${e}<div class="time-small">${xue(n)}s</div>`)}}class gue 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=bue(r,n);let l=Hc[i]||"Context";s&&(this.artifactDisplay=vue(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 mue(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("
|
|
631
|
+
`)}async function uue(t,e=!0){const r=["graph TD"];jF(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(()=>lue);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((k,S)=>{const L=k.name;let A,R=!1,C;const I=["q","b","t","s","c","a","n"],_=`e_${S}`;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}_${S}`;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}my.initialize({maxTextSize:1e6,maxEdges:1e4});let hue=0;class due 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 cue(this.artifact.resolvedFeatures,!1),i=`mermaid-graph-svg-${hue++}-${Date.now()}`;r.innerHTML="";try{const{svg:a,bindFunctions:s}=await my.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 fue 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 pue(r,n),this.messageContent=new gue(i,a),this.append(this.detailsSummary),this.append(this.messageContent)}}class pue extends rf{constructor(e,r){super("summary","haibun-log-details-summary");const n=yue(r);this.setHtml(`${e}<div class="time-small">${xue(n)}s</div>`)}}class gue 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=bue(r,n);let l=Hc[i]||"Context";s&&(this.artifactDisplay=vue(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 mue(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("div");d.classList.add("haibun-message-details-json"),d.appendChild(b6(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 rendering...",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 rendering...";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 mue 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 vue(t){const{artifactType:e}=t;switch(e){case"html":return new LY(t);case"image":return new RY(t);case"speech":return new DY(t);case"video":return new NY(t);case"video/start":return new IY(t);case"json":return new _Y(t);case"json/http/trace":return new sue(t);case"resolvedFeatures":return new due(t);default:throw Error(`Unsupported artifact type "${t.artifactType}" for display from ${e}`)}}function yue(t){const e=parseInt(document.body.dataset.startTime||`${Date.now()}`,10);return t-e}function xue(t){return(t/1e3).toFixed(3).replace(".",":")}function bue(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 Dm=!1;function wue(){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; }
|
|
637
632
|
`:a+=`div.haibun-log-entry.haibun-level-${o}:not(.disappeared) { display: flex; }
|
|
638
633
|
`});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)),Tue()}function KF(t){var l;if(Dm)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 a8(t){let e=t.currentTime;setInterval(()=>{t.currentTime!==e&&(e=t.currentTime,KF(t))},100)}function Tue(){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=Eue(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(()=>{Dm=!0},150)});const i=u=>{let h;const d=()=>{KF(u)};u.addEventListener("seeked",()=>{Dm=!1,d()}),u.addEventListener("play",()=>{Dm=!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),a8(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),a8(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 Eue(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),ZF(t)};function ZF(t){const{level:e,message:r,messageContext:n,timestamp:i}=t,a=document.getElementById("haibun-log-display-area"),o=new fue(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 Sue(){document.getElementById("haibun-log-display-area")&&(console.info(`Rendering ${window.haibunCapturedMessages.length} log entries...`),window.haibunCapturedMessages.forEach(ZF))}document.addEventListener("DOMContentLoaded",()=>{document.body.dataset.startTime||(document.body.dataset.startTime=`${Date.now()}`),Sue(),wue(),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 kue=function(e,r){return e.indexOf(r)!==-1},Cue=function(e,r){return e===void 0?r:e},Aue=/([A-Z])/g,_ue=function(e){return e.replace(Aue,"-$1").toLowerCase()},Lue={"&":"&",">":">","<":"<",'"':""","'":"'"},Rue=/[&><"']/g;function Nue(t){return String(t).replace(Rue,e=>Lue[e])}var QF=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},Due=function(e){var r=QF(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},Iue=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Mue=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:kue,deflt:Cue,escape:Nue,hyphenate:_ue,getBaseElem:QF,isCharacterBox:Due,protocolFromUrl:Mue},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 Oue(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 LE{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]:Oue(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[Pue[this.id]]}sub(){return $s[Bue[this.id]]}fracNum(){return $s[Fue[this.id]]}fracDen(){return $s[$ue[this.id]]}cramp(){return $s[zue[this.id]]}text(){return $s[Vue[this.id]]}isTight(){return this.size>=2}}var RE=0,vy=1,Th=2,$o=3,Fp=4,Ya=5,$d=6,Fi=7,$s=[new cl(RE,0,!1),new cl(vy,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)],Pue=[Fp,Ya,Fp,Ya,$d,Fi,$d,Fi],Bue=[Ya,Ya,Ya,Ya,Fi,Fi,Fi,Fi],Fue=[Th,$o,Fp,Ya,$d,Fi,$d,Fi],$ue=[$o,$o,Ya,Ya,Fi,Fi,Fi,Fi],zue=[vy,vy,$o,$o,Ya,Ya,Fi,Fi],Vue=[RE,vy,Th,$o,Th,$o,Th,$o],Gt={DISPLAY:$s[RE],TEXT:$s[Th],SCRIPT:$s[Fp],SCRIPTSCRIPT:$s[$d]},bw=[{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 Gue(t){for(var e=0;e<bw.length;e++)for(var r=bw[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 Im=[];bw.forEach(t=>t.blocks.forEach(e=>Im.push(...e)));function JF(t){for(var e=0;e<Im.length;e+=2)if(t>=Im[e]&&t<=Im[e+1])return!0;return!1}var Uu=80,Uue=function(e,r){return"M95,"+(622+e+r)+`
|
|
639
634
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|