@vanelsas/baredom 1.0.0 → 1.2.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 (71) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +14 -4
  3. package/dist/base.js +368 -349
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +14 -14
  9. package/dist/x-button.js +16 -16
  10. package/dist/x-cancel-dialogue.js +17 -17
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +46 -46
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +8 -8
  15. package/dist/x-collapse.js +11 -11
  16. package/dist/x-command-palette.js +31 -31
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -20
  19. package/dist/x-copy.js +23 -23
  20. package/dist/x-currency-field.js +23 -23
  21. package/dist/x-date-picker.js +39 -39
  22. package/dist/x-divider.js +12 -12
  23. package/dist/x-drawer.js +12 -12
  24. package/dist/x-dropdown.js +10 -10
  25. package/dist/x-fieldset.js +6 -6
  26. package/dist/x-file-download.js +7 -7
  27. package/dist/x-form-field.js +17 -17
  28. package/dist/x-form.js +10 -10
  29. package/dist/x-gaussian-blur.js +33 -0
  30. package/dist/x-grid.js +7 -7
  31. package/dist/x-kinetic-typography.js +62 -0
  32. package/dist/x-menu-item.js +10 -10
  33. package/dist/x-menu.js +10 -10
  34. package/dist/x-modal.js +13 -13
  35. package/dist/x-navbar.js +13 -13
  36. package/dist/x-notification-center.js +10 -10
  37. package/dist/x-organic-divider.js +20 -0
  38. package/dist/x-organic-shape.js +15 -0
  39. package/dist/x-pagination.js +16 -16
  40. package/dist/x-popover.js +15 -15
  41. package/dist/x-progress-circle.js +10 -10
  42. package/dist/x-progress.js +11 -11
  43. package/dist/x-radio.js +11 -11
  44. package/dist/x-ripple-effect.js +14 -0
  45. package/dist/x-scroll-parallax.js +20 -0
  46. package/dist/x-scroll-stack.js +20 -0
  47. package/dist/x-scroll-story.js +38 -0
  48. package/dist/x-scroll-timeline.js +51 -0
  49. package/dist/x-scroll.js +43 -0
  50. package/dist/x-search-field.js +14 -14
  51. package/dist/x-select.js +9 -9
  52. package/dist/x-sidebar.js +16 -16
  53. package/dist/x-skeleton.js +6 -7
  54. package/dist/x-slider.js +16 -16
  55. package/dist/x-spacer.js +5 -5
  56. package/dist/x-spinner.js +5 -5
  57. package/dist/x-stat.js +11 -11
  58. package/dist/x-stepper.js +16 -16
  59. package/dist/x-switch.js +10 -10
  60. package/dist/x-tab.js +7 -7
  61. package/dist/x-table-cell.js +23 -23
  62. package/dist/x-table-row.js +10 -10
  63. package/dist/x-table.js +15 -15
  64. package/dist/x-tabs.js +11 -12
  65. package/dist/x-text-area.js +19 -19
  66. package/dist/x-timeline-item.js +24 -24
  67. package/dist/x-timeline.js +9 -9
  68. package/dist/x-toast.js +24 -24
  69. package/dist/x-toaster.js +8 -8
  70. package/dist/x-typography.js +11 -0
  71. package/package.json +47 -2
package/dist/x-copy.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Nr=function(a){return a==null?!0:$APP.C.h(a,"false")?!1:$APP.C.h(a,"0")?!1:!0},Or=function(a){return typeof a==="string"&&$APP.O(a,"")?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:1200):1200},Pr=function(a){return Math.min(1E4,Math.max(100,a))},ds=function(a){var b=$APP.N(a);a=$APP.I(b,Qr);var c=$APP.I(b,Rr),d=$APP.I(b,Sr),e=$APP.I(b,$APP.rg),g=$APP.I(b,Tr),h=$APP.I(b,Ur),k=$APP.I(b,Vr),m=$APP.I(b,$APP.Sh),q=$APP.I(b,Wr);b=$APP.I(b,Xr);return $APP.Xe([Yr,$APP.Yh,Zr,$r,as,$APP.Dg,bs,$APP.V,cs,$APP.Fh],
3
- [Nr(b),$APP.C.h(g,"html")?"html":"text",typeof k==="string"&&$APP.O(k.trim(),"")?k.trim():null,typeof a==="string"&&$APP.O(a.trim(),"")?a.trim():null,Pr(Or(c)),typeof d==="string"&&$APP.O(d.trim(),"")?d.trim():null,function(){var r;if(r=typeof h==="string")r=(r=$APP.O(h,""))?h:r;return $APP.n(r)?r:"Copy failed"}(),$APP.K(m),function(){var r;if(r=typeof q==="string")r=(r=$APP.O(q,""))?q:r;return $APP.n(r)?r:"Copied"}(),typeof e==="string"&&$APP.O(e.trim(),"")?e.trim():null])},es=function(a){var b=
4
- $APP.N(a);a=$APP.I(b,$APP.Fh);var c=$APP.I(b,$APP.Dg),d=$APP.I(b,Zr);b=$APP.I(b,$APP.Yh);return{text:$APP.n(a)?a:"",mode:$APP.n(b)?b:"text",from:$APP.n(c)?c:null,fromAttr:$APP.n(d)?d:null}},fs=function(a){var b=$APP.l(a,"__xCopyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("button"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span");
2
+ var Ju=function(a){return a==null?!0:$APP.C.h(a,"false")?!1:$APP.C.h(a,"0")?!1:!0},Ku=function(a){return typeof a==="string"&&$APP.O(a,"")?(a=parseInt(a,10),$APP.q(isNaN(a))&&a>0?a:1200):1200},Lu=function(a){return Math.min(1E4,Math.max(100,a))},Zu=function(a){var b=$APP.N(a);a=$APP.H(b,Mu);var c=$APP.H(b,Nu),d=$APP.H(b,Ou),e=$APP.H(b,$APP.Pg),g=$APP.H(b,$APP.vi),h=$APP.H(b,Pu),k=$APP.H(b,Qu),m=$APP.H(b,$APP.aj),p=$APP.H(b,Ru);b=$APP.H(b,Su);return $APP.gf([Tu,$APP.ij,Uu,Vu,Wu,$APP.ch,Xu,$APP.V,Yu,
3
+ $APP.Di],[Ju(b),$APP.C.h(g,"html")?"html":"text",typeof k==="string"&&$APP.O(k.trim(),"")?k.trim():null,typeof a==="string"&&$APP.O(a.trim(),"")?a.trim():null,Lu(Ku(c)),typeof d==="string"&&$APP.O(d.trim(),"")?d.trim():null,function(){var r;if(r=typeof h==="string")r=(r=$APP.O(h,""))?h:r;return $APP.n(r)?r:"Copy failed"}(),$APP.J(m),function(){var r;if(r=typeof p==="string")r=(r=$APP.O(p,""))?p:r;return $APP.n(r)?r:"Copied"}(),typeof e==="string"&&$APP.O(e.trim(),"")?e.trim():null])},$u=function(a){var b=
4
+ $APP.N(a);a=$APP.H(b,$APP.Di);var c=$APP.H(b,$APP.ch),d=$APP.H(b,Uu);b=$APP.H(b,$APP.ij);return{text:$APP.n(a)?a:"",mode:$APP.n(b)?b:"text",from:$APP.n(c)?c:null,fromAttr:$APP.n(d)?d:null}},av=function(a){var b=$APP.l(a,"__xCopyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("button"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span");
5
5
  c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-copy-tooltip-bg:#1e293b;--x-copy-tooltip-fg:#f8fafc;--x-copy-tooltip-success-bg:#15803d;--x-copy-tooltip-success-fg:#f0fdf4;--x-copy-tooltip-error-bg:#b91c1c;--x-copy-tooltip-error-fg:#fef2f2;--x-copy-tooltip-radius:6px;--x-copy-tooltip-padding:4px 8px;--x-copy-tooltip-font-size:0.8125rem;--x-copy-tooltip-z:100;}@media (prefers-color-scheme:dark){:host{--x-copy-tooltip-bg:#0f172a;--x-copy-tooltip-fg:#e2e8f0;--x-copy-tooltip-success-bg:#166534;--x-copy-tooltip-success-fg:#dcfce7;--x-copy-tooltip-error-bg:#991b1b;--x-copy-tooltip-error-fg:#fee2e2;}}[part\x3dwrap]{display:inline-flex;align-items:center;justify-content:center;}[part\x3dtrigger]{all:unset;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;}[part\x3dtrigger]:focus-visible{outline:2px solid currentColor;outline-offset:2px;}:host([disabled]) [part\x3dtrigger]{opacity:0.55;pointer-events:none;cursor:default;}[part\x3dtooltip]{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--x-copy-tooltip-bg);color:var(--x-copy-tooltip-fg);border-radius:var(--x-copy-tooltip-radius);padding:var(--x-copy-tooltip-padding);font-size:var(--x-copy-tooltip-font-size);z-index:var(--x-copy-tooltip-z);pointer-events:none;}:host([data-tooltip-open]) [part\x3dtooltip]{display:block;}:host([data-tooltip-kind\x3dsuccess]) [part\x3dtooltip]{background:var(--x-copy-tooltip-success-bg);color:var(--x-copy-tooltip-success-fg);}:host([data-tooltip-kind\x3derror]) [part\x3dtooltip]{background:var(--x-copy-tooltip-error-bg);color:var(--x-copy-tooltip-error-fg);}@media (prefers-reduced-motion:reduce){[part\x3dtrigger]{transition:none;}}";
6
- d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");k.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:k,tooltipText:m};return $APP.l(a,"__xCopyRefs")},gs=function(a){return ds($APP.Xe([Sr,
7
- $APP.rg,Tr,Ur,Vr,$APP.Sh,Wr,Xr,Qr,Rr],[a.getAttribute("from"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("error-message"),a.getAttribute("from-attr"),a.hasAttribute("disabled"),a.getAttribute("success-message"),a.getAttribute("show-tooltip"),a.getAttribute("hotkey"),a.getAttribute("tooltip-ms")]))},hs=function(a){var b=$APP.l(a,"__xCopyTextValue");if(typeof b==="string")return b;b=a.getAttribute("text");if(typeof b==="string"&&$APP.O(b,""))return b;b=a.getAttribute("from");return typeof b===
8
- "string"&&$APP.O(b,"")&&(b=document.querySelector(b),$APP.n(b))?(a=a.getAttribute("from-attr"),a=typeof a==="string"&&$APP.O(a,"")?b.getAttribute(a):b.textContent,$APP.n(a)?a:""):""},is=function(a){var b=hs(a),c=function(){var d=a.getAttribute("mode");return $APP.n(d)?d:"text"}();return new Promise(function(d,e){if($APP.C.h(c,"html")){if($APP.n(function(){var h=navigator.clipboard;return $APP.n(h)?window.ClipboardItem:h}()))return navigator.clipboard.write($APP.pg(new $APP.P(null,1,5,$APP.Rd,[new ClipboardItem({"text/html":new Blob([b],
9
- {type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.n(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
10
- d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(k){if(k instanceof Error)return e.g?e.g(h):e.call(null,h);throw k;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},js=function(a,b,c,d){var e=
11
- $APP.l(a,"__xCopyRefs");if($APP.n(e)){var g=$APP.l(a,"__xCopyTid");$APP.n(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.l(e,"tooltipText").textContent=c;$APP.la(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.l(a,"__xCopyRefs");$APP.n(h)&&($APP.l(h,"tooltipText").textContent="");return null},d))}},ks=function(a,b,c,d){b=new CustomEvent(b,
12
- {detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},ls=function(a){if($APP.n(a.hasAttribute("disabled")))return Promise.resolve(null);var b=gs(a),c=es(b);c=ks(a,"x-copy-request",c,!0);return $APP.n(c.defaultPrevented)?Promise.resolve(null):is(a).then(function(d){ks(a,"x-copy-success",{text:$APP.n(d)?d:""},!1);$APP.n(Yr.g(b))&&js(a,"success",cs.g(b),as.g(b));return d}).catch(function(d){ks(a,"x-copy-error",{error:""+$APP.T.g(d)},!1);$APP.n(Yr.g(b))&&js(a,"error",bs.g(b),as.g(b));
13
- return Promise.reject(d)})},ms=function(a,b){if(typeof b==="string"&&$APP.O(b,"")){var c=b.toLowerCase().split("+");b=$APP.fc(c);var d=$APP.K($APP.xd(function(h){return $APP.C.h(h,"ctrl")},c)),e=$APP.K($APP.xd(function(h){return $APP.C.h(h,"shift")},c)),g=$APP.K($APP.xd(function(h){return $APP.C.h(h,"alt")},c));c=$APP.K($APP.xd(function(h){return $APP.C.h(h,"meta")},c));return $APP.C.h(a.key.toLowerCase(),b)&&$APP.C.h(d,a.ctrlKey)&&$APP.C.h(e,a.shiftKey)&&$APP.C.h(g,a.altKey)&&$APP.C.h(c,a.metaKey)}return null},
14
- ns=function(a){function b(e){var g=a.getAttribute("hotkey");return $APP.n(ms(e,g))?(e.preventDefault(),ls(a)):null}function c(){return ls(a)}var d=fs(a);$APP.l(d,"trigger").addEventListener("click",c);document.addEventListener("keydown",b);$APP.la(a,"__xCopyHandlers",{click:c,keydown:b})},os=function(a){var b=$APP.l(a,"__xCopyTid");$APP.n(b)&&(clearTimeout(b),a.__xCopyTid=null);b=$APP.l(a,"__xCopyHandlers");var c=$APP.l(a,"__xCopyRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.l(c,"trigger");var d=$APP.l(b,
15
- "click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},ps=function(a){var b=fs(a),c=a.hasAttribute("disabled");$APP.l(b,"trigger").disabled=$APP.K(c);$APP.n(c)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")},qs=function(a){for(var b=$APP.u(new $APP.P(null,7,5,$APP.Rd,[new $APP.P(null,2,5,$APP.Rd,["text","text"],null),new $APP.P(null,2,5,$APP.Rd,["from","from"],null),new $APP.P(null,
16
- 2,5,$APP.Rd,["fromAttr","from-attr"],null),new $APP.P(null,2,5,$APP.Rd,["mode","mode"],null),new $APP.P(null,2,5,$APP.Rd,["successMessage","success-message"],null),new $APP.P(null,2,5,$APP.Rd,["errorMessage","error-message"],null),new $APP.P(null,2,5,$APP.Rd,["hotkey","hotkey"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.D(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null);Object.defineProperty(a,h,{get:function(r,v,w,z,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,g,h,k),set:function(r,
17
- v,w,z,A,D,G){return function(J){return J==null?this.removeAttribute(G):this.setAttribute(G,""+$APP.T.g(J))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.uc(g))b=$APP.mb(g),e=$APP.nb(g),c=b,d=$APP.B(b),b=e;else{k=$APP.x(g);var m=$APP.H(k,0,null),q=$APP.H(k,1,null);Object.defineProperty(a,m,{get:function(r,v,w,z,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,k,m,q,g,h),set:function(r,v,w,z,A,D,G){return function(J){return J==null?this.removeAttribute(G):
18
- this.setAttribute(G,""+$APP.T.g(J))}}(b,c,d,e,k,m,q,g,h),enumerable:!0,configurable:!0});b=$APP.y(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(r){return $APP.n(r)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showTooltip",{get:function(){return Nr(this.getAttribute("show-tooltip"))},set:function(r){return $APP.n(r)?this.setAttribute("show-tooltip",
19
- "true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return Or(this.getAttribute("tooltip-ms"))},set:function(r){return r==null?this.removeAttribute("tooltip-ms"):this.setAttribute("tooltip-ms",""+$APP.T.g(r|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"textValue",{get:function(){return $APP.l(this,"__xCopyTextValue")},set:function(r){this.__xCopyTextValue=typeof r==="string"?r:void 0},enumerable:!0,
20
- configurable:!0});Object.defineProperty(a,"copy",{value:function(){return ls(this)},enumerable:!0,configurable:!0,writable:!0})},ss=function(){var a=class extends HTMLElement{};a.observedAttributes=rs;a.prototype.connectedCallback=function(){fs(this);os(this);ns(this);ps(this);return null};a.prototype.disconnectedCallback=function(){os(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&ps(this);return null};qs(a.prototype);return a},ts=function(){$APP.n(customElements.get("x-copy"))||
21
- customElements.define("x-copy",ss());return null},Yr=new $APP.M(null,"show-tooltip?","show-tooltip?",-1214081087),Rr=new $APP.M(null,"tooltip-ms-raw","tooltip-ms-raw",-1973326401),us=new $APP.M(null,"fromAttr","fromAttr",-1768252533),cs=new $APP.M(null,"success-message","success-message",-96541601),Vr=new $APP.M(null,"from-attr-raw","from-attr-raw",761657416),Tr=new $APP.M(null,"mode-raw","mode-raw",-112711707),as=new $APP.M(null,"tooltip-ms","tooltip-ms",1062450417),Ur=new $APP.M(null,"error-message-raw",
22
- "error-message-raw",1910536231),$r=new $APP.M(null,"hotkey","hotkey",-329017295),Wr=new $APP.M(null,"success-message-raw","success-message-raw",388691116),Sr=new $APP.M(null,"from-raw","from-raw",-44462428),Zr=new $APP.M(null,"from-attr","from-attr",1217901743),Qr=new $APP.M(null,"hotkey-raw","hotkey-raw",1972404222),bs=new $APP.M(null,"error-message","error-message",1756021561),Xr=new $APP.M(null,"show-tooltip-raw","show-tooltip-raw",453600717);var rs="text from from-attr mode disabled show-tooltip tooltip-ms success-message error-message hotkey".split(" ");
23
- $APP.Xe([new $APP.M(null,"errorMessage","errorMessage",982744869),$APP.pi,new $APP.M(null,"textValue","textValue",-598870870),$APP.Yh,us,new $APP.M(null,"tooltipMs","tooltipMs",1056463375),$r,$APP.Dg,new $APP.M(null,"showTooltip","showTooltip",482349691),new $APP.M(null,"successMessage","successMessage",-789572803),$APP.Fh],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"error-message"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,3,[$APP.Z,$APP.X,$APP.Hg,null,new $APP.M(null,
24
- "note","note",1426297904),"property-only override"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"mode"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"from-attr"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"tooltip-ms"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"hotkey"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"from"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"show-tooltip"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"success-message"],null),new $APP.Q(null,2,[$APP.Z,
25
- $APP.X,$APP.Hg,"text"],null)]);$APP.sd(["x-copy-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,4,[$APP.Fh,$APP.X,$APP.Yh,$APP.X,$APP.Dg,$APP.X,us,$APP.X],null)],null),"x-copy-success",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,1,[$APP.Fh,$APP.X],null)],null),"x-copy-error",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,1,[$APP.ih,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_copy.init",ts);export const init=ts;
6
+ d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");k.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:k,tooltipText:m};return $APP.l(a,"__xCopyRefs")},bv=function(a){return Zu($APP.gf([Ou,
7
+ $APP.Pg,$APP.vi,Pu,Qu,$APP.aj,Ru,Su,Mu,Nu],[a.getAttribute("from"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("error-message"),a.getAttribute("from-attr"),a.hasAttribute("disabled"),a.getAttribute("success-message"),a.getAttribute("show-tooltip"),a.getAttribute("hotkey"),a.getAttribute("tooltip-ms")]))},cv=function(a){var b=$APP.l(a,"__xCopyTextValue");if(typeof b==="string")return b;b=a.getAttribute("text");if(typeof b==="string"&&$APP.O(b,""))return b;b=a.getAttribute("from");
8
+ return typeof b==="string"&&$APP.O(b,"")&&(b=document.querySelector(b),$APP.n(b))?(a=a.getAttribute("from-attr"),a=typeof a==="string"&&$APP.O(a,"")?b.getAttribute(a):b.textContent,$APP.n(a)?a:""):""},dv=function(a){var b=cv(a),c=function(){var d=a.getAttribute("mode");return $APP.n(d)?d:"text"}();return new Promise(function(d,e){if($APP.C.h(c,"html")){if($APP.n(function(){var h=navigator.clipboard;return $APP.n(h)?window.ClipboardItem:h}()))return navigator.clipboard.write($APP.Mg(new $APP.$d(null,
9
+ 1,5,$APP.ae,[new ClipboardItem({"text/html":new Blob([b],{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.n(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
10
+ d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(k){if(k instanceof Error)return e.g?e.g(h):e.call(null,h);throw k;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},ev=function(a,b,c,d){var e=
11
+ $APP.l(a,"__xCopyRefs");if($APP.n(e)){var g=$APP.l(a,"__xCopyTid");$APP.n(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.l(e,"tooltipText").textContent=c;$APP.ma(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.l(a,"__xCopyRefs");$APP.n(h)&&($APP.l(h,"tooltipText").textContent="");return null},d))}},fv=function(a,b,c,d){b=new CustomEvent(b,
12
+ {detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},gv=function(a){if($APP.n(a.hasAttribute("disabled")))return Promise.resolve(null);var b=bv(a),c=$u(b);c=fv(a,"x-copy-request",c,!0);return $APP.n(c.defaultPrevented)?Promise.resolve(null):dv(a).then(function(d){fv(a,"x-copy-success",{text:$APP.n(d)?d:""},!1);$APP.n(Tu.g(b))&&ev(a,"success",Yu.g(b),Wu.g(b));return d}).catch(function(d){fv(a,"x-copy-error",{error:""+$APP.S.g(d)},!1);$APP.n(Tu.g(b))&&ev(a,"error",Xu.g(b),Wu.g(b));
13
+ return Promise.reject(d)})},hv=function(a,b){if(typeof b==="string"&&$APP.O(b,"")){var c=b.toLowerCase().split("+");b=$APP.lc(c);var d=$APP.J($APP.Dd(function(h){return $APP.C.h(h,"ctrl")},c)),e=$APP.J($APP.Dd(function(h){return $APP.C.h(h,"shift")},c)),g=$APP.J($APP.Dd(function(h){return $APP.C.h(h,"alt")},c));c=$APP.J($APP.Dd(function(h){return $APP.C.h(h,"meta")},c));return $APP.C.h(a.key.toLowerCase(),b)&&$APP.C.h(d,a.ctrlKey)&&$APP.C.h(e,a.shiftKey)&&$APP.C.h(g,a.altKey)&&$APP.C.h(c,a.metaKey)}return null},
14
+ iv=function(a){function b(e){var g=a.getAttribute("hotkey");return $APP.n(hv(e,g))?(e.preventDefault(),gv(a)):null}function c(){return gv(a)}var d=av(a);$APP.l(d,"trigger").addEventListener("click",c);document.addEventListener("keydown",b);$APP.ma(a,"__xCopyHandlers",{click:c,keydown:b})},jv=function(a){var b=$APP.l(a,"__xCopyTid");$APP.n(b)&&(clearTimeout(b),a.__xCopyTid=null);b=$APP.l(a,"__xCopyHandlers");var c=$APP.l(a,"__xCopyRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.l(c,"trigger");var d=$APP.l(b,
15
+ "click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},kv=function(a){var b=av(a),c=a.hasAttribute("disabled");$APP.l(b,"trigger").disabled=$APP.J(c);$APP.n(c)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")},lv=function(a){for(var b=$APP.u(new $APP.$d(null,7,5,$APP.ae,[new $APP.$d(null,2,5,$APP.ae,["text","text"],null),new $APP.$d(null,2,5,$APP.ae,["from","from"],null),new $APP.$d(null,
16
+ 2,5,$APP.ae,["fromAttr","from-attr"],null),new $APP.$d(null,2,5,$APP.ae,["mode","mode"],null),new $APP.$d(null,2,5,$APP.ae,["successMessage","success-message"],null),new $APP.$d(null,2,5,$APP.ae,["errorMessage","error-message"],null),new $APP.$d(null,2,5,$APP.ae,["hotkey","hotkey"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.H(null,e),h=$APP.E(g,0,null),k=$APP.E(g,1,null);Object.defineProperty(a,h,{get:function(r,v,x,y,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,g,h,k),set:function(r,
17
+ v,x,y,A,D,G){return function(I){return I==null?this.removeAttribute(G):this.setAttribute(G,""+$APP.S.g(I))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.Ac(g))b=$APP.ob(g),e=$APP.pb(g),c=b,d=$APP.B(b),b=e;else{k=$APP.w(g);var m=$APP.E(k,0,null),p=$APP.E(k,1,null);Object.defineProperty(a,m,{get:function(r,v,x,y,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,k,m,p,g,h),set:function(r,v,x,y,A,D,G){return function(I){return I==null?this.removeAttribute(G):
18
+ this.setAttribute(G,""+$APP.S.g(I))}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(r){return $APP.n(r)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showTooltip",{get:function(){return Ju(this.getAttribute("show-tooltip"))},set:function(r){return $APP.n(r)?this.setAttribute("show-tooltip",
19
+ "true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return Ku(this.getAttribute("tooltip-ms"))},set:function(r){return r==null?this.removeAttribute("tooltip-ms"):this.setAttribute("tooltip-ms",""+$APP.S.g(r|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"textValue",{get:function(){return $APP.l(this,"__xCopyTextValue")},set:function(r){this.__xCopyTextValue=typeof r==="string"?r:void 0},enumerable:!0,
20
+ configurable:!0});Object.defineProperty(a,"copy",{value:function(){return gv(this)},enumerable:!0,configurable:!0,writable:!0})},nv=function(){var a=class extends HTMLElement{};a.observedAttributes=mv;a.prototype.connectedCallback=function(){av(this);jv(this);iv(this);kv(this);return null};a.prototype.disconnectedCallback=function(){jv(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&kv(this);return null};lv(a.prototype);return a},ov=function(){$APP.n(customElements.get("x-copy"))||
21
+ customElements.define("x-copy",nv());return null},Tu=new $APP.M(null,"show-tooltip?","show-tooltip?",-1214081087),Nu=new $APP.M(null,"tooltip-ms-raw","tooltip-ms-raw",-1973326401),pv=new $APP.M(null,"fromAttr","fromAttr",-1768252533),Yu=new $APP.M(null,"success-message","success-message",-96541601),Qu=new $APP.M(null,"from-attr-raw","from-attr-raw",761657416),Wu=new $APP.M(null,"tooltip-ms","tooltip-ms",1062450417),Pu=new $APP.M(null,"error-message-raw","error-message-raw",1910536231),Vu=new $APP.M(null,
22
+ "hotkey","hotkey",-329017295),Ru=new $APP.M(null,"success-message-raw","success-message-raw",388691116),Ou=new $APP.M(null,"from-raw","from-raw",-44462428),Uu=new $APP.M(null,"from-attr","from-attr",1217901743),Mu=new $APP.M(null,"hotkey-raw","hotkey-raw",1972404222),Xu=new $APP.M(null,"error-message","error-message",1756021561),Su=new $APP.M(null,"show-tooltip-raw","show-tooltip-raw",453600717);var mv="text from from-attr mode disabled show-tooltip tooltip-ms success-message error-message hotkey".split(" ");
23
+ $APP.gf([new $APP.M(null,"errorMessage","errorMessage",982744869),$APP.Fj,new $APP.M(null,"textValue","textValue",-598870870),$APP.ij,pv,new $APP.M(null,"tooltipMs","tooltipMs",1056463375),Vu,$APP.ch,new $APP.M(null,"showTooltip","showTooltip",482349691),new $APP.M(null,"successMessage","successMessage",-789572803),$APP.Di],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"error-message"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"disabled"],null),new $APP.Q(null,3,[$APP.Z,$APP.X,$APP.T,null,new $APP.M(null,
24
+ "note","note",1426297904),"property-only override"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"mode"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"from-attr"],null),new $APP.Q(null,2,[$APP.Z,$APP.U,$APP.T,"tooltip-ms"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"hotkey"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"from"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"show-tooltip"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"success-message"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,
25
+ $APP.T,"text"],null)]);$APP.zd(["x-copy-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,4,[$APP.Di,$APP.X,$APP.ij,$APP.X,$APP.ch,$APP.X,pv,$APP.X],null)],null),"x-copy-success",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,1,[$APP.Di,$APP.X],null)],null),"x-copy-error",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,1,[$APP.Vh,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_copy.init",ov);export const init=ov;
@@ -1,24 +1,24 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ex=function(a){a=(""+$APP.T.g($APP.n(a)?a:"")).trim().toUpperCase();return $APP.C.h(a,"")?"USD":a},fx=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},gx=function(a,b){try{var c=(new Intl.NumberFormat($APP.C.h(b,"")?"en-US":b,{style:"currency",currency:a})).formatToParts(0),d=$APP.xd(function(e){return $APP.C.h("currency",e.type)?e.value:null},$APP.dc(c));return $APP.n(d)?d:a}catch(e){return a}},hx=function(a,b){var c=parseFloat(a);if($APP.n(isNaN(c)))return a;try{return(new Intl.NumberFormat($APP.C.h(b,
3
- "")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},ix=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("input"),m=document.createElement("span"),q=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-currency-field-bg:#ffffff;--x-currency-field-color:#111827;--x-currency-field-border:1px solid #d1d5db;--x-currency-field-border-radius:6px;--x-currency-field-focus-ring-color:#2563eb;--x-currency-field-symbol-color:#6b7280;--x-currency-field-label-color:#374151;--x-currency-field-hint-color:#6b7280;--x-currency-field-error-color:#dc2626;--x-currency-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-currency-field-bg:#1f2937;--x-currency-field-color:#f9fafb;--x-currency-field-border:1px solid #4b5563;--x-currency-field-focus-ring-color:#3b82f6;--x-currency-field-symbol-color:#9ca3af;--x-currency-field-label-color:#d1d5db;--x-currency-field-hint-color:#9ca3af;--x-currency-field-error-color:#f87171;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:0.875rem;font-weight:500;color:var(--x-currency-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:flex;align-items:center;background:var(--x-currency-field-bg);border:var(--x-currency-field-border);border-radius:var(--x-currency-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput-wrapper]:focus-within{border-color:var(--x-currency-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput-wrapper]{border-color:var(--x-currency-field-error-color);}:host([data-invalid]) [part\x3dinput-wrapper]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-error-color) 20%,transparent);}[part\x3dsymbol]{flex-shrink:0;padding:0.5rem 0 0.5rem 0.75rem;font-size:1rem;color:var(--x-currency-field-symbol-color);user-select:none;pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.75rem;background:transparent;color:var(--x-currency-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]:disabled{opacity:1;cursor:not-allowed;}:host([disabled]) [part\x3dinput-wrapper]{opacity:var(--x-currency-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-currency-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-currency-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput-wrapper]{transition:none;}}";
4
- d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","symbol");h.setAttribute("aria-hidden","true");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("inputmode","decimal");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");q.setAttribute("part","error");q.setAttribute("id",
5
- "error");q.setAttribute("role","alert");q.setAttribute("aria-live","assertive");g.appendChild(h);g.appendChild(k);d.appendChild(e);d.appendChild(g);d.appendChild(m);d.appendChild(q);b.appendChild(c);b.appendChild(d);a.__xCurrencyFieldRefs={field:d,label:e,wrapper:g,symbol:h,input:k,hint:m,error:q}},jx=function(a,b,c,d){var e=a.hasAttribute("error");var g=a.getAttribute("error");g=$APP.n(g)?g:"";var h=a.hasAttribute("required"),k=a.getAttribute("min"),m=a.getAttribute("max");a=parseFloat(d);var q=
6
- $APP.p(isNaN(a));k=$APP.n(k)?parseFloat(k):null;m=$APP.n(m)?parseFloat(m):null;return $APP.n(e)?b.setValidity({customError:!0},g,c):$APP.n($APP.n(h)?$APP.C.h(d,""):h)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):$APP.O(d,"")&&!q?b.setValidity({badInput:!0},"Please enter a valid number.",c):$APP.n(q?$APP.n(k)?$APP.p(isNaN(k))&&a<k:k:q)?b.setValidity({rangeUnderflow:!0},"Value must be at least "+$APP.T.g(k)+".",c):$APP.n(q?$APP.n(m)?$APP.p(isNaN(m))&&a>m:m:q)?b.setValidity({rangeOverflow:!0},
7
- "Value must be at most "+$APP.T.g(m)+".",c):b.setValidity({},"",c)},ox=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"symbol"),e=$APP.l(b,"input"),g=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.Xe([$APP.Wg,kx,$APP.Dh,$APP.lh,$APP.yh,$APP.Sh,lx,$APP.ug,$APP.ah,$APP.mi,$APP.yi,mx,$APP.ph],[a.getAttribute("label"),a.getAttribute("currency"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.getAttribute("min"),
8
- a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var k=$APP.N(h);h=$APP.I(k,$APP.ph);var m=$APP.I(k,$APP.Wg),q=$APP.I(k,kx),r=$APP.I(k,$APP.Dh),v=$APP.I(k,$APP.lh),w=$APP.I(k,$APP.yh),z=$APP.I(k,$APP.Sh),A=$APP.I(k,lx),D=$APP.I(k,$APP.ug),G=$APP.I(k,$APP.ah),J=$APP.I(k,$APP.mi),E=$APP.I(k,$APP.yi);k=$APP.I(k,mx);var R=$APP.n(v)?v:"",ha=$APP.n(w)?w:"",ua=$APP.n(m)?m:"";h=$APP.Xe([$APP.Ni,$APP.Tg,
9
- $APP.Vi,$APP.vi,$APP.Zg,$APP.Wi,$APP.ai,$APP.U,$APP.Gh,$APP.ch,$APP.ei,nx,$APP.Yg,$APP.W,$APP.ih,$APP.V],[$APP.n(A)?A:"",$APP.K(D),$APP.K(J),$APP.n(h)?h:"",typeof w==="string"&&$APP.O(w,""),$APP.n(k)?k:"",$APP.n(r)?r:"",$APP.n(E)?E:"",typeof m==="string"&&$APP.O(m,""),typeof v==="string"&&$APP.O(v,""),ha,ex(q),$APP.n(G)?G:"",ua,R,$APP.K(z)]);m=$APP.ch.g(h);$APP.n(m)?q=null:(v=$APP.N(h),q=$APP.I(v,$APP.U),r=$APP.I(v,$APP.Ni),v=$APP.I(v,$APP.Yg),w=parseFloat(q),z=$APP.O(q,"")&&$APP.p(isNaN(w)),A=$APP.O(r,
10
- "")?parseFloat(r):null,D=$APP.O(v,"")?parseFloat(v):null,q=$APP.O(q,"")&&!z?"Please enter a valid number.":$APP.n(z?$APP.n(A)?$APP.p(isNaN(A))&&w<A:A:z)?"Value must be at least "+$APP.T.g(r)+".":$APP.n(z?$APP.n(D)?$APP.p(isNaN(D))&&w>D:D:z)?"Value must be at most "+$APP.T.g(v)+".":"");r=q;q=$APP.n(m)?m:$APP.O($APP.n(r)?r:"","");m=$APP.n(m)?$APP.ih.g(h):$APP.n(r)?r:"";r=$APP.Zg.g(h);v=$APP.Gh.g(h);z=nx.g(h);w=$APP.Wi.g(h);d.textContent=gx(z,w);e.name=$APP.ai.g(h);e.placeholder=$APP.vi.g(h);e.disabled=
11
- $APP.V.g(h);e.readOnly=$APP.Vi.g(h);e.required=$APP.Tg.g(h);d=$APP.n($APP.Tg.g(h))?"true":"false";e.setAttribute("aria-required",d);e.setAttribute("aria-invalid",$APP.n(q)?"true":"false");d=$APP.n($APP.n(r)?q:r)?"hint error":$APP.n(r)?"hint":$APP.n(q)?"error":null;$APP.n(d)?e.setAttribute("aria-describedby",d):e.removeAttribute("aria-describedby");$APP.C.h(e,a.shadowRoot.activeElement)||(d=$APP.U.g(h),e.value=$APP.C.h(d,"")?"":hx(d,w));c.textContent=$APP.W.g(h);$APP.n(v)?c.classList.remove("label-hidden"):
12
- c.classList.add("label-hidden");g.textContent=$APP.ei.g(h);$APP.n(r)?g.classList.remove("hint-hidden"):g.classList.add("hint-hidden");b.textContent=m;$APP.n(q)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");fx(a,"data-invalid",q);c=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(c)?(g=a.getAttribute("value"),a=jx(a,c,e,$APP.n(g)?g:"")):a=null;return a}return null},px=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},qx=function(a){return function(){var b=
13
- $APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");return b.value=$APP.n(c)?c:""}return null}},rx=function(a){return function(){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),jx(a,e,b,c));return px(a,"x-currency-field-input",{name:d,value:c})}return null}},sx=function(a){return function(){var b=
14
- $APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value,d=parseFloat(c);c=$APP.n(isNaN(d))?c:""+$APP.T.g(d);d=a.getAttribute("name");d=$APP.n(d)?d:"";a.setAttribute("value",c);var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),jx(a,e,b,c));return px(a,"x-currency-field-change",{name:d,value:c})}return null}},tx=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=qx(a),d=rx(a),e=sx(a);b.addEventListener("focus",
15
- c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},ux=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xCurrencyFieldHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("focus",$APP.l(c,"focus"));b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xCurrencyFieldHandlers=null;return}}return null},vx=function(a){$APP.n($APP.l(a,"__xCurrencyFieldRefs"))||
16
- (ix(a),$APP.n(a.attachInternals)&&$APP.la(a,"__xCurrencyFieldInternals",a.attachInternals()));ux(a);var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");ex(a.getAttribute("currency"));var d=function(){var e=a.getAttribute("locale");return $APP.n(e)?e:""}();$APP.n(c)&&(b.value=hx(c,d))}b=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(b)&&b.setFormValue(function(){var e=a.getAttribute("value");return $APP.n(e)?e:""}());tx(a);return ox(a)},wx=function(a,
17
- 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}})},xx=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return fx(this,c,$APP.K(d))}})},yx=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=
18
- this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xCurrencyFieldRefs");if($APP.n(c)){c=$APP.l(c,"input");ex(this.getAttribute("currency"));var d=this.getAttribute("locale");d=$APP.n(d)?d:"";return $APP.C.h(c,this.shadowRoot.activeElement)?null:c.value=$APP.C.h(b,"")?"":hx(b,d)}return null}})},Ax=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
19
- zx;yx(b);wx(b,"name","name");wx(b,"currency","currency");wx(b,"locale","locale");wx(b,"min","min");wx(b,"max","max");wx(b,"placeholder","placeholder");wx(b,"label","label");wx(b,"hint","hint");wx(b,"error","error");xx(b,"disabled","disabled");xx(b,"readOnly","readonly");xx(b,"required","required");b.connectedCallback=function(){return vx(this)};b.disconnectedCallback=function(){return ux(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xCurrencyFieldRefs"),
20
- $APP.n(c)&&(c=$APP.l(c,"input"),$APP.C.h(c,this.shadowRoot.activeElement)||(ex(this.getAttribute("currency")),d=this.getAttribute("locale"),d=$APP.n(d)?d:"",c.value=e==null||$APP.C.h(e,"")?"":hx(e,d))));return ox(this)};b.formDisabledCallback=function(c){fx(this,"disabled",$APP.K(c));return ox(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xCurrencyFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xCurrencyFieldInternals");$APP.n(c)&&c.setFormValue("");
21
- return ox(this)};b.checkValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.reportValidity():!0};return a},Bx=function(){return $APP.n(customElements.get("x-currency-field"))?null:customElements.define("x-currency-field",Ax())},lx=new $APP.M(null,"min-raw","min-raw",183137548),kx=new $APP.M(null,"currency-raw","currency-raw",1169887491),nx=new $APP.M(null,
22
- "currency","currency",-898327568),mx=new $APP.M(null,"locale-raw","locale-raw",385401846);var zx="name value currency locale min max placeholder label hint error disabled required readonly".split(" ");
23
- $APP.Xe([$APP.Ni,$APP.vi,$APP.pi,$APP.Wi,$APP.ai,$APP.U,$APP.ei,nx,$APP.si,$APP.Yg,$APP.W,$APP.ih,$APP.Eg],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"locale"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"hint"],
24
- null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"currency"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"error"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"required"],null)]);$APP.ja("baredom.exports.x_currency_field.init",Bx);export const init=Bx;
2
+ var LC=function(a){a=(""+$APP.S.g($APP.n(a)?a:"")).trim().toUpperCase();return $APP.C.h(a,"")?"USD":a},MC=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},NC=function(a,b){try{var c=(new Intl.NumberFormat($APP.C.h(b,"")?"en-US":b,{style:"currency",currency:a})).formatToParts(0),d=$APP.Dd(function(e){return $APP.C.h("currency",e.type)?e.value:null},$APP.ic(c));return $APP.n(d)?d:a}catch(e){return a}},OC=function(a,b){var c=parseFloat(a);if($APP.n(isNaN(c)))return a;try{return(new Intl.NumberFormat($APP.C.h(b,
3
+ "")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},PC=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("input"),m=document.createElement("span"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-currency-field-bg:#ffffff;--x-currency-field-color:#111827;--x-currency-field-border:1px solid #d1d5db;--x-currency-field-border-radius:6px;--x-currency-field-focus-ring-color:#2563eb;--x-currency-field-symbol-color:#6b7280;--x-currency-field-label-color:#374151;--x-currency-field-hint-color:#6b7280;--x-currency-field-error-color:#dc2626;--x-currency-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-currency-field-bg:#1f2937;--x-currency-field-color:#f9fafb;--x-currency-field-border:1px solid #4b5563;--x-currency-field-focus-ring-color:#3b82f6;--x-currency-field-symbol-color:#9ca3af;--x-currency-field-label-color:#d1d5db;--x-currency-field-hint-color:#9ca3af;--x-currency-field-error-color:#f87171;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:0.875rem;font-weight:500;color:var(--x-currency-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:flex;align-items:center;background:var(--x-currency-field-bg);border:var(--x-currency-field-border);border-radius:var(--x-currency-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput-wrapper]:focus-within{border-color:var(--x-currency-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput-wrapper]{border-color:var(--x-currency-field-error-color);}:host([data-invalid]) [part\x3dinput-wrapper]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-error-color) 20%,transparent);}[part\x3dsymbol]{flex-shrink:0;padding:0.5rem 0 0.5rem 0.75rem;font-size:1rem;color:var(--x-currency-field-symbol-color);user-select:none;pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.75rem;background:transparent;color:var(--x-currency-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]:disabled{opacity:1;cursor:not-allowed;}:host([disabled]) [part\x3dinput-wrapper]{opacity:var(--x-currency-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-currency-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-currency-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput-wrapper]{transition:none;}}";
4
+ d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","symbol");h.setAttribute("aria-hidden","true");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("inputmode","decimal");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id",
5
+ "error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");g.appendChild(h);g.appendChild(k);d.appendChild(e);d.appendChild(g);d.appendChild(m);d.appendChild(p);b.appendChild(c);b.appendChild(d);a.__xCurrencyFieldRefs={field:d,label:e,wrapper:g,symbol:h,input:k,hint:m,error:p}},QC=function(a,b,c,d){var e=a.hasAttribute("error");var g=a.getAttribute("error");g=$APP.n(g)?g:"";var h=a.hasAttribute("required"),k=a.getAttribute("min"),m=a.getAttribute("max");a=parseFloat(d);var p=
6
+ $APP.q(isNaN(a));k=$APP.n(k)?parseFloat(k):null;m=$APP.n(m)?parseFloat(m):null;return $APP.n(e)?b.setValidity({customError:!0},g,c):$APP.n($APP.n(h)?$APP.C.h(d,""):h)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):$APP.O(d,"")&&!p?b.setValidity({badInput:!0},"Please enter a valid number.",c):$APP.n(p?$APP.n(k)?$APP.q(isNaN(k))&&a<k:k:p)?b.setValidity({rangeUnderflow:!0},"Value must be at least "+$APP.S.g(k)+".",c):$APP.n(p?$APP.n(m)?$APP.q(isNaN(m))&&a>m:m:p)?b.setValidity({rangeOverflow:!0},
7
+ "Value must be at most "+$APP.S.g(m)+".",c):b.setValidity({},"",c)},VC=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"symbol"),e=$APP.l(b,"input"),g=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.gf([$APP.Dh,RC,$APP.Ai,$APP.$h,$APP.ui,$APP.aj,SC,$APP.Tg,$APP.Mh,$APP.Cj,$APP.Rj,TC,$APP.gi],[a.getAttribute("label"),a.getAttribute("currency"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.getAttribute("min"),
8
+ a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var k=$APP.N(h);h=$APP.H(k,$APP.gi);var m=$APP.H(k,$APP.Dh),p=$APP.H(k,RC),r=$APP.H(k,$APP.Ai),v=$APP.H(k,$APP.$h),x=$APP.H(k,$APP.ui),y=$APP.H(k,$APP.aj),A=$APP.H(k,SC),D=$APP.H(k,$APP.Tg),G=$APP.H(k,$APP.Mh),I=$APP.H(k,$APP.Cj),F=$APP.H(k,$APP.Rj);k=$APP.H(k,TC);var P=$APP.n(v)?v:"",la=$APP.n(x)?x:"",Ca=$APP.n(m)?m:"";h=$APP.gf([$APP.lk,$APP.zh,
9
+ $APP.uk,$APP.Mj,$APP.Jh,$APP.vk,$APP.mj,$APP.si,$APP.Fi,$APP.Oh,$APP.qj,UC,$APP.Ih,$APP.W,$APP.Vh,$APP.V],[$APP.n(A)?A:"",$APP.J(D),$APP.J(I),$APP.n(h)?h:"",typeof x==="string"&&$APP.O(x,""),$APP.n(k)?k:"",$APP.n(r)?r:"",$APP.n(F)?F:"",typeof m==="string"&&$APP.O(m,""),typeof v==="string"&&$APP.O(v,""),la,LC(p),$APP.n(G)?G:"",Ca,P,$APP.J(y)]);m=$APP.Oh.g(h);$APP.n(m)?p=null:(v=$APP.N(h),p=$APP.H(v,$APP.si),r=$APP.H(v,$APP.lk),v=$APP.H(v,$APP.Ih),x=parseFloat(p),y=$APP.O(p,"")&&$APP.q(isNaN(x)),A=
10
+ $APP.O(r,"")?parseFloat(r):null,D=$APP.O(v,"")?parseFloat(v):null,p=$APP.O(p,"")&&!y?"Please enter a valid number.":$APP.n(y?$APP.n(A)?$APP.q(isNaN(A))&&x<A:A:y)?"Value must be at least "+$APP.S.g(r)+".":$APP.n(y?$APP.n(D)?$APP.q(isNaN(D))&&x>D:D:y)?"Value must be at most "+$APP.S.g(v)+".":"");r=p;p=$APP.n(m)?m:$APP.O($APP.n(r)?r:"","");m=$APP.n(m)?$APP.Vh.g(h):$APP.n(r)?r:"";r=$APP.Jh.g(h);v=$APP.Fi.g(h);y=UC.g(h);x=$APP.vk.g(h);d.textContent=NC(y,x);e.name=$APP.mj.g(h);e.placeholder=$APP.Mj.g(h);
11
+ e.disabled=$APP.V.g(h);e.readOnly=$APP.uk.g(h);e.required=$APP.zh.g(h);d=$APP.n($APP.zh.g(h))?"true":"false";e.setAttribute("aria-required",d);e.setAttribute("aria-invalid",$APP.n(p)?"true":"false");d=$APP.n($APP.n(r)?p:r)?"hint error":$APP.n(r)?"hint":$APP.n(p)?"error":null;$APP.n(d)?e.setAttribute("aria-describedby",d):e.removeAttribute("aria-describedby");$APP.C.h(e,a.shadowRoot.activeElement)||(d=$APP.si.g(h),e.value=$APP.C.h(d,"")?"":OC(d,x));c.textContent=$APP.W.g(h);$APP.n(v)?c.classList.remove("label-hidden"):
12
+ c.classList.add("label-hidden");g.textContent=$APP.qj.g(h);$APP.n(r)?g.classList.remove("hint-hidden"):g.classList.add("hint-hidden");b.textContent=m;$APP.n(p)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");MC(a,"data-invalid",p);c=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(c)?(g=a.getAttribute("value"),a=QC(a,c,e,$APP.n(g)?g:"")):a=null;return a}return null},WC=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},XC=function(a){return function(){var b=
13
+ $APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");return b.value=$APP.n(c)?c:""}return null}},YC=function(a){return function(){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),QC(a,e,b,c));return WC(a,"x-currency-field-input",{name:d,value:c})}return null}},ZC=function(a){return function(){var b=
14
+ $APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value,d=parseFloat(c);c=$APP.n(isNaN(d))?c:""+$APP.S.g(d);d=a.getAttribute("name");d=$APP.n(d)?d:"";a.setAttribute("value",c);var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),QC(a,e,b,c));return WC(a,"x-currency-field-change",{name:d,value:c})}return null}},$C=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=XC(a),d=YC(a),e=ZC(a);b.addEventListener("focus",
15
+ c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},aD=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xCurrencyFieldHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("focus",$APP.l(c,"focus"));b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xCurrencyFieldHandlers=null;return}}return null},bD=function(a){$APP.n($APP.l(a,"__xCurrencyFieldRefs"))||
16
+ (PC(a),$APP.n(a.attachInternals)&&$APP.ma(a,"__xCurrencyFieldInternals",a.attachInternals()));aD(a);var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");LC(a.getAttribute("currency"));var d=function(){var e=a.getAttribute("locale");return $APP.n(e)?e:""}();$APP.n(c)&&(b.value=OC(c,d))}b=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(b)&&b.setFormValue(function(){var e=a.getAttribute("value");return $APP.n(e)?e:""}());$C(a);return VC(a)},cD=function(a,
17
+ 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.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},dD=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return MC(this,c,$APP.J(d))}})},eD=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=
18
+ this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xCurrencyFieldRefs");if($APP.n(c)){c=$APP.l(c,"input");LC(this.getAttribute("currency"));var d=this.getAttribute("locale");d=$APP.n(d)?d:"";return $APP.C.h(c,this.shadowRoot.activeElement)?null:c.value=$APP.C.h(b,"")?"":OC(b,d)}return null}})},gD=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
19
+ fD;eD(b);cD(b,"name","name");cD(b,"currency","currency");cD(b,"locale","locale");cD(b,"min","min");cD(b,"max","max");cD(b,"placeholder","placeholder");cD(b,"label","label");cD(b,"hint","hint");cD(b,"error","error");dD(b,"disabled","disabled");dD(b,"readOnly","readonly");dD(b,"required","required");b.connectedCallback=function(){return bD(this)};b.disconnectedCallback=function(){return aD(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xCurrencyFieldRefs"),
20
+ $APP.n(c)&&(c=$APP.l(c,"input"),$APP.C.h(c,this.shadowRoot.activeElement)||(LC(this.getAttribute("currency")),d=this.getAttribute("locale"),d=$APP.n(d)?d:"",c.value=e==null||$APP.C.h(e,"")?"":OC(e,d))));return VC(this)};b.formDisabledCallback=function(c){MC(this,"disabled",$APP.J(c));return VC(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xCurrencyFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xCurrencyFieldInternals");$APP.n(c)&&c.setFormValue("");
21
+ return VC(this)};b.checkValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.reportValidity():!0};return a},hD=function(){return $APP.n(customElements.get("x-currency-field"))?null:customElements.define("x-currency-field",gD())},SC=new $APP.M(null,"min-raw","min-raw",183137548),RC=new $APP.M(null,"currency-raw","currency-raw",1169887491),UC=new $APP.M(null,
22
+ "currency","currency",-898327568),TC=new $APP.M(null,"locale-raw","locale-raw",385401846);var fD="name value currency locale min max placeholder label hint error disabled required readonly".split(" ");
23
+ $APP.gf([$APP.lk,$APP.Mj,$APP.Fj,$APP.vk,$APP.mj,$APP.si,$APP.qj,UC,$APP.Ij,$APP.Ih,$APP.W,$APP.Vh,$APP.dh],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"locale"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"hint"],null),
24
+ new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"currency"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"error"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"required"],null)]);$APP.ja("baredom.exports.x_currency_field.init",hD);export const init=hD;
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var XB=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},YB=function(a){return a!=null&&$APP.O(a,"false")},ZB=function(a){return a<10?"0"+$APP.T.g(a):""+$APP.T.g(a)},$B=function(a){return $APP.n(a)?""+$APP.T.g(a.getUTCFullYear())+"-"+$APP.T.g(ZB(a.getUTCMonth()+1))+"-"+$APP.T.g(ZB(a.getUTCDate())):null},aC=function(a){var b=(b=typeof a==="string")?$APP.xf(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.n(b)?(a=new Date(""+$APP.T.g(a)+"T00:00:00.000Z"),$APP.n(isNaN(a.getTime()))?null:
3
- a):null},bC=function(a,b){if(a==null&&b==null)return 0;if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},cC=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},dC=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},eC=function(a,b){if($APP.n(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.eg.h(d,b)))}return null},
4
- fC=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?bC(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?bC(a,c)>0:a:c)?c:a},gC=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=bC(b,c)<0?c:b;return!(bC(a,bC(b,c)<0?b:c)<0)&&!(bC(a,d)>0)}return null},jC=function(a,b){var c=$APP.N(b);b=$APP.I(c,hC);c=$APP.I(c,$APP.Wi);return $APP.n(a)?$APP.C.h(b,iC)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):$B(a):null},mC=function(a){a=
5
- XB(a);a=$APP.n(a)?aC(a):null;return new $APP.Q(null,2,[kC,a!=null,lC,a],null)},CC=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.nh),d=$APP.I(b,$APP.hh),e=$APP.I(b,$APP.Ni);a=$APP.I(b,hC);var g=$APP.I(b,$APP.Wi),h=$APP.I(b,nC),k=$APP.I(b,$APP.U),m=$APP.I(b,$APP.Yh),q=$APP.I(b,$APP.qi),r=$APP.I(b,$APP.Yg),v=$APP.I(b,oC);b=$APP.C.h(m,"range")?pC:qC;a=$APP.C.h(a,"localized")?iC:rC;g=XB(g);m=function(){var A=XB(d);return $APP.n(A)?A:" - "}();e=aC(e);r=aC(r);v=$APP.K(v);h=$APP.K(h);if($APP.C.h(b,qC))return b=
6
- aC(k),$APP.Xe([hC,sC,$APP.Wi,tC,$APP.Yh,uC,oC,vC,$APP.hh,wC,xC],[a,b,g,h,qC,r,v,b!=null,m,e,function(){var A=XB(k);return $APP.n(A)?A:""}()]);var w=aC(q),z=aC(c);b=w!=null&&z!=null;return $APP.Xe([yC,hC,zC,$APP.Wi,tC,$APP.Yh,uC,AC,BC,oC,vC,$APP.hh,wC],[function(){var A=XB(c);return $APP.n(A)?A:""}(),a,w,g,h,pC,r,function(){var A=XB(q);return $APP.n(A)?A:""}(),z,v,b,m,e])},EC=function(a){if($APP.n(a)){var b=dC(a),c=cC(b,-($APP.n(b)?b.getUTCDay():0));return $APP.Gd(function(d){d=cC(c,d);var e=$APP.C.h(d.getUTCMonth(),
7
- a.getUTCMonth());return new $APP.Q(null,2,[lC,d,DC,e],null)},$APP.wf(0,42))}return null},FC=function(a){return document.createElement(a)},GC=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.K(c)});a.dispatchEvent(b);return b},HC=function(a){var b=a.getAttribute("mode");$APP.C.h(b,"range");b=CC($APP.Xe([$APP.Ni,hC,$APP.Wi,nC,$APP.U,$APP.Yh,$APP.qi,$APP.Yg,oC,$APP.nh,$APP.hh],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),YB(a.getAttribute("range-allow-same-day")),
8
- a.getAttribute("value"),b,a.getAttribute("start"),a.getAttribute("max"),YB(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.Q(null,2,[hC,hC.g(b),$APP.Wi,$APP.Wi.g(b)],null);var d=$APP.N(c);var e=$APP.I(d,hC);d=$APP.I(d,$APP.Wi);e=new $APP.Q(null,2,[hC,e,$APP.Wi,d],null);if($APP.C.h($APP.Yh.g(b),qC))e=$APP.n(sC.g(b))?jC(sC.g(b),e):"";else{d=$APP.hh.g(b);var g=zC.g(b);g=$APP.n(g)?BC.g(b):g;e=$APP.n(g)?""+$APP.T.g(jC(zC.g(b),e))+$APP.T.g(d)+$APP.T.g(jC(BC.g(b),
9
- e)):$APP.n(zC.g(b))?jC(zC.g(b),e):""}d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"month"):null;g=sC.g(b);$APP.n(g)||(g=zC.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:dC(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},IC=function(a,b){var c=wC.g(b);c=$APP.n(c)?bC(a,wC.g(b))<0:c;if($APP.n(c))return c;c=uC.g(b);return $APP.n(c)?bC(a,uC.g(b))>0:c},LC=function(a,b){if($APP.C.h($APP.Yh.g(b),qC))return new $APP.Q(null,3,[$APP.Ch,function(){var k=sC.g(b);return $APP.n(k)?$APP.C.h(0,
10
- bC(a,sC.g(b))):k}(),JC,!1,KC,!1],null);var c=zC.g(b),d=BC.g(b),e=function(){var k=$APP.n(c)?$APP.C.h(0,bC(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,bC(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?gC(a,c,d):d:c,h=function(){var k=$APP.n(c)?$APP.C.h(0,bC(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,bC(a,d)):d}();return new $APP.Q(null,3,[$APP.Ch,e,JC,g,KC,h],null)},MC=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):null;if($APP.n(a)){var c=a.querySelector('[tabindex\x3d"0"]');
11
- $APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.T.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},NC=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"month-label"),d=$APP.l(b,"grid"),e=$APP.l(b,"weekdays"),g=$APP.l(a,"__xDatePickerState");b=$APP.n(g)?$APP.l(g,"canon"):null;var h=$APP.n(g)?$APP.l(g,"month"):null;g=$APP.n(g)?$APP.l(g,"cfg"):null;g=$APP.n(g)?$APP.Wi.g(g):null;$APP.n(c)&&(h=(new Intl.DateTimeFormat($APP.n(g)?
12
- g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.l(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=FC("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.n($APP.n(d)?b:d)){d.textContent="";e=$APP.l(a,"__xDatePickerState");e=EC($APP.n(e)?$APP.l(e,"month"):null);c=$APP.u(e);h=null;for(var k=g=0;;)if(k<
13
- g){e=h.D(null,k);e=$APP.N(e);var m=$APP.I(e,lC);e=$APP.I(e,DC);var q=FC("button"),r=$B(m),v=m.getUTCDate(),w=IC(m,b);m=LC(m,b);var z=$APP.N(m);m=$APP.I(z,$APP.Ch);var A=$APP.I(z,JC);z=$APP.I(z,KC);q.setAttribute("part","day");q.setAttribute("type","button");q.setAttribute("role","gridcell");q.setAttribute("data-iso",r);q.setAttribute("data-outside",$APP.n(e)?"false":"true");q.setAttribute("data-disabled",$APP.n(w)?"true":"false");q.setAttribute("data-selected",$APP.n(m)?"true":"false");q.setAttribute("data-in-range",
14
- $APP.n(A)?"true":"false");q.setAttribute("data-range-edge",$APP.n(z)?"true":"false");q.setAttribute("aria-selected",$APP.n(m)?"true":"false");q.setAttribute("aria-disabled",$APP.n(w)?"true":"false");q.setAttribute("tabindex","-1");q.textContent=""+$APP.T.g(v);d.appendChild(q);k+=1}else if(e=$APP.u(c))c=e,$APP.uc(c)?(h=$APP.mb(c),c=$APP.nb(c),e=h,g=$APP.B(h),h=e):(e=$APP.x(c),e=$APP.N(e),m=$APP.I(e,lC),e=$APP.I(e,DC),h=FC("button"),g=$B(m),k=m.getUTCDate(),q=IC(m,b),m=LC(m,b),v=$APP.N(m),m=$APP.I(v,
15
- $APP.Ch),r=$APP.I(v,JC),v=$APP.I(v,KC),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.n(e)?"false":"true"),h.setAttribute("data-disabled",$APP.n(q)?"true":"false"),h.setAttribute("data-selected",$APP.n(m)?"true":"false"),h.setAttribute("data-in-range",$APP.n(r)?"true":"false"),h.setAttribute("data-range-edge",$APP.n(v)?"true":"false"),h.setAttribute("aria-selected",$APP.n(m)?"true":"false"),
16
- h.setAttribute("aria-disabled",$APP.n(q)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.T.g(k),d.appendChild(h),c=$APP.y(c),h=null,g=0),k=0;else break;d=$APP.l(a,"__xDatePickerGridFocus");a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):null;$APP.n($APP.n(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.T.g(d)+'"]'),a=$APP.n(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},OC=function(a){var b=$APP.l(a,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,
17
- "input"):null;var c=$APP.l(a,"__xDatePickerState");c=$APP.n(c)?$APP.l(c,"disp"):null;a=$APP.l(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.p(a):b)?b.value=$APP.n(c)?c:"":null},PC=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),k=a.getAttribute("aria-describedby"),m=a.hasAttribute("open");$APP.n(b)&&($APP.n(d)?
2
+ var oI=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},pI=function(a){return a!=null&&$APP.O(a,"false")},qI=function(a){return a<10?"0"+$APP.S.g(a):""+$APP.S.g(a)},rI=function(a){return $APP.n(a)?""+$APP.S.g(a.getUTCFullYear())+"-"+$APP.S.g(qI(a.getUTCMonth()+1))+"-"+$APP.S.g(qI(a.getUTCDate())):null},sI=function(a){var b=(b=typeof a==="string")?$APP.Qf(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.n(b)?(a=new Date(""+$APP.S.g(a)+"T00:00:00.000Z"),$APP.n(isNaN(a.getTime()))?null:
3
+ a):null},tI=function(a,b){if(a==null&&b==null)return 0;if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},uI=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},vI=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},wI=function(a,b){if($APP.n(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.Bg.h(d,b)))}return null},
4
+ xI=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?tI(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?tI(a,c)>0:a:c)?c:a},yI=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=tI(b,c)<0?c:b;return!(tI(a,tI(b,c)<0?b:c)<0)&&!(tI(a,d)>0)}return null},BI=function(a,b){var c=$APP.N(b);b=$APP.H(c,zI);c=$APP.H(c,$APP.vk);return $APP.n(a)?$APP.C.h(b,AI)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):rI(a):null},EI=function(a){a=
5
+ oI(a);a=$APP.n(a)?sI(a):null;return new $APP.Q(null,2,[CI,a!=null,DI,a],null)},UI=function(a){var b=$APP.N(a),c=$APP.H(b,$APP.ci),d=$APP.H(b,$APP.Uh),e=$APP.H(b,$APP.lk);a=$APP.H(b,zI);var g=$APP.H(b,$APP.vk),h=$APP.H(b,FI),k=$APP.H(b,$APP.si),m=$APP.H(b,$APP.ij),p=$APP.H(b,$APP.Gj),r=$APP.H(b,$APP.Ih),v=$APP.H(b,GI);b=$APP.C.h(m,"range")?HI:II;a=$APP.C.h(a,"localized")?AI:JI;g=oI(g);m=function(){var A=oI(d);return $APP.n(A)?A:" - "}();e=sI(e);r=sI(r);v=$APP.J(v);h=$APP.J(h);if($APP.C.h(b,II))return b=
6
+ sI(k),$APP.gf([zI,KI,$APP.vk,LI,$APP.ij,MI,GI,NI,$APP.Uh,OI,PI],[a,b,g,h,II,r,v,b!=null,m,e,function(){var A=oI(k);return $APP.n(A)?A:""}()]);var x=sI(p),y=sI(c);b=x!=null&&y!=null;return $APP.gf([QI,zI,RI,$APP.vk,LI,$APP.ij,MI,SI,TI,GI,NI,$APP.Uh,OI],[function(){var A=oI(c);return $APP.n(A)?A:""}(),a,x,g,h,HI,r,function(){var A=oI(p);return $APP.n(A)?A:""}(),y,v,b,m,e])},WI=function(a){if($APP.n(a)){var b=vI(a),c=uI(b,-($APP.n(b)?b.getUTCDay():0));return $APP.Od(function(d){d=uI(c,d);var e=$APP.C.h(d.getUTCMonth(),
7
+ a.getUTCMonth());return new $APP.Q(null,2,[DI,d,VI,e],null)},$APP.Pf(0,42))}return null},XI=function(a){return document.createElement(a)},YI=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.J(c)});a.dispatchEvent(b);return b},ZI=function(a){var b=a.getAttribute("mode");$APP.C.h(b,"range");b=UI($APP.gf([$APP.lk,zI,$APP.vk,FI,$APP.si,$APP.ij,$APP.Gj,$APP.Ih,GI,$APP.ci,$APP.Uh],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),pI(a.getAttribute("range-allow-same-day")),
8
+ a.getAttribute("value"),b,a.getAttribute("start"),a.getAttribute("max"),pI(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.Q(null,2,[zI,zI.g(b),$APP.vk,$APP.vk.g(b)],null);var d=$APP.N(c);var e=$APP.H(d,zI);d=$APP.H(d,$APP.vk);e=new $APP.Q(null,2,[zI,e,$APP.vk,d],null);if($APP.C.h($APP.ij.g(b),II))e=$APP.n(KI.g(b))?BI(KI.g(b),e):"";else{d=$APP.Uh.g(b);var g=RI.g(b);g=$APP.n(g)?TI.g(b):g;e=$APP.n(g)?""+$APP.S.g(BI(RI.g(b),e))+$APP.S.g(d)+$APP.S.g(BI(TI.g(b),
9
+ e)):$APP.n(RI.g(b))?BI(RI.g(b),e):""}d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"month"):null;g=KI.g(b);$APP.n(g)||(g=RI.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:vI(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},$I=function(a,b){var c=OI.g(b);c=$APP.n(c)?tI(a,OI.g(b))<0:c;if($APP.n(c))return c;c=MI.g(b);return $APP.n(c)?tI(a,MI.g(b))>0:c},cJ=function(a,b){if($APP.C.h($APP.ij.g(b),II))return new $APP.Q(null,3,[$APP.yi,function(){var k=KI.g(b);return $APP.n(k)?$APP.C.h(0,
10
+ tI(a,KI.g(b))):k}(),aJ,!1,bJ,!1],null);var c=RI.g(b),d=TI.g(b),e=function(){var k=$APP.n(c)?$APP.C.h(0,tI(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,tI(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?yI(a,c,d):d:c,h=function(){var k=$APP.n(c)?$APP.C.h(0,tI(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,tI(a,d)):d}();return new $APP.Q(null,3,[$APP.yi,e,aJ,g,bJ,h],null)},dJ=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):null;if($APP.n(a)){var c=a.querySelector('[tabindex\x3d"0"]');
11
+ $APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.S.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},eJ=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"month-label"),d=$APP.l(b,"grid"),e=$APP.l(b,"weekdays"),g=$APP.l(a,"__xDatePickerState");b=$APP.n(g)?$APP.l(g,"canon"):null;var h=$APP.n(g)?$APP.l(g,"month"):null;g=$APP.n(g)?$APP.l(g,"cfg"):null;g=$APP.n(g)?$APP.vk.g(g):null;$APP.n(c)&&(h=(new Intl.DateTimeFormat($APP.n(g)?
12
+ g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.l(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=XI("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.n($APP.n(d)?b:d)){d.textContent="";e=$APP.l(a,"__xDatePickerState");e=WI($APP.n(e)?$APP.l(e,"month"):null);c=$APP.u(e);h=null;for(var k=g=0;;)if(k<
13
+ g){e=h.H(null,k);e=$APP.N(e);var m=$APP.H(e,DI);e=$APP.H(e,VI);var p=XI("button"),r=rI(m),v=m.getUTCDate(),x=$I(m,b);m=cJ(m,b);var y=$APP.N(m);m=$APP.H(y,$APP.yi);var A=$APP.H(y,aJ);y=$APP.H(y,bJ);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",r);p.setAttribute("data-outside",$APP.n(e)?"false":"true");p.setAttribute("data-disabled",$APP.n(x)?"true":"false");p.setAttribute("data-selected",$APP.n(m)?"true":"false");p.setAttribute("data-in-range",
14
+ $APP.n(A)?"true":"false");p.setAttribute("data-range-edge",$APP.n(y)?"true":"false");p.setAttribute("aria-selected",$APP.n(m)?"true":"false");p.setAttribute("aria-disabled",$APP.n(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.S.g(v);d.appendChild(p);k+=1}else if(e=$APP.u(c))c=e,$APP.Ac(c)?(h=$APP.ob(c),c=$APP.pb(c),e=h,g=$APP.B(h),h=e):(e=$APP.w(c),e=$APP.N(e),m=$APP.H(e,DI),e=$APP.H(e,VI),h=XI("button"),g=rI(m),k=m.getUTCDate(),p=$I(m,b),m=cJ(m,b),v=$APP.N(m),m=$APP.H(v,
15
+ $APP.yi),r=$APP.H(v,aJ),v=$APP.H(v,bJ),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.n(e)?"false":"true"),h.setAttribute("data-disabled",$APP.n(p)?"true":"false"),h.setAttribute("data-selected",$APP.n(m)?"true":"false"),h.setAttribute("data-in-range",$APP.n(r)?"true":"false"),h.setAttribute("data-range-edge",$APP.n(v)?"true":"false"),h.setAttribute("aria-selected",$APP.n(m)?"true":"false"),
16
+ h.setAttribute("aria-disabled",$APP.n(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.S.g(k),d.appendChild(h),c=$APP.z(c),h=null,g=0),k=0;else break;d=$APP.l(a,"__xDatePickerGridFocus");a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):null;$APP.n($APP.n(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.S.g(d)+'"]'),a=$APP.n(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},fJ=function(a){var b=$APP.l(a,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,
17
+ "input"):null;var c=$APP.l(a,"__xDatePickerState");c=$APP.n(c)?$APP.l(c,"disp"):null;a=$APP.l(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.q(a):b)?b.value=$APP.n(c)?c:"":null},gJ=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),k=a.getAttribute("aria-describedby"),m=a.hasAttribute("open");$APP.n(b)&&($APP.n(d)?
18
18
  b.setAttribute("disabled",""):b.removeAttribute("disabled"));$APP.n($APP.n(d)?m:d)&&a.removeAttribute("open");$APP.n(c)&&(c.setAttribute("aria-expanded",$APP.n(m)?"true":"false"),$APP.n(d)?(c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true")):(c.removeAttribute("disabled"),c.removeAttribute("aria-disabled")),$APP.n(e)&&c.setAttribute("readonly",""),$APP.n(e)||c.removeAttribute("readonly"),$APP.n(g)&&c.setAttribute("placeholder",g),$APP.n(h)&&c.setAttribute("aria-label",h),$APP.n(k)&&
19
- c.setAttribute("aria-describedby",k));OC(a);return NC(a)}return null},QC=function(a,b){$APP.n(b)?a.setAttribute("value",$B(b)):a.removeAttribute("value")},RC=function(a,b,c){if($APP.n(a.hasAttribute("readonly")))return null;var d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"canon"):null;var e=$APP.n(d)?$APP.Yh.g(d):null,g=$APP.C.h(e,pC)?"range":"single",h=$APP.C.h(e,qC)?{value:$B(b),mode:g,reason:c}:{date:$B(b),mode:g,reason:c};h=GC(a,"x-date-picker-change-request",!0,h);if($APP.n(h.defaultPrevented))return null;
20
- if($APP.C.h(e,qC))return d=$B(b),QC(a,b),HC(a),PC(a),GC(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),PC(a)):null;e=function(){var z=$APP.l(a,"__xDatePickerRangeStep");return $APP.n(z)?z:0}();h=zC.g(d);BC.g(d);if($APP.C.h(e,0))a.setAttribute("start",$B(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.C.h(e,1)){var k=tC.g(d),m=bC(b,h);if($APP.n(function(){var z=m>0;return z?z:$APP.n(k)?m===0:k}())){var q=
21
- $APP.n(oC.g(d))?bC(h,b)<0?h:b:h,r=$APP.n(oC.g(d))?bC(h,b)>0?h:b:b;a.setAttribute("start",$B(q));a.setAttribute("end",$B(r));a.__xDatePickerRangeStep=0;$APP.n(function(){var z=a.hasAttribute("close-on-select");return $APP.n(z)?q!=null&&r!=null:z}())&&a.removeAttribute("open")}else a.setAttribute("start",$B(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",$B(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;HC(a);PC(a);b=$APP.l(a,"__xDatePickerState");b=$APP.n(b)?
22
- $APP.l(b,"canon"):null;var v=$APP.n(zC.g(b))?$B(zC.g(b)):null,w=$APP.n(BC.g(b))?$B(BC.g(b)):null;b=function(){var z={mode:g,reason:c};$APP.n(v)&&(z.start=v);$APP.n(w)&&(z.end=w);return z}();return GC(a,"x-date-picker-change",!1,b)},SC=function(a,b){var c=$APP.l(a,"__xDatePickerRefs");c=$APP.n(c)?$APP.l(c,"input"):null;var d=$APP.n(c)?c.value:null;c=$APP.l(a,"__xDatePickerState");var e=$APP.n(c)?$APP.l(c,"canon"):null,g=$APP.Yh.g(e);c=$APP.C.h(g,pC)?"range":"single";GC(a,"x-date-picker-input",!1,{value:d,
23
- mode:c});if($APP.C.h(g,qC)){if(d=mC(d),e=$APP.N(d),d=$APP.I(e,kC),e=$APP.I(e,lC),$APP.n(d)){g=$B(e);d=GC(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;QC(a,e);HC(a);PC(a);return GC(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.Q(null,1,[$APP.hh,$APP.hh.g(e)],null),e=$APP.N(e),e=$APP.I(e,$APP.hh),e=typeof e==="string"&&e.length>0?e:" - ",d=XB(d),d==null?d=new $APP.Q(null,3,[kC,!1,$APP.qi,null,$APP.nh,null],null):
24
- (g=d.indexOf(e),g<0?(d=mC(d),e=$APP.N(d),d=$APP.I(e,kC),e=$APP.I(e,lC),d=new $APP.Q(null,3,[kC,d,$APP.qi,e,$APP.nh,null],null)):(e=d.substring(g+e.length).trim(),d=aC(d.substring(0,g).trim()),e=aC(e),d=new $APP.Q(null,3,[kC,d!=null&&e!=null,$APP.qi,d,$APP.nh,e],null))),g=$APP.N(d),d=$APP.I(g,kC),e=$APP.I(g,$APP.qi),g=$APP.I(g,$APP.nh),$APP.n(d)){e=$B(e);g=$B(g);d=GC(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;a.setAttribute("start",
25
- e);a.setAttribute("end",g);a.__xDatePickerRangeStep=0;HC(a);PC(a);return GC(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},UC=function(a,b){var c=$APP.l(a,"__xDatePickerState"),d=$APP.n(c)?$APP.l(c,"month"):null;if($APP.n(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.C.h(b,TC)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return NC(a)}return null},VC=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):null},XC=function(a,
26
- b){if($APP.n(a.hasAttribute("disabled")))return null;b=b.currentTarget.getAttribute("data-nav");return $APP.C.h(b,"prev")?UC(a,WC):UC(a,TC)},YC=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.l(a,"__xDatePickerGridFocus"),e=$APP.n(d)?aC(d):null;d=$APP.l(a,"__xDatePickerState");var g=$APP.n(d)?$APP.l(d,"canon"):null,h=$APP.n(d)?$APP.l(d,"month"):null,k=$APP.n(e)?function(){switch(c){case "ArrowLeft":return cC(e,-1);case "ArrowRight":return cC(e,1);case "ArrowUp":return cC(e,
27
- -7);case "ArrowDown":return cC(e,7);case "PageUp":return eC(e,-1);case "PageDown":return eC(e,1);case "Home":return $APP.n(e)?cC(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?cC(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return k!=null?(b.preventDefault(),b=fC(k,wC.g(g),uC.g(g)),g=$B(b),$APP.n($APP.n(h)?$APP.O(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.la(d,"month",dC(b)),NC(a)),MC(a,g)):$APP.n(function(){var m=$APP.C.h(c,"Enter")||$APP.C.h(c," ");return m?
28
- $APP.n(e)?$APP.p(a.hasAttribute("readonly")):e:m}())?(b.preventDefault(),$APP.n(IC(e,g))?null:RC(a,e,"keyboard")):$APP.C.h(c,"Escape")?(b.preventDefault(),VC(a),d=$APP.l(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.l(d,"input"):null,$APP.n(d)?d.focus():null):null},ZC=function(a){function b(E){return $APP.n(a.hasAttribute("open"))?$APP.n(E.composedPath().some(function(R){return R===a}))?null:VC(a):null}function c(E){return E.preventDefault()}function d(E){return YC(a,E)}function e(E){var R=a.hasAttribute("disabled");
29
- $APP.n($APP.n(R)?R:a.hasAttribute("readonly"))?E=null:(E=E.target.closest("button[data-iso]"),$APP.n($APP.n(E)?$APP.O("true",E.getAttribute("data-disabled")):E)?(E=E.getAttribute("data-iso"),E=aC(E),E=$APP.n(E)?RC(a,E,"click"):null):E=null);return E}function g(E){return XC(a,E)}function h(E){return XC(a,E)}function k(){if($APP.n(a.hasAttribute("disabled")))var E=null;else if($APP.n(a.hasAttribute("open")))E=VC(a);else if($APP.n(a.hasAttribute("open")))E=null;else{a.setAttribute("open","");E=$APP.l(a,
30
- "__xDatePickerState");E=$APP.n(E)?$APP.l(E,"canon"):null;var R=sC.g(E);$APP.n(R)?E=R:(E=zC.g(E),E=$APP.n(E)?E:new Date(Date.now()));E=$B(E);E=MC(a,E)}return E}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||SC(a,"blur");return OC(a)}function q(){a.__xDatePickerFocused=!0}function r(E){if($APP.n(a.hasAttribute("disabled")))E=null;else{var R=E.key;$APP.C.h(R,"Enter")?(E.preventDefault(),E=SC(a,"keyboard")):E=$APP.C.h(R,"Escape")?VC(a):null}return E}function v(){var E=$APP.l(a,
31
- "__xDatePickerRefs");E=$APP.n(E)?$APP.l(E,"input"):null;var R=$APP.l(a,"__xDatePickerState");R=$APP.C.h($APP.Yh.g($APP.n(R)?$APP.l(R,"canon"):null),pC)?"range":"single";a.__xDatePickerDisplay=$APP.n(E)?E.value:null;return GC(a,"x-date-picker-input",!1,{value:$APP.n(E)?E.value:null,mode:R})}var w=$APP.l(a,"__xDatePickerRefs"),z=$APP.l(w,"input"),A=$APP.l(w,"btn"),D=$APP.l(w,"nav-prev"),G=$APP.l(w,"nav-next"),J=$APP.l(w,"grid");w=$APP.l(w,"popover");z.addEventListener("input",v);z.addEventListener("keydown",
32
- r);z.addEventListener("focus",q);z.addEventListener("blur",m);A.addEventListener("click",k);D.addEventListener("click",h);G.addEventListener("click",g);J.addEventListener("click",e);J.addEventListener("keydown",d);w.addEventListener("mousedown",c);document.addEventListener("pointerdown",b,!0);$APP.la(a,"__xDatePickerHandlers",{"pop-md":c,keydown:r,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:q,input:v,btn:k,"doc-click":b})},$C=function(a){var b=$APP.l(a,"__xDatePickerRefs");a=$APP.l(a,"__xDatePickerHandlers");
19
+ c.setAttribute("aria-describedby",k));fJ(a);return eJ(a)}return null},hJ=function(a,b){$APP.n(b)?a.setAttribute("value",rI(b)):a.removeAttribute("value")},iJ=function(a,b,c){if($APP.n(a.hasAttribute("readonly")))return null;var d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"canon"):null;var e=$APP.n(d)?$APP.ij.g(d):null,g=$APP.C.h(e,HI)?"range":"single",h=$APP.C.h(e,II)?{value:rI(b),mode:g,reason:c}:{date:rI(b),mode:g,reason:c};h=YI(a,"x-date-picker-change-request",!0,h);if($APP.n(h.defaultPrevented))return null;
20
+ if($APP.C.h(e,II))return d=rI(b),hJ(a,b),ZI(a),gJ(a),YI(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),gJ(a)):null;e=function(){var y=$APP.l(a,"__xDatePickerRangeStep");return $APP.n(y)?y:0}();h=RI.g(d);TI.g(d);if($APP.C.h(e,0))a.setAttribute("start",rI(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.C.h(e,1)){var k=LI.g(d),m=tI(b,h);if($APP.n(function(){var y=m>0;return y?y:$APP.n(k)?m===0:k}())){var p=
21
+ $APP.n(GI.g(d))?tI(h,b)<0?h:b:h,r=$APP.n(GI.g(d))?tI(h,b)>0?h:b:b;a.setAttribute("start",rI(p));a.setAttribute("end",rI(r));a.__xDatePickerRangeStep=0;$APP.n(function(){var y=a.hasAttribute("close-on-select");return $APP.n(y)?p!=null&&r!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",rI(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",rI(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;ZI(a);gJ(a);b=$APP.l(a,"__xDatePickerState");b=$APP.n(b)?
22
+ $APP.l(b,"canon"):null;var v=$APP.n(RI.g(b))?rI(RI.g(b)):null,x=$APP.n(TI.g(b))?rI(TI.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.n(v)&&(y.start=v);$APP.n(x)&&(y.end=x);return y}();return YI(a,"x-date-picker-change",!1,b)},jJ=function(a,b){var c=$APP.l(a,"__xDatePickerRefs");c=$APP.n(c)?$APP.l(c,"input"):null;var d=$APP.n(c)?c.value:null;c=$APP.l(a,"__xDatePickerState");var e=$APP.n(c)?$APP.l(c,"canon"):null,g=$APP.ij.g(e);c=$APP.C.h(g,HI)?"range":"single";YI(a,"x-date-picker-input",!1,{value:d,
23
+ mode:c});if($APP.C.h(g,II)){if(d=EI(d),e=$APP.N(d),d=$APP.H(e,CI),e=$APP.H(e,DI),$APP.n(d)){g=rI(e);d=YI(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;hJ(a,e);ZI(a);gJ(a);return YI(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.Q(null,1,[$APP.Uh,$APP.Uh.g(e)],null),e=$APP.N(e),e=$APP.H(e,$APP.Uh),e=typeof e==="string"&&e.length>0?e:" - ",d=oI(d),d==null?d=new $APP.Q(null,3,[CI,!1,$APP.Gj,null,$APP.ci,null],null):
24
+ (g=d.indexOf(e),g<0?(d=EI(d),e=$APP.N(d),d=$APP.H(e,CI),e=$APP.H(e,DI),d=new $APP.Q(null,3,[CI,d,$APP.Gj,e,$APP.ci,null],null)):(e=d.substring(g+e.length).trim(),d=sI(d.substring(0,g).trim()),e=sI(e),d=new $APP.Q(null,3,[CI,d!=null&&e!=null,$APP.Gj,d,$APP.ci,e],null))),g=$APP.N(d),d=$APP.H(g,CI),e=$APP.H(g,$APP.Gj),g=$APP.H(g,$APP.ci),$APP.n(d)){e=rI(e);g=rI(g);d=YI(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;a.setAttribute("start",
25
+ e);a.setAttribute("end",g);a.__xDatePickerRangeStep=0;ZI(a);gJ(a);return YI(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},lJ=function(a,b){var c=$APP.l(a,"__xDatePickerState"),d=$APP.n(c)?$APP.l(c,"month"):null;if($APP.n(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.C.h(b,kJ)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return eJ(a)}return null},mJ=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):null},oJ=function(a,
26
+ b){if($APP.n(a.hasAttribute("disabled")))return null;b=b.currentTarget.getAttribute("data-nav");return $APP.C.h(b,"prev")?lJ(a,nJ):lJ(a,kJ)},pJ=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.l(a,"__xDatePickerGridFocus"),e=$APP.n(d)?sI(d):null;d=$APP.l(a,"__xDatePickerState");var g=$APP.n(d)?$APP.l(d,"canon"):null,h=$APP.n(d)?$APP.l(d,"month"):null,k=$APP.n(e)?function(){switch(c){case "ArrowLeft":return uI(e,-1);case "ArrowRight":return uI(e,1);case "ArrowUp":return uI(e,
27
+ -7);case "ArrowDown":return uI(e,7);case "PageUp":return wI(e,-1);case "PageDown":return wI(e,1);case "Home":return $APP.n(e)?uI(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?uI(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return k!=null?(b.preventDefault(),b=xI(k,OI.g(g),MI.g(g)),g=rI(b),$APP.n($APP.n(h)?$APP.O(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.ma(d,"month",vI(b)),eJ(a)),dJ(a,g)):$APP.n(function(){var m=$APP.C.h(c,"Enter")||$APP.C.h(c," ");return m?
28
+ $APP.n(e)?$APP.q(a.hasAttribute("readonly")):e:m}())?(b.preventDefault(),$APP.n($I(e,g))?null:iJ(a,e,"keyboard")):$APP.C.h(c,"Escape")?(b.preventDefault(),mJ(a),d=$APP.l(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.l(d,"input"):null,$APP.n(d)?d.focus():null):null},qJ=function(a){function b(F){return $APP.n(a.hasAttribute("open"))?$APP.n(F.composedPath().some(function(P){return P===a}))?null:mJ(a):null}function c(F){return F.preventDefault()}function d(F){return pJ(a,F)}function e(F){var P=a.hasAttribute("disabled");
29
+ $APP.n($APP.n(P)?P:a.hasAttribute("readonly"))?F=null:(F=F.target.closest("button[data-iso]"),$APP.n($APP.n(F)?$APP.O("true",F.getAttribute("data-disabled")):F)?(F=F.getAttribute("data-iso"),F=sI(F),F=$APP.n(F)?iJ(a,F,"click"):null):F=null);return F}function g(F){return oJ(a,F)}function h(F){return oJ(a,F)}function k(){if($APP.n(a.hasAttribute("disabled")))var F=null;else if($APP.n(a.hasAttribute("open")))F=mJ(a);else if($APP.n(a.hasAttribute("open")))F=null;else{a.setAttribute("open","");F=$APP.l(a,
30
+ "__xDatePickerState");F=$APP.n(F)?$APP.l(F,"canon"):null;var P=KI.g(F);$APP.n(P)?F=P:(F=RI.g(F),F=$APP.n(F)?F:new Date(Date.now()));F=rI(F);F=dJ(a,F)}return F}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||jJ(a,"blur");return fJ(a)}function p(){a.__xDatePickerFocused=!0}function r(F){if($APP.n(a.hasAttribute("disabled")))F=null;else{var P=F.key;$APP.C.h(P,"Enter")?(F.preventDefault(),F=jJ(a,"keyboard")):F=$APP.C.h(P,"Escape")?mJ(a):null}return F}function v(){var F=$APP.l(a,
31
+ "__xDatePickerRefs");F=$APP.n(F)?$APP.l(F,"input"):null;var P=$APP.l(a,"__xDatePickerState");P=$APP.C.h($APP.ij.g($APP.n(P)?$APP.l(P,"canon"):null),HI)?"range":"single";a.__xDatePickerDisplay=$APP.n(F)?F.value:null;return YI(a,"x-date-picker-input",!1,{value:$APP.n(F)?F.value:null,mode:P})}var x=$APP.l(a,"__xDatePickerRefs"),y=$APP.l(x,"input"),A=$APP.l(x,"btn"),D=$APP.l(x,"nav-prev"),G=$APP.l(x,"nav-next"),I=$APP.l(x,"grid");x=$APP.l(x,"popover");y.addEventListener("input",v);y.addEventListener("keydown",
32
+ r);y.addEventListener("focus",p);y.addEventListener("blur",m);A.addEventListener("click",k);D.addEventListener("click",h);G.addEventListener("click",g);I.addEventListener("click",e);I.addEventListener("keydown",d);x.addEventListener("mousedown",c);document.addEventListener("pointerdown",b,!0);$APP.ma(a,"__xDatePickerHandlers",{"pop-md":c,keydown:r,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:v,btn:k,"doc-click":b})},rJ=function(a){var b=$APP.l(a,"__xDatePickerRefs");a=$APP.l(a,"__xDatePickerHandlers");
33
33
  if($APP.n($APP.n(b)?a:b)){var c=$APP.l(b,"input"),d=$APP.l(b,"btn"),e=$APP.l(b,"nav-prev"),g=$APP.l(b,"nav-next"),h=$APP.l(b,"grid");b=$APP.l(b,"popover");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));c.removeEventListener("focus",$APP.l(a,"focus"));c.removeEventListener("blur",$APP.l(a,"blur"));d.removeEventListener("click",$APP.l(a,"btn"));e.removeEventListener("click",$APP.l(a,"prev"));g.removeEventListener("click",$APP.l(a,"next"));h.removeEventListener("click",
34
- $APP.l(a,"grid"));h.removeEventListener("keydown",$APP.l(a,"grid-kd"));b.removeEventListener("mousedown",$APP.l(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.l(a,"doc-click"),!0)}return null},aD=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return typeof d==="string"&&$APP.O(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},bD=function(a,b,c){Object.defineProperty(a,
35
- b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},cD=function(a){a.focus=function(){var b=$APP.l(this,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,"input"):null;return $APP.n(b)?b.focus():null};a.commit=function(){return SC(this,"programmatic")};a.clear=function(){var b=$APP.l(this,"__xDatePickerState");$APP.C.h($APP.Yh.g($APP.n(b)?$APP.l(b,"canon"):null),qC)?this.removeAttribute("value"):
36
- (this.removeAttribute("start"),this.removeAttribute("end"));HC(this);return PC(this)}},eD=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=dD;b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=FC("style"),e=FC("div"),g=FC("input"),h=FC("button"),k=FC("div"),m=FC("div"),q=FC("button"),r=FC("div"),v=FC("button"),w=FC("div"),z=FC("div"),A=FC("div");d.textContent=":host{display:block;color-scheme:light dark;}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:#334155;--x-date-picker-input-bg:#0f172a;--x-date-picker-btn-bg:#1e293b;--x-date-picker-btn-hover:#334155;--x-date-picker-popover-bg:#1e293b;--x-date-picker-day-hover:#334155;--x-date-picker-selected-bg:#3b82f6;--x-date-picker-range-bg:#1e3a8a;--x-date-picker-range-text:#93c5fd;--x-date-picker-nav-hover:#334155;}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
34
+ $APP.l(a,"grid"));h.removeEventListener("keydown",$APP.l(a,"grid-kd"));b.removeEventListener("mousedown",$APP.l(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.l(a,"doc-click"),!0)}return null},sJ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return typeof d==="string"&&$APP.O(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},tJ=function(a,b,c){Object.defineProperty(a,
35
+ b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},uJ=function(a){a.focus=function(){var b=$APP.l(this,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,"input"):null;return $APP.n(b)?b.focus():null};a.commit=function(){return jJ(this,"programmatic")};a.clear=function(){var b=$APP.l(this,"__xDatePickerState");$APP.C.h($APP.ij.g($APP.n(b)?$APP.l(b,"canon"):null),II)?this.removeAttribute("value"):
36
+ (this.removeAttribute("start"),this.removeAttribute("end"));ZI(this);return gJ(this)}},wJ=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=vJ;b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=XI("style"),e=XI("div"),g=XI("input"),h=XI("button"),k=XI("div"),m=XI("div"),p=XI("button"),r=XI("div"),v=XI("button"),x=XI("div"),y=XI("div"),A=XI("div");d.textContent=":host{display:block;color-scheme:light dark;}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:#334155;--x-date-picker-input-bg:#0f172a;--x-date-picker-btn-bg:#1e293b;--x-date-picker-btn-hover:#334155;--x-date-picker-popover-bg:#1e293b;--x-date-picker-day-hover:#334155;--x-date-picker-selected-bg:#3b82f6;--x-date-picker-range-bg:#1e3a8a;--x-date-picker-range-text:#93c5fd;--x-date-picker-nav-hover:#334155;}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
37
37
  e.setAttribute("part","container");g.setAttribute("part","input");g.setAttribute("type","text");g.setAttribute("inputmode","none");g.setAttribute("autocomplete","off");g.setAttribute("role","combobox");g.setAttribute("aria-haspopup","dialog");g.setAttribute("aria-expanded","false");h.setAttribute("part","btn");h.setAttribute("type","button");h.setAttribute("aria-label","Open calendar");h.textContent="\ud83d\udcc5";k.setAttribute("part","popover");k.setAttribute("role","dialog");k.setAttribute("aria-modal",
38
- "true");k.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");q.setAttribute("part","navbtn");q.setAttribute("data-nav","prev");q.setAttribute("type","button");q.setAttribute("aria-label","Previous month");q.textContent="‹";r.setAttribute("part","monthlabel");r.setAttribute("aria-live","polite");v.setAttribute("part","navbtn");v.setAttribute("data-nav","next");v.setAttribute("type","button");v.setAttribute("aria-label","Next month");v.textContent="›";w.setAttribute("part","weekdays");
39
- w.setAttribute("aria-hidden","true");z.setAttribute("part","grid");z.setAttribute("role","grid");z.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(q);m.appendChild(r);m.appendChild(v);k.appendChild(m);k.appendChild(w);k.appendChild(z);k.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:w,grid:z,popover:k,
40
- "nav-next":v,"month-label":r,input:g,btn:h,sr:A,"nav-prev":q}}$C(this);ZC(this);HC(this);return PC(this)};b.disconnectedCallback=function(){return $C(this)};b.attributeChangedCallback=function(){HC(this);return PC(this)};aD(b,"mode","mode");aD(b,"value","value");aD(b,"start","start");aD(b,"end","end");bD(b,"open","open");bD(b,"disabled","disabled");bD(b,"readOnly","readonly");bD(b,"required","required");cD(b);return a},fD=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
- eD())},zC=new $APP.M(null,"start-d","start-d",-1546785820),kC=new $APP.M(null,"ok?","ok?",447310304),lC=new $APP.M(null,"date","date",-1463434462),oC=new $APP.M(null,"auto-swap?","auto-swap?",-1675454411),yC=new $APP.M(null,"end-str","end-str",-558112319),iC=new $APP.M(null,"localized","localized",1722109655),KC=new $APP.M(null,"edge?","edge?",203916303),xC=new $APP.M(null,"value-str","value-str",989198845),vC=new $APP.M(null,"complete?","complete?",-892991879),uC=new $APP.M(null,"max-d","max-d",
42
- -814680979),qC=new $APP.M(null,"single","single",1551466437),AC=new $APP.M(null,"start-str","start-str",1077409677),pC=new $APP.M(null,"range","range",1639692286),rC=new $APP.M(null,"iso","iso",-1366207543),DC=new $APP.M(null,"in-month?","in-month?",-1630426251),wC=new $APP.M(null,"min-d","min-d",-1118792932),hC=new $APP.M(null,"format","format",-1306924766),sC=new $APP.M(null,"value-d","value-d",-1768534876),JC=new $APP.M(null,"in-range?","in-range?",-291779262),WC=new $APP.M(null,"prev","prev",
43
- -1597069226),TC=new $APP.M(null,"next","next",-117701485),BC=new $APP.M(null,"end-d","end-d",-1316370898),tC=new $APP.M(null,"allow-same-day?","allow-same-day?",-1971558934),nC=new $APP.M(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var dD="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ja("baredom.exports.x_date_picker.init",fD);export const init=fD;
38
+ "true");k.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");p.setAttribute("part","navbtn");p.setAttribute("data-nav","prev");p.setAttribute("type","button");p.setAttribute("aria-label","Previous month");p.textContent="‹";r.setAttribute("part","monthlabel");r.setAttribute("aria-live","polite");v.setAttribute("part","navbtn");v.setAttribute("data-nav","next");v.setAttribute("type","button");v.setAttribute("aria-label","Next month");v.textContent="›";x.setAttribute("part","weekdays");
39
+ x.setAttribute("aria-hidden","true");y.setAttribute("part","grid");y.setAttribute("role","grid");y.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(p);m.appendChild(r);m.appendChild(v);k.appendChild(m);k.appendChild(x);k.appendChild(y);k.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:x,grid:y,popover:k,
40
+ "nav-next":v,"month-label":r,input:g,btn:h,sr:A,"nav-prev":p}}rJ(this);qJ(this);ZI(this);return gJ(this)};b.disconnectedCallback=function(){return rJ(this)};b.attributeChangedCallback=function(){ZI(this);return gJ(this)};sJ(b,"mode","mode");sJ(b,"value","value");sJ(b,"start","start");sJ(b,"end","end");tJ(b,"open","open");tJ(b,"disabled","disabled");tJ(b,"readOnly","readonly");tJ(b,"required","required");uJ(b);return a},xJ=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
+ wJ())},RI=new $APP.M(null,"start-d","start-d",-1546785820),CI=new $APP.M(null,"ok?","ok?",447310304),DI=new $APP.M(null,"date","date",-1463434462),GI=new $APP.M(null,"auto-swap?","auto-swap?",-1675454411),QI=new $APP.M(null,"end-str","end-str",-558112319),AI=new $APP.M(null,"localized","localized",1722109655),bJ=new $APP.M(null,"edge?","edge?",203916303),PI=new $APP.M(null,"value-str","value-str",989198845),NI=new $APP.M(null,"complete?","complete?",-892991879),MI=new $APP.M(null,"max-d","max-d",
42
+ -814680979),II=new $APP.M(null,"single","single",1551466437),SI=new $APP.M(null,"start-str","start-str",1077409677),HI=new $APP.M(null,"range","range",1639692286),JI=new $APP.M(null,"iso","iso",-1366207543),VI=new $APP.M(null,"in-month?","in-month?",-1630426251),OI=new $APP.M(null,"min-d","min-d",-1118792932),zI=new $APP.M(null,"format","format",-1306924766),KI=new $APP.M(null,"value-d","value-d",-1768534876),aJ=new $APP.M(null,"in-range?","in-range?",-291779262),nJ=new $APP.M(null,"prev","prev",
43
+ -1597069226),kJ=new $APP.M(null,"next","next",-117701485),TI=new $APP.M(null,"end-d","end-d",-1316370898),LI=new $APP.M(null,"allow-same-day?","allow-same-day?",-1971558934),FI=new $APP.M(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var vJ="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ja("baredom.exports.x_date_picker.init",xJ);export const init=xJ;
package/dist/x-divider.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lB=function(a,b){if(a!=null&&a.dc!=null)a.dc(a,b);else{var c=lB[$APP.ca(a==null?null:a)];if(c!=null)c.h?c.h(a,b):c.call(null,a,b);else if(c=lB._,c!=null)c.h?c.h(a,b):c.call(null,a,b);else throw $APP.qa("IReset.-reset!",a);}},mB=function(){this.Ub=this.lc=this.u=this.state=null;this.C=16386;this.l=6455296},nB=function(a,b){if(a instanceof mB){var c=a.lc;if(c!=null&&!$APP.n(c.g?c.g(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;if(a.Ub!=null)a:for(var d=
3
- $APP.u(a.Ub),e=null,g=0,h=0;;)if(h<g){var k=e.D(null,h),m=$APP.H(k,0,null);k=$APP.H(k,1,null);k.X?k.X(m,a,c,b):k.call(null,m,a,c,b);h+=1}else if(d=$APP.u(d))$APP.uc(d)?(e=$APP.mb(d),d=$APP.nb(d),m=e,g=$APP.B(e),e=m):(e=$APP.x(d),m=$APP.H(e,0,null),k=$APP.H(e,1,null),k.X?k.X(m,a,c,b):k.call(null,m,a,c,b),d=$APP.y(d),e=null,g=0),h=0;else break a}else lB(a,b)},oB=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.yc(a,c)?c:b},pB=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);
4
- else break}},BB=function(a){var b=$APP.Xe([$APP.xh,$APP.Wg,$APP.wh,qB,rB,sB,tB,$APP.di,$APP.wi,uB],[a.getAttribute("variant"),a.getAttribute("label"),a.getAttribute("align"),a.getAttribute("length"),a.getAttribute("thickness"),a.getAttribute("color"),a.getAttribute("inset"),a.getAttribute("orientation"),a.getAttribute("aria-label"),a.getAttribute("role")]),c=$APP.N(b);b=$APP.I(c,$APP.wi);var d=$APP.I(c,uB),e=$APP.I(c,$APP.Wg);var g=$APP.I(c,$APP.xh);var h=$APP.I(c,$APP.wh),k=$APP.I(c,qB),m=$APP.I(c,
5
- rB),q=$APP.I(c,sB),r=$APP.I(c,tB);c=$APP.I(c,$APP.di);g=$APP.Xe([$APP.Pg,$APP.Xh,vB,wB,$APP.oi,$APP.Ng,$APP.th,$APP.W,xB,$APP.Uh],[d,oB(yB,"center",h),m,r,q,oB(zB,"solid",g),oB(AB,"horizontal",c),e,k,b]);c=$APP.N(g);d=$APP.I(c,$APP.Uh);h=$APP.I(c,$APP.Xh);k=$APP.I(c,vB);m=$APP.I(c,wB);q=$APP.I(c,$APP.oi);r=$APP.I(c,$APP.Ng);e=$APP.I(c,$APP.th);b=$APP.I(c,$APP.W);var v=$APP.I(c,xB);c=typeof b==="string"&&b.trim().length>0;var w=a.style;a.setAttribute("data-orientation",e);a.setAttribute("data-variant",
6
- r);a.setAttribute("data-align",h);w.setProperty("--x-divider-thickness",$APP.n(k)?k:"1px");w.setProperty("--x-divider-inset",$APP.n(m)?m:"0px");w.setProperty("--x-divider-length",$APP.n(v)?v:"auto");$APP.n(q)?w.setProperty("--x-divider-color",q):w.removeProperty("--x-divider-color");g=$APP.Pg.g(g);$APP.yc(new $APP.S(null,new $APP.Q(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.C.h(e,"vertical")?a.setAttribute("aria-orientation",
7
- "vertical"):a.removeAttribute("aria-orientation");$APP.n($APP.n(d)?d.length>0:d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");c?(d=$APP.l(a,"__xDividerRefs"),$APP.C.h($APP.l(d,"mode"),"no-label")&&(e=$APP.l(d,"container"),pB(e),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span"),q=document.createElement("div"),g.setAttribute("part","line-left"),h.setAttribute("part","label"),k.setAttribute("name","label"),
8
- m.setAttribute("part","label-text"),q.setAttribute("part","line-right"),h.appendChild(k),h.appendChild(m),e.appendChild(g),e.appendChild(h),e.appendChild(q),d["line-left"]=g,d["label-wrap"]=h,d["label-text"]=m,d["line-right"]=q,d.mode="label"),a=$APP.l($APP.l(a,"__xDividerRefs"),"label-text"),$APP.n(a)&&(a.textContent=b)):(a=$APP.l(a,"__xDividerRefs"),$APP.C.h($APP.l(a,"mode"),"label")&&(b=$APP.l(a,"container"),pB(b),d=document.createElement("div"),d.setAttribute("part","line"),b.appendChild(d),a["line-left"]=
9
- null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},CB=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},DB=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},
10
- enumerable:!0,configurable:!0})},EB=function(a){DB(a,"orientation","horizontal");DB(a,"variant","solid");DB(a,"align","center");CB(a,"label");CB(a,"thickness");CB(a,"color");CB(a,"inset");CB(a,"length")},FB=function(){function a(){return Reflect.construct(HTMLElement,[],$APP.Pa(b))}var b=new mB;nB(b,a);return a},HB=function(){if($APP.n(customElements.get("x-divider")))return null;var a=Object.create(HTMLElement.prototype),b=FB();Object.setPrototypeOf(b,HTMLElement);a.constructor=b;EB(a);a.connectedCallback=
2
+ var DH=function(a,b){if(a!=null&&a.nc!=null)a.nc(a,b);else{var c=DH[$APP.da(a==null?null:a)];if(c!=null)c.h?c.h(a,b):c.call(null,a,b);else if(c=DH._,c!=null)c.h?c.h(a,b):c.call(null,a,b);else throw $APP.ra("IReset.-reset!",a);}},EH=function(){this.cc=this.vc=this.s=this.state=null;this.D=16386;this.o=6455296},FH=function(a,b){if(a instanceof EH){var c=a.vc;if(c!=null&&!$APP.n(c.g?c.g(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;if(a.cc!=null)a:for(var d=
3
+ $APP.u(a.cc),e=null,g=0,h=0;;)if(h<g){var k=e.H(null,h),m=$APP.E(k,0,null);k=$APP.E(k,1,null);k.Z?k.Z(m,a,c,b):k.call(null,m,a,c,b);h+=1}else if(d=$APP.u(d))$APP.Ac(d)?(e=$APP.ob(d),d=$APP.pb(d),m=e,g=$APP.B(e),e=m):(e=$APP.w(d),m=$APP.E(e,0,null),k=$APP.E(e,1,null),k.Z?k.Z(m,a,c,b):k.call(null,m,a,c,b),d=$APP.z(d),e=null,g=0),h=0;else break a}else DH(a,b)},GH=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.K(a,c)?c:b},HH=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);
4
+ else break}},TH=function(a){var b=$APP.gf([$APP.ri,$APP.Dh,$APP.qi,IH,JH,KH,LH,$APP.pj,$APP.Nj,MH],[a.getAttribute("variant"),a.getAttribute("label"),a.getAttribute("align"),a.getAttribute("length"),a.getAttribute("thickness"),a.getAttribute("color"),a.getAttribute("inset"),a.getAttribute("orientation"),a.getAttribute("aria-label"),a.getAttribute("role")]),c=$APP.N(b);b=$APP.H(c,$APP.Nj);var d=$APP.H(c,MH),e=$APP.H(c,$APP.Dh);var g=$APP.H(c,$APP.ri);var h=$APP.H(c,$APP.qi),k=$APP.H(c,IH),m=$APP.H(c,
5
+ JH),p=$APP.H(c,KH),r=$APP.H(c,LH);c=$APP.H(c,$APP.pj);g=$APP.gf([$APP.vh,$APP.hj,NH,OH,$APP.Ej,$APP.th,$APP.li,$APP.W,PH,$APP.cj],[d,GH(QH,"center",h),m,r,p,GH(RH,"solid",g),GH(SH,"horizontal",c),e,k,b]);c=$APP.N(g);d=$APP.H(c,$APP.cj);h=$APP.H(c,$APP.hj);k=$APP.H(c,NH);m=$APP.H(c,OH);p=$APP.H(c,$APP.Ej);r=$APP.H(c,$APP.th);e=$APP.H(c,$APP.li);b=$APP.H(c,$APP.W);var v=$APP.H(c,PH);c=typeof b==="string"&&b.trim().length>0;var x=a.style;a.setAttribute("data-orientation",e);a.setAttribute("data-variant",
6
+ r);a.setAttribute("data-align",h);x.setProperty("--x-divider-thickness",$APP.n(k)?k:"1px");x.setProperty("--x-divider-inset",$APP.n(m)?m:"0px");x.setProperty("--x-divider-length",$APP.n(v)?v:"auto");$APP.n(p)?x.setProperty("--x-divider-color",p):x.removeProperty("--x-divider-color");g=$APP.vh.g(g);$APP.K(new $APP.R(null,new $APP.Q(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.C.h(e,"vertical")?a.setAttribute("aria-orientation",
7
+ "vertical"):a.removeAttribute("aria-orientation");$APP.n($APP.n(d)?d.length>0:d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");c?(d=$APP.l(a,"__xDividerRefs"),$APP.C.h($APP.l(d,"mode"),"no-label")&&(e=$APP.l(d,"container"),HH(e),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span"),p=document.createElement("div"),g.setAttribute("part","line-left"),h.setAttribute("part","label"),k.setAttribute("name","label"),
8
+ m.setAttribute("part","label-text"),p.setAttribute("part","line-right"),h.appendChild(k),h.appendChild(m),e.appendChild(g),e.appendChild(h),e.appendChild(p),d["line-left"]=g,d["label-wrap"]=h,d["label-text"]=m,d["line-right"]=p,d.mode="label"),a=$APP.l($APP.l(a,"__xDividerRefs"),"label-text"),$APP.n(a)&&(a.textContent=b)):(a=$APP.l(a,"__xDividerRefs"),$APP.C.h($APP.l(a,"mode"),"label")&&(b=$APP.l(a,"container"),HH(b),d=document.createElement("div"),d.setAttribute("part","line"),b.appendChild(d),a["line-left"]=
9
+ null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},UH=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.S.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},VH=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.S.g(d)):this.removeAttribute(b)},
10
+ enumerable:!0,configurable:!0})},WH=function(a){VH(a,"orientation","horizontal");VH(a,"variant","solid");VH(a,"align","center");UH(a,"label");UH(a,"thickness");UH(a,"color");UH(a,"inset");UH(a,"length")},XH=function(){function a(){return Reflect.construct(HTMLElement,[],$APP.Qa(b))}var b=new EH;FH(b,a);return a},ZH=function(){if($APP.n(customElements.get("x-divider")))return null;var a=Object.create(HTMLElement.prototype),b=XH();Object.setPrototypeOf(b,HTMLElement);a.constructor=b;WH(a);a.connectedCallback=
11
11
  function(){if(!$APP.n($APP.l(this,"__xDividerRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div");d.textContent=":host{display:block;color-scheme:light dark;--x-divider-color:rgba(0,0,0,0.12);--x-divider-thickness:1px;--x-divider-inset:0px;--x-divider-length:auto;}@media (prefers-color-scheme:dark){:host{--x-divider-color:rgba(255,255,255,0.15);}}[part\x3dcontainer]{display:flex;align-items:center;width:var(--x-divider-length,auto);box-sizing:border-box;}:host([data-orientation\x3d'vertical']) [part\x3dcontainer]{flex-direction:column;height:var(--x-divider-length,auto);width:auto;}[part\x3dline],[part\x3dline-left],[part\x3dline-right]{flex:1;border:none;background:var(--x-divider-color,rgba(0,0,0,0.12));height:var(--x-divider-thickness,1px);margin:var(--x-divider-inset,0px) 0;}:host([data-orientation\x3d'vertical']) [part\x3dline],:host([data-orientation\x3d'vertical']) [part\x3dline-left],:host([data-orientation\x3d'vertical']) [part\x3dline-right]{width:var(--x-divider-thickness,1px);height:auto;margin:0 var(--x-divider-inset,0px);}:host([data-variant\x3d'dashed']) [part\x3dline],:host([data-variant\x3d'dashed']) [part\x3dline-left],:host([data-variant\x3d'dashed']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}:host([data-variant\x3d'dotted']) [part\x3dline],:host([data-variant\x3d'dotted']) [part\x3dline-left],:host([data-variant\x3d'dotted']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}[part\x3dlabel]{display:flex;align-items:center;flex-shrink:0;padding:0 0.75em;font-size:0.75rem;font-weight:500;color:var(--x-divider-color);white-space:nowrap;}:host([data-orientation\x3d'vertical']) [part\x3dlabel]{padding:0.75em 0;writing-mode:horizontal-tb;}[part\x3dlabel-text]{display:inline;}:host([data-align\x3d'start']) [part\x3dline-left]{flex:0 0 1rem;}:host([data-align\x3d'end']) [part\x3dline-right]{flex:0 0 1rem;}@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;}}";
12
- e.setAttribute("part","container");var g=document.createElement("div");g.setAttribute("part","line");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xDividerRefs={root:c,container:e,mode:"no-label"}}return BB(this)};a.disconnectedCallback=function(){return null};a.attributeChangedCallback=function(c,d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xDividerRefs"))?BB(this):null:null};b.observedAttributes=GB;b.prototype=a;return customElements.define("x-divider",b)},IB=function(){return HB()};
13
- $APP.f=mB.prototype;$APP.f.M=function(a,b){return this===b};$APP.f.Fb=function(){return this.state};$APP.f.R=function(){return this.u};$APP.f.P=function(){return $APP.fa(this)};$APP.f.V=$APP.t;$APP.f.N=function(a,b,c){$APP.cb(b,"#object[cljs.core.Atom ");$APP.Hf(new $APP.Q(null,1,[$APP.ui,this.state],null),b,c);return $APP.cb(b,"]")};
14
- var qB=new $APP.M(null,"length-raw","length-raw",-1832244116),tB=new $APP.M(null,"inset-raw","inset-raw",89351124),wB=new $APP.M(null,"inset","inset",-396367740),vB=new $APP.M(null,"thickness","thickness",-940175454),rB=new $APP.M(null,"thickness-raw","thickness-raw",1843812655),uB=new $APP.M(null,"role-raw","role-raw",777951354),xB=new $APP.M(null,"length","length",588987862),sB=new $APP.M(null,"color-raw","color-raw",1277647215);var GB="orientation variant thickness color inset length label align role aria-label".split(" "),AB=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),zB=new $APP.S(null,new $APP.Q(null,3,["dashed",null,"dotted",null,"solid",null],null),null),yB=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_divider.init",IB);export const init=IB;
12
+ e.setAttribute("part","container");var g=document.createElement("div");g.setAttribute("part","line");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xDividerRefs={root:c,container:e,mode:"no-label"}}return TH(this)};a.disconnectedCallback=function(){return null};a.attributeChangedCallback=function(c,d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xDividerRefs"))?TH(this):null:null};b.observedAttributes=YH;b.prototype=a;return customElements.define("x-divider",b)},$H=function(){return ZH()};
13
+ $APP.f=EH.prototype;$APP.f.R=function(a,b){return this===b};$APP.f.Ob=function(){return this.state};$APP.f.U=function(){return this.s};$APP.f.T=function(){return $APP.ha(this)};$APP.f.$=$APP.t;$APP.f.S=function(a,b,c){$APP.eb(b,"#object[cljs.core.Atom ");$APP.eg(new $APP.Q(null,1,[$APP.Kj,this.state],null),b,c);return $APP.eb(b,"]")};
14
+ var IH=new $APP.M(null,"length-raw","length-raw",-1832244116),LH=new $APP.M(null,"inset-raw","inset-raw",89351124),OH=new $APP.M(null,"inset","inset",-396367740),NH=new $APP.M(null,"thickness","thickness",-940175454),JH=new $APP.M(null,"thickness-raw","thickness-raw",1843812655),MH=new $APP.M(null,"role-raw","role-raw",777951354),PH=new $APP.M(null,"length","length",588987862),KH=new $APP.M(null,"color-raw","color-raw",1277647215);var YH="orientation variant thickness color inset length label align role aria-label".split(" "),SH=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),RH=new $APP.R(null,new $APP.Q(null,3,["dashed",null,"dotted",null,"solid",null],null),null),QH=new $APP.R(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_divider.init",$H);export const init=$H;