actual-css 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # Actual CSS Changelog
2
2
 
3
+ ## [Unreleased]
4
+
5
+
6
+ ## [0.7.0] - 2026-09-04
7
+
8
+ ### Added
9
+
10
+ - Native Popover API presentation support for `.flyout[popover]` and
11
+ `.tooltip[popover]`, including component-scoped UA geometry normalization and
12
+ `:popover-open` entry states.
13
+
14
+ ### Changed
15
+
16
+ - Menu checkbox and radio indicators now use the shared icon token and CSS
17
+ shapes instead of font-dependent text glyphs.
18
+ - Build toolchain pinned to bun 1.4.1. The bundled JavaScript differs in bytes
19
+ from 0.6.0 because of the newer minifier; no source or behavior changed.
20
+
21
+ ### Fixed
22
+
23
+ - A closed `.flyout[popover]` is no longer rendered. The component's own
24
+ `display: grid` outranked the UA rule that hides a closed popover, leaving
25
+ the panel painted at its static position with no way to dismiss it. Both
26
+ `.flyout` and `.tooltip` now cede the platform's hidden state, which also
27
+ gives the native path the exit fade it lacked.
28
+ - Icon-only buttons stretch to match labelled siblings when composed in a
29
+ `.join`, while remaining square everywhere else.
30
+ - Status messages originating in an open dialog temporarily mount the singleton
31
+ live region inside that dialog, keeping it visible and accessible in the
32
+ active top-layer subtree.
33
+
34
+ ### Known limitations
35
+
36
+ - A surface managed by `surface.js` is presented in the document's own context,
37
+ not its trigger's. Opening it moves the panel to the nearest dialog or to
38
+ `body`, which severs every scope that reached it by inheritance — a theme
39
+ island, a density scope, `.inverted`, or an application's own scoped custom
40
+ properties. Do not rely on inheritance reaching an anchored surface. See
41
+ `docs/design-notes/surface-reparenting.md`; the repair needs a transport that
42
+ promotes without relocating, which is not available across the current
43
+ Minimal floor.
44
+
45
+ ### Breaking
46
+
47
+ - Replaced `floating.js` by `@lekoala/floating`.
48
+
49
+
3
50
  ## [0.6.0] - 2026-09-03
4
51
 
5
52
  ### Changed
@@ -13,7 +60,7 @@
13
60
  - The framework query-container name is now `actual-container` instead of
14
61
  `actual-grid`. `.container-query` is unchanged.
15
62
 
16
- ## Fixed
63
+ ### Fixed
17
64
 
18
65
  - `.fab` icons.
19
66
  - `.floating-field` with password managers.
@@ -4839,12 +4839,50 @@ dialog.drawer > form > header {
4839
4839
  transition: opacity var(--duration-fast) ease;
4840
4840
  }
4841
4841
 
4842
- .flyout.is-open:not(.is-sheet) {
4842
+ /* Native popovers enter the top layer with UA geometry that conflicts with
4843
+ anchored positioning. The reset is gated on real Popover support because an
4844
+ attribute selector matches whether or not the engine implements Popover:
4845
+ without it the UA neither hides nor promotes the element, so an ungated
4846
+ reset would strand a permanently visible panel at inset: auto. Popover is
4847
+ not part of Actual's Minimal contract — engines inside the Minimal range
4848
+ may lack it — so the gate is about the capability, not the floor. Kept
4849
+ scoped to Actual surfaces so bare [popover] elements retain their platform
4850
+ presentation. */
4851
+ @supports selector(:popover-open) {
4852
+ .flyout[popover] {
4853
+ position: fixed;
4854
+ inset: auto;
4855
+ margin: 0;
4856
+ }
4857
+
4858
+ /* A presentation class may own its *visible* display type, but must not
4859
+ override the platform's hidden state. The UA closes a popover with
4860
+ display: none, and an author declaration beats the UA origin whatever the
4861
+ specificity — so .flyout's own display: grid would leave a closed popover
4862
+ painted at its static position. Restoring both properties here also gives
4863
+ the native path the exit target the runtime path already has in
4864
+ .flyout[hidden]: without an opacity to animate, the overlay/display
4865
+ allow-discrete transition below would hold a fully opaque panel in the top
4866
+ layer and then snap it away. */
4867
+ .flyout[popover]:not(:popover-open) {
4868
+ display: none;
4869
+ opacity: 0;
4870
+ }
4871
+ }
4872
+
4873
+ /* compat-ok: :popover-open rides in a forgiving :is(), where an engine without
4874
+ Popover discards just that member and .is-open alone keeps driving the open
4875
+ state. This is a property of the forgiving list, not of the pseudo-class: in
4876
+ a plain selector list an unsupported member would invalidate the whole rule.
4877
+ Keep it inside :is()/:where() or gate it. */
4878
+ .flyout:is(.is-open, :popover-open):not(.is-sheet) {
4843
4879
  inset: auto;
4844
4880
  }
4845
4881
 
4882
+ /* compat-ok: forgiving :is() again, and @starting-style is itself unsupported
4883
+ across part of the Minimal range, so the rule simply does not exist there. */
4846
4884
  @starting-style {
4847
- .flyout.is-open {
4885
+ .flyout:is(.is-open, :popover-open) {
4848
4886
  opacity: 0;
4849
4887
  }
4850
4888
  }
@@ -4883,16 +4921,23 @@ dialog.drawer > form > header {
4883
4921
  translate: 0 var(--space-30);
4884
4922
  }
4885
4923
 
4924
+ /* compat-ok: forgiving :is() inside @starting-style, as above. */
4886
4925
  @starting-style {
4887
- .flyout.is-sheet.is-open {
4926
+ .flyout.is-sheet:is(.is-open, :popover-open) {
4888
4927
  translate: 0 var(--space-30);
4889
4928
  }
4890
4929
  }
4891
4930
 
4931
+ /* display keeps the exit transition alive for the [hidden] path; overlay does
4932
+ the same for the native popover path, where hidePopover() would otherwise
4933
+ drop the panel out of the top layer on the first frame and let a parent
4934
+ overflow or a dialog clip the fade. An engine that cannot transition either
4935
+ property ignores it and the exit is instant. */
4892
4936
  @supports (transition-behavior: allow-discrete) {
4893
4937
  .flyout {
4894
4938
  transition:
4895
4939
  opacity var(--duration-fast) ease,
4940
+ overlay var(--duration-fast) allow-discrete,
4896
4941
  display var(--duration-fast) allow-discrete;
4897
4942
  }
4898
4943
 
@@ -4900,6 +4945,7 @@ dialog.drawer > form > header {
4900
4945
  transition:
4901
4946
  opacity var(--duration-fast) ease,
4902
4947
  translate var(--duration-fast) ease,
4948
+ overlay var(--duration-fast) allow-discrete,
4903
4949
  display var(--duration-fast) allow-discrete;
4904
4950
  }
4905
4951
  }
@@ -5018,30 +5064,36 @@ dialog.drawer > form > header {
5018
5064
  /* Checkable menu items are one command with one accessible state. Their
5019
5065
  indicator is generated so authors do not add a second interactive input. */
5020
5066
  .menu-item:is([role="menuitemcheckbox"], [role="menuitemradio"])::before {
5021
- display: grid;
5067
+ content: "";
5068
+ display: block;
5022
5069
  flex: 0 0 var(--menu-item-icon-size);
5023
5070
  inline-size: var(--menu-item-icon-size);
5024
- place-items: center;
5025
- }
5026
-
5027
- .menu-item[role="menuitemcheckbox"]::before {
5028
- content: "";
5071
+ block-size: var(--menu-item-icon-size);
5029
5072
  }
5030
5073
 
5031
5074
  .menu-item[role="menuitemcheckbox"][aria-checked="true"]::before {
5032
- content: "✓";
5075
+ background: currentColor;
5076
+ -webkit-mask: var(--icon-check) center / contain no-repeat;
5077
+ mask: var(--icon-check) center / contain no-repeat;
5033
5078
  }
5034
5079
 
5035
5080
  .menu-item[role="menuitemcheckbox"][aria-checked="mixed"]::before {
5036
- content: "−";
5081
+ background:
5082
+ linear-gradient(currentColor 0 0) center / 60% max(var(--border-width), 0.125em) no-repeat;
5037
5083
  }
5038
5084
 
5039
5085
  .menu-item[role="menuitemradio"]::before {
5040
- content: "○";
5086
+ background: radial-gradient(circle, transparent 0 46%, currentColor 48% 58%, transparent 60%);
5041
5087
  }
5042
5088
 
5043
5089
  .menu-item[role="menuitemradio"][aria-checked="true"]::before {
5044
- content: "●";
5090
+ background: radial-gradient(
5091
+ circle,
5092
+ currentColor 0 25%,
5093
+ transparent 27% 46%,
5094
+ currentColor 48% 58%,
5095
+ transparent 60%
5096
+ );
5045
5097
  }
5046
5098
 
5047
5099
  .menu-item:focus-visible {
@@ -5111,21 +5163,57 @@ dialog.drawer > form > header {
5111
5163
  transition: opacity var(--duration-fast) ease;
5112
5164
  }
5113
5165
 
5166
+ /* Neutralize only the native geometry that conflicts with a positioned
5167
+ tooltip. In particular, the UA overflow would turn the arrow into scroll
5168
+ overflow instead of letting it project beyond the bubble. Gated on real
5169
+ Popover support: the attribute selector matches whether or not the engine
5170
+ implements Popover, and without it nothing hides the element, so an ungated
5171
+ reset would leave a stray bubble parked at inset: auto. Popover sits outside
5172
+ Actual's Minimal contract, so the gate tracks the capability rather than the
5173
+ floor. */
5174
+ @supports selector(:popover-open) {
5175
+ .tooltip[popover] {
5176
+ inset: auto;
5177
+ margin: 0;
5178
+ overflow: visible;
5179
+ }
5180
+
5181
+ /* .tooltip declares no display of its own, so the UA already hides a closed
5182
+ popover here. The rule is written anyway: both components advertised as
5183
+ Popover-compatible should cede the hidden state the same way, and the
5184
+ opacity target is what actually makes the native exit fade — see the
5185
+ overlay note below. */
5186
+ .tooltip[popover]:not(:popover-open) {
5187
+ display: none;
5188
+ opacity: 0;
5189
+ }
5190
+ }
5191
+
5114
5192
  .tooltip[hidden] {
5115
5193
  display: none;
5116
5194
  opacity: 0;
5117
5195
  }
5118
5196
 
5197
+ /* Entry opacity for both lifecycles: a runtime-driven tip is visible when it
5198
+ is neither a popover nor [hidden], a native one when it is :popover-open.
5199
+ compat-ok: [popover] appears here only under negation, which every engine
5200
+ evaluates correctly whether or not it implements Popover, :popover-open
5201
+ rides in a forgiving :is(), and @starting-style is itself unsupported across
5202
+ part of the Minimal range — so the rule does not exist there at all. */
5119
5203
  @starting-style {
5120
- .tooltip:not([hidden]) {
5204
+ .tooltip:is(:not([popover]):not([hidden]), :popover-open) {
5121
5205
  opacity: 0;
5122
5206
  }
5123
5207
  }
5124
5208
 
5209
+ /* overlay is the native popover counterpart of display: it holds the tip in
5210
+ the top layer until the fade finishes, instead of letting hidePopover()
5211
+ demote it on the first frame. Ignored where unsupported. */
5125
5212
  @supports (transition-behavior: allow-discrete) {
5126
5213
  .tooltip {
5127
5214
  transition:
5128
5215
  opacity var(--duration-fast) ease,
5216
+ overlay var(--duration-fast) allow-discrete,
5129
5217
  display var(--duration-fast) allow-discrete;
5130
5218
  }
5131
5219
  }
@@ -7398,6 +7486,13 @@ a.list-item:hover {
7398
7486
  border-end-start-radius: var(--join-es);
7399
7487
  }
7400
7488
 
7489
+ /* A square icon button has an explicit block size, which otherwise prevents
7490
+ align-items: stretch from matching a taller labelled sibling. The button's
7491
+ existing min-block-size keeps the standalone square-size invariant intact. */
7492
+ .join > .btn.icon-only {
7493
+ block-size: auto;
7494
+ }
7495
+
7401
7496
  .join > :first-child {
7402
7497
  --join-ss: var(--join-radius);
7403
7498
  --join-es: var(--join-radius);
@@ -1 +1 @@
1
- var $e=new WeakMap,Ve=new WeakMap;function Pe(){return{refresh(){},disconnect(){}}}function xt(e){return e?.nodeType===1||e?.nodeType===9||e?.nodeType===11}function qn(e){let t=new Set,n="";function r(c){try{if(e.querySelector?.(c),e.nodeType===1)e.matches(c);return!0}catch(u){return console.error(`Invalid enhancer selector "${c}"`,u),!1}}function o(){n=[...t].flatMap((c)=>c.selectors).join(",")}function i(c,u){if(u?.nodeType!==1)return;let m=c.instances.get(u);for(let p of c.selectors){if(!u.matches(p))continue;if(m?.has(p))continue;let h;try{h=c.enhancers[p](u)}catch(S){console.error(`Enhancer failed for selector "${p}"`,S);continue}if(!m)m=new Map,c.instances.set(u,m);m.set(p,typeof h==="function"?h:null)}}function s(c,u){let m=c.instances.get(u);if(!m)return;for(let p of m.values())try{p?.()}catch(h){console.error("Enhancer cleanup failed",h)}c.instances.delete(u)}function a(c,u){if(!xt(u))return;if(u.nodeType===1)i(c,u);if(c.selectorString)u.querySelectorAll?.(c.selectorString).forEach((m)=>{i(c,m)})}function l(c){if(!xt(c)||!n)return;if(c.nodeType===1)for(let u of t)i(u,c);c.querySelectorAll?.(n).forEach((u)=>{for(let m of t)i(m,u)})}function d(){for(let c of t)for(let u of Array.from(c.instances.keys()))if(!u.isConnected||!e.contains(u))s(c,u)}let f=new MutationObserver((c)=>{let u=!1;for(let m of c){for(let p of m.addedNodes)l(p);if(m.removedNodes.length>0)u=!0}if(u)d()});return f.observe(e,{childList:!0,subtree:!0}),{add(c){let u=Object.keys(c).filter(r);if(!u.length)return null;let p={disconnected:!1,enhancers:Object.fromEntries(u.map((h)=>[h,c[h]])),instances:new Map,selectors:u,selectorString:u.join(",")};return t.add(p),o(),a(p,e),p},refresh(c,u){if(c.disconnected)return;a(c,u)},remove(c){if(c.disconnected)return;c.disconnected=!0;for(let u of Array.from(c.instances.keys()))s(c,u);if(t.delete(c),o(),t.size===0)f.disconnect(),$e.delete(e)}}}var zn=/^[a-z][a-z0-9-]*$/;function te(e){if(!zn.test(e))throw TypeError(`Invalid enhancement name: ${e}`);return`[data-enhance~="${e}"]`}function N(e,t,n){if(typeof document>"u")return Pe();if(te(e),typeof t!=="function")throw TypeError("registerEnhancement() requires a function init.");n??=document.documentElement;let r=Ve.get(n);if(!r)r=new Map,Ve.set(n,r);if(r.has(e))throw Error(`Enhancement "${e}" is already registered on this root.`);let o=v({[te(e)]:t},n);return r.set(e,o),{refresh:(i)=>o.refresh(i),disconnect:()=>{if(o.disconnect(),r.get(e)===o)r.delete(e);if(r.size===0)Ve.delete(n)}}}function Xn(e){let t=$e.get(e);if(!t)t=qn(e),$e.set(e,t);return t}function v(e,t){if(typeof document>"u")return Pe();t??=document.documentElement;let n=Xn(t),r=n.add(e);if(!r)return Pe();return{refresh:(o)=>n.refresh(r,o),disconnect:()=>{n.remove(r)}}}var jn=["a[href]","button","input","select","textarea","summary","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function Ue(e){if(!e||e.hidden)return!1;if(typeof e.checkVisibility==="function")return e.checkVisibility();if(e.getClientRects().length===0)return!1;let t=e.ownerDocument?.defaultView?.getComputedStyle?.(e);if(!t)return!0;return t.visibility!=="hidden"&&t.visibility!=="collapse"}function Hn(e){return e.tabIndex>=0&&!e.matches(":disabled")&&Ue(e)&&!e.closest('[inert], [aria-hidden="true"]')}function Kn(e){return[...e.querySelectorAll(jn)].filter(Hn)}function We(e){let t=Kn(e)[0];return t?.focus(),!!t}function re(e){return e[0]||null}function oe(e){return e[e.length-1]||null}function ne(e,t,n,r={}){if(!e.length)return null;let o=r.wrap!==!1,i=e.indexOf(t);if(i===-1)return n>0?re(e):oe(e);let s=i+n;if(!o)return e[s]||null;let a=(s%e.length+e.length)%e.length;return e[a]}function P(e,t,n,r={}){let o=r.orientation||"horizontal",i=r.wrap===!0,s=r.direction||"ltr";switch(n){case"Home":return re(e);case"End":return oe(e);case"ArrowRight":if(o!=="horizontal")return null;return ne(e,t,s==="rtl"?-1:1,{wrap:i});case"ArrowLeft":if(o!=="horizontal")return null;return ne(e,t,s==="rtl"?1:-1,{wrap:i});case"ArrowDown":if(o!=="vertical")return null;return ne(e,t,1,{wrap:i});case"ArrowUp":if(o!=="vertical")return null;return ne(e,t,-1,{wrap:i});default:return null}}var Gn=new Set(["horizontal","vertical"]);function Yn(e,t){if(t==null)e.removeAttribute("tabindex");else e.setAttribute("tabindex",t)}function Ct(e,t={}){if(!e?.addEventListener||!e?.contains)throw TypeError("connectFocusGroup() requires a root element.");if(typeof t.getItems!=="function")throw TypeError("connectFocusGroup() requires getItems().");let n=t.orientation||"horizontal";if(!Gn.has(n))throw TypeError(`Invalid focus-group orientation: ${n}`);let r=new AbortController,o=t.signal||null,i=new Map,s=null,a=!1;function l(){let p=new Set;return[...t.getItems()||[]].filter((h)=>{if(typeof h?.focus!=="function"||!e.contains(h)||p.has(h))return!1;return p.add(h),!0})}function d(p){if(!i.has(p))return;Yn(p,i.get(p)),i.delete(p)}function f(p=s){if(a)return[];let h=l(),S=new Set(h);for(let E of i.keys())if(!S.has(E))d(E);let w=e.ownerDocument.activeElement,k=S.has(p)&&p||S.has(w)&&w||h.find((E)=>E.tabIndex===0)||h[0]||null;for(let E of h){if(!i.has(E))i.set(E,E.getAttribute("tabindex"));let L=E===k?0:-1;E.tabIndex=L}return s=k,h}function c(p){if(l().includes(p.target))f(p.target)}function u(p){let h=f(),S=e.ownerDocument.activeElement;if(!h.includes(S))return;let k=e.ownerDocument.defaultView?.getComputedStyle?.(e)?.direction==="rtl"?"rtl":"ltr",E=P(h,S,p.key,{orientation:n,wrap:t.wrap===!0,direction:k});if(!E)return;p.preventDefault(),f(E),E.focus()}e.addEventListener("focusin",c,{signal:r.signal}),e.addEventListener("keydown",u,{signal:r.signal}),f();function m(){if(a)return;a=!0,o?.removeEventListener("abort",m),r.abort();for(let p of i.keys())d(p);s=null}if(o)if(o.aborted)m();else o.addEventListener("abort",m,{once:!0});return{sync:f,disconnect:m}}var Jn=":scope > li > .menu-item",Zn=new Set(["menuitem","menuitemcheckbox","menuitemradio"]);function Qn(e){return!e.disabled&&e.getAttribute("aria-disabled")!=="true"&&Ue(e)&&!e.closest("[hidden], [inert], [aria-hidden='true']")}function K(e){return[...e.querySelectorAll(Jn)].filter(Qn)}function kt(e){return Zn.has(e.getAttribute("role"))}function er(e){let t=e.ownerDocument.activeElement;if(!e.contains(t)||!kt(t))return!1;return t.click(),!0}function Lt(e){return K(e).length>0}function tr(e,t){let n=t?.closest?.(".menu-item");return n?.parentElement?.parentElement===e?n:null}function U(e){re(K(e))?.focus()}function qe(e){oe(K(e))?.focus()}function nr(e,{close:t,navigate:n=!0}){let r=e.currentTarget;if(n){let o=K(r),i=P(o,r.ownerDocument.activeElement,e.key,{orientation:"vertical",wrap:!0});if(i){e.preventDefault(),i.focus();return}}switch(e.key){case"Tab":t(r);break;case"Enter":case" ":if(er(r))e.preventDefault();break}}var Be=new WeakMap;function ie(e,{close:t}){let n=Be.get(e);if(!n){let o=new AbortController,i=e.matches('[role="menu"]')?Ct(e,{getItems:()=>K(e).filter(kt),orientation:"vertical",wrap:!0,signal:o.signal}):null;e.addEventListener("keydown",(s)=>nr(s,{close:()=>t(e),navigate:!i}),{signal:o.signal}),e.addEventListener("click",(s)=>{let a=tr(e,s.target);if(!a)return;if(a.matches(":disabled, [aria-disabled='true']")){s.preventDefault(),s.stopPropagation();return}},{signal:o.signal}),n={count:0,controller:o,focusGroup:i},Be.set(e,n)}n.count++;let r=!1;return()=>{if(r)return;if(r=!0,n.count--,n.count<=0)n.focusGroup?.disconnect(),n.controller.abort(),Be.delete(e)}}var ze=new WeakMap;function se(e,t){let n=e.ownerDocument,r=ze.get(n);if(!r)r=[],ze.set(n,r),n.addEventListener("keydown",rr);let o={element:e,dismiss:t};return r.push(o),()=>{let i=r.indexOf(o);if(i>=0)r.splice(i,1)}}function rr(e){if(e.key!=="Escape"||e.ctrlKey||e.altKey||e.shiftKey)return;let n=ze.get(e.currentTarget).at(-1);if(!n)return;e.preventDefault(),n.dismiss({restoreFocus:!0})}var A={reposition:"actual:reposition",hide:"actual:hide",outOfView:"actual:out-of-view",surfaceOpen:"actual:surface-open",contextMenu:"actual:context-menu",status:"actual:status",invalid:"actual:invalid",dialogCancel:"actual:dialog-cancel",dismiss:"actual:dismiss"};function Xe(e){return e.split("-")[0]}function ue(e){return e.split("-")[1]||null}function Ot(e){return["top","bottom"].includes(Xe(e))?"x":"y"}function or(e){if(e==="top")return"bottom";if(e==="bottom")return"top";if(e==="left")return"right";if(e==="right")return"left"}function ae(e,t,n,r){let o=e.x+e.width/2-t.width/2,i=e.y+e.height/2-t.height/2,s=Ot(n),a=e[s==="x"?"width":"height"]/2-t[s==="x"?"width":"height"]/2,l=Xe(n),d;switch(l){case"top":d={x:o,y:e.y-t.height};break;case"bottom":d={x:o,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:i};break;case"left":d={x:e.x-t.width,y:i};break;default:d={x:e.x,y:e.y}}let f=ue(n),c=s==="x";if(f==="start")d[s]-=a*(r&&c?-1:1);if(f==="end")d[s]+=a*(r&&c?-1:1);return d}function ce(e,t,n){switch(t){case"top":e.y-=n;break;case"bottom":e.y+=n;break;case"left":e.x-=n;break;case"right":e.x+=n;break}}function Dt(e,t,n,r){return Math.max(n-e.x,0)+Math.max(e.x+t.width-r,0)}function Nt(e){return{x:e.x,y:e.y,width:e.width,height:e.height,right:e.x+e.width,bottom:e.y+e.height}}var ir=typeof CSS<"u"&&CSS.supports("selector(:dir(rtl))");function sr(e){if(e.dir==="rtl")return!0;if(e.dir==="ltr")return!1;if(ir)return e.matches(":dir(rtl)");return e.ownerDocument?.defaultView?.getComputedStyle?.(e)?.direction==="rtl"}function ar(e){return e.documentElement}function Mt(e){let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}var cr=25,ur=128;function lr(e){let t=e.defaultView||window,n=ar(e),r=t.visualViewport,o=r?.offsetLeft||0,i=r?.offsetTop||0,s=r?.width||n.clientWidth||t.innerWidth,a=r?.height||n.clientHeight||t.innerHeight,l=e.body;if(l?.clientWidth>0){let d=t.getComputedStyle?.(l),f=e.compatMode==="CSS1Compat"?Mt(d?.marginLeft)+Mt(d?.marginRight):0,c=Math.abs(n.clientWidth-l.clientWidth-f);if(c<=cr)s-=c}return Nt({x:o,y:i,width:s,height:a})}function fr(e,t){if(!t.scope)return lr(e.ownerDocument);let n=t.scope.getBoundingClientRect();return Nt({x:n.x,y:n.y,width:n.width,height:n.height})}function dr(e,t){return e.right<t.x||e.left>t.right||e.bottom<t.y||e.top>t.bottom}function pr(e,t,n,r,o){if(t==="top")return Math.max(0,e.top-n.y-r-o);if(t==="bottom")return Math.max(0,n.bottom-e.bottom-r-o);return Math.max(0,n.height-o*2)}function mr(e){if(e.hidden)return!1;if(typeof e.checkVisibility==="function")return e.checkVisibility();return e.getClientRects().length>0}function hr(e){let t=e.getBoundingClientRect();return{width:e.offsetWidth||t.width,height:e.offsetHeight||t.height}}var It=new WeakMap;function gr(e){let t=e.defaultView,n=t?.ResizeObserver,r=new Map,o=null,i=!1,s=new Map;function a(){if(o||!n)return o;return o=new n((f,c)=>{for(let u of f)c.unobserve(u.target),l("element-resize",u),t.requestAnimationFrame(()=>{if(d.entries.has(u.target))c.observe(u.target)})}),o}function l(f,c){for(let u of r.keys()){let m=s.get(u);if(!m)m=new Map,s.set(u,m);let p=m.get(f);if(!p)p={targets:new Set,timeStamp:0},m.set(f,p);if(c?.target)p.targets.add(c.target);p.timeStamp=Math.max(p.timeStamp,c?.timeStamp||0)}if(!i)t.requestAnimationFrame(()=>{let u=[...s];s.clear();for(let[m,p]of u){let h=r.get(m);if(!h||!m.isConnected)continue;for(let[S,w]of p)h({type:S,...w})}i=!1});i=!0}e.addEventListener("scroll",(f)=>l(f.type,f),{passive:!0,capture:!0}),t.addEventListener("resize",(f)=>l("resize",f),{passive:!0});let d={entries:r,add(f,c){return r.set(f,c),a()?.observe(f),()=>{r.delete(f),s.delete(f),o?.unobserve(f)}}};return d}function br(e){let t=e.ownerDocument,n=It.get(t);if(!n)n=gr(t),It.set(t,n);return n}function le(e,t){return br(e).add(e,t)}function G(e,t,n={}){if(!mr(t))return!1;let r=n.placement||"bottom-start",o=n.distance||0,i=n.flip!==!1,s=n.shift!==!1,a=n.shiftPadding??4,l=sr(e),d=e.getClientRects(),f=r.startsWith("bottom")?d[d.length-1]:d[0];if(!f)return!1;let c=fr(e,n);if(dr(f,c))return!1;let u=hr(t),m=c.x,p=c.y,h=c.right,S=c.bottom,w=Xe(r),k=ue(r),E=Ot(r),L=r,b=ae(f,u,L,l);if(ce(b,w,o),i){let x=Math.ceil(b.x),C=Math.ceil(b.y);if(E==="x"&&(C<p||C+u.height>=S)||E==="y"&&(x<m||x+u.width>=h))w=or(w),L=k?`${w}-${k}`:w,b=ae(f,u,L,l),ce(b,w,o);if(E==="y"&&(b.x<m||b.x+u.width>h)&&c.width-u.width<ur)w="top",E="x",L=k?`${w}-${k}`:w,b=ae(f,u,L,l),ce(b,w,o)}if(E==="x"&&s&&ue(L)){let x=m+a,C=h-a,D=Dt(b,u,x,C);if(D>0){let Bn=ue(L)==="end"?"start":"end",At=`${w}-${Bn}`,_e=ae(f,u,At,l);if(ce(_e,w,o),Dt(_e,u,x,C)<D)L=At,b=_e}}let Re=50;if(s||u.width>f.width){let x=m+a,C=h-u.width-a;if(b.x<x){let D=x-b.x;b.x=x,Re=50-D/u.width*100}else if(b.x>C){let D=C-b.x;b.x=Math.max(m,C),Re=50+D/u.width*100}}let Fe=50;if(E==="y"&&(s||u.height>f.height)){let x=p+a,C=S-u.height-a;if(b.y<x){let D=x-b.y;b.y=x,Fe=50-D/u.height*100}else if(b.y>C){let D=C-b.y;b.y=Math.max(p,C),Fe=50+D/u.height*100}}let Wn=pr(f,w,c,o,a);return t.style.setProperty("--arrow-x",`${Re}%`),t.style.setProperty("--arrow-y",`${Fe}%`),t.style.setProperty("--available-height",`${Wn}px`),t.dataset.placement=L,Object.assign(t.style,{left:`${b.x}px`,top:`${b.y}px`}),!0}function Rt(e,t,n,r={}){let o=n.ownerDocument,i=o.documentElement,s=o.defaultView||window,a=o.dir||i?.dir||s.getComputedStyle?.(i).direction||"";return G({ownerDocument:o,dir:a,matches:(d)=>d===":dir(rtl)"&&a==="rtl",getClientRects:()=>[{x:e,y:t,left:e,top:t,right:e,bottom:t,width:0,height:0}]},n,r)}var g={wasValidated:"was-validated",danger:"danger",fieldError:"field-error",field:"field",open:"is-open",sheet:"is-sheet",backdrop:"surface-backdrop",static:"is-static",modalOpen:"has-modal-open",hadScrollbar:"had-scrollbar",tooltip:"tooltip"};function fe(...e){let t=e.filter(Boolean).flatMap((n)=>typeof n.getAnimations==="function"?n.getAnimations({subtree:!0}):[]).filter((n)=>typeof n.transitionProperty==="string");return Promise.allSettled(t.map((n)=>n.finished))}var de=new Set,R=new WeakMap,je=new WeakMap,Y=new WeakMap,Ft=new WeakSet,Vt="data-actual-surface",wr=new Set(["true","inside","outside","false"]),Er=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"," "]),_t=new WeakMap;function yr(e){let t=String(e??"outside");return wr.has(t)?t:"true"}function vr(e){let t=e.ownerDocument?.documentElement;if(!t)return null;let n=_t.get(t);if(!n)n=v({[`[${Vt}]`]:(r)=>()=>Bt(r,{restore:!1})},t),_t.set(t,n);return n}function Tr(e,t){return t?.closest("dialog")||e.closest("dialog")||e.ownerDocument.body}function Sr(e,t){if(Y.has(e))return;let n=Tr(e,t),r=e.parentNode;if(!n||!r||r===n)return;Y.set(e,{parent:r,next:e.nextSibling}),n.append(e)}function $t(e){let t=Y.get(e);if(!t)return;if(t.parent.isConnected){let n=t.next?.parentNode===t.parent?t.next:null;t.parent.insertBefore(e,n)}else e.remove();Y.delete(e)}function Ar(e,t){let n=t.mobile||"auto";if(n==="none"||n==="anchored")return!1;if(n==="sheet")return!0;let r=e.ownerDocument?.defaultView;if(!r||typeof r.matchMedia!=="function")return!1;let o=t.breakpoint??768;return r.matchMedia("(pointer: coarse)").matches&&r.matchMedia(`(max-width: ${o}px)`).matches}function xr(e){if(!e.id)return[];return[...e.ownerDocument.querySelectorAll(`[aria-controls="${CSS.escape(e.id)}"]`)]}function He(e,t){for(let n of xr(e))n.setAttribute("aria-expanded",t?"true":"false")}function Cr(e,t){if(!t.isSheet){t.backdrop?.remove(),t.backdrop=null;return}if(t.backdrop?.isConnected){t.backdrop.hidden=!1;return}let n=e.ownerDocument.createElement("div");n.className=g.backdrop,n.hidden=!1,e.before(n),t.backdrop=n}function Pt(e,t){if(t.isSheet=Ar(e,t),t.isSheet)e.style.removeProperty("left"),e.style.removeProperty("top");e.classList.toggle(g.sheet,t.isSheet),Cr(e,t)}function Ut(e){let t=R.get(e);if(!t||t.isSheet)return!0;if(t.trigger){let o=t.trigger.getBoundingClientRect().width;e.style.setProperty("--surface-anchor-width",`${o}px`)}else e.style.removeProperty("--surface-anchor-width");let n={placement:t.placement||"bottom-start",distance:t.distance??4,flip:t.flip!==!1,shift:t.shift!==!1,shiftPadding:t.shiftPadding??4,scope:t.scope};if(t.point)return Rt(t.point.x,t.point.y,e,n);let r=t.trigger||t.source;if(r)return G(r,e,n);return!0}function kr(e){if(R.has(e))return R.get(e);Mr(e);let t={stopTracking:null,stopScrollIntent:null,unregisterEscape:null,backdrop:null,trigger:null,source:null,point:null,mobile:"auto",breakpoint:768,placement:"bottom-start",distance:4,flip:!0,shift:!0,shiftPadding:4,autoClose:"outside",dismissOnScroll:!1,scrollIntentAt:null,isSheet:!1,closeId:0};return R.set(e,t),t}function Lr(e,t){if(t.unregisterEscape=se(e,(n)=>y(e,n)),t.dismissOnScroll){let n=new AbortController,r=(d)=>{t.scrollIntentAt=d.timeStamp},o=(d)=>{if(!e.contains(d.target))r(d)},i=(d)=>{if(!d.defaultPrevented&&Er.has(d.key))r(d)},a={...{signal:n.signal,capture:!0},passive:!0},l=e.ownerDocument;l.addEventListener("pointerdown",o,a),l.addEventListener("touchmove",r,a),l.addEventListener("wheel",r,a),l.addEventListener("keydown",i,{signal:n.signal}),t.stopScrollIntent=()=>n.abort()}t.stopTracking=le(e,({type:n,targets:r,timeStamp:o})=>{if(e.hidden)return;if(n==="scroll"&&t.dismissOnScroll&&t.scrollIntentAt!=null&&o>=t.scrollIntentAt&&[...r].some((i)=>i!==e&&!e.contains(i))){y(e);return}if(Pt(e,t),!Ut(e))y(e)})}function T(e){return e.classList.contains(g.open)&&!e.hidden}function Wt(e){if(!e)return;e.style.position="fixed",e.hidden=!0,He(e,!1),e.setAttribute(Vt,""),vr(e)?.refresh(e)}function pe(e){if(!e)return()=>{};let t=je.get(e);if(!t)Wt(e),t={count:0},je.set(e,t);t.count++;let n=!1;return()=>{if(n)return;if(n=!0,t.count--,t.count<=0)Bt(e),je.delete(e)}}function J(e,t={}){if(!e?.isConnected)return!1;if(T(e))return!1;let n=new CustomEvent(A.surfaceOpen,{bubbles:!0,cancelable:!0,detail:{surface:e,options:t}});if(!e.dispatchEvent(n))return!1;for(let i of de)if(i!==e&&i.ownerDocument===e.ownerDocument)y(i);let r=t.trigger||t.source||null;Sr(e,r),Wt(e);let o=kr(e);if(o.trigger=t.trigger||null,o.source=t.source||null,o.point=Number.isFinite(t.x)&&Number.isFinite(t.y)?{x:t.x,y:t.y}:null,o.mobile=t.mobile||"auto",o.breakpoint=t.breakpoint??768,o.autoClose=yr(t.autoClose),o.dismissOnScroll=t.dismissOnScroll===!0,o.scrollIntentAt=null,o.placement=t.placement||"bottom-start",o.distance=t.distance??4,o.flip=t.flip!==!1,o.shift=t.shift!==!1,o.shiftPadding=t.shiftPadding??4,o.scope=t.scope,o.restoreFocusTo=t.restoreFocusTo||t.trigger||t.source||null,o.closeId++,e.classList.add(g.open),e.hidden=!1,Pt(e,o),He(e,!0),!Ut(e))return y(e,{restoreFocus:!1}),!1;return de.add(e),Lr(e,o),!0}function y(e,t={}){if(!e||!T(e))return;let n=R.get(e),r=n?++n.closeId:0,o=n?.isSheet===!0,i=e.ownerDocument.activeElement,s=t.restoreFocus??e.contains(i);if(e.classList.remove(g.open),!o)e.classList.remove(g.sheet);e.hidden=!0;let a=n?.backdrop||null;if(a)a.hidden=!0;if(de.delete(e),He(e,!1),n?.unregisterEscape?.(),n?.stopScrollIntent?.(),n?.stopTracking?.(),s&&n?.restoreFocusTo?.isConnected)n.restoreFocusTo.focus({preventScroll:!0});fe(e,a).then(()=>{if(!n||n.closeId!==r)return;if(n.isSheet=!1,e.classList.remove(g.sheet),a?.remove(),n.backdrop===a)n.backdrop=null;$t(e)})}function Bt(e,{restore:t=!0}={}){if(!e)return;if(!t)Y.delete(e);y(e);let n=R.get(e);if(n)n.backdrop?.remove(),n.unregisterEscape?.(),n.stopScrollIntent?.(),n.stopTracking?.(),R.delete(e);$t(e)}function Dr(e){let t=e.composedPath();for(let n of de){if(n.ownerDocument!==e.currentTarget)continue;let r=R.get(n);if(!r)continue;let o=t.indexOf(n),i=o>=0;if(i&&t.slice(0,o).some((d)=>d instanceof Element&&d.hasAttribute("data-flyout-close"))){y(n);continue}let a=r.autoClose==="true"||r.autoClose==="inside",l=r.autoClose==="true"||r.autoClose==="outside";if(i&&a||!i&&l)y(n)}}function Mr(e){let t=e.ownerDocument;if(!t||Ft.has(t))return;Ft.add(t),t.addEventListener("click",Dr)}var me=new WeakMap,W=new WeakMap;function Ir(e){let n=Number.parseInt({sm:640,md:768,lg:1024}[e]||e,10);return Number.isFinite(n)?n:void 0}function Or(e){let t={autoClose:"true"},n=e.dataset;if(n.flyoutPlacement)t.placement=n.flyoutPlacement;if(n.flyoutDistance!=null){let r=Number.parseFloat(n.flyoutDistance);if(Number.isFinite(r))t.distance=r}if(n.flyoutMobile)t.mobile=n.flyoutMobile;if(n.flyoutBreakpoint){let r=Ir(n.flyoutBreakpoint);if(r!=null)t.breakpoint=r}if(n.flyoutAutoClose)t.autoClose=n.flyoutAutoClose;return t}function Nr(e){let t=e.getAttribute("aria-controls");return t?e.ownerDocument.getElementById(t):null}function Ke(e){return e.matches("menu")||e.classList.contains("menu")}function F(e,t){return J(e,{trigger:t,source:t,...Or(e)})}function qt(e,t){if(!T(e)&&!F(e,t))return!1;return We(e)}function Rr(e){let t=e.currentTarget,n=W.get(t);if(!n)return;e.stopPropagation();let r=Ge(t,n);if(!r)return;if(T(r))y(r);else F(r,t)}function Fr(e){let t=e.currentTarget,n=W.get(t);if(!n)return;let r=Ge(t,n);if(!r)return;if(!Ke(r)){switch(e.key){case"ArrowDown":e.preventDefault(),qt(r,t);break;case"Enter":case" ":if(e.preventDefault(),T(r))y(r);else qt(r,t);break;case"Tab":if(T(r)&&!e.shiftKey&&We(r))e.preventDefault();break}return}switch(e.key){case"ArrowDown":if(e.preventDefault(),!T(r)&&!F(r,t))break;U(r);break;case"ArrowUp":if(e.preventDefault(),!T(r)&&!F(r,t))break;qe(r);break;case"Home":if(e.preventDefault(),!T(r)&&!F(r,t))break;U(r);break;case"End":if(e.preventDefault(),!T(r)&&!F(r,t))break;qe(r);break;case"Enter":case" ":if(e.preventDefault(),!T(r)){if(F(r,t))U(r)}else y(r);break;case"Tab":if(T(r))y(r);break}}function _r(e){if(W.has(e))return;let t=new AbortController,n={panel:null,controller:t,releaseMenu:null};if(W.set(e,n),Ge(e,n),!e.hasAttribute("aria-expanded"))e.setAttribute("aria-expanded","false");e.addEventListener("click",Rr,{signal:t.signal}),e.addEventListener("keydown",Fr,{signal:t.signal})}function zt(e,t){t.releaseMenu?.(),t.releaseMenu=null;let n=t.panel;if(t.panel=null,!n)return;let r=me.get(n);if(!r)return;if(r.triggers.delete(e),r.triggers.size===0)r.release(),me.delete(n)}function Ge(e,t){let n=Nr(e);if(t.panel===n&&n?.isConnected)return n;if(zt(e,t),!n)return null;let r=me.get(n);if(!r){let o=pe(n);r={triggers:new Set,release:o},me.set(n,r)}if(r.triggers.add(e),t.panel=n,Ke(n))t.releaseMenu=ie(n,{close:(o)=>y(o)});if(!e.hasAttribute("aria-haspopup")&&Ke(n))e.setAttribute("aria-haspopup","menu");return n}function Vr(e){let t=W.get(e);if(!t)return;if(t.controller.abort(),t.panel?.isConnected&&T(t.panel))y(t.panel,{restoreFocus:!1});zt(e,t),W.delete(e)}N("flyout",(e)=>(_r(e),()=>Vr(e)));var Xt=450,$r=750,jt=10,Pr='menu, [role="menu"]',Ur="[data-context-menu]",ge=new WeakMap,Ze=new WeakMap;function Wr(e){return Ze.get(e)||null}function Br(e){let t=e.getAttribute("data-context-menu"),n=t?e.ownerDocument.getElementById(t):null;return n?.matches(Pr)?n:null}function Ye(e){return!!e.closest?.("a, button, input, textarea, select, option, [contenteditable], [role='button'], [role='link'], [data-context-menu-ignore]")}function qr(e){if(!e.hasAttribute("data-context-menu-scope"))return null;let t=e.getAttribute("data-context-menu-scope").trim();if(!t||t==="self")return e;if(t==="parent")return e.parentElement;try{return e.closest(t)||e.ownerDocument.querySelector(t)}catch{return null}}function zr(e,t){let n=e.dataset.contextMenuLongPress??t.dataset.contextMenuLongPress;if(n==null||n==="false"||n==="none")return null;if(n==="")return Xt;let r=Number.parseInt(n,10);return Number.isFinite(r)?Math.max(0,r):Xt}function Ht(e){let t={autoClose:"true"},n=e.dataset;if(n.flyoutMobile)t.mobile=n.flyoutMobile;if(n.flyoutAutoClose)t.autoClose=n.flyoutAutoClose;return t}function Kt(e){if(!e.hasAttribute("tabindex"))e.tabIndex=-1;e.focus({preventScroll:!0})}function Xr(e,t){if(t==="first-item"){if(Lt(e))U(e)}else Kt(e)}function Gt(e,t,n={}){let r={menu:t,context:e,origin:n.origin||e,trigger:n.trigger},o=new CustomEvent(A.contextMenu,{bubbles:!0,cancelable:!0,detail:r});if(!e.dispatchEvent(o))return null;return Ze.set(t,r),r}function Je(e,t,n={}){if(!Gt(e,t,n))return;if(T(t))y(t);if(J(t,{source:e,x:n.x,y:n.y,placement:n.placement||"bottom-start",distance:n.distance??2,dismissOnScroll:!0,mobile:n.mobile||"auto",scope:n.scope||qr(e),restoreFocusTo:n.restoreFocusTo,...Ht(t)}))Xr(t,n.focus)}function jr(e,t,n=e,r){let o=n.getBoundingClientRect();Je(e,t,{x:o.left,y:o.bottom,placement:"bottom-start",distance:4,focus:"first-item",origin:n,trigger:"keyboard",restoreFocusTo:r})}function he(e){if(e.timer)clearTimeout(e.timer),e.timer=null;e.pointerId=null}function Hr(e){if(ge.has(e))return;let t=Br(e);if(!t)return;let n=pe(t),r=new AbortController,o=ie(t,{close:(s)=>y(s)}),i={controller:r,releaseMenu:o,menu:t,release:n,timer:null,pointerId:null,startX:0,startY:0,suppressClickUntil:0};e.addEventListener("contextmenu",(s)=>{if(Ye(s.target))return;s.preventDefault(),s.stopPropagation(),Je(e,t,{x:s.clientX,y:s.clientY,origin:s.target,trigger:"pointer"})},{signal:r.signal}),e.addEventListener("keydown",(s)=>{if(s.key!=="ContextMenu"&&!(s.shiftKey&&s.key==="F10"))return;if(Ye(s.target))return;s.preventDefault(),jr(e,t,s.target,e)},{signal:r.signal}),e.addEventListener("pointerdown",(s)=>{let a=zr(e,t);if(s.pointerType!=="touch"||a==null||Ye(s.target))return;he(i),i.pointerId=s.pointerId,i.startX=s.clientX,i.startY=s.clientY,i.timer=setTimeout(()=>{i.timer=null,i.suppressClickUntil=Date.now()+$r,Je(e,t,{x:i.startX,y:i.startY,origin:s.target,trigger:"touch"})},a)},{signal:r.signal,passive:!0}),e.addEventListener("pointermove",(s)=>{if(s.pointerId!==i.pointerId||!i.timer)return;if(Math.abs(s.clientX-i.startX)>jt||Math.abs(s.clientY-i.startY)>jt)he(i)},{signal:r.signal,passive:!0});for(let s of["pointerup","pointercancel","pointerleave"])e.addEventListener(s,(a)=>{if(a.pointerId===i.pointerId)he(i)},{signal:r.signal,passive:!0});e.addEventListener("click",(s)=>{if(Date.now()<=i.suppressClickUntil)s.preventDefault(),s.stopPropagation(),i.suppressClickUntil=0},{signal:r.signal,capture:!0}),e.addEventListener("click",(s)=>{let a=s.target.closest("[data-context-menu-trigger]");if(!a||a.getAttribute("aria-controls")!==e.getAttribute("data-context-menu"))return;if(s.preventDefault(),s.stopPropagation(),T(t)){y(t);return}if(!Gt(e,t,{origin:a,trigger:"button"}))return;let l=a.getBoundingClientRect();if(J(t,{source:e,x:l.left,y:l.bottom,placement:"bottom-start",distance:4,dismissOnScroll:!0,restoreFocusTo:a,...Ht(t)}))Kt(t)},{signal:r.signal}),ge.set(e,i)}function Kr(e){let t=ge.get(e);if(!t)return;if(he(t),t.controller.abort(),t.releaseMenu?.(),Wr(t.menu)?.context===e)Ze.delete(t.menu),y(t.menu,{restoreFocus:!1});t.release(),ge.delete(e)}v({[Ur]:(e)=>(Hr(e),()=>Kr(e))});var Qe=new WeakMap;function Yt(e,t){let n=Array.isArray(e)?e:[e];if(!n.length||n.some((r)=>typeof r!=="string"||!r))throw TypeError(`${t} requires one or more command names.`);return[...new Set(n)]}function Jt(e){return e.startsWith("--")?e:e.toLowerCase()}function _(e){let t=e.getAttribute("commandfor");if(!t)return null;return e.getRootNode().getElementById?.(t)??null}function Zt(e){return`button[commandfor]:is(${Yt(e,"commandSelector()").map((n)=>`[command="${n.replaceAll("\\","\\\\").replaceAll('"',"\\\"")}"]`).join(", ")})`}function Gr(e,t){let n=t.defaultView?.Element;if(!n)return null;for(let r of e.composedPath?.()??[e.target]){if(r instanceof n&&r.matches("button[commandfor][command]"))return r;if(r===t)break}return null}function Yr(e){let t=new Map;function n(r){if(r.defaultPrevented)return;let o=Gr(r,e);if(!o||o.disabled)return;let i=Jt(o.getAttribute("command")),s=t.get(i);if(!s)return;let a=s.resolve(o);if(!a)return;s.prepare?.(o,a,i),s.handle(r,o,a,i)}return e.addEventListener("click",n),{commands:t,route:n}}function I(e,{resolve:t=_,prepare:n,handle:r}={}){let o=[...new Set(Yt(e,"registerCommands()").map((f)=>Jt(f)))];if(typeof t!=="function"||n!==void 0&&typeof n!=="function"||typeof r!=="function")throw TypeError("registerCommands() requires function callbacks.");if(typeof document>"u")return{disconnect(){}};let i=document,s=Qe.get(i);if(!s)s=Yr(i),Qe.set(i,s);let a=o.find((f)=>s.commands.has(f));if(a)throw Error(`Command "${a}" is already registered in this document.`);let l={resolve:t,prepare:n,handle:r};for(let f of o)s.commands.set(f,l);let d=!0;return{disconnect(){if(!d)return;d=!1;for(let f of o)if(s.commands.get(f)===l)s.commands.delete(f);if(!s.commands.size)i.removeEventListener("click",s.route),Qe.delete(i)}}}var M=new WeakMap,et=new Set,Jr=["show-modal","show","request-close","close"],Zr="dialog",Qr="[data-title], h1, h2, h3, h4, h5, h6",Qt=0;function B(e){return e?.nodeType===1&&e.localName==="dialog"}function nn(e,t){return e.hasAttribute(t)&&e.getAttribute(t)!=="false"}function eo(e,t){if(!e.id)Qt++,e.id=`${t}-${Qt}`;return e.id}function rn(e,t=tt(e)){if(t)e.setAttribute("aria-modal","true");else e.removeAttribute("aria-modal");if(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))return;let n=e.getAttribute("data-title")?.trim();if(n){e.setAttribute("aria-label",n);return}let r=e.querySelector(Qr);if(r)e.setAttribute("aria-labelledby",eo(r,"dialog-title"))}function tt(e){return e.getAttribute("data-dialog-modal")!=="false"}function to(e,t=null){return t==null?tt(e):t}function en(e){if(!e.open)return!1;try{return e.matches(":modal")}catch{return!1}}function Ee(e=document){let t=!1;for(let o of et){let i=M.get(o);if(o.ownerDocument===e&&o.isConnected&&o.open&&i?.modalOpen===!0){t=!0;break}}let n=e.documentElement,r=n.classList.contains(g.modalOpen);if(t&&!r){let o=e.defaultView?.innerWidth;n.classList.toggle(g.hadScrollbar,Number.isFinite(o)&&o>n.clientWidth)}else if(!t)n.classList.remove(g.hadScrollbar);n.classList.toggle(g.modalOpen,t)}function on(e){return nn(e,"data-dialog-dismissible")}function no(e){return nn(e,"data-dialog-view-transition")}var be="actual-dialog";function ro(e=document){return typeof e.startViewTransition==="function"}function oo(e=document){return!e.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches}function we(e,t){if(e)e.style.viewTransitionName=t}function Z(...e){for(let t of e)if(t)t.style.viewTransitionName=""}function nt(e,t){let n=e.ownerDocument;return no(e)&&ro(n)&&oo(n)&&t?.isConnected===!0}function io(e,t,n=null){if(!nt(e,t)){tn(e,t,n);return}we(t,be),e.ownerDocument.startViewTransition(()=>{Z(t),we(e,be),tn(e,t,n)}).finished.finally(()=>Z(e,t)).catch(()=>{})}function so(e,t){let n=e.getBoundingClientRect();return t.clientX<n.left||t.clientX>n.right||t.clientY<n.top||t.clientY>n.bottom}function ao(e){let t=q(e),n=e.ownerDocument.defaultView;if(t.staticTimer)n?.clearTimeout(t.staticTimer);e.classList.remove(g.static),e.offsetWidth,e.classList.add(g.static),t.staticTimer=n?.setTimeout(()=>{e.classList.remove(g.static),t.staticTimer=null},250)}function co(e,t=""){let n=M.get(e);if(n)n.closing=!1,n.returnValue="";if(e.open)e.close(t)}function ye(e,t=""){if(!B(e)||!e.open)return;let n=q(e);if(n.closing)return;let r=n.restoreFocusTo;if(nt(e,r)){n.closing=!0,we(e,be),e.ownerDocument.startViewTransition(()=>{Z(e),we(r,be),e.close(t)}).finished.finally(()=>{n.closing=!1,Z(r)}).catch(()=>{});return}co(e,t)}function sn(e,t=""){if(!B(e)||!e.open)return;if(typeof e.requestClose==="function"){q(e).returnValue=t,e.requestClose(t);return}ye(e,t)}function tn(e,t=null,n=null){if(!B(e)||e.open||!e.isConnected)return;let r=q(e),o=to(e,n);rn(e,o),r.closing=!1,r.restoreFocusTo=t||e.ownerDocument.activeElement;let i=e.ownerDocument.defaultView,s=i?.scrollY??0;if(o)e.showModal(),r.modalOpen=!0;else e.show(),r.modalOpen=!1;if(s>0)i?.scrollTo(0,s);Ee(e.ownerDocument)}function uo(e){let t=e.currentTarget;if(e.target!==t||!so(t,e))return;if(!on(t)){if(("closedBy"in t?t.closedBy:"")==="any")return;e.preventDefault(),ao(t);return}e.preventDefault(),sn(t)}function lo(e){let{currentTarget:t,target:n}=e;if(!(n instanceof HTMLFormElement))return;if(n.method.toLowerCase()!=="dialog")return;if(!nt(t,M.get(t)?.restoreFocusTo))return;e.preventDefault(),ye(t,e.submitter?.value||"")}function fo(e){let t=e.currentTarget,n=M.get(t),r=new CustomEvent(A.dialogCancel,{bubbles:!0,cancelable:!0,detail:{dialog:t,sourceEvent:e}});if(!t.dispatchEvent(r)){if(e.preventDefault(),n)n.returnValue="";return}e.preventDefault(),ye(t,n?.returnValue||"")}function po(e){let t=e.currentTarget,n=M.get(t);if(Z(t),!n)return;if(n.staticTimer)t.ownerDocument.defaultView?.clearTimeout(n.staticTimer),n.staticTimer=null;t.classList.remove(g.static),n.closing=!1,n.returnValue="",n.modalOpen=!1,Ee(t.ownerDocument);let r=n.restoreFocusTo;if(n.restoreFocusTo=null,r?.isConnected&&t.ownerDocument.activeElement!==r)r.focus({preventScroll:!0})}function q(e){if(M.has(e))return M.get(e);let t=new AbortController,n={controller:t,closing:!1,modalOpen:en(e),restoreFocusTo:null,returnValue:"",staticTimer:null};if(rn(e,e.open?en(e):tt(e)),e.addEventListener("click",uo,{signal:t.signal}),e.addEventListener("submit",lo,{signal:t.signal}),e.addEventListener("cancel",fo,{signal:t.signal}),e.addEventListener("close",po,{signal:t.signal}),on(e)&&"closedBy"in e&&e.closedBy==="any")e.closedBy="closerequest";return M.set(e,n),et.add(e),Ee(e.ownerDocument),n}function mo(e){q(e)}function ho(e){let t=M.get(e);if(!t)return;if(t.staticTimer)e.ownerDocument.defaultView?.clearTimeout(t.staticTimer);t.controller.abort(),e.classList.remove(g.static),t.modalOpen=!1,M.delete(e),et.delete(e),Ee(e.ownerDocument)}I(Jr,{resolve:(e)=>{let t=_(e);return B(t)?t:null},prepare:(e,t,n)=>{if(B(t))q(t);if(e.setAttribute("aria-controls",t.id),!e.hasAttribute("aria-haspopup")&&(n==="show-modal"||n==="show"))e.setAttribute("aria-haspopup","dialog")},handle:(e,t,n,r)=>{if(e.preventDefault(),!B(n))return;if(r==="show-modal"||r==="show"){io(n,t,r==="show-modal");return}if(r==="request-close"){sn(n,t.value||"");return}if(r==="close")ye(n,t.value||"")}});v({[Zr]:(e)=>(mo(e),()=>ho(e))});I("--dismiss",{handle(e,t,n){e.preventDefault(),n.hidden=!0,n.dispatchEvent(new CustomEvent(A.dismiss,{bubbles:!0,detail:{trigger:t}}))}});var ve='[data-enhance~="tabs"]';function an(e){return[...e.querySelectorAll('[role="tab"]')].filter((t)=>t.closest(ve)===e)}function go(e){let t=new Map;for(let n of e){let r=Te(n);if(r)t.set(n,r)}return t}function Te(e){let t=e.getAttribute("aria-controls");return t?e.ownerDocument.getElementById(t):null}function rt(e){return e.disabled||e.getAttribute("aria-disabled")==="true"}function cn(e){return an(e).filter((t)=>!rt(t)&&Te(t))}function un(e){if(!e.hasAttribute("tabindex"))e.tabIndex=-1}function Se(e){if(!e||rt(e)||!Te(e))return;let t=e.closest(ve);if(!t)return;let n=an(t),r=go(n);for(let i of n)i.setAttribute("aria-selected","false"),i.tabIndex=-1;for(let[,i]of r)i.hidden=!0;e.setAttribute("aria-selected","true"),e.tabIndex=0;let o=r.get(e);if(o)un(o),o.hidden=!1}function bo(e){if(!e)return;Se(e),e.focus()}function wo(e){let t=cn(e);if(!t.length)return;let n=t.find((r)=>r.getAttribute("aria-selected")==="true")||t[0];Se(n)}function Eo(e){let t=e.currentTarget,n=e.target.closest('[role="tab"]');if(!n||n.closest(ve)!==t)return;let r=cn(t);if(!r.length||!r.includes(n))return;let o=t.getAttribute("aria-orientation")==="vertical";if(e.key==="ArrowDown"&&!o){let a=Te(n);if(a)e.preventDefault(),un(a),a.focus();return}if(e.key==="Enter"||e.key===" "){e.preventDefault(),Se(n);return}let i=t.ownerDocument.defaultView?.getComputedStyle(t).direction||"ltr",s=P(r,n,e.key,{orientation:o?"vertical":"horizontal",wrap:!0,direction:i});if(!s)return;e.preventDefault(),bo(s)}function yo(e){let t=e.currentTarget,n=e.target.closest('[role="tab"]');if(!n||n.closest(ve)!==t)return;if(rt(n)){e.preventDefault();return}if(e.preventDefault(),n.getAttribute("aria-selected")==="true")return;Se(n),n.focus()}N("tabs",(e)=>{let t=new AbortController;return wo(e),e.addEventListener("click",yo,{signal:t.signal}),e.addEventListener("keydown",Eo,{signal:t.signal}),()=>t.abort()});var vo=150,To=100,ln=0,Ae=new WeakMap,O=new WeakMap;function So(e,t){let n=t.closest("dialog")||t.ownerDocument.body,r=e.parentNode;if(!n||!r||r===n)return null;let o={parent:r,next:e.nextSibling};return n.append(e),o}function Ao(e,t){let n=t.mount;if(!n)return;if(n.parent.isConnected){let r=n.next?.parentNode===n.parent?n.next:null;n.parent.insertBefore(e,r)}else e.remove()}function xo(e){return e?.getAttribute("data-tooltip-placement")||"top"}function dn(e,t){let n=e?.getAttribute(t);return n!==null&&n.toLowerCase()!=="false"}function it(e){return dn(e,"data-tooltip-click")}function V(e){return dn(e,"data-tooltip-visible")}function st(e){return(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean)}function Co(e,t){let n=st(e);if(n.includes(t))return!1;return e.setAttribute("aria-describedby",[...n,t].join(" ")),!0}function ko(e,t){let n=st(e).filter((r)=>r!==t);if(n.length)e.setAttribute("aria-describedby",n.join(" "));else e.removeAttribute("aria-describedby")}function Lo(e){let t=e.ownerDocument;for(let n of st(e)){let r=t.getElementById(n);if(r?.getAttribute("role")==="tooltip")return r}return null}function Do(e){let t;do ln++,t=`tooltip-${ln}`;while(e.getElementById(t));return t}function Mo(e,t){return G(e,t,{placement:xo(e),distance:6,flip:!0,shift:!0})}function pn(e,t){let n=t.activeRef;if(!n)return;let r=V(n);if(r)e.hidden=!1;if(e.hidden||Mo(n,e)){hn(e,t);return}if(r)e.hidden=!0;else z(e,!0)}function Io(e,t){if(t.stopTracking)return;t.stopTracking=le(e,()=>pn(e,t))}function mn(e){if(e?.stopTracking?.(),e)e.stopTracking=null}function hn(e,t){let n=t.activeRef,r=!e.hidden&&!V(n);if(r&&t.unregisterEscape&&t.escapeRef===n)return;if(t.unregisterEscape?.(),t.unregisterEscape=null,t.escapeRef=null,!r)return;t.unregisterEscape=se(e,()=>z(e,!0)),t.escapeRef=n}function z(e,t=!1){let n=O.get(e);if(!t&&V(n?.activeRef))return;if(n?.timer)clearTimeout(n.timer),n.timer=null;if(n?.hideTimer)clearTimeout(n.hideTimer),n.hideTimer=null;if(e.hidden=!0,n?.unregisterEscape?.(),n)n.unregisterEscape=null,n.escapeRef=null;mn(n)}function gn(e){let t=O.get(e);if(!t?.hideTimer)return;clearTimeout(t.hideTimer),t.hideTimer=null}function ot(e){let t=O.get(e);if(!t)return;if(it(t.activeRef)||V(t.activeRef))return;if(t.hovered||t.focused||t.overTip)return;if(t.hideTimer)clearTimeout(t.hideTimer);t.hideTimer=setTimeout(()=>{if(t.hideTimer=null,!t.hovered&&!t.focused&&!t.overTip)z(e)},To)}function Oo(e,t={}){let n=O.get(e);if(n)return n;let r=new AbortController;return n={refs:new Set,activeRef:null,controller:r,stopTracking:null,unregisterEscape:null,escapeRef:null,generated:t.generated===!0,mount:t.mount||null,timer:null,hideTimer:null,hovered:!1,focused:!1,overTip:!1},e.addEventListener("mouseenter",()=>{n.overTip=!0,gn(e)},{signal:r.signal}),e.addEventListener("mouseleave",()=>{n.overTip=!1,ot(e)},{signal:r.signal}),O.set(e,n),n}function at(e){let t=Ae.get(e);if(t)return t.tip;let n,r=!1,o=null,i=!1,s=e.getAttribute("data-tooltip"),a=e.ownerDocument;if(s)n=a.createElement("div"),n.className=g.tooltip,n.role="tooltip",n.id=Do(a),n.textContent=s,n.hidden=!0,n.style.position="fixed",r=!0,(e.closest("dialog")||a.body).appendChild(n),i=Co(e,n.id);if(!n){if(n=Lo(e),!n)return null;if(!O.has(n))n.hidden=!0,n.style.position="fixed",o=So(n,e)}let l=Oo(n,{generated:r,mount:o});l.refs.add(e);let d=new AbortController;e.addEventListener("mouseleave",()=>{l.hovered=!1,ot(n)},{signal:d.signal}),e.addEventListener("blur",()=>{l.focused=!1,ot(n)},{signal:d.signal});let f=()=>{if(d.abort(),Ae.delete(e),i)ko(e,n.id);if(l.refs.delete(e),l.activeRef===e)z(n,!0),l.activeRef=null;if(l.refs.size>0)return;if(z(n,!0),l.controller.abort(),mn(l),O.delete(n),l.generated)n.remove();else Ao(n,l)};return Ae.set(e,{tip:n,cleanup:f}),n}function No(e){Ae.get(e)?.cleanup?.()}function ct(e,t,n=!1){let r=O.get(e);if(!r)return;if(r.activeRef=t,hn(e,r),gn(e),r.timer)clearTimeout(r.timer);let o=()=>{r.timer=null,e.hidden=!1,Io(e,r),pn(e,r)};if(n)o();else r.timer=setTimeout(o,vo)}var ut="[data-tooltip]";function fn(e){let t=e.target.closest?.(ut);if(!t)return;if(it(t)||V(t))return;if(e.type==="mouseover"&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget))return;let n=at(t);if(!n)return;let r=O.get(n);if(e.type==="focusin")r.focused=!0;else r.hovered=!0;ct(n,t)}function Ro(e){let t=e.target.closest?.(ut);if(!t||!it(t)||V(t))return;let n=at(t);if(!n)return;if(e.preventDefault(),n.hidden)ct(n,t,!0);else z(n,!0)}if(typeof document<"u")document.addEventListener("mouseover",fn),document.addEventListener("focusin",fn),document.addEventListener("click",Ro),v({[ut]:(e)=>{if(V(e)){let t=at(e);if(t)ct(t,e,!0)}return()=>No(e)}});var bn=0.2,wn=new WeakMap;function En(e){let t=e.getAttribute("data-scrollspy-root");if(!t)return null;try{return e.ownerDocument.querySelector(t)}catch{return null}}function Fo(e){let t=[...e.querySelectorAll("a[href^='#']")],n=[];for(let r of t){let o=r.getAttribute("href").slice(1),i=o?e.ownerDocument.getElementById(o):null;if(i)n.push({link:r,section:i})}return n}function _o(e,t){if(t)return{top:t.getBoundingClientRect().top,height:t.clientHeight,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight};let n=e.ownerDocument,r=n.scrollingElement||n.documentElement;return{top:0,height:r.clientHeight,scrollTop:r.scrollTop,scrollHeight:r.scrollHeight}}function Vo(e,t){let n=(e.getAttribute("data-scrollspy-offset")??"").trim();if(!n)return t*bn;let r=Number.parseFloat(n);if(!Number.isFinite(r))return t*bn;return Math.max(0,n.endsWith("%")?t*r/100:r)}function $o(e){let t=new AbortController,n=[],r=0,o;function i(c){if(c===o)return;o=c;for(let u of n)if(u.section===c)u.link.setAttribute("aria-current","location");else u.link.removeAttribute("aria-current")}function s(){if(r=0,!n.length)return;let c=En(e),{top:u,height:m,scrollTop:p,scrollHeight:h}=_o(e,c);if(h>m&&p+m>=h-1){i(n.at(-1).section);return}let S=u+Vo(e,m),w=null;for(let{section:k}of n)if(k.getBoundingClientRect().top<=S)w=k;i(w)}function a(c=s){if(r)cancelAnimationFrame(r);r=requestAnimationFrame(c)}function l(){n=Fo(e),o=void 0,s()}(En(e)??e.ownerDocument.defaultView)?.addEventListener("scroll",()=>a(),{passive:!0,signal:t.signal}),e.ownerDocument.defaultView?.addEventListener("resize",()=>a(),{passive:!0,signal:t.signal});let f=new MutationObserver(()=>a(l));return f.observe(e,{childList:!0,subtree:!0}),wn.set(e,{rebuild:l}),l(),()=>{if(t.abort(),r)cancelAnimationFrame(r);f.disconnect(),wn.delete(e)}}N("scrollspy",$o);function xe(e){return typeof e.selectionStart==="number"?e.selectionStart:e.value.length}function Ce(e,t){if(e.ownerDocument.activeElement!==e)return;if(typeof e.setSelectionRange!=="function")return;try{e.setSelectionRange(t,t)}catch{}}function ke(e){e.dispatchEvent(new Event("input",{bubbles:!0}))}function Le(e,t,n){let r=!1;function o(i){if(r||i.isComposing)return;t(i)}e.addEventListener("compositionstart",()=>{r=!0},{signal:n}),e.addEventListener("compositionend",(i)=>{r=!1,o(i)},{signal:n}),e.addEventListener("input",o,{signal:n})}var Po="input[data-filter]",vn=new Map([["numeric",Uo],["decimal",Wo],["lower",Bo],["upper",qo],["letters",zo],["slug",jo]]);function Uo(e){return e.replace(/\D/gu,"")}function Wo(e){let t=e.replace(/,/g,"."),n="",r=!1;for(let o of t)if(/^\d$/u.test(o))n+=o;else if(o==="."&&!r)n+=".",r=!0;return n}function Bo(e){return e.toLocaleLowerCase()}function qo(e){return e.toLocaleUpperCase()}function zo(e){return e.replace(/[^\p{L}]/gu,"")}function Xo(e){return e.normalize("NFKD").replace(/\p{M}/gu,"")}function jo(e,t){let n=t?.inputType==="insertText"&&/[^\p{L}\p{N}]$/u.test(e),r=Xo(e).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/-{2,}/g,"-").replace(/^-+/,"");return n?r:r.replace(/-+$/,"")}function yn(e,t,n){return t.reduce((r,o)=>vn.get(o)(r,n),e)}function Ho(e){return e.split("|").map((t)=>t.trim().toLowerCase()).filter((t)=>vn.has(t))}function Ko(e){let t=e.getAttribute("data-filter")?.trim().toLowerCase();return t?Ho(t):[]}function Go(e){let t=Ko(e);if(!t.length)return;let n=new AbortController,r=!1;return Le(e,(o)=>{if(r)return;let i=xe(e),s=e.value,a=yn(s,t,o);if(a===s)return;e.value=a,Ce(e,yn(s.slice(0,i),t,o).length);try{r=!0,ke(e)}finally{r=!1}},n.signal),()=>n.abort()}v({[Po]:Go});var Yo="input[data-mask]",lt={9:(e)=>/^\d$/u.test(e),a:(e)=>/^\p{L}$/u.test(e),"*":()=>!0};function ee(e){return Object.hasOwn(lt,e)}function Tn(e,t){let n=[...t],r=[],o=[],i=0,s=0;e:for(let a of e){s+=a.length;while(i<n.length){let l=n[i];if(!ee(l)){if(i++,a===l)continue e;continue}if(lt[l](a))r.push(a),o.push(s),i++;continue e}break}return{positions:o,raw:r}}function Q(e,t){return Tn(e,t).raw}function Jo(e,t){let n="";for(let r=t;r<e.length&&!ee(e[r]);r++)n+=e[r];return n}function Sn(e,t,n=""){let r=n.startsWith("insert"),o=[...t],i=0,s="";for(let a=0;a<o.length;a++){let l=o[a];if(!ee(l)){if(i<e.length)s+=l;continue}let d=!1;while(i<e.length){let f=e[i];if(i++,!lt[l](f))continue;s+=f,d=!0;break}if(!d)break;if(r&&i>=e.length){s+=Jo(o,a+1);break}}return s}function Zo(e,t,n=""){if(!t)return e;return Sn(Q(e,t),t,n)}function Qo(e,t,n){if(n<=0)return 0;let r=Tn(e,t).positions[n-1];if(r==null)return e.length;let o=[...t],i=0,s=0;for(;s<o.length;s++){if(!ee(o[s]))continue;if(i++,i===n)break}let a=r;for(s++;s<o.length;s++){let l=o[s];if(ee(l)||!e.startsWith(l,a))break;a+=l.length}return a}function ei(e){let t=e.dataset.mask||"";if(!t)return;let n=new AbortController,r=!1,o=e.value;return Le(e,(i)=>{if(r)return;let s=i.inputType||"",a=xe(e),l=Q(e.value.slice(0,a),t).length,d=e.value,f=Zo(d,t,s),c=Q(d,t).length===Q(o,t).length;if(s.startsWith("delete")&&c&&f.length>d.length){let u=Q(d,t),m=s==="deleteContentForward"?l:l-1;if(m>=0&&m<u.length)u.splice(m,1),l=Math.max(0,m),f=Sn(u,t,s)}if(o=f,f===d)return;e.value=f,Ce(e,Qo(f,t,l));try{r=!0,ke(e)}finally{r=!1}},n.signal),()=>n.abort()}v({[Yo]:ei});var An=["--password-toggle"],ti=Zt(An),X=new Set,ft=new WeakSet;function ni(e){let t=_(e);return t?.localName==="input"&&(t.type==="password"||X.has(t))?t:null}function ri(e){if(!e.id)return[];return e.getRootNode().querySelectorAll(`${ti}[commandfor="${CSS.escape(e.id)}"]`)}function dt(e,t){if(e.type=t?"text":"password",t)X.add(e);else X.delete(e);for(let n of ri(e))n.setAttribute("aria-pressed",String(t))}function xn(e){if(e.defaultPrevented)return;for(let t of e.target.elements??[])if(X.has(t))dt(t,!1)}function oi(e){let t=e.getRootNode();if(ft.has(t))return;ft.add(t),t.addEventListener("submit",xn)}I(An,{resolve:ni,prepare:(e,t)=>{if(e.setAttribute("aria-controls",t.id),!e.hasAttribute("aria-pressed"))e.setAttribute("aria-pressed","false")},handle:(e,t,n)=>{e.preventDefault();let r=n.type==="password";if(r)oi(n);dt(n,r)}});if(typeof document<"u")ft.add(document),document.addEventListener("submit",xn),document.defaultView?.addEventListener("pagehide",()=>{for(let e of X){if(!e.isConnected){X.delete(e);continue}dt(e,!1)}});var ht="novalidate",Cn=g.wasValidated,ii=te("validation"),si=g.field,gt=g.danger,bt="validationManagedNovalidate",pt=new WeakMap,kn=new WeakMap;function mt(e,t,n){if(t<1||t>12||n<1)return!1;let r=new Date(Date.UTC(e,t,0)).getUTCDate();return n<=r}function ai(e){let t=e.trim(),n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(n)return mt(Number(n[1]),Number(n[2]),Number(n[3]));let r=/^(\d{1,2})([/.-])(\d{1,2})\2(\d{4})$/.exec(t);if(!r)return!1;let o=Number(r[1]),i=Number(r[3]),s=Number(r[4]);return mt(s,i,o)||mt(s,o,i)}function ci(e,t){let n=kn.get(e);if(!n)n=new Set,kn.set(e,n);if(n.has(t))return;n.add(t),console.warn(`Unknown validation rule "${t}" on ${e.name||e.id||"field"}`)}var ui={same(e,t,n){if(!n)return!1;try{let r=t.form?.querySelector(n);if(!r)return!1;return e===r.value}catch{return!1}},number(e){return/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e)},digits(e){return/^\d+$/.test(e)},alnum(e){return/^[a-z0-9]+$/i.test(e)},date(e){return ai(e)}};function De(e){return!e||e.disabled||e.willValidate===!1||typeof e.checkValidity!=="function"||typeof e.setCustomValidity!=="function"}function Dn(e){return e.closest?.(`.${si}`)||null}var wt=new WeakSet;function Mn(e){if(!e.classList.contains(gt))wt.add(e);e.classList.add(gt)}function In(e){let t=Dn(e);if(!t)return;if(t.querySelector('[aria-invalid="true"], [data-validation-errors]'))Mn(t);else if(wt.has(t))t.classList.remove(gt),wt.delete(t)}function On(e){if(e.dataset.validationErrors==="server")return!1;e.setCustomValidity(""),delete e.dataset.validationErrors;let t=e.checkValidity(),n=e.dataset.validationRules;if(n){let r=e.value.trim().length>0,o=[];for(let i of n.split(",")){if(!r)continue;let s=i.trim();if(!s)continue;let[a,...l]=s.split(/\s+/),d=ui[a];if(!d){ci(e,a),o.push(a);continue}let f=!1;try{f=d(e.value,e,...l)}catch(c){console.warn(`Validation rule "${a}" failed on ${e.name||e.id||"field"}`,c)}if(!f)o.push(a)}if(o.length>0)t=!1,e.setCustomValidity(o.join(", ")),e.dataset.validationErrors=o.join(",")}return t}function Nn(e){e.setAttribute("aria-invalid","true");let t=Dn(e);if(t)Mn(t)}function Et(e){e.removeAttribute("aria-invalid"),delete e.dataset.validationErrors,In(e)}function li(e){for(let t of e.elements){if(De(t))continue;if(t.getAttribute("aria-invalid")==="true"&&!t.dataset.validationErrors)t.dataset.validationErrors="server";In(t)}}function fi(e){if(e.dataset[bt]===void 0)return;e.removeAttribute(ht),delete e.dataset[bt]}function Ln(e,t){if(De(e))return;if(t==="input"&&e.dataset.validationErrors==="server")delete e.dataset.validationErrors,e.setCustomValidity("");let n=e.dataset.validationTrigger||"",r=e.getAttribute("aria-invalid")==="true"||e.dataset.validationErrors;if(!(t==="blur"||n.includes(t)&&e.value.length>0)&&!r)return;if(On(e))Et(e);else Nn(e)}function di(e){let t=pt.get(e);if(t)return t;let n=new AbortController;if(!e.hasAttribute(ht))e.setAttribute(ht,""),e.dataset[bt]="";li(e),e.addEventListener("focusout",(o)=>{let i=o.target;if(i instanceof Element&&i.form===e)Ln(i,"blur")},{signal:n.signal}),e.addEventListener("input",(o)=>{let i=o.target;if(i instanceof Element&&i.form===e)Ln(i,"input")},{signal:n.signal}),e.addEventListener("reset",()=>{e.classList.remove(Cn);for(let o of e.elements){if(De(o))continue;o.setCustomValidity(""),Et(o)}},{signal:n.signal}),e.addEventListener("submit",(o)=>{if(o.submitter?.formNoValidate)return;let i=null;for(let s of e.elements){if(De(s))continue;if(On(s)){Et(s);continue}if(Nn(s),!i)i=s}if(e.classList.add(Cn),!i)return;o.preventDefault(),o.stopPropagation();try{i.focus()}catch{}e.dispatchEvent(new CustomEvent(A.invalid,{bubbles:!0,detail:{form:e,firstInvalid:i,message:e.dataset.validationMessage??""}}))},{signal:n.signal});let r=()=>{n.abort(),fi(e),pt.delete(e)};return pt.set(e,r),r}if(typeof document<"u")v({[`form${ii}`]:(e)=>di(e)});var pi='[data-status][role="status"]',yt="statusClasses",Vn="--status-viewport-offset",vt,Tt=0,j=null;function St(){if(typeof document>"u")return null;return document.querySelector(pi)}function mi(e){if(j?.target===e)return;Me();let t=e.ownerDocument?.defaultView,n=t?.visualViewport;if(!n)return;let r=new AbortController,o=()=>{if(!e.isConnected){Me();return}let i=Math.max(0,t.innerHeight-n.height-n.offsetTop);e.style.setProperty(Vn,`${i}px`)};n.addEventListener("resize",o,{signal:r.signal}),n.addEventListener("scroll",o,{signal:r.signal}),o(),j={target:e,stop:()=>r.abort()}}function Me(){if(!j)return;j.stop(),j.target.style.removeProperty(Vn),j=null}function hi(e){return typeof e==="string"?e.trim().split(/\s+/).filter(Boolean):[]}function $n(e){let t=e.dataset[yt];if(t)e.classList.remove(...t.split(" "));delete e.dataset[yt]}function H(e,t={}){let n=St();if(!n||e==null)return;if(e===""){H.clear();return}clearTimeout(vt),Tt++,$n(n);let r=hi(t.intent);if(r.length)n.classList.add(...r),n.dataset[yt]=r.join(" ");if(n.textContent=e,n.classList.add(g.open),mi(n),t.duration!==!1)vt=setTimeout(()=>H.clear(),t.duration??3000)}H.clear=function(){clearTimeout(vt);let t=St();if(!t){Me();return}let n=++Tt;t.classList.remove(g.open),fe(t).then(()=>{if(n!==Tt)return;t.textContent="",$n(t),Me()})};var gi=["--status"],bi=["--status-clear"];function Rn(e,t){e.dispatchEvent(new CustomEvent(A.status,{bubbles:!0,detail:t}))}function wi(e){let t=e.getAttribute("data-status-duration");if(t===null)return;if(t==="false")return!1;let n=Number(t);return Number.isFinite(n)?n:void 0}function Fn(e){let t=_(e);return t&&t===St()?t:null}function _n(e,t){e.setAttribute("aria-controls",t.id)}if(typeof document<"u")document.addEventListener(A.invalid,(e)=>{let t=e.detail?.message;if(t)H(t,{intent:"danger"})}),document.addEventListener(A.status,(e)=>{let{message:t,intent:n,duration:r}=e.detail??{};if(t!=null)H(t,{intent:n,duration:r});else H.clear()}),I(gi,{resolve:Fn,prepare:_n,handle:(e,t)=>{e.preventDefault(),Rn(t,{message:t.getAttribute("data-status-message"),intent:t.getAttribute("data-status-intent")??void 0,duration:wi(t)})}}),I(bi,{resolve:Fn,prepare:_n,handle:(e,t)=>{e.preventDefault(),Rn(t,{})}});function Ei(e){return e.replace(/([a-zA-Z_$][\w$-]*)\s*:|'((?:\\'|[^'])*)'/g,(t,n,r)=>{if(n)return`"${n}":`;return`"${r.replace(/\\'/g,"'").replace(/"/g,"\\\"")}"`})}function Pn(e){if(e==null||typeof e!=="string")return{};let t=e.trim();if(t==="")return{};let n=t,r;try{r=JSON.parse(n)}catch{let o=Ei(n);n=o.startsWith("{")?o:`{${o}}`,r=JSON.parse(n)}if(r===null||typeof r!=="object"||Array.isArray(r))throw TypeError("Enhancement config must be an object");return r}var yi='script[type="application/json"][data-enhance-modules]',Ie=new Map,Oe=new Map,Ne=new Map,vi=(e)=>import(e);function Ti(e){let t=new URL(e,document.baseURI).href;if(!Oe.has(t))Oe.set(t,new Promise((n,r)=>{let o=document.createElement("script");o.src=t,o.onload=n,o.onerror=()=>{Oe.delete(t),o.remove(),r(Error(`Unable to load script: ${t}`))},document.head.append(o)}));return Oe.get(t)}function Si(e){let t=new URL(e,document.baseURI).href;if(!Ne.has(t))Ne.set(t,new Promise((n,r)=>{let o=document.createElement("link");o.rel="stylesheet",o.href=t,o.onload=n,o.onerror=()=>{Ne.delete(t),o.remove(),r(Error(`Unable to load style: ${t}`))},document.head.append(o)}));return Ne.get(t)}function Ai(e,t){return(n)=>{let r=new AbortController,o=n.getAttribute("data-enhance-config"),i=Pn(o??""),s=(l,d,f={})=>n.dispatchEvent(new CustomEvent(`actual:${e}:${l}`,{bubbles:!0,detail:d,...f})),a;try{a=t(n,{config:i,signal:r.signal,emit:s})}catch(l){throw r.abort(),l}if(a?.then)throw r.abort(),TypeError(`Enhancement "${e}" returned a Promise. connect() must be synchronous; use prepare() for asynchronous setup.`);if(a!==void 0&&typeof a!=="function")throw r.abort(),TypeError(`Enhancement "${e}" must return a cleanup function or undefined.`);return()=>{r.abort(),a?.()}}}function xi(e,t){if(typeof t!=="string"||t.trim()==="")throw TypeError(`Enhancement "${e}" must declare a non-empty module URL.`)}function Ci(e,t){xi(e,t);let n=new URL(t,document.baseURI).href,r=Ie.get(e);if(r){if(r.url!==n)throw Error(`Enhancement "${e}" is already declared from ${r.url} and cannot be replaced by ${n}.`);return r.promise.then(()=>({name:e,status:"skipped"}))}let o=vi(n).then(async(i)=>{if(typeof i.default!=="function")throw TypeError(`Enhancement "${e}" must export a default function.`);if(i.prepare!==void 0){if(typeof i.prepare!=="function")throw TypeError(`Enhancement "${e}" exports an invalid prepare().`);await i.prepare({resolve:(s)=>new URL(s,n).href,loadScript:Ti,loadStyle:Si})}return N(e,Ai(e,i.default)),{name:e,status:"loaded"}}).catch((i)=>{if(Ie.get(e)?.promise===o)Ie.delete(e);throw i});return Ie.set(e,{url:n,promise:o}),o}async function ki(e){let t=Object.entries(e),n=await Promise.allSettled(t.map(([o,i])=>Ci(o,i))),r={names:[],failed:[],skipped:[]};return n.forEach((o,i)=>{let s=t[i][0];if(o.status==="rejected")r.failed.push({name:s,error:o.reason});else if(o.value.status==="skipped")r.skipped.push(s);else r.names.push(s)}),r}function Li(e){let t=JSON.parse(e);if(typeof t!=="object"||t===null||Array.isArray(t))throw TypeError("Manifest must be a JSON object.");return Object.entries(t)}async function Di(e){let t=Li(e.textContent),n=await ki(Object.fromEntries(t));for(let r of n.failed)console.error(`Enhancement "${r.name}" failed to load:`,r.error);if(n.failed.length===0)e.remove();return n}function Un(){return v({[yi]:(e)=>{Di(e).catch((t)=>{console.error("Failed to parse enhancement manifest:",t)})}})}Un();
1
+ var Re=new WeakMap,Oe=new WeakMap;function Ne(){return{refresh(){},disconnect(){}}}function yt(e){return e?.nodeType===1||e?.nodeType===9||e?.nodeType===11}function Vn(e){let t=new Set,n="";function r(u){try{if(e.querySelector?.(u),e.nodeType===1)e.matches(u);return!0}catch(f){return console.error(`Invalid enhancer selector "${u}"`,f),!1}}function o(){n=[...t].flatMap((u)=>u.selectors).join(",")}function i(u,f){if(f?.nodeType!==1)return;let m=u.instances.get(f);for(let p of u.selectors){if(!f.matches(p))continue;if(m?.has(p))continue;let h;try{h=u.enhancers[p](f)}catch(g){console.error(`Enhancer failed for selector "${p}"`,g);continue}if(!m)m=new Map,u.instances.set(f,m);m.set(p,typeof h==="function"?h:null)}}function s(u,f){let m=u.instances.get(f);if(!m)return;for(let p of m.values())try{p?.()}catch(h){console.error("Enhancer cleanup failed",h)}u.instances.delete(f)}function c(u,f){if(!yt(f))return;if(f.nodeType===1)i(u,f);if(u.selectorString)f.querySelectorAll?.(u.selectorString).forEach((m)=>{i(u,m)})}function a(u){if(!yt(u)||!n)return;if(u.nodeType===1)for(let f of t)i(f,u);u.querySelectorAll?.(n).forEach((f)=>{for(let m of t)i(m,f)})}function d(){for(let u of t)for(let f of Array.from(u.instances.keys()))if(!f.isConnected||!e.contains(f))s(u,f)}let l=new MutationObserver((u)=>{let f=!1;for(let m of u){for(let p of m.addedNodes)a(p);if(m.removedNodes.length>0)f=!0}if(f)d()});return l.observe(e,{childList:!0,subtree:!0}),{add(u){let f=Object.keys(u).filter(r);if(!f.length)return null;let p={disconnected:!1,enhancers:Object.fromEntries(f.map((h)=>[h,u[h]])),instances:new Map,selectors:f,selectorString:f.join(",")};return t.add(p),o(),c(p,e),p},refresh(u,f){if(u.disconnected)return;c(u,f)},remove(u){if(u.disconnected)return;u.disconnected=!0;for(let f of Array.from(u.instances.keys()))s(u,f);if(t.delete(u),o(),t.size===0)l.disconnect(),Re.delete(e)}}}var Pn=/^[a-z][a-z0-9-]*$/;function ee(e){if(!Pn.test(e))throw TypeError(`Invalid enhancement name: ${e}`);return`[data-enhance~="${e}"]`}function I(e,t,n){if(typeof document>"u")return Ne();if(ee(e),typeof t!=="function")throw TypeError("registerEnhancement() requires a function init.");n??=document.documentElement;let r=Oe.get(n);if(!r)r=new Map,Oe.set(n,r);if(r.has(e))throw Error(`Enhancement "${e}" is already registered on this root.`);let o=T({[ee(e)]:t},n);return r.set(e,o),{refresh:(i)=>o.refresh(i),disconnect:()=>{if(o.disconnect(),r.get(e)===o)r.delete(e);if(r.size===0)Oe.delete(n)}}}function $n(e){let t=Re.get(e);if(!t)t=Vn(e),Re.set(e,t);return t}function T(e,t){if(typeof document>"u")return Ne();t??=document.documentElement;let n=$n(t),r=n.add(e);if(!r)return Ne();return{refresh:(o)=>n.refresh(r,o),disconnect:()=>{n.remove(r)}}}var Un=["a[href]","button","input","select","textarea","summary","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function Fe(e){if(!e||e.hidden)return!1;if(typeof e.checkVisibility==="function")return e.checkVisibility();if(e.getClientRects().length===0)return!1;let t=e.ownerDocument?.defaultView?.getComputedStyle?.(e);if(!t)return!0;return t.visibility!=="hidden"&&t.visibility!=="collapse"}function Bn(e){return e.tabIndex>=0&&!e.matches(":disabled")&&Fe(e)&&!e.closest('[inert], [aria-hidden="true"]')}function Wn(e){return[...e.querySelectorAll(Un)].filter(Bn)}function _e(e){let t=Wn(e)[0];return t?.focus(),!!t}function ne(e){return e[0]||null}function re(e){return e[e.length-1]||null}function te(e,t,n,r={}){if(!e.length)return null;let o=r.wrap!==!1,i=e.indexOf(t);if(i===-1)return n>0?ne(e):re(e);let s=i+n;if(!o)return e[s]||null;let c=(s%e.length+e.length)%e.length;return e[c]}function _(e,t,n,r={}){let o=r.orientation||"horizontal",i=r.wrap===!0,s=r.direction||"ltr";switch(n){case"Home":return ne(e);case"End":return re(e);case"ArrowRight":if(o!=="horizontal")return null;return te(e,t,s==="rtl"?-1:1,{wrap:i});case"ArrowLeft":if(o!=="horizontal")return null;return te(e,t,s==="rtl"?1:-1,{wrap:i});case"ArrowDown":if(o!=="vertical")return null;return te(e,t,1,{wrap:i});case"ArrowUp":if(o!=="vertical")return null;return te(e,t,-1,{wrap:i});default:return null}}var qn=new Set(["horizontal","vertical"]);function zn(e,t){if(t==null)e.removeAttribute("tabindex");else e.setAttribute("tabindex",t)}function vt(e,t={}){if(!e?.addEventListener||!e?.contains)throw TypeError("connectFocusGroup() requires a root element.");if(typeof t.getItems!=="function")throw TypeError("connectFocusGroup() requires getItems().");let n=t.orientation||"horizontal";if(!qn.has(n))throw TypeError(`Invalid focus-group orientation: ${n}`);let r=new AbortController,o=t.signal||null,i=new Map,s=null,c=!1;function a(){let p=new Set;return[...t.getItems()||[]].filter((h)=>{if(typeof h?.focus!=="function"||!e.contains(h)||p.has(h))return!1;return p.add(h),!0})}function d(p){if(!i.has(p))return;zn(p,i.get(p)),i.delete(p)}function l(p=s){if(c)return[];let h=a(),g=new Set(h);for(let b of i.keys())if(!g.has(b))d(b);let y=e.ownerDocument.activeElement,E=g.has(p)&&p||g.has(y)&&y||h.find((b)=>b.tabIndex===0)||h[0]||null;for(let b of h){if(!i.has(b))i.set(b,b.getAttribute("tabindex"));let x=b===E?0:-1;b.tabIndex=x}return s=E,h}function u(p){if(a().includes(p.target))l(p.target)}function f(p){let h=l(),g=e.ownerDocument.activeElement;if(!h.includes(g))return;let E=e.ownerDocument.defaultView?.getComputedStyle?.(e)?.direction==="rtl"?"rtl":"ltr",b=_(h,g,p.key,{orientation:n,wrap:t.wrap===!0,direction:E});if(!b)return;p.preventDefault(),l(b),b.focus()}e.addEventListener("focusin",u,{signal:r.signal}),e.addEventListener("keydown",f,{signal:r.signal}),l();function m(){if(c)return;c=!0,o?.removeEventListener("abort",m),r.abort();for(let p of i.keys())d(p);s=null}if(o)if(o.aborted)m();else o.addEventListener("abort",m,{once:!0});return{sync:l,disconnect:m}}var Hn=":scope > li > .menu-item",Xn=new Set(["menuitem","menuitemcheckbox","menuitemradio"]);function jn(e){return!e.disabled&&e.getAttribute("aria-disabled")!=="true"&&Fe(e)&&!e.closest("[hidden], [inert], [aria-hidden='true']")}function j(e){return[...e.querySelectorAll(Hn)].filter(jn)}function Tt(e){return Xn.has(e.getAttribute("role"))}function Kn(e){let t=e.ownerDocument.activeElement;if(!e.contains(t)||!Tt(t))return!1;return t.click(),!0}function St(e){return j(e).length>0}function Gn(e,t){let n=t?.closest?.(".menu-item");return n?.parentElement?.parentElement===e?n:null}function V(e){ne(j(e))?.focus()}function Pe(e){re(j(e))?.focus()}function Yn(e,{close:t,navigate:n=!0}){let r=e.currentTarget;if(n){let o=j(r),i=_(o,r.ownerDocument.activeElement,e.key,{orientation:"vertical",wrap:!0});if(i){e.preventDefault(),i.focus();return}}switch(e.key){case"Tab":t(r);break;case"Enter":case" ":if(Kn(r))e.preventDefault();break}}var Ve=new WeakMap;function oe(e,{close:t}){let n=Ve.get(e);if(!n){let o=new AbortController,i=e.matches('[role="menu"]')?vt(e,{getItems:()=>j(e).filter(Tt),orientation:"vertical",wrap:!0,signal:o.signal}):null;e.addEventListener("keydown",(s)=>Yn(s,{close:()=>t(e),navigate:!i}),{signal:o.signal}),e.addEventListener("click",(s)=>{let c=Gn(e,s.target);if(!c)return;if(c.matches(":disabled, [aria-disabled='true']")){s.preventDefault(),s.stopPropagation();return}},{signal:o.signal}),n={count:0,controller:o,focusGroup:i},Ve.set(e,n)}n.count++;let r=!1;return()=>{if(r)return;if(r=!0,n.count--,n.count<=0)n.focusGroup?.disconnect(),n.controller.abort(),Ve.delete(e)}}function kt(e){return e==="top"||e==="bottom"?"x":"y"}function Jn(e){let[t,n=null]=e.split("-");return{side:t,align:n,crossAxis:kt(t)}}function Zn(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]||e}function ie(e,t,n,r,o,i){let s=kt(n),c=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,d=e[s==="x"?"width":"height"]/2-t[s==="x"?"width":"height"]/2,l;switch(n){case"top":l={x:c,y:e.y-t.height-i};break;case"bottom":l={x:c,y:e.y+e.height+i};break;case"right":l={x:e.x+e.width+i,y:a};break;case"left":l={x:e.x-t.width-i,y:a};break;default:l={x:e.x,y:e.y}}if(r==="start"||r==="end"){let u=(o&&s==="x"?-1:1)*(r==="end"?1:-1);l[s]+=d*u}return l}function At(e,t,n,r){return Math.max(n-e.x,0)+Math.max(e.x+t.width-r,0)}function Qn(e){let t="dir"in e?e.dir:"";if(t==="rtl")return!0;if(t==="ltr")return!1;let n=e.ownerDocument?.defaultView;if(n?.CSS?.supports?.("selector(:dir(rtl))")&&typeof e.matches==="function")return e.matches(":dir(rtl)");return Boolean(n?.Element&&e instanceof n.Element&&n.getComputedStyle(e).direction==="rtl")}var er=25,tr=128;function nr(e){let t=e.defaultView;if(!t)return null;let n=e.documentElement,r=t.visualViewport,o=r?.offsetLeft||0,i=r?.offsetTop||0,s=r?.width||n.clientWidth||t.innerWidth,c=r?.height||n.clientHeight||t.innerHeight,a=e.compatMode==="BackCompat"?s-n.clientWidth:n.clientWidth-n.getBoundingClientRect().width;if(a>0&&a<=er){let d=t.getComputedStyle?.(n).scrollbarGutter;if(d&&d!=="auto")s-=a}return{x:o,y:i,width:s,height:c,right:o+s,bottom:i+c}}function rr(e,t){return t.scope?t.scope.getBoundingClientRect():nr(e.ownerDocument)}function xt(e,t,n,r,o){let i=n+o,s=r-t-o,c=s>=i,a=c?i:n,d=c?s:r-t;return Math.max(a,Math.min(e,d))}function Ct(e,t,n){if(!n)return 50;let r=(e-t)/n*100;return Math.round(Math.min(100,Math.max(0,r))*1000)/1000}function or(e,t){return e.right<t.x||e.left>t.right||e.bottom<t.y||e.top>t.bottom}function ir(e,t,n,r,o){if(t==="top")return Math.max(0,e.top-n.y-r-o);if(t==="bottom")return Math.max(0,n.bottom-e.bottom-r-o);return Math.max(0,n.height-o*2)}function sr(e){if(e.hidden)return!1;if(typeof e.checkVisibility==="function")return e.checkVisibility();return e.getClientRects().length>0}function cr(e){let{offsetWidth:t,offsetHeight:n}=e;if(t&&n)return{width:t,height:n};let r=e.getBoundingClientRect();return{width:t||r.width,height:n||r.height}}var Lt=new WeakMap;function ar(e){let t=e.defaultView;if(!t)throw TypeError("floating must belong to a document with a browsing context");let n=new Set,r=new Map,o=t.ResizeObserver,i=!1,s=!1,c=t.visualViewport;function a(g,y){let E=r.get(g);if(!E)E=new Set,r.set(g,E);E.add(y)}function d(){if(i)return;i=!0,t.requestAnimationFrame(()=>{let g=[...r];r.clear(),i=!1;for(let[y,E]of g){if(!n.has(y)||!y.floating.isConnected)continue;for(let b of E)y.callback({type:b})}})}function l(g){for(let y of n)a(y,g);d()}function u(g){if(!o)return null;let y=new Set,E=new o((C)=>{let M=!1;for(let X of C)if(y.has(X.target))M=!0;else y.add(X.target);if(!M)return;a(g,"element-resize"),d()}),{reference:b,floating:x}=g;if(b)E.observe(b);if(x!==b)E.observe(x);return E}let f=()=>l("scroll"),m=()=>l("resize");function p(){if(s)return;e.addEventListener("scroll",f,{passive:!0,capture:!0}),t.addEventListener("resize",m,{passive:!0}),c?.addEventListener("scroll",f,{passive:!0}),c?.addEventListener("resize",m,{passive:!0}),s=!0}function h(){if(!s)return;e.removeEventListener("scroll",f,{capture:!0}),t.removeEventListener("resize",m),c?.removeEventListener("scroll",f),c?.removeEventListener("resize",m),s=!1}return{add(g,y,E){let b={reference:g,floating:y,callback:E};n.add(b),p();let x=u(b),C=!1;return()=>{if(C)return;if(C=!0,n.delete(b),r.delete(b),x?.disconnect(),n.size===0)h()}}}}function ur(e){let t=e.ownerDocument,n=Lt.get(t);if(!n)n=ar(t),Lt.set(t,n);return n}function se(e,t,n){if(!t?.ownerDocument)throw TypeError("autoUpdate() expects a floating HTMLElement");if(e&&e.ownerDocument!==t.ownerDocument)throw TypeError("reference and floating must belong to the same document");if(typeof n!=="function")throw TypeError("callback must be a function");return ur(t).add(e,t,n)}function K(e,t,n={}){if(!sr(t))return!1;let r=n.placement||"bottom-start",o=n.distance||0,i=n.flip!==!1,s=n.shift!==!1,c=n.shiftPadding??4,{side:a,align:d,crossAxis:l}=Jn(r),u=d?Qn(e):!1,f=e.getClientRects(),m=a==="bottom"?f[f.length-1]:f[0];if(!m)return!1;let p=rr(e,n);if(!p||or(m,p))return!1;let h=cr(t),g=ie(m,h,a,d,u,o);if(i){let C=Math.ceil(g.x),M=Math.ceil(g.y);if(l==="x"&&(M<p.y||M+h.height>=p.bottom)||l==="y"&&(C<p.x||C+h.width>=p.right))a=Zn(a),g=ie(m,h,a,d,u,o);if(l==="y"&&(g.x<p.x||g.x+h.width>p.right)&&p.width-h.width<tr)a="top",l="x",g=ie(m,h,a,d,u,o)}if(l==="x"&&s&&d){let C=p.x+c,M=p.right-c,X=At(g,h,C,M);if(X>0){let wt=d==="end"?"start":"end",Et=ie(m,h,a,wt,u,o);if(At(Et,h,C,M)<X)d=wt,g=Et}}if(s){if(g.x=xt(g.x,h.width,p.x,p.right,c),l==="y")g.y=xt(g.y,h.height,p.y,p.bottom,c)}let y=Ct(m.x+m.width/2,g.x,h.width),E=Ct(m.y+m.height/2,g.y,h.height),b=ir(m,a,p,o,c),{style:x}=t;return x.left=`${g.x}px`,x.top=`${g.y}px`,x.setProperty("--arrow-x",`${y}%`),x.setProperty("--arrow-y",`${E}%`),x.setProperty("--available-height",`${b}px`),t.dataset.placement=d?`${a}-${d}`:a,!0}function Dt(e,t,n,r={}){let o=n.ownerDocument,{documentElement:i,defaultView:s}=o;if(!s)return!1;let c=o.dir||i?.dir||s.getComputedStyle?.(i).direction||"",a=new s.DOMRect(e,t,0,0);return K({ownerDocument:o,dir:c,matches:(l)=>l===":dir(rtl)"&&c==="rtl",getClientRects:()=>[a]},n,r)}var $e=new WeakMap;function ce(e,t){let n=e.ownerDocument,r=$e.get(n);if(!r)r=[],$e.set(n,r),n.addEventListener("keydown",lr);let o={element:e,dismiss:t};return r.push(o),()=>{let i=r.indexOf(o);if(i>=0)r.splice(i,1)}}function lr(e){if(e.key!=="Escape"||e.ctrlKey||e.altKey||e.shiftKey)return;let n=$e.get(e.currentTarget).at(-1);if(!n)return;e.preventDefault(),n.dismiss({restoreFocus:!0})}var A={reposition:"actual:reposition",hide:"actual:hide",outOfView:"actual:out-of-view",surfaceOpen:"actual:surface-open",contextMenu:"actual:context-menu",status:"actual:status",invalid:"actual:invalid",dialogCancel:"actual:dialog-cancel",dismiss:"actual:dismiss"};var w={wasValidated:"was-validated",danger:"danger",fieldError:"field-error",field:"field",open:"is-open",sheet:"is-sheet",backdrop:"surface-backdrop",static:"is-static",modalOpen:"has-modal-open",hadScrollbar:"had-scrollbar",tooltip:"tooltip"};function ae(...e){let t=e.filter(Boolean).flatMap((n)=>typeof n.getAnimations==="function"?n.getAnimations({subtree:!0}):[]).filter((n)=>typeof n.transitionProperty==="string");return Promise.allSettled(t.map((n)=>n.finished))}var ue=new Set,O=new WeakMap,Ue=new WeakMap,G=new WeakMap,Mt=new WeakSet,Ot="data-actual-surface",fr=new Set(["true","inside","outside","false"]),dr=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"," "]),It=new WeakMap;function pr(e){let t=String(e??"outside");return fr.has(t)?t:"true"}function mr(e){let t=e.ownerDocument?.documentElement;if(!t)return null;let n=It.get(t);if(!n)n=T({[`[${Ot}]`]:(r)=>()=>Vt(r,{restore:!1})},t),It.set(t,n);return n}function hr(e,t){return t?.closest("dialog")||e.closest("dialog")||e.ownerDocument.body}function gr(e,t){if(G.has(e))return;let n=hr(e,t),r=e.parentNode;if(!n||!r||r===n)return;G.set(e,{parent:r,next:e.nextSibling}),n.append(e)}function Rt(e){let t=G.get(e);if(!t)return;if(t.parent.isConnected){let n=t.next?.parentNode===t.parent?t.next:null;t.parent.insertBefore(e,n)}else e.remove();G.delete(e)}function br(e,t){let n=t.mobile||"auto";if(n==="none"||n==="anchored")return!1;if(n==="sheet")return!0;let r=e.ownerDocument?.defaultView;if(!r||typeof r.matchMedia!=="function")return!1;let o=t.breakpoint??768;return r.matchMedia("(pointer: coarse)").matches&&r.matchMedia(`(max-width: ${o}px)`).matches}function wr(e){if(!e.id)return[];return[...e.ownerDocument.querySelectorAll(`[aria-controls="${CSS.escape(e.id)}"]`)]}function Be(e,t){for(let n of wr(e))n.setAttribute("aria-expanded",t?"true":"false")}function Er(e,t){if(!t.isSheet){t.backdrop?.remove(),t.backdrop=null;return}if(t.backdrop?.isConnected){t.backdrop.hidden=!1;return}let n=e.ownerDocument.createElement("div");n.className=w.backdrop,n.hidden=!1,e.before(n),t.backdrop=n}function Nt(e,t){if(t.isSheet=br(e,t),t.isSheet)e.style.removeProperty("left"),e.style.removeProperty("top");e.classList.toggle(w.sheet,t.isSheet),Er(e,t)}function Ft(e){let t=O.get(e);if(!t||t.isSheet)return!0;if(t.trigger){let o=t.trigger.getBoundingClientRect().width;e.style.setProperty("--surface-anchor-width",`${o}px`)}else e.style.removeProperty("--surface-anchor-width");let n={placement:t.placement||"bottom-start",distance:t.distance??4,flip:t.flip!==!1,shift:t.shift!==!1,shiftPadding:t.shiftPadding??4,scope:t.scope};if(t.point)return Dt(t.point.x,t.point.y,e,n);let r=t.trigger||t.source;if(r)return K(r,e,n);return!0}function yr(e){if(O.has(e))return O.get(e);Ar(e);let t={stopTracking:null,stopScrollIntent:null,unregisterEscape:null,backdrop:null,trigger:null,source:null,point:null,mobile:"auto",breakpoint:768,placement:"bottom-start",distance:4,flip:!0,shift:!0,shiftPadding:4,autoClose:"outside",dismissOnScroll:!1,scrollIntentAt:null,isSheet:!1,closeId:0};return O.set(e,t),t}function vr(e,t){if(t.unregisterEscape=ce(e,(r)=>v(e,r)),t.dismissOnScroll){let r=new AbortController,o=(u)=>{t.scrollIntentAt=u.timeStamp},i=(u)=>{if(!e.contains(u.target))o(u)},s=(u)=>{if(!u.defaultPrevented&&dr.has(u.key))o(u)},c=(u)=>{if(t.scrollIntentAt==null||e.contains(u.target))return;v(e)},d={...{signal:r.signal,capture:!0},passive:!0},l=e.ownerDocument;l.addEventListener("pointerdown",i,d),l.addEventListener("touchmove",o,d),l.addEventListener("wheel",o,d),l.addEventListener("keydown",s,{signal:r.signal}),l.addEventListener("scroll",c,d),t.stopScrollIntent=()=>r.abort()}let n=t.point?null:t.trigger||t.source;t.stopTracking=se(n,e,({type:r})=>{if(e.hidden)return;if(r==="scroll"&&t.dismissOnScroll)return;if(Nt(e,t),!Ft(e))v(e)})}function S(e){return e.classList.contains(w.open)&&!e.hidden}function _t(e){if(!e)return;e.style.position="fixed",e.hidden=!0,Be(e,!1),e.setAttribute(Ot,""),mr(e)?.refresh(e)}function Tr(e){if(!e.hasAttribute("popover"))return;console.warn("Actual: the surface lifecycle cannot own a [popover] element — choose one lifecycle owner (remove the popover attribute, or drop the Actual enhancement).",e)}function le(e){if(!e)return()=>{};let t=Ue.get(e);if(!t)Tr(e),_t(e),t={count:0},Ue.set(e,t);t.count++;let n=!1;return()=>{if(n)return;if(n=!0,t.count--,t.count<=0)Vt(e),Ue.delete(e)}}function Y(e,t={}){if(!e?.isConnected)return!1;if(S(e))return!1;let n=new CustomEvent(A.surfaceOpen,{bubbles:!0,cancelable:!0,detail:{surface:e,options:t}});if(!e.dispatchEvent(n))return!1;for(let i of ue)if(i!==e&&i.ownerDocument===e.ownerDocument)v(i);let r=t.trigger||t.source||null;gr(e,r),_t(e);let o=yr(e);if(o.trigger=t.trigger||null,o.source=t.source||null,o.point=Number.isFinite(t.x)&&Number.isFinite(t.y)?{x:t.x,y:t.y}:null,o.mobile=t.mobile||"auto",o.breakpoint=t.breakpoint??768,o.autoClose=pr(t.autoClose),o.dismissOnScroll=t.dismissOnScroll===!0,o.scrollIntentAt=null,o.placement=t.placement||"bottom-start",o.distance=t.distance??4,o.flip=t.flip!==!1,o.shift=t.shift!==!1,o.shiftPadding=t.shiftPadding??4,o.scope=t.scope,o.restoreFocusTo=t.restoreFocusTo||t.trigger||t.source||null,o.closeId++,e.classList.add(w.open),e.hidden=!1,Nt(e,o),Be(e,!0),!Ft(e))return v(e,{restoreFocus:!1}),!1;return ue.add(e),vr(e,o),!0}function v(e,t={}){if(!e||!S(e))return;let n=O.get(e),r=n?++n.closeId:0,o=n?.isSheet===!0,i=e.ownerDocument.activeElement,s=t.restoreFocus??e.contains(i);if(e.classList.remove(w.open),!o)e.classList.remove(w.sheet);e.hidden=!0;let c=n?.backdrop||null;if(c)c.hidden=!0;if(ue.delete(e),Be(e,!1),n?.unregisterEscape?.(),n?.stopScrollIntent?.(),n?.stopTracking?.(),s&&n?.restoreFocusTo?.isConnected)n.restoreFocusTo.focus({preventScroll:!0});ae(e,c).then(()=>{if(!n||n.closeId!==r)return;if(n.isSheet=!1,e.classList.remove(w.sheet),c?.remove(),n.backdrop===c)n.backdrop=null;Rt(e)})}function Vt(e,{restore:t=!0}={}){if(!e)return;if(!t)G.delete(e);v(e);let n=O.get(e);if(n)n.backdrop?.remove(),n.unregisterEscape?.(),n.stopScrollIntent?.(),n.stopTracking?.(),O.delete(e);Rt(e)}function Sr(e){let t=e.composedPath();for(let n of ue){if(n.ownerDocument!==e.currentTarget)continue;let r=O.get(n);if(!r)continue;let o=t.indexOf(n),i=o>=0;if(i&&t.slice(0,o).some((d)=>d instanceof Element&&d.hasAttribute("data-flyout-close"))){v(n);continue}let c=r.autoClose==="true"||r.autoClose==="inside",a=r.autoClose==="true"||r.autoClose==="outside";if(i&&c||!i&&a)v(n)}}function Ar(e){let t=e.ownerDocument;if(!t||Mt.has(t))return;Mt.add(t),t.addEventListener("click",Sr)}var fe=new WeakMap,P=new WeakMap;function xr(e){let n=Number.parseInt({sm:640,md:768,lg:1024}[e]||e,10);return Number.isFinite(n)?n:void 0}function Cr(e){let t={autoClose:"true"},n=e.dataset;if(n.flyoutPlacement)t.placement=n.flyoutPlacement;if(n.flyoutDistance!=null){let r=Number.parseFloat(n.flyoutDistance);if(Number.isFinite(r))t.distance=r}if(n.flyoutMobile)t.mobile=n.flyoutMobile;if(n.flyoutBreakpoint){let r=xr(n.flyoutBreakpoint);if(r!=null)t.breakpoint=r}if(n.flyoutAutoClose)t.autoClose=n.flyoutAutoClose;return t}function Lr(e){let t=e.getAttribute("aria-controls");return t?e.ownerDocument.getElementById(t):null}function We(e){return e.matches("menu")||e.classList.contains("menu")}function R(e,t){return Y(e,{trigger:t,source:t,...Cr(e)})}function Pt(e,t){if(!S(e)&&!R(e,t))return!1;return _e(e)}function kr(e){let t=e.currentTarget,n=P.get(t);if(!n)return;e.stopPropagation();let r=qe(t,n);if(!r)return;if(S(r))v(r);else R(r,t)}function Dr(e){let t=e.currentTarget,n=P.get(t);if(!n)return;let r=qe(t,n);if(!r)return;if(!We(r)){switch(e.key){case"ArrowDown":e.preventDefault(),Pt(r,t);break;case"Enter":case" ":if(e.preventDefault(),S(r))v(r);else Pt(r,t);break;case"Tab":if(S(r)&&!e.shiftKey&&_e(r))e.preventDefault();break}return}switch(e.key){case"ArrowDown":if(e.preventDefault(),!S(r)&&!R(r,t))break;V(r);break;case"ArrowUp":if(e.preventDefault(),!S(r)&&!R(r,t))break;Pe(r);break;case"Home":if(e.preventDefault(),!S(r)&&!R(r,t))break;V(r);break;case"End":if(e.preventDefault(),!S(r)&&!R(r,t))break;Pe(r);break;case"Enter":case" ":if(e.preventDefault(),!S(r)){if(R(r,t))V(r)}else v(r);break;case"Tab":if(S(r))v(r);break}}function Mr(e){if(P.has(e))return;let t=new AbortController,n={panel:null,controller:t,releaseMenu:null};if(P.set(e,n),qe(e,n),!e.hasAttribute("aria-expanded"))e.setAttribute("aria-expanded","false");e.addEventListener("click",kr,{signal:t.signal}),e.addEventListener("keydown",Dr,{signal:t.signal})}function $t(e,t){t.releaseMenu?.(),t.releaseMenu=null;let n=t.panel;if(t.panel=null,!n)return;let r=fe.get(n);if(!r)return;if(r.triggers.delete(e),r.triggers.size===0)r.release(),fe.delete(n)}function qe(e,t){let n=Lr(e);if(t.panel===n&&n?.isConnected)return n;if($t(e,t),!n)return null;let r=fe.get(n);if(!r){let o=le(n);r={triggers:new Set,release:o},fe.set(n,r)}if(r.triggers.add(e),t.panel=n,We(n))t.releaseMenu=oe(n,{close:(o)=>v(o)});if(!e.hasAttribute("aria-haspopup")&&We(n))e.setAttribute("aria-haspopup","menu");return n}function Ir(e){let t=P.get(e);if(!t)return;if(t.controller.abort(),t.panel?.isConnected&&S(t.panel))v(t.panel,{restoreFocus:!1});$t(e,t),P.delete(e)}I("flyout",(e)=>(Mr(e),()=>Ir(e)));var Ut=450,Or=750,Bt=10,Rr='menu, [role="menu"]',Nr="[data-context-menu]",pe=new WeakMap,Xe=new WeakMap;function Fr(e){return Xe.get(e)||null}function _r(e){let t=e.getAttribute("data-context-menu"),n=t?e.ownerDocument.getElementById(t):null;return n?.matches(Rr)?n:null}function ze(e){return!!e.closest?.("a, button, input, textarea, select, option, [contenteditable], [role='button'], [role='link'], [data-context-menu-ignore]")}function Vr(e){if(!e.hasAttribute("data-context-menu-scope"))return null;let t=e.getAttribute("data-context-menu-scope").trim();if(!t||t==="self")return e;if(t==="parent")return e.parentElement;try{return e.closest(t)||e.ownerDocument.querySelector(t)}catch{return null}}function Pr(e,t){let n=e.dataset.contextMenuLongPress??t.dataset.contextMenuLongPress;if(n==null||n==="false"||n==="none")return null;if(n==="")return Ut;let r=Number.parseInt(n,10);return Number.isFinite(r)?Math.max(0,r):Ut}function Wt(e){let t={autoClose:"true"},n=e.dataset;if(n.flyoutMobile)t.mobile=n.flyoutMobile;if(n.flyoutAutoClose)t.autoClose=n.flyoutAutoClose;return t}function qt(e){if(!e.hasAttribute("tabindex"))e.tabIndex=-1;e.focus({preventScroll:!0})}function $r(e,t){if(t==="first-item"){if(St(e))V(e)}else qt(e)}function zt(e,t,n={}){let r={menu:t,context:e,origin:n.origin||e,trigger:n.trigger},o=new CustomEvent(A.contextMenu,{bubbles:!0,cancelable:!0,detail:r});if(!e.dispatchEvent(o))return null;return Xe.set(t,r),r}function He(e,t,n={}){if(!zt(e,t,n))return;if(S(t))v(t);if(Y(t,{source:e,x:n.x,y:n.y,placement:n.placement||"bottom-start",distance:n.distance??2,dismissOnScroll:!0,mobile:n.mobile||"auto",scope:n.scope||Vr(e),restoreFocusTo:n.restoreFocusTo,...Wt(t)}))$r(t,n.focus)}function Ur(e,t,n=e,r){let o=n.getBoundingClientRect();He(e,t,{x:o.left,y:o.bottom,placement:"bottom-start",distance:4,focus:"first-item",origin:n,trigger:"keyboard",restoreFocusTo:r})}function de(e){if(e.timer)clearTimeout(e.timer),e.timer=null;e.pointerId=null}function Br(e){if(pe.has(e))return;let t=_r(e);if(!t)return;let n=le(t),r=new AbortController,o=oe(t,{close:(s)=>v(s)}),i={controller:r,releaseMenu:o,menu:t,release:n,timer:null,pointerId:null,startX:0,startY:0,suppressClickUntil:0};e.addEventListener("contextmenu",(s)=>{if(ze(s.target))return;s.preventDefault(),s.stopPropagation(),He(e,t,{x:s.clientX,y:s.clientY,origin:s.target,trigger:"pointer"})},{signal:r.signal}),e.addEventListener("keydown",(s)=>{if(s.key!=="ContextMenu"&&!(s.shiftKey&&s.key==="F10"))return;if(ze(s.target))return;s.preventDefault(),Ur(e,t,s.target,e)},{signal:r.signal}),e.addEventListener("pointerdown",(s)=>{let c=Pr(e,t);if(s.pointerType!=="touch"||c==null||ze(s.target))return;de(i),i.pointerId=s.pointerId,i.startX=s.clientX,i.startY=s.clientY,i.timer=setTimeout(()=>{i.timer=null,i.suppressClickUntil=Date.now()+Or,He(e,t,{x:i.startX,y:i.startY,origin:s.target,trigger:"touch"})},c)},{signal:r.signal,passive:!0}),e.addEventListener("pointermove",(s)=>{if(s.pointerId!==i.pointerId||!i.timer)return;if(Math.abs(s.clientX-i.startX)>Bt||Math.abs(s.clientY-i.startY)>Bt)de(i)},{signal:r.signal,passive:!0});for(let s of["pointerup","pointercancel","pointerleave"])e.addEventListener(s,(c)=>{if(c.pointerId===i.pointerId)de(i)},{signal:r.signal,passive:!0});e.addEventListener("click",(s)=>{if(Date.now()<=i.suppressClickUntil)s.preventDefault(),s.stopPropagation(),i.suppressClickUntil=0},{signal:r.signal,capture:!0}),e.addEventListener("click",(s)=>{let c=s.target.closest("[data-context-menu-trigger]");if(!c||c.getAttribute("aria-controls")!==e.getAttribute("data-context-menu"))return;if(s.preventDefault(),s.stopPropagation(),S(t)){v(t);return}if(!zt(e,t,{origin:c,trigger:"button"}))return;let a=c.getBoundingClientRect();if(Y(t,{source:e,x:a.left,y:a.bottom,placement:"bottom-start",distance:4,dismissOnScroll:!0,restoreFocusTo:c,...Wt(t)}))qt(t)},{signal:r.signal}),pe.set(e,i)}function Wr(e){let t=pe.get(e);if(!t)return;if(de(t),t.controller.abort(),t.releaseMenu?.(),Fr(t.menu)?.context===e)Xe.delete(t.menu),v(t.menu,{restoreFocus:!1});t.release(),pe.delete(e)}T({[Nr]:(e)=>(Br(e),()=>Wr(e))});var je=new WeakMap;function Ht(e,t){let n=Array.isArray(e)?e:[e];if(!n.length||n.some((r)=>typeof r!=="string"||!r))throw TypeError(`${t} requires one or more command names.`);return[...new Set(n)]}function Xt(e){return e.startsWith("--")?e:e.toLowerCase()}function N(e){let t=e.getAttribute("commandfor");if(!t)return null;return e.getRootNode().getElementById?.(t)??null}function jt(e){return`button[commandfor]:is(${Ht(e,"commandSelector()").map((n)=>`[command="${n.replaceAll("\\","\\\\").replaceAll('"',"\\\"")}"]`).join(", ")})`}function qr(e,t){let n=t.defaultView?.Element;if(!n)return null;for(let r of e.composedPath?.()??[e.target]){if(r instanceof n&&r.matches("button[commandfor][command]"))return r;if(r===t)break}return null}function zr(e){let t=new Map;function n(r){if(r.defaultPrevented)return;let o=qr(r,e);if(!o||o.disabled)return;let i=Xt(o.getAttribute("command")),s=t.get(i);if(!s)return;let c=s.resolve(o);if(!c)return;s.prepare?.(o,c,i),s.handle(r,o,c,i)}return e.addEventListener("click",n),{commands:t,route:n}}function k(e,{resolve:t=N,prepare:n,handle:r}={}){let o=[...new Set(Ht(e,"registerCommands()").map((l)=>Xt(l)))];if(typeof t!=="function"||n!==void 0&&typeof n!=="function"||typeof r!=="function")throw TypeError("registerCommands() requires function callbacks.");if(typeof document>"u")return{disconnect(){}};let i=document,s=je.get(i);if(!s)s=zr(i),je.set(i,s);let c=o.find((l)=>s.commands.has(l));if(c)throw Error(`Command "${c}" is already registered in this document.`);let a={resolve:t,prepare:n,handle:r};for(let l of o)s.commands.set(l,a);let d=!0;return{disconnect(){if(!d)return;d=!1;for(let l of o)if(s.commands.get(l)===a)s.commands.delete(l);if(!s.commands.size)i.removeEventListener("click",s.route),je.delete(i)}}}var L=new WeakMap,Ke=new Set,Hr=["show-modal","show","request-close","close"],Xr="dialog",jr="[data-title], h1, h2, h3, h4, h5, h6",Kt=0;function U(e){return e?.nodeType===1&&e.localName==="dialog"}function Jt(e,t){return e.hasAttribute(t)&&e.getAttribute(t)!=="false"}function Kr(e,t){if(!e.id)Kt++,e.id=`${t}-${Kt}`;return e.id}function Zt(e,t=Ge(e)){if(t)e.setAttribute("aria-modal","true");else e.removeAttribute("aria-modal");if(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))return;let n=e.getAttribute("data-title")?.trim();if(n){e.setAttribute("aria-label",n);return}let r=e.querySelector(jr);if(r)e.setAttribute("aria-labelledby",Kr(r,"dialog-title"))}function Ge(e){return e.getAttribute("data-dialog-modal")!=="false"}function Gr(e,t=null){return t==null?Ge(e):t}function Gt(e){if(!e.open)return!1;try{return e.matches(":modal")}catch{return!1}}function ge(e=document){let t=!1;for(let o of Ke){let i=L.get(o);if(o.ownerDocument===e&&o.isConnected&&o.open&&i?.modalOpen===!0){t=!0;break}}let n=e.documentElement,r=n.classList.contains(w.modalOpen);if(t&&!r){let o=e.defaultView?.innerWidth;n.classList.toggle(w.hadScrollbar,Number.isFinite(o)&&o>n.clientWidth)}else if(!t)n.classList.remove(w.hadScrollbar);n.classList.toggle(w.modalOpen,t)}function Qt(e){return Jt(e,"data-dialog-dismissible")}function Yr(e){return Jt(e,"data-dialog-view-transition")}var me="actual-dialog";function Jr(e=document){return typeof e.startViewTransition==="function"}function Zr(e=document){return!e.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches}function he(e,t){if(e)e.style.viewTransitionName=t}function J(...e){for(let t of e)if(t)t.style.viewTransitionName=""}function Ye(e,t){let n=e.ownerDocument;return Yr(e)&&Jr(n)&&Zr(n)&&t?.isConnected===!0}function Qr(e,t,n=null){if(!Ye(e,t)){Yt(e,t,n);return}he(t,me),e.ownerDocument.startViewTransition(()=>{J(t),he(e,me),Yt(e,t,n)}).finished.finally(()=>J(e,t)).catch(()=>{})}function eo(e,t){let n=e.getBoundingClientRect();return t.clientX<n.left||t.clientX>n.right||t.clientY<n.top||t.clientY>n.bottom}function to(e){let t=B(e),n=e.ownerDocument.defaultView;if(t.staticTimer)n?.clearTimeout(t.staticTimer);e.classList.remove(w.static),e.offsetWidth,e.classList.add(w.static),t.staticTimer=n?.setTimeout(()=>{e.classList.remove(w.static),t.staticTimer=null},250)}function no(e,t=""){let n=L.get(e);if(n)n.closing=!1,n.returnValue="";if(e.open)e.close(t)}function be(e,t=""){if(!U(e)||!e.open)return;let n=B(e);if(n.closing)return;let r=n.restoreFocusTo;if(Ye(e,r)){n.closing=!0,he(e,me),e.ownerDocument.startViewTransition(()=>{J(e),he(r,me),e.close(t)}).finished.finally(()=>{n.closing=!1,J(r)}).catch(()=>{});return}no(e,t)}function en(e,t=""){if(!U(e)||!e.open)return;if(typeof e.requestClose==="function"){B(e).returnValue=t,e.requestClose(t);return}be(e,t)}function Yt(e,t=null,n=null){if(!U(e)||e.open||!e.isConnected)return;let r=B(e),o=Gr(e,n);Zt(e,o),r.closing=!1,r.restoreFocusTo=t||e.ownerDocument.activeElement;let i=e.ownerDocument.defaultView,s=i?.scrollY??0;if(o)e.showModal(),r.modalOpen=!0;else e.show(),r.modalOpen=!1;if(s>0)i?.scrollTo(0,s);ge(e.ownerDocument)}function ro(e){let t=e.currentTarget;if(e.target!==t||!eo(t,e))return;if(!Qt(t)){if(("closedBy"in t?t.closedBy:"")==="any")return;e.preventDefault(),to(t);return}e.preventDefault(),en(t)}function oo(e){let{currentTarget:t,target:n}=e;if(!(n instanceof HTMLFormElement))return;if(n.method.toLowerCase()!=="dialog")return;if(!Ye(t,L.get(t)?.restoreFocusTo))return;e.preventDefault(),be(t,e.submitter?.value||"")}function io(e){let t=e.currentTarget,n=L.get(t),r=new CustomEvent(A.dialogCancel,{bubbles:!0,cancelable:!0,detail:{dialog:t,sourceEvent:e}});if(!t.dispatchEvent(r)){if(e.preventDefault(),n)n.returnValue="";return}e.preventDefault(),be(t,n?.returnValue||"")}function so(e){let t=e.currentTarget,n=L.get(t);if(J(t),!n)return;if(n.staticTimer)t.ownerDocument.defaultView?.clearTimeout(n.staticTimer),n.staticTimer=null;t.classList.remove(w.static),n.closing=!1,n.returnValue="",n.modalOpen=!1,ge(t.ownerDocument);let r=n.restoreFocusTo;if(n.restoreFocusTo=null,r?.isConnected&&t.ownerDocument.activeElement!==r)r.focus({preventScroll:!0})}function B(e){if(L.has(e))return L.get(e);let t=new AbortController,n={controller:t,closing:!1,modalOpen:Gt(e),restoreFocusTo:null,returnValue:"",staticTimer:null};if(Zt(e,e.open?Gt(e):Ge(e)),e.addEventListener("click",ro,{signal:t.signal}),e.addEventListener("submit",oo,{signal:t.signal}),e.addEventListener("cancel",io,{signal:t.signal}),e.addEventListener("close",so,{signal:t.signal}),Qt(e)&&"closedBy"in e&&e.closedBy==="any")e.closedBy="closerequest";return L.set(e,n),Ke.add(e),ge(e.ownerDocument),n}function co(e){B(e)}function ao(e){let t=L.get(e);if(!t)return;if(t.staticTimer)e.ownerDocument.defaultView?.clearTimeout(t.staticTimer);t.controller.abort(),e.classList.remove(w.static),t.modalOpen=!1,L.delete(e),Ke.delete(e),ge(e.ownerDocument)}k(Hr,{resolve:(e)=>{let t=N(e);return U(t)?t:null},prepare:(e,t,n)=>{if(U(t))B(t);if(e.setAttribute("aria-controls",t.id),!e.hasAttribute("aria-haspopup")&&(n==="show-modal"||n==="show"))e.setAttribute("aria-haspopup","dialog")},handle:(e,t,n,r)=>{if(e.preventDefault(),!U(n))return;if(r==="show-modal"||r==="show"){Qr(n,t,r==="show-modal");return}if(r==="request-close"){en(n,t.value||"");return}if(r==="close")be(n,t.value||"")}});T({[Xr]:(e)=>(co(e),()=>ao(e))});k("--dismiss",{handle(e,t,n){e.preventDefault(),n.hidden=!0,n.dispatchEvent(new CustomEvent(A.dismiss,{bubbles:!0,detail:{trigger:t}}))}});var we='[data-enhance~="tabs"]';function tn(e){return[...e.querySelectorAll('[role="tab"]')].filter((t)=>t.closest(we)===e)}function uo(e){let t=new Map;for(let n of e){let r=Ee(n);if(r)t.set(n,r)}return t}function Ee(e){let t=e.getAttribute("aria-controls");return t?e.ownerDocument.getElementById(t):null}function Je(e){return e.disabled||e.getAttribute("aria-disabled")==="true"}function nn(e){return tn(e).filter((t)=>!Je(t)&&Ee(t))}function rn(e){if(!e.hasAttribute("tabindex"))e.tabIndex=-1}function ye(e){if(!e||Je(e)||!Ee(e))return;let t=e.closest(we);if(!t)return;let n=tn(t),r=uo(n);for(let i of n)i.setAttribute("aria-selected","false"),i.tabIndex=-1;for(let[,i]of r)i.hidden=!0;e.setAttribute("aria-selected","true"),e.tabIndex=0;let o=r.get(e);if(o)rn(o),o.hidden=!1}function lo(e){if(!e)return;ye(e),e.focus()}function fo(e){let t=nn(e);if(!t.length)return;let n=t.find((r)=>r.getAttribute("aria-selected")==="true")||t[0];ye(n)}function po(e){let t=e.currentTarget,n=e.target.closest('[role="tab"]');if(!n||n.closest(we)!==t)return;let r=nn(t);if(!r.length||!r.includes(n))return;let o=t.getAttribute("aria-orientation")==="vertical";if(e.key==="ArrowDown"&&!o){let c=Ee(n);if(c)e.preventDefault(),rn(c),c.focus();return}if(e.key==="Enter"||e.key===" "){e.preventDefault(),ye(n);return}let i=t.ownerDocument.defaultView?.getComputedStyle(t).direction||"ltr",s=_(r,n,e.key,{orientation:o?"vertical":"horizontal",wrap:!0,direction:i});if(!s)return;e.preventDefault(),lo(s)}function mo(e){let t=e.currentTarget,n=e.target.closest('[role="tab"]');if(!n||n.closest(we)!==t)return;if(Je(n)){e.preventDefault();return}if(e.preventDefault(),n.getAttribute("aria-selected")==="true")return;ye(n),n.focus()}I("tabs",(e)=>{let t=new AbortController;return fo(e),e.addEventListener("click",mo,{signal:t.signal}),e.addEventListener("keydown",po,{signal:t.signal}),()=>t.abort()});var ho=150,go=100,on=0,ve=new WeakMap,D=new WeakMap;function bo(e,t){let n=t.closest("dialog")||t.ownerDocument.body,r=e.parentNode;if(!n||!r||r===n)return null;let o={parent:r,next:e.nextSibling};return n.append(e),o}function wo(e,t){let n=t.mount;if(!n)return;if(n.parent.isConnected){let r=n.next?.parentNode===n.parent?n.next:null;n.parent.insertBefore(e,r)}else e.remove()}function Eo(e){return e?.getAttribute("data-tooltip-placement")||"top"}function cn(e,t){let n=e?.getAttribute(t);return n!==null&&n.toLowerCase()!=="false"}function Qe(e){return cn(e,"data-tooltip-click")}function F(e){return cn(e,"data-tooltip-visible")}function et(e){return(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean)}function yo(e,t){let n=et(e);if(n.includes(t))return!1;return e.setAttribute("aria-describedby",[...n,t].join(" ")),!0}function vo(e,t){let n=et(e).filter((r)=>r!==t);if(n.length)e.setAttribute("aria-describedby",n.join(" "));else e.removeAttribute("aria-describedby")}function To(e){let t=e.ownerDocument;for(let n of et(e)){let r=t.getElementById(n);if(r?.getAttribute("role")==="tooltip")return r}return null}function So(e){let t;do on++,t=`tooltip-${on}`;while(e.getElementById(t));return t}function Ao(e,t){return K(e,t,{placement:Eo(e),distance:6,flip:!0,shift:!0})}function an(e,t){let n=t.activeRef;if(!n)return;let r=F(n);if(r)e.hidden=!1;if(e.hidden||Ao(n,e)){ln(e,t);return}if(r)e.hidden=!0;else W(e,!0)}function xo(e,t){if(t.stopTracking)return;t.stopTracking=se(t.activeRef,e,()=>an(e,t))}function un(e){if(e?.stopTracking?.(),e)e.stopTracking=null}function ln(e,t){let n=t.activeRef,r=!e.hidden&&!F(n);if(r&&t.unregisterEscape&&t.escapeRef===n)return;if(t.unregisterEscape?.(),t.unregisterEscape=null,t.escapeRef=null,!r)return;t.unregisterEscape=ce(e,()=>W(e,!0)),t.escapeRef=n}function W(e,t=!1){let n=D.get(e);if(!t&&F(n?.activeRef))return;if(n?.timer)clearTimeout(n.timer),n.timer=null;if(n?.hideTimer)clearTimeout(n.hideTimer),n.hideTimer=null;if(e.hidden=!0,n?.unregisterEscape?.(),n)n.unregisterEscape=null,n.escapeRef=null;un(n)}function fn(e){let t=D.get(e);if(!t?.hideTimer)return;clearTimeout(t.hideTimer),t.hideTimer=null}function Ze(e){let t=D.get(e);if(!t)return;if(Qe(t.activeRef)||F(t.activeRef))return;if(t.hovered||t.focused||t.overTip)return;if(t.hideTimer)clearTimeout(t.hideTimer);t.hideTimer=setTimeout(()=>{if(t.hideTimer=null,!t.hovered&&!t.focused&&!t.overTip)W(e)},go)}function Co(e,t={}){let n=D.get(e);if(n)return n;let r=new AbortController;return n={refs:new Set,activeRef:null,controller:r,stopTracking:null,unregisterEscape:null,escapeRef:null,generated:t.generated===!0,mount:t.mount||null,timer:null,hideTimer:null,hovered:!1,focused:!1,overTip:!1},e.addEventListener("mouseenter",()=>{n.overTip=!0,fn(e)},{signal:r.signal}),e.addEventListener("mouseleave",()=>{n.overTip=!1,Ze(e)},{signal:r.signal}),D.set(e,n),n}function tt(e){let t=ve.get(e);if(t)return t.tip;let n,r=!1,o=null,i=!1,s=e.getAttribute("data-tooltip"),c=e.ownerDocument;if(s)n=c.createElement("div"),n.className=w.tooltip,n.role="tooltip",n.id=So(c),n.textContent=s,n.hidden=!0,n.style.position="fixed",r=!0,(e.closest("dialog")||c.body).appendChild(n),i=yo(e,n.id);if(!n){if(n=To(e),!n)return null;if(!D.has(n))n.hidden=!0,n.style.position="fixed",o=bo(n,e)}let a=Co(n,{generated:r,mount:o});a.refs.add(e);let d=new AbortController;e.addEventListener("mouseleave",()=>{a.hovered=!1,Ze(n)},{signal:d.signal}),e.addEventListener("blur",()=>{a.focused=!1,Ze(n)},{signal:d.signal});let l=()=>{if(d.abort(),ve.delete(e),i)vo(e,n.id);if(a.refs.delete(e),a.activeRef===e)W(n,!0),a.activeRef=null;if(a.refs.size>0)return;if(W(n,!0),a.controller.abort(),un(a),D.delete(n),a.generated)n.remove();else wo(n,a)};return ve.set(e,{tip:n,cleanup:l}),n}function Lo(e){ve.get(e)?.cleanup?.()}function nt(e,t,n=!1){let r=D.get(e);if(!r)return;if(r.activeRef=t,ln(e,r),fn(e),r.timer)clearTimeout(r.timer);let o=()=>{r.timer=null,e.hidden=!1,xo(e,r),an(e,r)};if(n)o();else r.timer=setTimeout(o,ho)}var rt="[data-tooltip]";function sn(e){let t=e.target.closest?.(rt);if(!t)return;if(Qe(t)||F(t))return;if(e.type==="mouseover"&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget))return;let n=tt(t);if(!n)return;let r=D.get(n);if(e.type==="focusin")r.focused=!0;else r.hovered=!0;nt(n,t)}function ko(e){let t=e.target.closest?.(rt);if(!t||!Qe(t)||F(t))return;let n=tt(t);if(!n)return;if(e.preventDefault(),n.hidden)nt(n,t,!0);else W(n,!0)}if(typeof document<"u")document.addEventListener("mouseover",sn),document.addEventListener("focusin",sn),document.addEventListener("click",ko),T({[rt]:(e)=>{if(F(e)){let t=tt(e);if(t)nt(t,e,!0)}return()=>Lo(e)}});var dn=0.2,pn=new WeakMap;function mn(e){let t=e.getAttribute("data-scrollspy-root");if(!t)return null;try{return e.ownerDocument.querySelector(t)}catch{return null}}function Do(e){let t=[...e.querySelectorAll("a[href^='#']")],n=[];for(let r of t){let o=r.getAttribute("href").slice(1),i=o?e.ownerDocument.getElementById(o):null;if(i)n.push({link:r,section:i})}return n}function Mo(e,t){if(t)return{top:t.getBoundingClientRect().top,height:t.clientHeight,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight};let n=e.ownerDocument,r=n.scrollingElement||n.documentElement;return{top:0,height:r.clientHeight,scrollTop:r.scrollTop,scrollHeight:r.scrollHeight}}function Io(e,t){let n=(e.getAttribute("data-scrollspy-offset")??"").trim();if(!n)return t*dn;let r=Number.parseFloat(n);if(!Number.isFinite(r))return t*dn;return Math.max(0,n.endsWith("%")?t*r/100:r)}function Oo(e){let t=new AbortController,n=[],r=0,o;function i(u){if(u===o)return;o=u;for(let f of n)if(f.section===u)f.link.setAttribute("aria-current","location");else f.link.removeAttribute("aria-current")}function s(){if(r=0,!n.length)return;let u=mn(e),{top:f,height:m,scrollTop:p,scrollHeight:h}=Mo(e,u);if(h>m&&p+m>=h-1){i(n.at(-1).section);return}let g=f+Io(e,m),y=null;for(let{section:E}of n)if(E.getBoundingClientRect().top<=g)y=E;i(y)}function c(u=s){if(r)cancelAnimationFrame(r);r=requestAnimationFrame(u)}function a(){n=Do(e),o=void 0,s()}(mn(e)??e.ownerDocument.defaultView)?.addEventListener("scroll",()=>c(),{passive:!0,signal:t.signal}),e.ownerDocument.defaultView?.addEventListener("resize",()=>c(),{passive:!0,signal:t.signal});let l=new MutationObserver(()=>c(a));return l.observe(e,{childList:!0,subtree:!0}),pn.set(e,{rebuild:a}),a(),()=>{if(t.abort(),r)cancelAnimationFrame(r);l.disconnect(),pn.delete(e)}}I("scrollspy",Oo);function Te(e){return typeof e.selectionStart==="number"?e.selectionStart:e.value.length}function Se(e,t){if(e.ownerDocument.activeElement!==e)return;if(typeof e.setSelectionRange!=="function")return;try{e.setSelectionRange(t,t)}catch{}}function Ae(e){e.dispatchEvent(new Event("input",{bubbles:!0}))}function xe(e,t,n){let r=!1;function o(i){if(r||i.isComposing)return;t(i)}e.addEventListener("compositionstart",()=>{r=!0},{signal:n}),e.addEventListener("compositionend",(i)=>{r=!1,o(i)},{signal:n}),e.addEventListener("input",o,{signal:n})}var Ro="input[data-filter]",gn=new Map([["numeric",No],["decimal",Fo],["lower",_o],["upper",Vo],["letters",Po],["slug",Uo]]);function No(e){return e.replace(/\D/gu,"")}function Fo(e){let t=e.replace(/,/g,"."),n="",r=!1;for(let o of t)if(/^\d$/u.test(o))n+=o;else if(o==="."&&!r)n+=".",r=!0;return n}function _o(e){return e.toLocaleLowerCase()}function Vo(e){return e.toLocaleUpperCase()}function Po(e){return e.replace(/[^\p{L}]/gu,"")}function $o(e){return e.normalize("NFKD").replace(/\p{M}/gu,"")}function Uo(e,t){let n=t?.inputType==="insertText"&&/[^\p{L}\p{N}]$/u.test(e),r=$o(e).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/-{2,}/g,"-").replace(/^-+/,"");return n?r:r.replace(/-+$/,"")}function hn(e,t,n){return t.reduce((r,o)=>gn.get(o)(r,n),e)}function Bo(e){return e.split("|").map((t)=>t.trim().toLowerCase()).filter((t)=>gn.has(t))}function Wo(e){let t=e.getAttribute("data-filter")?.trim().toLowerCase();return t?Bo(t):[]}function qo(e){let t=Wo(e);if(!t.length)return;let n=new AbortController,r=!1;return xe(e,(o)=>{if(r)return;let i=Te(e),s=e.value,c=hn(s,t,o);if(c===s)return;e.value=c,Se(e,hn(s.slice(0,i),t,o).length);try{r=!0,Ae(e)}finally{r=!1}},n.signal),()=>n.abort()}T({[Ro]:qo});var zo="input[data-mask]",ot={9:(e)=>/^\d$/u.test(e),a:(e)=>/^\p{L}$/u.test(e),"*":()=>!0};function Q(e){return Object.hasOwn(ot,e)}function bn(e,t){let n=[...t],r=[],o=[],i=0,s=0;e:for(let c of e){s+=c.length;while(i<n.length){let a=n[i];if(!Q(a)){if(i++,c===a)continue e;continue}if(ot[a](c))r.push(c),o.push(s),i++;continue e}break}return{positions:o,raw:r}}function Z(e,t){return bn(e,t).raw}function Ho(e,t){let n="";for(let r=t;r<e.length&&!Q(e[r]);r++)n+=e[r];return n}function wn(e,t,n=""){let r=n.startsWith("insert"),o=[...t],i=0,s="";for(let c=0;c<o.length;c++){let a=o[c];if(!Q(a)){if(i<e.length)s+=a;continue}let d=!1;while(i<e.length){let l=e[i];if(i++,!ot[a](l))continue;s+=l,d=!0;break}if(!d)break;if(r&&i>=e.length){s+=Ho(o,c+1);break}}return s}function Xo(e,t,n=""){if(!t)return e;return wn(Z(e,t),t,n)}function jo(e,t,n){if(n<=0)return 0;let r=bn(e,t).positions[n-1];if(r==null)return e.length;let o=[...t],i=0,s=0;for(;s<o.length;s++){if(!Q(o[s]))continue;if(i++,i===n)break}let c=r;for(s++;s<o.length;s++){let a=o[s];if(Q(a)||!e.startsWith(a,c))break;c+=a.length}return c}function Ko(e){let t=e.dataset.mask||"";if(!t)return;let n=new AbortController,r=!1,o=e.value;return xe(e,(i)=>{if(r)return;let s=i.inputType||"",c=Te(e),a=Z(e.value.slice(0,c),t).length,d=e.value,l=Xo(d,t,s),u=Z(d,t).length===Z(o,t).length;if(s.startsWith("delete")&&u&&l.length>d.length){let f=Z(d,t),m=s==="deleteContentForward"?a:a-1;if(m>=0&&m<f.length)f.splice(m,1),a=Math.max(0,m),l=wn(f,t,s)}if(o=l,l===d)return;e.value=l,Se(e,jo(l,t,a));try{r=!0,Ae(e)}finally{r=!1}},n.signal),()=>n.abort()}T({[zo]:Ko});var En=["--password-toggle"],Go=jt(En),q=new Set,it=new WeakSet;function Yo(e){let t=N(e);return t?.localName==="input"&&(t.type==="password"||q.has(t))?t:null}function Jo(e){if(!e.id)return[];return e.getRootNode().querySelectorAll(`${Go}[commandfor="${CSS.escape(e.id)}"]`)}function st(e,t){if(e.type=t?"text":"password",t)q.add(e);else q.delete(e);for(let n of Jo(e))n.setAttribute("aria-pressed",String(t))}function yn(e){if(e.defaultPrevented)return;for(let t of e.target.elements??[])if(q.has(t))st(t,!1)}function Zo(e){let t=e.getRootNode();if(it.has(t))return;it.add(t),t.addEventListener("submit",yn)}k(En,{resolve:Yo,prepare:(e,t)=>{if(e.setAttribute("aria-controls",t.id),!e.hasAttribute("aria-pressed"))e.setAttribute("aria-pressed","false")},handle:(e,t,n)=>{e.preventDefault();let r=n.type==="password";if(r)Zo(n);st(n,r)}});if(typeof document<"u")it.add(document),document.addEventListener("submit",yn),document.defaultView?.addEventListener("pagehide",()=>{for(let e of q){if(!e.isConnected){q.delete(e);continue}st(e,!1)}});var ut="novalidate",vn=w.wasValidated,Qo=ee("validation"),ei=w.field,lt=w.danger,ft="validationManagedNovalidate",ct=new WeakMap,Tn=new WeakMap;function at(e,t,n){if(t<1||t>12||n<1)return!1;let r=new Date(Date.UTC(e,t,0)).getUTCDate();return n<=r}function ti(e){let t=e.trim(),n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(n)return at(Number(n[1]),Number(n[2]),Number(n[3]));let r=/^(\d{1,2})([/.-])(\d{1,2})\2(\d{4})$/.exec(t);if(!r)return!1;let o=Number(r[1]),i=Number(r[3]),s=Number(r[4]);return at(s,i,o)||at(s,o,i)}function ni(e,t){let n=Tn.get(e);if(!n)n=new Set,Tn.set(e,n);if(n.has(t))return;n.add(t),console.warn(`Unknown validation rule "${t}" on ${e.name||e.id||"field"}`)}var ri={same(e,t,n){if(!n)return!1;try{let r=t.form?.querySelector(n);if(!r)return!1;return e===r.value}catch{return!1}},number(e){return/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e)},digits(e){return/^\d+$/.test(e)},alnum(e){return/^[a-z0-9]+$/i.test(e)},date(e){return ti(e)}};function Ce(e){return!e||e.disabled||e.willValidate===!1||typeof e.checkValidity!=="function"||typeof e.setCustomValidity!=="function"}function An(e){return e.closest?.(`.${ei}`)||null}var dt=new WeakSet;function xn(e){if(!e.classList.contains(lt))dt.add(e);e.classList.add(lt)}function Cn(e){let t=An(e);if(!t)return;if(t.querySelector('[aria-invalid="true"], [data-validation-errors]'))xn(t);else if(dt.has(t))t.classList.remove(lt),dt.delete(t)}function Ln(e){if(e.dataset.validationErrors==="server")return!1;e.setCustomValidity(""),delete e.dataset.validationErrors;let t=e.checkValidity(),n=e.dataset.validationRules;if(n){let r=e.value.trim().length>0,o=[];for(let i of n.split(",")){if(!r)continue;let s=i.trim();if(!s)continue;let[c,...a]=s.split(/\s+/),d=ri[c];if(!d){ni(e,c),o.push(c);continue}let l=!1;try{l=d(e.value,e,...a)}catch(u){console.warn(`Validation rule "${c}" failed on ${e.name||e.id||"field"}`,u)}if(!l)o.push(c)}if(o.length>0)t=!1,e.setCustomValidity(o.join(", ")),e.dataset.validationErrors=o.join(",")}return t}function kn(e){e.setAttribute("aria-invalid","true");let t=An(e);if(t)xn(t)}function pt(e){e.removeAttribute("aria-invalid"),delete e.dataset.validationErrors,Cn(e)}function oi(e){for(let t of e.elements){if(Ce(t))continue;if(t.getAttribute("aria-invalid")==="true"&&!t.dataset.validationErrors)t.dataset.validationErrors="server";Cn(t)}}function ii(e){if(e.dataset[ft]===void 0)return;e.removeAttribute(ut),delete e.dataset[ft]}function Sn(e,t){if(Ce(e))return;if(t==="input"&&e.dataset.validationErrors==="server")delete e.dataset.validationErrors,e.setCustomValidity("");let n=e.dataset.validationTrigger||"",r=e.getAttribute("aria-invalid")==="true"||e.dataset.validationErrors;if(!(t==="blur"||n.includes(t)&&e.value.length>0)&&!r)return;if(Ln(e))pt(e);else kn(e)}function si(e){let t=ct.get(e);if(t)return t;let n=new AbortController;if(!e.hasAttribute(ut))e.setAttribute(ut,""),e.dataset[ft]="";oi(e),e.addEventListener("focusout",(o)=>{let i=o.target;if(i instanceof Element&&i.form===e)Sn(i,"blur")},{signal:n.signal}),e.addEventListener("input",(o)=>{let i=o.target;if(i instanceof Element&&i.form===e)Sn(i,"input")},{signal:n.signal}),e.addEventListener("reset",()=>{e.classList.remove(vn);for(let o of e.elements){if(Ce(o))continue;o.setCustomValidity(""),pt(o)}},{signal:n.signal}),e.addEventListener("submit",(o)=>{if(o.submitter?.formNoValidate)return;let i=null;for(let s of e.elements){if(Ce(s))continue;if(Ln(s)){pt(s);continue}if(kn(s),!i)i=s}if(e.classList.add(vn),!i)return;o.preventDefault(),o.stopPropagation();try{i.focus()}catch{}e.dispatchEvent(new CustomEvent(A.invalid,{bubbles:!0,detail:{form:e,firstInvalid:i,message:e.dataset.validationMessage??""}}))},{signal:n.signal});let r=()=>{n.abort(),ii(e),ct.delete(e)};return ct.set(e,r),r}if(typeof document<"u")T({[`form${Qo}`]:(e)=>si(e)});var ci='[data-status][role="status"]',mt="statusClasses",On="--status-viewport-offset",ht,gt=0,z=null,Le=new WeakMap;function bt(){if(typeof document>"u")return null;return document.querySelector(ci)}function Rn(e){let t=Le.get(e);if(!t)return;let n=t.parent?.isConnected?t.parent:e.ownerDocument?.body;if(n){let r=t.nextSibling?.parentNode===n?t.nextSibling:null;n.insertBefore(e,r)}Le.delete(e)}function ai(e,t){let n=t?.closest?.("dialog[open]");if(!n||n.ownerDocument!==e.ownerDocument){Rn(e);return}if(n.contains(e))return;if(!Le.has(e))Le.set(e,{parent:e.parentNode,nextSibling:e.nextSibling});n.append(e)}function ui(e){if(z?.target===e)return;ke();let t=e.ownerDocument?.defaultView,n=t?.visualViewport;if(!n)return;let r=new AbortController,o=()=>{if(!e.isConnected){ke();return}let i=Math.max(0,t.innerHeight-n.height-n.offsetTop);e.style.setProperty(On,`${i}px`)};n.addEventListener("resize",o,{signal:r.signal}),n.addEventListener("scroll",o,{signal:r.signal}),o(),z={target:e,stop:()=>r.abort()}}function ke(){if(!z)return;z.stop(),z.target.style.removeProperty(On),z=null}function li(e){return typeof e==="string"?e.trim().split(/\s+/).filter(Boolean):[]}function Nn(e){let t=e.dataset[mt];if(t)e.classList.remove(...t.split(" "));delete e.dataset[mt]}function H(e,t={}){let n=bt();if(!n||e==null)return;if(e===""){H.clear();return}clearTimeout(ht),gt++,ai(n,t.source),Nn(n);let r=li(t.intent);if(r.length)n.classList.add(...r),n.dataset[mt]=r.join(" ");if(n.textContent=e,n.classList.add(w.open),ui(n),t.duration!==!1)ht=setTimeout(()=>H.clear(),t.duration??3000)}H.clear=function(){clearTimeout(ht);let t=bt();if(!t){ke();return}let n=++gt;t.classList.remove(w.open),ae(t).then(()=>{if(n!==gt)return;t.textContent="",Nn(t),ke(),Rn(t)})};var fi=["--status"],di=["--status-clear"];function Dn(e,t){e.dispatchEvent(new CustomEvent(A.status,{bubbles:!0,detail:t}))}function pi(e){let t=e.getAttribute("data-status-duration");if(t===null)return;if(t==="false")return!1;let n=Number(t);return Number.isFinite(n)?n:void 0}function Mn(e){let t=N(e);return t&&t===bt()?t:null}function In(e,t){e.setAttribute("aria-controls",t.id)}if(typeof document<"u")document.addEventListener(A.invalid,(e)=>{let t=e.detail?.message;if(t)H(t,{intent:"danger",source:e.target})}),document.addEventListener(A.status,(e)=>{let{message:t,intent:n,duration:r}=e.detail??{};if(t!=null)H(t,{intent:n,duration:r,source:e.target});else H.clear()}),k(fi,{resolve:Mn,prepare:In,handle:(e,t)=>{e.preventDefault(),Dn(t,{message:t.getAttribute("data-status-message"),intent:t.getAttribute("data-status-intent")??void 0,duration:pi(t)})}}),k(di,{resolve:Mn,prepare:In,handle:(e,t)=>{e.preventDefault(),Dn(t,{})}});function mi(e){return e.replace(/([a-zA-Z_$][\w$-]*)\s*:|'((?:\\'|[^'])*)'/g,(t,n,r)=>{if(n)return`"${n}":`;return`"${r.replace(/\\'/g,"'").replace(/"/g,"\\\"")}"`})}function Fn(e){if(e==null||typeof e!=="string")return{};let t=e.trim();if(t==="")return{};let n=t,r;try{r=JSON.parse(n)}catch{let o=mi(n);n=o.startsWith("{")?o:`{${o}}`,r=JSON.parse(n)}if(r===null||typeof r!=="object"||Array.isArray(r))throw TypeError("Enhancement config must be an object");return r}var hi='script[type="application/json"][data-enhance-modules]',De=new Map,Me=new Map,Ie=new Map,gi=(e)=>import(e);function bi(e){let t=new URL(e,document.baseURI).href;if(!Me.has(t))Me.set(t,new Promise((n,r)=>{let o=document.createElement("script");o.src=t,o.onload=n,o.onerror=()=>{Me.delete(t),o.remove(),r(Error(`Unable to load script: ${t}`))},document.head.append(o)}));return Me.get(t)}function wi(e){let t=new URL(e,document.baseURI).href;if(!Ie.has(t))Ie.set(t,new Promise((n,r)=>{let o=document.createElement("link");o.rel="stylesheet",o.href=t,o.onload=n,o.onerror=()=>{Ie.delete(t),o.remove(),r(Error(`Unable to load style: ${t}`))},document.head.append(o)}));return Ie.get(t)}function Ei(e,t){return(n)=>{let r=new AbortController,o=n.getAttribute("data-enhance-config"),i=Fn(o??""),s=(a,d,l={})=>n.dispatchEvent(new CustomEvent(`actual:${e}:${a}`,{bubbles:!0,detail:d,...l})),c;try{c=t(n,{config:i,signal:r.signal,emit:s})}catch(a){throw r.abort(),a}if(c?.then)throw r.abort(),TypeError(`Enhancement "${e}" returned a Promise. connect() must be synchronous; use prepare() for asynchronous setup.`);if(c!==void 0&&typeof c!=="function")throw r.abort(),TypeError(`Enhancement "${e}" must return a cleanup function or undefined.`);return()=>{r.abort(),c?.()}}}function yi(e,t){if(typeof t!=="string"||t.trim()==="")throw TypeError(`Enhancement "${e}" must declare a non-empty module URL.`)}function vi(e,t){yi(e,t);let n=new URL(t,document.baseURI).href,r=De.get(e);if(r){if(r.url!==n)throw Error(`Enhancement "${e}" is already declared from ${r.url} and cannot be replaced by ${n}.`);return r.promise.then(()=>({name:e,status:"skipped"}))}let o=gi(n).then(async(i)=>{if(typeof i.default!=="function")throw TypeError(`Enhancement "${e}" must export a default function.`);if(i.prepare!==void 0){if(typeof i.prepare!=="function")throw TypeError(`Enhancement "${e}" exports an invalid prepare().`);await i.prepare({resolve:(s)=>new URL(s,n).href,loadScript:bi,loadStyle:wi})}return I(e,Ei(e,i.default)),{name:e,status:"loaded"}}).catch((i)=>{if(De.get(e)?.promise===o)De.delete(e);throw i});return De.set(e,{url:n,promise:o}),o}async function Ti(e){let t=Object.entries(e),n=await Promise.allSettled(t.map(([o,i])=>vi(o,i))),r={names:[],failed:[],skipped:[]};return n.forEach((o,i)=>{let s=t[i][0];if(o.status==="rejected")r.failed.push({name:s,error:o.reason});else if(o.value.status==="skipped")r.skipped.push(s);else r.names.push(s)}),r}function Si(e){let t=JSON.parse(e);if(typeof t!=="object"||t===null||Array.isArray(t))throw TypeError("Manifest must be a JSON object.");return Object.entries(t)}async function Ai(e){let t=Si(e.textContent),n=await Ti(Object.fromEntries(t));for(let r of n.failed)console.error(`Enhancement "${r.name}" failed to load:`,r.error);if(n.failed.length===0)e.remove();return n}function _n(){return T({[hi]:(e)=>{Ai(e).catch((t)=>{console.error("Failed to parse enhancement manifest:",t)})}})}_n();