@vanelsas/baredom 4.18.0 → 4.19.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/CHANGELOG.md +39 -0
- package/README.md +2 -2
- package/custom-elements.json +252 -0
- package/dist/all.js +2 -0
- package/dist/baredom.d.ts +1 -0
- package/dist/baremirror-alpha.js +40 -42
- package/dist/base.js +789 -773
- package/dist/integrity.json +118 -117
- package/dist/requests.js +8 -0
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +1 -1
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +17 -17
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +41 -41
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +35 -35
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +30 -30
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +34 -34
- package/dist/x-command-palette.js +31 -31
- package/dist/x-comment.js +1 -1
- package/dist/x-comments.js +23 -23
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +17 -20
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +48 -48
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +33 -33
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +22 -22
- package/dist/x-form-field.js +1 -1
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +18 -18
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +24 -24
- package/dist/x-kinetic-typography.js +35 -35
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +39 -39
- package/dist/x-liquid-glass.js +37 -37
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -26
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +35 -37
- package/dist/x-multi-combobox.js +40 -43
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +33 -33
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +18 -18
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +25 -27
- package/dist/x-progress-circle.js +8 -8
- package/dist/x-progress.js +8 -8
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +29 -29
- package/dist/x-rating.js +24 -24
- package/dist/x-ripple-effect.js +9 -9
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +34 -34
- package/dist/x-scroll-timeline.js +50 -50
- package/dist/x-scroll.js +37 -37
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +18 -18
- package/dist/x-skeleton-group.js +14 -14
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +17 -17
- package/dist/x-spacer.js +3 -3
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +20 -20
- package/dist/x-tabs.js +12 -12
- package/dist/x-text-area.js +1 -1
- package/dist/x-theme.js +28 -28
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-toc.js +31 -34
- package/dist/x-tooltip.js +14 -14
- package/dist/x-trace-history.js +118 -118
- package/dist/x-tree.d.ts +47 -0
- package/dist/x-tree.js +44 -0
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +64 -63
- package/package.json +6 -1
package/dist/x-trace-history.js
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
function(){var a=window;var b=a.location.search;b=b==null?null:$APP.
|
|
4
|
-
|
|
5
|
-
b.value=a,b;case "dom/attribute-set":return c=$APP.
|
|
6
|
-
$APP.
|
|
7
|
-
w[y]=
|
|
8
|
-
(r=$APP.
|
|
9
|
-
null);if($APP.K.j(1,a.schemaVersion))return new $APP.J(null,1,[$APP.
|
|
10
|
-
1,[$APP.
|
|
11
|
-
return $APP.m(b)?b:
|
|
12
|
-
b)},$APP.
|
|
13
|
-
$APP.M.i($APP.m(a.defaultPrevented)?" (prevented)":null)+$APP.M.i(function(){var b=
|
|
14
|
-
case "dom/attribute-removed":return""+$APP.M.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/moved":return"moved";case "lifecycle/attribute-changed":return""+$APP.M.i(a.attribute)+": "+$APP.M.i($APP.
|
|
15
|
-
6E4)return""+$APP.M.i((a/1E3).toFixed(3))+"s";var b=$APP.
|
|
16
|
-
|
|
17
|
-
function(a,b){a=$APP.
|
|
18
|
-
$APP.
|
|
19
|
-
a);return $APP.
|
|
20
|
-
$APP.M.i(a)+$APP.M.i($APP.K.j(a,b)?" of "+$APP.M.i(b):null)+" "+$APP.M.i($APP.
|
|
21
|
-
$APP.l(a,"__xTraceHistoryUiState");return $APP.m(a)?(b=$APP.l(a,$APP
|
|
22
|
-
0,null);e=$APP.
|
|
23
|
-
b=
|
|
24
|
-
2,[$APP.
|
|
25
|
-
a.localName;var c=b!=null;b=c?b.includes("-"):c;if($APP.m(b))return a;a=
|
|
26
|
-
for(var e=d.children,f=e.length,g=0;;)if(g<f)b.push(e[g]),g+=1;else break;d=d.shadowRoot;if($APP.m(d))for(d=d.children,e=d.length,f=0;;)if(f<e)b.push(d[f]),f+=1;else break}c+=1}}}else return null},
|
|
27
|
-
|
|
28
|
-
$APP.E?c.
|
|
29
|
-
null):e},
|
|
30
|
-
b=a.dispatchEvent;$APP.m($APP.l(b,"__xTraceHistoryWrapped"))||($APP.Ae(
|
|
31
|
-
k);try{var n=d.call(this,c)}finally{$APP.
|
|
32
|
-
k=$APP.
|
|
33
|
-
$APP.
|
|
34
|
-
$APP.
|
|
35
|
-
c,$APP.Z,"Session "+$APP.M.i(c),
|
|
36
|
-
|
|
37
|
-
null);return a}
|
|
38
|
-
return $APP.m(b)?
|
|
39
|
-
null,2);a=""+$APP.M.i("baredom-trace-")+$APP.M.i(a.getFullYear())+$APP.M.i(
|
|
40
|
-
b){b=b.getBoundingClientRect();a.style.top=""+$APP.M.i(b.top)+"px";a.style.left=""+$APP.M.i(b.left)+"px";a.style.width=""+$APP.M.i(b.width)+"px";a.style.height=""+$APP.M.i(b.height)+"px"},
|
|
41
|
-
null)}return null},
|
|
42
|
-
|
|
43
|
-
$APP.M.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},
|
|
44
|
-
"' cx\x3d'"+$APP.M.i(f)+"' cy\x3d'"+$APP.M.i(g)+"' r\x3d'"+$APP.M.i(n)+"' fill\x3d'"+$APP.M.i(
|
|
45
|
-
return""+$APP.M.i($APP.
|
|
46
|
-
$APP.M.i(n.id)+"' data-x-th-bin-count\x3d'"+$APP.M.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.M.i(w)+"' x\x3d'"+$APP.M.i(g)+"' y\x3d'"+$APP.M.i(b)+"' width\x3d'"+$APP.M.i(4)+"' height\x3d'"+$APP.M.i(20)+"' fill\x3d'"+$APP.M.i(r)+"' fill-opacity\x3d'"+$APP.M.i(v)+"' /\x3e"},a)))+$APP.M.i(
|
|
47
|
-
1),0),1)*
|
|
48
|
-
[G.id,
|
|
49
|
-
0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var n=$APP.
|
|
50
|
-
"' /\x3e"},
|
|
51
|
-
G=r+18,N=r+11,
|
|
52
|
-
$APP.M.i(
|
|
53
|
-
"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var g=e.causeId;if(typeof g!=="number"||f>=5E3)break a;g=
|
|
54
|
-
else{e=
|
|
55
|
-
"\x3c/div\x3e":null)+$APP.M.i(
|
|
56
|
-
2,[
|
|
57
|
-
a.textContent=$APP.m(b)?"Resume":"Pause";a.pressed=b},
|
|
58
|
-
null)+$APP.M.i(
|
|
59
|
-
" · "+$APP.M.i(k.recordCount)],null)},$APP.
|
|
60
|
-
|
|
61
|
-
"\x3c/pre\x3e"+$APP.M.i($APP.m(g)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.M.i(
|
|
62
|
-
$APP.
|
|
63
|
-
$APP.l(a,
|
|
64
|
-
a):
|
|
65
|
-
$APP.l(a,"__xTraceHistoryHighlightCid")))b=
|
|
66
|
-
9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.
|
|
67
|
-
""}else b=
|
|
68
|
-
|
|
69
|
-
""+$APP.M.i(T);n.textContent=
|
|
70
|
-
$APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.m(a)?(a.textContent=$APP.m(b)?"»":"«",a.setAttribute("aria-expanded",$APP.m(b)?"false":"true")):null},
|
|
71
|
-
case "causality":return
|
|
72
|
-
e=$APP.l(a,"__xTraceHistoryTimelineEl");a=
|
|
73
|
-
c:g:f)?new $APP.J(null,3,[
|
|
74
|
-
"")},
|
|
75
|
-
$APP.M.i(b));}return $APP.m(c)?(
|
|
76
|
-
d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},
|
|
77
|
-
null;else d=null;if(d==null)switch(b=b instanceof $APP.E?b.
|
|
78
|
-
|
|
79
|
-
d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},
|
|
80
|
-
d=
|
|
2
|
+
var iP=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},xoa=function(a){return a-1},jP=function(a){if(a instanceof RegExp)return a;var b=$APP.sh(/^\(\?([idmsux]*)\)/,a),c=$APP.A(b,0,null);b=$APP.A(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.m(b)?b:"")},yoa=function(a){return $APP.Pd($APP.xa.l(function(b,c){return $APP.Rd(b,c,$APP.Gc(b,c,0)+1)},$APP.sb($APP.fe),a))},zoa=function(a){return new $APP.H(null,2,5,$APP.I,[$APP.De(200,a),$APP.Ee(200,a)],null)},
|
|
3
|
+
kP=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.sh(Aoa,b);return $APP.D(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.z.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},Boa=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.m(a)?a:"document"},lP=function(a){try{return a==null?null:$APP.uo(a)}catch(b){try{return""+$APP.M.i(a)}catch(c){return"(unprintable)"}}},Coa=function(a,b,c){a=$APP.F(a);var d=$APP.C(a,$APP.O),e=$APP.C(a,$APP.Bw),f=$APP.C(a,mP),
|
|
4
|
+
g=$APP.C(a,nP);var k=$APP.Dd(d);k=$APP.m(k)?""+$APP.M.i(k)+"/"+$APP.M.i($APP.$g(d)):$APP.$g(d);b={schemaVersion:1,id:b,t:c,type:k,tag:e,componentId:f,causeId:g};switch(d instanceof $APP.E?d.T:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.Wi.i(a),b.eventName=c,c=lP($APP.Xi.i(a)),b.detail=c,c=$APP.D($APP.Yi.i(a)),b.cancelable=c,a=$APP.D($APP.Zi.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.yi.i(a),b.field=c,a=lP($APP.zi.i(a)),
|
|
5
|
+
b.value=a,b;case "dom/attribute-set":return c=$APP.Gi.i(a),b.attribute=c,a=$APP.zi.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.Gi.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.Gi.i(a),b.attribute=c,c=$APP.tj.i(a),b.oldValue=c,a=$APP.uj.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":case "lifecycle/moved":return b;default:return b}},oP=function(a){a=""+$APP.M.i(a);return a.length<2?"0"+$APP.M.i(a):a},Doa=function(a,b){return $APP.Nf.l($APP.fe,
|
|
6
|
+
$APP.Me(function(c){var d=$APP.A(c,0,null);$APP.A(c,1,null);return $APP.bd(b,d)}),a)},xP=function(a,b,c,d){var e=$APP.F(d);d=$APP.C(e,pP);var f=$APP.C(e,$APP.Hu),g=$APP.C(e,qP);e=$APP.C(e,rP);a:{var k=a.length;for(var n=0,r=$APP.sb($APP.Sg);;){if(n>=k){k=$APP.ub(r);break a}var v=a[n].componentId;n+=1;r=v!=null?$APP.tb(r,v):r}k=void 0}k=Doa(b,k);b=$APP.D(e);e={};k=$APP.q(k);n=null;for(v=r=0;;)if(v<r){var w=n.C(null,v),y=$APP.A(w,0,null),B=$APP.A(w,1,null);w=e;y=""+$APP.M.i(y);B={tag:$APP.Bw.i(B),firstSeen:sP.i(B)};
|
|
7
|
+
w[y]=B;v+=1}else if(k=$APP.q(k))$APP.Wc(k)?(r=$APP.Ab(k),k=$APP.Bb(k),n=r,r=$APP.x(r)):(n=$APP.t(k),r=$APP.A(n,0,null),v=$APP.A(n,1,null),n=e,r=""+$APP.M.i(r),v={tag:$APP.Bw.i(v),firstSeen:sP.i(v)},n[r]=v,k=$APP.u(k),n=null,r=0),v=0;else break;k=[];c=$APP.q(c);n=null;for(v=r=0;;)if(v<r){w=n.C(null,v);var G=$APP.F(w);w=$APP.C(G,$APP.Eu);y=$APP.C(G,$APP.Z);B=$APP.C(G,tP);var N=$APP.C(G,uP),Q=$APP.C(G,vP);G=$APP.C(G,wP);k.push({id:w,label:y,startT:B,endT:N,startId:Q,endId:G});v+=1}else if(c=$APP.q(c))$APP.Wc(c)?
|
|
8
|
+
(r=$APP.Ab(c),c=$APP.Bb(c),n=r,r=$APP.x(r)):(n=$APP.t(c),B=$APP.F(n),n=$APP.C(B,$APP.Eu),r=$APP.C(B,$APP.Z),v=$APP.C(B,tP),w=$APP.C(B,uP),y=$APP.C(B,vP),B=$APP.C(B,wP),k.push({id:n,label:r,startT:v,endT:w,startId:y,endId:B}),c=$APP.u(c),n=null,r=0),v=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:g,forensic:b,components:e,sessions:k,records:a}},yP=function(a){if($APP.pa(a)){if(typeof a.schemaVersion!=="number")return new $APP.J(null,1,[$APP.Hj,"Envelope is missing schemaVersion."],
|
|
9
|
+
null);if($APP.K.j(1,a.schemaVersion))return new $APP.J(null,1,[$APP.Hj,"Schema version mismatch: expected "+$APP.M.i(1)+", got "+$APP.M.i(a.schemaVersion)+"."],null);if($APP.p($APP.la(a.records)))return new $APP.J(null,1,[$APP.Hj,"Envelope.records is not an array."],null);var b=a.records,c=b.length;a:{for(var d=0;;){if(d>=c){b=null;break a}var e=b[d];if($APP.pa(e)&&typeof e.id==="number"&&typeof e.t==="number"&&typeof e.type==="string")d+=1;else{b=d;break a}}b=void 0}return b==null?new $APP.J(null,
|
|
10
|
+
1,[$APP.lu,a],null):new $APP.J(null,1,[$APP.Hj,"Record at index "+$APP.M.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.J(null,1,[$APP.Hj,"Envelope is not a JSON object."],null)},Eoa=function(a,b,c){return $APP.x(a)>=c?$APP.zd.j($APP.Oc(a),b):$APP.zd.j(a,b)},Foa=function(){var a=rP.i($APP.ab(zP));return $APP.m(a)?$APP.Wg(AP):$APP.zo.j($APP.Wg(AP),$APP.Su)},CP=function(a){var b=$APP.le(function(c){var d=$APP.A(c,0,null);c=$APP.A(c,1,null);return $APP.bd(c,a)?d:null},Goa);
|
|
11
|
+
return $APP.m(b)?b:BP},DP=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.m(b)?b.toLowerCase():""},HP=function(a,b){var c=$APP.F(b),d=$APP.C(c,$APP.Bw),e=$APP.C(c,EP);b=$APP.C(c,FP);c=$APP.Gc(c,GP,DP);if(d=d==null||$APP.z.j("",d)||$APP.z.j("all",d)||$APP.z.j(d,a.tag)){if(e=e==null||$APP.bd(e,CP(a.type)))e=b==null||$APP.z.j("",b)||!((c.i?c.i(a):c.call(null,a)).indexOf(b)<0);d=e}return d},IP=function(a,b){return $APP.lf($APP.jd(function(c){return c.t},$APP.Ne(function(c){return HP(c,
|
|
12
|
+
b)},$APP.Ac(a))))},JP=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.z.j(b,c.id)}):null},KP=function(a){if(a!=null)try{var b=JSON.stringify(a),c=""+$APP.M.i(b);return c.length<=60?c:""+$APP.M.i($APP.vd(c,60))+"…"}catch(d){return"(unstringifiable)"}else return null},LP=function(a){switch(a.type){case "event/dispatch":return""+$APP.M.i(a.eventName)+$APP.M.i(function(){var b=KP(a.detail);return $APP.m(b)?" "+$APP.M.i(b):null}());case "event/dispatch-cancelable":return""+$APP.M.i(a.eventName)+
|
|
13
|
+
$APP.M.i($APP.m(a.defaultPrevented)?" (prevented)":null)+$APP.M.i(function(){var b=KP(a.detail);return $APP.m(b)?" "+$APP.M.i(b):null}());case "event/dispatch-document":return""+$APP.M.i(a.eventName)+$APP.M.i(function(){var b=KP(a.detail);return $APP.m(b)?" "+$APP.M.i(b):null}());case "state/instance-field-set":return""+$APP.M.i(a.field)+" \x3d "+$APP.M.i(function(){var b=KP(a.value);return $APP.m(b)?b:"null"}());case "dom/attribute-set":return""+$APP.M.i(a.attribute)+"\x3d"+$APP.M.i($APP.Dh($APP.Ac([a.value])));
|
|
14
|
+
case "dom/attribute-removed":return""+$APP.M.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/moved":return"moved";case "lifecycle/attribute-changed":return""+$APP.M.i(a.attribute)+": "+$APP.M.i($APP.Dh($APP.Ac([a.oldValue])))+" → "+$APP.M.i($APP.Dh($APP.Ac([a.newValue])));default:return"("+$APP.M.i(a.type)+")"}},MP=function(a){if(typeof a!=="number")return"";if(a<1E3)return""+$APP.M.i(a.toFixed(0))+"ms";if(a<
|
|
15
|
+
6E4)return""+$APP.M.i((a/1E3).toFixed(3))+"s";var b=$APP.sd(a,6E4)/1E3;return""+$APP.M.i(Math.floor(a/6E4))+"m"+$APP.M.i(b.toFixed(1))+"s"},OP=function(a){a=CP(a.type);return $APP.C(NP,$APP.m(a)?a:BP)},QP=function(a){a=a.componentId;return $APP.m(a)?a:PP},Hoa=function(a){return $APP.lf($APP.jd(RP,$APP.Fe.j(function(b){var c=$APP.A(b,0,null);b=$APP.A(b,1,null);var d=$APP.t(b);return new $APP.J(null,3,[SP,c,$APP.Bw,d.tag,RP,$APP.Yd($APP.ok,$APP.Fe.j(function(e){return e.t},b))],null)},$APP.Wh(QP,a))))},
|
|
16
|
+
VP=function(a){if($APP.q(a)){var b=$APP.Fe.j(function(c){return c.t},a);a=$APP.Yd($APP.ok,b);b=$APP.Yd($APP.pk,b);return new $APP.J(null,3,[TP,a,Ioa,b,UP,$APP.pk.j(1,b-a)],null)}return null},Joa=function(a,b){return $APP.q(a)?$APP.Zd(WP,function(c){return Math.abs(c.t-b)},a):null},Koa=function(a){if($APP.q(a)){var b=yoa($APP.Fe.j(function(d){return CP(d.type)},a)),c=$APP.Yd($APP.pk,$APP.Lg(b));a=$APP.le(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},AP);return $APP.m(a)?a:BP}return null},Ooa=
|
|
17
|
+
function(a,b){a=$APP.Wh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/4)},a);return $APP.lf($APP.jd(XP,$APP.Fe.j(function(c){var d=$APP.A(c,0,null),e=$APP.A(c,1,null);c=$APP.Fe.j(function(f){return f.t},e);e=$APP.lf($APP.jd(function(f){return f.id},e));return new $APP.J(null,7,[XP,d,YP,e,ZP,Koa(e),$P,d*4,Loa,(d+1)*4,Moa,$APP.Yd($APP.ok,c),Noa,$APP.Yd($APP.pk,c)],null)},a)))},Poa=function(a){return $APP.le(function(b){return $APP.x(YP.i(b))>3},a)},Qoa=function(a){return $APP.q(a)?$APP.Yd($APP.pk,
|
|
18
|
+
$APP.Fe.j(function(b){return $APP.x(YP.i(b))},a)):0},Roa=function(a,b){var c=b.id;a=$APP.jd(function(d){return d.t},$APP.Ne(function(d){return $APP.z.j(c,d.causeId)},$APP.Ac(a)));return new $APP.J(null,2,[$APP.Cy,$APP.x(a),YP,$APP.lf($APP.De(50,a))],null)},Soa=function(a,b){return $APP.lf($APP.jd(function(c){return c.id},$APP.Ne(function(c){return $APP.z.j(b,c.causeId)},$APP.Ac(a))))},Toa=function(a,b){var c=zoa(aQ(a,b));a=$APP.A(c,0,null);c=$APP.A(c,1,null);var d=$APP.Wh(function(e){return e.causeId},
|
|
19
|
+
a);return $APP.Og.l(function g(f){var k=$APP.ri.j;var n=f.id;n=d.i?d.i(n):d.call(null,n);return new $APP.J(null,2,[bQ,f,$APP.fx,k.call($APP.ri,g,n)],null)}(b),cQ,$APP.D($APP.q(c)))},Uoa=function(a,b){return typeof b==="number"?$APP.le(function(c){return $APP.z.j(b,$APP.Eu.i(c))?c:null},$APP.Dk.i(a)):null},Voa=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":a===0?c=""+$APP.M.i(b)+" "+$APP.M.i($APP.z.j(1,b)?"record":"records")+" · all hidden by filter":(a=""+
|
|
20
|
+
$APP.M.i(a)+$APP.M.i($APP.K.j(a,b)?" of "+$APP.M.i(b):null)+" "+$APP.M.i($APP.z.j(1,a)?"record":"records")+" · "+$APP.M.i(d)+" "+$APP.M.i($APP.z.j(1,d)?"lane":"lanes"),b=$APP.M,d=b.i,c=UP.i(c),c=$APP.m(c)?" · spanning "+$APP.M.i(MP(c)):null,c=a+d.call(b,c));return c},eQ=function(a){return $APP.Vc(a)&&$APP.z.j(dQ,$APP.t(a))},gQ=function(a){return $APP.Vc(a)&&$APP.z.j(fQ,$APP.t(a))},hQ=function(a){return $APP.Vc(a)&&($APP.z.j(dQ,$APP.t(a))||$APP.z.j(fQ,$APP.t(a)))?$APP.Dc(a):null},iQ=function(a,b){a=
|
|
21
|
+
$APP.l(a,"__xTraceHistoryUiState");return $APP.m(a)?(b=$APP.l(a,$APP.$g(b)),void 0===b?null:b):null},jQ=function(a,b,c){var d=$APP.l(a,"__xTraceHistoryUiState");d=$APP.m(d)?d:{};b=$APP.$g(b);d[b]=c;a.__xTraceHistoryUiState=d},lQ=function(){var a=YP.i($APP.ab(zP)),b=$APP.ab(kQ),c=b[1];if(b[0]===a)return c;b=$APP.uo($APP.lf(a));$APP.Ae(kQ,[a,b]);return b},Woa=function(){var a=$APP.Ir.H(mQ,$APP.Og,$APP.Xo,!1);a=$APP.F(a);a=$APP.C(a,nQ);a=$APP.q(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d);$APP.A(e,
|
|
22
|
+
0,null);e=$APP.A(e,1,null);try{e.D?e.D():e.call(null)}catch(f){}d+=1}else if(a=$APP.q(a)){if($APP.Wc(a))c=$APP.Ab(a),a=$APP.Bb(a),b=c,c=$APP.x(c);else{b=$APP.t(a);$APP.A(b,0,null);e=$APP.A(b,1,null);try{e.D?e.D():e.call(null)}catch(f){}a=$APP.u(a);b=null;c=0}d=0}else return null},oQ=function(){if(mQ instanceof $APP.xe){var a=mQ.state;a=$APP.Og.l?$APP.Og.l(a,$APP.Xo,!0):$APP.Og.call(null,a,$APP.Xo,!0);if(mQ instanceof $APP.xe){var b=mQ.sc;if(b!=null&&!$APP.m(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");
|
|
23
|
+
b=mQ.state;mQ.state=a;mQ.ec!=null&&$APP.ye(mQ,b,a);a=new $APP.H(null,2,5,$APP.I,[b,a],null)}else a=new $APP.H(null,2,5,$APP.I,[$APP.ab(mQ),$APP.Cb(mQ,a)],null)}else a=new $APP.H(null,2,5,$APP.I,[$APP.ab(mQ),$APP.Er(mQ,$APP.Og,$APP.Xo,!0)],null);b=$APP.A(a,0,null);$APP.A(a,1,null);return $APP.m($APP.Xo.i(b))?null:requestAnimationFrame(Woa)},Xoa=function(a,b){var c=pQ.i(a)+1;return $APP.Kr($APP.Og.l(a,pQ,c),new $APP.H(null,2,5,$APP.I,[nQ,c],null),b)},Yoa=function(a,b,c){if($APP.z.j("document",b))return new $APP.J(null,
|
|
24
|
+
2,[$APP.Eu,null,qQ,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.J(null,2,[$APP.Eu,b,qQ,!1],null);a.__xTraceHistoryId=c;return new $APP.J(null,2,[$APP.Eu,c,qQ,!0],null)},sQ=function(){var a=$APP.Ir.H(zP,$APP.qi,rQ,$APP.hc);return rQ.i(a)-1},Zoa=function(a){$APP.Ir.j(tQ,$APP.hc);try{a.D?a.D():a.call(null)}finally{$APP.Ir.j(tQ,xoa)}},uQ=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},vQ=function(a){for(;;)if(a!=null&&a instanceof Element){var b=
|
|
25
|
+
a.localName;var c=b!=null;b=c?b.includes("-"):c;if($APP.m(b))return a;a=uQ(a)}else return null},wQ=function(a){if(a instanceof Node)for(a=uQ(a);;){if(a==null||a===document)return!1;if($APP.m($APP.l(a,"__xTraceHistoryInternal")))return!0;a=uQ(a)}else return!1},xQ=function(a){var b=document.body;if($APP.m($APP.m(b)?a!=null:b)){b=[b];for(var c=0;;){if(b.length===0||c>=1E6)return null;var d=b.pop();if(d instanceof Element){if(!$APP.m($APP.l(d,"__xTraceHistoryInternal"))){if($APP.z.j(a,$APP.l(d,"__xTraceHistoryId")))return d;
|
|
26
|
+
for(var e=d.children,f=e.length,g=0;;)if(g<f)b.push(e[g]),g+=1;else break;d=d.shadowRoot;if($APP.m(d))for(d=d.children,e=d.length,f=0;;)if(f<e)b.push(d[f]),f+=1;else break}c+=1}}}else return null},yQ=function(a){var b=$APP.xi.i(a);return $APP.bd($oa,$APP.O.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.m(a)?a:wQ(b)):!1:wQ(b)},CQ=function(a,b,c,d){var e=$APP.ab(zP),f=$APP.xi.i(a);if(!$APP.m(function(){var v=(v=$APP.p(d))?$APP.qs.i(e):v;return $APP.m(v)?v:yQ(a)}())){var g=function(){var v=
|
|
27
|
+
vQ(f);return $APP.m(v)?v:f}(),k=Boa(g);g=Yoa(g,k,zQ.i(e));var n=$APP.F(g);g=$APP.C(n,$APP.Eu);n=$APP.C(n,qQ);var r=$APP.Nc($APP.ab(AQ));r=$APP.Og.o(a,$APP.Bw,k,$APP.Ac([mP,g,nP,r]));b=Coa(r,b,c);b=Eoa(YP.i(e),b,$APP.Wo.i(e));c=$APP.m(n)?$APP.Og.l(BQ.i(e),g,new $APP.J(null,2,[$APP.Bw,k,sP,c],null)):BQ.i(e);k=$APP.m(n)?g+1:zQ.i(e);$APP.Ir.o(zP,$APP.Og,YP,b,$APP.Ac([zQ,k,BQ,c]));oQ()}},DQ=function(a,b){var c=vQ(b);b=$APP.l($APP.m(c)?c:b,"__xTraceHistoryId");if($APP.m(b))switch(c=$APP.O.i(a),c instanceof
|
|
28
|
+
$APP.E?c.T:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.M.i(b)+":evt:"+$APP.M.i($APP.Wi.i(a));case "state/instance-field-set":return""+$APP.M.i(b)+":fld:"+$APP.M.i($APP.yi.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.M.i(b)+":attr:"+$APP.M.i($APP.Gi.i(a));default:return null}else return null},FQ=function(a,b,c,d){var e=$APP.p(rP.i(a));return e?(b=DQ(b,c),$APP.m(b)?(a=$APP.C(EQ.i(a),b),$APP.m(a)?d-a<16:null):
|
|
29
|
+
null):e},GQ=function(a,b,c){if($APP.m(rP.i($APP.ab(zP))))return null;a=DQ(a,b);return $APP.m(a)?$APP.Ir.H(zP,$APP.Kr,new $APP.H(null,2,5,$APP.I,[EQ,a],null),c):null},IQ=function(a){var b=$APP.O.i(a),c=$APP.xi.i(a),d=performance.now();if($APP.m(function(){var f=$APP.ab(tQ)>0;if(f)return f;f=$APP.ab(HQ);f=$APP.m(f)?$APP.bd(apa,b):f;if($APP.m(f))return f;f=yQ(a);return $APP.m(f)?f:FQ($APP.ab(zP),a,c,d)}()))return null;var e=sQ();CQ(a,e,d,!1);return GQ(a,c,d)},bpa=function(){var a=EventTarget.prototype,
|
|
30
|
+
b=a.dispatchEvent;$APP.m($APP.l(b,"__xTraceHistoryWrapped"))||($APP.Ae(JQ,b),b=function(c){var d=$APP.ab(JQ);var e=$APP.p($APP.ab(HQ));e||(e=$APP.qs.i($APP.ab(zP)),e=$APP.m(e)?e:$APP.ab(tQ)>0||wQ(this));if($APP.m(e))c=d.call(this,c);else{e=c instanceof CustomEvent;var f=performance.now(),g=e?new $APP.J(null,2,[$APP.O,this===document?$APP.cj:$APP.m(c.cancelable)?$APP.aj:$APP.Vi,$APP.Wi,c.type],null):null;if($APP.m(e?FQ($APP.ab(zP),g,this,f):e))c=d.call(this,c);else{var k=sQ();$APP.Ir.l(AQ,$APP.zd,
|
|
31
|
+
k);try{var n=d.call(this,c)}finally{$APP.Ir.j(AQ,$APP.Oc)}if(e)try{CQ(new $APP.J(null,6,[$APP.O,this===document?$APP.cj:$APP.m(c.cancelable)?$APP.aj:$APP.Vi,$APP.xi,this,$APP.Wi,c.type,$APP.Xi,c.detail,$APP.Yi,c.cancelable,$APP.Zi,c.defaultPrevented],null),k,f,!0),GQ(g,this,f)}catch(r){}c=n}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},cpa=function(){return lQ()},dpa=function(){var a=BQ.i($APP.ab(zP)),b={};a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),g=$APP.A(f,0,null),
|
|
32
|
+
k=$APP.A(f,1,null);f=b;g=""+$APP.M.i(g);k={tag:$APP.Bw.i(k),firstSeen:sP.i(k)};f[g]=k;e+=1}else if(a=$APP.q(a))$APP.Wc(a)?(d=$APP.Ab(a),a=$APP.Bb(a),c=d,d=$APP.x(d)):(c=$APP.t(a),d=$APP.A(c,0,null),e=$APP.A(c,1,null),c=b,d=""+$APP.M.i(d),e={tag:$APP.Bw.i(e),firstSeen:sP.i(e)},c[d]=e,a=$APP.u(a),c=null,d=0),e=0;else break;return b},epa=function(a){var b=a.components;return b==null?$APP.Re:$APP.Fe.j(function(c){return $APP.l(b,c).tag},Object.keys(b))},fpa=function(){var a=$APP.ab(zP),b=$APP.Fe.j($APP.Bw,
|
|
33
|
+
$APP.Lg(BQ.i(a)));a=$APP.Je(function(c){c=$APP.F(c);c=$APP.C(c,KQ);return epa(c)},$APP.Ac([LQ.i(a)]));return $APP.lf($APP.Nf.j($APP.Xg(),$APP.Ie.j(b,a)))},MQ=function(){$APP.Ir.H(zP,$APP.Og,$APP.qs,!0);return oQ()},NQ=function(){$APP.Ir.H(zP,$APP.Og,$APP.qs,!1);return oQ()},SQ=function(){$APP.Ir.o(zP,$APP.Og,YP,OQ,$APP.Ac([rQ,0,PQ,$APP.Re,QQ,0,RQ,null,EQ,$APP.fe]));return oQ()},TQ=function(){return RQ.i($APP.ab(zP))},gpa=function(a,b,c,d){return b==null?a:$APP.ri.j(function(e){e=$APP.F(e);var f=$APP.C(e,
|
|
34
|
+
$APP.Eu);return $APP.z.j(f,b)?$APP.Og.o(e,uP,c,$APP.Ac([wP,d])):e},a)},UQ=function(){var a=performance.now();$APP.Ir.j(zP,function(b){return $APP.Og.l($APP.qi.pa(b,PQ,gpa,RQ.i(b),a,rQ.i(b)),RQ,null)});return oQ()},VQ=function(){TQ()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),UQ());var a=performance.now();$APP.Ir.j(zP,function(b){var c=QQ.i(b),d=rQ.i(b);return $APP.Og.o($APP.qi.H(b,PQ,$APP.zd,new $APP.J(null,6,[$APP.Eu,
|
|
35
|
+
c,$APP.Z,"Session "+$APP.M.i(c),tP,a,uP,null,vP,d,wP,null],null)),RQ,c,$APP.Ac([QQ,c+1]))});oQ();return RQ.i($APP.ab(zP))},WQ=function(a,b){var c=$APP.F(b);b=$APP.C(c,vP);c=$APP.C(c,wP);a=a.id;return a>=b&&(c==null||a<c)},XQ=function(){var a=$APP.ab(zP),b=lQ(),c=$APP.Ac(b);return $APP.uo($APP.ri.j(function(d){var e=$APP.F(d);d=$APP.C(e,$APP.Eu);var f=$APP.C(e,$APP.Z),g=$APP.C(e,tP),k=$APP.C(e,uP),n=$APP.x($APP.Ne(function(r){return WQ(r,e)},c));return{id:d,label:f,startT:g,endT:$APP.m(k)?k:null,recordCount:n}},
|
|
36
|
+
PQ.i(a)))},YQ=function(a){var b=$APP.ab(zP),c=$APP.t($APP.Ne(function(d){return $APP.z.j($APP.Eu.i(d),a)},PQ.i(b)));return $APP.m(c)?$APP.uo($APP.jd(function(d){return d.t},$APP.Ne(function(d){return WQ(d,c)},$APP.Bc(lQ())))):[]},hpa=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=ZQ}a=$APP.z.j(b,ZQ)?new $APP.J(null,1,[$APP.Hj,"File is not valid JSON."],null):yP(b)}else a=$APP.pa(a)?yP(a):new $APP.J(null,1,[$APP.Hj,"Import expects a JSON string or a parsed envelope object."],
|
|
37
|
+
null);return a},$Q=function(a){$APP.Ir.H(zP,$APP.qi,LQ,function(b){return $APP.lf($APP.Pe(function(c){c=$APP.F(c);c=$APP.C(c,$APP.Eu);return $APP.z.j(c,a)},b))});return oQ()},bR=function(){return $APP.uo($APP.ri.j(function(a){var b=$APP.F(a);a=$APP.C(b,$APP.Eu);var c=$APP.C(b,$APP.Z),d=$APP.C(b,aR);b=$APP.C(b,KQ);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},LQ.i($APP.ab(zP))))},cR=function(a){var b=$APP.t($APP.Ne(function(c){return $APP.z.j($APP.Eu.i(c),a)},LQ.i($APP.ab(zP))));
|
|
38
|
+
return $APP.m(b)?KQ.i(b).records:[]},dR=function(a,b){return new $APP.J(null,4,[pP,a.getTime(),$APP.Hu,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.m(c)?c:""}(),qP,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.m(c)?c:""}(),rP,b],null)},ipa=function(){var a=$APP.ab(zP),b=lQ(),c=dR(new Date,rP.i(a));return xP(b,BQ.i(a),PQ.i(a),c)},eR=function(){var a=new Date,b=$APP.ab(zP),c=lQ(),d=dR(a,rP.i(b));b=xP(c,BQ.i(b),PQ.i(b),d);b=JSON.stringify(b,
|
|
39
|
+
null,2);a=""+$APP.M.i("baredom-trace-")+$APP.M.i(a.getFullYear())+$APP.M.i(oP(a.getMonth()+1))+$APP.M.i(oP(a.getDate()))+"-"+$APP.M.i(oP(a.getHours()))+$APP.M.i(oP(a.getMinutes()))+$APP.M.i(oP(a.getSeconds()))+$APP.M.i(".trace.json");b=URL.createObjectURL(new Blob([b],{type:"application/json"}));c=document.createElement("a");c.href=b;c.download=a;c.style.display="none";document.body.appendChild(c);try{var e=c.click()}finally{document.body.removeChild(c),URL.revokeObjectURL(b)}return e},fR=function(a,
|
|
40
|
+
b){b=b.getBoundingClientRect();a.style.top=""+$APP.M.i(b.top)+"px";a.style.left=""+$APP.M.i(b.left)+"px";a.style.width=""+$APP.M.i(b.width)+"px";a.style.height=""+$APP.M.i(b.height)+"px"},gR=function(a){a=$APP.l(a,"__xTraceHistoryHighlightBox");$APP.m(a)&&(a.style.display="none")},hR=function(a){var b=$APP.l(a,"__xTraceHistoryHighlightCid");if($APP.m(b)){b=xQ(b);if($APP.m(b))return a=$APP.l(a,"__xTraceHistoryHighlightBox"),$APP.m(a)?(fR(a,b),a.style.display="block"):null;gR(a);return $APP.Ji(a,"__xTraceHistoryHighlightCid",
|
|
41
|
+
null)}return null},iR=function(a){return(""+$APP.M.i(a)).replace(jpa,"\x26amp;").replace(kpa,"\x26lt;").replace(lpa,"\x26gt;").replace(mpa,"\x26quot;").replace(npa,"\x26#39;")},opa=function(a){return"\x3coption value\x3d'"+$APP.M.i(iR(a))+"'\x3e"+$APP.M.i(iR(a))+"\x3c/option\x3e"},jR=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.M.i(a)+"' "+$APP.M.i($APP.m(b)?"checked ":null)+"aria-label\x3d'"+$APP.M.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.M.i(a)+"\x3c/label\x3e"},
|
|
42
|
+
ppa=function(a,b){return $APP.Yd($APP.M,$APP.Fe.j(function(c){var d=$APP.F(c);c=$APP.C(d,SP);var e=$APP.C(d,$APP.Bw),f=$APP.F(d);d=$APP.C(f,SP);f=$APP.C(f,$APP.Bw);d=$APP.z.j(PP,d)?"document":""+$APP.M.i(f)+" #"+$APP.M.i(d);f=$APP.z.j(PP,c)?"document":e;var g=$APP.z.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.M.i(g?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.M.i(iR(f))+"' title\x3d'"+$APP.M.i(iR(d))+"'\x3e"+$APP.M.i(iR($APP.z.j(PP,c)?"document":e))+$APP.M.i($APP.K.j(PP,c)?" \x3cspan class\x3d'cid'\x3e#"+
|
|
43
|
+
$APP.M.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},qpa=function(a,b,c){return $APP.m(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.M.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.M.i(b)+"' y2\x3d'"+$APP.M.i(c)+"' /\x3e":""},kR=function(a,b,c,d){a=$APP.jd(function(e){return $APP.z.j(e.id,d)?1:0},a);return $APP.Yd($APP.M,$APP.Fe.j(function(e){var f=c.i?c.i(e):c.call(null,e),g=b+10,k=$APP.z.j(e.id,d),n=k?6.5:4.5;return"\x3ccircle class\x3d'dot"+$APP.M.i(k?" selected":null)+"' data-x-th-id\x3d'"+$APP.M.i(e.id)+
|
|
44
|
+
"' cx\x3d'"+$APP.M.i(f)+"' cy\x3d'"+$APP.M.i(g)+"' r\x3d'"+$APP.M.i(n)+"' fill\x3d'"+$APP.M.i(OP(e))+"' /\x3e"},a))},rpa=function(a,b,c,d){if(c==null)return"";a=$APP.le(function(e){e=$APP.F(e);e=$APP.C(e,YP);return $APP.le(function(f){return $APP.z.j(f.id,c)?f:null},e)},a);return $APP.m(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.M.i(d)+"' y1\x3d'"+$APP.M.i(b)+"' x2\x3d'"+$APP.M.i(d)+"' y2\x3d'"+$APP.M.i(b+20)+"' /\x3e"):""},spa=function(a,b,c,d){var e=Qoa(a);
|
|
45
|
+
return""+$APP.M.i($APP.Yd($APP.M,$APP.Fe.j(function(f){var g=$APP.F(f),k=$APP.C(g,YP);f=$APP.C(g,ZP);g=$APP.C(g,$P);var n=$APP.t(k),r=$APP.C(NP,$APP.m(f)?f:BP);var v=$APP.x(k);v=v==null||v===0||e==null||e===0?0:v>=e?1:.4+.6*((v-1)/$APP.pk.j(1,e-1));var w=iR($APP.$g($APP.m(f)?f:BP));k=$APP.x(k);f=""+$APP.M.i(k)+" "+$APP.M.i($APP.z.j(1,k)?"record":"records")+" · "+$APP.M.i($APP.$g($APP.m(f)?f:BP));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.M.i(iR(f))+"' data-x-th-bin-record-id\x3d'"+
|
|
46
|
+
$APP.M.i(n.id)+"' data-x-th-bin-count\x3d'"+$APP.M.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.M.i(w)+"' x\x3d'"+$APP.M.i(g)+"' y\x3d'"+$APP.M.i(b)+"' width\x3d'"+$APP.M.i(4)+"' height\x3d'"+$APP.M.i(20)+"' fill\x3d'"+$APP.M.i(r)+"' fill-opacity\x3d'"+$APP.M.i(v)+"' /\x3e"},a)))+$APP.M.i(rpa(a,b,c,d))},tpa=function(a,b,c,d,e,f){function g(B){a:{var G=$APP.C(w,B.id);var N=a instanceof $APP.E?a.T:null;switch(N){case "order":B=$APP.pk.j(0,e-16);G=v===0||v<0?8:$APP.z.j(1,v)?8+B/2:8+$APP.ok.j($APP.pk.j(G/(v-
|
|
47
|
+
1),0),1)*B;break a;case "time":G=B.t;N=$APP.F(d);B=$APP.C(N,TP);N=$APP.C(N,UP);var Q=$APP.pk.j(0,e-16);G=B==null||N==null?8:8+$APP.ok.j($APP.pk.j((G-B)/N,0),1)*Q;break a;default:throw Error("No matching clause: "+$APP.M.i(N));}}return G}var k=$APP.m(f)?f.id:null,n=$APP.Nf.j($APP.fe,$APP.ue(function(B,G){G=$APP.F(G);G=$APP.C(G,SP);return new $APP.H(null,2,5,$APP.I,[G,B*20],null)},c)),r=$APP.pk.j(20,20*$APP.x(c)),v=$APP.x(b),w=$APP.Nf.j($APP.fe,$APP.ue(function(B,G){return new $APP.H(null,2,5,$APP.I,
|
|
48
|
+
[G.id,B],null)},b)),y=$APP.Wh(QP,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.M.i(e)+"' height\x3d'"+$APP.M.i(r)+"' viewBox\x3d'0 0 "+$APP.M.i(e)+" "+$APP.M.i(r)+"'\x3e"+$APP.M.i($APP.Yd($APP.M,$APP.Fe.j(function(B){B=$APP.F(B);var G=$APP.C(B,SP);B=$APP.Gc(y,G,$APP.Re);G=$APP.C(n,G);if($APP.z.j(lR,a)){var N=Ooa(B,g);B=$APP.m(Poa(N))?spa(N,G,k,g):kR(B,G,g,k)}else B=kR(B,G,g,k);return B},c)))+$APP.M.i(qpa(f,$APP.m(f)?g(f):null,r))+"\x3c/svg\x3e"},upa=function(a,b,c,d,e,f,g,k){if($APP.x(d)===
|
|
49
|
+
0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var n=$APP.pk.j(200,b.clientWidth);a.innerHTML=ppa(e,k);b.innerHTML=tpa(c,d,e,f,n,g)}},mR=function(a){return""+$APP.M.i(a.tag)+" · "+$APP.M.i(a.type)},vpa=function(a){var b=$APP.F(a);a=$APP.C(b,nR);var c=$APP.C(b,oR),d=$APP.C(b,pR);b=$APP.C(b,qR);c+=14;b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.M.i(a)+"' y1\x3d'"+$APP.M.i(c)+"' x2\x3d'"+$APP.M.i(d)+"' y2\x3d'"+$APP.M.i(b)+
|
|
50
|
+
"' /\x3e"},wpa=function(a,b){var c=$APP.F(a);a=$APP.C(c,$APP.Dk);var d=$APP.C(c,rR),e=$APP.C(c,$APP.ol);c=$APP.C(c,$APP.ql);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.M.i(e)+"' height\x3d'"+$APP.M.i(c)+"' viewBox\x3d'0 0 "+$APP.M.i(e)+" "+$APP.M.i(c)+"'\x3e"+$APP.M.i($APP.Yd($APP.M,$APP.Fe.j(vpa,d)))+$APP.M.i($APP.Yd($APP.M,$APP.Fe.j(function(f){var g=$APP.F(f),k=$APP.C(g,$APP.Eu);f=$APP.C(g,bQ);var n=$APP.C(g,sR);g=$APP.C(g,tR);n-=70;var r=g-14,v=$APP.z.j(k,b),w=n+12,y=n+22,B=n+22,
|
|
51
|
+
G=r+18,N=r+11,Q=iR("#"+$APP.M.i(k)+" "+$APP.M.i(mR(f))+" · "+$APP.M.i(LP(f)));k="\x3cg data-x-th-link-id\x3d'"+$APP.M.i(k)+"' role\x3d'button' aria-label\x3d'"+$APP.M.i(Q)+"'\x3e\x3ctitle\x3e"+$APP.M.i(Q)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.M.i(v?" selected":null)+"' x\x3d'"+$APP.M.i(n)+"' y\x3d'"+$APP.M.i(r)+"' width\x3d'"+$APP.M.i(140)+"' height\x3d'"+$APP.M.i(28)+"' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.M.i(w)+"' cy\x3d'"+$APP.M.i(g)+"' r\x3d'"+$APP.M.i(4)+"' fill\x3d'"+
|
|
52
|
+
$APP.M.i(OP(f))+"' /\x3e\x3ctext class\x3d'node-text id' x\x3d'"+$APP.M.i(y)+"' y\x3d'"+$APP.M.i(N)+"'\x3e#"+$APP.M.i(k)+"\x3c/text\x3e\x3ctext class\x3d'node-text' x\x3d'"+$APP.M.i(B)+"' y\x3d'"+$APP.M.i(G)+"'\x3e";g=$APP.M;n=g.i;f=mR(f);f=""+$APP.M.i(f);f=f.length<=22?f:""+$APP.M.i(f.substring(0,21))+"…";return k+n.call(g,iR(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},ypa=function(a,b,c,d){if(d==null)jQ(a,uR,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.M.i(iR("Select a record from the timeline to see its causality tree."))+
|
|
53
|
+
"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var g=e.causeId;if(typeof g!=="number"||f>=5E3)break a;g=JP(c,g);if($APP.m(g))f+=1,e=g;else break a}e=void 0}e=Toa(c,e);c=new $APP.J(null,2,[vR,wR(e),xpa,xR(e)],null);if($APP.m(cQ.i(e)))jQ(a,uR,null),a=$APP.M,d=a.i,c=$APP.F(c),c=$APP.C(c,vR),c="Causality tree exceeds the "+$APP.M.i(200)+"-node cap (≥ "+$APP.M.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,iR(c))+"\x3c/div\x3e";
|
|
54
|
+
else{e=yR(e,0,16);f=$APP.A(e,0,null);$APP.A(e,1,null);e=zR(f);f=AR(f);g=$APP.xa.l($APP.pk,0,$APP.Fe.j(sR,e));var k=$APP.xa.l($APP.pk,0,$APP.Fe.j(tR,e));e=new $APP.J(null,4,[$APP.Dk,e,rR,f,$APP.ol,g+70+16,$APP.ql,k+14+16],null);c=$APP.z.j(1,vR.i(c));jQ(a,uR,e);b.innerHTML=""+$APP.M.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.M.i(iR("This record has no cause and no effects in the current buffer. Pick an event/dispatch* record (or one with a 'Caused by' link in the detail pane) to see a chain."))+
|
|
55
|
+
"\x3c/div\x3e":null)+$APP.M.i(wpa(e,d.id))}}},zpa=function(a){if($APP.m(iQ(a,BR))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=iQ(a,uR),d=CR.i?CR.i(a):CR.call(null,a),e=$APP.m(c)?Uoa(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;if($APP.m($APP.m(b)?$APP.m(c)?$APP.m(e)?typeof f==="number"&&typeof d==="number"&&f>0&&d>0:e:c:b)){var g=$APP.F(c);c=$APP.C(g,$APP.ol);g=$APP.C(g,$APP.ql);var k=sR.i(e),n=tR.i(e);e=k-f/2;k=n-d/2;f=$APP.pk.j(0,c-f);d=$APP.pk.j(0,g-d);d=new $APP.J(null,
|
|
56
|
+
2,[DR,$APP.pk.j(0,$APP.ok.j(f,e)),ER,$APP.pk.j(0,$APP.ok.j(d,k))],null);f=$APP.F(d);d=$APP.C(f,DR);f=$APP.C(f,ER);b.scrollLeft=d;b.scrollTop=f;jQ(a,BR,!1)}}},Apa=function(a){var b=fpa();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.sb($APP.Sg);;){if(e>=d){c=$APP.ub(f);break a}var g=c[e].value;e+=1;f=$APP.z.j(g,"all")?f:$APP.tb(f,g)}c=void 0}b=$APP.Pe(c,b);$APP.q(b)&&(b=$APP.Yd($APP.M,$APP.Fe.j(opa,b)),a.insertAdjacentHTML("beforeend",b))},Bpa=function(a){var b=$APP.qs.i($APP.ab(zP));
|
|
57
|
+
a.textContent=$APP.m(b)?"Resume":"Pause";a.pressed=b},Cpa=function(a){var b=TQ()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},Dpa=function(a){var b=$APP.F(a);a=$APP.C(b,FR);var c=$APP.C(b,$APP.cn),d=$APP.C(b,GR),e=$APP.C(b,HR),f=$APP.C(b,$APP.Z);b=$APP.C(b,IR);return"\x3cbutton class\x3d'session-chip"+$APP.M.i($APP.m(c)?" active":null)+$APP.M.i($APP.m(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.M.i(iR(a))+"'\x3e"+$APP.M.i($APP.m(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
|
|
58
|
+
null)+$APP.M.i(iR(f))+$APP.M.i($APP.m(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.M.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},Epa=function(a,b,c,d){var e=new $APP.J(null,5,[FR,"live",$APP.cn,$APP.z.j(c,$APP.cw),GR,!1,HR,!1,$APP.Z,"Live"],null),f=eQ(c)?hQ(c):null,g=gQ(c)?hQ(c):null;a=$APP.ri.j(function(k){var n=k.id;return new $APP.J(null,5,[FR,""+$APP.M.i(n),$APP.cn,$APP.z.j(n,f),GR,$APP.z.j(n,d),HR,!1,$APP.Z,""+$APP.M.i(k.label)+
|
|
59
|
+
" · "+$APP.M.i(k.recordCount)],null)},$APP.Ac(a));b=$APP.ri.j(function(k){var n=k.id;return new $APP.J(null,6,[FR,"import:"+$APP.M.i(n),$APP.cn,$APP.z.j(n,g),GR,!1,HR,!0,IR,n,$APP.Z,""+$APP.M.i(k.label)+" · "+$APP.M.i(k.recordCount)],null)},$APP.Ac(b));return $APP.Yd($APP.M,$APP.Fe.j(Dpa,$APP.Ie.o(new $APP.H(null,1,5,$APP.I,[e],null),a,$APP.Ac([b]))))},Fpa=function(a,b,c,d,e){a.innerHTML=Epa(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},JR=function(a){var b=
|
|
60
|
+
LP(a);b="#"+$APP.M.i(a.id)+" "+$APP.M.i(a.tag)+" · "+$APP.M.i(a.type)+$APP.M.i($APP.m($APP.m(b)?!$APP.hi(b):b)?" · "+$APP.M.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.M.i(a.id)+"' title\x3d'"+$APP.M.i(iR(b))+"'\x3e"+$APP.M.i(iR(b))+"\x3c/x-button\x3e"},Gpa=function(a,b,c,d){if($APP.m(d)){var e=JSON.stringify(d,null,2);var f=d.causeId;var g=typeof f==="number"?JP(c,f):null;f=Roa(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.M.i(iR(e))+
|
|
61
|
+
"\x3c/pre\x3e"+$APP.M.i($APP.m(g)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.M.i(JR(g))+"\x3c/div\x3e":null);c=$APP.M;d=c.i;g=$APP.F(f);f=$APP.C(g,$APP.Cy);g=$APP.C(g,YP);if(f>0){var k=$APP.x(g);f=$APP.z.j(k,f)?"Effects ("+$APP.M.i(f)+")":"Effects ("+$APP.M.i(k)+" of "+$APP.M.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.M.i(f)+"\x3c/div\x3e"+$APP.M.i($APP.Yd($APP.M,
|
|
62
|
+
$APP.Fe.j(JR,g)))+"\x3c/div\x3e"}else f=null;e+=d.call(c,f);a.innerHTML=e;a.removeAttribute("hidden");b.removeAttribute("hidden")}else a.setAttribute("hidden",""),b.setAttribute("hidden","")},LR=function(a){var b=KR.get(a);if($APP.m(b))return b;b=DP(a);KR.set(a,b);return b},MR=function(a){return $APP.z.j(a,$APP.cw)?"live":eQ(a)?"session:"+$APP.M.i(hQ(a)):gQ(a)?"import:"+$APP.M.i(hQ(a)):"live"},CR=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.m(a)?
|
|
63
|
+
$APP.l(a,MR(b)):null},OR=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.m(c)?c:{};var d=MR($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.P(a,"__xTraceHistoryViewSelected",c);b!=null&&$APP.z.j(NR,$APP.l(a,"__xTraceHistoryDockMode"))&&jQ(a,BR,!0)},Hpa=function(a,b,c){var d=CR(a);b=JP(b,d);if(b==null)return null;if(HP(b,$APP.Og.l(c,GP,LR)))return b;OR(a,null);return null},PR=function(a){return $APP.z.j(a,$APP.cw)?lQ():eQ(a)?(a=YQ(hQ(a)),a.length===0?lQ():
|
|
64
|
+
a):gQ(a)?(a=cR(hQ(a)),a.length===0?lQ():a):lQ()},Ipa=function(a,b,c,d){switch(d instanceof $APP.E?d.T:null){case "causality":b.setAttribute("hidden","");c.removeAttribute("hidden");a.classList.add("causality-mode");break;default:b.removeAttribute("hidden"),c.setAttribute("hidden",""),a.classList.remove("causality-mode")}},QR=function(a){gR(a);return $APP.Ji(a,"__xTraceHistoryHighlightCid",null)},Kpa=function(a,b){if(b!=null&&b.componentId!=null&&$APP.K.j("document",b.tag))if($APP.z.j(b.componentId,
|
|
65
|
+
$APP.l(a,"__xTraceHistoryHighlightCid")))b=hR(a);else{var c=b.componentId;b=xQ(c);if($APP.m(b)){$APP.Ji(a,"__xTraceHistoryHighlightCid",c);c=$APP.l(a,"__xTraceHistoryHighlightBox");if($APP.m(c))a=c;else{c=$APP.Sl(a,":host { all: initial; }\n.outline {\n position: absolute;\n pointer-events: none;\n box-sizing: border-box;\n border: 3px solid #ff2d8a;\n border-radius: 3px;\n background: rgba(255, 45, 138, 0.12);\n box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 14px 2px rgba(255, 45, 138, 0.55);\n display: none;\n}\n@media (prefers-reduced-motion: no-preference) {\n .outline {\n transition: top .08s linear, left .08s linear,\n width .08s linear, height .08s linear;\n animation: x-th-highlight-pulse .55s ease-out 1 both;\n }\n @keyframes x-th-highlight-pulse {\n 0% { box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 0 12px rgba(255, 45, 138, 0.55); }\n 100% { box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 14px 2px rgba(255, 45, 138, 0.55); }\n }\n}\n",
|
|
66
|
+
9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.Ji(a,"__xTraceHistoryHighlightLayer",c);$APP.Ji(a,"__xTraceHistoryHighlightBox",e);a=e}c=b.getBoundingClientRect();d=window.innerWidth;e=window.innerHeight;c.top>=0&&c.left>=0&&c.bottom<=e&&c.right<=d||(c=$APP.ab(Jpa),b.scrollIntoView({block:"nearest",inline:"nearest",behavior:$APP.D(c==null?null:c.matches)?"auto":"smooth"}));fR(a,b);a.style.display="block";b=a;b.style.animation="none";b=b.style.animation=
|
|
67
|
+
""}else b=QR(a)}else b=QR(a);return b},SR=function(a){var b=$APP.l(a,"__xTraceHistoryTimelineEl"),c=$APP.l(a,"__xTraceHistoryCausalityEl"),d=$APP.l(a,"__xTraceHistoryLanesEl"),e=$APP.l(a,"__xTraceHistorySvgPaneEl"),f=$APP.l(a,"__xTraceHistoryCountEl"),g=$APP.l(a,"__xTraceHistoryDetailEl"),k=$APP.l(a,"__xTraceHistorySplitterEl"),n=$APP.l(a,"__xTraceHistoryHintEl"),r=$APP.l(a,"__xTraceHistoryPauseBtn"),v=$APP.l(a,"__xTraceHistoryRecordBtn"),w=$APP.l(a,"__xTraceHistorySessionsEl"),y=$APP.l(a,"__xTraceHistoryTagSelectEl"),
|
|
68
|
+
B=$APP.l(a,"__xTraceHistoryFilter"),G=$APP.l(a,"__xTraceHistoryView"),N=PR(G),Q=IP(N,$APP.Og.l(B,GP,LR)),T=$APP.x(Q),S=N.length,da=VP(Q),na=Hoa(Q),ma=Hpa(a,N,B),sa=XQ(),Za=bR(),Ya=TQ(),wb=function(){var bc=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.m(bc)?bc:$APP.it}(),Jb=function(){var bc=$APP.l(a,"__xTraceHistoryDockMode");return $APP.m(bc)?bc:RR}();Apa(y);Ipa(a,b,c,Jb);switch(Jb instanceof $APP.E?Jb.T:null){case "causality":ypa(a,c,N,ma);break;default:upa(d,e,wb,Q,na,da,ma,$APP.Bw.i(B))}f.textContent=
|
|
69
|
+
""+$APP.M.i(T);n.textContent=Voa(T,S,da,$APP.x(na));Gpa(g,k,N,ma);Bpa(r);Cpa(v);Fpa(w,sa,Za,G,Ya);zpa(a);return Kpa(a,ma)},TR=function(a){return $APP.m(a)?$APP.z.j("circle",a.tagName.toLowerCase()):a},UR=function(a){return $APP.m(a)?$APP.z.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},VR=function(a){a=a.getAttribute("data-x-th-id");return $APP.m(a)?parseInt(a,10):null},WR=function(a,b){$APP.m(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=
|
|
70
|
+
$APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.m(a)?(a.textContent=$APP.m(b)?"»":"«",a.setAttribute("aria-expanded",$APP.m(b)?"false":"true")):null},YR=function(a){var b=!$APP.D($APP.l(a,"__xTraceHistoryCollapsed"));$APP.P(a,"__xTraceHistoryCollapsed",b);return WR(a,b)},Lpa=function(a,b){$APP.P(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.it;case "time":return lR;default:return $APP.it}}());return SR(a)},Mpa=function(a,b){var c=function(){switch(b){case "timeline":return RR;
|
|
71
|
+
case "causality":return NR;default:return RR}}();$APP.P(a,"__xTraceHistoryDockMode",c);$APP.z.j(NR,c)?jQ(a,BR,!0):jQ(a,BR,!1);return SR(a)},ZR=function(a,b,c,d){a.textContent=d;a.removeAttribute("hidden");var e=b.getBoundingClientRect();d=c.clientX-e.left;c=c.clientY-e.top;e=b.scrollTop;var f=b.scrollLeft;b=$APP.pk.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.M.i(b+f)+"px";return a.style.top=""+$APP.M.i(c+e+12)+"px"},Npa=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),
|
|
72
|
+
e=$APP.l(a,"__xTraceHistoryTimelineEl");a=PR($APP.l(a,"__xTraceHistoryView"));if($APP.m(TR(c))){c=VR(c);a=JP(a,c);if($APP.m(a)){c=""+$APP.M.i(a.tag);var f=$APP.M,g=f.i;var k=a.componentId;k=$APP.m(k)?" #"+$APP.M.i(k):null;a=c+g.call(f,k)+"\n"+$APP.M.i(a.type)+"\n"+$APP.M.i(LP(a))+"\n@ "+$APP.M.i(MP(a.t));b=ZR(d,e,b,a)}else b=null;return b}if($APP.m(UR(c))){f=c.getAttribute("data-x-th-bin-record-id");g=c.getAttribute("data-x-th-bin-count");c=c.getAttribute("data-x-th-bin-cat");c=$APP.m($APP.m(f)?$APP.m(g)?
|
|
73
|
+
c:g:f)?new $APP.J(null,3,[$R,parseInt(f,10),aS,parseInt(g,10),ZP,$APP.Ah.i(c)],null):null;if($APP.m(c)){f=$APP.F(c);g=$APP.C(f,$R);c=$APP.C(f,aS);f=$APP.C(f,ZP);a=JP(a,g);if($APP.m(a)){g=""+$APP.M.i(a.tag);k=$APP.M;var n=k.i;var r=a.componentId;r=$APP.m(r)?" #"+$APP.M.i(r):null;a=g+n.call(k,r)+"\n"+$APP.M.i(c)+" "+$APP.M.i($APP.z.j(1,c)?"record":"records")+" · "+$APP.M.i($APP.$g($APP.m(f)?f:BP))+"\n@ "+$APP.M.i(MP(a.t));b=ZR(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden",
|
|
74
|
+
"")},bS=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.E?b.T:null,b){case "order":d=$APP.x(c);e=$APP.pk.j(0,e-16);d===0||d<0?f=null:$APP.z.j(1,d)||e===0?f=0:(f=$APP.ok.j($APP.pk.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.m(f)?$APP.A(c,f,null):null;break a;case "time":var g=$APP.F(d);d=$APP.C(g,TP);b=$APP.C(g,UP);var k=$APP.pk.j(0,e-16);g==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.ok.j($APP.pk.j((f-8)/k,0),1),f=d+f*b);c=Joa(c,f);break a;default:throw Error("No matching clause: "+
|
|
75
|
+
$APP.M.i(b));}return $APP.m(c)?(OR(a,c.id),SR(a)):null},Opa=function(a,b,c){function d(w){return bS(a,k,r,v,f,w.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.pk.j(200,b.clientWidth),g=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var w=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.m(w)?w:$APP.it}(),n=PR($APP.l(a,"__xTraceHistoryView")),r=IP(n,$APP.Og.l(g,GP,LR)),v=VP(r);bS(a,k,r,v,f,c.clientX-e.left);c=function y(){b.removeEventListener("pointermove",
|
|
76
|
+
d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},cS=function(a,b){var c=$APP.l(a,"__xTraceHistoryFilter"),d=PR($APP.l(a,"__xTraceHistoryView"));c=IP(d,$APP.Og.l(c,GP,LR));d=CR(a);a:if($APP.q(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.x(c),f=0;;){if(f>=e){d=null;break b}if($APP.z.j(d,$APP.vc(c,f).id)){d=f;break b}f+=1}d=void 0}else d=
|
|
77
|
+
null;else d=null;if(d==null)switch(b=b instanceof $APP.E?b.T:null,b){case "next":b=$APP.t(c);break a;case "prev":b=$APP.Nc(c);break a;default:throw Error("No matching clause: "+$APP.M.i(b));}else b=$APP.z.j(b,$APP.bt)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.m(b)?(OR(a,b.id),SR(a)):null},dS=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.bd(Ppa,a==null?null:a.toLowerCase()));return a},Qpa=function(a,b){if(dS(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),
|
|
78
|
+
cS(a,$APP.bt);case "ArrowLeft":return b.preventDefault(),cS(a,$APP.Gw);default:return null}},Rpa=function(a,b,c){function d(g){g=$APP.pk.j(60,f+(e-g.clientY));return a.style.height=""+$APP.M.i(g)+"px"}c.preventDefault();b.setPointerCapture(c.pointerId);b.classList.add("dragging");var e=c.clientY,f=a.offsetHeight;c=function k(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",k);b.removeEventListener("pointercancel",k);return b.classList.remove("dragging")};b.addEventListener("pointermove",
|
|
79
|
+
d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},Spa=function(a){return a==null||$APP.z.j("",a)?null:iP(a,".trace.json")?$APP.vd(a,$APP.x(a)-11):iP(a,".json")?$APP.vd(a,$APP.x(a)-5):a},fS=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=iQ(a,eS);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");jQ(a,eS,null);return SR(a)},4E3);return jQ(a,eS,b)},hS=function(a,b){var c=new FileReader,
|
|
80
|
+
d=Spa(b.name);c.onload=function(){var e=gS.j(c.result,d);e!=null?($APP.l(a,"__xTraceHistoryHintEl").classList.remove("error"),$APP.P(a,"__xTraceHistoryView",new $APP.H(null,2,5,$APP.I,[fQ,e],null)),e=SR(a)):e=fS(a,"Import failed — see console for details.");return e};c.onerror=function(){return fS(a,"Could not read file.")};return c.readAsText(b)},iS=function(a){a=a.dataTransfer;return $APP.m(a)?a.types.includes("Files"):null},Tpa=function(a,b){var c=a.shadowRoot;a=$APP.m(c)?c:a.attachShadow({mode:"open"});
|
|
81
81
|
if(c==null){c="\x3cstyle\x3e"+$APP.M.i(":host {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n width: min(420px, calc(100vw - 1rem));\n z-index: 1999999;\n font: 11px/1.4 ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n color: #cdd6f4;\n pointer-events: auto;\n /* The width transition makes the collapse / expand toggle feel\n responsive without being slow. The dock is otherwise position:\n fixed so transitioning width doesn't reflow the host page. */\n transition: width 160ms ease;\n}\n/* Collapsed mode: shrink the host to a thin vertical strip so the\n user can reach components the full dock would otherwise cover.\n The only interactive element left is the collapse-toggle button,\n which expands the dock back to full width when clicked. */\n:host(.collapsed) {\n width: 32px;\n}\n:host(.collapsed) .dock \x3e *:not(.header) { display: none; }\n:host(.collapsed) .header {\n flex-direction: column;\n align-items: center;\n padding: 8px 0;\n gap: 4px;\n}\n:host(.collapsed) .header \x3e *:not([data-x-th-action\x3d'collapse']) {\n display: none;\n}\n/* Causality mode: hide the axis-mode select (Order / Time only\n affects the timeline pane, so it's noise in causality view). */\n:host(.causality-mode) [data-x-th-axis] {\n display: none;\n}\n@media (prefers-reduced-motion: reduce) {\n :host { transition: none; }\n}\n.dock {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: #11111b;\n border-left: 1px solid rgba(59,130,246,0.6);\n box-shadow: -4px 0 20px rgba(0,0,0,0.4);\n /* Anchor for the absolutely-positioned drop-overlay added in PR 11\n so its `inset: 0` reaches the dock edges. */\n position: relative;\n}\n.header {\n display: flex;\n /* Wrap so the count + action buttons survive narrow viewports\n (`min(420px, calc(100vw - 1rem))` reaches 304px at 320px screens,\n which is too tight for four action buttons + title + count on\n one row). */\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n padding: 8px 10px;\n background: rgba(59,130,246,0.15);\n border-bottom: 1px solid rgba(59,130,246,0.3);\n flex: 0 0 auto;\n}\n.title { font-weight: 700; color: #89b4fa; font-size: 12px; }\n.count { color: #6c7086; margin-left: auto; }\n.filters {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 12px;\n padding: 6px 10px;\n border-bottom: 1px solid rgba(255,255,255,0.06);\n flex: 0 0 auto;\n}\n/* The tag dropdown is an \x3cx-select\x3e; its own shadow brings styling.\n We just constrain its width and font so it matches the dock's\n ui-monospace 11px tone. */\n.filters x-select {\n font-size: 11px;\n max-width: 140px;\n}\n/* x-checkbox has no slot for its label, so the visible text sits\n next to the checkbox inside a \x3clabel\x3e wrapper. The label uses\n inline-flex to keep the checkbox + text on one row, with a small\n gap. Cursor: pointer mirrors native checkbox-label affordance. */\n.filters label.cat {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: #a6adc8;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n/* PR 16 — search input. x-search-field brings its own theming via its\n shadow DOM; the dock just constrains the host width so it shares\n the filter row's monospace tone with the tag dropdown. */\n.filters x-search-field {\n font-size: 11px;\n flex: 1 1 140px;\n min-width: 100px;\n max-width: 240px;\n}\n/* Session strip: thin row above the filter row listing the live view\n plus any captured session as a clickable chip. Hidden when the only\n chip is Live (no sessions yet) so the dock stays compact. Scrolls\n horizontally if the chip count overflows the dock width. */\n.sessions {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 4px 10px;\n background: rgba(0,0,0,0.15);\n border-bottom: 1px solid rgba(255,255,255,0.04);\n flex: 0 0 auto;\n overflow-x: auto;\n white-space: nowrap;\n}\n.sessions[hidden] { display: none; }\n.session-chip {\n flex: 0 0 auto;\n background: rgba(255,255,255,0.04);\n color: #a6adc8;\n border: 1px solid rgba(255,255,255,0.08);\n border-radius: 3px;\n padding: 1px 6px;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n.session-chip:hover { background: rgba(59,130,246,0.12); color: #cdd6f4; }\n.session-chip.active {\n background: rgba(59,130,246,0.22);\n border-color: rgba(59,130,246,0.6);\n color: #89b4fa;\n font-weight: 600;\n}\n/* Imported traces are visually distinct from locally-captured\n sessions: amber border instead of blue, plus a small close button\n inside the chip so the user can drop the import without clearing\n live state. */\n.session-chip.import {\n border-color: rgba(249,226,175,0.45);\n color: #f9e2af;\n}\n.session-chip.import.active {\n background: rgba(249,226,175,0.18);\n border-color: rgba(249,226,175,0.7);\n color: #f9e2af;\n}\n.session-chip.import .chip-close {\n background: transparent;\n border: none;\n color: inherit;\n cursor: pointer;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n padding: 0 0 0 6px;\n margin: 0;\n opacity: 0.6;\n}\n.session-chip.import .chip-close:hover { opacity: 1; }\n.session-chip .live-dot {\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: #f38ba8;\n margin-right: 4px;\n vertical-align: middle;\n animation: x-th-pulse 1s ease-in-out infinite;\n}\n@keyframes x-th-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n}\n@media (prefers-reduced-motion: reduce) {\n .session-chip .live-dot { animation: none; }\n}\n.timeline {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n /* Transparent border reserves 2px so the focus indicator below doesn't\n overlap the leftmost pixels of lane labels or shift content layout. */\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.timeline-body {\n display: flex;\n align-items: stretch;\n min-height: 100%;\n}\n.lanes {\n flex: 0 0 110px;\n display: flex;\n flex-direction: column;\n border-right: 1px solid rgba(255,255,255,0.06);\n background: #11111b;\n position: sticky;\n left: 0;\n z-index: 1;\n}\n.lane-label {\n height: 20px;\n padding: 0 8px;\n display: flex;\n align-items: center;\n font-size: 11px;\n color: #a6adc8;\n border-bottom: 1px solid rgba(255,255,255,0.04);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n user-select: none;\n}\n.lane-label:hover { background: rgba(59,130,246,0.08); color: #cdd6f4; }\n.lane-label.active {\n background: rgba(59,130,246,0.18);\n color: #89b4fa;\n font-weight: 600;\n}\n.lane-label .cid { color: #6c7086; margin-left: 4px; }\n.svg-pane {\n flex: 1 1 auto;\n min-width: 0;\n display: block;\n}\nsvg.timeline-svg {\n display: block;\n background:\n repeating-linear-gradient(\n to bottom,\n transparent 0,\n transparent 19px,\n rgba(255,255,255,0.03) 19px,\n rgba(255,255,255,0.03) 20px);\n}\n.dot { cursor: pointer; transition: r 80ms ease; }\n.dot:hover { stroke: #fff; stroke-width: 1; }\n.dot.selected { stroke: #fff; stroke-width: 1.5; }\n/* Heatmap bins (PR 18). Each lane that exceeds the density threshold\n renders as a row of these rects rather than individual dots; the\n per-bin fill-opacity is set inline by the renderer (scales with\n the bin's record count relative to the lane's max). */\n.density-bin {\n cursor: pointer;\n transition: stroke 80ms ease, fill-opacity 80ms ease;\n}\n.density-bin:hover {\n stroke: #fff;\n stroke-width: 0.5;\n}\n/* Thin pink bar drawn at the selected record's exact x inside its\n bin — keeps the scrubber-style highlight in dense lanes without\n obscuring the bin's category colour. */\nline.density-selected {\n stroke: #f5c2e7;\n stroke-width: 2;\n pointer-events: none;\n}\nline.scrubber {\n stroke: #f5c2e7;\n stroke-width: 1.5;\n stroke-dasharray: 4 2;\n pointer-events: none;\n}\n.svg-pane { cursor: crosshair; }\n.timeline:focus {\n outline: none;\n border-color: #89b4fa;\n}\n.tooltip {\n position: absolute;\n background: #1e1e2e;\n border: 1px solid rgba(59,130,246,0.6);\n border-radius: 4px;\n padding: 4px 8px;\n font-size: 10px;\n white-space: pre-wrap;\n pointer-events: none;\n max-width: 280px;\n color: #cdd6f4;\n z-index: 10;\n box-shadow: 0 4px 12px rgba(0,0,0,0.5);\n}\n.timeline-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Causality DAG pane (PR 17). Shares the flexible vertical slot with\n .timeline — render! toggles which one is hidden by dock-mode. The\n scrollable container holds an inner \x3csvg\x3e sized to the tree's\n bounding box so the scrollbars correctly reflect off-screen depth\n and breadth. */\n.causality {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n background: #11111b;\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.causality:focus { outline: none; border-color: #89b4fa; }\n.causality[hidden] { display: none; }\n.timeline[hidden] { display: none; }\n.causality-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Leaf-hint banner rendered ABOVE the SVG when the tree has only\n one node. Pinned via sticky positioning so it stays visible even\n when the user scrolls the pane (the lone node sits at the\n padded origin and could be obscured by the banner otherwise). */\n.causality-leaf-hint {\n position: sticky;\n top: 0;\n left: 0;\n z-index: 1;\n background: rgba(249,226,175,0.10);\n border-bottom: 1px solid rgba(249,226,175,0.35);\n color: #f9e2af;\n font-size: 10px;\n padding: 6px 10px;\n line-height: 1.4;\n}\nsvg.causality-svg { display: block; }\nsvg.causality-svg .edge {\n stroke: rgba(255,255,255,0.18);\n stroke-width: 1;\n fill: none;\n}\nsvg.causality-svg .node-rect {\n fill: rgba(255,255,255,0.04);\n stroke: rgba(255,255,255,0.12);\n stroke-width: 1;\n cursor: pointer;\n rx: 4;\n ry: 4;\n transition: fill 80ms ease, stroke 80ms ease;\n}\nsvg.causality-svg .node-rect:hover {\n fill: rgba(59,130,246,0.16);\n stroke: rgba(59,130,246,0.6);\n}\nsvg.causality-svg .node-rect.selected {\n fill: rgba(245,194,231,0.18);\n stroke: #f5c2e7;\n stroke-width: 1.5;\n}\nsvg.causality-svg .node-dot {\n pointer-events: none;\n}\nsvg.causality-svg .node-text {\n fill: #cdd6f4;\n font: 10px ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n pointer-events: none;\n dominant-baseline: middle;\n}\nsvg.causality-svg .node-text.id {\n fill: #a6adc8;\n font-size: 9px;\n}\n.splitter {\n flex: 0 0 auto;\n height: 4px;\n background: rgba(255,255,255,0.04);\n cursor: ns-resize;\n touch-action: none;\n transition: background 120ms ease;\n}\n.splitter:hover, .splitter.dragging { background: rgba(59,130,246,0.6); }\n.detail {\n background: #181825;\n border-top: 1px solid rgba(59,130,246,0.2);\n padding: 8px 10px;\n font-size: 10px;\n color: #cdd6f4;\n flex: 0 0 auto;\n height: 35vh;\n min-height: 60px;\n max-height: 80%;\n overflow-y: auto;\n}\n.detail-json {\n margin: 0 0 8px 0;\n font: inherit;\n white-space: pre-wrap;\n word-break: break-all;\n color: #a6e3a1;\n}\n.detail-section { margin-top: 6px; }\n.detail-label {\n color: #89b4fa;\n font-weight: 600;\n margin-bottom: 2px;\n font-size: 10px;\n letter-spacing: 0.02em;\n}\n/* The host is an \x3cx-button\x3e; its own shadow brings background, hover,\n border-radius, etc. We keep block-layout + width on the host so each\n link fills its row, and reach into the button's `label` part to add\n ellipsis truncation (the summary string can exceed the dock width). */\n.detail-link {\n display: block;\n width: 100%;\n margin: 2px 0;\n}\n.detail-link::part(label) {\n display: block;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.detail-link::part(button) {\n width: 100%;\n justify-content: flex-start;\n}\n.detail-empty { color: #6c7086; font-style: italic; font-size: 10px; }\n.empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n}\n.hint { color: #6c7086; font-size: 10px; padding: 4px 10px; flex: 0 0 auto; }\n.hint.error { color: #f38ba8; }\n/* Drop overlay — covers the whole dock while a file is being hovered.\n pointer-events:none keeps drag events flowing through to the dock root\n so the dragleave/drop bookkeeping doesn't fight the overlay layer. */\n.drop-overlay {\n position: absolute;\n inset: 0;\n background: rgba(249,226,175,0.10);\n border: 2px dashed rgba(249,226,175,0.6);\n display: flex;\n align-items: center;\n justify-content: center;\n color: #f9e2af;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.02em;\n z-index: 100;\n pointer-events: none;\n}\n.drop-overlay[hidden] { display: none; }\n/* The hidden file input is kept off-screen — clicked programmatically\n by the Import button — but we mark it `display:none` to keep it out\n of layout entirely. */\n.import-input { display: none; }")+
|
|
82
82
|
"\x3c/style\x3e";var d=$APP.M,e=d.i;b="\x3cdiv class\x3d'dock'\x3e\x3cdiv class\x3d'header'\x3e\x3cx-button data-x-th-action\x3d'collapse' size\x3d'sm' variant\x3d'ghost' aria-label\x3d'Collapse panel' title\x3d'Collapse / expand panel (Ctrl/Cmd + \\\\)'\x3e«\x3c/x-button\x3e\x3cspan class\x3d'title'\x3ex-trace-history\x3c/span\x3e\x3cx-button data-x-th-action\x3d'pause' size\x3d'sm' variant\x3d'ghost'\x3ePause\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'record' size\x3d'sm' variant\x3d'ghost'\x3eRecord\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'clear' size\x3d'sm' variant\x3d'ghost'\x3eClear\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'export' size\x3d'sm' variant\x3d'ghost' title\x3d'Download trace as .trace.json'\x3eExport\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'import' size\x3d'sm' variant\x3d'ghost' title\x3d'Load a .trace.json file (or drag-drop one onto the dock)'\x3eImport\x3c/x-button\x3e\x3cspan class\x3d'count' data-x-th-count\x3e0\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d'sessions' data-x-th-sessions hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'filters'\x3e\x3cx-select data-x-th-tag size\x3d'sm'\x3e\x3coption value\x3d'all' selected\x3eAll tags\x3c/option\x3e\x3c/x-select\x3e\x3cx-search-field data-x-th-search name\x3d'search' placeholder\x3d'Search records…' autocomplete\x3d'off'\x3e\x3c/x-search-field\x3e"+
|
|
83
|
-
$APP.M.i(
|
|
84
|
-
a.innerHTML=c+e.call(d,b)}return a}
|
|
85
|
-
$APP.
|
|
86
|
-
b.querySelector("[data-x-th-sessions]"));$APP.
|
|
87
|
-
|
|
88
|
-
$APP.
|
|
89
|
-
v=$APP.
|
|
90
|
-
r)?null:n,
|
|
91
|
-
n=$APP.l(a,"__xTraceHistoryFilter");var w=
|
|
92
|
-
return n}],[c,"pointermove",function(n){return
|
|
93
|
-
[b,"dragenter",function(n){if($APP.m(
|
|
94
|
-
0?n.setAttribute("hidden",""):null}else n=null;return n}],[b,"drop",function(n){$APP.m(
|
|
95
|
-
n=null;return n}]]},
|
|
96
|
-
"__xTraceHistoryHighlightRaf",null);return
|
|
97
|
-
[$APP.
|
|
98
|
-
|
|
99
|
-
c);
|
|
100
|
-
$APP.l(window,"BAREDOM_TRACE_HISTORY_CAPACITY");b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.
|
|
101
|
-
importRecords:
|
|
102
|
-
arguments[1]);case 3:return
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
"user-agent","user-agent",1220426212),
|
|
107
|
-
"max-depth",127060793),
|
|
108
|
-
"by-token",-1485378511),
|
|
109
|
-
-809333661),
|
|
110
|
-
"categories","categories",178386610),
|
|
111
|
-
-1249933394),
|
|
112
|
-
-293616201),
|
|
113
|
-
"document","baredom.dev.x-trace-history.model/document",-1776453896),
|
|
114
|
-
null,"dom/attribute-set",null],null),null),
|
|
115
|
-
a,d)},$APP.
|
|
116
|
-
n):
|
|
117
|
-
|
|
118
|
-
case 2:return
|
|
119
|
-
|
|
120
|
-
b=$APP.l(a,"__xTraceHistoryListeners");if($APP.m(b)){for(var c=b.length,d=0;;)if(d<c){var e=b[d];e[0].removeEventListener(e[1],e[2]);d+=1}else break;$APP.
|
|
121
|
-
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.m(b)&&$APP.
|
|
83
|
+
$APP.M.i(jR("events",$APP.bd(b,$APP.dv)))+$APP.M.i(jR("state",$APP.bd(b,$APP.Su)))+$APP.M.i(jR("dom",$APP.bd(b,jS)))+$APP.M.i(jR("lifecycle",$APP.bd(b,kS)))+"\x3cx-select data-x-th-mode size\x3d'sm'\x3e\x3coption value\x3d'timeline' selected\x3eTimeline\x3c/option\x3e\x3coption value\x3d'causality'\x3eCausality\x3c/option\x3e\x3c/x-select\x3e\x3cx-select data-x-th-axis size\x3d'sm'\x3e\x3coption value\x3d'order' selected\x3eOrder\x3c/option\x3e\x3coption value\x3d'time'\x3eTime\x3c/option\x3e\x3c/x-select\x3e\x3c/div\x3e\x3cdiv class\x3d'timeline' data-x-th-timeline tabindex\x3d'0'\x3e\x3cdiv class\x3d'lanes' data-x-th-lanes\x3e\x3c/div\x3e\x3cdiv class\x3d'svg-pane' data-x-th-svg-pane\x3e\x3c/div\x3e\x3cdiv class\x3d'tooltip' data-x-th-tooltip hidden\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'causality' data-x-th-causality tabindex\x3d'0' hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'splitter' data-x-th-splitter hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'detail' data-x-th-detail hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'hint' data-x-th-hint\x3e\x3c/div\x3e\x3cdiv class\x3d'drop-overlay' data-x-th-drop-overlay hidden\x3eDrop .trace.json to import\x3c/div\x3e\x3cinput class\x3d'import-input' data-x-th-import-input type\x3d'file' accept\x3d'.json,.trace.json,application/json' /\x3e\x3c/div\x3e";
|
|
84
|
+
a.innerHTML=c+e.call(d,b)}return a},Upa=function(a,b){$APP.P(a,"__xTraceHistoryShadow",b);$APP.P(a,"__xTraceHistoryTimelineEl",b.querySelector("[data-x-th-timeline]"));$APP.P(a,"__xTraceHistoryLanesEl",b.querySelector("[data-x-th-lanes]"));$APP.P(a,"__xTraceHistorySvgPaneEl",b.querySelector("[data-x-th-svg-pane]"));$APP.P(a,"__xTraceHistoryTooltipEl",b.querySelector("[data-x-th-tooltip]"));$APP.P(a,"__xTraceHistoryCountEl",b.querySelector("[data-x-th-count]"));$APP.P(a,"__xTraceHistoryDetailEl",b.querySelector("[data-x-th-detail]"));
|
|
85
|
+
$APP.P(a,"__xTraceHistorySplitterEl",b.querySelector("[data-x-th-splitter]"));$APP.P(a,"__xTraceHistoryHintEl",b.querySelector("[data-x-th-hint]"));$APP.P(a,"__xTraceHistoryTagSelectEl",b.querySelector("[data-x-th-tag]"));$APP.P(a,"__xTraceHistoryCausalityEl",b.querySelector("[data-x-th-causality]"));$APP.P(a,"__xTraceHistoryPauseBtn",b.querySelector("[data-x-th-action\x3d'pause']"));$APP.P(a,"__xTraceHistoryRecordBtn",b.querySelector("[data-x-th-action\x3d'record']"));$APP.P(a,"__xTraceHistorySessionsEl",
|
|
86
|
+
b.querySelector("[data-x-th-sessions]"));$APP.P(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.P(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.P(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},Vpa=function(a,b,c,d,e,f,g,k){return[[b,"click",function(n){n=n.target;var r=n.closest("[data-x-th-action]");if($APP.m(r))switch(r.getAttribute("data-x-th-action")){case "pause":$APP.m($APP.qs.i($APP.ab(zP)))?
|
|
87
|
+
NQ():MQ();break;case "record":TQ()!=null?UQ():VQ();break;case "clear":$APP.P(a,"__xTraceHistoryViewSelected",{});$APP.P(a,"__xTraceHistoryView",$APP.cw);SQ();break;case "export":eR();break;case "import":r=$APP.l(a,"__xTraceHistoryImportInput");$APP.m(r)&&(r.value="",r.click());break;case "collapse":YR(a)}r=n.closest("[data-x-th-import-close]");if($APP.m(r)){r=parseInt(r.getAttribute("data-x-th-import-close"),10);var v=$APP.l(a,"__xTraceHistoryView");gQ(v)&&$APP.z.j(r,hQ(v))&&$APP.P(a,"__xTraceHistoryView",
|
|
88
|
+
$APP.cw);$Q(r)}$APP.m(n.closest("[data-x-th-import-close]"))||(r=n.closest("[data-x-th-session]"),$APP.m(r)&&(r=r.getAttribute("data-x-th-session"),r=$APP.z.j(r,"live")?$APP.cw:r.lastIndexOf("import:",0)==0?new $APP.H(null,2,5,$APP.I,[fQ,parseInt(r.substring(7),10)],null):new $APP.H(null,2,5,$APP.I,[dQ,parseInt(r,10)],null),$APP.P(a,"__xTraceHistoryView",r),SR(a)));r=n.closest("[data-x-th-lane-tag]");if($APP.m(r)){v=r.getAttribute("data-x-th-lane-tag");r=$APP.l(a,"__xTraceHistoryFilter");var w=$APP.Bw.i(r);
|
|
89
|
+
v=$APP.z.j(v,w)?null:v;r=$APP.Og.l(r,$APP.Bw,v);$APP.P(a,"__xTraceHistoryFilter",r);r=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.m(r)&&(r.value=$APP.m(v)?v:"all");SR(a)}r=n.closest("[data-x-th-link-id]");$APP.m(r)&&(r=r.getAttribute("data-x-th-link-id"),$APP.m(r)&&(r=parseInt(r,10),$APP.m(isNaN(r))||(OR(a,r),SR(a))));r=TR(n);r=$APP.m(r)?r:UR(n);$APP.m(r)?($APP.m(TR(n))?n=VR(n):$APP.m(UR(n))?(n=n.getAttribute("data-x-th-bin-record-id"),n=$APP.m(n)?parseInt(n,10):null):n=null,r=CR(a),n=$APP.z.j(n,
|
|
90
|
+
r)?null:n,OR(a,n),n=SR(a)):n=null;return n}],[b,"select-change",function(n){var r=n.target;n=n.detail.value;r.getAttribute("data-x-th-tag")!=null?(r=$APP.Og.l($APP.l(a,"__xTraceHistoryFilter"),$APP.Bw,$APP.z.j(n,"all")?null:n),$APP.P(a,"__xTraceHistoryFilter",r),r=SR(a)):r=r.getAttribute("data-x-th-mode")!=null?Mpa(a,n):r.getAttribute("data-x-th-axis")!=null?Lpa(a,n):null;return r}],[b,"x-checkbox-change",function(n){var r=n.target.getAttribute("data-x-th-cat");if(r!=null){var v=n.detail.checked;
|
|
91
|
+
n=$APP.l(a,"__xTraceHistoryFilter");var w=EP.i(n);w=$APP.m(w)?w:$APP.Wg(AP);r=$APP.Ah.i(r);r=$APP.m(v)?$APP.zd.j(w,r):$APP.zo.j(w,r);n=$APP.Og.l(n,EP,r);$APP.P(a,"__xTraceHistoryFilter",n);n=SR(a)}else n=null;return n}],[b,"x-search-field-input",function(n){var r=n.target;$APP.m($APP.m(r)?r.hasAttribute("data-x-th-search"):r)?(n=n.detail.value,n=($APP.m(n)?n:"").toLowerCase(),n=$APP.Og.l($APP.l(a,"__xTraceHistoryFilter"),FP,$APP.z.j("",n)?null:n),$APP.P(a,"__xTraceHistoryFilter",n),n=SR(a)):n=null;
|
|
92
|
+
return n}],[c,"pointermove",function(n){return Npa(a,n)}],[c,"pointerleave",function(){return $APP.l(a,"__xTraceHistoryTooltipEl").setAttribute("hidden","")}],[c,"pointerdown",function(){return c.focus()}],[k,"pointerdown",function(){return k.focus()}],[b,"keydown",function(n){return Qpa(a,n)}],[d,"pointerdown",function(n){return Opa(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),n)}],[e,"pointerdown",function(n){return Rpa(f,e,n)}],[g,"change",function(n){n=n.target.files;return n.length>0?hS(a,n[0]):null}],
|
|
93
|
+
[b,"dragenter",function(n){if($APP.m(iS(n))){n.preventDefault();n=$APP.l(a,"__xTraceHistoryDropOverlay");var r=iQ(a,lS);jQ(a,lS,($APP.m(r)?r:0)+1);n=n.removeAttribute("hidden")}else n=null;return n}],[b,"dragover",function(n){$APP.m(iS(n))?(n.preventDefault(),n=n.dataTransfer,n=$APP.m(n)?n.dropEffect="copy":null):n=null;return n}],[b,"dragleave",function(n){if($APP.m(iS(n))){n=$APP.l(a,"__xTraceHistoryDropOverlay");var r=$APP.pk.j,v=iQ(a,lS);r=r.call($APP.pk,0,($APP.m(v)?v:0)-1);jQ(a,lS,r);n=r===
|
|
94
|
+
0?n.setAttribute("hidden",""):null}else n=null;return n}],[b,"drop",function(n){$APP.m(iS(n))?(n.preventDefault(),jQ(a,lS,0),$APP.l(a,"__xTraceHistoryDropOverlay").setAttribute("hidden",""),n=n.dataTransfer,n=$APP.m(n)?n.files:null,n=$APP.m($APP.m(n)?n.length>0:n)?hS(a,n[0]):null):n=null;return n}],[document,"keydown",function(n){var r;if(r=$APP.z.j("\\",n.key))r=n.metaKey,r=$APP.m(r)?r:n.ctrlKey,r=$APP.m(r)?$APP.p(n.altKey)&&$APP.p(n.shiftKey)&&!dS(n.target):r;$APP.m(r)?(n.preventDefault(),n=YR(a)):
|
|
95
|
+
n=null;return n}]]},Wpa=function(a,b){b=Vpa(a,b,$APP.l(a,"__xTraceHistoryTimelineEl"),$APP.l(a,"__xTraceHistorySvgPaneEl"),$APP.l(a,"__xTraceHistorySplitterEl"),$APP.l(a,"__xTraceHistoryDetailEl"),$APP.l(a,"__xTraceHistoryImportInput"),$APP.l(a,"__xTraceHistoryCausalityEl"));$APP.P(a,"__xTraceHistoryListeners",b);a:{a=b.length;for(var c=0;;)if(c<a){var d=b[c];d[0].addEventListener(d[1],d[2]);c+=1}else break a}},Xpa=function(a){if($APP.m($APP.l(a,"__xTraceHistoryHighlightRaf")))return null;var b=requestAnimationFrame(function(){$APP.Ji(a,
|
|
96
|
+
"__xTraceHistoryHighlightRaf",null);return hR(a)});return $APP.Ji(a,"__xTraceHistoryHighlightRaf",b)},Ypa=function(a){function b(){return Xpa(a)}var c=[[window,"scroll",b,{capture:!0,passive:!0}],[window,"resize",b,{capture:!1,passive:!0}]];$APP.Ji(a,"__xTraceHistoryHighlightListeners",c);for(var d=c.length,e=0;;)if(e<d){var f=c[e];f[0].addEventListener(f[1],f[2],f[3]);e+=1}else break},Zpa=function(a,b){$APP.m($APP.l(a,"__xTraceHistoryFilter"))||$APP.P(a,"__xTraceHistoryFilter",new $APP.J(null,3,
|
|
97
|
+
[$APP.Bw,null,EP,b,FP,null],null));$APP.m($APP.l(a,"__xTraceHistoryView"))||$APP.P(a,"__xTraceHistoryView",$APP.cw);$APP.m($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.P(a,"__xTraceHistoryViewSelected",{});$APP.m($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.P(a,"__xTraceHistoryAxisMode",$APP.it);$APP.m($APP.l(a,"__xTraceHistoryDockMode"))||$APP.P(a,"__xTraceHistoryDockMode",RR);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.P(a,"__xTraceHistoryCollapsed",!1);WR(a,$APP.D($APP.l(a,"__xTraceHistoryCollapsed")))},
|
|
98
|
+
$pa=function(a){if($APP.m($APP.l(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=lQ().length;Zoa(function(){var c=Foa(),d=Tpa(a,c);Upa(a,d);Zpa(a,c);Wpa(a,d);Ypa(a);c=pQ.i($APP.Ir.l(mQ,Xoa,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=bR(),g=f.length;var k=iQ(a,mS);k=$APP.m(k)?k:0;g>k?(jQ(a,mS,g),$APP.z.j(e,$APP.cw)&&lQ().length===0&&$APP.P(a,"__xTraceHistoryView",new $APP.H(null,2,5,$APP.I,[fQ,f[g-1].id],null))):g<k&&jQ(a,mS,g);return SR(a)}));$APP.P(a,"__xTraceHistorySubToken",
|
|
99
|
+
c);SR(a);return $APP.P(a,"__xTraceHistoryMounted",!0)});return $APP.K.j(b,lQ().length)?console.warn("[x-trace-history] dock mount produced records — internal-host suppression is leaking. ","Wrap dynamic child-component constructors in recorder/with-suppressed-recording!."):null},nS=function(){return $APP.m(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},oS=function(){if(typeof window!=="undefined"){if(kP()){var a=$APP.Ir.o;var b=
|
|
100
|
+
$APP.l(window,"BAREDOM_TRACE_HISTORY_CAPACITY");b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.z.j("raw",$APP.l(c,"BAREDOM_TRACE_HISTORY")))||(c=c.location.search,c=c==null?null:$APP.sh(aqa,c),d=$APP.D(c));a.call($APP.Ir,zP,$APP.Og,$APP.Wo,b,$APP.Ac([rP,d]));$APP.Ae($APP.vi,IQ);$APP.Ae($APP.sj,IQ);$APP.Ae(tQ,0);$APP.Ae(AQ,$APP.Re);bpa();$APP.Ae(HQ,!0);a=$APP.l(window,"BareDOM");a=$APP.m(a)?a:{};a.traceHistory={records:cpa,sessions:XQ,"export":ipa,download:eR,stopSession:UQ,"import":gS,pause:MQ,
|
|
101
|
+
importRecords:cR,sessionRecords:YQ,startSession:VQ,components:dpa,clear:SQ,imports:bR,removeImport:$Q,resume:NQ};window.BareDOM=a;console.log("%c[BareDOM Trace History]%c Active — see window.BareDOM.traceHistory for the API","color:#3b82f6;font-weight:bold","color:inherit")}$APP.Dn();$APP.qq();$APP.hl();$APP.cr();$APP.Fj("x-trace-history",bqa);return kP()?$APP.m(document.body)?nS():document.addEventListener("DOMContentLoaded",nS,{once:!0}):null}return null},pS=function(){return oS()},WP=function WP(a){switch(arguments.length){case 2:return WP.j(arguments[0],
|
|
102
|
+
arguments[1]);case 3:return WP.l(arguments[0],arguments[1],arguments[2]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return WP.o(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.Xb(c.slice(3),0,null):null)}};WP.j=function(a,b){return b};WP.l=function(a,b,c){return(a.i?a.i(b):a.call(null,b))<(a.i?a.i(c):a.call(null,c))?b:c};WP.o=function(a,b,c,d){return $APP.xa.l(function(e,f){return WP.l(a,e,f)},WP.l(a,b,c),d)};
|
|
103
|
+
WP.I=function(a){var b=$APP.t(a),c=$APP.u(a);a=$APP.t(c);var d=$APP.u(c);c=$APP.t(d);d=$APP.u(d);return this.o(b,a,c,d)};WP.M=3;var qS=function qS(a){switch(arguments.length){case 0:return qS.D();case 1:return qS.i(arguments[0]);case 2:return qS.j(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return qS.o(arguments[0],arguments[1],2<c.length?new $APP.Xb(c.slice(2),0,null):null)}};qS.D=function(){return 0};qS.i=function(a){return a};
|
|
104
|
+
qS.j=function(a,b){return a+b};qS.o=function(a,b,c){return $APP.xa.l(qS,a+b,c)};qS.I=function(a){var b=$APP.t(a),c=$APP.u(a);a=$APP.t(c);c=$APP.u(c);return this.o(b,a,c)};qS.M=2;
|
|
105
|
+
var tP=new $APP.E(null,"start-t","start-t",1829305353),vR=new $APP.E(null,"node-count","node-count",383091297),vP=new $APP.E(null,"start-id","start-id",-456790067),wP=new $APP.E(null,"end-id","end-id",2084513705),RR=new $APP.E(null,"timeline","timeline",192903161),FR=new $APP.E(null,"chip-key","chip-key",644014552),zQ=new $APP.E(null,"next-component-id","next-component-id",1588977206),rR=new $APP.E(null,"edges","edges",-694791395),pQ=new $APP.E(null,"next-token","next-token",1432414974),qP=new $APP.E(null,
|
|
106
|
+
"user-agent","user-agent",1220426212),NR=new $APP.E(null,"causality","causality",-712927373),rP=new $APP.E(null,"forensic?","forensic?",188264321),FP=new $APP.E(null,"search","search",1564939822),dQ=new $APP.E(null,"session","session",1008279103),uR=new $APP.E(null,"causality-layout","causality-layout",-1264013405),GR=new $APP.E(null,"recording?","recording?",-1477514924),YP=new $APP.E(null,"records","records",1326822832),qQ=new $APP.E(null,"new?","new?",777958557),xpa=new $APP.E(null,"max-depth",
|
|
107
|
+
"max-depth",127060793),cQ=new $APP.E(null,"capped?","capped?",-65680820),tR=new $APP.E(null,"cy","cy",755331060),sR=new $APP.E(null,"cx","cx",1272694324),$P=new $APP.E(null,"x-start","x-start",1183238797),DR=new $APP.E(null,"scroll-left","scroll-left",-211761103),SP=new $APP.E(null,"lane-id","lane-id",2005926623),GP=new $APP.E(null,"haystack-fn","haystack-fn",1813797862),PQ=new $APP.E(null,"sessions","sessions",-699316392),uP=new $APP.E(null,"end-t","end-t",-218701242),nQ=new $APP.E(null,"by-token",
|
|
108
|
+
"by-token",-1485378511),rS=new $APP.E(null,"next-import-id","next-import-id",287496955),bQ=new $APP.E(null,"record","record",-779106859),BQ=new $APP.E(null,"components","components",-1073188942),KQ=new $APP.E(null,"envelope","envelope",-236796318),nP=new $APP.E(null,"cause-id","cause-id",-1282947263),Loa=new $APP.E(null,"x-end","x-end",-1725631203),Ioa=new $APP.E(null,"tmax","tmax",2006118392),aS=new $APP.E(null,"bin-count","bin-count",1792167977),mS=new $APP.E(null,"auto-switch-import","auto-switch-import",
|
|
109
|
+
-809333661),BR=new $APP.E(null,"causality-needs-fit","causality-needs-fit",1728707358),qR=new $APP.E(null,"to-cy","to-cy",1542880464),pR=new $APP.E(null,"to-cx","to-cx",698995232),ER=new $APP.E(null,"scroll-top","scroll-top",-46723100),EQ=new $APP.E(null,"rate-limit","rate-limit",1748082022),TP=new $APP.E(null,"tmin","tmin",-39508962),cqa=new $APP.E(null,"to-id","to-id",1021626465),Moa=new $APP.E(null,"t-min","t-min",-488887638),rQ=new $APP.E(null,"next-id","next-id",-224240762),EP=new $APP.E(null,
|
|
110
|
+
"categories","categories",178386610),Noa=new $APP.E(null,"t-max","t-max",-949530573),lR=new $APP.E(null,"time","time",1385887882),ZP=new $APP.E(null,"dominant-cat","dominant-cat",-914257775),kS=new $APP.E(null,"lifecycle","lifecycle",341496205),BP=new $APP.E(null,"other","other",995793544),ZQ=new $APP.E("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),RP=new $APP.E(null,"min-t","min-t",-1349871659),LQ=new $APP.E(null,"imports","imports",
|
|
111
|
+
-1249933394),XP=new $APP.E(null,"bin-i","bin-i",791326307),sP=new $APP.E(null,"first-seen","first-seen",390191468),HR=new $APP.E(null,"import?","import?",-40157302),jS=new $APP.E(null,"dom","dom",-1236537922),QQ=new $APP.E(null,"next-session-id","next-session-id",1944278844),aR=new $APP.E(null,"imported-at","imported-at",-1157103926),$R=new $APP.E(null,"record-id","record-id",-1468971877),RQ=new $APP.E(null,"active-session-id","active-session-id",943086451),nR=new $APP.E(null,"from-cx","from-cx",
|
|
112
|
+
-293616201),oR=new $APP.E(null,"from-cy","from-cy",1126835724),pP=new $APP.E(null,"exported-at","exported-at",1661975683),mP=new $APP.E(null,"component-id","component-id",1551113783),eS=new $APP.E(null,"import-error","import-error",1672727808),lS=new $APP.E(null,"drag-depth","drag-depth",-226189617),dqa=new $APP.E(null,"from-id","from-id",-106962526),IR=new $APP.E(null,"import-id","import-id",940580069),UP=new $APP.E(null,"span","span",1394872991),PP=new $APP.E("baredom.dev.x-trace-history.model",
|
|
113
|
+
"document","baredom.dev.x-trace-history.model/document",-1776453896),fQ=new $APP.E(null,"import","import",-1399500709);var OQ=$APP.Nf.j($APP.Qr,$APP.Re),Aoa=jP("(?:^\\?|\x26)"+$APP.M.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),aqa=jP("(?:^\\?|\x26)"+$APP.M.i("baredom-trace-history")+"\x3d"+$APP.M.i("raw")+"(?:\x26|$)"),Goa=new $APP.J(null,4,[$APP.dv,new $APP.Rg(null,new $APP.J(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.Su,new $APP.Rg(null,new $APP.J(null,1,["state/instance-field-set",null],null),null),jS,new $APP.Rg(null,new $APP.J(null,2,["dom/attribute-removed",
|
|
114
|
+
null,"dom/attribute-set",null],null),null),kS,new $APP.Rg(null,new $APP.J(null,4,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/moved",null,"lifecycle/disconnected",null],null),null)],null),AP=new $APP.H(null,4,5,$APP.I,[$APP.dv,$APP.Su,jS,kS],null),NP=new $APP.J(null,5,[$APP.dv,"#94e2d5",$APP.Su,"#f9e2af",jS,"#fab387",kS,"#cba6f7",BP,"#6c7086"],null),aQ=function aQ(a,b){return $APP.Cd(b,new $APP.Ed(null,function(){return $APP.Je(function(d){return aQ.j?aQ.j(a,d):aQ.call(null,
|
|
115
|
+
a,d)},$APP.Ac([Soa(a,b.id)]))},null))},wR=function wR(a){return $APP.xa.l(qS,0,$APP.Fe.j(wR,$APP.fx.i(a)))+1},xR=function xR(a){return $APP.Pc($APP.fx.i(a))?0:$APP.Yd($APP.pk,$APP.Fe.j(xR,$APP.fx.i(a)))+1},yR=function yR(a,b,c){var e=bQ.i(a),f=$APP.fx.i(a);a=30+b*56;if($APP.Pc(f))return new $APP.H(null,2,5,$APP.I,[new $APP.J(null,6,[$APP.Eu,e.id,bQ,e,sR,c+70,tR,a,$APP.Di,b,$APP.fx,$APP.Re],null),c+158],null);f=$APP.xa.l(function(n,r){var v=$APP.A(n,0,null);n=$APP.A(n,1,null);var w=b+1;n=yR.l?yR.l(r,
|
|
116
|
+
w,n):yR.call(null,r,w,n);r=$APP.A(n,0,null);n=$APP.A(n,1,null);return new $APP.H(null,2,5,$APP.I,[$APP.zd.j(v,r),n],null)},new $APP.H(null,2,5,$APP.I,[$APP.Re,c],null),f);c=$APP.A(f,0,null);f=$APP.A(f,1,null);var g=sR.i($APP.t(c)),k=sR.i($APP.Ec(c));return new $APP.H(null,2,5,$APP.I,[new $APP.J(null,6,[$APP.Eu,e.id,bQ,e,sR,(g+k)/2,tR,a,$APP.Di,b,$APP.fx,c],null),f],null)},zR=function zR(a){return $APP.Nf.j(new $APP.H(null,1,5,$APP.I,[$APP.Ik.j(a,$APP.fx)],null),$APP.Je(zR,$APP.Ac([$APP.fx.i(a)])))},
|
|
117
|
+
AR=function AR(a){var c=$APP.Eu.i(a),d=sR.i(a),e=tR.i(a);return $APP.lf($APP.Je(function(f){return $APP.Cd(new $APP.J(null,6,[dqa,c,nR,d,oR,e,cqa,$APP.Eu.i(f),pR,sR.i(f),qR,tR.i(f)],null),AR.i?AR.i(f):AR.call(null,f))},$APP.Ac([$APP.fx.i(a)])))};var zP=$APP.ze($APP.sg([rP,$APP.Wo,EQ,rQ,$APP.qs,LQ,YP,BQ,RQ,zQ,PQ,rS,QQ],[!1,5E3,$APP.fe,0,!1,$APP.Re,OQ,$APP.fe,null,0,$APP.Re,0,0])),mQ=$APP.ze(new $APP.J(null,3,[pQ,0,$APP.Xo,!1,nQ,$APP.fe],null)),AQ=$APP.ze($APP.Re),JQ=$APP.ze(null),HQ=$APP.ze(!1),tQ=$APP.ze(0),kQ=$APP.ze([null,null]),$oa=new $APP.Rg(null,new $APP.J(null,3,[$APP.Hi,null,$APP.wi,null,$APP.Fi,null],null),null),apa=new $APP.Rg(null,new $APP.J(null,3,[$APP.aj,null,$APP.cj,null,$APP.Vi,null],null),null),gS=function gS(a){switch(arguments.length){case 1:return gS.i(arguments[0]);
|
|
118
|
+
case 2:return gS.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};gS.i=function(a){return gS.j(a,null)};
|
|
119
|
+
gS.j=function(a,b){a=hpa(a);var c=$APP.F(a);a=$APP.C(c,$APP.lu);c=$APP.C(c,$APP.Hj);if($APP.m(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=rS.i($APP.ab(zP));b=b==null||$APP.z.j("",b)?"Import "+$APP.M.i(d):b;var e=new $APP.J(null,4,[$APP.Eu,d,$APP.Z,b,aR,c,KQ,a],null);$APP.Ir.j(zP,function(f){return $APP.qi.l($APP.qi.H(f,LQ,$APP.zd,e),rS,$APP.hc)});oQ();return d};gS.M=2;var Jpa=new $APP.Hh(function(){var a=window.matchMedia;return $APP.m(a)?a.call(window,"(prefers-reduced-motion: reduce)"):null});var jpa=RegExp("\x26","g"),kpa=RegExp("\x3c","g"),lpa=RegExp("\x3e","g"),mpa=RegExp('"',"g"),npa=RegExp("'","g"),KR=new WeakMap,Ppa=new $APP.Rg(null,new $APP.J(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),bqa=new $APP.J(null,5,[$APP.Bj,!0,$APP.Ej,[],$APP.Cj,function(a){return $pa(a)},$APP.zj,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.m(b)&&$APP.Ir.o(mQ,$APP.qi,nQ,$APP.Ik,$APP.Ac([b]));b=iQ(a,eS);$APP.m(b)&&typeof b==="number"&&clearTimeout(b);
|
|
120
|
+
b=$APP.l(a,"__xTraceHistoryListeners");if($APP.m(b)){for(var c=b.length,d=0;;)if(d<c){var e=b[d];e[0].removeEventListener(e[1],e[2]);d+=1}else break;$APP.P(a,"__xTraceHistoryListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightListeners");if($APP.m(b)){c=b.length;for(d=0;;)if(d<c)e=b[d],e[0].removeEventListener(e[1],e[2],e[3]),d+=1;else break;$APP.Ji(a,"__xTraceHistoryHighlightListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightRaf");$APP.m(b)&&(cancelAnimationFrame(b),$APP.Ji(a,"__xTraceHistoryHighlightRaf",
|
|
121
|
+
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.m(b)&&$APP.Vl(b);$APP.Ji(a,"__xTraceHistoryHighlightLayer",null);$APP.Ji(a,"__xTraceHistoryHighlightBox",null);$APP.Ji(a,"__xTraceHistoryHighlightCid",null);$APP.P(a,"__xTraceHistorySubToken",null);jQ(a,eS,null);return $APP.P(a,"__xTraceHistoryMounted",null)},$APP.yj,function(){return null}],null);$APP.ea("baredom.exports.x_trace_history.init",pS);oS();export const init=pS;
|