@vanelsas/baredom 1.3.0 → 1.4.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 (83) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +6 -4
  3. package/dist/base.js +397 -373
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +47 -47
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +8 -8
  17. package/dist/x-collapse.js +10 -10
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +19 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +41 -41
  24. package/dist/x-divider.js +13 -13
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +9 -9
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +15 -15
  30. package/dist/x-form.js +10 -10
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +29 -0
  34. package/dist/x-kinetic-typography.js +39 -61
  35. package/dist/x-liquid-dock.js +40 -0
  36. package/dist/x-liquid-fill.js +45 -0
  37. package/dist/x-liquid-glass.js +48 -0
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +28 -27
  41. package/dist/x-modal.js +12 -12
  42. package/dist/x-morph-stack.js +41 -0
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +34 -34
  45. package/dist/x-notification-center.js +9 -10
  46. package/dist/x-organic-divider.js +19 -19
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +14 -14
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +10 -10
  53. package/dist/x-radio.js +11 -11
  54. package/dist/x-ripple-effect.js +12 -13
  55. package/dist/x-scroll-parallax.js +19 -19
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +36 -36
  58. package/dist/x-scroll-timeline.js +50 -50
  59. package/dist/x-scroll.js +41 -41
  60. package/dist/x-search-field.js +14 -14
  61. package/dist/x-select.js +9 -9
  62. package/dist/x-sidebar.js +16 -16
  63. package/dist/x-skeleton.js +6 -6
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +22 -0
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +5 -5
  68. package/dist/x-splash.js +13 -13
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +10 -10
  72. package/dist/x-tab.js +7 -7
  73. package/dist/x-table-cell.js +22 -22
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +16 -16
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-timeline-item.js +24 -24
  79. package/dist/x-timeline.js +9 -9
  80. package/dist/x-toast.js +24 -24
  81. package/dist/x-toaster.js +8 -8
  82. package/dist/x-typography.js +10 -10
  83. package/package.json +25 -1
@@ -1,40 +1,40 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var BR=function(a){return typeof a==="string"&&(a=a.trim(),$APP.O(a,""))?(a=parseFloat(a),$APP.n(isNaN(a))?null:Math.min(100,Math.max(0,a))):null},DR=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.K(CR,a)?a:"vine"},ER=function(a){return a==null?!0:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},GR=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.K(FR,a)?a:"normal"},HR=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
3
- "number"&&$APP.r(isNaN(a))&&a>0?a:42):42},IR=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},JR=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},KR=function(a){a=(typeof a==="number"&&$APP.r(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},LR=function(a){var b=a[0];b^=b<<13;b^=b>>>17;b=b^b<<5|0;a[0]=b;return Math.abs(b)/2147483647},QR=function(a,b){var c=(a+b)*MR,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*NR,g=a-(d-e),h=b-(c-e),
4
- k=g>h?1:0,m=g>h?0:1,p=g+-k-NR,q=h+-m-NR,v=g+-1-2*NR,x=h+-1-2*NR,y=d&255,A=c&255,D=.5-g*g-h*h,G=.5-p*p-q*q,H=.5-v*v-x*x;return 70*((D<0?0:function(){var F=D*D,P=OR[PR[y+PR[A&255]&255]&11];return F*F*(P[0]*g+P[1]*h)}())+(G<0?0:function(){var F=G*G,P=OR[PR[y+k+PR[A+m&255]&255]&11];return F*F*(P[0]*p+P[1]*q)}())+(H<0?0:function(){var F=H*H,P=OR[PR[y+1+PR[A+1&255]&255]&11];return F*F*(P[0]*v+P[1]*x)}()))},RR=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return QR(d+b,e+c)}},SR=function(a,b,
5
- c){var d=[],e=[];c=KR(c);for(var g=[0],h=[20,100,0,0],k=a.length,m=0;;)if(m<k){switch(a.charAt(m)){case "F":var p=h[0],q=h[1],v=h[2],x=h[3],y=g[0],A=38*Math.pow(.7,x)*(.8+.4*LR(c)),D=function(){var H=y*.3;var F=x*.5;H=b.h?b.h(H,F):b.call(null,H,F);return v+.15*H}(),G=p+A*Math.cos(D);A=q+A*Math.sin(D);d.push({x1:p,y1:q,x2:G,y2:A,depth:x,index:y});h[0]=G;h[1]=A;g[0]=y+1;break;case "+":p=function(){var H=g[0]*.2;return b.h?b.h(H,100):b.call(null,H,100)}();h[2]-=.436+.1*p;break;case "-":p=function(){var H=
6
- g[0]*.2;return b.h?b.h(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,F){var P=$APP.l(H,"x2")-20;H=$APP.l(H,"y2")-100;var la=$APP.l(F,"x2")-20;F=$APP.l(F,"y2")-100;return P*P+H*H-(la*la+F*F)});return[d,d.length]},TR=function(a,b,c,d){a=""+$APP.T.g(a.toFixed(1))+","+$APP.T.g(b.toFixed(1));c=""+$APP.T.g(c.toFixed(1))+","+$APP.T.g(d.toFixed(1));
7
- return $APP.Gc(a,c)<0?""+$APP.T.g(a)+"-"+$APP.T.g(c):""+$APP.T.g(c)+"-"+$APP.T.g(a)},VR=function(a,b){b=$APP.qc(UR,b,25);var c=KR(a),d=1.5*b,e=Math.sqrt(3)*b,g=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var k=Math.sqrt(17E4),m=-2;;)if(m<g){var p=m*d;if($APP.Ec(m))var q=(m&1)===0;else throw Error(["Argument must be an integer: ",$APP.sa(m)].join(""));q=q?0:e/2;for(var v=-2;;)if(v<h){var x=v*e+q;if(p>0-b&&p<800+b&&x>0-b&&x<200+b){var y=p-400,A=x-100;y=Math.sqrt(y*y+A*A);A=y*.7+LR(c)*.3*k;a.push({cx:p,
8
- cy:x,dist:y,key:A})}v+=1}else break;m+=1}else break;a.sort(function(H,F){return $APP.l(H,"key")-$APP.l(F,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){q=a[h];m=$APP.l(q,"cx");p=$APP.l(q,"cy");q=Math.min(2,Math.floor($APP.l(q,"dist")*3/(k+.001)));for(v=0;;)if(v<6){y=Math.PI/3*v;var D=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(D);D=p+b*Math.sin(D);var G=TR(x,y,A,D);$APP.n($APP.l(c,G))||(c[G]=!0,G=e[0],d.push({x1:x,y1:y,x2:A,y2:D,depth:q,index:G}),e[0]=G+1);v+=1}else break;
9
- h+=1}else break;return[d,d.length]},WR=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+b*d,b]},YR=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},eS=function(a){a=new $APP.R(null,7,[$APP.Qi,a.getAttribute("progress"),$APP.Lj,a.getAttribute("variant"),$APP.Xk,a.getAttribute("color"),ZR,a.getAttribute("bloom"),$R,a.getAttribute("density"),aS,a.getAttribute("seed"),$APP.sh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.I(b,$APP.Qi);a=$APP.I(b,$APP.Lj);
10
- var d=$APP.I(b,$APP.Xk),e=$APP.I(b,ZR),g=$APP.I(b,$R),h=$APP.I(b,aS);b=$APP.I(b,$APP.sh);c=BR(c);var k=c==null,m=$APP.n(c)?c:0,p=!k&&m>=100;return $APP.mf([$APP.kk,$APP.Ci,$APP.jh,bS,cS,$APP.Pk,$APP.U,$APP.bk,$APP.Ej,$APP.mk,dS],[k,JR(d),DR(a),ER(e),HR(h),k?"Loading...":""+$APP.T.g(Math.round(m))+"%",IR(b),m,p,c,GR(g)])},fS=function(a,b,c){a=window.getComputedStyle(a).getPropertyValue(b).trim();return $APP.O(a,"")?a:c},gS=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();
11
- return $APP.O(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},iS=function(a,b,c){var d=$APP.N($APP.l(a,"__xOrganicProgressRefs")),e=$APP.I(d,hS);d=function(){var y=$APP.l(a,"__xOrganicProgressLines");return $APP.n(y)?y:[]}();for(var g=d.length,h=[],k=0;;)if(k<b){var m=k<g?d[k]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[k],q=$APP.l(p,"y1"),v=$APP.l(p,"x2"),x=$APP.l(p,"y2");m.setAttribute("x1",
12
- ""+$APP.T.g($APP.l(p,"x1")));m.setAttribute("y1",""+$APP.T.g(q));m.setAttribute("x2",""+$APP.T.g(v));m.setAttribute("y2",""+$APP.T.g(x));m.setAttribute("opacity","0");h.push(m);k+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},jS=function(a){var b=$APP.l(a,"__xOrganicProgressLines"),c=$APP.l(a,"__xOrganicProgressSegs"),d=$APP.l(a,"__xOrganicProgressSegN"),e=$APP.l(a,"__xOrganicProgressModel"),g=$APP.C.h($APP.jh.g(e),"honeycomb"),
13
- h=function(){var A=$APP.Ci.g(e);return $APP.n(A)?A:fS(a,"--x-organic-progress-color-primary",g?"#818cf8":"#22c55e")}(),k=fS(a,"--x-organic-progress-color-secondary",g?"#a5b4fc":"#16a34a"),m=gS(a,g?1.5:3);if(g)for(var p=0;;)if(p<d){var q=b[p],v=$APP.l(c[p],"depth");q.setAttribute("stroke-width",""+$APP.T.g(m));q.setAttribute("stroke",function(){switch(v){case 0:return h;case 1:return k;default:return k}}());q.setAttribute("stroke-linecap","round");q.setAttribute("stroke-opacity",function(){switch(v){case 0:return"0.9";
14
- case 1:return"0.7";default:return"0.5"}}());p+=1}else break;else for(p=0;;)if(p<d){q=b[p];var x=$APP.l(c[p],"depth"),y=x===0?h:k;q.setAttribute("stroke-width",""+$APP.T.g(Math.max(.5,m-x*.6)));q.setAttribute("stroke",y);q.setAttribute("stroke-linecap","round");q.setAttribute("stroke-opacity","1");p+=1}else break},kS=function(a){var b=$APP.l(a,"__xOrganicProgressSPos"),c=$APP.l(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.l(a,"__xOrganicProgressPV"),g=$APP.l(a,"__xOrganicProgressLines");
15
- if($APP.O(d,e)){c=Math.max(d,e<0?c:e);for(e=Math.min(d,e<0?0:e);;)if(e<c){var h=g[e];$APP.n(h)&&h.setAttribute("opacity",e<d?"1":"0");e+=1}else break;g=$APP.l(a,"__xOrganicProgressNodes");c=$APP.l(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},mS=function(a){var b=$APP.l(a,"__xOrganicProgressSegs"),c=$APP.l(a,"__xOrganicProgressSegN"),d=$APP.N($APP.l(a,
16
- "__xOrganicProgressRefs"));d=$APP.I(d,lS);var e=$APP.l(a,"__xOrganicProgressModel"),g=fS(a,"--x-organic-progress-bloom-color","#f472b6");e=KR(cS.g(e)+7);for(var h=[],k=0;;)if(k<c){var m=b[k];if($APP.l(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),q=$APP.l(m,"x2");m=$APP.l(m,"y2");var v=2*LR(e)-1,x=2*LR(e)-1;p.setAttribute("cx",""+$APP.T.g(q));p.setAttribute("cy",""+$APP.T.g(m));p.setAttribute("r","0");p.setAttribute("fill",g);p.setAttribute("opacity","0");p.setAttribute("class",
17
- "bloom-petal");p.__dx=v;p.__dy=x;d.appendChild(p);h.push(p)}k+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=!0;a.__xOrganicProgressBT=0},nS=function(a,b){b=$APP.l(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.N($APP.l(a,"__xOrganicProgressRefs"));b=$APP.I(b,lS);c=$APP.l(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=
18
- !1;a.dispatchEvent(new CustomEvent("x-organic-progress-bloom-end",{bubbles:!0,composed:!0,detail:{progress:100}}))}else for(a=$APP.l(a,"__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.l(g,"__dx")*b*8,k=$APP.l(g,"__dy")*b*8;g.setAttribute("r",""+$APP.T.g(b*2.5));g.setAttribute("opacity",""+$APP.T.g(c));g.setAttribute("transform","translate("+$APP.T.g(h)+","+$APP.T.g(k)+")");e+=1}else break},pS=function(a){a.__xOrganicProgressTime=
19
- 0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ma(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ma(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return oS(a)}))},qS=function(a){for(var b=$APP.l(a,"__xOrganicProgressModel"),c=$APP.l(a,"__xOrganicProgressSegN"),d=$APP.n($APP.kk.g(b))?50:$APP.bk.g(b),e=Math.floor(d/100*c),g=$APP.l(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var k=g[h];$APP.n(k)&&
20
- k.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.l(a,"__xOrganicProgressNodes");g=function(){var m=$APP.l(a,"__xOrganicProgressNN");return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)k=c[h],$APP.n(k)&&k.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.Ej.g(b);return $APP.n(m)?$APP.r($APP.l(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",
21
- {bubbles:!0,composed:!0,detail:{progress:100}})))},uS=function(a,b){var c=eS(a);a.__xOrganicProgressModel=c;a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.kk.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.T.g(Math.round($APP.bk.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.Pk.g(c)));
22
- var d=$APP.U.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.K(rS,b)){b=$APP.C.h($APP.jh.g(c),"honeycomb");d=$APP.qc(sS,dS.g(c),3);if(b)c=VR(cS.g(c),dS.g(c));else{a:{for(var e=new $APP.R(null,1,["F","F[+F]F[-F]F"],null),g="F",h=0;;){if(h>=d){d=g;break a}for(var k=[],m=g.length,p=0;;)if(p<m){var q=g.charAt(p),v=$APP.I(e,q);$APP.n(v)?k.push(v):k.push(q);p+=1}else break;h+=1;g=k.join("")}d=void 0}e=RR(cS.g(c));c=SR(d,e,cS.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=
23
- c;a.__xOrganicProgressSegN=d;iS(a,d,c);d=$APP.N($APP.l(a,"__xOrganicProgressRefs"));c=$APP.I(d,hS);d=$APP.I(d,$APP.ii);$APP.n(c)&&($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.r(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.N($APP.l(a,"__xOrganicProgressRefs"));b=$APP.I(b,tS);c=$APP.l(a,"__xOrganicProgressNodes");if($APP.n($APP.n(b)?c:b))for(d=c.length,e=0;;)if(e<d)g=c[e],$APP.n(g.parentNode)&&b.removeChild(g),e+=1;else break;
24
- a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=null;a.__xOrganicProgressNN=0;jS(a);a.__xOrganicProgressPV=-1;YR()&&qS(a)}},vS=function(a){Object.defineProperty(a,"progress",{get:function(){return BR(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return DR(this.getAttribute("variant"))},set:function(b){return b==null?
25
- this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return JR(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bloom",{get:function(){return ER(this.getAttribute("bloom"))},set:function(b){return $APP.n(b)?this.removeAttribute("bloom"):this.setAttribute("bloom",
26
- "false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"density",{get:function(){return GR(this.getAttribute("density"))},set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"seed",{get:function(){return HR(this.getAttribute("seed"))},set:function(b){return b==null?this.removeAttribute("seed"):this.setAttribute("seed",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,
27
- "label",{get:function(){return IR(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},yS=function(){var a=class extends HTMLElement{};a.observedAttributes=wS;a.prototype.connectedCallback=function(){this.__xOrganicProgressModel=eS(this);if(!$APP.n($APP.l(this,"__xOrganicProgressRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg",
28
- "svg"),e=document.createElementNS("http://www.w3.org/2000/svg","defs"),g=document.createElementNS("http://www.w3.org/2000/svg","g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),k=document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=xS;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");g.setAttribute("part","branches");g.setAttribute("filter","url(#"+$APP.T.g("x-organic-progress-gooey")+
29
- ")");h.setAttribute("part","nodes");k.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg","filter");var p=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),q=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id","x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");p.setAttribute("in","SourceGraphic");p.setAttribute("stdDeviation",
30
- ""+$APP.T.g(2));p.setAttribute("result","blur");q.setAttribute("in","blur");q.setAttribute("type","matrix");q.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);m.appendChild(q);e.appendChild(m);m=new $APP.R(null,3,[$APP.Dj,m,$APP.ii,p,$APP.Nk,q],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xOrganicProgressRefs=$APP.Hf($APP.kc([m,new $APP.R(null,5,[$APP.Jh,b,$APP.Ti,d,hS,g,tS,h,lS,k],null)]))}uS(this,
31
- null);jS(this);YR()?qS(this):pS(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xOrganicProgressRaf=null);if($APP.n($APP.l(this,"__xOrganicProgressBloom"))){b=$APP.N($APP.l(this,"__xOrganicProgressRefs"));b=$APP.I(b,lS);var c=$APP.l(this,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;this.__xOrganicProgressBEls=
32
- null;this.__xOrganicProgressBloom=!1}return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xOrganicProgressRefs"))&&(uS(this,b),$APP.K(rS,b)||jS(this));return null};vS(a.prototype);return a},zS=function(){$APP.n(customElements.get("x-organic-progress"))||customElements.define("x-organic-progress",yS());return null},tS=new $APP.M(null,"nodes-g","nodes-g",89420858),$R=new $APP.M(null,"density-raw","density-raw",1719413082),hS=new $APP.M(null,"branches-g",
33
- "branches-g",548989635),bS=new $APP.M(null,"bloom?","bloom?",-326837587),ZR=new $APP.M(null,"bloom-attr","bloom-attr",-1778398039),dS=new $APP.M(null,"density","density",-1664155941),cS=new $APP.M(null,"seed","seed",68613327),aS=new $APP.M(null,"seed-raw","seed-raw",2146438207),lS=new $APP.M(null,"blooms-g","blooms-g",-1476393864);var wS="progress variant color bloom density seed label".split(" ");$APP.Ed(["x-organic-progress-complete",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.mk,$APP.W],null),$APP.rk,!1],null),"x-organic-progress-bloom-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.mk,$APP.W],null),$APP.rk,!1],null)]);
34
- var CR=new $APP.S(null,new $APP.R(null,2,["honeycomb",null,"vine",null],null),null),FR=new $APP.S(null,new $APP.R(null,3,["dense",null,"normal",null,"sparse",null],null),null),sS=new $APP.R(null,3,["sparse",2,"normal",3,"dense",4],null),PR=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
2
+ var mW=function(a){return typeof a==="string"&&(a=a.trim(),$APP.O(a,""))?(a=parseFloat(a),$APP.r(isNaN(a))?null:Math.min(100,Math.max(0,a))):null},oW=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(nW,a)?a:"vine"},pW=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},rW=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(qW,a)?a:"normal"},sW=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
3
+ "number"&&$APP.t(isNaN(a))&&a>0?a:42):42},tW=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},uW=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},vW=function(a){a=(typeof a==="number"&&$APP.t(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},wW=function(a){var b=a[0];b^=b<<13;b^=b>>>17;b=b^b<<5|0;a[0]=b;return Math.abs(b)/2147483647},BW=function(a,b){var c=(a+b)*xW,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*yW,g=a-(d-e),h=b-(c-e),
4
+ k=g>h?1:0,m=g>h?0:1,p=g+-k-yW,q=h+-m-yW,w=g+-1-2*yW,x=h+-1-2*yW,y=d&255,A=c&255,C=.5-g*g-h*h,E=.5-p*p-q*q,H=.5-w*w-x*x;return 70*((C<0?0:function(){var F=C*C,K=zW[AW[y+AW[A&255]&255]&11];return F*F*(K[0]*g+K[1]*h)}())+(E<0?0:function(){var F=E*E,K=zW[AW[y+k+AW[A+m&255]&255]&11];return F*F*(K[0]*p+K[1]*q)}())+(H<0?0:function(){var F=H*H,K=zW[AW[y+1+AW[A+1&255]&255]&11];return F*F*(K[0]*w+K[1]*x)}()))},CW=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return BW(d+b,e+c)}},DW=function(a,b,
5
+ c){var d=[],e=[];c=vW(c);for(var g=[0],h=[20,100,0,0],k=a.length,m=0;;)if(m<k){switch(a.charAt(m)){case "F":var p=h[0],q=h[1],w=h[2],x=h[3],y=g[0],A=38*Math.pow(.7,x)*(.8+.4*wW(c)),C=function(){var H=y*.3;var F=x*.5;H=b.i?b.i(H,F):b.call(null,H,F);return w+.15*H}(),E=p+A*Math.cos(C);A=q+A*Math.sin(C);d.push({x1:p,y1:q,x2:E,y2:A,depth:x,index:y});h[0]=E;h[1]=A;g[0]=y+1;break;case "+":p=function(){var H=g[0]*.2;return b.i?b.i(H,100):b.call(null,H,100)}();h[2]-=.436+.1*p;break;case "-":p=function(){var H=
6
+ g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,F){var K=$APP.l(H,"x2")-20;H=$APP.l(H,"y2")-100;var X=$APP.l(F,"x2")-20;F=$APP.l(F,"y2")-100;return K*K+H*H-(X*X+F*F)});return[d,d.length]},EW=function(a,b,c,d){a=""+$APP.S.g(a.toFixed(1))+","+$APP.S.g(b.toFixed(1));c=""+$APP.S.g(c.toFixed(1))+","+$APP.S.g(d.toFixed(1));
7
+ return $APP.Tc(a,c)<0?""+$APP.S.g(a)+"-"+$APP.S.g(c):""+$APP.S.g(c)+"-"+$APP.S.g(a)},GW=function(a,b){b=$APP.Dc(FW,b,25);var c=vW(a),d=1.5*b,e=Math.sqrt(3)*b,g=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var k=Math.sqrt(17E4),m=-2;;)if(m<g){for(var p=m*d,q=$APP.Xd(m)?0:e/2,w=-2;;)if(w<h){var x=w*e+q;if(p>0-b&&p<800+b&&x>0-b&&x<200+b){var y=p-400,A=x-100;y=Math.sqrt(y*y+A*A);A=y*.7+wW(c)*.3*k;a.push({cx:p,cy:x,dist:y,key:A})}w+=1}else break;m+=1}else break;a.sort(function(H,F){return $APP.l(H,
8
+ "key")-$APP.l(F,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){q=a[h];m=$APP.l(q,"cx");p=$APP.l(q,"cy");q=Math.min(2,Math.floor($APP.l(q,"dist")*3/(k+.001)));for(w=0;;)if(w<6){y=Math.PI/3*w;var C=Math.PI/3*(w+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(C);C=p+b*Math.sin(C);var E=EW(x,y,A,C);$APP.r($APP.l(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:C,depth:q,index:E}),e[0]=E+1);w+=1}else break;h+=1}else break;return[d,d.length]},HW=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
9
+ b*d,b]},IW=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},PW=function(a){a=new $APP.P(null,7,[$APP.tj,a.getAttribute("progress"),$APP.Ak,a.getAttribute("variant"),$APP.Vl,a.getAttribute("color"),JW,a.getAttribute("bloom"),KW,a.getAttribute("density"),LW,a.getAttribute("seed"),$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,$APP.tj);a=$APP.G(b,$APP.Ak);var d=$APP.G(b,$APP.Vl),e=$APP.G(b,JW),g=$APP.G(b,KW),h=$APP.G(b,LW);b=$APP.G(b,$APP.Oh);
10
+ c=mW(c);var k=c==null,m=$APP.r(c)?c:0,p=!k&&m>=100;return $APP.Q([$APP.al,$APP.fj,$APP.Fh,MW,NW,$APP.Nl,$APP.T,$APP.Qk,$APP.rk,$APP.dl,OW],[k,uW(d),oW(a),pW(e),sW(h),k?"Loading...":""+$APP.S.g(Math.round(m))+"%",tW(b),m,p,c,rW(g)])},QW=function(a,b,c){a=window.getComputedStyle(a).getPropertyValue(b).trim();return $APP.O(a,"")?a:c},RW=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.O(a,"")?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},
11
+ TW=function(a,b,c){var d=$APP.N($APP.l(a,"__xOrganicProgressRefs")),e=$APP.G(d,SW);d=function(){var y=$APP.l(a,"__xOrganicProgressLines");return $APP.r(y)?y:[]}();for(var g=d.length,h=[],k=0;;)if(k<b){var m=k<g?d[k]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[k],q=$APP.l(p,"y1"),w=$APP.l(p,"x2"),x=$APP.l(p,"y2");m.setAttribute("x1",""+$APP.S.g($APP.l(p,"x1")));m.setAttribute("y1",""+$APP.S.g(q));
12
+ m.setAttribute("x2",""+$APP.S.g(w));m.setAttribute("y2",""+$APP.S.g(x));m.setAttribute("opacity","0");h.push(m);k+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},UW=function(a){var b=$APP.l(a,"__xOrganicProgressLines"),c=$APP.l(a,"__xOrganicProgressSegs"),d=$APP.l(a,"__xOrganicProgressSegN"),e=$APP.l(a,"__xOrganicProgressModel"),g=$APP.D.i($APP.Fh.g(e),"honeycomb"),h=function(){var A=$APP.fj.g(e);return $APP.r(A)?A:QW(a,"--x-organic-progress-color-primary",
13
+ g?"#818cf8":"#22c55e")}(),k=QW(a,"--x-organic-progress-color-secondary",g?"#a5b4fc":"#16a34a"),m=RW(a,g?1.5:3);if(g)for(var p=0;;)if(p<d){var q=b[p],w=$APP.l(c[p],"depth");q.setAttribute("stroke-width",""+$APP.S.g(m));q.setAttribute("stroke",function(){switch(w){case 0:return h;case 1:return k;default:return k}}());q.setAttribute("stroke-linecap","round");q.setAttribute("stroke-opacity",function(){switch(w){case 0:return"0.9";case 1:return"0.7";default:return"0.5"}}());p+=1}else break;else for(p=
14
+ 0;;)if(p<d){q=b[p];var x=$APP.l(c[p],"depth"),y=x===0?h:k;q.setAttribute("stroke-width",""+$APP.S.g(Math.max(.5,m-x*.6)));q.setAttribute("stroke",y);q.setAttribute("stroke-linecap","round");q.setAttribute("stroke-opacity","1");p+=1}else break},VW=function(a){var b=$APP.l(a,"__xOrganicProgressSPos"),c=$APP.l(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.l(a,"__xOrganicProgressPV"),g=$APP.l(a,"__xOrganicProgressLines");if($APP.O(d,e)){c=Math.max(d,e<0?c:e);for(e=Math.min(d,e<0?0:e);;)if(e<
15
+ c){var h=g[e];$APP.r(h)&&h.setAttribute("opacity",e<d?"1":"0");e+=1}else break;g=$APP.l(a,"__xOrganicProgressNodes");c=$APP.l(a,"__xOrganicProgressNN");c=$APP.r(c)?c:0;if($APP.r($APP.r(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.r(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},XW=function(a){var b=$APP.l(a,"__xOrganicProgressSegs"),c=$APP.l(a,"__xOrganicProgressSegN"),d=$APP.N($APP.l(a,"__xOrganicProgressRefs"));d=$APP.G(d,WW);var e=$APP.l(a,
16
+ "__xOrganicProgressModel"),g=QW(a,"--x-organic-progress-bloom-color","#f472b6");e=vW(NW.g(e)+7);for(var h=[],k=0;;)if(k<c){var m=b[k];if($APP.l(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),q=$APP.l(m,"x2");m=$APP.l(m,"y2");var w=2*wW(e)-1,x=2*wW(e)-1;p.setAttribute("cx",""+$APP.S.g(q));p.setAttribute("cy",""+$APP.S.g(m));p.setAttribute("r","0");p.setAttribute("fill",g);p.setAttribute("opacity","0");p.setAttribute("class","bloom-petal");p.__dx=w;p.__dy=x;d.appendChild(p);
17
+ h.push(p)}k+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=!0;a.__xOrganicProgressBT=0},YW=function(a,b){b=$APP.l(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.N($APP.l(a,"__xOrganicProgressRefs"));b=$APP.G(b,WW);c=$APP.l(a,"__xOrganicProgressBEls");if($APP.r(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.r(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1;a.dispatchEvent(new CustomEvent("x-organic-progress-bloom-end",
18
+ {bubbles:!0,composed:!0,detail:{progress:100}}))}else for(a=$APP.l(a,"__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.l(g,"__dx")*b*8,k=$APP.l(g,"__dy")*b*8;g.setAttribute("r",""+$APP.S.g(b*2.5));g.setAttribute("opacity",""+$APP.S.g(c));g.setAttribute("transform","translate("+$APP.S.g(h)+","+$APP.S.g(k)+")");e+=1}else break},$W=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.n(a,
19
+ "__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.n(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return ZW(a)}))},aX=function(a){for(var b=$APP.l(a,"__xOrganicProgressModel"),c=$APP.l(a,"__xOrganicProgressSegN"),d=$APP.r($APP.al.g(b))?50:$APP.Qk.g(b),e=Math.floor(d/100*c),g=$APP.l(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var k=g[h];$APP.r(k)&&k.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.l(a,
20
+ "__xOrganicProgressNodes");g=function(){var m=$APP.l(a,"__xOrganicProgressNN");return $APP.r(m)?m:0}();if($APP.r($APP.r(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)k=c[h],$APP.r(k)&&k.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.r(function(){var m=$APP.rk.g(b);return $APP.r(m)?$APP.t($APP.l(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})))},
21
+ eX=function(a,b){var c=PW(a);a.__xOrganicProgressModel=c;a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.r($APP.al.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.S.g(Math.round($APP.Qk.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.Nl.g(c)));var d=$APP.T.g(c);$APP.r(d)?a.setAttribute("aria-label",
22
+ d):a.removeAttribute("aria-label");if(b==null||$APP.J(bX,b)){b=$APP.D.i($APP.Fh.g(c),"honeycomb");d=$APP.Dc(cX,OW.g(c),3);if(b)c=GW(NW.g(c),OW.g(c));else{a:{for(var e=new $APP.P(null,1,["F","F[+F]F[-F]F"],null),g="F",h=0;;){if(h>=d){d=g;break a}for(var k=[],m=g.length,p=0;;)if(p<m){var q=g.charAt(p),w=$APP.G(e,q);$APP.r(w)?k.push(w):k.push(q);p+=1}else break;h+=1;g=k.join("")}d=void 0}e=CW(NW.g(c));c=DW(d,e,NW.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;TW(a,d,c);
23
+ d=$APP.N($APP.l(a,"__xOrganicProgressRefs"));c=$APP.G(d,SW);d=$APP.G(d,$APP.Ii);$APP.r(c)&&($APP.r(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.r($APP.r(d)?$APP.t(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.N($APP.l(a,"__xOrganicProgressRefs"));b=$APP.G(b,dX);c=$APP.l(a,"__xOrganicProgressNodes");if($APP.r($APP.r(b)?c:b))for(d=c.length,e=0;;)if(e<d)g=c[e],$APP.r(g.parentNode)&&b.removeChild(g),e+=1;else break;a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=
24
+ null;a.__xOrganicProgressNN=0;UW(a);a.__xOrganicProgressPV=-1;IW()&&aX(a)}},fX=function(a){Object.defineProperty(a,"progress",{get:function(){return mW(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return oW(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",
25
+ ""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return uW(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bloom",{get:function(){return pW(this.getAttribute("bloom"))},set:function(b){return $APP.r(b)?this.removeAttribute("bloom"):this.setAttribute("bloom","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,
26
+ "density",{get:function(){return rW(this.getAttribute("density"))},set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"seed",{get:function(){return sW(this.getAttribute("seed"))},set:function(b){return b==null?this.removeAttribute("seed"):this.setAttribute("seed",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return tW(this.getAttribute("label"))},
27
+ set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.S.g(b))},enumerable:!0,configurable:!0})},iX=function(){var a=class extends HTMLElement{};a.observedAttributes=gX;a.prototype.connectedCallback=function(){this.__xOrganicProgressModel=PW(this);if(!$APP.r($APP.l(this,"__xOrganicProgressRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg",
28
+ "defs"),g=document.createElementNS("http://www.w3.org/2000/svg","g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),k=document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=hX;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");g.setAttribute("part","branches");g.setAttribute("filter","url(#"+$APP.S.g("x-organic-progress-gooey")+")");h.setAttribute("part","nodes");
29
+ k.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg","filter");var p=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),q=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id","x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");p.setAttribute("in","SourceGraphic");p.setAttribute("stdDeviation",""+$APP.S.g(2));
30
+ p.setAttribute("result","blur");q.setAttribute("in","blur");q.setAttribute("type","matrix");q.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);m.appendChild(q);e.appendChild(m);m=new $APP.P(null,3,[$APP.qk,m,$APP.Ii,p,$APP.Kl,q],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xOrganicProgressRefs=$APP.Vf($APP.wc([m,new $APP.P(null,5,[$APP.bi,b,$APP.xj,d,SW,g,dX,h,WW,k],null)]))}eX(this,null);UW(this);
31
+ IW()?aX(this):$W(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xOrganicProgressRaf");$APP.r(b)&&(cancelAnimationFrame(b),this.__xOrganicProgressRaf=null);if($APP.r($APP.l(this,"__xOrganicProgressBloom"))){b=$APP.N($APP.l(this,"__xOrganicProgressRefs"));b=$APP.G(b,WW);var c=$APP.l(this,"__xOrganicProgressBEls");if($APP.r(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.r(g.parentNode)&&b.removeChild(g);e+=1}else break;this.__xOrganicProgressBEls=null;this.__xOrganicProgressBloom=
32
+ !1}return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xOrganicProgressRefs"))&&(eX(this,b),$APP.J(bX,b)||UW(this));return null};fX(a.prototype);return a},jX=function(){$APP.r(customElements.get("x-organic-progress"))||customElements.define("x-organic-progress",iX());return null},dX=new $APP.M(null,"nodes-g","nodes-g",89420858),KW=new $APP.M(null,"density-raw","density-raw",1719413082),SW=new $APP.M(null,"branches-g","branches-g",548989635),MW=new $APP.M(null,
33
+ "bloom?","bloom?",-326837587),JW=new $APP.M(null,"bloom-attr","bloom-attr",-1778398039),OW=new $APP.M(null,"density","density",-1664155941),NW=new $APP.M(null,"seed","seed",68613327),LW=new $APP.M(null,"seed-raw","seed-raw",2146438207),WW=new $APP.M(null,"blooms-g","blooms-g",-1476393864);var gX="progress variant color bloom density seed label".split(" ");$APP.Sd(["x-organic-progress-complete",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-organic-progress-bloom-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null)]);
34
+ var nW=new $APP.R(null,new $APP.P(null,2,["honeycomb",null,"vine",null],null),null),qW=new $APP.R(null,new $APP.P(null,3,["dense",null,"normal",null,"sparse",null],null),null),cX=new $APP.P(null,3,["sparse",2,"normal",3,"dense",4],null),AW=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
35
35
  83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,
36
- 107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],OR=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],MR=(Math.sqrt(3)-1)/2,NR=(3-Math.sqrt(3))/6,UR=new $APP.R(null,3,["sparse",40,"normal",25,"dense",16],null);var xS=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.T.g("--x-organic-progress-color-primary")+":#22c55e;"+$APP.T.g("--x-organic-progress-color-secondary")+":#16a34a;"+$APP.T.g("--x-organic-progress-bloom-color")+":#f472b6;"+$APP.T.g("--x-organic-progress-bg")+":transparent;"+$APP.T.g("--x-organic-progress-branch-width")+":3;"+$APP.T.g("--x-organic-progress-glow")+":2;"+$APP.T.g("--x-organic-progress-opacity")+":1;background:var("+$APP.T.g("--x-organic-progress-bg")+
37
- ",transparent);opacity:var("+$APP.T.g("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:#4ade80;--x-organic-progress-color-secondary:#22c55e;--x-organic-progress-bloom-color:#f9a8d4;}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",oS=function oS(a){if($APP.n(a.isConnected)){var c=$APP.l(a,
38
- "__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.l(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.l(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.kk.g(c))?50+20*Math.sin($APP.l(a,"__xOrganicProgressTime")*1.5):$APP.bk.g(c);d=WR($APP.l(a,"__xOrganicProgressSPos"),d,$APP.l(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];kS(a);$APP.n(function(){var g=$APP.Ej.g(c);return $APP.n(g)?$APP.r($APP.l(a,"__xOrganicProgressDone")):
39
- g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.n(bS.g(c))&&mS(a));$APP.n(function(){var g=$APP.r($APP.Ej.g(c));return g?(g=$APP.l(a,"__xOrganicProgressDone"),$APP.n(g)?$APP.r($APP.l(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.l(a,"__xOrganicProgressBloom"))&&nS(a,e);$APP.ma(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return oS.g?oS.g(a):oS.call(null,
40
- a)}))}return null},rS=$APP.Kf(["variant","density","seed"]);$APP.ja("baredom.exports.x_organic_progress.init",zS);export const init=zS;
36
+ 107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],zW=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],xW=(Math.sqrt(3)-1)/2,yW=(3-Math.sqrt(3))/6,FW=new $APP.P(null,3,["sparse",40,"normal",25,"dense",16],null);var hX=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.S.g("--x-organic-progress-color-primary")+":#22c55e;"+$APP.S.g("--x-organic-progress-color-secondary")+":#16a34a;"+$APP.S.g("--x-organic-progress-bloom-color")+":#f472b6;"+$APP.S.g("--x-organic-progress-bg")+":transparent;"+$APP.S.g("--x-organic-progress-branch-width")+":3;"+$APP.S.g("--x-organic-progress-glow")+":2;"+$APP.S.g("--x-organic-progress-opacity")+":1;background:var("+$APP.S.g("--x-organic-progress-bg")+
37
+ ",transparent);opacity:var("+$APP.S.g("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:#4ade80;--x-organic-progress-color-secondary:#22c55e;--x-organic-progress-bloom-color:#f9a8d4;}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",ZW=function ZW(a){if($APP.r(a.isConnected)){var c=$APP.l(a,
38
+ "__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.l(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.l(a,"__xOrganicProgressTime")+e;d=$APP.r($APP.al.g(c))?50+20*Math.sin($APP.l(a,"__xOrganicProgressTime")*1.5):$APP.Qk.g(c);d=HW($APP.l(a,"__xOrganicProgressSPos"),d,$APP.l(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];VW(a);$APP.r(function(){var g=$APP.rk.g(c);return $APP.r(g)?$APP.t($APP.l(a,"__xOrganicProgressDone")):
39
+ g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.r(MW.g(c))&&XW(a));$APP.r(function(){var g=$APP.t($APP.rk.g(c));return g?(g=$APP.l(a,"__xOrganicProgressDone"),$APP.r(g)?$APP.t($APP.l(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.r($APP.l(a,"__xOrganicProgressBloom"))&&YW(a,e);$APP.n(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return ZW.g?ZW.g(a):ZW.call(null,
40
+ a)}))}return null},bX=$APP.Yf(["variant","density","seed"]);$APP.ka("baredom.exports.x_organic_progress.init",jX);export const init=jX;
@@ -1,15 +1,15 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var TA=function(a){return typeof a==="string"&&$APP.K(SA,a)?a:"blob-1"},UA=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},VA=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-organic-shape-fill:rgba(99,102,241,0.12);--x-organic-shape-stroke:transparent;--x-organic-shape-stroke-width:0;--x-organic-shape-opacity:1;--x-organic-shape-shadow:none;--x-organic-shape-animate-duration:8s;--x-organic-shape-animate-timing:ease-in-out;--x-organic-shape-animate-direction:normal;--x-organic-shape-animate-delay:0s;}@media (prefers-color-scheme:dark){:host{--x-organic-shape-fill:rgba(129,140,248,0.18);}}[part\x3dshape]{width:100%;height:100%;position:relative;overflow:hidden;background:var(--x-organic-shape-fill);outline:var(--x-organic-shape-stroke-width) solid var(--x-organic-shape-stroke);outline-offset:calc(-1 * var(--x-organic-shape-stroke-width));opacity:var(--x-organic-shape-opacity);filter:var(--x-organic-shape-shadow);display:flex;align-items:center;justify-content:center;transition:clip-path 0.3s ease,opacity 0.3s ease;}@keyframes x-organic-shape-morph{0%,100%{clip-path:var(--x-organic-shape-clip);}50%{clip-path:var(--x-organic-shape-clip-alt);}}@keyframes x-organic-shape-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}@keyframes x-organic-shape-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-6%);}}@keyframes x-organic-shape-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}:host([data-animation\x3dmorph]) [part\x3dshape]{animation:x-organic-shape-morph var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dpulse]) [part\x3dshape]{animation:x-organic-shape-pulse var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dfloat]) [part\x3dshape]{animation:x-organic-shape-float var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dspin]) [part\x3dshape]{animation:x-organic-shape-spin var(--x-organic-shape-animate-duration) linear var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dshape]{animation:none;}}";
3
- d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},WA=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},bB=function(a){var b=new $APP.R(null,6,[$APP.Si,a.getAttribute("shape"),$APP.xj,a.getAttribute("path"),$APP.oi,a.getAttribute("animation"),
4
- XA,a.getAttribute("ratio"),$APP.lj,a.getAttribute("width"),$APP.Mi,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.I(c,$APP.Si),e=$APP.I(c,$APP.xj),g=$APP.I(c,$APP.oi),h=$APP.I(c,XA);b=$APP.I(c,$APP.lj);c=$APP.I(c,$APP.Mi);e=typeof e==="string"&&$APP.O("",e.trim())?e.trim():null;d=TA(d);var k=typeof g==="string"&&$APP.K(YA,g)?g:"none";g=e!=null?e:$APP.Vd(ZA,new $APP.Q(null,2,5,$APP.fe,[TA(d),$A],null));var m=e==null?$APP.Vd(ZA,new $APP.Q(null,2,5,$APP.fe,[TA(d),aB],null)):null;k=$APP.C.h(k,
5
- "morph")&&m==null?"none":k;h=typeof h==="string"&&$APP.O("",h.trim())?h.trim():"1/1";b=new $APP.R(null,8,[$APP.Si,d,$APP.xj,e,$A,g,aB,m,$APP.oi,k,XA,h,$APP.lj,UA(b),$APP.Mi,UA(c)],null);g=$APP.N(b);b=$APP.I(g,$A);h=$APP.I(g,aB);c=$APP.I(g,$APP.oi);e=$APP.I(g,XA);d=$APP.I(g,$APP.lj);g=$APP.I(g,$APP.Mi);m=$APP.l(a,"__xOrganicShapeBase");k=$APP.l(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.n(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):m.style.removeProperty("--x-organic-shape-clip-alt");
6
- m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.O(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");WA(a,k)},cB=function(a){function b(){return WA(a,c)}$APP.n($APP.l(a,"__xOrganicShapeInit"))||VA(a);var c=$APP.l(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
7
- b);bB(a)},dB=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0});
8
- Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.n(b)?b:"1/1"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("ratio",b):this.removeAttribute("ratio")},enumerable:!0,
9
- configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,
10
- configurable:!0})},fB=function(){var a=class extends HTMLElement{};a.observedAttributes=eB;a.prototype.connectedCallback=function(){cB(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xOrganicShapeSlot"),c=$APP.l(this,"__xOrganicShapeSlotHandler");return $APP.n($APP.n(b)?c:b)?b.removeEventListener("slotchange",c):null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xOrganicShapeInit"))&&bB(this);return null};dB(a.prototype);
11
- return a},gB=function(){$APP.n(customElements.get("x-organic-shape"))||customElements.define("x-organic-shape",fB());return null},XA=new $APP.M(null,"ratio","ratio",-926560044),$A=new $APP.M(null,"clip","clip",830998499),aB=new $APP.M(null,"clip-alt","clip-alt",-684562835);var eB="shape path animation ratio width height".split(" "),YA=new $APP.S(null,new $APP.R(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),SA=new $APP.S(null,new $APP.R(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),ZA=new $APP.R(null,8,["blob-1",new $APP.R(null,2,[$A,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",aB,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
12
- null),"blob-2",new $APP.R(null,2,[$A,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",aB,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.R(null,2,[$A,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",aB,"polygon(25% 5%, 75% 5%, 95% 25%, 100% 55%, 85% 85%, 65% 95%, 35% 95%, 15% 85%, 0% 55%, 5% 25%)"],null),"pebble",new $APP.R(null,2,[$A,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
13
- aB,"polygon(50% 5%, 75% 12%, 93% 32%, 96% 58%, 82% 85%, 52% 96%, 28% 90%, 8% 62%, 5% 38%, 25% 12%)"],null),"leaf",new $APP.R(null,2,[$A,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",aB,"polygon(50% 3%, 78% 18%, 95% 42%, 88% 72%, 62% 95%, 50% 97%, 38% 95%, 12% 72%, 5% 42%, 22% 18%)"],null),"droplet",new $APP.R(null,2,[$A,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",aB,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
14
- null),"cloud",new $APP.R(null,2,[$A,"polygon(10% 60%, 0% 45%, 5% 30%, 18% 20%, 32% 15%, 45% 8%, 58% 12%, 72% 8%, 85% 18%, 95% 32%, 100% 50%, 95% 65%, 80% 75%, 55% 80%, 30% 78%, 15% 72%)",aB,"polygon(12% 58%, 2% 43%, 8% 28%, 20% 18%, 35% 12%, 48% 10%, 60% 14%, 75% 10%, 88% 20%, 97% 35%, 98% 52%, 92% 68%, 78% 78%, 52% 82%, 28% 80%, 13% 70%)"],null),"wave",new $APP.R(null,2,[$A,"polygon(0% 35%, 15% 20%, 30% 30%, 50% 15%, 70% 28%, 85% 18%, 100% 30%, 100% 75%, 85% 85%, 70% 72%, 50% 85%, 30% 75%, 15% 82%, 0% 70%)",
15
- aB,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ja("baredom.exports.x_organic_shape.init",gB);export const init=gB;
2
+ var lE=function(a){return typeof a==="string"&&$APP.J(kE,a)?a:"blob-1"},mE=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},nE=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-organic-shape-fill:rgba(99,102,241,0.12);--x-organic-shape-stroke:transparent;--x-organic-shape-stroke-width:0;--x-organic-shape-opacity:1;--x-organic-shape-shadow:none;--x-organic-shape-animate-duration:8s;--x-organic-shape-animate-timing:ease-in-out;--x-organic-shape-animate-direction:normal;--x-organic-shape-animate-delay:0s;}@media (prefers-color-scheme:dark){:host{--x-organic-shape-fill:rgba(129,140,248,0.18);}}[part\x3dshape]{width:100%;height:100%;position:relative;overflow:hidden;background:var(--x-organic-shape-fill);outline:var(--x-organic-shape-stroke-width) solid var(--x-organic-shape-stroke);outline-offset:calc(-1 * var(--x-organic-shape-stroke-width));opacity:var(--x-organic-shape-opacity);filter:var(--x-organic-shape-shadow);display:flex;align-items:center;justify-content:center;transition:clip-path 0.3s ease,opacity 0.3s ease;}@keyframes x-organic-shape-morph{0%,100%{clip-path:var(--x-organic-shape-clip);}50%{clip-path:var(--x-organic-shape-clip-alt);}}@keyframes x-organic-shape-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}@keyframes x-organic-shape-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-6%);}}@keyframes x-organic-shape-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}:host([data-animation\x3dmorph]) [part\x3dshape]{animation:x-organic-shape-morph var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dpulse]) [part\x3dshape]{animation:x-organic-shape-pulse var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dfloat]) [part\x3dshape]{animation:x-organic-shape-float var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dspin]) [part\x3dshape]{animation:x-organic-shape-spin var(--x-organic-shape-animate-duration) linear var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dshape]{animation:none;}}";
3
+ d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},oE=function(a,b){if($APP.r($APP.r(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},uE=function(a){var b=new $APP.P(null,6,[$APP.wj,a.getAttribute("shape"),$APP.ak,a.getAttribute("path"),$APP.Oi,a.getAttribute("animation"),
4
+ pE,a.getAttribute("ratio"),$APP.Lj,a.getAttribute("width"),$APP.pj,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.G(c,$APP.wj),e=$APP.G(c,$APP.ak),g=$APP.G(c,$APP.Oi),h=$APP.G(c,pE);b=$APP.G(c,$APP.Lj);c=$APP.G(c,$APP.pj);e=typeof e==="string"&&$APP.O("",e.trim())?e.trim():null;d=lE(d);var k=typeof g==="string"&&$APP.J(qE,g)?g:"none";g=e!=null?e:$APP.ke(rE,new $APP.ve(null,2,5,$APP.we,[lE(d),sE],null));var m=e==null?$APP.ke(rE,new $APP.ve(null,2,5,$APP.we,[lE(d),tE],null)):null;k=$APP.D.i(k,
5
+ "morph")&&m==null?"none":k;h=typeof h==="string"&&$APP.O("",h.trim())?h.trim():"1/1";b=new $APP.P(null,8,[$APP.wj,d,$APP.ak,e,sE,g,tE,m,$APP.Oi,k,pE,h,$APP.Lj,mE(b),$APP.pj,mE(c)],null);g=$APP.N(b);b=$APP.G(g,sE);h=$APP.G(g,tE);c=$APP.G(g,$APP.Oi);e=$APP.G(g,pE);d=$APP.G(g,$APP.Lj);g=$APP.G(g,$APP.pj);m=$APP.l(a,"__xOrganicShapeBase");k=$APP.l(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.r(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):m.style.removeProperty("--x-organic-shape-clip-alt");
6
+ m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.r(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.r(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.O(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");oE(a,k)},vE=function(a){function b(){return oE(a,c)}$APP.r($APP.l(a,"__xOrganicShapeInit"))||nE(a);var c=$APP.l(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
7
+ b);uE(a)},wE=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.r(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0});
8
+ Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.r(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.r(b)?b:"1/1"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("ratio",b):this.removeAttribute("ratio")},enumerable:!0,
9
+ configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.r(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,
10
+ configurable:!0})},yE=function(){var a=class extends HTMLElement{};a.observedAttributes=xE;a.prototype.connectedCallback=function(){vE(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xOrganicShapeSlot"),c=$APP.l(this,"__xOrganicShapeSlotHandler");return $APP.r($APP.r(b)?c:b)?b.removeEventListener("slotchange",c):null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xOrganicShapeInit"))&&uE(this);return null};wE(a.prototype);
11
+ return a},zE=function(){$APP.r(customElements.get("x-organic-shape"))||customElements.define("x-organic-shape",yE());return null},pE=new $APP.M(null,"ratio","ratio",-926560044),sE=new $APP.M(null,"clip","clip",830998499),tE=new $APP.M(null,"clip-alt","clip-alt",-684562835);var xE="shape path animation ratio width height".split(" "),qE=new $APP.R(null,new $APP.P(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),kE=new $APP.R(null,new $APP.P(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),rE=new $APP.P(null,8,["blob-1",new $APP.P(null,2,[sE,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",tE,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
12
+ null),"blob-2",new $APP.P(null,2,[sE,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",tE,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.P(null,2,[sE,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",tE,"polygon(25% 5%, 75% 5%, 95% 25%, 100% 55%, 85% 85%, 65% 95%, 35% 95%, 15% 85%, 0% 55%, 5% 25%)"],null),"pebble",new $APP.P(null,2,[sE,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
13
+ tE,"polygon(50% 5%, 75% 12%, 93% 32%, 96% 58%, 82% 85%, 52% 96%, 28% 90%, 8% 62%, 5% 38%, 25% 12%)"],null),"leaf",new $APP.P(null,2,[sE,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",tE,"polygon(50% 3%, 78% 18%, 95% 42%, 88% 72%, 62% 95%, 50% 97%, 38% 95%, 12% 72%, 5% 42%, 22% 18%)"],null),"droplet",new $APP.P(null,2,[sE,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",tE,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
14
+ null),"cloud",new $APP.P(null,2,[sE,"polygon(10% 60%, 0% 45%, 5% 30%, 18% 20%, 32% 15%, 45% 8%, 58% 12%, 72% 8%, 85% 18%, 95% 32%, 100% 50%, 95% 65%, 80% 75%, 55% 80%, 30% 78%, 15% 72%)",tE,"polygon(12% 58%, 2% 43%, 8% 28%, 20% 18%, 35% 12%, 48% 10%, 60% 14%, 75% 10%, 88% 20%, 97% 35%, 98% 52%, 92% 68%, 78% 78%, 52% 82%, 28% 80%, 13% 70%)"],null),"wave",new $APP.P(null,2,[sE,"polygon(0% 35%, 15% 20%, 30% 30%, 50% 15%, 70% 28%, 85% 18%, 100% 30%, 100% 75%, 85% 85%, 70% 72%, 50% 85%, 30% 75%, 15% 82%, 0% 70%)",
15
+ tE,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ka("baredom.exports.x_organic_shape.init",zE);export const init=zE;
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gE=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Lc($APP.za,$APP.Rg,0<b.length?new $APP.Jb(b.slice(0),0,null):null)},hE=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},mE=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
- var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.R(null,2,[iE,g,jE,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
- k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.R(null,2,[iE,h,jE,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
- d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(iE.g(g));e.appendChild(iE.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.R(null,6,[$APP.Eh,d,$APP.Bj,e,kE,iE.g(g),$APP.ci,jE.g(g),lE,iE.g(h),$APP.ah,jE.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},nE=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.T.g(a));e.setAttribute("part",
6
- "button button-page");e.setAttribute("aria-label","Page "+$APP.T.g(a));e.setAttribute("data-page",""+$APP.T.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.T.g(a);d.appendChild(e);return d},oE=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
- "…";a.appendChild(b);return a},yE=function(a){a=new $APP.R(null,7,[pE,a.getAttribute("page"),qE,a.getAttribute("total-pages"),rE,a.getAttribute("sibling-count"),sE,a.getAttribute("boundary-count"),$APP.hk,a.getAttribute("size"),$APP.ck,a.hasAttribute("disabled"),$APP.sh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.I(b,pE),d=$APP.I(b,qE),e=$APP.I(b,rE),g=$APP.I(b,sE),h=$APP.I(b,$APP.hk);a=$APP.I(b,$APP.ck);b=$APP.I(b,$APP.sh);d=hE(d);c=$APP.Fg.h(1,$APP.Gg.h(hE(c),d));if(typeof e==="string"){e=
8
- parseInt(e,10);var k=isFinite(e);e=$APP.n($APP.n(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.n($APP.n(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.K(tE,h)?h:"md";return new $APP.R(null,7,[uE,c,vE,d,wE,g,xE,e,$APP.Wg,h,$APP.Di,$APP.J(a),$APP.U,$APP.n(b)?b:"Pagination"],null)},BE=function(a){var b=mE(a),c=$APP.Bj.g(b),d=$APP.Eh.g(b),e=$APP.ci.g(b),g=$APP.ah.g(b),h=kE.g(b);b=lE.g(b);var k=yE(a),m=$APP.N(k),p=$APP.I(m,uE),
9
- q=$APP.I(m,vE),v=$APP.I(m,wE),x=$APP.I(m,xE),y=$APP.I(m,$APP.Wg);m=$APP.I(m,$APP.U);a:if(q<=0)q=$APP.Td;else{var A=$APP.Gg.h(x,q);x=$APP.Fg.h(q-x- -1,1);var D=$APP.Fg.h(1,p-v);v=$APP.Gg.h(q,p+v);q=$APP.Je.h($APP.Je.h($APP.Je.h(gE(),$APP.Uf(1,A+1)),$APP.Uf(x,q+1)),$APP.Uf(D,v+1));q=$APP.ke(q);D=$APP.Td;for(v=0;;){if(v>=$APP.B(q)){q=D;break a}A=$APP.fc(q,v);var G=x=v>0?$APP.fc(q,v-1):null;x=$APP.n($APP.n(G)?A>x+1:G)?$APP.ad.h(D,new $APP.R(null,1,[$APP.Z,zE],null)):D;A=$APP.ad.h(x,new $APP.R(null,2,
10
- [$APP.Z,uE,AE,A],null));v+=1;D=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.N(k);a=$APP.I(d,uE);d=$APP.I(d,$APP.Di);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.N(k);e=$APP.I(d,uE);a=$APP.I(d,vE);d=$APP.I(d,$APP.Di);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(q);h=null;for(a=e=0;;)if(a<e)d=h.G(null,a),$APP.C.h(zE,$APP.Z.g(d))?c.appendChild(oE()):
11
- c.appendChild(nE(AE.g(d),$APP.C.h(AE.g(d),p),$APP.Di.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.Cc(h)?(g=$APP.qb(h),a=$APP.rb(h),h=g,e=$APP.B(g),g=a):(g=$APP.w(h),$APP.C.h(zE,$APP.Z.g(g))?c.appendChild(oE()):c.appendChild(nE(AE.g(g),$APP.C.h(AE.g(g),p),$APP.Di.g(k))),g=$APP.z(h),h=null,e=0),a=0;else break;c.appendChild(b)},CE=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},DE=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
- d=0;;)if(d<c){var e=b[d];if($APP.C.h("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.r(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=$APP.ci.g(d);d=$APP.ah.g(d);e=b.getAttribute("data-page");if(b===c)return c=yE(a),b=uE.g(c),b>1?CE(a,b-1):null;if(b===d)return c=yE(a),b=uE.g(c),c=vE.g(c),b<c?CE(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?CE(a,b):null}return null},EE=function(a){function b(d){return DE(a,
13
- d)}var c=mE(a);$APP.Bj.g(c).addEventListener("click",b);$APP.ma(a,"__xPaginationHandlers",{click:b})},FE=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.Bj.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},GE=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",
14
- ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},HE=function(a,b,c){Object.defineProperty(a,b,{get:function(){return hE(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},IE=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.n(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.T.g(e)):this.removeAttribute(c)},enumerable:!0,
15
- configurable:!0})},JE=function(a){HE(a,"page","page");HE(a,"total-pages","total-pages");HE(a,"sibling-count","sibling-count");HE(a,"boundary-count","boundary-count");IE(a,"size","size","md");GE(a);IE(a,"label","label","Pagination")},LE=function(){var a=class extends HTMLElement{};a.observedAttributes=KE;a.prototype.connectedCallback=function(){mE(this);FE(this);EE(this);BE(this);return null};a.prototype.disconnectedCallback=function(){FE(this);return null};a.prototype.attributeChangedCallback=function(b,
16
- c,d){$APP.O(c,d)&&BE(this);return null};JE(a.prototype);return a},ME=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",LE());return null},qE=new $APP.M(null,"total-pages-raw","total-pages-raw",430880208),xE=new $APP.M(null,"boundary-count","boundary-count",1637925987),sE=new $APP.M(null,"boundary-count-raw","boundary-count-raw",410083250),vE=new $APP.M(null,"total-pages","total-pages",685894112),uE=new $APP.M(null,"page","page",849072397),lE=new $APP.M(null,
17
- "next-li","next-li",648524823),jE=new $APP.M(null,"btn","btn",1978294651),kE=new $APP.M(null,"prev-li","prev-li",940258334),pE=new $APP.M(null,"page-raw","page-raw",-1198808870),iE=new $APP.M(null,"li","li",723558921),zE=new $APP.M(null,"ellipsis","ellipsis",998505738),AE=new $APP.M(null,"n","n",562130025),rE=new $APP.M(null,"sibling-count-raw","sibling-count-raw",-620117200),wE=new $APP.M(null,"sibling-count","sibling-count",1756034573);var KE="page total-pages sibling-count boundary-count size disabled label".split(" "),tE=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ja("baredom.exports.x_pagination.init",ME);export const init=ME;
2
+ var dH=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Zc($APP.Aa,$APP.lh,0<b.length?new $APP.Vb(b.slice(0),0,null):null)},eH=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.r($APP.r(b)?a>0:b)?a:1}return 1},jH=function(a){var b=$APP.l(a,"__xPaginationRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
+ var g=document.createElement("li");var h=document.createElement("button"),k=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");k.setAttribute("name","prev");k.textContent="Prev";h.appendChild(k);g.appendChild(h);g=new $APP.P(null,2,[fH,g,gH,h],null);h=document.createElement("li");k=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
+ k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.P(null,2,[fH,h,gH,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
+ d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(fH.g(g));e.appendChild(fH.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.P(null,6,[$APP.Xh,d,$APP.lk,e,hH,fH.g(g),$APP.Ci,gH.g(g),iH,fH.g(h),$APP.wh,gH.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},kH=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.S.g(a));e.setAttribute("part",
6
+ "button button-page");e.setAttribute("aria-label","Page "+$APP.S.g(a));e.setAttribute("data-page",""+$APP.S.g(a));$APP.r(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.r(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.S.g(a);d.appendChild(e);return d},lH=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
+ "…";a.appendChild(b);return a},vH=function(a){a=new $APP.P(null,7,[mH,a.getAttribute("page"),nH,a.getAttribute("total-pages"),oH,a.getAttribute("sibling-count"),pH,a.getAttribute("boundary-count"),$APP.Yk,a.getAttribute("size"),$APP.Rk,a.hasAttribute("disabled"),$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,mH),d=$APP.G(b,nH),e=$APP.G(b,oH),g=$APP.G(b,pH),h=$APP.G(b,$APP.Yk);a=$APP.G(b,$APP.Rk);b=$APP.G(b,$APP.Oh);d=eH(d);c=$APP.Yg.i(1,$APP.Zg.i(eH(c),d));if(typeof e==="string"){e=
8
+ parseInt(e,10);var k=isFinite(e);e=$APP.r($APP.r(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.r($APP.r(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.J(qH,h)?h:"md";return new $APP.P(null,7,[rH,c,sH,d,tH,g,uH,e,$APP.rh,h,$APP.gj,$APP.I(a),$APP.T,$APP.r(b)?b:"Pagination"],null)},yH=function(a){var b=jH(a),c=$APP.lk.g(b),d=$APP.Xh.g(b),e=$APP.Ci.g(b),g=$APP.wh.g(b),h=hH.g(b);b=iH.g(b);var k=vH(a),m=$APP.N(k),p=$APP.G(m,rH),
9
+ q=$APP.G(m,sH),w=$APP.G(m,tH),x=$APP.G(m,uH),y=$APP.G(m,$APP.rh);m=$APP.G(m,$APP.T);a:if(q<=0)q=$APP.ie;else{var A=$APP.Zg.i(x,q);x=$APP.Yg.i(q-x- -1,1);var C=$APP.Yg.i(1,p-w);w=$APP.Zg.i(q,p+w);q=$APP.af.i($APP.af.i($APP.af.i(dH(),$APP.kg(1,A+1)),$APP.kg(x,q+1)),$APP.kg(C,w+1));q=$APP.Be(q);C=$APP.ie;for(w=0;;){if(w>=$APP.B(q)){q=C;break a}A=$APP.rc(q,w);var E=x=w>0?$APP.rc(q,w-1):null;x=$APP.r($APP.r(E)?A>x+1:E)?$APP.od.i(C,new $APP.P(null,1,[$APP.Z,wH],null)):C;A=$APP.od.i(x,new $APP.P(null,2,
10
+ [$APP.Z,rH,xH,A],null));w+=1;C=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.N(k);a=$APP.G(d,rH);d=$APP.G(d,$APP.gj);$APP.r($APP.r(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.N(k);e=$APP.G(d,rH);a=$APP.G(d,sH);d=$APP.G(d,$APP.gj);$APP.r($APP.r(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(q);h=null;for(a=e=0;;)if(a<e)d=h.G(null,a),$APP.D.i(wH,$APP.Z.g(d))?c.appendChild(lH()):
11
+ c.appendChild(kH(xH.g(d),$APP.D.i(xH.g(d),p),$APP.gj.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.Pc(h)?(g=$APP.yb(h),a=$APP.zb(h),h=g,e=$APP.B(g),g=a):(g=$APP.v(h),$APP.D.i(wH,$APP.Z.g(g))?c.appendChild(lH()):c.appendChild(kH(xH.g(g),$APP.D.i(xH.g(g),p),$APP.gj.g(k))),g=$APP.z(h),h=null,e=0),a=0;else break;c.appendChild(b)},zH=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},AH=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
+ d=0;;)if(d<c){var e=b[d];if($APP.D.i("BUTTON",$APP.r(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.r($APP.r(b)?$APP.t(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=$APP.Ci.g(d);d=$APP.wh.g(d);e=b.getAttribute("data-page");if(b===c)return c=vH(a),b=rH.g(c),b>1?zH(a,b-1):null;if(b===d)return c=vH(a),b=rH.g(c),c=sH.g(c),b<c?zH(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.r(isFinite(b))?zH(a,b):null}return null},BH=function(a){function b(d){return AH(a,
13
+ d)}var c=jH(a);$APP.lk.g(c).addEventListener("click",b);$APP.n(a,"__xPaginationHandlers",{click:b})},CH=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.r(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.r(c)&&(c=$APP.lk.g(c),b=$APP.l(b,"click"),$APP.r($APP.r(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},DH=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",
14
+ ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},EH=function(a,b,c){Object.defineProperty(a,b,{get:function(){return eH(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},FH=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.r(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.S.g(e)):this.removeAttribute(c)},enumerable:!0,
15
+ configurable:!0})},GH=function(a){EH(a,"page","page");EH(a,"total-pages","total-pages");EH(a,"sibling-count","sibling-count");EH(a,"boundary-count","boundary-count");FH(a,"size","size","md");DH(a);FH(a,"label","label","Pagination")},IH=function(){var a=class extends HTMLElement{};a.observedAttributes=HH;a.prototype.connectedCallback=function(){jH(this);CH(this);BH(this);yH(this);return null};a.prototype.disconnectedCallback=function(){CH(this);return null};a.prototype.attributeChangedCallback=function(b,
16
+ c,d){$APP.O(c,d)&&yH(this);return null};GH(a.prototype);return a},JH=function(){$APP.r(customElements.get("x-pagination"))||customElements.define("x-pagination",IH());return null},nH=new $APP.M(null,"total-pages-raw","total-pages-raw",430880208),uH=new $APP.M(null,"boundary-count","boundary-count",1637925987),pH=new $APP.M(null,"boundary-count-raw","boundary-count-raw",410083250),sH=new $APP.M(null,"total-pages","total-pages",685894112),rH=new $APP.M(null,"page","page",849072397),iH=new $APP.M(null,
17
+ "next-li","next-li",648524823),gH=new $APP.M(null,"btn","btn",1978294651),hH=new $APP.M(null,"prev-li","prev-li",940258334),mH=new $APP.M(null,"page-raw","page-raw",-1198808870),fH=new $APP.M(null,"li","li",723558921),wH=new $APP.M(null,"ellipsis","ellipsis",998505738),xH=new $APP.M(null,"n","n",562130025),oH=new $APP.M(null,"sibling-count-raw","sibling-count-raw",-620117200),tH=new $APP.M(null,"sibling-count","sibling-count",1756034573);var HH="page total-pages sibling-count boundary-count size disabled label".split(" "),qH=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ka("baredom.exports.x_pagination.init",JH);export const init=JH;
package/dist/x-popover.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Jo=function(a){return document.createElement(a)},Ko=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Ro=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){a=new $APP.R(null,6,[$APP.Ih,a.hasAttribute("open"),$APP.ck,a.hasAttribute("disabled"),Lo,a.hasAttribute("no-close"),Mo,a.getAttribute("heading"),$APP.Yk,a.getAttribute("placement"),No,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.I(c,$APP.Ih),e=$APP.I(c,$APP.ck),g=$APP.I(c,Lo),h=$APP.I(c,Mo);
3
- a=$APP.I(c,$APP.Yk);c=$APP.I(c,No);d=$APP.J(d);e=$APP.J(e);g=$APP.J(g);h=$APP.n(h)?h:"";c=$APP.n(c)?c:"Close";a=$APP.K(Oo,a)?a:"bottom-start";e=$APP.N(new $APP.R(null,6,[$APP.Ik,d,$APP.X,e,Po,g,$APP.Qj,h,Qo,c,$APP.Ei,a],null));d=$APP.I(e,$APP.Ik);a=$APP.I(e,Po);h=$APP.I(e,$APP.Qj);c=$APP.I(e,Qo);g=$APP.I(e,$APP.Ei);var k=$APP.l(b,"panel");e=$APP.l(b,"header");var m=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");k.setAttribute("data-placement",g);Ko(k,"inert",$APP.r(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
- "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);Ko(b,"hidden",a);b=$APP.C.h(h,"");return Ko(e,"hidden",b?a:b)}return null},So=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},To=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Uo=function(a,b){return $APP.r(a.hasAttribute("disabled"))&&
5
- $APP.r(a.hasAttribute("open"))&&So(a,{open:!0,source:b})?(a.setAttribute("open",""),To(a,{open:!0})):null},Vo=function(a,b){var c=$APP.r(a.hasAttribute("disabled"));return $APP.n(c?a.hasAttribute("open"):c)&&So(a,{open:!1,source:b})?(a.removeAttribute("open"),To(a,{open:!1})):null},Wo=function(a,b){return $APP.n(a.hasAttribute("open"))?Vo(a,b):Uo(a,b)},Xo=function(a){var b=$APP.l(a,"__xPopoverHandlers");if($APP.n(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){var e=
6
- a.isConnected;return $APP.n($APP.n(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Yo=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.n(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Zo=function(a){return{triggerClick:function(){return Wo(a,"pointer")},closeBtnClick:function(){return Vo(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?
7
- (b=b.relatedTarget,b==null||$APP.r(a.contains(b))?Vo(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.lc(b.composedPath()),b=$APP.Id(function(c){return c===a},b),$APP.n(b)?null:Vo(a,"outside-click")):null},docKeydown:function(b){b=$APP.C.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Vo(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.n(b)?Ko($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
- 0)):null}}},$o=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.l(b,"closeBtn"),e=$APP.l(b,"footerSlot");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.l(c,"footerSlotchange"))}}},ap=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
- get:function(){return this.hasAttribute(c)},set:function(d){return Ko(this,c,$APP.J(d))}})},bp=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},dp=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return cp}});ap(b,"open","open");
10
- ap(b,"disabled","disabled");ap(b,"noClose","no-close");bp(b,"placement","placement");bp(b,"heading","heading");bp(b,"closeLabel","close-label");b.show=function(){return Uo(this,"programmatic")};b.hide=function(){return Vo(this,"programmatic")};b.toggle=function(){return Wo(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Jo("style"),e=Jo("span"),g=Jo("slot"),h=Jo("div"),k=Jo("div"),m=Jo("div"),p=Jo("span"),q=Jo("button"),
11
- v=Jo("div"),x=Jo("slot"),y=Jo("div"),A=Jo("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
2
+ var Iq=function(a){return document.createElement(a)},Jq=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},Qq=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){a=new $APP.P(null,6,[$APP.ai,a.hasAttribute("open"),$APP.Rk,a.hasAttribute("disabled"),Kq,a.hasAttribute("no-close"),Lq,a.getAttribute("heading"),$APP.Wl,a.getAttribute("placement"),Mq,a.getAttribute("close-label")],null);var c=$APP.N(a),d=$APP.G(c,$APP.ai),e=$APP.G(c,$APP.Rk),g=$APP.G(c,Kq),h=$APP.G(c,Lq);
3
+ a=$APP.G(c,$APP.Wl);c=$APP.G(c,Mq);d=$APP.I(d);e=$APP.I(e);g=$APP.I(g);h=$APP.r(h)?h:"";c=$APP.r(c)?c:"Close";a=$APP.J(Nq,a)?a:"bottom-start";e=$APP.N(new $APP.P(null,6,[$APP.Dl,d,$APP.W,e,Oq,g,$APP.Fk,h,Pq,c,$APP.hj,a],null));d=$APP.G(e,$APP.Dl);a=$APP.G(e,Oq);h=$APP.G(e,$APP.Fk);c=$APP.G(e,Pq);g=$APP.G(e,$APP.hj);var k=$APP.l(b,"panel");e=$APP.l(b,"header");var m=$APP.l(b,"heading");b=$APP.l(b,"closeBtn");k.setAttribute("data-placement",g);Jq(k,"inert",$APP.t(d));$APP.O(h,"")?k.setAttribute("aria-labelledby",
4
+ "popover-heading"):k.removeAttribute("aria-labelledby");m.textContent=h;b.setAttribute("aria-label",c);Jq(b,"hidden",a);b=$APP.D.i(h,"");return Jq(e,"hidden",b?a:b)}return null},Rq=function(a,b){b=new CustomEvent("x-popover-toggle",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)},Sq=function(a,b){return a.dispatchEvent(new CustomEvent("x-popover-change",{detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Tq=function(a,b){return $APP.t(a.hasAttribute("disabled"))&&
5
+ $APP.t(a.hasAttribute("open"))&&Rq(a,{open:!0,source:b})?(a.setAttribute("open",""),Sq(a,{open:!0})):null},Uq=function(a,b){var c=$APP.t(a.hasAttribute("disabled"));return $APP.r(c?a.hasAttribute("open"):c)&&Rq(a,{open:!1,source:b})?(a.removeAttribute("open"),Sq(a,{open:!1})):null},Vq=function(a,b){return $APP.r(a.hasAttribute("open"))?Uq(a,b):Tq(a,b)},Wq=function(a){var b=$APP.l(a,"__xPopoverHandlers");if($APP.r(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTimeout(function(){var e=
6
+ a.isConnected;return $APP.r($APP.r(e)?a.hasAttribute("open"):e)?(document.addEventListener("click",c),document.addEventListener("keydown",d)):null},0)}return null},Xq=function(a){a=$APP.l(a,"__xPopoverHandlers");if($APP.r(a)){var b=$APP.l(a,"docKeydown");document.removeEventListener("click",$APP.l(a,"docClick"));return document.removeEventListener("keydown",b)}return null},Yq=function(a){return{triggerClick:function(){return Vq(a,"pointer")},closeBtnClick:function(){return Uq(a,"close-button")},hostFocusout:function(b){return $APP.r(a.hasAttribute("open"))?
7
+ (b=b.relatedTarget,b==null||$APP.t(a.contains(b))?Uq(a,"focusout"):null):null},docClick:function(b){return $APP.r(a.hasAttribute("open"))?(b=$APP.xc(b.composedPath()),b=$APP.Wd(function(c){return c===a},b),$APP.r(b)?null:Uq(a,"outside-click")):null},docKeydown:function(b){b=$APP.D.i(b.key,"Escape");return $APP.r(b?a.hasAttribute("open"):b)?Uq(a,"escape"):null},footerSlotchange:function(){var b=$APP.l(a,"__xPopoverRefs");return $APP.r(b)?Jq($APP.l(b,"footer"),"hidden",!($APP.l(b,"footerSlot").assignedNodes().length>
8
+ 0)):null}}},Zq=function(a){var b=$APP.l(a,"__xPopoverRefs");if($APP.r(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.r(c)){var d=$APP.l(b,"closeBtn"),e=$APP.l(b,"footerSlot");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"));e.removeEventListener("slotchange",$APP.l(c,"footerSlotchange"))}}},$q=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
9
+ get:function(){return this.hasAttribute(c)},set:function(d){return Jq(this,c,$APP.I(d))}})},ar=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},cr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return br}});$q(b,"open","open");
10
+ $q(b,"disabled","disabled");$q(b,"noClose","no-close");ar(b,"placement","placement");ar(b,"heading","heading");ar(b,"closeLabel","close-label");b.show=function(){return Tq(this,"programmatic")};b.hide=function(){return Uq(this,"programmatic")};b.toggle=function(){return Vq(this,"programmatic")};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Iq("style"),e=Iq("span"),g=Iq("slot"),h=Iq("div"),k=Iq("div"),m=Iq("div"),p=Iq("span"),q=Iq("button"),
11
+ w=Iq("div"),x=Iq("slot"),y=Iq("div"),A=Iq("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dheader][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter][hidden]{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
12
12
  e.setAttribute("part","trigger");g.setAttribute("name","trigger");h.setAttribute("part","panel");h.setAttribute("role","dialog");h.setAttribute("inert","");h.setAttribute("data-placement","bottom-start");k.setAttribute("part","arrow");k.setAttribute("aria-hidden","true");m.setAttribute("part","header");p.setAttribute("part","heading");p.setAttribute("id","popover-heading");q.setAttribute("part","close-button");q.setAttribute("type","button");q.setAttribute("aria-label","Close");q.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
13
- v.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);v.appendChild(x);y.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(v);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:q,body:v,footer:y,footerSlot:A}}$o(this);Yo(this);this.__xPopoverHandlers=Zo(this);c=$APP.l(this,"__xPopoverRefs");
14
- $APP.n(c)&&(d=$APP.l(this,"__xPopoverHandlers"),$APP.n(d)&&(e=$APP.l(c,"closeBtn"),g=$APP.l(c,"footerSlot"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout")),g.addEventListener("slotchange",$APP.l(d,"footerSlotchange"))));$APP.n(this.hasAttribute("open"))&&Xo(this);return Ro(this)};b.disconnectedCallback=function(){$o(this);return Yo(this)};b.attributeChangedCallback=
15
- function(c){$APP.n($APP.l(this,"__xPopoverRefs"))?(Ro(this),c=$APP.C.h(c,"open")?$APP.n(this.hasAttribute("open"))?Xo(this):Yo(this):null):c=null;return c};return a},ep=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",dp())},Qo=new $APP.M(null,"close-label","close-label",-1088385889),Po=new $APP.M(null,"no-close?","no-close?",1842227643),No=new $APP.M(null,"close-label-raw","close-label-raw",798572883),Mo=new $APP.M(null,"heading-raw","heading-raw",
16
- 116296555),Lo=new $APP.M(null,"no-close-present?","no-close-present?",-154717274);var Oo=new $APP.S(null,new $APP.R(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),cp="open placement heading close-label no-close disabled".split(" ");$APP.Ed(["x-popover-toggle",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,2,[$APP.pk,$APP.Ni,$APP.Jj,$APP.Y],null)],null),"x-popover-change",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,1,[$APP.pk,$APP.Ni],null)],null)]);$APP.ja("baredom.exports.x_popover.init",ep);export const init=ep;
13
+ w.setAttribute("part","body");y.setAttribute("part","footer");y.setAttribute("hidden","");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(p);m.appendChild(q);w.appendChild(x);y.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(w);h.appendChild(y);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,header:m,heading:p,closeBtn:q,body:w,footer:y,footerSlot:A}}Zq(this);Xq(this);this.__xPopoverHandlers=Yq(this);c=$APP.l(this,"__xPopoverRefs");
14
+ $APP.r(c)&&(d=$APP.l(this,"__xPopoverHandlers"),$APP.r(d)&&(e=$APP.l(c,"closeBtn"),g=$APP.l(c,"footerSlot"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout")),g.addEventListener("slotchange",$APP.l(d,"footerSlotchange"))));$APP.r(this.hasAttribute("open"))&&Wq(this);return Qq(this)};b.disconnectedCallback=function(){Zq(this);return Xq(this)};b.attributeChangedCallback=
15
+ function(c){$APP.r($APP.l(this,"__xPopoverRefs"))?(Qq(this),c=$APP.D.i(c,"open")?$APP.r(this.hasAttribute("open"))?Wq(this):Xq(this):null):c=null;return c};return a},dr=function(){return $APP.r(customElements.get("x-popover"))?null:customElements.define("x-popover",cr())},Pq=new $APP.M(null,"close-label","close-label",-1088385889),Oq=new $APP.M(null,"no-close?","no-close?",1842227643),Mq=new $APP.M(null,"close-label-raw","close-label-raw",798572883),Lq=new $APP.M(null,"heading-raw","heading-raw",
16
+ 116296555),Kq=new $APP.M(null,"no-close-present?","no-close-present?",-154717274);var Nq=new $APP.R(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),br="open placement heading close-label no-close disabled".split(" ");$APP.Sd(["x-popover-toggle",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,2,[$APP.hl,$APP.qj,$APP.yk,$APP.Y],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,1,[$APP.hl,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_popover.init",dr);export const init=dr;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var zM=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},CM=function(a){var b=new $APP.R(null,7,[$APP.Xh,a.getAttribute("value"),$APP.wj,a.getAttribute("max"),$APP.jh,a.getAttribute("variant"),$APP.Wg,a.getAttribute("size"),$APP.U,a.getAttribute("label"),$APP.Ui,a.hasAttribute("show-value"),$APP.uk,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.I(c,$APP.wj),e=$APP.I(c,$APP.Xh),g=$APP.I(c,$APP.jh),h=$APP.I(c,$APP.Wg);b=$APP.I(c,$APP.U);var k=$APP.I(c,
3
- $APP.Ui);c=$APP.I(c,$APP.uk);d=zM(d,100);d=d>0?d:100;e=$APP.Gg.h($APP.Fg.h(zM(e,0),0),d);g=typeof g==="string"&&$APP.K(AM,g)?g:"default";h=typeof h==="string"&&$APP.K(BM,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.Gg.h($APP.Fg.h(e/d*100,0),100);b=$APP.mf([$APP.jh,$APP.Ui,$APP.Xh,$APP.Wg,$APP.uk,$APP.Pk,$APP.wj,$APP.U,$APP.bk],[g,k,e,h,c,c?"Loading…":""+$APP.T.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.I(p,$APP.bk);k=$APP.I(p,$APP.jh);d=$APP.I(p,
4
- $APP.Ui);h=$APP.I(p,$APP.Xh);c=$APP.I(p,$APP.Wg);e=$APP.I(p,$APP.Pk);g=$APP.I(p,$APP.uk);m=$APP.I(p,$APP.U);p=$APP.I(p,$APP.wj);var q=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),x=$APP.l(a,"__xProgressCircleValueNode"),y=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.r(g)&&h>=p,D=$APP.n(g)?75:100*(1-b/100);q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.T.g(100));
5
- v.setAttribute("stroke-dashoffset",""+$APP.T.g(D));x.textContent=$APP.n($APP.n(d)?$APP.r(g):d)?""+$APP.T.g(Math.round(b))+"%":"";x.style.display=$APP.n($APP.n(d)?$APP.r(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.T.g(h)),a.setAttribute("aria-valuemax",""+$APP.T.g(p)),a.setAttribute("aria-valuetext",
6
- e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.r(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.J(A)},DM=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
- "max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},FM=function(){var a=class extends HTMLElement{};a.observedAttributes=EM;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
2
+ var oP=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.r(isNaN(a))?b:a):b},rP=function(a){var b=new $APP.P(null,7,[$APP.ui,a.getAttribute("value"),$APP.Zj,a.getAttribute("max"),$APP.Fh,a.getAttribute("variant"),$APP.rh,a.getAttribute("size"),$APP.T,a.getAttribute("label"),$APP.yj,a.hasAttribute("show-value"),$APP.nl,a.hasAttribute("indeterminate")],null);var c=$APP.N(b),d=$APP.G(c,$APP.Zj),e=$APP.G(c,$APP.ui),g=$APP.G(c,$APP.Fh),h=$APP.G(c,$APP.rh);b=$APP.G(c,$APP.T);var k=$APP.G(c,
3
+ $APP.yj);c=$APP.G(c,$APP.nl);d=oP(d,100);d=d>0?d:100;e=$APP.Zg.i($APP.Yg.i(oP(e,0),0),d);g=typeof g==="string"&&$APP.J(pP,g)?g:"default";h=typeof h==="string"&&$APP.J(qP,h)?h:"md";c=$APP.I(c);k=$APP.I(k);var m=c?50:$APP.Zg.i($APP.Yg.i(e/d*100,0),100);b=$APP.Q([$APP.Fh,$APP.yj,$APP.ui,$APP.rh,$APP.nl,$APP.Nl,$APP.Zj,$APP.T,$APP.Qk],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.O("",b)?b:null,m]);var p=$APP.N(b);b=$APP.G(p,$APP.Qk);k=$APP.G(p,$APP.Fh);d=$APP.G(p,
4
+ $APP.yj);h=$APP.G(p,$APP.ui);c=$APP.G(p,$APP.rh);e=$APP.G(p,$APP.Nl);g=$APP.G(p,$APP.nl);m=$APP.G(p,$APP.T);p=$APP.G(p,$APP.Zj);var q=$APP.l(a,"__xProgressCircleBase"),w=$APP.l(a,"__xProgressCircleFill"),x=$APP.l(a,"__xProgressCircleValueNode"),y=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.t(g)&&h>=p,C=$APP.r(g)?75:100*(1-b/100);q.setAttribute("data-variant",k);q.setAttribute("data-size",c);q.setAttribute("data-indeterminate",$APP.r(g)?"true":"false");w.setAttribute("stroke-dasharray",""+$APP.S.g(100));
5
+ w.setAttribute("stroke-dashoffset",""+$APP.S.g(C));x.textContent=$APP.r($APP.r(d)?$APP.t(g):d)?""+$APP.S.g(Math.round(b))+"%":"";x.style.display=$APP.r($APP.r(d)?$APP.t(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.r(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(p)),a.setAttribute("aria-valuetext",
6
+ e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.t(y)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:p}}));a.__xProgressCircleCompleted=$APP.I(A)},sP=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.r(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
7
+ "max",{get:function(){var b=this.getAttribute("max");return $APP.r(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.r(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
+ set:function(b){return $APP.r(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},uP=function(){var a=class extends HTMLElement{};a.observedAttributes=tP;a.prototype.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg",
9
9
  "circle"),h=document.createElementNS("http://www.w3.org/2000/svg","circle"),k=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:#3b82f6;--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:0.3s;}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:#ef4444;}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
10
10
  d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");g.setAttribute("part","track");g.setAttribute("cx","18");g.setAttribute("cy","18");g.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");k.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);k.appendChild(m);
11
- d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}CM(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xProgressCircleInit"))&&CM(this);return null};DM(a.prototype);return a},GM=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
- FM());return null};var AM=new $APP.S(null,new $APP.R(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),BM=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),EM="value max variant size label show-value indeterminate".split(" ");$APP.Ed(["x-progress-circle-complete",new $APP.R(null,1,[$APP.V,new $APP.R(null,2,[$APP.Xh,$APP.W,$APP.wj,$APP.W],null)],null)]);$APP.ja("baredom.exports.x_progress_circle.init",GM);export const init=GM;
11
+ d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}rP(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.r($APP.l(this,"__xProgressCircleInit"))&&rP(this);return null};sP(a.prototype);return a},vP=function(){$APP.r(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ uP());return null};var pP=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),qP=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),tP="value max variant size label show-value indeterminate".split(" ");$APP.Sd(["x-progress-circle-complete",new $APP.P(null,1,[$APP.U,new $APP.P(null,2,[$APP.ui,$APP.V,$APP.Zj,$APP.V],null)],null)]);$APP.ka("baredom.exports.x_progress_circle.init",vP);export const init=vP;