@okam/stack-ui 1.23.1 → 1.23.2
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/index.js +1 -1
- package/index.mjs +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
placeholder:text-gray-2
|
|
91
91
|
focus-ring-black
|
|
92
92
|
|
|
93
|
-
`,variants:{isError:{true:"border-red-500"}}}),Xl=ai({main:t=>Wo(t),gridItem:t=>Yo(t),grid:t=>Uo(t),container:t=>di(t),accordion:Ro,carousel:{container:t=>il(t),slideContainer:t=>al(t),navigationButtons:t=>ol(t)},calendar:{container:t=>Xo(t),header:t=>Qo(t),navigationButtonsContainer:t=>Jo(t),navigationButtons:t=>Zo(t),table:t=>el(t),dayLabel:t=>tl(t),cellContainer:t=>rl(t),cell:t=>nl(t),cellDate:t=>sl(t)},datePicker:{container:t=>ml(t),button:t=>gl(t),icon:t=>xl(t),dateField:t=>yl(t),dateSegment:t=>wl(t),label:t=>Sl(t),calendarPopover:t=>bl(t),calendarUnderlay:t=>vl(t)},popover:{button:t=>et(t),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:t=>fe(t),button:t=>et(t),sidePanel:{wrapper:t=>Kl(t),container:t=>Wl(t),innerContainer:t=>Ul(t)},lightBox:Ol,shareButton:{icon:t=>Hl(t),button:t=>Fl(t),container:t=>zl(t),linksList:t=>Vl(t),link:t=>ql(t),linkIcons:t=>Gl(t)},checkbox:{container:t=>ll(t),label:t=>cl(t),checkBox:t=>dl(t),checkMark:t=>ul(t),checkMarkIcon:t=>fl(t),errorMessage:t=>fe(t)},radio:{label:t=>Dl(t),radio:t=>Al(t),selectedMark:t=>jl(t),errorMessage:t=>fe(t)},radioGroup:{radioGroup:t=>_l(t),radioGroupItemsGroup:t=>kl(t),errorMessage:t=>fe(t)},checkboxGroup:{checkboxGroup:t=>pl(t),checkboxGroupItemsGroup:t=>hl(t),errormessage:t=>fe(t)},select:{button:t=>et(t),ul:t=>fe({...t,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:t=>et({...t,className:"w-[var(--select-container-width)]"}),errorMessage:t=>fe({...t,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:t=>Yl(t),errorMessage:t=>fe({...t,size:"footnotes",isError:!0})},search:{wrapper:()=>"min-w-fit sm:w-80 flex flex-col gap-2",container:()=>"relative flex items-center outline outline-2 outline-gray-300 focus-within:outline focus-within:outline-black focus-within:outline-2",label:()=>"text-gray-3",input:t=>Nl(t),icon:t=>Bl(t),errorMessage:t=>fe({...t,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"group flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>'group-has-[:required]:after:content-["_*"] group-has-[:required]:after:text-red-500 text-xs',container:()=>"flex items-center gap-4",input:()=>"",errorMessage:t=>fe({...t,className:"ml-0",size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:El,alerts:Ko}),Ql=R.memo(ci(Xl)),z=(t,e={},r=null)=>{const n=oi();if(n!=null&&t!=null){const{brandTheme:s}=n,i=si.get(s,t);if(typeof i=="function"){const o=i==null?void 0:i(e);if(typeof o=="string")return o}}if(r)return r},ie=({as:t="span",themeName:e="typography",tokens:r,customTheme:n,children:s,...i})=>{const o=z(e,r,n);return b.jsx(t,{...i,className:o,children:s})},ui=R.forwardRef((t,e)=>{const{as:r="span",tokens:n,themeName:s="typography",customTheme:i,children:o,...l}=t,a=z(s,n,i);return b.jsx(r,{...l,ref:e,className:a,children:o})});function Jl(t,e){return e.get?e.get.call(t):e.value}function fi(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Zl(t,e){var r=fi(t,e,"get");return Jl(t,r)}function ec(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gn(t,e,r){ec(t,e),e.set(t,r)}function tc(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Bn(t,e,r){var n=fi(t,e,"set");return tc(t,n,r),r}let tt="default",Jr="",Gt=new WeakMap;function zn(t){if(F.isIOS()){if(tt==="default"){const e=F.getOwnerDocument(t);Jr=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}tt="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(Gt.set(t,t.style.userSelect),t.style.userSelect="none")}function $t(t){if(F.isIOS()){if(tt!=="disabled")return;tt="restoring",setTimeout(()=>{F.runAfterTransition(()=>{if(tt==="restoring"){const e=F.getOwnerDocument(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Jr||""),Jr="",tt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Gt.has(t)){let e=Gt.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Gt.delete(t)}}const pi=R.createContext({register:()=>{}});pi.displayName="PressResponderContext";function rc(t){let e=R.useContext(pi);if(e){let{register:r,...n}=e;t=F.mergeProps(n,t),r()}return F.useSyncRef(e,t.ref),t}var Mt=new WeakMap;class It{continuePropagation(){Bn(this,Mt,!1)}get shouldStopPropagation(){return Zl(this,Mt)}constructor(e,r,n){gn(this,Mt,{writable:!0,value:void 0}),Bn(this,Mt,!0),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const Fn=Symbol("linkClicked");function vn(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:s,onPressUp:i,isDisabled:o,isPressed:l,preventFocusOnPress:a,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:u,...f}=rc(t),[h,v]=R.useState(!1),m=R.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:g,removeAllGlobalListeners:p}=F.useGlobalListeners(),x=F.useEffectEvent((S,C)=>{let P=m.current;if(o||P.didFirePressStart)return!1;let $=!0;if(P.isTriggeringEvent=!0,n){let L=new It("pressstart",C,S);n(L),$=L.shouldStopPropagation}return r&&r(!0),P.isTriggeringEvent=!1,P.didFirePressStart=!0,v(!0),$}),w=F.useEffectEvent((S,C,P=!0)=>{let $=m.current;if(!$.didFirePressStart)return!1;$.ignoreClickAfterPress=!0,$.didFirePressStart=!1,$.isTriggeringEvent=!0;let L=!0;if(s){let y=new It("pressend",C,S);s(y),L=y.shouldStopPropagation}if(r&&r(!1),v(!1),e&&P&&!o){let y=new It("press",C,S);e(y),L&&(L=y.shouldStopPropagation)}return $.isTriggeringEvent=!1,L}),T=F.useEffectEvent((S,C)=>{let P=m.current;if(o)return!1;if(i){P.isTriggeringEvent=!0;let $=new It("pressup",C,S);return i($),P.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),I=F.useEffectEvent(S=>{let C=m.current;C.isPressed&&C.target&&(C.isOverTarget&&C.pointerType!=null&&w(Te(C.target,S),C.pointerType,!1),C.isPressed=!1,C.isOverTarget=!1,C.activePointerId=null,C.pointerType=null,p(),c||$t(C.target))}),M=F.useEffectEvent(S=>{d&&I(S)}),A=R.useMemo(()=>{let S=m.current,C={onKeyDown($){if(mr($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){var L;qn($.target,$.key)&&$.preventDefault();let y=!0;if(!S.isPressed&&!$.repeat){S.target=$.currentTarget,S.isPressed=!0,y=x($,"keyboard");let E=$.currentTarget,D=N=>{mr(N,E)&&!N.repeat&&E.contains(N.target)&&S.target&&T(Te(S.target,N),"keyboard")};g(F.getOwnerDocument($.currentTarget),"keyup",F.chain(D,P),!0)}y&&$.stopPropagation(),$.metaKey&&F.isMac()&&((L=S.metaKeyEvents)===null||L===void 0||L.set($.key,$.nativeEvent))}else $.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick($){if(!($&&!$.currentTarget.contains($.target))&&$&&$.button===0&&!S.isTriggeringEvent&&!F.openLink.isOpening){let L=!0;if(o&&$.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||F.isVirtualClick($.nativeEvent))){!o&&!a&&F.focusWithoutScrolling($.currentTarget);let y=x($,"virtual"),E=T($,"virtual"),D=w($,"virtual");L=y&&E&&D}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,L&&$.stopPropagation()}}},P=$=>{var L;if(S.isPressed&&S.target&&mr($,S.target)){var y;qn($.target,$.key)&&$.preventDefault();let D=$.target;w(Te(S.target,$),"keyboard",S.target.contains(D)),p(),$.key!=="Enter"&&bn(S.target)&&S.target.contains(D)&&!$[Fn]&&($[Fn]=!0,F.openLink(S.target,$,!1)),S.isPressed=!1,(y=S.metaKeyEvents)===null||y===void 0||y.delete($.key)}else if($.key==="Meta"&&(!((L=S.metaKeyEvents)===null||L===void 0)&&L.size)){var E;let D=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let N of D.values())(E=S.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){C.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(F.isVirtualPointerEvent(E.nativeEvent)){S.pointerType="virtual";return}gr(E.currentTarget)&&E.preventDefault(),S.pointerType=E.pointerType;let D=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=E.pointerId,S.target=E.currentTarget,!o&&!a&&F.focusWithoutScrolling(E.currentTarget),c||zn(S.target),D=x(E,S.pointerType),g(F.getOwnerDocument(E.currentTarget),"pointermove",$,!1),g(F.getOwnerDocument(E.currentTarget),"pointerup",L,!1),g(F.getOwnerDocument(E.currentTarget),"pointercancel",y,!1)),D&&E.stopPropagation()},C.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(gr(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},C.onPointerUp=E=>{!E.currentTarget.contains(E.target)||S.pointerType==="virtual"||E.button===0&&Qe(E,E.currentTarget)&&T(E,S.pointerType||E.pointerType)};let $=E=>{E.pointerId===S.activePointerId&&(S.target&&Qe(E,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,x(Te(S.target,E),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,w(Te(S.target,E),S.pointerType,!1),M(E)))},L=E=>{E.pointerId===S.activePointerId&&S.isPressed&&E.button===0&&S.target&&(Qe(E,S.target)&&S.pointerType!=null?w(Te(S.target,E),S.pointerType):S.isOverTarget&&S.pointerType!=null&&w(Te(S.target,E),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,p(),c||$t(S.target))},y=E=>{I(E)};C.onDragStart=E=>{E.currentTarget.contains(E.target)&&I(E)}}else{C.onMouseDown=y=>{if(y.button!==0||!y.currentTarget.contains(y.target))return;if(gr(y.currentTarget)&&y.preventDefault(),S.ignoreEmulatedMouseEvents){y.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=y.currentTarget,S.pointerType=F.isVirtualClick(y.nativeEvent)?"virtual":"mouse",!o&&!a&&F.focusWithoutScrolling(y.currentTarget),x(y,S.pointerType)&&y.stopPropagation(),g(F.getOwnerDocument(y.currentTarget),"mouseup",$,!1)},C.onMouseEnter=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,E=x(y,S.pointerType)),E&&y.stopPropagation()},C.onMouseLeave=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,E=w(y,S.pointerType,!1),M(y)),E&&y.stopPropagation()},C.onMouseUp=y=>{y.currentTarget.contains(y.target)&&!S.ignoreEmulatedMouseEvents&&y.button===0&&T(y,S.pointerType||"mouse")};let $=y=>{if(y.button===0){if(S.isPressed=!1,p(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Qe(y,S.target)&&S.pointerType!=null?w(Te(S.target,y),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&w(Te(S.target,y),S.pointerType,!1),S.isOverTarget=!1}};C.onTouchStart=y=>{if(!y.currentTarget.contains(y.target))return;let E=nc(y.nativeEvent);if(!E)return;S.activePointerId=E.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=y.currentTarget,S.pointerType="touch",!o&&!a&&F.focusWithoutScrolling(y.currentTarget),c||zn(S.target),x(y,S.pointerType)&&y.stopPropagation(),g(F.getOwnerWindow(y.currentTarget),"scroll",L,!0)},C.onTouchMove=y=>{if(!y.currentTarget.contains(y.target))return;if(!S.isPressed){y.stopPropagation();return}let E=Vn(y.nativeEvent,S.activePointerId),D=!0;E&&Qe(E,y.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,D=x(y,S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D=w(y,S.pointerType,!1),M(y)),D&&y.stopPropagation()},C.onTouchEnd=y=>{if(!y.currentTarget.contains(y.target))return;if(!S.isPressed){y.stopPropagation();return}let E=Vn(y.nativeEvent,S.activePointerId),D=!0;E&&Qe(E,y.currentTarget)&&S.pointerType!=null?(T(y,S.pointerType),D=w(y,S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(D=w(y,S.pointerType,!1)),D&&y.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!c&&$t(S.target),p()},C.onTouchCancel=y=>{y.currentTarget.contains(y.target)&&(y.stopPropagation(),S.isPressed&&I(y))};let L=y=>{S.isPressed&&y.target.contains(S.target)&&I({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};C.onDragStart=y=>{y.currentTarget.contains(y.target)&&I(y)}}return C},[g,o,a,p,c,I,M,w,x,T]);return R.useEffect(()=>()=>{var S;c||$t((S=m.current.target)!==null&&S!==void 0?S:void 0)},[c]),{isPressed:l||h,pressProps:F.mergeProps(f,A)}}function bn(t){return t.tagName==="A"&&t.hasAttribute("href")}function mr(t,e){const{key:r,code:n}=t,s=e,i=s.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(s instanceof F.getOwnerWindow(s).HTMLInputElement&&!hi(s,r)||s instanceof F.getOwnerWindow(s).HTMLTextAreaElement||s.isContentEditable)&&!((i==="link"||!i&&bn(s))&&r!=="Enter")}function nc(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Vn(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const s=r[n];if(s.identifier===e)return s}return null}function Te(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function sc(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function ic(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Qe(t,e){let r=e.getBoundingClientRect(),n=sc(t);return ic(r,n)}function gr(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function qn(t,e){return t instanceof HTMLInputElement?!hi(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!bn(t)}const ac=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ac.has(t.type)}let St=null,oc=new Set,gt=new Map,Ve=!1,Zr=!1;function yn(t,e){for(let r of oc)r(t,e)}function lc(t){return!(t.metaKey||!F.isMac()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Xt(t){Ve=!0,lc(t)&&(St="keyboard",yn("keyboard",t))}function be(t){St="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ve=!0,yn("pointer",t))}function mi(t){F.isVirtualClick(t)&&(Ve=!0,St="virtual")}function gi(t){t.target===window||t.target===document||(!Ve&&!Zr&&(St="virtual",yn("virtual",t)),Ve=!1,Zr=!1)}function vi(){Ve=!1,Zr=!0}function Hn(t){if(typeof window>"u"||gt.get(F.getOwnerWindow(t)))return;const e=F.getOwnerWindow(t),r=F.getOwnerDocument(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ve=!0,n.apply(this,arguments)},r.addEventListener("keydown",Xt,!0),r.addEventListener("keyup",Xt,!0),r.addEventListener("click",mi,!0),e.addEventListener("focus",gi,!0),e.addEventListener("blur",vi,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",be,!0),r.addEventListener("pointermove",be,!0),r.addEventListener("pointerup",be,!0)):(r.addEventListener("mousedown",be,!0),r.addEventListener("mousemove",be,!0),r.addEventListener("mouseup",be,!0)),e.addEventListener("beforeunload",()=>{bi(t)},{once:!0}),gt.set(e,{focus:n})}const bi=(t,e)=>{const r=F.getOwnerWindow(t),n=F.getOwnerDocument(t);e&&n.removeEventListener("DOMContentLoaded",e),gt.has(r)&&(r.HTMLElement.prototype.focus=gt.get(r).focus,n.removeEventListener("keydown",Xt,!0),n.removeEventListener("keyup",Xt,!0),n.removeEventListener("click",mi,!0),r.removeEventListener("focus",gi,!0),r.removeEventListener("blur",vi,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",be,!0),n.removeEventListener("pointermove",be,!0),n.removeEventListener("pointerup",be,!0)):(n.removeEventListener("mousedown",be,!0),n.removeEventListener("mousemove",be,!0),n.removeEventListener("mouseup",be,!0)),gt.delete(r))};function cc(t){const e=F.getOwnerDocument(t);let r;return e.readyState!=="loading"?Hn(t):(r=()=>{Hn(t)},e.addEventListener("DOMContentLoaded",r)),()=>bi(t,r)}typeof document<"u"&&cc();function Gn(){return St}const dc=500;function uc(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:s,threshold:i=dc,accessibilityDescription:o}=t;const l=R.useRef();let{addGlobalListener:a,removeGlobalListener:d}=F.useGlobalListeners(),{pressProps:c}=vn({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...f,type:"longpress"}),l.current=void 0},i),f.pointerType==="touch")){let h=v=>{v.preventDefault()};a(f.target,"contextmenu",h,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{d(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),u=F.useDescription(s&&!e?o:void 0);return{longPressProps:F.mergeProps(c,u)}}function fc(t,e){let{elementType:r="button",isDisabled:n,onPress:s,onPressStart:i,onPressEnd:o,onPressUp:l,onPressChange:a,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:u,href:f,target:h,rel:v,type:m="button"}=t,g;r==="button"?g={type:m,disabled:n}:g={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:f,target:r==="a"?h:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?v:void 0};let{pressProps:p,isPressed:x}=vn({onPressStart:i,onPressEnd:o,onPressChange:a,onPress:s,onPressUp:l,isDisabled:n,preventFocusOnPress:d,ref:e}),{focusableProps:w}=we.useFocusable(t,e);c&&(w.tabIndex=n?-1:w.tabIndex);let T=F.mergeProps(w,p,F.filterDOMProps(t,{labelable:!0}));return{isPressed:x,buttonProps:F.mergeProps(g,T,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:I=>{u&&(u(I),console.warn("onClick is deprecated, please use onPress"))}})}}function en(t){return F.isAppleDevice()?t.altKey:t.ctrlKey}function Ze(t){return F.isMac()?t.metaKey:t.ctrlKey}const pc=1e3;function hc(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,s=R.useRef({search:"",timeout:null}).current,i=o=>{let l=mc(o.key);if(!l||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;l===" "&&s.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),s.search+=l;let a=e.getKeyForSearch(s.search,r.focusedKey);a==null&&(a=e.getKeyForSearch(s.search)),a!=null&&(r.setFocusedKey(a),n&&n(a)),clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},pc)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:null}}}function mc(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function gc(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:s=!1,shouldFocusWrap:i=!1,disallowEmptySelection:o=!1,disallowSelectAll:l=!1,selectOnFocus:a=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:c,allowsTabNavigation:u=!1,isVirtualized:f,scrollRef:h=n,linkBehavior:v="action"}=t,{direction:m}=Ge.useLocale(),g=F.useRouter(),p=P=>{if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!n.current.contains(P.target))return;const $=(k,K)=>{if(k!=null){if(e.isLink(k)&&v==="selection"&&a&&!en(P)){po.flushSync(()=>{e.setFocusedKey(k,K)});let W=h.current.querySelector(`[data-key="${CSS.escape(k.toString())}"]`);g.open(W,P);return}if(e.setFocusedKey(k,K),e.isLink(k)&&v==="override")return;P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(k):a&&!en(P)&&e.replaceSelection(k)}};switch(P.key){case"ArrowDown":if(r.getKeyBelow){var L,y;P.preventDefault();let k=e.focusedKey!=null?r.getKeyBelow(e.focusedKey):(L=r.getFirstKey)===null||L===void 0?void 0:L.call(r);k==null&&i&&(k=(y=r.getFirstKey)===null||y===void 0?void 0:y.call(r,e.focusedKey)),$(k)}break;case"ArrowUp":if(r.getKeyAbove){var E,D;P.preventDefault();let k=e.focusedKey!=null?r.getKeyAbove(e.focusedKey):(E=r.getLastKey)===null||E===void 0?void 0:E.call(r);k==null&&i&&(k=(D=r.getLastKey)===null||D===void 0?void 0:D.call(r,e.focusedKey)),$(k)}break;case"ArrowLeft":if(r.getKeyLeftOf){var N,O;P.preventDefault();let k=r.getKeyLeftOf(e.focusedKey);k==null&&i&&(k=m==="rtl"?(N=r.getFirstKey)===null||N===void 0?void 0:N.call(r,e.focusedKey):(O=r.getLastKey)===null||O===void 0?void 0:O.call(r,e.focusedKey)),$(k,m==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var j,_;P.preventDefault();let k=r.getKeyRightOf(e.focusedKey);k==null&&i&&(k=m==="rtl"?(j=r.getLastKey)===null||j===void 0?void 0:j.call(r,e.focusedKey):(_=r.getFirstKey)===null||_===void 0?void 0:_.call(r,e.focusedKey)),$(k,m==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){P.preventDefault();let k=r.getFirstKey(e.focusedKey,Ze(P));e.setFocusedKey(k),Ze(P)&&P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(k):a&&e.replaceSelection(k)}break;case"End":if(r.getLastKey){P.preventDefault();let k=r.getLastKey(e.focusedKey,Ze(P));e.setFocusedKey(k),Ze(P)&&P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(k):a&&e.replaceSelection(k)}break;case"PageDown":if(r.getKeyPageBelow){P.preventDefault();let k=r.getKeyPageBelow(e.focusedKey);$(k)}break;case"PageUp":if(r.getKeyPageAbove){P.preventDefault();let k=r.getKeyPageAbove(e.focusedKey);$(k)}break;case"a":Ze(P)&&e.selectionMode==="multiple"&&l!==!0&&(P.preventDefault(),e.selectAll());break;case"Escape":P.preventDefault(),o||e.clearSelection();break;case"Tab":if(!u){if(P.shiftKey)n.current.focus();else{let k=we.getFocusableTreeWalker(n.current,{tabbable:!0}),K,W;do W=k.lastChild(),W&&(K=W);while(W);K&&!K.contains(document.activeElement)&&F.focusWithoutScrolling(K)}break}}},x=R.useRef({top:0,left:0});F.useEvent(h,"scroll",f?null:()=>{x.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let w=P=>{if(e.isFocused){P.currentTarget.contains(P.target)||e.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(e.setFocused(!0),e.focusedKey==null){let y=D=>{D!=null&&(e.setFocusedKey(D),a&&e.replaceSelection(D))},E=P.relatedTarget;var $,L;E&&P.currentTarget.compareDocumentPosition(E)&Node.DOCUMENT_POSITION_FOLLOWING?y(($=e.lastSelectedKey)!==null&&$!==void 0?$:r.getLastKey()):y((L=e.firstSelectedKey)!==null&&L!==void 0?L:r.getFirstKey())}else f||(h.current.scrollTop=x.current.top,h.current.scrollLeft=x.current.left);if(!f&&e.focusedKey!=null){let y=h.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);y&&(y.contains(document.activeElement)||F.focusWithoutScrolling(y),Gn()==="keyboard"&&F.scrollIntoViewport(y,{containingElement:n.current}))}}},T=P=>{P.currentTarget.contains(P.relatedTarget)||e.setFocused(!1)};const I=R.useRef(s);R.useEffect(()=>{if(I.current){let P=null;s==="first"&&(P=r.getFirstKey()),s==="last"&&(P=r.getLastKey());let $=e.selectedKeys;if($.size){for(let L of $)if(e.canSelectItem(L)){P=L;break}}e.setFocused(!0),e.setFocusedKey(P),P==null&&!c&&we.focusSafely(n.current)}},[]);let M=R.useRef(e.focusedKey);R.useEffect(()=>{let P=Gn();if(e.isFocused&&e.focusedKey!=null&&(h!=null&&h.current)){let $=h.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);$&&(P==="keyboard"||I.current)&&(f||F.scrollIntoView(h.current,$),P!=="virtual"&&F.scrollIntoViewport($,{containingElement:n.current}))}e.isFocused&&e.focusedKey==null&&M.current!=null&&we.focusSafely(n.current),M.current=e.focusedKey,I.current=!1},[f,h,e.focusedKey,e.isFocused,n]);let A={onKeyDown:p,onFocus:w,onBlur:T,onMouseDown(P){h.current===P.target&&P.preventDefault()}},{typeSelectProps:S}=hc({keyboardDelegate:r,selectionManager:e});d||(A=F.mergeProps(S,A));let C;return c||(C=e.focusedKey==null?0:-1),{collectionProps:{...A,tabIndex:C}}}function vc(t){let{selectionManager:e,key:r,ref:n,shouldSelectOnPressUp:s,shouldUseVirtualFocus:i,focus:o,isDisabled:l,onAction:a,allowsDifferentPressOrigin:d,linkBehavior:c="action"}=t,u=F.useRouter(),f=O=>{if(O.pointerType==="keyboard"&&en(O))e.toggleSelection(r);else{if(e.selectionMode==="none")return;if(e.isLink(r)){if(c==="selection"){u.open(n.current,O),e.setSelectedKeys(e.selectedKeys);return}else if(c==="override"||c==="none")return}e.selectionMode==="single"?e.isSelected(r)&&!e.disallowEmptySelection?e.toggleSelection(r):e.replaceSelection(r):O&&O.shiftKey?e.extendSelection(r):e.selectionBehavior==="toggle"||O&&(Ze(O)||O.pointerType==="touch"||O.pointerType==="virtual")?e.toggleSelection(r):e.replaceSelection(r)}};R.useEffect(()=>{r===e.focusedKey&&e.isFocused&&!i&&(o?o():document.activeElement!==n.current&&we.focusSafely(n.current))},[n,r,e.focusedKey,e.childFocusStrategy,e.isFocused,i]),l=l||e.isDisabled(r);let h={};!i&&!l?h={tabIndex:r===e.focusedKey?0:-1,onFocus(O){O.target===n.current&&e.setFocusedKey(r)}}:l&&(h.onMouseDown=O=>{O.preventDefault()});let v=e.isLink(r)&&c==="override",m=e.isLink(r)&&c!=="selection"&&c!=="none",g=!l&&e.canSelectItem(r)&&!v,p=(a||m)&&!l,x=p&&(e.selectionBehavior==="replace"?!g:!g||e.isEmpty),w=p&&g&&e.selectionBehavior==="replace",T=x||w,I=R.useRef(null),M=T&&g,A=R.useRef(!1),S=R.useRef(!1),C=O=>{a&&a(),m&&u.open(n.current,O)},P={};s?(P.onPressStart=O=>{I.current=O.pointerType,A.current=M,O.pointerType==="keyboard"&&(!T||Wn())&&f(O)},d?(P.onPressUp=x?null:O=>{O.pointerType!=="keyboard"&&g&&f(O)},P.onPress=x?C:null):P.onPress=O=>{if(x||w&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!Kn())return;C(O)}else O.pointerType!=="keyboard"&&g&&f(O)}):(P.onPressStart=O=>{I.current=O.pointerType,A.current=M,S.current=x,g&&(O.pointerType==="mouse"&&!x||O.pointerType==="keyboard"&&(!p||Wn()))&&f(O)},P.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&T&&Kn()||O.pointerType==="mouse"&&S.current)&&(T?C(O):g&&f(O))}),h["data-key"]=r,P.preventFocusOnPress=i;let{pressProps:$,isPressed:L}=vn(P),y=w?O=>{I.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),C(O))}:void 0,{longPressProps:E}=uc({isDisabled:!M,onLongPress(O){O.pointerType==="touch"&&(f(O),e.setSelectionBehavior("toggle"))}}),D=O=>{I.current==="touch"&&A.current&&O.preventDefault()},N=e.isLink(r)?O=>{F.openLink.isOpening||O.preventDefault()}:void 0;return{itemProps:F.mergeProps(h,g||x?$:{},M?E:{},{onDoubleClick:y,onDragStartCapture:D,onClick:N}),isPressed:L,isSelected:e.isSelected(r),isFocused:e.isFocused&&e.focusedKey===r,isDisabled:l,allowsSelection:g,hasAction:T}}function Kn(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Wn(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class bc{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,r,n){let s=this.getItem(e);if(!s)return null;let i=s.getBoundingClientRect();do e=r(e),s=this.getItem(e);while(s&&n(i,s.getBoundingClientRect()));return e}isSameRow(e,r){return e.top===r.top||e.left!==r.left}isSameColumn(e,r){return e.left===r.left||e.top!==r.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){let r=this.collection.getItem(e);if((r==null?void 0:r.type)==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`)}getKeyPageAbove(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!F.isScrollable(r))return this.getFirstKey();let s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let o=s.x-r.scrollLeft,l=Math.max(0,i.x-o+i.width-s.width);for(;n&&i.x-o>l;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let o=s.y-r.scrollTop,l=Math.max(0,i.y-o+i.height-s.height);for(;n&&i.y-o>l;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!F.isScrollable(r))return this.getLastKey();let s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let o=s.x-r.scrollLeft,l=Math.min(r.scrollWidth,i.x-o-i.width+s.width);for(;n&&i.x-o<l;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let o=s.y-r.scrollTop,l=Math.min(r.scrollHeight,i.y-o-i.height+s.height);for(;n&&i.y-o<l;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,s=r||this.getFirstKey();for(;s!=null;){let i=n.getItem(s),o=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(o,e)===0)return s;s=this.getKeyBelow(s)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function yc(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:s,keyboardDelegate:i}=t,o=Ge.useCollator({usage:"search",sensitivity:"base"}),l=e.disabledBehavior,a=R.useMemo(()=>i||new bc(r,l==="selection"?new Set:n,s,o),[i,r,n,s,o,l]),{collectionProps:d}=gc({...t,ref:s,selectionManager:e,keyboardDelegate:a});return{listProps:d}}function wc(t,e,r){let{item:n}=t,s=F.useId(),i=F.useId(),o=e.disabledKeys.has(n.key),{itemProps:l}=vc({selectionManager:e.selectionManager,key:n.key,ref:r}),{buttonProps:a}=fc(F.mergeProps(l,{id:s,elementType:"button",isDisabled:o,onPress:()=>e.toggleKey(n.key)}),r),d=e.expandedKeys.has(n.key);return{buttonProps:{...a,"aria-expanded":d,"aria-controls":d?i:void 0},regionProps:{id:i,role:"region","aria-labelledby":s}}}function xc(t,e,r){let{listProps:n}=yc({...t,...e,allowsTabNavigation:!0,ref:r});return{accordionProps:{...n,tabIndex:void 0}}}function wn(){const t=R.createContext(void 0);function e(){const r=R.useContext(t);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[e,t.Provider]}function yi(){const t=R.createContext(void 0);function e(){const r=R.useContext(t);return r===void 0?{}:r}return[e,t.Provider]}const[wi,Sc]=yi();function xi(t){const{state:e,children:r,TransitionAnimation:n}=t,s=R.useMemo(()=>({state:e,TransitionAnimation:n}),[e,n]);return b.jsx(Sc,{value:s,children:r})}const J=({as:t="div",themeName:e="box",tokens:r,customTheme:n,children:s,className:i,...o})=>{const l=z(e,r,n);return b.jsx(t,{...o,className:l,children:s})},Ke=R.forwardRef((t,e)=>{const{as:r="div",tokens:n,themeName:s="box",customTheme:i,children:o,...l}=t,a=z(s,n,i);return b.jsx(r,{...l,ref:e,className:a,children:o})}),Tc=t=>{const{isVisible:e,children:r,themeName:n,tokens:s,customTheme:i,...o}=t,l=me.useTransition(e,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),a=z(n,s,i);return l((d,c)=>c&&b.jsx(me.animated.div,{...o,style:d,className:a,children:r}))},xn=R.forwardRef((t,e)=>{var v;const{as:r="a",handlePress:n,children:s,as:i,customTheme:o,tokens:l,themeName:a="button",nextLinkProps:d,...c}=t,u=e,{linkProps:f}=V.useLink({...t,...d,href:t.href??((v=d==null?void 0:d.href)==null?void 0:v.toString()),elementType:i==null?void 0:i.toString(),onPress:n},e??u),h=z(a,l,o);return b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsx(r,{ref:u,...f,...d,...c,className:h,children:s})})}),Si=R.forwardRef((t,e)=>{const{as:r="button",handlePress:n,children:s,as:i,customTheme:o,tokens:l,themeName:a="button",isDisabled:d=!1,...c}=t,u=e,{buttonProps:f}=V.useButton({...t,isDisabled:d,elementType:i,onPress:n},e??u),h=z(a,l,o);return b.jsx(V.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:b.jsx(r,{ref:u,...f,...c,className:h,children:s})})}),lt=R.forwardRef((t,e)=>{const{as:r}=t;return r==="a"?b.jsx(xn,{ref:e,...t}):b.jsx(Si,{ref:e,...t})}),Ec=t=>{const{as:e}=t,r=R.useRef(null);return e==="a"?b.jsx(xn,{ref:r,...t}):b.jsx(Si,{ref:r,...t})},ge=R.memo(Ec),Pc=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e)))})},Cc=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),Ti=R.memo(Cc),$c=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),Mc=t=>{const{icon:e,...r}=t,n=R.useMemo(()=>R.lazy(()=>Pc(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>hh),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>gh),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>bh),"../icons/Check.tsx":()=>Promise.resolve().then(()=>wh),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>Sh),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>Eh),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>rd),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>Ch),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>Mh),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>Lh),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>Oh),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>$c),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>Ah),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>_h),"../icons/Link.tsx":()=>Promise.resolve().then(()=>Nh),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>zh),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>Vh),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>Hh),"../icons/Search.tsx":()=>Promise.resolve().then(()=>sd),"../icons/Share.tsx":()=>Promise.resolve().then(()=>Kh),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>Uh),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>Xh),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>Jh),"../icons/X.tsx":()=>Promise.resolve().then(()=>em),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>rm),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>sm)}),`../icons/${e||"ArrowRight"}.tsx`)),[e]);return b.jsx(R.Suspense,{fallback:b.jsx(Ti,{className:"overflow-visible pointer-events-none"}),children:b.jsx(n,{...r,className:"overflow-visible pointer-events-none",...t})})},oe=t=>{const{icon:e,as:r="span",tokens:n,customTheme:s,themeName:i="icon",children:o,...l}=t,a=z(i,n,s);return typeof e!="string"?b.jsxs(r,{...l,className:a,children:[o,e]}):b.jsxs(r,{className:a,children:[o,b.jsx(Mc,{icon:e,...l})]})},Ic=t=>{const{item:e,tokens:r,customTheme:n}=t,{props:s,rendered:i,key:o}=e,{icon:l,title:a,onOpenChange:d,tokens:c,themeName:u}=s??{},{themeName:f=u}=t,h=R.useRef(null),{state:v,TransitionAnimation:m=Tc}=wi(),{buttonProps:{onClick:g,onKeyDown:p,onPointerDown:x,...w},regionProps:T}=wc(t,v,h),I=v.selectionManager.selectedKeys.has(o),M={...r,isOpen:I,...c},A=S=>{S.continuePropagation(),v.selectionManager.select(e.key),v.toggleKey(e.key)};return ho.useUpdateEffect(()=>{d==null||d(I)},[I]),b.jsxs(J,{themeName:`${f}.container`,tokens:M,customTheme:n,children:[b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsxs(lt,{...w,handlePress:A,ref:h,themeName:`${f}.button`,tokens:M,children:[b.jsx(J,{themeName:`${f}.title`,tokens:M,children:a}),l&&b.jsx(J,{themeName:`${f}.icon`,tokens:M,children:b.jsx(oe,{icon:l})})]})}),b.jsx(m,{isVisible:I,themeName:`${f}.region`,...T,tokens:M,children:b.jsx(J,{themeName:`${f}.content`,tokens:M,children:b.jsx(V.FocusScope,{autoFocus:!0,children:i})})})]})};function Ei(t){const{children:e,defaultSelectedKeys:r,selectionMode:n="single",selectedKeys:s,onSelectionChange:i,...o}=t,l=Array.isArray(e)?e:[e],a=r??l.reduce((c,u)=>{const{props:f,key:h}=u,{defaultOpen:v}=f??{};return!v||!h||c.push(h),c},[]);return $e.useTreeState({children:e,selectionMode:n,defaultExpandedKeys:a,defaultSelectedKeys:a,expandedKeys:s,selectedKeys:s,onSelectionChange:i,...o})}const Lc=t=>{const{themeName:e="accordion",tokens:r,customTheme:n,TransitionAnimation:s}=t,i=R.useRef(null),o=Ei(t),{accordionProps:l}=xc(t,o,i);return b.jsx(xi,{state:o,TransitionAnimation:s,children:b.jsx(Ke,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,ref:i,...l,children:[...o.collection].map(a=>b.jsx(Ic,{item:a,themeName:e,tokens:r},a.key))})})},Pi=t=>null;Pi.getCollectionNode=function*(e){const{children:r,childItems:n,title:s}=e,i=e.textValue||(typeof r=="string"?r:"")||e["aria-label"]||"";yield{type:"item",props:e,rendered:r,textValue:i,"aria-label":e["aria-label"],hasChildNodes:!1,*childNodes(){if(n)for(const o of n)yield{type:"item",value:o};else if(s){const o=[];R.Children.forEach(r,l=>{o.push({type:"item",element:l})}),yield*o}}}};const Rc=Pi,Oc=t=>{const{sharingLinksList:e,id:r,isOpen:n,setIsOpen:s,onShare:i,themeName:o="shareButton",tokens:l,customTheme:a}=t,d=z(`${o}.linksList`,{...l,isOpen:n},a),c=V.useFocusManager(),u=f=>{f.key==="Escape"&&s(!1);const{listDirection:h}=l??{};h==="row"&&(f.key==="ArrowRight"&&(c==null||c.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(c==null||c.focusPrevious({wrap:!0}),f.preventDefault())),h==="column"&&(f.key==="ArrowDown"&&(c==null||c.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(c==null||c.focusPrevious({wrap:!0}),f.preventDefault()))};return b.jsx("div",{className:d,id:r,role:"listbox",tabIndex:-1,onKeyDown:u,children:e==null?void 0:e.map(f=>{const{ariaLabel:h,onClick:v,href:m,icon:g,key:p}=f;return b.jsx(ge,{themeName:`${o}.link`,tokens:{...l,isOpen:n},handlePress:()=>{i==null||i(p),v==null||v(p)},"aria-label":h,...m?{href:m,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:b.jsx(oe,{themeName:`${o}.linkIcons`,icon:g})},p)})})},Dc=t=>{const{ariaLabel:e,icon:r,id:n,sharingLinksList:s,onShare:i,customTheme:o,themeName:l="shareButton",tokens:a,...d}=t,[c,u]=R.useState(!1),f=z(`${l}.container`,a,o),h=m=>{u(!c),!c&&setTimeout(()=>{var p,x;const g=(x=(p=m.target.parentElement)==null?void 0:p.lastChild)==null?void 0:x.firstChild;g==null||g.focus()})},v=m=>{const g=m.currentTarget.firstChild,p=m.currentTarget.lastChild,x=p.firstChild,w=p.lastChild,{listDirection:T}=a??{};T==="row"&&(m.key==="ArrowRight"&&m.target===g&&(x==null||x.focus(),m.preventDefault()),m.key==="ArrowLeft"&&m.target===g&&(w.focus(),m.preventDefault())),T==="column"&&(m.key==="ArrowDown"&&m.target===g&&(x==null||x.focus(),m.preventDefault()),m.key==="ArrowUp"&&m.target===g&&(w.focus(),m.preventDefault())),m.key==="Escape"&&(u(!1),g==null||g.focus()),document.activeElement===p&&(g==null||g.focus())};return b.jsx(V.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:c,children:b.jsxs("div",{className:f,onKeyDown:v,children:[b.jsx(lt,{themeName:`${l}.button`,tokens:{...a,isOpen:c},"aria-label":e,"aria-haspopup":"listbox","aria-expanded":c?"true":"false","aria-controls":"share-buttons",handlePress:h,...d,children:b.jsx(oe,{themeName:`${l}.icon`,icon:r??"Share"})}),c&&b.jsx(Oc,{id:n,sharingLinksList:s,onShare:i,isOpen:c,setIsOpen:u,themeName:l,customTheme:o,tokens:a})]})})};function Sn(t,e,r){const{type:n="dialog"}=t,{triggerProps:{onPress:s,...i},overlayProps:o}=V.useOverlayTrigger({type:n},e,r),l={handlePress:s,...i},a=F.useSlotId();return{openTriggerProps:{"aria-labelledby":a,...l},triggerProps:l,labelProps:{id:a},overlayProps:{...o,"aria-labelledby":a}}}const[Tn,Ac]=wn();function Ci(t){const{children:e,defaultSelectedKey:r,onOpenCallback:n,onCloseCallback:s,defaultIsOpen:i=!1,type:o="dialog"}=t,l=R.useRef(null),a=R.useRef(null),d=$e.useOverlayTriggerState({defaultOpen:i,onOpenChange(h){if(!h){s==null||s();return}n==null||n()}}),{triggerProps:c,overlayProps:u}=Sn({type:o},d),f=R.useMemo(()=>({overlayProps:u,defaultSelectedKey:r,overlayState:d,buttonProps:{closeButtonProps:c,closeButtonRef:a,openButtonProps:c,openButtonRef:l}}),[d,r,c,u]);return b.jsx(Ac,{value:f,children:e})}const $i=({isVisible:t,children:e})=>me.useTransition(t,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,s)=>s&&b.jsx(me.animated.div,{style:n,children:e})),jc="fixed",_c=({isVisible:t,children:e})=>me.useTransition(t,{from:{opacity:0,position:jc,left:0,top:0,zIndex:1e3,bottom:0,height:"100%"},enter:{opacity:1},leave:{opacity:0},config:me.config.stiff})((n,s)=>s&&b.jsx(me.animated.div,{style:n,children:e})),kc=({isVisible:t,children:e})=>me.useTransition(t,{from:{opacity:0,scale:.75},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:me.config.stiff})((n,s)=>s&&b.jsx(me.animated.div,{style:{position:"fixed",left:0,top:0,bottom:0,zIndex:1e3,width:"100%",height:"100%",...n},children:e})),Nc=t=>{const{children:e,themeName:r,tokens:n,customTheme:s}=t,i=R.useRef(null),{dialogProps:o}=V.useDialog(t,i);return b.jsx(Ke,{themeName:`${r}.dialog`,tokens:n,customTheme:s,ref:i,"aria-modal":!0,...o,children:b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:b.jsx(V.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:e})})})},Bc=t=>{const{themeName:e,tokens:r,customTheme:n,children:s,state:i,...o}=t,l=R.useRef(null),{modalProps:a,underlayProps:d}=V.useModalOverlay(o,i,l);return b.jsx(J,{themeName:`${e}.underlay`,tokens:r,customTheme:n,...d,children:b.jsx(Ke,{ref:l,themeName:`${e}.overlay`,tokens:r,...a,children:s})})},En=t=>{const{children:e,transitionComponent:r=kc,state:n,themeName:s,tokens:i,...o}=t;return b.jsx(V.OverlayContainer,{children:b.jsx(r,{isVisible:n.isOpen,children:b.jsx(Bc,{themeName:s,tokens:i,state:n,...o,children:b.jsx(Nc,{themeName:s,tokens:i,...o,children:e})})})})},zc=t=>{const{children:e,closeBtnRender:r,themeName:n="sidePanel",tokens:s,TransitionAnimation:i=$i,PanelTransition:o=_c,customTheme:l}=t,a=z(`${n}.wrapper`,s,l),d=z(`${n}.container`,s,l),c=z(`${n}.innerContainer`,s,l),{overlayState:u,overlayProps:f}=Tn();return b.jsx(En,{state:u,...f,transitionComponent:o,isDismissable:!0,children:b.jsxs(mo,{className:a,children:[r&&r(),b.jsx(i,{isVisible:u.isOpen,children:b.jsx("div",{className:d,children:b.jsx("div",{className:c,children:e})})})]})})},Mi=R.memo(zc),Fc=t=>{const{themeName:e,tokens:r,children:n,...s}=t;return b.jsx(ge,{themeName:e,tokens:r,...s,children:b.jsx(oe,{icon:"CloseBtn"})})},Vc=t=>{const{children:e,thumbnailContent:r,label:n,themeName:s="lightBox",tokens:i,closeButton:o=Fc,setOpen:l,isOpen:a,closeButtonAriaLabel:d,transitionComponent:c}=t,u=$e.useOverlayTriggerState(t),{openTriggerProps:f,triggerProps:h,overlayProps:v,labelProps:m}=Sn({...t,type:"dialog"},u),g=p=>{var x;l==null||l(!a),(x=f.handlePress)==null||x.call(f,p)};return b.jsxs(b.Fragment,{children:[b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs(ge,{themeName:`${s}.wrapper`,tokens:i,...f,handlePress:g,children:[n&&b.jsx(ie,{themeName:`${s}.label`,tokens:{size:"footnotes"},...m,children:n}),r]})}),b.jsxs(En,{themeName:`${s}.modal`,tokens:i,state:u,...v,transitionComponent:c,children:[b.jsx(o,{themeName:`${s}.closeBtn`,tokens:i,"aria-label":d,...h}),b.jsx(J,{themeName:`${s}.container`,tokens:i,children:e})]})]})},qc=R.forwardRef((t,e)=>{const{isOpen:r,onClose:n,children:s,positionProps:i,themeName:o="popover",tokens:l,customTheme:a,isDismissable:d,shouldCloseOnBlur:c,...u}=t,{overlayProps:f}=V.useOverlay({isDismissable:d,shouldCloseOnBlur:c,isOpen:r,onClose:n},e),{modalProps:h}=V.useModal(),{dialogProps:v}=V.useDialog({},e),m=z(`${o}.popover`,l,a);return b.jsx(V.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:b.jsxs(Ke,{customTheme:m,...V.mergeProps(f,h,v),ref:e,...i,...u,children:[R.Children.map(s,g=>b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:g})),b.jsx(V.DismissButton,{onDismiss:n})]})})});function Hc(t){const{children:e,buttonProps:r,placement:n="right",offset:s=5,themeName:i="popover",tokens:o,customTheme:l,...a}=t,d=$e.useOverlayTriggerState({}),c=R.useRef(null),u=R.useRef(null),{triggerProps:f,overlayProps:h}=V.useOverlayTrigger({type:"dialog"},d,c),{overlayProps:v}=V.useOverlayPosition({targetRef:c,overlayRef:u,placement:n,offset:s,isOpen:d.isOpen}),{onPress:m,...g}=f;return b.jsxs(b.Fragment,{children:[b.jsx(lt,{themeName:`${i}.button`,handlePress:m,...r,...g,ref:c}),d.isOpen&&b.jsx(V.OverlayContainer,{children:b.jsx(qc,{themeName:i,tokens:o,customTheme:l,...h,...a,positionProps:v,ref:u,isOpen:d.isOpen,onClose:d.close,children:e})})]})}const Gc=({content:t,themeName:e="wysiwyg",...r})=>b.jsx(ie,{...r,themeName:e,dangerouslySetInnerHTML:{__html:go.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","target"]})}}),Kc=t=>{const{as:e="time",date:r,tokens:n,customTheme:s,dateFormatterOptions:i={month:"long",day:"numeric",year:"numeric"},themeName:o="typography",...l}=t,a=V.useIsSSR(),d=new Date(r),u=Ge.useDateFormatter(i).format(d),f=z(o,n,s);return a||pn.isEmpty(u)?null:b.jsx(e,{...l,dateTime:d.toISOString(),className:f,children:u})},Ii=t=>{const{key:e,value:r}=t;return b.jsx($e.Item,{children:r},e)},Wc=({item:t,state:e,themeName:r="li"})=>{const n=R.useRef(null),{optionProps:s,isFocusVisible:i}=V.useOption({key:t.key},e,n),o=z(r);return b.jsx(ui,{as:"li",...s,tokens:{className:`${o} ${i?"has-focus-ring":""}`},ref:n,children:t.rendered})},Uc=t=>{const e=R.useRef(null),{listBoxRef:r=e,state:n,themeName:s="option"}=t,{listBoxProps:i}=V.useListBox(t,n,r);return b.jsx(V.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:b.jsx(ui,{...i,ref:r,as:"ul",themeName:`${s}.ul`,children:[...n.collection].map(o=>b.jsx(Wc,{themeName:`${s}.li`,item:o,state:n},o.key))})})},Yc=t=>{const e=R.useRef(null),{popoverRef:r=e,state:n,children:s,themeName:i="popover",tokens:o,customTheme:l,triggerRef:a,...d}=t,{popoverProps:c,underlayProps:u}=V.usePopover({...t,popoverRef:r,triggerRef:a},n);return b.jsxs(V.Overlay,{children:[b.jsx("div",{...u,style:{position:"fixed",inset:0}}),b.jsx(J,{...d,children:b.jsxs(Ke,{...c,ref:r,themeName:i,tokens:o,children:[b.jsx(V.DismissButton,{onDismiss:n.close}),s,b.jsx(V.DismissButton,{onDismiss:n.close})]})})]})},Li=t=>{var P;const{name:e,placeholderLabel:r,disabled:n,hookFormRef:s,isError:i=!1,errorMessage:o,themeName:l="select",tokens:a,customTheme:d,label:c,onSelectionChange:u,defaultValue:f,value:h,icon:v,popoverMatchesWidth:m,options:g,...p}=t,x=R.useRef(null),w=$e.useSelectState({...p,children:Ii,selectedKey:h,defaultSelectedKey:f,items:g,onSelectionChange:u}),{triggerProps:T,menuProps:I,labelProps:M}=V.useSelect({...p,label:c},w,x),{onPress:A,onPressStart:S,...C}=T;return b.jsxs(J,{themeName:`${l}.wrapper`,children:[c&&b.jsx(ie,{...M,as:"label",themeName:`${l}.label`,children:c}),b.jsx(V.HiddenSelect,{...s,state:w,triggerRef:x,name:e,isDisabled:!0}),b.jsxs(J,{themeName:`${l}.container`,children:[b.jsxs(lt,{...C,handlePress:$=>{A==null||A($),S==null||S($)},ref:x,disabled:n,themeName:`${l}.button`,tokens:{...a,intent:i?"error":"default"},children:[w.selectedItem?w.selectedItem.rendered:r,b.jsx(oe,{icon:v??"ArrowDown"})]}),w.isOpen&&x.current&&b.jsx(Yc,{tokens:a,state:w,triggerRef:x,placement:"bottom",themeName:`${l}.popover`,style:{[`--${l}-container-width`]:`${(P=x.current)==null?void 0:P.offsetWidth}px`},children:b.jsx(Uc,{...I,themeName:l,state:w})}),i&&b.jsx(ie,{tokens:{...a,isError:i},themeName:`${l}.errorMessage`,children:o})]})]})},Xc=t=>{const{name:e,required:r}=t,{register:n,formState:s}=je.useFormContext(),i=je.get(s.errors,e),o=(i==null?void 0:i.message)??void 0,{ref:l}=n(e,{required:r?"This is an error message":!1});return b.jsx(Li,{...t,isError:!pn.isEmpty(o),errorMessage:o,hookFormRef:l})},Qc=t=>{const{id:e,label:r,isDisabled:n=!1,isError:s=!1,errorMessage:i,ariaLabel:o,icon:l,themeName:a="checkbox",tokens:d,customTheme:c}=t,u=yo.useToggleState(t),f=R.useRef(null),{inputProps:h}=vo.useCheckbox(t,u,f),{isSelected:v}=u,{focusProps:m,isFocusVisible:g}=we.useFocusRing(),p={...d,selected:v,isDisabled:n,isError:s,isFocusVisible:g},x=z(`${a}.container`,p,c),w=z(`${a}.checkBox`,p,c),T=z(`${a}.checkMark`,p,c),I=z(`${a}.checkMarkIcon`,p,c);return b.jsxs("div",{children:[b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("label",{className:x,htmlFor:e,"aria-label":o,"aria-disabled":n,children:[b.jsx(bo.VisuallyHidden,{children:b.jsx("input",{type:"checkbox",ref:f,"aria-labelledby":e,...h,...m})}),b.jsx("div",{className:w,"aria-checked":v,role:"checkbox","aria-labelledby":e,children:b.jsx("div",{className:T,children:l&&b.jsx(oe,{icon:l,customTheme:I})})}),b.jsx(ie,{themeName:`${a}.label`,tokens:p,children:r})]})}),s&&i&&b.jsx(ie,{themeName:`${a}.errorMessage`,tokens:p,children:i})]})},[Jc,Zc]=wn();function ed(t){const{userQuery:e,children:r}=t,[n,s]=R.useState(e),i=R.useMemo(()=>({userSearchQuery:n,setUserSearchQuery:s}),[n,s]);return b.jsx(Zc,{value:i,children:r})}const td=t=>b.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:b.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 6 6 18M6 6l12 12"})}),or=R.memo(td,Q),rd=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),nd=t=>b.jsxs("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:[b.jsxs("g",{stroke:"currentColor",clipPath:"url(#a)",children:[b.jsx("circle",{cx:"8.2727",cy:"8.2727",r:"7.2727"}),b.jsx("path",{d:"M13.4551 13.4531L19.5005 19.4986"})]}),b.jsx("defs",{children:b.jsx("clipPath",{children:b.jsx("path",{fill:"currentColor",d:"M0 0h14v14H0z"})})})]}),Ri=R.memo(nd,Q),sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),id=t=>{const{setUserSearchQuery:e}=Jc(),{label:r,themeName:n="search",tokens:s,customTheme:i,disabled:o,errorMessage:l,placeholder:a}=t,d=$e.useSearchFieldState(t);e(d.value);const c=R.useRef(null),{labelProps:u,inputProps:f,errorMessageProps:h,clearButtonProps:v}=V.useSearchField(t,d,c),m={...s,isError:l!=null},g=z(`${n}.wrapper`,m,i),p=z(`${n}.input`,m,i),x=z(`${n}.label`,m,i),w=z(`${n}.container`,m,i);return b.jsxs("div",{className:g,"aria-disabled":o,children:[r&&b.jsx("label",{...u,className:x,children:r}),b.jsxs("div",{className:w,children:[b.jsx("input",{ref:c,...f,placeholder:a,className:p,disabled:o}),b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsx(ge,{handlePress:v.onPress,tokens:{isIconOnly:!0,buttonStyle:"hollow"},themeName:`${n}.icon`,"aria-label":"clear",children:d.value===""?b.jsx(Ri,{width:"16",height:"16"}):b.jsx(or,{width:"16",height:"16"})})})]}),l&&b.jsx(ie,{themeName:`${n}.errorMessage`,tokens:m,...h,children:l})]})},Pn={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Oi={...Pn,customError:!0,valid:!1},ft={isInvalid:!1,validationDetails:Pn,validationErrors:[]},ad=R.createContext({}),Un="__formValidationState"+Date.now();function Di(t){if(t[Un]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:s,commitValidation:i}=t[Un];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:s,commitValidation:i}}return od(t)}function od(t){let{isInvalid:e,validationState:r,name:n,value:s,builtinValidation:i,validate:o,validationBehavior:l="aria"}=t;r&&(e||(e=r==="invalid"));let a=e?{isInvalid:!0,validationErrors:[],validationDetails:Oi}:null,d=R.useMemo(()=>Yn(ld(o,s)),[o,s]);i!=null&&i.validationDetails.valid&&(i=null);let c=R.useContext(ad),u=R.useMemo(()=>n?Array.isArray(n)?n.flatMap(P=>tn(c[P])):tn(c[n]):[],[c,n]),[f,h]=R.useState(c),[v,m]=R.useState(!1);c!==f&&(h(c),m(!1));let g=R.useMemo(()=>Yn(v?[]:u),[v,u]),p=R.useRef(ft),[x,w]=R.useState(ft),T=R.useRef(ft),I=()=>{if(!M)return;A(!1);let P=d||i||p.current;vr(P,T.current)||(T.current=P,w(P))},[M,A]=R.useState(!1);return R.useEffect(I),{realtimeValidation:a||g||d||i||ft,displayValidation:l==="native"?a||g||x:a||g||d||i||x,updateValidation(P){l==="aria"&&!vr(x,P)?w(P):p.current=P},resetValidation(){let P=ft;vr(P,T.current)||(T.current=P,w(P)),l==="native"&&A(!1),m(!0)},commitValidation(){l==="native"&&A(!0),m(!0)}}}function tn(t){return t?Array.isArray(t)?t:[t]:[]}function ld(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return tn(r)}return[]}function Yn(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Oi}:null}function vr(t,e){return t===e?!0:t&&e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function cd(...t){let e=new Set,r=!1,n={...Pn};for(let o of t){var s,i;for(let l of o.validationErrors)e.add(l);r||(r=o.isInvalid);for(let l in n)(s=n)[i=l]||(s[i]=o.validationDetails[l])}return n.valid=!r,{isInvalid:r,validationErrors:[...e],validationDetails:n}}function Ai(t,e,r){let[n,s]=R.useState(t||e),i=R.useRef(t!==void 0),o=t!==void 0;R.useEffect(()=>{let d=i.current;d!==o&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),i.current=o},[o]);let l=o?t:n,a=R.useCallback((d,...c)=>{let u=(f,...h)=>{r&&(Object.is(l,f)||r(f,...h)),o||(l=f)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((h,...v)=>{let m=d(o?l:h,...v);return u(m,...c),o?h:m})):(o||s(d),u(d,...c))},[o,l,r]);return[l,a]}function dd(t={}){let[e,r]=Ai(t.value,t.defaultValue||[],t.onChange),n=!!t.isRequired&&e.length===0,s=R.useRef(new Map),i=Di({...t,value:e}),o=i.displayValidation.isInvalid;var l;return{...i,value:e,setValue(d){t.isReadOnly||t.isDisabled||r(d)},isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isSelected(d){return e.includes(d)},addValue(d){t.isReadOnly||t.isDisabled||e.includes(d)||r(e.concat(d))},removeValue(d){t.isReadOnly||t.isDisabled||e.includes(d)&&r(e.filter(c=>c!==d))},toggleValue(d){t.isReadOnly||t.isDisabled||(e.includes(d)?r(e.filter(c=>c!==d)):r(e.concat(d)))},setInvalid(d,c){let u=new Map(s.current);c.isInvalid?u.set(d,c):u.delete(d),s.current=u,i.updateValidation(cd(...u.values()))},validationState:(l=t.validationState)!==null&&l!==void 0?l:o?"invalid":null,isInvalid:o,isRequired:n}}const ji=R.createContext(null),ud=t=>{const{children:e,state:r}=t;return b.jsx(ji.Provider,{value:r,children:e})};function fd(){const t=R.useContext(ji);return t||null}const pd=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:s=!1,children:i,themeName:o="checkboxGroup",tokens:l}=t,a=dd(t),{groupProps:d,labelProps:c,errorMessageProps:u}=V.useCheckboxGroup(t,a),f={...l,isDisabled:s};return b.jsxs(J,{...d,"aria-disabled":s,themeName:`${o}.checkboxGroup`,tokens:f,children:[e&&b.jsx(ie,{...c,tokens:{size:"h6"},children:e}),b.jsx(J,{themeName:`${o}.checkboxGroupItemsGroup`,children:b.jsx(ud,{state:a,children:i})}),r&&n&&b.jsx(ie,{...u,tokens:{isError:!0},children:n})]})},hd=t=>{const{id:e,ariaLabel:r,icon:n,state:s,themeName:i="checkbox",customTheme:o,tokens:l,isDisabled:a=!1,isError:d=!1,value:c,errorMessage:u,label:f}=t,h=R.useRef(null),{inputProps:v}=V.useCheckboxGroupItem(t,s,h),{isSelected:m}=s,g={...l,selected:m(c),isDisabled:a,isError:d},p=z(`${i}.container`,g,o),x=z(`${i}.checkBox`,g,o),w=z(`${i}.checkMark`,g,o),T=z(`${i}.checkMarkIcon`,g,o);return b.jsxs("div",{children:[b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("label",{className:p,htmlFor:e,"aria-label":r,"aria-disabled":a,children:[b.jsx(V.VisuallyHidden,{children:b.jsx("input",{ref:h,...v})}),b.jsx("div",{className:x,"aria-checked":m(c),role:"checkbox","aria-labelledby":e,children:b.jsx("div",{className:w,children:n&&b.jsx(oe,{icon:n,customTheme:T})})}),b.jsx(ie,{themeName:`${i}.label`,tokens:g,children:f})]})}),d&&u&&b.jsx(ie,{themeName:`${i}.errorMessage`,tokens:g,children:u})]})},md=t=>{const e=fd();return e&&b.jsx(hd,{state:e,...t})},_i=t=>{const{id:e,label:r,name:n,placeholder:s,required:i,disabled:o=!1,errorMessage:l,ariaLabel:a,value:d,onBlur:c,onChange:u,fieldRef:f,themeName:h="textarea",tokens:v,customTheme:m}=t,g=R.useRef(null),{errorMessageProps:p,inputProps:x,labelProps:w}=V.useTextField(t,g),T={...v,isDisabled:o,isError:l!=null},I=z(`${h}.wrapper`,T,m),M=z(`${h}.input`,T,m),A=z(`${h}.label`,T,m),S=z(`${h}.container`,T,m);return b.jsxs("div",{children:[b.jsxs("div",{className:I,"aria-disabled":o,children:[r&&b.jsx("label",{className:A,...w,children:r}),b.jsx("div",{className:S,children:b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsx("textarea",{...x,ref:C=>{f==null||f(C),g.current=C},className:M,placeholder:s,disabled:o,required:i,id:e,name:n,"aria-label":a,"aria-labelledby":e,value:d,onBlur:c,onChange:u})})})]}),l&&b.jsx(ie,{themeName:`${h}.errorMessage`,tokens:T,...p,children:l})]})},gd=t=>{const{name:e,required:r,minLength:n=0,maxLength:s=99999999,validation:i}=t,{register:o,formState:l}=je.useFormContext(),a=je.get(l.errors,e),d=(a==null?void 0:a.message)??void 0,{t:c}=hn.useTranslation("components"),{ref:u,...f}=o(e,{required:r?c("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:c("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:s,message:c("FORM.ERROR.MAX_LENGTH",{length:n})},...i});return b.jsx(_i,{fieldRef:u,...f,...t,isError:!si.isEmpty(d),errorMessage:d})},ki=t=>{const{label:e,isRequired:r=!1,isDisabled:n=!1,required:s,disabled:i,errorMessage:o,fieldRef:l,children:a,themeName:d="textInput",tokens:c,customTheme:u,ariaLabel:f}=t,h=s??r,v=i??n,m=R.useRef(null),{errorMessageProps:g,inputProps:p,labelProps:x}=V.useTextField({"aria-label":f,...t,isRequired:h,isDisabled:v},m),{"aria-labelledby":w,...T}={...p,required:h,disabled:v},I={...c,isDisabled:n,isRequired:r,isError:!!o},M=z(`${d}.wrapper`,I,u),A=z(`${d}.label`,I,u),S=z(`${d}.input`,I,u),C=z(`${d}.container`,I,u);return b.jsxs("div",{children:[b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("div",{"aria-disabled":n,className:M,children:[e&&b.jsx("label",{className:A,...x,children:e}),b.jsxs("div",{className:C,children:[a,b.jsx("input",{...T,className:S,ref:P=>{l==null||l(P),m.current=P}})]})]})}),o&&b.jsx(ie,{themeName:`${d}.errorMessage`,tokens:I,...g,children:o})]})},vd=t=>{const{name:e,required:r,isRequired:n,minLength:s=0,maxLength:i=99999999,validation:o}=t,{register:l,formState:a}=je.useFormContext(),d=je.get(a.errors,e),c=(d==null?void 0:d.message)??void 0,{t:u}=hn.useTranslation("components"),{ref:f,...h}=l(e,{required:r??n?u("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:s,message:u("FORM.ERROR.MIN_LENGTH",{length:s})},maxLength:{value:i,message:u("FORM.ERROR.MAX_LENGTH",{length:s})},...o});return b.jsx(ki,{fieldRef:f,...h,...t,errorMessage:c})};function Ce(t,e){return t-e*Math.floor(t/e)}const Ni=1721426;function ze(t,e,r,n){e=Tt(t,e);let s=e-1,i=-2;return r<=2?i=0:Oe(e)&&(i=-1),Ni-1+365*s+Math.floor(s/4)-Math.floor(s/100)+Math.floor(s/400)+Math.floor((367*r-362)/12+i+n)}function Oe(t){return t%4===0&&(t%100!==0||t%400===0)}function Tt(t,e){return t==="BC"?1-e:e}function lr(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const bd={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Me{fromJulianDay(e){let r=e,n=r-Ni,s=Math.floor(n/146097),i=Ce(n,146097),o=Math.floor(i/36524),l=Ce(i,36524),a=Math.floor(l/1461),d=Ce(l,1461),c=Math.floor(d/365),u=s*400+o*100+a*4+c+(o!==4&&c!==4?1:0),[f,h]=lr(u),v=r-ze(f,h,1,1),m=2;r<ze(f,h,3,1)?m=0:Oe(h)&&(m=1);let g=Math.floor(((v+m)*12+373)/367),p=r-ze(f,h,g,1)+1;return new le(f,h,g,p)}toJulianDay(e){return ze(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return bd[Oe(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Oe(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const yd={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Xn(t,e){return e=cr(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Bi(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1-Td(e))%7;return n<0&&(n+=7),n}function zi(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function wd(t,e){return Qn(t)-Qn(e)}function Qn(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let br=null;function Fi(){return br==null&&(br=new Intl.DateTimeFormat().resolvedOptions().timeZone),br}function xd(t){return t.subtract({days:t.day-1})}const Jn=new Map;function Sd(t){if(Intl.Locale){let r=Jn.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&Jn.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function Td(t){let e=Sd(t);return e&&yd[e]||0}function Ed(t,e){let r=t.calendar.getDaysInMonth(t);return Math.ceil((Bi(xd(t),e)+r)/7)}function Zn(t){t=cr(t,new Me);let e=Tt(t.era,t.year);return Vi(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function Vi(t,e,r,n,s,i,o){let l=new Date;return l.setUTCHours(n,s,i,o),l.setUTCFullYear(t,e-1,r),l.getTime()}function es(t,e){if(e==="UTC")return 0;if(t>0&&e===Fi())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:s,hour:i,minute:o,second:l}=qi(t,e);return Vi(r,n,s,i,o,l,0)-Math.floor(t/1e3)*1e3}const ts=new Map;function qi(t,e){let r=ts.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ts.set(e,r));let n=r.formatToParts(new Date(t)),s={};for(let i of n)i.type!=="literal"&&(s[i.type]=i.value);return{year:s.era==="BC"||s.era==="B"?-s.year+1:+s.year,month:+s.month,day:+s.day,hour:s.hour==="24"?0:+s.hour,minute:+s.minute,second:+s.second}}const rs=864e5;function Pd(t,e,r,n){return(r===n?[r]:[r,n]).filter(i=>Cd(t,e,i))}function Cd(t,e,r){let n=qi(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function $d(t,e,r="compatible"){let n=Gi(t);if(e==="UTC")return Zn(n);if(e===Fi()&&r==="compatible"){n=cr(n,new Me);let a=new Date,d=Tt(n.era,n.year);return a.setFullYear(d,n.month-1,n.day),a.setHours(n.hour,n.minute,n.second,n.millisecond),a.getTime()}let s=Zn(n),i=es(s-rs,e),o=es(s+rs,e),l=Pd(n,e,s-i,s-o);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(s-i,s-o);case"compatible":case"later":return Math.max(s-i,s-o);case"reject":throw new RangeError("No such absolute time found")}}function Hi(t,e,r="compatible"){return new Date($d(t,e,r))}function Gi(t,e){let r=0,n=0,s=0,i=0;if("timeZone"in t)({hour:r,minute:n,second:s,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:s,millisecond:i}=e),new Qt(t.calendar,t.era,t.year,t.month,t.day,r,n,s,i)}function cr(t,e){if(t.calendar.identifier===e.identifier)return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,at(n),n}function Cn(t,e){let r=t.copy(),n="hour"in r?Dd(r,e):0;rn(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,nn(r),Ki(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,Md(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let s=r.calendar.getYearsInEra(r);if(r.year>s){var i,o;let a=(i=(o=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(o,r);r.year=s,r.month=a?1:r.calendar.getMonthsInYear(r),r.day=a?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function rn(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function nn(t){for(;t.month<1;)rn(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,rn(t,1)}function Md(t){for(;t.day<1;)t.month--,nn(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,nn(t)}function Ki(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function at(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Ki(t)}function Id(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function Wi(t,e){return Cn(t,Id(e))}function Ui(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),at(r),r}function Ld(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),Od(r),r}function Rd(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Lt(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Lt(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Lt(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Lt(t.hour,24),e}function Od(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function Lt(t,e){let r=t%e;return r<0&&(r+=e),r}function Dd(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Rd(t)}function Yi(t,e,r,n){let s=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),a=l.indexOf(t.era);if(a<0)throw new Error("Invalid era: "+t.era);a=De(a,r,0,l.length-1,n==null?void 0:n.round),s.era=l[a],at(s);break}case"year":var i,o;!((i=(o=s.calendar).isInverseEra)===null||i===void 0)&&i.call(o,s)&&(r=-r),s.year=De(t.year,r,-1/0,9999,n==null?void 0:n.round),s.year===-1/0&&(s.year=1),s.calendar.balanceYearMonth&&s.calendar.balanceYearMonth(s,t);break;case"month":s.month=De(t.month,r,1,t.calendar.getMonthsInYear(t),n==null?void 0:n.round);break;case"day":s.day=De(t.day,r,1,t.calendar.getDaysInMonth(t),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(s),at(s),s}function Ad(t,e,r,n){let s=t.copy();switch(e){case"hour":{let i=t.hour,o=0,l=23;if((n==null?void 0:n.hourCycle)===12){let a=i>=12;o=a?12:0,l=a?23:11}s.hour=De(i,r,o,l,n==null?void 0:n.round);break}case"minute":s.minute=De(t.minute,r,0,59,n==null?void 0:n.round);break;case"second":s.second=De(t.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":s.millisecond=De(t.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return s}function De(t,e,r,n,s=!1){if(s){t+=Math.sign(e),t<r&&(t=n);let i=Math.abs(e);e>0?t=Math.ceil(t/i)*i:t=Math.floor(t/i)*i,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function jd(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Xi(t){let e=cr(t,new Me);return`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function _d(t){return`${Xi(t)}T${jd(t)}`}function Qi(t){let e=typeof t[0]=="object"?t.shift():new Me,r;if(typeof t[0]=="string")r=t.shift();else{let o=e.getEras();r=o[o.length-1]}let n=t.shift(),s=t.shift(),i=t.shift();return[e,r,n,s,i]}var kd=new WeakMap;class le{copy(){return this.era?new le(this.calendar,this.era,this.year,this.month,this.day):new le(this.calendar,this.year,this.month,this.day)}add(e){return Cn(this,e)}subtract(e){return Wi(this,e)}set(e){return Ui(this,e)}cycle(e,r,n){return Yi(this,e,r,n)}toDate(e){return Hi(this,e)}toString(){return Xi(this)}compare(e){return zi(this,e)}constructor(...e){gn(this,kd,{writable:!0,value:void 0});let[r,n,s,i,o]=Qi(e);this.calendar=r,this.era=n,this.year=s,this.month=i,this.day=o,at(this)}}var Nd=new WeakMap;class Qt{copy(){return this.era?new Qt(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qt(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Cn(this,e)}subtract(e){return Wi(this,e)}set(e){return Ui(Ld(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return Yi(this,e,r,n);default:return Ad(this,e,r,n)}}toDate(e,r){return Hi(this,e,r)}toString(){return _d(this)}compare(e){let r=zi(this,e);return r===0?wd(this,Gi(e)):r}constructor(...e){gn(this,Nd,{writable:!0,value:void 0});let[r,n,s,i,o]=Qi(e);this.calendar=r,this.era=n,this.year=s,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,at(this)}}const nt=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Bd=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Kt=[1867,1911,1925,1988,2018],Re=["meiji","taisho","showa","heisei","reiwa"];function ns(t){const e=nt.findIndex(([r,n,s])=>t.year<r||t.year===r&&t.month<n||t.year===r&&t.month===n&&t.day<s);return e===-1?nt.length-1:e===0?0:e-1}function yr(t){let e=Kt[Re.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new le(t.year+e,t.month,t.day)}class zd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=ns(r);return new le(this,Re[n],r.year-Kt[n],r.month,r.day)}toJulianDay(e){return super.toJulianDay(yr(e))}balanceDate(e){let r=yr(e),n=ns(r);Re[n]!==e.era&&(e.era=Re[n],e.year=r.year-Kt[n]),this.constrainDate(e)}constrainDate(e){let r=Re.indexOf(e.era),n=Bd[r];if(n!=null){let[s,i,o]=n,l=s-Kt[r];e.year=Math.max(1,Math.min(l,e.year)),e.year===l&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(o,e.day)))}if(e.year===1&&r>=0){let[,s,i]=nt[r];e.month=Math.max(s,e.month),e.month===s&&(e.day=Math.max(i,e.day))}}getEras(){return Re}getYearsInEra(e){let r=Re.indexOf(e.era),n=nt[r],s=nt[r+1];if(s==null)return 9999-n[0]+1;let i=s[0]-n[0];return(e.month<s[1]||e.month===s[1]&&e.day<s[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(yr(e))}getMinimumMonthInYear(e){let r=ss(e);return r?r[1]:1}getMinimumDayInMonth(e){let r=ss(e);return r&&e.month===r[1]?r[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ss(t){if(t.year===1){let e=Re.indexOf(t.era);return nt[e]}}const Ji=-543;class Fd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=Tt(r.era,r.year);return new le(this,n-Ji,r.month,r.day)}toJulianDay(e){return super.toJulianDay(is(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(is(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function is(t){let[e,r]=lr(t.year+Ji);return new le(e,r,t.month,t.day)}const Jt=1911;function Zi(t){return t.era==="minguo"?t.year+Jt:1-t.year+Jt}function as(t){let e=t-Jt;return e>0?["minguo",e]:["before_minguo",1-e]}class Vd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=Tt(r.era,r.year),[s,i]=as(n);return new le(this,s,i,r.month,r.day)}toJulianDay(e){return super.toJulianDay(os(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[r,n]=as(Zi(e));e.era=r,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(os(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-Jt}constructor(...e){super(...e),this.identifier="roc"}}function os(t){let[e,r]=lr(Zi(t));return new le(e,r,t.month,t.day)}const qd=1948321;function Hd(t){let e=t>0?t-474:t-473,r=Ce(e,2820)+474;return Ce((r+38)*31,128)<31}function Rt(t,e,r){let n=t>0?t-474:t-473,s=Ce(n,2820)+474,i=e<=7?31*(e-1):30*(e-1)+6;return qd-1+1029983*Math.floor(n/2820)+365*(s-1)+Math.floor((31*s-5)/128)+i+r}class Gd{fromJulianDay(e){let r=e-Rt(475,1,1),n=Math.floor(r/1029983),s=Ce(r,1029983),i=s===1029982?2820:Math.floor((128*s+46878)/46751),o=474+2820*n+i;o<=0&&o--;let l=e-Rt(o,1,1)+1,a=l<=186?Math.ceil(l/31):Math.ceil((l-6)/31),d=e-Rt(o,a,1)+1;return new le(this,o,a,d)}toJulianDay(e){return Rt(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||Hd(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const wr=78,ls=80;class Kd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=r.year-wr,s=e-ze(r.era,r.year,1,1),i;s<ls?(n--,i=Oe(r.year-1)?31:30,s+=i+155+90+10):(i=Oe(r.year)?31:30,s-=ls);let o,l;if(s<i)o=1,l=s+1;else{let a=s-i;a<155?(o=Math.floor(a/31)+2,l=a%31+1):(a-=155,o=Math.floor(a/30)+7,l=a%30+1)}return new le(this,n,o,l)}toJulianDay(e){let r=e.year+wr,[n,s]=lr(r),i,o;return Oe(s)?(i=31,o=ze(n,s,3,21)):(i=30,o=ze(n,s,3,22)),e.month===1?o+e.day-1:(o+=i+Math.min(e.month-2,5)*31,e.month>=8&&(o+=(e.month-7)*30),o+=e.day-1,o)}getDaysInMonth(e){return e.month===1&&Oe(e.year+wr)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const Zt=1948440,cs=1948439,ve=1300,Je=1600,Wd=460322;function er(t,e,r,n){return n+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function ea(t,e,r){let n=Math.floor((30*(r-e)+10646)/10631),s=Math.min(12,Math.ceil((r-(29+er(e,n,1,1)))/29.5)+1),i=r-er(e,n,s,1)+1;return new le(t,n,s,i)}function ds(t){return(14+11*t)%30<11}class $n{fromJulianDay(e){return ea(this,Zt,e)}toJulianDay(e){return er(Zt,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&ds(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return ds(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Ud extends $n{fromJulianDay(e){return ea(this,cs,e)}toJulianDay(e){return er(cs,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const Yd="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let sn,st;function Wt(t){return Wd+st[t-ve]}function pt(t,e){let r=t-ve,n=1<<11-(e-1);return sn[r]&n?30:29}function us(t,e){let r=Wt(t);for(let n=1;n<e;n++)r+=pt(t,n);return r}function fs(t){return st[t+1-ve]-st[t-ve]}class Xd extends $n{fromJulianDay(e){let r=e-Zt,n=Wt(ve),s=Wt(Je);if(r<n||r>s)return super.fromJulianDay(e);{let i=ve-1,o=1,l=1;for(;l>0;){i++,l=r-Wt(i)+1;let a=fs(i);if(l===a){o=12;break}else if(l<a){let d=pt(i,o);for(o=1;l>d;)l-=d,o++,d=pt(i,o);break}}return new le(this,i,o,r-us(i,o)+1)}}toJulianDay(e){return e.year<ve||e.year>Je?super.toJulianDay(e):Zt+us(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<ve||e.year>Je?super.getDaysInMonth(e):pt(e.year,e.month)}getDaysInYear(e){return e.year<ve||e.year>Je?super.getDaysInYear(e):fs(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",sn||(sn=new Uint16Array(Uint8Array.from(atob(Yd),e=>e.charCodeAt(0)).buffer)),!st){st=new Uint32Array(Je-ve+1);let e=0;for(let r=ve;r<=Je;r++){st[r-ve]=e;for(let n=1;n<=12;n++)e+=pt(r,n)}}}}const ps=347997,ta=1080,ra=24*ta,Qd=29,Jd=12*ta+793,Zd=Qd*ra+Jd;function Be(t){return Ce(t*7+1,19)<7}function Ut(t){let e=Math.floor((235*t-234)/19),r=12084+13753*e,n=e*29+Math.floor(r/25920);return Ce(3*(n+1),7)<3&&(n+=1),n}function eu(t){let e=Ut(t-1),r=Ut(t);return Ut(t+1)-r===356?2:r-e===382?1:0}function vt(t){return Ut(t)+eu(t)}function na(t){return vt(t+1)-vt(t)}function tu(t){let e=na(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ot(t,e){if(e>=6&&!Be(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let r=tu(t);return e===2?r===2?30:29:e===3?r===0?29:30:e===6?Be(t)?30:0:30}class ru{fromJulianDay(e){let r=e-ps,n=r*ra/Zd,s=Math.floor((19*n+234)/235)+1,i=vt(s),o=Math.floor(r-i);for(;o<1;)s--,i=vt(s),o=Math.floor(r-i);let l=1,a=0;for(;a<o;)a+=Ot(s,l),l++;l--,a-=Ot(s,l);let d=o-a;return new le(this,s,l,d)}toJulianDay(e){let r=vt(e.year);for(let n=1;n<e.month;n++)r+=Ot(e.year,n);return r+e.day+ps}getDaysInMonth(e){return Ot(e.year,e.month)}getMonthsInYear(e){return Be(e.year)?13:12}getDaysInYear(e){return na(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,r){r.year!==e.year&&(Be(r.year)&&!Be(e.year)&&r.month>6?e.month--:!Be(r.year)&&Be(e.year)&&r.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const an=1723856,hs=1824665,on=5500;function tr(t,e,r,n){return t+365*e+Math.floor(e/4)+30*(r-1)+n-1}function Mn(t,e){let r=Math.floor(4*(e-t)/1461),n=1+Math.floor((e-tr(t,r,1,1))/30),s=e+1-tr(t,r,n,1);return[r,n,s]}function sa(t){return Math.floor(t%4/3)}function ia(t,e){return e%13!==0?30:sa(t)+5}class In{fromJulianDay(e){let[r,n,s]=Mn(an,e),i="AM";return r<=0&&(i="AA",r+=on),new le(this,i,r,n,s)}toJulianDay(e){let r=e.year;return e.era==="AA"&&(r-=on),tr(an,r,e.month,e.day)}getDaysInMonth(e){return ia(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+sa(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class nu extends In{fromJulianDay(e){let[r,n,s]=Mn(an,e);return r+=on,new le(this,"AA",r,n,s)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class su extends In{fromJulianDay(e){let[r,n,s]=Mn(hs,e),i="CE";return r<=0&&(i="BCE",r=1-r),new le(this,i,r,n,s)}toJulianDay(e){let r=e.year;return e.era==="BCE"&&(r=1-r),tr(hs,r,e.month,e.day)}getDaysInMonth(e){let r=e.year;return e.era==="BCE"&&(r=1-r),ia(r,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Ln(t){switch(t){case"buddhist":return new Fd;case"ethiopic":return new In;case"ethioaa":return new nu;case"coptic":return new su;case"hebrew":return new ru;case"indian":return new Kd;case"islamic-civil":return new $n;case"islamic-tbla":return new Ud;case"islamic-umalqura":return new Xd;case"japanese":return new zd;case"persian":return new Gd;case"roc":return new Vd;case"gregory":default:return new Me}}function iu({themeName:t="calendar",tokens:e,state:r,date:n}){const s=R.useRef(null),{cellProps:i,buttonProps:o,isSelected:l,isOutsideVisibleRange:a,isDisabled:d,formattedDate:c,isInvalid:u}=ar.useCalendarCell({date:n},r,s),f=r!=null&&r.highlightedRange?Xn(n,r==null?void 0:r.highlightedRange.start):l,h=r!=null&&r.highlightedRange?Xn(n,r==null?void 0:r.highlightedRange.end):l,{locale:v}=V.useLocale(),m=Bi(n,v),g=l&&(f||m===0||n.day===1),p=l&&(h||m===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:x,isFocusVisible:w}=we.useFocusRing(),T=z(`${t}.cellContainer`,{...e,isFocusVisible:w}),I=z(`${t}.cell`,{...e,isSelected:l,isInvalid:u,isDisabled:d,isRoundedLeft:g,isRoundedRight:p}),M=z(`${t}.cellDate`,{...e,isSelected:l,isInvalid:u,isDisabled:d,isSelectionStart:f,isSelectionEnd:h});return b.jsx("td",{...i,"aria-disabled":!1,className:T,children:b.jsx("div",{...F.mergeProps(o,x),ref:s,hidden:a,className:I,children:b.jsx("div",{className:M,children:c})})})}function aa({themeName:t="calendar",customTheme:e,tokens:r,state:n,...s}){const{locale:i}=Ge.useLocale(),{gridProps:o,headerProps:l,weekDays:a}=ar.useCalendarGrid({...s},n),d=Ed(n.visibleRange.start,i),c=z(`${t}.calendarTable`,r),u=z(`${t}.dayLabel`,r);return b.jsxs("table",{...o,cellPadding:"0",className:c,children:[b.jsx("thead",{...l,children:b.jsx("tr",{children:a.map(f=>b.jsx("th",{className:u,children:f},`${f}`))})}),b.jsx("tbody",{children:[...new Array(d).keys()].map(f=>b.jsx("tr",{children:n.getDatesInWeek(f).map((h,v)=>h?b.jsx(iu,{state:n,date:h},h==null?void 0:h.day):b.jsx("td",{},v))},f))})]})}function oa({buttons:t,tokens:e,customTheme:r,themeName:n="calendar",...s}){var m,g;const{locale:i}=Ge.useLocale(),o=ii.useCalendarState({...s,locale:i,createCalendar:Ln}),l=R.useRef(null),{calendarProps:a,prevButtonProps:d,nextButtonProps:c,title:u}=ar.useCalendar({...s},o),f=z(`${n}.container`,e),h=z(`${n}.header`,e),v=z(`${n}.navigationButtonsContainer`,e);return b.jsxs("div",{...a,ref:l,className:f,children:[b.jsxs("div",{className:h,children:[b.jsx(ie,{as:"p",tokens:{size:"h6"},children:u}),b.jsxs("div",{className:v,children:[b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:b.jsx(oe,{icon:((m=t==null?void 0:t.buttonPrev)==null?void 0:m.icon)??"ArrowLeft"})}),b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...c,handlePress:c==null?void 0:c.onPress,children:b.jsx(oe,{icon:((g=t==null?void 0:t.buttonNext)==null?void 0:g.icon)??"ArrowRight"})})]})]}),b.jsx(aa,{state:o})]})}function la({title:t,children:e,...r}){const n=R.useRef(null),{dialogProps:s}=V.useDialog(r,n);return b.jsx("div",{...s,ref:n,children:e})}function ca({themeName:t="datePicker",tokens:e,...r}){const n=xo.useRef(null),{state:s,children:i}={...r},{popoverProps:o,underlayProps:l}=Ct.usePopover({...r,popoverRef:n},s),a=z(`${t}.calendarUnderlay`,e),d=z(`${t}.calendarPopover`,e);return b.jsxs(Ct.Overlay,{children:[b.jsx("div",{...l,className:a}),b.jsxs("div",{...o,ref:n,className:d,children:[b.jsx(Ct.DismissButton,{onDismiss:s.close}),i,b.jsx(Ct.DismissButton,{onDismiss:s.close})]})]})}function au({segment:t,state:e}){const r=R.useRef(null),{segmentProps:n}=ir.useDateSegment(t,e,r),s=z("datePicker.dateSegment");return b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsxs("div",{...n,ref:r,className:s,children:[b.jsx("span",{"aria-hidden":"true",style:{visibility:t.isPlaceholder?"visible":"hidden",height:t.isPlaceholder?"":0,pointerEvents:"none",display:t.isPlaceholder?"block":"none"},children:t.placeholder}),t.isPlaceholder?"":t.text]})})}function rt(t){const{locale:e}=Ge.useLocale(),r=mn.useDateFieldState({...t,locale:e,createCalendar:Ln}),n=R.useRef(null),{fieldProps:s}=ir.useDateField(t,r,n);return b.jsx("div",{...s,ref:n,className:"flex",children:r.segments.map((i,o)=>b.jsx(au,{segment:i,state:r},o))})}function ou({popoverPlacement:t="bottom start",tokens:e,customTheme:r,themeName:n="datePicker",icon:s="ArrowDown",description:i,buttonLabel:o,...l}){const a=mn.useDatePickerState({...l}),d=R.useRef(null),{groupProps:c,fieldProps:u,labelProps:f,descriptionProps:h,buttonProps:v,dialogProps:m,calendarProps:g}=ir.useDatePicker({...l},a,d),{label:p}={...l},x=z(`${n}.container`,e),w=z(`${n}.dateField`,e),T=z(`${n}.label`,e);return b.jsxs("div",{className:x,children:[p&&b.jsx("span",{...f,children:p}),i&&b.jsx("div",{...h,children:i}),b.jsx("div",{...c,ref:d,children:b.jsxs(ge,{themeName:`${n}.button`,tokens:{...e},type:"button",...v,handlePress:v.onPress,children:[o&&b.jsx("p",{className:T,children:o}),b.jsxs("div",{className:w,children:[b.jsx(rt,{...u}),a.validationState==="invalid"&&"❌"]}),b.jsx(oe,{themeName:`${n}.icon`,tokens:{...e},icon:s})]})}),a.isOpen&&b.jsx(ca,{triggerRef:d,state:a,placement:t,children:b.jsxs(la,{...m,children:[b.jsxs("div",{children:[b.jsx(rt,{...u}),a.validationState==="invalid"&&"❌"]}),b.jsx(oa,{...g})]})})]})}function lu({buttons:t,tokens:e,customTheme:r,themeName:n="calendar",...s}){var m,g;const{locale:i}=Ge.useLocale(),o=ii.useRangeCalendarState({...s,locale:i,createCalendar:Ln}),l=R.useRef(null),{calendarProps:a,prevButtonProps:d,nextButtonProps:c,title:u}=ar.useRangeCalendar({...s},o,l),f=z(`${n}.container`,e),h=z(`${n}.header`,e),v=z(`${n}.navigationButtonsContainer`,e);return b.jsxs("div",{...a,ref:l,className:f,children:[b.jsxs("div",{className:h,children:[b.jsx(ie,{as:"p",tokens:{size:"h6"},children:u}),b.jsxs("div",{className:v,children:[b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:b.jsx(oe,{icon:((m=t==null?void 0:t.buttonPrev)==null?void 0:m.icon)??"ArrowLeft"})}),b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...c,handlePress:c==null?void 0:c.onPress,children:b.jsx(oe,{icon:((g=t==null?void 0:t.buttonNext)==null?void 0:g.icon)??"ArrowRight"})})]})]}),b.jsx(aa,{state:o})]})}function cu(t){const e=mn.useDateRangePickerState(t),r=R.useRef(null),{labelProps:n,descriptionProps:s,groupProps:i,startFieldProps:o,endFieldProps:l,buttonProps:a,dialogProps:d,calendarProps:c}=ir.useDateRangePicker(t,e,r),{label:u,buttonLabel:f,description:h,themeName:v="datePicker",tokens:m,popoverPlacement:g,icon:p}=t,x=z(`${v}.container`,m),w=z(`${v}.dateField`,m),T=z(`${v}.label`,m);return b.jsxs("div",{className:x,children:[u&&b.jsx("span",{...n,children:u}),h&&b.jsx("div",{...s,children:h}),b.jsx("div",{...i,ref:r,children:b.jsxs(ge,{themeName:`${v}.button`,tokens:{...m},type:"button",...a,handlePress:a.onPress,children:[f&&b.jsx("p",{className:T,children:f}),b.jsxs("div",{className:w,children:[b.jsx(rt,{...o})," -",b.jsx(rt,{...l}),e.validationState==="invalid"&&"❌"]}),b.jsx(oe,{themeName:`${v}.icon`,tokens:{...m},icon:p??"ArrowDown"})]})}),e.isOpen&&b.jsx(ca,{triggerRef:r,state:e,placement:g,children:b.jsxs(la,{...d,children:[b.jsxs("div",{className:w,children:[b.jsx(rt,{...o})," -",b.jsx(rt,{...l}),e.validationState==="invalid"&&"❌"]}),b.jsx(lu,{...c})]})})]})}const da=R.createContext(null),ua=t=>{const{children:e,state:r}=t;return b.jsx(da.Provider,{value:r,children:e})};function fa(){const t=R.useContext(da);return t!==null?t:null}const pa=t=>{const{id:e,label:r,themeName:n="radio",tokens:s,customTheme:i,value:o,fieldRef:l}=t,a=fa(),d=R.useRef(null),{inputProps:c}=V.useRadio(t,a,d),u=(a==null?void 0:a.selectedValue)===o,{focusProps:f}=V.useFocusRing(),h={...s,selected:u},v=z(`${n}.label`,h,i),m=z(`${n}.radio`,h,i),g=z(`${n}.selectedMark`,h,i);return b.jsx("div",{children:b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("label",{htmlFor:e,className:v,children:[b.jsx(V.VisuallyHidden,{children:b.jsx("input",{type:"radio",...V.mergeProps(f,c),ref:p=>{l==null||l(p),d.current=p}})}),b.jsx("div",{className:m,"aria-checked":u,role:"radio","aria-labelledby":e,children:b.jsx("div",{className:g})}),b.jsx(ie,{themeName:`${n}.label`,children:r})]})})})},du=t=>{const{name:e,required:r}=t,{register:n,formState:s}=je.useFormContext(),i=je.get(s.errors,e),o=(i==null?void 0:i.message)??void 0,{t:l}=hn.useTranslation("components"),{ref:a,...d}=n(e,{required:r?l("FORM.ERROR.REQUIRED")??"required":!1});return b.jsx(pa,{fieldRef:a,...d,...t,isError:!pn.isEmpty(o),errorMessage:o})};let uu=Math.round(Math.random()*1e10),fu=0;function pu(t){let e=R.useMemo(()=>t.name||`radio-group-${uu}-${++fu}`,[t.name]);var r;let[n,s]=Ai(t.value,(r=t.defaultValue)!==null&&r!==void 0?r:null,t.onChange),[i,o]=R.useState(null),l=Di({...t,value:n}),a=c=>{!t.isReadOnly&&!t.isDisabled&&(s(c),l.commitValidation())},d=l.displayValidation.isInvalid;return{...l,name:e,selectedValue:n,setSelectedValue:a,lastFocusedValue:i,setLastFocusedValue:o,isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,validationState:t.validationState||(d?"invalid":null),isInvalid:d}}const hu=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:s=!1,children:i,themeName:o="radioGroup",tokens:l}=t,a=pu(t),{radioGroupProps:d}=V.useRadioGroup(t,a),c={...l,isDisabled:s};return b.jsxs(J,{...d,"aria-disabled":s,themeName:`${o}.radioGroup`,tokens:c,children:[e&&b.jsx(ie,{tokens:{size:"h6"},children:e}),b.jsx(J,{themeName:`${o}.radioGroupItemsGroup`,children:b.jsx(ua,{state:a,children:i})}),r&&n&&b.jsx(ie,{tokens:{isError:!0},children:n})]})},[ct,mu]=yi();function gu({children:t,defaultSelectedKey:e,defaultIsOpen:r,onCloseCallback:n,onOpenCallback:s,tabs:i,openBtn:o,closeBtn:l,...a}){const d=$e.useTabListState({...a,children:i,defaultSelectedKey:e}),c=R.useMemo(()=>({openBtn:o,closeBtn:l,tabState:d,defaultSelectedKey:e}),[o,l,d,e]);return b.jsx(mu,{value:c,children:b.jsx(Ci,{onCloseCallback:()=>{var u;n==null||n(),(u=d==null?void 0:d.setSelectedKey)==null||u.call(d,e)},onOpenCallback:s,defaultIsOpen:r,defaultSelectedKey:e.toString(),children:t})})}const Rn=({isVisible:t,children:e,themeName:r,tokens:n,customTheme:s,...i})=>{const o=me.useTransition(t,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:me.config.stiff}),l=z(r,n,s);return o((a,d)=>d&&b.jsx(me.animated.div,{className:l,style:a,...i,children:e}))},vu=new WeakMap;function ms(t,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${vu.get(t)}-${r}-${e}`}function bu(t,e,r){let n=we.useHasTabbableChild(r)?void 0:0;var s;const i=ms(e,(s=t.id)!==null&&s!==void 0?s:e==null?void 0:e.selectedKey,"tabpanel"),o=F.useLabels({...t,id:i,"aria-labelledby":ms(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:F.mergeProps(o,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}function yu({state:t,customTheme:e,themeName:r="tabPanel",tokens:n,...s}){var l;const i=R.useRef(null),{tabPanelProps:o}=bu(s,t,i);return b.jsx(Rn,{isVisible:!0,children:b.jsx(Ke,{themeName:`${r}`,tokens:n,customTheme:e,...o,ref:i,children:(l=t.selectedItem)==null?void 0:l.props.children})})}const ha=t=>{var r;const{tabState:e}=ct();return R.createElement(yu,{...t,key:(r=e.selectedItem)==null?void 0:r.key,state:e})},ma=t=>{var d;const{themeName:e,tokens:r,customTheme:n,children:s,beforeTabContent:i,afterTabContent:o}=t,{tabState:l,defaultSelectedKey:a}=ct();return b.jsxs(b.Fragment,{children:[b.jsx(J,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,children:s}),((d=l==null?void 0:l.selectedKey)==null?void 0:d.toString())===a?null:b.jsxs(J,{themeName:`${e}.tabWrapper`,tokens:r,customTheme:n,children:[i!==null&&i,b.jsx(ha,{themeName:`${e}.tabPanel`,tokens:r,customTheme:n}),o!==null&&o]})]})},wu=t=>{const{id:e="main-menu",children:r,PanelTransition:n=Rn,themeName:s,tokens:i,customTheme:o,...l}=t,{overlayState:a}=Tn(),{closeBtn:d}=ct();return b.jsx(n,{isVisible:a==null?void 0:a.isOpen,children:b.jsxs(J,{themeName:`${s}.wrapper`,children:[d&&d(),b.jsx(J,{themeName:`${s}.container`,children:b.jsx(ma,{id:e,themeName:`${s}.innerContent`,tokens:i,customTheme:o,...l,children:r})})]})})},xu=t=>{const{id:e="main-menu",children:r,TransitionAnimation:n,PanelTransition:s,themeName:i,tokens:o,customTheme:l,...a}=t,{closeBtn:d,tabState:c,defaultSelectedKey:u}=ct();return b.jsx(Mi,{themeName:`${i}.sidePanel`,tokens:o,customTheme:l,closeBtnRender:d,id:e,TransitionAnimation:n,PanelTransition:s,onCloseCallBack:()=>{c==null||c.setSelectedKey(u)},children:b.jsx(ma,{id:e,themeName:i,tokens:o,customTheme:l,...a,children:r})})};function Su(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ln={exports:{}},wt={};wt._=wt._interop_require_default=Tu;function Tu(t){return t&&t.__esModule?t:{default:t}}var Dt={exports:{}},xr={},gs;function ga(){return gs||(gs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var a in l)Object.defineProperty(o,a,{enumerable:!0,get:l[a]})}e(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s},assign:function(){return i}});function r(o){const l={};return o.forEach((a,d)=>{typeof l[d]>"u"?l[d]=a:Array.isArray(l[d])?l[d].push(a):l[d]=[l[d],a]}),l}function n(o){return typeof o=="string"||typeof o=="number"&&!isNaN(o)||typeof o=="boolean"?String(o):""}function s(o){const l=new URLSearchParams;return Object.entries(o).forEach(a=>{let[d,c]=a;Array.isArray(c)?c.forEach(u=>l.append(d,n(u))):l.set(d,n(c))}),l}function i(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),d=1;d<l;d++)a[d-1]=arguments[d];return a.forEach(c=>{Array.from(c.keys()).forEach(u=>o.delete(u)),c.forEach((u,f)=>o.append(f,u))}),o}}(xr)),xr}var Sr={},At={},vs;function Eu(){if(vs)return At;vs=1;function t(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,s=new WeakMap;return(t=function(i){return i?s:n})(r)}At._=At._interop_require_wildcard=e;function e(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var s=t(n);if(s&&s.has(r))return s.get(r);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in r)if(l!=="default"&&Object.prototype.hasOwnProperty.call(r,l)){var a=o?Object.getOwnPropertyDescriptor(r,l):null;a&&(a.get||a.set)?Object.defineProperty(i,l,a):i[l]=r[l]}return i.default=r,s&&s.set(r,i),i}return At}var bs;function va(){return bs||(bs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,d){for(var c in d)Object.defineProperty(a,c,{enumerable:!0,get:d[c]})}e(t,{formatUrl:function(){return i},urlObjectKeys:function(){return o},formatWithValidation:function(){return l}});const n=Eu()._(ga()),s=/https?|ftp|gopher|file/;function i(a){let{auth:d,hostname:c}=a,u=a.protocol||"",f=a.pathname||"",h=a.hash||"",v=a.query||"",m=!1;d=d?encodeURIComponent(d).replace(/%3A/i,":")+"@":"",a.host?m=d+a.host:c&&(m=d+(~c.indexOf(":")?"["+c+"]":c),a.port&&(m+=":"+a.port)),v&&typeof v=="object"&&(v=String(n.urlQueryToSearchParams(v)));let g=a.search||v&&"?"+v||"";return u&&!u.endsWith(":")&&(u+=":"),a.slashes||(!u||s.test(u))&&m!==!1?(m="//"+(m||""),f&&f[0]!=="/"&&(f="/"+f)):m||(m=""),h&&h[0]!=="#"&&(h="#"+h),g&&g[0]!=="?"&&(g="?"+g),f=f.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+u+m+f+g+h}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(a){return process.env.NODE_ENV==="development"&&a!==null&&typeof a=="object"&&Object.keys(a).forEach(d=>{o.includes(d)||console.warn("Unknown key passed via urlObject into url.format: "+d)}),i(a)}}(Sr)),Sr}var Tr={},ys;function Pu(){return ys||(ys=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(r,n){const s={};return Object.keys(r).forEach(i=>{n.includes(i)||(s[i]=r[i])}),s}}(Tr)),Tr}var Er={},ws;function dr(){return ws||(ws=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(T,I){for(var M in I)Object.defineProperty(T,M,{enumerable:!0,get:I[M]})}e(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return o},getURL:function(){return l},getDisplayName:function(){return a},isResSent:function(){return d},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return u},SP:function(){return f},ST:function(){return h},DecodeError:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return p},MiddlewareNotFoundError:function(){return x},stringifyError:function(){return w}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(T){let I=!1,M;return function(){for(var A=arguments.length,S=new Array(A),C=0;C<A;C++)S[C]=arguments[C];return I||(I=!0,M=T(...S)),M}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=T=>s.test(T);function o(){const{protocol:T,hostname:I,port:M}=window.location;return T+"//"+I+(M?":"+M:"")}function l(){const{href:T}=window.location,I=o();return T.substring(I.length)}function a(T){return typeof T=="string"?T:T.displayName||T.name||"Unknown"}function d(T){return T.finished||T.headersSent}function c(T){const I=T.split("?");return I[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(I[1]?"?"+I.slice(1).join("?"):"")}async function u(T,I){if(process.env.NODE_ENV!=="production"){var M;if((M=T.prototype)!=null&&M.getInitialProps){const C='"'+a(T)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(C)}}const A=I.res||I.ctx&&I.ctx.res;if(!T.getInitialProps)return I.ctx&&I.Component?{pageProps:await u(I.Component,I.ctx)}:{};const S=await T.getInitialProps(I);if(A&&d(A))return S;if(!S){const C='"'+a(T)+'.getInitialProps()" should resolve to an object. But found "'+S+'" instead.';throw new Error(C)}return process.env.NODE_ENV!=="production"&&Object.keys(S).length===0&&!I.ctx&&console.warn(""+a(T)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),S}const f=typeof performance<"u",h=f&&["mark","measure","getEntriesByName"].every(T=>typeof performance[T]=="function");class v extends Error{}class m extends Error{}class g extends Error{constructor(I){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+I}}class p extends Error{constructor(I,M){super(),this.message="Failed to load static file for page: "+I+" "+M}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(T){return JSON.stringify({message:T.message,stack:T.stack})}}(Er)),Er}var jt={exports:{}},Pr={},xs;function ba(){return xs||(xs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}}(Pr)),Pr}var Cr={},Ss;function On(){return Ss||(Ss=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(n<0||s<n);return i||n>-1?{pathname:r.substring(0,i?s:n),query:i?r.substring(s,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Cr)),Cr}var Ts;function ur(){return Ts||(Ts=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=ba(),n=On(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:o,query:l,hash:a}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(o)?""+(0,r.removeTrailingSlash)(o)+l+a:o.endsWith("/")?""+o+l+a:o+"/"+l+a:""+(0,r.removeTrailingSlash)(o)+l+a};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(jt,jt.exports)),jt.exports}var $r={},_t={exports:{}},Mr={},Es;function ya(){return Es||(Es=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=On();function r(n,s){if(typeof n!="string")return!1;const{pathname:i}=(0,e.parsePath)(n);return i===s||i.startsWith(s+"/")}}(Mr)),Mr}var Ps;function Cu(){return Ps||(Ps=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=ya(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,n)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(_t,_t.exports)),_t.exports}var Cs;function wa(){return Cs||(Cs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return n}});const e=dr(),r=Cu();function n(s){if(!(0,e.isAbsoluteUrl)(s))return!0;try{const i=(0,e.getLocationOrigin)(),o=new URL(s,i);return o.origin===i&&(0,r.hasBasePath)(o.pathname)}catch{return!1}}}($r)),$r}var Ir={},Lr={},$s;function $u(){return $s||($s=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class e{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const o=i.map(l=>this.children.get(l)._smoosh(""+s+l+"/")).reduce((l,a)=>[...l,...a],[]);if(this.slugName!==null&&o.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const l=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+l+'" and "'+l+"[[..."+this.optionalRestSlugName+']]").');o.unshift(l)}return this.restSlugName!==null&&o.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&o.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),o}_insert(s,i,o){if(s.length===0){this.placeholder=!1;return}if(o)throw new Error("Catch-all must be the last part of the URL.");let l=s[0];if(l.startsWith("[")&&l.endsWith("]")){let c=function(u,f){if(u!==null&&u!==f)throw new Error("You cannot use different slug names for the same dynamic path ('"+u+"' !== '"+f+"').");i.forEach(h=>{if(h===f)throw new Error('You cannot have the same slug name "'+f+'" repeat within a single dynamic path');if(h.replace(/\W/g,"")===l.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+h+'" and "'+f+'" differ only by non-word symbols within a single dynamic path')}),i.push(f)},a=l.slice(1,-1),d=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),d=!0),a.startsWith("...")&&(a=a.substring(3),o=!0),a.startsWith("[")||a.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+a+"').");if(a.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+a+"').");if(o)if(d){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');c(this.optionalRestSlugName,a),this.optionalRestSlugName=a,l="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');c(this.restSlugName,a),this.restSlugName=a,l="[...]"}else{if(d)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');c(this.slugName,a),this.slugName=a,l="[]"}}this.children.has(l)||this.children.set(l,new e),this.children.get(l)._insert(s.slice(1),i,o)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const s=new e;return n.forEach(i=>s.insert(i)),s.smoosh()}}(Lr)),Lr}var Rr={},Or={},Dr={},Ar={},Ms;function Mu(){return Ms||(Ms=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.startsWith("/")?r:"/"+r}}(Ar)),Ar}var jr={},Is;function Iu(){return Is||(Is=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isGroupSegment",{enumerable:!0,get:function(){return e}});function e(r){return r[0]==="("&&r.endsWith(")")}}(jr)),jr}var Ls;function Lu(){return Ls||(Ls=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var a in l)Object.defineProperty(o,a,{enumerable:!0,get:l[a]})}e(t,{normalizeAppPath:function(){return s},normalizeRscURL:function(){return i}});const r=Mu(),n=Iu();function s(o){return(0,r.ensureLeadingSlash)(o.split("/").reduce((l,a,d,c)=>!a||(0,n.isGroupSegment)(a)||a[0]==="@"||(a==="page"||a==="route")&&d===c.length-1?l:l+"/"+a,""))}function i(o){return o.replace(/\.rsc($|\?)/,"$1")}}(Dr)),Dr}var Rs;function xa(){return Rs||(Rs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var a in l)Object.defineProperty(o,a,{enumerable:!0,get:l[a]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=Lu(),n=["(..)(..)","(.)","(..)","(...)"];function s(o){return o.split("/").find(l=>n.find(a=>l.startsWith(a)))!==void 0}function i(o){let l,a,d;for(const c of o.split("/"))if(a=n.find(u=>c.startsWith(u)),a){[l,d]=o.split(a,2);break}if(!l||!a||!d)throw new Error(`Invalid interception route: ${o}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(l=(0,r.normalizeAppPath)(l),a){case"(.)":l==="/"?d=`/${d}`:d=l+"/"+d;break;case"(..)":if(l==="/")throw new Error(`Invalid interception route: ${o}. Cannot use (..) marker at the root level, use (.) instead.`);d=l.split("/").slice(0,-1).concat(d).join("/");break;case"(...)":d="/"+d;break;case"(..)(..)":const c=l.split("/");if(c.length<=2)throw new Error(`Invalid interception route: ${o}. Cannot use (..)(..) marker at the root level or one level up.`);d=c.slice(0,-2).concat(d).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:l,interceptedRoute:d}}}(Or)),Or}var Os;function Ru(){return Os||(Os=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const e=xa(),r=/\/\[[^/]+?\](?=\/|$)/;function n(s){return(0,e.isInterceptionRouteAppPath)(s)&&(s=(0,e.extractInterceptionRouteInformation)(s).interceptedRoute),r.test(s)}}(Rr)),Rr}var Ds;function Ou(){return Ds||(Ds=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,i){for(var o in i)Object.defineProperty(s,o,{enumerable:!0,get:i[o]})}e(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=$u(),n=Ru()}(Ir)),Ir}var _r={},kr={},As;function Du(){return As||(As=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const e=dr();function r(n){let{re:s,groups:i}=n;return o=>{const l=s.exec(o);if(!l)return!1;const a=c=>{try{return decodeURIComponent(c)}catch{throw new e.DecodeError("failed to decode param")}},d={};return Object.keys(i).forEach(c=>{const u=i[c],f=l[u.pos];f!==void 0&&(d[c]=~f.indexOf("/")?f.split("/").map(h=>a(h)):u.repeat?[a(f)]:a(f))}),d}}}(kr)),kr}var Nr={},Br={},js;function Au(){return js||(js=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const e=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(s){return e.test(s)?s.replace(r,"\\$&"):s}}(Br)),Br}var _s;function ju(){return _s||(_s=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(m,g){for(var p in g)Object.defineProperty(m,p,{enumerable:!0,get:g[p]})}e(t,{getRouteRegex:function(){return d},getNamedRouteRegex:function(){return h},getNamedMiddlewareRegex:function(){return v}});const r=xa(),n=Au(),s=ba(),i="nxtP",o="nxtI";function l(m){const g=m.startsWith("[")&&m.endsWith("]");g&&(m=m.slice(1,-1));const p=m.startsWith("...");return p&&(m=m.slice(3)),{key:m,repeat:p,optional:g}}function a(m){const g=(0,s.removeTrailingSlash)(m).slice(1).split("/"),p={};let x=1;return{parameterizedRoute:g.map(w=>{const T=r.INTERCEPTION_ROUTE_MARKERS.find(M=>w.startsWith(M)),I=w.match(/\[((?:\[.*\])|.+)\]/);if(T&&I){const{key:M,optional:A,repeat:S}=l(I[1]);return p[M]={pos:x++,repeat:S,optional:A},"/"+(0,n.escapeStringRegexp)(T)+"([^/]+?)"}else if(I){const{key:M,repeat:A,optional:S}=l(I[1]);return p[M]={pos:x++,repeat:A,optional:S},A?S?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(w)}).join(""),groups:p}}function d(m){const{parameterizedRoute:g,groups:p}=a(m);return{re:new RegExp("^"+g+"(?:/)?$"),groups:p}}function c(){let m=0;return()=>{let g="",p=++m;for(;p>0;)g+=String.fromCharCode(97+(p-1)%26),p=Math.floor((p-1)/26);return g}}function u(m){let{interceptionMarker:g,getSafeRouteKey:p,segment:x,routeKeys:w,keyPrefix:T}=m;const{key:I,optional:M,repeat:A}=l(x);let S=I.replace(/\W/g,"");T&&(S=""+T+S);let C=!1;(S.length===0||S.length>30)&&(C=!0),isNaN(parseInt(S.slice(0,1)))||(C=!0),C&&(S=p()),T?w[S]=""+T+I:w[S]=I;const P=g?(0,n.escapeStringRegexp)(g):"";return A?M?"(?:/"+P+"(?<"+S+">.+?))?":"/"+P+"(?<"+S+">.+?)":"/"+P+"(?<"+S+">[^/]+?)"}function f(m,g){const p=(0,s.removeTrailingSlash)(m).slice(1).split("/"),x=c(),w={};return{namedParameterizedRoute:p.map(T=>{const I=r.INTERCEPTION_ROUTE_MARKERS.some(A=>T.startsWith(A)),M=T.match(/\[((?:\[.*\])|.+)\]/);if(I&&M){const[A]=T.split(M[0]);return u({getSafeRouteKey:x,interceptionMarker:A,segment:M[1],routeKeys:w,keyPrefix:g?o:void 0})}else return M?u({getSafeRouteKey:x,segment:M[1],routeKeys:w,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(T)}).join(""),routeKeys:w}}function h(m,g){const p=f(m,g);return{...d(m),namedRegex:"^"+p.namedParameterizedRoute+"(?:/)?$",routeKeys:p.routeKeys}}function v(m,g){const{parameterizedRoute:p}=a(m),{catchAll:x=!0}=g;if(p==="/")return{namedRegex:"^/"+(x?".*":"")+"$"};const{namedParameterizedRoute:w}=f(m,!1);let T=x?"(?:(/.*)?)":"";return{namedRegex:"^"+w+T+"$"}}}(Nr)),Nr}var ks;function _u(){return ks||(ks=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return n}});const e=Du(),r=ju();function n(s,i,o){let l="";const a=(0,r.getRouteRegex)(s),d=a.groups,c=(i!==s?(0,e.getRouteMatcher)(a)(i):"")||o;l=s;const u=Object.keys(d);return u.every(f=>{let h=c[f]||"";const{repeat:v,optional:m}=d[f];let g="["+(v?"...":"")+f+"]";return m&&(g=(h?"":"/")+"["+g+"]"),v&&!Array.isArray(h)&&(h=[h]),(m||f in c)&&(l=l.replace(g,v?h.map(p=>encodeURIComponent(p)).join("/"):encodeURIComponent(h))||"/")})||(l=""),{params:u,result:l}}}(_r)),_r}var Ns;function ku(){return Ns||(Ns=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return c}});const r=ga(),n=va(),s=Pu(),i=dr(),o=ur(),l=wa(),a=Ou(),d=_u();function c(u,f,h){let v,m=typeof f=="string"?f:(0,n.formatWithValidation)(f);const g=m.match(/^[a-zA-Z]{1,}:\/\//),p=g?m.slice(g[0].length):m;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+m+"' passed to next/router in page: '"+u.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const w=(0,i.normalizeRepeatedSlashes)(p);m=(g?g[0]:"")+w}if(!(0,l.isLocalURL)(m))return h?[m]:m;try{v=new URL(m.startsWith("#")?u.asPath:u.pathname,"http://n")}catch{v=new URL("/","http://n")}try{const w=new URL(m,v);w.pathname=(0,o.normalizePathTrailingSlash)(w.pathname);let T="";if((0,a.isDynamicRoute)(w.pathname)&&w.searchParams&&h){const M=(0,r.searchParamsToUrlQuery)(w.searchParams),{result:A,params:S}=(0,d.interpolateAs)(w.pathname,w.pathname,M);A&&(T=(0,n.formatWithValidation)({pathname:A,hash:w.hash,query:(0,s.omit)(M,S)}))}const I=w.origin===v.origin?w.href.slice(w.origin.length):w.href;return h?[I,T||I]:I}catch{return h?[m]:m}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Dt,Dt.exports)),Dt.exports}var kt={exports:{}},zr={},Fr={},Bs;function Sa(){return Bs||(Bs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=On();function r(n,s){if(!n.startsWith("/")||!s)return n;const{pathname:i,query:o,hash:l}=(0,e.parsePath)(n);return""+s+i+o+l}}(Fr)),Fr}var zs;function Nu(){return zs||(zs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=Sa(),r=ya();function n(s,i,o,l){if(!i||i===o)return s;const a=s.toLowerCase();return!l&&((0,r.pathHasPrefix)(a,"/api")||(0,r.pathHasPrefix)(a,"/"+i.toLowerCase()))?s:(0,e.addPathPrefix)(s,"/"+i)}}(zr)),zr}var Fs;function Bu(){return Fs||(Fs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const r=ur(),n=function(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Nu().addLocale(s,...o)):s};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(kt,kt.exports)),kt.exports}var Vr={},Vs;function zu(){return Vs||(Vs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});const n=wt._(R).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Vr)),Vr}var qr={},qs;function Fu(){return qs||(qs=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function e(d,c){for(var u in c)Object.defineProperty(d,u,{enumerable:!0,get:c[u]})}e(t,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},TemplateContext:function(){return a}});const n=wt._(R);var s;(function(d){d.LAZY_INITIALIZED="LAZYINITIALIZED",d.DATA_FETCH="DATAFETCH",d.READY="READY"})(s||(s={}));const i=n.default.createContext(null),o=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",o.displayName="LayoutRouterContext",l.displayName="GlobalLayoutRouterContext",a.displayName="TemplateContext")}(qr)),qr}var Nt={exports:{}},Bt={exports:{}},Hs;function Vu(){return Hs||(Hs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(i,o){for(var l in o)Object.defineProperty(i,l,{enumerable:!0,get:o[l]})}r(e,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return s}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let o=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Bt,Bt.exports)),Bt.exports}var Gs;function qu(){return Gs||(Gs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return d}});const r=R,n=Vu(),s=typeof IntersectionObserver=="function",i=new Map,o=[];function l(c){const u={root:c.root||null,margin:c.rootMargin||""},f=o.find(g=>g.root===u.root&&g.margin===u.margin);let h;if(f&&(h=i.get(f),h))return h;const v=new Map,m=new IntersectionObserver(g=>{g.forEach(p=>{const x=v.get(p.target),w=p.isIntersecting||p.intersectionRatio>0;x&&w&&x(w)})},c);return h={id:u,observer:m,elements:v},o.push(u),i.set(u,h),h}function a(c,u,f){const{id:h,observer:v,elements:m}=l(f);return m.set(c,u),v.observe(c),function(){if(m.delete(c),v.unobserve(c),m.size===0){v.disconnect(),i.delete(h);const p=o.findIndex(x=>x.root===h.root&&x.margin===h.margin);p>-1&&o.splice(p,1)}}}function d(c){let{rootRef:u,rootMargin:f,disabled:h}=c;const v=h||!s,[m,g]=(0,r.useState)(!1),p=(0,r.useRef)(null),x=(0,r.useCallback)(T=>{p.current=T},[]);(0,r.useEffect)(()=>{if(s){if(v||m)return;const T=p.current;if(T&&T.tagName)return a(T,M=>M&&g(M),{root:u==null?void 0:u.current,rootMargin:f})}else if(!m){const T=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(T)}},[v,f,u,m,p.current]);const w=(0,r.useCallback)(()=>{g(!1)},[]);return[x,m,w]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Nt,Nt.exports)),Nt.exports}var zt={exports:{}},Ft={exports:{}},Hr={},Ks;function Hu(){return Ks||(Ks=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let s;const i=r.split("/");return(n||[]).some(o=>i[1]&&i[1].toLowerCase()===o.toLowerCase()?(s=o,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(Hr)),Hr}var Ws;function Gu(){return Ws||(Ws=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,s)=>process.env.__NEXT_I18N_SUPPORT?Hu().normalizeLocalePath(n,s):{pathname:n,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Ft,Ft.exports)),Ft.exports}var Vt={exports:{}},Gr={},Us;function Ku(){return Us||(Us=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,s){if(r){s&&(s=s.toLowerCase());for(const l of r){var i,o;const a=(i=l.domain)==null?void 0:i.split(":",1)[0].toLowerCase();if(n===a||s===l.defaultLocale.toLowerCase()||(o=l.locales)!=null&&o.some(d=>d.toLowerCase()===s))return l}}}}(Gr)),Gr}var Ys;function Wu(){return Ys||(Ys=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Ku().detectDomainLocale(...s)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Vt,Vt.exports)),Vt.exports}var Xs;function Uu(){return Xs||(Xs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=ur(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,o,l,a){if(process.env.__NEXT_I18N_SUPPORT){const d=Gu().normalizeLocalePath,c=Wu().detectDomainLocale,u=o||d(i,l).detectedLocale,f=c(a,void 0,u);if(f){const h="http"+(f.http?"":"s")+"://",v=u===f.defaultLocale?"":"/"+u;return""+h+f.domain+(0,r.normalizePathTrailingSlash)(""+n+v+i)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(zt,zt.exports)),zt.exports}var qt={exports:{}},Qs;function Yu(){return Qs||(Qs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Sa(),n=ur(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(o,l){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!l?o:(0,r.addPathPrefix)(o,s))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(qt,qt.exports)),qt.exports}var Ht={exports:{}},Js;function Xu(){return Js||(Js=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(f,h){for(var v in h)Object.defineProperty(f,v,{enumerable:!0,get:h[v]})}r(e,{PrefetchKind:function(){return c},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return o},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return a},ACTION_SERVER_ACTION:function(){return d},isThenable:function(){return u}});const n="refresh",s="navigate",i="restore",o="server-patch",l="prefetch",a="fast-refresh",d="server-action";var c;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(c||(c={}));function u(f){return f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Ht,Ht.exports)),Ht.exports}(function(t,e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return I}});const n=wt._(R),s=ku(),i=wa(),o=va(),l=dr(),a=Bu(),d=zu(),c=Fu(),u=qu(),f=Uu(),h=Yu(),v=Xu(),m=new Set;function g(M,A,S,C,P,$){if(typeof window>"u"||!$&&!(0,i.isLocalURL)(A))return;if(!C.bypassPrefetchedCheck){const y=typeof C.locale<"u"?C.locale:"locale"in M?M.locale:void 0,E=A+"%"+S+"%"+y;if(m.has(E))return;m.add(E)}const L=$?M.prefetch(A,P):M.prefetch(A,S,C);Promise.resolve(L).catch(y=>{if(process.env.NODE_ENV!=="production")throw y})}function p(M){const S=M.currentTarget.getAttribute("target");return S&&S!=="_self"||M.metaKey||M.ctrlKey||M.shiftKey||M.altKey||M.nativeEvent&&M.nativeEvent.which===2}function x(M,A,S,C,P,$,L,y,E){const{nodeName:D}=M.currentTarget;if(D.toUpperCase()==="A"&&(p(M)||!E&&!(0,i.isLocalURL)(S)))return;M.preventDefault();const O=()=>{const j=L??!0;"beforePopState"in A?A[P?"replace":"push"](S,C,{shallow:$,locale:y,scroll:j}):A[P?"replace":"push"](C||S,{scroll:j})};E?n.default.startTransition(O):O()}function w(M){return typeof M=="string"?M:(0,o.formatUrl)(M)}const I=n.default.forwardRef(function(A,S){let C;const{href:P,as:$,children:L,prefetch:y=null,passHref:E,replace:D,shallow:N,scroll:O,locale:j,onClick:_,onMouseEnter:k,onTouchStart:K,legacyBehavior:W=!1,...q}=A;C=L,W&&(typeof C=="string"||typeof C=="number")&&(C=n.default.createElement("a",null,C));const H=n.default.useContext(d.RouterContext),ce=n.default.useContext(c.AppRouterContext),ee=H??ce,G=!H,te=y!==!1,ne=y===null?v.PrefetchKind.AUTO:v.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let Y=function(X){return new Error("Failed prop type: The prop `"+X.key+"` expects a "+X.expected+" in `<Link>`, but got `"+X.actual+"` instead."+(typeof window<"u"?`
|
|
93
|
+
`,variants:{isError:{true:"border-red-500"}}}),Xl=ai({main:t=>Wo(t),gridItem:t=>Yo(t),grid:t=>Uo(t),container:t=>di(t),accordion:Ro,carousel:{container:t=>il(t),slideContainer:t=>al(t),navigationButtons:t=>ol(t)},calendar:{container:t=>Xo(t),header:t=>Qo(t),navigationButtonsContainer:t=>Jo(t),navigationButtons:t=>Zo(t),table:t=>el(t),dayLabel:t=>tl(t),cellContainer:t=>rl(t),cell:t=>nl(t),cellDate:t=>sl(t)},datePicker:{container:t=>ml(t),button:t=>gl(t),icon:t=>xl(t),dateField:t=>yl(t),dateSegment:t=>wl(t),label:t=>Sl(t),calendarPopover:t=>bl(t),calendarUnderlay:t=>vl(t)},popover:{button:t=>et(t),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:t=>fe(t),button:t=>et(t),sidePanel:{wrapper:t=>Kl(t),container:t=>Wl(t),innerContainer:t=>Ul(t)},lightBox:Ol,shareButton:{icon:t=>Hl(t),button:t=>Fl(t),container:t=>zl(t),linksList:t=>Vl(t),link:t=>ql(t),linkIcons:t=>Gl(t)},checkbox:{container:t=>ll(t),label:t=>cl(t),checkBox:t=>dl(t),checkMark:t=>ul(t),checkMarkIcon:t=>fl(t),errorMessage:t=>fe(t)},radio:{label:t=>Dl(t),radio:t=>Al(t),selectedMark:t=>jl(t),errorMessage:t=>fe(t)},radioGroup:{radioGroup:t=>_l(t),radioGroupItemsGroup:t=>kl(t),errorMessage:t=>fe(t)},checkboxGroup:{checkboxGroup:t=>pl(t),checkboxGroupItemsGroup:t=>hl(t),errormessage:t=>fe(t)},select:{button:t=>et(t),ul:t=>fe({...t,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:t=>et({...t,className:"w-[var(--select-container-width)]"}),errorMessage:t=>fe({...t,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:t=>Yl(t),errorMessage:t=>fe({...t,size:"footnotes",isError:!0})},search:{wrapper:()=>"min-w-fit sm:w-80 flex flex-col gap-2",container:()=>"relative flex items-center outline outline-2 outline-gray-300 focus-within:outline focus-within:outline-black focus-within:outline-2",label:()=>"text-gray-3",input:t=>Nl(t),icon:t=>Bl(t),errorMessage:t=>fe({...t,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"group flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>'group-has-[:required]:after:content-["_*"] group-has-[:required]:after:text-red-500 text-xs',container:()=>"flex items-center gap-4",input:()=>"",errorMessage:t=>fe({...t,className:"ml-0",size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:El,alerts:Ko}),Ql=R.memo(ci(Xl)),z=(t,e={},r=null)=>{const n=oi();if(n!=null&&t!=null){const{brandTheme:s}=n,i=si.get(s,t);if(typeof i=="function"){const o=i==null?void 0:i(e);if(typeof o=="string")return o}}if(r)return r},ie=({as:t="span",themeName:e="typography",tokens:r,customTheme:n,children:s,...i})=>{const o=z(e,r,n);return b.jsx(t,{...i,className:o,children:s})},ui=R.forwardRef((t,e)=>{const{as:r="span",tokens:n,themeName:s="typography",customTheme:i,children:o,...l}=t,a=z(s,n,i);return b.jsx(r,{...l,ref:e,className:a,children:o})});function Jl(t,e){return e.get?e.get.call(t):e.value}function fi(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Zl(t,e){var r=fi(t,e,"get");return Jl(t,r)}function ec(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gn(t,e,r){ec(t,e),e.set(t,r)}function tc(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Bn(t,e,r){var n=fi(t,e,"set");return tc(t,n,r),r}let tt="default",Jr="",Gt=new WeakMap;function zn(t){if(F.isIOS()){if(tt==="default"){const e=F.getOwnerDocument(t);Jr=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}tt="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(Gt.set(t,t.style.userSelect),t.style.userSelect="none")}function $t(t){if(F.isIOS()){if(tt!=="disabled")return;tt="restoring",setTimeout(()=>{F.runAfterTransition(()=>{if(tt==="restoring"){const e=F.getOwnerDocument(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Jr||""),Jr="",tt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Gt.has(t)){let e=Gt.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Gt.delete(t)}}const pi=R.createContext({register:()=>{}});pi.displayName="PressResponderContext";function rc(t){let e=R.useContext(pi);if(e){let{register:r,...n}=e;t=F.mergeProps(n,t),r()}return F.useSyncRef(e,t.ref),t}var Mt=new WeakMap;class It{continuePropagation(){Bn(this,Mt,!1)}get shouldStopPropagation(){return Zl(this,Mt)}constructor(e,r,n){gn(this,Mt,{writable:!0,value:void 0}),Bn(this,Mt,!0),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const Fn=Symbol("linkClicked");function vn(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:s,onPressUp:i,isDisabled:o,isPressed:l,preventFocusOnPress:a,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:u,...f}=rc(t),[h,v]=R.useState(!1),m=R.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:g,removeAllGlobalListeners:p}=F.useGlobalListeners(),x=F.useEffectEvent((S,C)=>{let P=m.current;if(o||P.didFirePressStart)return!1;let $=!0;if(P.isTriggeringEvent=!0,n){let L=new It("pressstart",C,S);n(L),$=L.shouldStopPropagation}return r&&r(!0),P.isTriggeringEvent=!1,P.didFirePressStart=!0,v(!0),$}),w=F.useEffectEvent((S,C,P=!0)=>{let $=m.current;if(!$.didFirePressStart)return!1;$.ignoreClickAfterPress=!0,$.didFirePressStart=!1,$.isTriggeringEvent=!0;let L=!0;if(s){let y=new It("pressend",C,S);s(y),L=y.shouldStopPropagation}if(r&&r(!1),v(!1),e&&P&&!o){let y=new It("press",C,S);e(y),L&&(L=y.shouldStopPropagation)}return $.isTriggeringEvent=!1,L}),T=F.useEffectEvent((S,C)=>{let P=m.current;if(o)return!1;if(i){P.isTriggeringEvent=!0;let $=new It("pressup",C,S);return i($),P.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),I=F.useEffectEvent(S=>{let C=m.current;C.isPressed&&C.target&&(C.isOverTarget&&C.pointerType!=null&&w(Te(C.target,S),C.pointerType,!1),C.isPressed=!1,C.isOverTarget=!1,C.activePointerId=null,C.pointerType=null,p(),c||$t(C.target))}),M=F.useEffectEvent(S=>{d&&I(S)}),A=R.useMemo(()=>{let S=m.current,C={onKeyDown($){if(mr($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){var L;qn($.target,$.key)&&$.preventDefault();let y=!0;if(!S.isPressed&&!$.repeat){S.target=$.currentTarget,S.isPressed=!0,y=x($,"keyboard");let E=$.currentTarget,D=N=>{mr(N,E)&&!N.repeat&&E.contains(N.target)&&S.target&&T(Te(S.target,N),"keyboard")};g(F.getOwnerDocument($.currentTarget),"keyup",F.chain(D,P),!0)}y&&$.stopPropagation(),$.metaKey&&F.isMac()&&((L=S.metaKeyEvents)===null||L===void 0||L.set($.key,$.nativeEvent))}else $.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick($){if(!($&&!$.currentTarget.contains($.target))&&$&&$.button===0&&!S.isTriggeringEvent&&!F.openLink.isOpening){let L=!0;if(o&&$.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||F.isVirtualClick($.nativeEvent))){!o&&!a&&F.focusWithoutScrolling($.currentTarget);let y=x($,"virtual"),E=T($,"virtual"),D=w($,"virtual");L=y&&E&&D}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,L&&$.stopPropagation()}}},P=$=>{var L;if(S.isPressed&&S.target&&mr($,S.target)){var y;qn($.target,$.key)&&$.preventDefault();let D=$.target;w(Te(S.target,$),"keyboard",S.target.contains(D)),p(),$.key!=="Enter"&&bn(S.target)&&S.target.contains(D)&&!$[Fn]&&($[Fn]=!0,F.openLink(S.target,$,!1)),S.isPressed=!1,(y=S.metaKeyEvents)===null||y===void 0||y.delete($.key)}else if($.key==="Meta"&&(!((L=S.metaKeyEvents)===null||L===void 0)&&L.size)){var E;let D=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let N of D.values())(E=S.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){C.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(F.isVirtualPointerEvent(E.nativeEvent)){S.pointerType="virtual";return}gr(E.currentTarget)&&E.preventDefault(),S.pointerType=E.pointerType;let D=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=E.pointerId,S.target=E.currentTarget,!o&&!a&&F.focusWithoutScrolling(E.currentTarget),c||zn(S.target),D=x(E,S.pointerType),g(F.getOwnerDocument(E.currentTarget),"pointermove",$,!1),g(F.getOwnerDocument(E.currentTarget),"pointerup",L,!1),g(F.getOwnerDocument(E.currentTarget),"pointercancel",y,!1)),D&&E.stopPropagation()},C.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(gr(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},C.onPointerUp=E=>{!E.currentTarget.contains(E.target)||S.pointerType==="virtual"||E.button===0&&Qe(E,E.currentTarget)&&T(E,S.pointerType||E.pointerType)};let $=E=>{E.pointerId===S.activePointerId&&(S.target&&Qe(E,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,x(Te(S.target,E),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,w(Te(S.target,E),S.pointerType,!1),M(E)))},L=E=>{E.pointerId===S.activePointerId&&S.isPressed&&E.button===0&&S.target&&(Qe(E,S.target)&&S.pointerType!=null?w(Te(S.target,E),S.pointerType):S.isOverTarget&&S.pointerType!=null&&w(Te(S.target,E),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,p(),c||$t(S.target))},y=E=>{I(E)};C.onDragStart=E=>{E.currentTarget.contains(E.target)&&I(E)}}else{C.onMouseDown=y=>{if(y.button!==0||!y.currentTarget.contains(y.target))return;if(gr(y.currentTarget)&&y.preventDefault(),S.ignoreEmulatedMouseEvents){y.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=y.currentTarget,S.pointerType=F.isVirtualClick(y.nativeEvent)?"virtual":"mouse",!o&&!a&&F.focusWithoutScrolling(y.currentTarget),x(y,S.pointerType)&&y.stopPropagation(),g(F.getOwnerDocument(y.currentTarget),"mouseup",$,!1)},C.onMouseEnter=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,E=x(y,S.pointerType)),E&&y.stopPropagation()},C.onMouseLeave=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,E=w(y,S.pointerType,!1),M(y)),E&&y.stopPropagation()},C.onMouseUp=y=>{y.currentTarget.contains(y.target)&&!S.ignoreEmulatedMouseEvents&&y.button===0&&T(y,S.pointerType||"mouse")};let $=y=>{if(y.button===0){if(S.isPressed=!1,p(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Qe(y,S.target)&&S.pointerType!=null?w(Te(S.target,y),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&w(Te(S.target,y),S.pointerType,!1),S.isOverTarget=!1}};C.onTouchStart=y=>{if(!y.currentTarget.contains(y.target))return;let E=nc(y.nativeEvent);if(!E)return;S.activePointerId=E.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=y.currentTarget,S.pointerType="touch",!o&&!a&&F.focusWithoutScrolling(y.currentTarget),c||zn(S.target),x(y,S.pointerType)&&y.stopPropagation(),g(F.getOwnerWindow(y.currentTarget),"scroll",L,!0)},C.onTouchMove=y=>{if(!y.currentTarget.contains(y.target))return;if(!S.isPressed){y.stopPropagation();return}let E=Vn(y.nativeEvent,S.activePointerId),D=!0;E&&Qe(E,y.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,D=x(y,S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D=w(y,S.pointerType,!1),M(y)),D&&y.stopPropagation()},C.onTouchEnd=y=>{if(!y.currentTarget.contains(y.target))return;if(!S.isPressed){y.stopPropagation();return}let E=Vn(y.nativeEvent,S.activePointerId),D=!0;E&&Qe(E,y.currentTarget)&&S.pointerType!=null?(T(y,S.pointerType),D=w(y,S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(D=w(y,S.pointerType,!1)),D&&y.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!c&&$t(S.target),p()},C.onTouchCancel=y=>{y.currentTarget.contains(y.target)&&(y.stopPropagation(),S.isPressed&&I(y))};let L=y=>{S.isPressed&&y.target.contains(S.target)&&I({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};C.onDragStart=y=>{y.currentTarget.contains(y.target)&&I(y)}}return C},[g,o,a,p,c,I,M,w,x,T]);return R.useEffect(()=>()=>{var S;c||$t((S=m.current.target)!==null&&S!==void 0?S:void 0)},[c]),{isPressed:l||h,pressProps:F.mergeProps(f,A)}}function bn(t){return t.tagName==="A"&&t.hasAttribute("href")}function mr(t,e){const{key:r,code:n}=t,s=e,i=s.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(s instanceof F.getOwnerWindow(s).HTMLInputElement&&!hi(s,r)||s instanceof F.getOwnerWindow(s).HTMLTextAreaElement||s.isContentEditable)&&!((i==="link"||!i&&bn(s))&&r!=="Enter")}function nc(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Vn(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const s=r[n];if(s.identifier===e)return s}return null}function Te(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function sc(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function ic(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Qe(t,e){let r=e.getBoundingClientRect(),n=sc(t);return ic(r,n)}function gr(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function qn(t,e){return t instanceof HTMLInputElement?!hi(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!bn(t)}const ac=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ac.has(t.type)}let St=null,oc=new Set,gt=new Map,Ve=!1,Zr=!1;function yn(t,e){for(let r of oc)r(t,e)}function lc(t){return!(t.metaKey||!F.isMac()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Xt(t){Ve=!0,lc(t)&&(St="keyboard",yn("keyboard",t))}function be(t){St="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ve=!0,yn("pointer",t))}function mi(t){F.isVirtualClick(t)&&(Ve=!0,St="virtual")}function gi(t){t.target===window||t.target===document||(!Ve&&!Zr&&(St="virtual",yn("virtual",t)),Ve=!1,Zr=!1)}function vi(){Ve=!1,Zr=!0}function Hn(t){if(typeof window>"u"||gt.get(F.getOwnerWindow(t)))return;const e=F.getOwnerWindow(t),r=F.getOwnerDocument(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ve=!0,n.apply(this,arguments)},r.addEventListener("keydown",Xt,!0),r.addEventListener("keyup",Xt,!0),r.addEventListener("click",mi,!0),e.addEventListener("focus",gi,!0),e.addEventListener("blur",vi,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",be,!0),r.addEventListener("pointermove",be,!0),r.addEventListener("pointerup",be,!0)):(r.addEventListener("mousedown",be,!0),r.addEventListener("mousemove",be,!0),r.addEventListener("mouseup",be,!0)),e.addEventListener("beforeunload",()=>{bi(t)},{once:!0}),gt.set(e,{focus:n})}const bi=(t,e)=>{const r=F.getOwnerWindow(t),n=F.getOwnerDocument(t);e&&n.removeEventListener("DOMContentLoaded",e),gt.has(r)&&(r.HTMLElement.prototype.focus=gt.get(r).focus,n.removeEventListener("keydown",Xt,!0),n.removeEventListener("keyup",Xt,!0),n.removeEventListener("click",mi,!0),r.removeEventListener("focus",gi,!0),r.removeEventListener("blur",vi,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",be,!0),n.removeEventListener("pointermove",be,!0),n.removeEventListener("pointerup",be,!0)):(n.removeEventListener("mousedown",be,!0),n.removeEventListener("mousemove",be,!0),n.removeEventListener("mouseup",be,!0)),gt.delete(r))};function cc(t){const e=F.getOwnerDocument(t);let r;return e.readyState!=="loading"?Hn(t):(r=()=>{Hn(t)},e.addEventListener("DOMContentLoaded",r)),()=>bi(t,r)}typeof document<"u"&&cc();function Gn(){return St}const dc=500;function uc(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:s,threshold:i=dc,accessibilityDescription:o}=t;const l=R.useRef();let{addGlobalListener:a,removeGlobalListener:d}=F.useGlobalListeners(),{pressProps:c}=vn({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...f,type:"longpress"}),l.current=void 0},i),f.pointerType==="touch")){let h=v=>{v.preventDefault()};a(f.target,"contextmenu",h,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{d(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),u=F.useDescription(s&&!e?o:void 0);return{longPressProps:F.mergeProps(c,u)}}function fc(t,e){let{elementType:r="button",isDisabled:n,onPress:s,onPressStart:i,onPressEnd:o,onPressUp:l,onPressChange:a,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:u,href:f,target:h,rel:v,type:m="button"}=t,g;r==="button"?g={type:m,disabled:n}:g={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:f,target:r==="a"?h:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?v:void 0};let{pressProps:p,isPressed:x}=vn({onPressStart:i,onPressEnd:o,onPressChange:a,onPress:s,onPressUp:l,isDisabled:n,preventFocusOnPress:d,ref:e}),{focusableProps:w}=we.useFocusable(t,e);c&&(w.tabIndex=n?-1:w.tabIndex);let T=F.mergeProps(w,p,F.filterDOMProps(t,{labelable:!0}));return{isPressed:x,buttonProps:F.mergeProps(g,T,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:I=>{u&&(u(I),console.warn("onClick is deprecated, please use onPress"))}})}}function en(t){return F.isAppleDevice()?t.altKey:t.ctrlKey}function Ze(t){return F.isMac()?t.metaKey:t.ctrlKey}const pc=1e3;function hc(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,s=R.useRef({search:"",timeout:null}).current,i=o=>{let l=mc(o.key);if(!l||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;l===" "&&s.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),s.search+=l;let a=e.getKeyForSearch(s.search,r.focusedKey);a==null&&(a=e.getKeyForSearch(s.search)),a!=null&&(r.setFocusedKey(a),n&&n(a)),clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},pc)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:null}}}function mc(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function gc(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:s=!1,shouldFocusWrap:i=!1,disallowEmptySelection:o=!1,disallowSelectAll:l=!1,selectOnFocus:a=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:c,allowsTabNavigation:u=!1,isVirtualized:f,scrollRef:h=n,linkBehavior:v="action"}=t,{direction:m}=Ge.useLocale(),g=F.useRouter(),p=P=>{if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!n.current.contains(P.target))return;const $=(k,K)=>{if(k!=null){if(e.isLink(k)&&v==="selection"&&a&&!en(P)){po.flushSync(()=>{e.setFocusedKey(k,K)});let W=h.current.querySelector(`[data-key="${CSS.escape(k.toString())}"]`);g.open(W,P);return}if(e.setFocusedKey(k,K),e.isLink(k)&&v==="override")return;P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(k):a&&!en(P)&&e.replaceSelection(k)}};switch(P.key){case"ArrowDown":if(r.getKeyBelow){var L,y;P.preventDefault();let k=e.focusedKey!=null?r.getKeyBelow(e.focusedKey):(L=r.getFirstKey)===null||L===void 0?void 0:L.call(r);k==null&&i&&(k=(y=r.getFirstKey)===null||y===void 0?void 0:y.call(r,e.focusedKey)),$(k)}break;case"ArrowUp":if(r.getKeyAbove){var E,D;P.preventDefault();let k=e.focusedKey!=null?r.getKeyAbove(e.focusedKey):(E=r.getLastKey)===null||E===void 0?void 0:E.call(r);k==null&&i&&(k=(D=r.getLastKey)===null||D===void 0?void 0:D.call(r,e.focusedKey)),$(k)}break;case"ArrowLeft":if(r.getKeyLeftOf){var N,O;P.preventDefault();let k=r.getKeyLeftOf(e.focusedKey);k==null&&i&&(k=m==="rtl"?(N=r.getFirstKey)===null||N===void 0?void 0:N.call(r,e.focusedKey):(O=r.getLastKey)===null||O===void 0?void 0:O.call(r,e.focusedKey)),$(k,m==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var j,_;P.preventDefault();let k=r.getKeyRightOf(e.focusedKey);k==null&&i&&(k=m==="rtl"?(j=r.getLastKey)===null||j===void 0?void 0:j.call(r,e.focusedKey):(_=r.getFirstKey)===null||_===void 0?void 0:_.call(r,e.focusedKey)),$(k,m==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){P.preventDefault();let k=r.getFirstKey(e.focusedKey,Ze(P));e.setFocusedKey(k),Ze(P)&&P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(k):a&&e.replaceSelection(k)}break;case"End":if(r.getLastKey){P.preventDefault();let k=r.getLastKey(e.focusedKey,Ze(P));e.setFocusedKey(k),Ze(P)&&P.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(k):a&&e.replaceSelection(k)}break;case"PageDown":if(r.getKeyPageBelow){P.preventDefault();let k=r.getKeyPageBelow(e.focusedKey);$(k)}break;case"PageUp":if(r.getKeyPageAbove){P.preventDefault();let k=r.getKeyPageAbove(e.focusedKey);$(k)}break;case"a":Ze(P)&&e.selectionMode==="multiple"&&l!==!0&&(P.preventDefault(),e.selectAll());break;case"Escape":P.preventDefault(),o||e.clearSelection();break;case"Tab":if(!u){if(P.shiftKey)n.current.focus();else{let k=we.getFocusableTreeWalker(n.current,{tabbable:!0}),K,W;do W=k.lastChild(),W&&(K=W);while(W);K&&!K.contains(document.activeElement)&&F.focusWithoutScrolling(K)}break}}},x=R.useRef({top:0,left:0});F.useEvent(h,"scroll",f?null:()=>{x.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let w=P=>{if(e.isFocused){P.currentTarget.contains(P.target)||e.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(e.setFocused(!0),e.focusedKey==null){let y=D=>{D!=null&&(e.setFocusedKey(D),a&&e.replaceSelection(D))},E=P.relatedTarget;var $,L;E&&P.currentTarget.compareDocumentPosition(E)&Node.DOCUMENT_POSITION_FOLLOWING?y(($=e.lastSelectedKey)!==null&&$!==void 0?$:r.getLastKey()):y((L=e.firstSelectedKey)!==null&&L!==void 0?L:r.getFirstKey())}else f||(h.current.scrollTop=x.current.top,h.current.scrollLeft=x.current.left);if(!f&&e.focusedKey!=null){let y=h.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);y&&(y.contains(document.activeElement)||F.focusWithoutScrolling(y),Gn()==="keyboard"&&F.scrollIntoViewport(y,{containingElement:n.current}))}}},T=P=>{P.currentTarget.contains(P.relatedTarget)||e.setFocused(!1)};const I=R.useRef(s);R.useEffect(()=>{if(I.current){let P=null;s==="first"&&(P=r.getFirstKey()),s==="last"&&(P=r.getLastKey());let $=e.selectedKeys;if($.size){for(let L of $)if(e.canSelectItem(L)){P=L;break}}e.setFocused(!0),e.setFocusedKey(P),P==null&&!c&&we.focusSafely(n.current)}},[]);let M=R.useRef(e.focusedKey);R.useEffect(()=>{let P=Gn();if(e.isFocused&&e.focusedKey!=null&&(h!=null&&h.current)){let $=h.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);$&&(P==="keyboard"||I.current)&&(f||F.scrollIntoView(h.current,$),P!=="virtual"&&F.scrollIntoViewport($,{containingElement:n.current}))}e.isFocused&&e.focusedKey==null&&M.current!=null&&we.focusSafely(n.current),M.current=e.focusedKey,I.current=!1},[f,h,e.focusedKey,e.isFocused,n]);let A={onKeyDown:p,onFocus:w,onBlur:T,onMouseDown(P){h.current===P.target&&P.preventDefault()}},{typeSelectProps:S}=hc({keyboardDelegate:r,selectionManager:e});d||(A=F.mergeProps(S,A));let C;return c||(C=e.focusedKey==null?0:-1),{collectionProps:{...A,tabIndex:C}}}function vc(t){let{selectionManager:e,key:r,ref:n,shouldSelectOnPressUp:s,shouldUseVirtualFocus:i,focus:o,isDisabled:l,onAction:a,allowsDifferentPressOrigin:d,linkBehavior:c="action"}=t,u=F.useRouter(),f=O=>{if(O.pointerType==="keyboard"&&en(O))e.toggleSelection(r);else{if(e.selectionMode==="none")return;if(e.isLink(r)){if(c==="selection"){u.open(n.current,O),e.setSelectedKeys(e.selectedKeys);return}else if(c==="override"||c==="none")return}e.selectionMode==="single"?e.isSelected(r)&&!e.disallowEmptySelection?e.toggleSelection(r):e.replaceSelection(r):O&&O.shiftKey?e.extendSelection(r):e.selectionBehavior==="toggle"||O&&(Ze(O)||O.pointerType==="touch"||O.pointerType==="virtual")?e.toggleSelection(r):e.replaceSelection(r)}};R.useEffect(()=>{r===e.focusedKey&&e.isFocused&&!i&&(o?o():document.activeElement!==n.current&&we.focusSafely(n.current))},[n,r,e.focusedKey,e.childFocusStrategy,e.isFocused,i]),l=l||e.isDisabled(r);let h={};!i&&!l?h={tabIndex:r===e.focusedKey?0:-1,onFocus(O){O.target===n.current&&e.setFocusedKey(r)}}:l&&(h.onMouseDown=O=>{O.preventDefault()});let v=e.isLink(r)&&c==="override",m=e.isLink(r)&&c!=="selection"&&c!=="none",g=!l&&e.canSelectItem(r)&&!v,p=(a||m)&&!l,x=p&&(e.selectionBehavior==="replace"?!g:!g||e.isEmpty),w=p&&g&&e.selectionBehavior==="replace",T=x||w,I=R.useRef(null),M=T&&g,A=R.useRef(!1),S=R.useRef(!1),C=O=>{a&&a(),m&&u.open(n.current,O)},P={};s?(P.onPressStart=O=>{I.current=O.pointerType,A.current=M,O.pointerType==="keyboard"&&(!T||Wn())&&f(O)},d?(P.onPressUp=x?null:O=>{O.pointerType!=="keyboard"&&g&&f(O)},P.onPress=x?C:null):P.onPress=O=>{if(x||w&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!Kn())return;C(O)}else O.pointerType!=="keyboard"&&g&&f(O)}):(P.onPressStart=O=>{I.current=O.pointerType,A.current=M,S.current=x,g&&(O.pointerType==="mouse"&&!x||O.pointerType==="keyboard"&&(!p||Wn()))&&f(O)},P.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&T&&Kn()||O.pointerType==="mouse"&&S.current)&&(T?C(O):g&&f(O))}),h["data-key"]=r,P.preventFocusOnPress=i;let{pressProps:$,isPressed:L}=vn(P),y=w?O=>{I.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),C(O))}:void 0,{longPressProps:E}=uc({isDisabled:!M,onLongPress(O){O.pointerType==="touch"&&(f(O),e.setSelectionBehavior("toggle"))}}),D=O=>{I.current==="touch"&&A.current&&O.preventDefault()},N=e.isLink(r)?O=>{F.openLink.isOpening||O.preventDefault()}:void 0;return{itemProps:F.mergeProps(h,g||x?$:{},M?E:{},{onDoubleClick:y,onDragStartCapture:D,onClick:N}),isPressed:L,isSelected:e.isSelected(r),isFocused:e.isFocused&&e.focusedKey===r,isDisabled:l,allowsSelection:g,hasAction:T}}function Kn(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Wn(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class bc{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,r,n){let s=this.getItem(e);if(!s)return null;let i=s.getBoundingClientRect();do e=r(e),s=this.getItem(e);while(s&&n(i,s.getBoundingClientRect()));return e}isSameRow(e,r){return e.top===r.top||e.left!==r.left}isSameColumn(e,r){return e.left===r.left||e.top!==r.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){let r=this.collection.getItem(e);if((r==null?void 0:r.type)==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`)}getKeyPageAbove(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!F.isScrollable(r))return this.getFirstKey();let s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let o=s.x-r.scrollLeft,l=Math.max(0,i.x-o+i.width-s.width);for(;n&&i.x-o>l;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let o=s.y-r.scrollTop,l=Math.max(0,i.y-o+i.height-s.height);for(;n&&i.y-o>l;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!F.isScrollable(r))return this.getLastKey();let s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let o=s.x-r.scrollLeft,l=Math.min(r.scrollWidth,i.x-o-i.width+s.width);for(;n&&i.x-o<l;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let o=s.y-r.scrollTop,l=Math.min(r.scrollHeight,i.y-o-i.height+s.height);for(;n&&i.y-o<l;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,s=r||this.getFirstKey();for(;s!=null;){let i=n.getItem(s),o=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(o,e)===0)return s;s=this.getKeyBelow(s)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function yc(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:s,keyboardDelegate:i}=t,o=Ge.useCollator({usage:"search",sensitivity:"base"}),l=e.disabledBehavior,a=R.useMemo(()=>i||new bc(r,l==="selection"?new Set:n,s,o),[i,r,n,s,o,l]),{collectionProps:d}=gc({...t,ref:s,selectionManager:e,keyboardDelegate:a});return{listProps:d}}function wc(t,e,r){let{item:n}=t,s=F.useId(),i=F.useId(),o=e.disabledKeys.has(n.key),{itemProps:l}=vc({selectionManager:e.selectionManager,key:n.key,ref:r}),{buttonProps:a}=fc(F.mergeProps(l,{id:s,elementType:"button",isDisabled:o,onPress:()=>e.toggleKey(n.key)}),r),d=e.expandedKeys.has(n.key);return{buttonProps:{...a,"aria-expanded":d,"aria-controls":d?i:void 0},regionProps:{id:i,role:"region","aria-labelledby":s}}}function xc(t,e,r){let{listProps:n}=yc({...t,...e,allowsTabNavigation:!0,ref:r});return{accordionProps:{...n,tabIndex:void 0}}}function wn(){const t=R.createContext(void 0);function e(){const r=R.useContext(t);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[e,t.Provider]}function yi(){const t=R.createContext(void 0);function e(){const r=R.useContext(t);return r===void 0?{}:r}return[e,t.Provider]}const[wi,Sc]=yi();function xi(t){const{state:e,children:r,TransitionAnimation:n}=t,s=R.useMemo(()=>({state:e,TransitionAnimation:n}),[e,n]);return b.jsx(Sc,{value:s,children:r})}const J=({as:t="div",themeName:e="box",tokens:r,customTheme:n,children:s,className:i,...o})=>{const l=z(e,r,n);return b.jsx(t,{...o,className:l,children:s})},Ke=R.forwardRef((t,e)=>{const{as:r="div",tokens:n,themeName:s="box",customTheme:i,children:o,...l}=t,a=z(s,n,i);return b.jsx(r,{...l,ref:e,className:a,children:o})}),Tc=t=>{const{isVisible:e,children:r,themeName:n,tokens:s,customTheme:i,...o}=t,l=me.useTransition(e,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),a=z(n,s,i);return l((d,c)=>c&&b.jsx(me.animated.div,{...o,style:d,className:a,children:r}))},xn=R.forwardRef((t,e)=>{var v;const{as:r="a",handlePress:n,children:s,as:i,customTheme:o,tokens:l,themeName:a="button",nextLinkProps:d,...c}=t,u=e,{linkProps:f}=V.useLink({...t,...d,href:t.href??((v=d==null?void 0:d.href)==null?void 0:v.toString()),elementType:i==null?void 0:i.toString(),onPress:n},e??u),h=z(a,l,o);return b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsx(r,{ref:u,...f,...d,...c,className:h,children:s})})}),Si=R.forwardRef((t,e)=>{const{as:r="button",handlePress:n,children:s,as:i,customTheme:o,tokens:l,themeName:a="button",isDisabled:d=!1,...c}=t,u=e,{buttonProps:f}=V.useButton({...t,isDisabled:d,elementType:i,onPress:n},e??u),h=z(a,l,o);return b.jsx(V.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:b.jsx(r,{ref:u,...f,...c,className:h,children:s})})}),lt=R.forwardRef((t,e)=>{const{as:r}=t;return r==="a"?b.jsx(xn,{ref:e,...t}):b.jsx(Si,{ref:e,...t})}),Ec=t=>{const{as:e}=t,r=R.useRef(null);return e==="a"?b.jsx(xn,{ref:r,...t}):b.jsx(Si,{ref:r,...t})},ge=R.memo(Ec),Pc=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e)))})},Cc=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),Ti=R.memo(Cc),$c=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),Mc=t=>{const{icon:e,...r}=t,n=R.useMemo(()=>R.lazy(()=>Pc(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>hh),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>gh),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>bh),"../icons/Check.tsx":()=>Promise.resolve().then(()=>wh),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>Sh),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>Eh),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>rd),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>Ch),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>Mh),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>Lh),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>Oh),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>$c),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>Ah),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>_h),"../icons/Link.tsx":()=>Promise.resolve().then(()=>Nh),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>zh),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>Vh),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>Hh),"../icons/Search.tsx":()=>Promise.resolve().then(()=>sd),"../icons/Share.tsx":()=>Promise.resolve().then(()=>Kh),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>Uh),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>Xh),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>Jh),"../icons/X.tsx":()=>Promise.resolve().then(()=>em),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>rm),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>sm)}),`../icons/${e||"ArrowRight"}.tsx`)),[e]);return b.jsx(R.Suspense,{fallback:b.jsx(Ti,{className:"overflow-visible pointer-events-none"}),children:b.jsx(n,{...r,className:"overflow-visible pointer-events-none",...t})})},oe=t=>{const{icon:e,as:r="span",tokens:n,customTheme:s,themeName:i="icon",children:o,...l}=t,a=z(i,n,s);return typeof e!="string"?b.jsxs(r,{...l,className:a,children:[o,e]}):b.jsxs(r,{className:a,children:[o,b.jsx(Mc,{icon:e,...l})]})},Ic=t=>{const{item:e,tokens:r,customTheme:n}=t,{props:s,rendered:i,key:o}=e,{icon:l,title:a,onOpenChange:d,tokens:c,themeName:u}=s??{},{themeName:f=u}=t,h=R.useRef(null),{state:v,TransitionAnimation:m=Tc}=wi(),{buttonProps:{onClick:g,onKeyDown:p,onPointerDown:x,...w},regionProps:T}=wc(t,v,h),I=v.selectionManager.selectedKeys.has(o),M={...r,isOpen:I,...c},A=S=>{S.continuePropagation(),v.selectionManager.select(e.key),v.toggleKey(e.key)};return ho.useUpdateEffect(()=>{d==null||d(I)},[I]),b.jsxs(J,{themeName:`${f}.container`,tokens:M,customTheme:n,children:[b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsxs(lt,{...w,"aria-expanded":I,handlePress:A,ref:h,themeName:`${f}.button`,tokens:M,children:[b.jsx(J,{themeName:`${f}.title`,tokens:M,children:a}),l&&b.jsx(J,{themeName:`${f}.icon`,tokens:M,children:b.jsx(oe,{icon:l})})]})}),b.jsx(m,{isVisible:I,themeName:`${f}.region`,...T,tokens:M,children:b.jsx(J,{themeName:`${f}.content`,tokens:M,children:b.jsx(V.FocusScope,{autoFocus:!0,children:i})})})]})};function Ei(t){const{children:e,defaultSelectedKeys:r,selectionMode:n="single",selectedKeys:s,onSelectionChange:i,...o}=t,l=Array.isArray(e)?e:[e],a=r??l.reduce((c,u)=>{const{props:f,key:h}=u,{defaultOpen:v}=f??{};return!v||!h||c.push(h),c},[]);return $e.useTreeState({children:e,selectionMode:n,defaultExpandedKeys:a,defaultSelectedKeys:a,expandedKeys:s,selectedKeys:s,onSelectionChange:i,...o})}const Lc=t=>{const{themeName:e="accordion",tokens:r,customTheme:n,TransitionAnimation:s}=t,i=R.useRef(null),o=Ei(t),{accordionProps:l}=xc(t,o,i);return b.jsx(xi,{state:o,TransitionAnimation:s,children:b.jsx(Ke,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,ref:i,...l,children:[...o.collection].map(a=>b.jsx(Ic,{item:a,themeName:e,tokens:r},a.key))})})},Pi=t=>null;Pi.getCollectionNode=function*(e){const{children:r,childItems:n,title:s}=e,i=e.textValue||(typeof r=="string"?r:"")||e["aria-label"]||"";yield{type:"item",props:e,rendered:r,textValue:i,"aria-label":e["aria-label"],hasChildNodes:!1,*childNodes(){if(n)for(const o of n)yield{type:"item",value:o};else if(s){const o=[];R.Children.forEach(r,l=>{o.push({type:"item",element:l})}),yield*o}}}};const Rc=Pi,Oc=t=>{const{sharingLinksList:e,id:r,isOpen:n,setIsOpen:s,onShare:i,themeName:o="shareButton",tokens:l,customTheme:a}=t,d=z(`${o}.linksList`,{...l,isOpen:n},a),c=V.useFocusManager(),u=f=>{f.key==="Escape"&&s(!1);const{listDirection:h}=l??{};h==="row"&&(f.key==="ArrowRight"&&(c==null||c.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(c==null||c.focusPrevious({wrap:!0}),f.preventDefault())),h==="column"&&(f.key==="ArrowDown"&&(c==null||c.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(c==null||c.focusPrevious({wrap:!0}),f.preventDefault()))};return b.jsx("div",{className:d,id:r,role:"listbox",tabIndex:-1,onKeyDown:u,children:e==null?void 0:e.map(f=>{const{ariaLabel:h,onClick:v,href:m,icon:g,key:p}=f;return b.jsx(ge,{themeName:`${o}.link`,tokens:{...l,isOpen:n},handlePress:()=>{i==null||i(p),v==null||v(p)},"aria-label":h,...m?{href:m,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:b.jsx(oe,{themeName:`${o}.linkIcons`,icon:g})},p)})})},Dc=t=>{const{ariaLabel:e,icon:r,id:n,sharingLinksList:s,onShare:i,customTheme:o,themeName:l="shareButton",tokens:a,...d}=t,[c,u]=R.useState(!1),f=z(`${l}.container`,a,o),h=m=>{u(!c),!c&&setTimeout(()=>{var p,x;const g=(x=(p=m.target.parentElement)==null?void 0:p.lastChild)==null?void 0:x.firstChild;g==null||g.focus()})},v=m=>{const g=m.currentTarget.firstChild,p=m.currentTarget.lastChild,x=p.firstChild,w=p.lastChild,{listDirection:T}=a??{};T==="row"&&(m.key==="ArrowRight"&&m.target===g&&(x==null||x.focus(),m.preventDefault()),m.key==="ArrowLeft"&&m.target===g&&(w.focus(),m.preventDefault())),T==="column"&&(m.key==="ArrowDown"&&m.target===g&&(x==null||x.focus(),m.preventDefault()),m.key==="ArrowUp"&&m.target===g&&(w.focus(),m.preventDefault())),m.key==="Escape"&&(u(!1),g==null||g.focus()),document.activeElement===p&&(g==null||g.focus())};return b.jsx(V.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:c,children:b.jsxs("div",{className:f,onKeyDown:v,children:[b.jsx(lt,{themeName:`${l}.button`,tokens:{...a,isOpen:c},"aria-label":e,"aria-haspopup":"listbox","aria-expanded":c?"true":"false","aria-controls":"share-buttons",handlePress:h,...d,children:b.jsx(oe,{themeName:`${l}.icon`,icon:r??"Share"})}),c&&b.jsx(Oc,{id:n,sharingLinksList:s,onShare:i,isOpen:c,setIsOpen:u,themeName:l,customTheme:o,tokens:a})]})})};function Sn(t,e,r){const{type:n="dialog"}=t,{triggerProps:{onPress:s,...i},overlayProps:o}=V.useOverlayTrigger({type:n},e,r),l={handlePress:s,...i},a=F.useSlotId();return{openTriggerProps:{"aria-labelledby":a,...l},triggerProps:l,labelProps:{id:a},overlayProps:{...o,"aria-labelledby":a}}}const[Tn,Ac]=wn();function Ci(t){const{children:e,defaultSelectedKey:r,onOpenCallback:n,onCloseCallback:s,defaultIsOpen:i=!1,type:o="dialog"}=t,l=R.useRef(null),a=R.useRef(null),d=$e.useOverlayTriggerState({defaultOpen:i,onOpenChange(h){if(!h){s==null||s();return}n==null||n()}}),{triggerProps:c,overlayProps:u}=Sn({type:o},d),f=R.useMemo(()=>({overlayProps:u,defaultSelectedKey:r,overlayState:d,buttonProps:{closeButtonProps:c,closeButtonRef:a,openButtonProps:c,openButtonRef:l}}),[d,r,c,u]);return b.jsx(Ac,{value:f,children:e})}const $i=({isVisible:t,children:e})=>me.useTransition(t,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,s)=>s&&b.jsx(me.animated.div,{style:n,children:e})),jc="fixed",_c=({isVisible:t,children:e})=>me.useTransition(t,{from:{opacity:0,position:jc,left:0,top:0,zIndex:1e3,bottom:0,height:"100%"},enter:{opacity:1},leave:{opacity:0},config:me.config.stiff})((n,s)=>s&&b.jsx(me.animated.div,{style:n,children:e})),kc=({isVisible:t,children:e})=>me.useTransition(t,{from:{opacity:0,scale:.75},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:me.config.stiff})((n,s)=>s&&b.jsx(me.animated.div,{style:{position:"fixed",left:0,top:0,bottom:0,zIndex:1e3,width:"100%",height:"100%",...n},children:e})),Nc=t=>{const{children:e,themeName:r,tokens:n,customTheme:s}=t,i=R.useRef(null),{dialogProps:o}=V.useDialog(t,i);return b.jsx(Ke,{themeName:`${r}.dialog`,tokens:n,customTheme:s,ref:i,"aria-modal":!0,...o,children:b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:b.jsx(V.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:e})})})},Bc=t=>{const{themeName:e,tokens:r,customTheme:n,children:s,state:i,...o}=t,l=R.useRef(null),{modalProps:a,underlayProps:d}=V.useModalOverlay(o,i,l);return b.jsx(J,{themeName:`${e}.underlay`,tokens:r,customTheme:n,...d,children:b.jsx(Ke,{ref:l,themeName:`${e}.overlay`,tokens:r,...a,children:s})})},En=t=>{const{children:e,transitionComponent:r=kc,state:n,themeName:s,tokens:i,...o}=t;return b.jsx(V.OverlayContainer,{children:b.jsx(r,{isVisible:n.isOpen,children:b.jsx(Bc,{themeName:s,tokens:i,state:n,...o,children:b.jsx(Nc,{themeName:s,tokens:i,...o,children:e})})})})},zc=t=>{const{children:e,closeBtnRender:r,themeName:n="sidePanel",tokens:s,TransitionAnimation:i=$i,PanelTransition:o=_c,customTheme:l}=t,a=z(`${n}.wrapper`,s,l),d=z(`${n}.container`,s,l),c=z(`${n}.innerContainer`,s,l),{overlayState:u,overlayProps:f}=Tn();return b.jsx(En,{state:u,...f,transitionComponent:o,isDismissable:!0,children:b.jsxs(mo,{className:a,children:[r&&r(),b.jsx(i,{isVisible:u.isOpen,children:b.jsx("div",{className:d,children:b.jsx("div",{className:c,children:e})})})]})})},Mi=R.memo(zc),Fc=t=>{const{themeName:e,tokens:r,children:n,...s}=t;return b.jsx(ge,{themeName:e,tokens:r,...s,children:b.jsx(oe,{icon:"CloseBtn"})})},Vc=t=>{const{children:e,thumbnailContent:r,label:n,themeName:s="lightBox",tokens:i,closeButton:o=Fc,setOpen:l,isOpen:a,closeButtonAriaLabel:d,transitionComponent:c}=t,u=$e.useOverlayTriggerState(t),{openTriggerProps:f,triggerProps:h,overlayProps:v,labelProps:m}=Sn({...t,type:"dialog"},u),g=p=>{var x;l==null||l(!a),(x=f.handlePress)==null||x.call(f,p)};return b.jsxs(b.Fragment,{children:[b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs(ge,{themeName:`${s}.wrapper`,tokens:i,...f,handlePress:g,children:[n&&b.jsx(ie,{themeName:`${s}.label`,tokens:{size:"footnotes"},...m,children:n}),r]})}),b.jsxs(En,{themeName:`${s}.modal`,tokens:i,state:u,...v,transitionComponent:c,children:[b.jsx(o,{themeName:`${s}.closeBtn`,tokens:i,"aria-label":d,...h}),b.jsx(J,{themeName:`${s}.container`,tokens:i,children:e})]})]})},qc=R.forwardRef((t,e)=>{const{isOpen:r,onClose:n,children:s,positionProps:i,themeName:o="popover",tokens:l,customTheme:a,isDismissable:d,shouldCloseOnBlur:c,...u}=t,{overlayProps:f}=V.useOverlay({isDismissable:d,shouldCloseOnBlur:c,isOpen:r,onClose:n},e),{modalProps:h}=V.useModal(),{dialogProps:v}=V.useDialog({},e),m=z(`${o}.popover`,l,a);return b.jsx(V.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:b.jsxs(Ke,{customTheme:m,...V.mergeProps(f,h,v),ref:e,...i,...u,children:[R.Children.map(s,g=>b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:g})),b.jsx(V.DismissButton,{onDismiss:n})]})})});function Hc(t){const{children:e,buttonProps:r,placement:n="right",offset:s=5,themeName:i="popover",tokens:o,customTheme:l,...a}=t,d=$e.useOverlayTriggerState({}),c=R.useRef(null),u=R.useRef(null),{triggerProps:f,overlayProps:h}=V.useOverlayTrigger({type:"dialog"},d,c),{overlayProps:v}=V.useOverlayPosition({targetRef:c,overlayRef:u,placement:n,offset:s,isOpen:d.isOpen}),{onPress:m,...g}=f;return b.jsxs(b.Fragment,{children:[b.jsx(lt,{themeName:`${i}.button`,handlePress:m,...r,...g,ref:c}),d.isOpen&&b.jsx(V.OverlayContainer,{children:b.jsx(qc,{themeName:i,tokens:o,customTheme:l,...h,...a,positionProps:v,ref:u,isOpen:d.isOpen,onClose:d.close,children:e})})]})}const Gc=({content:t,themeName:e="wysiwyg",...r})=>b.jsx(ie,{...r,themeName:e,dangerouslySetInnerHTML:{__html:go.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","target"]})}}),Kc=t=>{const{as:e="time",date:r,tokens:n,customTheme:s,dateFormatterOptions:i={month:"long",day:"numeric",year:"numeric"},themeName:o="typography",...l}=t,a=V.useIsSSR(),d=new Date(r),u=Ge.useDateFormatter(i).format(d),f=z(o,n,s);return a||pn.isEmpty(u)?null:b.jsx(e,{...l,dateTime:d.toISOString(),className:f,children:u})},Ii=t=>{const{key:e,value:r}=t;return b.jsx($e.Item,{children:r},e)},Wc=({item:t,state:e,themeName:r="li"})=>{const n=R.useRef(null),{optionProps:s,isFocusVisible:i}=V.useOption({key:t.key},e,n),o=z(r);return b.jsx(ui,{as:"li",...s,tokens:{className:`${o} ${i?"has-focus-ring":""}`},ref:n,children:t.rendered})},Uc=t=>{const e=R.useRef(null),{listBoxRef:r=e,state:n,themeName:s="option"}=t,{listBoxProps:i}=V.useListBox(t,n,r);return b.jsx(V.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:b.jsx(ui,{...i,ref:r,as:"ul",themeName:`${s}.ul`,children:[...n.collection].map(o=>b.jsx(Wc,{themeName:`${s}.li`,item:o,state:n},o.key))})})},Yc=t=>{const e=R.useRef(null),{popoverRef:r=e,state:n,children:s,themeName:i="popover",tokens:o,customTheme:l,triggerRef:a,...d}=t,{popoverProps:c,underlayProps:u}=V.usePopover({...t,popoverRef:r,triggerRef:a},n);return b.jsxs(V.Overlay,{children:[b.jsx("div",{...u,style:{position:"fixed",inset:0}}),b.jsx(J,{...d,children:b.jsxs(Ke,{...c,ref:r,themeName:i,tokens:o,children:[b.jsx(V.DismissButton,{onDismiss:n.close}),s,b.jsx(V.DismissButton,{onDismiss:n.close})]})})]})},Li=t=>{var P;const{name:e,placeholderLabel:r,disabled:n,hookFormRef:s,isError:i=!1,errorMessage:o,themeName:l="select",tokens:a,customTheme:d,label:c,onSelectionChange:u,defaultValue:f,value:h,icon:v,popoverMatchesWidth:m,options:g,...p}=t,x=R.useRef(null),w=$e.useSelectState({...p,children:Ii,selectedKey:h,defaultSelectedKey:f,items:g,onSelectionChange:u}),{triggerProps:T,menuProps:I,labelProps:M}=V.useSelect({...p,label:c},w,x),{onPress:A,onPressStart:S,...C}=T;return b.jsxs(J,{themeName:`${l}.wrapper`,children:[c&&b.jsx(ie,{...M,as:"label",themeName:`${l}.label`,children:c}),b.jsx(V.HiddenSelect,{...s,state:w,triggerRef:x,name:e,isDisabled:!0}),b.jsxs(J,{themeName:`${l}.container`,children:[b.jsxs(lt,{...C,handlePress:$=>{A==null||A($),S==null||S($)},ref:x,disabled:n,themeName:`${l}.button`,tokens:{...a,intent:i?"error":"default"},children:[w.selectedItem?w.selectedItem.rendered:r,b.jsx(oe,{icon:v??"ArrowDown"})]}),w.isOpen&&x.current&&b.jsx(Yc,{tokens:a,state:w,triggerRef:x,placement:"bottom",themeName:`${l}.popover`,style:{[`--${l}-container-width`]:`${(P=x.current)==null?void 0:P.offsetWidth}px`},children:b.jsx(Uc,{...I,themeName:l,state:w})}),i&&b.jsx(ie,{tokens:{...a,isError:i},themeName:`${l}.errorMessage`,children:o})]})]})},Xc=t=>{const{name:e,required:r}=t,{register:n,formState:s}=je.useFormContext(),i=je.get(s.errors,e),o=(i==null?void 0:i.message)??void 0,{ref:l}=n(e,{required:r?"This is an error message":!1});return b.jsx(Li,{...t,isError:!pn.isEmpty(o),errorMessage:o,hookFormRef:l})},Qc=t=>{const{id:e,label:r,isDisabled:n=!1,isError:s=!1,errorMessage:i,ariaLabel:o,icon:l,themeName:a="checkbox",tokens:d,customTheme:c}=t,u=yo.useToggleState(t),f=R.useRef(null),{inputProps:h}=vo.useCheckbox(t,u,f),{isSelected:v}=u,{focusProps:m,isFocusVisible:g}=we.useFocusRing(),p={...d,selected:v,isDisabled:n,isError:s,isFocusVisible:g},x=z(`${a}.container`,p,c),w=z(`${a}.checkBox`,p,c),T=z(`${a}.checkMark`,p,c),I=z(`${a}.checkMarkIcon`,p,c);return b.jsxs("div",{children:[b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("label",{className:x,htmlFor:e,"aria-label":o,"aria-disabled":n,children:[b.jsx(bo.VisuallyHidden,{children:b.jsx("input",{type:"checkbox",ref:f,"aria-labelledby":e,...h,...m})}),b.jsx("div",{className:w,"aria-checked":v,role:"checkbox","aria-labelledby":e,children:b.jsx("div",{className:T,children:l&&b.jsx(oe,{icon:l,customTheme:I})})}),b.jsx(ie,{themeName:`${a}.label`,tokens:p,children:r})]})}),s&&i&&b.jsx(ie,{themeName:`${a}.errorMessage`,tokens:p,children:i})]})},[Jc,Zc]=wn();function ed(t){const{userQuery:e,children:r}=t,[n,s]=R.useState(e),i=R.useMemo(()=>({userSearchQuery:n,setUserSearchQuery:s}),[n,s]);return b.jsx(Zc,{value:i,children:r})}const td=t=>b.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:b.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 6 6 18M6 6l12 12"})}),or=R.memo(td,Q),rd=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),nd=t=>b.jsxs("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:[b.jsxs("g",{stroke:"currentColor",clipPath:"url(#a)",children:[b.jsx("circle",{cx:"8.2727",cy:"8.2727",r:"7.2727"}),b.jsx("path",{d:"M13.4551 13.4531L19.5005 19.4986"})]}),b.jsx("defs",{children:b.jsx("clipPath",{children:b.jsx("path",{fill:"currentColor",d:"M0 0h14v14H0z"})})})]}),Ri=R.memo(nd,Q),sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),id=t=>{const{setUserSearchQuery:e}=Jc(),{label:r,themeName:n="search",tokens:s,customTheme:i,disabled:o,errorMessage:l,placeholder:a}=t,d=$e.useSearchFieldState(t);e(d.value);const c=R.useRef(null),{labelProps:u,inputProps:f,errorMessageProps:h,clearButtonProps:v}=V.useSearchField(t,d,c),m={...s,isError:l!=null},g=z(`${n}.wrapper`,m,i),p=z(`${n}.input`,m,i),x=z(`${n}.label`,m,i),w=z(`${n}.container`,m,i);return b.jsxs("div",{className:g,"aria-disabled":o,children:[r&&b.jsx("label",{...u,className:x,children:r}),b.jsxs("div",{className:w,children:[b.jsx("input",{ref:c,...f,placeholder:a,className:p,disabled:o}),b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsx(ge,{handlePress:v.onPress,tokens:{isIconOnly:!0,buttonStyle:"hollow"},themeName:`${n}.icon`,"aria-label":"clear",children:d.value===""?b.jsx(Ri,{width:"16",height:"16"}):b.jsx(or,{width:"16",height:"16"})})})]}),l&&b.jsx(ie,{themeName:`${n}.errorMessage`,tokens:m,...h,children:l})]})},Pn={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Oi={...Pn,customError:!0,valid:!1},ft={isInvalid:!1,validationDetails:Pn,validationErrors:[]},ad=R.createContext({}),Un="__formValidationState"+Date.now();function Di(t){if(t[Un]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:s,commitValidation:i}=t[Un];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:s,commitValidation:i}}return od(t)}function od(t){let{isInvalid:e,validationState:r,name:n,value:s,builtinValidation:i,validate:o,validationBehavior:l="aria"}=t;r&&(e||(e=r==="invalid"));let a=e?{isInvalid:!0,validationErrors:[],validationDetails:Oi}:null,d=R.useMemo(()=>Yn(ld(o,s)),[o,s]);i!=null&&i.validationDetails.valid&&(i=null);let c=R.useContext(ad),u=R.useMemo(()=>n?Array.isArray(n)?n.flatMap(P=>tn(c[P])):tn(c[n]):[],[c,n]),[f,h]=R.useState(c),[v,m]=R.useState(!1);c!==f&&(h(c),m(!1));let g=R.useMemo(()=>Yn(v?[]:u),[v,u]),p=R.useRef(ft),[x,w]=R.useState(ft),T=R.useRef(ft),I=()=>{if(!M)return;A(!1);let P=d||i||p.current;vr(P,T.current)||(T.current=P,w(P))},[M,A]=R.useState(!1);return R.useEffect(I),{realtimeValidation:a||g||d||i||ft,displayValidation:l==="native"?a||g||x:a||g||d||i||x,updateValidation(P){l==="aria"&&!vr(x,P)?w(P):p.current=P},resetValidation(){let P=ft;vr(P,T.current)||(T.current=P,w(P)),l==="native"&&A(!1),m(!0)},commitValidation(){l==="native"&&A(!0),m(!0)}}}function tn(t){return t?Array.isArray(t)?t:[t]:[]}function ld(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return tn(r)}return[]}function Yn(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Oi}:null}function vr(t,e){return t===e?!0:t&&e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function cd(...t){let e=new Set,r=!1,n={...Pn};for(let o of t){var s,i;for(let l of o.validationErrors)e.add(l);r||(r=o.isInvalid);for(let l in n)(s=n)[i=l]||(s[i]=o.validationDetails[l])}return n.valid=!r,{isInvalid:r,validationErrors:[...e],validationDetails:n}}function Ai(t,e,r){let[n,s]=R.useState(t||e),i=R.useRef(t!==void 0),o=t!==void 0;R.useEffect(()=>{let d=i.current;d!==o&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),i.current=o},[o]);let l=o?t:n,a=R.useCallback((d,...c)=>{let u=(f,...h)=>{r&&(Object.is(l,f)||r(f,...h)),o||(l=f)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((h,...v)=>{let m=d(o?l:h,...v);return u(m,...c),o?h:m})):(o||s(d),u(d,...c))},[o,l,r]);return[l,a]}function dd(t={}){let[e,r]=Ai(t.value,t.defaultValue||[],t.onChange),n=!!t.isRequired&&e.length===0,s=R.useRef(new Map),i=Di({...t,value:e}),o=i.displayValidation.isInvalid;var l;return{...i,value:e,setValue(d){t.isReadOnly||t.isDisabled||r(d)},isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isSelected(d){return e.includes(d)},addValue(d){t.isReadOnly||t.isDisabled||e.includes(d)||r(e.concat(d))},removeValue(d){t.isReadOnly||t.isDisabled||e.includes(d)&&r(e.filter(c=>c!==d))},toggleValue(d){t.isReadOnly||t.isDisabled||(e.includes(d)?r(e.filter(c=>c!==d)):r(e.concat(d)))},setInvalid(d,c){let u=new Map(s.current);c.isInvalid?u.set(d,c):u.delete(d),s.current=u,i.updateValidation(cd(...u.values()))},validationState:(l=t.validationState)!==null&&l!==void 0?l:o?"invalid":null,isInvalid:o,isRequired:n}}const ji=R.createContext(null),ud=t=>{const{children:e,state:r}=t;return b.jsx(ji.Provider,{value:r,children:e})};function fd(){const t=R.useContext(ji);return t||null}const pd=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:s=!1,children:i,themeName:o="checkboxGroup",tokens:l}=t,a=dd(t),{groupProps:d,labelProps:c,errorMessageProps:u}=V.useCheckboxGroup(t,a),f={...l,isDisabled:s};return b.jsxs(J,{...d,"aria-disabled":s,themeName:`${o}.checkboxGroup`,tokens:f,children:[e&&b.jsx(ie,{...c,tokens:{size:"h6"},children:e}),b.jsx(J,{themeName:`${o}.checkboxGroupItemsGroup`,children:b.jsx(ud,{state:a,children:i})}),r&&n&&b.jsx(ie,{...u,tokens:{isError:!0},children:n})]})},hd=t=>{const{id:e,ariaLabel:r,icon:n,state:s,themeName:i="checkbox",customTheme:o,tokens:l,isDisabled:a=!1,isError:d=!1,value:c,errorMessage:u,label:f}=t,h=R.useRef(null),{inputProps:v}=V.useCheckboxGroupItem(t,s,h),{isSelected:m}=s,g={...l,selected:m(c),isDisabled:a,isError:d},p=z(`${i}.container`,g,o),x=z(`${i}.checkBox`,g,o),w=z(`${i}.checkMark`,g,o),T=z(`${i}.checkMarkIcon`,g,o);return b.jsxs("div",{children:[b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("label",{className:p,htmlFor:e,"aria-label":r,"aria-disabled":a,children:[b.jsx(V.VisuallyHidden,{children:b.jsx("input",{ref:h,...v})}),b.jsx("div",{className:x,"aria-checked":m(c),role:"checkbox","aria-labelledby":e,children:b.jsx("div",{className:w,children:n&&b.jsx(oe,{icon:n,customTheme:T})})}),b.jsx(ie,{themeName:`${i}.label`,tokens:g,children:f})]})}),d&&u&&b.jsx(ie,{themeName:`${i}.errorMessage`,tokens:g,children:u})]})},md=t=>{const e=fd();return e&&b.jsx(hd,{state:e,...t})},_i=t=>{const{id:e,label:r,name:n,placeholder:s,required:i,disabled:o=!1,errorMessage:l,ariaLabel:a,value:d,onBlur:c,onChange:u,fieldRef:f,themeName:h="textarea",tokens:v,customTheme:m}=t,g=R.useRef(null),{errorMessageProps:p,inputProps:x,labelProps:w}=V.useTextField(t,g),T={...v,isDisabled:o,isError:l!=null},I=z(`${h}.wrapper`,T,m),M=z(`${h}.input`,T,m),A=z(`${h}.label`,T,m),S=z(`${h}.container`,T,m);return b.jsxs("div",{children:[b.jsxs("div",{className:I,"aria-disabled":o,children:[r&&b.jsx("label",{className:A,...w,children:r}),b.jsx("div",{className:S,children:b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsx("textarea",{...x,ref:C=>{f==null||f(C),g.current=C},className:M,placeholder:s,disabled:o,required:i,id:e,name:n,"aria-label":a,"aria-labelledby":e,value:d,onBlur:c,onChange:u})})})]}),l&&b.jsx(ie,{themeName:`${h}.errorMessage`,tokens:T,...p,children:l})]})},gd=t=>{const{name:e,required:r,minLength:n=0,maxLength:s=99999999,validation:i}=t,{register:o,formState:l}=je.useFormContext(),a=je.get(l.errors,e),d=(a==null?void 0:a.message)??void 0,{t:c}=hn.useTranslation("components"),{ref:u,...f}=o(e,{required:r?c("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:c("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:s,message:c("FORM.ERROR.MAX_LENGTH",{length:n})},...i});return b.jsx(_i,{fieldRef:u,...f,...t,isError:!si.isEmpty(d),errorMessage:d})},ki=t=>{const{label:e,isRequired:r=!1,isDisabled:n=!1,required:s,disabled:i,errorMessage:o,fieldRef:l,children:a,themeName:d="textInput",tokens:c,customTheme:u,ariaLabel:f}=t,h=s??r,v=i??n,m=R.useRef(null),{errorMessageProps:g,inputProps:p,labelProps:x}=V.useTextField({"aria-label":f,...t,isRequired:h,isDisabled:v},m),{"aria-labelledby":w,...T}={...p,required:h,disabled:v},I={...c,isDisabled:n,isRequired:r,isError:!!o},M=z(`${d}.wrapper`,I,u),A=z(`${d}.label`,I,u),S=z(`${d}.input`,I,u),C=z(`${d}.container`,I,u);return b.jsxs("div",{children:[b.jsx(we.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("div",{"aria-disabled":n,className:M,children:[e&&b.jsx("label",{className:A,...x,children:e}),b.jsxs("div",{className:C,children:[a,b.jsx("input",{...T,className:S,ref:P=>{l==null||l(P),m.current=P}})]})]})}),o&&b.jsx(ie,{themeName:`${d}.errorMessage`,tokens:I,...g,children:o})]})},vd=t=>{const{name:e,required:r,isRequired:n,minLength:s=0,maxLength:i=99999999,validation:o}=t,{register:l,formState:a}=je.useFormContext(),d=je.get(a.errors,e),c=(d==null?void 0:d.message)??void 0,{t:u}=hn.useTranslation("components"),{ref:f,...h}=l(e,{required:r??n?u("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:s,message:u("FORM.ERROR.MIN_LENGTH",{length:s})},maxLength:{value:i,message:u("FORM.ERROR.MAX_LENGTH",{length:s})},...o});return b.jsx(ki,{fieldRef:f,...h,...t,errorMessage:c})};function Ce(t,e){return t-e*Math.floor(t/e)}const Ni=1721426;function ze(t,e,r,n){e=Tt(t,e);let s=e-1,i=-2;return r<=2?i=0:Oe(e)&&(i=-1),Ni-1+365*s+Math.floor(s/4)-Math.floor(s/100)+Math.floor(s/400)+Math.floor((367*r-362)/12+i+n)}function Oe(t){return t%4===0&&(t%100!==0||t%400===0)}function Tt(t,e){return t==="BC"?1-e:e}function lr(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const bd={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Me{fromJulianDay(e){let r=e,n=r-Ni,s=Math.floor(n/146097),i=Ce(n,146097),o=Math.floor(i/36524),l=Ce(i,36524),a=Math.floor(l/1461),d=Ce(l,1461),c=Math.floor(d/365),u=s*400+o*100+a*4+c+(o!==4&&c!==4?1:0),[f,h]=lr(u),v=r-ze(f,h,1,1),m=2;r<ze(f,h,3,1)?m=0:Oe(h)&&(m=1);let g=Math.floor(((v+m)*12+373)/367),p=r-ze(f,h,g,1)+1;return new le(f,h,g,p)}toJulianDay(e){return ze(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return bd[Oe(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Oe(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const yd={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Xn(t,e){return e=cr(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Bi(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1-Td(e))%7;return n<0&&(n+=7),n}function zi(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function wd(t,e){return Qn(t)-Qn(e)}function Qn(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let br=null;function Fi(){return br==null&&(br=new Intl.DateTimeFormat().resolvedOptions().timeZone),br}function xd(t){return t.subtract({days:t.day-1})}const Jn=new Map;function Sd(t){if(Intl.Locale){let r=Jn.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&Jn.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function Td(t){let e=Sd(t);return e&&yd[e]||0}function Ed(t,e){let r=t.calendar.getDaysInMonth(t);return Math.ceil((Bi(xd(t),e)+r)/7)}function Zn(t){t=cr(t,new Me);let e=Tt(t.era,t.year);return Vi(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function Vi(t,e,r,n,s,i,o){let l=new Date;return l.setUTCHours(n,s,i,o),l.setUTCFullYear(t,e-1,r),l.getTime()}function es(t,e){if(e==="UTC")return 0;if(t>0&&e===Fi())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:s,hour:i,minute:o,second:l}=qi(t,e);return Vi(r,n,s,i,o,l,0)-Math.floor(t/1e3)*1e3}const ts=new Map;function qi(t,e){let r=ts.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ts.set(e,r));let n=r.formatToParts(new Date(t)),s={};for(let i of n)i.type!=="literal"&&(s[i.type]=i.value);return{year:s.era==="BC"||s.era==="B"?-s.year+1:+s.year,month:+s.month,day:+s.day,hour:s.hour==="24"?0:+s.hour,minute:+s.minute,second:+s.second}}const rs=864e5;function Pd(t,e,r,n){return(r===n?[r]:[r,n]).filter(i=>Cd(t,e,i))}function Cd(t,e,r){let n=qi(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function $d(t,e,r="compatible"){let n=Gi(t);if(e==="UTC")return Zn(n);if(e===Fi()&&r==="compatible"){n=cr(n,new Me);let a=new Date,d=Tt(n.era,n.year);return a.setFullYear(d,n.month-1,n.day),a.setHours(n.hour,n.minute,n.second,n.millisecond),a.getTime()}let s=Zn(n),i=es(s-rs,e),o=es(s+rs,e),l=Pd(n,e,s-i,s-o);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(s-i,s-o);case"compatible":case"later":return Math.max(s-i,s-o);case"reject":throw new RangeError("No such absolute time found")}}function Hi(t,e,r="compatible"){return new Date($d(t,e,r))}function Gi(t,e){let r=0,n=0,s=0,i=0;if("timeZone"in t)({hour:r,minute:n,second:s,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:s,millisecond:i}=e),new Qt(t.calendar,t.era,t.year,t.month,t.day,r,n,s,i)}function cr(t,e){if(t.calendar.identifier===e.identifier)return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,at(n),n}function Cn(t,e){let r=t.copy(),n="hour"in r?Dd(r,e):0;rn(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,nn(r),Ki(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,Md(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let s=r.calendar.getYearsInEra(r);if(r.year>s){var i,o;let a=(i=(o=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(o,r);r.year=s,r.month=a?1:r.calendar.getMonthsInYear(r),r.day=a?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function rn(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function nn(t){for(;t.month<1;)rn(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,rn(t,1)}function Md(t){for(;t.day<1;)t.month--,nn(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,nn(t)}function Ki(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function at(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Ki(t)}function Id(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function Wi(t,e){return Cn(t,Id(e))}function Ui(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),at(r),r}function Ld(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),Od(r),r}function Rd(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Lt(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Lt(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Lt(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Lt(t.hour,24),e}function Od(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function Lt(t,e){let r=t%e;return r<0&&(r+=e),r}function Dd(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Rd(t)}function Yi(t,e,r,n){let s=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),a=l.indexOf(t.era);if(a<0)throw new Error("Invalid era: "+t.era);a=De(a,r,0,l.length-1,n==null?void 0:n.round),s.era=l[a],at(s);break}case"year":var i,o;!((i=(o=s.calendar).isInverseEra)===null||i===void 0)&&i.call(o,s)&&(r=-r),s.year=De(t.year,r,-1/0,9999,n==null?void 0:n.round),s.year===-1/0&&(s.year=1),s.calendar.balanceYearMonth&&s.calendar.balanceYearMonth(s,t);break;case"month":s.month=De(t.month,r,1,t.calendar.getMonthsInYear(t),n==null?void 0:n.round);break;case"day":s.day=De(t.day,r,1,t.calendar.getDaysInMonth(t),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(s),at(s),s}function Ad(t,e,r,n){let s=t.copy();switch(e){case"hour":{let i=t.hour,o=0,l=23;if((n==null?void 0:n.hourCycle)===12){let a=i>=12;o=a?12:0,l=a?23:11}s.hour=De(i,r,o,l,n==null?void 0:n.round);break}case"minute":s.minute=De(t.minute,r,0,59,n==null?void 0:n.round);break;case"second":s.second=De(t.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":s.millisecond=De(t.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return s}function De(t,e,r,n,s=!1){if(s){t+=Math.sign(e),t<r&&(t=n);let i=Math.abs(e);e>0?t=Math.ceil(t/i)*i:t=Math.floor(t/i)*i,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function jd(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Xi(t){let e=cr(t,new Me);return`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function _d(t){return`${Xi(t)}T${jd(t)}`}function Qi(t){let e=typeof t[0]=="object"?t.shift():new Me,r;if(typeof t[0]=="string")r=t.shift();else{let o=e.getEras();r=o[o.length-1]}let n=t.shift(),s=t.shift(),i=t.shift();return[e,r,n,s,i]}var kd=new WeakMap;class le{copy(){return this.era?new le(this.calendar,this.era,this.year,this.month,this.day):new le(this.calendar,this.year,this.month,this.day)}add(e){return Cn(this,e)}subtract(e){return Wi(this,e)}set(e){return Ui(this,e)}cycle(e,r,n){return Yi(this,e,r,n)}toDate(e){return Hi(this,e)}toString(){return Xi(this)}compare(e){return zi(this,e)}constructor(...e){gn(this,kd,{writable:!0,value:void 0});let[r,n,s,i,o]=Qi(e);this.calendar=r,this.era=n,this.year=s,this.month=i,this.day=o,at(this)}}var Nd=new WeakMap;class Qt{copy(){return this.era?new Qt(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qt(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Cn(this,e)}subtract(e){return Wi(this,e)}set(e){return Ui(Ld(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return Yi(this,e,r,n);default:return Ad(this,e,r,n)}}toDate(e,r){return Hi(this,e,r)}toString(){return _d(this)}compare(e){let r=zi(this,e);return r===0?wd(this,Gi(e)):r}constructor(...e){gn(this,Nd,{writable:!0,value:void 0});let[r,n,s,i,o]=Qi(e);this.calendar=r,this.era=n,this.year=s,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,at(this)}}const nt=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Bd=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Kt=[1867,1911,1925,1988,2018],Re=["meiji","taisho","showa","heisei","reiwa"];function ns(t){const e=nt.findIndex(([r,n,s])=>t.year<r||t.year===r&&t.month<n||t.year===r&&t.month===n&&t.day<s);return e===-1?nt.length-1:e===0?0:e-1}function yr(t){let e=Kt[Re.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new le(t.year+e,t.month,t.day)}class zd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=ns(r);return new le(this,Re[n],r.year-Kt[n],r.month,r.day)}toJulianDay(e){return super.toJulianDay(yr(e))}balanceDate(e){let r=yr(e),n=ns(r);Re[n]!==e.era&&(e.era=Re[n],e.year=r.year-Kt[n]),this.constrainDate(e)}constrainDate(e){let r=Re.indexOf(e.era),n=Bd[r];if(n!=null){let[s,i,o]=n,l=s-Kt[r];e.year=Math.max(1,Math.min(l,e.year)),e.year===l&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(o,e.day)))}if(e.year===1&&r>=0){let[,s,i]=nt[r];e.month=Math.max(s,e.month),e.month===s&&(e.day=Math.max(i,e.day))}}getEras(){return Re}getYearsInEra(e){let r=Re.indexOf(e.era),n=nt[r],s=nt[r+1];if(s==null)return 9999-n[0]+1;let i=s[0]-n[0];return(e.month<s[1]||e.month===s[1]&&e.day<s[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(yr(e))}getMinimumMonthInYear(e){let r=ss(e);return r?r[1]:1}getMinimumDayInMonth(e){let r=ss(e);return r&&e.month===r[1]?r[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ss(t){if(t.year===1){let e=Re.indexOf(t.era);return nt[e]}}const Ji=-543;class Fd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=Tt(r.era,r.year);return new le(this,n-Ji,r.month,r.day)}toJulianDay(e){return super.toJulianDay(is(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(is(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function is(t){let[e,r]=lr(t.year+Ji);return new le(e,r,t.month,t.day)}const Jt=1911;function Zi(t){return t.era==="minguo"?t.year+Jt:1-t.year+Jt}function as(t){let e=t-Jt;return e>0?["minguo",e]:["before_minguo",1-e]}class Vd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=Tt(r.era,r.year),[s,i]=as(n);return new le(this,s,i,r.month,r.day)}toJulianDay(e){return super.toJulianDay(os(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[r,n]=as(Zi(e));e.era=r,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(os(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-Jt}constructor(...e){super(...e),this.identifier="roc"}}function os(t){let[e,r]=lr(Zi(t));return new le(e,r,t.month,t.day)}const qd=1948321;function Hd(t){let e=t>0?t-474:t-473,r=Ce(e,2820)+474;return Ce((r+38)*31,128)<31}function Rt(t,e,r){let n=t>0?t-474:t-473,s=Ce(n,2820)+474,i=e<=7?31*(e-1):30*(e-1)+6;return qd-1+1029983*Math.floor(n/2820)+365*(s-1)+Math.floor((31*s-5)/128)+i+r}class Gd{fromJulianDay(e){let r=e-Rt(475,1,1),n=Math.floor(r/1029983),s=Ce(r,1029983),i=s===1029982?2820:Math.floor((128*s+46878)/46751),o=474+2820*n+i;o<=0&&o--;let l=e-Rt(o,1,1)+1,a=l<=186?Math.ceil(l/31):Math.ceil((l-6)/31),d=e-Rt(o,a,1)+1;return new le(this,o,a,d)}toJulianDay(e){return Rt(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||Hd(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const wr=78,ls=80;class Kd extends Me{fromJulianDay(e){let r=super.fromJulianDay(e),n=r.year-wr,s=e-ze(r.era,r.year,1,1),i;s<ls?(n--,i=Oe(r.year-1)?31:30,s+=i+155+90+10):(i=Oe(r.year)?31:30,s-=ls);let o,l;if(s<i)o=1,l=s+1;else{let a=s-i;a<155?(o=Math.floor(a/31)+2,l=a%31+1):(a-=155,o=Math.floor(a/30)+7,l=a%30+1)}return new le(this,n,o,l)}toJulianDay(e){let r=e.year+wr,[n,s]=lr(r),i,o;return Oe(s)?(i=31,o=ze(n,s,3,21)):(i=30,o=ze(n,s,3,22)),e.month===1?o+e.day-1:(o+=i+Math.min(e.month-2,5)*31,e.month>=8&&(o+=(e.month-7)*30),o+=e.day-1,o)}getDaysInMonth(e){return e.month===1&&Oe(e.year+wr)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const Zt=1948440,cs=1948439,ve=1300,Je=1600,Wd=460322;function er(t,e,r,n){return n+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function ea(t,e,r){let n=Math.floor((30*(r-e)+10646)/10631),s=Math.min(12,Math.ceil((r-(29+er(e,n,1,1)))/29.5)+1),i=r-er(e,n,s,1)+1;return new le(t,n,s,i)}function ds(t){return(14+11*t)%30<11}class $n{fromJulianDay(e){return ea(this,Zt,e)}toJulianDay(e){return er(Zt,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&ds(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return ds(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Ud extends $n{fromJulianDay(e){return ea(this,cs,e)}toJulianDay(e){return er(cs,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const Yd="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let sn,st;function Wt(t){return Wd+st[t-ve]}function pt(t,e){let r=t-ve,n=1<<11-(e-1);return sn[r]&n?30:29}function us(t,e){let r=Wt(t);for(let n=1;n<e;n++)r+=pt(t,n);return r}function fs(t){return st[t+1-ve]-st[t-ve]}class Xd extends $n{fromJulianDay(e){let r=e-Zt,n=Wt(ve),s=Wt(Je);if(r<n||r>s)return super.fromJulianDay(e);{let i=ve-1,o=1,l=1;for(;l>0;){i++,l=r-Wt(i)+1;let a=fs(i);if(l===a){o=12;break}else if(l<a){let d=pt(i,o);for(o=1;l>d;)l-=d,o++,d=pt(i,o);break}}return new le(this,i,o,r-us(i,o)+1)}}toJulianDay(e){return e.year<ve||e.year>Je?super.toJulianDay(e):Zt+us(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<ve||e.year>Je?super.getDaysInMonth(e):pt(e.year,e.month)}getDaysInYear(e){return e.year<ve||e.year>Je?super.getDaysInYear(e):fs(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",sn||(sn=new Uint16Array(Uint8Array.from(atob(Yd),e=>e.charCodeAt(0)).buffer)),!st){st=new Uint32Array(Je-ve+1);let e=0;for(let r=ve;r<=Je;r++){st[r-ve]=e;for(let n=1;n<=12;n++)e+=pt(r,n)}}}}const ps=347997,ta=1080,ra=24*ta,Qd=29,Jd=12*ta+793,Zd=Qd*ra+Jd;function Be(t){return Ce(t*7+1,19)<7}function Ut(t){let e=Math.floor((235*t-234)/19),r=12084+13753*e,n=e*29+Math.floor(r/25920);return Ce(3*(n+1),7)<3&&(n+=1),n}function eu(t){let e=Ut(t-1),r=Ut(t);return Ut(t+1)-r===356?2:r-e===382?1:0}function vt(t){return Ut(t)+eu(t)}function na(t){return vt(t+1)-vt(t)}function tu(t){let e=na(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ot(t,e){if(e>=6&&!Be(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let r=tu(t);return e===2?r===2?30:29:e===3?r===0?29:30:e===6?Be(t)?30:0:30}class ru{fromJulianDay(e){let r=e-ps,n=r*ra/Zd,s=Math.floor((19*n+234)/235)+1,i=vt(s),o=Math.floor(r-i);for(;o<1;)s--,i=vt(s),o=Math.floor(r-i);let l=1,a=0;for(;a<o;)a+=Ot(s,l),l++;l--,a-=Ot(s,l);let d=o-a;return new le(this,s,l,d)}toJulianDay(e){let r=vt(e.year);for(let n=1;n<e.month;n++)r+=Ot(e.year,n);return r+e.day+ps}getDaysInMonth(e){return Ot(e.year,e.month)}getMonthsInYear(e){return Be(e.year)?13:12}getDaysInYear(e){return na(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,r){r.year!==e.year&&(Be(r.year)&&!Be(e.year)&&r.month>6?e.month--:!Be(r.year)&&Be(e.year)&&r.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const an=1723856,hs=1824665,on=5500;function tr(t,e,r,n){return t+365*e+Math.floor(e/4)+30*(r-1)+n-1}function Mn(t,e){let r=Math.floor(4*(e-t)/1461),n=1+Math.floor((e-tr(t,r,1,1))/30),s=e+1-tr(t,r,n,1);return[r,n,s]}function sa(t){return Math.floor(t%4/3)}function ia(t,e){return e%13!==0?30:sa(t)+5}class In{fromJulianDay(e){let[r,n,s]=Mn(an,e),i="AM";return r<=0&&(i="AA",r+=on),new le(this,i,r,n,s)}toJulianDay(e){let r=e.year;return e.era==="AA"&&(r-=on),tr(an,r,e.month,e.day)}getDaysInMonth(e){return ia(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+sa(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class nu extends In{fromJulianDay(e){let[r,n,s]=Mn(an,e);return r+=on,new le(this,"AA",r,n,s)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class su extends In{fromJulianDay(e){let[r,n,s]=Mn(hs,e),i="CE";return r<=0&&(i="BCE",r=1-r),new le(this,i,r,n,s)}toJulianDay(e){let r=e.year;return e.era==="BCE"&&(r=1-r),tr(hs,r,e.month,e.day)}getDaysInMonth(e){let r=e.year;return e.era==="BCE"&&(r=1-r),ia(r,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Ln(t){switch(t){case"buddhist":return new Fd;case"ethiopic":return new In;case"ethioaa":return new nu;case"coptic":return new su;case"hebrew":return new ru;case"indian":return new Kd;case"islamic-civil":return new $n;case"islamic-tbla":return new Ud;case"islamic-umalqura":return new Xd;case"japanese":return new zd;case"persian":return new Gd;case"roc":return new Vd;case"gregory":default:return new Me}}function iu({themeName:t="calendar",tokens:e,state:r,date:n}){const s=R.useRef(null),{cellProps:i,buttonProps:o,isSelected:l,isOutsideVisibleRange:a,isDisabled:d,formattedDate:c,isInvalid:u}=ar.useCalendarCell({date:n},r,s),f=r!=null&&r.highlightedRange?Xn(n,r==null?void 0:r.highlightedRange.start):l,h=r!=null&&r.highlightedRange?Xn(n,r==null?void 0:r.highlightedRange.end):l,{locale:v}=V.useLocale(),m=Bi(n,v),g=l&&(f||m===0||n.day===1),p=l&&(h||m===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:x,isFocusVisible:w}=we.useFocusRing(),T=z(`${t}.cellContainer`,{...e,isFocusVisible:w}),I=z(`${t}.cell`,{...e,isSelected:l,isInvalid:u,isDisabled:d,isRoundedLeft:g,isRoundedRight:p}),M=z(`${t}.cellDate`,{...e,isSelected:l,isInvalid:u,isDisabled:d,isSelectionStart:f,isSelectionEnd:h});return b.jsx("td",{...i,"aria-disabled":!1,className:T,children:b.jsx("div",{...F.mergeProps(o,x),ref:s,hidden:a,className:I,children:b.jsx("div",{className:M,children:c})})})}function aa({themeName:t="calendar",customTheme:e,tokens:r,state:n,...s}){const{locale:i}=Ge.useLocale(),{gridProps:o,headerProps:l,weekDays:a}=ar.useCalendarGrid({...s},n),d=Ed(n.visibleRange.start,i),c=z(`${t}.calendarTable`,r),u=z(`${t}.dayLabel`,r);return b.jsxs("table",{...o,cellPadding:"0",className:c,children:[b.jsx("thead",{...l,children:b.jsx("tr",{children:a.map(f=>b.jsx("th",{className:u,children:f},`${f}`))})}),b.jsx("tbody",{children:[...new Array(d).keys()].map(f=>b.jsx("tr",{children:n.getDatesInWeek(f).map((h,v)=>h?b.jsx(iu,{state:n,date:h},h==null?void 0:h.day):b.jsx("td",{},v))},f))})]})}function oa({buttons:t,tokens:e,customTheme:r,themeName:n="calendar",...s}){var m,g;const{locale:i}=Ge.useLocale(),o=ii.useCalendarState({...s,locale:i,createCalendar:Ln}),l=R.useRef(null),{calendarProps:a,prevButtonProps:d,nextButtonProps:c,title:u}=ar.useCalendar({...s},o),f=z(`${n}.container`,e),h=z(`${n}.header`,e),v=z(`${n}.navigationButtonsContainer`,e);return b.jsxs("div",{...a,ref:l,className:f,children:[b.jsxs("div",{className:h,children:[b.jsx(ie,{as:"p",tokens:{size:"h6"},children:u}),b.jsxs("div",{className:v,children:[b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:b.jsx(oe,{icon:((m=t==null?void 0:t.buttonPrev)==null?void 0:m.icon)??"ArrowLeft"})}),b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...c,handlePress:c==null?void 0:c.onPress,children:b.jsx(oe,{icon:((g=t==null?void 0:t.buttonNext)==null?void 0:g.icon)??"ArrowRight"})})]})]}),b.jsx(aa,{state:o})]})}function la({title:t,children:e,...r}){const n=R.useRef(null),{dialogProps:s}=V.useDialog(r,n);return b.jsx("div",{...s,ref:n,children:e})}function ca({themeName:t="datePicker",tokens:e,...r}){const n=xo.useRef(null),{state:s,children:i}={...r},{popoverProps:o,underlayProps:l}=Ct.usePopover({...r,popoverRef:n},s),a=z(`${t}.calendarUnderlay`,e),d=z(`${t}.calendarPopover`,e);return b.jsxs(Ct.Overlay,{children:[b.jsx("div",{...l,className:a}),b.jsxs("div",{...o,ref:n,className:d,children:[b.jsx(Ct.DismissButton,{onDismiss:s.close}),i,b.jsx(Ct.DismissButton,{onDismiss:s.close})]})]})}function au({segment:t,state:e}){const r=R.useRef(null),{segmentProps:n}=ir.useDateSegment(t,e,r),s=z("datePicker.dateSegment");return b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",children:b.jsxs("div",{...n,ref:r,className:s,children:[b.jsx("span",{"aria-hidden":"true",style:{visibility:t.isPlaceholder?"visible":"hidden",height:t.isPlaceholder?"":0,pointerEvents:"none",display:t.isPlaceholder?"block":"none"},children:t.placeholder}),t.isPlaceholder?"":t.text]})})}function rt(t){const{locale:e}=Ge.useLocale(),r=mn.useDateFieldState({...t,locale:e,createCalendar:Ln}),n=R.useRef(null),{fieldProps:s}=ir.useDateField(t,r,n);return b.jsx("div",{...s,ref:n,className:"flex",children:r.segments.map((i,o)=>b.jsx(au,{segment:i,state:r},o))})}function ou({popoverPlacement:t="bottom start",tokens:e,customTheme:r,themeName:n="datePicker",icon:s="ArrowDown",description:i,buttonLabel:o,...l}){const a=mn.useDatePickerState({...l}),d=R.useRef(null),{groupProps:c,fieldProps:u,labelProps:f,descriptionProps:h,buttonProps:v,dialogProps:m,calendarProps:g}=ir.useDatePicker({...l},a,d),{label:p}={...l},x=z(`${n}.container`,e),w=z(`${n}.dateField`,e),T=z(`${n}.label`,e);return b.jsxs("div",{className:x,children:[p&&b.jsx("span",{...f,children:p}),i&&b.jsx("div",{...h,children:i}),b.jsx("div",{...c,ref:d,children:b.jsxs(ge,{themeName:`${n}.button`,tokens:{...e},type:"button",...v,handlePress:v.onPress,children:[o&&b.jsx("p",{className:T,children:o}),b.jsxs("div",{className:w,children:[b.jsx(rt,{...u}),a.validationState==="invalid"&&"❌"]}),b.jsx(oe,{themeName:`${n}.icon`,tokens:{...e},icon:s})]})}),a.isOpen&&b.jsx(ca,{triggerRef:d,state:a,placement:t,children:b.jsxs(la,{...m,children:[b.jsxs("div",{children:[b.jsx(rt,{...u}),a.validationState==="invalid"&&"❌"]}),b.jsx(oa,{...g})]})})]})}function lu({buttons:t,tokens:e,customTheme:r,themeName:n="calendar",...s}){var m,g;const{locale:i}=Ge.useLocale(),o=ii.useRangeCalendarState({...s,locale:i,createCalendar:Ln}),l=R.useRef(null),{calendarProps:a,prevButtonProps:d,nextButtonProps:c,title:u}=ar.useRangeCalendar({...s},o,l),f=z(`${n}.container`,e),h=z(`${n}.header`,e),v=z(`${n}.navigationButtonsContainer`,e);return b.jsxs("div",{...a,ref:l,className:f,children:[b.jsxs("div",{className:h,children:[b.jsx(ie,{as:"p",tokens:{size:"h6"},children:u}),b.jsxs("div",{className:v,children:[b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:b.jsx(oe,{icon:((m=t==null?void 0:t.buttonPrev)==null?void 0:m.icon)??"ArrowLeft"})}),b.jsx(ge,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...c,handlePress:c==null?void 0:c.onPress,children:b.jsx(oe,{icon:((g=t==null?void 0:t.buttonNext)==null?void 0:g.icon)??"ArrowRight"})})]})]}),b.jsx(aa,{state:o})]})}function cu(t){const e=mn.useDateRangePickerState(t),r=R.useRef(null),{labelProps:n,descriptionProps:s,groupProps:i,startFieldProps:o,endFieldProps:l,buttonProps:a,dialogProps:d,calendarProps:c}=ir.useDateRangePicker(t,e,r),{label:u,buttonLabel:f,description:h,themeName:v="datePicker",tokens:m,popoverPlacement:g,icon:p}=t,x=z(`${v}.container`,m),w=z(`${v}.dateField`,m),T=z(`${v}.label`,m);return b.jsxs("div",{className:x,children:[u&&b.jsx("span",{...n,children:u}),h&&b.jsx("div",{...s,children:h}),b.jsx("div",{...i,ref:r,children:b.jsxs(ge,{themeName:`${v}.button`,tokens:{...m},type:"button",...a,handlePress:a.onPress,children:[f&&b.jsx("p",{className:T,children:f}),b.jsxs("div",{className:w,children:[b.jsx(rt,{...o})," -",b.jsx(rt,{...l}),e.validationState==="invalid"&&"❌"]}),b.jsx(oe,{themeName:`${v}.icon`,tokens:{...m},icon:p??"ArrowDown"})]})}),e.isOpen&&b.jsx(ca,{triggerRef:r,state:e,placement:g,children:b.jsxs(la,{...d,children:[b.jsxs("div",{className:w,children:[b.jsx(rt,{...o})," -",b.jsx(rt,{...l}),e.validationState==="invalid"&&"❌"]}),b.jsx(lu,{...c})]})})]})}const da=R.createContext(null),ua=t=>{const{children:e,state:r}=t;return b.jsx(da.Provider,{value:r,children:e})};function fa(){const t=R.useContext(da);return t!==null?t:null}const pa=t=>{const{id:e,label:r,themeName:n="radio",tokens:s,customTheme:i,value:o,fieldRef:l}=t,a=fa(),d=R.useRef(null),{inputProps:c}=V.useRadio(t,a,d),u=(a==null?void 0:a.selectedValue)===o,{focusProps:f}=V.useFocusRing(),h={...s,selected:u},v=z(`${n}.label`,h,i),m=z(`${n}.radio`,h,i),g=z(`${n}.selectedMark`,h,i);return b.jsx("div",{children:b.jsx(V.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:b.jsxs("label",{htmlFor:e,className:v,children:[b.jsx(V.VisuallyHidden,{children:b.jsx("input",{type:"radio",...V.mergeProps(f,c),ref:p=>{l==null||l(p),d.current=p}})}),b.jsx("div",{className:m,"aria-checked":u,role:"radio","aria-labelledby":e,children:b.jsx("div",{className:g})}),b.jsx(ie,{themeName:`${n}.label`,children:r})]})})})},du=t=>{const{name:e,required:r}=t,{register:n,formState:s}=je.useFormContext(),i=je.get(s.errors,e),o=(i==null?void 0:i.message)??void 0,{t:l}=hn.useTranslation("components"),{ref:a,...d}=n(e,{required:r?l("FORM.ERROR.REQUIRED")??"required":!1});return b.jsx(pa,{fieldRef:a,...d,...t,isError:!pn.isEmpty(o),errorMessage:o})};let uu=Math.round(Math.random()*1e10),fu=0;function pu(t){let e=R.useMemo(()=>t.name||`radio-group-${uu}-${++fu}`,[t.name]);var r;let[n,s]=Ai(t.value,(r=t.defaultValue)!==null&&r!==void 0?r:null,t.onChange),[i,o]=R.useState(null),l=Di({...t,value:n}),a=c=>{!t.isReadOnly&&!t.isDisabled&&(s(c),l.commitValidation())},d=l.displayValidation.isInvalid;return{...l,name:e,selectedValue:n,setSelectedValue:a,lastFocusedValue:i,setLastFocusedValue:o,isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,validationState:t.validationState||(d?"invalid":null),isInvalid:d}}const hu=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:s=!1,children:i,themeName:o="radioGroup",tokens:l}=t,a=pu(t),{radioGroupProps:d}=V.useRadioGroup(t,a),c={...l,isDisabled:s};return b.jsxs(J,{...d,"aria-disabled":s,themeName:`${o}.radioGroup`,tokens:c,children:[e&&b.jsx(ie,{tokens:{size:"h6"},children:e}),b.jsx(J,{themeName:`${o}.radioGroupItemsGroup`,children:b.jsx(ua,{state:a,children:i})}),r&&n&&b.jsx(ie,{tokens:{isError:!0},children:n})]})},[ct,mu]=yi();function gu({children:t,defaultSelectedKey:e,defaultIsOpen:r,onCloseCallback:n,onOpenCallback:s,tabs:i,openBtn:o,closeBtn:l,...a}){const d=$e.useTabListState({...a,children:i,defaultSelectedKey:e}),c=R.useMemo(()=>({openBtn:o,closeBtn:l,tabState:d,defaultSelectedKey:e}),[o,l,d,e]);return b.jsx(mu,{value:c,children:b.jsx(Ci,{onCloseCallback:()=>{var u;n==null||n(),(u=d==null?void 0:d.setSelectedKey)==null||u.call(d,e)},onOpenCallback:s,defaultIsOpen:r,defaultSelectedKey:e.toString(),children:t})})}const Rn=({isVisible:t,children:e,themeName:r,tokens:n,customTheme:s,...i})=>{const o=me.useTransition(t,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:me.config.stiff}),l=z(r,n,s);return o((a,d)=>d&&b.jsx(me.animated.div,{className:l,style:a,...i,children:e}))},vu=new WeakMap;function ms(t,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${vu.get(t)}-${r}-${e}`}function bu(t,e,r){let n=we.useHasTabbableChild(r)?void 0:0;var s;const i=ms(e,(s=t.id)!==null&&s!==void 0?s:e==null?void 0:e.selectedKey,"tabpanel"),o=F.useLabels({...t,id:i,"aria-labelledby":ms(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:F.mergeProps(o,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}function yu({state:t,customTheme:e,themeName:r="tabPanel",tokens:n,...s}){var l;const i=R.useRef(null),{tabPanelProps:o}=bu(s,t,i);return b.jsx(Rn,{isVisible:!0,children:b.jsx(Ke,{themeName:`${r}`,tokens:n,customTheme:e,...o,ref:i,children:(l=t.selectedItem)==null?void 0:l.props.children})})}const ha=t=>{var r;const{tabState:e}=ct();return R.createElement(yu,{...t,key:(r=e.selectedItem)==null?void 0:r.key,state:e})},ma=t=>{var d;const{themeName:e,tokens:r,customTheme:n,children:s,beforeTabContent:i,afterTabContent:o}=t,{tabState:l,defaultSelectedKey:a}=ct();return b.jsxs(b.Fragment,{children:[b.jsx(J,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,children:s}),((d=l==null?void 0:l.selectedKey)==null?void 0:d.toString())===a?null:b.jsxs(J,{themeName:`${e}.tabWrapper`,tokens:r,customTheme:n,children:[i!==null&&i,b.jsx(ha,{themeName:`${e}.tabPanel`,tokens:r,customTheme:n}),o!==null&&o]})]})},wu=t=>{const{id:e="main-menu",children:r,PanelTransition:n=Rn,themeName:s,tokens:i,customTheme:o,...l}=t,{overlayState:a}=Tn(),{closeBtn:d}=ct();return b.jsx(n,{isVisible:a==null?void 0:a.isOpen,children:b.jsxs(J,{themeName:`${s}.wrapper`,children:[d&&d(),b.jsx(J,{themeName:`${s}.container`,children:b.jsx(ma,{id:e,themeName:`${s}.innerContent`,tokens:i,customTheme:o,...l,children:r})})]})})},xu=t=>{const{id:e="main-menu",children:r,TransitionAnimation:n,PanelTransition:s,themeName:i,tokens:o,customTheme:l,...a}=t,{closeBtn:d,tabState:c,defaultSelectedKey:u}=ct();return b.jsx(Mi,{themeName:`${i}.sidePanel`,tokens:o,customTheme:l,closeBtnRender:d,id:e,TransitionAnimation:n,PanelTransition:s,onCloseCallBack:()=>{c==null||c.setSelectedKey(u)},children:b.jsx(ma,{id:e,themeName:i,tokens:o,customTheme:l,...a,children:r})})};function Su(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ln={exports:{}},wt={};wt._=wt._interop_require_default=Tu;function Tu(t){return t&&t.__esModule?t:{default:t}}var Dt={exports:{}},xr={},gs;function ga(){return gs||(gs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var a in l)Object.defineProperty(o,a,{enumerable:!0,get:l[a]})}e(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s},assign:function(){return i}});function r(o){const l={};return o.forEach((a,d)=>{typeof l[d]>"u"?l[d]=a:Array.isArray(l[d])?l[d].push(a):l[d]=[l[d],a]}),l}function n(o){return typeof o=="string"||typeof o=="number"&&!isNaN(o)||typeof o=="boolean"?String(o):""}function s(o){const l=new URLSearchParams;return Object.entries(o).forEach(a=>{let[d,c]=a;Array.isArray(c)?c.forEach(u=>l.append(d,n(u))):l.set(d,n(c))}),l}function i(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),d=1;d<l;d++)a[d-1]=arguments[d];return a.forEach(c=>{Array.from(c.keys()).forEach(u=>o.delete(u)),c.forEach((u,f)=>o.append(f,u))}),o}}(xr)),xr}var Sr={},At={},vs;function Eu(){if(vs)return At;vs=1;function t(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,s=new WeakMap;return(t=function(i){return i?s:n})(r)}At._=At._interop_require_wildcard=e;function e(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var s=t(n);if(s&&s.has(r))return s.get(r);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in r)if(l!=="default"&&Object.prototype.hasOwnProperty.call(r,l)){var a=o?Object.getOwnPropertyDescriptor(r,l):null;a&&(a.get||a.set)?Object.defineProperty(i,l,a):i[l]=r[l]}return i.default=r,s&&s.set(r,i),i}return At}var bs;function va(){return bs||(bs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,d){for(var c in d)Object.defineProperty(a,c,{enumerable:!0,get:d[c]})}e(t,{formatUrl:function(){return i},urlObjectKeys:function(){return o},formatWithValidation:function(){return l}});const n=Eu()._(ga()),s=/https?|ftp|gopher|file/;function i(a){let{auth:d,hostname:c}=a,u=a.protocol||"",f=a.pathname||"",h=a.hash||"",v=a.query||"",m=!1;d=d?encodeURIComponent(d).replace(/%3A/i,":")+"@":"",a.host?m=d+a.host:c&&(m=d+(~c.indexOf(":")?"["+c+"]":c),a.port&&(m+=":"+a.port)),v&&typeof v=="object"&&(v=String(n.urlQueryToSearchParams(v)));let g=a.search||v&&"?"+v||"";return u&&!u.endsWith(":")&&(u+=":"),a.slashes||(!u||s.test(u))&&m!==!1?(m="//"+(m||""),f&&f[0]!=="/"&&(f="/"+f)):m||(m=""),h&&h[0]!=="#"&&(h="#"+h),g&&g[0]!=="?"&&(g="?"+g),f=f.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+u+m+f+g+h}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(a){return process.env.NODE_ENV==="development"&&a!==null&&typeof a=="object"&&Object.keys(a).forEach(d=>{o.includes(d)||console.warn("Unknown key passed via urlObject into url.format: "+d)}),i(a)}}(Sr)),Sr}var Tr={},ys;function Pu(){return ys||(ys=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(r,n){const s={};return Object.keys(r).forEach(i=>{n.includes(i)||(s[i]=r[i])}),s}}(Tr)),Tr}var Er={},ws;function dr(){return ws||(ws=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(T,I){for(var M in I)Object.defineProperty(T,M,{enumerable:!0,get:I[M]})}e(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return o},getURL:function(){return l},getDisplayName:function(){return a},isResSent:function(){return d},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return u},SP:function(){return f},ST:function(){return h},DecodeError:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return p},MiddlewareNotFoundError:function(){return x},stringifyError:function(){return w}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(T){let I=!1,M;return function(){for(var A=arguments.length,S=new Array(A),C=0;C<A;C++)S[C]=arguments[C];return I||(I=!0,M=T(...S)),M}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=T=>s.test(T);function o(){const{protocol:T,hostname:I,port:M}=window.location;return T+"//"+I+(M?":"+M:"")}function l(){const{href:T}=window.location,I=o();return T.substring(I.length)}function a(T){return typeof T=="string"?T:T.displayName||T.name||"Unknown"}function d(T){return T.finished||T.headersSent}function c(T){const I=T.split("?");return I[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(I[1]?"?"+I.slice(1).join("?"):"")}async function u(T,I){if(process.env.NODE_ENV!=="production"){var M;if((M=T.prototype)!=null&&M.getInitialProps){const C='"'+a(T)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(C)}}const A=I.res||I.ctx&&I.ctx.res;if(!T.getInitialProps)return I.ctx&&I.Component?{pageProps:await u(I.Component,I.ctx)}:{};const S=await T.getInitialProps(I);if(A&&d(A))return S;if(!S){const C='"'+a(T)+'.getInitialProps()" should resolve to an object. But found "'+S+'" instead.';throw new Error(C)}return process.env.NODE_ENV!=="production"&&Object.keys(S).length===0&&!I.ctx&&console.warn(""+a(T)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),S}const f=typeof performance<"u",h=f&&["mark","measure","getEntriesByName"].every(T=>typeof performance[T]=="function");class v extends Error{}class m extends Error{}class g extends Error{constructor(I){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+I}}class p extends Error{constructor(I,M){super(),this.message="Failed to load static file for page: "+I+" "+M}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(T){return JSON.stringify({message:T.message,stack:T.stack})}}(Er)),Er}var jt={exports:{}},Pr={},xs;function ba(){return xs||(xs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}}(Pr)),Pr}var Cr={},Ss;function On(){return Ss||(Ss=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(n<0||s<n);return i||n>-1?{pathname:r.substring(0,i?s:n),query:i?r.substring(s,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Cr)),Cr}var Ts;function ur(){return Ts||(Ts=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=ba(),n=On(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:o,query:l,hash:a}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(o)?""+(0,r.removeTrailingSlash)(o)+l+a:o.endsWith("/")?""+o+l+a:o+"/"+l+a:""+(0,r.removeTrailingSlash)(o)+l+a};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(jt,jt.exports)),jt.exports}var $r={},_t={exports:{}},Mr={},Es;function ya(){return Es||(Es=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=On();function r(n,s){if(typeof n!="string")return!1;const{pathname:i}=(0,e.parsePath)(n);return i===s||i.startsWith(s+"/")}}(Mr)),Mr}var Ps;function Cu(){return Ps||(Ps=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=ya(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,n)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(_t,_t.exports)),_t.exports}var Cs;function wa(){return Cs||(Cs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return n}});const e=dr(),r=Cu();function n(s){if(!(0,e.isAbsoluteUrl)(s))return!0;try{const i=(0,e.getLocationOrigin)(),o=new URL(s,i);return o.origin===i&&(0,r.hasBasePath)(o.pathname)}catch{return!1}}}($r)),$r}var Ir={},Lr={},$s;function $u(){return $s||($s=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class e{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const o=i.map(l=>this.children.get(l)._smoosh(""+s+l+"/")).reduce((l,a)=>[...l,...a],[]);if(this.slugName!==null&&o.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const l=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+l+'" and "'+l+"[[..."+this.optionalRestSlugName+']]").');o.unshift(l)}return this.restSlugName!==null&&o.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&o.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),o}_insert(s,i,o){if(s.length===0){this.placeholder=!1;return}if(o)throw new Error("Catch-all must be the last part of the URL.");let l=s[0];if(l.startsWith("[")&&l.endsWith("]")){let c=function(u,f){if(u!==null&&u!==f)throw new Error("You cannot use different slug names for the same dynamic path ('"+u+"' !== '"+f+"').");i.forEach(h=>{if(h===f)throw new Error('You cannot have the same slug name "'+f+'" repeat within a single dynamic path');if(h.replace(/\W/g,"")===l.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+h+'" and "'+f+'" differ only by non-word symbols within a single dynamic path')}),i.push(f)},a=l.slice(1,-1),d=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),d=!0),a.startsWith("...")&&(a=a.substring(3),o=!0),a.startsWith("[")||a.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+a+"').");if(a.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+a+"').");if(o)if(d){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');c(this.optionalRestSlugName,a),this.optionalRestSlugName=a,l="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');c(this.restSlugName,a),this.restSlugName=a,l="[...]"}else{if(d)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');c(this.slugName,a),this.slugName=a,l="[]"}}this.children.has(l)||this.children.set(l,new e),this.children.get(l)._insert(s.slice(1),i,o)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const s=new e;return n.forEach(i=>s.insert(i)),s.smoosh()}}(Lr)),Lr}var Rr={},Or={},Dr={},Ar={},Ms;function Mu(){return Ms||(Ms=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.startsWith("/")?r:"/"+r}}(Ar)),Ar}var jr={},Is;function Iu(){return Is||(Is=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isGroupSegment",{enumerable:!0,get:function(){return e}});function e(r){return r[0]==="("&&r.endsWith(")")}}(jr)),jr}var Ls;function Lu(){return Ls||(Ls=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var a in l)Object.defineProperty(o,a,{enumerable:!0,get:l[a]})}e(t,{normalizeAppPath:function(){return s},normalizeRscURL:function(){return i}});const r=Mu(),n=Iu();function s(o){return(0,r.ensureLeadingSlash)(o.split("/").reduce((l,a,d,c)=>!a||(0,n.isGroupSegment)(a)||a[0]==="@"||(a==="page"||a==="route")&&d===c.length-1?l:l+"/"+a,""))}function i(o){return o.replace(/\.rsc($|\?)/,"$1")}}(Dr)),Dr}var Rs;function xa(){return Rs||(Rs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,l){for(var a in l)Object.defineProperty(o,a,{enumerable:!0,get:l[a]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=Lu(),n=["(..)(..)","(.)","(..)","(...)"];function s(o){return o.split("/").find(l=>n.find(a=>l.startsWith(a)))!==void 0}function i(o){let l,a,d;for(const c of o.split("/"))if(a=n.find(u=>c.startsWith(u)),a){[l,d]=o.split(a,2);break}if(!l||!a||!d)throw new Error(`Invalid interception route: ${o}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(l=(0,r.normalizeAppPath)(l),a){case"(.)":l==="/"?d=`/${d}`:d=l+"/"+d;break;case"(..)":if(l==="/")throw new Error(`Invalid interception route: ${o}. Cannot use (..) marker at the root level, use (.) instead.`);d=l.split("/").slice(0,-1).concat(d).join("/");break;case"(...)":d="/"+d;break;case"(..)(..)":const c=l.split("/");if(c.length<=2)throw new Error(`Invalid interception route: ${o}. Cannot use (..)(..) marker at the root level or one level up.`);d=c.slice(0,-2).concat(d).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:l,interceptedRoute:d}}}(Or)),Or}var Os;function Ru(){return Os||(Os=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const e=xa(),r=/\/\[[^/]+?\](?=\/|$)/;function n(s){return(0,e.isInterceptionRouteAppPath)(s)&&(s=(0,e.extractInterceptionRouteInformation)(s).interceptedRoute),r.test(s)}}(Rr)),Rr}var Ds;function Ou(){return Ds||(Ds=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,i){for(var o in i)Object.defineProperty(s,o,{enumerable:!0,get:i[o]})}e(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=$u(),n=Ru()}(Ir)),Ir}var _r={},kr={},As;function Du(){return As||(As=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const e=dr();function r(n){let{re:s,groups:i}=n;return o=>{const l=s.exec(o);if(!l)return!1;const a=c=>{try{return decodeURIComponent(c)}catch{throw new e.DecodeError("failed to decode param")}},d={};return Object.keys(i).forEach(c=>{const u=i[c],f=l[u.pos];f!==void 0&&(d[c]=~f.indexOf("/")?f.split("/").map(h=>a(h)):u.repeat?[a(f)]:a(f))}),d}}}(kr)),kr}var Nr={},Br={},js;function Au(){return js||(js=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const e=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(s){return e.test(s)?s.replace(r,"\\$&"):s}}(Br)),Br}var _s;function ju(){return _s||(_s=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(m,g){for(var p in g)Object.defineProperty(m,p,{enumerable:!0,get:g[p]})}e(t,{getRouteRegex:function(){return d},getNamedRouteRegex:function(){return h},getNamedMiddlewareRegex:function(){return v}});const r=xa(),n=Au(),s=ba(),i="nxtP",o="nxtI";function l(m){const g=m.startsWith("[")&&m.endsWith("]");g&&(m=m.slice(1,-1));const p=m.startsWith("...");return p&&(m=m.slice(3)),{key:m,repeat:p,optional:g}}function a(m){const g=(0,s.removeTrailingSlash)(m).slice(1).split("/"),p={};let x=1;return{parameterizedRoute:g.map(w=>{const T=r.INTERCEPTION_ROUTE_MARKERS.find(M=>w.startsWith(M)),I=w.match(/\[((?:\[.*\])|.+)\]/);if(T&&I){const{key:M,optional:A,repeat:S}=l(I[1]);return p[M]={pos:x++,repeat:S,optional:A},"/"+(0,n.escapeStringRegexp)(T)+"([^/]+?)"}else if(I){const{key:M,repeat:A,optional:S}=l(I[1]);return p[M]={pos:x++,repeat:A,optional:S},A?S?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(w)}).join(""),groups:p}}function d(m){const{parameterizedRoute:g,groups:p}=a(m);return{re:new RegExp("^"+g+"(?:/)?$"),groups:p}}function c(){let m=0;return()=>{let g="",p=++m;for(;p>0;)g+=String.fromCharCode(97+(p-1)%26),p=Math.floor((p-1)/26);return g}}function u(m){let{interceptionMarker:g,getSafeRouteKey:p,segment:x,routeKeys:w,keyPrefix:T}=m;const{key:I,optional:M,repeat:A}=l(x);let S=I.replace(/\W/g,"");T&&(S=""+T+S);let C=!1;(S.length===0||S.length>30)&&(C=!0),isNaN(parseInt(S.slice(0,1)))||(C=!0),C&&(S=p()),T?w[S]=""+T+I:w[S]=I;const P=g?(0,n.escapeStringRegexp)(g):"";return A?M?"(?:/"+P+"(?<"+S+">.+?))?":"/"+P+"(?<"+S+">.+?)":"/"+P+"(?<"+S+">[^/]+?)"}function f(m,g){const p=(0,s.removeTrailingSlash)(m).slice(1).split("/"),x=c(),w={};return{namedParameterizedRoute:p.map(T=>{const I=r.INTERCEPTION_ROUTE_MARKERS.some(A=>T.startsWith(A)),M=T.match(/\[((?:\[.*\])|.+)\]/);if(I&&M){const[A]=T.split(M[0]);return u({getSafeRouteKey:x,interceptionMarker:A,segment:M[1],routeKeys:w,keyPrefix:g?o:void 0})}else return M?u({getSafeRouteKey:x,segment:M[1],routeKeys:w,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(T)}).join(""),routeKeys:w}}function h(m,g){const p=f(m,g);return{...d(m),namedRegex:"^"+p.namedParameterizedRoute+"(?:/)?$",routeKeys:p.routeKeys}}function v(m,g){const{parameterizedRoute:p}=a(m),{catchAll:x=!0}=g;if(p==="/")return{namedRegex:"^/"+(x?".*":"")+"$"};const{namedParameterizedRoute:w}=f(m,!1);let T=x?"(?:(/.*)?)":"";return{namedRegex:"^"+w+T+"$"}}}(Nr)),Nr}var ks;function _u(){return ks||(ks=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return n}});const e=Du(),r=ju();function n(s,i,o){let l="";const a=(0,r.getRouteRegex)(s),d=a.groups,c=(i!==s?(0,e.getRouteMatcher)(a)(i):"")||o;l=s;const u=Object.keys(d);return u.every(f=>{let h=c[f]||"";const{repeat:v,optional:m}=d[f];let g="["+(v?"...":"")+f+"]";return m&&(g=(h?"":"/")+"["+g+"]"),v&&!Array.isArray(h)&&(h=[h]),(m||f in c)&&(l=l.replace(g,v?h.map(p=>encodeURIComponent(p)).join("/"):encodeURIComponent(h))||"/")})||(l=""),{params:u,result:l}}}(_r)),_r}var Ns;function ku(){return Ns||(Ns=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return c}});const r=ga(),n=va(),s=Pu(),i=dr(),o=ur(),l=wa(),a=Ou(),d=_u();function c(u,f,h){let v,m=typeof f=="string"?f:(0,n.formatWithValidation)(f);const g=m.match(/^[a-zA-Z]{1,}:\/\//),p=g?m.slice(g[0].length):m;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+m+"' passed to next/router in page: '"+u.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const w=(0,i.normalizeRepeatedSlashes)(p);m=(g?g[0]:"")+w}if(!(0,l.isLocalURL)(m))return h?[m]:m;try{v=new URL(m.startsWith("#")?u.asPath:u.pathname,"http://n")}catch{v=new URL("/","http://n")}try{const w=new URL(m,v);w.pathname=(0,o.normalizePathTrailingSlash)(w.pathname);let T="";if((0,a.isDynamicRoute)(w.pathname)&&w.searchParams&&h){const M=(0,r.searchParamsToUrlQuery)(w.searchParams),{result:A,params:S}=(0,d.interpolateAs)(w.pathname,w.pathname,M);A&&(T=(0,n.formatWithValidation)({pathname:A,hash:w.hash,query:(0,s.omit)(M,S)}))}const I=w.origin===v.origin?w.href.slice(w.origin.length):w.href;return h?[I,T||I]:I}catch{return h?[m]:m}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Dt,Dt.exports)),Dt.exports}var kt={exports:{}},zr={},Fr={},Bs;function Sa(){return Bs||(Bs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=On();function r(n,s){if(!n.startsWith("/")||!s)return n;const{pathname:i,query:o,hash:l}=(0,e.parsePath)(n);return""+s+i+o+l}}(Fr)),Fr}var zs;function Nu(){return zs||(zs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=Sa(),r=ya();function n(s,i,o,l){if(!i||i===o)return s;const a=s.toLowerCase();return!l&&((0,r.pathHasPrefix)(a,"/api")||(0,r.pathHasPrefix)(a,"/"+i.toLowerCase()))?s:(0,e.addPathPrefix)(s,"/"+i)}}(zr)),zr}var Fs;function Bu(){return Fs||(Fs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const r=ur(),n=function(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Nu().addLocale(s,...o)):s};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(kt,kt.exports)),kt.exports}var Vr={},Vs;function zu(){return Vs||(Vs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});const n=wt._(R).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Vr)),Vr}var qr={},qs;function Fu(){return qs||(qs=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function e(d,c){for(var u in c)Object.defineProperty(d,u,{enumerable:!0,get:c[u]})}e(t,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},TemplateContext:function(){return a}});const n=wt._(R);var s;(function(d){d.LAZY_INITIALIZED="LAZYINITIALIZED",d.DATA_FETCH="DATAFETCH",d.READY="READY"})(s||(s={}));const i=n.default.createContext(null),o=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",o.displayName="LayoutRouterContext",l.displayName="GlobalLayoutRouterContext",a.displayName="TemplateContext")}(qr)),qr}var Nt={exports:{}},Bt={exports:{}},Hs;function Vu(){return Hs||(Hs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(i,o){for(var l in o)Object.defineProperty(i,l,{enumerable:!0,get:o[l]})}r(e,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return s}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let o=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Bt,Bt.exports)),Bt.exports}var Gs;function qu(){return Gs||(Gs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return d}});const r=R,n=Vu(),s=typeof IntersectionObserver=="function",i=new Map,o=[];function l(c){const u={root:c.root||null,margin:c.rootMargin||""},f=o.find(g=>g.root===u.root&&g.margin===u.margin);let h;if(f&&(h=i.get(f),h))return h;const v=new Map,m=new IntersectionObserver(g=>{g.forEach(p=>{const x=v.get(p.target),w=p.isIntersecting||p.intersectionRatio>0;x&&w&&x(w)})},c);return h={id:u,observer:m,elements:v},o.push(u),i.set(u,h),h}function a(c,u,f){const{id:h,observer:v,elements:m}=l(f);return m.set(c,u),v.observe(c),function(){if(m.delete(c),v.unobserve(c),m.size===0){v.disconnect(),i.delete(h);const p=o.findIndex(x=>x.root===h.root&&x.margin===h.margin);p>-1&&o.splice(p,1)}}}function d(c){let{rootRef:u,rootMargin:f,disabled:h}=c;const v=h||!s,[m,g]=(0,r.useState)(!1),p=(0,r.useRef)(null),x=(0,r.useCallback)(T=>{p.current=T},[]);(0,r.useEffect)(()=>{if(s){if(v||m)return;const T=p.current;if(T&&T.tagName)return a(T,M=>M&&g(M),{root:u==null?void 0:u.current,rootMargin:f})}else if(!m){const T=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(T)}},[v,f,u,m,p.current]);const w=(0,r.useCallback)(()=>{g(!1)},[]);return[x,m,w]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Nt,Nt.exports)),Nt.exports}var zt={exports:{}},Ft={exports:{}},Hr={},Ks;function Hu(){return Ks||(Ks=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let s;const i=r.split("/");return(n||[]).some(o=>i[1]&&i[1].toLowerCase()===o.toLowerCase()?(s=o,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(Hr)),Hr}var Ws;function Gu(){return Ws||(Ws=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,s)=>process.env.__NEXT_I18N_SUPPORT?Hu().normalizeLocalePath(n,s):{pathname:n,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Ft,Ft.exports)),Ft.exports}var Vt={exports:{}},Gr={},Us;function Ku(){return Us||(Us=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,s){if(r){s&&(s=s.toLowerCase());for(const l of r){var i,o;const a=(i=l.domain)==null?void 0:i.split(":",1)[0].toLowerCase();if(n===a||s===l.defaultLocale.toLowerCase()||(o=l.locales)!=null&&o.some(d=>d.toLowerCase()===s))return l}}}}(Gr)),Gr}var Ys;function Wu(){return Ys||(Ys=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Ku().detectDomainLocale(...s)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Vt,Vt.exports)),Vt.exports}var Xs;function Uu(){return Xs||(Xs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=ur(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,o,l,a){if(process.env.__NEXT_I18N_SUPPORT){const d=Gu().normalizeLocalePath,c=Wu().detectDomainLocale,u=o||d(i,l).detectedLocale,f=c(a,void 0,u);if(f){const h="http"+(f.http?"":"s")+"://",v=u===f.defaultLocale?"":"/"+u;return""+h+f.domain+(0,r.normalizePathTrailingSlash)(""+n+v+i)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(zt,zt.exports)),zt.exports}var qt={exports:{}},Qs;function Yu(){return Qs||(Qs=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Sa(),n=ur(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(o,l){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!l?o:(0,r.addPathPrefix)(o,s))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(qt,qt.exports)),qt.exports}var Ht={exports:{}},Js;function Xu(){return Js||(Js=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(f,h){for(var v in h)Object.defineProperty(f,v,{enumerable:!0,get:h[v]})}r(e,{PrefetchKind:function(){return c},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return o},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return a},ACTION_SERVER_ACTION:function(){return d},isThenable:function(){return u}});const n="refresh",s="navigate",i="restore",o="server-patch",l="prefetch",a="fast-refresh",d="server-action";var c;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(c||(c={}));function u(f){return f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Ht,Ht.exports)),Ht.exports}(function(t,e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return I}});const n=wt._(R),s=ku(),i=wa(),o=va(),l=dr(),a=Bu(),d=zu(),c=Fu(),u=qu(),f=Uu(),h=Yu(),v=Xu(),m=new Set;function g(M,A,S,C,P,$){if(typeof window>"u"||!$&&!(0,i.isLocalURL)(A))return;if(!C.bypassPrefetchedCheck){const y=typeof C.locale<"u"?C.locale:"locale"in M?M.locale:void 0,E=A+"%"+S+"%"+y;if(m.has(E))return;m.add(E)}const L=$?M.prefetch(A,P):M.prefetch(A,S,C);Promise.resolve(L).catch(y=>{if(process.env.NODE_ENV!=="production")throw y})}function p(M){const S=M.currentTarget.getAttribute("target");return S&&S!=="_self"||M.metaKey||M.ctrlKey||M.shiftKey||M.altKey||M.nativeEvent&&M.nativeEvent.which===2}function x(M,A,S,C,P,$,L,y,E){const{nodeName:D}=M.currentTarget;if(D.toUpperCase()==="A"&&(p(M)||!E&&!(0,i.isLocalURL)(S)))return;M.preventDefault();const O=()=>{const j=L??!0;"beforePopState"in A?A[P?"replace":"push"](S,C,{shallow:$,locale:y,scroll:j}):A[P?"replace":"push"](C||S,{scroll:j})};E?n.default.startTransition(O):O()}function w(M){return typeof M=="string"?M:(0,o.formatUrl)(M)}const I=n.default.forwardRef(function(A,S){let C;const{href:P,as:$,children:L,prefetch:y=null,passHref:E,replace:D,shallow:N,scroll:O,locale:j,onClick:_,onMouseEnter:k,onTouchStart:K,legacyBehavior:W=!1,...q}=A;C=L,W&&(typeof C=="string"||typeof C=="number")&&(C=n.default.createElement("a",null,C));const H=n.default.useContext(d.RouterContext),ce=n.default.useContext(c.AppRouterContext),ee=H??ce,G=!H,te=y!==!1,ne=y===null?v.PrefetchKind.AUTO:v.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let Y=function(X){return new Error("Failed prop type: The prop `"+X.key+"` expects a "+X.expected+" in `<Link>`, but got `"+X.actual+"` instead."+(typeof window<"u"?`
|
|
94
94
|
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(X=>{if(X==="href"&&(A[X]==null||typeof A[X]!="string"&&typeof A[X]!="object"))throw Y({key:X,expected:"`string` or `object`",actual:A[X]===null?"null":typeof A[X]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(X=>{const Se=typeof A[X];if(X==="as"){if(A[X]&&Se!=="string"&&Se!=="object")throw Y({key:X,expected:"`string` or `object`",actual:Se})}else if(X==="locale"){if(A[X]&&Se!=="string")throw Y({key:X,expected:"`string`",actual:Se})}else if(X==="onClick"||X==="onMouseEnter"||X==="onTouchStart"){if(A[X]&&Se!=="function")throw Y({key:X,expected:"`function`",actual:Se})}else if((X==="replace"||X==="scroll"||X==="shallow"||X==="passHref"||X==="prefetch"||X==="legacyBehavior")&&A[X]!=null&&Se!=="boolean")throw Y({key:X,expected:"`boolean`",actual:Se})});const kn=n.default.useRef(!1);A.prefetch&&!kn.current&&!G&&(kn.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&G&&!$){let Y;if(typeof P=="string"?Y=P:typeof P=="object"&&typeof P.pathname=="string"&&(Y=P.pathname),Y&&Y.split("/").some(Xe=>Xe.startsWith("[")&&Xe.endsWith("]")))throw new Error("Dynamic href `"+Y+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:ae,as:se}=n.default.useMemo(()=>{if(!H){const Xe=w(P);return{href:Xe,as:$?w($):Xe}}const[Y,ut]=(0,s.resolveHref)(H,P,!0);return{href:Y,as:$?(0,s.resolveHref)(H,$):ut||Y}},[H,P,$]),_e=n.default.useRef(ae),ke=n.default.useRef(se);let re;if(W)if(process.env.NODE_ENV==="development"){_&&console.warn('"onClick" was passed to <Link> with `href` of `'+P+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),k&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+P+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(C)}catch{throw C?new Error("Multiple children were passed to <Link> with `href` of `"+P+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
|
|
95
95
|
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+P+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only(C);else if(process.env.NODE_ENV==="development"&&(C==null?void 0:C.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
96
96
|
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const xe=W?re&&typeof re=="object"&&re.ref:S,[Ue,Ye,Ie]=(0,u.useIntersection)({rootMargin:"200px"}),Ne=n.default.useCallback(Y=>{(ke.current!==se||_e.current!==ae)&&(Ie(),ke.current=se,_e.current=ae),Ue(Y),xe&&(typeof xe=="function"?xe(Y):typeof xe=="object"&&(xe.current=Y))},[se,xe,ae,Ie,Ue]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ee&&(!Ye||!te||g(ee,ae,se,{locale:j},{kind:ne},G))},[se,ae,Ye,j,te,H==null?void 0:H.locale,ee,G,ne]);const Pt={ref:Ne,onClick(Y){if(process.env.NODE_ENV!=="production"&&!Y)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!W&&typeof _=="function"&&_(Y),W&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(Y),ee&&(Y.defaultPrevented||x(Y,ee,ae,se,D,N,O,j,G))},onMouseEnter(Y){!W&&typeof k=="function"&&k(Y),W&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(Y),ee&&((!te||process.env.NODE_ENV==="development")&&G||g(ee,ae,se,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:ne},G))},onTouchStart(Y){!W&&typeof K=="function"&&K(Y),W&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(Y),ee&&(!te&&G||g(ee,ae,se,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:ne},G))}};if((0,l.isAbsoluteUrl)(se))Pt.href=se;else if(!W||E||re.type==="a"&&!("href"in re.props)){const Y=typeof j<"u"?j:H==null?void 0:H.locale,ut=(H==null?void 0:H.isLocaleDomain)&&(0,f.getDomainLocale)(se,Y,H==null?void 0:H.locales,H==null?void 0:H.domainLocales);Pt.href=ut||(0,h.addBasePath)((0,a.addLocale)(se,Y,H==null?void 0:H.defaultLocale))}return W?n.default.cloneElement(re,Pt):n.default.createElement("a",{...q,...Pt},C)});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(ln,ln.exports);var Qu=ln.exports,Ju=Qu;const Zu=Su(Ju),ef=t=>{const{tabState:e,defaultSelectedKey:r}=ct(),{setSelectedKey:n}=e,{id:s,path:i,label:o,themeName:l="button",tokens:a,customTheme:d,target:c,children:u,childItems:f,...h}=t,v=i==null?void 0:i.substring(1),m=R.useCallback(()=>{if(v!=null){if(e.selectedKey===v){n(r);return}n(v)}},[v,e.selectedKey,n,r]);return R.createElement(ge,{...h,themeName:`${l}`,tokens:a,customTheme:d,key:`button-${s}`,handlePress:m},R.isValidElement(u)?u:o)},tf=t=>{const{id:e,target:r,path:n,label:s,themeName:i="anchor",customTheme:o,tokens:l,nextLinkProps:a,children:d,childItems:c,...u}=t,f=R.useRef(null);return n==null||s==null?null:R.createElement(xn,{...u,themeName:`${i}`,tokens:l,customTheme:o,nextLinkProps:{scroll:!1,href:n,...a},ref:f,key:`link-${e}`,as:Zu,target:r??"_self"},R.isValidElement(d)?d:s)},rf=t=>{const{menuItems:e,children:r,themeName:n="menuItem",tokens:s,customTheme:i}=t;return b.jsxs(J,{themeName:`${n}.wrapper`,tokens:s,customTheme:i,children:[b.jsx(J,{themeName:`${n}.container`,tokens:s,customTheme:i,children:e==null?void 0:e.map(o=>{var h;const{id:l,path:a,label:d,...c}=o??{},u={...s,...o.tokens};if((o==null?void 0:o.path)==null||o.id==null)return null;const f=(h=o.path)!=null&&h.startsWith("#")?"button":"a";return b.jsx(J,{themeName:`${n}.innerContent`,tokens:u,customTheme:i,children:f==="button"?b.jsx(ef,{...c,...o,themeName:`${n}.button`,tokens:u,customTheme:i}):b.jsx(tf,{...c,...o,themeName:`${n}.anchor`,tokens:u,customTheme:i})},`li-${o.id}`)})}),r]})},Ta=R.forwardRef((t,e)=>{const{themeName:r="alerts.closeBtn",...n}=t;return b.jsx(lt,{ref:e,themeName:r,...n,children:b.jsx(oe,{icon:b.jsx(or,{})})})});Ta.displayName="AlertsCloseButton";function Zs(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Dn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:Zs(e[r])&&Zs(t[r])&&Object.keys(e[r]).length>0&&Dn(t[r],e[r])})}const Ea={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ue(){const t=typeof document<"u"?document:{};return Dn(t,Ea),t}const nf={document:Ea,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Z(){const t=typeof window<"u"?window:{};return Dn(t,nf),t}function Le(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function sf(t){const e=t;Object.keys(e).forEach(r=>{try{e[r]=null}catch{}try{delete e[r]}catch{}})}function qe(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function ye(){return Date.now()}function af(t){const e=Z();let r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function cn(t,e){e===void 0&&(e="x");const r=Z();let n,s,i;const o=af(t);return r.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(l=>l.replace(",",".")).join(", ")),i=new r.WebKitCSSMatrix(s==="none"?"":s)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),e==="x"&&(r.WebKitCSSMatrix?s=i.m41:n.length===16?s=parseFloat(n[12]):s=parseFloat(n[4])),e==="y"&&(r.WebKitCSSMatrix?s=i.m42:n.length===16?s=parseFloat(n[13]):s=parseFloat(n[5])),s||0}function ht(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function of(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function pe(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const n=r<0||arguments.length<=r?void 0:arguments[r];if(n!=null&&!of(n)){const s=Object.keys(Object(n)).filter(i=>e.indexOf(i)<0);for(let i=0,o=s.length;i<o;i+=1){const l=s[i],a=Object.getOwnPropertyDescriptor(n,l);a!==void 0&&a.enumerable&&(ht(t[l])&&ht(n[l])?n[l].__swiper__?t[l]=n[l]:pe(t[l],n[l]):!ht(t[l])&&ht(n[l])?(t[l]={},n[l].__swiper__?t[l]=n[l]:pe(t[l],n[l])):t[l]=n[l])}}}return t}function mt(t,e,r){t.style.setProperty(e,r)}function Pa(t){let{swiper:e,targetPosition:r,side:n}=t;const s=Z(),i=-e.translate;let o=null,l;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const d=r>i?"next":"prev",c=(f,h)=>d==="next"&&f>=h||d==="prev"&&f<=h,u=()=>{l=new Date().getTime(),o===null&&(o=l);const f=Math.max(Math.min((l-o)/a,1),0),h=.5-Math.cos(f*Math.PI)/2;let v=i+h*(r-i);if(c(v,r)&&(v=r),e.wrapperEl.scrollTo({[n]:v}),c(v,r)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:v})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(u)};u()}function We(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function de(t,e){return e===void 0&&(e=""),[...t.children].filter(r=>r.matches(e))}function rr(t){try{console.warn(t);return}catch{}}function he(t,e){e===void 0&&(e=[]);const r=document.createElement(t);return r.classList.add(...Array.isArray(e)?e:Le(e)),r}function nr(t){const e=Z(),r=ue(),n=t.getBoundingClientRect(),s=r.body,i=t.clientTop||s.clientTop||0,o=t.clientLeft||s.clientLeft||0,l=t===e?e.scrollY:t.scrollTop,a=t===e?e.scrollX:t.scrollLeft;return{top:n.top+l-i,left:n.left+a-o}}function lf(t,e){const r=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function cf(t,e){const r=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function Ae(t,e){return Z().getComputedStyle(t,null).getPropertyValue(e)}function xt(t){let e=t,r;if(e){for(r=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(r+=1);return r}}function Fe(t,e){const r=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&r.push(n):r.push(n),n=n.parentElement;return r}function bt(t,e){function r(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",r))}e&&t.addEventListener("transitionend",r)}function dn(t,e,r){const n=Z();return r?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function U(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function df(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let i;const o=ue();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=o.createElement("div");function a(v,m){const g=e.params.virtual;if(g.cache&&e.virtual.cache[m])return e.virtual.cache[m];let p;return g.renderSlide?(p=g.renderSlide.call(e,v,m),typeof p=="string"&&(l.innerHTML=p,p=l.children[0])):e.isElement?p=he("swiper-slide"):p=he("div",e.params.slideClass),p.setAttribute("data-swiper-slide-index",m),g.renderSlide||(p.innerHTML=v),g.cache&&(e.virtual.cache[m]=p),p}function d(v){const{slidesPerView:m,slidesPerGroup:g,centeredSlides:p,loop:x}=e.params,{addSlidesBefore:w,addSlidesAfter:T}=e.params.virtual,{from:I,to:M,slides:A,slidesGrid:S,offset:C}=e.virtual;e.params.cssMode||e.updateActiveIndex();const P=e.activeIndex||0;let $;e.rtlTranslate?$="right":$=e.isHorizontal()?"left":"top";let L,y;p?(L=Math.floor(m/2)+g+T,y=Math.floor(m/2)+g+w):(L=m+(g-1)+T,y=(x?m:g)+w);let E=P-y,D=P+L;x||(E=Math.max(E,0),D=Math.min(D,A.length-1));let N=(e.slidesGrid[E]||0)-(e.slidesGrid[0]||0);x&&P>=y?(E-=y,p||(N+=e.slidesGrid[0])):x&&P<y&&(E=-y,p&&(N+=e.slidesGrid[0])),Object.assign(e.virtual,{from:E,to:D,offset:N,slidesGrid:e.slidesGrid,slidesBefore:y,slidesAfter:L});function O(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s("virtualUpdate")}if(I===E&&M===D&&!v){e.slidesGrid!==S&&N!==C&&e.slides.forEach(q=>{q.style[$]=`${N-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),s("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:N,from:E,to:D,slides:function(){const H=[];for(let ce=E;ce<=D;ce+=1)H.push(A[ce]);return H}()}),e.params.virtual.renderExternalUpdate?O():s("virtualUpdate");return}const j=[],_=[],k=q=>{let H=q;return q<0?H=A.length+q:H>=A.length&&(H=H-A.length),H};if(v)e.slides.filter(q=>q.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(q=>{q.remove()});else for(let q=I;q<=M;q+=1)if(q<E||q>D){const H=k(q);e.slides.filter(ce=>ce.matches(`.${e.params.slideClass}[data-swiper-slide-index="${H}"], swiper-slide[data-swiper-slide-index="${H}"]`)).forEach(ce=>{ce.remove()})}const K=x?-A.length:0,W=x?A.length*2:A.length;for(let q=K;q<W;q+=1)if(q>=E&&q<=D){const H=k(q);typeof M>"u"||v?_.push(H):(q>M&&_.push(H),q<I&&j.push(H))}if(_.forEach(q=>{e.slidesEl.append(a(A[q],q))}),x)for(let q=j.length-1;q>=0;q-=1){const H=j[q];e.slidesEl.prepend(a(A[H],H))}else j.sort((q,H)=>H-q),j.forEach(q=>{e.slidesEl.prepend(a(A[q],q))});de(e.slidesEl,".swiper-slide, swiper-slide").forEach(q=>{q.style[$]=`${N-Math.abs(e.cssOverflowAdjustment())}px`}),O()}function c(v){if(typeof v=="object"&&"length"in v)for(let m=0;m<v.length;m+=1)v[m]&&e.virtual.slides.push(v[m]);else e.virtual.slides.push(v);d(!0)}function u(v){const m=e.activeIndex;let g=m+1,p=1;if(Array.isArray(v)){for(let x=0;x<v.length;x+=1)v[x]&&e.virtual.slides.unshift(v[x]);g=m+v.length,p=v.length}else e.virtual.slides.unshift(v);if(e.params.virtual.cache){const x=e.virtual.cache,w={};Object.keys(x).forEach(T=>{const I=x[T],M=I.getAttribute("data-swiper-slide-index");M&&I.setAttribute("data-swiper-slide-index",parseInt(M,10)+p),w[parseInt(T,10)+p]=I}),e.virtual.cache=w}d(!0),e.slideTo(g,0)}function f(v){if(typeof v>"u"||v===null)return;let m=e.activeIndex;if(Array.isArray(v))for(let g=v.length-1;g>=0;g-=1)e.params.virtual.cache&&(delete e.virtual.cache[v[g]],Object.keys(e.virtual.cache).forEach(p=>{p>v&&(e.virtual.cache[p-1]=e.virtual.cache[p],e.virtual.cache[p-1].setAttribute("data-swiper-slide-index",p-1),delete e.virtual.cache[p])})),e.virtual.slides.splice(v[g],1),v[g]<m&&(m-=1),m=Math.max(m,0);else e.params.virtual.cache&&(delete e.virtual.cache[v],Object.keys(e.virtual.cache).forEach(g=>{g>v&&(e.virtual.cache[g-1]=e.virtual.cache[g],e.virtual.cache[g-1].setAttribute("data-swiper-slide-index",g-1),delete e.virtual.cache[g])})),e.virtual.slides.splice(v,1),v<m&&(m-=1),m=Math.max(m,0);d(!0),e.slideTo(m,0)}function h(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),d(!0),e.slideTo(0,0)}n("beforeInit",()=>{if(!e.params.virtual.enabled)return;let v;if(typeof e.passedParams.virtual.slides>"u"){const m=[...e.slidesEl.children].filter(g=>g.matches(`.${e.params.slideClass}, swiper-slide`));m&&m.length&&(e.virtual.slides=[...m],v=!0,m.forEach((g,p)=>{g.setAttribute("data-swiper-slide-index",p),e.virtual.cache[p]=g,g.remove()}))}v||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,d()}),n("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(i),i=setTimeout(()=>{d()},100)):d())}),n("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&mt(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:c,prependSlide:u,removeSlide:f,removeAllSlides:h,update:d})}function uf(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=ue(),o=Z();e.keyboard={enabled:!1},r({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function l(c){if(!e.enabled)return;const{rtlTranslate:u}=e;let f=c;f.originalEvent&&(f=f.originalEvent);const h=f.keyCode||f.charCode,v=e.params.keyboard.pageUpDown,m=v&&h===33,g=v&&h===34,p=h===37,x=h===39,w=h===38,T=h===40;if(!e.allowSlideNext&&(e.isHorizontal()&&x||e.isVertical()&&T||g)||!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&w||m))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||g||p||x||w||T)){let I=!1;if(Fe(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Fe(e.el,`.${e.params.slideActiveClass}`).length===0)return;const M=e.el,A=M.clientWidth,S=M.clientHeight,C=o.innerWidth,P=o.innerHeight,$=nr(M);u&&($.left-=M.scrollLeft);const L=[[$.left,$.top],[$.left+A,$.top],[$.left,$.top+S],[$.left+A,$.top+S]];for(let y=0;y<L.length;y+=1){const E=L[y];if(E[0]>=0&&E[0]<=C&&E[1]>=0&&E[1]<=P){if(E[0]===0&&E[1]===0)continue;I=!0}}if(!I)return}e.isHorizontal()?((m||g||p||x)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((g||x)&&!u||(m||p)&&u)&&e.slideNext(),((m||p)&&!u||(g||x)&&u)&&e.slidePrev()):((m||g||w||T)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(g||T)&&e.slideNext(),(m||w)&&e.slidePrev()),s("keyPress",h)}}function a(){e.keyboard.enabled||(i.addEventListener("keydown",l),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(i.removeEventListener("keydown",l),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&d()}),Object.assign(e.keyboard,{enable:a,disable:d})}function ff(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=Z();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,l=ye(),a;const d=[];function c(w){let A=0,S=0,C=0,P=0;return"detail"in w&&(S=w.detail),"wheelDelta"in w&&(S=-w.wheelDelta/120),"wheelDeltaY"in w&&(S=-w.wheelDeltaY/120),"wheelDeltaX"in w&&(A=-w.wheelDeltaX/120),"axis"in w&&w.axis===w.HORIZONTAL_AXIS&&(A=S,S=0),C=A*10,P=S*10,"deltaY"in w&&(P=w.deltaY),"deltaX"in w&&(C=w.deltaX),w.shiftKey&&!C&&(C=P,P=0),(C||P)&&w.deltaMode&&(w.deltaMode===1?(C*=40,P*=40):(C*=800,P*=800)),C&&!A&&(A=C<1?-1:1),P&&!S&&(S=P<1?-1:1),{spinX:A,spinY:S,pixelX:C,pixelY:P}}function u(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function h(w){return e.params.mousewheel.thresholdDelta&&w.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&ye()-l<e.params.mousewheel.thresholdTime?!1:w.delta>=6&&ye()-l<60?!0:(w.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",w.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",w.raw)),l=new i.Date().getTime(),!1)}function v(w){const T=e.params.mousewheel;if(w.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function m(w){let T=w,I=!0;if(!e.enabled||w.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const M=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let A=e.el;e.params.mousewheel.eventsTarget!=="container"&&(A=document.querySelector(e.params.mousewheel.eventsTarget));const S=A&&A.contains(T.target);if(!e.mouseEntered&&!S&&!M.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let C=0;const P=e.rtlTranslate?-1:1,$=c(T);if(M.forceToAxis)if(e.isHorizontal())if(Math.abs($.pixelX)>Math.abs($.pixelY))C=-$.pixelX*P;else return!0;else if(Math.abs($.pixelY)>Math.abs($.pixelX))C=-$.pixelY;else return!0;else C=Math.abs($.pixelX)>Math.abs($.pixelY)?-$.pixelX*P:-$.pixelY;if(C===0)return!0;M.invert&&(C=-C);let L=e.getTranslate()+C*M.sensitivity;if(L>=e.minTranslate()&&(L=e.minTranslate()),L<=e.maxTranslate()&&(L=e.maxTranslate()),I=e.params.loop?!0:!(L===e.minTranslate()||L===e.maxTranslate()),I&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const y={time:ye(),delta:Math.abs(C),direction:Math.sign(C),raw:w};d.length>=2&&d.shift();const E=d.length?d[d.length-1]:void 0;if(d.push(y),E?(y.direction!==E.direction||y.delta>E.delta||y.time>E.time+150)&&h(y):h(y),v(y))return!0}else{const y={time:ye(),delta:Math.abs(C),direction:Math.sign(C)},E=a&&y.time<a.time+500&&y.delta<=a.delta&&y.direction===a.direction;if(!E){a=void 0;let D=e.getTranslate()+C*M.sensitivity;const N=e.isBeginning,O=e.isEnd;if(D>=e.minTranslate()&&(D=e.minTranslate()),D<=e.maxTranslate()&&(D=e.maxTranslate()),e.setTransition(0),e.setTranslate(D),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!N&&e.isBeginning||!O&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:y.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,d.length>=15&&d.shift();const j=d.length?d[d.length-1]:void 0,_=d[0];if(d.push(y),j&&(y.delta>j.delta||y.direction!==j.direction))d.splice(0);else if(d.length>=15&&y.time-_.time<500&&_.delta-y.delta>=1&&y.delta<=6){const k=C>0?.8:.2;a=y,d.splice(0),o=qe(()=>{e.slideToClosest(e.params.speed,!0,void 0,k)},0)}o||(o=qe(()=>{a=y,d.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||s("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),M.releaseOnEdges&&(D===e.minTranslate()||D===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function g(w){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[w]("mouseenter",u),T[w]("mouseleave",f),T[w]("wheel",m)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(g("addEventListener"),e.mousewheel.enabled=!0,!0)}function x(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(g("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&x(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&x()}),Object.assign(e.mousewheel,{enable:p,disable:x})}function An(t,e,r,n){return t.params.createElements&&Object.keys(n).forEach(s=>{if(!r[s]&&r.auto===!0){let i=de(t.el,`.${n[s]}`)[0];i||(i=he("div",n[s]),i.className=n[s],t.el.append(i)),r[s]=i,e[s]=i}}),r}function pf(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function i(v){let m;return v&&typeof v=="string"&&e.isElement&&(m=e.el.querySelector(v),m)?m:(v&&(typeof v=="string"&&(m=[...document.querySelectorAll(v)]),e.params.uniqueNavElements&&typeof v=="string"&&m.length>1&&e.el.querySelectorAll(v).length===1&&(m=e.el.querySelector(v))),v&&!m?v:m)}function o(v,m){const g=e.params.navigation;v=U(v),v.forEach(p=>{p&&(p.classList[m?"add":"remove"](...g.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=m),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](g.lockClass))})}function l(){const{nextEl:v,prevEl:m}=e.navigation;if(e.params.loop){o(m,!1),o(v,!1);return}o(m,e.isBeginning&&!e.params.rewind),o(v,e.isEnd&&!e.params.rewind)}function a(v){v.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function d(v){v.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function c(){const v=e.params.navigation;if(e.params.navigation=An(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(v.nextEl||v.prevEl))return;let m=i(v.nextEl),g=i(v.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:g}),m=U(m),g=U(g);const p=(x,w)=>{x&&x.addEventListener("click",w==="next"?d:a),!e.enabled&&x&&x.classList.add(...v.lockClass.split(" "))};m.forEach(x=>p(x,"next")),g.forEach(x=>p(x,"prev"))}function u(){let{nextEl:v,prevEl:m}=e.navigation;v=U(v),m=U(m);const g=(p,x)=>{p.removeEventListener("click",x==="next"?d:a),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};v.forEach(p=>g(p,"next")),m.forEach(p=>g(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?h():(c(),l())}),n("toEdge fromEdge lock unlock",()=>{l()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:v,prevEl:m}=e.navigation;if(v=U(v),m=U(m),e.enabled){l();return}[...v,...m].filter(g=>!!g).forEach(g=>g.classList.add(e.params.navigation.lockClass))}),n("click",(v,m)=>{let{nextEl:g,prevEl:p}=e.navigation;g=U(g),p=U(p);const x=m.target;if(e.params.navigation.hideOnClick&&!p.includes(x)&&!g.includes(x)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===x||e.pagination.el.contains(x)))return;let w;g.length?w=g[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),s(w===!0?"navigationShow":"navigationHide"),[...g,...p].filter(T=>!!T).forEach(T=>T.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),l()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:f,disable:h,update:l,init:c,destroy:u})}function Pe(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function hf(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let o,l=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function d(p,x){const{bulletActiveClass:w}=e.params.pagination;p&&(p=p[`${x==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${w}-${x}`),p=p[`${x==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${w}-${x}-${x}`)))}function c(p){const x=p.target.closest(Pe(e.params.pagination.bulletClass));if(!x)return;p.preventDefault();const w=xt(x)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===w)return;e.slideToLoop(w)}else e.slideTo(w)}function u(){const p=e.rtl,x=e.params.pagination;if(a())return;let w=e.pagination.el;w=U(w);let T,I;const M=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,A=e.params.loop?Math.ceil(M/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(I=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,I=e.previousSnapIndex):(I=e.previousIndex||0,T=e.activeIndex||0),x.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const S=e.pagination.bullets;let C,P,$;if(x.dynamicBullets&&(o=dn(S[0],e.isHorizontal()?"width":"height",!0),w.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${o*(x.dynamicMainBullets+4)}px`}),x.dynamicMainBullets>1&&I!==void 0&&(l+=T-(I||0),l>x.dynamicMainBullets-1?l=x.dynamicMainBullets-1:l<0&&(l=0)),C=Math.max(T-l,0),P=C+(Math.min(S.length,x.dynamicMainBullets)-1),$=(P+C)/2),S.forEach(L=>{const y=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${x.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();L.classList.remove(...y)}),w.length>1)S.forEach(L=>{const y=xt(L);y===T?L.classList.add(...x.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),x.dynamicBullets&&(y>=C&&y<=P&&L.classList.add(...`${x.bulletActiveClass}-main`.split(" ")),y===C&&d(L,"prev"),y===P&&d(L,"next"))});else{const L=S[T];if(L&&L.classList.add(...x.bulletActiveClass.split(" ")),e.isElement&&S.forEach((y,E)=>{y.setAttribute("part",E===T?"bullet-active":"bullet")}),x.dynamicBullets){const y=S[C],E=S[P];for(let D=C;D<=P;D+=1)S[D]&&S[D].classList.add(...`${x.bulletActiveClass}-main`.split(" "));d(y,"prev"),d(E,"next")}}if(x.dynamicBullets){const L=Math.min(S.length,x.dynamicMainBullets+4),y=(o*L-o)/2-$*o,E=p?"right":"left";S.forEach(D=>{D.style[e.isHorizontal()?E:"top"]=`${y}px`})}}w.forEach((S,C)=>{if(x.type==="fraction"&&(S.querySelectorAll(Pe(x.currentClass)).forEach(P=>{P.textContent=x.formatFractionCurrent(T+1)}),S.querySelectorAll(Pe(x.totalClass)).forEach(P=>{P.textContent=x.formatFractionTotal(A)})),x.type==="progressbar"){let P;x.progressbarOpposite?P=e.isHorizontal()?"vertical":"horizontal":P=e.isHorizontal()?"horizontal":"vertical";const $=(T+1)/A;let L=1,y=1;P==="horizontal"?L=$:y=$,S.querySelectorAll(Pe(x.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${y})`,E.style.transitionDuration=`${e.params.speed}ms`})}x.type==="custom"&&x.renderCustom?(S.innerHTML=x.renderCustom(e,T+1,A),C===0&&s("paginationRender",S)):(C===0&&s("paginationRender",S),s("paginationUpdate",S)),e.params.watchOverflow&&e.enabled&&S.classList[e.isLocked?"add":"remove"](x.lockClass)})}function f(){const p=e.params.pagination;if(a())return;const x=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let w=e.pagination.el;w=U(w);let T="";if(p.type==="bullets"){let I=e.params.loop?Math.ceil(x/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&I>x&&(I=x);for(let M=0;M<I;M+=1)p.renderBullet?T+=p.renderBullet.call(e,M,p.bulletClass):T+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?T=p.renderFraction.call(e,p.currentClass,p.totalClass):T=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?T=p.renderProgressbar.call(e,p.progressbarFillClass):T=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],w.forEach(I=>{p.type!=="custom"&&(I.innerHTML=T||""),p.type==="bullets"&&e.pagination.bullets.push(...I.querySelectorAll(Pe(p.bulletClass)))}),p.type!=="custom"&&s("paginationRender",w[0])}function h(){e.params.pagination=An(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let x;typeof p.el=="string"&&e.isElement&&(x=e.el.querySelector(p.el)),!x&&typeof p.el=="string"&&(x=[...document.querySelectorAll(p.el)]),x||(x=p.el),!(!x||x.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(x)&&x.length>1&&(x=[...e.el.querySelectorAll(p.el)],x.length>1&&(x=x.filter(w=>Fe(w,".swiper")[0]===e.el)[0])),Array.isArray(x)&&x.length===1&&(x=x[0]),Object.assign(e.pagination,{el:x}),x=U(x),x.forEach(w=>{p.type==="bullets"&&p.clickable&&w.classList.add(...(p.clickableClass||"").split(" ")),w.classList.add(p.modifierClass+p.type),w.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(w.classList.add(`${p.modifierClass}${p.type}-dynamic`),l=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&w.classList.add(p.progressbarOppositeClass),p.clickable&&w.addEventListener("click",c),e.enabled||w.classList.add(p.lockClass)}))}function v(){const p=e.params.pagination;if(a())return;let x=e.pagination.el;x&&(x=U(x),x.forEach(w=>{w.classList.remove(p.hiddenClass),w.classList.remove(p.modifierClass+p.type),w.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(w.classList.remove(...(p.clickableClass||"").split(" ")),w.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(w=>w.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:x}=e.pagination;x=U(x),x.forEach(w=>{w.classList.remove(p.horizontalClass,p.verticalClass),w.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?g():(h(),f(),u())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{f(),u()}),n("destroy",()=>{v()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=U(p),p.forEach(x=>x.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(p,x)=>{const w=x.target,T=U(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!w.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&w===e.navigation.nextEl||e.navigation.prevEl&&w===e.navigation.prevEl))return;const I=T[0].classList.contains(e.params.pagination.hiddenClass);s(I===!0?"paginationShow":"paginationHide"),T.forEach(M=>M.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=U(p),p.forEach(x=>x.classList.remove(e.params.pagination.paginationDisabledClass))),h(),f(),u()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=U(p),p.forEach(x=>x.classList.add(e.params.pagination.paginationDisabledClass))),v()};Object.assign(e.pagination,{enable:m,disable:g,render:f,update:u,init:h,destroy:v})}function mf(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=ue();let o=!1,l=null,a=null,d,c,u,f;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:L,rtlTranslate:y}=e,{dragEl:E,el:D}=L,N=e.params.scrollbar,O=e.params.loop?e.progressLoop:e.progress;let j=c,_=(u-c)*O;y?(_=-_,_>0?(j=c-_,_=0):-_+c>u&&(j=u+_)):_<0?(j=c+_,_=0):_+c>u&&(j=u-_),e.isHorizontal()?(E.style.transform=`translate3d(${_}px, 0, 0)`,E.style.width=`${j}px`):(E.style.transform=`translate3d(0px, ${_}px, 0)`,E.style.height=`${j}px`),N.hide&&(clearTimeout(l),D.style.opacity=1,l=setTimeout(()=>{D.style.opacity=0,D.style.transitionDuration="400ms"},1e3))}function v(L){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${L}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:L}=e,{dragEl:y,el:E}=L;y.style.width="",y.style.height="",u=e.isHorizontal()?E.offsetWidth:E.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=u*f:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?y.style.width=`${c}px`:y.style.height=`${c}px`,f>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&L.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function g(L){return e.isHorizontal()?L.clientX:L.clientY}function p(L){const{scrollbar:y,rtlTranslate:E}=e,{el:D}=y;let N;N=(g(L)-nr(D)[e.isHorizontal()?"left":"top"]-(d!==null?d:c/2))/(u-c),N=Math.max(Math.min(N,1),0),E&&(N=1-N);const O=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*N;e.updateProgress(O),e.setTranslate(O),e.updateActiveIndex(),e.updateSlidesClasses()}function x(L){const y=e.params.scrollbar,{scrollbar:E,wrapperEl:D}=e,{el:N,dragEl:O}=E;o=!0,d=L.target===O?g(L)-L.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,L.preventDefault(),L.stopPropagation(),D.style.transitionDuration="100ms",O.style.transitionDuration="100ms",p(L),clearTimeout(a),N.style.transitionDuration="0ms",y.hide&&(N.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",L)}function w(L){const{scrollbar:y,wrapperEl:E}=e,{el:D,dragEl:N}=y;o&&(L.preventDefault?L.preventDefault():L.returnValue=!1,p(L),E.style.transitionDuration="0ms",D.style.transitionDuration="0ms",N.style.transitionDuration="0ms",s("scrollbarDragMove",L))}function T(L){const y=e.params.scrollbar,{scrollbar:E,wrapperEl:D}=e,{el:N}=E;o&&(o=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",D.style.transitionDuration=""),y.hide&&(clearTimeout(a),a=qe(()=>{N.style.opacity=0,N.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",L),y.snapOnRelease&&e.slideToClosest())}function I(L){const{scrollbar:y,params:E}=e,D=y.el;if(!D)return;const N=D,O=E.passiveListeners?{passive:!1,capture:!1}:!1,j=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!N)return;const _=L==="on"?"addEventListener":"removeEventListener";N[_]("pointerdown",x,O),i[_]("pointermove",w,O),i[_]("pointerup",T,j)}function M(){!e.params.scrollbar.el||!e.scrollbar.el||I("on")}function A(){!e.params.scrollbar.el||!e.scrollbar.el||I("off")}function S(){const{scrollbar:L,el:y}=e;e.params.scrollbar=An(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let D;if(typeof E.el=="string"&&e.isElement&&(D=e.el.querySelector(E.el)),!D&&typeof E.el=="string"){if(D=i.querySelectorAll(E.el),!D.length)return}else D||(D=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&D.length>1&&y.querySelectorAll(E.el).length===1&&(D=y.querySelector(E.el)),D.length>0&&(D=D[0]),D.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let N;D&&(N=D.querySelector(Pe(e.params.scrollbar.dragClass)),N||(N=he("div",e.params.scrollbar.dragClass),D.append(N))),Object.assign(L,{el:D,dragEl:N}),E.draggable&&M(),D&&D.classList[e.enabled?"remove":"add"](...Le(e.params.scrollbar.lockClass))}function C(){const L=e.params.scrollbar,y=e.scrollbar.el;y&&y.classList.remove(...Le(e.isHorizontal()?L.horizontalClass:L.verticalClass)),A()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const L=e.params.scrollbar;let{el:y}=e.scrollbar;y=U(y),y.forEach(E=>{E.classList.remove(L.horizontalClass,L.verticalClass),E.classList.add(e.isHorizontal()?L.horizontalClass:L.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?$():(S(),m(),h())}),n("update resize observerUpdate lock unlock changeDirection",()=>{m()}),n("setTranslate",()=>{h()}),n("setTransition",(L,y)=>{v(y)}),n("enable disable",()=>{const{el:L}=e.scrollbar;L&&L.classList[e.enabled?"remove":"add"](...Le(e.params.scrollbar.lockClass))}),n("destroy",()=>{C()});const P=()=>{e.el.classList.remove(...Le(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Le(e.params.scrollbar.scrollbarDisabledClass)),S(),m(),h()},$=()=>{e.el.classList.add(...Le(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Le(e.params.scrollbar.scrollbarDisabledClass)),C()};Object.assign(e.scrollbar,{enable:P,disable:$,updateSize:m,setTranslate:h,init:S,destroy:C})}function gf(t){let{swiper:e,extendParams:r,on:n}=t;r({parallax:{enabled:!1}});const s="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",i=(a,d)=>{const{rtl:c}=e,u=c?-1:1,f=a.getAttribute("data-swiper-parallax")||"0";let h=a.getAttribute("data-swiper-parallax-x"),v=a.getAttribute("data-swiper-parallax-y");const m=a.getAttribute("data-swiper-parallax-scale"),g=a.getAttribute("data-swiper-parallax-opacity"),p=a.getAttribute("data-swiper-parallax-rotate");if(h||v?(h=h||"0",v=v||"0"):e.isHorizontal()?(h=f,v="0"):(v=f,h="0"),h.indexOf("%")>=0?h=`${parseInt(h,10)*d*u}%`:h=`${h*d*u}px`,v.indexOf("%")>=0?v=`${parseInt(v,10)*d}%`:v=`${v*d}px`,typeof g<"u"&&g!==null){const w=g-(g-1)*(1-Math.abs(d));a.style.opacity=w}let x=`translate3d(${h}, ${v}, 0px)`;if(typeof m<"u"&&m!==null){const w=m-(m-1)*(1-Math.abs(d));x+=` scale(${w})`}if(p&&typeof p<"u"&&p!==null){const w=p*d*-1;x+=` rotate(${w}deg)`}a.style.transform=x},o=()=>{const{el:a,slides:d,progress:c,snapGrid:u,isElement:f}=e,h=de(a,s);e.isElement&&h.push(...de(e.hostEl,s)),h.forEach(v=>{i(v,c)}),d.forEach((v,m)=>{let g=v.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(g+=Math.ceil(m/2)-c*(u.length-1)),g=Math.min(Math.max(g,-1),1),v.querySelectorAll(`${s}, [data-swiper-parallax-rotate]`).forEach(p=>{i(p,g)})})},l=function(a){a===void 0&&(a=e.params.speed);const{el:d,hostEl:c}=e,u=[...d.querySelectorAll(s)];e.isElement&&u.push(...c.querySelectorAll(s)),u.forEach(f=>{let h=parseInt(f.getAttribute("data-swiper-parallax-duration"),10)||a;a===0&&(h=0),f.style.transitionDuration=`${h}ms`})};n("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),n("init",()=>{e.params.parallax.enabled&&o()}),n("setTranslate",()=>{e.params.parallax.enabled&&o()}),n("setTransition",(a,d)=>{e.params.parallax.enabled&&l(d)})}function vf(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=Z();r({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let o=1,l=!1,a,d;const c=[],u={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},h={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v=1;Object.defineProperty(e.zoom,"scale",{get(){return v},set(O){if(v!==O){const j=u.imageEl,_=u.slideEl;s("zoomChange",O,j,_)}v=O}});function m(){if(c.length<2)return 1;const O=c[0].pageX,j=c[0].pageY,_=c[1].pageX,k=c[1].pageY;return Math.sqrt((_-O)**2+(k-j)**2)}function g(){if(c.length<2)return{x:null,y:null};const O=u.imageEl.getBoundingClientRect();return[(c[0].pageX+(c[1].pageX-c[0].pageX)/2-O.x-i.scrollX)/o,(c[0].pageY+(c[1].pageY-c[0].pageY)/2-O.y-i.scrollY)/o]}function p(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function x(O){const j=p();return!!(O.target.matches(j)||e.slides.filter(_=>_.contains(O.target)).length>0)}function w(O){const j=`.${e.params.zoom.containerClass}`;return!!(O.target.matches(j)||[...e.hostEl.querySelectorAll(j)].filter(_=>_.contains(O.target)).length>0)}function T(O){if(O.pointerType==="mouse"&&c.splice(0,c.length),!x(O))return;const j=e.params.zoom;if(a=!1,d=!1,c.push(O),!(c.length<2)){if(a=!0,u.scaleStart=m(),!u.slideEl){u.slideEl=O.target.closest(`.${e.params.slideClass}, swiper-slide`),u.slideEl||(u.slideEl=e.slides[e.activeIndex]);let _=u.slideEl.querySelector(`.${j.containerClass}`);if(_&&(_=_.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=_,_?u.imageWrapEl=Fe(u.imageEl,`.${j.containerClass}`)[0]:u.imageWrapEl=void 0,!u.imageWrapEl){u.imageEl=void 0;return}u.maxRatio=u.imageWrapEl.getAttribute("data-swiper-zoom")||j.maxRatio}if(u.imageEl){const[_,k]=g();u.originX=_,u.originY=k,u.imageEl.style.transitionDuration="0ms"}l=!0}}function I(O){if(!x(O))return;const j=e.params.zoom,_=e.zoom,k=c.findIndex(K=>K.pointerId===O.pointerId);k>=0&&(c[k]=O),!(c.length<2)&&(d=!0,u.scaleMove=m(),u.imageEl&&(_.scale=u.scaleMove/u.scaleStart*o,_.scale>u.maxRatio&&(_.scale=u.maxRatio-1+(_.scale-u.maxRatio+1)**.5),_.scale<j.minRatio&&(_.scale=j.minRatio+1-(j.minRatio-_.scale+1)**.5),u.imageEl.style.transform=`translate3d(0,0,0) scale(${_.scale})`))}function M(O){if(!x(O)||O.pointerType==="mouse"&&O.type==="pointerout")return;const j=e.params.zoom,_=e.zoom,k=c.findIndex(K=>K.pointerId===O.pointerId);k>=0&&c.splice(k,1),!(!a||!d)&&(a=!1,d=!1,u.imageEl&&(_.scale=Math.max(Math.min(_.scale,u.maxRatio),j.minRatio),u.imageEl.style.transitionDuration=`${e.params.speed}ms`,u.imageEl.style.transform=`translate3d(0,0,0) scale(${_.scale})`,o=_.scale,l=!1,_.scale>1&&u.slideEl?u.slideEl.classList.add(`${j.zoomedSlideClass}`):_.scale<=1&&u.slideEl&&u.slideEl.classList.remove(`${j.zoomedSlideClass}`),_.scale===1&&(u.originX=0,u.originY=0,u.slideEl=void 0)))}function A(O){const j=e.device;if(!u.imageEl||f.isTouched)return;j.android&&O.cancelable&&O.preventDefault(),f.isTouched=!0;const _=c.length>0?c[0]:O;f.touchesStart.x=_.pageX,f.touchesStart.y=_.pageY}function S(O){if(!x(O)||!w(O))return;const j=e.zoom;if(!u.imageEl||!f.isTouched||!u.slideEl)return;f.isMoved||(f.width=u.imageEl.offsetWidth,f.height=u.imageEl.offsetHeight,f.startX=cn(u.imageWrapEl,"x")||0,f.startY=cn(u.imageWrapEl,"y")||0,u.slideWidth=u.slideEl.offsetWidth,u.slideHeight=u.slideEl.offsetHeight,u.imageWrapEl.style.transitionDuration="0ms");const _=f.width*j.scale,k=f.height*j.scale;if(_<u.slideWidth&&k<u.slideHeight)return;if(f.minX=Math.min(u.slideWidth/2-_/2,0),f.maxX=-f.minX,f.minY=Math.min(u.slideHeight/2-k/2,0),f.maxY=-f.minY,f.touchesCurrent.x=c.length>0?c[0].pageX:O.pageX,f.touchesCurrent.y=c.length>0?c[0].pageY:O.pageY,Math.max(Math.abs(f.touchesCurrent.x-f.touchesStart.x),Math.abs(f.touchesCurrent.y-f.touchesStart.y))>5&&(e.allowClick=!1),!f.isMoved&&!l){if(e.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x)){f.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y)){f.isTouched=!1;return}}O.cancelable&&O.preventDefault(),O.stopPropagation(),f.isMoved=!0;const W=(j.scale-o)/(u.maxRatio-e.params.zoom.minRatio),{originX:q,originY:H}=u;f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX+W*(f.width-q*2),f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY+W*(f.height-H*2),f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),h.prevPositionX||(h.prevPositionX=f.touchesCurrent.x),h.prevPositionY||(h.prevPositionY=f.touchesCurrent.y),h.prevTime||(h.prevTime=Date.now()),h.x=(f.touchesCurrent.x-h.prevPositionX)/(Date.now()-h.prevTime)/2,h.y=(f.touchesCurrent.y-h.prevPositionY)/(Date.now()-h.prevTime)/2,Math.abs(f.touchesCurrent.x-h.prevPositionX)<2&&(h.x=0),Math.abs(f.touchesCurrent.y-h.prevPositionY)<2&&(h.y=0),h.prevPositionX=f.touchesCurrent.x,h.prevPositionY=f.touchesCurrent.y,h.prevTime=Date.now(),u.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function C(){const O=e.zoom;if(!u.imageEl)return;if(!f.isTouched||!f.isMoved){f.isTouched=!1,f.isMoved=!1;return}f.isTouched=!1,f.isMoved=!1;let j=300,_=300;const k=h.x*j,K=f.currentX+k,W=h.y*_,q=f.currentY+W;h.x!==0&&(j=Math.abs((K-f.currentX)/h.x)),h.y!==0&&(_=Math.abs((q-f.currentY)/h.y));const H=Math.max(j,_);f.currentX=K,f.currentY=q;const ce=f.width*O.scale,ee=f.height*O.scale;f.minX=Math.min(u.slideWidth/2-ce/2,0),f.maxX=-f.minX,f.minY=Math.min(u.slideHeight/2-ee/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),u.imageWrapEl.style.transitionDuration=`${H}ms`,u.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function P(){const O=e.zoom;u.slideEl&&e.activeIndex!==e.slides.indexOf(u.slideEl)&&(u.imageEl&&(u.imageEl.style.transform="translate3d(0,0,0) scale(1)"),u.imageWrapEl&&(u.imageWrapEl.style.transform="translate3d(0,0,0)"),u.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),O.scale=1,o=1,u.slideEl=void 0,u.imageEl=void 0,u.imageWrapEl=void 0,u.originX=0,u.originY=0)}function $(O){const j=e.zoom,_=e.params.zoom;if(!u.slideEl){O&&O.target&&(u.slideEl=O.target.closest(`.${e.params.slideClass}, swiper-slide`)),u.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=de(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex]);let Ne=u.slideEl.querySelector(`.${_.containerClass}`);Ne&&(Ne=Ne.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=Ne,Ne?u.imageWrapEl=Fe(u.imageEl,`.${_.containerClass}`)[0]:u.imageWrapEl=void 0}if(!u.imageEl||!u.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),u.slideEl.classList.add(`${_.zoomedSlideClass}`);let k,K,W,q,H,ce,ee,G,te,ne,ae,se,_e,ke,re,xe,Ue,Ye;typeof f.touchesStart.x>"u"&&O?(k=O.pageX,K=O.pageY):(k=f.touchesStart.x,K=f.touchesStart.y);const Ie=typeof O=="number"?O:null;o===1&&Ie&&(k=void 0,K=void 0),j.scale=Ie||u.imageWrapEl.getAttribute("data-swiper-zoom")||_.maxRatio,o=Ie||u.imageWrapEl.getAttribute("data-swiper-zoom")||_.maxRatio,O&&!(o===1&&Ie)?(Ue=u.slideEl.offsetWidth,Ye=u.slideEl.offsetHeight,W=nr(u.slideEl).left+i.scrollX,q=nr(u.slideEl).top+i.scrollY,H=W+Ue/2-k,ce=q+Ye/2-K,te=u.imageEl.offsetWidth,ne=u.imageEl.offsetHeight,ae=te*j.scale,se=ne*j.scale,_e=Math.min(Ue/2-ae/2,0),ke=Math.min(Ye/2-se/2,0),re=-_e,xe=-ke,ee=H*j.scale,G=ce*j.scale,ee<_e&&(ee=_e),ee>re&&(ee=re),G<ke&&(G=ke),G>xe&&(G=xe)):(ee=0,G=0),Ie&&j.scale===1&&(u.originX=0,u.originY=0),u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform=`translate3d(${ee}px, ${G}px,0)`,u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform=`translate3d(0,0,0) scale(${j.scale})`}function L(){const O=e.zoom,j=e.params.zoom;if(!u.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=de(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex];let _=u.slideEl.querySelector(`.${j.containerClass}`);_&&(_=_.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=_,_?u.imageWrapEl=Fe(u.imageEl,`.${j.containerClass}`)[0]:u.imageWrapEl=void 0}!u.imageEl||!u.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),O.scale=1,o=1,u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform="translate3d(0,0,0)",u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform="translate3d(0,0,0) scale(1)",u.slideEl.classList.remove(`${j.zoomedSlideClass}`),u.slideEl=void 0,u.originX=0,u.originY=0)}function y(O){const j=e.zoom;j.scale&&j.scale!==1?L():$(O)}function E(){const O=e.params.passiveListeners?{passive:!0,capture:!1}:!1,j=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:O,activeListenerWithCapture:j}}function D(){const O=e.zoom;if(O.enabled)return;O.enabled=!0;const{passiveListener:j,activeListenerWithCapture:_}=E();e.wrapperEl.addEventListener("pointerdown",T,j),e.wrapperEl.addEventListener("pointermove",I,_),["pointerup","pointercancel","pointerout"].forEach(k=>{e.wrapperEl.addEventListener(k,M,j)}),e.wrapperEl.addEventListener("pointermove",S,_)}function N(){const O=e.zoom;if(!O.enabled)return;O.enabled=!1;const{passiveListener:j,activeListenerWithCapture:_}=E();e.wrapperEl.removeEventListener("pointerdown",T,j),e.wrapperEl.removeEventListener("pointermove",I,_),["pointerup","pointercancel","pointerout"].forEach(k=>{e.wrapperEl.removeEventListener(k,M,j)}),e.wrapperEl.removeEventListener("pointermove",S,_)}n("init",()=>{e.params.zoom.enabled&&D()}),n("destroy",()=>{N()}),n("touchStart",(O,j)=>{e.zoom.enabled&&A(j)}),n("touchEnd",(O,j)=>{e.zoom.enabled&&C()}),n("doubleTap",(O,j)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&y(j)}),n("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&P()}),n("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&P()}),Object.assign(e.zoom,{enable:D,disable:N,in:$,out:L,toggle:y})}function bf(t){let{swiper:e,extendParams:r,on:n}=t;r({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function s(d,c){const u=function(){let m,g,p;return(x,w)=>{for(g=-1,m=x.length;m-g>1;)p=m+g>>1,x[p]<=w?g=p:m=p;return m}}();this.x=d,this.y=c,this.lastIndex=d.length-1;let f,h;return this.interpolate=function(m){return m?(h=u(this.x,m),f=h-1,(m-this.x[f])*(this.y[h]-this.y[f])/(this.x[h]-this.x[f])+this.y[f]):0},this}function i(d){e.controller.spline=e.params.loop?new s(e.slidesGrid,d.slidesGrid):new s(e.snapGrid,d.snapGrid)}function o(d,c){const u=e.controller.control;let f,h;const v=e.constructor;function m(g){if(g.destroyed)return;const p=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(i(g),h=-e.controller.spline.interpolate(-p)),(!h||e.params.controller.by==="container")&&(f=(g.maxTranslate()-g.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(f)||!Number.isFinite(f))&&(f=1),h=(p-e.minTranslate())*f+g.minTranslate()),e.params.controller.inverse&&(h=g.maxTranslate()-h),g.updateProgress(h),g.setTranslate(h,e),g.updateActiveIndex(),g.updateSlidesClasses()}if(Array.isArray(u))for(let g=0;g<u.length;g+=1)u[g]!==c&&u[g]instanceof v&&m(u[g]);else u instanceof v&&c!==u&&m(u)}function l(d,c){const u=e.constructor,f=e.controller.control;let h;function v(m){m.destroyed||(m.setTransition(d,e),d!==0&&(m.transitionStart(),m.params.autoHeight&&qe(()=>{m.updateAutoHeight()}),bt(m.wrapperEl,()=>{f&&m.transitionEnd()})))}if(Array.isArray(f))for(h=0;h<f.length;h+=1)f[h]!==c&&f[h]instanceof u&&v(f[h]);else f instanceof u&&c!==f&&v(f)}function a(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}n("beforeInit",()=>{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const d=document.querySelector(e.params.controller.control);if(d&&d.swiper)e.controller.control=d.swiper;else if(d){const c=u=>{e.controller.control=u.detail[0],e.update(),d.removeEventListener("init",c)};d.addEventListener("init",c)}return}e.controller.control=e.params.controller.control}),n("update",()=>{a()}),n("resize",()=>{a()}),n("observerUpdate",()=>{a()}),n("setTranslate",(d,c,u)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(c,u)}),n("setTransition",(d,c,u)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(c,u)}),Object.assign(e.controller,{setTranslate:o,setTransition:l})}function yf(t){let{swiper:e,extendParams:r,on:n}=t;r({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let s=null;function i(y){const E=s;E.length!==0&&(E.innerHTML="",E.innerHTML=y)}function o(y){y===void 0&&(y=16);const E=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(y).replace(/x/g,E)}function l(y){y=U(y),y.forEach(E=>{E.setAttribute("tabIndex","0")})}function a(y){y=U(y),y.forEach(E=>{E.setAttribute("tabIndex","-1")})}function d(y,E){y=U(y),y.forEach(D=>{D.setAttribute("role",E)})}function c(y,E){y=U(y),y.forEach(D=>{D.setAttribute("aria-roledescription",E)})}function u(y,E){y=U(y),y.forEach(D=>{D.setAttribute("aria-controls",E)})}function f(y,E){y=U(y),y.forEach(D=>{D.setAttribute("aria-label",E)})}function h(y,E){y=U(y),y.forEach(D=>{D.setAttribute("id",E)})}function v(y,E){y=U(y),y.forEach(D=>{D.setAttribute("aria-live",E)})}function m(y){y=U(y),y.forEach(E=>{E.setAttribute("aria-disabled",!0)})}function g(y){y=U(y),y.forEach(E=>{E.setAttribute("aria-disabled",!1)})}function p(y){if(y.keyCode!==13&&y.keyCode!==32)return;const E=e.params.a11y,D=y.target;e.pagination&&e.pagination.el&&(D===e.pagination.el||e.pagination.el.contains(y.target))&&!y.target.matches(Pe(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&D===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?i(E.lastSlideMessage):i(E.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&D===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?i(E.firstSlideMessage):i(E.prevSlideMessage)),e.pagination&&D.matches(Pe(e.params.pagination.bulletClass))&&D.click())}function x(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:y,prevEl:E}=e.navigation;E&&(e.isBeginning?(m(E),a(E)):(g(E),l(E))),y&&(e.isEnd?(m(y),a(y)):(g(y),l(y)))}function w(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function T(){return w()&&e.params.pagination.clickable}function I(){const y=e.params.a11y;w()&&e.pagination.bullets.forEach(E=>{e.params.pagination.clickable&&(l(E),e.params.pagination.renderBullet||(d(E,"button"),f(E,y.paginationBulletMessage.replace(/\{\{index\}\}/,xt(E)+1)))),E.matches(Pe(e.params.pagination.bulletActiveClass))?E.setAttribute("aria-current","true"):E.removeAttribute("aria-current")})}const M=(y,E,D)=>{l(y),y.tagName!=="BUTTON"&&(d(y,"button"),y.addEventListener("keydown",p)),f(y,D),u(y,E)},A=()=>{e.a11y.clicked=!0},S=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=y=>{if(e.a11y.clicked)return;const E=y.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!E||!e.slides.includes(E))return;const D=e.slides.indexOf(E)===e.activeIndex,N=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(E);D||N||y.sourceCapabilities&&y.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(E),0))},P=()=>{const y=e.params.a11y;y.itemRoleDescriptionMessage&&c(e.slides,y.itemRoleDescriptionMessage),y.slideRole&&d(e.slides,y.slideRole);const E=e.slides.length;y.slideLabelMessage&&e.slides.forEach((D,N)=>{const O=e.params.loop?parseInt(D.getAttribute("data-swiper-slide-index"),10):N,j=y.slideLabelMessage.replace(/\{\{index\}\}/,O+1).replace(/\{\{slidesLength\}\}/,E);f(D,j)})},$=()=>{const y=e.params.a11y;e.el.append(s);const E=e.el;y.containerRoleDescriptionMessage&&c(E,y.containerRoleDescriptionMessage),y.containerMessage&&f(E,y.containerMessage);const D=e.wrapperEl,N=y.id||D.getAttribute("id")||`swiper-wrapper-${o(16)}`,O=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";h(D,N),v(D,O),P();let{nextEl:j,prevEl:_}=e.navigation?e.navigation:{};j=U(j),_=U(_),j&&j.forEach(k=>M(k,N,y.nextSlideMessage)),_&&_.forEach(k=>M(k,N,y.prevSlideMessage)),T()&&U(e.pagination.el).forEach(K=>{K.addEventListener("keydown",p)}),e.el.addEventListener("focus",C,!0),e.el.addEventListener("pointerdown",A,!0),e.el.addEventListener("pointerup",S,!0)};function L(){s&&s.remove();let{nextEl:y,prevEl:E}=e.navigation?e.navigation:{};y=U(y),E=U(E),y&&y.forEach(D=>D.removeEventListener("keydown",p)),E&&E.forEach(D=>D.removeEventListener("keydown",p)),T()&&U(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",p)}),e.el.removeEventListener("focus",C,!0),e.el.removeEventListener("pointerdown",A,!0),e.el.removeEventListener("pointerup",S,!0)}n("beforeInit",()=>{s=he("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&$()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&P()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&x()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&I()}),n("destroy",()=>{e.params.a11y.enabled&&L()})}function wf(t){let{swiper:e,extendParams:r,on:n}=t;r({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,i={};const o=h=>h.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=h=>{const v=Z();let m;h?m=new URL(h):m=v.location;const g=m.pathname.slice(1).split("/").filter(T=>T!==""),p=g.length,x=g[p-2],w=g[p-1];return{key:x,value:w}},a=(h,v)=>{const m=Z();if(!s||!e.params.history.enabled)return;let g;e.params.url?g=new URL(e.params.url):g=m.location;const p=e.slides[v];let x=o(p.getAttribute("data-history"));if(e.params.history.root.length>0){let T=e.params.history.root;T[T.length-1]==="/"&&(T=T.slice(0,T.length-1)),x=`${T}/${h?`${h}/`:""}${x}`}else g.pathname.includes(h)||(x=`${h?`${h}/`:""}${x}`);e.params.history.keepQuery&&(x+=g.search);const w=m.history.state;w&&w.value===x||(e.params.history.replaceState?m.history.replaceState({value:x},null,x):m.history.pushState({value:x},null,x))},d=(h,v,m)=>{if(v)for(let g=0,p=e.slides.length;g<p;g+=1){const x=e.slides[g];if(o(x.getAttribute("data-history"))===v){const T=e.getSlideIndex(x);e.slideTo(T,h,m)}}else e.slideTo(0,h,m)},c=()=>{i=l(e.params.url),d(e.params.speed,i.value,!1)},u=()=>{const h=Z();if(e.params.history){if(!h.history||!h.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(s=!0,i=l(e.params.url),!i.key&&!i.value){e.params.history.replaceState||h.addEventListener("popstate",c);return}d(0,i.value,e.params.runCallbacksOnInit),e.params.history.replaceState||h.addEventListener("popstate",c)}},f=()=>{const h=Z();e.params.history.replaceState||h.removeEventListener("popstate",c)};n("init",()=>{e.params.history.enabled&&u()}),n("destroy",()=>{e.params.history.enabled&&f()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{s&&a(e.params.history.key,e.activeIndex)}),n("slideChange",()=>{s&&e.params.cssMode&&a(e.params.history.key,e.activeIndex)})}function xf(t){let{swiper:e,extendParams:r,emit:n,on:s}=t,i=!1;const o=ue(),l=Z();r({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(f,h){if(e.virtual&&e.params.virtual.enabled){const v=e.slides.filter(g=>g.getAttribute("data-hash")===h)[0];return v?parseInt(v.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(de(e.slidesEl,`.${e.params.slideClass}[data-hash="${h}"], swiper-slide[data-hash="${h}"]`)[0])}}});const a=()=>{n("hashChange");const f=o.location.hash.replace("#",""),h=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],v=h?h.getAttribute("data-hash"):"";if(f!==v){const m=e.params.hashNavigation.getSlideIndex(e,f);if(typeof m>"u"||Number.isNaN(m))return;e.slideTo(m)}},d=()=>{if(!i||!e.params.hashNavigation.enabled)return;const f=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],h=f?f.getAttribute("data-hash")||f.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&l.history&&l.history.replaceState?(l.history.replaceState(null,null,`#${h}`||""),n("hashSet")):(o.location.hash=h||"",n("hashSet"))},c=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;i=!0;const f=o.location.hash.replace("#","");if(f){const v=e.params.hashNavigation.getSlideIndex(e,f);e.slideTo(v||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&l.addEventListener("hashchange",a)},u=()=>{e.params.hashNavigation.watchState&&l.removeEventListener("hashchange",a)};s("init",()=>{e.params.hashNavigation.enabled&&c()}),s("destroy",()=>{e.params.hashNavigation.enabled&&u()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{i&&d()}),s("slideChange",()=>{i&&e.params.cssMode&&d()})}function Sf(t){let{swiper:e,extendParams:r,on:n,emit:s,params:i}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,l,a=i&&i.autoplay?i.autoplay.delay:3e3,d=i&&i.autoplay?i.autoplay.delay:3e3,c,u=new Date().getTime(),f,h,v,m,g,p,x;function w(j){!e||e.destroyed||!e.wrapperEl||j.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",w),!x&&P())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(d=c,f=!1);const j=e.autoplay.paused?c:u+d-new Date().getTime();e.autoplay.timeLeft=j,s("autoplayTimeLeft",j,j/a),l=requestAnimationFrame(()=>{T()})},I=()=>{let j;return e.virtual&&e.params.virtual.enabled?j=e.slides.filter(k=>k.classList.contains("swiper-slide-active"))[0]:j=e.slides[e.activeIndex],j?parseInt(j.getAttribute("data-swiper-autoplay"),10):void 0},M=j=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),T();let _=typeof j>"u"?e.params.autoplay.delay:j;a=e.params.autoplay.delay,d=e.params.autoplay.delay;const k=I();!Number.isNaN(k)&&k>0&&typeof j>"u"&&(_=k,a=k,d=k),c=_;const K=e.params.speed,W=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(K,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,K,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(K,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,K,!0,!0),s("autoplay")),e.params.cssMode&&(u=new Date().getTime(),requestAnimationFrame(()=>{M()})))};return _>0?(clearTimeout(o),o=setTimeout(()=>{W()},_)):requestAnimationFrame(()=>{W()}),_},A=()=>{u=new Date().getTime(),e.autoplay.running=!0,M(),s("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(l),s("autoplayStop")},C=(j,_)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),j||(p=!0);const k=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",w):P()};if(e.autoplay.paused=!0,_){g&&(c=e.params.autoplay.delay),g=!1,k();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-u),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),k())},P=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(u=new Date().getTime(),p?(p=!1,M(c)):M(),e.autoplay.paused=!1,s("autoplayResume"))},$=()=>{if(e.destroyed||!e.autoplay.running)return;const j=ue();j.visibilityState==="hidden"&&(p=!0,C(!0)),j.visibilityState==="visible"&&P()},L=j=>{j.pointerType==="mouse"&&(p=!0,x=!0,!(e.animating||e.autoplay.paused)&&C(!0))},y=j=>{j.pointerType==="mouse"&&(x=!1,e.autoplay.paused&&P())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",L),e.el.addEventListener("pointerleave",y))},D=()=>{e.el.removeEventListener("pointerenter",L),e.el.removeEventListener("pointerleave",y)},N=()=>{ue().addEventListener("visibilitychange",$)},O=()=>{ue().removeEventListener("visibilitychange",$)};n("init",()=>{e.params.autoplay.enabled&&(E(),N(),A())}),n("destroy",()=>{D(),O(),e.autoplay.running&&S()}),n("_freeModeStaticRelease",()=>{(v||p)&&P()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?S():C(!0,!0)}),n("beforeTransitionStart",(j,_,k)=>{e.destroyed||!e.autoplay.running||(k||!e.params.autoplay.disableOnInteraction?C(!0,!0):S())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){S();return}h=!0,v=!1,p=!1,m=setTimeout(()=>{p=!0,v=!0,C(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!h)){if(clearTimeout(m),clearTimeout(o),e.params.autoplay.disableOnInteraction){v=!1,h=!1;return}v&&e.params.cssMode&&P(),v=!1,h=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(g=!0)}),Object.assign(e.autoplay,{start:A,stop:S,pause:C,resume:P})}function Tf(t){let{swiper:e,extendParams:r,on:n}=t;r({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,i=!1;e.thumbs={swiper:null};function o(){const d=e.thumbs.swiper;if(!d||d.destroyed)return;const c=d.clickedIndex,u=d.clickedSlide;if(u&&u.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let f;d.params.loop?f=parseInt(d.clickedSlide.getAttribute("data-swiper-slide-index"),10):f=c,e.params.loop?e.slideToLoop(f):e.slideTo(f)}function l(){const{thumbs:d}=e.params;if(s)return!1;s=!0;const c=e.constructor;if(d.swiper instanceof c)e.thumbs.swiper=d.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(ht(d.swiper)){const u=Object.assign({},d.swiper);Object.assign(u,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(u),i=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function a(d){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const u=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let f=1;const h=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(f=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(f=1),f=Math.floor(f),c.slides.forEach(g=>g.classList.remove(h)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let g=0;g<f;g+=1)de(c.slidesEl,`[data-swiper-slide-index="${e.realIndex+g}"]`).forEach(p=>{p.classList.add(h)});else for(let g=0;g<f;g+=1)c.slides[e.realIndex+g]&&c.slides[e.realIndex+g].classList.add(h);const v=e.params.thumbs.autoScrollOffset,m=v&&!c.params.loop;if(e.realIndex!==c.realIndex||m){const g=c.activeIndex;let p,x;if(c.params.loop){const w=c.slides.filter(T=>T.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];p=c.slides.indexOf(w),x=e.activeIndex>e.previousIndex?"next":"prev"}else p=e.realIndex,x=p>e.previousIndex?"next":"prev";m&&(p+=x==="next"?v:-1*v),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(p)<0&&(c.params.centeredSlides?p>g?p=p-Math.floor(u/2)+1:p=p+Math.floor(u/2)-1:p>g&&c.params.slidesPerGroup,c.slideTo(p,d?0:void 0))}}n("beforeInit",()=>{const{thumbs:d}=e.params;if(!(!d||!d.swiper))if(typeof d.swiper=="string"||d.swiper instanceof HTMLElement){const c=ue(),u=()=>{const h=typeof d.swiper=="string"?c.querySelector(d.swiper):d.swiper;if(h&&h.swiper)d.swiper=h.swiper,l(),a(!0);else if(h){const v=m=>{d.swiper=m.detail[0],h.removeEventListener("init",v),l(),a(!0),d.swiper.update(),e.update()};h.addEventListener("init",v)}return h},f=()=>{if(e.destroyed)return;u()||requestAnimationFrame(f)};requestAnimationFrame(f)}else l(),a(!0)}),n("slideChange update resize observerUpdate",()=>{a()}),n("setTransition",(d,c)=>{const u=e.thumbs.swiper;!u||u.destroyed||u.setTransition(c)}),n("beforeDestroy",()=>{const d=e.thumbs.swiper;!d||d.destroyed||i&&d.destroy()}),Object.assign(e.thumbs,{init:l,update:a})}function Ef(t){let{swiper:e,extendParams:r,emit:n,once:s}=t;r({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function i(){if(e.params.cssMode)return;const a=e.getTranslate();e.setTranslate(a),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function o(){if(e.params.cssMode)return;const{touchEventsData:a,touches:d}=e;a.velocities.length===0&&a.velocities.push({position:d[e.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:d[e.isHorizontal()?"currentX":"currentY"],time:ye()})}function l(a){let{currentPos:d}=a;if(e.params.cssMode)return;const{params:c,wrapperEl:u,rtlTranslate:f,snapGrid:h,touchEventsData:v}=e,g=ye()-v.touchStartTime;if(d<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(d>-e.maxTranslate()){e.slides.length<h.length?e.slideTo(h.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(v.velocities.length>1){const S=v.velocities.pop(),C=v.velocities.pop(),P=S.position-C.position,$=S.time-C.time;e.velocity=P/$,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),($>150||ye()-S.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,v.velocities.length=0;let p=1e3*c.freeMode.momentumRatio;const x=e.velocity*p;let w=e.translate+x;f&&(w=-w);let T=!1,I;const M=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let A;if(w<e.maxTranslate())c.freeMode.momentumBounce?(w+e.maxTranslate()<-M&&(w=e.maxTranslate()-M),I=e.maxTranslate(),T=!0,v.allowMomentumBounce=!0):w=e.maxTranslate(),c.loop&&c.centeredSlides&&(A=!0);else if(w>e.minTranslate())c.freeMode.momentumBounce?(w-e.minTranslate()>M&&(w=e.minTranslate()+M),I=e.minTranslate(),T=!0,v.allowMomentumBounce=!0):w=e.minTranslate(),c.loop&&c.centeredSlides&&(A=!0);else if(c.freeMode.sticky){let S;for(let C=0;C<h.length;C+=1)if(h[C]>-w){S=C;break}Math.abs(h[S]-w)<Math.abs(h[S-1]-w)||e.swipeDirection==="next"?w=h[S]:w=h[S-1],w=-w}if(A&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?p=Math.abs((-w-e.translate)/e.velocity):p=Math.abs((w-e.translate)/e.velocity),c.freeMode.sticky){const S=Math.abs((f?-w:w)-e.translate),C=e.slidesSizesGrid[e.activeIndex];S<C?p=c.speed:S<2*C?p=c.speed*1.5:p=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&T?(e.updateProgress(I),e.setTransition(p),e.setTranslate(w),e.transitionStart(!0,e.swipeDirection),e.animating=!0,bt(u,()=>{!e||e.destroyed||!v.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(I),bt(u,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(w),e.setTransition(p),e.setTranslate(w),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,bt(u,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(w),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||g>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:i,onTouchMove:o,onTouchEnd:l}})}function Pf(t){let{swiper:e,extendParams:r,on:n}=t;r({grid:{rows:1,fill:"column"}});let s,i,o,l;const a=()=>{let m=e.params.spaceBetween;return typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*e.size:typeof m=="string"&&(m=parseFloat(m)),m},d=m=>{const{slidesPerView:g}=e.params,{rows:p,fill:x}=e.params.grid,w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:m.length;o=Math.floor(w/p),Math.floor(w/p)===w/p?s=w:s=Math.ceil(w/p)*p,g!=="auto"&&x==="row"&&(s=Math.max(s,g*p)),i=s/p},c=()=>{e.slides&&e.slides.forEach(m=>{m.swiperSlideGridSet&&(m.style.height="",m.style[e.getDirectionLabel("margin-top")]="")})},u=(m,g,p)=>{const{slidesPerGroup:x}=e.params,w=a(),{rows:T,fill:I}=e.params.grid,M=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:p.length;let A,S,C;if(I==="row"&&x>1){const P=Math.floor(m/(x*T)),$=m-T*x*P,L=P===0?x:Math.min(Math.ceil((M-P*T*x)/T),x);C=Math.floor($/L),S=$-C*L+P*x,A=S+C*s/T,g.style.order=A}else I==="column"?(S=Math.floor(m/T),C=m-S*T,(S>o||S===o&&C===T-1)&&(C+=1,C>=T&&(C=0,S+=1))):(C=Math.floor(m/i),S=m-C*i);g.row=C,g.column=S,g.style.height=`calc((100% - ${(T-1)*w}px) / ${T})`,g.style[e.getDirectionLabel("margin-top")]=C!==0?w&&`${w}px`:"",g.swiperSlideGridSet=!0},f=(m,g)=>{const{centeredSlides:p,roundLengths:x}=e.params,w=a(),{rows:T}=e.params.grid;if(e.virtualSize=(m+w)*s,e.virtualSize=Math.ceil(e.virtualSize/T)-w,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),p){const I=[];for(let M=0;M<g.length;M+=1){let A=g[M];x&&(A=Math.floor(A)),g[M]<e.virtualSize+g[0]&&I.push(A)}g.splice(0,g.length),g.push(...I)}},h=()=>{l=e.params.grid&&e.params.grid.rows>1},v=()=>{const{params:m,el:g}=e,p=m.grid&&m.grid.rows>1;l&&!p?(g.classList.remove(`${m.containerModifierClass}grid`,`${m.containerModifierClass}grid-column`),o=1,e.emitContainerClasses()):!l&&p&&(g.classList.add(`${m.containerModifierClass}grid`),m.grid.fill==="column"&&g.classList.add(`${m.containerModifierClass}grid-column`),e.emitContainerClasses()),l=p};n("init",h),n("update",v),e.grid={initSlides:d,unsetSlides:c,updateSlide:u,updateWrapperSize:f}}function Cf(t){const e=this,{params:r,slidesEl:n}=e;r.loop&&e.loopDestroy();const s=i=>{if(typeof i=="string"){const o=document.createElement("div");o.innerHTML=i,n.append(o.children[0]),o.innerHTML=""}else n.append(i)};if(typeof t=="object"&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&s(t[i]);else s(t);e.recalcSlides(),r.loop&&e.loopCreate(),(!r.observer||e.isElement)&&e.update()}function $f(t){const e=this,{params:r,activeIndex:n,slidesEl:s}=e;r.loop&&e.loopDestroy();let i=n+1;const o=l=>{if(typeof l=="string"){const a=document.createElement("div");a.innerHTML=l,s.prepend(a.children[0]),a.innerHTML=""}else s.prepend(l)};if(typeof t=="object"&&"length"in t){for(let l=0;l<t.length;l+=1)t[l]&&o(t[l]);i=n+t.length}else o(t);e.recalcSlides(),r.loop&&e.loopCreate(),(!r.observer||e.isElement)&&e.update(),e.slideTo(i,0,!1)}function Mf(t,e){const r=this,{params:n,activeIndex:s,slidesEl:i}=r;let o=s;n.loop&&(o-=r.loopedSlides,r.loopDestroy(),r.recalcSlides());const l=r.slides.length;if(t<=0){r.prependSlide(e);return}if(t>=l){r.appendSlide(e);return}let a=o>t?o+1:o;const d=[];for(let c=l-1;c>=t;c-=1){const u=r.slides[c];u.remove(),d.unshift(u)}if(typeof e=="object"&&"length"in e){for(let c=0;c<e.length;c+=1)e[c]&&i.append(e[c]);a=o>t?o+e.length:o}else i.append(e);for(let c=0;c<d.length;c+=1)i.append(d[c]);r.recalcSlides(),n.loop&&r.loopCreate(),(!n.observer||r.isElement)&&r.update(),n.loop?r.slideTo(a+r.loopedSlides,0,!1):r.slideTo(a,0,!1)}function If(t){const e=this,{params:r,activeIndex:n}=e;let s=n;r.loop&&(s-=e.loopedSlides,e.loopDestroy());let i=s,o;if(typeof t=="object"&&"length"in t){for(let l=0;l<t.length;l+=1)o=t[l],e.slides[o]&&e.slides[o].remove(),o<i&&(i-=1);i=Math.max(i,0)}else o=t,e.slides[o]&&e.slides[o].remove(),o<i&&(i-=1),i=Math.max(i,0);e.recalcSlides(),r.loop&&e.loopCreate(),(!r.observer||e.isElement)&&e.update(),r.loop?e.slideTo(i+e.loopedSlides,0,!1):e.slideTo(i,0,!1)}function Lf(){const t=this,e=[];for(let r=0;r<t.slides.length;r+=1)e.push(r);t.removeSlide(e)}function Rf(t){let{swiper:e}=t;Object.assign(e,{appendSlide:Cf.bind(e),prependSlide:$f.bind(e),addSlide:Mf.bind(e),removeSlide:If.bind(e),removeAllSlides:Lf.bind(e)})}function dt(t){const{effect:e,swiper:r,on:n,setTranslate:s,setTransition:i,overwriteParams:o,perspective:l,recreateShadows:a,getEffectParams:d}=t;n("beforeInit",()=>{if(r.params.effect!==e)return;r.classNames.push(`${r.params.containerModifierClass}${e}`),l&&l()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const u=o?o():{};Object.assign(r.params,u),Object.assign(r.originalParams,u)}),n("setTranslate",()=>{r.params.effect===e&&s()}),n("setTransition",(u,f)=>{r.params.effect===e&&i(f)}),n("transitionEnd",()=>{if(r.params.effect===e&&a){if(!d||!d().slideShadows)return;r.slides.forEach(u=>{u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),a()}});let c;n("virtualUpdate",()=>{r.params.effect===e&&(r.slides.length||(c=!0),requestAnimationFrame(()=>{c&&r.slides&&r.slides.length&&(s(),c=!1)}))})}function Et(t,e){const r=We(e);return r!==e&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function fr(t){let{swiper:e,duration:r,transformElements:n,allSlides:s}=t;const{activeIndex:i}=e,o=l=>l.parentElement?l.parentElement:e.slides.filter(d=>d.shadowRoot&&d.shadowRoot===l.parentNode)[0];if(e.params.virtualTranslate&&r!==0){let l=!1,a;s?a=n:a=n.filter(d=>{const c=d.classList.contains("swiper-slide-transform")?o(d):d;return e.getSlideIndex(c)===i}),a.forEach(d=>{bt(d,()=>{if(l||!e||e.destroyed)return;l=!0,e.animating=!1;const c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(c)})})}}function Of(t){let{swiper:e,extendParams:r,on:n}=t;r({fadeEffect:{crossFade:!1}}),dt({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:o}=e,l=e.params.fadeEffect;for(let a=0;a<o.length;a+=1){const d=e.slides[a];let u=-d.swiperSlideOffset;e.params.virtualTranslate||(u-=e.translate);let f=0;e.isHorizontal()||(f=u,u=0);const h=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(d.progress),0):1+Math.min(Math.max(d.progress,-1),0),v=Et(l,d);v.style.opacity=h,v.style.transform=`translate3d(${u}px, ${f}px, 0px)`}},setTransition:o=>{const l=e.slides.map(a=>We(a));l.forEach(a=>{a.style.transitionDuration=`${o}ms`}),fr({swiper:e,duration:o,transformElements:l,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Df(t){let{swiper:e,extendParams:r,on:n}=t;r({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(a,d,c)=>{let u=c?a.querySelector(".swiper-slide-shadow-left"):a.querySelector(".swiper-slide-shadow-top"),f=c?a.querySelector(".swiper-slide-shadow-right"):a.querySelector(".swiper-slide-shadow-bottom");u||(u=he("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),a.append(u)),f||(f=he("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),a.append(f)),u&&(u.style.opacity=Math.max(-d,0)),f&&(f.style.opacity=Math.max(d,0))};dt({effect:"cube",swiper:e,on:n,setTranslate:()=>{const{el:a,wrapperEl:d,slides:c,width:u,height:f,rtlTranslate:h,size:v,browser:m}=e,g=e.params.cubeEffect,p=e.isHorizontal(),x=e.virtual&&e.params.virtual.enabled;let w=0,T;g.shadow&&(p?(T=e.wrapperEl.querySelector(".swiper-cube-shadow"),T||(T=he("div","swiper-cube-shadow"),e.wrapperEl.append(T)),T.style.height=`${u}px`):(T=a.querySelector(".swiper-cube-shadow"),T||(T=he("div","swiper-cube-shadow"),a.append(T))));for(let M=0;M<c.length;M+=1){const A=c[M];let S=M;x&&(S=parseInt(A.getAttribute("data-swiper-slide-index"),10));let C=S*90,P=Math.floor(C/360);h&&(C=-C,P=Math.floor(-C/360));const $=Math.max(Math.min(A.progress,1),-1);let L=0,y=0,E=0;S%4===0?(L=-P*4*v,E=0):(S-1)%4===0?(L=0,E=-P*4*v):(S-2)%4===0?(L=v+P*4*v,E=v):(S-3)%4===0&&(L=-v,E=3*v+v*4*P),h&&(L=-L),p||(y=L,L=0);const D=`rotateX(${p?0:-C}deg) rotateY(${p?C:0}deg) translate3d(${L}px, ${y}px, ${E}px)`;$<=1&&$>-1&&(w=S*90+$*90,h&&(w=-S*90-$*90),e.browser&&e.browser.need3dFix&&Math.abs(w)/90%2===1&&(w+=.001)),A.style.transform=D,g.slideShadows&&s(A,$,p)}if(d.style.transformOrigin=`50% 50% -${v/2}px`,d.style["-webkit-transform-origin"]=`50% 50% -${v/2}px`,g.shadow)if(p)T.style.transform=`translate3d(0px, ${u/2+g.shadowOffset}px, ${-u/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${g.shadowScale})`;else{const M=Math.abs(w)-Math.floor(Math.abs(w)/90)*90,A=1.5-(Math.sin(M*2*Math.PI/360)/2+Math.cos(M*2*Math.PI/360)/2),S=g.shadowScale,C=g.shadowScale/A,P=g.shadowOffset;T.style.transform=`scale3d(${S}, 1, ${C}) translate3d(0px, ${f/2+P}px, ${-f/2/C}px) rotateX(-89.99deg)`}const I=(m.isSafari||m.isWebView)&&m.needPerspectiveFix?-v/2:0;d.style.transform=`translate3d(0px,0,${I}px) rotateX(${e.isHorizontal()?0:w}deg) rotateY(${e.isHorizontal()?-w:0}deg)`,d.style.setProperty("--swiper-cube-translate-z",`${I}px`)},setTransition:a=>{const{el:d,slides:c}=e;if(c.forEach(u=>{u.style.transitionDuration=`${a}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${a}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const u=d.querySelector(".swiper-cube-shadow");u&&(u.style.transitionDuration=`${a}ms`)}},recreateShadows:()=>{const a=e.isHorizontal();e.slides.forEach(d=>{const c=Math.max(Math.min(d.progress,1),-1);s(d,c,a)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function ot(t,e,r){const n=`swiper-slide-shadow${r?`-${r}`:""}${t?` swiper-slide-shadow-${t}`:""}`,s=We(e);let i=s.querySelector(`.${n.split(" ").join(".")}`);return i||(i=he("div",n.split(" ")),s.append(i)),i}function Af(t){let{swiper:e,extendParams:r,on:n}=t;r({flipEffect:{slideShadows:!0,limitRotation:!0}});const s=(a,d)=>{let c=e.isHorizontal()?a.querySelector(".swiper-slide-shadow-left"):a.querySelector(".swiper-slide-shadow-top"),u=e.isHorizontal()?a.querySelector(".swiper-slide-shadow-right"):a.querySelector(".swiper-slide-shadow-bottom");c||(c=ot("flip",a,e.isHorizontal()?"left":"top")),u||(u=ot("flip",a,e.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-d,0)),u&&(u.style.opacity=Math.max(d,0))};dt({effect:"flip",swiper:e,on:n,setTranslate:()=>{const{slides:a,rtlTranslate:d}=e,c=e.params.flipEffect;for(let u=0;u<a.length;u+=1){const f=a[u];let h=f.progress;e.params.flipEffect.limitRotation&&(h=Math.max(Math.min(f.progress,1),-1));const v=f.swiperSlideOffset;let g=-180*h,p=0,x=e.params.cssMode?-v-e.translate:-v,w=0;e.isHorizontal()?d&&(g=-g):(w=x,x=0,p=-g,g=0),e.browser&&e.browser.need3dFix&&(Math.abs(g)/90%2===1&&(g+=.001),Math.abs(p)/90%2===1&&(p+=.001)),f.style.zIndex=-Math.abs(Math.round(h))+a.length,c.slideShadows&&s(f,h);const T=`translate3d(${x}px, ${w}px, 0px) rotateX(${p}deg) rotateY(${g}deg)`,I=Et(c,f);I.style.transform=T}},setTransition:a=>{const d=e.slides.map(c=>We(c));d.forEach(c=>{c.style.transitionDuration=`${a}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${a}ms`})}),fr({swiper:e,duration:a,transformElements:d})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(a=>{let d=a.progress;e.params.flipEffect.limitRotation&&(d=Math.max(Math.min(a.progress,1),-1)),s(a,d)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function jf(t){let{swiper:e,extendParams:r,on:n}=t;r({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),dt({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:o,height:l,slides:a,slidesSizesGrid:d}=e,c=e.params.coverflowEffect,u=e.isHorizontal(),f=e.translate,h=u?-f+o/2:-f+l/2,v=u?c.rotate:-c.rotate,m=c.depth;for(let g=0,p=a.length;g<p;g+=1){const x=a[g],w=d[g],T=x.swiperSlideOffset,I=(h-T-w/2)/w,M=typeof c.modifier=="function"?c.modifier(I):I*c.modifier;let A=u?v*M:0,S=u?0:v*M,C=-m*Math.abs(M),P=c.stretch;typeof P=="string"&&P.indexOf("%")!==-1&&(P=parseFloat(c.stretch)/100*w);let $=u?0:P*M,L=u?P*M:0,y=1-(1-c.scale)*Math.abs(M);Math.abs(L)<.001&&(L=0),Math.abs($)<.001&&($=0),Math.abs(C)<.001&&(C=0),Math.abs(A)<.001&&(A=0),Math.abs(S)<.001&&(S=0),Math.abs(y)<.001&&(y=0),e.browser&&e.browser.need3dFix&&(Math.abs(A)/90%2===1&&(A+=.001),Math.abs(S)/90%2===1&&(S+=.001));const E=`translate3d(${L}px,${$}px,${C}px) rotateX(${S}deg) rotateY(${A}deg) scale(${y})`,D=Et(c,x);if(D.style.transform=E,x.style.zIndex=-Math.abs(Math.round(M))+1,c.slideShadows){let N=u?x.querySelector(".swiper-slide-shadow-left"):x.querySelector(".swiper-slide-shadow-top"),O=u?x.querySelector(".swiper-slide-shadow-right"):x.querySelector(".swiper-slide-shadow-bottom");N||(N=ot("coverflow",x,u?"left":"top")),O||(O=ot("coverflow",x,u?"right":"bottom")),N&&(N.style.opacity=M>0?M:0),O&&(O.style.opacity=-M>0?-M:0)}}},setTransition:o=>{e.slides.map(a=>We(a)).forEach(a=>{a.style.transitionDuration=`${o}ms`,a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${o}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function _f(t){let{swiper:e,extendParams:r,on:n}=t;r({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=l=>typeof l=="string"?l:`${l}px`;dt({effect:"creative",swiper:e,on:n,setTranslate:()=>{const{slides:l,wrapperEl:a,slidesSizesGrid:d}=e,c=e.params.creativeEffect,{progressMultiplier:u}=c,f=e.params.centeredSlides;if(f){const h=d[0]/2-e.params.slidesOffsetBefore||0;a.style.transform=`translateX(calc(50% - ${h}px))`}for(let h=0;h<l.length;h+=1){const v=l[h],m=v.progress,g=Math.min(Math.max(v.progress,-c.limitProgress),c.limitProgress);let p=g;f||(p=Math.min(Math.max(v.originalProgress,-c.limitProgress),c.limitProgress));const x=v.swiperSlideOffset,w=[e.params.cssMode?-x-e.translate:-x,0,0],T=[0,0,0];let I=!1;e.isHorizontal()||(w[1]=w[0],w[0]=0);let M={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};g<0?(M=c.next,I=!0):g>0&&(M=c.prev,I=!0),w.forEach((y,E)=>{w[E]=`calc(${y}px + (${s(M.translate[E])} * ${Math.abs(g*u)}))`}),T.forEach((y,E)=>{let D=M.rotate[E]*Math.abs(g*u);e.browser&&e.browser.need3dFix&&Math.abs(D)/90%2===1&&(D+=.001),T[E]=D}),v.style.zIndex=-Math.abs(Math.round(m))+l.length;const A=w.join(", "),S=`rotateX(${T[0]}deg) rotateY(${T[1]}deg) rotateZ(${T[2]}deg)`,C=p<0?`scale(${1+(1-M.scale)*p*u})`:`scale(${1-(1-M.scale)*p*u})`,P=p<0?1+(1-M.opacity)*p*u:1-(1-M.opacity)*p*u,$=`translate3d(${A}) ${S} ${C}`;if(I&&M.shadow||!I){let y=v.querySelector(".swiper-slide-shadow");if(!y&&M.shadow&&(y=ot("creative",v)),y){const E=c.shadowPerProgress?g*(1/c.limitProgress):g;y.style.opacity=Math.min(Math.max(Math.abs(E),0),1)}}const L=Et(c,v);L.style.transform=$,L.style.opacity=P,M.origin&&(L.style.transformOrigin=M.origin)}},setTransition:l=>{const a=e.slides.map(d=>We(d));a.forEach(d=>{d.style.transitionDuration=`${l}ms`,d.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${l}ms`})}),fr({swiper:e,duration:l,transformElements:a,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function kf(t){let{swiper:e,extendParams:r,on:n}=t;r({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),dt({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:o,activeIndex:l,rtlTranslate:a}=e,d=e.params.cardsEffect,{startTranslate:c,isTouched:u}=e.touchEventsData,f=a?-e.translate:e.translate;for(let h=0;h<o.length;h+=1){const v=o[h],m=v.progress,g=Math.min(Math.max(m,-4),4);let p=v.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(p-=o[0].swiperSlideOffset);let x=e.params.cssMode?-p-e.translate:-p,w=0;const T=-100*Math.abs(g);let I=1,M=-d.perSlideRotate*g,A=d.perSlideOffset-Math.abs(g)*.75;const S=e.virtual&&e.params.virtual.enabled?e.virtual.from+h:h,C=(S===l||S===l-1)&&g>0&&g<1&&(u||e.params.cssMode)&&f<c,P=(S===l||S===l+1)&&g<0&&g>-1&&(u||e.params.cssMode)&&f>c;if(C||P){const E=(1-Math.abs((Math.abs(g)-.5)/.5))**.5;M+=-28*g*E,I+=-.5*E,A+=96*E,w=`${-25*E*Math.abs(g)}%`}if(g<0?x=`calc(${x}px ${a?"-":"+"} (${A*Math.abs(g)}%))`:g>0?x=`calc(${x}px ${a?"-":"+"} (-${A*Math.abs(g)}%))`:x=`${x}px`,!e.isHorizontal()){const E=w;w=x,x=E}const $=g<0?`${1+(1-I)*g}`:`${1-(1-I)*g}`,L=`
|
package/index.mjs
CHANGED