@vanelsas/baredom 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/custom-elements.json +4430 -3627
  3. package/dist/baredom.d.ts +92 -92
  4. package/dist/base.js +394 -388
  5. package/dist/integrity.json +108 -108
  6. package/dist/x-alert.js +16 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +13 -13
  9. package/dist/x-badge.js +8 -8
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +31 -31
  15. package/dist/x-cancel-dialogue.js +11 -11
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +25 -25
  18. package/dist/x-chart.js +43 -43
  19. package/dist/x-checkbox.d.ts +11 -4
  20. package/dist/x-checkbox.js +1 -1
  21. package/dist/x-chip.js +1 -1
  22. package/dist/x-code.js +24 -24
  23. package/dist/x-collapse.js +8 -8
  24. package/dist/x-color-picker.d.ts +7 -0
  25. package/dist/x-color-picker.js +34 -34
  26. package/dist/x-combobox.d.ts +12 -5
  27. package/dist/x-combobox.js +30 -29
  28. package/dist/x-command-palette.js +27 -27
  29. package/dist/x-confetti.js +22 -22
  30. package/dist/x-container.js +3 -3
  31. package/dist/x-context-menu.js +18 -18
  32. package/dist/x-copy.js +1 -1
  33. package/dist/x-currency-field.d.ts +5 -0
  34. package/dist/x-currency-field.js +21 -21
  35. package/dist/x-date-picker.d.ts +7 -0
  36. package/dist/x-date-picker.js +36 -35
  37. package/dist/x-divider.js +9 -9
  38. package/dist/x-drawer.js +8 -8
  39. package/dist/x-dropdown.js +12 -12
  40. package/dist/x-fieldset.js +5 -5
  41. package/dist/x-file-download.js +5 -5
  42. package/dist/x-file-upload.d.ts +10 -5
  43. package/dist/x-file-upload.js +23 -20
  44. package/dist/x-form-field.d.ts +7 -0
  45. package/dist/x-form-field.js +13 -12
  46. package/dist/x-form.js +10 -10
  47. package/dist/x-gaussian-blur.js +11 -11
  48. package/dist/x-grid.js +6 -6
  49. package/dist/x-i18n-provider.js +6 -6
  50. package/dist/x-i18n.js +4 -4
  51. package/dist/x-icon.js +7 -7
  52. package/dist/x-image.js +16 -16
  53. package/dist/x-kbd.js +11 -11
  54. package/dist/x-kinetic-canvas.js +24 -24
  55. package/dist/x-kinetic-font.js +22 -22
  56. package/dist/x-kinetic-typography.js +27 -27
  57. package/dist/x-liquid-dock.js +30 -30
  58. package/dist/x-liquid-fill.js +35 -35
  59. package/dist/x-liquid-glass.js +26 -26
  60. package/dist/x-menu-item.js +6 -6
  61. package/dist/x-menu.js +7 -7
  62. package/dist/x-metaball-cursor.js +17 -17
  63. package/dist/x-modal.js +10 -10
  64. package/dist/x-morph-stack.js +28 -28
  65. package/dist/x-multi-combobox.d.ts +7 -0
  66. package/dist/x-multi-combobox.js +36 -36
  67. package/dist/x-navbar.js +12 -12
  68. package/dist/x-neural-glow.js +19 -19
  69. package/dist/x-notification-center.js +9 -9
  70. package/dist/x-organic-divider.js +13 -13
  71. package/dist/x-organic-progress.js +30 -30
  72. package/dist/x-organic-shape.js +7 -7
  73. package/dist/x-otp-input.d.ts +5 -0
  74. package/dist/x-otp-input.js +19 -19
  75. package/dist/x-pagination.js +11 -11
  76. package/dist/x-particle-button.js +40 -40
  77. package/dist/x-popover.js +24 -24
  78. package/dist/x-progress-circle.js +6 -6
  79. package/dist/x-progress.js +6 -6
  80. package/dist/x-proximity-list.js +20 -20
  81. package/dist/x-radio.d.ts +10 -3
  82. package/dist/x-radio.js +12 -11
  83. package/dist/x-range-slider.d.ts +7 -0
  84. package/dist/x-range-slider.js +27 -27
  85. package/dist/x-rating.d.ts +7 -0
  86. package/dist/x-rating.js +19 -18
  87. package/dist/x-ripple-effect.js +7 -7
  88. package/dist/x-scroll-parallax.js +17 -17
  89. package/dist/x-scroll-stack.js +15 -15
  90. package/dist/x-scroll-story.js +29 -29
  91. package/dist/x-scroll-timeline.js +39 -39
  92. package/dist/x-scroll.js +32 -32
  93. package/dist/x-search-field.d.ts +9 -4
  94. package/dist/x-search-field.js +1 -1
  95. package/dist/x-select.d.ts +9 -2
  96. package/dist/x-select.js +1 -1
  97. package/dist/x-sidebar.js +14 -14
  98. package/dist/x-skeleton-group.js +11 -11
  99. package/dist/x-skeleton.js +1 -1
  100. package/dist/x-slider.d.ts +7 -0
  101. package/dist/x-slider.js +16 -15
  102. package/dist/x-soft-body.js +13 -13
  103. package/dist/x-spacer.js +4 -4
  104. package/dist/x-spinner.js +3 -3
  105. package/dist/x-splash.js +11 -11
  106. package/dist/x-split-pane.js +13 -13
  107. package/dist/x-spotlight-card.js +12 -12
  108. package/dist/x-stat.js +7 -7
  109. package/dist/x-stepper.js +13 -13
  110. package/dist/x-switch.d.ts +10 -3
  111. package/dist/x-switch.js +11 -10
  112. package/dist/x-tab.js +6 -6
  113. package/dist/x-table-cell.js +15 -15
  114. package/dist/x-table-row.js +7 -7
  115. package/dist/x-table.d.ts +32 -32
  116. package/dist/x-table.js +12 -12
  117. package/dist/x-tabs.js +9 -9
  118. package/dist/x-text-area.d.ts +7 -0
  119. package/dist/x-text-area.js +18 -18
  120. package/dist/x-theme.js +21 -21
  121. package/dist/x-timeline-item.js +18 -18
  122. package/dist/x-timeline.js +8 -8
  123. package/dist/x-toast.js +20 -20
  124. package/dist/x-toaster.js +6 -6
  125. package/dist/x-tooltip.js +11 -11
  126. package/dist/x-trace-history.js +96 -96
  127. package/dist/x-typography.js +5 -5
  128. package/dist/x-welcome-tour.js +52 -52
  129. package/package.json +1 -1
@@ -1,105 +1,105 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var nN=function(a,b,c){for(var d=$APP.q(a.cc),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null);k=$APP.B(k,1,null);k.J?k.J(m,a,b,c):k.call(null,m,a,b,c);h+=1}else if(d=$APP.q(d))$APP.Yc(d)?(e=$APP.Db(d),d=$APP.Eb(d),m=e,f=$APP.w(e),e=m):(e=$APP.u(d),m=$APP.B(e,0,null),k=$APP.B(e,1,null),k.J?k.J(m,a,b,c):k.call(null,m,a,b,c),d=$APP.v(d),e=null,f=0),h=0;else break},oN=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},pN=function(a,b){if(a!=null&&a.Ac!=null)a=a.Ac(a,
3
- b);else{var c=pN[$APP.aa(a==null?null:a)];if(c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=pN._,c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.ua("IReset.-reset!",a);}return a},qN=function(a){return a+1},Fda=function(a){return a-1},Gda=function(a,b){return $APP.hd(function(c,d){c=a.i?a.i(c):a.call(null,c);d=a.i?a.i(d):a.call(null,d);var e=$APP.fd($APP.dd);return e.j?e.j(c,d):e.call(null,c,d)},b)},rN=function(a,b){return Gda(a,b)},sN=function(a){if(a instanceof RegExp)return a;var b=$APP.yh(/^\(\?([idmsux]*)\)/,
4
- a),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.n(b)?b:"")},Hda=function(a){return $APP.Qd($APP.ya(function(b,c){return $APP.Ud(b,c,$APP.Jc(b,c,0)+1)},$APP.wb($APP.ie),a))},Ida=function(a){return new $APP.J(null,2,5,$APP.K,[$APP.ue(200,a),$APP.ve(200,a)],null)},tN=function(a,b){if(a instanceof $APP.se){var c=a.oc;if(c!=null&&!$APP.n(c.i?c.i(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;a.cc!=null&&nN(a,c,b);
5
- return b}return pN(a,b)},uN=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.yh(Jda,b);return $APP.D(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.z.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},Kda=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.n(a)?a:"document"},vN=function(a){try{return a==null?null:$APP.qm(a)}catch(b){try{return""+$APP.P.i(a)}catch(c){return"(unprintable)"}}},Lda=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.O),e=$APP.C(a,
6
- $APP.cr),f=$APP.C(a,wN),h=$APP.C(a,xN);var k=$APP.Fd(d);k=$APP.n(k)?""+$APP.P.i(k)+"/"+$APP.P.i($APP.ih(d)):$APP.ih(d);b={schemaVersion:1,id:b,t:c,type:k,tag:e,componentId:f,causeId:h};switch(d instanceof $APP.F?d.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.aj.i(a),b.eventName=c,c=vN($APP.V.i(a)),b.detail=c,c=$APP.D($APP.bj.i(a)),b.cancelable=c,a=$APP.D($APP.cj.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.Ri.i(a),
7
- b.field=c,a=vN($APP.Si.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.ti.i(a),b.attribute=c,a=$APP.Si.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.ti.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.ti.i(a),b.attribute=c,c=$APP.ui.i(a),b.oldValue=c,a=$APP.vi.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;default:return b}},yN=function(a){a=""+$APP.P.i(a);return a.length<2?"0"+$APP.P.i(a):a},Mda=function(a,b){return $APP.If.m($APP.ie,
8
- $APP.Be(function(c){var d=$APP.B(c,0,null);$APP.B(c,1,null);return $APP.cd(b,d)}),a)},HN=function(a,b,c,d){var e=$APP.G(d);d=$APP.C(e,zN);var f=$APP.C(e,$APP.gt),h=$APP.C(e,AN);e=$APP.C(e,BN);a:{var k=a.length;for(var m=0,r=$APP.wb($APP.bh);;){if(m>=k){k=$APP.yb(r);break a}var t=a[m].componentId;m+=1;r=t!=null?$APP.xb(r,t):r}k=void 0}k=Mda(b,k);b=$APP.D(e);e={};k=$APP.q(k);m=null;for(t=r=0;;)if(t<r){var x=m.C(null,t),y=$APP.B(x,0,null),A=$APP.B(x,1,null);x=e;y=""+$APP.P.i(y);A={tag:$APP.cr.i(A),firstSeen:CN.i(A)};
9
- x[y]=A;t+=1}else if(k=$APP.q(k))$APP.Yc(k)?(r=$APP.Db(k),k=$APP.Eb(k),m=r,r=$APP.w(r)):(m=$APP.u(k),r=$APP.B(m,0,null),t=$APP.B(m,1,null),m=e,r=""+$APP.P.i(r),t={tag:$APP.cr.i(t),firstSeen:CN.i(t)},m[r]=t,k=$APP.v(k),m=null,r=0),t=0;else break;k=[];c=$APP.q(c);m=null;for(t=r=0;;)if(t<r){x=m.C(null,t);var E=$APP.G(x);x=$APP.C(E,$APP.ct);y=$APP.C(E,$APP.ek);A=$APP.C(E,DN);var H=$APP.C(E,EN),N=$APP.C(E,FN);E=$APP.C(E,GN);k.push({id:x,label:y,startT:A,endT:H,startId:N,endId:E});t+=1}else if(c=$APP.q(c))$APP.Yc(c)?
10
- (r=$APP.Db(c),c=$APP.Eb(c),m=r,r=$APP.w(r)):(m=$APP.u(c),A=$APP.G(m),m=$APP.C(A,$APP.ct),r=$APP.C(A,$APP.ek),t=$APP.C(A,DN),x=$APP.C(A,EN),y=$APP.C(A,FN),A=$APP.C(A,GN),k.push({id:m,label:r,startT:t,endT:x,startId:y,endId:A}),c=$APP.v(c),m=null,r=0),t=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:k,records:a}},IN=function(a){if($APP.ra(a)){if(typeof a.schemaVersion!=="number")return new $APP.M(null,1,[$APP.uj,"Envelope is missing schemaVersion."],
3
+ b);else{var c=pN[$APP.aa(a==null?null:a)];if(c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=pN._,c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.ua("IReset.-reset!",a);}return a},qN=function(a){return a+1},Sda=function(a){return a-1},Tda=function(a,b){return $APP.hd(function(c,d){c=a.i?a.i(c):a.call(null,c);d=a.i?a.i(d):a.call(null,d);var e=$APP.fd($APP.dd);return e.j?e.j(c,d):e.call(null,c,d)},b)},rN=function(a,b){return Tda(a,b)},sN=function(a){if(a instanceof RegExp)return a;var b=$APP.rh(/^\(\?([idmsux]*)\)/,
4
+ a),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.n(b)?b:"")},Uda=function(a){return $APP.Qd($APP.ya(function(b,c){return $APP.Sd(b,c,$APP.Jc(b,c,0)+1)},$APP.wb($APP.ie),a))},Vda=function(a){return new $APP.J(null,2,5,$APP.K,[$APP.ue(200,a),$APP.ve(200,a)],null)},tN=function(a,b){if(a instanceof $APP.se){var c=a.oc;if(c!=null&&!$APP.n(c.i?c.i(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;a.cc!=null&&nN(a,c,b);
5
+ return b}return pN(a,b)},uN=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.rh(Wda,b);return $APP.D(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.z.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},Xda=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.n(a)?a:"document"},vN=function(a){try{return a==null?null:$APP.tm(a)}catch(b){try{return""+$APP.P.i(a)}catch(c){return"(unprintable)"}}},Yda=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.O),e=$APP.C(a,
6
+ $APP.gr),f=$APP.C(a,wN),h=$APP.C(a,xN);var k=$APP.Fd(d);k=$APP.n(k)?""+$APP.P.i(k)+"/"+$APP.P.i($APP.ih(d)):$APP.ih(d);b={schemaVersion:1,id:b,t:c,type:k,tag:e,componentId:f,causeId:h};switch(d instanceof $APP.F?d.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.aj.i(a),b.eventName=c,c=vN($APP.V.i(a)),b.detail=c,c=$APP.D($APP.bj.i(a)),b.cancelable=c,a=$APP.D($APP.cj.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.Ri.i(a),
7
+ b.field=c,a=vN($APP.Si.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.mi.i(a),b.attribute=c,a=$APP.Si.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.mi.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.mi.i(a),b.attribute=c,c=$APP.ni.i(a),b.oldValue=c,a=$APP.oi.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;default:return b}},yN=function(a){a=""+$APP.P.i(a);return a.length<2?"0"+$APP.P.i(a):a},Zda=function(a,b){return $APP.If.m($APP.ie,
8
+ $APP.Be(function(c){var d=$APP.B(c,0,null);$APP.B(c,1,null);return $APP.bd(b,d)}),a)},HN=function(a,b,c,d){var e=$APP.G(d);d=$APP.C(e,zN);var f=$APP.C(e,$APP.pt),h=$APP.C(e,AN);e=$APP.C(e,BN);a:{var k=a.length;for(var m=0,r=$APP.wb($APP.bh);;){if(m>=k){k=$APP.yb(r);break a}var t=a[m].componentId;m+=1;r=t!=null?$APP.xb(r,t):r}k=void 0}k=Zda(b,k);b=$APP.D(e);e={};k=$APP.q(k);m=null;for(t=r=0;;)if(t<r){var x=m.C(null,t),y=$APP.B(x,0,null),A=$APP.B(x,1,null);x=e;y=""+$APP.P.i(y);A={tag:$APP.gr.i(A),firstSeen:CN.i(A)};
9
+ x[y]=A;t+=1}else if(k=$APP.q(k))$APP.Yc(k)?(r=$APP.Db(k),k=$APP.Eb(k),m=r,r=$APP.w(r)):(m=$APP.u(k),r=$APP.B(m,0,null),t=$APP.B(m,1,null),m=e,r=""+$APP.P.i(r),t={tag:$APP.gr.i(t),firstSeen:CN.i(t)},m[r]=t,k=$APP.v(k),m=null,r=0),t=0;else break;k=[];c=$APP.q(c);m=null;for(t=r=0;;)if(t<r){x=m.C(null,t);var E=$APP.G(x);x=$APP.C(E,$APP.lt);y=$APP.C(E,$APP.hk);A=$APP.C(E,DN);var H=$APP.C(E,EN),N=$APP.C(E,FN);E=$APP.C(E,GN);k.push({id:x,label:y,startT:A,endT:H,startId:N,endId:E});t+=1}else if(c=$APP.q(c))$APP.Yc(c)?
10
+ (r=$APP.Db(c),c=$APP.Eb(c),m=r,r=$APP.w(r)):(m=$APP.u(c),A=$APP.G(m),m=$APP.C(A,$APP.lt),r=$APP.C(A,$APP.hk),t=$APP.C(A,DN),x=$APP.C(A,EN),y=$APP.C(A,FN),A=$APP.C(A,GN),k.push({id:m,label:r,startT:t,endT:x,startId:y,endId:A}),c=$APP.v(c),m=null,r=0),t=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:k,records:a}},IN=function(a){if($APP.ra(a)){if(typeof a.schemaVersion!=="number")return new $APP.M(null,1,[$APP.uj,"Envelope is missing schemaVersion."],
11
11
  null);if($APP.I(1,a.schemaVersion))return new $APP.M(null,1,[$APP.uj,"Schema version mismatch: expected "+$APP.P.i(1)+", got "+$APP.P.i(a.schemaVersion)+"."],null);if($APP.p($APP.qa(a.records)))return new $APP.M(null,1,[$APP.uj,"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.ra(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.M(null,
12
- 1,[$APP.Fs,a],null):new $APP.M(null,1,[$APP.uj,"Record at index "+$APP.P.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.M(null,1,[$APP.uj,"Envelope is not a JSON object."],null)},Nda=function(a,b,c){return $APP.w(a)>=c?$APP.Ad.j($APP.Qc(a),b):$APP.Ad.j(a,b)},Oda=function(){var a=BN.i($APP.cb(JN));return $APP.n(a)?$APP.fh(KN):$APP.Oo.j($APP.fh(KN),$APP.Dt)},MN=function(a){var b=$APP.ne(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.cd(c,a)?d:null},Pda);
13
- return $APP.n(b)?b:LN},NN=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.n(b)?b.toLowerCase():""},RN=function(a,b){var c=$APP.G(b),d=$APP.C(c,$APP.cr),e=$APP.C(c,ON);b=$APP.C(c,PN);c=$APP.Jc(c,QN,NN);if(d=d==null||$APP.z.j("",d)||$APP.z.j("all",d)||$APP.z.j(d,a.tag)){if(e=e==null||$APP.cd(e,MN(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},SN=function(a,b){return $APP.$e(rN(function(c){return c.t},$APP.Ce(function(c){return RN(c,b)},
12
+ 1,[$APP.Ns,a],null):new $APP.M(null,1,[$APP.uj,"Record at index "+$APP.P.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.M(null,1,[$APP.uj,"Envelope is not a JSON object."],null)},$da=function(a,b,c){return $APP.w(a)>=c?$APP.Ad.j($APP.Qc(a),b):$APP.Ad.j(a,b)},aea=function(){var a=BN.i($APP.bb(JN));return $APP.n(a)?$APP.fh(KN):$APP.Ro.j($APP.fh(KN),$APP.Mt)},MN=function(a){var b=$APP.ne(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.bd(c,a)?d:null},bea);
13
+ return $APP.n(b)?b:LN},NN=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.n(b)?b.toLowerCase():""},RN=function(a,b){var c=$APP.G(b),d=$APP.C(c,$APP.gr),e=$APP.C(c,ON);b=$APP.C(c,PN);c=$APP.Jc(c,QN,NN);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,MN(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},SN=function(a,b){return $APP.Ye(rN(function(c){return c.t},$APP.Ce(function(c){return RN(c,b)},
14
14
  $APP.Cc(a))))},TN=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.z.j(b,c.id)}):null},UN=function(a){if(a!=null)try{var b=JSON.stringify(a),c=""+$APP.P.i(b);return c.length<=60?c:""+$APP.P.i($APP.vd(c,60))+"…"}catch(d){return"(unstringifiable)"}else return null},VN=function(a){switch(a.type){case "event/dispatch":return""+$APP.P.i(a.eventName)+$APP.P.i(function(){var b=UN(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "event/dispatch-cancelable":return""+$APP.P.i(a.eventName)+
15
15
  $APP.P.i($APP.n(a.defaultPrevented)?" (prevented)":null)+$APP.P.i(function(){var b=UN(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "event/dispatch-document":return""+$APP.P.i(a.eventName)+$APP.P.i(function(){var b=UN(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "state/instance-field-set":return""+$APP.P.i(a.field)+" \x3d "+$APP.P.i(function(){var b=UN(a.value);return $APP.n(b)?b:"null"}());case "dom/attribute-set":return""+$APP.P.i(a.attribute)+"\x3d"+$APP.P.i($APP.Ph($APP.Cc([a.value])));
16
16
  case "dom/attribute-removed":return""+$APP.P.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/attribute-changed":return""+$APP.P.i(a.attribute)+": "+$APP.P.i($APP.Ph($APP.Cc([a.oldValue])))+" → "+$APP.P.i($APP.Ph($APP.Cc([a.newValue])));default:return"("+$APP.P.i(a.type)+")"}},WN=function(a){if(typeof a!=="number")return"";if(a<1E3)return""+$APP.P.i(a.toFixed(0))+"ms";if(a<6E4)return""+$APP.P.i((a/1E3).toFixed(3))+
17
- "s";var b=$APP.sd(a,6E4)/1E3;return""+$APP.P.i(Math.floor(a/6E4))+"m"+$APP.P.i(b.toFixed(1))+"s"},YN=function(a){a=MN(a.type);return $APP.C(XN,$APP.n(a)?a:LN)},$N=function(a){a=a.componentId;return $APP.n(a)?a:ZN},Qda=function(a){return $APP.$e(rN(aO,$APP.we.j(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);var d=$APP.u(b);return new $APP.M(null,3,[bO,c,$APP.cr,d.tag,aO,$APP.ae($APP.yo,$APP.we.j(function(e){return e.t},b))],null)},$APP.Xh($N,a))))},eO=function(a){if($APP.q(a)){var b=$APP.we.j(function(c){return c.t},
18
- a);a=$APP.ae($APP.yo,b);b=$APP.ae($APP.Po,b);return new $APP.M(null,3,[cO,a,Rda,b,dO,$APP.Po.j(1,b-a)],null)}return null},Sda=function(a,b){return $APP.q(a)?$APP.be(fO,function(c){return Math.abs(c.t-b)},a):null},Tda=function(a){if($APP.q(a)){var b=Hda($APP.we.j(function(d){return MN(d.type)},a)),c=$APP.ae($APP.Po,$APP.Vg(b));a=$APP.ne(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},KN);return $APP.n(a)?a:LN}return null},Xda=function(a,b){a=$APP.Xh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/
19
- 4)},a);return $APP.$e(rN(gO,$APP.we.j(function(c){var d=$APP.B(c,0,null),e=$APP.B(c,1,null);c=$APP.we.j(function(f){return f.t},e);e=$APP.$e(rN(function(f){return f.id},e));return new $APP.M(null,7,[gO,d,hO,e,iO,Tda(e),jO,d*4,Uda,(d+1)*4,Vda,$APP.ae($APP.yo,c),Wda,$APP.ae($APP.Po,c)],null)},a)))},Yda=function(a){return $APP.ne(function(b){return $APP.w(hO.i(b))>3},a)},Zda=function(a){return $APP.q(a)?$APP.ae($APP.Po,$APP.we.j(function(b){return $APP.w(hO.i(b))},a)):0},$da=function(a,b){var c=b.id;
20
- a=rN(function(d){return d.t},$APP.Ce(function(d){return $APP.z.j(c,d.causeId)},$APP.Cc(a)));return new $APP.M(null,2,[$APP.Du,$APP.w(a),hO,$APP.$e($APP.ue(50,a))],null)},aea=function(a,b){return $APP.$e(rN(function(c){return c.id},$APP.Ce(function(c){return $APP.z.j(b,c.causeId)},$APP.Cc(a))))},bea=function(a,b){var c=Ida(kO(a,b));a=$APP.B(c,0,null);c=$APP.B(c,1,null);var d=$APP.Xh(function(e){return e.causeId},a);return $APP.Yg.m(function h(f){var k=f.id;k=d.i?d.i(k):d.call(null,k);return new $APP.M(null,
21
- 2,[lO,f,mO,$APP.Fe(h,k)],null)}(b),nO,$APP.D($APP.q(c)))},cea=function(a,b){return typeof b==="number"?$APP.ne(function(c){return $APP.z.j(b,$APP.ct.i(c))?c:null},oO.i(a)):null},dea=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":a===0?c=""+$APP.P.i(b)+" "+$APP.P.i($APP.z.j(1,b)?"record":"records")+" · all hidden by filter":(a=""+$APP.P.i(a)+$APP.P.i($APP.I(a,b)?" of "+$APP.P.i(b):null)+" "+$APP.P.i($APP.z.j(1,a)?"record":"records")+" · "+$APP.P.i(d)+" "+$APP.P.i($APP.z.j(1,
17
+ "s";var b=$APP.sd(a,6E4)/1E3;return""+$APP.P.i(Math.floor(a/6E4))+"m"+$APP.P.i(b.toFixed(1))+"s"},YN=function(a){a=MN(a.type);return $APP.C(XN,$APP.n(a)?a:LN)},$N=function(a){a=a.componentId;return $APP.n(a)?a:ZN},cea=function(a){return $APP.Ye(rN(aO,$APP.we.j(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);var d=$APP.u(b);return new $APP.M(null,3,[bO,c,$APP.gr,d.tag,aO,$APP.Zd($APP.Bo,$APP.we.j(function(e){return e.t},b))],null)},$APP.Xh($N,a))))},eO=function(a){if($APP.q(a)){var b=$APP.we.j(function(c){return c.t},
18
+ a);a=$APP.Zd($APP.Bo,b);b=$APP.Zd($APP.So,b);return new $APP.M(null,3,[cO,a,dea,b,dO,$APP.So.j(1,b-a)],null)}return null},eea=function(a,b){return $APP.q(a)?$APP.$d(fO,function(c){return Math.abs(c.t-b)},a):null},fea=function(a){if($APP.q(a)){var b=Uda($APP.we.j(function(d){return MN(d.type)},a)),c=$APP.Zd($APP.So,$APP.Vg(b));a=$APP.ne(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},KN);return $APP.n(a)?a:LN}return null},jea=function(a,b){a=$APP.Xh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/
19
+ 4)},a);return $APP.Ye(rN(gO,$APP.we.j(function(c){var d=$APP.B(c,0,null),e=$APP.B(c,1,null);c=$APP.we.j(function(f){return f.t},e);e=$APP.Ye(rN(function(f){return f.id},e));return new $APP.M(null,7,[gO,d,hO,e,iO,fea(e),jO,d*4,gea,(d+1)*4,hea,$APP.Zd($APP.Bo,c),iea,$APP.Zd($APP.So,c)],null)},a)))},kea=function(a){return $APP.ne(function(b){return $APP.w(hO.i(b))>3},a)},lea=function(a){return $APP.q(a)?$APP.Zd($APP.So,$APP.we.j(function(b){return $APP.w(hO.i(b))},a)):0},mea=function(a,b){var c=b.id;
20
+ a=rN(function(d){return d.t},$APP.Ce(function(d){return $APP.z.j(c,d.causeId)},$APP.Cc(a)));return new $APP.M(null,2,[$APP.Nu,$APP.w(a),hO,$APP.Ye($APP.ue(50,a))],null)},nea=function(a,b){return $APP.Ye(rN(function(c){return c.id},$APP.Ce(function(c){return $APP.z.j(b,c.causeId)},$APP.Cc(a))))},oea=function(a,b){var c=Vda(kO(a,b));a=$APP.B(c,0,null);c=$APP.B(c,1,null);var d=$APP.Xh(function(e){return e.causeId},a);return $APP.Yg.m(function h(f){var k=f.id;k=d.i?d.i(k):d.call(null,k);return new $APP.M(null,
21
+ 2,[lO,f,mO,$APP.Fe(h,k)],null)}(b),nO,$APP.D($APP.q(c)))},pea=function(a,b){return typeof b==="number"?$APP.ne(function(c){return $APP.z.j(b,$APP.lt.i(c))?c:null},oO.i(a)):null},qea=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":a===0?c=""+$APP.P.i(b)+" "+$APP.P.i($APP.z.j(1,b)?"record":"records")+" · all hidden by filter":(a=""+$APP.P.i(a)+$APP.P.i($APP.I(a,b)?" of "+$APP.P.i(b):null)+" "+$APP.P.i($APP.z.j(1,a)?"record":"records")+" · "+$APP.P.i(d)+" "+$APP.P.i($APP.z.j(1,
22
22
  d)?"lane":"lanes"),b=$APP.P,d=b.i,c=dO.i(c),c=$APP.n(c)?" · spanning "+$APP.P.i(WN(c)):null,c=a+d.call(b,c));return c},qO=function(a){return $APP.Xc(a)&&$APP.z.j(pO,$APP.u(a))},sO=function(a){return $APP.Xc(a)&&$APP.z.j(rO,$APP.u(a))},tO=function(a){return $APP.Xc(a)&&($APP.z.j(pO,$APP.u(a))||$APP.z.j(rO,$APP.u(a)))?$APP.Fc(a):null},uO=function(a,b){a=$APP.l(a,"__xTraceHistoryUiState");return $APP.n(a)?(b=$APP.l(a,$APP.ih(b)),void 0===b?null:b):null},vO=function(a,b,c){var d=$APP.l(a,"__xTraceHistoryUiState");
23
- d=$APP.n(d)?d:{};b=$APP.ih(b);d[b]=c;a.__xTraceHistoryUiState=d},xO=function(){var a=hO.i($APP.cb(JN)),b=$APP.cb(wO),c=b[1];if(b[0]===a)return c;b=$APP.qm($APP.$e(a));tN(wO,[a,b]);return b},eea=function(){var a=yO.J(zO,$APP.Yg,AO,!1);a=$APP.G(a);a=$APP.C(a,BO);a=$APP.q(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d);$APP.B(e,0,null);e=$APP.B(e,1,null);try{e.H?e.H():e.call(null)}catch(f){}d+=1}else if(a=$APP.q(a)){if($APP.Yc(a))c=$APP.Db(a),a=$APP.Eb(a),b=c,c=$APP.w(c);else{b=$APP.u(a);$APP.B(b,
24
- 0,null);e=$APP.B(b,1,null);try{e.H?e.H():e.call(null)}catch(f){}a=$APP.v(a);b=null;c=0}d=0}else return null},CO=function(){if(zO instanceof $APP.se){var a=zO.state;a=$APP.Yg.m?$APP.Yg.m(a,AO,!0):$APP.Yg.call(null,a,AO,!0);if(zO instanceof $APP.se){var b=zO.oc;if(b!=null&&!$APP.n(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=zO.state;zO.state=a;zO.cc!=null&&nN(zO,b,a);a=new $APP.J(null,2,5,$APP.K,[b,a],null)}else a=new $APP.J(null,2,5,$APP.K,[$APP.cb(zO),pN(zO,a)],
25
- null)}else a=new $APP.J(null,2,5,$APP.K,[$APP.cb(zO),$APP.Jo(zO,$APP.Yg,AO,!0)],null);b=$APP.B(a,0,null);$APP.B(a,1,null);return $APP.n(AO.i(b))?null:requestAnimationFrame(eea)},fea=function(a,b){var c=DO.i(a)+1;return EO($APP.Yg.m(a,DO,c),new $APP.J(null,2,5,$APP.K,[BO,c],null),b)},gea=function(a,b,c){if($APP.z.j("document",b))return new $APP.M(null,2,[$APP.ct,null,FO,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.M(null,2,[$APP.ct,b,FO,!1],null);a.__xTraceHistoryId=c;return new $APP.M(null,
26
- 2,[$APP.ct,c,FO,!0],null)},IO=function(){var a=yO.J(JN,GO,HO,qN);return HO.i(a)-1},hea=function(a){yO.j(JO,qN);try{a.H?a.H():a.call(null)}finally{yO.j(JO,Fda)}},KO=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},LO=function(a){for(;;)if(a!=null&&a instanceof Element){var b=a.localName;var c=b!=null;b=c?b.includes("-"):c;if($APP.n(b))return a;a=KO(a)}else return null},MO=function(a){if(a instanceof Node)for(a=KO(a);;){if(a==null||a===document)return!1;if($APP.n($APP.l(a,
23
+ d=$APP.n(d)?d:{};b=$APP.ih(b);d[b]=c;a.__xTraceHistoryUiState=d},xO=function(){var a=hO.i($APP.bb(JN)),b=$APP.bb(wO),c=b[1];if(b[0]===a)return c;b=$APP.tm($APP.Ye(a));tN(wO,[a,b]);return b},rea=function(){var a=yO.J(zO,$APP.Yg,AO,!1);a=$APP.G(a);a=$APP.C(a,BO);a=$APP.q(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d);$APP.B(e,0,null);e=$APP.B(e,1,null);try{e.H?e.H():e.call(null)}catch(f){}d+=1}else if(a=$APP.q(a)){if($APP.Yc(a))c=$APP.Db(a),a=$APP.Eb(a),b=c,c=$APP.w(c);else{b=$APP.u(a);$APP.B(b,
24
+ 0,null);e=$APP.B(b,1,null);try{e.H?e.H():e.call(null)}catch(f){}a=$APP.v(a);b=null;c=0}d=0}else return null},CO=function(){if(zO instanceof $APP.se){var a=zO.state;a=$APP.Yg.m?$APP.Yg.m(a,AO,!0):$APP.Yg.call(null,a,AO,!0);if(zO instanceof $APP.se){var b=zO.oc;if(b!=null&&!$APP.n(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=zO.state;zO.state=a;zO.cc!=null&&nN(zO,b,a);a=new $APP.J(null,2,5,$APP.K,[b,a],null)}else a=new $APP.J(null,2,5,$APP.K,[$APP.bb(zO),pN(zO,a)],
25
+ null)}else a=new $APP.J(null,2,5,$APP.K,[$APP.bb(zO),$APP.Mo(zO,$APP.Yg,AO,!0)],null);b=$APP.B(a,0,null);$APP.B(a,1,null);return $APP.n(AO.i(b))?null:requestAnimationFrame(rea)},sea=function(a,b){var c=DO.i(a)+1;return EO($APP.Yg.m(a,DO,c),new $APP.J(null,2,5,$APP.K,[BO,c],null),b)},tea=function(a,b,c){if($APP.z.j("document",b))return new $APP.M(null,2,[$APP.lt,null,FO,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.M(null,2,[$APP.lt,b,FO,!1],null);a.__xTraceHistoryId=c;return new $APP.M(null,
26
+ 2,[$APP.lt,c,FO,!0],null)},IO=function(){var a=yO.J(JN,GO,HO,qN);return HO.i(a)-1},uea=function(a){yO.j(JO,qN);try{a.H?a.H():a.call(null)}finally{yO.j(JO,Sda)}},KO=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},LO=function(a){for(;;)if(a!=null&&a instanceof Element){var b=a.localName;var c=b!=null;b=c?b.includes("-"):c;if($APP.n(b))return a;a=KO(a)}else return null},MO=function(a){if(a instanceof Node)for(a=KO(a);;){if(a==null||a===document)return!1;if($APP.n($APP.l(a,
27
27
  "__xTraceHistoryInternal")))return!0;a=KO(a)}else return!1},NO=function(a){var b=document.body;if($APP.n($APP.n(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.n($APP.l(d,"__xTraceHistoryInternal"))){if($APP.z.j(a,$APP.l(d,"__xTraceHistoryId")))return d;for(var e=d.children,f=e.length,h=0;;)if(h<f)b.push(e[h]),h+=1;else break;d=d.shadowRoot;if($APP.n(d))for(d=d.children,e=d.length,f=0;;)if(f<e)b.push(d[f]),f+=1;else break}c+=
28
- 1}}}else return null},OO=function(a){var b=$APP.ji.i(a);return $APP.cd(iea,$APP.O.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.n(a)?a:MO(b)):!1:MO(b)},TO=function(a,b,c,d){var e=$APP.cb(JN),f=$APP.ji.i(a);if(!$APP.n(function(){var t=(t=$APP.p(d))?$APP.$p.i(e):t;return $APP.n(t)?t:OO(a)}())){var h=function(){var t=LO(f);return $APP.n(t)?t:f}(),k=Kda(h);h=gea(h,k,PO.i(e));var m=$APP.G(h);h=$APP.C(m,$APP.ct);m=$APP.C(m,FO);var r=$APP.Pc($APP.cb(QO));r=$APP.Yg.B(a,$APP.cr,k,$APP.Cc([wN,
29
- h,xN,r]));b=Lda(r,b,c);b=Nda(hO.i(e),b,RO.i(e));c=$APP.n(m)?$APP.Yg.m(SO.i(e),h,new $APP.M(null,2,[$APP.cr,k,CN,c],null)):SO.i(e);k=$APP.n(m)?h+1:PO.i(e);yO.B(JN,$APP.Yg,hO,b,$APP.Cc([PO,k,SO,c]));CO()}},UO=function(a,b){var c=LO(b);b=$APP.l($APP.n(c)?c:b,"__xTraceHistoryId");if($APP.n(b))switch(c=$APP.O.i(a),c instanceof $APP.F?c.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.P.i(b)+":evt:"+$APP.P.i($APP.aj.i(a));case "state/instance-field-set":return""+
30
- $APP.P.i(b)+":fld:"+$APP.P.i($APP.Ri.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.P.i(b)+":attr:"+$APP.P.i($APP.ti.i(a));default:return null}else return null},WO=function(a,b,c,d){var e=$APP.p(BN.i(a));return e?(b=UO(b,c),$APP.n(b)?(a=$APP.C(VO.i(a),b),$APP.n(a)?d-a<16:null):null):e},XO=function(a,b,c){if($APP.n(BN.i($APP.cb(JN))))return null;a=UO(a,b);return $APP.n(a)?yO.J(JN,EO,new $APP.J(null,2,5,$APP.K,[VO,a],null),c):null},ZO=function(a){var b=$APP.O.i(a),c=$APP.ji.i(a),
31
- d=performance.now();if($APP.n(function(){var f=$APP.cb(JO)>0;if(f)return f;f=$APP.cb(YO);f=$APP.n(f)?$APP.cd(jea,b):f;if($APP.n(f))return f;f=OO(a);return $APP.n(f)?f:WO($APP.cb(JN),a,c,d)}()))return null;var e=IO();TO(a,e,d,!1);return XO(a,c,d)},kea=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.n($APP.l(b,"__xTraceHistoryWrapped"))||(tN($O,b),b=function(c){var d=$APP.cb($O);var e=$APP.p($APP.cb(YO));e||(e=$APP.$p.i($APP.cb(JN)),e=$APP.n(e)?e:$APP.cb(JO)>0||MO(this));if($APP.n(e))c=
32
- d.call(this,c);else{e=c instanceof CustomEvent;var f=performance.now(),h=e?new $APP.M(null,2,[$APP.O,this===document?$APP.gj:$APP.n(c.cancelable)?$APP.ej:$APP.$i,$APP.aj,c.type],null):null;if($APP.n(e?WO($APP.cb(JN),h,this,f):e))c=d.call(this,c);else{var k=IO();yO.m(QO,$APP.Ad,k);try{var m=d.call(this,c)}finally{yO.j(QO,$APP.Qc)}if(e)try{TO(new $APP.M(null,6,[$APP.O,this===document?$APP.gj:$APP.n(c.cancelable)?$APP.ej:$APP.$i,$APP.ji,this,$APP.aj,c.type,$APP.V,c.detail,$APP.bj,c.cancelable,$APP.cj,
33
- c.defaultPrevented],null),k,f,!0),XO(h,this,f)}catch(r){}c=m}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},lea=function(){return xO()},mea=function(){var a=SO.i($APP.cb(JN)),b={};a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null),k=$APP.B(f,1,null);f=b;h=""+$APP.P.i(h);k={tag:$APP.cr.i(k),firstSeen:CN.i(k)};f[h]=k;e+=1}else if(a=$APP.q(a))$APP.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(c=$APP.u(a),d=$APP.B(c,0,null),e=$APP.B(c,1,null),c=b,d=""+$APP.P.i(d),
34
- e={tag:$APP.cr.i(e),firstSeen:CN.i(e)},c[d]=e,a=$APP.v(a),c=null,d=0),e=0;else break;return b},nea=function(a){var b=a.components;return b==null?$APP.Ee:$APP.we.j(function(c){return $APP.l(b,c).tag},Object.keys(b))},oea=function(){var a=$APP.cb(JN),b=$APP.we.j($APP.cr,$APP.Vg(SO.i(a)));a=$APP.Ae(function(c){c=$APP.G(c);c=$APP.C(c,aP);return nea(c)},$APP.Cc([bP.i(a)]));return $APP.$e($APP.If.j($APP.hh(),$APP.ze.j(b,a)))},cP=function(){yO.J(JN,$APP.Yg,$APP.$p,!0);return CO()},dP=function(){yO.J(JN,
35
- $APP.Yg,$APP.$p,!1);return CO()},iP=function(){yO.B(JN,$APP.Yg,hO,eP,$APP.Cc([HO,0,fP,$APP.Ee,gP,0,hP,null,VO,$APP.ie]));return CO()},jP=function(){return hP.i($APP.cb(JN))},pea=function(a,b,c,d){return b==null?a:$APP.Fe(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.ct);return $APP.z.j(f,b)?$APP.Yg.B(e,EN,c,$APP.Cc([GN,d])):e},a)},kP=function(){var a=performance.now();yO.j(JN,function(b){return $APP.Yg.m(GO.va(b,fP,pea,hP.i(b),a,HO.i(b)),hP,null)});return CO()},lP=function(){jP()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),
36
- kP());var a=performance.now();yO.j(JN,function(b){var c=gP.i(b),d=HO.i(b);return $APP.Yg.B(GO.J(b,fP,$APP.Ad,new $APP.M(null,6,[$APP.ct,c,$APP.ek,"Session "+$APP.P.i(c),DN,a,EN,null,FN,d,GN,null],null)),hP,c,$APP.Cc([gP,c+1]))});CO();return hP.i($APP.cb(JN))},mP=function(a,b){var c=$APP.G(b);b=$APP.C(c,FN);c=$APP.C(c,GN);a=a.id;return a>=b&&(c==null||a<c)},nP=function(){var a=$APP.cb(JN),b=xO(),c=$APP.Cc(b);return $APP.qm($APP.Fe(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.ct);var f=$APP.C(e,$APP.ek),
37
- h=$APP.C(e,DN),k=$APP.C(e,EN),m=$APP.w($APP.Ce(function(r){return mP(r,e)},c));return{id:d,label:f,startT:h,endT:$APP.n(k)?k:null,recordCount:m}},fP.i(a)))},oP=function(a){var b=$APP.cb(JN),c=$APP.u($APP.Ce(function(d){return $APP.z.j($APP.ct.i(d),a)},fP.i(b)));return $APP.n(c)?$APP.qm(rN(function(d){return d.t},$APP.Ce(function(d){return mP(d,c)},$APP.Dc(xO())))):[]},qea=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=pP}a=$APP.z.j(b,pP)?new $APP.M(null,1,[$APP.uj,"File is not valid JSON."],
38
- null):IN(b)}else a=$APP.ra(a)?IN(a):new $APP.M(null,1,[$APP.uj,"Import expects a JSON string or a parsed envelope object."],null);return a},qP=function(a){yO.J(JN,GO,bP,function(b){return $APP.$e($APP.De(function(c){c=$APP.G(c);c=$APP.C(c,$APP.ct);return $APP.z.j(c,a)},b))});return CO()},sP=function(){return $APP.qm($APP.Fe(function(a){var b=$APP.G(a);a=$APP.C(b,$APP.ct);var c=$APP.C(b,$APP.ek),d=$APP.C(b,rP);b=$APP.C(b,aP);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},bP.i($APP.cb(JN))))},
39
- tP=function(a){var b=$APP.u($APP.Ce(function(c){return $APP.z.j($APP.ct.i(c),a)},bP.i($APP.cb(JN))));return $APP.n(b)?aP.i(b).records:[]},uP=function(a,b){return new $APP.M(null,4,[zN,a.getTime(),$APP.gt,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.n(c)?c:""}(),AN,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.n(c)?c:""}(),BN,b],null)},rea=function(){var a=$APP.cb(JN),b=xO(),c=uP(new Date,BN.i(a));return HN(b,SO.i(a),fP.i(a),c)},vP=function(){var a=
40
- new Date,b=$APP.cb(JN),c=xO(),d=uP(a,BN.i(b));b=HN(c,SO.i(b),fP.i(b),d);b=JSON.stringify(b,null,2);a=""+$APP.P.i("baredom-trace-")+$APP.P.i(a.getFullYear())+$APP.P.i(yN(a.getMonth()+1))+$APP.P.i(yN(a.getDate()))+"-"+$APP.P.i(yN(a.getHours()))+$APP.P.i(yN(a.getMinutes()))+$APP.P.i(yN(a.getSeconds()))+$APP.P.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=
28
+ 1}}}else return null},OO=function(a){var b=$APP.ji.i(a);return $APP.bd(vea,$APP.O.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.n(a)?a:MO(b)):!1:MO(b)},TO=function(a,b,c,d){var e=$APP.bb(JN),f=$APP.ji.i(a);if(!$APP.n(function(){var t=(t=$APP.p(d))?$APP.cq.i(e):t;return $APP.n(t)?t:OO(a)}())){var h=function(){var t=LO(f);return $APP.n(t)?t:f}(),k=Xda(h);h=tea(h,k,PO.i(e));var m=$APP.G(h);h=$APP.C(m,$APP.lt);m=$APP.C(m,FO);var r=$APP.Pc($APP.bb(QO));r=$APP.Yg.B(a,$APP.gr,k,$APP.Cc([wN,
29
+ h,xN,r]));b=Yda(r,b,c);b=$da(hO.i(e),b,RO.i(e));c=$APP.n(m)?$APP.Yg.m(SO.i(e),h,new $APP.M(null,2,[$APP.gr,k,CN,c],null)):SO.i(e);k=$APP.n(m)?h+1:PO.i(e);yO.B(JN,$APP.Yg,hO,b,$APP.Cc([PO,k,SO,c]));CO()}},UO=function(a,b){var c=LO(b);b=$APP.l($APP.n(c)?c:b,"__xTraceHistoryId");if($APP.n(b))switch(c=$APP.O.i(a),c instanceof $APP.F?c.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.P.i(b)+":evt:"+$APP.P.i($APP.aj.i(a));case "state/instance-field-set":return""+
30
+ $APP.P.i(b)+":fld:"+$APP.P.i($APP.Ri.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.P.i(b)+":attr:"+$APP.P.i($APP.mi.i(a));default:return null}else return null},WO=function(a,b,c,d){var e=$APP.p(BN.i(a));return e?(b=UO(b,c),$APP.n(b)?(a=$APP.C(VO.i(a),b),$APP.n(a)?d-a<16:null):null):e},XO=function(a,b,c){if($APP.n(BN.i($APP.bb(JN))))return null;a=UO(a,b);return $APP.n(a)?yO.J(JN,EO,new $APP.J(null,2,5,$APP.K,[VO,a],null),c):null},ZO=function(a){var b=$APP.O.i(a),c=$APP.ji.i(a),
31
+ d=performance.now();if($APP.n(function(){var f=$APP.bb(JO)>0;if(f)return f;f=$APP.bb(YO);f=$APP.n(f)?$APP.bd(wea,b):f;if($APP.n(f))return f;f=OO(a);return $APP.n(f)?f:WO($APP.bb(JN),a,c,d)}()))return null;var e=IO();TO(a,e,d,!1);return XO(a,c,d)},xea=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.n($APP.l(b,"__xTraceHistoryWrapped"))||(tN($O,b),b=function(c){var d=$APP.bb($O);var e=$APP.p($APP.bb(YO));e||(e=$APP.cq.i($APP.bb(JN)),e=$APP.n(e)?e:$APP.bb(JO)>0||MO(this));if($APP.n(e))c=
32
+ d.call(this,c);else{e=c instanceof CustomEvent;var f=performance.now(),h=e?new $APP.M(null,2,[$APP.O,this===document?$APP.gj:$APP.n(c.cancelable)?$APP.ej:$APP.$i,$APP.aj,c.type],null):null;if($APP.n(e?WO($APP.bb(JN),h,this,f):e))c=d.call(this,c);else{var k=IO();yO.m(QO,$APP.Ad,k);try{var m=d.call(this,c)}finally{yO.j(QO,$APP.Qc)}if(e)try{TO(new $APP.M(null,6,[$APP.O,this===document?$APP.gj:$APP.n(c.cancelable)?$APP.ej:$APP.$i,$APP.ji,this,$APP.aj,c.type,$APP.V,c.detail,$APP.bj,c.cancelable,$APP.cj,
33
+ c.defaultPrevented],null),k,f,!0),XO(h,this,f)}catch(r){}c=m}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},yea=function(){return xO()},zea=function(){var a=SO.i($APP.bb(JN)),b={};a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null),k=$APP.B(f,1,null);f=b;h=""+$APP.P.i(h);k={tag:$APP.gr.i(k),firstSeen:CN.i(k)};f[h]=k;e+=1}else if(a=$APP.q(a))$APP.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(c=$APP.u(a),d=$APP.B(c,0,null),e=$APP.B(c,1,null),c=b,d=""+$APP.P.i(d),
34
+ e={tag:$APP.gr.i(e),firstSeen:CN.i(e)},c[d]=e,a=$APP.v(a),c=null,d=0),e=0;else break;return b},Aea=function(a){var b=a.components;return b==null?$APP.Ee:$APP.we.j(function(c){return $APP.l(b,c).tag},Object.keys(b))},Bea=function(){var a=$APP.bb(JN),b=$APP.we.j($APP.gr,$APP.Vg(SO.i(a)));a=$APP.Ae(function(c){c=$APP.G(c);c=$APP.C(c,aP);return Aea(c)},$APP.Cc([bP.i(a)]));return $APP.Ye($APP.If.j($APP.hh(),$APP.ze.j(b,a)))},cP=function(){yO.J(JN,$APP.Yg,$APP.cq,!0);return CO()},dP=function(){yO.J(JN,
35
+ $APP.Yg,$APP.cq,!1);return CO()},iP=function(){yO.B(JN,$APP.Yg,hO,eP,$APP.Cc([HO,0,fP,$APP.Ee,gP,0,hP,null,VO,$APP.ie]));return CO()},jP=function(){return hP.i($APP.bb(JN))},Cea=function(a,b,c,d){return b==null?a:$APP.Fe(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.lt);return $APP.z.j(f,b)?$APP.Yg.B(e,EN,c,$APP.Cc([GN,d])):e},a)},kP=function(){var a=performance.now();yO.j(JN,function(b){return $APP.Yg.m(GO.va(b,fP,Cea,hP.i(b),a,HO.i(b)),hP,null)});return CO()},lP=function(){jP()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),
36
+ kP());var a=performance.now();yO.j(JN,function(b){var c=gP.i(b),d=HO.i(b);return $APP.Yg.B(GO.J(b,fP,$APP.Ad,new $APP.M(null,6,[$APP.lt,c,$APP.hk,"Session "+$APP.P.i(c),DN,a,EN,null,FN,d,GN,null],null)),hP,c,$APP.Cc([gP,c+1]))});CO();return hP.i($APP.bb(JN))},mP=function(a,b){var c=$APP.G(b);b=$APP.C(c,FN);c=$APP.C(c,GN);a=a.id;return a>=b&&(c==null||a<c)},nP=function(){var a=$APP.bb(JN),b=xO(),c=$APP.Cc(b);return $APP.tm($APP.Fe(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.lt);var f=$APP.C(e,$APP.hk),
37
+ h=$APP.C(e,DN),k=$APP.C(e,EN),m=$APP.w($APP.Ce(function(r){return mP(r,e)},c));return{id:d,label:f,startT:h,endT:$APP.n(k)?k:null,recordCount:m}},fP.i(a)))},oP=function(a){var b=$APP.bb(JN),c=$APP.u($APP.Ce(function(d){return $APP.z.j($APP.lt.i(d),a)},fP.i(b)));return $APP.n(c)?$APP.tm(rN(function(d){return d.t},$APP.Ce(function(d){return mP(d,c)},$APP.Dc(xO())))):[]},Dea=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=pP}a=$APP.z.j(b,pP)?new $APP.M(null,1,[$APP.uj,"File is not valid JSON."],
38
+ null):IN(b)}else a=$APP.ra(a)?IN(a):new $APP.M(null,1,[$APP.uj,"Import expects a JSON string or a parsed envelope object."],null);return a},qP=function(a){yO.J(JN,GO,bP,function(b){return $APP.Ye($APP.De(function(c){c=$APP.G(c);c=$APP.C(c,$APP.lt);return $APP.z.j(c,a)},b))});return CO()},sP=function(){return $APP.tm($APP.Fe(function(a){var b=$APP.G(a);a=$APP.C(b,$APP.lt);var c=$APP.C(b,$APP.hk),d=$APP.C(b,rP);b=$APP.C(b,aP);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},bP.i($APP.bb(JN))))},
39
+ tP=function(a){var b=$APP.u($APP.Ce(function(c){return $APP.z.j($APP.lt.i(c),a)},bP.i($APP.bb(JN))));return $APP.n(b)?aP.i(b).records:[]},uP=function(a,b){return new $APP.M(null,4,[zN,a.getTime(),$APP.pt,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.n(c)?c:""}(),AN,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.n(c)?c:""}(),BN,b],null)},Eea=function(){var a=$APP.bb(JN),b=xO(),c=uP(new Date,BN.i(a));return HN(b,SO.i(a),fP.i(a),c)},vP=function(){var a=
40
+ new Date,b=$APP.bb(JN),c=xO(),d=uP(a,BN.i(b));b=HN(c,SO.i(b),fP.i(b),d);b=JSON.stringify(b,null,2);a=""+$APP.P.i("baredom-trace-")+$APP.P.i(a.getFullYear())+$APP.P.i(yN(a.getMonth()+1))+$APP.P.i(yN(a.getDate()))+"-"+$APP.P.i(yN(a.getHours()))+$APP.P.i(yN(a.getMinutes()))+$APP.P.i(yN(a.getSeconds()))+$APP.P.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=
41
41
  c.click()}finally{document.body.removeChild(c),URL.revokeObjectURL(b)}return e},wP=function(a,b){b=b.getBoundingClientRect();a.style.top=""+$APP.P.i(b.top)+"px";a.style.left=""+$APP.P.i(b.left)+"px";a.style.width=""+$APP.P.i(b.width)+"px";a.style.height=""+$APP.P.i(b.height)+"px"},xP=function(a){a=$APP.l(a,"__xTraceHistoryHighlightBox");$APP.n(a)&&(a.style.display="none")},yP=function(a){var b=$APP.l(a,"__xTraceHistoryHighlightCid");if($APP.n(b)){b=NO(b);if($APP.n(b))return a=$APP.l(a,"__xTraceHistoryHighlightBox"),
42
- $APP.n(a)?(wP(a,b),a.style.display="block"):null;xP(a);return $APP.Yi(a,"__xTraceHistoryHighlightCid",null)}return null},zP=function(a){return(""+$APP.P.i(a)).replace(sea,"\x26amp;").replace(tea,"\x26lt;").replace(uea,"\x26gt;").replace(vea,"\x26quot;").replace(wea,"\x26#39;")},xea=function(a){return"\x3coption value\x3d'"+$APP.P.i(zP(a))+"'\x3e"+$APP.P.i(zP(a))+"\x3c/option\x3e"},AP=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.P.i(a)+"' "+$APP.P.i($APP.n(b)?
43
- "checked ":null)+"aria-label\x3d'"+$APP.P.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.P.i(a)+"\x3c/label\x3e"},yea=function(a,b){return $APP.ae($APP.P,$APP.we.j(function(c){var d=$APP.G(c);c=$APP.C(d,bO);var e=$APP.C(d,$APP.cr),f=$APP.G(d);d=$APP.C(f,bO);f=$APP.C(f,$APP.cr);d=$APP.z.j(ZN,d)?"document":""+$APP.P.i(f)+" #"+$APP.P.i(d);f=$APP.z.j(ZN,c)?"document":e;var h=$APP.z.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.P.i(h?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.P.i(zP(f))+"' title\x3d'"+
44
- $APP.P.i(zP(d))+"'\x3e"+$APP.P.i(zP($APP.z.j(ZN,c)?"document":e))+$APP.P.i($APP.I(ZN,c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.P.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},zea=function(a,b,c){return $APP.n(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.P.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.P.i(b)+"' y2\x3d'"+$APP.P.i(c)+"' /\x3e":""},BP=function(a,b,c,d){a=rN(function(e){return $APP.z.j(e.id,d)?1:0},a);return $APP.ae($APP.P,$APP.we.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,k=$APP.z.j(e.id,
45
- d),m=k?6.5:4.5;return"\x3ccircle class\x3d'dot"+$APP.P.i(k?" selected":null)+"' data-x-th-id\x3d'"+$APP.P.i(e.id)+"' cx\x3d'"+$APP.P.i(f)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(m)+"' fill\x3d'"+$APP.P.i(YN(e))+"' /\x3e"},a))},Aea=function(a,b,c,d){if(c==null)return"";a=$APP.ne(function(e){e=$APP.G(e);e=$APP.C(e,hO);return $APP.ne(function(f){return $APP.z.j(f.id,c)?f:null},e)},a);return $APP.n(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.P.i(d)+"' y1\x3d'"+
46
- $APP.P.i(b)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b+20)+"' /\x3e"):""},Bea=function(a,b,c,d){var e=Zda(a);return""+$APP.P.i($APP.ae($APP.P,$APP.we.j(function(f){var h=$APP.G(f),k=$APP.C(h,hO);f=$APP.C(h,iO);h=$APP.C(h,jO);var m=$APP.u(k),r=$APP.C(XN,$APP.n(f)?f:LN);var t=$APP.w(k);t=t==null||t===0||e==null||e===0?0:t>=e?1:.4+.6*((t-1)/$APP.Po.j(1,e-1));var x=zP($APP.ih($APP.n(f)?f:LN));k=$APP.w(k);f=""+$APP.P.i(k)+" "+$APP.P.i($APP.z.j(1,k)?"record":"records")+" · "+$APP.P.i($APP.ih($APP.n(f)?
47
- f:LN));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.P.i(zP(f))+"' data-x-th-bin-record-id\x3d'"+$APP.P.i(m.id)+"' data-x-th-bin-count\x3d'"+$APP.P.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.P.i(x)+"' x\x3d'"+$APP.P.i(h)+"' y\x3d'"+$APP.P.i(b)+"' width\x3d'"+$APP.P.i(4)+"' height\x3d'"+$APP.P.i(20)+"' fill\x3d'"+$APP.P.i(r)+"' fill-opacity\x3d'"+$APP.P.i(t)+"' /\x3e"},a)))+$APP.P.i(Aea(a,b,c,d))},Cea=function(a,b,c,d,e,f){function h(A){a:{var E=$APP.C(x,A.id);var H=a instanceof
48
- $APP.F?a.da:null;switch(H){case "order":A=$APP.Po.j(0,e-16);E=t===0||t<0?8:$APP.z.j(1,t)?8+A/2:8+$APP.yo.j($APP.Po.j(E/(t-1),0),1)*A;break a;case "time":E=A.t;H=$APP.G(d);A=$APP.C(H,cO);H=$APP.C(H,dO);var N=$APP.Po.j(0,e-16);E=A==null||H==null?8:8+$APP.yo.j($APP.Po.j((E-A)/H,0),1)*N;break a;default:throw Error("No matching clause: "+$APP.P.i(H));}}return E}var k=$APP.n(f)?f.id:null,m=$APP.If.j($APP.ie,$APP.qe(function(A,E){E=$APP.G(E);E=$APP.C(E,bO);return new $APP.J(null,2,5,$APP.K,[E,A*20],null)},
49
- c)),r=$APP.Po.j(20,20*$APP.w(c)),t=$APP.w(b),x=$APP.If.j($APP.ie,$APP.qe(function(A,E){return new $APP.J(null,2,5,$APP.K,[E.id,A],null)},b)),y=$APP.Xh($N,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(r)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(r)+"'\x3e"+$APP.P.i($APP.ae($APP.P,$APP.we.j(function(A){A=$APP.G(A);var E=$APP.C(A,bO);A=$APP.Jc(y,E,$APP.Ee);E=$APP.C(m,E);if($APP.z.j(CP,a)){var H=Xda(A,h);A=$APP.n(Yda(H))?Bea(H,E,k,h):BP(A,E,h,k)}else A=
50
- BP(A,E,h,k);return A},c)))+$APP.P.i(zea(f,$APP.n(f)?h(f):null,r))+"\x3c/svg\x3e"},Dea=function(a,b,c,d,e,f,h,k){if($APP.w(d)===0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var m=$APP.Po.j(200,b.clientWidth);a.innerHTML=yea(e,k);b.innerHTML=Cea(c,d,e,f,m,h)}},DP=function(a){return""+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)},Eea=function(a){var b=$APP.G(a);a=$APP.C(b,EP);var c=$APP.C(b,FP),d=$APP.C(b,GP);b=$APP.C(b,HP);c+=14;
51
- b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.P.i(a)+"' y1\x3d'"+$APP.P.i(c)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b)+"' /\x3e"},Fea=function(a,b){var c=$APP.G(a);a=$APP.C(c,oO);var d=$APP.C(c,IP),e=$APP.C(c,$APP.io);c=$APP.C(c,$APP.jo);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(c)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(c)+"'\x3e"+$APP.P.i($APP.ae($APP.P,$APP.we.j(Eea,d)))+$APP.P.i($APP.ae($APP.P,$APP.we.j(function(f){var h=$APP.G(f),
52
- k=$APP.C(h,$APP.ct);f=$APP.C(h,lO);var m=$APP.C(h,JP);h=$APP.C(h,KP);m-=70;var r=h-14,t=$APP.z.j(k,b),x=m+12,y=m+22,A=m+22,E=r+18,H=r+11,N=zP("#"+$APP.P.i(k)+" "+$APP.P.i(DP(f))+" · "+$APP.P.i(VN(f)));k="\x3cg data-x-th-link-id\x3d'"+$APP.P.i(k)+"' role\x3d'button' aria-label\x3d'"+$APP.P.i(N)+"'\x3e\x3ctitle\x3e"+$APP.P.i(N)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.P.i(t?" selected":null)+"' x\x3d'"+$APP.P.i(m)+"' y\x3d'"+$APP.P.i(r)+"' width\x3d'"+$APP.P.i(140)+"' height\x3d'"+$APP.P.i(28)+
42
+ $APP.n(a)?(wP(a,b),a.style.display="block"):null;xP(a);return $APP.Yi(a,"__xTraceHistoryHighlightCid",null)}return null},zP=function(a){return(""+$APP.P.i(a)).replace(Fea,"\x26amp;").replace(Gea,"\x26lt;").replace(Hea,"\x26gt;").replace(Iea,"\x26quot;").replace(Jea,"\x26#39;")},Kea=function(a){return"\x3coption value\x3d'"+$APP.P.i(zP(a))+"'\x3e"+$APP.P.i(zP(a))+"\x3c/option\x3e"},AP=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.P.i(a)+"' "+$APP.P.i($APP.n(b)?
43
+ "checked ":null)+"aria-label\x3d'"+$APP.P.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.P.i(a)+"\x3c/label\x3e"},Lea=function(a,b){return $APP.Zd($APP.P,$APP.we.j(function(c){var d=$APP.G(c);c=$APP.C(d,bO);var e=$APP.C(d,$APP.gr),f=$APP.G(d);d=$APP.C(f,bO);f=$APP.C(f,$APP.gr);d=$APP.z.j(ZN,d)?"document":""+$APP.P.i(f)+" #"+$APP.P.i(d);f=$APP.z.j(ZN,c)?"document":e;var h=$APP.z.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.P.i(h?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.P.i(zP(f))+"' title\x3d'"+
44
+ $APP.P.i(zP(d))+"'\x3e"+$APP.P.i(zP($APP.z.j(ZN,c)?"document":e))+$APP.P.i($APP.I(ZN,c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.P.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},Mea=function(a,b,c){return $APP.n(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.P.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.P.i(b)+"' y2\x3d'"+$APP.P.i(c)+"' /\x3e":""},BP=function(a,b,c,d){a=rN(function(e){return $APP.z.j(e.id,d)?1:0},a);return $APP.Zd($APP.P,$APP.we.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,k=$APP.z.j(e.id,
45
+ d),m=k?6.5:4.5;return"\x3ccircle class\x3d'dot"+$APP.P.i(k?" selected":null)+"' data-x-th-id\x3d'"+$APP.P.i(e.id)+"' cx\x3d'"+$APP.P.i(f)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(m)+"' fill\x3d'"+$APP.P.i(YN(e))+"' /\x3e"},a))},Nea=function(a,b,c,d){if(c==null)return"";a=$APP.ne(function(e){e=$APP.G(e);e=$APP.C(e,hO);return $APP.ne(function(f){return $APP.z.j(f.id,c)?f:null},e)},a);return $APP.n(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.P.i(d)+"' y1\x3d'"+
46
+ $APP.P.i(b)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b+20)+"' /\x3e"):""},Oea=function(a,b,c,d){var e=lea(a);return""+$APP.P.i($APP.Zd($APP.P,$APP.we.j(function(f){var h=$APP.G(f),k=$APP.C(h,hO);f=$APP.C(h,iO);h=$APP.C(h,jO);var m=$APP.u(k),r=$APP.C(XN,$APP.n(f)?f:LN);var t=$APP.w(k);t=t==null||t===0||e==null||e===0?0:t>=e?1:.4+.6*((t-1)/$APP.So.j(1,e-1));var x=zP($APP.ih($APP.n(f)?f:LN));k=$APP.w(k);f=""+$APP.P.i(k)+" "+$APP.P.i($APP.z.j(1,k)?"record":"records")+" · "+$APP.P.i($APP.ih($APP.n(f)?
47
+ f:LN));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.P.i(zP(f))+"' data-x-th-bin-record-id\x3d'"+$APP.P.i(m.id)+"' data-x-th-bin-count\x3d'"+$APP.P.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.P.i(x)+"' x\x3d'"+$APP.P.i(h)+"' y\x3d'"+$APP.P.i(b)+"' width\x3d'"+$APP.P.i(4)+"' height\x3d'"+$APP.P.i(20)+"' fill\x3d'"+$APP.P.i(r)+"' fill-opacity\x3d'"+$APP.P.i(t)+"' /\x3e"},a)))+$APP.P.i(Nea(a,b,c,d))},Pea=function(a,b,c,d,e,f){function h(A){a:{var E=$APP.C(x,A.id);var H=a instanceof
48
+ $APP.F?a.da:null;switch(H){case "order":A=$APP.So.j(0,e-16);E=t===0||t<0?8:$APP.z.j(1,t)?8+A/2:8+$APP.Bo.j($APP.So.j(E/(t-1),0),1)*A;break a;case "time":E=A.t;H=$APP.G(d);A=$APP.C(H,cO);H=$APP.C(H,dO);var N=$APP.So.j(0,e-16);E=A==null||H==null?8:8+$APP.Bo.j($APP.So.j((E-A)/H,0),1)*N;break a;default:throw Error("No matching clause: "+$APP.P.i(H));}}return E}var k=$APP.n(f)?f.id:null,m=$APP.If.j($APP.ie,$APP.qe(function(A,E){E=$APP.G(E);E=$APP.C(E,bO);return new $APP.J(null,2,5,$APP.K,[E,A*20],null)},
49
+ c)),r=$APP.So.j(20,20*$APP.w(c)),t=$APP.w(b),x=$APP.If.j($APP.ie,$APP.qe(function(A,E){return new $APP.J(null,2,5,$APP.K,[E.id,A],null)},b)),y=$APP.Xh($N,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(r)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(r)+"'\x3e"+$APP.P.i($APP.Zd($APP.P,$APP.we.j(function(A){A=$APP.G(A);var E=$APP.C(A,bO);A=$APP.Jc(y,E,$APP.Ee);E=$APP.C(m,E);if($APP.z.j(CP,a)){var H=jea(A,h);A=$APP.n(kea(H))?Oea(H,E,k,h):BP(A,E,h,k)}else A=
50
+ BP(A,E,h,k);return A},c)))+$APP.P.i(Mea(f,$APP.n(f)?h(f):null,r))+"\x3c/svg\x3e"},Qea=function(a,b,c,d,e,f,h,k){if($APP.w(d)===0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var m=$APP.So.j(200,b.clientWidth);a.innerHTML=Lea(e,k);b.innerHTML=Pea(c,d,e,f,m,h)}},DP=function(a){return""+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)},Rea=function(a){var b=$APP.G(a);a=$APP.C(b,EP);var c=$APP.C(b,FP),d=$APP.C(b,GP);b=$APP.C(b,HP);c+=14;
51
+ b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.P.i(a)+"' y1\x3d'"+$APP.P.i(c)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b)+"' /\x3e"},Sea=function(a,b){var c=$APP.G(a);a=$APP.C(c,oO);var d=$APP.C(c,IP),e=$APP.C(c,$APP.lo);c=$APP.C(c,$APP.mo);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(c)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(c)+"'\x3e"+$APP.P.i($APP.Zd($APP.P,$APP.we.j(Rea,d)))+$APP.P.i($APP.Zd($APP.P,$APP.we.j(function(f){var h=$APP.G(f),
52
+ k=$APP.C(h,$APP.lt);f=$APP.C(h,lO);var m=$APP.C(h,JP);h=$APP.C(h,KP);m-=70;var r=h-14,t=$APP.z.j(k,b),x=m+12,y=m+22,A=m+22,E=r+18,H=r+11,N=zP("#"+$APP.P.i(k)+" "+$APP.P.i(DP(f))+" · "+$APP.P.i(VN(f)));k="\x3cg data-x-th-link-id\x3d'"+$APP.P.i(k)+"' role\x3d'button' aria-label\x3d'"+$APP.P.i(N)+"'\x3e\x3ctitle\x3e"+$APP.P.i(N)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.P.i(t?" selected":null)+"' x\x3d'"+$APP.P.i(m)+"' y\x3d'"+$APP.P.i(r)+"' width\x3d'"+$APP.P.i(140)+"' height\x3d'"+$APP.P.i(28)+
53
53
  "' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.P.i(x)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(4)+"' fill\x3d'"+$APP.P.i(YN(f))+"' /\x3e\x3ctext class\x3d'node-text id' x\x3d'"+$APP.P.i(y)+"' y\x3d'"+$APP.P.i(H)+"'\x3e#"+$APP.P.i(k)+"\x3c/text\x3e\x3ctext class\x3d'node-text' x\x3d'"+$APP.P.i(A)+"' y\x3d'"+$APP.P.i(E)+"'\x3e";h=$APP.P;m=h.i;f=DP(f);f=""+$APP.P.i(f);f=f.length<=22?f:""+$APP.P.i(f.substring(0,21))+"…";return k+m.call(h,zP(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},
54
- Hea=function(a,b,c,d){if(d==null)vO(a,LP,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.P.i(zP("Select a record from the timeline to see its causality tree."))+"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=TN(c,h);if($APP.n(h))f+=1,e=h;else break a}e=void 0}e=bea(c,e);c=new $APP.M(null,2,[MP,NP(e),Gea,OP(e)],null);if($APP.n(nO.i(e)))vO(a,LP,null),a=$APP.P,d=a.i,c=$APP.G(c),c=$APP.C(c,MP),c="Causality tree exceeds the "+$APP.P.i(200)+
55
- "-node cap (≥ "+$APP.P.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,zP(c))+"\x3c/div\x3e";else{e=PP(e,0,16);f=$APP.B(e,0,null);$APP.B(e,1,null);e=QP(f);f=RP(f);h=$APP.ya($APP.Po,0,$APP.we.j(JP,e));var k=$APP.ya($APP.Po,0,$APP.we.j(KP,e));e=new $APP.M(null,4,[oO,e,IP,f,$APP.io,h+70+16,$APP.jo,k+14+16],null);c=$APP.z.j(1,MP.i(c));vO(a,LP,e);b.innerHTML=""+$APP.P.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.P.i(zP("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."))+
56
- "\x3c/div\x3e":null)+$APP.P.i(Fea(e,d.id))}}},Iea=function(a){if($APP.n(uO(a,SP))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=uO(a,LP),d=TP.i?TP.i(a):TP.call(null,a),e=$APP.n(c)?cea(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;if($APP.n($APP.n(b)?$APP.n(c)?$APP.n(e)?typeof f==="number"&&typeof d==="number"&&f>0&&d>0:e:c:b)){var h=$APP.G(c);c=$APP.C(h,$APP.io);h=$APP.C(h,$APP.jo);var k=JP.i(e),m=KP.i(e);e=k-f/2;k=m-d/2;f=$APP.Po.j(0,c-f);d=$APP.Po.j(0,h-d);d=new $APP.M(null,
57
- 2,[UP,$APP.Po.j(0,$APP.yo.j(f,e)),VP,$APP.Po.j(0,$APP.yo.j(d,k))],null);f=$APP.G(d);d=$APP.C(f,UP);f=$APP.C(f,VP);b.scrollLeft=d;b.scrollTop=f;vO(a,SP,!1)}}},Jea=function(a){var b=oea();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.wb($APP.bh);;){if(e>=d){c=$APP.yb(f);break a}var h=c[e].value;e+=1;f=$APP.z.j(h,"all")?f:$APP.xb(f,h)}c=void 0}b=$APP.De(c,b);$APP.q(b)&&(b=$APP.ae($APP.P,$APP.we.j(xea,b)),a.insertAdjacentHTML("beforeend",b))},Kea=function(a){var b=$APP.$p.i($APP.cb(JN));
58
- a.textContent=$APP.n(b)?"Resume":"Pause";a.pressed=b},Lea=function(a){var b=jP()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},Mea=function(a){var b=$APP.G(a);a=$APP.C(b,WP);var c=$APP.C(b,$APP.Wm),d=$APP.C(b,XP),e=$APP.C(b,YP),f=$APP.C(b,$APP.ek);b=$APP.C(b,ZP);return"\x3cbutton class\x3d'session-chip"+$APP.P.i($APP.n(c)?" active":null)+$APP.P.i($APP.n(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.P.i(zP(a))+"'\x3e"+$APP.P.i($APP.n(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
59
- null)+$APP.P.i(zP(f))+$APP.P.i($APP.n(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.P.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},Nea=function(a,b,c,d){var e=new $APP.M(null,5,[WP,"live",$APP.Wm,$APP.z.j(c,$APP.Yp),XP,!1,YP,!1,$APP.ek,"Live"],null),f=qO(c)?tO(c):null,h=sO(c)?tO(c):null;a=$APP.Fe(function(k){var m=k.id;return new $APP.M(null,5,[WP,""+$APP.P.i(m),$APP.Wm,$APP.z.j(m,f),XP,$APP.z.j(m,d),YP,!1,$APP.ek,""+$APP.P.i(k.label)+
60
- " · "+$APP.P.i(k.recordCount)],null)},$APP.Cc(a));b=$APP.Fe(function(k){var m=k.id;return new $APP.M(null,6,[WP,"import:"+$APP.P.i(m),$APP.Wm,$APP.z.j(m,h),XP,!1,YP,!0,ZP,m,$APP.ek,""+$APP.P.i(k.label)+" · "+$APP.P.i(k.recordCount)],null)},$APP.Cc(b));return $APP.ae($APP.P,$APP.we.j(Mea,$APP.ze.B(new $APP.J(null,1,5,$APP.K,[e],null),a,$APP.Cc([b]))))},Oea=function(a,b,c,d,e){a.innerHTML=Nea(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},$P=function(a){var b=
61
- VN(a);b="#"+$APP.P.i(a.id)+" "+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)+$APP.P.i($APP.n($APP.n(b)?!$APP.Gi(b):b)?" · "+$APP.P.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.P.i(a.id)+"' title\x3d'"+$APP.P.i(zP(b))+"'\x3e"+$APP.P.i(zP(b))+"\x3c/x-button\x3e"},Pea=function(a,b,c,d){if($APP.n(d)){var e=JSON.stringify(d,null,2);var f=d.causeId;var h=typeof f==="number"?TN(c,f):null;f=$da(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.P.i(zP(e))+
62
- "\x3c/pre\x3e"+$APP.P.i($APP.n(h)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.P.i($P(h))+"\x3c/div\x3e":null);c=$APP.P;d=c.i;h=$APP.G(f);f=$APP.C(h,$APP.Du);h=$APP.C(h,hO);if(f>0){var k=$APP.w(h);f=$APP.z.j(k,f)?"Effects ("+$APP.P.i(f)+")":"Effects ("+$APP.P.i(k)+" of "+$APP.P.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.P.i(f)+"\x3c/div\x3e"+$APP.P.i($APP.ae($APP.P,
63
- $APP.we.j($P,h)))+"\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","")},bQ=function(a){var b=aQ.get(a);if($APP.n(b))return b;b=NN(a);aQ.set(a,b);return b},cQ=function(a){return $APP.z.j(a,$APP.Yp)?"live":qO(a)?"session:"+$APP.P.i(tO(a)):sO(a)?"import:"+$APP.P.i(tO(a)):"live"},TP=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.n(a)?
64
- $APP.l(a,cQ(b)):null},eQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.n(c)?c:{};var d=cQ($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.Q(a,"__xTraceHistoryViewSelected",c);b!=null&&$APP.z.j(dQ,$APP.l(a,"__xTraceHistoryDockMode"))&&vO(a,SP,!0)},Qea=function(a,b,c){var d=TP(a);b=TN(b,d);if(b==null)return null;if(RN(b,$APP.Yg.m(c,QN,bQ)))return b;eQ(a,null);return null},fQ=function(a){return $APP.z.j(a,$APP.Yp)?xO():qO(a)?(a=oP(tO(a)),a.length===0?xO():
65
- a):sO(a)?(a=tP(tO(a)),a.length===0?xO():a):xO()},Rea=function(a,b,c,d){switch(d instanceof $APP.F?d.da: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")}},gQ=function(a){xP(a);return $APP.Yi(a,"__xTraceHistoryHighlightCid",null)},Sea=function(a,b){if(b!=null&&b.componentId!=null&&$APP.I("document",b.tag))if($APP.z.j(b.componentId,
66
- $APP.l(a,"__xTraceHistoryHighlightCid")))b=yP(a);else{var c=b.componentId;b=NO(c);if($APP.n(b)){$APP.Yi(a,"__xTraceHistoryHighlightCid",c);c=$APP.l(a,"__xTraceHistoryHighlightBox");if($APP.n(c))a=c;else{c=$APP.zk(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",
54
+ Uea=function(a,b,c,d){if(d==null)vO(a,LP,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.P.i(zP("Select a record from the timeline to see its causality tree."))+"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=TN(c,h);if($APP.n(h))f+=1,e=h;else break a}e=void 0}e=oea(c,e);c=new $APP.M(null,2,[MP,NP(e),Tea,OP(e)],null);if($APP.n(nO.i(e)))vO(a,LP,null),a=$APP.P,d=a.i,c=$APP.G(c),c=$APP.C(c,MP),c="Causality tree exceeds the "+$APP.P.i(200)+
55
+ "-node cap (≥ "+$APP.P.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,zP(c))+"\x3c/div\x3e";else{e=PP(e,0,16);f=$APP.B(e,0,null);$APP.B(e,1,null);e=QP(f);f=RP(f);h=$APP.ya($APP.So,0,$APP.we.j(JP,e));var k=$APP.ya($APP.So,0,$APP.we.j(KP,e));e=new $APP.M(null,4,[oO,e,IP,f,$APP.lo,h+70+16,$APP.mo,k+14+16],null);c=$APP.z.j(1,MP.i(c));vO(a,LP,e);b.innerHTML=""+$APP.P.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.P.i(zP("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."))+
56
+ "\x3c/div\x3e":null)+$APP.P.i(Sea(e,d.id))}}},Vea=function(a){if($APP.n(uO(a,SP))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=uO(a,LP),d=TP.i?TP.i(a):TP.call(null,a),e=$APP.n(c)?pea(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;if($APP.n($APP.n(b)?$APP.n(c)?$APP.n(e)?typeof f==="number"&&typeof d==="number"&&f>0&&d>0:e:c:b)){var h=$APP.G(c);c=$APP.C(h,$APP.lo);h=$APP.C(h,$APP.mo);var k=JP.i(e),m=KP.i(e);e=k-f/2;k=m-d/2;f=$APP.So.j(0,c-f);d=$APP.So.j(0,h-d);d=new $APP.M(null,
57
+ 2,[UP,$APP.So.j(0,$APP.Bo.j(f,e)),VP,$APP.So.j(0,$APP.Bo.j(d,k))],null);f=$APP.G(d);d=$APP.C(f,UP);f=$APP.C(f,VP);b.scrollLeft=d;b.scrollTop=f;vO(a,SP,!1)}}},Wea=function(a){var b=Bea();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.wb($APP.bh);;){if(e>=d){c=$APP.yb(f);break a}var h=c[e].value;e+=1;f=$APP.z.j(h,"all")?f:$APP.xb(f,h)}c=void 0}b=$APP.De(c,b);$APP.q(b)&&(b=$APP.Zd($APP.P,$APP.we.j(Kea,b)),a.insertAdjacentHTML("beforeend",b))},Xea=function(a){var b=$APP.cq.i($APP.bb(JN));
58
+ a.textContent=$APP.n(b)?"Resume":"Pause";a.pressed=b},Yea=function(a){var b=jP()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},Zea=function(a){var b=$APP.G(a);a=$APP.C(b,WP);var c=$APP.C(b,$APP.Zm),d=$APP.C(b,XP),e=$APP.C(b,YP),f=$APP.C(b,$APP.hk);b=$APP.C(b,ZP);return"\x3cbutton class\x3d'session-chip"+$APP.P.i($APP.n(c)?" active":null)+$APP.P.i($APP.n(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.P.i(zP(a))+"'\x3e"+$APP.P.i($APP.n(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
59
+ null)+$APP.P.i(zP(f))+$APP.P.i($APP.n(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.P.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},$ea=function(a,b,c,d){var e=new $APP.M(null,5,[WP,"live",$APP.Zm,$APP.z.j(c,$APP.aq),XP,!1,YP,!1,$APP.hk,"Live"],null),f=qO(c)?tO(c):null,h=sO(c)?tO(c):null;a=$APP.Fe(function(k){var m=k.id;return new $APP.M(null,5,[WP,""+$APP.P.i(m),$APP.Zm,$APP.z.j(m,f),XP,$APP.z.j(m,d),YP,!1,$APP.hk,""+$APP.P.i(k.label)+
60
+ " · "+$APP.P.i(k.recordCount)],null)},$APP.Cc(a));b=$APP.Fe(function(k){var m=k.id;return new $APP.M(null,6,[WP,"import:"+$APP.P.i(m),$APP.Zm,$APP.z.j(m,h),XP,!1,YP,!0,ZP,m,$APP.hk,""+$APP.P.i(k.label)+" · "+$APP.P.i(k.recordCount)],null)},$APP.Cc(b));return $APP.Zd($APP.P,$APP.we.j(Zea,$APP.ze.B(new $APP.J(null,1,5,$APP.K,[e],null),a,$APP.Cc([b]))))},afa=function(a,b,c,d,e){a.innerHTML=$ea(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},$P=function(a){var b=
61
+ VN(a);b="#"+$APP.P.i(a.id)+" "+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)+$APP.P.i($APP.n($APP.n(b)?!$APP.Gi(b):b)?" · "+$APP.P.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.P.i(a.id)+"' title\x3d'"+$APP.P.i(zP(b))+"'\x3e"+$APP.P.i(zP(b))+"\x3c/x-button\x3e"},bfa=function(a,b,c,d){if($APP.n(d)){var e=JSON.stringify(d,null,2);var f=d.causeId;var h=typeof f==="number"?TN(c,f):null;f=mea(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.P.i(zP(e))+
62
+ "\x3c/pre\x3e"+$APP.P.i($APP.n(h)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.P.i($P(h))+"\x3c/div\x3e":null);c=$APP.P;d=c.i;h=$APP.G(f);f=$APP.C(h,$APP.Nu);h=$APP.C(h,hO);if(f>0){var k=$APP.w(h);f=$APP.z.j(k,f)?"Effects ("+$APP.P.i(f)+")":"Effects ("+$APP.P.i(k)+" of "+$APP.P.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.P.i(f)+"\x3c/div\x3e"+$APP.P.i($APP.Zd($APP.P,
63
+ $APP.we.j($P,h)))+"\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","")},bQ=function(a){var b=aQ.get(a);if($APP.n(b))return b;b=NN(a);aQ.set(a,b);return b},cQ=function(a){return $APP.z.j(a,$APP.aq)?"live":qO(a)?"session:"+$APP.P.i(tO(a)):sO(a)?"import:"+$APP.P.i(tO(a)):"live"},TP=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.n(a)?
64
+ $APP.l(a,cQ(b)):null},eQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.n(c)?c:{};var d=cQ($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.Q(a,"__xTraceHistoryViewSelected",c);b!=null&&$APP.z.j(dQ,$APP.l(a,"__xTraceHistoryDockMode"))&&vO(a,SP,!0)},cfa=function(a,b,c){var d=TP(a);b=TN(b,d);if(b==null)return null;if(RN(b,$APP.Yg.m(c,QN,bQ)))return b;eQ(a,null);return null},fQ=function(a){return $APP.z.j(a,$APP.aq)?xO():qO(a)?(a=oP(tO(a)),a.length===0?xO():
65
+ a):sO(a)?(a=tP(tO(a)),a.length===0?xO():a):xO()},dfa=function(a,b,c,d){switch(d instanceof $APP.F?d.da: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")}},gQ=function(a){xP(a);return $APP.Yi(a,"__xTraceHistoryHighlightCid",null)},efa=function(a,b){if(b!=null&&b.componentId!=null&&$APP.I("document",b.tag))if($APP.z.j(b.componentId,
66
+ $APP.l(a,"__xTraceHistoryHighlightCid")))b=yP(a);else{var c=b.componentId;b=NO(c);if($APP.n(b)){$APP.Yi(a,"__xTraceHistoryHighlightCid",c);c=$APP.l(a,"__xTraceHistoryHighlightBox");if($APP.n(c))a=c;else{c=$APP.Ck(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",
67
67
  9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.Yi(a,"__xTraceHistoryHighlightLayer",c);$APP.Yi(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||b.scrollIntoView({block:"nearest",inline:"nearest",behavior:$APP.D($APP.n(hQ)?hQ.matches:null)?"auto":"smooth"});wP(a,b);a.style.display="block";b=a;b.style.animation="none";b=b.style.animation=""}else b=
68
68
  gQ(a)}else b=gQ(a);return b},jQ=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"),h=$APP.l(a,"__xTraceHistoryDetailEl"),k=$APP.l(a,"__xTraceHistorySplitterEl"),m=$APP.l(a,"__xTraceHistoryHintEl"),r=$APP.l(a,"__xTraceHistoryPauseBtn"),t=$APP.l(a,"__xTraceHistoryRecordBtn"),x=$APP.l(a,"__xTraceHistorySessionsEl"),y=$APP.l(a,"__xTraceHistoryTagSelectEl"),
69
- A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),H=fQ(E),N=SN(H,$APP.Yg.m(A,QN,bQ)),S=$APP.w(N),R=H.length,Y=eO(N),la=Qda(N),ha=Qea(a,H,A),na=nP(),La=sP(),Na=jP(),bb=function(){var Ib=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(Ib)?Ib:$APP.Er}(),ob=function(){var Ib=$APP.l(a,"__xTraceHistoryDockMode");return $APP.n(Ib)?Ib:iQ}();Jea(y);Rea(a,b,c,ob);switch(ob instanceof $APP.F?ob.da:null){case "causality":Hea(a,c,H,ha);break;default:Dea(d,e,bb,N,la,Y,ha,$APP.cr.i(A))}f.textContent=
70
- ""+$APP.P.i(S);m.textContent=dea(S,R,Y,$APP.w(la));Pea(h,k,H,ha);Kea(r);Lea(t);Oea(x,na,La,E,Na);Iea(a);return Sea(a,ha)},kQ=function(a){return $APP.n(a)?$APP.z.j("circle",a.tagName.toLowerCase()):a},lQ=function(a){return $APP.n(a)?$APP.z.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},mQ=function(a){a=a.getAttribute("data-x-th-id");return $APP.n(a)?parseInt(a,10):null},nQ=function(a,b){$APP.n(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=
71
- $APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},oQ=function(a){var b=!$APP.D($APP.l(a,"__xTraceHistoryCollapsed"));$APP.Q(a,"__xTraceHistoryCollapsed",b);return nQ(a,b)},Tea=function(a,b){$APP.Q(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.Er;case "time":return CP;default:return $APP.Er}}());return jQ(a)},Uea=function(a,b){var c=function(){switch(b){case "timeline":return iQ;
72
- case "causality":return dQ;default:return iQ}}();$APP.Q(a,"__xTraceHistoryDockMode",c);$APP.z.j(dQ,c)?vO(a,SP,!0):vO(a,SP,!1);return jQ(a)},pQ=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.Po.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.P.i(b+f)+"px";return a.style.top=""+$APP.P.i(c+e+12)+"px"},Vea=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),
69
+ A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),H=fQ(E),N=SN(H,$APP.Yg.m(A,QN,bQ)),S=$APP.w(N),R=H.length,Y=eO(N),la=cea(N),ha=cfa(a,H,A),na=nP(),Ma=sP(),Oa=jP(),cb=function(){var Jb=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(Jb)?Jb:$APP.Jr}(),pb=function(){var Jb=$APP.l(a,"__xTraceHistoryDockMode");return $APP.n(Jb)?Jb:iQ}();Wea(y);dfa(a,b,c,pb);switch(pb instanceof $APP.F?pb.da:null){case "causality":Uea(a,c,H,ha);break;default:Qea(d,e,cb,N,la,Y,ha,$APP.gr.i(A))}f.textContent=
70
+ ""+$APP.P.i(S);m.textContent=qea(S,R,Y,$APP.w(la));bfa(h,k,H,ha);Xea(r);Yea(t);afa(x,na,Ma,E,Oa);Vea(a);return efa(a,ha)},kQ=function(a){return $APP.n(a)?$APP.z.j("circle",a.tagName.toLowerCase()):a},lQ=function(a){return $APP.n(a)?$APP.z.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},mQ=function(a){a=a.getAttribute("data-x-th-id");return $APP.n(a)?parseInt(a,10):null},nQ=function(a,b){$APP.n(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=
71
+ $APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},oQ=function(a){var b=!$APP.D($APP.l(a,"__xTraceHistoryCollapsed"));$APP.Q(a,"__xTraceHistoryCollapsed",b);return nQ(a,b)},ffa=function(a,b){$APP.Q(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.Jr;case "time":return CP;default:return $APP.Jr}}());return jQ(a)},gfa=function(a,b){var c=function(){switch(b){case "timeline":return iQ;
72
+ case "causality":return dQ;default:return iQ}}();$APP.Q(a,"__xTraceHistoryDockMode",c);$APP.z.j(dQ,c)?vO(a,SP,!0):vO(a,SP,!1);return jQ(a)},pQ=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.So.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.P.i(b+f)+"px";return a.style.top=""+$APP.P.i(c+e+12)+"px"},hfa=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),
73
73
  e=$APP.l(a,"__xTraceHistoryTimelineEl");a=fQ($APP.l(a,"__xTraceHistoryView"));if($APP.n(kQ(c))){c=mQ(c);a=TN(a,c);if($APP.n(a)){c=""+$APP.P.i(a.tag);var f=$APP.P,h=f.i;var k=a.componentId;k=$APP.n(k)?" #"+$APP.P.i(k):null;a=c+h.call(f,k)+"\n"+$APP.P.i(a.type)+"\n"+$APP.P.i(VN(a))+"\n@ "+$APP.P.i(WN(a.t));b=pQ(d,e,b,a)}else b=null;return b}if($APP.n(lQ(c))){f=c.getAttribute("data-x-th-bin-record-id");h=c.getAttribute("data-x-th-bin-count");c=c.getAttribute("data-x-th-bin-cat");c=$APP.n($APP.n(f)?$APP.n(h)?
74
74
  c:h:f)?new $APP.M(null,3,[qQ,parseInt(f,10),rQ,parseInt(h,10),iO,$APP.Jh.i(c)],null):null;if($APP.n(c)){f=$APP.G(c);h=$APP.C(f,qQ);c=$APP.C(f,rQ);f=$APP.C(f,iO);a=TN(a,h);if($APP.n(a)){h=""+$APP.P.i(a.tag);k=$APP.P;var m=k.i;var r=a.componentId;r=$APP.n(r)?" #"+$APP.P.i(r):null;a=h+m.call(k,r)+"\n"+$APP.P.i(c)+" "+$APP.P.i($APP.z.j(1,c)?"record":"records")+" · "+$APP.P.i($APP.ih($APP.n(f)?f:LN))+"\n@ "+$APP.P.i(WN(a.t));b=pQ(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden",
75
- "")},sQ=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.da:null,b){case "order":d=$APP.w(c);e=$APP.Po.j(0,e-16);d===0||d<0?f=null:$APP.z.j(1,d)||e===0?f=0:(f=$APP.yo.j($APP.Po.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.n(f)?$APP.B(c,f,null):null;break a;case "time":var h=$APP.G(d);d=$APP.C(h,cO);b=$APP.C(h,dO);var k=$APP.Po.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.yo.j($APP.Po.j((f-8)/k,0),1),f=d+f*b);c=Sda(c,f);break a;default:throw Error("No matching clause: "+
76
- $APP.P.i(b));}return $APP.n(c)?(eQ(a,c.id),jQ(a)):null},Wea=function(a,b,c){function d(x){return sQ(a,k,r,t,f,x.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.Po.j(200,b.clientWidth),h=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var x=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(x)?x:$APP.Er}(),m=fQ($APP.l(a,"__xTraceHistoryView")),r=SN(m,$APP.Yg.m(h,QN,bQ)),t=eO(r);sQ(a,k,r,t,f,c.clientX-e.left);c=function y(){b.removeEventListener("pointermove",
75
+ "")},sQ=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.da:null,b){case "order":d=$APP.w(c);e=$APP.So.j(0,e-16);d===0||d<0?f=null:$APP.z.j(1,d)||e===0?f=0:(f=$APP.Bo.j($APP.So.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.n(f)?$APP.B(c,f,null):null;break a;case "time":var h=$APP.G(d);d=$APP.C(h,cO);b=$APP.C(h,dO);var k=$APP.So.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.Bo.j($APP.So.j((f-8)/k,0),1),f=d+f*b);c=eea(c,f);break a;default:throw Error("No matching clause: "+
76
+ $APP.P.i(b));}return $APP.n(c)?(eQ(a,c.id),jQ(a)):null},ifa=function(a,b,c){function d(x){return sQ(a,k,r,t,f,x.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.So.j(200,b.clientWidth),h=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var x=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(x)?x:$APP.Jr}(),m=fQ($APP.l(a,"__xTraceHistoryView")),r=SN(m,$APP.Yg.m(h,QN,bQ)),t=eO(r);sQ(a,k,r,t,f,c.clientX-e.left);c=function y(){b.removeEventListener("pointermove",
77
77
  d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},tQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryFilter"),d=fQ($APP.l(a,"__xTraceHistoryView"));c=SN(d,$APP.Yg.m(c,QN,bQ));d=TP(a);a:if($APP.q(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.w(c),f=0;;){if(f>=e){d=null;break b}if($APP.z.j(d,$APP.xc(c,f).id)){d=f;break b}f+=1}d=void 0}else d=
78
- null;else d=null;if(d==null)switch(b=b instanceof $APP.F?b.da:null,b){case "next":b=$APP.u(c);break a;case "prev":b=$APP.Pc(c);break a;default:throw Error("No matching clause: "+$APP.P.i(b));}else b=$APP.z.j(b,$APP.rr)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.n(b)?(eQ(a,b.id),jQ(a)):null},uQ=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.cd(Xea,a==null?null:a.toLowerCase()));return a},Yea=function(a,b){if(uQ(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),
79
- tQ(a,$APP.rr);case "ArrowLeft":return b.preventDefault(),tQ(a,$APP.lr);default:return null}},Zea=function(a,b,c){function d(h){h=$APP.Po.j(60,f+(e-h.clientY));return a.style.height=""+$APP.P.i(h)+"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",
80
- d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},$ea=function(a){return a==null||$APP.z.j("",a)?null:oN(a,".trace.json")?$APP.vd(a,$APP.w(a)-11):oN(a,".json")?$APP.vd(a,$APP.w(a)-5):a},wQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=uO(a,vQ);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");vO(a,vQ,null);return jQ(a)},4E3);return vO(a,vQ,b)},yQ=function(a,b){var c=new FileReader,
81
- d=$ea(b.name);c.onload=function(){var e=xQ.j(c.result,d);e!=null?($APP.l(a,"__xTraceHistoryHintEl").classList.remove("error"),$APP.Q(a,"__xTraceHistoryView",new $APP.J(null,2,5,$APP.K,[rO,e],null)),e=jQ(a)):e=wQ(a,"Import failed — see console for details.");return e};c.onerror=function(){return wQ(a,"Could not read file.")};return c.readAsText(b)},zQ=function(a){a=a.dataTransfer;return $APP.n(a)?a.types.includes("Files"):null},afa=function(a,b){var c=a.shadowRoot;a=$APP.n(c)?c:a.attachShadow({mode:"open"});
78
+ null;else d=null;if(d==null)switch(b=b instanceof $APP.F?b.da:null,b){case "next":b=$APP.u(c);break a;case "prev":b=$APP.Pc(c);break a;default:throw Error("No matching clause: "+$APP.P.i(b));}else b=$APP.z.j(b,$APP.vr)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.n(b)?(eQ(a,b.id),jQ(a)):null},uQ=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.bd(jfa,a==null?null:a.toLowerCase()));return a},kfa=function(a,b){if(uQ(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),
79
+ tQ(a,$APP.vr);case "ArrowLeft":return b.preventDefault(),tQ(a,$APP.pr);default:return null}},lfa=function(a,b,c){function d(h){h=$APP.So.j(60,f+(e-h.clientY));return a.style.height=""+$APP.P.i(h)+"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",
80
+ d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},mfa=function(a){return a==null||$APP.z.j("",a)?null:oN(a,".trace.json")?$APP.vd(a,$APP.w(a)-11):oN(a,".json")?$APP.vd(a,$APP.w(a)-5):a},wQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=uO(a,vQ);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");vO(a,vQ,null);return jQ(a)},4E3);return vO(a,vQ,b)},yQ=function(a,b){var c=new FileReader,
81
+ d=mfa(b.name);c.onload=function(){var e=xQ.j(c.result,d);e!=null?($APP.l(a,"__xTraceHistoryHintEl").classList.remove("error"),$APP.Q(a,"__xTraceHistoryView",new $APP.J(null,2,5,$APP.K,[rO,e],null)),e=jQ(a)):e=wQ(a,"Import failed — see console for details.");return e};c.onerror=function(){return wQ(a,"Could not read file.")};return c.readAsText(b)},zQ=function(a){a=a.dataTransfer;return $APP.n(a)?a.types.includes("Files"):null},nfa=function(a,b){var c=a.shadowRoot;a=$APP.n(c)?c:a.attachShadow({mode:"open"});
82
82
  if(c==null){c="\x3cstyle\x3e"+$APP.P.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; }")+
83
83
  "\x3c/style\x3e";var d=$APP.P,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"+
84
- $APP.P.i(AP("events",$APP.cd(b,$APP.Xt)))+$APP.P.i(AP("state",$APP.cd(b,$APP.Dt)))+$APP.P.i(AP("dom",$APP.cd(b,AQ)))+$APP.P.i(AP("lifecycle",$APP.cd(b,BQ)))+"\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";
85
- a.innerHTML=c+e.call(d,b)}return a},bfa=function(a,b){$APP.Q(a,"__xTraceHistoryShadow",b);$APP.Q(a,"__xTraceHistoryTimelineEl",b.querySelector("[data-x-th-timeline]"));$APP.Q(a,"__xTraceHistoryLanesEl",b.querySelector("[data-x-th-lanes]"));$APP.Q(a,"__xTraceHistorySvgPaneEl",b.querySelector("[data-x-th-svg-pane]"));$APP.Q(a,"__xTraceHistoryTooltipEl",b.querySelector("[data-x-th-tooltip]"));$APP.Q(a,"__xTraceHistoryCountEl",b.querySelector("[data-x-th-count]"));$APP.Q(a,"__xTraceHistoryDetailEl",b.querySelector("[data-x-th-detail]"));
84
+ $APP.P.i(AP("events",$APP.bd(b,$APP.fu)))+$APP.P.i(AP("state",$APP.bd(b,$APP.Mt)))+$APP.P.i(AP("dom",$APP.bd(b,AQ)))+$APP.P.i(AP("lifecycle",$APP.bd(b,BQ)))+"\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";
85
+ a.innerHTML=c+e.call(d,b)}return a},ofa=function(a,b){$APP.Q(a,"__xTraceHistoryShadow",b);$APP.Q(a,"__xTraceHistoryTimelineEl",b.querySelector("[data-x-th-timeline]"));$APP.Q(a,"__xTraceHistoryLanesEl",b.querySelector("[data-x-th-lanes]"));$APP.Q(a,"__xTraceHistorySvgPaneEl",b.querySelector("[data-x-th-svg-pane]"));$APP.Q(a,"__xTraceHistoryTooltipEl",b.querySelector("[data-x-th-tooltip]"));$APP.Q(a,"__xTraceHistoryCountEl",b.querySelector("[data-x-th-count]"));$APP.Q(a,"__xTraceHistoryDetailEl",b.querySelector("[data-x-th-detail]"));
86
86
  $APP.Q(a,"__xTraceHistorySplitterEl",b.querySelector("[data-x-th-splitter]"));$APP.Q(a,"__xTraceHistoryHintEl",b.querySelector("[data-x-th-hint]"));$APP.Q(a,"__xTraceHistoryTagSelectEl",b.querySelector("[data-x-th-tag]"));$APP.Q(a,"__xTraceHistoryCausalityEl",b.querySelector("[data-x-th-causality]"));$APP.Q(a,"__xTraceHistoryPauseBtn",b.querySelector("[data-x-th-action\x3d'pause']"));$APP.Q(a,"__xTraceHistoryRecordBtn",b.querySelector("[data-x-th-action\x3d'record']"));$APP.Q(a,"__xTraceHistorySessionsEl",
87
- b.querySelector("[data-x-th-sessions]"));$APP.Q(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.Q(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.Q(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},cfa=function(a,b,c,d,e,f,h,k){return[[b,"click",function(m){m=m.target;var r=m.closest("[data-x-th-action]");if($APP.n(r))switch(r.getAttribute("data-x-th-action")){case "pause":$APP.n($APP.$p.i($APP.cb(JN)))?
88
- dP():cP();break;case "record":jP()!=null?kP():lP();break;case "clear":$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.Q(a,"__xTraceHistoryView",$APP.Yp);iP();break;case "export":vP();break;case "import":r=$APP.l(a,"__xTraceHistoryImportInput");$APP.n(r)&&(r.value="",r.click());break;case "collapse":oQ(a)}r=m.closest("[data-x-th-import-close]");if($APP.n(r)){r=parseInt(r.getAttribute("data-x-th-import-close"),10);var t=$APP.l(a,"__xTraceHistoryView");sO(t)&&$APP.z.j(r,tO(t))&&$APP.Q(a,"__xTraceHistoryView",
89
- $APP.Yp);qP(r)}$APP.n(m.closest("[data-x-th-import-close]"))||(r=m.closest("[data-x-th-session]"),$APP.n(r)&&(r=r.getAttribute("data-x-th-session"),r=$APP.z.j(r,"live")?$APP.Yp:r.lastIndexOf("import:",0)==0?new $APP.J(null,2,5,$APP.K,[rO,parseInt(r.substring(7),10)],null):new $APP.J(null,2,5,$APP.K,[pO,parseInt(r,10)],null),$APP.Q(a,"__xTraceHistoryView",r),jQ(a)));r=m.closest("[data-x-th-lane-tag]");if($APP.n(r)){t=r.getAttribute("data-x-th-lane-tag");r=$APP.l(a,"__xTraceHistoryFilter");var x=$APP.cr.i(r);
90
- t=$APP.z.j(t,x)?null:t;r=$APP.Yg.m(r,$APP.cr,t);$APP.Q(a,"__xTraceHistoryFilter",r);r=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.n(r)&&(r.value=$APP.n(t)?t:"all");jQ(a)}r=m.closest("[data-x-th-link-id]");$APP.n(r)&&(r=r.getAttribute("data-x-th-link-id"),$APP.n(r)&&(r=parseInt(r,10),$APP.n(isNaN(r))||(eQ(a,r),jQ(a))));r=kQ(m);r=$APP.n(r)?r:lQ(m);$APP.n(r)?($APP.n(kQ(m))?m=mQ(m):$APP.n(lQ(m))?(m=m.getAttribute("data-x-th-bin-record-id"),m=$APP.n(m)?parseInt(m,10):null):m=null,r=TP(a),m=$APP.z.j(m,
91
- r)?null:m,eQ(a,m),m=jQ(a)):m=null;return m}],[b,"select-change",function(m){var r=m.target;m=m.detail.value;r.getAttribute("data-x-th-tag")!=null?(r=$APP.Yg.m($APP.l(a,"__xTraceHistoryFilter"),$APP.cr,$APP.z.j(m,"all")?null:m),$APP.Q(a,"__xTraceHistoryFilter",r),r=jQ(a)):r=r.getAttribute("data-x-th-mode")!=null?Uea(a,m):r.getAttribute("data-x-th-axis")!=null?Tea(a,m):null;return r}],[b,"x-checkbox-change",function(m){var r=m.target.getAttribute("data-x-th-cat");if(r!=null){var t=m.detail.checked;
92
- m=$APP.l(a,"__xTraceHistoryFilter");var x=ON.i(m);x=$APP.n(x)?x:$APP.fh(KN);r=$APP.Jh.i(r);r=$APP.n(t)?$APP.Ad.j(x,r):$APP.Oo.j(x,r);m=$APP.Yg.m(m,ON,r);$APP.Q(a,"__xTraceHistoryFilter",m);m=jQ(a)}else m=null;return m}],[b,"x-search-field-input",function(m){var r=m.target;$APP.n($APP.n(r)?r.hasAttribute("data-x-th-search"):r)?(m=m.detail.value,m=($APP.n(m)?m:"").toLowerCase(),m=$APP.Yg.m($APP.l(a,"__xTraceHistoryFilter"),PN,$APP.z.j("",m)?null:m),$APP.Q(a,"__xTraceHistoryFilter",m),m=jQ(a)):m=null;
93
- return m}],[c,"pointermove",function(m){return Vea(a,m)}],[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(m){return Yea(a,m)}],[d,"pointerdown",function(m){return Wea(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),m)}],[e,"pointerdown",function(m){return Zea(f,e,m)}],[h,"change",function(m){m=m.target.files;return m.length>0?yQ(a,m[0]):null}],
94
- [b,"dragenter",function(m){if($APP.n(zQ(m))){m.preventDefault();m=$APP.l(a,"__xTraceHistoryDropOverlay");var r=uO(a,CQ);vO(a,CQ,($APP.n(r)?r:0)+1);m=m.removeAttribute("hidden")}else m=null;return m}],[b,"dragover",function(m){$APP.n(zQ(m))?(m.preventDefault(),m=m.dataTransfer,m=$APP.n(m)?m.dropEffect="copy":null):m=null;return m}],[b,"dragleave",function(m){if($APP.n(zQ(m))){m=$APP.l(a,"__xTraceHistoryDropOverlay");var r=$APP.Po.j,t=uO(a,CQ);r=r.call($APP.Po,0,($APP.n(t)?t:0)-1);vO(a,CQ,r);m=r===
87
+ b.querySelector("[data-x-th-sessions]"));$APP.Q(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.Q(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.Q(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},pfa=function(a,b,c,d,e,f,h,k){return[[b,"click",function(m){m=m.target;var r=m.closest("[data-x-th-action]");if($APP.n(r))switch(r.getAttribute("data-x-th-action")){case "pause":$APP.n($APP.cq.i($APP.bb(JN)))?
88
+ dP():cP();break;case "record":jP()!=null?kP():lP();break;case "clear":$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.Q(a,"__xTraceHistoryView",$APP.aq);iP();break;case "export":vP();break;case "import":r=$APP.l(a,"__xTraceHistoryImportInput");$APP.n(r)&&(r.value="",r.click());break;case "collapse":oQ(a)}r=m.closest("[data-x-th-import-close]");if($APP.n(r)){r=parseInt(r.getAttribute("data-x-th-import-close"),10);var t=$APP.l(a,"__xTraceHistoryView");sO(t)&&$APP.z.j(r,tO(t))&&$APP.Q(a,"__xTraceHistoryView",
89
+ $APP.aq);qP(r)}$APP.n(m.closest("[data-x-th-import-close]"))||(r=m.closest("[data-x-th-session]"),$APP.n(r)&&(r=r.getAttribute("data-x-th-session"),r=$APP.z.j(r,"live")?$APP.aq:r.lastIndexOf("import:",0)==0?new $APP.J(null,2,5,$APP.K,[rO,parseInt(r.substring(7),10)],null):new $APP.J(null,2,5,$APP.K,[pO,parseInt(r,10)],null),$APP.Q(a,"__xTraceHistoryView",r),jQ(a)));r=m.closest("[data-x-th-lane-tag]");if($APP.n(r)){t=r.getAttribute("data-x-th-lane-tag");r=$APP.l(a,"__xTraceHistoryFilter");var x=$APP.gr.i(r);
90
+ t=$APP.z.j(t,x)?null:t;r=$APP.Yg.m(r,$APP.gr,t);$APP.Q(a,"__xTraceHistoryFilter",r);r=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.n(r)&&(r.value=$APP.n(t)?t:"all");jQ(a)}r=m.closest("[data-x-th-link-id]");$APP.n(r)&&(r=r.getAttribute("data-x-th-link-id"),$APP.n(r)&&(r=parseInt(r,10),$APP.n(isNaN(r))||(eQ(a,r),jQ(a))));r=kQ(m);r=$APP.n(r)?r:lQ(m);$APP.n(r)?($APP.n(kQ(m))?m=mQ(m):$APP.n(lQ(m))?(m=m.getAttribute("data-x-th-bin-record-id"),m=$APP.n(m)?parseInt(m,10):null):m=null,r=TP(a),m=$APP.z.j(m,
91
+ r)?null:m,eQ(a,m),m=jQ(a)):m=null;return m}],[b,"select-change",function(m){var r=m.target;m=m.detail.value;r.getAttribute("data-x-th-tag")!=null?(r=$APP.Yg.m($APP.l(a,"__xTraceHistoryFilter"),$APP.gr,$APP.z.j(m,"all")?null:m),$APP.Q(a,"__xTraceHistoryFilter",r),r=jQ(a)):r=r.getAttribute("data-x-th-mode")!=null?gfa(a,m):r.getAttribute("data-x-th-axis")!=null?ffa(a,m):null;return r}],[b,"x-checkbox-change",function(m){var r=m.target.getAttribute("data-x-th-cat");if(r!=null){var t=m.detail.checked;
92
+ m=$APP.l(a,"__xTraceHistoryFilter");var x=ON.i(m);x=$APP.n(x)?x:$APP.fh(KN);r=$APP.Jh.i(r);r=$APP.n(t)?$APP.Ad.j(x,r):$APP.Ro.j(x,r);m=$APP.Yg.m(m,ON,r);$APP.Q(a,"__xTraceHistoryFilter",m);m=jQ(a)}else m=null;return m}],[b,"x-search-field-input",function(m){var r=m.target;$APP.n($APP.n(r)?r.hasAttribute("data-x-th-search"):r)?(m=m.detail.value,m=($APP.n(m)?m:"").toLowerCase(),m=$APP.Yg.m($APP.l(a,"__xTraceHistoryFilter"),PN,$APP.z.j("",m)?null:m),$APP.Q(a,"__xTraceHistoryFilter",m),m=jQ(a)):m=null;
93
+ return m}],[c,"pointermove",function(m){return hfa(a,m)}],[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(m){return kfa(a,m)}],[d,"pointerdown",function(m){return ifa(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),m)}],[e,"pointerdown",function(m){return lfa(f,e,m)}],[h,"change",function(m){m=m.target.files;return m.length>0?yQ(a,m[0]):null}],
94
+ [b,"dragenter",function(m){if($APP.n(zQ(m))){m.preventDefault();m=$APP.l(a,"__xTraceHistoryDropOverlay");var r=uO(a,CQ);vO(a,CQ,($APP.n(r)?r:0)+1);m=m.removeAttribute("hidden")}else m=null;return m}],[b,"dragover",function(m){$APP.n(zQ(m))?(m.preventDefault(),m=m.dataTransfer,m=$APP.n(m)?m.dropEffect="copy":null):m=null;return m}],[b,"dragleave",function(m){if($APP.n(zQ(m))){m=$APP.l(a,"__xTraceHistoryDropOverlay");var r=$APP.So.j,t=uO(a,CQ);r=r.call($APP.So,0,($APP.n(t)?t:0)-1);vO(a,CQ,r);m=r===
95
95
  0?m.setAttribute("hidden",""):null}else m=null;return m}],[b,"drop",function(m){$APP.n(zQ(m))?(m.preventDefault(),vO(a,CQ,0),$APP.l(a,"__xTraceHistoryDropOverlay").setAttribute("hidden",""),m=m.dataTransfer,m=$APP.n(m)?m.files:null,m=$APP.n($APP.n(m)?m.length>0:m)?yQ(a,m[0]):null):m=null;return m}],[document,"keydown",function(m){var r;if(r=$APP.z.j("\\",m.key))r=m.metaKey,r=$APP.n(r)?r:m.ctrlKey,r=$APP.n(r)?$APP.p(m.altKey)&&$APP.p(m.shiftKey)&&!uQ(m.target):r;$APP.n(r)?(m.preventDefault(),m=oQ(a)):
96
- m=null;return m}]]},dfa=function(a,b){b=cfa(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.Q(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}},efa=function(a){if($APP.n($APP.l(a,"__xTraceHistoryHighlightRaf")))return null;var b=requestAnimationFrame(function(){$APP.Yi(a,
97
- "__xTraceHistoryHighlightRaf",null);return yP(a)});return $APP.Yi(a,"__xTraceHistoryHighlightRaf",b)},ffa=function(a){function b(){return efa(a)}var c=[[window,"scroll",b,{capture:!0,passive:!0}],[window,"resize",b,{capture:!1,passive:!0}]];$APP.Yi(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},gfa=function(a,b){$APP.n($APP.l(a,"__xTraceHistoryFilter"))||$APP.Q(a,"__xTraceHistoryFilter",new $APP.M(null,3,
98
- [$APP.cr,null,ON,b,PN,null],null));$APP.n($APP.l(a,"__xTraceHistoryView"))||$APP.Q(a,"__xTraceHistoryView",$APP.Yp);$APP.n($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.n($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.Q(a,"__xTraceHistoryAxisMode",$APP.Er);$APP.n($APP.l(a,"__xTraceHistoryDockMode"))||$APP.Q(a,"__xTraceHistoryDockMode",iQ);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.Q(a,"__xTraceHistoryCollapsed",!1);nQ(a,$APP.D($APP.l(a,"__xTraceHistoryCollapsed")))},
99
- hfa=function(a){if($APP.n($APP.l(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=xO().length;hea(function(){var c=Oda(),d=afa(a,c);bfa(a,d);gfa(a,c);dfa(a,d);ffa(a);c=DO.i(yO.m(zO,fea,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=sP(),h=f.length;var k=uO(a,DQ);k=$APP.n(k)?k:0;h>k?(vO(a,DQ,h),$APP.z.j(e,$APP.Yp)&&xO().length===0&&$APP.Q(a,"__xTraceHistoryView",new $APP.J(null,2,5,$APP.K,[rO,f[h-1].id],null))):h<k&&vO(a,DQ,h);return jQ(a)}));$APP.Q(a,"__xTraceHistorySubToken",
96
+ m=null;return m}]]},qfa=function(a,b){b=pfa(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.Q(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}},rfa=function(a){if($APP.n($APP.l(a,"__xTraceHistoryHighlightRaf")))return null;var b=requestAnimationFrame(function(){$APP.Yi(a,
97
+ "__xTraceHistoryHighlightRaf",null);return yP(a)});return $APP.Yi(a,"__xTraceHistoryHighlightRaf",b)},sfa=function(a){function b(){return rfa(a)}var c=[[window,"scroll",b,{capture:!0,passive:!0}],[window,"resize",b,{capture:!1,passive:!0}]];$APP.Yi(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},tfa=function(a,b){$APP.n($APP.l(a,"__xTraceHistoryFilter"))||$APP.Q(a,"__xTraceHistoryFilter",new $APP.M(null,3,
98
+ [$APP.gr,null,ON,b,PN,null],null));$APP.n($APP.l(a,"__xTraceHistoryView"))||$APP.Q(a,"__xTraceHistoryView",$APP.aq);$APP.n($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.n($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.Q(a,"__xTraceHistoryAxisMode",$APP.Jr);$APP.n($APP.l(a,"__xTraceHistoryDockMode"))||$APP.Q(a,"__xTraceHistoryDockMode",iQ);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.Q(a,"__xTraceHistoryCollapsed",!1);nQ(a,$APP.D($APP.l(a,"__xTraceHistoryCollapsed")))},
99
+ ufa=function(a){if($APP.n($APP.l(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=xO().length;uea(function(){var c=aea(),d=nfa(a,c);ofa(a,d);tfa(a,c);qfa(a,d);sfa(a);c=DO.i(yO.m(zO,sea,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=sP(),h=f.length;var k=uO(a,DQ);k=$APP.n(k)?k:0;h>k?(vO(a,DQ,h),$APP.z.j(e,$APP.aq)&&xO().length===0&&$APP.Q(a,"__xTraceHistoryView",new $APP.J(null,2,5,$APP.K,[rO,f[h-1].id],null))):h<k&&vO(a,DQ,h);return jQ(a)}));$APP.Q(a,"__xTraceHistorySubToken",
100
100
  c);jQ(a);return $APP.Q(a,"__xTraceHistoryMounted",!0)});return $APP.I(b,xO().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},EQ=function(){return $APP.n(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},FQ=function(){if(uN()){var a=yO.B;var b=$APP.l(window,"BAREDOM_TRACE_HISTORY_CAPACITY");
101
- 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.yh(ifa,c),d=$APP.D(c));a.call(yO,JN,$APP.Yg,RO,b,$APP.Cc([BN,d]));tN($APP.Pi,ZO);tN($APP.Yh,ZO);tN(JO,0);tN(QO,$APP.Ee);kea();tN(YO,!0);a=$APP.l(window,"BareDOM");a=$APP.n(a)?a:{};a.traceHistory={records:lea,sessions:nP,"export":rea,download:vP,stopSession:kP,"import":xQ,pause:cP,importRecords:tP,sessionRecords:oP,startSession:lP,components:mea,clear:iP,imports:sP,
102
- removeImport:qP,resume:dP};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.Gn();$APP.Ol();$APP.yk();$APP.bo();$APP.xi("x-trace-history",jfa);return uN()?$APP.n(document.body)?EQ():document.addEventListener("DOMContentLoaded",EQ,{once:!0}):null},GQ=function(){return FQ()},fO=function fO(a){switch(arguments.length){case 2:return fO.j(arguments[0],arguments[1]);case 3:return fO.m(arguments[0],
101
+ 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.rh(vfa,c),d=$APP.D(c));a.call(yO,JN,$APP.Yg,RO,b,$APP.Cc([BN,d]));tN($APP.Pi,ZO);tN($APP.Yh,ZO);tN(JO,0);tN(QO,$APP.Ee);xea();tN(YO,!0);a=$APP.l(window,"BareDOM");a=$APP.n(a)?a:{};a.traceHistory={records:yea,sessions:nP,"export":Eea,download:vP,stopSession:kP,"import":xQ,pause:cP,importRecords:tP,sessionRecords:oP,startSession:lP,components:zea,clear:iP,imports:sP,
102
+ removeImport:qP,resume:dP};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.Jn();$APP.Rl();$APP.Bk();$APP.fo();$APP.qi("x-trace-history",wfa);return uN()?$APP.n(document.body)?EQ():document.addEventListener("DOMContentLoaded",EQ,{once:!0}):null},GQ=function(){return FQ()},fO=function fO(a){switch(arguments.length){case 2:return fO.j(arguments[0],arguments[1]);case 3:return fO.m(arguments[0],
103
103
  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 fO.B(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.ac(c.slice(3),0,null):null)}};fO.j=function(a,b){return b};fO.m=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};fO.B=function(a,b,c,d){return $APP.ya(function(e,f){return fO.m(a,e,f)},fO.m(a,b,c),d)};
104
104
  fO.K=function(a){var b=$APP.u(a),c=$APP.v(a);a=$APP.u(c);var d=$APP.v(c);c=$APP.u(d);d=$APP.v(d);return this.B(b,a,c,d)};fO.M=3;var HQ=function HQ(a){switch(arguments.length){case 0:return HQ.H();case 1:return HQ.i(arguments[0]);case 2:return HQ.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 HQ.B(arguments[0],arguments[1],2<c.length?new $APP.ac(c.slice(2),0,null):null)}};HQ.H=function(){return 0};HQ.i=function(a){return a};
105
105
  HQ.j=function(a,b){return a+b};HQ.B=function(a,b,c){return $APP.ya(HQ,a+b,c)};HQ.K=function(a){var b=$APP.u(a),c=$APP.v(a);a=$APP.u(c);c=$APP.v(c);return this.B(b,a,c)};HQ.M=2;
@@ -107,22 +107,22 @@ var GO=function GO(a){switch(arguments.length){case 3:return GO.m(arguments[0],a
107
107
  arguments[3],arguments[4],arguments[5],6<c.length?new $APP.ac(c.slice(6),0,null):null)}};GO.m=function(a,b,c){var d=$APP.Yg.m,e=$APP.C(a,b);c=c.i?c.i(e):c.call(null,e);return d.call($APP.Yg,a,b,c)};GO.J=function(a,b,c,d){var e=$APP.Yg.m,f=$APP.C(a,b);c=c.j?c.j(f,d):c.call(null,f,d);return e.call($APP.Yg,a,b,c)};GO.W=function(a,b,c,d,e){var f=$APP.Yg.m,h=$APP.C(a,b);c=c.m?c.m(h,d,e):c.call(null,h,d,e);return f.call($APP.Yg,a,b,c)};
108
108
  GO.va=function(a,b,c,d,e,f){var h=$APP.Yg.m,k=$APP.C(a,b);c=c.J?c.J(k,d,e,f):c.call(null,k,d,e,f);return h.call($APP.Yg,a,b,c)};GO.B=function(a,b,c,d,e,f,h){return $APP.Yg.m(a,b,$APP.ee(c,$APP.C(a,b),d,e,f,$APP.Cc([h])))};GO.K=function(a){var b=$APP.u(a),c=$APP.v(a);a=$APP.u(c);var d=$APP.v(c);c=$APP.u(d);var e=$APP.v(d);d=$APP.u(e);var f=$APP.v(e);e=$APP.u(f);var h=$APP.v(f);f=$APP.u(h);h=$APP.v(h);return this.B(b,a,c,d,e,f,h)};GO.M=6;
109
109
  var EO=function EO(a,b,c){var e=$APP.q(b);b=$APP.u(e);var f=$APP.v(e);if(f){e=$APP.Yg.m;var h=$APP.C(a,b);c=EO.m?EO.m(h,f,c):EO.call(null,h,f,c);a=e.call($APP.Yg,a,b,c)}else a=$APP.Yg.m(a,b,c);return a},yO=function yO(a){switch(arguments.length){case 2:return yO.j(arguments[0],arguments[1]);case 3:return yO.m(arguments[0],arguments[1],arguments[2]);case 4:return yO.J(arguments[0],arguments[1],arguments[2],arguments[3]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;
110
- else break;return yO.B(arguments[0],arguments[1],arguments[2],arguments[3],4<c.length?new $APP.ac(c.slice(4),0,null):null)}};yO.j=function(a,b){if(a instanceof $APP.se){var c=a.state;b=b.i?b.i(c):b.call(null,c);a=tN(a,b)}else a=$APP.Jo(a,b);return a};yO.m=function(a,b,c){if(a instanceof $APP.se){var d=a.state;b=b.j?b.j(d,c):b.call(null,d,c);a=tN(a,b)}else a=$APP.Jo(a,b,c);return a};
111
- yO.J=function(a,b,c,d){if(a instanceof $APP.se){var e=a.state;b=b.m?b.m(e,c,d):b.call(null,e,c,d);a=tN(a,b)}else a=$APP.Jo(a,b,c,d);return a};yO.B=function(a,b,c,d,e){return a instanceof $APP.se?tN(a,$APP.de(b,a.state,c,d,e)):$APP.Jo(a,b,c,d,e)};yO.K=function(a){var b=$APP.u(a),c=$APP.v(a);a=$APP.u(c);var d=$APP.v(c);c=$APP.u(d);var e=$APP.v(d);d=$APP.u(e);e=$APP.v(e);return this.B(b,a,c,d,e)};yO.M=4;
112
- var DN=new $APP.F(null,"start-t","start-t",1829305353),xN=new $APP.F(null,"cause-id","cause-id",-1282947263),Uda=new $APP.F(null,"x-end","x-end",-1725631203),MP=new $APP.F(null,"node-count","node-count",383091297),FN=new $APP.F(null,"start-id","start-id",-456790067),GN=new $APP.F(null,"end-id","end-id",2084513705),Rda=new $APP.F(null,"tmax","tmax",2006118392),iQ=new $APP.F(null,"timeline","timeline",192903161),rQ=new $APP.F(null,"bin-count","bin-count",1792167977),DQ=new $APP.F(null,"auto-switch-import",
110
+ else break;return yO.B(arguments[0],arguments[1],arguments[2],arguments[3],4<c.length?new $APP.ac(c.slice(4),0,null):null)}};yO.j=function(a,b){if(a instanceof $APP.se){var c=a.state;b=b.i?b.i(c):b.call(null,c);a=tN(a,b)}else a=$APP.Mo(a,b);return a};yO.m=function(a,b,c){if(a instanceof $APP.se){var d=a.state;b=b.j?b.j(d,c):b.call(null,d,c);a=tN(a,b)}else a=$APP.Mo(a,b,c);return a};
111
+ yO.J=function(a,b,c,d){if(a instanceof $APP.se){var e=a.state;b=b.m?b.m(e,c,d):b.call(null,e,c,d);a=tN(a,b)}else a=$APP.Mo(a,b,c,d);return a};yO.B=function(a,b,c,d,e){return a instanceof $APP.se?tN(a,$APP.de(b,a.state,c,d,e)):$APP.Mo(a,b,c,d,e)};yO.K=function(a){var b=$APP.u(a),c=$APP.v(a);a=$APP.u(c);var d=$APP.v(c);c=$APP.u(d);var e=$APP.v(d);d=$APP.u(e);e=$APP.v(e);return this.B(b,a,c,d,e)};yO.M=4;
112
+ var DN=new $APP.F(null,"start-t","start-t",1829305353),xN=new $APP.F(null,"cause-id","cause-id",-1282947263),gea=new $APP.F(null,"x-end","x-end",-1725631203),MP=new $APP.F(null,"node-count","node-count",383091297),FN=new $APP.F(null,"start-id","start-id",-456790067),GN=new $APP.F(null,"end-id","end-id",2084513705),dea=new $APP.F(null,"tmax","tmax",2006118392),iQ=new $APP.F(null,"timeline","timeline",192903161),rQ=new $APP.F(null,"bin-count","bin-count",1792167977),DQ=new $APP.F(null,"auto-switch-import",
113
113
  "auto-switch-import",-809333661),SP=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),HP=new $APP.F(null,"to-cy","to-cy",1542880464),GP=new $APP.F(null,"to-cx","to-cx",698995232),VP=new $APP.F(null,"scroll-top","scroll-top",-46723100),WP=new $APP.F(null,"chip-key","chip-key",644014552),PO=new $APP.F(null,"next-component-id","next-component-id",1588977206),AO=new $APP.F(null,"pending?","pending?",-2133618792),VO=new $APP.F(null,"rate-limit","rate-limit",1748082022),cO=new $APP.F(null,
114
- "tmin","tmin",-39508962),kfa=new $APP.F(null,"to-id","to-id",1021626465),IP=new $APP.F(null,"edges","edges",-694791395),DO=new $APP.F(null,"next-token","next-token",1432414974),Vda=new $APP.F(null,"t-min","t-min",-488887638),AN=new $APP.F(null,"user-agent","user-agent",1220426212),dQ=new $APP.F(null,"causality","causality",-712927373),BN=new $APP.F(null,"forensic?","forensic?",188264321),PN=new $APP.F(null,"search","search",1564939822),pO=new $APP.F(null,"session","session",1008279103),HO=new $APP.F(null,
115
- "next-id","next-id",-224240762),ON=new $APP.F(null,"categories","categories",178386610),LP=new $APP.F(null,"causality-layout","causality-layout",-1264013405),Wda=new $APP.F(null,"t-max","t-max",-949530573),RO=new $APP.F(null,"capacity","capacity",72689734),XP=new $APP.F(null,"recording?","recording?",-1477514924),hO=new $APP.F(null,"records","records",1326822832),CP=new $APP.F(null,"time","time",1385887882),iO=new $APP.F(null,"dominant-cat","dominant-cat",-914257775),BQ=new $APP.F(null,"lifecycle",
116
- "lifecycle",341496205),LN=new $APP.F(null,"other","other",995793544),pP=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),FO=new $APP.F(null,"new?","new?",777958557),Gea=new $APP.F(null,"max-depth","max-depth",127060793),aO=new $APP.F(null,"min-t","min-t",-1349871659),nO=new $APP.F(null,"capped?","capped?",-65680820),bP=new $APP.F(null,"imports","imports",-1249933394),gO=new $APP.F(null,"bin-i","bin-i",791326307),CN=new $APP.F(null,
114
+ "tmin","tmin",-39508962),xfa=new $APP.F(null,"to-id","to-id",1021626465),IP=new $APP.F(null,"edges","edges",-694791395),DO=new $APP.F(null,"next-token","next-token",1432414974),hea=new $APP.F(null,"t-min","t-min",-488887638),AN=new $APP.F(null,"user-agent","user-agent",1220426212),dQ=new $APP.F(null,"causality","causality",-712927373),BN=new $APP.F(null,"forensic?","forensic?",188264321),PN=new $APP.F(null,"search","search",1564939822),pO=new $APP.F(null,"session","session",1008279103),HO=new $APP.F(null,
115
+ "next-id","next-id",-224240762),ON=new $APP.F(null,"categories","categories",178386610),LP=new $APP.F(null,"causality-layout","causality-layout",-1264013405),iea=new $APP.F(null,"t-max","t-max",-949530573),RO=new $APP.F(null,"capacity","capacity",72689734),XP=new $APP.F(null,"recording?","recording?",-1477514924),hO=new $APP.F(null,"records","records",1326822832),CP=new $APP.F(null,"time","time",1385887882),iO=new $APP.F(null,"dominant-cat","dominant-cat",-914257775),BQ=new $APP.F(null,"lifecycle",
116
+ "lifecycle",341496205),LN=new $APP.F(null,"other","other",995793544),pP=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),FO=new $APP.F(null,"new?","new?",777958557),Tea=new $APP.F(null,"max-depth","max-depth",127060793),aO=new $APP.F(null,"min-t","min-t",-1349871659),nO=new $APP.F(null,"capped?","capped?",-65680820),bP=new $APP.F(null,"imports","imports",-1249933394),gO=new $APP.F(null,"bin-i","bin-i",791326307),CN=new $APP.F(null,
117
117
  "first-seen","first-seen",390191468),YP=new $APP.F(null,"import?","import?",-40157302),KP=new $APP.F(null,"cy","cy",755331060),mO=new $APP.F(null,"children","children",-940561982),JP=new $APP.F(null,"cx","cx",1272694324),AQ=new $APP.F(null,"dom","dom",-1236537922),gP=new $APP.F(null,"next-session-id","next-session-id",1944278844),jO=new $APP.F(null,"x-start","x-start",1183238797),UP=new $APP.F(null,"scroll-left","scroll-left",-211761103),rP=new $APP.F(null,"imported-at","imported-at",-1157103926),
118
118
  bO=new $APP.F(null,"lane-id","lane-id",2005926623),QN=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),IQ=new $APP.F(null,"depth","depth",1768663640),qQ=new $APP.F(null,"record-id","record-id",-1468971877),hP=new $APP.F(null,"active-session-id","active-session-id",943086451),EP=new $APP.F(null,"from-cx","from-cx",-293616201),FP=new $APP.F(null,"from-cy","from-cy",1126835724),fP=new $APP.F(null,"sessions","sessions",-699316392),zN=new $APP.F(null,"exported-at","exported-at",1661975683),wN=new $APP.F(null,
119
- "component-id","component-id",1551113783),vQ=new $APP.F(null,"import-error","import-error",1672727808),CQ=new $APP.F(null,"drag-depth","drag-depth",-226189617),lfa=new $APP.F(null,"from-id","from-id",-106962526),ZP=new $APP.F(null,"import-id","import-id",940580069),oO=new $APP.F(null,"nodes","nodes",-2099585805),EN=new $APP.F(null,"end-t","end-t",-218701242),BO=new $APP.F(null,"by-token","by-token",-1485378511),JQ=new $APP.F(null,"next-import-id","next-import-id",287496955),lO=new $APP.F(null,"record",
120
- "record",-779106859),dO=new $APP.F(null,"span","span",1394872991),ZN=new $APP.F("baredom.dev.x-trace-history.model","document","baredom.dev.x-trace-history.model/document",-1776453896),SO=new $APP.F(null,"components","components",-1073188942),rO=new $APP.F(null,"import","import",-1399500709),aP=new $APP.F(null,"envelope","envelope",-236796318);var eP=$APP.If.j($APP.Xo,$APP.Ee),Jda=sN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),ifa=sN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"\x3d"+$APP.P.i("raw")+"(?:\x26|$)"),Pda=new $APP.M(null,4,[$APP.Xt,new $APP.ah(null,new $APP.M(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.Dt,new $APP.ah(null,new $APP.M(null,1,["state/instance-field-set",null],null),null),AQ,new $APP.ah(null,new $APP.M(null,2,["dom/attribute-removed",
121
- null,"dom/attribute-set",null],null),null),BQ,new $APP.ah(null,new $APP.M(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),KN=new $APP.J(null,4,5,$APP.K,[$APP.Xt,$APP.Dt,AQ,BQ],null),XN=new $APP.M(null,5,[$APP.Xt,"#94e2d5",$APP.Dt,"#f9e2af",AQ,"#fab387",BQ,"#cba6f7",LN,"#6c7086"],null),kO=function kO(a,b){return $APP.Dd(b,new $APP.Gd(null,function(){return $APP.Ae(function(d){return kO.j?kO.j(a,d):kO.call(null,a,d)},$APP.Cc([aea(a,
122
- b.id)]))},null))},NP=function NP(a){return $APP.ya(HQ,0,$APP.we.j(NP,mO.i(a)))+1},OP=function OP(a){return $APP.Rc(mO.i(a))?0:$APP.ae($APP.Po,$APP.we.j(OP,mO.i(a)))+1},PP=function PP(a,b,c){var e=lO.i(a),f=mO.i(a);a=30+b*56;if($APP.Rc(f))return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.ct,e.id,lO,e,JP,c+70,KP,a,IQ,b,mO,$APP.Ee],null),c+158],null);f=$APP.ya(function(m,r){var t=$APP.B(m,0,null);m=$APP.B(m,1,null);var x=b+1;m=PP.m?PP.m(r,x,m):PP.call(null,r,x,m);r=$APP.B(m,0,null);m=$APP.B(m,
123
- 1,null);return new $APP.J(null,2,5,$APP.K,[$APP.Ad.j(t,r),m],null)},new $APP.J(null,2,5,$APP.K,[$APP.Ee,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=JP.i($APP.u(c)),k=JP.i($APP.Gc(c));return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.ct,e.id,lO,e,JP,(h+k)/2,KP,a,IQ,b,mO,c],null),f],null)},QP=function QP(a){return $APP.If.j(new $APP.J(null,1,5,$APP.K,[$APP.No.j(a,mO)],null),$APP.Ae(QP,$APP.Cc([mO.i(a)])))},RP=function RP(a){var c=$APP.ct.i(a),d=JP.i(a),e=KP.i(a);return $APP.$e($APP.Ae(function(f){return $APP.Dd(new $APP.M(null,
124
- 6,[lfa,c,EP,d,FP,e,kfa,$APP.ct.i(f),GP,JP.i(f),HP,KP.i(f)],null),RP.i?RP.i(f):RP.call(null,f))},$APP.Cc([mO.i(a)])))};var JN=$APP.te($APP.Eg([BN,RO,VO,HO,$APP.$p,bP,hO,SO,hP,PO,fP,JQ,gP],[!1,5E3,$APP.ie,0,!1,$APP.Ee,eP,$APP.ie,null,0,$APP.Ee,0,0])),zO=$APP.te(new $APP.M(null,3,[DO,0,AO,!1,BO,$APP.ie],null)),QO=$APP.te($APP.Ee),$O=$APP.te(null),YO=$APP.te(!1),JO=$APP.te(0),wO=$APP.te([null,null]),iea=new $APP.ah(null,new $APP.M(null,3,[$APP.Wi,null,$APP.Qi,null,$APP.Vi,null],null),null),jea=new $APP.ah(null,new $APP.M(null,3,[$APP.ej,null,$APP.gj,null,$APP.$i,null],null),null),xQ=function xQ(a){switch(arguments.length){case 1:return xQ.i(arguments[0]);
119
+ "component-id","component-id",1551113783),vQ=new $APP.F(null,"import-error","import-error",1672727808),CQ=new $APP.F(null,"drag-depth","drag-depth",-226189617),yfa=new $APP.F(null,"from-id","from-id",-106962526),ZP=new $APP.F(null,"import-id","import-id",940580069),oO=new $APP.F(null,"nodes","nodes",-2099585805),EN=new $APP.F(null,"end-t","end-t",-218701242),BO=new $APP.F(null,"by-token","by-token",-1485378511),JQ=new $APP.F(null,"next-import-id","next-import-id",287496955),lO=new $APP.F(null,"record",
120
+ "record",-779106859),dO=new $APP.F(null,"span","span",1394872991),ZN=new $APP.F("baredom.dev.x-trace-history.model","document","baredom.dev.x-trace-history.model/document",-1776453896),SO=new $APP.F(null,"components","components",-1073188942),rO=new $APP.F(null,"import","import",-1399500709),aP=new $APP.F(null,"envelope","envelope",-236796318);var eP=$APP.If.j($APP.$o,$APP.Ee),Wda=sN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),vfa=sN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"\x3d"+$APP.P.i("raw")+"(?:\x26|$)"),bea=new $APP.M(null,4,[$APP.fu,new $APP.ah(null,new $APP.M(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.Mt,new $APP.ah(null,new $APP.M(null,1,["state/instance-field-set",null],null),null),AQ,new $APP.ah(null,new $APP.M(null,2,["dom/attribute-removed",
121
+ null,"dom/attribute-set",null],null),null),BQ,new $APP.ah(null,new $APP.M(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),KN=new $APP.J(null,4,5,$APP.K,[$APP.fu,$APP.Mt,AQ,BQ],null),XN=new $APP.M(null,5,[$APP.fu,"#94e2d5",$APP.Mt,"#f9e2af",AQ,"#fab387",BQ,"#cba6f7",LN,"#6c7086"],null),kO=function kO(a,b){return $APP.Dd(b,new $APP.Gd(null,function(){return $APP.Ae(function(d){return kO.j?kO.j(a,d):kO.call(null,a,d)},$APP.Cc([nea(a,
122
+ b.id)]))},null))},NP=function NP(a){return $APP.ya(HQ,0,$APP.we.j(NP,mO.i(a)))+1},OP=function OP(a){return $APP.Rc(mO.i(a))?0:$APP.Zd($APP.So,$APP.we.j(OP,mO.i(a)))+1},PP=function PP(a,b,c){var e=lO.i(a),f=mO.i(a);a=30+b*56;if($APP.Rc(f))return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.lt,e.id,lO,e,JP,c+70,KP,a,IQ,b,mO,$APP.Ee],null),c+158],null);f=$APP.ya(function(m,r){var t=$APP.B(m,0,null);m=$APP.B(m,1,null);var x=b+1;m=PP.m?PP.m(r,x,m):PP.call(null,r,x,m);r=$APP.B(m,0,null);m=$APP.B(m,
123
+ 1,null);return new $APP.J(null,2,5,$APP.K,[$APP.Ad.j(t,r),m],null)},new $APP.J(null,2,5,$APP.K,[$APP.Ee,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=JP.i($APP.u(c)),k=JP.i($APP.Gc(c));return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.lt,e.id,lO,e,JP,(h+k)/2,KP,a,IQ,b,mO,c],null),f],null)},QP=function QP(a){return $APP.If.j(new $APP.J(null,1,5,$APP.K,[$APP.Qo.j(a,mO)],null),$APP.Ae(QP,$APP.Cc([mO.i(a)])))},RP=function RP(a){var c=$APP.lt.i(a),d=JP.i(a),e=KP.i(a);return $APP.Ye($APP.Ae(function(f){return $APP.Dd(new $APP.M(null,
124
+ 6,[yfa,c,EP,d,FP,e,xfa,$APP.lt.i(f),GP,JP.i(f),HP,KP.i(f)],null),RP.i?RP.i(f):RP.call(null,f))},$APP.Cc([mO.i(a)])))};var JN=$APP.te($APP.ug([BN,RO,VO,HO,$APP.cq,bP,hO,SO,hP,PO,fP,JQ,gP],[!1,5E3,$APP.ie,0,!1,$APP.Ee,eP,$APP.ie,null,0,$APP.Ee,0,0])),zO=$APP.te(new $APP.M(null,3,[DO,0,AO,!1,BO,$APP.ie],null)),QO=$APP.te($APP.Ee),$O=$APP.te(null),YO=$APP.te(!1),JO=$APP.te(0),wO=$APP.te([null,null]),vea=new $APP.ah(null,new $APP.M(null,3,[$APP.Wi,null,$APP.Qi,null,$APP.Vi,null],null),null),wea=new $APP.ah(null,new $APP.M(null,3,[$APP.ej,null,$APP.gj,null,$APP.$i,null],null),null),xQ=function xQ(a){switch(arguments.length){case 1:return xQ.i(arguments[0]);
125
125
  case 2:return xQ.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};xQ.i=function(a){return xQ.j(a,null)};
126
- xQ.j=function(a,b){a=qea(a);var c=$APP.G(a);a=$APP.C(c,$APP.Fs);c=$APP.C(c,$APP.uj);if($APP.n(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=JQ.i($APP.cb(JN));b=b==null||$APP.z.j("",b)?"Import "+$APP.P.i(d):b;var e=new $APP.M(null,4,[$APP.ct,d,$APP.ek,b,rP,c,aP,a],null);yO.j(JN,function(f){return GO.m(GO.J(f,bP,$APP.Ad,e),JQ,qN)});CO();return d};xQ.M=2;var hQ,KQ=window.matchMedia;hQ=$APP.n(KQ)?KQ.call(window,"(prefers-reduced-motion: reduce)"):null;var sea=RegExp("\x26","g"),tea=RegExp("\x3c","g"),uea=RegExp("\x3e","g"),vea=RegExp('"',"g"),wea=RegExp("'","g"),aQ=new WeakMap,Xea=new $APP.ah(null,new $APP.M(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),jfa=new $APP.M(null,5,[$APP.ei,!0,$APP.hi,[],$APP.fi,function(a){return hfa(a)},$APP.ci,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.n(b)&&yO.B(zO,GO,BO,$APP.No,$APP.Cc([b]));b=uO(a,vQ);$APP.n(b)&&typeof b==="number"&&clearTimeout(b);
126
+ xQ.j=function(a,b){a=Dea(a);var c=$APP.G(a);a=$APP.C(c,$APP.Ns);c=$APP.C(c,$APP.uj);if($APP.n(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=JQ.i($APP.bb(JN));b=b==null||$APP.z.j("",b)?"Import "+$APP.P.i(d):b;var e=new $APP.M(null,4,[$APP.lt,d,$APP.hk,b,rP,c,aP,a],null);yO.j(JN,function(f){return GO.m(GO.J(f,bP,$APP.Ad,e),JQ,qN)});CO();return d};xQ.M=2;var hQ,KQ=window.matchMedia;hQ=$APP.n(KQ)?KQ.call(window,"(prefers-reduced-motion: reduce)"):null;var Fea=RegExp("\x26","g"),Gea=RegExp("\x3c","g"),Hea=RegExp("\x3e","g"),Iea=RegExp('"',"g"),Jea=RegExp("'","g"),aQ=new WeakMap,jfa=new $APP.ah(null,new $APP.M(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),wfa=new $APP.M(null,5,[$APP.ei,!0,$APP.hi,[],$APP.fi,function(a){return ufa(a)},$APP.ci,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.n(b)&&yO.B(zO,GO,BO,$APP.Qo,$APP.Cc([b]));b=uO(a,vQ);$APP.n(b)&&typeof b==="number"&&clearTimeout(b);
127
127
  b=$APP.l(a,"__xTraceHistoryListeners");if($APP.n(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.Q(a,"__xTraceHistoryListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightListeners");if($APP.n(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.Yi(a,"__xTraceHistoryHighlightListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightRaf");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Yi(a,"__xTraceHistoryHighlightRaf",
128
- null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.n(b)&&$APP.Bk(b);$APP.Yi(a,"__xTraceHistoryHighlightLayer",null);$APP.Yi(a,"__xTraceHistoryHighlightBox",null);$APP.Yi(a,"__xTraceHistoryHighlightCid",null);$APP.Q(a,"__xTraceHistorySubToken",null);vO(a,vQ,null);return $APP.Q(a,"__xTraceHistoryMounted",null)},$APP.bi,function(){return null}],null);$APP.fa("baredom.exports.x_trace_history.init",GQ);FQ();export const init=GQ;
128
+ null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.n(b)&&$APP.Ek(b);$APP.Yi(a,"__xTraceHistoryHighlightLayer",null);$APP.Yi(a,"__xTraceHistoryHighlightBox",null);$APP.Yi(a,"__xTraceHistoryHighlightCid",null);$APP.Q(a,"__xTraceHistorySubToken",null);vO(a,vQ,null);return $APP.Q(a,"__xTraceHistoryMounted",null)},$APP.bi,function(){return null}],null);$APP.fa("baredom.exports.x_trace_history.init",GQ);FQ();export const init=GQ;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var cT=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},dT=function(a){var b=$APP.l(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=Oga;$APP.T(d,"part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTypographyRefs",new $APP.M(null,2,[$APP.cl,b,$APP.dl,d],
3
- null));return $APP.l(a,"__xTypographyRefs")},hT=function(a){var b=new $APP.M(null,4,[$APP.$s,a.getAttribute("variant"),$APP.wq,a.getAttribute("align"),eT,a.getAttribute("truncate"),fT,a.getAttribute("line-clamp")],null);var c=$APP.G(b),d=$APP.C(c,$APP.$s),e=$APP.C(c,$APP.wq);b=$APP.C(c,eT);c=$APP.C(c,fT);d=typeof d==="string"?d.toLowerCase():null;d=$APP.cd(Pga,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.cd(Qga,e)?e:"left";b=new $APP.M(null,4,[$APP.Pm,d,$APP.Zq,e,$APP.jq,b!=null,
4
- gT,cT(c)],null);if($APP.I($APP.l(a,"__xTypographyModel"),b)){b=$APP.G(b);e=$APP.C(b,$APP.Pm);d=$APP.C(b,$APP.Zq);var f=$APP.C(b,$APP.jq);c=$APP.C(b,gT);var h=dT(a);h=$APP.G(h);h=$APP.C(h,$APP.dl);$APP.T(a,"data-variant",e);$APP.T(a,"data-align",d);$APP.n(f)?$APP.T(h,"data-truncate",""):$APP.U(h,"data-truncate");c!=null&&$APP.p(f)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.P.i(c))):(c=h.style,c.removeProperty("display"),
5
- c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a=$APP.Q(a,"__xTypographyModel",b)}else a=null;return a},Rga=function(a){$APP.lj(a,"variant","variant","body1");$APP.lj(a,"align","align","left");$APP.ij(a,"truncate","truncate");return Object.defineProperty(a,"lineClamp",{get:function(){return cT(this.getAttribute("line-clamp"))},set:function(b){return b==null?$APP.U(this,"line-clamp"):$APP.T(this,"line-clamp",""+$APP.P.i(b|0))},enumerable:!0,
6
- configurable:!0})},Sga=function(a){dT(a);return hT(a)},Tga=function(a,b,c,d){return $APP.I(c,d)?hT(a):null},iT=function(){return $APP.xi("x-typography",new $APP.M(null,4,[$APP.hi,Uga,$APP.fi,Sga,$APP.bi,Tga,$APP.gi,Rga],null))},fT=new $APP.F(null,"line-clamp-raw","line-clamp-raw",-1982923204),gT=new $APP.F(null,"line-clamp","line-clamp",-1079334403),eT=new $APP.F(null,"truncate-raw","truncate-raw",1178232402);var Uga=["variant","align","truncate","line-clamp"],Pga=new $APP.ah(null,new $APP.M(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),Qga=new $APP.ah(null,new $APP.M(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var Oga=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.P.i("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
2
+ var cT=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},dT=function(a){var b=$APP.l(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=aha;$APP.T(d,"part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTypographyRefs",new $APP.M(null,2,[$APP.Sk,b,$APP.Tk,d],
3
+ null));return $APP.l(a,"__xTypographyRefs")},hT=function(a){var b=new $APP.M(null,4,[$APP.it,a.getAttribute("variant"),$APP.zq,a.getAttribute("align"),eT,a.getAttribute("truncate"),fT,a.getAttribute("line-clamp")],null);var c=$APP.G(b),d=$APP.C(c,$APP.it),e=$APP.C(c,$APP.zq);b=$APP.C(c,eT);c=$APP.C(c,fT);d=typeof d==="string"?d.toLowerCase():null;d=$APP.bd(bha,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.bd(cha,e)?e:"left";b=new $APP.M(null,4,[$APP.Sm,d,$APP.cr,e,$APP.jq,b!=null,
4
+ gT,cT(c)],null);if($APP.I($APP.l(a,"__xTypographyModel"),b)){b=$APP.G(b);e=$APP.C(b,$APP.Sm);d=$APP.C(b,$APP.cr);var f=$APP.C(b,$APP.jq);c=$APP.C(b,gT);var h=dT(a);h=$APP.G(h);h=$APP.C(h,$APP.Tk);$APP.T(a,"data-variant",e);$APP.T(a,"data-align",d);$APP.n(f)?$APP.T(h,"data-truncate",""):$APP.U(h,"data-truncate");c!=null&&$APP.p(f)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.P.i(c))):(c=h.style,c.removeProperty("display"),
5
+ c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a=$APP.Q(a,"__xTypographyModel",b)}else a=null;return a},dha=function(a){$APP.lj(a,"variant","variant","body1");$APP.lj(a,"align","align","left");$APP.ij(a,"truncate","truncate");return Object.defineProperty(a,"lineClamp",{get:function(){return cT(this.getAttribute("line-clamp"))},set:function(b){return b==null?$APP.U(this,"line-clamp"):$APP.T(this,"line-clamp",""+$APP.P.i(b|0))},enumerable:!0,
6
+ configurable:!0})},eha=function(a){dT(a);return hT(a)},fha=function(a,b,c,d){return $APP.I(c,d)?hT(a):null},iT=function(){return $APP.qi("x-typography",new $APP.M(null,4,[$APP.hi,gha,$APP.fi,eha,$APP.bi,fha,$APP.gi,dha],null))},fT=new $APP.F(null,"line-clamp-raw","line-clamp-raw",-1982923204),gT=new $APP.F(null,"line-clamp","line-clamp",-1079334403),eT=new $APP.F(null,"truncate-raw","truncate-raw",1178232402);var gha=["variant","align","truncate","line-clamp"],bha=new $APP.ah(null,new $APP.M(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),cha=new $APP.ah(null,new $APP.M(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var aha=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.P.i("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
7
7
  $APP.P.i("rgba(0,0,0,0.2)")+"));padding:var(--x-typography-blockquote-padding,0 0 0 1em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left-color:var(--x-typography-blockquote-border-color,var(--x-color-border,"+$APP.P.i("rgba(255,255,255,0.25)")+"));}}:host([data-variant\x3d'code']){font-family:var(--x-typography-mono-font-family,"+$APP.P.i('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+
8
8
  $APP.P.i("rgba(0,0,0,0.06)")+"));border-radius:var(--x-typography-code-radius,var(--x-radius-sm,4px));padding:var(--x-typography-code-padding,0.15em 0.35em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+$APP.P.i("rgba(255,255,255,0.1)")+"));}}:host([data-variant\x3d'kbd']){font-family:var(--x-typography-mono-font-family,"+$APP.P.i('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+
9
9
  ");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.P.i("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.P.i("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+