@vanelsas/baredom 2.0.1 → 2.1.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.
- package/CHANGELOG.md +25 -0
- package/README.md +26 -7
- package/dist/base.js +405 -403
- package/dist/x-alert.js +19 -19
- package/dist/x-avatar-group.js +11 -11
- package/dist/x-avatar.js +15 -15
- package/dist/x-badge.js +11 -11
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +16 -16
- package/dist/x-cancel-dialogue.js +17 -17
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +35 -0
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.js +9 -9
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +46 -0
- package/dist/x-command-palette.js +27 -32
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +23 -23
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.js +42 -42
- package/dist/x-divider.js +10 -13
- package/dist/x-drawer.js +12 -12
- package/dist/x-dropdown.js +10 -10
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -7
- package/dist/x-form-field.js +16 -16
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-kinetic-font.js +29 -28
- package/dist/x-kinetic-typography.js +39 -39
- package/dist/x-liquid-dock.js +39 -39
- package/dist/x-liquid-fill.js +45 -44
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.js +11 -12
- package/dist/x-metaball-cursor.js +27 -28
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +39 -39
- package/dist/x-navbar.js +13 -13
- package/dist/x-neural-glow.js +34 -34
- package/dist/x-notification-center.js +10 -9
- package/dist/x-organic-divider.js +19 -19
- package/dist/x-organic-progress.js +38 -38
- package/dist/x-organic-shape.js +14 -14
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +53 -0
- package/dist/x-popover.js +15 -15
- package/dist/x-progress-circle.js +11 -11
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +12 -12
- package/dist/x-scroll-parallax.js +19 -19
- package/dist/x-scroll-stack.js +19 -19
- package/dist/x-scroll-story.js +36 -36
- package/dist/x-scroll-timeline.js +47 -47
- package/dist/x-scroll.js +42 -42
- package/dist/x-search-field.js +15 -15
- package/dist/x-select.js +11 -11
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton.js +6 -6
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +22 -22
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -5
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +16 -16
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +8 -8
- package/dist/x-table-cell.js +24 -24
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.js +16 -16
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +19 -19
- package/dist/x-theme.js +25 -24
- package/dist/x-timeline-item.js +24 -24
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +25 -25
- package/dist/x-toaster.js +8 -8
- package/dist/x-typography.js +11 -11
- package/package.json +14 -2
package/dist/x-chart.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
g(d+1,$APP.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
a.getAttribute("
|
|
10
|
-
|
|
11
|
-
null
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
$APP.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
d.setAttribute("part","container");d.setAttribute("tabindex","0");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("role","img");g.setAttribute("part","sr-only");g.setAttribute("role","status");g.setAttribute("aria-live","polite");h.setAttribute("part","tooltip");h.setAttribute("role","tooltip");h.setAttribute("aria-hidden","true");h.setAttribute("data-visible","false");
|
|
40
|
-
8){var
|
|
41
|
-
get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.
|
|
42
|
-
this.setAttribute(c,""+$APP.
|
|
43
|
-
"__xChartRefs"))||
|
|
44
|
-
"tooltip");
|
|
45
|
-
-839946224),
|
|
46
|
-
"x-fmt","x-fmt",2073358008),
|
|
47
|
-
|
|
48
|
-
$APP.
|
|
49
|
-
2,[$APP.Z,$APP.X,$APP.
|
|
2
|
+
var hO=function(a){a:for(;;)if(a=$APP.t(a))a=$APP.w(a);else break a},iO=function(a,b){return function g(d,e){return new $APP.qd(null,function(){var h=$APP.t(e);if(h){if($APP.Nc(h)){for(var l=$APP.xb(h),m=$APP.z(l),p=$APP.td(m),q=0;;)if(q<m){var v=function(){var x=d+q,y=$APP.xc(l,q);return a.i?a.i(x,y):a.call(null,x,y)}();v!=null&&p.add(v);q+=1}else break;return $APP.wd(p.aa(),g(d+m,$APP.yb(h)))}m=function(){var x=$APP.u(h);return a.i?a.i(d,x):a.call(null,d,x)}();return m==null?g(d+1,$APP.Yb(h)):$APP.nd(m,
|
|
3
|
+
g(d+1,$APP.Yb(h)))}return null},null)}(0,b)},jO=function(a){return $APP.Ad($APP.Wc(function(b,c){var d=$APP.Nk.g?$APP.Nk.g(c):$APP.Nk.call(null,c);c=$APP.kd.i($APP.Ac(b,d,$APP.ee),c);return $APP.tb(b,d,c)},$APP.qb($APP.Qd),a))},kO=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:b):b},lO=function(a,b){var c=function(){var h=a.id;h=$APP.n(h)?""+$APP.T.g(a.id):h;return $APP.n(h)?h:"s"+$APP.T.g(b)}(),d=function(){var h=a.label;h=$APP.n(h)?""+$APP.T.g(a.label):h;return $APP.n(h)?
|
|
4
|
+
h:c}(),e=function(){var h=a.color;return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.ma(g))?new $APP.R(null,4,[$APP.Nk,c,$APP.U,d,$APP.lj,e,$APP.Hh,iO(function(h,l){return $APP.n($APP.n(l)?l.x!=null&&l.y!=null:l)?new $APP.R(null,2,[$APP.Yk,l.x,$APP.Xk,l.y],null):null},$APP.tc(g))],null):null},mO=function(a){if(typeof a!=="string")return $APP.ee;try{var b=JSON.parse(a);if($APP.n($APP.ma(b)))return $APP.ve(iO(function(d,e){return lO(e,d)},$APP.tc(b)));if($APP.n(function(){var d=
|
|
5
|
+
b!=null?b.constructor===Object:!1;return d?$APP.ma(b.data):d}())){var c=lO(b,0);return $APP.n(c)?new $APP.O(null,1,5,$APP.P,[c],null):$APP.ee}return $APP.ee}catch(d){return $APP.ee}},nO=function(a){a=a==null?null:$APP.u(a);a=a==null?null:$APP.Hh.g(a);a=a==null?null:$APP.u(a);return $APP.n($APP.n(a)?typeof $APP.Yk.g(a)==="string":a)?"category":"numeric"},oO=function(a){a=$APP.ae(function(b){return $APP.$d.i($APP.Xk,$APP.Hh.g(b))},$APP.tc([a]));return $APP.Gc(a)?new $APP.O(null,2,5,$APP.P,[0,1],null):
|
|
6
|
+
new $APP.O(null,2,5,$APP.P,[$APP.Jd($APP.ah,a),$APP.Jd($APP.$g,a)],null)},pO=function(a){var b=nO(a);if($APP.C.i(b,"category"))return a=$APP.Kd($APP.$g,0,$APP.$d.i(function(c){return $APP.z($APP.Hh.g(c))},a)),new $APP.O(null,2,5,$APP.P,[0,$APP.$g.i(1,a)-1],null);a=$APP.ae(function(c){return $APP.$d.i($APP.Yk,$APP.Hh.g(c))},$APP.tc([a]));return $APP.Gc(a)?new $APP.O(null,2,5,$APP.P,[0,1],null):new $APP.O(null,2,5,$APP.P,[$APP.Jd($APP.ah,a),$APP.Jd($APP.$g,a)],null)},qO=function(a,b){return b==null?
|
|
7
|
+
(b=Math.abs(a),b>=1E6?""+$APP.T.g(Math.round(a/1E6))+"M":b>=1E3?""+$APP.T.g(Math.round(a/1E3))+"K":$APP.n(Number.isInteger(a))?""+$APP.T.g(a):a.toFixed(1)):$APP.C.i(b,"int")?""+$APP.T.g(Math.round(a)):$APP.C.i(b,"pct")?""+$APP.T.g(a)+"%":$APP.C.i(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.T.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.T.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.T.g((a/1E3).toFixed(1))+"K":""+$APP.T.g(a)):$APP.C.i(b,"raw")?""+$APP.T.g(a):$APP.n(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),
|
|
8
|
+
10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):""+$APP.T.g(a)},sO=function(a,b){a=jO(a);return $APP.ve($APP.Xd(function(c){$APP.zc(c,0,null);c=$APP.zc(c,1,null);return $APP.Wc(function(d,e){var g=Math.abs(rO.g(e)-b);return d==null||g<$APP.el.g(d)?$APP.Yg.m(e,$APP.el,g):d},null,c)},a))},tO=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},SO=function(a){a=$APP.xf([uO,vO,wO,xO,$APP.al,yO,zO,AO,BO,CO,$APP.bi,DO,EO],[a.getAttribute("selected"),a.getAttribute("padding"),$APP.n(a.hasAttribute("tooltip"))?
|
|
9
|
+
a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.M(a);a=$APP.D(b,EO);var c=$APP.D(b,uO),d=$APP.D(b,vO),e=$APP.D(b,
|
|
10
|
+
wO),g=$APP.D(b,xO),h=$APP.D(b,$APP.al),l=$APP.D(b,yO),m=$APP.D(b,zO),p=$APP.D(b,AO),q=$APP.D(b,BO),v=$APP.D(b,CO),x=$APP.D(b,$APP.bi);b=$APP.D(b,DO);b=mO(b);var y=oO(b),A=$APP.zc(y,0,null),B=$APP.zc(y,1,null);y=[FO,$APP.Lj,GO,HO,$APP.fi,IO,JO,$APP.Z,$APP.Vl,KO,$APP.W,LO,MO,$APP.Aj,NO,OO];var E=new $APP.O(null,2,5,$APP.P,[A,B],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.C.i(2,c.length))){var H=parseInt(c[1],10);c=$APP.n(isNaN(H))?null:new $APP.R(null,2,[PO,c[0],$APP.Lh,H],null);break a}c=
|
|
11
|
+
null}m=m==null?!0:$APP.Gg(m);v=$APP.Gg(v);q=typeof q==="string"&&$APP.J(QO,q)?q:"nearest";x=typeof x==="string"&&$APP.J(RO,x)?x:"line";d=kO(d,12);h=$APP.Gg(h);e=$APP.Gg(e);a:if($APP.C.i(A,B))A=new $APP.O(null,1,5,$APP.P,[A],null);else{H=B-A;if(H===0)H=1;else{var G=H/5;H=Math.pow(10,Math.floor(Math.log10(G)));G/=H;H*=G<=1?1:G<=2?2:G<=2.5?2.5:G<=5?5:10}B=Math.floor(B/H)*H;A=Math.ceil(A/H)*H;for(var I=$APP.ee;;){if(A>B+H*1E-4){A=I;break a}G=A+H;I=$APP.kd.i(I,A);A=G}A=void 0}return $APP.xf(y,[E,c,m,b,
|
|
12
|
+
v,g,q,x,d,a,h,e,A,kO(p,180),nO(b),l==null?!0:$APP.Gg(l)])},TO=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},UO=function(a,b,c,d){var e=$APP.zc(b,0,null);b=$APP.zc(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},VO=function(a,b,c,d){var e=$APP.zc(b,0,null);b=$APP.zc(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},WO=function(a,b,c){a.setAttribute(b,c)},XO=function(a,b,c,d){var e=tO("line");a=""+$APP.T.g(a);e.setAttribute("x1",a);
|
|
13
|
+
b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},YO=function(a,b,c,d){var e=tO("text");a=""+$APP.T.g(a);e.setAttribute("x",a);b=""+$APP.T.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.T.g(10);e.setAttribute("font-size",d);e.setAttribute("fill","var(--x-chart-axis-label)");
|
|
14
|
+
e.textContent=c;return e},ZO=function(a){return"var(--x-chart-series-"+$APP.T.g($APP.ed(a,4)+1)+")"},aP=function(a){if($APP.t(a)){var b=$APP.t(a);a=$APP.u(b);b=$APP.w(b);return"M "+$APP.T.g(rO.g(a))+","+$APP.T.g($O.g(a))+$APP.T.g($APP.Jd($APP.T,$APP.$d.i(function(c){return" L "+$APP.T.g(rO.g(c))+","+$APP.T.g($O.g(c))},b)))}return null},bP=function(a){for(;;){var b=a.lastChild;if($APP.n(b))a.removeChild(b);else break}},gP=function(a,b,c){b=$APP.M(b);var d=$APP.D(b,MO);b=$APP.D(b,FO);var e=$APP.M(c);
|
|
15
|
+
c=$APP.D(e,cP);var g=$APP.D(e,dP),h=$APP.D(e,eP);e=$APP.D(e,fP);d=$APP.t(d);for(var l=null,m=0,p=0;;)if(p<m){var q=l.G(null,p);q=UO(q,b,g,e);q=XO(c,q,h,q);a.appendChild(q);p+=1}else if(d=$APP.t(d))$APP.Nc(d)?(m=$APP.xb(d),d=$APP.yb(d),l=m,m=$APP.z(m)):(q=$APP.u(d),l=UO(q,b,g,e),l=XO(c,l,h,l),a.appendChild(l),d=$APP.w(d),l=null,m=0),p=0;else break},hP=function(a,b,c,d){var e=$APP.M(b),g=$APP.D(e,MO),h=$APP.D(e,FO);b=$APP.D(e,HO);var l=$APP.D(e,NO),m=$APP.D(e,IO),p=$APP.D(e,KO);e=$APP.M(c);var q=$APP.D(e,
|
|
16
|
+
cP);c=$APP.D(e,dP);var v=$APP.D(e,eP),x=$APP.D(e,fP);g=$APP.t(g);e=null;for(var y=0,A=0;;)if(A<y){var B=e.G(null,A),E=UO(B,h,c,x);B=qO(B,m);E=YO(q-4,E+4,B,"end");a.appendChild(E);A+=1}else if(g=$APP.t(g))$APP.Nc(g)?(y=$APP.xb(g),g=$APP.yb(g),e=y,y=$APP.z(y)):(y=$APP.u(g),e=UO(y,h,c,x),y=qO(y,m),e=YO(q-4,e+4,y,"end"),a.appendChild(e),g=$APP.w(g),e=null,y=0),A=0;else break;h=$APP.u(b);if($APP.n(h)){h=$APP.Hh.g(h);m=$APP.z(h);var H=pO(b),G=$APP.$g.i(1,Math.ceil(m/5)|0);hO($APP.Wd(function(I,Q){if($APP.ed(I,
|
|
17
|
+
G)===0){if($APP.C.i(l,"category")){var Y=$APP.u($APP.w(H))-$APP.u(H);I=Y<=1?(q+v)/2:q+I/(Y-1)*(v-q)}else I=VO($APP.Yk.g(Q),H,q,v);Q=$APP.C.i(l,"category")?""+$APP.T.g($APP.Yk.g(Q)):qO($APP.Yk.g(Q),p);Q=YO(I,x+d+4,Q,"middle");return a.appendChild(Q)}return null},h))}},kP=function(a,b,c,d,e,g){e=$APP.M(e);var h=$APP.D(e,cP),l=$APP.D(e,dP),m=$APP.D(e,eP),p=$APP.D(e,fP);return $APP.Wd(function(q,v){if($APP.C.i(c,"category")){var x=$APP.$g.i(1,$APP.z($APP.Hh.g(a)))-1;x=x<=1?(h+m)/2:h+q/(x-1)*(m-h)}else x=
|
|
18
|
+
VO($APP.Yk.g(v),d,h,m);var y=UO($APP.Xk.g(v),g,l,p);return $APP.Yg.C(v,rO,x,$APP.tc([$O,y,iP,b,jP,q]))},$APP.Hh.g(a))},lP=function(a,b,c){b=aP(b);if($APP.n(b)){var d=tO("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},mP=function(a,b,c,d){if($APP.t(b)){var e=aP(b),g=$APP.wc(b);b=$APP.u(b);d=""+$APP.T.g(e)+" L "+
|
|
19
|
+
$APP.T.g(rO.g(g))+","+$APP.T.g(d)+" L "+$APP.T.g(rO.g(b))+","+$APP.T.g(d)+" Z"}else d=null;$APP.n(d)&&(e=tO("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},oP=function(a,b,c,d,e,g){var h=$APP.M(e);e=$APP.D(h,cP);h=$APP.D(h,eP);var l=$APP.z(c);e=l===0?0:(h-e)/l;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.t(c);
|
|
20
|
+
l=null;for(var m=0,p=0;;)if(p<m){var q=l.G(null,p),v=rO.g(q)+-(e/2)+h+b,x=$APP.ah.i($O.g(q),nP.g(q)),y=Math.abs($O.g(q)-nP.g(q)),A=q=tO("rect");v=""+$APP.T.g(v);A.setAttribute("x",v);v=q;x=""+$APP.T.g(x);v.setAttribute("y",x);x=q;v=""+$APP.T.g($APP.$g.i(1,g));x.setAttribute("width",v);x=q;y=""+$APP.T.g($APP.$g.i(0,y));x.setAttribute("height",y);q.setAttribute("fill",d);q.setAttribute("rx","2");a.appendChild(q);p+=1}else if(c=$APP.t(c))$APP.Nc(c)?(m=$APP.xb(c),c=$APP.yb(c),l=m,m=$APP.z(m)):(q=$APP.u(c),
|
|
21
|
+
y=rO.g(q)+-(e/2)+h+b,p=$APP.ah.i($O.g(q),nP.g(q)),m=Math.abs($O.g(q)-nP.g(q)),q=l=tO("rect"),y=""+$APP.T.g(y),q.setAttribute("x",y),q=l,p=""+$APP.T.g(p),q.setAttribute("y",p),p=l,q=""+$APP.T.g($APP.$g.i(1,g)),p.setAttribute("width",q),p=l,m=""+$APP.T.g($APP.$g.i(0,m)),p.setAttribute("height",m),l.setAttribute("fill",d),l.setAttribute("rx","2"),a.appendChild(l),c=$APP.w(c),l=null,m=0),p=0;else return null},rP=function(a,b,c,d){if($APP.t(a)){var e=$APP.u(a);b=typeof $APP.Yk.g(e)==="string"?""+$APP.T.g($APP.Yk.g(e)):
|
|
22
|
+
qO($APP.Yk.g(e),b);var g=$APP.Ue.i($APP.Qd,$APP.Wd(function(h,l){var m=$APP.P,p=$APP.Nk.g(l);l=$APP.lj.g(l);h=$APP.n(l)?l:ZO(h);return new $APP.O(null,2,5,m,[p,h],null)},d));d=$APP.fe(function(h){return new $APP.R(null,5,[$APP.lj,$APP.Ac(g,$APP.Nk.g(h),ZO(iP.i(h,0))),$APP.U,""+$APP.T.g($APP.U.g(h)),$APP.zi,qO($APP.Xk.g(h),c),rO,rO.g(h),$O,$O.g(h)],null)},a);return new $APP.R(null,5,[pP,b,$APP.Pi,d,rO,rO.g(e),$O,$O.g(e),qP,$APP.fe(function(h){return new $APP.R(null,3,[rO,rO.g(h),$O,$O.g(h),$APP.lj,
|
|
23
|
+
$APP.Ac(g,$APP.Nk.g(h),ZO(iP.i(h,0)))],null)},a)],null)}return null},sP=function(a){var b=$APP.k(a,"tooltip"),c=$APP.k(a,"crosshair");a=$APP.k(a,"dots");$APP.n(b)&&b.setAttribute("data-visible","false");$APP.n(c)&&c.setAttribute("visibility","hidden");if($APP.n(a))for(b=0;;)if(b<8)c=a[b],$APP.n(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},tP=function(a,b,c){return $APP.Wc(function(d,e){var g=rO.g(e)-b,h=$O.g(e)-c;g=g*g+h*h;return d==null||g<$APP.el.g(d)?$APP.Yg.m(e,
|
|
24
|
+
$APP.el,g):d},null,a)},vP=function(a,b,c,d,e,g,h,l,m,p,q){$APP.C.i(h,"none")||(b.addEventListener("pointermove",function(v){var x=b.getBoundingClientRect(),y=v.clientX-x.x;v=v.clientY-x.y;$APP.C.i(h,"x")?y=sO(c,y):(y=tP(c,y,v),y=$APP.n(y)?new $APP.O(null,1,5,$APP.P,[y],null):null);v=y;y=$APP.u(v);if($APP.n(y)){if($APP.n(l)&&(x=rP(v,m,p,q),v=$APP.k(d,"tooltip"),$APP.n($APP.n(v)?x:v))){var A=$APP.M(x),B=$APP.D(A,pP),E=$APP.D(A,$APP.Pi);x=$APP.D(A,rO);var H=$APP.D(A,$O),G=$APP.D(A,qP),I=$APP.k(d,"tooltip-header"),
|
|
25
|
+
Q=$APP.k(d,"tooltip-body"),Y=$APP.k(d,"tooltip-rows"),la=$APP.k(d,"dots");A=$APP.k(d,"crosshair");$APP.n(I)&&(I.textContent=B);if($APP.n($APP.n(Q)?Y:Q))for(B=0;;)if(B<8){Q=Y[B];if($APP.n(Q))if(I=$APP.zc(E,B,null),$APP.n(I)){Q.setAttribute("data-hidden","false");Q=Q.firstChild;var za=$APP.n(Q)?Q.nextSibling:null,Ka=$APP.n(za)?za.nextSibling:null;$APP.n(Q)&&(Q.style.backgroundColor=$APP.lj.g(I));$APP.n(za)&&(za.textContent=$APP.U.g(I));$APP.n(Ka)&&(Ka.textContent=$APP.zi.g(I))}else Q.setAttribute("data-hidden",
|
|
26
|
+
"true");B+=1}else break;if($APP.n(la))for(E=0;;)if(E<8)Y=la[E],$APP.n(Y)&&(B=$APP.zc(G,E,null),$APP.n(B)?(I=Y,Q=""+$APP.T.g(rO.g(B)),I.setAttribute("cx",Q),I=Y,Q=""+$APP.T.g($O.g(B)),I.setAttribute("cy",Q),I=Y,B=$APP.lj.g(B),I.setAttribute("fill",B),Y.setAttribute("visibility","visible")):Y.setAttribute("visibility","hidden")),E+=1;else break;$APP.n(A)&&A.setAttribute("visibility","visible");$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x1",G));$APP.n(A)&&(G=""+$APP.T.g(x),A.setAttribute("x2",G));
|
|
27
|
+
v.setAttribute("data-visible","true");A=v.offsetWidth;G=v.offsetHeight;H=H+G+8>g?H-G-8:H-4;x=new $APP.R(null,2,[uP,$APP.$g.i(8,$APP.ah.i(x+A+12+8>e?x-A-12:x+12,e-A-8)),$APP.Yh,$APP.$g.i(8,$APP.ah.i(H,g-G-8))],null);H=$APP.M(x);x=$APP.D(H,uP);H=$APP.D(H,$APP.Yh);v.style.left=""+$APP.T.g(x)+"px";v.style.top=""+$APP.T.g(H)+"px"}return TO(a,"x-chart-hover",{seriesId:$APP.Nk.g(y),index:jP.g(y),x:$APP.Yk.g(y),y:$APP.Xk.g(y),value:$APP.Xk.g(y)})}return null}),b.addEventListener("pointerleave",function(){return $APP.n(l)?
|
|
28
|
+
sP(d):null}),b.addEventListener("click",function(v){var x=b.getBoundingClientRect();v=tP(c,v.clientX-x.x,v.clientY-x.y);return $APP.n(v)?TO(a,"x-chart-select",{seriesId:$APP.Nk.g(v),index:jP.g(v),x:$APP.Yk.g(v),y:$APP.Xk.g(v),value:$APP.Xk.g(v)}):null}))},wP=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=SO(a),g=$APP.M(e);e=$APP.D(g,HO);var h=$APP.D(g,$APP.W),l=$APP.D(g,$APP.Lj);g=$APP.D(g,JO);if($APP.r(h)&&$APP.N(g,"none")&&$APP.t(e)){var m=$APP.ve(e);if(l==null)return $APP.n(function(){var v=
|
|
29
|
+
new $APP.S(null,new $APP.R(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return v.g?v.g(d):v.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.T.g($APP.Nk.g($APP.u(m)))+":0")):null;g=$APP.z(m);var p=function(){var v=$APP.u(iO(function(x,y){return $APP.C.i($APP.Nk.g(y),PO.g(l))?x:null},m));return $APP.n(v)?v:0}();h=$APP.oc(m,p);var q=$APP.z($APP.Hh.g(h));e=$APP.Lh.g(l);switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.ah.i(q-
|
|
30
|
+
1,e+1),a.setAttribute("selected",""+$APP.T.g($APP.Nk.g(h))+":"+$APP.T.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.$g.i(0,e-1),a.setAttribute("selected",""+$APP.T.g($APP.Nk.g(h))+":"+$APP.T.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.ed(p+1,g),h=$APP.oc(m,c),c=$APP.ah.i(e,$APP.$g.i(1,$APP.z($APP.Hh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Nk.g(h))+":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),c=$APP.ed(p+(g-1),g),h=$APP.oc(m,c),c=$APP.ah.i(e,$APP.$g.i(1,
|
|
31
|
+
$APP.z($APP.Hh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Nk.g(h))+":"+$APP.T.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.zc($APP.Hh.g(h),e,null),$APP.n(c)?TO(a,"x-chart-select",{seriesId:$APP.Nk.g(h),index:e,x:$APP.Yk.g(c),y:$APP.Xk.g(c),value:$APP.Xk.g(c)}):null;default:return null}}else return null})},xP=function(a){a=$APP.k(a,"container");a=$APP.n(a)?a.clientWidth:0;return a>0?a:400},yP=function(a){var b=$APP.k(a,"__xChartRefs");if($APP.n(b)){var c=$APP.k(b,"svg"),d=
|
|
32
|
+
$APP.k(b,"sr"),e=SO(a),g=$APP.M(e),h=$APP.D(g,$APP.W),l=$APP.D(g,$APP.Aj),m=$APP.D(g,LO),p=$APP.D(g,OO),q=$APP.D(g,NO),v=$APP.D(g,FO),x=$APP.D(g,GO),y=$APP.D(g,HO),A=$APP.D(g,$APP.fi),B=$APP.D(g,IO),E=$APP.D(g,JO),H=$APP.D(g,$APP.Z),G=$APP.D(g,$APP.Vl);g=$APP.D(g,KO);var I=xP(b),Q=new $APP.R(null,4,[cP,G+36,dP,G,eP,I-G,fP,l-G-18],null),Y=$APP.M(Q),la=$APP.D(Y,cP),za=$APP.D(Y,dP),Ka=$APP.D(Y,eP);Y=$APP.D(Y,fP);var $a=pO(y),ab=UO(0,v,za,Y);WO(c,"viewBox","0 0 "+$APP.T.g(I)+" "+$APP.T.g(l));WO(c,"width",
|
|
33
|
+
""+$APP.T.g(I));WO(c,"height",""+$APP.T.g(l));bP(c);b.crosshair=null;b.dots=null;if(!$APP.n(A)){$APP.n(p)&&gP(c,e,Q);var jb=$APP.ve($APP.ae(function(bb,ca){ca=kP(bb,ca,q,$a,Q,v);return $APP.$d.i(function(pa){return $APP.Yg.C(pa,$APP.Nk,$APP.Nk.g(bb),$APP.tc([$APP.U,$APP.U.g(bb),nP,ab]))},ca)},$APP.tc([y,$APP.bg(0,Number.MAX_VALUE)])));hO($APP.Wd(function(bb,ca){var pa=function(){var Ub=$APP.lj.g(ca);return $APP.n(Ub)?Ub:ZO(bb)}(),La=$APP.ce(function(Ub){return $APP.C.i($APP.Nk.g(Ub),$APP.Nk.g(ca))},
|
|
34
|
+
jb);switch(H){case "bar":return oP(c,bb,La,pa,Q,$APP.z(y));case "area":return mP(c,La,pa,ab),lP(c,La,pa);default:return lP(c,La,pa)}},y));$APP.n(x)&&hP(c,e,Q,G);p=tO("line");WO(p,"x1",""+$APP.T.g(la));WO(p,"y1",""+$APP.T.g(za));WO(p,"x2",""+$APP.T.g(la));WO(p,"y2",""+$APP.T.g(Y));p.setAttribute("stroke","var(--x-chart-crosshair-color)");p.setAttribute("stroke-width","var(--x-chart-crosshair-width)");p.setAttribute("visibility","hidden");c.appendChild(p);b.crosshair=p;p=Array(8);for(x=0;;)if(x<8)G=
|
|
35
|
+
tO("circle"),WO(G,"r",""+$APP.T.g(4)),G.setAttribute("stroke","var(--x-chart-tooltip-bg)"),G.setAttribute("stroke-width","2"),G.setAttribute("visibility","hidden"),c.appendChild(G),p[x]=G,x+=1;else break;b.dots=p;p=tO("rect");WO(p,"x",""+$APP.T.g(la));WO(p,"y",""+$APP.T.g(za));WO(p,"width",""+$APP.T.g($APP.$g.i(0,Ka-la)));WO(p,"height",""+$APP.T.g($APP.$g.i(0,Y-za)));p.setAttribute("fill","transparent");p.setAttribute("style","cursor:crosshair;");$APP.n(h)||vP(a,p,jb,b,I,l,E,m,g,B,y);c.appendChild(p);
|
|
36
|
+
var Ib=$APP.Lj.g(e);$APP.n($APP.n(Ib)?$APP.t(y):Ib)?(a=$APP.u($APP.ce(function(bb){return $APP.C.i($APP.Nk.g(bb),PO.g(Ib))},y)),e=$APP.n(a)?$APP.zc($APP.Hh.g(a),$APP.Lh.g(Ib),null):null,d.textContent=$APP.n($APP.n(a)?e:a)?""+$APP.T.g($APP.U.g(a))+" "+$APP.T.g(qO($APP.Xk.g(e),B))+" at "+$APP.T.g(typeof $APP.Yk.g(e)==="string"?$APP.Yk.g(e):qO($APP.Yk.g(e),g)):""+$APP.T.g($APP.z(y))+" series chart"):d.textContent=""+$APP.T.g($APP.z(y))+" series chart"}return $APP.n(A)?sP(b):null}return null},zP=function(){var a=
|
|
37
|
+
document.createElement("div"),b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},AP=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=
|
|
38
|
+
tO("svg"),g=document.createElement("div"),h=document.createElement("div"),l=document.createElement("div"),m=document.createElement("div"),p=Array(8);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:var(--x-color-border,rgba(0,0,0,0.1));--x-chart-grid:var(--x-color-border,rgba(0,0,0,0.08));--x-chart-axis-label:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:var(--x-color-bg,rgba(255,255,255,0.96));--x-chart-tooltip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chart-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.14));--x-chart-focus-ring:var(--x-color-focus-ring,rgba(0,102,204,0.55));--x-chart-radius:var(--x-radius-md,0.75rem);--x-chart-tooltip-radius:var(--x-radius-sm,0.5rem);--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-chart-tooltip-label-color:var(--x-color-text-muted,rgba(0,0,0,0.65));--x-chart-tooltip-value-color:var(--x-color-text,rgba(0,0,0,0.9));--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:var(--x-color-border,rgba(0,0,0,0.18));--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:var(--x-color-border,rgba(255,255,255,0.1));--x-chart-grid:var(--x-color-border,rgba(255,255,255,0.08));--x-chart-axis-label:var(--x-color-text-muted,rgba(255,255,255,0.45));--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:var(--x-color-bg,rgba(30,30,35,0.97));--x-chart-tooltip-border:var(--x-color-border,rgba(255,255,255,0.12));--x-chart-tooltip-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.45));--x-chart-focus-ring:var(--x-color-focus-ring,rgba(120,190,255,0.55));--x-chart-tooltip-header-color:var(--x-color-text-muted,rgba(255,255,255,0.45));--x-chart-tooltip-label-color:var(--x-color-text-muted,rgba(255,255,255,0.6));--x-chart-tooltip-value-color:var(--x-color-text,rgba(255,255,255,0.9));--x-chart-crosshair-color:var(--x-color-border,rgba(255,255,255,0.2));}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
|
|
39
|
+
d.setAttribute("part","container");d.setAttribute("tabindex","0");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("role","img");g.setAttribute("part","sr-only");g.setAttribute("role","status");g.setAttribute("aria-live","polite");h.setAttribute("part","tooltip");h.setAttribute("role","tooltip");h.setAttribute("aria-hidden","true");h.setAttribute("data-visible","false");l.setAttribute("part","tooltip-header");m.setAttribute("part","tooltip-body");for(var q=0;;)if(q<
|
|
40
|
+
8){var v=zP();m.appendChild(v);p[q]=v;q+=1}else break;h.appendChild(l);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=l;c["tooltip-body"]=m;c["tooltip-rows"]=p;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return yP(a)});b.observe(d);$APP.k(a,"__xChartRefs").ro=b;wP(a,d)},BP=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
|
|
41
|
+
get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},CP=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},DP=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return kO(this.getAttribute(c),d)},set:function(e){return e!=null?
|
|
42
|
+
this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},EP=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xChartData");if($APP.n(b))return b;b=this.getAttribute("data");return mO(b)},set:function(b){this.__xChartData=b;return $APP.n($APP.ma(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},GP=function(){var a=class extends HTMLElement{};a.observedAttributes=FP;a.prototype.connectedCallback=function(){$APP.n($APP.k(this,
|
|
43
|
+
"__xChartRefs"))||AP(this);return yP(this)};a.prototype.disconnectedCallback=function(){var c=$APP.k(this,"__xChartRefs");$APP.n(c)?(c=$APP.k(c,"ro"),c=$APP.n(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.n($APP.k(this,"__xChartRefs"))?yP(this):null};var b=a.prototype;BP(b,"type","type");BP(b,"cursor","cursor");BP(b,"selected","selected");DP(b,"height","height",180);DP(b,"padding","padding",12);CP(b,"grid","grid");CP(b,"axes","axes");CP(b,"tooltip",
|
|
44
|
+
"tooltip");CP(b,"disabled","disabled");CP(b,"loading","loading");EP(b);return a},HP=function(){return $APP.n(customElements.get("x-chart"))?null:customElements.define("x-chart",GP())},uP=new $APP.K(null,"left","left",-399115937),pP=new $APP.K(null,"x-label","x-label",802517907),qP=new $APP.K(null,"dot-pts","dot-pts",1732240900),CO=new $APP.K(null,"loading-present?","loading-present?",-1827648748),xO=new $APP.K(null,"y-format-raw","y-format-raw",-1098541692),zO=new $APP.K(null,"axes-raw","axes-raw",
|
|
45
|
+
-839946224),nP=new $APP.K(null,"y0-baseline","y0-baseline",613579610),FO=new $APP.K(null,"y-domain","y-domain",-969203007),NO=new $APP.K(null,"x-kind","x-kind",693167455),AO=new $APP.K(null,"height-raw","height-raw",-867301006),uO=new $APP.K(null,"selected-raw","selected-raw",-1471626848),HO=new $APP.K(null,"series","series",600710694),DO=new $APP.K(null,"data-raw","data-raw",822066711),LO=new $APP.K(null,"tooltip?","tooltip?",-642753154),PO=new $APP.K(null,"series-id","series-id",226875035),KO=new $APP.K(null,
|
|
46
|
+
"x-fmt","x-fmt",2073358008),vO=new $APP.K(null,"padding-raw","padding-raw",-847772255),$O=new $APP.K(null,"py","py",1397985916),rO=new $APP.K(null,"px","px",281329899),EO=new $APP.K(null,"x-format-raw","x-format-raw",-1683657190),GO=new $APP.K(null,"axes?","axes?",1786285669),OO=new $APP.K(null,"grid?","grid?",-288406689),BO=new $APP.K(null,"cursor-raw","cursor-raw",-1169819084),JO=new $APP.K(null,"cursor","cursor",1011937484),wO=new $APP.K(null,"tooltip-present?","tooltip-present?",-2098824029),
|
|
47
|
+
IO=new $APP.K(null,"y-fmt","y-fmt",2092412811),dP=new $APP.K(null,"y0","y0",111454807),fP=new $APP.K(null,"y1","y1",589123466),jP=new $APP.K(null,"i","i",-1386841315),eP=new $APP.K(null,"x1","x1",-1863922247),cP=new $APP.K(null,"x0","x0",410843387),iP=new $APP.K(null,"si","si",793409822),MO=new $APP.K(null,"y-ticks","y-ticks",-843622722),yO=new $APP.K(null,"grid-present?","grid-present?",-468948562);var FP="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),RO=new $APP.S(null,new $APP.R(null,3,["bar",null,"area",null,"line",null],null),null),QO=new $APP.S(null,new $APP.R(null,3,["none",null,"x",null,"nearest",null],null),null);
|
|
48
|
+
$APP.xf([$APP.Lj,$APP.mj,new $APP.K(null,"axes","axes",1970866440),new $APP.K(null,"grid","grid",402978600),JO,$APP.Z,$APP.Mk,$APP.Vl,new $APP.K(null,"tooltip","tooltip",-1809677058),$APP.Aj,$APP.Hh],[new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"selected"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"axes"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"grid"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"cursor"],null),new $APP.R(null,
|
|
49
|
+
2,[$APP.Z,$APP.X,$APP.dk,"type"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"loading"],null),new $APP.R(null,2,[$APP.Z,$APP.V,$APP.dk,"padding"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"tooltip"],null),new $APP.R(null,2,[$APP.Z,$APP.V,$APP.dk,"height"],null),new $APP.R(null,1,[$APP.Z,$APP.ti],null)]);$APP.fa("baredom.exports.x_chart.init",HP);export const init=HP;
|
package/dist/x-checkbox.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
a.getAttribute("aria-
|
|
4
|
-
|
|
5
|
-
h
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.
|
|
11
|
-
d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.
|
|
12
|
-
function(){return
|
|
2
|
+
var lA=function(a,b,c){return a.setAttribute(b,c)},mA=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},oA=function(a){a=$APP.xf([$APP.Ok,$APP.al,$APP.uh,$APP.Jh,$APP.Si,nA,$APP.ij,$APP.Ol,$APP.uj,$APP.$i],[a.getAttribute("name"),$APP.Gg(a.getAttribute("disabled")),$APP.Gg(a.getAttribute("required")),a.getAttribute("aria-labelledby"),$APP.Gg(a.getAttribute("checked")),$APP.Gg(a.getAttribute("indeterminate")),$APP.Gg(a.getAttribute("readonly")),a.getAttribute("value"),a.getAttribute("aria-label"),
|
|
3
|
+
a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=$APP.D(b,$APP.uj);var c=$APP.D(b,$APP.$i),d=$APP.D(b,$APP.Ok),e=$APP.D(b,$APP.al),g=$APP.D(b,$APP.uh),h=$APP.D(b,$APP.Jh),l=$APP.D(b,$APP.Si),m=$APP.D(b,nA),p=$APP.D(b,$APP.ij);b=$APP.D(b,$APP.Ol);l=$APP.F(l);m=$APP.F(m);g=$APP.F(g);return $APP.xf([$APP.ll,$APP.Th,$APP.Oh,$APP.lm,$APP.bj,$APP.zh,$APP.Yi,$APP.zi,$APP.Dj,$APP.hm,$APP.cl,$APP.W],[m,g,m?"mixed":l?"true":"false",$APP.F(p),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},pA=function(a){var b=
|
|
4
|
+
$APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=oA(a);var d=$APP.W.g(b),e=$APP.bj.g(b),g=$APP.ll.g(b);lA(c,"aria-checked",$APP.Oh.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");lA(c,"aria-required",$APP.n($APP.Th.g(b))?"true":"false");lA(c,"aria-readonly",$APP.n($APP.lm.g(b))?"true":"false");var h=$APP.cl.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Dj.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",h):c.removeAttribute("aria-labelledby");
|
|
5
|
+
h=$APP.hm.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");mA(a,"data-checked",e);mA(a,"data-indeterminate",g);mA(a,"data-disabled",d);a=$APP.k(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.zi.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},qA=function(a){var b=oA(a),c=$APP.W.g(b),d=$APP.lm.g(b);if($APP.n($APP.n(c)?c:d))return null;c=$APP.bj.g(b);
|
|
6
|
+
d=$APP.ll.g(b);d=$APP.n(d)?new $APP.R(null,2,[$APP.bj,!0,$APP.ll,!1],null):new $APP.R(null,2,[$APP.bj,$APP.r(c),$APP.ll,!1],null);var e=$APP.bj.g(d);b=$APP.zi.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.r(c.defaultPrevented)?(mA(a,"checked",e),mA(a,"indeterminate",$APP.ll.g(d)),pA(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,checked:e},bubbles:!0,
|
|
7
|
+
composed:!0,cancelable:!1}))):null},rA=function(a){return function(){return qA(a)}},sA=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),qA(a)):null}},tA=function(a){var b=$APP.k(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.k(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.k(b,"control");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},uA=function(a,
|
|
8
|
+
b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return mA(this,c,$APP.F(d))}})},vA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?lA(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},xA=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=wA;uA(b,
|
|
9
|
+
"checked","checked");uA(b,"indeterminate","indeterminate");uA(b,"disabled","disabled");uA(b,"readOnly","readonly");uA(b,"required","required");vA(b,"name","name");vA(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:var(--x-color-border,#6b7280);--x-checkbox-border-radius:4px;--x-checkbox-bg:var(--x-color-surface,#ffffff);--x-checkbox-bg-checked:var(--x-color-primary,#2563eb);--x-checkbox-bg-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-border-checked:var(--x-color-primary,#2563eb);--x-checkbox-border-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-check-color:var(--x-color-surface,#ffffff);--x-checkbox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:var(--x-color-border,#9ca3af);--x-checkbox-bg:var(--x-color-surface,#1f2937);--x-checkbox-bg-checked:var(--x-color-primary,#3b82f6);--x-checkbox-bg-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-border-checked:var(--x-color-primary,#3b82f6);--x-checkbox-border-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
|
|
10
|
+
e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}tA(this);c=$APP.k(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=rA(this),e=sA(this),g={click:d,keydown:e},c.addEventListener("click",
|
|
11
|
+
d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.k(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.k(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return pA(this)};b.disconnectedCallback=function(){return tA(this)};b.attributeChangedCallback=
|
|
12
|
+
function(){return pA(this)};b.formDisabledCallback=function(c){mA(this,"disabled",$APP.F(c));return pA(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return pA(this)};return a},yA=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",xA())},nA=new $APP.K(null,"indeterminate-present?","indeterminate-present?",-1714683438);var wA="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-checkbox-change-request",new $APP.R(null,2,[$APP.wl,!0,$APP.yj,new $APP.R(null,3,[$APP.zi,$APP.X,$APP.Rj,$APP.Bj,$APP.hl,$APP.Bj],null)],null),"x-checkbox-change",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,2,[$APP.zi,$APP.X,$APP.$l,$APP.Bj],null)],null)]);$APP.fa("baredom.exports.x_checkbox.init",yA);export const init=yA;
|
package/dist/x-chip.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},
|
|
4
|
-
|
|
5
|
-
"true"):a.removeAttribute("aria-disabled");$APP.
|
|
6
|
-
b);$APP.
|
|
7
|
-
enumerable:!0,configurable:!0})},
|
|
8
|
-
"__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),
|
|
9
|
-
e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");
|
|
10
|
-
d,e){return $APP.
|
|
2
|
+
var yr=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Wh);a=$APP.D(b,$APP.Ol);var d=$APP.D(b,wr);b=$APP.D(b,$APP.al);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.i(d,"false")||$APP.C.i(d,"0"));return new $APP.R(null,4,[$APP.U,c,$APP.zi,typeof a==="string"&&a.length>0?a:c,xr,d,$APP.W,$APP.F(b)],null)},zr=function(a){var b=$APP.M(a);a=$APP.D(b,xr);b=$APP.D(b,$APP.W);return $APP.n(a)?$APP.r(b):a},Ar=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
|
|
3
|
+
a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},Br=function(a){var b=yr(new $APP.R(null,4,[$APP.Wh,a.getAttribute("label"),$APP.Ol,a.getAttribute("value"),wr,a.getAttribute("removable"),$APP.al,a.hasAttribute("disabled")],null));if($APP.n(zr(b))){var c=$APP.M(b);b=$APP.D(c,$APP.zi);c=$APP.D(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
|
|
4
|
+
Ar(a):null}else a=null;return a},Dr=function(a){var b=yr(new $APP.R(null,4,[$APP.Wh,a.getAttribute("label"),$APP.Ol,a.getAttribute("value"),wr,a.getAttribute("removable"),$APP.al,a.hasAttribute("disabled")],null)),c=$APP.M(b),d=$APP.D(c,$APP.U),e=$APP.D(c,xr);c=$APP.D(c,$APP.W);var g=$APP.k(a,"__xChipRefs"),h=$APP.Zl.g(g);g=Cr.g(g);b=zr(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
|
|
5
|
+
"true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},Er=function(a){function b(e){var g=e.key;return $APP.C.i(g,"Backspace")||$APP.C.i(g,"Delete")?(e.preventDefault(),Br(a)):null}function c(){return Br(a)}var d=Cr.g($APP.k(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
|
|
6
|
+
b);$APP.ia(a,"__xChipHandlers",{click:c,keydown:b})},Fr=function(a){var b=$APP.k(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.k(a,"__xChipRefs"),d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=Cr.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},Gr=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
|
|
7
|
+
enumerable:!0,configurable:!0})},Hr=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Ir=function(a){Gr(a,"label");Gr(a,"value");Hr(a,"removable");Hr(a,"disabled")},Kr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return Jr}});b.connectedCallback=function(){if(!$APP.n($APP.k(this,
|
|
8
|
+
"__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),l=document.createElement("span");d.textContent=":host{--x-chip-bg:var(--x-color-surface,rgba(0,0,0,0.08));--x-chip-color:var(--x-color-text,rgba(0,0,0,0.80));--x-chip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chip-radius:var(--x-radius-full, 9999px);--x-chip-font-size:var(--x-font-size-sm, 0.875rem);--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:var(--x-color-surface,rgba(255,255,255,0.10));--x-chip-border:var(--x-color-border,rgba(255,255,255,0.16));--x-chip-color:var(--x-color-text,rgba(255,255,255,0.88));}}:host(:focus-visible){outline:2px solid var(--x-color-focus-ring,currentColor);outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
|
|
9
|
+
e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");l.setAttribute("aria-hidden","true");l.textContent="×";h.appendChild(l);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.R(null,4,[$APP.ji,c,$APP.ej,e,$APP.Zl,g,Cr,h],null)}Fr(this);Er(this);return Dr(this)};b.disconnectedCallback=function(){return Fr(this)};b.attributeChangedCallback=function(c,
|
|
10
|
+
d,e){return $APP.N(d,e)?$APP.n($APP.k(this,"__xChipRefs"))?Dr(this):null:null};Ir(b);return a},Lr=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",Kr());return null},wr=new $APP.K(null,"removable-raw","removable-raw",1718453796),Cr=new $APP.K(null,"remove-btn","remove-btn",843430290),xr=new $APP.K(null,"removable?","removable?",1886800649);var Jr=["label","value","removable","disabled"];$APP.Pd(["x-chip-remove",new $APP.R(null,2,[$APP.yj,new $APP.R(null,2,[$APP.zi,$APP.X,$APP.U,$APP.X],null),$APP.wl,!0],null)]);$APP.fa("baredom.exports.x_chip.init",Lr);export const init=Lr;
|
package/dist/x-collapse.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b.offsetHeight;var d=""+$APP.
|
|
4
|
-
"px";a=
|
|
5
|
-
$APP.
|
|
6
|
-
a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},
|
|
7
|
-
$APP.
|
|
8
|
-
b)):b=this.removeAttribute("header");return b}})},
|
|
9
|
-
"observedAttributes",{get:function(){return
|
|
2
|
+
var M2=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},N2=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.$g.i(0,$APP.ah.i(2E3,a))):300},O2=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(M2()))return b.style.height="",b.style.transition="";a=N2(a);b.style.height="0px";
|
|
3
|
+
b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},P2=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.k(g,"fn"))}if($APP.n(M2()))return b.style.height="0px",b.style.transition="";var d=""+$APP.T.g(b.offsetHeight)+
|
|
4
|
+
"px";a=N2(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},Q2=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(b,"trigger");b=$APP.k(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
|
|
5
|
+
$APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},R2=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
|
|
6
|
+
a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},S2=function(a){return function(){return R2(a,"pointer")}},T2=function(a){return function(b){var c=b.key;return $APP.C.i(c," ")||$APP.C.i(c,"Enter")?(b.preventDefault(),R2(a,"keyboard")):null}},U2=function(a){var b=$APP.k(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.k(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.k(b,"trigger");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",
|
|
7
|
+
$APP.k(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},V2=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.F(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},W2=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.n(b)?b:""},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.T.g(b),b=this.setAttribute("header",
|
|
8
|
+
b)):b=this.removeAttribute("header");return b}})},X2=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.n(b)?(b=parseInt(b,10),$APP.n(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.r(isNaN(b))?(b=""+$APP.T.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},Z2=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
|
|
9
|
+
"observedAttributes",{get:function(){return Y2}});V2(b,"open","open");V2(b,"disabled","disabled");W2(b);X2(b);b.toggle=function(){return R2(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
|
|
10
10
|
q=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
|
|
11
|
-
e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("id","trigger");g.setAttribute("aria-controls","panel");h.setAttribute("part","header-text");
|
|
12
|
-
"▼";g.appendChild(h);g.appendChild(
|
|
13
|
-
function(c){a:{if($APP.
|
|
11
|
+
e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("id","trigger");g.setAttribute("aria-controls","panel");h.setAttribute("part","header-text");l.setAttribute("part","chevron");l.setAttribute("aria-hidden","true");m.setAttribute("part","content");m.setAttribute("id","panel");m.setAttribute("role","region");m.setAttribute("aria-labelledby","trigger");p.setAttribute("part","content-inner");q.setAttribute("name","content");l.textContent=
|
|
12
|
+
"▼";g.appendChild(h);g.appendChild(l);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}U2(this);c=$APP.k(this,"__xCollapseRefs");$APP.n(c)&&(c=$APP.k(c,"trigger"),d=S2(this),e=T2(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return Q2(this)};b.disconnectedCallback=function(){return U2(this)};b.attributeChangedCallback=
|
|
13
|
+
function(c){a:{if($APP.n($APP.k(this,"__xCollapseRefs"))&&(Q2(this),$APP.C.i(c,"open"))){c=$APP.k(this,"__xCollapseRefs");c=$APP.n(c)?$APP.k(c,"content"):null;var d=this.hasAttribute("open");c=$APP.n(c)?$APP.n(d)?O2(this,c):P2(this,c):null;break a}c=null}return c};return a},$2=function(){return $APP.n(customElements.get("x-collapse"))?null:customElements.define("x-collapse",Z2())};var Y2=["open","disabled","header","duration-ms"];$APP.Pd(["x-collapse-toggle",new $APP.R(null,2,[$APP.wl,!0,$APP.yj,new $APP.R(null,2,[$APP.tl,$APP.Bj,$APP.Hk,$APP.X],null)],null),"x-collapse-change",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.tl,$APP.Bj],null)],null)]);$APP.fa("baredom.exports.x_collapse.init",$2);export const init=$2;
|