@egen-civitas/esm-app-shell 2.2.1 → 2.2.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/CHANGELOG.md +8 -0
- package/dist/{86ca4f4caca86a05.js → 367e3af36b41841f.js} +2 -2
- package/dist/{86ca4f4caca86a05.js.map → 367e3af36b41841f.js.map} +1 -1
- package/dist/{d20b47d5f87c54b6.js → 9d25bdf467baf700.js} +1 -1
- package/dist/{d20b47d5f87c54b6.js.map → 9d25bdf467baf700.js.map} +1 -1
- package/dist/{c46f170c8ebb1360.js → a1f287bd3a0826b3.js} +1 -1
- package/dist/{c46f170c8ebb1360.js.map → a1f287bd3a0826b3.js.map} +1 -1
- package/dist/cb1851de5122c020.js +1 -0
- package/dist/cb1851de5122c020.js.map +1 -0
- package/dist/{egen.cdebc7903958714f.css → egen.48f6925521df980d.css} +1 -1
- package/dist/{egen.391245b5b7dbd6d2.js → egen.e7509227d59647cb.js} +2 -2
- package/dist/{egen.391245b5b7dbd6d2.js.map → egen.e7509227d59647cb.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/489c8eee38a78ed4.js +0 -1
- package/dist/489c8eee38a78ed4.js.map +0 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* {
|
|
10
10
|
overscroll-behavior: contain;
|
|
11
11
|
}
|
|
12
|
-
}`.trim(),document.head.prepend(r),o=HTMLElement.prototype.focus,Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=((e=document)=>e.activeElement)(),n=null!=t&&sr(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||so(this,n)}}),s=tF(nx(document,"touchstart",t=>{let r=nE(t);e=aL(r)?r:a_(r,!0),n=!1;let a=r.ownerDocument.defaultView.getSelection();a&&!a.isCollapsed&&a.containsNode(r,!0)&&(n=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(n=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},{passive:!1,capture:!0}),nx(document,"touchmove",t=>{if(2!==t.touches.length&&!n){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),nx(document,"blur",e=>{let t=nE(e),n=e.relatedTarget;if(n&&sr(n))n.focus({preventScroll:!0}),so(n,sr(t));else if(!n){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),s(),r.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:o})}):tF((l=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?nS(document.documentElement,"scrollbar-gutter","stable"):nS(document.documentElement,"padding-right",`${l}px`)),nS(document.documentElement,"overflow","hidden"))),()=>{0==--si&&a()}}},[t])}({isDisabled:o||!t.isOpen}),(0,h.useEffect)(()=>{if(t.isOpen&&r.current)if(o){var e,n,a=i?.current??r.current;let t=oU[oU.length-1];return t&&!t.visibleNodes.has(a)?(t.visibleNodes.add(a),()=>{t.visibleNodes.delete(a)}):void 0}else{let t,a,o,s,l,u,c,d,f,p,m;return e=[i?.current??r.current],a=(n={shouldUseInert:!0})instanceof(t=nb(e?.[0])).Element?{root:n}:n,o=a?.root??document.body,s=a?.shouldUseInert&&oB,l=new Set(e),u=new Set,c=(e,n)=>{s&&e instanceof t.HTMLElement?e.inert=n:n?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(nj(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=ib(nv(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)f(e),e=n.nextNode()}},f=e=>{let n=oz.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===n||(0===n&&c(e,!0),u.add(e),oz.set(e,n+1))},oU.length&&oU[oU.length-1].disconnect(),d(o),(p=new MutationObserver(e=>{for(let n of e)if("childList"===n.type&&n.target.isConnected&&![...l,...u].some(e=>nj(e,n.target)))for(let e of n.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(o,{childList:!0,subtree:!0}),m={visibleNodes:l,hiddenNodes:u,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},oU.push(m),()=>{for(let e of(p.disconnect(),u)){let t=oz.get(e);null!=t&&(1===t?(c(e,!1),oz.delete(e)):oz.set(e,t-1))}m===oU[oU.length-1]?(oU.pop(),oU.length&&oU[oU.length-1].observe()):oU.splice(oU.indexOf(m),1)}}},[o,t.isOpen,r,i]);let{focusWithinProps:v}=rH(e);return{popoverProps:t3(d,p,v),arrowProps:m,underlayProps:f,placement:y,triggerAnchorPoint:g}}({...i,offset:i.offset??8,arrowRef:o,groupRef:u?l:s},e),g=i.popoverRef,v=function(e,t=!0){let[n,r]=(0,h.useState)(!0),a=n&&t;return tV(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),sd(e,a,(0,h.useCallback)(()=>r(!1),[])),a}(g,!!p),b=i.isEntering||!i.shouldSkipAnimation&&v||!1,w=t8({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:p,isEntering:b,isExiting:t}}),x=!i.isNonModal||"SubmenuTrigger"===i.trigger||"PreviewTrigger"===i.trigger,[S,j]=(0,h.useState)("PreviewTrigger"===i.trigger);tV(()=>{g.current&&j(x&&!g.current.querySelector("[role=dialog]"))},[g,x]),(0,h.useEffect)(()=>{S&&"PreviewTrigger"!==i.trigger&&("SubmenuTrigger"!==i.trigger||"pointer"!==nQ)&&g.current&&!nk(g.current)&&rl(g.current)},[S,g,i.trigger]);let E=(0,h.useMemo)(()=>{let e=w.children;if(r)for(let t of r)e=y().createElement(t.Provider,{value:null},e);return e},[w.children,r]),[O,k]=(0,h.useState)(null),D=(0,h.useCallback)(()=>{i.triggerRef.current&&k(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);tV(D,[D]),o9({ref:w.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:D});let P={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||O},A=y().createElement(na.div,{...t3(nh(i,{global:!0}),c),...w,id:S?i.id:void 0,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:g,slot:i.slot||void 0,style:P,dir:i.dir,"data-trigger":i.trigger,"data-placement":p,"data-entering":b||void 0,"data-exiting":t||void 0},!i.isNonModal&&y().createElement(su,{onDismiss:e.close}),y().createElement(oV.Provider,{value:{...f,placement:p,ref:o}},E),y().createElement(su,{onDismiss:e.close}));return u?y().createElement(oO,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:n??l?.current??void 0},A):y().createElement(oO,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&y().createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),y().createElement("div",{ref:s,style:{display:"contents"}},y().createElement(sp.Provider,{value:s},A)))}function sy(e){return e?.start!=null&&null!=e.end}let sg=(0,h.createContext)(null),sv=(0,h.createContext)(null),sb=(0,h.createContext)(null),sw=(0,h.createContext)(null),sx=[ih,rQ,o_,r2],sS=(0,h.forwardRef)(function(e,t){[e,t]=t7(e,t,sg);let{validationBehavior:n}=t9(oN)||{},r=e.validationBehavior??n??"native",a=function(e){let t=sc(e),[n,r]=a1(e.value,e.defaultValue||null,e.onChange),[a]=(0,h.useState)(n),i=n||e.placeholderValue||null,[o,s]=oo(i,e.granularity),l=null!=n?n.toDate(s??"UTC"):null,u="hour"===o||"minute"===o||"second"===o,c=e.shouldCloseOnSelect??!0,[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(null);if(n&&(d=n,"hour"in n&&(p=n)),i&&!(o in i))throw Error("Invalid granularity "+o+" for value "+i.toString());let y=n?.calendar.identifier==="gregory"&&"BC"===n.era,g=(0,h.useMemo)(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:y}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,y]),{minValue:v,maxValue:b,isDateUnavailable:w}=e,x=(0,h.useMemo)(()=>oe(n,v,b,w,g),[n,v,b,w,g]),S=i2({...e,value:n,builtinValidation:x}),j=S.displayValidation.isInvalid,E=e.validationState||(j?"invalid":null),O=(e,t)=>{r("timeZone"in t?t.set((0,aG.gw)(e)):(0,aG.tR)(e,t)),f(null),m(null),S.commitValidation()};return{...S,value:n,defaultValue:e.defaultValue??a,setValue:r,dateValue:d,timeValue:p,setDateValue:n=>{let a="function"==typeof c?c():c;u?p||a?O(n,p||oa(e.defaultValue||e.placeholderValue)):f(n):(r(n),S.commitValidation()),a&&t.setOpen(!1)},setTimeValue:e=>{d&&e?O(d,e):m(e)},granularity:o,hasTime:u,...t,setOpen(r){!r&&!n&&d&&u&&O(d,p||oa(e.defaultValue||e.placeholderValue)),t.setOpen(r)},validationState:E,isInvalid:j,formatValue:(e,t)=>l?new ad(e,or(t,g)).format(l):"",getDateFormatter:(e,t)=>new ad(e,or({},{...g,...t}))}}({...e,validationBehavior:r}),i=(0,h.useRef)(null),[o,s]=ne(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,fieldProps:c,buttonProps:d,dialogProps:f,calendarProps:p,descriptionProps:m,errorMessageProps:g,...v}=function(e,t,n){var r;let a=tQ(),i=tQ(),o=tQ(),s=ak((r=iB)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:m}=iW({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),y=iz(t,n),g=f["aria-labelledby"]||f.id,{locale:v}=au(),b=t.formatValue(v,{month:"long"}),w=aW(b?s.format("selectedDateDescription",{date:b}):""),x=[w["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=nh(e),j=(0,h.useMemo)(()=>iI(n),[n]),E=(0,h.useRef)(!1),{focusWithinProps:O}=rH({...e,isDisabled:t.isOpen,onBlurWithin:t=>{nj(document.getElementById(i),t.relatedTarget)||(E.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{E.current||(E.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:t3(S,y,f,w,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":x,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...d,onClick:()=>{j.focusFirst()}},fieldProps:{...f,id:o,[iq]:"presentation","aria-describedby":x,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[i1]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:m,buttonProps:{...w,id:a,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${a} ${g}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${a} ${g}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...nt(e),label:s,validationBehavior:r},a,i),{focusProps:b,isFocused:w,isFocusVisible:x}=rG({within:!0}),S=t8({...e,values:{state:a,isFocusWithin:w,isFocusVisible:x,isDisabled:e.isDisabled||!1,isInvalid:a.isInvalid,isOpen:a.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),j=nh(e,{global:!0});return delete j.id,y().createElement(t6,{values:[[sb,a],[ih,{...l,ref:i,isInvalid:a.isInvalid}],[oy,c],[rQ,{...d,isPressed:a.isOpen}],[o_,{...u,ref:o,elementType:"span"}],[it,p],[oD,a],[sf,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",clearContexts:sx}],[ok,f],[r2,{slots:{description:m,errorMessage:g}}],[oA,v]]},y().createElement(na.div,{...t3(j,S,b),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":a.isInvalid||void 0,"data-focus-visible":x||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":a.isOpen||void 0}),y().createElement(oL,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:a}))}),sj=(0,h.forwardRef)(function(e,t){[e,t]=t7(e,t,sv);let{validationBehavior:n}=t9(oN)||{},r=e.validationBehavior??n??"native",a=function(e){let t=sc(e),[n,r]=a1(e.value,e.defaultValue||null,e.onChange),[a]=(0,h.useState)(n),[i,o]=(0,h.useState)(()=>n||{start:null,end:null});null==n&&i.start&&i.end&&o(i={start:null,end:null});let s=n||i,l=e=>{o(s=e||{start:null,end:null}),sy(s)?r(s):r(null)},[u,c]=oo(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,f=e.shouldCloseOnSelect??!0,[p,m]=(0,h.useState)(null),[y,g]=(0,h.useState)(null);s&&sy(s)&&(p=s,"hour"in s.start&&(y=s));let v=(e,t)=>{l({start:"timeZone"in t.start?t.start.set((0,aG.gw)(e.start)):(0,aG.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,aG.gw)(e.end)):(0,aG.tR)(e.end,t.end)}),m(null),g(null),D.commitValidation()},b=n=>{let r="function"==typeof f?f():f;d?sy(n)&&(r||y?.start&&y?.end)?v(n,{start:y?.start||oa(e.placeholderValue),end:y?.end||oa(e.placeholderValue)}):m(n):sy(n)?(l(n),D.commitValidation()):m(n),r&&t.setOpen(!1)},w=e=>{sy(p)&&sy(e)?v(p,e):g(e)},x=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,S=(0,h.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,x]),{minValue:j,maxValue:E,isDateUnavailable:O}=e,k=(0,h.useMemo)(()=>{var e,t;let n;return e=s,t=O?e=>O(e,null):void 0,n=i6(oe(e?.start??null,j,E,t,S),oe(e?.end??null,j,E,t,S)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(n=i6(n,{isInvalid:!0,validationErrors:[(aw.getGlobalDictionaryForPackage("@react-stately/datepicker")||i9).getStringForLocale("rangeReversed",i7())],validationDetails:{...iX,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),n},[s,j,E,O,S]),D=i2({...e,value:n,name:(0,h.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:k}),P=D.displayValidation.isInvalid,A=e.validationState||(P?"invalid":null);return{...D,value:s,defaultValue:e.defaultValue??a,setValue:l,dateRange:p,timeRange:y,granularity:u,hasTime:d,setDate(e,t){"start"===e?b({start:t,end:p?.end??null}):b({start:p?.start??null,end:t})},setTime(e,t){"start"===e?w({start:t,end:y?.end??null}):w({start:y?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:b,setTimeRange:w,...t,setOpen(n){!n&&!(s?.start&&s?.end)&&sy(p)&&d&&v(p,{start:y?.start||oa(e.placeholderValue),end:y?.end||oa(e.placeholderValue)}),t.setOpen(n)},validationState:A,isInvalid:P,formatValue(t,n){let r;if(!s||!s.start||!s.end)return null;let a="timeZone"in s.start?s.start.timeZone:void 0,i=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),o="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=or(n,{granularity:i,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(a||"UTC"),d=s.end.toDate(o||"UTC"),f=new ad(t,u);if(a===o&&i===l&&0!==s.start.compare(s.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let a=0;a<e.length;a++)a<t?n+=e[a].value:a>t&&(r+=e[a].value);return{start:n,end:r}}catch{}r=f}else r=new ad(t,or(n,{granularity:l,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:r.format(d)}},getDateFormatter:(e,t)=>new ad(e,or({},{...S,...t}))}}({...e,validationBehavior:r}),i=(0,h.useRef)(null),[o,s]=ne(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,startFieldProps:c,endFieldProps:d,buttonProps:f,dialogProps:p,calendarProps:m,descriptionProps:g,errorMessageProps:v,...b}=function(e,t,n){var r;let a=ak((r=iB)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=iW({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),f=u["aria-labelledby"]||u.id,{locale:p}=au(),m=t.formatValue(p,{month:"long"}),y=aW(m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):""),g={"aria-label":a.format("startDate"),"aria-labelledby":f},v={"aria-label":a.format("endDate"),"aria-labelledby":f},b=tQ(),w=tQ(),x=iz(t,n),S=[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=(0,h.useMemo)(()=>iI(n,{accept:e=>e.id!==b}),[n,b]),E={[iY]:j,[iq]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},O=nh(e),k=(0,h.useRef)(!1),{focusWithinProps:D}=rH({...e,isDisabled:t.isOpen,onBlurWithin:t=>{nj(document.getElementById(w),t.relatedTarget)||(k.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{k.current||(k.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),P=(0,h.useRef)(iJ),A=(0,h.useRef)(iJ);return{groupProps:t3(O,x,u,y,D,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...l,onClick:()=>{j.focusFirst()}},buttonProps:{...y,id:b,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${b} ${f}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${f}`},startFieldProps:{...g,...E,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[i1]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){P.current=e,t.updateValidation(i6(e,A.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...v,...E,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[i1]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){A.current=e,t.updateValidation(i6(P.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:i,validationErrors:o,validationDetails:s}}({...nt(e),label:s,validationBehavior:r},a,i),{focusProps:w,isFocused:x,isFocusVisible:S}=rG({within:!0}),j=t8({...e,values:{state:a,isFocusWithin:x,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:a.isInvalid,isOpen:a.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),E=nh(e,{global:!0});return delete E.id,y().createElement(t6,{values:[[sw,a],[ih,{...l,ref:i,isInvalid:a.isInvalid}],[rQ,{...f,isPressed:a.isOpen}],[o_,{...u,ref:o,elementType:"span"}],[ir,m],[oD,a],[sf,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",clearContexts:sx}],[ok,p],[oy,{slots:{start:c,end:d}}],[r2,{slots:{description:g,errorMessage:v}}],[oA,b]]},y().createElement(na.div,{...t3(E,j,w),ref:t,slot:e.slot||void 0,"data-focus-within":x||void 0,"data-invalid":a.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":a.isOpen||void 0}))});function sE(e){return y().createElement(al,e)}var sO=n(5350),sk=n.n(sO);function sD(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function sP(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return n?e:void 0;if("string"==typeof e&&!e)return n?null:void 0;if(sD(e,i8.ng)||sD(e,i8._l)||sD(e,i8.Ip))return t?(0,aG.yP)(e,t):e;var r=sk()(e).toDate(),a=new i8.ng(r.getFullYear(),r.getMonth()+1,r.getDate());return t?(0,aG.yP)(a,t):a}function sA(e){if(e)return e.toDate((0,aD.Xj)())}var sC=n(1851),sT=n(3903);function sN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sR(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var sM=(0,h.createContext)(null);function sI(){var e=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,h.useMemo)(function(){var t=(0,sC.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),n=(0,h.useMemo)(function(){var e=(0,sT.a7)(t);return void 0!==e?(0,aH.d)(e):void 0},[t]),r=(0,h.useMemo)(function(){return new Intl.Locale(t,{calendar:null==n?void 0:n.identifier})},[t,n]),a=(0,h.useMemo)(function(){return n?(0,aG.yP)((0,aD.Ec)((0,aD.Xj)()),n):(0,aD.Ec)((0,aD.Xj)())},[n]);return{calendar:n,intlLocale:r,today_:a}}var sL=new i8.ng(1793,1,1),s_=function(e){var t=e.className,n=e.size,r=void 0===n?16:n;return(0,m.jsx)("svg",{className:t,width:r,height:r,viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",focusable:"false",children:(0,m.jsx)("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,23.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S16.8,23.5,16,23.5z"})})},sF={};function sV(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function sB(e={}){let{locale:t}=au();return(0,h.useMemo)(()=>new(0,od.K)(t,e),[t,e])}sF={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var sz={};sz={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let sU=()=>{};function sW(e){var t;let n=(0,h.useRef)(void 0),{value:r,textValue:a,minValue:i,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:y}=e,g=ak((t=sz)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),v=(0,h.useRef)(!1),b=(0,h.useCallback)(()=>{clearTimeout(n.current),v.current=!1},[]),w=rP(()=>{b()});(0,h.useEffect)(()=>()=>w(),[]);let{keyboardProps:x}=ry({isDisabled:s||l,shortcuts:{PageUp:()=>d?void d():!!c&&void c(),ArrowUp:()=>!!c&&void c(),PageDown:()=>p?void p():!!f&&void f(),ArrowDown:()=>!!f&&void f(),Home:()=>!!m&&void m(),End:()=>!!y&&void y()},allowRepeats:!0}),S=(0,h.useRef)(!1),j=()=>{S.current=!0},E=()=>{S.current=!1},O=""===a?g.format("Empty"):(a||`${r}`).replace("-","−");(0,h.useEffect)(()=>{S.current&&(no&&no.clear("assertive"),ns(O,"assertive"))},[O]);let k=(0,h.useCallback)(()=>{b()},[b]),D=rP(c??sU),P=rP(f??sU),A=rP(()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r<o)&&(D(),C(60))}),C=rP(e=>{w(),v.current=!0,n.current=window.setTimeout(A,e)}),T=rP(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r>i)&&(P(),N(60))}),N=rP(e=>{w(),v.current=!0,n.current=window.setTimeout(T,e)}),R=e=>{e.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:I}=rA(),L=(0,h.useRef)(!1),[_,F]=(0,h.useState)(null);(0,h.useEffect)(()=>{"touch"===_?C(600):_?C(400):_||w()},[_]);let[V,B]=(0,h.useState)(null);return(0,h.useEffect)(()=>{"touch"===V?N(600):V?N(400):V||w()},[V]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":O,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,...x,onFocus:j,onBlur:E},incrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(c?.(),F("mouse")):(M(window,"pointercancel",k,{capture:!0}),L.current=!1,F("touch")),M(window,"contextmenu",R)},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),I(),F(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&c?.(),L.current=!1,F(null)},onFocus:j,onBlur:E},decrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(f?.(),B("mouse")):(M(window,"pointercancel",k,{capture:!0}),L.current=!1,B("touch"))},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),I(),B(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&f?.(),L.current=!1,B(null)},onFocus:j,onBlur:E}}}let s$=null;var sH=n(4264);function sG(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){let a=t.toString().split("."),i=n.toString().split("."),o=Math.pow(10,Math.max(a[1]&&a[1].length||0,i[1]&&i[1].length||0));t=Math.round(t*o),n=Math.round(n*o),r=("+"===e?t+n:t-n)/o}return r}let sq=(0,h.createContext)(null),sY=(0,h.createContext)(null),sK=(0,h.forwardRef)(function(e,t){[e,t]=t7(e,t,sq);let{validationBehavior:n}=t9(oN)||{},r=e.validationBehavior??n??"native",{locale:a}=au(),i=function(e){let{minValue:t,maxValue:n,step:r,formatOptions:a,value:i,defaultValue:o=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===i&&(i=NaN);let f=(0,h.useCallback)(e=>void 0===r||isNaN(r)?oW(e,t,n):oH(e,t,n,r),[r,t,n]);void 0===i||isNaN(i)||"snap"!==d||(i=f(i)),isNaN(o)||"snap"!==d||(o=f(o));let[p,m]=a1(i,isNaN(o)?NaN:o,s),[y]=(0,h.useState)(p),[g,v]=(0,h.useState)(()=>isNaN(p)?"":new(0,od.K)(l,a).format(p)),b=(0,h.useMemo)(()=>new(0,sH.d)(l,a),[l,a]),w=(0,h.useMemo)(()=>b.getNumberingSystem(g),[b,g]),x=(0,h.useMemo)(()=>new(0,od.K)(l,{...a,numberingSystem:w}),[l,a,w]),S=(0,h.useMemo)(()=>x.resolvedOptions(),[x]),j=(0,h.useCallback)(e=>isNaN(e)||null===e?"":x.format(e),[x]),E=i2({...e,value:p}),O=void 0===r||isNaN(r)?1:r;"percent"===S.style&&(void 0===r||isNaN(r))&&(O=.01);let[k,D]=(0,h.useState)(p),[P,A]=(0,h.useState)(l),[C,T]=(0,h.useState)(a);Object.is(p,k)&&l===P&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}(a,C)||(v(j(p)),D(p),A(l),T(a));let N=(0,h.useMemo)(()=>b.parse(g),[b,g]),R=(e,r=0)=>{if(isNaN(N))return oH(isNaN(r)?0:r,t,n,O);{let r=oH(N,t,n,O);return"+"===e&&r>N||"-"===e&&r<N?r:oH(sG(e,N,O),t,n,O)}},M=(0,h.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===n||isNaN(n)||oH(N,t,n,O)>N||sG("+",N,O)<=n),[u,c,t,n,O,N]),I=(0,h.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===t||isNaN(t)||oH(N,t,n,O)<N||sG("-",N,O)>=t),[u,c,t,n,O,N]);return{...E,validate:e=>b.isValidPartialNumber(e,t,n),increment:()=>{let e=R("+",t);e===p&&v(j(e)),m(e),E.commitValidation()},incrementToMax:()=>{null!=n&&(m(oH(n,t,n,O)),E.commitValidation())},decrement:()=>{let e=R("-",n);e===p&&v(j(e)),m(e),E.commitValidation()},decrementToMin:()=>{null!=t&&(m(t),E.commitValidation())},canIncrement:M,canDecrement:I,minValue:t,maxValue:n,numberValue:N,defaultNumberValue:isNaN(o)?y:o,setNumberValue:m,setInputValue:v,inputValue:g,commit:e=>{let t=void 0===e?g:e,n=N;if(void 0!==e&&(n=b.parse(t)),!t.length){m(NaN),v(void 0===i?"":j(p));return}if(isNaN(n))return void v(j(p));let r="snap"===d?f(n):n,a=(r=b.parse(j(r)))!==p;m(r),v(j(void 0===i?r:p)),a&&E.commitValidation()}}}({...e,locale:a,validationBehavior:r}),o=(0,h.useRef)(null),[s,l]=ne(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:m,errorMessageProps:g,...v}=function(e,t,n){var r,a,i,o,s,l,u,c,d;let f,{id:p,decrementAriaLabel:m,incrementAriaLabel:g,isDisabled:v,isReadOnly:b,isRequired:w,minValue:x,maxValue:S,autoFocus:j,label:E,formatOptions:O,onBlur:k=()=>{},onFocus:D,onFocusChange:P,onKeyDown:A,onKeyUp:C,description:T,errorMessage:N,isWheelDisabled:R,...M}=e,{increment:I,incrementToMax:L,decrement:_,decrementToMin:F,numberValue:V,inputValue:B,commit:z,commitValidation:U}=t,W=ak((r=sF)&&r.__esModule?r.default:r,"@react-aria/numberfield"),$=(0,h.useCallback)(()=>{let e=n.current?.value??"";(0,rC.flushSync)(()=>{z()}),n.current?.value!==e&&ns(n.current?.value??"","assertive")},[z,n]),H=tQ(p),{focusProps:G}=ru({onBlur(){$()}}),q=sB(O),Y=(0,h.useMemo)(()=>q.resolvedOptions(),[q]),K=sB({...O,currencySign:void 0}),Z=(0,h.useMemo)(()=>isNaN(V)?"":K.format(V),[K,V]),{spinButtonProps:X,incrementButtonProps:Q,decrementButtonProps:J}=sW({isDisabled:v,isReadOnly:b,isRequired:w,maxValue:S,minValue:x,onIncrement:I,onIncrementToMax:L,onDecrement:_,onDecrementToMin:F,value:V,textValue:Z}),[ee,et]=(0,h.useState)(!1),{focusWithinProps:en}=rH({isDisabled:v,onFocusWithinChange:et});!function(e,t){let{onScroll:n,isDisabled:r}=e,a=(0,h.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);a$(t,"wheel",r?void 0:a)}({onScroll:(0,h.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?I():e.deltaY<0&&_())},[_,I]),isDisabled:R||v||b||!ee},n);let er=(Y.maximumFractionDigits??0)>0,ea=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,ei="numeric";nW()?ea?ei="text":er&&(ei="decimal"):nY()&&(ea?ei="numeric":er&&(ei="decimal"));let eo=nh(e),{keyboardProps:es}=ry({isDisabled:v||b,shortcuts:{Enter:()=>((0,rC.flushSync)(()=>{z()}),U(),{shouldPreventDefault:!1})},onKeyDown:A,onKeyUp:C}),{isInvalid:el,validationErrors:eu,validationDetails:ec}=t.displayValidation,{labelProps:ed,inputProps:ef,descriptionProps:ep,errorMessageProps:em}=function(e,t,n){let r=rP(e=>{let r=n.current;if(!r)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=r.value.slice(r.selectionStart);break;default:null!=e.data&&(a=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,h.useEffect)(()=>{if(!sV()||!n.current)return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[n]);let a=sV()?null:e=>{let n=nE(e).value.slice(0,nE(e).selectionStart)+e.data+nE(e).value.slice(nE(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:i,inputProps:o,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:o="text",validationBehavior:s="aria"}=e,[l,u]=a1(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rb(e,t),d=i2({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:b,errorMessageProps:w}=iW({...e,isInvalid:f,errorMessage:e.errorMessage||p}),x=nh(e,{labelable:!0}),S={type:o,pattern:e.pattern},[j]=(0,h.useState)(l);return i$(t,e.defaultValue??j,u),iH(e,d,t),{labelProps:g,inputProps:t3(x,"input"===n?S:void 0,{disabled:r,readOnly:i,required:a&&"native"===s,"aria-required":a&&"aria"===s||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(nE(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...v}),descriptionProps:b,errorMessageProps:w,isInvalid:f,validationErrors:p,validationDetails:m}}(e,n),c=(0,h.useRef)(null);return{inputProps:t3(o,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;c.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:a}=c.current;n.current.value=e,n.current.setSelectionRange(r,a),t.setInputValue(e)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...u}}({...M,...eo,name:void 0,form:void 0,label:E,autoFocus:j,isDisabled:v,isReadOnly:b,isRequired:w,validate:void 0,[i1]:t,value:B,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:H,type:"text",inputMode:ei,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:k,onFocus:D,onFocusChange:P,onPaste:t=>{e.onPaste?.(t);let n=nE(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),z(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:T,errorMessage:N},t,n),eh=t3(es,ef);i$(n,t.defaultNumberValue,t.setNumberValue),a=t,i=e.validationBehavior,o=e.commitBehavior,s=n,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,tV(()=>{let e=s.current;if("validate"!==o||a.realtimeValidation.isInvalid||!e||e.disabled||(!s$&&"u">typeof document&&((s$=document.createElement("input")).type="number"),!s$))return;s$.min=null==l||isNaN(l)?"":String(l),s$.max=null==u||isNaN(u)?"":String(u),s$.step=null==c||isNaN(c)?"":String(c),s$.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&s$.validity.valid,n=e.validationMessage||s$.validationMessage,r={isInvalid:!t,validationErrors:n?[n]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:s$.validity.rangeOverflow,rangeUnderflow:s$.validity.rangeUnderflow,stepMismatch:s$.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};a.updateValidation(r),"native"!==i||s$.validity.valid||e.setCustomValidity(s$.validationMessage)});let ey=t3(X,G,eh,{role:null,"aria-roledescription":nH()?null:W.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ey["aria-required"]=void 0);let eg=e=>{((e=document)=>e.activeElement)()!==n.current&&("mouse"===e.pointerType?n.current?.focus():e.target.focus())},ev=e["aria-label"]||("string"==typeof e.label?e.label:"");ev||(f=null!=e.label?ed.id:e["aria-labelledby"]);let eb=tQ(),ew=tQ(),ex=t3(Q,{"aria-label":g||W.format("increase",{fieldLabel:ev}).trim(),id:f&&!g?eb:null,"aria-labelledby":f&&!g?`${eb} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:eg}),eS=t3(J,{"aria-label":m||W.format("decrease",{fieldLabel:ev}).trim(),id:f&&!m?ew:null,"aria-labelledby":f&&!m?`${ew} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:eg});return{groupProps:{...en,role:"group","aria-disabled":v,"aria-invalid":el?"true":void 0},labelProps:ed,inputProps:ey,incrementButtonProps:ex,decrementButtonProps:eS,errorMessageProps:em,descriptionProps:ep,isInvalid:el,validationErrors:eu,validationDetails:ec}}({...nt(e),label:l,validationBehavior:r},i,o),b=t8({...e,values:{state:i,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:"react-aria-NumberField"}),w=nh(e,{global:!0});return delete w.id,y().createElement(t6,{values:[[sY,i],[ih,c],[ig,{...d,ref:o}],[o_,{...u,ref:s}],[rQ,{slots:{increment:f,decrement:p}}],[r2,{slots:{description:m,errorMessage:g}}],[oA,v]]},y().createElement(na.div,{...w,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&y().createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(i.numberValue)?"":i.numberValue,disabled:e.isDisabled||void 0}))});function sZ(e,t){return Number.parseInt((0,sT.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sX=(0,h.forwardRef)(function(e,t){var n=e.className,r=(0,h.useContext)(ia),a=(0,h.useContext)(ii),i=null!=r?r:a,o=(0,h.useContext)(sM),s=(0,aD.Xj)(),l=(0,sT.Yq)(i.visibleRange.start.toDate(s),{calendar:o.calendar,locale:o.baseName,day:!1,year:!1,noToday:!0}),u=sZ(i.visibleRange.start.toDate(s),o),c=i.maxValue?sZ(i.maxValue.toDate(s),o):void 0,d=i.minValue?sZ(i.minValue.toDate(s),o):void 0,f=(0,h.useCallback)(function(e){i.setFocusedDate(i.focusedDate.cycle("year",e-i.focusedDate.year))},[]);return i&&(0,m.jsxs)("span",{ref:t,className:n,children:[(0,m.jsx)("span",{children:l}),(0,m.jsxs)(sK,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:f,value:u,children:[(0,m.jsx)(iv,{}),(0,m.jsxs)(iy,{children:[(0,m.jsx)(rJ,{slot:"increment",children:(0,m.jsx)(eh,{size:8})}),(0,m.jsx)(rJ,{slot:"decrement",children:(0,m.jsx)(ef,{size:8})})]})]})]})});let sQ="+4zksyca-I5VROi6oiQzJQ==",sJ="wiExnFcGq1fPxn+K4eWeig==",s0="uiyACHcxSXjudv9HIlh57w==",s1="SxtTLfuOGW-Mst6POMWfQA==",s2="UU1QpNunTQCrdkAN2b2Ecg==",s3="fhR-1dd9yTq-5JUfl4REqA==",s4="_5INZ7v7pw4CkyEJ2Y8RsrA==",s5="RFMrlShZc97nAtIJF9P8jw==";function s6(e){var t=e.children,n=(0,h.useContext)(sb),r=(0,h.useContext)(sw),a=null!=n?n:r,i=(0,b.useOnClickOutside)(function(){return null==a?void 0:a.close()});return(0,m.jsx)(oP,{className:"qllIfMFRvFHzGUeuOQ+PpA==",ref:i,children:t})}function s8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s9=(0,h.forwardRef)(function(e,t){var n,r,a=e.variant,i=e.today_,o=e.minDate,s=e.maxDate,l="range"===a;return(0,m.jsx)(sm,{ref:t,className:"_16UMXpLD7yf8iGA5mGYNeA==",placement:"bottom start",offset:1,isNonModal:!0,children:(0,m.jsx)(s6,{children:(0,m.jsxs)(l?is:io,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s8(e,t,n[t])})}return e}({},l?{minValue:void 0===o?void 0:o,maxValue:void 0===s?void 0:s,className:"cds--date-picker__calendar"}:{}),r=r={children:[(0,m.jsxs)("header",{className:"WAVlDbzjKhHAlu18b5VwWw==",children:[(0,m.jsx)(rJ,{className:v()(s2,s3),slot:"previous",children:(0,m.jsx)(eS,{size:16})}),(0,m.jsx)(sX,{className:"A3aKFbSSeqZsllm0oKdxgg=="}),(0,m.jsx)(rJ,{className:v()(s2,s3),slot:"next",children:(0,m.jsx)(ej,{size:16})})]}),(0,m.jsx)(iu,{className:"_6qRB2DssZC4NegdCeg1ktQ==",children:function(e){return(0,m.jsx)(im,{className:v()("cds--date-picker__day",s8({},"TZl6MCGNAAF8bYh2zSUQ2w==",0===i.compare(e))),date:e},e.toString())}})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})});function s7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function lt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var ln=(0,h.forwardRef)(function(e,t){var n,r=(0,h.useContext)(sb),a=function(e){if(Array.isArray(e))return e}(n=t7({slot:e.slot},t,oy))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(n)||function(e){if(e){if("string"==typeof e)return s7(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s7(e,2)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1],s=au().locale,l=oh(lt(le({},i),{locale:s,createCalendar:aH.d})),u=(0,h.useRef)(null),c=iK(lt(le({},i),{inputRef:u}),l,o),d=c.fieldProps,f=c.inputProps,p=(0,h.useCallback)(function(){l.isDisabled||r.toggle()},[]);return(0,m.jsxs)(t6,{values:[[og,l],[ig,lt(le({},f),{ref:u})],[ih,lt(le({},d),{ref:o,isInvalid:l.isInvalid})]],children:[(0,m.jsx)(iy,lt(le({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:p,children:l.segments.map(function(t,n){return(0,h.cloneElement)(e.children(t),{key:n})})})),(0,m.jsx)(iv,{})]})});function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var la=(0,h.forwardRef)(function(e,t){var n=(0,h.useContext)(sb),r=(0,h.useContext)(sw);return(null!=n?n:r).isInvalid?(0,m.jsx)(tP,lr({ref:t,size:16},e)):(0,m.jsx)(ed,lr({ref:t,size:16},e))});class li{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let lo=new Map;function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ll(e){if(Array.isArray(e))return e}function lu(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function ld(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function lf(e,t){if(e){if("string"==typeof e)return ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ls(e,t)}}var lp=(0,h.forwardRef)(function(e,t){var n,r,a,i,o,s,l,u,c,d,f,p=ll(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||lf(n)||lu(),g=p[0],v=p.slice(1),b=g.segment,w=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(g,["segment"]),x=(ll(v)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(v)||lf(v,1)||lu())[0],S=(0,h.useContext)(og),j=t4(x),E=function(e,t,n){let r,a,i,o,s=(0,h.useRef)(""),{locale:l,direction:u}=au(),c=function(){var e;let{locale:t}=au(),n=aO((e=iB)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,h.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new li(t,n)}},[t,n])}(),{ariaLabel:d,ariaLabelledBy:f,ariaDescribedBy:p,focusManager:m}=iG.get(t),g=e.isPlaceholder?"":e.text,v=(0,h.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=ay({month:"long",timeZone:v.timeZone}),w=ay({hour:"numeric",hour12:v.hour12,timeZone:v.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(g=w.format(t.dateValue));else{let e=b.format(t.dateValue);g=e!==g?`${g} \u{2013} ${e}`:e}let{spinButtonProps:x}=sW({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),S=(0,h.useMemo)(()=>new(0,sH.d)(l,{maximumFractionDigits:0}),[l]),j=()=>{if(e.text===e.placeholder&&m.focusPrevious(),!S.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let n=e.text.slice(0,-1),r=S.parse(n);0===(n=0===r?"":n).length||0===r?t.clearSegment(e.type):t.setSegment(e.type,r),s.current=n}},{keyboardProps:E}=ry({shortcuts:{Backspace:()=>{j()},Delete:()=>{j()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:O}=(r=function(e){let{locale:t}=au(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(lo.has(n))return lo.get(n);let r=new Intl.Collator(t,e);return lo.set(n,r),r}({usage:"search",sensitivity:"base"}),a=(0,h.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(0,t.length),t)),[r]),i=(0,h.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(-t.length),t)),[r]),o=(0,h.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,a=(t=t.normalize("NFC")).length;for(;n+a<=e.length;n++){let i=e.slice(n,n+a);if(0===r.compare(t,i))return!0}return!1},[r]),(0,h.useMemo)(()=>({startsWith:a,endsWith:i,contains:o}),[a,i,o])),k=ay({hour:"numeric",hour12:!0}),D=(0,h.useMemo)(()=>{let e=new Date;return e.setHours(0),k.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[k]),P=(0,h.useMemo)(()=>{let e=new Date;return e.setHours(12),k.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[k]),A=ay({year:"numeric",era:"narrow",timeZone:"UTC"}),C=(0,h.useMemo)(()=>{if("era"!==e.type)return[];let n=(0,aG.yP)(new(0,i8.ng)(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:A.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map(e=>e.formatted));if(a)for(let e of r)e.formatted=e.formatted.slice(a);return r},[A,t.calendar,e.type]),T=n=>{if(t.isDisabled||t.isReadOnly)return;let r=s.current+n;switch(e.type){case"dayPeriod":if(O(D,n))t.setSegment("dayPeriod",0);else if(O(P,n))t.setSegment("dayPeriod",1);else break;m.focusNext();break;case"era":{let e=C.find(e=>O(e.formatted,n));e&&(t.setSegment("era",e.era),m.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(r))return;let a=S.parse(r),i=a;if(void 0!==e.maxValue&&a>e.maxValue&&(i=S.parse(n)),isNaN(a))return;t.setSegment(e.type,i),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(s.current="",m.focusNext()):s.current=r}}};a$((0,h.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&nj(n.current,e?.anchorNode)&&((e=document)=>e.activeElement)()===n.current&&e.collapse(n.current)});let N=(0,h.useRef)("");a$(n,"beforeinput",r=>{if(n.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&j();break;case"insertCompositionText":N.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&T(r.data)}}),a$(n,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(n.current&&(n.current.textContent=N.current),null!=r&&(O(D,r)||O(P,r))&&T(r))}),tV(()=>{let e=n.current;return()=>{((e=document)=>e.activeElement)()===e&&(m.focusPrevious()||m.focusNext())}},[n,m]);let R=nH()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,h.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let M=tQ(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L="literal"===e.type?"":c.of(e.type),_=aR({"aria-label":`${L}${d?`, ${d}`:""}${f?", ":""}`,"aria-labelledby":f});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if("rtl"===u){F.unicodeBidi="embed";let t=v[e.type];("numeric"===t||"2-digit"===t)&&(F.direction="ltr")}return{segmentProps:t3(x,_,{id:M,...R,...E,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:I,suppressContentEditableWarning:I,spellCheck:I?"false":void 0,autoCorrect:I?"off":void 0,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:I?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!I?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:()=>{s.current="",n.current&&aB(n.current,{containingElement:a_(n.current)});let e=window.getSelection();e?.collapse(n.current)},style:F,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(b,S,j).segmentProps,O=rG(),k=O.focusProps,D=O.isFocused,P=O.isFocusVisible,A=rX(ld(lc({},w),{isDisabled:S.isDisabled||"literal"===b.type})),C=A.hoverProps,T=A.isHovered,N=(a=(r=ld(lc({},w),{values:ld(lc({},b),{isReadOnly:!b.isEditable,isInvalid:S.isInvalid,isDisabled:S.isDisabled,isHovered:T,isFocused:D,isFocusVisible:P}),defaultChildren:b.text})).className,i=r.style,o=r.children,l=void 0===(s=r.defaultClassName)?void 0:s,c=void 0===(u=r.defaultChildren)?void 0:u,d=r.defaultStyle,f=r.values,(0,h.useMemo)(function(){var e,t,n;return e="function"==typeof a?a(sR(sN({},f),{defaultClassName:l})):a,t="function"==typeof i?i(sR(sN({},f),{defaultStyle:d||{}})):i,n="function"==typeof o?o(sR(sN({},f),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:l,style:t||d?sN({},d,t):void 0,children:null!=n?n:c,"data-rac":""}},[a,i,o,l,c,d,f])),R=(0,h.useCallback)(function(e){e.stopPropagation()},[]);return(0,m.jsx)("span",ld(lc({},t3(nh(w),E,k,C),N),{ref:j,style:E.style,"data-placeholder":b.isPlaceholder||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":!b.isEditable||void 0,"data-disabled":S.isDisabled||void 0,"data-type":b.type,"data-hovered":T||void 0,"data-focused":D||void 0,"data-focus-visible":P||void 0,onClick:R}))});function lm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lm(e,t,n[t])})}return e}var ly={short:!1,size:"md"},lg=(0,h.forwardRef)(function(e,t){var n,r,a,i,o,s=lh({},ly,e),l=s.className,u=s.defaultValue,c=s.isDisabled,d=s.invalid,f=s.invalidText,p=s.isInvalid,g=s.label,b=s.labelText,w=s.light,x=s.maxDate,S=s.minDate,j=s.onChange,E=s.onChangeRaw,O=s.short,k=s.size,D=s.value,P=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),A=sI(),C=A.calendar,T=A.intlLocale,N=A.today_,R=(0,h.useId)(),M=!!(null!=b?b:g),I=(0,h.useMemo)(function(){return sP(u,C)},[u,C]),L=(0,h.useMemo)(function(){return sP(D,C,!0)},[D,C]),_=(0,h.useMemo)(function(){return sP(x,C)},[x,C]),F=(0,h.useMemo)(function(){return sP(null!=S?S:sL,C)},[S,C]),V=(0,h.useMemo)(function(){return d||p},[d,p]),B=(0,h.useMemo)(function(){return E&&j&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=E?E:function(e){return null==j?void 0:j(sA(e))}},[E,j]);return(0,m.jsx)(sE,{locale:T.toString(),children:(0,m.jsx)("div",{className:v()("cds--form-item",l),children:(0,m.jsx)(t6,{values:[[sM,T]],children:(0,m.jsxs)(sS,(n=lh({className:v()("cds--date-picker","cds--date-picker--single",(lm(a={},"cds--date-picker--short",O),lm(a,"cds--date-picker--light",w),a)),defaultValue:I,isDisabled:c,isInvalid:V,maxValue:_,minValue:F,value:L,shouldForceLeadingZeros:"en"===T.language||void 0},P),r=r={onChange:B,children:[(0,m.jsxs)("div",{className:"cds--date-picker-container",children:[M&&(0,m.jsx)(oF,{className:v()("cds--label",{"cds--label--disabled":c}),htmlFor:R,children:null!=b?b:g}),(0,m.jsxs)(iy,{className:sQ,children:[(0,m.jsx)(ln,{id:M?R:void 0,ref:t,className:v()("cds--date-picker-input__wrapper","kykar4EZi79xhpVitgu-vg==",(lm(i={},"KJtg-MP1knHYLUz4R6hZEw==","sm"===k),lm(i,"ablE9mmlFsZsPekwcW7jjQ==","md"===k||!k||0===k.length),lm(i,"_5dkQpmV3FO9GZg+Ai3BG3A==","lg"===k),i)),children:function(e){return"era"!==e.type?(0,m.jsx)(lp,{className:sJ,segment:e}):(0,m.jsx)(y().Fragment,{})}}),(0,m.jsx)(rJ,{className:v()(s2,(lm(o={},s4,"sm"===k),lm(o,s3,"md"===k||!k||0===k.length),lm(o,s5,"lg"===k),o)),children:(0,m.jsx)(la,{})})]}),(0,m.jsx)(oC,{className:s1,children:f})]}),(0,m.jsx)(s9,{variant:"single",today_:N})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})})});function lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lb(e){if(Array.isArray(e))return e}function lw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lx(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lS(e,t){if(e){if("string"==typeof e)return lv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lv(e,t)}}var lj=(0,h.forwardRef)(function(e,t){var n,r,a,i,o,s=lb(a=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||lS(a)||lx(),l=s[0],u=s.slice(1),c=l.className,d=l.defaultValue,f=l.invalid,p=l.invalidText,y=l.isDisabled,g=l.isInvalid,b=l.label,w=l.labelText,x=l.light,S=l.maxDate,j=l.minDate,E=l.onChange,O=l.onChangeRaw,k=l.size,D=void 0===k?"md":k,P=l.value,A=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(l,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","size","value"]),C=(lb(u)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(u)||lS(u,1)||lx())[0],T=sI(),N=T.calendar,R=T.intlLocale,M=T.today_,I=(0,h.useId)(),L=!!(null!=w?w:b),_=(0,h.useMemo)(function(){if(P)return{start:sP(P[0],N,!1),end:sP(P[1],N,!1)}},[P,N]),F=(0,h.useMemo)(function(){if(d)return{start:sP(d[0],N,!1),end:sP(d[1],N,!1)}},[d,N]),V=(0,h.useMemo)(function(){return sP(null!=j?j:sL,N,!0)},[j,N]),B=(0,h.useMemo)(function(){return sP(S,N,!0)},[S,N]),z=(0,h.useMemo)(function(){return f||g},[f,g]),U=(0,h.useMemo)(function(){return O&&E&&console.error("An EgenDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=O?O:function(e){return null==E?void 0:E([sA(e.start),sA(e.end)])}},[O,E]);return(0,m.jsx)(sE,{locale:R.toString(),children:(0,m.jsx)("div",{className:v()("cds--form-item",c),children:(0,m.jsx)(t6,{values:[[sM,R]],children:(0,m.jsx)(sj,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lw(e,t,n[t])})}return e}({id:L?I:void 0,className:v()("cds--date-picker",{"cds--date-picker--light":x,"cds--date-picker--disabled":y}),isInvalid:z,shouldForceLeadingZeros:"en"===R.language||void 0,maxValue:B,minValue:V,value:_,defaultValue:F,ref:C,isDisabled:y},A),r=r={onChange:U,children:(0,m.jsxs)("div",{className:"cds--date-picker-container",children:[L&&(0,m.jsx)(oF,{className:v()("cds--label",{"cds--label--disabled":y}),htmlFor:I,children:null!=w?w:b}),(0,m.jsxs)(iy,{className:sQ,children:[(0,m.jsxs)("div",{className:v()("YlkGhdQcBgSDJNSlS1cQnw==",(lw(i={},"fAKhSoomCu7Mn5FBku20SQ==","sm"===D),lw(i,"XVgGPgTNDC4UIcE+4yAZPQ==","md"===D||!D||0===D.length),lw(i,"UgHJ1nnMa-axxvCtxsZexg==","lg"===D),i)),children:[(0,m.jsx)(ob,{className:v()("cds--date-picker-input__wrapper","qgbQm03oBFnWnXNV1GFW6Q==",s0),slot:"start",children:function(e){return(0,m.jsx)(lp,{className:sJ,segment:e})}}),(0,m.jsx)("div",{className:"_79vXZ2hgTRvmmxREZu5WGw==",children:(0,m.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,m.jsx)(ob,{className:v()("cds--date-picker-input__wrapper","huv7xQjo+RZmT7LsDwVMdw==",s0),slot:"end",children:function(e){return(0,m.jsx)(lp,{className:sJ,segment:e})}})]}),(0,m.jsx)(rJ,{className:v()(s2,(lw(o={},s4,"sm"===D),lw(o,s3,"md"===D||!D||0===D.length),lw(o,s5,"lg"===D),o)),children:(0,m.jsx)(la,{})})]}),(0,m.jsx)(oC,{className:s1,children:p}),(0,m.jsx)(s9,{variant:"range",today_:M,minDate:V,maxDate:B})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})})});function lE(e){var t=e.classifications,n=(0,b.useConfig)().classificationTags;return(null==t?void 0:t.length)?(0,m.jsx)("div",{"aria-label":(0,_.V)("classificationTags","Classification tags"),children:t.map(function(e,t){var r,a,i="primary"===e.rank||1===e.rank,o="secondary"===e.rank||2===e.rank,s=i?null!=(r=null==n?void 0:n.primaryColor)?r:"red":o?null!=(a=null==n?void 0:n.secondaryColor)?a:"blue":"gray";return(0,m.jsx)(L.Tag,{type:s,size:"sm",children:e.display},"".concat(e.display,"-").concat(t))})}):null}let lO={action:"Y0dulYR6B5fprvtdpjGfEg==",content:"fo0nBB+424Kd5d6PQgXSNw==",heading:"sxyN788Qj+7TLTeyCjE6bw==",tile:"QB8Ldd7u7gkdqC6n-YSg0Q=="};var lk=function(e){var t=e.width,n=e.height;return(0,m.jsx)("svg",{width:void 0===t?"64":t,height:void 0===n?"64":n,viewBox:"0 0 64 64",children:(0,m.jsx)("use",{href:"#egen-empty-data-illustration"})})},lD=function(e){var t="tablet"===(0,b.useLayoutType)(),n=e.launchForm;return(0,m.jsx)(L.Layer,{className:lO.layer,children:(0,m.jsxs)(L.Tile,{className:lO.tile,children:[(0,m.jsx)(x,{title:e.headerTitle}),(0,m.jsx)(lk,{}),(0,m.jsx)("p",{className:lO.content,children:(0,_.V)("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,m.jsx)("p",{className:lO.action,children:n&&(0,m.jsx)(L.Button,{onClick:function(){return n()},kind:"ghost",size:t?"lg":"sm",children:(0,_.V)("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},lP=function(e){var t,n,r=e.error,a=e.headerTitle;return(0,m.jsx)(L.Layer,{children:(0,m.jsxs)(L.Tile,{className:"dd4186Mm5sjs8UUsDMSW1g==",children:[(0,m.jsx)(x,{title:a}),(0,m.jsxs)("p",{className:"z2RiNHQhCUYOlXJFOX2flg==",children:[(0,_.V)("error","Error")," ","".concat(null==r||null==(t=r.response)?void 0:t.status,": "),null==r||null==(n=r.response)?void 0:n.statusText]}),(0,m.jsx)("p",{className:"dq+e2AreXbyoxopCEZRwXA==",children:(0,_.V)("errorCopy")})]})})},lA=lP;let lC={field:"_43NbpAusYvdB5tccpwugCA==",fieldControl:"G1h3dJAllPDcbDsNL-kJLw==","field--sm":"qZ3I0hYsBw+2jkiCqmcUJA==",input:"QpQk8fSE4iroHHsFDJ99Aw==","field--md":"nssddTppPkQP0CugsUPX5g==","field--lg":"xIJwiskqnesjex9fPTygkg==","field--has-left-icon":"TJqIuzWKloLr6PhYm355Qw==","field--has-validation-icon":"Nt3RLjaf9OLWbKmVXDGn9Q==",leftIcon:"tnIgGaBUPHeeupW35eP2SA==",fieldIconGlyph:"Q9JAzVjLjsA7LK8yUAjMTA==",label:"ZlGeR10bC-HigCF3J94reg==",labelIconGlyph:"F0FzdhtESa7tOKDzB1LKuQ==",labelText:"_613ljFLjrRFib1esYu9tJQ==",requiredMark:"_6FSEkZ0YQLyZBgkHo0BbDA==","field--outlined":"AkjaqVgv7Lppw5FWlx9P1w==","field--filled":"xauRzt+u2w1HMkxD2nGWEQ==","field--standard":"_9MpGPx8nMOJlVLn0jh-V5w==","field--kinetic":"k9FGXNPiNV2jvPoXKT1QMQ==",kineticLabelWrapper:"-yRyWB-CtGn2AbaQJZi+4w==",kineticLabel:"G7MW0q8Btg4BxqJV3Z5miQ==",kineticLetter:"jBg3TwH5jGyQrU0OTBShZw==","field--success":"+snaLZpHBI7Sb8Kc3uOAjg==","field--warning":"cQBS9BRsyXY8-1W4KF3yVQ==","field--error":"DgTzJdsnBz2-8wS1-e6oQg==","field--animating":"gUU0Ammae3v1wFhr9u4-eQ==","egen-field-shake":"U6ngyfp0+rnW1PldL6yMBA==",validationIcon:"xoHozMA+LguHzECzMvwlrw==","validationIcon--visible":"d5MbW0CwL3XCn4-F8lJG2g==","validationIcon--success":"_64EifujVeYZHHGEtsTPxeQ==",validationIconGlyph:"pV9JSxOQeNRZb2lm9cYv4g==","validationIcon--warning":"_8aVrbporEe5AA9sQ6Xpi2Q==","validationIcon--error":"eNuD0-w+bOIn+mvwWjOIXQ==",message:"g+uLmewSwVY7BrP2VTSvMA==","egen-field-message-in":"nfxbATxFUBP+xWnBhxZGRA==",messageLead:"_1f6rXhfiFQXbJtoltWX3kg==","field--disabled":"CLnEkNXEBL-I2g3+3YwItw=="};var lT=function(e){var t=e.fieldIcon,n=e.className;if(!t)return null;var r=t.icon;return(0,m.jsx)(r,{className:[lC.fieldIconGlyph,n].filter(Boolean).join(" "),size:16})};function lN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lR={success:ev,warning:tP,error:s_},lM=function(e){var t,n,r,a=e.currentValidation,i=e.showIcons,o=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return lN(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lN(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1];if((0,h.useEffect)(function(){if(a&&i){var e=setTimeout(function(){return l(!0)},50);return function(){return clearTimeout(e)}}l(!1)},[a,i]),!i||!a)return null;var u=lR[a.type];return u?(0,m.jsx)("div",{className:v()(lC.validationIcon,lC["validationIcon--".concat(a.type)],(n={},r=lC["validationIcon--visible"],r in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s,n)),children:(0,m.jsx)(u,{className:lC.validationIconGlyph,size:16})}):null};let lI=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lL=new Set([...lI,"pathRotation"]),l_=(e,t,n)=>n>t?t:n<e?e:n,lF={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lV={...lF,transform:e=>l_(0,1,e)},lB={...lF,default:1},lz=e=>Math.round(1e5*e)/1e5,lU=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,lW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,l$=(e,t)=>n=>!!("string"==typeof n&&lW.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),lH=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[a,i,o,s]=r.match(lU);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},lG={...lF,transform:e=>Math.round(l_(0,255,e))},lq={test:l$("rgb","red"),parse:lH("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lG.transform(e)+", "+lG.transform(t)+", "+lG.transform(n)+", "+lz(lV.transform(r))+")"},lY={test:l$("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:lq.transform},lK=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lZ=lK("deg"),lX=lK("%"),lQ=lK("px"),lJ=lK("vh"),l0=lK("vw"),l1={...lX,parse:e=>lX.parse(e)/100,transform:e=>lX.transform(100*e)},l2={test:l$("hsl","hue"),parse:lH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+lX.transform(lz(t))+", "+lX.transform(lz(n))+", "+lz(lV.transform(r))+")"},l3={test:e=>lq.test(e)||lY.test(e)||l2.test(e),parse:e=>lq.test(e)?lq.parse(e):l2.test(e)?l2.parse(e):lY.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?lq.transform(e):l2.transform(e),getAnimatableNone:e=>{let t=l3.parse(e);return t.alpha=0,l3.transform(t)}},l4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,l5="number",l6="color",l8=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function l9(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[],i=0,o=t.replace(l8,e=>(l3.test(e)?(r.color.push(i),a.push(l6),n.push(l3.parse(e))):e.startsWith("var(")?(r.var.push(i),a.push("var"),n.push(e)):(r.number.push(i),a.push(l5),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:o,indexes:r,types:a}}function l7({split:e,types:t}){let n=e.length;return r=>{let a="";for(let i=0;i<n;i++)if(a+=e[i],void 0!==r[i]){let e=t[i];e===l5?a+=lz(r[i]):e===l6?a+=l3.transform(r[i]):a+=r[i]}return a}}let ue={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(lU)?.length||0)+(e.match(l4)?.length||0)>0},parse:function(e){return l9(e).values},createTransformer:function(e){return l7(l9(e))},getAnimatableNone:function(e){let t=l9(e);return l7(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:l3.test(e)?l3.getAnimatableNone(e):e)(e,t.split[n])))}},ut=new Set(["brightness","contrast","saturate","opacity"]);function un(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(lU)||[];if(!r)return e;let a=n.replace(r,""),i=+!!ut.has(t);return r!==n&&(i*=100),t+"("+i+a+")"}let ur=/\b([a-z-]*)\(.*?\)/gu,ua={...ue,getAnimatableNone:e=>{let t=e.match(ur);return t?t.map(un).join(" "):e}},ui={...ue,getAnimatableNone:e=>{let t=ue.parse(e);return ue.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},uo={...lF,transform:Math.round},us={borderWidth:lQ,borderTopWidth:lQ,borderRightWidth:lQ,borderBottomWidth:lQ,borderLeftWidth:lQ,borderRadius:lQ,borderTopLeftRadius:lQ,borderTopRightRadius:lQ,borderBottomRightRadius:lQ,borderBottomLeftRadius:lQ,width:lQ,maxWidth:lQ,height:lQ,maxHeight:lQ,top:lQ,right:lQ,bottom:lQ,left:lQ,inset:lQ,insetBlock:lQ,insetBlockStart:lQ,insetBlockEnd:lQ,insetInline:lQ,insetInlineStart:lQ,insetInlineEnd:lQ,padding:lQ,paddingTop:lQ,paddingRight:lQ,paddingBottom:lQ,paddingLeft:lQ,paddingBlock:lQ,paddingBlockStart:lQ,paddingBlockEnd:lQ,paddingInline:lQ,paddingInlineStart:lQ,paddingInlineEnd:lQ,margin:lQ,marginTop:lQ,marginRight:lQ,marginBottom:lQ,marginLeft:lQ,marginBlock:lQ,marginBlockStart:lQ,marginBlockEnd:lQ,marginInline:lQ,marginInlineStart:lQ,marginInlineEnd:lQ,fontSize:lQ,backgroundPositionX:lQ,backgroundPositionY:lQ,rotate:lZ,pathRotation:lZ,rotateX:lZ,rotateY:lZ,rotateZ:lZ,scale:lB,scaleX:lB,scaleY:lB,scaleZ:lB,skew:lZ,skewX:lZ,skewY:lZ,distance:lQ,translateX:lQ,translateY:lQ,translateZ:lQ,x:lQ,y:lQ,z:lQ,perspective:lQ,transformPerspective:lQ,opacity:lV,originX:l1,originY:l1,originZ:lQ,zIndex:uo,fillOpacity:lV,strokeOpacity:lV,numOctaves:uo},ul={...us,color:l3,backgroundColor:l3,outlineColor:l3,fill:l3,stroke:l3,borderColor:l3,borderTopColor:l3,borderRightColor:l3,borderBottomColor:l3,borderLeftColor:l3,filter:ua,WebkitFilter:ua,mask:ui,WebkitMask:ui},uu=e=>ul[e],uc=()=>({translate:0,scale:1,origin:0,originPoint:0}),ud=()=>({x:uc(),y:uc()}),uf=()=>({min:0,max:0}),up=()=>({x:uf(),y:uf()}),um=e=>!!(e&&e.getVelocity),uh=new Set(["width","height","top","left","right","bottom",...lI]),uy=e=>t=>t.test(e),ug=[lF,lQ,lX,lZ,l0,lJ,{test:e=>"auto"===e,parse:e=>e}],uv=e=>ug.find(uy(e)),ub=()=>{},uw=()=>{},ux=e=>t=>"string"==typeof t&&t.startsWith(e),uS=ux("--"),uj=ux("var(--"),uE=e=>!!uj(e)&&uO.test(e.split("/*")[0].trim()),uO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function uk(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let uD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,uP=e=>180*e/Math.PI,uA=e=>uT(uP(Math.atan2(e[1],e[0]))),uC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uA,rotateZ:uA,skewX:e=>uP(Math.atan(e[1])),skewY:e=>uP(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uT=e=>((e%=360)<0&&(e+=360),e),uN=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uN,scaleY:uR,scale:e=>(uN(e)+uR(e))/2,rotateX:e=>uT(uP(Math.atan2(e[6],e[5]))),rotateY:e=>uT(uP(Math.atan2(-e[2],e[0]))),rotateZ:uA,rotate:uA,skewX:e=>uP(Math.atan(e[4])),skewY:e=>uP(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uI(e){return+!!e.includes("scale")}function uL(e,t){let n,r;if(!e||"none"===e)return uI(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)n=uM,r=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=uC,r=t}if(!r)return uI(t);let i=n[t],o=r[1].split(",").map(u_);return"function"==typeof i?i(o):o[i]}function u_(e){return parseFloat(e.trim())}let uF=e=>e===lF||e===lQ,uV=new Set(["x","y","z"]),uB=lI.filter(e=>!uV.has(e)),uz={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let a=e.max-e.min;return"border-box"===r?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let a=e.max-e.min;return"border-box"===r?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uL(t,"x"),y:(e,{transform:t})=>uL(t,"y")};uz.translateX=uz.x,uz.translateY=uz.y;let uU=e=>e,uW={},u$=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uH(e,t){let n=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=u$.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,a=!1,i=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,a=!1,o=!1)=>{let s=o&&r?t:n;return a&&i.add(e),s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{if(o=e,r){a=!0;return}r=!0;let i=t;t=n,n=i,t.forEach(s),t.clear(),r=!1,a&&(a=!1,l.process(e))}};return l}(i),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let i=uW.useManualTiming,o=i?a.timestamp:performance.now();n=!1,i||(a.delta=r?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,s.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),m.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:u$.reduce((t,i)=>{let s=o[i];return t[i]=(t,i=!1,o=!1)=>(!n&&(n=!0,r=!0,a.isProcessing||e(h)),s.schedule(t,i,o)),t},{}),cancel:e=>{for(let t=0;t<u$.length;t++)o[u$[t]].cancel(e)},state:a,steps:o}}let{schedule:uG,cancel:uq,state:uY,steps:uK}=uH("u">typeof requestAnimationFrame?requestAnimationFrame:uU,!0),uZ=new Set,uX=!1,uQ=!1,uJ=!1;function u0(){if(uQ){let e=Array.from(uZ).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],uB.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uQ=!1,uX=!1,uZ.forEach(e=>e.complete(uJ)),uZ.clear()}function u1(){uZ.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uQ=!0)})}class u2{constructor(e,t,n,r,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(uZ.add(this),uX||(uX=!0,uG.read(u1),uG.resolveKeyframes(u0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let a=r?.get(),i=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){let r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===a&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),uZ.delete(this)}cancel(){"scheduled"===this.state&&(uZ.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let u3=new Set([ua,ui]);function u4(e,t){let n=uu(e);return u3.has(n)||(n=ue),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let u5=new Set(["auto","none","0"]);class u6 extends u2{constructor(e,t,n,r,a){super(e,t,n,r,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&uE(r=r.trim())){let a=function e(t,n,r=1){uw(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,i]=function(e){let t=uD.exec(e);if(!t)return[,];let[,n,r,a]=t;return[`--${n??r}`,a]}(t);if(!a)return;let o=window.getComputedStyle(n).getPropertyValue(a);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uE(i)?e(i,n,r+1):i}(r,t.current);void 0!==a&&(e[n]=a),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!uh.has(n)||2!==e.length)return;let[r,a]=e,i=uv(r),o=uv(a);if(uk(r)!==uk(a)&&uz[n]){this.needsMeasurement=!0;return}if(i!==o)if(uF(i)&&uF(o))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else uz[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,a=0;for(;a<e.length&&!r;){let t=e[a];"string"==typeof t&&!u5.has(t)&&l9(t).values.length&&(r=e[a]),a++}if(r&&n)for(let a of t)e[a]=u4(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uz[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let a=n.length-1,i=n[a];n[a]=uz[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let u8=e=>1e3*e;function u9(e,t){-1===e.indexOf(t)&&e.push(t)}function u7(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ce{constructor(){this.subscriptions=[]}add(e){return u9(this.subscriptions,e),()=>u7(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){let r=this.subscriptions[a];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ct(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function cn(e){let t;return()=>(void 0===t&&(t=e()),t)}let cr={};function ca(e,t){let n=cn(e);return()=>cr[t]??n()}let ci=ca(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),co=e=>null!==e;function cs(e,{repeat:t,repeatType:n="loop"},r,a=1){let i=e.filter(co),o=a<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}class cl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let cu=e=>Array.isArray(e)&&"number"==typeof e[0],cc=ca(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),cd=(e,t,n=10)=>{let r="",a=Math.max(Math.round(t/n),2);for(let t=0;t<a;t++)r+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},cf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cf([0,.65,.55,1]),circOut:cf([.55,0,1,.45]),backIn:cf([.31,.01,.66,-.59]),backOut:cf([.33,1.53,.69,.99])};function cm(e){return"function"==typeof e&&"applyToOptions"in e}class ch extends cl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=e,uw("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return cm(e)&&cc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?cc()?cd(t,n):"ease-out":cu(t)?cf(t):Array.isArray(t)?t.map(t=>e(t,n)||cp.easeOut):cp[t]}(s,a);Array.isArray(d)&&(c.easing=d);let f={delay:r,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}(t,n,r,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=cs(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ct(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=u8(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ci())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),uU):r(this)}}let cy=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:cg}=uH(queueMicrotask,!1);function cv(){i=void 0}let cb={now:()=>(void 0===i&&cb.set(uY.isProcessing||uW.useManualTiming?uY.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(cv)}},cw=(e,t)=>t?1e3/t*e:0,cx;class cS{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=cb.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=cb.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ce);let n=this.events[e].add(t);return"change"===e?()=>{n(),uG.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return cx&&cx.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=cb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return cw(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cj(e,t){return new cS(e,t)}let cE=[...ug,l3,ue],cO=new WeakMap;function ck(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cD(e){return"string"==typeof e||Array.isArray(e)}let cP=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cA=["initial",...cP];function cC(e){return ck(e.animate)||cA.some(t=>cD(e[t]))}function cT(e){return!!(cC(e)||e.variants)}let cN={current:null},cR={current:!1},cM="u">typeof window;function cI(){if(cR.current=!0,cM)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cN.current=e.matches;e.addEventListener("change",t),t()}else cN.current=!1}function cL(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function c_(e,t,n,r){if("function"==typeof t){let[a,i]=cL(r);t=t(void 0!==n?n:e.custom,a,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,i]=cL(r);t=t(void 0!==n?n:e.custom,a,i)}return t}let cF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cV={};class cB{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:a,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=u2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=cb.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uG.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=a,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=cC(t),this.isVariantNode=cT(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&um(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,cO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(cR.current||cI(),this.shouldReduceMotion=cN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),uq(this.notifyUpdate),uq(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&cy.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:a,ease:i,duration:o}=t.accelerate,s=new ch({element:this.current,name:e,keyframes:r,times:a,ease:i,duration:u8(o)}),l=n(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let r=lL.has(e);r&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&uG.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in cV){let t=cV[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):up()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<cF.length;t++){let n=cF[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let a=t[r],i=n[r];if(um(a))e.addValue(r,a);else if(um(i))e.addValue(r,cj(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{let t=e.getStaticValue(r);e.addValue(r,cj(void 0!==t?t:a,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=cj(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,a;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(a=n,/^0[^.\s]+$/u.test(a))))n=parseFloat(n);else{let r;r=n,!cE.find(uy(r))&&ue.test(t)&&(n=u4(e,t))}this.setBaseTarget(e,um(n)?n.get():n)}return um(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=c_(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||um(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new ce),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cg.render(this.render)}}class cz extends cB{constructor(){super(...arguments),this.KeyframeResolver=u6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;um(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function cU(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let cW=(e,t)=>t&&"number"==typeof e?t.transform(e):e,c$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cH=lI.length;function cG(e,t,n){let{style:r,vars:a,transformOrigin:i}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(lL.has(e)){o=!0;continue}if(uS(e)){a[e]=n;continue}{let t=cW(n,us[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(!t.transform&&(o||n?r.transform=function(e,t,n){let r="",a=!0;for(let i=0;i<cH;i++){let o=lI[i],s=e[o];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!o.startsWith("scale");else{let e=parseFloat(s);l=o.startsWith("scale")?1===e:0===e}if(!l||n){let e=cW(s,us[o]);if(!l){a=!1;let t=c$[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let i=e.pathRotation;return i&&(a=!1,r+=`rotate(${cW(i,us.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}let cq={offset:"stroke-dashoffset",array:"stroke-dasharray"},cY={offset:"strokeDashoffset",array:"strokeDasharray"},cK=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cZ(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...s},l,u,c){if(cG(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of(d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),cK))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==a&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;let i=a?cq:cY;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}(d,a,i,o,!1)}let cX=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),cQ=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cJ(e,{style:t,vars:n},r,a){let i,o=e.style;for(i in t)o[i]=t[i];for(i in a?.applyProjectionStyles(o,r),n)o.setProperty(i,n[i])}let c0=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function c1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let c2={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!lQ.test(e))return e;else e=parseFloat(e);let n=c1(e,t.target.x),r=c1(e,t.target.y);return`${n}% ${r}%`}},c3=(e,t,n)=>e+(t-e)*n,c4={borderRadius:{...c2,applyTo:[...c0]},borderTopLeftRadius:c2,borderTopRightRadius:c2,borderBottomLeftRadius:c2,borderBottomRightRadius:c2,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=ue.parse(e);if(r.length>5)return e;let a=ue.createTransformer(e),i=+("number"!=typeof r[0]),o=n.x.scale*t.x,s=n.y.scale*t.y;r[0+i]/=o,r[1+i]/=s;let l=c3(o,s,.5);return"number"==typeof r[2+i]&&(r[2+i]/=l),"number"==typeof r[3+i]&&(r[3+i]/=l),a(r)}}};function c5(e,{layout:t,layoutId:n}){return lL.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!c4[e]||"opacity"===e)}function c6(e,t,n){let r=e.style,a=t?.style,i={};if(!r)return i;for(let t in r)(um(r[t])||a&&um(a[t])||c5(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(i[t]=r[t]);return i}function c8(e,t,n){let r=c6(e,t,n);for(let n in e)(um(e[n])||um(t[n]))&&(r[-1!==lI.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class c9 extends cz{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=up}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lL.has(t)){let e=uu(t);return e&&e.default||0}return t=cX.has(t)?t:cU(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return c8(e,t,n)}build(e,t,n){cZ(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in cJ(e,t,void 0,r),t.attrs)e.setAttribute(cX.has(n)?n:cU(n),t.attrs[n])}mount(e){this.isSVGTag=cQ(e.tagName),super.mount(e)}}function c7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function de(e){return void 0===e||1===e}function dt({scale:e,scaleX:t,scaleY:n}){return!de(e)||!de(t)||!de(n)}function dn(e){return dt(e)||dr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dr(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function da(e,t,n,r,a){return void 0!==a&&(e=r+a*(e-r)),r+n*(e-r)+t}function di(e,t=0,n=1,r,a){e.min=da(e.min,t,n,r,a),e.max=da(e.max,t,n,r,a)}function ds(e,{x:t,y:n}){di(e.x,t.translate,t.scale,t.originPoint),di(e.y,n.translate,n.scale,n.originPoint)}function dl(e,t){e.min+=t,e.max+=t}function du(e,t,n,r,a=.5){let i=c3(e.min,e.max,a);di(e,t,n,i,r)}function dc(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function dd(e,t,n){let r=n??e;du(e.x,dc(t.x,r.x),t.scaleX,t.scale,t.originX),du(e.y,dc(t.y,r.y),t.scaleY,t.scale,t.originY)}function df(e,t){return c7(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class dp extends cz{constructor(){super(...arguments),this.type="html",this.renderInstance=cJ}mount(e){uw(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(lL.has(t))return this.projection?.isProjecting?uI(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return uL(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(uS(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return df(e,t)}build(e,t,n){cG(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return c6(e,t,n)}}let dm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dh(e){if("string"!=typeof e||e.includes("-"));else if(dm.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let dy=(0,h.createContext)({}),dg=(0,h.createContext)({strict:!1}),dv=(0,h.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),db=(0,h.createContext)({});function dw(e){return Array.isArray(e)?e.join(" "):e}let dx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dS(e,t,n){for(let r in t)um(t[r])||c5(r,n)||(e[r]=t[r])}let dj=()=>({...dx(),attrs:{}}),dE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function dO(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dE.has(e)}let dk=e=>!dO(e);try{bW=require("@emotion/is-prop-valid").default,"function"==typeof bW&&(dk=e=>e.startsWith("on")?!dO(e):bW(e))}catch{}function dD(e){return um(e)?e.get():e}let dP=(0,h.createContext)(null);function dA(e){let t=(0,h.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dC=e=>(t,n)=>{let r=(0,h.useContext)(db),a=(0,h.useContext)(dP),i=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:function(e,t,n,r){let a={},i=r(e,{});for(let e in i)a[e]=dD(i[e]);let{initial:o,animate:s}=e,l=cC(e),u=cT(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?s:o;if(d&&"boolean"!=typeof d&&!ck(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=c_(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}(n,r,a,e),renderState:t()}})(e,t,r,a);return n?i():dA(i)},dT=dC({scrapeMotionValuesFromProps:c6,createRenderState:dx}),dN=dC({scrapeMotionValuesFromProps:c8,createRenderState:dj}),dR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dM=!1;function dI(){return!function(){if(dM)return;let e={};for(let t in dR)e[t]={isEnabled:e=>dR[t].some(t=>!!e[t])};cV=e,dM=!0}(),cV}let dL=Symbol.for("motionComponentSymbol"),d_="data-"+cU("framerAppearId"),dF=(0,h.createContext)({});function dV(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dB="u">typeof window?h.useLayoutEffect:h.useEffect;function dz(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&function(e){let t=dI();for(let n in e)t[n]={...t[n],...e[n]};cV=t}(r);let i=n?"svg"===n:dh(e),o=i?dN:dT;function s(n,r){var s;let l,u,c,d={...(0,h.useContext)(dv),...n,layoutId:function({layoutId:e}){let t=(0,h.useContext)(dy).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:f}=d,p=function(e){let{initial:t,animate:n}=function(e,t){if(cC(e)){let{initial:t,animate:n}=e;return{initial:!1===t||cD(t)?t:void 0,animate:cD(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,h.useContext)(db));return(0,h.useMemo)(()=>({initial:t,animate:n}),[dw(t),dw(n)])}(n),y=o(n,f);if(!f&&"u">typeof window){(0,h.useContext)(dg).strict;let t=function(e){let{drag:t,layout:n}=dI();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(d);l=t.MeasureLayout,p.visualElement=function(e,t,n,r,a,i){let{visualElement:o}=(0,h.useContext)(db),s=(0,h.useContext)(dg),l=(0,h.useContext)(dP),u=(0,h.useContext)(dv),c=u.reducedMotion,d=u.skipAnimations,f=(0,h.useRef)(null),p=(0,h.useRef)(!1);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,y=(0,h.useContext)(dF);m&&!m.projection&&a&&("html"===m.type||"svg"===m.type)&&function(e,t,n,r){let{layoutId:a,layout:i,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||s&&dV(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,n,a,y);let g=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{m&&g.current&&m.update(n,l)});let v=n[d_],b=(0,h.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return dB(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,h.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),m.enteringChildren=void 0)}),m}(e,y,d,a,t.ProjectionNode,i)}return(0,m.jsxs)(db.Provider,{value:p,children:[l&&p.visualElement?(0,m.jsx)(l,{visualElement:p.visualElement,...d}):null,function(e,t,n,{latestValues:r},a,i=!1,o){let s=(o??dh(e)?function(e,t,n,r){let a=(0,h.useMemo)(()=>{let n=dj();return cZ(n,t,cQ(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};dS(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let n,r,a={},i=(n=e.style||{},dS(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,h.useMemo)(()=>{let n=dx();return cG(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a})(t,r,a,e),l=function(e,t,n){let r={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!um(e[a])&&(dk(a)||!0===n&&dO(a)||!t&&!dO(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(t,"string"==typeof e,i),u=e!==h.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=(0,h.useMemo)(()=>um(c)?c.get():c,[c]);return(0,h.createElement)(e,{...u,children:d})}(e,n,(s=p.visualElement,u=(0,h.useRef)(r),(0,h.useInsertionEffect)(()=>{u.current=r}),c=(0,h.useRef)(null),(0,h.useCallback)(e=>{e&&y.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=u.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(c.current=n)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[s])),y,f,t,i)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,h.forwardRef)(s);return l[dL]=e,l}class dU{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dW(e,t,n){let r=e.getProps();return c_(r,t,void 0!==n?n:r.custom,e)}function d$(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function dH(e,t){let n=e?.[t]??e?.default??e;return n!==e?d$(n,e):n}let dG=e=>Array.isArray(e);function dq(e,t){let{transitionEnd:n={},transition:r={},...a}=dW(e,t)||{};for(let t in a={...a,...n}){var i;let n=dG(i=a[t])?i[i.length-1]||0:i;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,cj(n))}}function dY(e,t){let n=e.getValue("willChange");if(um(n)&&n.add)return n.add(t);if(!n&&uW.WillChange){let n=new uW.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let dK=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function dZ(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dX(e,t){return n=>n>0?t:e}let dQ=(e,t,n)=>{let r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},dJ=[lY,lq,l2];function d0(e){let t=dJ.find(t=>t.test(e));if(ub(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===l2&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,i=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=dZ(s,r,e+1/3),i=dZ(s,r,e),o=dZ(s,r,e-1/3)}else a=i=o=n;return{red:Math.round(255*a),green:Math.round(255*i),blue:Math.round(255*o),alpha:r}}(n)),n}let d1=(e,t)=>{let n=d0(e),r=d0(t);if(!n||!r)return dX(e,t);let a={...n};return e=>(a.red=dQ(n.red,r.red,e),a.green=dQ(n.green,r.green,e),a.blue=dQ(n.blue,r.blue,e),a.alpha=c3(n.alpha,r.alpha,e),lq.transform(a))},d2=new Set(["none","hidden"]);function d3(e,t){return n=>c3(e,t,n)}function d4(e){return"number"==typeof e?d3:"string"==typeof e?uE(e)?dX:l3.test(e)?d1:d8:Array.isArray(e)?d5:"object"==typeof e?l3.test(e)?d1:d6:dX}function d5(e,t){let n=[...e],r=n.length,a=e.map((e,n)=>d4(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}}function d6(e,t){let n={...e,...t},r={};for(let a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=d4(e[a])(e[a],t[a]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let d8=(e,t)=>{let n=ue.createTransformer(t),r=l9(e),a=l9(t);if(!(r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length))return ub(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),dX(e,t);if(d2.has(e)&&!a.values.length||d2.has(t)&&!r.values.length)return d2.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return dK(d5(function(e,t){let n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let i=t.types[a],o=e.indexes[i][r[i]],s=e.values[o]??0;n[a]=s,r[i]++}return n}(r,a),a.values),n)};function d9(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?c3(e,t,n):d4(e)(e,t)}let d7=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>uG.update(t,e),stop:()=>uq(t),now:()=>uY.isProcessing?uY.timestamp:cb.now()}};function fe(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let ft=.01,fn=2,fr=.005,fa=.5;function fi(e,t){return e*Math.sqrt(1-t*t)}let fo=["duration","bounce"],fs=["stiffness","damping","mass"];function fl(e,t){return t.some(t=>void 0!==e[t])}function fu(e=.3,t=.3){let n,r,a,i,o,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:h,mass:y,duration:g,velocity:v,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fl(e,fs)&&fl(e,fo))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,a=2*l_(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:a}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let a,i;ub(e<=u8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=l_(.05,1,o),e=l_(.01,10,e/1e3),o<1?(a=t=>{let r=t*o,a=r*e;return .001-(r-n)/fi(t,o)*Math.exp(-a)},i=t=>{let r=t*o*e,i=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=fi(Math.pow(t,2),o);return(r*n+n-i)*s*(-a(t)+.001>0?-1:1)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),i=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,i,5/e);if(e=u8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,x=h/(2*Math.sqrt(m*y)),S=f-d,j=Math.sqrt(m/y)/1e3,E=5>Math.abs(S);if(u||(u=E?ft:fn),c||(c=E?fr:fa),x<1)a=fi(j,x),i=(w+x*j*S)/a,n=e=>f-Math.exp(-x*j*e)*(i*Math.sin(a*e)+S*Math.cos(a*e)),o=x*j*i+S*a,s=x*j*S-i*a,r=e=>Math.exp(-x*j*e)*(o*Math.sin(a*e)+s*Math.cos(a*e));else if(1===x){n=e=>f-Math.exp(-j*e)*(S+(w+j*S)*e);let e=w+j*S;r=t=>Math.exp(-j*t)*(j*e*t-w)}else{let e=j*Math.sqrt(x*x-1);n=t=>{let n=Math.exp(-x*j*t),r=Math.min(e*t,300);return f-n*((w+x*j*S)*Math.sinh(r)+e*S*Math.cosh(r))/e};let t=(w+x*j*S)/e,a=x*j*t-S*e,i=x*j*S-t*e;r=t=>{let n=Math.exp(-x*j*t),r=Math.min(e*t,300);return n*(a*Math.sinh(r)+i*Math.cosh(r))}}let O={calculatedDuration:b&&g||null,velocity:e=>u8(r(e)),next:e=>{if(!b&&x<1){let t=Math.exp(-x*j*e),n=Math.sin(a*e),r=Math.cos(a*e),l=f-t*(i*n+S*r);return p.done=Math.abs(u8(t*(o*n+s*r)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=n(e);return b?p.done=e>=g:p.done=Math.abs(u8(r(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(fe(O),2e4),t=cd(t=>O.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return O}function fc(e,t,n){let r=Math.max(t-5,0);return cw(n-e(r),t-r)}function fd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],m={done:!1,value:p},h=n*t,y=p+h,g=void 0===o?y:o(y);g!==y&&(h=g-p);let v=e=>-h*Math.exp(-e/r),b=e=>g+v(e),w=e=>{let t=v(e),n=b(e);m.done=Math.abs(t)<=u,m.value=m.done?g:n},x=e=>{let t;if(t=m.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;d=e,f=fu({keyframes:[m.value,(n=m.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:fc(b,e,m.value),damping:a,stiffness:i,restDelta:u,restSpeed:c})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,w(e),x(e)),void 0!==d&&e>=d)?f.next(e-d):(t||w(e),m)}}}fu.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),a=Math.min(fe(r),2e4);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:a/1e3}}(e,100,fu);return e.ease=t.ease,e.duration=u8(t.duration),e.type="keyframes",e};let ff=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function fp(e,t,n,r){return e===t&&n===r?uU:a=>0===a||1===a?a:ff(function(e,t,n,r,a){let i,o,s=0;do(i=ff(o=t+(n-t)/2,r,a)-e)>0?n=o:t=o;while(Math.abs(i)>1e-7&&++s<12);return o}(a,0,1,e,n),t,r)}let fm=fp(.42,0,1,1),fh=fp(0,0,.58,1),fy=fp(.42,0,.58,1),fg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fv=e=>t=>1-e(1-t),fb=fp(.33,1.53,.69,.99),fw=fv(fb),fx=fg(fw),fS=e=>e>=1?1:(e*=2)<1?.5*fw(e):.5*(2-Math.pow(2,-10*(e-1))),fj=e=>1-Math.sin(Math.acos(e)),fE=fv(fj),fO=fg(fj),fk={linear:uU,easeIn:fm,easeInOut:fy,easeOut:fh,circIn:fj,circInOut:fO,circOut:fE,backIn:fw,backInOut:fx,backOut:fb,anticipate:fS},fD=e=>{if(cu(e)){uw(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,a]=e;return fp(t,n,r,a)}return"string"==typeof e?(uw(void 0!==fk[e],`Invalid easing type '${e}'`,"invalid-easing-type"),fk[e]):e},fP=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function fA({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var a;let i,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(fD):fD(r),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:a}={}){let i=e.length;if(uw(i===t.length,"Both input and output ranges must be the same length","range-length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],a=n||uW.mix||d9,i=e.length-1;for(let n=0;n<i;n++){let i=a(e[n],e[n+1]);t&&(i=dK(Array.isArray(t)?t[n]||uU:t,i)),r.push(i)}return r}(t,r,a),l=s.length,u=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let a=fP(e[r],e[r+1],n);return s[r](a)};return n?t=>u(l_(e[0],e[i-1],t)):u}((a=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let a=fP(0,t,r);e.push(c3(n,1,a))}}(i=[0],t.length-1),i),a.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||fy).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fC={decay:fd,inertia:fd,tween:fA,keyframes:fA,spring:fu};function fT(e){"string"==typeof e.type&&(e.type=fC[e.type])}let fN=e=>e/100;class fR extends cl{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==cb.now()&&this.tick(cb.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;fT(e);let{type:t=fA,repeat:n=0,repeatDelay:r=0,repeatType:a,velocity:i=0}=e,{keyframes:o}=e,s=t||fA;s!==fA&&"number"!=typeof o[0]&&(this.mixKeyframes=dK(fN,d9(o[0],o[1])),o=[0,100]);let l=s({...e,keyframes:o});"mirror"===a&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=fe(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>a;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=a);let b=this.currentTime,w=r;if(d){let e=Math.min(this.currentTime,a)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/s)):"mirror"===f&&(w=o)),b=l_(0,1,n)*s}v?(this.delayState.value=c[0],n=this.delayState):n=w.next(b),i&&!v&&(n.value=i(n.value));let{done:x}=n;v||null===l||(x=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&m!==fd&&(n.value=cs(c,this.options,y,this.speed)),h&&h(n.value),S&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=u8(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return fc(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(cb.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=d7,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(cb.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let fM={anticipate:fS,backInOut:fx,circInOut:fO};class fI extends ch{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fM&&(e.ease=fM[e.ease])}(e),fT(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:a,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new fR({...i,autoplay:!1}),s=Math.max(10,cb.now()-this.startTime),l=l_(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;a&&c&&ct(a,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}}let fL=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ue.test(e)||"0"===e)&&!e.startsWith("url("));function f_(e){e.duration=0,e.type="keyframes"}let fF=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fV=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fB=cn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fz extends cl{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:i="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=cb.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:a,repeatType:i,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||u2;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let a;this.keyframeResolver=void 0;let{name:i,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=cb.now();let d=!0;!function(e,t,n,r){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let i=e[e.length-1],o=fL(a,t),s=fL(i,t);return ub(o===s,`You are trying to animate ${t} from "${a}" to "${i}". "${o?i:a}" is not an animatable value.`,"value-not-animatable"),!!o&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||cm(n))&&r)}(e,i,o,s)&&(d=!1,(uW.instantAnimations||!l)&&c?.(cs(e,n,t)),e[0]=e[e.length-1],f_(n),n.repeat=0);let f={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:i,type:o,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return fB()&&n&&(cy.has(n)||fV.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&fF.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!c)&&!u&&!r&&"mirror"!==a&&0!==i&&"inertia"!==o}(f),m=f.motionValue?.owner?.current;if(p)try{a=new fI({...f,element:m})}catch{a=new fR(f)}else a=new fR(f);a.finished.then(()=>{this.notifyFinished()}).catch(uU),this.pendingTimeline&&(this.stopTimeline=a.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=a}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uJ=!0,u1(),u0(),uJ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let fU={type:"spring",stiffness:500,damping:25,restSpeed:10},fW={type:"keyframes",duration:.8},f$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fH=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fG=(e,t,n,r={},a,i)=>o=>{let s=dH(r,e)||{},l=s.delay||r.delay||0,{elapsed:u=0}=r;u-=u8(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:a};!function(e){for(let t in e)if(!fH.has(t))return!0;return!1}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?fW:lL.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:fU:f$)(e,c)),c.duration&&(c.duration=u8(c.duration)),c.repeatDelay&&(c.repeatDelay=u8(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(f_(c),0===c.delay&&(d=!0)),(uW.instantAnimations||uW.skipAnimations||a?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,f_(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!i&&void 0!==t.get()){let e=cs(c.keyframes,s);if(void 0!==e)return void uG.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new fR(c):new fz(c)};function fq(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i,transitionEnd:o,...s}=t,l=e.getDefaultTransition();i=i?d$(i,l):l;let u=i?.reduceMotion,c=i?.skipAnimations;r&&(i=r);let d=[],f=a&&e.animationState&&e.animationState.getState()[a],p=i?.path;for(let t in p&&p.animateVisualElement(e,s,i,n,d),s){let r=e.getValue(t,e.latestValues[t]??null),a=s[t];if(void 0===a||f&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(f,t))continue;let o={delay:n,...dH(i||{},t)};c&&(o.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(a)&&a===l&&!o.velocity){uG.update(()=>r.set(a));continue}let p=!1;if(window.MotionHandoffAnimation){let n=e.props[d_];if(n){let e=window.MotionHandoffAnimation(n,t,uG);null!==e&&(o.startTime=e,p=!0)}}dY(e,t);let m=u??e.shouldReduceMotion;r.start(fG(t,r,a,m&&uh.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>uG.update(()=>{o&&dq(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fY(e,t,n,r=0,a=1){let i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return"function"==typeof n?n(i,o):1===a?i*r:s-i*r}function fK(e,t,n={}){let r=dW(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);let i=r?()=>Promise.all(fq(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,a=0,i=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fK(l,t,{...o,delay:n+("function"==typeof r?0:r)+fY(e.variantChildren,l,r,a,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,i,o,s,n)}:()=>Promise.resolve(),{when:s}=a;if(!s)return Promise.all([i(),o(n.delay)]);{let[e,t]="beforeChildren"===s?[i,o]:[o,i];return e().then(()=>t())}}function fZ(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>fK(e,t,n)));else if("string"==typeof t)r=fK(e,t,n);else{let a="function"==typeof t?dW(e,t,n.custom):t;r=Promise.all(fq(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}let fX=cA.length;function fQ(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let fJ=[...cP].reverse(),f0=cP.length;function f1(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f2(){return{animate:f1(!0),whileInView:f1(),whileHover:f1(),whileTap:f1(),whileDrag:f1(),whileFocus:f1(),exit:f1()}}let f3=0,f4={x:!1,y:!1};function f5(e){return[e("x"),e("y")]}function f6(e){return e.max-e.min}function f8(e,t,n,r=.5){e.origin=r,e.originPoint=c3(t.min,t.max,e.origin),e.scale=f6(n)/f6(t),e.translate=c3(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function f9(e,t,n,r){f8(e.x,t.x,n.x,r?r.originX:void 0),f8(e.y,t.y,n.y,r?r.originY:void 0)}function f7(e,t,n,r=0){e.min=(r?c3(n.min,n.max,r):n.min)+t.min,e.max=e.min+f6(t)}function pe(e,t,n,r=0){let a=r?c3(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+f6(t)}function pt(e,t,n,r){pe(e.x,t.x,n.x,r?.x),pe(e.y,t.y,n.y,r?.y)}let pn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),pr=new Set(["INPUT","SELECT","TEXTAREA"]);function pa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}let pi=e=>"object"==typeof e&&null!==e;function po(e){return pi(e)&&"ownerSVGElement"in e}function ps(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(e=>null!=e)}let pl=new WeakMap,pu=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:po(r)&&"getBBox"in r?r.getBBox()[t]:r[n],pc=pu("inline","width","offsetWidth"),pd=pu("block","height","offsetHeight");function pf({target:e,borderBoxSize:t}){pl.get(e)?.forEach(n=>{n(e,{get width(){return pc(e,t)},get height(){return pd(e,t)}})})}function pp(e){e.forEach(pf)}let pm=new Set;function ph(e,t){let n;return"function"==typeof e?(pm.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pm.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{pm.delete(e),pm.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!o&&"u">typeof ResizeObserver&&(o=new ResizeObserver(pp)),(n=ps(e)).forEach(e=>{let n=pl.get(e);n||(n=new Set,pl.set(e,n)),n.add(t),o?.observe(e)}),()=>{n.forEach(e=>{let n=pl.get(e);n?.delete(t),n?.size||o?.unobserve(e)})})}let py=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function pg(e){return{point:{x:e.pageX,y:e.pageY}}}function pv(e,t,n,r){return pa(e,t,e=>py(e)&&n(e,pg(e)),r)}let pb=({current:e})=>e?e.ownerDocument.defaultView:null,pw=(e,t)=>Math.abs(e-t),px=new Set(["auto","scroll"]);class pS{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:a=!1,distanceThreshold:i=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pj(this.lastRawMoveEventInfo,this.transformPagePoint));let n=pO(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,a=(e=n.offset,t={x:0,y:0},Math.sqrt(pw(e.x,t.x)**2+pw(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!a)return;let{point:i}=n,{timestamp:o}=uY;this.history.push({...i,timestamp:o});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=pj(t,this.transformPagePoint),uG.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:a}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&a&&a(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=pO("pointercancel"===e.type?this.lastMoveEventInfo:pj(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!py(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const s=pj(pg(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=uY;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,pO(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=dK(pv(this.contextWindow,"pointermove",this.handlePointerMove,d),pv(this.contextWindow,"pointerup",this.handlePointerUp,d),pv(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(px.has(e.overflowX)||px.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:r.x-t.x,y:r.y-t.y};(0!==a.x||0!==a.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,r),uG.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uq(this.updatePoint)}}function pj(e,t){return t?{point:t(e.point)}:e}function pE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pO({point:e},t){return{point:e,delta:pE(e,pk(t)),offset:pE(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=pk(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>u8(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*u8(.1)&&(n=e[1]);let a=(r.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};let i={x:(r.x-n.x)/a,y:(r.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}(t)}}function pk(e){return e[e.length-1]}function pD(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function pA(e,t,n){return{min:pC(e,t),max:pC(e,n)}}function pC(e,t){return"number"==typeof e?e:e[t]||0}let pT=new WeakMap;class pN{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=up(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let a=e=>{t&&this.snapToCursor(pg(e).point),this.stopAnimation()},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:a}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(f4[e])return null;else return f4[e]=!0,()=>{f4[e]=!1};return f4.x||f4.y?null:(f4.x=f4.y=!0,()=>{f4.x=f4.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),f5(e=>{let t=this.getAxisMotionValue(e).get()||0;if(lX.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=f6(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),a&&uG.update(()=>a(e,t),!1,!0),dY(this.visualElement,"transform");let{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:a,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(o),null!==this.currentDirection&&a&&a(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),i&&uG.update(()=>i(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new pS(e,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:pb(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&uG.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!pM(e,r,this.currentDirection))return;let a=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?c3(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?c3(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),a.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&dV(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:a}){return{x:pD(e.x,n,a),y:pD(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:pA(e,"left","right"),y:pA(e,"top","bottom")}}(t),r!==this.constraints&&!dV(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&f5(e=>{var t,r;let a;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],a={},void 0!==r.min&&(a.min=r.min-t.min),void 0!==r.max&&(a.max=r.max-t.min),a))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!dV(t))return!1;let r=t.current;uw(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());let i=function(e,t,n){let r=df(e,n),{scroll:a}=t;return a&&(dl(r.x,a.offset.x),dl(r.y,a.offset.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),o=(e=a.layout.layoutBox,{x:pP(e.x,i.x),y:pP(e.y,i.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=c7(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(f5(o=>{if(!pM(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===i||i===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return dY(this.visualElement,e),n.start(fG(e,n,0,t,this.visualElement,!1))}stopAnimation(){f5(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){f5(t=>{let{drag:n}=this.getProps();if(!pM(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,a=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:i}=r.layout.layoutBox[t],o=a.get()||0;a.set(e[t]-c3(n,i,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dV(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};f5(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,a;let i,o,s,l=t.get();r[e]=(n={min:l,max:l},a=this.constraints[e],i=.5,o=f6(n),(s=f6(a))>o?i=fP(a.min,a.max-o,n.min):o>s&&(i=fP(n.min,n.max-s,a.min)),l_(0,1,i))}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),f5(t=>{if(!pM(t,e,null))return;let n=this.getAxisMotionValue(t),{min:a,max:i}=this.constraints[t];n.set(c3(a,i,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pT.set(this.visualElement,this);let t=this.visualElement.current,n=pv(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),a=e.target,i=a!==t&&(pr.has(a.tagName)||!0===a.isContentEditable);n&&r&&!i&&this.start(e)}),r=()=>{var n,r,a;let i,o,{dragConstraints:s}=this.getProps();dV(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=s.current,i=ph(n,pR(a=()=>this.scalePositionWithinConstraints())),o=ph(r,pR(a)),e=()=>{i(),o()}))},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),uG.read(r);let o=pa(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(f5(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:i=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:i,dragMomentum:o}}}function pR(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pM(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let pI=e=>(t,n)=>{e&&uG.update(()=>e(t,n),!1,!0)},pL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function p_(e=!0){let t=(0,h.useContext)(dP);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:a}=t,i=(0,h.useId)();(0,h.useEffect)(()=>{if(e)return a(i)},[e]);let o=(0,h.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}let pF=!1;class pV extends h.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),pF&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pL.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,{projection:i}=n;return i&&(i.isPresent=a,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),pF=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==a?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||uG.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),cg.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;pF=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pB(e){let[t,n]=p_(),r=(0,h.useContext)(dy);return(0,m.jsx)(pV,{...e,layoutGroup:r,switchLayoutGroup:(0,h.useContext)(dF),isPresent:t,safeToRemove:n})}let pz=c0.length,pU=e=>"string"==typeof e?parseFloat(e):e,pW=e=>"number"==typeof e||lQ.test(e);function p$(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let pH=pq(0,.5,fE),pG=pq(.5,.95,uU);function pq(e,t,n){return r=>r<e?0:r>t?1:n(fP(e,t,r))}function pY(e,t){e.min=t.min,e.max=t.max}function pK(e,t){pY(e.x,t.x),pY(e.y,t.y)}function pZ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pX(e,t,n,r,a){return e-=t,e=r+1/n*(e-r),void 0!==a&&(e=r+1/a*(e-r)),e}function pQ(e,t,[n,r,a],i,o){!function(e,t=0,n=1,r=.5,a,i=e,o=e){if(lX.test(t)&&(t=parseFloat(t),t=c3(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=c3(i.min,i.max,r);e===i&&(s-=t),e.min=pX(e.min,t,n,s,a),e.max=pX(e.max,t,n,s,a)}(e,t[n],t[r],t[a],t.scale,i,o)}let pJ=["x","scaleX","originX"],p0=["y","scaleY","originY"];function p1(e,t,n,r){pQ(e.x,t,pJ,n?n.x:void 0,r?r.x:void 0),pQ(e.y,t,p0,n?n.y:void 0,r?r.y:void 0)}function p2(e){return 0===e.translate&&1===e.scale}function p3(e){return p2(e.x)&&p2(e.y)}function p4(e,t){return e.min===t.min&&e.max===t.max}function p5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function p6(e,t){return p5(e.x,t.x)&&p5(e.y,t.y)}function p8(e){return f6(e.x)/f6(e.y)}function p9(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class p7{constructor(){this.members=[]}add(e){u9(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(u7(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(u7(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:a}=e.options;(void 0===r||r!==a)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let me=(e,t)=>e.depth-t.depth;class mt{constructor(){this.children=[],this.isDirty=!1}add(e){u9(this.children,e),this.isDirty=!0}remove(e){u7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(me),this.isDirty=!1,this.children.forEach(e)}}let mn=["","X","Y","Z"],mr=0;function ma(e,t,n,r){let{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mi({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(e={},n=t?.()){this.id=mr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ml),this.nodes.forEach(mg),this.nodes.forEach(mv),this.nodes.forEach(mu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new mt)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ce),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=po(t)&&!(po(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,a=()=>this.root.updateBlockedByResize=!1;uG.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,i;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=cb.now(),i=({timestamp:e})=>{let n=e-t;n>=250&&(uq(i),a(n-250))},uG.setup(i,!0),n=()=>uq(i),pL.hasAnimatedSinceResize&&(pL.hasAnimatedSinceResize=!1,this.nodes.forEach(my))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&a&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||mE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!p6(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...dH(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||my(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),uq(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mb),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[d_];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",uG,!(e||n))}let{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&e(a)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(mf),this.nodes.forEach(md);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(mp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mm),this.nodes.forEach(mh),this.nodes.forEach(mo),this.nodes.forEach(ms)):this.nodes.forEach(mp),this.clearAllSnapshots();let e=cb.now();uY.delta=l_(0,1e3/60,e-uY.timestamp),uY.timestamp=e,uY.isProcessing=!0,uK.update.process(uY),uK.preRender.process(uY),uK.render.process(uY),uY.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mc),this.sharedNodes.forEach(mw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uG.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uG.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||f6(this.snapshot.measuredBox.x)||f6(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=up()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!p3(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||dn(this.latestValues)||i)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),mD((t=r).x),mD(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return up();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(mA))){let{scroll:e}=this.root;e&&(dl(t.x,e.offset.x),dl(t.y,e.offset.y))}return t}removeElementScroll(e){let t=up();if(pK(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:a,options:i}=r;r!==this.root&&a&&i.layoutScroll&&(a.wasRoot&&pK(t,e),dl(t.x,a.offset.x),dl(t.y,a.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||up();pK(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(dl(r.x,-n.scroll.offset.x),dl(r.y,-n.scroll.offset.y)),dn(n.latestValues)&&dd(r,n.latestValues,n.layout?.layoutBox)}return dn(this.latestValues)&&dd(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=up();pK(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];dn(r.latestValues)&&(r.instance&&(dt(r.latestValues)&&r.updateSnapshot(),pK(n=up(),r.measurePageBox())),p1(t,r.latestValues,r.snapshot?.layoutBox,n))}return dn(this.latestValues)&&p1(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==uY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:a}=this.options;if(!this.layout||!(r||a))return;this.resolvedRelativeTargetAt=uY.timestamp;let i=this.getClosestProjectingParent();if(i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=up(),this.targetWithTransforms=up()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,f7(o.x,s.x,l.x,u?.x),f7(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pK(this.target,this.layout.layoutBox),ds(this.target,this.targetDelta)):pK(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&i&&!!i.resumingFrom==!!this.resumingFrom&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||dt(this.parent.latestValues)||dr(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=up(),this.relativeTargetOrigin=up(),pt(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),pK(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===uY.timestamp&&(n=!1),n)return;let{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||a))return;pK(this.layoutCorrected,this.layout.layoutBox);let i=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,r=!1){let a,i,o=n.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){i=(a=n[s]).projectionDelta;let{visualElement:o}=a.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(dl(e.x,-a.scroll.offset.x),dl(e.y,-a.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,ds(e,i)),r&&dn(a.latestValues)&&dd(e,a.latestValues,a.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=up());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(pZ(this.prevProjectionDelta.x,this.projectionDelta.x),pZ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f9(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===o&&p9(this.projectionDelta.x,this.prevProjectionDelta.x)&&p9(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ud(),this.projectionDelta=ud(),this.projectionDeltaWithTransform=ud()}setAnimationOrigin(e,t=!1,n){let r,a=this.snapshot,i=a?a.latestValues:{},o={...this.latestValues},s=ud();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=up(),u=(a?a.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,f=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(mj));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,a=p?.(n);if(a?(s.x.translate=a.x,s.x.scale=c3(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=a.y,s.y.scale=c3(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(mx(s.x,e.x,n),mx(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,m,h,y,g,v;pt(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),h=this.relativeTarget,y=this.relativeTargetOrigin,g=l,v=n,mS(h.x,y.x,g.x,v),mS(h.y,y.y,g.y,v),r&&(c=this.relativeTarget,m=r,p4(c.x,m.x)&&p4(c.y,m.y))&&(this.isProjectionDirty=!1),r||(r=up()),pK(r,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,n,r,a,i){a?(e.opacity=c3(0,n.opacity??1,pH(r)),e.opacityExit=c3(t.opacity??1,0,pG(r))):i&&(e.opacity=c3(t.opacity??1,n.opacity??1,r));for(let a=0;a<pz;a++){let i=c0[a],o=p$(t,i),s=p$(n,i);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||pW(o)===pW(s)?(e[i]=Math.max(c3(pU(o),pU(s),r),0),(lX.test(s)||lX.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=c3(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,n,f,d)),a&&void 0!==a.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=a.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uq(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uG.update(()=>{var t,n,r;let a;pL.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cj(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(a=um(t)?t:cj(t)).start(fG("",a,n,r)),a.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:a}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&mP(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||up();let t=f6(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=f6(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}pK(t,n),dd(t,a),f9(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new p7),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ma("z",e,r,this.animationValues);for(let t=0;t<mn.length;t++)ma(`rotate${mn[t]}`,e,r,this.animationValues),ma(`skew${mn[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=dD(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=dD(t?.pointerEvents)||""),this.hasProjected&&!dn(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let a=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="",a=e.x.translate/t.x,i=e.y.translate/t.y,o=n?.z||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:a,rotateX:i,rotateY:o,skewX:s,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),a&&(r+=`rotate(${a}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);n&&(i=n(a,i)),e.transform=i;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:e.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,c4){if(void 0===a[t])continue;let{correct:n,applyTo:o,isCSSVariable:s}=c4[t],l="none"===i?a[t]:n(a[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?dD(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(md),this.root.sharedNodes.clear()}}}function mo(e){e.updateLayout()}function ms(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,i=t.source!==e.layout.source;if("size"===a)f5(e=>{let r=i?t.measuredBox[e]:t.layoutBox[e],a=f6(r);r.min=n[e].min,r.max=r.min+a});else if("x"===a||"y"===a){let e="x"===a?"y":"x";pY(i?t.measuredBox[e]:t.layoutBox[e],n[e])}else mP(a,t.layoutBox,n)&&f5(r=>{let a=i?t.measuredBox[r]:t.layoutBox[r],o=f6(n[r]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ud();f9(o,n,t.layoutBox);let s=ud();i?f9(s,e.applyTransform(r,!0),t.measuredBox):f9(s,n,t.layoutBox);let l=!p3(o),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:a,layout:i}=r;if(a&&i){let o=e.options.layoutAnchor||void 0,s=up();pt(s,t.layoutBox,a.layoutBox,o);let l=up();pt(l,n,i.layoutBox,o),p6(s,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ml(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mc(e){e.clearSnapshot()}function md(e){e.clearMeasurements()}function mf(e){e.isLayoutDirty=!0,e.updateLayout()}function mp(e){e.isLayoutDirty=!1}function mm(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function mh(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function my(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mg(e){e.resolveTargetDelta()}function mv(e){e.calcProjection()}function mb(e){e.resetSkewAndRotation()}function mw(e){e.removeLeadSnapshot()}function mx(e,t,n){e.translate=c3(t.translate,0,n),e.scale=c3(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mS(e,t,n,r){e.min=c3(t.min,n.min,r),e.max=c3(t.max,n.max,r)}function mj(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let mE={duration:.45,ease:[.4,0,.1,1]},mO=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mk=mO("applewebkit/")&&!mO("chrome/")?Math.round:uU;function mD(e){e.min=mk(e.min),e.max=mk(e.max)}function mP(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(p8(t)-p8(n)))}function mA(e){return e!==e.root&&e.scroll?.wasRoot}let mC=mi({attachResizeListener:(e,t)=>pa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),mT={current:void 0},mN=mi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mT.current){let e=new mC({});e.mount(window),e.setOptions({layoutScroll:!0}),mT.current=e}return mT.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function mR(e,t){let n=ps(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function mM(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let a=r["onHover"+n];a&&uG.postRender(()=>a(t,pg(t)))}function mI(e){return pi(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let mL=(e,t)=>!!t&&(e===t||mL(e,t.parentElement)),m_=new WeakSet;function mF(e){return t=>{"Enter"===t.key&&e(t)}}function mV(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function mB(e){return py(e)&&!(f4.x||f4.y)}let mz=new WeakSet;function mU(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let a=r["onTap"+("End"===n?"":n)];a&&uG.postRender(()=>a(t,pg(t)))}let mW=new WeakMap,m$=new WeakMap,mH=e=>{let t=mW.get(e.target);t&&t(e)},mG=e=>{e.forEach(mH)},mq={some:0,all:1},mY=function(e,t){if("u"<typeof Proxy)return dz;let n=new Map,r=(n,r)=>dz(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(a,i)=>"create"===i?r:(n.has(i)||n.set(i,dz(i,void 0,e,t)),n.get(i))})}({animation:{Feature:class extends dU{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>fZ(e,t,n))),n=f2(),r=!0,a=!1,i=t=>(n,r)=>{let a=dW(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function o(o){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<fX;e++){let r=cA[e],a=t.props[r];(cD(a)||!1===a)&&(n[r]=a)}return n}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<f0;t++){var p,m;let h=fJ[t],y=n[h],g=void 0!==s[h]?s[h]:l[h],v=cD(g),b=h===o?y.isActive:null;!1===b&&(f=t);let w=g===l[h]&&g!==s[h]&&v;if(w&&(r||a)&&e.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...d},!y.isActive&&null===b||!g&&!y.prevProp||ck(g)||"boolean"==typeof g)continue;if("exit"===h&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let x=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!fQ(m,p)),S=x||h===o&&y.isActive&&!w&&v||t>f&&v,j=!1,E=Array.isArray(g)?g:[g],O=E.reduce(i(h),{});!1===b&&(O={});let{prevResolvedValues:k={}}=y,D={...k,...O},P=t=>{S=!0,c.has(t)&&(j=!0,c.delete(t)),y.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in D){let t=O[e],n=k[e];if(!d.hasOwnProperty(e))(dG(t)&&dG(n)?!fQ(t,n)||x:t!==n)?null!=t?P(e):c.add(e):void 0!==t&&c.has(e)?P(e):y.protectedKeys[e]=!0}y.prevProp=g,y.prevResolvedValues=O,y.isActive&&(d={...d,...O}),(r||a)&&e.blockInitialAnimation&&(S=!1);let A=w&&x,C=!A||j;S&&C&&u.push(...E.map(t=>{let n={type:h};if("string"==typeof t&&(r||a)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,a=dW(r,t);if(r.enteringChildren&&a){let{delayChildren:t}=a.transition||{};n.delay=fY(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let n=dW(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let h=!!u.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,a=!1,h?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=f2(),a=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ck(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends dU{constructor(){super(...arguments),this.id=f3++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=dW(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends dU{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:a,amount:i="some",once:o}=n,s={root:r?r.current:void 0,rootMargin:a,threshold:"number"==typeof i?i:mq[i]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;m$.has(n)||m$.set(n,{});let r=m$.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(mG,{root:e,...t})),r[a]}(s),mW.set(e,l),t.observe(e),()=>{mW.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends dU{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,a,i]=mR(e,n),o=e=>{let r=e.currentTarget;if(!mB(e)||mz.has(e))return;m_.add(r),n.stopPropagation&&mz.add(e);let i=t(r,e),o={...a,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),m_.has(r)&&m_.delete(r),mB(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{s(e,r===window||r===document||n.useGlobalTarget||mL(r,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",o,a),mI(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=mF(()=>{if(m_.has(n))return;mV(n,"down");let e=mF(()=>{mV(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>mV(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,a)),pn.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(mU(this.node,t,"Start"),(e,{success:t})=>mU(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends dU{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=dK(pa(this.node.current,"focus",()=>this.onFocus()),pa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends dU{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,a,i]=mR(e,n);return r.forEach(e=>{let n,r=!1,i=!1,o=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),i&&(i=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(r){i=!0;return}o(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||f4.x||f4.y)return;i=!1;let o=t(e,r);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",l,a))},a),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",s,a)},a)}),i}(e,(e,t)=>(mM(this.node,t,"Start"),e=>mM(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends dU{constructor(){super(...arguments),this.removePointerDownListener=uU}onPointerDown(e){this.session=new pS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pb(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:pI(e),onStart:pI(t),onMove:pI(n),onEnd:(e,t)=>{delete this.session,r&&uG.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=pv(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends dU{constructor(e){super(e),this.removeGroupControls=uU,this.removeListeners=uU,this.controls=new pN(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uU}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:mN,MeasureLayout:pB},layout:{ProjectionNode:mN,MeasureLayout:pB}},(e,t)=>t.isSVG??dh(e)?new c9(t):new dp(t,{allowProjection:e!==h.Fragment}));var mK={initial:{},animate:{transition:{staggerChildren:.05}}},mZ={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},mX=function(e){var t=e.label,n=e.active,r=e.required;return(0,m.jsxs)(mY.span,{className:lC.kineticLabel,variants:mK,initial:"initial",animate:n?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,m.jsx)(mY.span,{className:lC.kineticLetter,variants:mZ,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),r&&(0,m.jsx)("span",{className:lC.requiredMark,children:" *"})]})};function mQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mQ(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m0={error:[100,50,100],warning:[50,30,50],success:[30]},m1={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function m2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m4(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m2(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m5=function(e){var t,n,r,a,i,o,s,l,u=e.variant,c=void 0===u?"outlined":u,d=e.size,f=e.label,p=e.placeholder,y=e.type,g=e.value,b=void 0===g?"":g,w=e.onChange,x=e.className,S=e.disabled,j=void 0!==S&&S,E=e.required,O=void 0!==E&&E,k=e.autoComplete,D=e.autoFocus,P=e.id,A=e.name,C=e.fieldIcon,T=e.validation,N=void 0===T?m1:T,R=e.onFocus,M=e.onBlur,I=e.onValidationChange,L=(0,h.useId)(),_=null!=P?P:"egen-field-".concat(L),F="".concat(_,"-help"),V=m4((0,h.useState)(b),2),B=V[0],z=V[1],U=m4((0,h.useState)(!1),2),W=U[0],$=U[1],H=(0,h.useRef)(null),G=(n=(t=mJ((0,h.useState)(null),2))[0],r=t[1],i=(a=mJ((0,h.useState)(!1),2))[0],o=a[1],s=function(e){N.triggerVibration&&(o(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(m0[e]),setTimeout(function(){return o(!1)},600))},(0,h.useEffect)(function(){if(!N.realTimeValidation||!B||0===N.rules.length){r(null),null==I||I(null);return}var e=N.rules.find(function(e){return!e.regex.test(B)});if(e){(null==n?void 0:n.type)!==e.type&&s(e.type),r(e),null==I||I(e);return}var t=N.rules.find(function(e){return"success"===e.type&&e.regex.test(B)});if(t){(null==n?void 0:n.type)!=="success"&&s("success"),r(t),null==I||I(t);return}r(null),null==I||I(null)},[B,N.rules,N.realTimeValidation,null==n?void 0:n.type,I]),{currentValidation:n,isAnimating:i}),q=G.currentValidation,Y=G.isAnimating;(0,h.useEffect)(function(){b!==B&&z(b)},[b]);var K=(null==C?void 0:C.position)==="left",Z=(null==C?void 0:C.position)==="label",X=!!N.showIcons&&!!q,Q=v()(lC.field,lC["field--".concat(c)],lC["field--".concat(void 0===d?"md":d)],(m3(l={},lC["field--disabled"],j),m3(l,lC["field--animating"],Y),m3(l,lC["field--has-left-icon"],K),m3(l,lC["field--has-validation-icon"],X),l),q&&lC["field--".concat(q.type)],x);return(0,m.jsxs)("div",{className:Q,children:[(0,m.jsxs)("div",{className:lC.fieldControl,ref:H,children:[K&&(0,m.jsx)("div",{className:lC.leftIcon,children:(0,m.jsx)(lT,{fieldIcon:C})}),(0,m.jsx)("input",{type:void 0===y?"text":y,id:_,name:A,value:B,onChange:function(e){var t=e.target.value;z(t),null==w||w(t)},onFocus:function(e){$(!0),null==R||R(e)},onBlur:function(e){$(!1),null==M||M(e)},disabled:j,required:O,autoComplete:k,autoFocus:D,className:lC.input,placeholder:void 0===p?" ":p,"aria-describedby":N.showMessages&&q?F:void 0,"aria-invalid":(null==q?void 0:q.type)==="error"||void 0}),f&&"kinetic"===c&&(0,m.jsx)("label",{htmlFor:_,className:lC.kineticLabelWrapper,children:(0,m.jsx)(mX,{label:f,active:W||B.length>0,required:O})}),f&&"kinetic"!==c&&(0,m.jsxs)("label",{htmlFor:_,className:lC.label,children:[Z&&(0,m.jsx)(lT,{fieldIcon:C,className:lC.labelIconGlyph}),(0,m.jsxs)("span",{className:lC.labelText,children:[f,O&&(0,m.jsxs)("span",{className:lC.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,m.jsx)(lM,{currentValidation:q,showIcons:!!N.showIcons})]}),N.showMessages&&q&&(0,m.jsxs)("p",{id:F,className:lC.message,role:"error"===q.type?"alert":void 0,children:[(0,m.jsxs)("span",{className:lC.messageLead,children:["success"===q.type&&"Parfait !","error"===q.type&&"Erreur —","warning"===q.type&&"Attention —"]})," ",q.message]})]})};function m6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var m8=y().forwardRef(function(e,t){var n,r,a,i=(0,b.useLeftNavStore)(),o=i.slotName,s=i.basePath,l=i.componentContext,u=i.state,c=null!=(a=window.location)?a:{pathname:""},d=(0,b.useAssignedExtensions)(null!=o?o:"");return e.isChildOfHeader&&o&&d.length>0?(0,m.jsxs)(L.SideNav,(n=m6({"aria-label":(0,_.V)("leftNavigation","Left navigation"),className:"jzTJKtCPCooU36+y+NwbPQ==",expanded:!0,isFixedNav:!0,ref:t},e),r=r={children:[(0,m.jsx)(b.ExtensionSlot,{name:"global-nav-menu-slot"}),o?(0,m.jsx)(b.RenderIfValueIsTruthy,{value:l,fallback:(0,m.jsx)(b.ExtensionSlot,{name:o,state:m6({basePath:s,currentPath:c},u)}),children:(0,m.jsx)(b.ComponentContext.Provider,{value:l,children:(0,m.jsx)(b.ExtensionSlot,{name:o,state:m6({basePath:s,currentPath:c},u)})})}):null]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n)):null}),m9=n(6269),m7=n(3709),he=n(4896);function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hn(e,t){if(e){if("string"==typeof e)return ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ht(e,t)}}var hr=function(e){var t,n,r,a,i,o,s=e.selectedLocationUuid,l=e.defaultLocationUuid,u=e.locationTag,c=e.locationsPerRequest,d=void 0===c?50:c,f=e.onChange,p=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hn(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],v=(0,h.useId)(),w=(n=l?"/ws/fhir2/R4/Location?_id=".concat(l):null,a=(r=(0,m9.A)(n,he.egenFetch,{shouldRetryOnError:function(e){var t;return null!=e&&null!=(t=e.response)&&!!t.status&&e.response.status>=500}})).data,i=r.error,o=r.isLoading,(0,h.useMemo)(function(){var e;return{location:(null==a||null==(e=a.data)?void 0:e.entry)?a.data.entry[0]:null,error:n?i:null,isLoading:!!n&&o}},[a,o,i,n])).location,x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=(0,b.useDebounce)(n),a=(0,m7.Ay)(function(n,a){if(a){var i,o,s=null==(o=a.data)||null==(i=o.link)?void 0:i.find(function(e){return"next"===e.relation});if(!s)return null;var l=new URL(s.url);return l.origin===window.location.origin?s.url:new URL("".concat(l.pathname).concat(l.search?"?".concat(l.search):""),window.location.origin).toString()}var u="".concat(he.fhirBaseUrl,"/Location?"),c=new URLSearchParams;return c.append("_summary","data"),t&&c.append("_count",""+t),n&&c.append("_getpagesoffset",""+n*t),e&&c.append("_tag",e),"string"==typeof r&&""!==r&&c.append("name:contains",r),u+c.toString()},he.egenFetch),i=a.data,o=a.isLoading,s=a.isValidating,l=a.setSize,u=a.error;return(0,h.useMemo)(function(){var e,t,n,r,a;return{locations:(null==i?void 0:i.length)?null==i?void 0:i.flatMap(function(e){var t,n;return null!=(t=null==e||null==(n=e.data)?void 0:n.entry)?t:[]}):[],isLoading:o,totalResults:null==i||null==(t=i[0])||null==(e=t.data)?void 0:e.total,hasMore:null!=i&&!!i.length&&(null==i||null==(a=i[i.length-1])||null==(r=a.data)||null==(n=r.link)?void 0:n.some(function(e){return"next"===e.relation})),loadingNewData:s,error:u||null,setPage:l}},[o,i,s,l,u])}(u,d,y),S=x.locations,j=x.isLoading,E=x.hasMore,O=x.loadingNewData,k=x.error,D=x.setPage,P=(0,h.useMemo)(function(){if(w&&!y&&l){var e;return[w].concat(function(e){if(Array.isArray(e))return ht(e)}(e=S.filter(function(e){return e.resource.id!==l}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hn(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return null!=S?S:[]},[w,S,l,y]),A=(0,h.useCallback)(function(e){f(),g(e.trim())},[f]),C=(0,h.useCallback)(function(){!O&&E&&D(function(e){return e+1})},[O,E,D]),T=(0,b.useOnVisible)(C),N=E?Math.max(0,Math.floor(P.length-d/2)):-1;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(L.Search,{"aria-describedby":k?"".concat(v,"-error"):void 0,labelText:(0,_.V)("searchForLocation"),id:v,placeholder:(0,_.V)("searchForLocation"),onChange:function(e){return A(e.target.value)},size:"lg"}),k&&(0,m.jsx)("div",{className:"vWBFDqCDM8BcQhePvfa35g==",id:"".concat(v,"-error"),children:(0,m.jsx)(L.InlineNotification,{kind:"error",subtitle:(0,_.V)("errorLoadingLoginLocations","Unable to load login locations. Please try again or contact support if the problem persists."),title:(0,_.V)("error","Error")})}),(0,m.jsx)("div",{className:"Gbet+W1fVEk45aZli6JbrA==",children:j?(0,m.jsx)("div",{className:"QO-zjOxMSWAzXY-PMrSiwQ==",children:Array.from({length:5}).map(function(e,t){return(0,m.jsx)(L.RadioButtonSkeleton,{className:"otoCykP+JQHrsIsgKUOd7A==",role:"progressbar"},t)})}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"_6PasfpnQ738RjzgXBzAQpw==",children:P.length>0?(0,m.jsx)(L.RadioButtonGroup,{name:"loginLocations",onChange:function(e){f(null==e?void 0:e.toString())},orientation:"vertical",valueSelected:s,children:P.map(function(e,t){return(0,m.jsx)(L.RadioButton,{className:"rTDPjXuaGJbz9KhOf57M3g==",id:e.resource.id,labelText:(0,m.jsx)("span",{ref:t===N?T:null,children:e.resource.name}),name:e.resource.name,value:e.resource.id},e.resource.id)})}):(0,m.jsx)("div",{className:"w4-CatRLHH3loLqlunOalg==",children:(0,m.jsx)("p",{className:"Of2MJqhAMKF7nrwI5bKckw==",children:(0,_.V)("noResultsToDisplay")})})}),O&&(0,m.jsx)("div",{className:"NAwSBETYamP9uMuJE63U-w==",children:(0,m.jsx)(L.InlineLoading,{description:(0,_.V)("loading")})})]})})]})},ha=n(9250),hi=n(1442),ho=n(7477),hs=n(8507);function hl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function hd(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function hf(e,t){if(e){if("string"==typeof e)return hl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hl(e,t)}}var hp=(0,hi.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),hm=0,hh=window.getComputedStyle(document.body).overflow;function hy(e){var t=e.modalStack,n=e.modalContainer;n&&(t.length?(n.style.visibility||(addEventListener("keydown",hv),document.body.style.overflow="hidden",n.style.visibility="unset"),t.forEach(function(e,r){switch(e.state){case"NEW":var a,i,o,s,l,u,c,d=(a=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(i=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(a),i.setAttribute("role","dialog"),i.setAttribute("tabindex","-1"),i.setAttribute("aria-modal","true"),i);e.container=d,(function(e,t){var n;return(n=function(e,t){var n,r,a,i,o,s=arguments;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(n=s.length>2&&void 0!==s[2]?s[2]:{},r=(0,ho.Fg)(t),a=null,!e)return[3,2];if(!r)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,r.load)()];case 1:return i=l.sent(),o=hm++,a=(0,ha.mountRootParcel)(hd(hc({},i),{name:"".concat(t,"-").concat(o)}),hd(hc({},n),{domElement:e})),[3,3];case 2:(0,hs.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,a]}})},function(){var e=this,t=arguments;return new Promise(function(r,a){var i=n.apply(e,t);function o(e){hu(i,r,a,o,s,"next",e)}function s(e){hu(i,r,a,o,s,"throw",e)}o(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",n.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=r?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(o=s.unmount)||o.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){hp.setState({modalContainer:n,modalStack:t.filter(function(t){return t!==e})})},0)}})):(n.style.removeProperty("visibility"),document.body.style.overflow=hh,removeEventListener("keydown",hv)))}function hg(e){var t=hp.getState(),n=t.modalStack.map(function(t){return t===e?hd(hc({},t),{state:"TO_BE_DELETED"}):t});hp.setState(hd(hc({},t),{modalStack:n}))}function hv(e){var t,n;"Escape"===e.key&&(n=(function(e){if(Array.isArray(e))return e}(t=hp.getState().modalStack)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hf(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0])&&hg(n)}function hb(e){hp.subscribe(hy),hp.setState(hd(hc({},hp.getState()),{modalContainer:e}))}function hw(e){var t,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=function(){var e=hp.getState().modalStack.find(function(e){return e.onClose===i});e&&hg(e)};return(0,ho.Fg)(e)?(r=[{state:"NEW",onClose:i,modalName:e,props:hc({close:o},a)}].concat(function(e){if(Array.isArray(e))return hl(e)}(n=(t=hp.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hf(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),hp.setState(hd(hc({},t),{modalStack:r}))):(0,hs.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),o}var hx=n(919),hS=function(e){var t=e.notification,n=t.description,r=t.action,a=t.kind,i=t.critical,o=t.title,s=t.onAction;return(0,m.jsx)(L.ActionableNotification,{actionButtonLabel:r,kind:a||"info",lowContrast:i,subtitle:n,title:o||"",inline:!0,onActionButtonClick:s})};function hj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hE(e,t){if(e){if("string"==typeof e)return hj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hj(e,t)}}let hO=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hE(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1];return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return hj(e)})(n=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hE(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){return(0,m.jsx)(hS,{notification:e},e.id)})})};function hk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var hD=function(e){var t,n=e.notification,r=n.actionButtonLabel,a=n.onActionButtonClick,i=void 0===a?function(){}:a,o=n.subtitle,s=n.kind,l=n.title,u=n.critical,c=n.progressActionLabel,d=(n.id,function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(n,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),f=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(r))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return hk(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hk(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1];return(0,m.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({kind:s||"info",actionButtonLabel:p,ariaLabel:(0,_.V)("closesActionableNotification","Closes actionable notification"),onActionButtonClick:function(){i(),c&&y(c)},statusIconDescription:(0,_.V)("actionableNotification","Actionable notification"),subtitle:o,title:l,lowContrast:u,inline:!0},d))};function hP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hA(e,t){if(e){if("string"==typeof e)return hP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hP(e,t)}}let hC=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hA(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1];return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return hP(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hA(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){return(0,m.jsx)(hD,{notification:e},e.id)})})};var hT=n(5217),hN=n(72),hR=n(2797),hM=n(8206),hI=n(3497),hL=n(8134),h_=n(4666),hF=n(7931),hV=Object.prototype.hasOwnProperty;let hB=function(e){if(null==e)return!0;if((0,hI.A)(e)&&((0,hM.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,hL.A)(e)||(0,hF.A)(e)||(0,hR.A)(e)))return!e.length;var t=(0,hN.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,h_.A)(e))return!(0,hT.A)(e).length;for(var n in e)if(hV.call(e,n))return!1;return!0};var hz=n(8279);function hU(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function hW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function h$(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function hH(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var hG=new hx.Subject,hq=0,hY=new hx.Subject,hK=0;function hZ(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(hO,{subject:hG}))}function hX(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":hH(t))==="object"&&(hU(t,Error)||!hB(t)))?(hU(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){hG.next(h$(hW({},e),{id:hq++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function hQ(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(hC,{subject:hY}))}function hJ(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":hH(t))==="object"&&!hB(t))?setTimeout(function(){hY.next(h$(hW({},e),{id:hK++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}var h0=["NORMAL","HIGH","CRITICALLY_HIGH","OFF_SCALE_HIGH","LOW","CRITICALLY_LOW","OFF_SCALE_LOW"],h1=["critically_low","critically_high","high","low","normal","off_scale_low","off_scale_high"];let h2={container:"ScB70LqU+PKTglPLpquSYA==",card:"OaumoczyyhVxFGgK1Ymncw==","abnormal-value":"nIEaa1DoEVNwq6VRhytuqA==","critical-value":"piSS0orYMnJr8srfIKo2zw==",cell:"WVzs6v9nyUbN4BP3kiRvOg==","critically-high":"nWzimGykDKiWWpAA510ywA==","critically-low":"wz1U5oBN8Au6+HaU5WTJJA==",high:"_5XGrk2jf9LNICUS0mhpcuQ==",low:"bZP-khvj3DMGEuy6EwE+rA==","label-container":"m8YotuX9YyGBVTfwscLQxw==","value-container":"Qfl6BA8qVqs0ch1lkoGorA==",label:"GeE-oU8VbIwmewu0CLedqg==",value:"_1l76wCdnl85Ih71jhnW-4w==",units:"W7zPgHBl62LXyz9iCBMD1Q==","pad-right":"QTCXOa6vj1UmNa4ukP+r9g==","off-scale-low":"vCAWY7zmOXKiCw0oMh2oIQ==","off-scale-high":"_7x8iew49LjFwIFhlYEBJgQ==",arrow:"_53IVZxbBIwcFSLi67OJAqg=="};function h3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h4=function(e){var t,n,r,a,i,o,s,l,u,c,d,f,p,y,g,b,w,x,S=e.value,j=e.unit,E=e.label,O=e.interpretation,k=e.referenceRange,D=e.conceptUuid,P=e.variant,A=e.entityUuid,C=(0,h.useId)(),T=(c=null,(t=k||O?void 0:D)&&(c=A?"".concat(he.restBaseUrl,"/conceptreferencerange/?entity=").concat(A,"&concept=").concat(t,"&v=full"):"".concat(he.restBaseUrl,"/conceptreferencerange/?concept=").concat(t,"&v=full")),f=(d=(0,m9.A)(c,he.egenFetch)).data,p=d.error,y=d.isLoading,{referenceRange:(g=null==f||null==(u=f.data)||null==(l=u.results)?void 0:l[0])?{hiNormal:null!=(n=g.hiNormal)?n:null,hiAbsolute:null!=(r=g.hiAbsolute)?r:null,hiCritical:null!=(a=g.hiCritical)?a:null,lowNormal:null!=(i=g.lowNormal)?i:null,lowAbsolute:null!=(o=g.lowAbsolute)?o:null,lowCritical:null!=(s=g.lowCritical)?s:null}:void 0,error:p,isLoading:y}),N=T.referenceRange,R=T.isLoading,M=null!=k?k:N,I=(0,h.useMemo)(function(){if(O)return O?"--"===O?"normal":h0.includes(O)?O.toLowerCase():h1.includes(O)?O:"normal":void 0;if(M&&!R){if(!M||null==S||""===S)return"normal";var e="string"==typeof S?Number.parseFloat(S):S;return Number.isNaN(e)?"normal":null!==M.hiAbsolute&&void 0!==M.hiAbsolute&&e>M.hiAbsolute?"off_scale_high":null!==M.hiCritical&&void 0!==M.hiCritical&&e>=M.hiCritical?"critically_high":null!==M.hiNormal&&void 0!==M.hiNormal&&e>M.hiNormal?"high":null!==M.lowAbsolute&&void 0!==M.lowAbsolute&&e<M.lowAbsolute?"off_scale_low":null!==M.lowCritical&&void 0!==M.lowCritical&&e<=M.lowCritical?"critically_low":null!==M.lowNormal&&void 0!==M.lowNormal&&e<M.lowNormal?"low":"normal"}return"normal"},[O,M,S,R]),L=null!=I?I:"normal",F="critically_low"===L||"critically_high"===L||"off_scale_low"===L||"off_scale_high"===L,V="normal"!==L,B=E?"egen-numeric-dp-label-".concat(E.replaceAll(/\s+/g,"-").toLowerCase(),"-").concat(C):void 0,z="egen-numeric-dp-value-".concat(C),U="egen-numeric-dp-unit-".concat(C),W=null!=S&&""!==S,$=W?S:(0,_.V)("notAvailable","Not available"),H=v()((h3(b={},h2["critically-low"],"critically_low"===L||"off_scale_low"===L),h3(b,h2["critically-high"],"critically_high"===L||"off_scale_high"===L),h3(b,h2.low,"low"===L),h3(b,h2.high,"high"===L),h3(b,h2["off-scale-low"],"off_scale_low"===L),h3(b,h2["off-scale-high"],"off_scale_high"===L),b)),G=v()((h3(w={},h2.container,!0),h3(w,h2.card,!0),h3(w,h2["critical-value"],F),h3(w,h2["abnormal-value"],V&&!F),w)),q=v()((h3(x={},h2.cell,!0),h3(x,H,!0),x));return"cell"===(void 0===P?"card":P)?(0,m.jsxs)("div",{className:q,children:[$,W&&j?" ".concat(j):""]}):(0,m.jsxs)("section",{className:G,"data-testid":"numeric-datapoint-card",children:[E&&(0,m.jsxs)("div",{className:h2["label-container"],children:[(0,m.jsx)("span",{id:B,className:h2.label,children:E}),V&&(0,m.jsx)("span",{className:h2[L.replace("_","-")],title:(0,_.V)("abnormalValue","Abnormal value")})]}),(0,m.jsxs)("div",{className:h2["value-container"],children:[(0,m.jsx)("span",{id:z,"aria-labelledby":B&&U?"".concat(B," ").concat(U):B||U||void 0,className:h2.value,children:$}),W&&j&&(0,m.jsx)("span",{id:U,className:h2.units,children:j})]})]})};function h5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h6(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h9(e,t,n){return t&&h8(e.prototype,t),n&&h8(e,n),e}function h7(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h5(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(){function e(t){h6(this,e),ye(this,"canvas",void 0),ye(this,"gl",void 0),ye(this,"meshes",[]),ye(this,"commonUniforms",void 0),ye(this,"width",void 0),ye(this,"height",void 0),ye(this,"Material",void 0),ye(this,"Uniform",void 0),ye(this,"PlaneGeometry",void 0),ye(this,"Mesh",void 0),ye(this,"Attribute",void 0),this.canvas=t;var n=this.canvas.getContext("webgl",{antialias:!0});if(!n)throw Error("WebGL not supported");this.gl=n;var r=this.gl,a=this;this.Uniform=function(){function e(t){h6(this,e),ye(this,"type","float"),ye(this,"value",void 0),ye(this,"typeFn",void 0),ye(this,"excludeFrom",void 0),ye(this,"transpose",void 0),Object.assign(this,t),this.typeFn=({float:"1f",int:"1i",vec2:"2fv",vec3:"3fv",vec4:"4fv",mat4:"Matrix4fv"})[this.type]||"1f"}return h9(e,[{key:"update",value:function(e){if(void 0!==this.value&&null!==e){var t=0===this.typeFn.indexOf("Matrix"),n="uniform".concat(this.typeFn);t?r[n](e,this.transpose||!1,this.value):r[n](e,this.value)}}},{key:"getDeclaration",value:function(e,t,n){if(this.excludeFrom===t)return"";if("array"===this.type)return this.value[0].getDeclaration(e,t,this.value.length)+"\nconst int ".concat(e,"_length = ").concat(this.value.length,";");if("struct"===this.type){var r=e.replace("u_","");r=r.charAt(0).toUpperCase()+r.slice(1);var a=Object.entries(this.value).map(function(e){var n=h7(e,2),r=n[0];return n[1].getDeclaration(r,t).replace(/^uniform/,"")}).join("");return"uniform struct ".concat(r," \n{\n").concat(a,"\n} ").concat(e).concat(n?"[".concat(n,"]"):"",";")}return"uniform ".concat(this.type," ").concat(e).concat(n?"[".concat(n,"]"):"",";")}}]),e}(),this.Attribute=function(){function e(t){h6(this,e),ye(this,"type",r.FLOAT),ye(this,"normalized",!1),ye(this,"buffer",void 0),ye(this,"target",void 0),ye(this,"size",void 0),ye(this,"values",void 0),this.buffer=r.createBuffer(),Object.assign(this,t)}return h9(e,[{key:"update",value:function(){this.values&&(r.bindBuffer(this.target,this.buffer),r.bufferData(this.target,this.values,r.STATIC_DRAW))}},{key:"attach",value:function(e,t){var n=r.getAttribLocation(t,e);return this.target===r.ARRAY_BUFFER&&(r.bindBuffer(this.target,this.buffer),r.enableVertexAttribArray(n),r.vertexAttribPointer(n,this.size,this.type,this.normalized,0,0)),n}},{key:"use",value:function(e){r.bindBuffer(this.target,this.buffer),this.target===r.ARRAY_BUFFER&&(r.enableVertexAttribArray(e),r.vertexAttribPointer(e,this.size,this.type,this.normalized,0,0))}}]),e}(),this.Material=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};h6(this,e);var o=function(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw console.error(r.getShaderInfoLog(n)),Error("Shader compilation error");return n},s=function(e,t){return Object.entries(e).map(function(e){var n=h7(e,2),r=n[0];return n[1].getDeclaration(r,t)}).join("\n")};ye(this,"uniforms",void 0),ye(this,"uniformInstances",[]),ye(this,"program",void 0),this.uniforms=i;var l="precision highp float;",u="\n ".concat(l,"\n attribute vec4 position;\n attribute vec2 uv;\n attribute vec2 uvNorm;\n ").concat(s(a.commonUniforms,"vertex"),"\n ").concat(s(i,"vertex"),"\n ").concat(t,"\n "),c="\n ".concat(l,"\n ").concat(s(a.commonUniforms,"fragment"),"\n ").concat(s(i,"fragment"),"\n ").concat(n,"\n ");if(this.program=r.createProgram(),r.attachShader(this.program,o(r.VERTEX_SHADER,u)),r.attachShader(this.program,o(r.FRAGMENT_SHADER,c)),r.linkProgram(this.program),!r.getProgramParameter(this.program,r.LINK_STATUS))throw console.error(r.getProgramInfoLog(this.program)),Error("Program linking error");r.useProgram(this.program),this.attachUniforms(void 0,a.commonUniforms),this.attachUniforms(void 0,this.uniforms)}return h9(e,[{key:"attachUniforms",value:function(e,t){var n=this;void 0===e?Object.entries(t).forEach(function(e){var t=h7(e,2),r=t[0],a=t[1];return n.attachUniforms(r,a)}):"array"===t.type?t.value.forEach(function(t,r){return n.attachUniforms("".concat(e,"[").concat(r,"]"),t)}):"struct"===t.type?Object.entries(t.value).forEach(function(t){var r=h7(t,2),a=r[0],i=r[1];return n.attachUniforms("".concat(e,".").concat(a),i)}):this.uniformInstances.push({uniform:t,location:r.getUniformLocation(this.program,e)})}}]),e}(),this.PlaneGeometry=function(){function e(){h6(this,e),ye(this,"width",1),ye(this,"height",1),ye(this,"attributes",void 0),ye(this,"vertexCount",0),ye(this,"xSegCount",0),ye(this,"ySegCount",0),this.attributes={position:new a.Attribute({target:r.ARRAY_BUFFER,size:3}),uv:new a.Attribute({target:r.ARRAY_BUFFER,size:2}),uvNorm:new a.Attribute({target:r.ARRAY_BUFFER,size:2}),index:new a.Attribute({target:r.ELEMENT_ARRAY_BUFFER,size:3,type:r.UNSIGNED_SHORT})}}return h9(e,[{key:"setTopology",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.xSegCount=e,this.ySegCount=t,this.vertexCount=(this.xSegCount+1)*(this.ySegCount+1);var n=this.xSegCount*this.ySegCount*2;this.attributes.uv.values=new Float32Array(2*this.vertexCount),this.attributes.uvNorm.values=new Float32Array(2*this.vertexCount),this.attributes.index.values=new Uint16Array(3*n);for(var r=0;r<=this.ySegCount;r++)for(var a=0;a<=this.xSegCount;a++){var i=r*(this.xSegCount+1)+a;if(this.attributes.uv.values[2*i]=a/this.xSegCount,this.attributes.uv.values[2*i+1]=1-r/this.ySegCount,this.attributes.uvNorm.values[2*i]=a/this.xSegCount*2-1,this.attributes.uvNorm.values[2*i+1]=1-r/this.ySegCount*2,a<this.xSegCount&&r<this.ySegCount){var o=r*this.xSegCount+a;this.attributes.index.values[6*o]=i,this.attributes.index.values[6*o+1]=i+1+this.xSegCount,this.attributes.index.values[6*o+2]=i+1,this.attributes.index.values[6*o+3]=i+1,this.attributes.index.values[6*o+4]=i+1+this.xSegCount,this.attributes.index.values[6*o+5]=i+2+this.xSegCount}}this.attributes.uv.update(),this.attributes.uvNorm.update(),this.attributes.index.update()}},{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.width=e,this.height=t,this.attributes.position.values=new Float32Array(3*this.vertexCount);for(var n=-(e/2),r=-(t/2),a=e/this.xSegCount,i=t/this.ySegCount,o=0;o<=this.ySegCount;o++)for(var s=r+o*i,l=0;l<=this.xSegCount;l++){var u=n+l*a,c=o*(this.xSegCount+1)+l;this.attributes.position.values[3*c]=u,this.attributes.position.values[3*c+1]=-s,this.attributes.position.values[3*c+2]=0}this.attributes.position.update()}}]),e}(),this.Mesh=function(){function e(t,n){var r=this;h6(this,e),ye(this,"geometry",void 0),ye(this,"material",void 0),ye(this,"attributeInstances",[]),this.geometry=t,this.material=n,Object.entries(this.geometry.attributes).forEach(function(e){var t=h7(e,2),n=t[0],a=t[1];r.attributeInstances.push({attribute:a,location:a.attach(n,r.material.program)})}),a.meshes.push(this)}return h9(e,[{key:"draw",value:function(){r.useProgram(this.material.program),this.material.uniformInstances.forEach(function(e){var t=e.uniform,n=e.location;return t.update(n)}),this.attributeInstances.forEach(function(e){var t=e.attribute,n=e.location;return t.use(n)}),r.drawElements(r.TRIANGLES,this.geometry.attributes.index.values.length,r.UNSIGNED_SHORT,0)}}]),e}();var i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.commonUniforms={projectionMatrix:new this.Uniform({type:"mat4",value:i}),modelViewMatrix:new this.Uniform({type:"mat4",value:i}),resolution:new this.Uniform({type:"vec2",value:[1,1]}),aspectRatio:new this.Uniform({type:"float",value:1})}}return h9(e,[{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:640,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:480;this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.gl.viewport(0,0,e,t),this.commonUniforms.resolution.value=[e,t],this.commonUniforms.aspectRatio.value=e/t}},{key:"setOrthographicCamera",value:function(){this.commonUniforms.projectionMatrix.value=[2/this.width,0,0,0,0,2/this.height,0,0,0,0,-.001,0,0,0,0,1]}},{key:"render",value:function(){this.gl.clearColor(0,0,0,0),this.gl.clearDepth(1),this.meshes.forEach(function(e){return e.draw()})}}]),e}(),yn=function(){function e(t,n){var r=this;h6(this,e),ye(this,"canvas",void 0),ye(this,"colors",void 0),ye(this,"minigl",void 0),ye(this,"mesh",void 0),ye(this,"time",0),ye(this,"last",0),ye(this,"animationId",void 0),ye(this,"isPlaying",!1),ye(this,"animate",function(e){if(r.isPlaying){r.last||(r.last=e);var t=e-r.last;r.last=e,r.time+=Math.min(t,1e3/15),r.mesh.material.uniforms.u_time.value=r.time,r.minigl.render(),r.animationId=requestAnimationFrame(r.animate)}}),ye(this,"handleResize",function(){r.resize()}),this.canvas=t,this.colors=n,this.minigl=new yt(t),this.init()}return h9(e,[{key:"init",value:function(){for(var e=this.colors.map(function(e){var t;return[((t=parseInt(e.replace("#","0x"),16))>>16&255)/255,(t>>8&255)/255,(255&t)/255]}),t={u_time:new this.minigl.Uniform({value:0}),u_shadow_power:new this.minigl.Uniform({value:5}),u_darken_top:new this.minigl.Uniform({value:0}),u_active_colors:new this.minigl.Uniform({value:[1,1,1,1],type:"vec4"}),u_global:new this.minigl.Uniform({value:{noiseFreq:new this.minigl.Uniform({value:[14e-5,29e-5],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:5e-6})},type:"struct"}),u_vertDeform:new this.minigl.Uniform({value:{incline:new this.minigl.Uniform({value:0}),offsetTop:new this.minigl.Uniform({value:-.5}),offsetBottom:new this.minigl.Uniform({value:-.5}),noiseFreq:new this.minigl.Uniform({value:[3,4],type:"vec2"}),noiseAmp:new this.minigl.Uniform({value:320}),noiseSpeed:new this.minigl.Uniform({value:10}),noiseFlow:new this.minigl.Uniform({value:3}),noiseSeed:new this.minigl.Uniform({value:5})},type:"struct",excludeFrom:"fragment"}),u_baseColor:new this.minigl.Uniform({value:e[0],type:"vec3",excludeFrom:"fragment"}),u_waveLayers:new this.minigl.Uniform({value:[],excludeFrom:"fragment",type:"array"})},n=1;n<e.length;n++)t.u_waveLayers.value.push(new this.minigl.Uniform({value:{color:new this.minigl.Uniform({value:e[n],type:"vec3"}),noiseFreq:new this.minigl.Uniform({value:[2+n/e.length,3+n/e.length],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:11+.3*n}),noiseFlow:new this.minigl.Uniform({value:6.5+.3*n}),noiseSeed:new this.minigl.Uniform({value:5+10*n}),noiseFloor:new this.minigl.Uniform({value:.1}),noiseCeil:new this.minigl.Uniform({value:.63+.07*n})},type:"struct"}));var r=new this.minigl.Material("\nvec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 mod289(vec4 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 permute(vec4 x) { return mod289(((x*34.0)+1.0)*x); }\nvec4 taylorInvSqrt(vec4 r) { return 1.79284291400159 - 0.85373472095314 * r; }\n\nfloat snoise(vec3 v) {\n const vec2 C = vec2(1.0/6.0, 1.0/3.0);\n const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);\n vec3 i = floor(v + dot(v, C.yyy));\n vec3 x0 = v - i + dot(i, C.xxx);\n vec3 g = step(x0.yzx, x0.xyz);\n vec3 l = 1.0 - g;\n vec3 i1 = min(g.xyz, l.zxy);\n vec3 i2 = max(g.xyz, l.zxy);\n vec3 x1 = x0 - i1 + C.xxx;\n vec3 x2 = x0 - i2 + C.yyy;\n vec3 x3 = x0 - D.yyy;\n i = mod289(i);\n vec4 p = permute(permute(permute(i.z + vec4(0.0, i1.z, i2.z, 1.0)) + i.y + vec4(0.0, i1.y, i2.y, 1.0)) + i.x + vec4(0.0, i1.x, i2.x, 1.0));\n float n_ = 0.142857142857;\n vec3 ns = n_ * D.wyz - D.xzx;\n vec4 j = p - 49.0 * floor(p * ns.z * ns.z);\n vec4 x_ = floor(j * ns.z);\n vec4 y_ = floor(j - 7.0 * x_);\n vec4 x = x_ *ns.x + ns.yyyy;\n vec4 y = y_ *ns.x + ns.yyyy;\n vec4 h = 1.0 - abs(x) - abs(y);\n vec4 b0 = vec4(x.xy, y.xy);\n vec4 b1 = vec4(x.zw, y.zw);\n vec4 s0 = floor(b0)*2.0 + 1.0;\n vec4 s1 = floor(b1)*2.0 + 1.0;\n vec4 sh = -step(h, vec4(0.0));\n vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy;\n vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww;\n vec3 p0 = vec3(a0.xy,h.x);\n vec3 p1 = vec3(a0.zw,h.y);\n vec3 p2 = vec3(a1.xy,h.z);\n vec3 p3 = vec3(a1.zw,h.w);\n vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\n p0 *= norm.x; p1 *= norm.y; p2 *= norm.z; p3 *= norm.w;\n vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);\n m = m * m;\n return 42.0 * dot(m*m, vec4(dot(p0,x0), dot(p1,x1), dot(p2,x2), dot(p3,x3)));\n}\n\nvec3 blendNormal(vec3 base, vec3 blend) { return blend; }\nvec3 blendNormal(vec3 base, vec3 blend, float opacity) { return (blend * opacity + base * (1.0 - opacity)); }\n\nvarying vec3 v_color;\n\nvoid main() {\n float time = u_time * u_global.noiseSpeed;\n vec2 noiseCoord = resolution * uvNorm * u_global.noiseFreq;\n float tilt = resolution.y / 2.0 * uvNorm.y;\n float incline = resolution.x * uvNorm.x / 2.0 * u_vertDeform.incline;\n float offset = resolution.x / 2.0 * u_vertDeform.incline * mix(u_vertDeform.offsetBottom, u_vertDeform.offsetTop, uv.y);\n \n float noise = snoise(vec3(\n noiseCoord.x * u_vertDeform.noiseFreq.x + time * u_vertDeform.noiseFlow,\n noiseCoord.y * u_vertDeform.noiseFreq.y,\n time * u_vertDeform.noiseSpeed + u_vertDeform.noiseSeed\n )) * u_vertDeform.noiseAmp;\n \n noise *= 1.0 - pow(abs(uvNorm.y), 2.0);\n noise = max(0.0, noise);\n \n vec3 pos = vec3(position.x, position.y + tilt + incline + noise - offset, position.z);\n \n v_color = u_baseColor;\n \n for (int i = 0; i < u_waveLayers_length; i++) {\n if (u_active_colors[i + 1] == 1.) {\n WaveLayers layer = u_waveLayers[i];\n float layerNoise = smoothstep(\n layer.noiseFloor,\n layer.noiseCeil,\n snoise(vec3(\n noiseCoord.x * layer.noiseFreq.x + time * layer.noiseFlow,\n noiseCoord.y * layer.noiseFreq.y,\n time * layer.noiseSpeed + layer.noiseSeed\n )) / 2.0 + 0.5\n );\n v_color = blendNormal(v_color, layer.color, pow(layerNoise, 4.));\n }\n }\n \n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);\n}","\nvarying vec3 v_color;\n\nvoid main() {\n vec3 color = v_color;\n if (u_darken_top == 1.0) {\n vec2 st = gl_FragCoord.xy/resolution.xy;\n color.g -= pow(st.y + sin(-12.0) * st.x, u_shadow_power) * 0.4;\n }\n gl_FragColor = vec4(color, 1.0);\n}",t),a=new this.minigl.PlaneGeometry;this.mesh=new this.minigl.Mesh(a,r),this.resize(),window.addEventListener("resize",this.handleResize)}},{key:"resize",value:function(){var e=window.innerWidth,t=window.innerHeight;this.minigl.setSize(e,t),this.minigl.setOrthographicCamera();var n=Math.ceil(.02*e),r=Math.ceil(.05*t);this.mesh.geometry.setTopology(n,r),this.mesh.geometry.setSize(e,t),this.mesh.material.uniforms.u_shadow_power.value=e<600?5:6}},{key:"start",value:function(){this.isPlaying||(this.isPlaying=!0,this.last=performance.now(),this.animationId=requestAnimationFrame(this.animate))}},{key:"stop",value:function(){this.isPlaying=!1,this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=void 0)}},{key:"destroy",value:function(){this.stop(),window.removeEventListener("resize",this.handleResize)}}]),e}();function yr(e){var t=e.colors,n=void 0===t?["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"]:t,r=e.isPlaying,a=void 0===r||r,i=e.className,o=e.shadowPower,s=void 0===o?8:o,l=e.darkenTop,u=void 0!==l&&l,c=e.noiseSpeed,d=void 0===c?1e-5:c,f=e.noiseFrequency,p=void 0===f?[1e-4,9e-4]:f,y=e.deform,g=void 0===y?{incline:.5,noiseAmp:250,noiseFlow:5}:y,v=(0,h.useRef)(null),b=(0,h.useRef)(null);return(0,h.useEffect)(function(){if(v.current){var e=document.createElement("canvas");Object.assign(e.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"block"}),v.current.appendChild(e);try{var t=new yn(e,n);b.current=t,t.mesh.material.uniforms.u_shadow_power.value=s,t.mesh.material.uniforms.u_darken_top.value=+!!u,t.mesh.material.uniforms.u_global.value.noiseFreq.value=p,t.mesh.material.uniforms.u_global.value.noiseSpeed.value=d,Object.assign(t.mesh.material.uniforms.u_vertDeform.value,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t.mesh.material.uniforms.u_vertDeform.value,g)),a&&t.start()}catch(e){console.error("Failed to initialize gradient:",e)}return function(){b.current&&(b.current.destroy(),b.current=null),e.parentNode&&e.parentNode.removeChild(e)}}},[]),(0,h.useEffect)(function(){b.current&&(a?b.current.start():b.current.stop())},[a]),(0,m.jsx)("div",{ref:v,className:"absolute inset-0 z-0 w-full h-full overflow-hidden ".concat(void 0===i?"":i)})}function ya(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yo=(0,h.createContext)({config:null,setPageBackground:function(){}});function ys(e){var t,n=e.children,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(null))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yi(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yi(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1],o=(0,h.useMemo)(function(){return{config:a,setPageBackground:i}},[a]);return(0,m.jsx)(yo.Provider,{value:o,children:n})}function yl(){return(0,h.useContext)(yo)}var yu=["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"];function yc(e){var t=e.className;return(0,m.jsxs)("div",{className:ya("fixed inset-0 w-full h-full pointer-events-none z-0 overflow-hidden select-none bg-[#030708]",t),children:[(0,m.jsx)(yr,{colors:yu,isPlaying:!0,shadowPower:8,darkenTop:!1,noiseSpeed:1e-5,noiseFrequency:[1e-4,9e-4],deform:{incline:.5,noiseAmp:250,noiseFlow:5}}),(0,m.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/20 via-transparent to-black/60 pointer-events-none"}),(0,m.jsx)("div",{className:"absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-30 blur-[120px] pointer-events-none",style:{background:"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}})]})}function yd(e){var t=e.imageSrc,n=e.imageAlt,r=e.imageFit,a=void 0===r?"cover":r,i=e.className,o=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=void 0===d||d,p=e.accent,h=e.children;return t?(0,m.jsxs)("div",{className:ya("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none",!(null==i?void 0:i.includes("bg-"))&&"bg-[#030708]",i),children:[(0,m.jsx)("img",{src:t,alt:void 0===n?"Arri\xe8re-plan immersif":n,className:ya("absolute inset-0 w-full h-full select-none transition-all duration-700 ease-out","fill"===a?"object-fill":"contain"===a?"object-contain object-center":"object-cover object-center","fill"===a?"opacity-100":"opacity-95",o),referrerPolicy:"no-referrer"},t),p&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"color",opacity:.35}}),(0,m.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"multiply",opacity:.2}})]}),f&&(0,m.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black/55 via-black/15 via-25% to-transparent transition-opacity duration-700"}),f&&(0,m.jsx)("div",{className:ya("absolute inset-0 pointer-events-none bg-gradient-to-b from-black/45 via-black/20 to-black/70 transition-opacity duration-700",s)}),(0,m.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-[0.12] mix-blend-overlay",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E\")",backgroundSize:"180px 180px"}}),void 0!==u&&u&&s&&(0,m.jsx)("div",{className:ya("absolute inset-0 pointer-events-none transition-all duration-500",s)}),(void 0===c||c)&&(0,m.jsx)("div",{className:ya("absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-35 blur-[120px] pointer-events-none transition-all duration-700",l),style:{background:p?"radial-gradient(ellipse at center, ".concat(p,"66 0%, ").concat(p,"22 50%, transparent 80%)"):"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}}),h]}):(0,m.jsx)(yc,{className:i})}function yf(){var e,t,n,r=yl().config;return(null==r?void 0:r.customComponent)?(0,m.jsx)("div",{className:ya("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none bg-[#030708]",r.className),children:r.customComponent}):(null==r?void 0:r.imageSrc)?(0,m.jsx)(yd,{imageSrc:r.imageSrc,imageAlt:r.imageAlt,imageFit:r.imageFit,className:r.className,imageClassName:r.imageClassName,overlayClassName:r.overlayClassName,glowClassName:r.glowClassName,showAtmosphere:null!=(e=r.showAtmosphere)&&e,showGlow:null==(t=r.showGlow)||t,showDarkWash:null==(n=r.showDarkWash)||n,accent:r.accent,children:r.children}):(0,m.jsx)(yc,{className:null==r?void 0:r.className})}function yp(e){var t=e.customComponent,n=e.imageSrc,r=e.imageAlt,a=e.imageFit,i=e.className,o=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=e.accent,p=e.children,m=yl().setPageBackground;return(0,h.useEffect)(function(){return m({customComponent:t,imageSrc:n,imageAlt:r,imageFit:a,className:i,imageClassName:o,overlayClassName:s,glowClassName:l,showAtmosphere:u,showGlow:c,showDarkWash:d,accent:f,children:p}),function(){m(null)}},[m,t,n,r,a,i,o,s,l,u,c,d,f,p]),null}var ym=n(2804);let yh="YOpQLiaTysM+swWB7ATzKw==";function yy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function yv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function yb(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}var yw=function(e){if("children"in e){var t=e.children,n=e.className,r=yb(e,["children","className"]);return(0,m.jsx)("div",yv(yg({className:v()(yh,n)},r),{children:t}))}var a=e.title,i=e.illustration,o=e.className,s=yb(e,["title","illustration","className"]);return(0,m.jsx)("div",yv(yg({className:v()(yh,o)},s),{children:(0,m.jsx)(yx,{title:a,illustration:i})}))},yx=function(e){var t,n=e.title,r=e.illustration,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(null))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yy(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yy(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];return(0,h.useEffect)(function(){(0,ym.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,m.jsxs)("div",{className:v()("PjsJmcqHjhav+51GzX5n1A==",a),children:[r,(0,m.jsxs)("div",{className:"pPcKj1kNkKP4cQZUtFRU5g==",children:[(null==o?void 0:o.implementationName)&&(0,m.jsx)("p",{children:(0,_.V)(o.implementationName)}),(0,m.jsx)("p",{className:"_3d4ICXZtVrDwUYN1iMMJCA==",children:n})]})]})};function yS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yj=function(e){var t,n=e.totalItems,r=e.pageSize,a=e.onPageNumberChange,i=e.pageNumber,o=e.dashboardLinkUrl,s=e.currentItems,l=e.dashboardLinkLabel,u=(0,b.usePaginationInfo)(r,n,i,s),c=u.pageSizes,d=u.pageItemsCount,f="tablet"===(0,b.useLayoutType)(),p=(0,_.V)("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:n,pageItemsCount:d});return(0,m.jsx)(m.Fragment,{children:n>0&&(0,m.jsxs)("div",{className:v()((yS(t={},"lQ3akicW2mAhjncqby7nDA==",f),yS(t,"HfUTYLFumnQ+awk4OaX1Dg==",!f),t)),children:[(0,m.jsxs)("div",{children:[p,o&&(0,m.jsx)(b.ConfigurableLink,{to:o,className:"NM9v7zGqLsggVcQgLFigdA==",children:null!=l?l:(0,_.V)("seeAll","See all")})]}),(0,m.jsx)(L.Pagination,{className:"WzkBsEFtArGu5wzXr0lPcA==",page:i,pageSize:r,pageSizes:c,totalItems:n,onChange:a,pageRangeText:function(e,t){return(0,_.V)("paginationOfPages","of {{count}} pages",{count:t})},size:f?"lg":"sm"})]})})},yE=n(6625);function yO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yD(e){var t,n=e.entity,r=e.entityUuid,a=e.actionsSlotName,i=e.additionalActionsSlotState,o=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yO(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yO(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,b.useExtensionSlot)(a).extensions,c="tablet"===(0,b.useLayoutType)(),d=(0,b.useOnClickOutside)(function(){return l(!1)},s),f=(0,h.useRef)(null),p=(0,h.useRef)(null),y=(0,h.useId)(),g="entity-actions-menu-trigger-".concat(y),w="entity-actions-menu-".concat(y),x=(0,h.useCallback)(function(){return l(function(e){return!e})},[]),S=(0,h.useCallback)(function(){var e;l(!1),null==(e=f.current)||e.focus()},[]),j=(0,h.useCallback)(function(e){if("Escape"===e.key&&s){e.stopPropagation(),S();return}if(("ArrowDown"===e.key||"ArrowUp"===e.key)&&s){e.preventDefault();var t,n,r,a,i,o,l=null==(n=p.current)?void 0:n.querySelectorAll('[role="menuitem"]:not([disabled])');if(!(null==l?void 0:l.length))return;var u=null!=(t=null==(a=document.activeElement)||null==(r=a.closest)?void 0:r.call(a,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(o=l["ArrowDown"===e.key?0:l.length-1])||o.focus();return}var d=c+("ArrowDown"===e.key?1:-1),f=d<0?l.length-1:d>=l.length?0:d;null==(i=l[f])||i.focus()}},[S,s]);(0,h.useEffect)(function(){if(s&&p.current){var e=p.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[s]);var E=(0,h.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){yk(e,t,n[t])})}return e}({entityUuid:r,entity:n,closeMenu:S},i)},[r,n,S,i]);return 0===u.length?null:(0,m.jsx)("div",{className:"kWz-FQXziTlflmlOvSQU8w==",children:(0,m.jsxs)("div",{"data-overflow-menu":!0,className:v()("cds--overflow-menu",B),ref:d,children:[(0,m.jsxs)("button",{className:v()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},W),"aria-controls":w,"aria-expanded":s,"aria-haspopup":"true",id:g,onClick:x,onKeyDown:j,ref:f,children:[(0,m.jsx)("span",{className:"FNvGkLUDxlNyu5MsobGSiQ==",children:(0,_.V)("actions","Actions")})," ",(0,m.jsx)(yE.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}})]}),(0,m.jsxs)("div",{className:v()("cds--overflow-menu-options","cds--overflow-menu--flip",z,yk({},U,s)),"aria-labelledby":g,"data-floating-menu-direction":"bottom",id:w,onKeyDown:j,ref:p,role:"menu",tabIndex:-1,children:[(0,m.jsx)("ul",{className:v()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":c}),children:(0,m.jsx)(b.ExtensionSlot,{name:a,state:E},a)}),(0,m.jsx)("span",{})]})]})})}var yP=n(7488);let yA={contactDetails:"_0WAlP7BAsAgqReeW05Syxg==",deceased:"PaF2EK-ANVeIH6lZnkVXJg==",heading:"_2zRwLuDr67mWUDIQRycpHg==",row:"_1ShtU0d+XSLtWZB5Xtenlg==",col:"EwddJOyljhsm1Mho19p57w==",relationship:"VUQRxyGyP2uVTKGVha-XXg=="};function yC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||yN(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yN(e,t){if(e){if("string"==typeof e)return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yC(e,t)}}var yR=function(e){var t,n,r,a,i,o,s,l=(n=e.entityUuid,o=(i=(0,m9.A)(n?"".concat(he.restBaseUrl,"/cohort?v=custom:(uuid,name,startDate)&member=").concat(n):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=i.isLoading,{groups:null!=(r=null==o||null==(a=o.data)?void 0:a.results)?r:[],isLoading:s}),u=l.groups,c=void 0===u?[]:u,d=l.isLoading;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("p",{className:yA.heading,children:[(0,_.V)("entityGroups","Entity Groups")," (",null!=(t=null==c?void 0:c.length)?t:0,")"]}),d?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsxs)("ul",{children:[function(){if((null==c?void 0:c.length)>0){var e=c.sort(function(e,t){return(0,sT._U)(null==e?void 0:e.startDate).getTime()-(0,sT._U)(null==t?void 0:t.startDate).getTime()}).slice(0,3);return null==e?void 0:e.map(function(e){return(0,m.jsx)("li",{children:(0,m.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups/").concat(e.uuid),children:e.name},e.uuid)},e.uuid)})}return(0,m.jsx)("li",{children:"--"})}(),c.length>3&&(0,m.jsx)("li",{className:yA.link,children:(0,m.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups"),children:(0,_.V)("seeMoreGroups","See {{count}} more groups",{count:(null==c?void 0:c.length)-3})})})]})]})},yM=function(e){var t,n=e.entityId,r=(0,b.useEntity)(n),a=r.entity,i=r.isLoading,o=null==a||null==(t=a.address)?void 0:t.find(function(e){return"home"===e.use}),s=function(e){return e.split("#")[1]};return i?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:yA.heading,children:(0,_.V)("address","Address")}),(0,m.jsx)("ul",{children:o?Object.entries(o).filter(function(e){var t=yT(e,1)[0];return"id"!==t&&"use"!==t}).map(function(e){var t,n,r,a=yT(e,2),i=a[0],l=a[1];return"extension"===i?null==(r=o.extension)||null==(n=r[0])||null==(t=n.extension)?void 0:t.map(function(e,t){return(0,m.jsxs)("li",{children:[(0,_.V)(s(e.url),s(e.url)),": ",e.valueString]},"address-".concat(i,"-").concat(t))}):(0,m.jsxs)("li",{children:[(0,_.V)(i,i),": ",l]},"address-".concat(i))}):(0,m.jsx)("li",{children:"--"})})]})},yI=function(e){var t,n,r,a,i,o,s,l=(t=e.entityUuid,a=(0,b.useConfig)().contactAttributeTypes,o=(i=(0,m9.A)(t?"".concat(he.restBaseUrl,"/entity/").concat(t,"?v=custom:(attributes:(attributeType:(display,uuid),value))"):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=i.isLoading,{contactAttributes:null==o||null==(r=o.data)||null==(n=r.attributes)?void 0:n.filter(function(e){var t;return null==a||null==(t=a.uuids)?void 0:t.includes(e.attributeType.uuid)}),isLoading:s}),u=l.isLoading,c=l.contactAttributes,d=(0,h.useMemo)(function(){var e;return c?function(e){if(Array.isArray(e))return yC(e)}(e=null==c?void 0:c.map(function(e){return[e.attributeType.display?(0,_.V)(e.attributeType.display,e.attributeType.display):"",e.value]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yN(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():[]},[c]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:yA.heading,children:(0,_.V)("contactDetails","Contact Details")}),u?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsx)("ul",{children:d.length?d.map(function(e,t){var n=yT(e,2),r=n[0],a=n[1];return(0,m.jsxs)("li",{children:[r,": ",a]},"".concat(r,"-").concat(a,"-").concat(t))}):(0,m.jsx)("li",{children:"--"})})]})},yL=function(e){var t,n,r,a,i,o,s,l,u,c,d=(t=e.entityId,a="".concat(he.restBaseUrl,"/relationship?v=").concat("custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))","&person=").concat(t),o=(i=(0,yP.Ay)(t?a:null,he.egenFetch)).data,s=i.error,l=i.isLoading,u=i.isValidating,c=(null==o||null==(r=o.data)||null==(n=r.results)?void 0:n.length)?function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;e===l.personA.uuid?n.push({uuid:"".concat(l.uuid),display:l.personB.display,relativeAge:l.personB.age,relativeUuid:l.personB.uuid,relationshipType:l.relationshipType.bIsToA}):n.push({uuid:"".concat(l.uuid),display:l.personA.display,relativeAge:l.personA.age,relativeUuid:l.personA.uuid,relationshipType:l.relationshipType.aIsToB})}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(t,o.data.results):null,{data:o?c:null,error:s,isLoading:l,isValidating:u}),f=d.data,p=d.isLoading;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:yA.heading,children:(0,_.V)("relationships","Relationships")}),p?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsx)("ul",{children:f&&f.length>0?(0,m.jsx)(m.Fragment,{children:f.map(function(e){return(0,m.jsxs)("li",{className:yA.relationship,children:[(0,m.jsx)("div",{children:(0,m.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/entity/").concat(e.relativeUuid,"/detail"),children:e.display})}),(0,m.jsx)("div",{children:e.relationshipType}),(0,m.jsx)("div",{children:"".concat(e.relativeAge?e.relativeAge:"--"," ").concat(e.relativeAge?1===e.relativeAge?(0,_.V)("yearAbbreviation","yr"):(0,_.V)("yearsAbbreviation","yrs"):"")})]},e.uuid)})}):(0,m.jsx)("li",{children:"--"})})]})};function y_(e){var t,n,r=e.entityId,a=e.inactive;return(0,m.jsxs)("div",{className:v()(yA.contactDetails,(t={},n=yA.inactive,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t)),children:[(0,m.jsxs)("div",{className:yA.row,children:[(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yM,{entityId:r})}),(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yI,{entityUuid:r})})]}),(0,m.jsxs)("div",{className:yA.row,children:[(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yL,{entityId:r})}),(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yR,{entityUuid:r})})]})]})}let yF={container:"Cv77SWzKIL33Efa8UclO5A==",activePatientContainer:"+EdOeUGN-+Myht0Gc4ikMw==",patientBanner:"+1X-eoTNiJAWmrNyW1uKTg==",patientName:"HjFT+u-cDhT-hf+hsn11Xg==",patientAvatar:"OP0MHpvYVC6OF7zImdEV3w==",patientAvatarButton:"-mC5reGPR9tvkeM0qSc5MA==",patientInfo:"mgVTXloP5WwGSJLgIW5TVg==",demographics:"_0Cixc19K7YZnsR1MGmBQNg==",row:"yZ25PajVI7esFz4wL1yOCg==",flexRow:"Ejo0BoOk-a+rWthDWMDH7w==",tagsSlot:"+MEITB-Gk8ZjLAvj3B8W3w==",identifiers:"BwRJpSUWSzceV7Pjz5UofA==",identifier:"kLaARBBq9K0roZYiS7GA1Q==",primaryIdentifier:"qYvg+lAUHmwTgbGCFXK8Yg==",secondaryIdentifier:"TLLxFft-df-e9delKSNViA==",value:"_4WXcSlqEoM5a51gAHLpS0A==",tag:"pzpHt574Yu33MqipyxxXag==",gender:"QtDv05OhEBSxQ0LZ6FfmNA==",separator:"Ld4CZgLBPDUgajeNQgM4Hw==",tooltipPadding:"GF5dbiMid4Mc+k7iKSbQCQ==",tooltipSmallText:"GlMubU+ECQXv0RlYebaD0g==",actionsButtonText:"MX8Uu4J+mIeszpUoF2RRgA=="};function yV(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return(0,m.jsx)("span",{className:yF.primaryIdentifier,children:(0,m.jsxs)(L.Tag,{className:yF.tag,type:"gray",children:[t&&(null==n?void 0:n.text)&&(0,m.jsxs)("span",{className:yF.label,children:[n.text,": "]}),(0,m.jsx)("span",{className:yF.value,children:r})]})})}function yB(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return(0,m.jsxs)(L.FormLabel,{className:yF.secondaryIdentifier,id:"entity-banner-identifier-".concat(r),children:[t&&(0,m.jsxs)("span",{className:yF.label,children:[null==n?void 0:n.text,": "]}),(0,m.jsx)("span",{className:yF.value,children:r})]})}function yz(e){var t,n=e.identifiers,r=e.showIdentifierLabel,a=(0,b.useConfig)().excludeEntityIdentifierCodeTypes,i=(0,b.usePrimaryIdentifierCode)().primaryIdentifierCode,o=null!=(t=null==n?void 0:n.filter(function(e){var t,n,r,i=null==(r=e.type)||null==(n=r.coding)||null==(t=n[0])?void 0:t.code;return i&&!(null==a?void 0:a.uuids.includes(i))}))?t:[];return(0,m.jsx)(m.Fragment,{children:(null==o?void 0:o.length)?o.map(function(e,t){var n,a,s=e.value,l=e.type;return(0,m.jsxs)(y().Fragment,{children:[(0,m.jsx)("span",{className:yF.identifier,children:(null==l||null==(a=l.coding)||null==(n=a[0])?void 0:n.code)===i?(0,m.jsx)(yV,{showIdentifierLabel:r,type:l,value:s}):(0,m.jsx)(yB,{showIdentifierLabel:r,type:l,value:s})}),t<o.length-1&&(0,m.jsx)("span",{className:yF.separator,children:"\xb7"})]},s)}):""})}function yU(e){var t,n,r=e.entity,a=e.renderedFrom,i=(null==r||null==(t=r.name)?void 0:t[0])?[null==(n=r.name[0].given)?void 0:n.join(" "),r.name[0].family].filter(Boolean).join(" "):(0,_.V)("unknown","Unknown"),o=(0,h.useMemo)(function(){return{entityUuid:r.id,entity:r,renderedFrom:a}},[r.id,r,a]);return(0,m.jsxs)("div",{className:yF.entityInfo,children:[(0,m.jsx)("div",{className:v()(yF.row,yF.entityNameRow),children:(0,m.jsxs)("div",{className:yF.flexRow,children:[(0,m.jsx)("span",{className:yF.entityName,children:i}),(0,m.jsx)(b.ExtensionSlot,{className:yF.tagsSlot,name:"entity-banner-tags-slot",state:o})]})}),(0,m.jsxs)("div",{className:yF.demographics,children:[r.birthDate&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("span",{children:(0,sT.LW)(r.birthDate,{time:!1})}),(0,m.jsx)("span",{className:yF.separator,children:"\xb7"})]}),(0,m.jsx)(yz,{identifiers:r.identifier,showIdentifierLabel:!0}),(0,m.jsx)(b.ExtensionSlot,{className:yF.extensionSlot,name:"entity-banner-bottom-slot",state:o})]})]})}var yW=n(6768),y$=n.n(yW);function yH(e){var t,n,r,a=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).entityPhotoConceptUuid,i=a?"".concat(he.restBaseUrl,"/datapoint?entity=").concat(e,"&concept=").concat(a,"&v=full"):null,o=(0,yP.Ay)(e?i:null,he.egenFetch),s=o.data,l=o.error,u=o.isLoading,c=null==s||null==(t=s.data)?void 0:t.results[0];return{data:c?{dateTime:null==c?void 0:c.recordedDatetime,imageSrc:null==c||null==(r=c.value)||null==(n=r.links)?void 0:n.uri}:null,error:l,isLoading:u}}let yG=function(e){var t=e.width,n=e.height,r=e["aria-label"],a=(0,Z.useTranslation)().t;return(0,m.jsxs)("svg",{"aria-label":null!=r?r:a("entityPhotoPlaceholder","Entity photo placeholder"),width:void 0===t?56:t,height:void 0===n?56:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"})]})},yq="zGr2tPPbF8QVWzyTv0fDHw==";function yY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yZ(e){var t=e.entityUuid,n=e.entityName,r=e.alt,a=yH(t),i=a.data,o=a.isLoading,s=yK((0,h.useState)(null),2),l=s[0],u=s[1],c=yK((0,h.useState)(!1),2),d=c[0],f=c[1],p=(0,h.useMemo)(function(){return y$().generate(t)},[t]);(0,h.useEffect)(function(){if(null==i?void 0:i.imageSrc){var e=new URL(i.imageSrc,window.location.origin).pathname;f(!0);var t=!1,n=new Image;return n.onload=function(){t||(u(e),f(!1))},n.onerror=function(){t||(u(null),f(!1))},n.src=e,function(){t=!0}}u(null),f(!1)},[null==i?void 0:i.imageSrc]);var y=(0,h.useMemo)(function(){return r||(l?(0,_.V)("entityPhotoAlt","Profile photo of {{entityName}}",{entityName:n}):(0,_.V)("entityAvatarAlt","Avatar for {{entityName}}",{entityName:n}))},[r,l,n]);return o||d?(0,m.jsx)(L.SkeletonIcon,{className:"f9LV60t8m0NTwg0u9VNH6Q==","data-testid":"skeleton-icon"}):(null==i?void 0:i.imageSrc)&&!l?(0,m.jsx)(yG,{"aria-label":(0,_.V)("entityPhotoPlaceholder","Photo placeholder for {{entityName}}",{entityName:n})}):l?(0,m.jsx)("div",{"aria-label":y,children:(0,m.jsx)("img",{className:yq,src:l,alt:y,title:n})}):(0,m.jsx)("div",{"aria-label":y,children:(0,m.jsx)("div",{className:yq,title:n,style:{backgroundImage:p.toDataUrl(),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:(0,m.jsx)("span",{className:"_6J1JiNoLqU9+wHh+JKTp0A==",children:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return e.split(/\s+/).filter(Boolean).slice(0,t).map(function(e){return e[0]}).join("")}(n)})})})}function yX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yQ(e){if(Array.isArray(e))return e}function yJ(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y0(e,t){if(e){if("string"==typeof e)return yX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yX(e,t)}}var y1=["egen-pict-appointments","egen-pict-assessment-1","egen-pict-assessment-2","egen-pict-blood-bank","egen-pict-cardiology","egen-pict-ct-scan","egen-pict-dentistry","egen-pict-emergency-department","egen-pict-facility","egen-pict-geriatrics","egen-pict-gynaecology","egen-pict-in-patient","egen-pict-laboratory","egen-pict-labs-2","egen-pict-obstetrics","egen-pict-patient-search","egen-pict-patients","egen-pict-payments-desk","egen-pict-pharmacy","egen-pict-pharmacy-2","egen-pict-registration","egen-pict-service-queues","egen-pict-stock-management","egen-pict-transfer","egen-pict-triage","egen-pict-x-ray"],y2=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-appointments",pictogramProps:e})})),y3=y2,y4=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-assessment-1",pictogramProps:e})})),y5=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-assessment-2",pictogramProps:e})})),y6=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-blood-bank",pictogramProps:e})})),y8=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-cardiology",pictogramProps:e})})),y9=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-ct-scan",pictogramProps:e})})),y7=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-dentistry",pictogramProps:e})})),ge=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-emergency-department",pictogramProps:e})})),gt=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-facility",pictogramProps:e})})),gn=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-geriatrics",pictogramProps:e})})),gr=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-gynaecology",pictogramProps:e})})),ga=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-in-patient",pictogramProps:e})})),gi=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-laboratory",pictogramProps:e})})),go=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-labs-2",pictogramProps:e})})),gs=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-obstetrics",pictogramProps:e})})),gl=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-patient-search",pictogramProps:e})})),gu=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-patients",pictogramProps:e})})),gc=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-payments-desk",pictogramProps:e})})),gd=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-pharmacy",pictogramProps:e})})),gf=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-pharmacy-2",pictogramProps:e})})),gp=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-registration",pictogramProps:e})})),gm=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),gh=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-stock-management",pictogramProps:e})})),gy=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-transfer",pictogramProps:e})})),gg=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-triage",pictogramProps:e})})),gv=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-x-ray",pictogramProps:e})})),gb=gt,gw=gu,gx=(0,h.memo)((0,h.forwardRef)(function(e,t){var n,r=yQ(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||y0(n)||yJ(),a=r[0],i=r.slice(1),o=a.pictogram,s=a.fallback,l=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["pictogram","fallback"]),u=(yQ(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||y0(i,1)||yJ())[0],c=(0,h.useRef)(document.getElementById(o));return(0,h.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,n=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var s=a.value;"childList"===s.type&&(c.current=document.getElementById(o))}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,m.jsx)(b.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,m.jsx)(gS,{ref:u,pictogram:o,pictogramProps:l})})})),gS=(0,h.memo)((0,h.forwardRef)(function(e,t){var n=e.pictogram,r=Object.assign({},{size:92},e.pictogramProps),a=r.className,i=r.size;return(i<=26||i>144)&&(console.error("Invalid size '".concat(i,"' specified for ").concat(n,". Defaulting to 92.")),i=92),(0,m.jsx)("svg",{ref:t,className:v()("wXX7tgyTzQUB487Ai2jwkw==",a),height:i,width:i,children:(0,m.jsx)("use",{href:"#".concat(n)})})})),gj=function(e){var t=e.children;return"tablet"===(0,b.useLayoutType)()?(0,m.jsx)(L.Layer,{children:t}):(0,m.jsx)(m.Fragment,{children:t})};function gE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gE(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var gD=function(e){var t,n=e.snackbar,r=e.closeSnackbar,a=n.actionButtonLabel,i=n.kind,o=void 0===i?"success":i,s=n.onActionButtonClick,l=void 0===s?function(){}:s,u=n.isLowContrast,c=n.progressActionLabel,d=n.subtitle,f=n.timeoutInMs,p=void 0===f?5e3:f,y=n.autoClose,g=void 0===y?"error"!==o:y,b=n.title,w=(n.id,function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(n,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),x=gk((0,h.useState)(void 0===a?"":a),2),S=x[0],j=x[1],E=gk((0,h.useState)(!0),2),O=E[0],k=E[1],D=gk((0,h.useState)(!1),2),P=D[0],A=D[1],C=(0,h.useCallback)(function(){setTimeout(r,250)},[r]),T=(0,h.useCallback)(function(){A(!0),C()},[C]);return(0,h.useEffect)(function(){if(g){var e=setTimeout(T,p);return function(){return clearTimeout(e)}}},[p,g,T]),(0,h.useEffect)(function(){k(!1),window.setTimeout(function(){k(!0)},0)},[]),(0,m.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){gO(e,t,n[t])})}return e}({actionButtonLabel:S,"aria-label":(0,_.V)("closeSnackbar","Close snackbar"),className:v()("-oZItDje+VqIMbRFsj0vKg==",(gO(t={},"M2YBUemKsEmA3Eg4hsWRFQ==",O),gO(t,"yEmGTBZUeA8w30tHbNSn5g==",P),t)),kind:o,lowContrast:void 0===u?"error"!==o:u,onActionButtonClick:function(){l(),T(),c&&j(c)},onClose:C,statusIconDescription:(0,_.V)("snackbarNotification","Snackbar notification"),subtitle:void 0===d?"":d,title:b},w))};function gP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gA(e,t){if(e){if("string"==typeof e)return gP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gP(e,t)}}let gC=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||gA(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1],o=(0,h.useCallback)(function(e){i(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return gP(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||gA(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){return(0,m.jsx)(gD,{snackbar:e,closeSnackbar:function(){return o(e)}},e.id)})})};var gT=new hx.Subject,gN=0;function gR(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(gC,{subject:gT}))}function gM(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,n;gT.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:gN++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}function gI(e){var t=document.querySelector("template#loading-spinner");if(t){var n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,function(e){return e});return e.appendChild(n),function(){return r.forEach(function(e){return e.remove()})}}return function(){}}let gL={hiddenFilterSvg:"_8Tz1qFn+MdiJYyy6ez9GUQ==",card:"g40kSNNDpE9NhhUcTafNYw==","card--draggable":"rThVqQdfhOLBiRBlHkth2g==","card--expandable":"RY0ShAGOhiA0XKXO5Sqiag==",bendLayer:"qD6yEcIICh3zPVuc8ZeuEg==",faceLayer:"_0PONrThn18sTfyx8zxhmXg==",edgeLayer:"pg4uJnFEM6WrdOUdtEOQlA==",content:"ArelXhGngOZ+93JNlrBqBg==","blur--sm":"SLe0Wxb5gGxBgiL0MGasOQ==","blur--md":"zrxPZBEXl4NzqG6waBPZVg==","blur--lg":"_4P1jOOMRFuy5KYChqfEj3g==","blur--xl":"R19jP34asJMxjyzQwC1oKw==","glow--none":"pjXAlSa28W1lJr+wo68vVg==","glow--xs":"BmE-JvgGalzpyYFqsovNxw==","glow--sm":"HzeozIN6URFjM+uRLyEe5w==","glow--md":"dQu1UUEYusviaHtggLbX+w==","glow--lg":"ZtA9BZduBptr1334IbiEsg==","glow--xl":"f7aLRCodz2Y3rXD1qsAbLQ==","glow--2xl":"_7B6p9WVoCjjA5J7+JXNMgA==","shadow--none":"_7yiJ0EQp31lzXiYhtAIB8A==","shadow--xs":"r-9qY0z9axV1DyplHMrWsg==","shadow--sm":"vimfUTeWGP8vYRTc-UMX1Q==","shadow--md":"sjeik7aBFWGSrsclplvNbg==","shadow--lg":"_7n0E+oT-MyS2EusrZlSw-A==","shadow--xl":"Mys4y+e4Tg5csfEWKYKLLw==","shadow--2xl":"IE6NX0hiQXPvc27tAfJfgg=="};function g_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){gF(e,t,n[t])})}return e}var gB=function(e){var t,n,r,a,i=e.children,o=e.className,s=e.draggable,l=void 0!==s&&s,u=e.expandable,c=void 0!==u&&u,d=e.width,f=e.height,p=e.expandedWidth,y=e.expandedHeight,g=e.blurIntensity,b=e.shadowIntensity,w=e.glowIntensity,x=e.borderRadius,S=void 0===x?"0px":x,j=e.style,E=e.onClick,O=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return g_(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g_(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),k=O[0],D=O[1],P="egen-glass-blur-".concat((0,h.useId)().replace(/:/g,"")),A=l||c,C=A?mY.div:"div",T=A?{variants:c&&c?{collapsed:{width:d||"auto",height:f||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}},expanded:{width:p||"auto",height:y||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}}}:void 0,animate:c?k?"expanded":"collapsed":void 0,onClick:c?function(e){!c||e.target.closest("a, button, input, select, textarea")||D(function(e){return!e})}:E,drag:l,dragConstraints:l?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:l?.3:void 0,dragTransition:l?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:l?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98}}:{onClick:E};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("svg",{className:gL.hiddenFilterSvg,"aria-hidden":"true",children:(0,m.jsx)("defs",{children:(0,m.jsxs)("filter",{id:P,x:"0",y:"0",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[(0,m.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.003 0.007",numOctaves:1,result:"turbulence"}),(0,m.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:"200",xChannelSelector:"R",yChannelSelector:"G"})]})})}),(0,m.jsxs)(C,(n=gV({className:v()(gL.card,(gF(a={},gL["card--draggable"],l),gF(a,gL["card--expandable"],c),a),o),style:gV({borderRadius:S},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,j)},T),r=r={children:[(0,m.jsx)("div",{className:v()(gL.bendLayer,gL["blur--".concat(void 0===g?"xl":g)]),style:{borderRadius:S,filter:"url(#".concat(P,")")}}),(0,m.jsx)("div",{className:v()(gL.faceLayer,gL["glow--".concat(void 0===w?"sm":w)]),style:{borderRadius:S}}),(0,m.jsx)("div",{className:v()(gL.edgeLayer,gL["shadow--".concat(void 0===b?"md":b)]),style:{borderRadius:S}}),(0,m.jsx)("div",{className:gL.content,children:i})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))]})},gz={success:{icon:ev,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:s_,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:tP,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:tP,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:eH,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:eG,defaultEyebrow:"Information",colorToken:"info"}};let gU={wrapper:"GyBEs6eqDODWqnwCpOxkgA==",card:"H4pKi7IOS084SKqk0uyFfw==","card--success":"Yc+Kmcmvk2bUbJwvPd+ztA==","card--error":"qlQ3boD91foq+pO8piYM9Q==","card--warning":"+saabNyI2jV1RFmo+4Ggzw==","card--info":"hQvSQJ9lXVa4+WqICvWmFQ==",body:"UweKpMInr5Gk7FaBD5PKUw==",icon:"_7Hl059E-jiqdGfi2Fb7NQQ==",textArea:"XWDeilHanNAG+waXginzsw==",eyebrow:"VL4zl-URrFpGVQ+9Q78q1Q==",title:"GsPNPqYPa1DgbBA8SflK-g==",description:"vki-oFtrZPJfrXBNph1o9g==",closeButton:"JVG-auHlci1Qq5baFfgK1w==",actionsRow:"D4Ei6TMzlNUZXEhyvYFl5w==",actionButton:"vDOcCETP0Tg78PBf1+D5wQ==","actionButton--primary":"M5CeDQDbJCaliICbl1CZhQ==","actionButton--secondary":"EaDTATDS5SHmXghyS+5P2w==","actionButton--danger":"L-Gz2FqBtGPKiZm5v8YYlg==",progressTrack:"MN3iwSn3QIJeWC9eYIP6RQ==",progressFill:"wQc9y8YYdjvKSmG+bfICrQ=="};var gW=function(e){var t=e.colorVar,n=e.mode,r=e.durationMs,a=e.value;return(0,m.jsx)("div",{className:gU.progressTrack,children:"countdown"===n?(0,m.jsx)(mY.div,{className:gU.progressFill,style:{background:t},initial:{width:"100%"},animate:{width:"0%"},transition:{duration:(null!=r?r:4e3)/1e3,ease:"linear"}}):(0,m.jsx)(mY.div,{className:gU.progressFill,style:{background:t},initial:!1,animate:{width:"".concat(Math.max(0,Math.min(100,null!=a?a:0)),"%")},transition:{duration:.3,ease:"easeOut"}})})},g$=function(e){var t,n=e.toast,r=e.closeToast,a=n.description,i=n.kind,o=n.critical,s=n.title,l=n.actionButtonLabel,u=n.onActionButtonClick,c=n.variant,d=void 0===c?"default":c,f=n.eyebrow,p=n.progress,y=n.actions,g=n.duration;n.toastKey;var b=gz[void 0===i?"info":i],w=b.icon,x="var(--colors-".concat(b.colorToken,"-500)"),S=(0,h.useMemo)(function(){return(null==y?void 0:y.length)?y:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[y,l,u]),j=(0,h.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&r()},[r]),E=null!=g?g:"default"===d&&0===S.length?4e3:void 0;(0,h.useEffect)(function(){if("transfer"===d){if((null!=p?p:0)>=100){var e=setTimeout(r,1200);return function(){return clearTimeout(e)}}return}if(E){var t=setTimeout(r,E);return function(){return clearTimeout(t)}}},[d,p,E,r]);var O=null!=f?f:b.defaultEyebrow,k=(null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](a):a instanceof t)?a.message:a;return(0,m.jsx)(mY.div,{initial:{opacity:0,y:30,scale:.9,filter:"blur(4px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-15,scale:.95,filter:"blur(2px)",transition:{duration:.18}},layout:!0,className:gU.wrapper,children:(0,m.jsxs)(gB,{blurIntensity:"xl",glowIntensity:o?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:v()(gU.card,gU["card--".concat(b.colorToken)]),children:[(0,m.jsxs)("div",{className:gU.body,children:[(0,m.jsx)(w,{className:gU.icon,size:20}),(0,m.jsxs)("div",{className:gU.textArea,children:[(0,m.jsx)("span",{className:gU.eyebrow,children:O}),s&&(0,m.jsx)("p",{className:gU.title,children:s}),(0,m.jsx)("div",{className:gU.description,children:k})]}),(0,m.jsx)("button",{type:"button",onClick:r,className:gU.closeButton,"aria-label":"Fermer",children:(0,m.jsx)(eO,{size:14})})]}),S.length>0&&(0,m.jsx)("div",{className:gU.actionsRow,children:S.map(function(e,t){var n,r;return(0,m.jsx)("button",{type:"button",className:v()(gU.actionButton,gU["actionButton--".concat(null!=(n=e.kind)?n:"primary")]),onClick:function(){return j(e)},children:e.label},null!=(r=e.id)?r:t)})}),"transfer"===d?(0,m.jsx)(gW,{colorVar:x,mode:"progress",value:p}):E&&(0,m.jsx)(gW,{colorVar:x,mode:"countdown",durationMs:E})]})})};function gH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gG(e,t){if(e){if("string"==typeof e)return gH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gH(e,t)}}let gq=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||gG(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1],o=(0,h.useCallback)(function(e){i(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return gH(e)})(n=t.filter(function(t){return e.toastKey?t.toastKey!==e.toastKey:t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||gG(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){var t;return(0,m.jsx)(g$,{toast:e,closeToast:function(){return o(e)}},null!=(t=e.toastKey)?t:e.id)})})};var gY=new hx.Subject,gK=0;function gZ(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(gq,{subject:gY}))}function gX(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!hB(t))?setTimeout(function(){var t,n;gY.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:gK++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var gQ=n(7774);function gJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function g1(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function g2(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var n=g8[e];return!n||!n()}function g3(e,t){var n,r=null==(n=vi.getState())?void 0:n.workspaceGroup,a=null==r?void 0:r.name;a&&e===a&&vu(function(){var n=vm(e);n&&(n.setState({},!0),n.subscribe(function(){})()),"function"==typeof(null==r?void 0:r.cleanup)&&r.cleanup(),vi.setState(function(e){return g1(g0({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},a?function(e){return e.currentWorkspaceGroup===a}:function(){return!0})}function g4(e,t){var n,r=t.name,a=t.additionalProps;(0,ho.Xb)(r);var i=function(){vn(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return g5(r,a)},closeWorkspaceGroup:!1})};g2(e.name)?i():vd("closing-workspace-launching-new-workspace",i,null!=(n=e.title)?n:e.name)}function g5(e,t){var n,r,a=(0,ho.Xb)(e),i=vi.getState().workspaceGroup;if(i&&!(null==(n=i.members)?void 0:n.includes(e)))return void g3(i.name,function(){g5(e,t)});var o=null==(r=vi.getState().workspaceGroup)?void 0:r.name,s=g1(g0({},a),{title:vf(a,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vn(e,t)},closeWorkspaceWithSavedChanges:function(t){return vn(e,g0({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var n,r;return n=e,r=t,void(g8[n]=r)},setTitle:function(t,n){s.title=t,s.titleNode=n,vi.setState(function(t){var n=t.openWorkspaces.map(function(t){return t.name===e?s:t});return g1(g0({},t),{openWorkspaces:n})})},currentWorkspaceGroup:o,additionalProps:null!=t?t:{}});function l(e,t){vi.setState(function(n){var r,a=[e].concat(function(e){if(Array.isArray(e))return gJ(e)}(r=null!=t?t:n.openWorkspaces)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e){if(e){if("string"==typeof e)return gJ(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gJ(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=vl(e);return g1(g0({},n),{openWorkspaces:a,workspaceWindowState:i})})}o&&vm(o,t);var u=vi.getState().openWorkspaces,c=u.findIndex(function(t){return t.name===e}),d=u.find(function(e){return e.type==s.type});if(0===u.length)l(s);else if(u[0].canHide||0===c)if(c>=0){var f=u[c];l(g0(g1(g0({},f),{additionalProps:s.additionalProps}),f.title===vf(f,f.additionalProps)&&{title:vf(s,s.additionalProps)}),u.filter(function(t){return t.name!=e}))}else d?(l(d,vi.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),g4(d,{name:e,additionalProps:t})):l(s);else g4(u[0],{name:e,additionalProps:t})}function g6(e){var t=e.targetUrl,n=e.contextKey,r=e.workspaceName,a=e.additionalProps;vr(n),g5(r,a),(0,gQ.oo)({to:t})}var g8={};function g9(e,t){g8[e]=t}function g7(e){return g8[e]}function ve(){var e=vi.getState();vi.setState(g1(g0({},e),{prompt:null}))}var vt={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function vn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=g0({},vt,n);var r=function(){var t,r,a=vi.getState();a.openWorkspaces.find(function(t){return t.name===e});var i=a.openWorkspaces.filter(function(t){return t.name!=e}),o=null==(t=vi.getState().workspaceGroup)?void 0:t.name;o&&n.closeWorkspaceGroup&&g3(o),g8[e]=function(){return!1},vi.setState(function(e){return g1(g0({},e),{prompt:null,openWorkspaces:i,workspaceWindowState:vl(null==i?void 0:i[0])})}),null==n||null==(r=n.onWorkspaceClose)||r.call(n)};return g2(e,null==n?void 0:n.ignoreChanges)?(r(),!0):(vd("closing-workspace",r,null!=(t=(0,ho.Xb)(e).title)?t:e),!1)}function vr(e){vi.getState().context!=e&&vi.setState({context:e,openWorkspaces:[],prompt:null})}var va={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},vi=(0,hi.createGlobalStore)("workspace",va);function vo(){return vi}function vs(e){var t=vi.getState();vi.setState(g1(g0({},t),{workspaceWindowState:e}))}function vl(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function vu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=vi.getState().openWorkspaces.filter(t).every(function(e){return g2(e.name)}),r=function(){vp(),null==e||e()};n?r():vd("closing-all-workspaces",r)}function vc(){var e=(0,b.useStore)(vi),t=e.workspaceWindowState,n=e.openWorkspaces,r=e.prompt,a=e.workspaceGroup;return(0,h.useMemo)(function(){return{active:n.length>0,prompt:r,workspaceWindowState:t,workspaces:n,workspaceGroup:a}},[n,t,r,a])}function vd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==n||n()},confirmText:(0,_.V)("discard","Discard")};break;case"closing-all-workspaces":var a=vi.getState().openWorkspaces.filter(function(e){return!g2(e.name)}).map(function(e,t){var n=e.title;return"".concat(t+1,". ").concat(n)});t={title:(0,_.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,_.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:a.join(",")}),onConfirm:function(){null==n||n()},confirmText:(0,_.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:a.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:r}),onConfirm:function(){vi.setState(function(e){return g1(g0({},e),{prompt:null})}),null==n||n()},confirmText:(0,_.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==n||n();return}vi.setState(function(e){return g1(g0({},e),{prompt:t})})}function vf(e,t){var n;return null!=(n=null==t?void 0:t.workspaceTitle)?n:e.title}function vp(){vi.setState(va)}function vm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var n=(0,hi.getGlobalStore)(e,{});return t&&n.setState(function(e){return g0({},e,t)}),n}}let vh="f7spBy3jUTfjOH25a05A1A==",vy="ZROo9Y2WovRqEcmbEXN7sQ==",vg="+mcQhrE2BMNqPBknif4FqQ==";function vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vb(e){var t=e.getIcon,n=e.formOpenInTheBackground,r=e.tagContent;return(0,m.jsxs)(m.Fragment,{children:[t({size:16}),n?(0,m.jsx)("span",{className:"_7695LgJosRmkPmkyVGdZ-g==",children:"!"}):(0,m.jsx)("span",{className:"vo9ZXEHO6camG8qEsBCH8A==",children:r})]})}var vw=function(e){var t,n=e.getIcon,r=e.label,a=e.iconDescription,i=e.handler,o=e.type,s=e.tagContent,l=(0,b.useLayoutType)(),u=vc(),c=u.workspaces,d=u.workspaceWindowState,f=null!=(t=null==c?void 0:c.findIndex(function(e){return e.type===o}))?t:-1,p="hidden"!==d&&0===f,h=f>0||0===f&&"hidden"===d;return"tablet"===l||"phone"===l?(0,m.jsxs)(L.Button,{className:v()(vh,vv({},vg,p)),iconDescription:a,kind:"ghost",onClick:i,role:"button",tabIndex:0,size:"md",children:[(0,m.jsx)("span",{className:vy,children:(0,m.jsx)(vb,{formOpenInTheBackground:h,getIcon:n,tagContent:s})}),(0,m.jsx)("span",{children:r})]}):(0,m.jsx)(L.IconButton,{align:"left","aria-label":a,className:v()(vh,vv({},vg,p)),enterDelayMs:300,kind:"ghost",label:r,onClick:i,size:"md",children:(0,m.jsx)("div",{className:vy,children:(0,m.jsx)(vb,{formOpenInTheBackground:h,getIcon:n,tagContent:s})})})};function vx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e){var t,n,r=e.isWithinWorkspace,a=e.name,i=e.actionMenuProps,o=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vx(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vx(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,h.useRef)(window.innerHeight),c=(0,h.useContext)(b.ComponentContext).featureName,d=(0,b.useLayoutType)();return(0,h.useEffect)(function(){var e=function(){l(!(0,b.isDesktop)(d)&&u.current>window.innerHeight),u.current!=window.innerHeight&&(u.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[u]),(0,m.jsx)("aside",{className:v()("GJUJ7TWs47hZNAq1HgT48A==",(vS(n={},"_7+TCfrT4vrpC5TH4e1by0w==",r),vS(n,"bQ0UMzF1JBk1bcCogWlGrw==",s),vS(n,"v-1cRnDYDLbApkU1gJodvg==",!s),n)),children:(0,m.jsx)("div",{className:"WocuWYX1W7JwP94ypr0B8A==",children:(0,m.jsx)(b.ExtensionSlot,{className:"Cn3Jbzq8LOgwfW4fj6XYSQ==",name:"action-menu-".concat(a&&"default"!=a?a:c,"-items-slot"),state:void 0===i?{}:i})})})}var vE=n(2086);function vO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vk(e){if(Array.isArray(e))return e}function vD(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function vA(e,t){if(e){if("string"==typeof e)return vO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vO(e,t)}}var vC=y().forwardRef(function(e,t){var n,r=vk(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vA(n)||vD(),a=r[0],i=r.slice(1),o=a.children,s=a.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["children","size"]),c=(vk(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||vA(i,1)||vD())[0];return 16===l||"16"===l||"16px"===l?y().createElement(vE.A,vP({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},u),(0,m.jsx)("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"}),(0,m.jsx)("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"}),o):y().createElement(vE.A,vP({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,m.jsx)("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"}),(0,m.jsx)("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"}),o)}),vT=n(2283);function vN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vR(e){if(Array.isArray(e))return e}function vM(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vI(e,t){if(e){if("string"==typeof e)return vN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vN(e,t)}}var vL=y().forwardRef(function(e,t){var n,r=vR(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vI(n)||vM(),a=r[0],i=r.slice(1),o=a.children,s=a.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["children","size"]),c=(vR(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||vI(i,1)||vM())[0];return y().createElement(vE.A,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,m.jsx)("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"}),(0,m.jsx)("path",{d:"M4 22H28V24H4z"}),o)}),v_=n(2768),vF=/[\\^$.*+?()[\]{}|]/g,vV=RegExp(vF.source);let vB=function(e){return(e=(0,v_.A)(e))&&vV.test(e)?e.replace(vF,"\\$&"):e};function vz(e){var t,n,r=e.contextKey,a=vc().prompt;return(0,h.useEffect)(function(){new RegExp("/".concat(vB(r),"(/|$)")).test(window.location.pathname)||console.warn('WorkspaceContainer has provided an invalid context key: "'.concat(r,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,h.useEffect)(function(){return vr(r),function(){vr(null)}},[r]),(0,h.useEffect)(function(){var e=function(e){var t=e.detail,n=t.cancelNavigation,a=t.newUrl,i=new RegExp("/".concat(vB(r),"(/|$)")),o=new URL(a),s=i.test(o.pathname),l=vi.getState().openWorkspaces.every(function(e){return g2(e.name)});s||(l?vp():(null==n||n(),vu(function(){(0,gQ.oo)({to:a})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=a?(0,m.jsxs)(L.ComposedModal,{open:!0,onClose:ve,children:[(0,m.jsx)(L.ModalHeader,{title:a.title}),(0,m.jsx)(L.ModalBody,{children:(0,m.jsx)("p",{className:"+SBeVyf3Vs1HLINqeNxwCA==",children:a.body})}),(0,m.jsxs)(L.ModalFooter,{children:[(0,m.jsx)(L.Button,{kind:"secondary",onClick:ve,children:null!=(t=a.cancelText)?t:(0,_.V)("cancel")}),(0,m.jsx)(L.Button,{kind:"danger",onClick:a.onConfirm,children:null!=(n=a.confirmText)?n:(0,_.V)("confirm")})]})]}):null}var vU=n(2879);function vW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vW(Object(n),!0).forEach(function(t){vG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vq(e){return(vq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vY(e,t){return(vY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vK(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vZ=function(e){var t=h.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&vY(o,t);var n,r,a,i=(n=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=vq(o);e=n?Reflect.construct(t,arguments,vq(this).constructor):t.apply(this,arguments);if(e&&("object"==(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return vK(this)});function o(e){var t;if(function(e,t){if(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),vG(vK(t=i.call(this,e)),"handleRef",function(e){t.el=e}),vG(vK(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),vG(vK(t),"getParcelProps",function(){var e=v$(v$({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return r=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,v$({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return vU.i&&vU.i.Consumer?h.createElement(vU.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=vU.i&&vU.i.Consumer?h.createElement(vU.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return h.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],vH(o.prototype,r),a&&vH(o,a),o}();vG(vZ,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function vX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function v1(e){var t,n,r,a,i,o,s,l,u=e.workspace,c=e.additionalPropsFromPage,d=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)())||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vJ(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vJ(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),f=d[0],p=d[1],y=(n=u.currentWorkspaceGroup,a=(r=vQ((0,h.useState)({}),2))[0],i=r[1],s=(o=vQ((0,h.useState)(n),2))[0],l=o[1],(0,h.useEffect)(function(){s!==n&&l(n)},[n]),(0,h.useEffect)(function(){var e,t=vm(s);return t&&(i(t.getState()),e=t.subscribe(i)),function(){t&&(null==e||e())}},[s]),a);(0,h.useEffect)(function(){var e=!0;return u.load().then(function(t){e&&p(t)}),function(){e=!1}},[u]);var g=(0,h.useMemo)(function(){return u&&v0({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,y,u.additionalProps)},[u,c,y]);return f?(0,m.jsx)(vZ,v0({config:f,mountParcel:ha.mountRootParcel},g),u.name):(0,m.jsx)(L.InlineLoading,{className:"H6dHj0oBasuEG5BThmRHhw==",description:"".concat((0,_.V)("loading","Loading")," ...")})}function v2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v3(e){var t,n,r,a=e.contextKey,i=e.overlay,o=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,b.useLayoutType)(),c=vc(),d=c.workspaces,f=c.workspaceWindowState,p=c.workspaceGroup,y=null==p?void 0:p.name,g=d[0],w="hidden"===f||null==g,x=null!=(t=null==g?void 0:g.width)?t:i?"wider":"narrow",S=(0,h.useMemo)(function(){return o||y&&!w},[y,w,o]);return(0,b.useBodyScrollLock)(!w&&!(0,b.isDesktop)(u)),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:o?"AHHuuXanpv12GtwxcK3ogA==":"E7yiHjGY1d2E+4Abx0jh7g==",children:[(0,m.jsx)("aside",{className:v()(i?"_7nS969hUMMe36pOPOtI3Fg==":"l+rgkmJVqlq3O++ce09vbA==",(v2(n={},"AJHmQ2iPp0Yic2jCrU6NIA==",w),v2(n,"Vb16L-oIiZ74fu1QQMOirg==","narrow"===x),v2(n,"Bn7v8I0voAWdRO7H9eKQiw==","wider"===x),v2(n,"vN8kIRmjOaaBlFkAfGVJ5g==","extra-wide"===x),n)),children:(0,m.jsx)("div",{className:v()("pBPmoo5CjBr1d116v8KrrA==",(v2(r={},"Sew5FCwW7FqufRz17h2owg==","maximized"===f),v2(r,"BxutHfy6GErdVMJpbvmkVg==",w),r)),children:d.map(function(e,t){return(0,m.jsx)("div",{className:v()("tYaVVyyd6Tcv58Bbo4mkcw==",v2({},"lBaWeq3srAzA5Ngk2dm0kQ==",0!==t)),children:(0,m.jsx)(h.Suspense,{fallback:null,children:(0,m.jsx)(Z.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,m.jsx)(v4,{workspaceInstance:e,additionalWorkspaceProps:s})})})},"workspace-container-".concat(e?e.name:"empty-".concat(t)))})})}),(0,m.jsx)(vz,{contextKey:a})]}),S&&(0,m.jsx)(vj,{name:y,isWithinWorkspace:!o,actionMenuProps:l})]})}function v4(e){var t,n=e.workspaceInstance,r=e.additionalWorkspaceProps,a=(0,Z.useTranslation)().t,i=(0,b.useLayoutType)(),o=vc(),s=o.workspaceWindowState,l=o.workspaceGroup,u=null==l?void 0:l.name,c="maximized"===s;(0,h.useEffect)(function(){var e=a(n.title);e!==n.title&&n.setTitle(e)},[n.title,a,n.setTitle]);var d=(0,h.useContext)(b.ComponentContext).featureName,f=(0,h.useCallback)(function(){vs(c?"normal":"maximized")},[c]),p=(0,h.useMemo)(function(){return null!=n?n:{}},[n]),y=p.canHide,g=void 0!==y&&y,w=p.canMaximize,x=p.currentWorkspaceGroup,S=p.closeWorkspace,j=(0,h.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){v2(e,t,n[t])})}return e}({},r,null==n?void 0:n.additionalProps)},[r,n]);return n&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader","Workspace Header"),className:"-3kjtr5uYox3-kZnfzcNuw==",children:[!(0,b.isDesktop)(i)&&!g&&(0,m.jsx)(L.HeaderMenuButton,{"aria-label":(0,_.V)("close","Close"),renderMenuIcon:(0,m.jsx)(eo,{}),onClick:function(){return S()}}),(0,m.jsx)(L.HeaderName,{prefix:"",children:null!=(t=n.titleNode)?t:a(n.title)}),(0,m.jsx)("div",{className:"_2Zd7JZN89pW2XY09qZBAAw=="}),(0,m.jsxs)(L.HeaderGlobalBar,{className:"ppNsYZC7Z00KBemD1lNxQA==",children:[(0,m.jsx)(b.ExtensionSlot,{name:"workspace-header-group-".concat(n.currentWorkspaceGroup,"-slot"),state:j}),(0,m.jsx)(b.ExtensionSlot,{name:"workspace-header-type-".concat(n.type,"-slot"),state:j}),(0,m.jsx)(b.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:j}),(0,b.isDesktop)(i)&&(0,m.jsxs)(m.Fragment,{children:[(void 0!==w&&w||c)&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":c?(0,_.V)("minimize","Minimize"):(0,_.V)("maximize","Maximize"),onClick:f,children:c?(0,m.jsx)(vC,{}):(0,m.jsx)(vT.hz,{})}),g&&!u?(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide","Hide"),onClick:function(){return vs("hidden")},children:(0,m.jsx)(es,{})}):(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,m.jsx)(eO,{})})]}),"tablet"===i&&g&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,m.jsx)(vL,{})})]})]}),(0,m.jsx)("div",{className:v()("cNdK12M+p0cj6LR0VGui6A==",v2({},"RXftxuAFC8bU7RXpujMdHA==",!!(void 0===x?"":x))),children:(0,m.jsx)(v1,{workspace:n,additionalPropsFromPage:r},n.name)})]})}var v5=n(188),v6=n(8254);function v8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v9(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function v7(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){v9(i,r,a,o,s,"next",e)}function s(e){v9(i,r,a,o,s,"throw",e)}o(void 0)})}}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function bt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function bn(e){return function(e){if(Array.isArray(e))return v8(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return v8(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v8(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function br(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function ba(e,t){return v7(function(){var n;return br(this,function(r){switch(r.label){case 0:if(!(n=ho.J_.getState().openedGroup))return[3,3];if(!(n.groupName!==e||!bs(n.props,t)))return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1})];case 1:if(!r.sent())return[2,!1];return[3,3];case 2:return[2,!0];case 3:return ho.J_.setState(function(n){return bt(be({},n),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function bi(e){return v7(function(){var t,n,r,a;return br(this,function(i){switch(i.label){case 0:if(n=(t=ho.J_.getState()).openedGroup,r=t.openedWindows,!n)return[3,4];if(!(r.length>0))return[3,3];if(a=e)return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:a=i.sent(),i.label=2;case 2:if(!a)return[2,!1];i.label=3;case 3:return ho.J_.setState(function(e){return bt(be({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function bo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v7(function(){var a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O;return br(this,function(k){switch(k.label){case 0:if(!(a=ho.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(i=(0,ho.Ml)(e)))throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered to a workspace window"));if(o=a.openedGroup,s=i.name,!(l=(0,ho.o1)(s)))throw Error("Unable to launch workspace ".concat(e,". Workspace window ").concat(i.name," is not registered to a workspace group"));if(c=(u=(0,ho.YX)(e))>=0,!(o&&(o.groupName!==l.name||!bs(o.props,r))))return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:r},openedWindows:[{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 2:if(!c)return[3,9];if(p=a.openedWindows[u],m=null!=(d=null==(f=a.openedGroup)?void 0:f.props)?d:{},h=a.isMostRecentlyOpenedWindowHidden,y=p.openedWorkspaces,!bs(p.props,n))return[3,6];if(!((g=y.find(function(t){return t.workspaceName===e}))&&bs(g.props,t)))return[3,3];return(h||u!==a.openedWindows.length-1)&&ho.J_.setState(bu.restoreWindow(a,s)),[2,!0];case 3:return[4,bl({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})];case 4:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=(v=null==a||null==(w=a.openedGroup)?void 0:w.props)?v:m},openedWindows:bn(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[bp(e,t)],props:null!=(b=null==p?void 0:p.props)?b:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 5:return[3,8];case 6:return[4,bl({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})];case 7:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=m?m:null==a||null==(x=a.openedGroup)?void 0:x.props},openedWindows:bn(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 8:return[3,12];case 9:if("closable"!=l.persistence)return[3,11];return[4,bl({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:i.name})];case 10:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=(S=null!=r?r:null==a||null==(j=a.openedGroup)?void 0:j.props)?S:null},openedWindows:[{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=(E=null!=r?r:null==a||null==(O=a.openedGroup)?void 0:O.props)?E:null},openedWindows:bn(a.openedWindows).concat([{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];case 12:return[2]}})})()}function bs(e,t){return null==e||null==t||(0,v6.b)(e,t)}function bl(e){function t(e,t){for(var n=[],r=e.openedWorkspaces.length-1;r>=0;r--){var a=e.openedWorkspaces[r];if(a.hasUnsavedChanges&&n.push(a),t&&a.workspaceName===t)break}return n}var n=ho.J_.getState(),r=n.openedWindows,a=n.workspaceTitleByWorkspaceName,i=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":i=r.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var o=r.find(function(t){return t.windowName===e.windowName});if(!o)throw Error("Window ".concat(e.windowName," not found in opened windows."));i=t(o);break;case"CLOSE_WORKSPACE":var s=r.find(function(t){return t.windowName===e.windowName});if(!s)throw Error("Window ".concat(e.windowName," not found in opened windows."));i=t(s,e.workspaceName);break;case"CLOSE_OTHER_WINDOWS":i=r.filter(function(t){return t.windowName!==e.windowNameToSpare}).flatMap(function(e){return t(e)})}return 0===i.length?Promise.resolve(!0):new Promise(function(e){var t=hw("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:i.map(function(e){return a[e.workspaceName]})})})}var bu={setWindowMaximized:function(e,t,n){var r=e.openedWindows.findIndex(function(e){return e.windowName===t}),a=bn(e.openedWindows),i=bt(be({},a[r]),{maximized:n});return a[r]=i,bt(be({},e),{openedWindows:a})},hideWindow:function(e){return bt(be({},e),{isMostRecentlyOpenedWindowHidden:!0})},restoreWindow:function(e,t){var n=e.openedWindows.findIndex(function(e){return e.windowName===t}),r=e.openedWindows[n],a=bn(e.openedWindows.filter(function(e,t){return t!==n})).concat([r]);return bt(be({},e),{openedWindows:a,isMostRecentlyOpenedWindowHidden:!1})},closeWorkspace:function(e,t){var n=(0,ho.YX)(t);if(n<0)return e;var r=be({},e.openedWindows[n]),a=r.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),i=bn(e.openedWindows);r.openedWorkspaces=r.openedWorkspaces.slice(0,a);var o=e.isMostRecentlyOpenedWindowHidden;if(0===r.openedWorkspaces.length){var s=n===e.openedWindows.length-1;i.splice(n,1),s&&i.length>0&&(o=!1)}else i[n]=r;return bt(be({},e),{openedWindows:i,isMostRecentlyOpenedWindowHidden:o})},openChildWorkspace:function(e,t,n,r){var a=e.registeredWorkspacesByName[n];if(!a)throw Error('No workspace named "'.concat(n,'" registered'));var i=e.registeredWorkspacesByName[t];if(!i)throw Error('No workspace named "'.concat(t,'" registered'));if(i.window!==a.window)throw Error("Child workspace ".concat(n," does not belong to the same workspace window as parent workspace ").concat(t));var o=e.openedWindows.findIndex(function(e){return e.windowName===a.window});if(-1==o)throw Error("Cannot open child workspace ".concat(n," as window ").concat(a.window," is not opened"));var s=e.openedWindows[o].openedWorkspaces,l=s.findIndex(function(e){return e.workspaceName===t});if(-1===l)throw Error("Cannot open child workspace ".concat(n," from parent workspace ").concat(t," as the parent is not opened within the workspace window"));var u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map(function(e,t){return t==o?bt(be({},e),{openedWorkspaces:bn(u).concat([bp(n,r)])}):e})}},setHasUnsavedChanges:function(e,t,n){var r=(0,ho.YX)(t);if(r<0)return e;var a=be({},e.openedWindows[r]),i=a.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(i<0)return e;a.openedWorkspaces[i]=bt(be({},a.openedWorkspaces[i]),{hasUnsavedChanges:n});var o=bn(e.openedWindows);return o[r]=a,bt(be({},e),{openedWindows:o})},setWorkspaceTitle:function(e,t,n){var r=be({},e.workspaceTitleByWorkspaceName);return null===n?delete r[t]:r[t]=n,bt(be({},e),{workspaceTitleByWorkspaceName:r})}};function bc(){return(0,b.useStoreWithActions)(ho.J_,bu)}var bd=function(){return(0,h.useContext)(vU.i)},bf=function(){return Object.keys(ho.J_.getState().registeredWorkspacesByName)};function bp(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,v5.A)()}}let bm={workspaceOuterContainer:"bPVpyfZzXGTGRy6q-9pUCQ==",narrowWorkspace:"kSYS7aTPRggp+MU8vlcg9Q==",widerWorkspace:"nW2HBDZ0RgkGRkWQv4sdoQ==",extraWideWorkspace:"em5yAU5C7oWbHDo0sV+3mw==",workspaceMiddleContainer:"Bx1i6z+7q-g19Un039FkIw==",maximized:"Kfygrk5eNBXuECXupuCX8g==",hidden:"RPimX0oediR2hea+lS-OuQ==",workspaceInnerContainer:"_5zxptoWhQKImthth5lAP+g==",workspaceSpacer:"E+9820x1sb5UGVFe-CBnKA==",loader:"vmBQnPcRkkl1-BXrxfe78A==",hiddenExtraWorkspace:"qkbMGOnFdM1xyc3yNGcang==",header:"IZ-2+-SpwQ-zVx81DihBdw==",headerButtons:"_81a2NYhmPVTD24yRK8d2FQ==",workspaceContent:"eetPy90L7DgJzpdTBFH3sg==",overlayHeaderSpacer:"ruc6rYzwbrMxADrXzvYMPA==",isActionMenuOpened:"XgCkc1lLTADQAwD3tG9jVA==",showActionMenu:"sHRt1Fx7e+48j2yyo8ktzg==",marginWorkspaceContent:"TN+S+hiol289+iSd7tDjwA==",workspaceContainerWithActionMenu:"xLg8emf8GoZJo-KsUJV1QQ==",workspaceFixedContainer:"W9cgZ7vfCSiTpKs+aaYksQ==",workspaceContainerWithoutActionMenu:"fRrxdLWEtrSuNfqGjVjqVA=="};function bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var by=function(e){var t,n,r,a,i=e.title,o=e.children,s=e.hasUnsavedChanges,l=void 0!==s&&s,u=(0,b.useLayoutType)(),c=bc(),d=c.setWindowMaximized,f=c.hideWindow,p=c.setHasUnsavedChanges,y=c.openedWindows,g=c.openedGroup,w=c.registeredGroupsByName,x=c.registeredWindowsByName,S=c.registeredWorkspacesByName,j=c.workspaceTitleByWorkspaceName,E=c.setWorkspaceTitle,O=c.isMostRecentlyOpenedWindowHidden,k=bd(),D=k.workspaceName,P=k.isRootWorkspace,A=k.closeWorkspace,C=k.showActionMenu,T=(0,ho.YX)(D),N=y[T],R=null==N?void 0:N.openedWorkspaces.find(function(e){return e.workspaceName===D});if((0,h.useEffect)(function(){(null==R?void 0:R.hasUnsavedChanges)!=l&&p(D,null!=l&&l)},[null==R?void 0:R.hasUnsavedChanges,l,D,p]),(0,h.useEffect)(function(){j[D]!==i&&E(D,i)},[j,D,i,E]),T<0||null==g||null==R)return null;var M=w[g.groupName];if(!M)throw Error("Cannot find registered workspace group ".concat(g.groupName));var I=S[D].window,F=x[I];if(!F)throw Error("Cannot find registered workspace window ".concat(I));var V=F.icon,B=F.canMaximize,z="closable"===M.persistence,U=!!V&&!z,W=N.maximized,$=null!=(t=null==F?void 0:F.width)?t:"narrow",H=Object.values(x).some(function(e){return e.group===g.groupName&&void 0!==e.icon}),G=T<y.length-1||O;return(0,m.jsxs)("div",{className:v()(bm.workspaceOuterContainer,(bh(n={},bm.narrowWorkspace,"narrow"===$),bh(n,bm.widerWorkspace,"wider"===$),bh(n,bm.extraWideWorkspace,"extra-wide"===$),bh(n,bm.isActionMenuOpened,H),n)),children:[(0,m.jsx)("div",{className:v()(bm.workspaceSpacer,bh({},bm.hidden,G))}),(0,m.jsx)("div",{className:v()(bm.workspaceMiddleContainer,(bh(r={},bm.maximized,W),bh(r,bm.hidden,G),bh(r,bm.isRootWorkspace,P),bh(r,bm.showActionMenu,C),r)),children:(0,m.jsxs)("div",{className:v()(bm.workspaceInnerContainer,(bh(a={},bm.maximized,W),bh(a,bm.hidden,G),bh(a,bm.isRootWorkspace,P),a)),children:[(0,m.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader"),className:bm.header,children:[(0,m.jsx)(L.HeaderName,{prefix:"",children:i}),(0,m.jsx)("div",{className:bm.overlayHeaderSpacer}),(0,m.jsx)(L.HeaderGlobalBar,{className:bm.headerButtons,children:(0,b.isDesktop)(u)?(0,m.jsxs)(m.Fragment,{children:[(B||W)&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":W?(0,_.V)("minimize"):(0,_.V)("maximize"),onClick:function(){return d(I,!W)},children:W?(0,m.jsx)(vC,{}):(0,m.jsx)(vT.hz,{})}),U&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,m.jsx)(es,{})}),!z&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){return A({closeWindow:!0})},children:(0,m.jsx)(eO,{})})]}):(0,m.jsxs)(m.Fragment,{children:[U&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,m.jsx)(vL,{})}),(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){z?bi():A({closeWindow:!0})},children:(0,m.jsx)(eO,{})})]})})]}),(0,m.jsx)("div",{className:v()(bm.workspaceContent),children:o})]})})]})};let bg="jc6--ve4CL-z756RWjy-Gg==",bv="whLL8QyjyxlJqTQo67X7BQ==",bb="fbyFm5PlSWWUnG9aPE8kTg==",bw="+aVpzvvOae5n83hGlMESXg==";function bx(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function bS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bj(e){var t=e.getIcon,n=e.hasUnsavedChanges,r=e.tagContent;return(0,m.jsxs)(m.Fragment,{children:[t({size:16}),n?(0,m.jsx)("span",{className:"sRkvSBatkOj+HMw7m2i81Q==",children:"!"}):(0,m.jsx)("span",{className:"XMH0DAK2HUw4W4tYCVa-Fg==",children:r})]})}var bE=function(e){var t,n,r,a=e.icon,i=e.label,o=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,b.useLayoutType)(),c=bc(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,y=c.isMostRecentlyOpenedWindowHidden,g=(0,h.useContext)(b.ComponentContext).extension,w=d.findIndex(function(e){return e.windowName===(null==g?void 0:g.extensionId)}),x=d[w],S=null!=x,j=S&&(w<d.length-1||y),E=S&&!j,O=null!=(t=null==x?void 0:x.openedWorkspaces.some(function(e){return e.hasUnsavedChanges}))&&t,k=function(){var e;return(e=function(){var e,t;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:if(!S)return[3,1];return j?f(x.windowName):p(),[3,3];case 1:return[4,null==(e=null==l?void 0:l())||e];case 2:n.sent()&&(t=s.workspaceName,bo(t,s.workspaceProps,s.windowProps)),n.label=3;case 3:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){bx(i,r,a,o,s,"next",e)}function s(e){bx(i,r,a,o,s,"throw",e)}o(void 0)})})()};return"tablet"===u||"phone"===u?(0,m.jsxs)(L.Button,{className:v()(bg,(bS(n={},bb,S&&!E),bS(n,bw,E),n)),iconDescription:i,kind:"ghost",onClick:k,role:"button",tabIndex:0,size:"md",children:[(0,m.jsx)("span",{className:bv,children:(0,m.jsx)(bj,{hasUnsavedChanges:O,getIcon:a,tagContent:o})}),(0,m.jsx)("span",{children:i})]}):(0,m.jsx)(L.IconButton,{align:"left","aria-label":i,className:v()(bg,(bS(r={},bb,S&&!E),bS(r,bw,E),r)),enterDelayMs:300,kind:"ghost",label:i,onClick:k,size:"md",children:(0,m.jsx)("div",{className:bv,children:(0,m.jsx)(bj,{hasUnsavedChanges:O,getIcon:a,tagContent:o})})})},bO=n(3447);let bk="_6Gke0iocK8-7xF6UDXtjtQ==";function bD(e){var t=e.workspaceGroup,n=e.groupProps,r=(0,b.useLayoutType)(),a=t.persistence;return(0,m.jsx)("aside",{className:"T2lMV3y-c2DH29-1sQdY7g==",children:(0,m.jsxs)("div",{className:bk,children:["closable"==a&&(0,b.isDesktop)(r)&&(0,m.jsx)(L.IconButton,{align:"left",onClick:function(){return bi()},label:(0,_.V)("close"),kind:"ghost",children:(0,m.jsx)(eO,{})}),(0,m.jsx)(b.ComponentContext.Provider,{value:{moduleName:t.moduleName,featureName:t.name},children:(0,m.jsx)(b.ExtensionSlot,{className:bk,name:t.name,state:{groupProps:n}})})]})})}var bP=n(8148);function bA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bC(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function bT(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){bC(i,r,a,o,s,"next",e)}function s(e){bC(i,r,a,o,s,"throw",e)}o(void 0)})}}function bN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bR(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var bM=function(e){var t=e.lifeCycle,n=e.openedWorkspace,r=e.openedWindow,a=e.isRootWorkspace,i=e.isLeafWorkspace,o=e.showActionMenu,s=bc(),l=s.openedGroup,u=s.closeWorkspace,c=s.openChildWorkspace,d=(0,h.useMemo)(function(){return n&&{closeWorkspace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bT(function(){var t,a,i,o,s,l;return bR(this,function(c){switch(c.label){case 0:if(a=void 0!==(t=e.closeWindow)&&t,o=void 0!==(i=e.discardUnsavedChanges)&&i,!a)return[3,3];if(s=o)return[3,2];return[4,bl({reason:"CLOSE_WINDOW",explicit:!0,windowName:r.windowName})];case 1:s=c.sent(),c.label=2;case 2:if(s)return u(r.openedWorkspaces[0].workspaceName),[2,!0];return[2,!1];case 3:if(l=o)return[3,5];return[4,bl({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:r.windowName,workspaceName:n.workspaceName})];case 4:l=c.sent(),c.label=5;case 5:if(l)return u(n.workspaceName),[2,!0];return[2,!1];case 6:return[2]}})})()},launchChildWorkspace:function(e,t){return bT(function(){var a,i,o;return bR(this,function(s){switch(s.label){case 0:if(a=n.workspaceName,-1===(o=(i=r.openedWorkspaces).findIndex(function(e){return e.workspaceName===a})))return[2];if(o===i.length-1||!i.slice(o+1).some(function(e){return e.hasUnsavedChanges}))return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:r.windowName,workspaceName:i[o+1].workspaceName})];case 1:if(!s.sent())return[2];s.label=2;case 2:return c(a,e,t||{}),[2]}})})()},workspaceName:n.workspaceName,workspaceProps:n.props,windowProps:r.props,groupProps:l&&l.props?l.props:null,isRootWorkspace:a,isLeafWorkspace:i,windowName:r.windowName,showActionMenu:o}},[n,u,l,r]);if(!t){var f,p,y=ho.J_.getState().registeredWorkspacesByName[n.workspaceName],g=y&&y.window?y.window:void 0,b=ho.J_.getState().registeredWindowsByName,w=g?b[g]:void 0,x=w&&w.width?w.width:"narrow",S=Object.values(b).some(function(e){return e.group===(null==l?void 0:l.groupName)&&void 0!==e.icon});return(0,m.jsxs)("div",{className:v()(bm.workspaceOuterContainer,(bN(f={},bm.narrowWorkspace,"narrow"===x),bN(f,bm.widerWorkspace,"wider"===x),bN(f,bm.extraWideWorkspace,"extra-wide"===x),bN(f,bm.isActionMenuOpened,S),f)),children:[(0,m.jsx)("div",{className:bm.workspaceSpacer}),(0,m.jsx)("div",{className:v()(bm.workspaceMiddleContainer,(bN(p={},bm.isRootWorkspace,a),bN(p,bm.showActionMenu,o),p)),children:(0,m.jsx)("div",{className:v()(bm.workspaceInnerContainer,bN({},bm.isRootWorkspace,a)),children:(0,m.jsx)(L.InlineLoading,{className:bm.loader,description:"".concat((0,_.V)("loading")," ...")})})})]})}return(0,m.jsx)(vZ,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){bN(e,t,n[t])})}return e}({config:t,mountParcel:ha.mountRootParcel},d),n.workspaceName)};let bI=function(e){var t,n=e.openedWindow,r=e.showActionMenu,a=n.openedWorkspaces,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)())||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return bA(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bA(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1],l=ho.J_.getState().registeredWorkspacesByName;return(0,h.useEffect)(function(){Promise.all(a.map(function(e){var t=l[e.workspaceName],n=t.moduleName,r=t.component;return(0,bP.o)(n,r)})).then(s)},[a]),(0,m.jsx)(m.Fragment,{children:a.map(function(e,t){return(0,m.jsx)(bM,{openedWorkspace:e,openedWindow:n,lifeCycle:o&&o[t]?o[t]:void 0,isRootWorkspace:0===t,isLeafWorkspace:t===a.length-1,showActionMenu:r},e.uuid)})})};function bL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(bF,{}))}function bF(){var e,t=bc(),n=t.openedGroup,r=t.openedWindows,a=t.registeredGroupsByName,i=t.registeredWindowsByName;if((0,h.useEffect)(function(){return(0,bO.mI)("before-page-changed",function(e){var t=e.newPage,r=e.cancelNavigation,i=e.oldUrl,o=e.newUrl;if(n){if(t)return void r(bi().then(function(e){return!e}));var s=a[n.groupName],l=null==s?void 0:s.scopePattern;l&&function(e,t,n){try{var r=new URL(t,window.location.origin).pathname,a=new URL(n,window.location.origin).pathname,i=new RegExp(e),o=r.match(i),s=a.match(i);if(!o||!s)return!0;if(o.length>1)return!o.slice(1).every(function(e,t){return e===s[t+1]});return!1}catch(e){return!0}}(l,i,o)&&r(bi().then(function(e){return!e}))}})},[n,a]),!n)return null;var o=a[n.groupName],s=r.some(function(e){return e.maximized}),l=o.name,u=Object.values(i).filter(function(e){return e.group===l&&void 0!==e.icon}).sort(function(e,t){var n,r;return(null!=(n=e.order)?n:Number.MAX_VALUE)-(null!=(r=t.order)?r:Number.MAX_VALUE)}).length>0;return(0,m.jsxs)("div",{className:v()("_2u2mcnHqn77Jo33H5a1H2g==",(bL(e={},"_7RHYZQ-hEc8EPJUY-c9Hpg==",o.overlay),bL(e,"gvJRdHcF9cqv2qaFk6opjw==",s),e)),children:[(0,m.jsx)("div",{className:"_40ITOKKqqE8nvSQt409qiA==",children:r.map(function(e){return(0,m.jsx)(bI,{openedWindow:e,showActionMenu:u},e.windowName)})}),u&&(0,m.jsx)(bD,{workspaceGroup:o,groupProps:n.props})]})}function bV(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bB(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var bU,bW,b$,bH,bG,bq,bY,bK,bZ,bX,bQ,bJ,b0,b1,b2,b3,b4,b5,b6,b8,b9,b7,we,wt,wn,wr,wa,wi,wo={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ws={duration:.5,overwrite:!1,delay:0},wl=2*Math.PI,wu=wl/4,wc=0,wd=Math.sqrt,wf=Math.cos,wp=Math.sin,wm=function(e){return"string"==typeof e},wh=function(e){return"function"==typeof e},wy=function(e){return"number"==typeof e},wg=function(e){return void 0===e},wv=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},wb=function(e){return!1!==e},ww=function(){return"u">typeof window},wx=function(e){return wh(e)||wm(e)},wS="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},wj=Array.isArray,wE=/random\([^)]+\)/g,wO=/,\s*/g,wk=/(?:-?\.?\d|\.)+/gi,wD=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,wP=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,wA=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wC=/[+-]=-?[.\d]+/,wT=/[^,'"\[\]\s]+/gi,wN=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,wR={},wM={},wI=function(e){return(wM=xt(e,wR))&&S2},wL=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},w_=function(e,t){return!t&&console.warn(e)},wF=function(e,t){return e&&(wR[e]=t)&&wM&&(wM[e]=t)||wR},wV=function(){return 0},wB={suppressEvents:!0,isStart:!0,kill:!1},wz={suppressEvents:!0,kill:!1},wU={suppressEvents:!0},wW={},w$=[],wH={},wG={},wq={},wY=30,wK=[],wZ="",wX=function(e){var t,n,r=e[0];if(wv(r)||wh(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=wK.length;n--&&!wK[n].targetTest(r););t=wK[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Sl(e[n],t)))||e.splice(n,1);return e},wQ=function(e){return e._gsap||wX(xI(e))[0]._gsap},wJ=function(e,t,n){return(n=e[t])&&wh(n)?e[t]():wg(n)&&e.getAttribute&&e.getAttribute(t)||n},w0=function(e,t){return(e=e.split(",")).forEach(t)||e},w1=function(e){return Math.round(1e5*e)/1e5||0},w2=function(e){return Math.round(1e7*e)/1e7||0},w3=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+r:"-"===n?e-r:"*"===n?e*r:e/r},w4=function(e,t){for(var n=t.length,r=0;0>e.indexOf(t[r])&&++r<n;);return r<n},w5=function(){var e,t,n=w$.length,r=w$.slice(0);for(e=0,wH={},w$.length=0;e<n;e++)(t=r[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},w6=function(e){return!!(e._initted||e._startAt||e.add)},w8=function(e,t,n,r){w$.length&&!b6&&w5(),e.render(t,n,r||!!(b6&&t<0&&w6(e))),w$.length&&!b6&&w5()},w9=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(wT).length<2?t:wm(e)?e.trim():e},w7=function(e){return e},xe=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},xt=function(e,t){for(var n in t)e[n]=t[n];return e},xn=function e(t,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=wv(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},xr=function(e,t){var n,r={};for(n in e)n in t||(r[n]=e[n]);return r},xa=function(e){var t,n=e.parent||b9,r=e.keyframes?(t=wj(e.keyframes),function(e,n){for(var r in n)r in e||"duration"===r&&t||"ease"===r||(e[r]=n[r])}):xe;if(wb(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},xi=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},xo=function(e,t,n,r,a){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i,o=e[r];if(a)for(i=t[a];o&&o[a]>i;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},xs=function(e,t,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a=t._prev,i=t._next;a?a._next=i:e[n]===t&&(e[n]=i),i?i._prev=a:e[r]===t&&(e[r]=a),t._next=t._prev=t.parent=null},xl=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},xu=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},xc=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},xd=function(e,t,n,r){return e._startAt&&(b6?e._startAt.revert(wz):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},xf=function(e){return e._repeat?xp(e._tTime,e=e.duration()+e._rDelay)*e:0},xp=function(e,t){var n=Math.floor(e=w2(e/t));return e&&n===e?n-1:n},xm=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},xh=function(e){return e._end=w2(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},xy=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=w2(n._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),xh(e),n._dirty||xu(n,e)),e},xg=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=xm(e.rawTime(),t),(!t._dur||xT(0,t.totalDuration(),n)-t._tTime>1e-8)&&t.render(n,!0)),xu(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},xv=function(e,t,n,r){return t.parent&&xl(t),t._start=w2((wy(n)?n:n||e!==b9?xP(e,n,t):e._time)+t._delay),t._end=w2(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),xo(e,t,"_first","_last",e._sort?"_start":0),xS(t)||(e._recent=t),r||xg(e,t),e._ts<0&&xy(e,e._tTime),e},xb=function(e,t){return(wR.ScrollTrigger||wL("scrollTrigger",t))&&wR.ScrollTrigger.create(t,e)},xw=function(e,t,n,r,a){return(Sx(e,t,a),e._initted)?!n&&e._pt&&!b6&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&wr!==x4.frame?(w$.push(e),e._lazy=[a,r],1):void 0:1},xx=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(0>n.rawTime()||e(n))},xS=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xj=function(e,t,n,r){var a,i,o,s=e.ratio,l=t<0||!t&&(!e._start&&xx(e)&&!(!e._initted&&xS(e))||(e._ts<0||e._dp._ts<0)&&!xS(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(i=xp(c=xT(0,e._tDur,t),u),e._yoyo&&1&i&&(l=1-l),i!==xp(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||b6||r||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&xw(e,t,r,n,c))return;for(o=e._zTime,e._zTime=t||1e-8*!!n,n||(n=t&&!o),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,a=e._pt;a;)a.r(l,a.d),a=a._next;t<0&&xd(e,t,n,!0),e._onUpdate&&!n&&xG(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&xG(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&xl(e,1),n||b6||(xG(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xE=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<t)return r;r=r._prev}},xO=function(e,t,n,r){var a=e._repeat,i=w2(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=i/e._dur),e._dur=i,e._tDur=a?a<0?1e10:w2(i*(a+1)+e._rDelay*a):i,o>0&&!r&&xy(e,e._tTime=e._tDur*o),e.parent&&xh(e),n||xu(e.parent,e),e},xk=function(e){return bV(e,Sc)?xu(e):xO(e,e._dur)},xD={_start:0,endTime:wV,totalDuration:wV},xP=function e(t,n,r){var a,i,o,s=t.labels,l=t._recent||xD,u=t.duration()>=1e8?l.endTime(!1):t._dur;return wm(n)&&(isNaN(n)||n in s)?(i=n.charAt(0),o="%"===n.substr(-1),a=n.indexOf("="),"<"===i||">"===i)?(a>=0&&(n=n.replace(/=/,"")),("<"===i?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(a<0?l:r).totalDuration()/100:1)):a<0?(n in s||(s[n]=u),s[n]):(i=parseFloat(n.charAt(a-1)+n.substr(a+1)),o&&r&&(i=i/100*(wj(r)?r[0]:r).totalDuration()),a>1?e(t,n.substr(0,a-1),r)+i:u+i):null==n?u:+n},xA=function(e,t,n){var r,a,i=wy(t[1]),o=(i?2:1)+(e<2?0:1),s=t[o];if(i&&(s.duration=t[1]),s.parent=n,e){for(r=s,a=n;a&&!("immediateRender"in r);)r=a.vars.defaults||{},a=wb(a.vars.inherit)&&a.parent;s.immediateRender=wb(r.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new SP(t[0],s,t[o+1])},xC=function(e,t){return e||0===e?t(e):t},xT=function(e,t,n){return n<e?e:n>t?t:n},xN=function(e,t){return wm(e)&&(t=wN.exec(e))?t[1]:""},xR=[].slice,xM=function(e,t){return e&&wv(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&wv(e[0]))&&!e.nodeType&&e!==b7},xI=function(e,t,n){var r;return b8&&!t&&b8.selector?b8.selector(e):wm(e)&&!n&&(we||!x5())?xR.call((t||wt).querySelectorAll(e),0):wj(e)?(void 0===r&&(r=[]),e.forEach(function(e){var t;return wm(e)&&!n||xM(e,1)?(t=r).push.apply(t,xI(e)):r.push(e)})||r):xM(e)?xR.call(e,0):e?[e]:[]},xL=function(e){return e=xI(e)[0]||w_("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return xI(t,n.querySelectorAll?n:n===e?w_("Invalid scope")||wt.createElement("div"):e)}},x_=function(e){return e.sort(function(){return .5-Math.random()})},xF=function(e){if(wh(e))return e;var t=wv(e)?e:{each:e},n=Sr(t.ease),r=t.from||0,a=parseFloat(t.base)||0,i={},o=r>0&&r<1,s=isNaN(r)||o,l=t.axis,u=r,c=r;return wm(r)?u=c=({center:.5,edges:.5,end:1})[r]||0:!o&&s&&(u=r[0],c=r[1]),function(e,o,d){var f,p,m,h,y,g,v,b,w,x=(d||t).length,S=i[x];if(!S){if(!(w="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(v=-1e8;v<(v=d[w++].getBoundingClientRect().left)&&w<x;);w<x&&w--}for(g=0,S=i[x]=[],f=s?Math.min(w,x)*u-.5:r%w,p=1e8===w?0:s?x*c/w-.5:r/w|0,v=0,b=1e8;g<x;g++)m=g%w-f,h=p-(g/w|0),S[g]=y=l?Math.abs("y"===l?h:m):wd(m*m+h*h),y>v&&(v=y),y<b&&(b=y);"random"===r&&x_(S),S.max=v-b,S.min=b,S.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===r?-1:1),S.b=x<0?a-x:a,S.u=xN(t.amount||t.each)||0,n=n&&x<0?Sn(n):n}return x=(S[e]-S.min)/S.max||0,w2(S.b+(n?n(x):x)*S.v)+S.u}},xV=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=w2(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(wy(n)?0:xN(n))}},xB=function(e,t){var n,r,a=wj(e);return!a&&wv(e)&&(n=a=e.radius||1e8,e.values?(r=!wy((e=xI(e.values))[0]))&&(n*=n):e=xV(e.increment)),xC(t,a?wh(e)?function(t){return Math.abs((r=e(t))-t)<=n?r:t}:function(t){for(var a,i,o=parseFloat(r?t.x:t),s=parseFloat(r?t.y:0),l=1e8,u=0,c=e.length;c--;)(a=r?(a=e[c].x-o)*a+(i=e[c].y-s)*i:Math.abs(e[c]-o))<l&&(l=a,u=c);return u=!n||l<=n?e[u]:t,r||u===t||wy(t)?u:u+xN(t)}:xV(e))},xz=function(e,t,n,r){return xC(wj(e)?!t:!0===n?(n=0,!1):!r,function(){return wj(e)?e[~~(Math.random()*e.length)]:(r=(n=n||1e-5)<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*r)/r})},xU=function(e,t,n){return xC(n,function(n){return e[~~t(n)]})},xW=function(e){return e.replace(wE,function(e){var t=e.indexOf("[")+1,n=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(wO);return xz(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},x$=function(e,t,n,r,a){var i=t-e,o=r-n;return xC(a,function(t){return n+((t-e)/i*o||0)})},xH=function(e,t,n){var r,a,i,o=e.labels,s=1e8;for(r in o)(a=o[r]-t)<0==!!n&&a&&s>(a=Math.abs(a))&&(i=r,s=a);return i},xG=function(e,t,n){var r,a,i,o=e.vars,s=o[t],l=b8,u=e._ctx;if(s)return r=o[t+"Params"],a=o.callbackScope||e,n&&w$.length&&w5(),u&&(b8=u),i=r?s.apply(a,r):s.call(a),b8=l,i},xq=function(e){return xl(e),e.scrollTrigger&&e.scrollTrigger.kill(!!b6),1>e.progress()&&xG(e,"onInterrupt"),e},xY=[],xK=function(e){if(e)if(e=!e.name&&e.default||e,ww()||e.headless){var t=e.name,n=wh(e),r=t&&!n&&e.init?function(){this._props=[]}:e,a={init:wV,render:S_,add:Sv,kill:SV,modifier:SF,rawVars:0},i={targetTest:0,get:0,getSetter:SR,aliases:{},register:0};if(x5(),e!==r){if(wG[t])return;xe(r,xe(xr(e,a),i)),xt(r.prototype,xt(a,xr(e,i))),wG[r.prop=t]=r,e.targetTest&&(wK.push(r),wW[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}wF(t,r),e.register&&e.register(S2,r,SU)}else xY.push(e)},xZ={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xX=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*255+.5|0},xQ=function(e,t,n){var r,a,i,o,s,l,u,c,d,f,p=e?wy(e)?[e>>16,e>>8&255,255&e]:0:xZ.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),xZ[e])p=xZ[e];else if("#"===e.charAt(0)){if(e.length<6&&(r=e.charAt(1),e="#"+r+r+(a=e.charAt(2))+a+(i=e.charAt(3))+i+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=f=e.match(wk),t){if(~e.indexOf("="))return p=e.match(wD),n&&p.length<4&&(p[3]=1),p}else o=p[0]%360/360,s=p[1]/100,a=(l=p[2]/100)<=.5?l*(s+1):l+s-l*s,r=2*l-a,p.length>3&&(p[3]*=1),p[0]=xX(o+1/3,r,a),p[1]=xX(o,r,a),p[2]=xX(o-1/3,r,a);else p=e.match(wk)||xZ.transparent;p=p.map(Number)}return t&&!f&&(r=p[0]/255,l=((u=Math.max(r,a=p[1]/255,i=p[2]/255))+(c=Math.min(r,a,i)))/2,u===c?o=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),o=(u===r?(a-i)/d+6*(a<i):u===a?(i-r)/d+2:(r-a)/d+4)*60),p[0]=~~(o+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),n&&p.length<4&&(p[3]=1),p},xJ=function(e){var t=[],n=[],r=-1;return e.split(x1).forEach(function(e){var a=e.match(wP)||[];t.push.apply(t,a),n.push(r+=a.length+1)}),t.c=n,t},x0=function(e,t,n){var r,a,i,o,s="",l=(e+s).match(x1),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=xQ(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),n&&(i=xJ(e),(r=n.c).join(s)!==i.c.join(s)))for(o=(a=e.replace(x1,"1").split(wP)).length-1;c<o;c++)s+=a[c]+(~r.indexOf(c)?l.shift()||u+"0,0,0,0)":(i.length?i:l.length?l:n).shift());if(!a)for(o=(a=e.split(x1)).length-1;c<o;c++)s+=a[c]+l[c];return s+a[o]},x1=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in xZ)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),x2=/hsl[a]?\(/,x3=function(e){var t,n=e.join(" ");if(x1.lastIndex=0,x1.test(n))return t=x2.test(n),e[1]=x0(e[1],t),e[0]=x0(e[0],t,xJ(e[1])),!0},x4=(bZ=Date.now,bX=500,bQ=33,b0=bJ=bZ(),b1=1e3/240,b2=1e3/240,b3=[],b4=function e(t){var n,r,a,i,o=bZ()-b0,s=!0===t;if((o>bX||o<0)&&(bJ+=o-bQ),b0+=o,((n=(a=b0-bJ)-b2)>0||s)&&(i=++bq.frame,bY=a-1e3*bq.time,bq.time=a/=1e3,b2+=n+(n>=b1?4:b1-n),r=1),s||(b$=bH(e)),r)for(bK=0;bK<b3.length;bK++)b3[bK](a,bY,i,t)},bq={time:0,frame:0,tick:function(){b4(!0)},deltaRatio:function(e){return bY/(1e3/(e||60))},wake:function(){wn&&(!we&&ww()&&(wt=(b7=we=window).document||{},wR.gsap=S2,(b7.gsapVersions||(b7.gsapVersions=[])).push(S2.version),wI(wM||b7.GreenSockGlobals||!b7.gsap&&b7||{}),xY.forEach(xK)),bG="u">typeof requestAnimationFrame&&requestAnimationFrame,b$&&bq.sleep(),bH=bG||function(e){return setTimeout(e,b2-1e3*bq.time+1|0)},wi=1,b4(2))},sleep:function(){(bG?cancelAnimationFrame:clearTimeout)(b$),wi=0,bH=wV},lagSmoothing:function(e,t){bQ=Math.min(t||33,bX=e||1/0)},fps:function(e){b1=1e3/(e||240),b2=1e3*bq.time+b1},add:function(e,t,n){var r=t?function(t,n,a,i){e(t,n,a,i),bq.remove(r)}:e;return bq.remove(e),b3[n?"unshift":"push"](r),x5(),r},remove:function(e,t){~(t=b3.indexOf(e))&&b3.splice(t,1)&&bK>=t&&bK--},_listeners:b3}),x5=function(){return!wi&&x4.wake()},x6={},x8=/^[\d.\-M][\d.\-,\s]/,x9=/["']/g,x7=function(e){for(var t,n,r,a={},i=e.substr(1,e.length-3).split(":"),o=i[0],s=1,l=i.length;s<l;s++)n=i[s],t=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,t),a[o]=isNaN(r)?r.replace(x9,"").trim():+r,o=n.substr(t+1).trim();return a},Se=function(e){var t=e.indexOf("(")+1,n=e.indexOf(")"),r=e.indexOf("(",t);return e.substring(t,~r&&r<n?e.indexOf(")",n+1):n)},St=function(e){var t=(e+"").split("("),n=x6[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[x7(t[1])]:Se(e).split(",").map(w9)):x6._CE&&x8.test(e)?x6._CE("",e):n},Sn=function(e){return function(t){return 1-e(1-t)}},Sr=function(e,t){return e&&(wh(e)?e:x6[e]||St(e))||t},Sa=function(e,t,n,r){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===r&&(r=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var a,i={easeIn:t,easeOut:n,easeInOut:r};return w0(e,function(e){for(var t in x6[e]=wR[e]=i,x6[a=e.toLowerCase()]=n,i)x6[a+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=x6[e+"."+t]=i[t]}),i},Si=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},So=function e(t,n,r){var a=n>=1?n:1,i=(r||(t?.3:.45))/(n<1?n:1),o=i/wl*(Math.asin(1/a)||0),s=function(e){return 1===e?1:a*Math.pow(2,-10*e)*wp((e-o)*i)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Si(s);return i=wl/i,l.config=function(n,r){return e(t,n,r)},l},Ss=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},a="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:Si(r);return a.config=function(n){return e(t,n)},a};w0("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Sa(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},function(e){return 1-Math.pow(1-e,n)},function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow((1-e)*2,n)/2})}),x6.Linear.easeNone=x6.none=x6.Linear.easeIn,Sa("Elastic",So("in"),So("out"),So()),Sf=2*(Sd=1/2.75),Sp=2.5*Sd,Sa("Bounce",function(e){return 1-Sm(1-e)},Sm=function(e){return e<Sd?7.5625*e*e:e<Sf?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<Sp?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),Sa("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Sa("Circ",function(e){return-(wd(1-e*e)-1)}),Sa("Sine",function(e){return 1===e?1:-wf(e*wu)+1}),Sa("Back",Ss("in"),Ss("out"),Ss()),x6.SteppedEase=x6.steps=wR.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,r=e+ +!t,a=+!!t,i=.99999999;return function(e){return((r*xT(0,i,e)|0)+a)*n}}},ws.ease=x6["quad.out"],w0("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return wZ+=e+","+e+"Params,"});var Sl=function(e,t){this.id=wc++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:wJ,this.set=t?t.getSetter:SR},Su=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xO(this,+e.duration,1,1),this.data=e.data,b8&&(this._ctx=b8,b8.data.push(this)),wi||x4.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xO(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(x5(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(xy(this,e),!n._dp||n.parent||xg(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:-((n.totalDuration()-n._tTime)/n._ts))&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&xv(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),w8(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+xf(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+xf(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?xp(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?xm(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(xT(-Math.abs(this._delay),this.totalDuration(),n),!1!==t),xh(this),xc(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(x5(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=w2(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&xv(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(wb(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?xm(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=wU);var t=b6;return b6=e,w6(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),b6=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xk(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xk(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(xP(this,e),wb(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,wb(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var a=wh(e)?e:w7,i=function(){var e=t.then;t.then=null,n&&n(),wh(a)&&(a=a(t))&&(a.then||a===t)&&(t.then=e),r(a),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i})},t.kill=function(){xq(this)},e}();xe(Su.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Sc=function(e){function t(t,n){var r;return void 0===t&&(t={}),(r=e.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=wb(t.sortChildren),b9&&xv(t.parent||b9,bB(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&xb(bB(r),t.scrollTrigger),r}bz(t,e);var n=t.prototype;return n.to=function(e,t,n){return xA(0,arguments,this),this},n.from=function(e,t,n){return xA(1,arguments,this),this},n.fromTo=function(e,t,n,r){return xA(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,xa(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new SP(e,t,xP(this,n),1),this},n.call=function(e,t,n){return xv(this,SP.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,a,i,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=i,n.onCompleteParams=o,n.parent=this,new SP(e,n,xP(this,a)),this},n.staggerFrom=function(e,t,n,r,a,i,o){return n.runBackwards=1,xa(n).immediateRender=wb(n.immediateRender),this.staggerTo(e,t,n,r,a,i,o)},n.staggerFromTo=function(e,t,n,r,a,i,o,s){return r.startAt=n,xa(r).immediateRender=wb(r.immediateRender),this.staggerTo(e,t,r,a,i,o,s)},n.render=function(e,t,n){var r,a,i,o,s,l,u,c,d,f,p,m,h=this._time,y=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=e<=0?0:w2(e),b=this._zTime<0!=e<0&&(this._initted||!g);if(this!==b9&&v>y&&e>=0&&(v=y),v!==this._tTime||n||b){if(h!==this._time&&g&&(v+=this._time-h,e+=this._time-h),r=v,d=this._start,l=!(c=this._ts),b&&(g||(h=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,s=g+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,n);if(r=w2(v%s),v===y?(o=this._repeat,r=g):((o=~~(f=w2(v/s)))&&o===f&&(r=g,o--),r>g&&(r=g)),f=xp(this._tTime,s),!h&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),p&&1&o&&(r=g-r,m=1),o!==f&&!this._lock){var w=p&&1&f,x=w===(p&&1&o);if(o<f&&(w=!w),h=w?0:v%g?g:v,this._lock=1,this.render(h||(m?0:w2(o*s)),t,!g)._lock=0,this._tTime=v,!t&&this.parent&&xG(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1,f=o),h&&h!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(g=this._dur,y=this._tDur,x&&(this._lock=2,h=w?g:-1e-4,this.render(h,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=xE(this,w2(h),w2(r)))&&(v-=r-(r=u._start)),this._tTime=v,this._time=r,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,h=0),!h&&v&&g&&!t&&!f&&(xG(this,"onStart"),this._tTime!==v))return this;if(r>=h&&e>=0)for(a=this._first;a;){if(i=a._next,(a._act||r>=a._start)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(r-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(r-a._start)*a._ts,t,n),r!==this._time||!this._ts&&!l){u=0,i&&(v+=this._zTime=-1e-8);break}}a=i}else{a=this._last;for(var S=e<0?e:r;a;){if(i=a._prev,(a._act||S<=a._end)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(S-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(S-a._start)*a._ts,t,n||b6&&w6(a)),r!==this._time||!this._ts&&!l){u=0,i&&(v+=this._zTime=S?-1e-8:1e-8);break}}a=i}}if(u&&!t&&(this.pause(),u.render(r>=h?0:-1e-8)._zTime=r>=h?1:-1,this._ts))return this._start=d,xh(this),this.render(e,t,n);this._onUpdate&&!t&&xG(this,"onUpdate",!0),(v===y&&this._tTime>=this.totalDuration()||!v&&h)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts))&&!this._lock&&((e||!g)&&(v===y&&this._ts>0||!v&&this._ts<0)&&xl(this,1),t||e<0&&!h||!v&&!h&&y||(xG(this,v===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<y&&this.timeScale()>0)&&this._prom()))}return this},n.add=function(e,t){var n=this;if(wy(t)||(t=xP(this,t,e)),!bV(e,Su)){if(wj(e))return e.forEach(function(e){return n.add(e,t)}),this;if(wm(e))return this.addLabel(e,t);if(!wh(e))return this;e=SP.delayedCall(0,e)}return this!==e?xv(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var a=[],i=this._first;i;)i._start>=r&&(bV(i,SP)?t&&a.push(i):(n&&a.push(i),e&&a.push.apply(a,i.getChildren(!0,t,n)))),i=i._next;return a},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return wm(e)?this.removeLabel(e):wh(e)?this.killTweensOf(e):(e.parent===this&&xs(this,e),e===this._recent&&(this._recent=this._last),xu(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=w2(x4.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=xP(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=SP.delayedCall(0,t||wV,n);return r.data="isPause",this._hasPause=1,xv(this,r,xP(this,e))},n.removePause=function(e){var t=this._first;for(e=xP(this,e);t;)t._start===e&&"isPause"===t.data&&xl(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),a=r.length;a--;)Sh!==r[a]&&r[a].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],a=xI(e),i=this._first,o=wy(t);i;)bV(i,SP)?w4(i._targets,a)&&(o?(!Sh||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&r.push(i):(n=i.getTweensOf(a,t)).length&&r.push.apply(r,n),i=i._next;return r},n.tweenTo=function(e,t){t=t||{};var n,r=this,a=xP(r,e),i=t,o=i.startAt,s=i.onStart,l=i.onStartParams,u=i.immediateRender,c=SP.to(r,xe({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:t.duration||Math.abs((a-(o&&"time"in o?o.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var e=t.duration||Math.abs((a-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==e&&xO(c,e,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xe({startAt:{time:xP(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),xH(this,xP(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),xH(this,xP(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);var r,a=this._first,i=this.labels;for(e=w2(e);a;)a._start>=n&&(a._start+=e,a._end+=e),a=a._next;if(t)for(r in i)i[r]>=n&&(i[r]+=e);return xu(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),xu(this)},n.totalDuration=function(e){var t,n,r,a=0,i=this._last,o=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(r=this.parent;i;)t=i._prev,i._dirty&&i.totalDuration(),(n=i._start)>o&&this._sort&&i._ts&&!this._lock?(this._lock=1,xv(this,i,n-i._delay,1)._lock=0):o=n,n<0&&i._ts&&(a-=n,(!r&&!this._dp||r&&r.smoothChildTiming)&&(this._start+=w2(n/this._ts),this._time-=n,this._tTime-=n),this.shiftChildren(-n,!1,-Infinity),o=0),i._end>a&&i._ts&&(a=i._end),i=t;xO(this,this===b9&&this._time>a?this._time:a,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(b9._ts&&(w8(b9,xm(e,b9)),wr=x4.frame),x4.frame>=wY){wY+=wo.autoSleep||120;var t=b9._first;if((!t||!t._ts)&&wo.autoSleep&&x4._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||x4.sleep()}}},t}(Su);xe(Sc.prototype,{_lock:0,_hasPause:0,_forcing:0});var Sd,Sf,Sp,Sm,Sh,Sy,Sg=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,m,h=new SU(this._pt,e,t,0,1,SL,null,a),y=0,g=0;for(h.b=n,h.e=r,n+="",r+="",(p=~r.indexOf("random("))&&(r=xW(r)),i&&(i(m=[n,r],e,t),n=m[0],r=m[1]),l=n.match(wA)||[];s=wA.exec(r);)c=s[0],d=r.substring(y,s.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[g++]&&(f=parseFloat(l[g-1])||0,h._pt={_next:h._pt,p:d||1===g?d:",",s:f,c:"="===c.charAt(1)?w3(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},y=wA.lastIndex);return h.c=y<r.length?r.substring(y,r.length):"",h.fp=o,(wC.test(r)||p)&&(h.e=0),this._pt=h,h},Sv=function(e,t,n,r,a,i,o,s,l,u){wh(r)&&(r=r(a||0,e,i));var c,d=e[t],f="get"!==n?n:wh(d)?l?e[t.indexOf("set")||!wh(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,p=wh(d)?l?ST:SC:SA;if(wm(r)&&(~r.indexOf("random(")&&(r=xW(r)),"="===r.charAt(1)&&((c=w3(f,r)+(xN(f)||0))||0===c)&&(r=c)),!u||f!==r||Sy)return isNaN(f*r)||""===r?(d||t in e||wL(t,r),Sg.call(this,e,t,f,r,p,s||wo.stringFilter,l)):(c=new SU(this._pt,e,t,+f||0,r-(f||0),"boolean"==typeof d?SI:SM,0,p),l&&(c.fp=l),o&&c.modifier(o,this,e),this._pt=c)},Sb=function(e,t,n,r,a){if(wh(e)&&(e=SO(e,a,t,n,r)),!wv(e)||e.style&&e.nodeType||wj(e)||wS(e))return wm(e)?SO(e,a,t,n,r):e;var i,o={};for(i in e)o[i]=SO(e[i],a,t,n,r);return o},Sw=function(e,t,n,r,a,i){var o,s,l,u;if(wG[e]&&!1!==(o=new wG[e]).init(a,o.rawVars?t[e]:Sb(t[e],r,a,i,n),n,r,i)&&(n._pt=s=new SU(n._pt,a,e,0,1,o.render,o,0,o.priority),n!==wa))for(l=n._ptLookup[n._targets.indexOf(a)],u=o._props.length;u--;)l[o._props[u]]=s;return o},Sx=function e(t,n,r){var a,i,o,s,l,u,c,d,f,p,m,h,y,g=t.vars,v=g.ease,b=g.startAt,w=g.immediateRender,x=g.lazy,S=g.onUpdate,j=g.runBackwards,E=g.yoyoEase,O=g.keyframes,k=g.autoRevert,D=t._dur,P=t._startAt,A=t._targets,C=t.parent,T=C&&"nested"===C.data?C.vars.targets:A,N="auto"===t._overwrite&&!b5,R=t.timeline,M=g.easeReverse||E;if(!R||O&&v||(v="none"),t._ease=Sr(v,ws.ease),t._rEase=M&&(Sr(M)||t._ease),t._from=!R&&!!g.runBackwards,t._from&&(t.ratio=1),!R||O&&!g.stagger){if(h=(d=A[0]?wQ(A[0]).harness:0)&&g[d.prop],a=xr(g,wW),P&&(P._zTime<0&&P.progress(1),n<0&&j&&w&&!k?P.render(-1,!0):P.revert(j&&D?wz:wB),P._lazy=0),b){if(xl(t._startAt=SP.set(A,xe({data:"isStart",overwrite:!1,parent:C,immediateRender:!0,lazy:!P&&wb(x),startAt:null,delay:0,onUpdate:S&&function(){return xG(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(b6||!w&&!k)&&t._startAt.revert(wz),w&&D&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(j&&D&&!P)if(n&&(w=!1),o=xe({overwrite:!1,data:"isFromStart",lazy:w&&!P&&wb(x),immediateRender:w,stagger:0,parent:C},a),h&&(o[d.prop]=h),xl(t._startAt=SP.set(A,o)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(b6?t._startAt.revert(wz):t._startAt.render(-1,!0)),t._zTime=n,w){if(!n)return}else e(t._startAt,1e-8,1e-8);for(i=0,t._pt=t._ptCache=0,x=D&&wb(x)||x&&!D;i<A.length;i++){if(c=(l=A[i])._gsap||wX(A)[i]._gsap,t._ptLookup[i]=p={},wH[c.id]&&w$.length&&w5(),m=T===A?i:T.indexOf(l),d&&!1!==(f=new d).init(l,h||a,t,m,T)&&(t._pt=s=new SU(t._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(e){p[e]=s}),f.priority&&(u=1)),!d||h)for(o in a)wG[o]&&(f=Sw(o,a,t,m,l,T))?f.priority&&(u=1):p[o]=s=Sv.call(t,l,o,"get",a[o],m,T,0,g.stringFilter);t._op&&t._op[i]&&t.kill(l,t._op[i]),N&&t._pt&&(Sh=t,b9.killTweensOf(l,p,t.globalTime(n)),y=!t.parent,Sh=0),t._pt&&x&&(wH[c.id]=1)}u&&Sz(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!y,O&&n<=0&&R.render(1e8,!0,!0)},SS=function(e,t,n,r,a,i,o,s){var l,u,c,d,f=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!f)for(f=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Sy=1,e.vars[t]="+=0",Sx(e,o),Sy=0,s?w_(t+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(d=f.length;d--;)(l=(u=f[d])._pt||u).s=(r||0===r)&&!a?r:l.s+(r||0)+i*l.c,l.c=n-l.s,u.e&&(u.e=w1(n)+xN(u.e)),u.b&&(u.b=l.s+xN(u.b))},Sj=function(e,t){var n,r,a,i,o=e[0]?wQ(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(r in n=xt({},t),s)if(r in n)for(a=(i=s[r].split(",")).length;a--;)n[i[a]]=n[r];return n},SE=function(e,t,n,r){var a,i,o=t.ease||r||"power1.inOut";if(wj(t))i=n[e]||(n[e]=[]),t.forEach(function(e,n){return i.push({t:n/(t.length-1)*100,v:e,e:o})});else for(a in t)i=n[a]||(n[a]=[]),"ease"===a||i.push({t:parseFloat(e),v:t[a],e:o})},SO=function(e,t,n,r,a){return wh(e)?e.call(t,n,r,a):wm(e)&&~e.indexOf("random(")?xW(e):e},Sk=wZ+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",SD={};w0(Sk+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return SD[e]=1});var SP=function(e){function t(t,n,r,a){"number"==typeof n&&(r.duration=n,n=r,r=null);var i,o,s,l,u,c,d,f,p=e.call(this,a?n:xa(n))||this,m=p.vars,h=m.duration,y=m.delay,g=m.immediateRender,v=m.stagger,b=m.overwrite,w=m.keyframes,x=m.defaults,S=m.scrollTrigger,j=n.parent||b9,E=(wj(t)||wS(t)?wy(t[0]):"length"in n)?[t]:xI(t);if(p._targets=E.length?wX(E):w_("GSAP target "+t+" not found. https://gsap.com",!wo.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,w||v||wx(h)||wx(y)){var O=(n=p.vars).easeReverse||n.yoyoEase;if((i=p.timeline=new Sc({data:"nested",defaults:x||{},targets:j&&"nested"===j.data?j.vars.targets:E})).kill(),i.parent=i._dp=bB(p),i._start=0,v||wx(h)||wx(y)){if(l=E.length,d=v&&xF(v),wv(v))for(u in v)~Sk.indexOf(u)&&(f||(f={}),f[u]=v[u]);for(o=0;o<l;o++)(s=xr(n,SD)).stagger=0,O&&(s.easeReverse=O),f&&xt(s,f),c=E[o],s.duration=+SO(h,bB(p),o,c,E),s.delay=(+SO(y,bB(p),o,c,E)||0)-p._delay,!v&&1===l&&s.delay&&(p._delay=y=s.delay,p._start+=y,s.delay=0),i.to(c,s,d?d(o,c,E):0),i._ease=x6.none;i.duration()?h=y=0:p.timeline=0}else if(w){xa(xe(i.vars.defaults,{ease:"none"})),i._ease=Sr(w.ease||n.ease||"none");var k,D,P,A=0;if(wj(w))w.forEach(function(e){return i.to(E,e,">")}),i.duration();else{for(u in s={},w)"ease"===u||"easeEach"===u||SE(u,w[u],s,w.easeEach);for(u in s)for(o=0,k=s[u].sort(function(e,t){return e.t-t.t}),A=0;o<k.length;o++)(P={ease:(D=k[o]).e,duration:(D.t-(o?k[o-1].t:0))/100*h})[u]=D.v,i.to(E,P,A),A+=P.duration;i.duration()<h&&i.to({},{duration:h-i.duration()})}}h||p.duration(h=i.duration())}else p.timeline=0;return!0!==b||b5||(Sh=bB(p),b9.killTweensOf(E),Sh=0),xv(j,bB(p),r),n.reversed&&p.reverse(),n.paused&&p.paused(!0),(g||!h&&!w&&p._start===w2(j._time)&&wb(g)&&function e(t){return!t||t._ts&&e(t.parent)}(bB(p))&&"nested"!==j.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),S&&xb(bB(p),S),p}bz(t,e);var n=t.prototype;return n.render=function(e,t,n){var r,a,i,o,s,l,u,c,d=this._time,f=this._tDur,p=this._dur,m=e<0,h=e>f-1e-8&&!m?f:e<1e-8?0:e;if(p){if(h!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(r=h,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+e,t,n);if(r=w2(h%o),h===f?(i=this._repeat,r=p):(i=~~(s=w2(h/o)))&&i===s?(r=p,i--):r>p&&(r=p),(l=this._yoyo&&1&i)&&(r=p-r),s=xp(this._tTime,o),r===d&&!n&&this._initted&&i===s)return this._tTime=h,this;i!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&r!==o&&this._initted&&(this._lock=n=1,this.render(w2(o*i),!0).invalidate()._lock=0)}if(!this._initted){if(xw(this,m?e:r,n,t,h))return this._tTime=0,this;if(d!==this._time&&!(n&&this.vars.repeatRefresh&&i!==s))return this;if(p!==this._dur)return this.render(e,t,n)}if(this._rEase){var y=r<d;if(y!==this._inv){var g=y?d:p-d;this._inv=y,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=g?(y?-1:1)/g:0,this._invScale=y?-this.ratio:1-this.ratio,this._invEase=y?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((r-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(r/p);if(this._from&&(this.ratio=u=1-u),this._tTime=h,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&h&&!t&&!s&&(xG(this,"onStart"),this._tTime!==h))return this;for(a=this._pt;a;)a.r(u,a.d),a=a._next;c&&c.render(e<0?e:c._dur*c._ease(r/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&xd(this,e,t,n),xG(this,"onUpdate")),this._repeat&&i!==s&&this.vars.onRepeat&&!t&&this.parent&&xG(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(m&&!this._onUpdate&&xd(this,e,!0,!0),(e||!p)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&xl(this,1),!t&&!(m&&!d)&&(h||d||l)&&(xG(this,h===f?"onComplete":"onReverseComplete",!0),this._prom&&!(h<f&&this.timeScale()>0)&&this._prom()))}}else xj(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,a){wi||x4.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||Sx(this,i),SS(this,e,t,n,r,this._ease(i/this._dur),i,a))?this.resetTo(e,t,n,r,1):(xy(this,0),this.parent||xo(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?xq(this):this.scrollTrigger&&this.scrollTrigger.kill(!!b6),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Sh&&!0!==Sh.vars.overwrite)._first||xq(this),this.parent&&n!==this.timeline.totalDuration()&&xO(this,this._dur*this.timeline._tDur/n,0,1),this}var r,a,i,o,s,l,u,c=this._targets,d=e?xI(e):c,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&xi(c,d))return"all"===t&&(this._pt=0),xq(this);for(r=this._op=this._op||[],"all"!==t&&(wm(t)&&(s={},w0(t,function(e){return s[e]=1}),t=s),t=Sj(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in a=f[u],"all"===t?(r[u]=t,o=a,i={}):(i=r[u]=r[u]||{},o=t),o)(l=a&&a[s])&&("kill"in l.d&&!0!==l.d.kill(s)||xs(this,l,"_pt"),delete a[s]),"all"!==i&&(i[s]=1);return this._initted&&!this._pt&&p&&xq(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return xA(1,arguments)},t.delayedCall=function(e,n,r,a){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:a})},t.fromTo=function(e,t,n){return xA(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return b9.killTweensOf(e,t,n)},t}(Su);xe(SP.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),w0("staggerTo,staggerFrom,staggerFromTo",function(e){SP[e]=function(){var t=new Sc,n=xR.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}});var SA=function(e,t,n){return e[t]=n},SC=function(e,t,n){return e[t](n)},ST=function(e,t,n,r){return e[t](r.fp,n)},SN=function(e,t,n){return e.setAttribute(t,n)},SR=function(e,t){return wh(e[t])?SC:wg(e[t])&&e.setAttribute?SN:SA},SM=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},SI=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},SL=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},S_=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},SF=function(e,t,n,r){for(var a,i=this._pt;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},SV=function(e){for(var t,n,r=this._pt;r;)n=r._next,(r.p!==e||r.op)&&r.op!==e?r.dep||(t=1):xs(this,r,"_pt"),r=n;return!t},SB=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Sz=function(e){for(var t,n,r,a,i=e._pt;i;){for(t=i._next,n=r;n&&n.pr>i.pr;)n=n._next;(i._prev=n?n._prev:a)?i._prev._next=i:r=i,(i._next=n)?n._prev=i:a=i,i=t}e._pt=r},SU=function(){function e(e,t,n,r,a,i,o,s,l){this.t=t,this.s=r,this.c=a,this.p=n,this.r=i||SM,this.d=o||this,this.set=s||SA,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=SB,this.m=e,this.mt=n,this.tween=t},e}();w0(wZ+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return wW[e]=1}),wR.TweenMax=wR.TweenLite=SP,wR.TimelineLite=wR.TimelineMax=Sc,b9=new Sc({sortChildren:!1,defaults:ws,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),wo.stringFilter=x3;var SW=[],S$={},SH=[],SG=0,Sq=0,SY=function(e){return(S$[e]||SH).map(function(e){return e()})},SK=function(){var e=Date.now(),t=[];e-SG>2&&(SY("matchMediaInit"),SW.forEach(function(e){var n,r,a,i,o=e.queries,s=e.conditions;for(r in o)(n=b7.matchMedia(o[r]).matches)&&(a=1),n!==s[r]&&(s[r]=n,i=1);i&&(e.revert(),a&&t.push(e))}),SY("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),SG=e,SY("matchMedia"))},SZ=function(){function e(e,t){this.selector=t&&xL(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Sq++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){wh(e)&&(n=t,t=e,e=wh);var r=this,a=function(){var e,a=b8,i=r.selector;return a&&a!==r&&a.data.push(r),n&&(r.selector=xL(n)),b8=r,e=t.apply(r,arguments),wh(e)&&r._r.push(e),b8=a,r.selector=i,r.isReverted=!1,e};return r.last=a,e===wh?a(r,function(e){return r.add(null,e)}):e?r[e]=a:a},t.ignore=function(e){var t=b8;b8=null,e(this),b8=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return bV(n,e)?t.push.apply(t,n.getTweens()):bV(n,SP)&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e){for(var r,a=n.getTweens(),i=n.data.length;i--;)"isFlip"===(r=n.data[i]).data&&(r.revert(),r.getChildren(!0,!0,!1).forEach(function(e){return a.splice(a.indexOf(e),1)}));for(a.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),i=n.data.length;i--;)bV(r=n.data[i],Sc)?"nested"!==r.data&&(r.scrollTrigger&&r.scrollTrigger.revert(),r.kill()):!bV(r,SP)&&r.revert&&r.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var o=SW.length;o--;)SW[o].id===this.id&&SW.splice(o,1)},t.revert=function(e){this.kill(e||{})},e}(),SX=function(){function e(e){this.contexts=[],this.scope=e,b8&&b8.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){wv(e)||(e={matches:e});var r,a,i,o=new SZ(0,n||this.scope),s=o.conditions={};for(a in b8&&!o.selector&&(o.selector=b8.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===a?i=1:(r=b7.matchMedia(e[a]))&&(0>SW.indexOf(o)&&SW.push(o),(s[a]=r.matches)&&(i=1),r.addListener?r.addListener(SK):r.addEventListener("change",SK));return i&&t(o,function(e){return o.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),SQ={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return xK(e)})},timeline:function(e){return new Sc(e)},getTweensOf:function(e,t){return b9.getTweensOf(e,t)},getProperty:function(e,t,n,r){wm(e)&&(e=xI(e)[0]);var a=wQ(e||{}).get,i=n?w7:w9;return"native"===n&&(n=""),e?t?i((wG[t]&&wG[t].get||a)(e,t,n,r)):function(t,n,r){return i((wG[t]&&wG[t].get||a)(e,t,n,r))}:e},quickSetter:function(e,t,n){if((e=xI(e)).length>1){var r=e.map(function(e){return S2.quickSetter(e,t,n)}),a=r.length;return function(e){for(var t=a;t--;)r[t](e)}}e=e[0]||{};var i=wG[t],o=wQ(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=i?function(t){var r=new i;wa._pt=0,r.init(e,n?t+n:t,wa,0,[e]),r.render(1,r),wa._pt&&S_(1,wa)}:o.set(e,s);return i?l:function(t){return l(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,a=S2.to(e,xe(((r={})[t]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),i=function(e,n,r){return a.resetTo(t,e,n,r)};return i.tween=a,i},isTweening:function(e){return b9.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Sr(e.ease,ws.ease)),xn(ws,e||{})},config:function(e){return xn(wo,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,a=e.defaults,i=e.extendTimeline;(r||"").split(",").forEach(function(e){return e&&!wG[e]&&!wR[e]&&w_(t+" effect requires "+e+" plugin.")}),wq[t]=function(e,t,r){return n(xI(e),xe(t||{},a),r)},i&&(Sc.prototype[t]=function(e,n,r){return this.add(wq[t](e,wv(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){x6[e]=Sr(t)},parseEase:function(e,t){return arguments.length?Sr(e,t):x6},getById:function(e){return b9.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,a=new Sc(e);for(a.smoothChildTiming=wb(e.smoothChildTiming),b9.remove(a),a._dp=0,a._time=a._tTime=b9._time,n=b9._first;n;)r=n._next,(t||!(!n._dur&&bV(n,SP)&&n.vars.onComplete===n._targets[0]))&&xv(a,n,n._start-n._delay),n=r;return xv(b9,a,0),a},context:function(e,t){return e?new SZ(e,t):b8},matchMedia:function(e){return new SX(e)},matchMediaRefresh:function(){return SW.forEach(function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()})||SK()},addEventListener:function(e,t){var n=S$[e]||(S$[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=S$[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:function e(t,n,r){var a=n-t;return wj(t)?xU(t,e(0,t.length),n):xC(r,function(e){return(a+(e-t)%a)%a+t})},wrapYoyo:function e(t,n,r){var a=n-t,i=2*a;return wj(t)?xU(t,e(0,t.length-1),n):xC(r,function(e){return e=(i+(e-t)%i)%i||0,t+(e>a?i-e:e)})},distribute:xF,random:xz,snap:xB,normalize:function(e,t,n){return x$(e,t,0,1,n)},getUnit:xN,clamp:function(e,t,n){return xC(n,function(n){return xT(e,t,n)})},splitColor:xQ,toArray:xI,selector:xL,mapRange:x$,pipe:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||xN(n))}},interpolate:function e(t,n,r,a){var i=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!i){var o,s,l,u,c,d=wm(t),f={};if(!0===r&&(a=1)&&(r=null),d)t={p:t},n={p:n};else if(wj(t)&&!wj(n)){for(s=1,l=[],c=(u=t.length)-2;s<u;s++)l.push(e(t[s-1],t[s]));u--,i=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},r=n}else a||(t=xt(wj(t)?[]:{},t));if(!l){for(o in n)Sv.call(f,t,o,"get",n[o]);i=function(e){return S_(e,f)||(d?t.p:t)}}}return xC(r,i)},shuffle:x_},install:wI,effects:wq,ticker:x4,updateRoot:Sc.updateRoot,plugins:wG,globalTimeline:b9,core:{PropTween:SU,globals:wF,Tween:SP,Timeline:Sc,Animation:Su,getCache:wQ,_removeLinkedListItem:xs,reverting:function(){return b6},context:function(e){return e&&b8&&(b8.data.push(e),e._ctx=b8),b8},suppressOverwrites:function(e){return b5=e}}};w0("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return SQ[e]=SP[e]}),x4.add(Sc.updateRoot),wa=SQ.to({},{duration:0});var SJ=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},S0=function(e,t){var n,r,a,i=e._targets;for(n in t)for(r=i.length;r--;)(a=e._ptLookup[r][n])&&(a=a.d)&&(a._pt&&(a=SJ(a,n)),a&&a.modifier&&a.modifier(t[n],e,i[r],n))},S1=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,a;if(wm(n)&&(r={},w0(n,function(e){return r[e]=1}),n=r),t){for(a in r={},n)r[a]=t(n[a]);n=r}S0(e,n)}}}},S2=SQ.registerPlugin({name:"attr",init:function(e,t,n,r,a){var i,o,s;for(i in this.tween=n,t)s=e.getAttribute(i)||"",(o=this.add(e,"setAttribute",(s||0)+"",t[i],r,a,0,0,i)).op=i,o.b=s,this._props.push(i)},render:function(e,t){for(var n=t._pt;n;)b6?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},S1("roundProps",xV),S1("modifiers"),S1("snap",xB))||SQ;function S3(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}SP.version=Sc.version=S2.version="3.15.0",wn=1,ww()&&x5(),x6.Power0,x6.Power1,x6.Power2,x6.Power3,x6.Power4,x6.Linear,x6.Quad,x6.Cubic,x6.Quart,x6.Quint,x6.Strong,x6.Elastic,x6.Back,x6.SteppedEase,x6.Bounce,x6.Sine,x6.Expo,x6.Circ;var S4,S5,S6,S8,S9,S7,je,jt={},jn=180/Math.PI,jr=Math.PI/180,ja=Math.atan2,ji=/([A-Z])/g,jo=/(left|right|width|margin|padding|x)/i,js=/[\s,\(]\S/,jl={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ju=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},jc=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},jd=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},jf=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},jp=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},jm=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},jh=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},jy=function(e,t,n){return e.style[t]=n},jg=function(e,t,n){return e.style.setProperty(t,n)},jv=function(e,t,n){return e._gsap[t]=n},jb=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},jw=function(e,t,n,r,a){var i=e._gsap;i.scaleX=i.scaleY=n,i.renderTransform(a,i)},jx=function(e,t,n,r,a){var i=e._gsap;i[t]=n,i.renderTransform(a,i)},jS="transform",jj=jS+"Origin",jE=function e(t,n){var r=this,a=this.target,i=a.style,o=a._gsap;if(t in jt&&i){if(this.tfm=this.tfm||{},"transform"===t)return jl.transform.split(",").forEach(function(t){return e.call(r,t,n)});if(~(t=jl[t]||t).indexOf(",")?t.split(",").forEach(function(e){return r.tfm[e]=jU(a,e)}):this.tfm[t]=o.x?o[t]:jU(a,t),t===jj&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(jS)>=0)return;o.svg&&(this.svgo=a.getAttribute("data-svg-origin"),this.props.push(jj,n,"")),t=jS}(i||n)&&this.props.push(t,n,i[t])},jO=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},jk=function(){var e,t,n=this.props,r=this.target,a=r.style,i=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?a[n[e]]=n[e+2]:a.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(ji,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)i[t]=this.tfm[t];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=S7())&&e.isStart||a[jS]||(jO(a),i.zOrigin&&a[jj]&&(a[jj]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},jD=function(e,t){var n={target:e,props:[],revert:jk,save:jE};return e._gsap||S2.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return n.save(e)}),n},jP=function(e,t){var n=S4.createElementNS?S4.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):S4.createElement(e);return n&&n.style?n:S4.createElement(e)},jA=function e(t,n,r){var a=getComputedStyle(t);return a[n]||a.getPropertyValue(n.replace(ji,"-$1").toLowerCase())||a.getPropertyValue(n)||!r&&e(t,jT(n)||n,1)||""},jC="O,Moz,ms,Ms,Webkit".split(","),jT=function(e,t,n){var r=(t||S8).style,a=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(jC[a]+e in r););return a<0?null:(3===a?"ms":a>=0?jC[a]:"")+e},jN=function(){"u">typeof window&&window.document&&(S5=(S4=window.document).documentElement,S8=jP("div")||{style:{}},jP("div"),jj=(jS=jT(jS))+"Origin",S8.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",je=!!jT("perspective"),S7=S2.core.reverting,S6=1)},jR=function(e){var t,n=e.ownerSVGElement,r=jP("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=e.cloneNode(!0);a.style.display="block",r.appendChild(a),S5.appendChild(r);try{t=a.getBBox()}catch(e){}return r.removeChild(a),S5.removeChild(r),t},jM=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},jI=function(e){var t,n;try{t=e.getBBox()}catch(r){t=jR(e),n=1}return t&&(t.width||t.height)||n||(t=jR(e)),!t||t.width||t.x||t.y?t:{x:+jM(e,["x","cx","x1"])||0,y:+jM(e,["y","cy","y1"])||0,width:0,height:0}},jL=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&jI(e))},j_=function(e,t){if(t){var n,r=e.style;t in jt&&t!==jj&&(t=jS),r.removeProperty?(("ms"===(n=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),r.removeProperty("--"===n?t:t.replace(ji,"-$1").toLowerCase())):r.removeAttribute(t)}},jF=function(e,t,n,r,a,i){var o=new SU(e._pt,t,n,0,1,i?jh:jm);return e._pt=o,o.b=r,o.e=a,e._props.push(n),o},jV={deg:1,rad:1,turn:1},jB={grid:1,flex:1},jz=function e(t,n,r,a){var i,o,s,l,u=parseFloat(r)||0,c=(r+"").trim().substr((u+"").length)||"px",d=S8.style,f=jo.test(n),p="svg"===t.tagName.toLowerCase(),m=(p?"client":"offset")+(f?"Width":"Height"),h="px"===a,y="%"===a;if(a===c||!u||jV[a]||jV[c])return u;if("px"===c||h||(u=e(t,n,r,"px")),l=t.getCTM&&jL(t),(y||"%"===c)&&(jt[n]||~n.indexOf("adius")))return i=l?t.getBBox()[f?"width":"height"]:t[m],w1(y?u/i*100:u/100*i);if(d[f?"width":"height"]=100+(h?c:a),o="rem"!==a&&~n.indexOf("adius")||"em"===a&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==S4&&o.appendChild||(o=S4.body),(s=o._gsap)&&y&&s.width&&f&&s.time===x4.time&&!s.uncache)return w1(u/s.width*100);if(y&&("height"===n||"width"===n)){var g=t.style[n];t.style[n]=100+a,i=t[m],g?t.style[n]=g:j_(t,n)}else(y||"%"===c)&&!jB[jA(o,"display")]&&(d.position=jA(t,"position")),o===t&&(d.position="static"),o.appendChild(S8),i=S8[m],o.removeChild(S8),d.position="absolute";return f&&y&&((s=wQ(o)).time=x4.time,s.width=o[m]),w1(h?i*u/100:i&&u?100/i*u:0)},jU=function(e,t,n,r){var a;return S6||jN(),t in jl&&"transform"!==t&&~(t=jl[t]).indexOf(",")&&(t=t.split(",")[0]),jt[t]&&"transform"!==t?(a=j0(e,r),a="transformOrigin"!==t?a[t]:a.svg?a.origin:j1(jA(e,jj))+" "+a.zOrigin+"px"):(!(a=e.style[t])||"auto"===a||r||~(a+"").indexOf("calc("))&&(a=jq[t]&&jq[t](e,t,n)||jA(e,t)||wJ(e,t)||+("opacity"===t)),n&&!~(a+"").trim().indexOf(" ")?jz(e,t,a,n)+n:a},jW=function(e,t,n,r){if(!n||"none"===n){var a=jT(t,e,1),i=a&&jA(e,a,1);i&&i!==n?(t=a,n=i):"borderColor"===t&&(n=jA(e,"borderTopColor"))}var o,s,l,u,c,d,f,p,m,h,y,g=new SU(this._pt,e.style,t,0,1,SL),v=0,b=0;if(g.b=n,g.e=r,n+="","var(--"===(r+="").substring(0,6)&&(r=jA(e,r.substring(4,r.indexOf(")")))),"auto"===r&&(d=e.style[t],e.style[t]=r,r=jA(e,t)||r,d?e.style[t]=d:j_(e,t)),x3(o=[n,r]),n=o[0],r=o[1],l=n.match(wP)||[],(r.match(wP)||[]).length){for(;s=wP.exec(r);)f=s[0],m=r.substring(v,s.index),c?c=(c+1)%5:("rgba("===m.substr(-5)||"hsla("===m.substr(-5))&&(c=1),f!==(d=l[b++]||"")&&(u=parseFloat(d)||0,y=d.substr((u+"").length),"="===f.charAt(1)&&(f=w3(u,f)+y),p=parseFloat(f),h=f.substr((p+"").length),v=wP.lastIndex-h.length,h||(h=h||wo.units[t]||y,v===r.length&&(r+=h,g.e+=h)),y!==h&&(u=jz(e,t,d,h)||0),g._pt={_next:g._pt,p:m||1===b?m:",",s:u,c:p-u,m:c&&c<4||"zIndex"===t?Math.round:0});g.c=v<r.length?r.substring(v,r.length):""}else g.r="display"===t&&"none"===r?jh:jm;return wC.test(r)&&(g.e=0),this._pt=g,g},j$={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},jH=function(e){var t=e.split(" "),n=t[0],r=t[1]||"50%";return("top"===n||"bottom"===n||"left"===r||"right"===r)&&(e=n,n=r,r=e),t[0]=j$[n]||n,t[1]=j$[r]||r,t.join(" ")},jG=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,a,i=t.t,o=i.style,s=t.u,l=i._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(a=(s=s.split(",")).length;--a>-1;)jt[n=s[a]]&&(r=1,n="transformOrigin"===n?jj:jS),j_(i,n);r&&(j_(i,jS),l&&(l.svg&&i.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",j0(i,1),l.uncache=1,jO(o)))}},jq={clearProps:function(e,t,n,r,a){if("isFromStart"!==a.data){var i=e._pt=new SU(e._pt,t,n,0,0,jG);return i.u=r,i.pr=-10,i.tween=a,e._props.push(n),1}}},jY=[1,0,0,1,0,0],jK={},jZ=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},jX=function(e){var t=jA(e,jS);return jZ(t)?jY:t.substr(7).match(wD).map(w1)},jQ=function(e,t){var n,r,a,i,o=e._gsap||wQ(e),s=e.style,l=jX(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(a=e.transform.baseVal.consolidate().matrix).a,a.b,a.c,a.d,a.e,a.f]).join(",")?jY:l:(l!==jY||e.offsetParent||e===S5||o.svg||(a=s.display,s.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(i=1,r=e.nextElementSibling,S5.appendChild(e)),l=jX(e),a?s.display=a:j_(e,"display"),i&&(r?n.insertBefore(e,r):n?n.appendChild(e):S5.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},jJ=function(e,t,n,r,a,i){var o,s,l,u,c=e._gsap,d=a||jQ(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,m=c.xOffset||0,h=c.yOffset||0,y=d[0],g=d[1],v=d[2],b=d[3],w=d[4],x=d[5],S=t.split(" "),j=parseFloat(S[0])||0,E=parseFloat(S[1])||0;n?d!==jY&&(s=y*b-g*v)&&(l=b/s*j+-v/s*E+(v*x-b*w)/s,u=-g/s*j+y/s*E-(y*x-g*w)/s,j=l,E=u):(j=(o=jI(e)).x+(~S[0].indexOf("%")?j/100*o.width:j),E=o.y+(~(S[1]||S[0]).indexOf("%")?E/100*o.height:E)),r||!1!==r&&c.smooth?(c.xOffset=m+((w=j-f)*y+(x=E-p)*v)-w,c.yOffset=h+(w*g+x*b)-x):c.xOffset=c.yOffset=0,c.xOrigin=j,c.yOrigin=E,c.smooth=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[jj]="0px 0px",i&&(jF(i,c,"xOrigin",f,j),jF(i,c,"yOrigin",p,E),jF(i,c,"xOffset",m,c.xOffset),jF(i,c,"yOffset",h,c.yOffset)),e.setAttribute("data-svg-origin",j+" "+E)},j0=function(e,t){var n=e._gsap||new Sl(e);if("x"in n&&!t&&!n.uncache)return n;var r,a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O,k,D,P,A,C,T,N,R,M,I=e.style,L=n.scaleX<0,_=getComputedStyle(e),F=jA(e,jj)||"0";return r=a=i=l=u=c=d=f=p=0,o=s=1,n.svg=!!(e.getCTM&&jL(e)),_.translate&&(("none"!==_.translate||"none"!==_.scale||"none"!==_.rotate)&&(I[jS]=("none"!==_.translate?"translate3d("+(_.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==_.rotate?"rotate("+_.rotate+") ":"")+("none"!==_.scale?"scale("+_.scale.split(" ").join(",")+") ":"")+("none"!==_[jS]?_[jS]:"")),I.scale=I.rotate=I.translate="none"),y=jQ(e,n.svg),n.svg&&(n.uncache?(D=e.getBBox(),F=n.xOrigin-D.x+"px "+(n.yOrigin-D.y)+"px",k=""):k=!t&&e.getAttribute("data-svg-origin"),jJ(e,k||F,!!k||n.originIsAbsolute,!1!==n.smooth,y)),m=n.xOrigin||0,h=n.yOrigin||0,y!==jY&&(w=y[0],x=y[1],S=y[2],j=y[3],r=E=y[4],a=O=y[5],6===y.length?(o=Math.sqrt(w*w+x*x),s=Math.sqrt(j*j+S*S),l=w||x?ja(x,w)*jn:0,(d=S||j?ja(S,j)*jn+l:0)&&(s*=Math.abs(Math.cos(d*jr))),n.svg&&(r-=m-(m*w+h*S),a-=h-(m*x+h*j))):(M=y[6],N=y[7],A=y[8],C=y[9],T=y[10],R=y[11],r=y[12],a=y[13],i=y[14],u=(g=ja(M,T))*jn,g&&(k=E*(v=Math.cos(-g))+A*(b=Math.sin(-g)),D=O*v+C*b,P=M*v+T*b,A=-(E*b)+A*v,C=-(O*b)+C*v,T=-(M*b)+T*v,R=-(N*b)+R*v,E=k,O=D,M=P),c=(g=ja(-S,T))*jn,g&&(k=w*(v=Math.cos(-g))-A*(b=Math.sin(-g)),D=x*v-C*b,P=S*v-T*b,R=j*b+R*v,w=k,x=D,S=P),l=(g=ja(x,w))*jn,g&&(k=w*(v=Math.cos(g))+x*(b=Math.sin(g)),D=E*v+O*b,x=x*v-w*b,O=O*v-E*b,w=k,E=D),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=w1(Math.sqrt(w*w+x*x+S*S)),s=w1(Math.sqrt(O*O+M*M)),d=Math.abs(g=ja(E,O))>2e-4?g*jn:0,p=R?1/(R<0?-R:R):0),n.svg&&(k=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!jZ(jA(e,jS)),k&&e.setAttribute("transform",k))),Math.abs(d)>90&&270>Math.abs(d)&&(L?(o*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+"px",n.y=a-((n.yPercent=a&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-a)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+"px",n.z=i+"px",n.scaleX=w1(o),n.scaleY=w1(s),n.rotation=w1(l)+"deg",n.rotationX=w1(u)+"deg",n.rotationY=w1(c)+"deg",n.skewX=d+"deg",n.skewY=f+"deg",n.transformPerspective=p+"px",(n.zOrigin=parseFloat(F.split(" ")[2])||!t&&n.zOrigin||0)&&(I[jj]=j1(F)),n.xOffset=n.yOffset=0,n.force3D=wo.force3D,n.renderTransform=n.svg?j6:je?j5:j3,n.uncache=0,n},j1=function(e){return(e=e.split(" "))[0]+" "+e[1]},j2=function(e,t,n){var r=xN(t);return w1(parseFloat(t)+parseFloat(jz(e,"x",n+"px",r)))+r},j3=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,j5(e,t)},j4="0deg",j5=function(e,t){var n=t||this,r=n.xPercent,a=n.yPercent,i=n.x,o=n.y,s=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,y=n.force3D,g=n.target,v=n.zOrigin,b="",w="auto"===y&&e&&1!==e||!0===y;if(v&&(c!==j4||u!==j4)){var x,S=parseFloat(u)*jr,j=Math.sin(S),E=Math.cos(S);i=j2(g,i,-(j*(x=Math.cos(S=parseFloat(c)*jr))*v)),o=j2(g,o,-(-Math.sin(S)*v)),s=j2(g,s,-(E*x*v)+v)}"0px"!==h&&(b+="perspective("+h+") "),(r||a)&&(b+="translate("+r+"%, "+a+"%) "),(w||"0px"!==i||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||w?"translate3d("+i+", "+o+", "+s+") ":"translate("+i+", "+o+") "),l!==j4&&(b+="rotate("+l+") "),u!==j4&&(b+="rotateY("+u+") "),c!==j4&&(b+="rotateX("+c+") "),(d!==j4||f!==j4)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==m)&&(b+="scale("+p+", "+m+") "),g.style[jS]=b||"translate(0, 0)"},j6=function(e,t){var n,r,a,i,o,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,p=s.skewX,m=s.skewY,h=s.scaleX,y=s.scaleY,g=s.target,v=s.xOrigin,b=s.yOrigin,w=s.xOffset,x=s.yOffset,S=s.forceCSS,j=parseFloat(c),E=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(m=parseFloat(m))&&(p+=m=parseFloat(m),f+=m),f||p?(f*=jr,p*=jr,n=Math.cos(f)*h,r=Math.sin(f)*h,a=-(Math.sin(f-p)*y),i=Math.cos(f-p)*y,p&&(m*=jr,a*=o=Math.sqrt(1+(o=Math.tan(p-m))*o),i*=o,m&&(n*=o=Math.sqrt(1+(o=Math.tan(m))*o),r*=o)),n=w1(n),r=w1(r),a=w1(a),i=w1(i)):(n=h,i=y,r=a=0),(j&&!~(c+"").indexOf("px")||E&&!~(d+"").indexOf("px"))&&(j=jz(g,"x",c,"px"),E=jz(g,"y",d,"px")),(v||b||w||x)&&(j=w1(j+v-(v*n+b*a)+w),E=w1(E+b-(v*r+b*i)+x)),(l||u)&&(j=w1(j+l/100*(o=g.getBBox()).width),E=w1(E+u/100*o.height)),o="matrix("+n+","+r+","+a+","+i+","+j+","+E+")",g.setAttribute("transform",o),S&&(g.style[jS]=o)},j8=function(e,t,n,r,a){var i,o,s=wm(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?jn:1)-r,u=r+l+"deg";return s&&("short"===(i=a.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===i&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===i&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new SU(e._pt,t,n,r,l,jc),o.e=u,o.u="deg",e._props.push(n),o},j9=function(e,t){for(var n in t)e[n]=t[n];return e},j7=function(e,t,n){var r,a,i,o,s,l,u,c=j9({},n._gsap),d=n.style;for(a in c.svg?(i=n.getAttribute("transform"),n.setAttribute("transform",""),d[jS]=t,r=j0(n,1),j_(n,jS),n.setAttribute("transform",i)):(i=getComputedStyle(n)[jS],d[jS]=t,r=j0(n,1),d[jS]=i),jt)(i=c[a])!==(o=r[a])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)&&(s=xN(i)!==(u=xN(o))?jz(n,a,i,u):parseFloat(i),l=parseFloat(o),e._pt=new SU(e._pt,r,a,s,l-s,ju),e._pt.u=u||0,e._props.push(a));j9(r,c)};w0("padding,margin,Width,Radius",function(e,t){var n="Right",r="Bottom",a="Left",i=(t<3?["Top",n,r,a]:["Top"+a,"Top"+n,r+n,r+a]).map(function(n){return t<2?e+n:"border"+n+e});jq[t>1?"border"+e:e]=function(e,t,n,r,a){var o,s;if(arguments.length<4)return 5===(s=(o=i.map(function(t){return jU(e,t,n)})).join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},i.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,a)}});var Ee={name:"css",register:jN,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,a){var i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S=this._props,j=e.style,E=n.vars.startAt;for(d in S6||jN(),this.styles=this.styles||jD(e),w=this.styles.props,this.tween=n,t)if("autoRound"!==d&&(o=t[d],!(wG[d]&&Sw(d,t,n,r,e,a)))){if(u=void 0===o?"undefined":S3(o),c=jq[d],"function"===u&&(u=void 0===(o=o.call(n,r,e,a))?"undefined":S3(o)),"string"===u&&~o.indexOf("random(")&&(o=xW(o)),c)c(this,e,d,o,n)&&(b=1);else if("--"===d.substr(0,2))i=(getComputedStyle(e).getPropertyValue(d)+"").trim(),o+="",x1.lastIndex=0,!x1.test(i)&&(f=xN(i),(p=xN(o))?f!==p&&(i=jz(e,d,i,p)+p):f&&(o+=f)),this.add(j,"setProperty",i,o,r,a,0,0,d),S.push(d),w.push(d,0,j[d]);else if("undefined"!==u){if(E&&d in E?(wm(i="function"==typeof E[d]?E[d].call(n,r,e,a):E[d])&&~i.indexOf("random(")&&(i=xW(i)),xN(i+"")||"auto"===i||(i+=wo.units[d]||xN(jU(e,d))||""),"="===(i+"").charAt(1)&&(i=jU(e,d))):i=jU(e,d),l=parseFloat(i),(m="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),d in jl&&("autoAlpha"===d&&(1===l&&"hidden"===jU(e,"visibility")&&s&&(l=0),w.push("visibility",0,j.visibility),jF(this,j,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=jl[d]).indexOf(",")&&(d=d.split(",")[0])),h=d in jt){if(this.styles.save(d),x=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=jA(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var O=e.style.perspective;e.style.perspective=o,o=jA(e,"perspective"),O?e.style.perspective=O:j_(e,"perspective")}s=parseFloat(o)}if(y||((g=e._gsap).renderTransform&&!t.parseTransform||j0(e,t.parseTransform),v=!1!==t.smoothOrigin&&g.smooth,(y=this._pt=new SU(this._pt,j,jS,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new SU(this._pt,g,"scaleY",g.scaleY,(m?w3(g.scaleY,m+s):s)-g.scaleY||0,ju),this._pt.u=0,S.push("scaleY",d),d+="X";else if("transformOrigin"===d){w.push(jj,0,j[jj]),o=jH(o),g.svg?jJ(e,o,0,v,0,this):((p=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&jF(this,g,"zOrigin",g.zOrigin,p),jF(this,j,d,j1(i),j1(o)));continue}else if("svgOrigin"===d){jJ(e,o,1,v,0,this);continue}else if(d in jK){j8(this,g,d,l,m?w3(l,m+o):o);continue}else if("smoothOrigin"===d){jF(this,g,"smooth",g.smooth,o);continue}else if("force3D"===d){g[d]=o;continue}else if("transform"===d){j7(this,o,e);continue}}else d in j||(d=jT(d)||d);if(h||(s||0===s)&&(l||0===l)&&!js.test(o)&&d in j)f=(i+"").substr((l+"").length),s||(s=0),p=xN(o)||(d in wo.units?wo.units[d]:f),f!==p&&(l=jz(e,d,i,p)),this._pt=new SU(this._pt,h?g:j,d,l,(m?w3(l,m+s):s)-l,!h&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?jp:ju),this._pt.u=p||0,h&&x!==o?(this._pt.b=i,this._pt.e=x,this._pt.r=jf):f!==p&&"%"!==p&&(this._pt.b=i,this._pt.r=jd);else if(d in j)jW.call(this,e,d,i,m?m+o:o);else if(d in e)this.add(e,d,i||e[d],m?m+o:o,r,a);else if("parseTransform"!==d){wL(d,o);continue}h||(d in j?w.push(d,0,j[d]):"function"==typeof e[d]?w.push(d,2,e[d]()):w.push(d,1,i||e[d])),S.push(d)}}b&&Sz(this)},render:function(e,t){if(t.tween._time||!S7())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:jU,aliases:jl,getSetter:function(e,t,n){var r=jl[t];return r&&0>r.indexOf(",")&&(t=r),t in jt&&t!==jj&&(e._gsap.x||jU(e,"x"))?n&&S9===n?"scale"===t?jb:jv:(S9=n||{},"scale"===t?jw:jx):e.style&&!wg(e.style[t])?jy:~t.indexOf("-")?jg:SR(e,t)},core:{_removeProperty:j_,_getMatrix:jQ}};S2.utils.checkPrefix=jT,S2.core.getStyleSaver=jD,Dd=w0("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Dc="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){jt[e]=1}),w0(Dc,function(e){wo.units[e]="deg",jK[e]=1}),jl[Dd[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Dc,w0("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");jl[t[1]]=Dd[t[0]]}),w0("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){wo.units[e]="px"}),S2.registerPlugin(Ee);var Et=S2.registerPlugin(Ee)||S2;function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ea(e){return function(e){if(Array.isArray(e))return En(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return En(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return En(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Et.core.Tween;var Ei=function(e){var t=e.isOpen,n=e.onClose,r=e.position,a=void 0===r?"right":r,i=e.colors,o=e.items,s=e.socialItems,l=e.displaySocials,u=e.displayItemNumbering,c=e.accentColor,d=e.closeOnClickAway,f=void 0===d||d,p=(0,h.useRef)(null),g=(0,h.useRef)(null),v=(0,h.useRef)([]),b=(0,h.useRef)(null),w=(0,h.useRef)(null),x=(0,h.useRef)(null),S=(0,h.useRef)(!1),j=(0,h.useRef)(!1);(0,h.useLayoutEffect)(function(){var e=Et.context(function(){var e=p.current,t=g.current;if(e){var n=[];t&&(n=Array.from(t.querySelectorAll(".sm-prelayer"))),v.current=n;var r="left"===a?-100:100;Et.set([e].concat(Ea(n)),{xPercent:r,opacity:1}),t&&Et.set(t,{xPercent:0,opacity:1})}});return function(){return e.revert()}},[a]);var E=(0,h.useCallback)(function(){var e=p.current,t=v.current;if(!e)return null;null==(d=b.current)||d.kill(),w.current&&(w.current.kill(),w.current=null),null==(f=x.current)||f.kill();var n=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),r=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),i=e.querySelector(".sm-socials-title"),o=Array.from(e.querySelectorAll(".sm-socials-link")),s="left"===a?-100:100,l=t.map(function(e){return{el:e,start:s}});n.length&&Et.set(n,{yPercent:140,rotate:10}),r.length&&Et.set(r,Er({},"--sm-num-opacity",0)),i&&Et.set(i,{opacity:0}),o.length&&Et.set(o,{y:25,opacity:0});var u=Et.timeline({paused:!0});l.forEach(function(e,t){u.fromTo(e.el,{xPercent:e.start},{xPercent:0,duration:.5,ease:"power4.out"},.07*t)});var c=(l.length?(l.length-1)*.07:0)+.08*!!l.length;if(u.fromTo(e,{xPercent:s},{xPercent:0,duration:.65,ease:"power4.out"},c),n.length){var d,f,m,h=c+.0975;u.to(n,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},h),r.length&&u.to(r,(Er(m={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),Er(m,"stagger",{each:.08,from:"start"}),m),h+.1)}if(i||o.length){var y=c+.26;i&&u.to(i,{opacity:1,duration:.5,ease:"power2.out"},y),o.length&&u.to(o,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){Et.set(o,{clearProps:"opacity"})}},y+.04)}return b.current=u,u},[a]),O=(0,h.useCallback)(function(){if(!S.current){S.current=!0;var e=E();e?(e.eventCallback("onComplete",function(){S.current=!1}),e.play(0)):S.current=!1}},[E]),k=(0,h.useCallback)(function(){null==(e=b.current)||e.kill(),b.current=null,null==(t=x.current)||t.kill();var e,t,n,r=p.current,i=v.current;if(r){var o=Ea(i).concat([r]);null==(n=w.current)||n.kill();var s="left"===a?-100:100;w.current=Et.to(o,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(r.querySelectorAll(".sm-panel-itemLabel"));e.length&&Et.set(e,{yPercent:140,rotate:10});var t=Array.from(r.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&Et.set(t,Er({},"--sm-num-opacity",0));var n=r.querySelector(".sm-socials-title"),a=Array.from(r.querySelectorAll(".sm-socials-link"));n&&Et.set(n,{opacity:0}),a.length&&Et.set(a,{y:25,opacity:0}),S.current=!1}})}},[a]);y().useEffect(function(){t!==j.current&&(j.current=t,t?O():k())},[t,O,k]),y().useEffect(function(){if(f&&t){var e=function(e){p.current&&!p.current.contains(e.target)&&(null==n||n())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[f,t,n]);var D=i&&i.length?i.slice(0,4):[];if(D.length>=3){var P=Math.floor(D.length/2);D.splice(P,1)}var A=null!=o?o:[],C=null!=s?s:[];return(0,m.jsxs)("div",{className:"sm-scope",style:c?Er({},"--sm-accent",c):void 0,"data-position":a,children:[(0,m.jsx)("div",{ref:g,className:"sm-prelayers pointer-events-none",style:{zIndex:9998},"aria-hidden":"true",children:D.map(function(e,t){return(0,m.jsx)("div",{className:"sm-prelayer",style:{background:e}},t)})}),(0,m.jsx)("aside",{id:"staggered-menu-panel",ref:p,className:"staggered-menu-panel pointer-events-auto",style:{zIndex:9999,WebkitBackdropFilter:"blur(12px)"},"aria-hidden":!t,children:(0,m.jsxs)("div",{className:"sm-panel-inner",children:[A.length>0&&(0,m.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===u||u||void 0,children:A.map(function(e,t){return(0,m.jsx)("li",{className:"sm-panel-itemWrap",children:(0,m.jsx)("a",{className:"sm-panel-item",href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:(0,m.jsx)("span",{className:"sm-panel-itemLabel",children:e.label})})},e.label+t)})}),(void 0===l||l)&&C.length>0&&(0,m.jsxs)("div",{className:"sm-socials","aria-label":"Social links",children:[(0,m.jsx)("h3",{className:"sm-socials-title",children:"Socials"}),(0,m.jsx)("ul",{className:"sm-socials-list",role:"list",children:C.map(function(e,t){return(0,m.jsx)("li",{className:"sm-socials-item",children:(0,m.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"sm-socials-link",children:e.label})},e.label+t)})})]})]})}),(0,m.jsx)("style",{children:"\n.sm-scope .staggered-menu-panel { position: fixed; top: 0; ".concat("left"===a?"left: 0;":"right: 0;"," width: clamp(260px, 38vw, 420px); height: 100%; background: white; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 6em 2em 2em 2em; overflow-y: auto; z-index: 50; }\n.sm-scope .sm-prelayers { position: fixed; top: 0; ").concat("left"===a?"left: 0;":"right: 0;"," bottom: 0; width: clamp(260px, 38vw, 420px); pointer-events: none; z-index: 49; }\n.sm-scope .sm-prelayer { position: absolute; top: 0; right: 0; height: 100%; width: 100%; transform: translateX(0); }\n.sm-scope .sm-panel-inner { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }\n.sm-scope .sm-panel-itemWrap { position: relative; overflow: hidden; line-height: 1; }\n.sm-scope .sm-panel-item { position: relative; color: #000; font-weight: 600; font-size: 4rem; cursor: pointer; line-height: 1; letter-spacing: -2px; text-transform: uppercase; transition: background 0.25s, color 0.25s; display: inline-block; text-decoration: none; padding-right: 1.4em; }\n.sm-scope .sm-panel-itemLabel { display: inline-block; will-change: transform; transform-origin: 50% 100%; }\n.sm-scope .sm-panel-item:hover { color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }\n.sm-scope .sm-panel-list[data-numbering] { counter-reset: smItem; }\n.sm-scope .sm-panel-list[data-numbering] .sm-panel-item::after { counter-increment: smItem; content: counter(smItem, decimal-leading-zero); position: absolute; top: 0.1em; right: 3.2em; font-size: 18px; font-weight: 400; color: var(--sm-accent, #ff0000); letter-spacing: 0; pointer-events: none; user-select: none; opacity: var(--sm-num-opacity, 0); }\n.sm-scope .sm-socials { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }\n.sm-scope .sm-socials-title { margin: 0; font-size: 1rem; font-weight: 500; color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-socials-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }\n.sm-scope .sm-socials-list .sm-socials-link { opacity: 1; transition: opacity 0.3s ease; }\n.sm-scope .sm-socials-list:hover .sm-socials-link:not(:hover) { opacity: 0.35; }\n.sm-scope .sm-socials-list:focus-within .sm-socials-link:not(:focus-visible) { opacity: 0.35; }\n.sm-scope .sm-socials-list .sm-socials-link:hover, .sm-scope .sm-socials-list .sm-socials-link:focus-visible { opacity: 1; }\n.sm-scope .sm-socials-link:focus-visible { outline: 2px solid var(--sm-accent, #ff0000); outline-offset: 3px; }\n.sm-scope .sm-socials-link { font-size: 1.2rem; font-weight: 500; color: #111; text-decoration: none; position: relative; padding: 2px 0; display: inline-block; transition: color 0.3s ease, opacity 0.3s ease; }\n.sm-scope .sm-socials-link:hover { color: var(--sm-accent, #ff0000); }\n@media (max-width: 1024px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n@media (max-width: 640px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n ")})]})};function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Es=function(e){var t,n=e.isOpen,r=e.onToggle,a=e.menuButtonColor,i=e.openMenuButtonColor,o=e.changeMenuColorOnOpen,s=void 0===o||o,l=e.className,u=(0,h.useRef)(null),c=(0,h.useRef)(null),d=(0,h.useRef)(null),f=(0,h.useRef)(null),p=(0,h.useRef)(null),g=(0,h.useRef)(null),v=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(["Menu","Close"]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Eo(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eo(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=v[0],w=v[1],x=(0,h.useRef)(null),S=(0,h.useRef)(null),j=(0,h.useRef)(null),E=(0,h.useRef)(!1);(0,h.useLayoutEffect)(function(){var e=Et.context(function(){var e=c.current,t=d.current,n=f.current,r=p.current;e&&t&&n&&r&&(Et.set(e,{transformOrigin:"50% 50%",rotate:0}),Et.set(t,{transformOrigin:"50% 50%",rotate:90}),Et.set(n,{rotate:0,transformOrigin:"50% 50%"}),Et.set(r,{yPercent:0}),u.current&&a&&Et.set(u.current,{color:a}))});return function(){return e.revert()}},[a]),y().useEffect(function(){if(u.current)if(s){var e=E.current?i:a;e&&Et.set(u.current,{color:e})}else a&&Et.set(u.current,{color:a})},[s,a,i]);var O=(0,h.useCallback)(function(e){var t,n=f.current,r=c.current,a=d.current;n&&r&&a&&(null==(t=x.current)||t.kill(),e?(Et.set(n,{rotate:0,transformOrigin:"50% 50%"}),x.current=Et.timeline({defaults:{ease:"power4.out"}}).to(r,{rotate:45,duration:.5},0).to(a,{rotate:-45,duration:.5},0)):x.current=Et.timeline({defaults:{ease:"power3.inOut"}}).to(r,{rotate:0,duration:.35},0).to(a,{rotate:90,duration:.35},0).to(n,{rotate:0,duration:.001},0))},[]),k=(0,h.useCallback)(function(e){var t,n=u.current;if(n)if(null==(t=j.current)||t.kill(),s){var r=e?i:a;r&&(j.current=Et.to(n,{color:r,delay:.18,duration:.3,ease:"power2.out"}))}else a&&Et.set(n,{color:a})},[i,a,s]),D=(0,h.useCallback)(function(e){var t,n=p.current;if(n){null==(t=S.current)||t.kill();for(var r=e?"Menu":"Close",a=e?"Close":"Menu",i=[r],o=r,s=0;s<3;s++)o="Menu"===o?"Close":"Menu",i.push(o);o!==a&&i.push(a),i.push(a),w(i),Et.set(n,{yPercent:0});var l=i.length;S.current=Et.to(n,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return y().useEffect(function(){n!==E.current&&(E.current=n,O(n),k(n),D(n))},[n,O,k,D]),(0,m.jsxs)("button",{ref:u,className:"sm-toggle relative inline-flex items-center gap-[0.3rem] bg-transparent border-0 cursor-pointer font-medium leading-none overflow-visible pointer-events-auto".concat(l?" "+l:""),"aria-label":n?"Close menu":"Open menu","aria-expanded":n,"aria-controls":"staggered-menu-panel",onClick:r,type:"button",children:[(0,m.jsx)("span",{ref:g,className:"sm-toggle-textWrap relative inline-block h-[1em] overflow-hidden whitespace-nowrap w-[var(--sm-toggle-width,auto)] min-w-[var(--sm-toggle-width,auto)] mr-[0.5em]","aria-hidden":"true",children:(0,m.jsx)("span",{ref:p,className:"sm-toggle-textInner flex flex-col leading-none",children:b.map(function(e,t){return(0,m.jsx)("span",{className:"sm-toggle-line block h-[1em] leading-none",children:e},t)})})}),(0,m.jsxs)("span",{ref:f,className:"sm-icon relative w-[14px] h-[14px] shrink-0 inline-flex items-center justify-center [will-change:transform]","aria-hidden":"true",children:[(0,m.jsx)("span",{ref:c,className:"sm-icon-line absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"}),(0,m.jsx)("span",{ref:d,className:"sm-icon-line sm-icon-line-v absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"})]}),(0,m.jsx)("style",{children:"\n.sm-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; background: transparent; border: none; cursor: pointer; font-weight: 500; line-height: 1; overflow: visible; }\n.sm-toggle:focus-visible { outline: 2px solid #ffffffaa; outline-offset: 4px; border-radius: 4px; }\n.sm-toggle-textWrap { position: relative; display: inline-block; height: 1em; overflow: hidden; white-space: nowrap; width: var(--sm-toggle-width, auto); min-width: var(--sm-toggle-width, auto); }\n.sm-toggle-textInner { display: flex; flex-direction: column; line-height: 1; }\n.sm-toggle-line { display: block; height: 1em; line-height: 1; }\n.sm-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; display: inline-flex; align-items: center; justify-content: center; will-change: transform; }\n.sm-icon-line { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); will-change: transform; }\n "})]})};function El(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class Eu extends h.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(mI(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=mI(e)&&e.offsetWidth||0,r=mI(e)&&e.offsetHeight||0,a=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(a.height),i.width=parseFloat(a.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top,i.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Ec({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:i}){let o=(0,h.useId)(),s=(0,h.useRef)(null),l=(0,h.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,h.useContext)(dv),c=function(...e){return h.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=El(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():El(e[t],null)}}}}(...e),e)}(s,!1!==i?e.props?.ref??e?.ref:void 0);return(0,h.useInsertionEffect)(()=>{let{width:e,height:c,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||!1===i||!s.current||!e||!c)return;let y="rtl"===h,g="left"===n?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,v="bottom"===r?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let b=document.createElement("style");u&&(b.nonce=u);let w=a??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
|
|
12
|
+
}`.trim(),document.head.prepend(r),o=HTMLElement.prototype.focus,Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=((e=document)=>e.activeElement)(),n=null!=t&&sr(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||so(this,n)}}),s=tF(nx(document,"touchstart",t=>{let r=nE(t);e=aL(r)?r:a_(r,!0),n=!1;let a=r.ownerDocument.defaultView.getSelection();a&&!a.isCollapsed&&a.containsNode(r,!0)&&(n=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(n=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},{passive:!1,capture:!0}),nx(document,"touchmove",t=>{if(2!==t.touches.length&&!n){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),nx(document,"blur",e=>{let t=nE(e),n=e.relatedTarget;if(n&&sr(n))n.focus({preventScroll:!0}),so(n,sr(t));else if(!n){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),s(),r.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:o})}):tF((l=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?nS(document.documentElement,"scrollbar-gutter","stable"):nS(document.documentElement,"padding-right",`${l}px`)),nS(document.documentElement,"overflow","hidden"))),()=>{0==--si&&a()}}},[t])}({isDisabled:o||!t.isOpen}),(0,h.useEffect)(()=>{if(t.isOpen&&r.current)if(o){var e,n,a=i?.current??r.current;let t=oU[oU.length-1];return t&&!t.visibleNodes.has(a)?(t.visibleNodes.add(a),()=>{t.visibleNodes.delete(a)}):void 0}else{let t,a,o,s,l,u,c,d,f,p,m;return e=[i?.current??r.current],a=(n={shouldUseInert:!0})instanceof(t=nb(e?.[0])).Element?{root:n}:n,o=a?.root??document.body,s=a?.shouldUseInert&&oB,l=new Set(e),u=new Set,c=(e,n)=>{s&&e instanceof t.HTMLElement?e.inert=n:n?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(nj(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=ib(nv(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)f(e),e=n.nextNode()}},f=e=>{let n=oz.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===n||(0===n&&c(e,!0),u.add(e),oz.set(e,n+1))},oU.length&&oU[oU.length-1].disconnect(),d(o),(p=new MutationObserver(e=>{for(let n of e)if("childList"===n.type&&n.target.isConnected&&![...l,...u].some(e=>nj(e,n.target)))for(let e of n.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(o,{childList:!0,subtree:!0}),m={visibleNodes:l,hiddenNodes:u,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},oU.push(m),()=>{for(let e of(p.disconnect(),u)){let t=oz.get(e);null!=t&&(1===t?(c(e,!1),oz.delete(e)):oz.set(e,t-1))}m===oU[oU.length-1]?(oU.pop(),oU.length&&oU[oU.length-1].observe()):oU.splice(oU.indexOf(m),1)}}},[o,t.isOpen,r,i]);let{focusWithinProps:v}=rH(e);return{popoverProps:t3(d,p,v),arrowProps:m,underlayProps:f,placement:y,triggerAnchorPoint:g}}({...i,offset:i.offset??8,arrowRef:o,groupRef:u?l:s},e),g=i.popoverRef,v=function(e,t=!0){let[n,r]=(0,h.useState)(!0),a=n&&t;return tV(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),sd(e,a,(0,h.useCallback)(()=>r(!1),[])),a}(g,!!p),b=i.isEntering||!i.shouldSkipAnimation&&v||!1,w=t8({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:p,isEntering:b,isExiting:t}}),x=!i.isNonModal||"SubmenuTrigger"===i.trigger||"PreviewTrigger"===i.trigger,[S,j]=(0,h.useState)("PreviewTrigger"===i.trigger);tV(()=>{g.current&&j(x&&!g.current.querySelector("[role=dialog]"))},[g,x]),(0,h.useEffect)(()=>{S&&"PreviewTrigger"!==i.trigger&&("SubmenuTrigger"!==i.trigger||"pointer"!==nQ)&&g.current&&!nk(g.current)&&rl(g.current)},[S,g,i.trigger]);let E=(0,h.useMemo)(()=>{let e=w.children;if(r)for(let t of r)e=y().createElement(t.Provider,{value:null},e);return e},[w.children,r]),[O,k]=(0,h.useState)(null),D=(0,h.useCallback)(()=>{i.triggerRef.current&&k(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);tV(D,[D]),o9({ref:w.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:D});let P={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||O},A=y().createElement(na.div,{...t3(nh(i,{global:!0}),c),...w,id:S?i.id:void 0,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:g,slot:i.slot||void 0,style:P,dir:i.dir,"data-trigger":i.trigger,"data-placement":p,"data-entering":b||void 0,"data-exiting":t||void 0},!i.isNonModal&&y().createElement(su,{onDismiss:e.close}),y().createElement(oV.Provider,{value:{...f,placement:p,ref:o}},E),y().createElement(su,{onDismiss:e.close}));return u?y().createElement(oO,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:n??l?.current??void 0},A):y().createElement(oO,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&y().createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),y().createElement("div",{ref:s,style:{display:"contents"}},y().createElement(sp.Provider,{value:s},A)))}function sy(e){return e?.start!=null&&null!=e.end}let sg=(0,h.createContext)(null),sv=(0,h.createContext)(null),sb=(0,h.createContext)(null),sw=(0,h.createContext)(null),sx=[ih,rQ,o_,r2],sS=(0,h.forwardRef)(function(e,t){[e,t]=t7(e,t,sg);let{validationBehavior:n}=t9(oN)||{},r=e.validationBehavior??n??"native",a=function(e){let t=sc(e),[n,r]=a1(e.value,e.defaultValue||null,e.onChange),[a]=(0,h.useState)(n),i=n||e.placeholderValue||null,[o,s]=oo(i,e.granularity),l=null!=n?n.toDate(s??"UTC"):null,u="hour"===o||"minute"===o||"second"===o,c=e.shouldCloseOnSelect??!0,[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(null);if(n&&(d=n,"hour"in n&&(p=n)),i&&!(o in i))throw Error("Invalid granularity "+o+" for value "+i.toString());let y=n?.calendar.identifier==="gregory"&&"BC"===n.era,g=(0,h.useMemo)(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:y}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,y]),{minValue:v,maxValue:b,isDateUnavailable:w}=e,x=(0,h.useMemo)(()=>oe(n,v,b,w,g),[n,v,b,w,g]),S=i2({...e,value:n,builtinValidation:x}),j=S.displayValidation.isInvalid,E=e.validationState||(j?"invalid":null),O=(e,t)=>{r("timeZone"in t?t.set((0,aG.gw)(e)):(0,aG.tR)(e,t)),f(null),m(null),S.commitValidation()};return{...S,value:n,defaultValue:e.defaultValue??a,setValue:r,dateValue:d,timeValue:p,setDateValue:n=>{let a="function"==typeof c?c():c;u?p||a?O(n,p||oa(e.defaultValue||e.placeholderValue)):f(n):(r(n),S.commitValidation()),a&&t.setOpen(!1)},setTimeValue:e=>{d&&e?O(d,e):m(e)},granularity:o,hasTime:u,...t,setOpen(r){!r&&!n&&d&&u&&O(d,p||oa(e.defaultValue||e.placeholderValue)),t.setOpen(r)},validationState:E,isInvalid:j,formatValue:(e,t)=>l?new ad(e,or(t,g)).format(l):"",getDateFormatter:(e,t)=>new ad(e,or({},{...g,...t}))}}({...e,validationBehavior:r}),i=(0,h.useRef)(null),[o,s]=ne(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,fieldProps:c,buttonProps:d,dialogProps:f,calendarProps:p,descriptionProps:m,errorMessageProps:g,...v}=function(e,t,n){var r;let a=tQ(),i=tQ(),o=tQ(),s=ak((r=iB)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:m}=iW({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),y=iz(t,n),g=f["aria-labelledby"]||f.id,{locale:v}=au(),b=t.formatValue(v,{month:"long"}),w=aW(b?s.format("selectedDateDescription",{date:b}):""),x=[w["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=nh(e),j=(0,h.useMemo)(()=>iI(n),[n]),E=(0,h.useRef)(!1),{focusWithinProps:O}=rH({...e,isDisabled:t.isOpen,onBlurWithin:t=>{nj(document.getElementById(i),t.relatedTarget)||(E.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{E.current||(E.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:t3(S,y,f,w,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":x,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...d,onClick:()=>{j.focusFirst()}},fieldProps:{...f,id:o,[iq]:"presentation","aria-describedby":x,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[i1]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:m,buttonProps:{...w,id:a,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${a} ${g}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${a} ${g}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...nt(e),label:s,validationBehavior:r},a,i),{focusProps:b,isFocused:w,isFocusVisible:x}=rG({within:!0}),S=t8({...e,values:{state:a,isFocusWithin:w,isFocusVisible:x,isDisabled:e.isDisabled||!1,isInvalid:a.isInvalid,isOpen:a.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),j=nh(e,{global:!0});return delete j.id,y().createElement(t6,{values:[[sb,a],[ih,{...l,ref:i,isInvalid:a.isInvalid}],[oy,c],[rQ,{...d,isPressed:a.isOpen}],[o_,{...u,ref:o,elementType:"span"}],[it,p],[oD,a],[sf,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",clearContexts:sx}],[ok,f],[r2,{slots:{description:m,errorMessage:g}}],[oA,v]]},y().createElement(na.div,{...t3(j,S,b),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":a.isInvalid||void 0,"data-focus-visible":x||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":a.isOpen||void 0}),y().createElement(oL,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:a}))}),sj=(0,h.forwardRef)(function(e,t){[e,t]=t7(e,t,sv);let{validationBehavior:n}=t9(oN)||{},r=e.validationBehavior??n??"native",a=function(e){let t=sc(e),[n,r]=a1(e.value,e.defaultValue||null,e.onChange),[a]=(0,h.useState)(n),[i,o]=(0,h.useState)(()=>n||{start:null,end:null});null==n&&i.start&&i.end&&o(i={start:null,end:null});let s=n||i,l=e=>{o(s=e||{start:null,end:null}),sy(s)?r(s):r(null)},[u,c]=oo(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,f=e.shouldCloseOnSelect??!0,[p,m]=(0,h.useState)(null),[y,g]=(0,h.useState)(null);s&&sy(s)&&(p=s,"hour"in s.start&&(y=s));let v=(e,t)=>{l({start:"timeZone"in t.start?t.start.set((0,aG.gw)(e.start)):(0,aG.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,aG.gw)(e.end)):(0,aG.tR)(e.end,t.end)}),m(null),g(null),D.commitValidation()},b=n=>{let r="function"==typeof f?f():f;d?sy(n)&&(r||y?.start&&y?.end)?v(n,{start:y?.start||oa(e.placeholderValue),end:y?.end||oa(e.placeholderValue)}):m(n):sy(n)?(l(n),D.commitValidation()):m(n),r&&t.setOpen(!1)},w=e=>{sy(p)&&sy(e)?v(p,e):g(e)},x=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,S=(0,h.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,x]),{minValue:j,maxValue:E,isDateUnavailable:O}=e,k=(0,h.useMemo)(()=>{var e,t;let n;return e=s,t=O?e=>O(e,null):void 0,n=i6(oe(e?.start??null,j,E,t,S),oe(e?.end??null,j,E,t,S)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(n=i6(n,{isInvalid:!0,validationErrors:[(aw.getGlobalDictionaryForPackage("@react-stately/datepicker")||i9).getStringForLocale("rangeReversed",i7())],validationDetails:{...iX,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),n},[s,j,E,O,S]),D=i2({...e,value:n,name:(0,h.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:k}),P=D.displayValidation.isInvalid,A=e.validationState||(P?"invalid":null);return{...D,value:s,defaultValue:e.defaultValue??a,setValue:l,dateRange:p,timeRange:y,granularity:u,hasTime:d,setDate(e,t){"start"===e?b({start:t,end:p?.end??null}):b({start:p?.start??null,end:t})},setTime(e,t){"start"===e?w({start:t,end:y?.end??null}):w({start:y?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:b,setTimeRange:w,...t,setOpen(n){!n&&!(s?.start&&s?.end)&&sy(p)&&d&&v(p,{start:y?.start||oa(e.placeholderValue),end:y?.end||oa(e.placeholderValue)}),t.setOpen(n)},validationState:A,isInvalid:P,formatValue(t,n){let r;if(!s||!s.start||!s.end)return null;let a="timeZone"in s.start?s.start.timeZone:void 0,i=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),o="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=or(n,{granularity:i,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(a||"UTC"),d=s.end.toDate(o||"UTC"),f=new ad(t,u);if(a===o&&i===l&&0!==s.start.compare(s.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let a=0;a<e.length;a++)a<t?n+=e[a].value:a>t&&(r+=e[a].value);return{start:n,end:r}}catch{}r=f}else r=new ad(t,or(n,{granularity:l,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:r.format(d)}},getDateFormatter:(e,t)=>new ad(e,or({},{...S,...t}))}}({...e,validationBehavior:r}),i=(0,h.useRef)(null),[o,s]=ne(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,startFieldProps:c,endFieldProps:d,buttonProps:f,dialogProps:p,calendarProps:m,descriptionProps:g,errorMessageProps:v,...b}=function(e,t,n){var r;let a=ak((r=iB)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=iW({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),f=u["aria-labelledby"]||u.id,{locale:p}=au(),m=t.formatValue(p,{month:"long"}),y=aW(m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):""),g={"aria-label":a.format("startDate"),"aria-labelledby":f},v={"aria-label":a.format("endDate"),"aria-labelledby":f},b=tQ(),w=tQ(),x=iz(t,n),S=[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=(0,h.useMemo)(()=>iI(n,{accept:e=>e.id!==b}),[n,b]),E={[iY]:j,[iq]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},O=nh(e),k=(0,h.useRef)(!1),{focusWithinProps:D}=rH({...e,isDisabled:t.isOpen,onBlurWithin:t=>{nj(document.getElementById(w),t.relatedTarget)||(k.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{k.current||(k.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),P=(0,h.useRef)(iJ),A=(0,h.useRef)(iJ);return{groupProps:t3(O,x,u,y,D,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...l,onClick:()=>{j.focusFirst()}},buttonProps:{...y,id:b,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${b} ${f}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${f}`},startFieldProps:{...g,...E,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[i1]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){P.current=e,t.updateValidation(i6(e,A.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...v,...E,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[i1]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){A.current=e,t.updateValidation(i6(P.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:i,validationErrors:o,validationDetails:s}}({...nt(e),label:s,validationBehavior:r},a,i),{focusProps:w,isFocused:x,isFocusVisible:S}=rG({within:!0}),j=t8({...e,values:{state:a,isFocusWithin:x,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:a.isInvalid,isOpen:a.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),E=nh(e,{global:!0});return delete E.id,y().createElement(t6,{values:[[sw,a],[ih,{...l,ref:i,isInvalid:a.isInvalid}],[rQ,{...f,isPressed:a.isOpen}],[o_,{...u,ref:o,elementType:"span"}],[ir,m],[oD,a],[sf,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",clearContexts:sx}],[ok,p],[oy,{slots:{start:c,end:d}}],[r2,{slots:{description:g,errorMessage:v}}],[oA,b]]},y().createElement(na.div,{...t3(E,j,w),ref:t,slot:e.slot||void 0,"data-focus-within":x||void 0,"data-invalid":a.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":a.isOpen||void 0}))});function sE(e){return y().createElement(al,e)}var sO=n(5350),sk=n.n(sO);function sD(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function sP(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return n?e:void 0;if("string"==typeof e&&!e)return n?null:void 0;if(sD(e,i8.ng)||sD(e,i8._l)||sD(e,i8.Ip))return t?(0,aG.yP)(e,t):e;var r=sk()(e).toDate(),a=new i8.ng(r.getFullYear(),r.getMonth()+1,r.getDate());return t?(0,aG.yP)(a,t):a}function sA(e){if(e)return e.toDate((0,aD.Xj)())}var sC=n(1851),sT=n(3903);function sN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sR(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var sM=(0,h.createContext)(null);function sI(){var e=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,h.useMemo)(function(){var t=(0,sC.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),n=(0,h.useMemo)(function(){var e=(0,sT.a7)(t);return void 0!==e?(0,aH.d)(e):void 0},[t]),r=(0,h.useMemo)(function(){return new Intl.Locale(t,{calendar:null==n?void 0:n.identifier})},[t,n]),a=(0,h.useMemo)(function(){return n?(0,aG.yP)((0,aD.Ec)((0,aD.Xj)()),n):(0,aD.Ec)((0,aD.Xj)())},[n]);return{calendar:n,intlLocale:r,today_:a}}var sL=new i8.ng(1793,1,1),s_=function(e){var t=e.className,n=e.size,r=void 0===n?16:n;return(0,m.jsx)("svg",{className:t,width:r,height:r,viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",focusable:"false",children:(0,m.jsx)("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,23.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S16.8,23.5,16,23.5z"})})},sF={};function sV(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function sB(e={}){let{locale:t}=au();return(0,h.useMemo)(()=>new(0,od.K)(t,e),[t,e])}sF={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var sz={};sz={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let sU=()=>{};function sW(e){var t;let n=(0,h.useRef)(void 0),{value:r,textValue:a,minValue:i,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:y}=e,g=ak((t=sz)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),v=(0,h.useRef)(!1),b=(0,h.useCallback)(()=>{clearTimeout(n.current),v.current=!1},[]),w=rP(()=>{b()});(0,h.useEffect)(()=>()=>w(),[]);let{keyboardProps:x}=ry({isDisabled:s||l,shortcuts:{PageUp:()=>d?void d():!!c&&void c(),ArrowUp:()=>!!c&&void c(),PageDown:()=>p?void p():!!f&&void f(),ArrowDown:()=>!!f&&void f(),Home:()=>!!m&&void m(),End:()=>!!y&&void y()},allowRepeats:!0}),S=(0,h.useRef)(!1),j=()=>{S.current=!0},E=()=>{S.current=!1},O=""===a?g.format("Empty"):(a||`${r}`).replace("-","−");(0,h.useEffect)(()=>{S.current&&(no&&no.clear("assertive"),ns(O,"assertive"))},[O]);let k=(0,h.useCallback)(()=>{b()},[b]),D=rP(c??sU),P=rP(f??sU),A=rP(()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r<o)&&(D(),C(60))}),C=rP(e=>{w(),v.current=!0,n.current=window.setTimeout(A,e)}),T=rP(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r>i)&&(P(),N(60))}),N=rP(e=>{w(),v.current=!0,n.current=window.setTimeout(T,e)}),R=e=>{e.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:I}=rA(),L=(0,h.useRef)(!1),[_,F]=(0,h.useState)(null);(0,h.useEffect)(()=>{"touch"===_?C(600):_?C(400):_||w()},[_]);let[V,B]=(0,h.useState)(null);return(0,h.useEffect)(()=>{"touch"===V?N(600):V?N(400):V||w()},[V]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":O,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,...x,onFocus:j,onBlur:E},incrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(c?.(),F("mouse")):(M(window,"pointercancel",k,{capture:!0}),L.current=!1,F("touch")),M(window,"contextmenu",R)},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),I(),F(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&c?.(),L.current=!1,F(null)},onFocus:j,onBlur:E},decrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(f?.(),B("mouse")):(M(window,"pointercancel",k,{capture:!0}),L.current=!1,B("touch"))},onPressUp:e=>{b(),"touch"===e.pointerType&&(L.current=!0),I(),B(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&L.current&&f?.(),L.current=!1,B(null)},onFocus:j,onBlur:E}}}let s$=null;var sH=n(4264);function sG(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){let a=t.toString().split("."),i=n.toString().split("."),o=Math.pow(10,Math.max(a[1]&&a[1].length||0,i[1]&&i[1].length||0));t=Math.round(t*o),n=Math.round(n*o),r=("+"===e?t+n:t-n)/o}return r}let sq=(0,h.createContext)(null),sY=(0,h.createContext)(null),sK=(0,h.forwardRef)(function(e,t){[e,t]=t7(e,t,sq);let{validationBehavior:n}=t9(oN)||{},r=e.validationBehavior??n??"native",{locale:a}=au(),i=function(e){let{minValue:t,maxValue:n,step:r,formatOptions:a,value:i,defaultValue:o=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===i&&(i=NaN);let f=(0,h.useCallback)(e=>void 0===r||isNaN(r)?oW(e,t,n):oH(e,t,n,r),[r,t,n]);void 0===i||isNaN(i)||"snap"!==d||(i=f(i)),isNaN(o)||"snap"!==d||(o=f(o));let[p,m]=a1(i,isNaN(o)?NaN:o,s),[y]=(0,h.useState)(p),[g,v]=(0,h.useState)(()=>isNaN(p)?"":new(0,od.K)(l,a).format(p)),b=(0,h.useMemo)(()=>new(0,sH.d)(l,a),[l,a]),w=(0,h.useMemo)(()=>b.getNumberingSystem(g),[b,g]),x=(0,h.useMemo)(()=>new(0,od.K)(l,{...a,numberingSystem:w}),[l,a,w]),S=(0,h.useMemo)(()=>x.resolvedOptions(),[x]),j=(0,h.useCallback)(e=>isNaN(e)||null===e?"":x.format(e),[x]),E=i2({...e,value:p}),O=void 0===r||isNaN(r)?1:r;"percent"===S.style&&(void 0===r||isNaN(r))&&(O=.01);let[k,D]=(0,h.useState)(p),[P,A]=(0,h.useState)(l),[C,T]=(0,h.useState)(a);Object.is(p,k)&&l===P&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}(a,C)||(v(j(p)),D(p),A(l),T(a));let N=(0,h.useMemo)(()=>b.parse(g),[b,g]),R=(e,r=0)=>{if(isNaN(N))return oH(isNaN(r)?0:r,t,n,O);{let r=oH(N,t,n,O);return"+"===e&&r>N||"-"===e&&r<N?r:oH(sG(e,N,O),t,n,O)}},M=(0,h.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===n||isNaN(n)||oH(N,t,n,O)>N||sG("+",N,O)<=n),[u,c,t,n,O,N]),I=(0,h.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===t||isNaN(t)||oH(N,t,n,O)<N||sG("-",N,O)>=t),[u,c,t,n,O,N]);return{...E,validate:e=>b.isValidPartialNumber(e,t,n),increment:()=>{let e=R("+",t);e===p&&v(j(e)),m(e),E.commitValidation()},incrementToMax:()=>{null!=n&&(m(oH(n,t,n,O)),E.commitValidation())},decrement:()=>{let e=R("-",n);e===p&&v(j(e)),m(e),E.commitValidation()},decrementToMin:()=>{null!=t&&(m(t),E.commitValidation())},canIncrement:M,canDecrement:I,minValue:t,maxValue:n,numberValue:N,defaultNumberValue:isNaN(o)?y:o,setNumberValue:m,setInputValue:v,inputValue:g,commit:e=>{let t=void 0===e?g:e,n=N;if(void 0!==e&&(n=b.parse(t)),!t.length){m(NaN),v(void 0===i?"":j(p));return}if(isNaN(n))return void v(j(p));let r="snap"===d?f(n):n,a=(r=b.parse(j(r)))!==p;m(r),v(j(void 0===i?r:p)),a&&E.commitValidation()}}}({...e,locale:a,validationBehavior:r}),o=(0,h.useRef)(null),[s,l]=ne(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:m,errorMessageProps:g,...v}=function(e,t,n){var r,a,i,o,s,l,u,c,d;let f,{id:p,decrementAriaLabel:m,incrementAriaLabel:g,isDisabled:v,isReadOnly:b,isRequired:w,minValue:x,maxValue:S,autoFocus:j,label:E,formatOptions:O,onBlur:k=()=>{},onFocus:D,onFocusChange:P,onKeyDown:A,onKeyUp:C,description:T,errorMessage:N,isWheelDisabled:R,...M}=e,{increment:I,incrementToMax:L,decrement:_,decrementToMin:F,numberValue:V,inputValue:B,commit:z,commitValidation:U}=t,W=ak((r=sF)&&r.__esModule?r.default:r,"@react-aria/numberfield"),$=(0,h.useCallback)(()=>{let e=n.current?.value??"";(0,rC.flushSync)(()=>{z()}),n.current?.value!==e&&ns(n.current?.value??"","assertive")},[z,n]),H=tQ(p),{focusProps:G}=ru({onBlur(){$()}}),q=sB(O),Y=(0,h.useMemo)(()=>q.resolvedOptions(),[q]),K=sB({...O,currencySign:void 0}),Z=(0,h.useMemo)(()=>isNaN(V)?"":K.format(V),[K,V]),{spinButtonProps:X,incrementButtonProps:Q,decrementButtonProps:J}=sW({isDisabled:v,isReadOnly:b,isRequired:w,maxValue:S,minValue:x,onIncrement:I,onIncrementToMax:L,onDecrement:_,onDecrementToMin:F,value:V,textValue:Z}),[ee,et]=(0,h.useState)(!1),{focusWithinProps:en}=rH({isDisabled:v,onFocusWithinChange:et});!function(e,t){let{onScroll:n,isDisabled:r}=e,a=(0,h.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);a$(t,"wheel",r?void 0:a)}({onScroll:(0,h.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?I():e.deltaY<0&&_())},[_,I]),isDisabled:R||v||b||!ee},n);let er=(Y.maximumFractionDigits??0)>0,ea=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,ei="numeric";nW()?ea?ei="text":er&&(ei="decimal"):nY()&&(ea?ei="numeric":er&&(ei="decimal"));let eo=nh(e),{keyboardProps:es}=ry({isDisabled:v||b,shortcuts:{Enter:()=>((0,rC.flushSync)(()=>{z()}),U(),{shouldPreventDefault:!1})},onKeyDown:A,onKeyUp:C}),{isInvalid:el,validationErrors:eu,validationDetails:ec}=t.displayValidation,{labelProps:ed,inputProps:ef,descriptionProps:ep,errorMessageProps:em}=function(e,t,n){let r=rP(e=>{let r=n.current;if(!r)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=r.value.slice(r.selectionStart);break;default:null!=e.data&&(a=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,h.useEffect)(()=>{if(!sV()||!n.current)return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[n]);let a=sV()?null:e=>{let n=nE(e).value.slice(0,nE(e).selectionStart)+e.data+nE(e).value.slice(nE(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:i,inputProps:o,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:o="text",validationBehavior:s="aria"}=e,[l,u]=a1(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rb(e,t),d=i2({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:b,errorMessageProps:w}=iW({...e,isInvalid:f,errorMessage:e.errorMessage||p}),x=nh(e,{labelable:!0}),S={type:o,pattern:e.pattern},[j]=(0,h.useState)(l);return i$(t,e.defaultValue??j,u),iH(e,d,t),{labelProps:g,inputProps:t3(x,"input"===n?S:void 0,{disabled:r,readOnly:i,required:a&&"native"===s,"aria-required":a&&"aria"===s||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(nE(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...v}),descriptionProps:b,errorMessageProps:w,isInvalid:f,validationErrors:p,validationDetails:m}}(e,n),c=(0,h.useRef)(null);return{inputProps:t3(o,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;c.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:a}=c.current;n.current.value=e,n.current.setSelectionRange(r,a),t.setInputValue(e)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...u}}({...M,...eo,name:void 0,form:void 0,label:E,autoFocus:j,isDisabled:v,isReadOnly:b,isRequired:w,validate:void 0,[i1]:t,value:B,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:H,type:"text",inputMode:ei,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:k,onFocus:D,onFocusChange:P,onPaste:t=>{e.onPaste?.(t);let n=nE(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),z(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:T,errorMessage:N},t,n),eh=t3(es,ef);i$(n,t.defaultNumberValue,t.setNumberValue),a=t,i=e.validationBehavior,o=e.commitBehavior,s=n,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,tV(()=>{let e=s.current;if("validate"!==o||a.realtimeValidation.isInvalid||!e||e.disabled||(!s$&&"u">typeof document&&((s$=document.createElement("input")).type="number"),!s$))return;s$.min=null==l||isNaN(l)?"":String(l),s$.max=null==u||isNaN(u)?"":String(u),s$.step=null==c||isNaN(c)?"":String(c),s$.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&s$.validity.valid,n=e.validationMessage||s$.validationMessage,r={isInvalid:!t,validationErrors:n?[n]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:s$.validity.rangeOverflow,rangeUnderflow:s$.validity.rangeUnderflow,stepMismatch:s$.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};a.updateValidation(r),"native"!==i||s$.validity.valid||e.setCustomValidity(s$.validationMessage)});let ey=t3(X,G,eh,{role:null,"aria-roledescription":nH()?null:W.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ey["aria-required"]=void 0);let eg=e=>{((e=document)=>e.activeElement)()!==n.current&&("mouse"===e.pointerType?n.current?.focus():e.target.focus())},ev=e["aria-label"]||("string"==typeof e.label?e.label:"");ev||(f=null!=e.label?ed.id:e["aria-labelledby"]);let eb=tQ(),ew=tQ(),ex=t3(Q,{"aria-label":g||W.format("increase",{fieldLabel:ev}).trim(),id:f&&!g?eb:null,"aria-labelledby":f&&!g?`${eb} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:eg}),eS=t3(J,{"aria-label":m||W.format("decrease",{fieldLabel:ev}).trim(),id:f&&!m?ew:null,"aria-labelledby":f&&!m?`${ew} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:eg});return{groupProps:{...en,role:"group","aria-disabled":v,"aria-invalid":el?"true":void 0},labelProps:ed,inputProps:ey,incrementButtonProps:ex,decrementButtonProps:eS,errorMessageProps:em,descriptionProps:ep,isInvalid:el,validationErrors:eu,validationDetails:ec}}({...nt(e),label:l,validationBehavior:r},i,o),b=t8({...e,values:{state:i,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:"react-aria-NumberField"}),w=nh(e,{global:!0});return delete w.id,y().createElement(t6,{values:[[sY,i],[ih,c],[ig,{...d,ref:o}],[o_,{...u,ref:s}],[rQ,{slots:{increment:f,decrement:p}}],[r2,{slots:{description:m,errorMessage:g}}],[oA,v]]},y().createElement(na.div,{...w,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&y().createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(i.numberValue)?"":i.numberValue,disabled:e.isDisabled||void 0}))});function sZ(e,t){return Number.parseInt((0,sT.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sX=(0,h.forwardRef)(function(e,t){var n=e.className,r=(0,h.useContext)(ia),a=(0,h.useContext)(ii),i=null!=r?r:a,o=(0,h.useContext)(sM),s=(0,aD.Xj)(),l=(0,sT.Yq)(i.visibleRange.start.toDate(s),{calendar:o.calendar,locale:o.baseName,day:!1,year:!1,noToday:!0}),u=sZ(i.visibleRange.start.toDate(s),o),c=i.maxValue?sZ(i.maxValue.toDate(s),o):void 0,d=i.minValue?sZ(i.minValue.toDate(s),o):void 0,f=(0,h.useCallback)(function(e){i.setFocusedDate(i.focusedDate.cycle("year",e-i.focusedDate.year))},[]);return i&&(0,m.jsxs)("span",{ref:t,className:n,children:[(0,m.jsx)("span",{children:l}),(0,m.jsxs)(sK,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:f,value:u,children:[(0,m.jsx)(iv,{}),(0,m.jsxs)(iy,{children:[(0,m.jsx)(rJ,{slot:"increment",children:(0,m.jsx)(eh,{size:8})}),(0,m.jsx)(rJ,{slot:"decrement",children:(0,m.jsx)(ef,{size:8})})]})]})]})});let sQ="+4zksyca-I5VROi6oiQzJQ==",sJ="wiExnFcGq1fPxn+K4eWeig==",s0="uiyACHcxSXjudv9HIlh57w==",s1="SxtTLfuOGW-Mst6POMWfQA==",s2="UU1QpNunTQCrdkAN2b2Ecg==",s3="fhR-1dd9yTq-5JUfl4REqA==",s4="_5INZ7v7pw4CkyEJ2Y8RsrA==",s5="RFMrlShZc97nAtIJF9P8jw==";function s6(e){var t=e.children,n=(0,h.useContext)(sb),r=(0,h.useContext)(sw),a=null!=n?n:r,i=(0,b.useOnClickOutside)(function(){return null==a?void 0:a.close()});return(0,m.jsx)(oP,{className:"qllIfMFRvFHzGUeuOQ+PpA==",ref:i,children:t})}function s8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s9=(0,h.forwardRef)(function(e,t){var n,r,a=e.variant,i=e.today_,o=e.minDate,s=e.maxDate,l="range"===a;return(0,m.jsx)(sm,{ref:t,className:"_16UMXpLD7yf8iGA5mGYNeA==",placement:"bottom start",offset:1,isNonModal:!0,children:(0,m.jsx)(s6,{children:(0,m.jsxs)(l?is:io,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s8(e,t,n[t])})}return e}({},l?{minValue:void 0===o?void 0:o,maxValue:void 0===s?void 0:s,className:"cds--date-picker__calendar"}:{}),r=r={children:[(0,m.jsxs)("header",{className:"WAVlDbzjKhHAlu18b5VwWw==",children:[(0,m.jsx)(rJ,{className:v()(s2,s3),slot:"previous",children:(0,m.jsx)(eS,{size:16})}),(0,m.jsx)(sX,{className:"A3aKFbSSeqZsllm0oKdxgg=="}),(0,m.jsx)(rJ,{className:v()(s2,s3),slot:"next",children:(0,m.jsx)(ej,{size:16})})]}),(0,m.jsx)(iu,{className:"_6qRB2DssZC4NegdCeg1ktQ==",children:function(e){return(0,m.jsx)(im,{className:v()("cds--date-picker__day",s8({},"TZl6MCGNAAF8bYh2zSUQ2w==",0===i.compare(e))),date:e},e.toString())}})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})});function s7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function lt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var ln=(0,h.forwardRef)(function(e,t){var n,r=(0,h.useContext)(sb),a=function(e){if(Array.isArray(e))return e}(n=t7({slot:e.slot},t,oy))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(n)||function(e){if(e){if("string"==typeof e)return s7(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s7(e,2)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1],s=au().locale,l=oh(lt(le({},i),{locale:s,createCalendar:aH.d})),u=(0,h.useRef)(null),c=iK(lt(le({},i),{inputRef:u}),l,o),d=c.fieldProps,f=c.inputProps,p=(0,h.useCallback)(function(){l.isDisabled||r.toggle()},[]);return(0,m.jsxs)(t6,{values:[[og,l],[ig,lt(le({},f),{ref:u})],[ih,lt(le({},d),{ref:o,isInvalid:l.isInvalid})]],children:[(0,m.jsx)(iy,lt(le({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:p,children:l.segments.map(function(t,n){return(0,h.cloneElement)(e.children(t),{key:n})})})),(0,m.jsx)(iv,{})]})});function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var la=(0,h.forwardRef)(function(e,t){var n=(0,h.useContext)(sb),r=(0,h.useContext)(sw);return(null!=n?n:r).isInvalid?(0,m.jsx)(tP,lr({ref:t,size:16},e)):(0,m.jsx)(ed,lr({ref:t,size:16},e))});class li{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let lo=new Map;function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ll(e){if(Array.isArray(e))return e}function lu(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function ld(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function lf(e,t){if(e){if("string"==typeof e)return ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ls(e,t)}}var lp=(0,h.forwardRef)(function(e,t){var n,r,a,i,o,s,l,u,c,d,f,p=ll(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||lf(n)||lu(),g=p[0],v=p.slice(1),b=g.segment,w=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(g,["segment"]),x=(ll(v)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(v)||lf(v,1)||lu())[0],S=(0,h.useContext)(og),j=t4(x),E=function(e,t,n){let r,a,i,o,s=(0,h.useRef)(""),{locale:l,direction:u}=au(),c=function(){var e;let{locale:t}=au(),n=aO((e=iB)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,h.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new li(t,n)}},[t,n])}(),{ariaLabel:d,ariaLabelledBy:f,ariaDescribedBy:p,focusManager:m}=iG.get(t),g=e.isPlaceholder?"":e.text,v=(0,h.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=ay({month:"long",timeZone:v.timeZone}),w=ay({hour:"numeric",hour12:v.hour12,timeZone:v.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(g=w.format(t.dateValue));else{let e=b.format(t.dateValue);g=e!==g?`${g} \u{2013} ${e}`:e}let{spinButtonProps:x}=sW({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),S=(0,h.useMemo)(()=>new(0,sH.d)(l,{maximumFractionDigits:0}),[l]),j=()=>{if(e.text===e.placeholder&&m.focusPrevious(),!S.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let n=e.text.slice(0,-1),r=S.parse(n);0===(n=0===r?"":n).length||0===r?t.clearSegment(e.type):t.setSegment(e.type,r),s.current=n}},{keyboardProps:E}=ry({shortcuts:{Backspace:()=>{j()},Delete:()=>{j()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:O}=(r=function(e){let{locale:t}=au(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(lo.has(n))return lo.get(n);let r=new Intl.Collator(t,e);return lo.set(n,r),r}({usage:"search",sensitivity:"base"}),a=(0,h.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(0,t.length),t)),[r]),i=(0,h.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(-t.length),t)),[r]),o=(0,h.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,a=(t=t.normalize("NFC")).length;for(;n+a<=e.length;n++){let i=e.slice(n,n+a);if(0===r.compare(t,i))return!0}return!1},[r]),(0,h.useMemo)(()=>({startsWith:a,endsWith:i,contains:o}),[a,i,o])),k=ay({hour:"numeric",hour12:!0}),D=(0,h.useMemo)(()=>{let e=new Date;return e.setHours(0),k.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[k]),P=(0,h.useMemo)(()=>{let e=new Date;return e.setHours(12),k.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[k]),A=ay({year:"numeric",era:"narrow",timeZone:"UTC"}),C=(0,h.useMemo)(()=>{if("era"!==e.type)return[];let n=(0,aG.yP)(new(0,i8.ng)(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:A.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map(e=>e.formatted));if(a)for(let e of r)e.formatted=e.formatted.slice(a);return r},[A,t.calendar,e.type]),T=n=>{if(t.isDisabled||t.isReadOnly)return;let r=s.current+n;switch(e.type){case"dayPeriod":if(O(D,n))t.setSegment("dayPeriod",0);else if(O(P,n))t.setSegment("dayPeriod",1);else break;m.focusNext();break;case"era":{let e=C.find(e=>O(e.formatted,n));e&&(t.setSegment("era",e.era),m.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(r))return;let a=S.parse(r),i=a;if(void 0!==e.maxValue&&a>e.maxValue&&(i=S.parse(n)),isNaN(a))return;t.setSegment(e.type,i),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(s.current="",m.focusNext()):s.current=r}}};a$((0,h.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&nj(n.current,e?.anchorNode)&&((e=document)=>e.activeElement)()===n.current&&e.collapse(n.current)});let N=(0,h.useRef)("");a$(n,"beforeinput",r=>{if(n.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&j();break;case"insertCompositionText":N.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&T(r.data)}}),a$(n,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(n.current&&(n.current.textContent=N.current),null!=r&&(O(D,r)||O(P,r))&&T(r))}),tV(()=>{let e=n.current;return()=>{((e=document)=>e.activeElement)()===e&&(m.focusPrevious()||m.focusNext())}},[n,m]);let R=nH()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,h.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let M=tQ(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L="literal"===e.type?"":c.of(e.type),_=aR({"aria-label":`${L}${d?`, ${d}`:""}${f?", ":""}`,"aria-labelledby":f});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if("rtl"===u){F.unicodeBidi="embed";let t=v[e.type];("numeric"===t||"2-digit"===t)&&(F.direction="ltr")}return{segmentProps:t3(x,_,{id:M,...R,...E,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:I,suppressContentEditableWarning:I,spellCheck:I?"false":void 0,autoCorrect:I?"off":void 0,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:I?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!I?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:()=>{s.current="",n.current&&aB(n.current,{containingElement:a_(n.current)});let e=window.getSelection();e?.collapse(n.current)},style:F,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(b,S,j).segmentProps,O=rG(),k=O.focusProps,D=O.isFocused,P=O.isFocusVisible,A=rX(ld(lc({},w),{isDisabled:S.isDisabled||"literal"===b.type})),C=A.hoverProps,T=A.isHovered,N=(a=(r=ld(lc({},w),{values:ld(lc({},b),{isReadOnly:!b.isEditable,isInvalid:S.isInvalid,isDisabled:S.isDisabled,isHovered:T,isFocused:D,isFocusVisible:P}),defaultChildren:b.text})).className,i=r.style,o=r.children,l=void 0===(s=r.defaultClassName)?void 0:s,c=void 0===(u=r.defaultChildren)?void 0:u,d=r.defaultStyle,f=r.values,(0,h.useMemo)(function(){var e,t,n;return e="function"==typeof a?a(sR(sN({},f),{defaultClassName:l})):a,t="function"==typeof i?i(sR(sN({},f),{defaultStyle:d||{}})):i,n="function"==typeof o?o(sR(sN({},f),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:l,style:t||d?sN({},d,t):void 0,children:null!=n?n:c,"data-rac":""}},[a,i,o,l,c,d,f])),R=(0,h.useCallback)(function(e){e.stopPropagation()},[]);return(0,m.jsx)("span",ld(lc({},t3(nh(w),E,k,C),N),{ref:j,style:E.style,"data-placeholder":b.isPlaceholder||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":!b.isEditable||void 0,"data-disabled":S.isDisabled||void 0,"data-type":b.type,"data-hovered":T||void 0,"data-focused":D||void 0,"data-focus-visible":P||void 0,onClick:R}))});function lm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lm(e,t,n[t])})}return e}var ly={short:!1,size:"md"},lg=(0,h.forwardRef)(function(e,t){var n,r,a,i,o,s=lh({},ly,e),l=s.className,u=s.defaultValue,c=s.isDisabled,d=s.invalid,f=s.invalidText,p=s.isInvalid,g=s.label,b=s.labelText,w=s.light,x=s.maxDate,S=s.minDate,j=s.onChange,E=s.onChangeRaw,O=s.short,k=s.size,D=s.value,P=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),A=sI(),C=A.calendar,T=A.intlLocale,N=A.today_,R=(0,h.useId)(),M=!!(null!=b?b:g),I=(0,h.useMemo)(function(){return sP(u,C)},[u,C]),L=(0,h.useMemo)(function(){return sP(D,C,!0)},[D,C]),_=(0,h.useMemo)(function(){return sP(x,C)},[x,C]),F=(0,h.useMemo)(function(){return sP(null!=S?S:sL,C)},[S,C]),V=(0,h.useMemo)(function(){return d||p},[d,p]),B=(0,h.useMemo)(function(){return E&&j&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=E?E:function(e){return null==j?void 0:j(sA(e))}},[E,j]);return(0,m.jsx)(sE,{locale:T.toString(),children:(0,m.jsx)("div",{className:v()("cds--form-item",l),children:(0,m.jsx)(t6,{values:[[sM,T]],children:(0,m.jsxs)(sS,(n=lh({className:v()("cds--date-picker","cds--date-picker--single",(lm(a={},"cds--date-picker--short",O),lm(a,"cds--date-picker--light",w),a)),defaultValue:I,isDisabled:c,isInvalid:V,maxValue:_,minValue:F,value:L,shouldForceLeadingZeros:"en"===T.language||void 0},P),r=r={onChange:B,children:[(0,m.jsxs)("div",{className:"cds--date-picker-container",children:[M&&(0,m.jsx)(oF,{className:v()("cds--label",{"cds--label--disabled":c}),htmlFor:R,children:null!=b?b:g}),(0,m.jsxs)(iy,{className:sQ,children:[(0,m.jsx)(ln,{id:M?R:void 0,ref:t,className:v()("cds--date-picker-input__wrapper","kykar4EZi79xhpVitgu-vg==",(lm(i={},"KJtg-MP1knHYLUz4R6hZEw==","sm"===k),lm(i,"ablE9mmlFsZsPekwcW7jjQ==","md"===k||!k||0===k.length),lm(i,"_5dkQpmV3FO9GZg+Ai3BG3A==","lg"===k),i)),children:function(e){return"era"!==e.type?(0,m.jsx)(lp,{className:sJ,segment:e}):(0,m.jsx)(y().Fragment,{})}}),(0,m.jsx)(rJ,{className:v()(s2,(lm(o={},s4,"sm"===k),lm(o,s3,"md"===k||!k||0===k.length),lm(o,s5,"lg"===k),o)),children:(0,m.jsx)(la,{})})]}),(0,m.jsx)(oC,{className:s1,children:f})]}),(0,m.jsx)(s9,{variant:"single",today_:N})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})})});function lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lb(e){if(Array.isArray(e))return e}function lw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lx(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lS(e,t){if(e){if("string"==typeof e)return lv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lv(e,t)}}var lj=(0,h.forwardRef)(function(e,t){var n,r,a,i,o,s=lb(a=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||lS(a)||lx(),l=s[0],u=s.slice(1),c=l.className,d=l.defaultValue,f=l.invalid,p=l.invalidText,y=l.isDisabled,g=l.isInvalid,b=l.label,w=l.labelText,x=l.light,S=l.maxDate,j=l.minDate,E=l.onChange,O=l.onChangeRaw,k=l.size,D=void 0===k?"md":k,P=l.value,A=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(l,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","size","value"]),C=(lb(u)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(u)||lS(u,1)||lx())[0],T=sI(),N=T.calendar,R=T.intlLocale,M=T.today_,I=(0,h.useId)(),L=!!(null!=w?w:b),_=(0,h.useMemo)(function(){if(P)return{start:sP(P[0],N,!1),end:sP(P[1],N,!1)}},[P,N]),F=(0,h.useMemo)(function(){if(d)return{start:sP(d[0],N,!1),end:sP(d[1],N,!1)}},[d,N]),V=(0,h.useMemo)(function(){return sP(null!=j?j:sL,N,!0)},[j,N]),B=(0,h.useMemo)(function(){return sP(S,N,!0)},[S,N]),z=(0,h.useMemo)(function(){return f||g},[f,g]),U=(0,h.useMemo)(function(){return O&&E&&console.error("An EgenDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=O?O:function(e){return null==E?void 0:E([sA(e.start),sA(e.end)])}},[O,E]);return(0,m.jsx)(sE,{locale:R.toString(),children:(0,m.jsx)("div",{className:v()("cds--form-item",c),children:(0,m.jsx)(t6,{values:[[sM,R]],children:(0,m.jsx)(sj,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lw(e,t,n[t])})}return e}({id:L?I:void 0,className:v()("cds--date-picker",{"cds--date-picker--light":x,"cds--date-picker--disabled":y}),isInvalid:z,shouldForceLeadingZeros:"en"===R.language||void 0,maxValue:B,minValue:V,value:_,defaultValue:F,ref:C,isDisabled:y},A),r=r={onChange:U,children:(0,m.jsxs)("div",{className:"cds--date-picker-container",children:[L&&(0,m.jsx)(oF,{className:v()("cds--label",{"cds--label--disabled":y}),htmlFor:I,children:null!=w?w:b}),(0,m.jsxs)(iy,{className:sQ,children:[(0,m.jsxs)("div",{className:v()("YlkGhdQcBgSDJNSlS1cQnw==",(lw(i={},"fAKhSoomCu7Mn5FBku20SQ==","sm"===D),lw(i,"XVgGPgTNDC4UIcE+4yAZPQ==","md"===D||!D||0===D.length),lw(i,"UgHJ1nnMa-axxvCtxsZexg==","lg"===D),i)),children:[(0,m.jsx)(ob,{className:v()("cds--date-picker-input__wrapper","qgbQm03oBFnWnXNV1GFW6Q==",s0),slot:"start",children:function(e){return(0,m.jsx)(lp,{className:sJ,segment:e})}}),(0,m.jsx)("div",{className:"_79vXZ2hgTRvmmxREZu5WGw==",children:(0,m.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,m.jsx)(ob,{className:v()("cds--date-picker-input__wrapper","huv7xQjo+RZmT7LsDwVMdw==",s0),slot:"end",children:function(e){return(0,m.jsx)(lp,{className:sJ,segment:e})}})]}),(0,m.jsx)(rJ,{className:v()(s2,(lw(o={},s4,"sm"===D),lw(o,s3,"md"===D||!D||0===D.length),lw(o,s5,"lg"===D),o)),children:(0,m.jsx)(la,{})})]}),(0,m.jsx)(oC,{className:s1,children:p}),(0,m.jsx)(s9,{variant:"range",today_:M,minDate:V,maxDate:B})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})})});function lE(e){var t=e.classifications,n=(0,b.useConfig)().classificationTags;return(null==t?void 0:t.length)?(0,m.jsx)("div",{"aria-label":(0,_.V)("classificationTags","Classification tags"),children:t.map(function(e,t){var r,a,i="primary"===e.rank||1===e.rank,o="secondary"===e.rank||2===e.rank,s=i?null!=(r=null==n?void 0:n.primaryColor)?r:"red":o?null!=(a=null==n?void 0:n.secondaryColor)?a:"blue":"gray";return(0,m.jsx)(L.Tag,{type:s,size:"sm",children:e.display},"".concat(e.display,"-").concat(t))})}):null}let lO={action:"Y0dulYR6B5fprvtdpjGfEg==",content:"fo0nBB+424Kd5d6PQgXSNw==",heading:"sxyN788Qj+7TLTeyCjE6bw==",tile:"QB8Ldd7u7gkdqC6n-YSg0Q=="};var lk=function(e){var t=e.width,n=e.height;return(0,m.jsx)("svg",{width:void 0===t?"64":t,height:void 0===n?"64":n,viewBox:"0 0 64 64",children:(0,m.jsx)("use",{href:"#egen-empty-data-illustration"})})},lD=function(e){var t="tablet"===(0,b.useLayoutType)(),n=e.launchForm;return(0,m.jsx)(L.Layer,{className:lO.layer,children:(0,m.jsxs)(L.Tile,{className:lO.tile,children:[(0,m.jsx)(x,{title:e.headerTitle}),(0,m.jsx)(lk,{}),(0,m.jsx)("p",{className:lO.content,children:(0,_.V)("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,m.jsx)("p",{className:lO.action,children:n&&(0,m.jsx)(L.Button,{onClick:function(){return n()},kind:"ghost",size:t?"lg":"sm",children:(0,_.V)("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},lP=function(e){var t,n,r=e.error,a=e.headerTitle;return(0,m.jsx)(L.Layer,{children:(0,m.jsxs)(L.Tile,{className:"dd4186Mm5sjs8UUsDMSW1g==",children:[(0,m.jsx)(x,{title:a}),(0,m.jsxs)("p",{className:"z2RiNHQhCUYOlXJFOX2flg==",children:[(0,_.V)("error","Error")," ","".concat(null==r||null==(t=r.response)?void 0:t.status,": "),null==r||null==(n=r.response)?void 0:n.statusText]}),(0,m.jsx)("p",{className:"dq+e2AreXbyoxopCEZRwXA==",children:(0,_.V)("errorCopy")})]})})},lA=lP;let lC={field:"_43NbpAusYvdB5tccpwugCA==",fieldControl:"G1h3dJAllPDcbDsNL-kJLw==","field--sm":"qZ3I0hYsBw+2jkiCqmcUJA==",input:"QpQk8fSE4iroHHsFDJ99Aw==","field--md":"nssddTppPkQP0CugsUPX5g==","field--lg":"xIJwiskqnesjex9fPTygkg==","field--has-left-icon":"TJqIuzWKloLr6PhYm355Qw==","field--has-validation-icon":"Nt3RLjaf9OLWbKmVXDGn9Q==",leftIcon:"tnIgGaBUPHeeupW35eP2SA==",fieldIconGlyph:"Q9JAzVjLjsA7LK8yUAjMTA==",label:"ZlGeR10bC-HigCF3J94reg==",labelIconGlyph:"F0FzdhtESa7tOKDzB1LKuQ==",labelText:"_613ljFLjrRFib1esYu9tJQ==",requiredMark:"_6FSEkZ0YQLyZBgkHo0BbDA==","field--outlined":"AkjaqVgv7Lppw5FWlx9P1w==","field--filled":"xauRzt+u2w1HMkxD2nGWEQ==","field--standard":"_9MpGPx8nMOJlVLn0jh-V5w==","field--kinetic":"k9FGXNPiNV2jvPoXKT1QMQ==",kineticLabelWrapper:"-yRyWB-CtGn2AbaQJZi+4w==",kineticLabel:"G7MW0q8Btg4BxqJV3Z5miQ==",kineticLetter:"jBg3TwH5jGyQrU0OTBShZw==","field--success":"+snaLZpHBI7Sb8Kc3uOAjg==","field--warning":"cQBS9BRsyXY8-1W4KF3yVQ==","field--error":"DgTzJdsnBz2-8wS1-e6oQg==","field--animating":"gUU0Ammae3v1wFhr9u4-eQ==","egen-field-shake":"U6ngyfp0+rnW1PldL6yMBA==",validationIcon:"xoHozMA+LguHzECzMvwlrw==","validationIcon--visible":"d5MbW0CwL3XCn4-F8lJG2g==","validationIcon--success":"_64EifujVeYZHHGEtsTPxeQ==",validationIconGlyph:"pV9JSxOQeNRZb2lm9cYv4g==","validationIcon--warning":"_8aVrbporEe5AA9sQ6Xpi2Q==","validationIcon--error":"eNuD0-w+bOIn+mvwWjOIXQ==",message:"g+uLmewSwVY7BrP2VTSvMA==","egen-field-message-in":"nfxbATxFUBP+xWnBhxZGRA==",messageLead:"_1f6rXhfiFQXbJtoltWX3kg==","field--disabled":"CLnEkNXEBL-I2g3+3YwItw=="};var lT=function(e){var t=e.fieldIcon,n=e.className;if(!t)return null;var r=t.icon;return(0,m.jsx)(r,{className:[lC.fieldIconGlyph,n].filter(Boolean).join(" "),size:16})};function lN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lR={success:ev,warning:tP,error:s_},lM=function(e){var t,n,r,a=e.currentValidation,i=e.showIcons,o=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return lN(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lN(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1];if((0,h.useEffect)(function(){if(a&&i){var e=setTimeout(function(){return l(!0)},50);return function(){return clearTimeout(e)}}l(!1)},[a,i]),!i||!a)return null;var u=lR[a.type];return u?(0,m.jsx)("div",{className:v()(lC.validationIcon,lC["validationIcon--".concat(a.type)],(n={},r=lC["validationIcon--visible"],r in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s,n)),children:(0,m.jsx)(u,{className:lC.validationIconGlyph,size:16})}):null};let lI=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lL=new Set([...lI,"pathRotation"]),l_=(e,t,n)=>n>t?t:n<e?e:n,lF={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lV={...lF,transform:e=>l_(0,1,e)},lB={...lF,default:1},lz=e=>Math.round(1e5*e)/1e5,lU=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,lW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,l$=(e,t)=>n=>!!("string"==typeof n&&lW.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),lH=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[a,i,o,s]=r.match(lU);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},lG={...lF,transform:e=>Math.round(l_(0,255,e))},lq={test:l$("rgb","red"),parse:lH("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lG.transform(e)+", "+lG.transform(t)+", "+lG.transform(n)+", "+lz(lV.transform(r))+")"},lY={test:l$("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:lq.transform},lK=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lZ=lK("deg"),lX=lK("%"),lQ=lK("px"),lJ=lK("vh"),l0=lK("vw"),l1={...lX,parse:e=>lX.parse(e)/100,transform:e=>lX.transform(100*e)},l2={test:l$("hsl","hue"),parse:lH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+lX.transform(lz(t))+", "+lX.transform(lz(n))+", "+lz(lV.transform(r))+")"},l3={test:e=>lq.test(e)||lY.test(e)||l2.test(e),parse:e=>lq.test(e)?lq.parse(e):l2.test(e)?l2.parse(e):lY.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?lq.transform(e):l2.transform(e),getAnimatableNone:e=>{let t=l3.parse(e);return t.alpha=0,l3.transform(t)}},l4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,l5="number",l6="color",l8=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function l9(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[],i=0,o=t.replace(l8,e=>(l3.test(e)?(r.color.push(i),a.push(l6),n.push(l3.parse(e))):e.startsWith("var(")?(r.var.push(i),a.push("var"),n.push(e)):(r.number.push(i),a.push(l5),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:o,indexes:r,types:a}}function l7({split:e,types:t}){let n=e.length;return r=>{let a="";for(let i=0;i<n;i++)if(a+=e[i],void 0!==r[i]){let e=t[i];e===l5?a+=lz(r[i]):e===l6?a+=l3.transform(r[i]):a+=r[i]}return a}}let ue={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(lU)?.length||0)+(e.match(l4)?.length||0)>0},parse:function(e){return l9(e).values},createTransformer:function(e){return l7(l9(e))},getAnimatableNone:function(e){let t=l9(e);return l7(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:l3.test(e)?l3.getAnimatableNone(e):e)(e,t.split[n])))}},ut=new Set(["brightness","contrast","saturate","opacity"]);function un(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(lU)||[];if(!r)return e;let a=n.replace(r,""),i=+!!ut.has(t);return r!==n&&(i*=100),t+"("+i+a+")"}let ur=/\b([a-z-]*)\(.*?\)/gu,ua={...ue,getAnimatableNone:e=>{let t=e.match(ur);return t?t.map(un).join(" "):e}},ui={...ue,getAnimatableNone:e=>{let t=ue.parse(e);return ue.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},uo={...lF,transform:Math.round},us={borderWidth:lQ,borderTopWidth:lQ,borderRightWidth:lQ,borderBottomWidth:lQ,borderLeftWidth:lQ,borderRadius:lQ,borderTopLeftRadius:lQ,borderTopRightRadius:lQ,borderBottomRightRadius:lQ,borderBottomLeftRadius:lQ,width:lQ,maxWidth:lQ,height:lQ,maxHeight:lQ,top:lQ,right:lQ,bottom:lQ,left:lQ,inset:lQ,insetBlock:lQ,insetBlockStart:lQ,insetBlockEnd:lQ,insetInline:lQ,insetInlineStart:lQ,insetInlineEnd:lQ,padding:lQ,paddingTop:lQ,paddingRight:lQ,paddingBottom:lQ,paddingLeft:lQ,paddingBlock:lQ,paddingBlockStart:lQ,paddingBlockEnd:lQ,paddingInline:lQ,paddingInlineStart:lQ,paddingInlineEnd:lQ,margin:lQ,marginTop:lQ,marginRight:lQ,marginBottom:lQ,marginLeft:lQ,marginBlock:lQ,marginBlockStart:lQ,marginBlockEnd:lQ,marginInline:lQ,marginInlineStart:lQ,marginInlineEnd:lQ,fontSize:lQ,backgroundPositionX:lQ,backgroundPositionY:lQ,rotate:lZ,pathRotation:lZ,rotateX:lZ,rotateY:lZ,rotateZ:lZ,scale:lB,scaleX:lB,scaleY:lB,scaleZ:lB,skew:lZ,skewX:lZ,skewY:lZ,distance:lQ,translateX:lQ,translateY:lQ,translateZ:lQ,x:lQ,y:lQ,z:lQ,perspective:lQ,transformPerspective:lQ,opacity:lV,originX:l1,originY:l1,originZ:lQ,zIndex:uo,fillOpacity:lV,strokeOpacity:lV,numOctaves:uo},ul={...us,color:l3,backgroundColor:l3,outlineColor:l3,fill:l3,stroke:l3,borderColor:l3,borderTopColor:l3,borderRightColor:l3,borderBottomColor:l3,borderLeftColor:l3,filter:ua,WebkitFilter:ua,mask:ui,WebkitMask:ui},uu=e=>ul[e],uc=()=>({translate:0,scale:1,origin:0,originPoint:0}),ud=()=>({x:uc(),y:uc()}),uf=()=>({min:0,max:0}),up=()=>({x:uf(),y:uf()}),um=e=>!!(e&&e.getVelocity),uh=new Set(["width","height","top","left","right","bottom",...lI]),uy=e=>t=>t.test(e),ug=[lF,lQ,lX,lZ,l0,lJ,{test:e=>"auto"===e,parse:e=>e}],uv=e=>ug.find(uy(e)),ub=()=>{},uw=()=>{},ux=e=>t=>"string"==typeof t&&t.startsWith(e),uS=ux("--"),uj=ux("var(--"),uE=e=>!!uj(e)&&uO.test(e.split("/*")[0].trim()),uO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function uk(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let uD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,uP=e=>180*e/Math.PI,uA=e=>uT(uP(Math.atan2(e[1],e[0]))),uC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uA,rotateZ:uA,skewX:e=>uP(Math.atan(e[1])),skewY:e=>uP(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uT=e=>((e%=360)<0&&(e+=360),e),uN=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uN,scaleY:uR,scale:e=>(uN(e)+uR(e))/2,rotateX:e=>uT(uP(Math.atan2(e[6],e[5]))),rotateY:e=>uT(uP(Math.atan2(-e[2],e[0]))),rotateZ:uA,rotate:uA,skewX:e=>uP(Math.atan(e[4])),skewY:e=>uP(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uI(e){return+!!e.includes("scale")}function uL(e,t){let n,r;if(!e||"none"===e)return uI(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)n=uM,r=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=uC,r=t}if(!r)return uI(t);let i=n[t],o=r[1].split(",").map(u_);return"function"==typeof i?i(o):o[i]}function u_(e){return parseFloat(e.trim())}let uF=e=>e===lF||e===lQ,uV=new Set(["x","y","z"]),uB=lI.filter(e=>!uV.has(e)),uz={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let a=e.max-e.min;return"border-box"===r?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let a=e.max-e.min;return"border-box"===r?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uL(t,"x"),y:(e,{transform:t})=>uL(t,"y")};uz.translateX=uz.x,uz.translateY=uz.y;let uU=e=>e,uW={},u$=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uH(e,t){let n=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=u$.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,a=!1,i=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,a=!1,o=!1)=>{let s=o&&r?t:n;return a&&i.add(e),s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{if(o=e,r){a=!0;return}r=!0;let i=t;t=n,n=i,t.forEach(s),t.clear(),r=!1,a&&(a=!1,l.process(e))}};return l}(i),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let i=uW.useManualTiming,o=i?a.timestamp:performance.now();n=!1,i||(a.delta=r?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,s.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),p.process(a),m.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:u$.reduce((t,i)=>{let s=o[i];return t[i]=(t,i=!1,o=!1)=>(!n&&(n=!0,r=!0,a.isProcessing||e(h)),s.schedule(t,i,o)),t},{}),cancel:e=>{for(let t=0;t<u$.length;t++)o[u$[t]].cancel(e)},state:a,steps:o}}let{schedule:uG,cancel:uq,state:uY,steps:uK}=uH("u">typeof requestAnimationFrame?requestAnimationFrame:uU,!0),uZ=new Set,uX=!1,uQ=!1,uJ=!1;function u0(){if(uQ){let e=Array.from(uZ).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],uB.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uQ=!1,uX=!1,uZ.forEach(e=>e.complete(uJ)),uZ.clear()}function u1(){uZ.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uQ=!0)})}class u2{constructor(e,t,n,r,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(uZ.add(this),uX||(uX=!0,uG.read(u1),uG.resolveKeyframes(u0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let a=r?.get(),i=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){let r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===a&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),uZ.delete(this)}cancel(){"scheduled"===this.state&&(uZ.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let u3=new Set([ua,ui]);function u4(e,t){let n=uu(e);return u3.has(n)||(n=ue),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let u5=new Set(["auto","none","0"]);class u6 extends u2{constructor(e,t,n,r,a){super(e,t,n,r,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&uE(r=r.trim())){let a=function e(t,n,r=1){uw(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,i]=function(e){let t=uD.exec(e);if(!t)return[,];let[,n,r,a]=t;return[`--${n??r}`,a]}(t);if(!a)return;let o=window.getComputedStyle(n).getPropertyValue(a);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uE(i)?e(i,n,r+1):i}(r,t.current);void 0!==a&&(e[n]=a),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!uh.has(n)||2!==e.length)return;let[r,a]=e,i=uv(r),o=uv(a);if(uk(r)!==uk(a)&&uz[n]){this.needsMeasurement=!0;return}if(i!==o)if(uF(i)&&uF(o))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else uz[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,a=0;for(;a<e.length&&!r;){let t=e[a];"string"==typeof t&&!u5.has(t)&&l9(t).values.length&&(r=e[a]),a++}if(r&&n)for(let a of t)e[a]=u4(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uz[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let a=n.length-1,i=n[a];n[a]=uz[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let u8=e=>1e3*e;function u9(e,t){-1===e.indexOf(t)&&e.push(t)}function u7(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ce{constructor(){this.subscriptions=[]}add(e){return u9(this.subscriptions,e),()=>u7(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){let r=this.subscriptions[a];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ct(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function cn(e){let t;return()=>(void 0===t&&(t=e()),t)}let cr={};function ca(e,t){let n=cn(e);return()=>cr[t]??n()}let ci=ca(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),co=e=>null!==e;function cs(e,{repeat:t,repeatType:n="loop"},r,a=1){let i=e.filter(co),o=a<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}class cl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let cu=e=>Array.isArray(e)&&"number"==typeof e[0],cc=ca(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),cd=(e,t,n=10)=>{let r="",a=Math.max(Math.round(t/n),2);for(let t=0;t<a;t++)r+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},cf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cf([0,.65,.55,1]),circOut:cf([.55,0,1,.45]),backIn:cf([.31,.01,.66,-.59]),backOut:cf([.33,1.53,.69,.99])};function cm(e){return"function"==typeof e&&"applyToOptions"in e}class ch extends cl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=e,uw("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return cm(e)&&cc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?cc()?cd(t,n):"ease-out":cu(t)?cf(t):Array.isArray(t)?t.map(t=>e(t,n)||cp.easeOut):cp[t]}(s,a);Array.isArray(d)&&(c.easing=d);let f={delay:r,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}(t,n,r,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=cs(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ct(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=u8(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ci())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),uU):r(this)}}let cy=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:cg}=uH(queueMicrotask,!1);function cv(){i=void 0}let cb={now:()=>(void 0===i&&cb.set(uY.isProcessing||uW.useManualTiming?uY.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(cv)}},cw=(e,t)=>t?1e3/t*e:0,cx;class cS{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=cb.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=cb.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ce);let n=this.events[e].add(t);return"change"===e?()=>{n(),uG.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return cx&&cx.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=cb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return cw(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cj(e,t){return new cS(e,t)}let cE=[...ug,l3,ue],cO=new WeakMap;function ck(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cD(e){return"string"==typeof e||Array.isArray(e)}let cP=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cA=["initial",...cP];function cC(e){return ck(e.animate)||cA.some(t=>cD(e[t]))}function cT(e){return!!(cC(e)||e.variants)}let cN={current:null},cR={current:!1},cM="u">typeof window;function cI(){if(cR.current=!0,cM)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cN.current=e.matches;e.addEventListener("change",t),t()}else cN.current=!1}function cL(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function c_(e,t,n,r){if("function"==typeof t){let[a,i]=cL(r);t=t(void 0!==n?n:e.custom,a,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,i]=cL(r);t=t(void 0!==n?n:e.custom,a,i)}return t}let cF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cV={};class cB{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:a,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=u2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=cb.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uG.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=a,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=cC(t),this.isVariantNode=cT(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&um(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,cO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(cR.current||cI(),this.shouldReduceMotion=cN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),uq(this.notifyUpdate),uq(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&cy.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:a,ease:i,duration:o}=t.accelerate,s=new ch({element:this.current,name:e,keyframes:r,times:a,ease:i,duration:u8(o)}),l=n(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let r=lL.has(e);r&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&uG.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in cV){let t=cV[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):up()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<cF.length;t++){let n=cF[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let a=t[r],i=n[r];if(um(a))e.addValue(r,a);else if(um(i))e.addValue(r,cj(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{let t=e.getStaticValue(r);e.addValue(r,cj(void 0!==t?t:a,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=cj(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,a;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(a=n,/^0[^.\s]+$/u.test(a))))n=parseFloat(n);else{let r;r=n,!cE.find(uy(r))&&ue.test(t)&&(n=u4(e,t))}this.setBaseTarget(e,um(n)?n.get():n)}return um(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=c_(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||um(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new ce),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cg.render(this.render)}}class cz extends cB{constructor(){super(...arguments),this.KeyframeResolver=u6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;um(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function cU(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let cW=(e,t)=>t&&"number"==typeof e?t.transform(e):e,c$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cH=lI.length;function cG(e,t,n){let{style:r,vars:a,transformOrigin:i}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(lL.has(e)){o=!0;continue}if(uS(e)){a[e]=n;continue}{let t=cW(n,us[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(!t.transform&&(o||n?r.transform=function(e,t,n){let r="",a=!0;for(let i=0;i<cH;i++){let o=lI[i],s=e[o];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!o.startsWith("scale");else{let e=parseFloat(s);l=o.startsWith("scale")?1===e:0===e}if(!l||n){let e=cW(s,us[o]);if(!l){a=!1;let t=c$[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let i=e.pathRotation;return i&&(a=!1,r+=`rotate(${cW(i,us.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}let cq={offset:"stroke-dashoffset",array:"stroke-dasharray"},cY={offset:"strokeDashoffset",array:"strokeDasharray"},cK=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cZ(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...s},l,u,c){if(cG(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of(d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),cK))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==a&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;let i=a?cq:cY;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}(d,a,i,o,!1)}let cX=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),cQ=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cJ(e,{style:t,vars:n},r,a){let i,o=e.style;for(i in t)o[i]=t[i];for(i in a?.applyProjectionStyles(o,r),n)o.setProperty(i,n[i])}let c0=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function c1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let c2={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!lQ.test(e))return e;else e=parseFloat(e);let n=c1(e,t.target.x),r=c1(e,t.target.y);return`${n}% ${r}%`}},c3=(e,t,n)=>e+(t-e)*n,c4={borderRadius:{...c2,applyTo:[...c0]},borderTopLeftRadius:c2,borderTopRightRadius:c2,borderBottomLeftRadius:c2,borderBottomRightRadius:c2,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=ue.parse(e);if(r.length>5)return e;let a=ue.createTransformer(e),i=+("number"!=typeof r[0]),o=n.x.scale*t.x,s=n.y.scale*t.y;r[0+i]/=o,r[1+i]/=s;let l=c3(o,s,.5);return"number"==typeof r[2+i]&&(r[2+i]/=l),"number"==typeof r[3+i]&&(r[3+i]/=l),a(r)}}};function c5(e,{layout:t,layoutId:n}){return lL.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!c4[e]||"opacity"===e)}function c6(e,t,n){let r=e.style,a=t?.style,i={};if(!r)return i;for(let t in r)(um(r[t])||a&&um(a[t])||c5(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(i[t]=r[t]);return i}function c8(e,t,n){let r=c6(e,t,n);for(let n in e)(um(e[n])||um(t[n]))&&(r[-1!==lI.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class c9 extends cz{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=up}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lL.has(t)){let e=uu(t);return e&&e.default||0}return t=cX.has(t)?t:cU(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return c8(e,t,n)}build(e,t,n){cZ(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in cJ(e,t,void 0,r),t.attrs)e.setAttribute(cX.has(n)?n:cU(n),t.attrs[n])}mount(e){this.isSVGTag=cQ(e.tagName),super.mount(e)}}function c7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function de(e){return void 0===e||1===e}function dt({scale:e,scaleX:t,scaleY:n}){return!de(e)||!de(t)||!de(n)}function dn(e){return dt(e)||dr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dr(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function da(e,t,n,r,a){return void 0!==a&&(e=r+a*(e-r)),r+n*(e-r)+t}function di(e,t=0,n=1,r,a){e.min=da(e.min,t,n,r,a),e.max=da(e.max,t,n,r,a)}function ds(e,{x:t,y:n}){di(e.x,t.translate,t.scale,t.originPoint),di(e.y,n.translate,n.scale,n.originPoint)}function dl(e,t){e.min+=t,e.max+=t}function du(e,t,n,r,a=.5){let i=c3(e.min,e.max,a);di(e,t,n,i,r)}function dc(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function dd(e,t,n){let r=n??e;du(e.x,dc(t.x,r.x),t.scaleX,t.scale,t.originX),du(e.y,dc(t.y,r.y),t.scaleY,t.scale,t.originY)}function df(e,t){return c7(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class dp extends cz{constructor(){super(...arguments),this.type="html",this.renderInstance=cJ}mount(e){uw(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(lL.has(t))return this.projection?.isProjecting?uI(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return uL(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(uS(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return df(e,t)}build(e,t,n){cG(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return c6(e,t,n)}}let dm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dh(e){if("string"!=typeof e||e.includes("-"));else if(dm.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let dy=(0,h.createContext)({}),dg=(0,h.createContext)({strict:!1}),dv=(0,h.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),db=(0,h.createContext)({});function dw(e){return Array.isArray(e)?e.join(" "):e}let dx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dS(e,t,n){for(let r in t)um(t[r])||c5(r,n)||(e[r]=t[r])}let dj=()=>({...dx(),attrs:{}}),dE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function dO(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dE.has(e)}let dk=e=>!dO(e);try{bW=require("@emotion/is-prop-valid").default,"function"==typeof bW&&(dk=e=>e.startsWith("on")?!dO(e):bW(e))}catch{}function dD(e){return um(e)?e.get():e}let dP=(0,h.createContext)(null);function dA(e){let t=(0,h.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dC=e=>(t,n)=>{let r=(0,h.useContext)(db),a=(0,h.useContext)(dP),i=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:function(e,t,n,r){let a={},i=r(e,{});for(let e in i)a[e]=dD(i[e]);let{initial:o,animate:s}=e,l=cC(e),u=cT(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?s:o;if(d&&"boolean"!=typeof d&&!ck(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=c_(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}(n,r,a,e),renderState:t()}})(e,t,r,a);return n?i():dA(i)},dT=dC({scrapeMotionValuesFromProps:c6,createRenderState:dx}),dN=dC({scrapeMotionValuesFromProps:c8,createRenderState:dj}),dR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dM=!1;function dI(){return!function(){if(dM)return;let e={};for(let t in dR)e[t]={isEnabled:e=>dR[t].some(t=>!!e[t])};cV=e,dM=!0}(),cV}let dL=Symbol.for("motionComponentSymbol"),d_="data-"+cU("framerAppearId"),dF=(0,h.createContext)({});function dV(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dB="u">typeof window?h.useLayoutEffect:h.useEffect;function dz(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&function(e){let t=dI();for(let n in e)t[n]={...t[n],...e[n]};cV=t}(r);let i=n?"svg"===n:dh(e),o=i?dN:dT;function s(n,r){var s;let l,u,c,d={...(0,h.useContext)(dv),...n,layoutId:function({layoutId:e}){let t=(0,h.useContext)(dy).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:f}=d,p=function(e){let{initial:t,animate:n}=function(e,t){if(cC(e)){let{initial:t,animate:n}=e;return{initial:!1===t||cD(t)?t:void 0,animate:cD(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,h.useContext)(db));return(0,h.useMemo)(()=>({initial:t,animate:n}),[dw(t),dw(n)])}(n),y=o(n,f);if(!f&&"u">typeof window){(0,h.useContext)(dg).strict;let t=function(e){let{drag:t,layout:n}=dI();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(d);l=t.MeasureLayout,p.visualElement=function(e,t,n,r,a,i){let{visualElement:o}=(0,h.useContext)(db),s=(0,h.useContext)(dg),l=(0,h.useContext)(dP),u=(0,h.useContext)(dv),c=u.reducedMotion,d=u.skipAnimations,f=(0,h.useRef)(null),p=(0,h.useRef)(!1);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,y=(0,h.useContext)(dF);m&&!m.projection&&a&&("html"===m.type||"svg"===m.type)&&function(e,t,n,r){let{layoutId:a,layout:i,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||s&&dV(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,n,a,y);let g=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{m&&g.current&&m.update(n,l)});let v=n[d_],b=(0,h.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return dB(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,h.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),m.enteringChildren=void 0)}),m}(e,y,d,a,t.ProjectionNode,i)}return(0,m.jsxs)(db.Provider,{value:p,children:[l&&p.visualElement?(0,m.jsx)(l,{visualElement:p.visualElement,...d}):null,function(e,t,n,{latestValues:r},a,i=!1,o){let s=(o??dh(e)?function(e,t,n,r){let a=(0,h.useMemo)(()=>{let n=dj();return cZ(n,t,cQ(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};dS(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let n,r,a={},i=(n=e.style||{},dS(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,h.useMemo)(()=>{let n=dx();return cG(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a})(t,r,a,e),l=function(e,t,n){let r={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!um(e[a])&&(dk(a)||!0===n&&dO(a)||!t&&!dO(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(t,"string"==typeof e,i),u=e!==h.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=(0,h.useMemo)(()=>um(c)?c.get():c,[c]);return(0,h.createElement)(e,{...u,children:d})}(e,n,(s=p.visualElement,u=(0,h.useRef)(r),(0,h.useInsertionEffect)(()=>{u.current=r}),c=(0,h.useRef)(null),(0,h.useCallback)(e=>{e&&y.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=u.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(c.current=n)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[s])),y,f,t,i)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,h.forwardRef)(s);return l[dL]=e,l}class dU{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dW(e,t,n){let r=e.getProps();return c_(r,t,void 0!==n?n:r.custom,e)}function d$(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function dH(e,t){let n=e?.[t]??e?.default??e;return n!==e?d$(n,e):n}let dG=e=>Array.isArray(e);function dq(e,t){let{transitionEnd:n={},transition:r={},...a}=dW(e,t)||{};for(let t in a={...a,...n}){var i;let n=dG(i=a[t])?i[i.length-1]||0:i;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,cj(n))}}function dY(e,t){let n=e.getValue("willChange");if(um(n)&&n.add)return n.add(t);if(!n&&uW.WillChange){let n=new uW.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let dK=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function dZ(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dX(e,t){return n=>n>0?t:e}let dQ=(e,t,n)=>{let r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},dJ=[lY,lq,l2];function d0(e){let t=dJ.find(t=>t.test(e));if(ub(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===l2&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,i=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=dZ(s,r,e+1/3),i=dZ(s,r,e),o=dZ(s,r,e-1/3)}else a=i=o=n;return{red:Math.round(255*a),green:Math.round(255*i),blue:Math.round(255*o),alpha:r}}(n)),n}let d1=(e,t)=>{let n=d0(e),r=d0(t);if(!n||!r)return dX(e,t);let a={...n};return e=>(a.red=dQ(n.red,r.red,e),a.green=dQ(n.green,r.green,e),a.blue=dQ(n.blue,r.blue,e),a.alpha=c3(n.alpha,r.alpha,e),lq.transform(a))},d2=new Set(["none","hidden"]);function d3(e,t){return n=>c3(e,t,n)}function d4(e){return"number"==typeof e?d3:"string"==typeof e?uE(e)?dX:l3.test(e)?d1:d8:Array.isArray(e)?d5:"object"==typeof e?l3.test(e)?d1:d6:dX}function d5(e,t){let n=[...e],r=n.length,a=e.map((e,n)=>d4(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}}function d6(e,t){let n={...e,...t},r={};for(let a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=d4(e[a])(e[a],t[a]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let d8=(e,t)=>{let n=ue.createTransformer(t),r=l9(e),a=l9(t);if(!(r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length))return ub(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),dX(e,t);if(d2.has(e)&&!a.values.length||d2.has(t)&&!r.values.length)return d2.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return dK(d5(function(e,t){let n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let i=t.types[a],o=e.indexes[i][r[i]],s=e.values[o]??0;n[a]=s,r[i]++}return n}(r,a),a.values),n)};function d9(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?c3(e,t,n):d4(e)(e,t)}let d7=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>uG.update(t,e),stop:()=>uq(t),now:()=>uY.isProcessing?uY.timestamp:cb.now()}};function fe(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let ft=.01,fn=2,fr=.005,fa=.5;function fi(e,t){return e*Math.sqrt(1-t*t)}let fo=["duration","bounce"],fs=["stiffness","damping","mass"];function fl(e,t){return t.some(t=>void 0!==e[t])}function fu(e=.3,t=.3){let n,r,a,i,o,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:h,mass:y,duration:g,velocity:v,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fl(e,fs)&&fl(e,fo))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,a=2*l_(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:a}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let a,i;ub(e<=u8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=l_(.05,1,o),e=l_(.01,10,e/1e3),o<1?(a=t=>{let r=t*o,a=r*e;return .001-(r-n)/fi(t,o)*Math.exp(-a)},i=t=>{let r=t*o*e,i=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=fi(Math.pow(t,2),o);return(r*n+n-i)*s*(-a(t)+.001>0?-1:1)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),i=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,i,5/e);if(e=u8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,x=h/(2*Math.sqrt(m*y)),S=f-d,j=Math.sqrt(m/y)/1e3,E=5>Math.abs(S);if(u||(u=E?ft:fn),c||(c=E?fr:fa),x<1)a=fi(j,x),i=(w+x*j*S)/a,n=e=>f-Math.exp(-x*j*e)*(i*Math.sin(a*e)+S*Math.cos(a*e)),o=x*j*i+S*a,s=x*j*S-i*a,r=e=>Math.exp(-x*j*e)*(o*Math.sin(a*e)+s*Math.cos(a*e));else if(1===x){n=e=>f-Math.exp(-j*e)*(S+(w+j*S)*e);let e=w+j*S;r=t=>Math.exp(-j*t)*(j*e*t-w)}else{let e=j*Math.sqrt(x*x-1);n=t=>{let n=Math.exp(-x*j*t),r=Math.min(e*t,300);return f-n*((w+x*j*S)*Math.sinh(r)+e*S*Math.cosh(r))/e};let t=(w+x*j*S)/e,a=x*j*t-S*e,i=x*j*S-t*e;r=t=>{let n=Math.exp(-x*j*t),r=Math.min(e*t,300);return n*(a*Math.sinh(r)+i*Math.cosh(r))}}let O={calculatedDuration:b&&g||null,velocity:e=>u8(r(e)),next:e=>{if(!b&&x<1){let t=Math.exp(-x*j*e),n=Math.sin(a*e),r=Math.cos(a*e),l=f-t*(i*n+S*r);return p.done=Math.abs(u8(t*(o*n+s*r)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=n(e);return b?p.done=e>=g:p.done=Math.abs(u8(r(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(fe(O),2e4),t=cd(t=>O.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return O}function fc(e,t,n){let r=Math.max(t-5,0);return cw(n-e(r),t-r)}function fd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],m={done:!1,value:p},h=n*t,y=p+h,g=void 0===o?y:o(y);g!==y&&(h=g-p);let v=e=>-h*Math.exp(-e/r),b=e=>g+v(e),w=e=>{let t=v(e),n=b(e);m.done=Math.abs(t)<=u,m.value=m.done?g:n},x=e=>{let t;if(t=m.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;d=e,f=fu({keyframes:[m.value,(n=m.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:fc(b,e,m.value),damping:a,stiffness:i,restDelta:u,restSpeed:c})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,w(e),x(e)),void 0!==d&&e>=d)?f.next(e-d):(t||w(e),m)}}}fu.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),a=Math.min(fe(r),2e4);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:a/1e3}}(e,100,fu);return e.ease=t.ease,e.duration=u8(t.duration),e.type="keyframes",e};let ff=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function fp(e,t,n,r){return e===t&&n===r?uU:a=>0===a||1===a?a:ff(function(e,t,n,r,a){let i,o,s=0;do(i=ff(o=t+(n-t)/2,r,a)-e)>0?n=o:t=o;while(Math.abs(i)>1e-7&&++s<12);return o}(a,0,1,e,n),t,r)}let fm=fp(.42,0,1,1),fh=fp(0,0,.58,1),fy=fp(.42,0,.58,1),fg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fv=e=>t=>1-e(1-t),fb=fp(.33,1.53,.69,.99),fw=fv(fb),fx=fg(fw),fS=e=>e>=1?1:(e*=2)<1?.5*fw(e):.5*(2-Math.pow(2,-10*(e-1))),fj=e=>1-Math.sin(Math.acos(e)),fE=fv(fj),fO=fg(fj),fk={linear:uU,easeIn:fm,easeInOut:fy,easeOut:fh,circIn:fj,circInOut:fO,circOut:fE,backIn:fw,backInOut:fx,backOut:fb,anticipate:fS},fD=e=>{if(cu(e)){uw(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,a]=e;return fp(t,n,r,a)}return"string"==typeof e?(uw(void 0!==fk[e],`Invalid easing type '${e}'`,"invalid-easing-type"),fk[e]):e},fP=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function fA({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var a;let i,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(fD):fD(r),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:a}={}){let i=e.length;if(uw(i===t.length,"Both input and output ranges must be the same length","range-length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],a=n||uW.mix||d9,i=e.length-1;for(let n=0;n<i;n++){let i=a(e[n],e[n+1]);t&&(i=dK(Array.isArray(t)?t[n]||uU:t,i)),r.push(i)}return r}(t,r,a),l=s.length,u=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let a=fP(e[r],e[r+1],n);return s[r](a)};return n?t=>u(l_(e[0],e[i-1],t)):u}((a=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let a=fP(0,t,r);e.push(c3(n,1,a))}}(i=[0],t.length-1),i),a.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||fy).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fC={decay:fd,inertia:fd,tween:fA,keyframes:fA,spring:fu};function fT(e){"string"==typeof e.type&&(e.type=fC[e.type])}let fN=e=>e/100;class fR extends cl{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==cb.now()&&this.tick(cb.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;fT(e);let{type:t=fA,repeat:n=0,repeatDelay:r=0,repeatType:a,velocity:i=0}=e,{keyframes:o}=e,s=t||fA;s!==fA&&"number"!=typeof o[0]&&(this.mixKeyframes=dK(fN,d9(o[0],o[1])),o=[0,100]);let l=s({...e,keyframes:o});"mirror"===a&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=fe(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>a;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=a);let b=this.currentTime,w=r;if(d){let e=Math.min(this.currentTime,a)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/s)):"mirror"===f&&(w=o)),b=l_(0,1,n)*s}v?(this.delayState.value=c[0],n=this.delayState):n=w.next(b),i&&!v&&(n.value=i(n.value));let{done:x}=n;v||null===l||(x=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&m!==fd&&(n.value=cs(c,this.options,y,this.speed)),h&&h(n.value),S&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=u8(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return fc(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(cb.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=d7,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(cb.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let fM={anticipate:fS,backInOut:fx,circInOut:fO};class fI extends ch{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fM&&(e.ease=fM[e.ease])}(e),fT(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:a,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new fR({...i,autoplay:!1}),s=Math.max(10,cb.now()-this.startTime),l=l_(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;a&&c&&ct(a,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}}let fL=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ue.test(e)||"0"===e)&&!e.startsWith("url("));function f_(e){e.duration=0,e.type="keyframes"}let fF=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fV=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fB=cn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fz extends cl{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:i="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=cb.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:a,repeatType:i,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||u2;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let a;this.keyframeResolver=void 0;let{name:i,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=cb.now();let d=!0;!function(e,t,n,r){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let i=e[e.length-1],o=fL(a,t),s=fL(i,t);return ub(o===s,`You are trying to animate ${t} from "${a}" to "${i}". "${o?i:a}" is not an animatable value.`,"value-not-animatable"),!!o&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||cm(n))&&r)}(e,i,o,s)&&(d=!1,(uW.instantAnimations||!l)&&c?.(cs(e,n,t)),e[0]=e[e.length-1],f_(n),n.repeat=0);let f={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:i,type:o,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return fB()&&n&&(cy.has(n)||fV.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&fF.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!c)&&!u&&!r&&"mirror"!==a&&0!==i&&"inertia"!==o}(f),m=f.motionValue?.owner?.current;if(p)try{a=new fI({...f,element:m})}catch{a=new fR(f)}else a=new fR(f);a.finished.then(()=>{this.notifyFinished()}).catch(uU),this.pendingTimeline&&(this.stopTimeline=a.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=a}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uJ=!0,u1(),u0(),uJ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let fU={type:"spring",stiffness:500,damping:25,restSpeed:10},fW={type:"keyframes",duration:.8},f$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fH=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fG=(e,t,n,r={},a,i)=>o=>{let s=dH(r,e)||{},l=s.delay||r.delay||0,{elapsed:u=0}=r;u-=u8(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:a};!function(e){for(let t in e)if(!fH.has(t))return!0;return!1}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?fW:lL.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:fU:f$)(e,c)),c.duration&&(c.duration=u8(c.duration)),c.repeatDelay&&(c.repeatDelay=u8(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(f_(c),0===c.delay&&(d=!0)),(uW.instantAnimations||uW.skipAnimations||a?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,f_(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!i&&void 0!==t.get()){let e=cs(c.keyframes,s);if(void 0!==e)return void uG.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new fR(c):new fz(c)};function fq(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i,transitionEnd:o,...s}=t,l=e.getDefaultTransition();i=i?d$(i,l):l;let u=i?.reduceMotion,c=i?.skipAnimations;r&&(i=r);let d=[],f=a&&e.animationState&&e.animationState.getState()[a],p=i?.path;for(let t in p&&p.animateVisualElement(e,s,i,n,d),s){let r=e.getValue(t,e.latestValues[t]??null),a=s[t];if(void 0===a||f&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(f,t))continue;let o={delay:n,...dH(i||{},t)};c&&(o.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(a)&&a===l&&!o.velocity){uG.update(()=>r.set(a));continue}let p=!1;if(window.MotionHandoffAnimation){let n=e.props[d_];if(n){let e=window.MotionHandoffAnimation(n,t,uG);null!==e&&(o.startTime=e,p=!0)}}dY(e,t);let m=u??e.shouldReduceMotion;r.start(fG(t,r,a,m&&uh.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>uG.update(()=>{o&&dq(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fY(e,t,n,r=0,a=1){let i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return"function"==typeof n?n(i,o):1===a?i*r:s-i*r}function fK(e,t,n={}){let r=dW(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);let i=r?()=>Promise.all(fq(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,a=0,i=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fK(l,t,{...o,delay:n+("function"==typeof r?0:r)+fY(e.variantChildren,l,r,a,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,i,o,s,n)}:()=>Promise.resolve(),{when:s}=a;if(!s)return Promise.all([i(),o(n.delay)]);{let[e,t]="beforeChildren"===s?[i,o]:[o,i];return e().then(()=>t())}}function fZ(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>fK(e,t,n)));else if("string"==typeof t)r=fK(e,t,n);else{let a="function"==typeof t?dW(e,t,n.custom):t;r=Promise.all(fq(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}let fX=cA.length;function fQ(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let fJ=[...cP].reverse(),f0=cP.length;function f1(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f2(){return{animate:f1(!0),whileInView:f1(),whileHover:f1(),whileTap:f1(),whileDrag:f1(),whileFocus:f1(),exit:f1()}}let f3=0,f4={x:!1,y:!1};function f5(e){return[e("x"),e("y")]}function f6(e){return e.max-e.min}function f8(e,t,n,r=.5){e.origin=r,e.originPoint=c3(t.min,t.max,e.origin),e.scale=f6(n)/f6(t),e.translate=c3(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function f9(e,t,n,r){f8(e.x,t.x,n.x,r?r.originX:void 0),f8(e.y,t.y,n.y,r?r.originY:void 0)}function f7(e,t,n,r=0){e.min=(r?c3(n.min,n.max,r):n.min)+t.min,e.max=e.min+f6(t)}function pe(e,t,n,r=0){let a=r?c3(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+f6(t)}function pt(e,t,n,r){pe(e.x,t.x,n.x,r?.x),pe(e.y,t.y,n.y,r?.y)}let pn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),pr=new Set(["INPUT","SELECT","TEXTAREA"]);function pa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}let pi=e=>"object"==typeof e&&null!==e;function po(e){return pi(e)&&"ownerSVGElement"in e}function ps(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(e=>null!=e)}let pl=new WeakMap,pu=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:po(r)&&"getBBox"in r?r.getBBox()[t]:r[n],pc=pu("inline","width","offsetWidth"),pd=pu("block","height","offsetHeight");function pf({target:e,borderBoxSize:t}){pl.get(e)?.forEach(n=>{n(e,{get width(){return pc(e,t)},get height(){return pd(e,t)}})})}function pp(e){e.forEach(pf)}let pm=new Set;function ph(e,t){let n;return"function"==typeof e?(pm.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pm.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{pm.delete(e),pm.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!o&&"u">typeof ResizeObserver&&(o=new ResizeObserver(pp)),(n=ps(e)).forEach(e=>{let n=pl.get(e);n||(n=new Set,pl.set(e,n)),n.add(t),o?.observe(e)}),()=>{n.forEach(e=>{let n=pl.get(e);n?.delete(t),n?.size||o?.unobserve(e)})})}let py=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function pg(e){return{point:{x:e.pageX,y:e.pageY}}}function pv(e,t,n,r){return pa(e,t,e=>py(e)&&n(e,pg(e)),r)}let pb=({current:e})=>e?e.ownerDocument.defaultView:null,pw=(e,t)=>Math.abs(e-t),px=new Set(["auto","scroll"]);class pS{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:a=!1,distanceThreshold:i=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pj(this.lastRawMoveEventInfo,this.transformPagePoint));let n=pO(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,a=(e=n.offset,t={x:0,y:0},Math.sqrt(pw(e.x,t.x)**2+pw(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!a)return;let{point:i}=n,{timestamp:o}=uY;this.history.push({...i,timestamp:o});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=pj(t,this.transformPagePoint),uG.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:a}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&a&&a(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=pO("pointercancel"===e.type?this.lastMoveEventInfo:pj(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!py(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const s=pj(pg(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=uY;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,pO(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=dK(pv(this.contextWindow,"pointermove",this.handlePointerMove,d),pv(this.contextWindow,"pointerup",this.handlePointerUp,d),pv(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(px.has(e.overflowX)||px.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:r.x-t.x,y:r.y-t.y};(0!==a.x||0!==a.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,r),uG.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uq(this.updatePoint)}}function pj(e,t){return t?{point:t(e.point)}:e}function pE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pO({point:e},t){return{point:e,delta:pE(e,pk(t)),offset:pE(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=pk(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>u8(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*u8(.1)&&(n=e[1]);let a=(r.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};let i={x:(r.x-n.x)/a,y:(r.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}(t)}}function pk(e){return e[e.length-1]}function pD(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function pA(e,t,n){return{min:pC(e,t),max:pC(e,n)}}function pC(e,t){return"number"==typeof e?e:e[t]||0}let pT=new WeakMap;class pN{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=up(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let a=e=>{t&&this.snapToCursor(pg(e).point),this.stopAnimation()},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:a}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(f4[e])return null;else return f4[e]=!0,()=>{f4[e]=!1};return f4.x||f4.y?null:(f4.x=f4.y=!0,()=>{f4.x=f4.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),f5(e=>{let t=this.getAxisMotionValue(e).get()||0;if(lX.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=f6(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),a&&uG.update(()=>a(e,t),!1,!0),dY(this.visualElement,"transform");let{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:a,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(o),null!==this.currentDirection&&a&&a(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),i&&uG.update(()=>i(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new pS(e,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:pb(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&uG.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!pM(e,r,this.currentDirection))return;let a=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?c3(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?c3(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),a.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&dV(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:a}){return{x:pD(e.x,n,a),y:pD(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:pA(e,"left","right"),y:pA(e,"top","bottom")}}(t),r!==this.constraints&&!dV(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&f5(e=>{var t,r;let a;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],a={},void 0!==r.min&&(a.min=r.min-t.min),void 0!==r.max&&(a.max=r.max-t.min),a))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!dV(t))return!1;let r=t.current;uw(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());let i=function(e,t,n){let r=df(e,n),{scroll:a}=t;return a&&(dl(r.x,a.offset.x),dl(r.y,a.offset.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),o=(e=a.layout.layoutBox,{x:pP(e.x,i.x),y:pP(e.y,i.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=c7(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(f5(o=>{if(!pM(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===i||i===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return dY(this.visualElement,e),n.start(fG(e,n,0,t,this.visualElement,!1))}stopAnimation(){f5(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){f5(t=>{let{drag:n}=this.getProps();if(!pM(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,a=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:i}=r.layout.layoutBox[t],o=a.get()||0;a.set(e[t]-c3(n,i,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dV(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};f5(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,a;let i,o,s,l=t.get();r[e]=(n={min:l,max:l},a=this.constraints[e],i=.5,o=f6(n),(s=f6(a))>o?i=fP(a.min,a.max-o,n.min):o>s&&(i=fP(n.min,n.max-s,a.min)),l_(0,1,i))}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),f5(t=>{if(!pM(t,e,null))return;let n=this.getAxisMotionValue(t),{min:a,max:i}=this.constraints[t];n.set(c3(a,i,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pT.set(this.visualElement,this);let t=this.visualElement.current,n=pv(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),a=e.target,i=a!==t&&(pr.has(a.tagName)||!0===a.isContentEditable);n&&r&&!i&&this.start(e)}),r=()=>{var n,r,a;let i,o,{dragConstraints:s}=this.getProps();dV(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=s.current,i=ph(n,pR(a=()=>this.scalePositionWithinConstraints())),o=ph(r,pR(a)),e=()=>{i(),o()}))},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),uG.read(r);let o=pa(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(f5(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:i=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:i,dragMomentum:o}}}function pR(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pM(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let pI=e=>(t,n)=>{e&&uG.update(()=>e(t,n),!1,!0)},pL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function p_(e=!0){let t=(0,h.useContext)(dP);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:a}=t,i=(0,h.useId)();(0,h.useEffect)(()=>{if(e)return a(i)},[e]);let o=(0,h.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}let pF=!1;class pV extends h.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),pF&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pL.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,{projection:i}=n;return i&&(i.isPresent=a,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),pF=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==a?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||uG.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),cg.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;pF=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pB(e){let[t,n]=p_(),r=(0,h.useContext)(dy);return(0,m.jsx)(pV,{...e,layoutGroup:r,switchLayoutGroup:(0,h.useContext)(dF),isPresent:t,safeToRemove:n})}let pz=c0.length,pU=e=>"string"==typeof e?parseFloat(e):e,pW=e=>"number"==typeof e||lQ.test(e);function p$(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let pH=pq(0,.5,fE),pG=pq(.5,.95,uU);function pq(e,t,n){return r=>r<e?0:r>t?1:n(fP(e,t,r))}function pY(e,t){e.min=t.min,e.max=t.max}function pK(e,t){pY(e.x,t.x),pY(e.y,t.y)}function pZ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pX(e,t,n,r,a){return e-=t,e=r+1/n*(e-r),void 0!==a&&(e=r+1/a*(e-r)),e}function pQ(e,t,[n,r,a],i,o){!function(e,t=0,n=1,r=.5,a,i=e,o=e){if(lX.test(t)&&(t=parseFloat(t),t=c3(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=c3(i.min,i.max,r);e===i&&(s-=t),e.min=pX(e.min,t,n,s,a),e.max=pX(e.max,t,n,s,a)}(e,t[n],t[r],t[a],t.scale,i,o)}let pJ=["x","scaleX","originX"],p0=["y","scaleY","originY"];function p1(e,t,n,r){pQ(e.x,t,pJ,n?n.x:void 0,r?r.x:void 0),pQ(e.y,t,p0,n?n.y:void 0,r?r.y:void 0)}function p2(e){return 0===e.translate&&1===e.scale}function p3(e){return p2(e.x)&&p2(e.y)}function p4(e,t){return e.min===t.min&&e.max===t.max}function p5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function p6(e,t){return p5(e.x,t.x)&&p5(e.y,t.y)}function p8(e){return f6(e.x)/f6(e.y)}function p9(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class p7{constructor(){this.members=[]}add(e){u9(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(u7(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(u7(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:a}=e.options;(void 0===r||r!==a)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let me=(e,t)=>e.depth-t.depth;class mt{constructor(){this.children=[],this.isDirty=!1}add(e){u9(this.children,e),this.isDirty=!0}remove(e){u7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(me),this.isDirty=!1,this.children.forEach(e)}}let mn=["","X","Y","Z"],mr=0;function ma(e,t,n,r){let{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mi({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(e={},n=t?.()){this.id=mr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ml),this.nodes.forEach(mg),this.nodes.forEach(mv),this.nodes.forEach(mu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new mt)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ce),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=po(t)&&!(po(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,a=()=>this.root.updateBlockedByResize=!1;uG.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,i;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=cb.now(),i=({timestamp:e})=>{let n=e-t;n>=250&&(uq(i),a(n-250))},uG.setup(i,!0),n=()=>uq(i),pL.hasAnimatedSinceResize&&(pL.hasAnimatedSinceResize=!1,this.nodes.forEach(my))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&a&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||mE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!p6(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...dH(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||my(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),uq(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mb),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[d_];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",uG,!(e||n))}let{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&e(a)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(mf),this.nodes.forEach(md);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(mp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mm),this.nodes.forEach(mh),this.nodes.forEach(mo),this.nodes.forEach(ms)):this.nodes.forEach(mp),this.clearAllSnapshots();let e=cb.now();uY.delta=l_(0,1e3/60,e-uY.timestamp),uY.timestamp=e,uY.isProcessing=!0,uK.update.process(uY),uK.preRender.process(uY),uK.render.process(uY),uY.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mc),this.sharedNodes.forEach(mw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uG.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uG.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||f6(this.snapshot.measuredBox.x)||f6(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=up()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!p3(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||dn(this.latestValues)||i)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),mD((t=r).x),mD(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return up();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(mA))){let{scroll:e}=this.root;e&&(dl(t.x,e.offset.x),dl(t.y,e.offset.y))}return t}removeElementScroll(e){let t=up();if(pK(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:a,options:i}=r;r!==this.root&&a&&i.layoutScroll&&(a.wasRoot&&pK(t,e),dl(t.x,a.offset.x),dl(t.y,a.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||up();pK(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(dl(r.x,-n.scroll.offset.x),dl(r.y,-n.scroll.offset.y)),dn(n.latestValues)&&dd(r,n.latestValues,n.layout?.layoutBox)}return dn(this.latestValues)&&dd(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=up();pK(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];dn(r.latestValues)&&(r.instance&&(dt(r.latestValues)&&r.updateSnapshot(),pK(n=up(),r.measurePageBox())),p1(t,r.latestValues,r.snapshot?.layoutBox,n))}return dn(this.latestValues)&&p1(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==uY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:a}=this.options;if(!this.layout||!(r||a))return;this.resolvedRelativeTargetAt=uY.timestamp;let i=this.getClosestProjectingParent();if(i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=up(),this.targetWithTransforms=up()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,f7(o.x,s.x,l.x,u?.x),f7(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pK(this.target,this.layout.layoutBox),ds(this.target,this.targetDelta)):pK(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&i&&!!i.resumingFrom==!!this.resumingFrom&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||dt(this.parent.latestValues)||dr(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=up(),this.relativeTargetOrigin=up(),pt(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),pK(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===uY.timestamp&&(n=!1),n)return;let{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||a))return;pK(this.layoutCorrected,this.layout.layoutBox);let i=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,r=!1){let a,i,o=n.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){i=(a=n[s]).projectionDelta;let{visualElement:o}=a.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(dl(e.x,-a.scroll.offset.x),dl(e.y,-a.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,ds(e,i)),r&&dn(a.latestValues)&&dd(e,a.latestValues,a.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=up());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(pZ(this.prevProjectionDelta.x,this.projectionDelta.x),pZ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f9(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===o&&p9(this.projectionDelta.x,this.prevProjectionDelta.x)&&p9(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ud(),this.projectionDelta=ud(),this.projectionDeltaWithTransform=ud()}setAnimationOrigin(e,t=!1,n){let r,a=this.snapshot,i=a?a.latestValues:{},o={...this.latestValues},s=ud();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=up(),u=(a?a.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,f=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(mj));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,a=p?.(n);if(a?(s.x.translate=a.x,s.x.scale=c3(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=a.y,s.y.scale=c3(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(mx(s.x,e.x,n),mx(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,m,h,y,g,v;pt(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),h=this.relativeTarget,y=this.relativeTargetOrigin,g=l,v=n,mS(h.x,y.x,g.x,v),mS(h.y,y.y,g.y,v),r&&(c=this.relativeTarget,m=r,p4(c.x,m.x)&&p4(c.y,m.y))&&(this.isProjectionDirty=!1),r||(r=up()),pK(r,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,n,r,a,i){a?(e.opacity=c3(0,n.opacity??1,pH(r)),e.opacityExit=c3(t.opacity??1,0,pG(r))):i&&(e.opacity=c3(t.opacity??1,n.opacity??1,r));for(let a=0;a<pz;a++){let i=c0[a],o=p$(t,i),s=p$(n,i);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||pW(o)===pW(s)?(e[i]=Math.max(c3(pU(o),pU(s),r),0),(lX.test(s)||lX.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=c3(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,n,f,d)),a&&void 0!==a.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=a.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uq(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uG.update(()=>{var t,n,r;let a;pL.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cj(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(a=um(t)?t:cj(t)).start(fG("",a,n,r)),a.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:a}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&mP(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||up();let t=f6(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=f6(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}pK(t,n),dd(t,a),f9(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new p7),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ma("z",e,r,this.animationValues);for(let t=0;t<mn.length;t++)ma(`rotate${mn[t]}`,e,r,this.animationValues),ma(`skew${mn[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=dD(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=dD(t?.pointerEvents)||""),this.hasProjected&&!dn(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let a=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="",a=e.x.translate/t.x,i=e.y.translate/t.y,o=n?.z||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:a,rotateX:i,rotateY:o,skewX:s,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),a&&(r+=`rotate(${a}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);n&&(i=n(a,i)),e.transform=i;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:e.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,c4){if(void 0===a[t])continue;let{correct:n,applyTo:o,isCSSVariable:s}=c4[t],l="none"===i?a[t]:n(a[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?dD(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(md),this.root.sharedNodes.clear()}}}function mo(e){e.updateLayout()}function ms(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,i=t.source!==e.layout.source;if("size"===a)f5(e=>{let r=i?t.measuredBox[e]:t.layoutBox[e],a=f6(r);r.min=n[e].min,r.max=r.min+a});else if("x"===a||"y"===a){let e="x"===a?"y":"x";pY(i?t.measuredBox[e]:t.layoutBox[e],n[e])}else mP(a,t.layoutBox,n)&&f5(r=>{let a=i?t.measuredBox[r]:t.layoutBox[r],o=f6(n[r]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ud();f9(o,n,t.layoutBox);let s=ud();i?f9(s,e.applyTransform(r,!0),t.measuredBox):f9(s,n,t.layoutBox);let l=!p3(o),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:a,layout:i}=r;if(a&&i){let o=e.options.layoutAnchor||void 0,s=up();pt(s,t.layoutBox,a.layoutBox,o);let l=up();pt(l,n,i.layoutBox,o),p6(s,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ml(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mc(e){e.clearSnapshot()}function md(e){e.clearMeasurements()}function mf(e){e.isLayoutDirty=!0,e.updateLayout()}function mp(e){e.isLayoutDirty=!1}function mm(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function mh(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function my(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mg(e){e.resolveTargetDelta()}function mv(e){e.calcProjection()}function mb(e){e.resetSkewAndRotation()}function mw(e){e.removeLeadSnapshot()}function mx(e,t,n){e.translate=c3(t.translate,0,n),e.scale=c3(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mS(e,t,n,r){e.min=c3(t.min,n.min,r),e.max=c3(t.max,n.max,r)}function mj(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let mE={duration:.45,ease:[.4,0,.1,1]},mO=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mk=mO("applewebkit/")&&!mO("chrome/")?Math.round:uU;function mD(e){e.min=mk(e.min),e.max=mk(e.max)}function mP(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(p8(t)-p8(n)))}function mA(e){return e!==e.root&&e.scroll?.wasRoot}let mC=mi({attachResizeListener:(e,t)=>pa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),mT={current:void 0},mN=mi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mT.current){let e=new mC({});e.mount(window),e.setOptions({layoutScroll:!0}),mT.current=e}return mT.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function mR(e,t){let n=ps(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function mM(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let a=r["onHover"+n];a&&uG.postRender(()=>a(t,pg(t)))}function mI(e){return pi(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let mL=(e,t)=>!!t&&(e===t||mL(e,t.parentElement)),m_=new WeakSet;function mF(e){return t=>{"Enter"===t.key&&e(t)}}function mV(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function mB(e){return py(e)&&!(f4.x||f4.y)}let mz=new WeakSet;function mU(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let a=r["onTap"+("End"===n?"":n)];a&&uG.postRender(()=>a(t,pg(t)))}let mW=new WeakMap,m$=new WeakMap,mH=e=>{let t=mW.get(e.target);t&&t(e)},mG=e=>{e.forEach(mH)},mq={some:0,all:1},mY=function(e,t){if("u"<typeof Proxy)return dz;let n=new Map,r=(n,r)=>dz(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(a,i)=>"create"===i?r:(n.has(i)||n.set(i,dz(i,void 0,e,t)),n.get(i))})}({animation:{Feature:class extends dU{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>fZ(e,t,n))),n=f2(),r=!0,a=!1,i=t=>(n,r)=>{let a=dW(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function o(o){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<fX;e++){let r=cA[e],a=t.props[r];(cD(a)||!1===a)&&(n[r]=a)}return n}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<f0;t++){var p,m;let h=fJ[t],y=n[h],g=void 0!==s[h]?s[h]:l[h],v=cD(g),b=h===o?y.isActive:null;!1===b&&(f=t);let w=g===l[h]&&g!==s[h]&&v;if(w&&(r||a)&&e.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...d},!y.isActive&&null===b||!g&&!y.prevProp||ck(g)||"boolean"==typeof g)continue;if("exit"===h&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let x=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!fQ(m,p)),S=x||h===o&&y.isActive&&!w&&v||t>f&&v,j=!1,E=Array.isArray(g)?g:[g],O=E.reduce(i(h),{});!1===b&&(O={});let{prevResolvedValues:k={}}=y,D={...k,...O},P=t=>{S=!0,c.has(t)&&(j=!0,c.delete(t)),y.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in D){let t=O[e],n=k[e];if(!d.hasOwnProperty(e))(dG(t)&&dG(n)?!fQ(t,n)||x:t!==n)?null!=t?P(e):c.add(e):void 0!==t&&c.has(e)?P(e):y.protectedKeys[e]=!0}y.prevProp=g,y.prevResolvedValues=O,y.isActive&&(d={...d,...O}),(r||a)&&e.blockInitialAnimation&&(S=!1);let A=w&&x,C=!A||j;S&&C&&u.push(...E.map(t=>{let n={type:h};if("string"==typeof t&&(r||a)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,a=dW(r,t);if(r.enteringChildren&&a){let{delayChildren:t}=a.transition||{};n.delay=fY(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let n=dW(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let h=!!u.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,a=!1,h?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=f2(),a=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ck(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends dU{constructor(){super(...arguments),this.id=f3++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=dW(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends dU{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:a,amount:i="some",once:o}=n,s={root:r?r.current:void 0,rootMargin:a,threshold:"number"==typeof i?i:mq[i]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;m$.has(n)||m$.set(n,{});let r=m$.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(mG,{root:e,...t})),r[a]}(s),mW.set(e,l),t.observe(e),()=>{mW.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends dU{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,a,i]=mR(e,n),o=e=>{let r=e.currentTarget;if(!mB(e)||mz.has(e))return;m_.add(r),n.stopPropagation&&mz.add(e);let i=t(r,e),o={...a,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),m_.has(r)&&m_.delete(r),mB(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{s(e,r===window||r===document||n.useGlobalTarget||mL(r,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",o,a),mI(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=mF(()=>{if(m_.has(n))return;mV(n,"down");let e=mF(()=>{mV(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>mV(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,a)),pn.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(mU(this.node,t,"Start"),(e,{success:t})=>mU(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends dU{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=dK(pa(this.node.current,"focus",()=>this.onFocus()),pa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends dU{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,a,i]=mR(e,n);return r.forEach(e=>{let n,r=!1,i=!1,o=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),i&&(i=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(r){i=!0;return}o(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||f4.x||f4.y)return;i=!1;let o=t(e,r);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",l,a))},a),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",s,a)},a)}),i}(e,(e,t)=>(mM(this.node,t,"Start"),e=>mM(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends dU{constructor(){super(...arguments),this.removePointerDownListener=uU}onPointerDown(e){this.session=new pS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pb(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:pI(e),onStart:pI(t),onMove:pI(n),onEnd:(e,t)=>{delete this.session,r&&uG.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=pv(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends dU{constructor(e){super(e),this.removeGroupControls=uU,this.removeListeners=uU,this.controls=new pN(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uU}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:mN,MeasureLayout:pB},layout:{ProjectionNode:mN,MeasureLayout:pB}},(e,t)=>t.isSVG??dh(e)?new c9(t):new dp(t,{allowProjection:e!==h.Fragment}));var mK={initial:{},animate:{transition:{staggerChildren:.05}}},mZ={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},mX=function(e){var t=e.label,n=e.active,r=e.required;return(0,m.jsxs)(mY.span,{className:lC.kineticLabel,variants:mK,initial:"initial",animate:n?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,m.jsx)(mY.span,{className:lC.kineticLetter,variants:mZ,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),r&&(0,m.jsx)("span",{className:lC.requiredMark,children:" *"})]})};function mQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mQ(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m0={error:[100,50,100],warning:[50,30,50],success:[30]},m1={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function m2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m4(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m2(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m5=function(e){var t,n,r,a,i,o,s,l,u=e.variant,c=void 0===u?"outlined":u,d=e.size,f=e.label,p=e.placeholder,y=e.type,g=e.value,b=void 0===g?"":g,w=e.onChange,x=e.className,S=e.disabled,j=void 0!==S&&S,E=e.required,O=void 0!==E&&E,k=e.autoComplete,D=e.autoFocus,P=e.id,A=e.name,C=e.fieldIcon,T=e.validation,N=void 0===T?m1:T,R=e.onFocus,M=e.onBlur,I=e.onValidationChange,L=(0,h.useId)(),_=null!=P?P:"egen-field-".concat(L),F="".concat(_,"-help"),V=m4((0,h.useState)(b),2),B=V[0],z=V[1],U=m4((0,h.useState)(!1),2),W=U[0],$=U[1],H=(0,h.useRef)(null),G=(n=(t=mJ((0,h.useState)(null),2))[0],r=t[1],i=(a=mJ((0,h.useState)(!1),2))[0],o=a[1],s=function(e){N.triggerVibration&&(o(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(m0[e]),setTimeout(function(){return o(!1)},600))},(0,h.useEffect)(function(){if(!N.realTimeValidation||!B||0===N.rules.length){r(null),null==I||I(null);return}var e=N.rules.find(function(e){return!e.regex.test(B)});if(e){(null==n?void 0:n.type)!==e.type&&s(e.type),r(e),null==I||I(e);return}var t=N.rules.find(function(e){return"success"===e.type&&e.regex.test(B)});if(t){(null==n?void 0:n.type)!=="success"&&s("success"),r(t),null==I||I(t);return}r(null),null==I||I(null)},[B,N.rules,N.realTimeValidation,null==n?void 0:n.type,I]),{currentValidation:n,isAnimating:i}),q=G.currentValidation,Y=G.isAnimating;(0,h.useEffect)(function(){b!==B&&z(b)},[b]);var K=(null==C?void 0:C.position)==="left",Z=(null==C?void 0:C.position)==="label",X=!!N.showIcons&&!!q,Q=v()(lC.field,lC["field--".concat(c)],lC["field--".concat(void 0===d?"md":d)],(m3(l={},lC["field--disabled"],j),m3(l,lC["field--animating"],Y),m3(l,lC["field--has-left-icon"],K),m3(l,lC["field--has-validation-icon"],X),l),q&&lC["field--".concat(q.type)],x);return(0,m.jsxs)("div",{className:Q,children:[(0,m.jsxs)("div",{className:lC.fieldControl,ref:H,children:[K&&(0,m.jsx)("div",{className:lC.leftIcon,children:(0,m.jsx)(lT,{fieldIcon:C})}),(0,m.jsx)("input",{type:void 0===y?"text":y,id:_,name:A,value:B,onChange:function(e){var t=e.target.value;z(t),null==w||w(t)},onFocus:function(e){$(!0),null==R||R(e)},onBlur:function(e){$(!1),null==M||M(e)},disabled:j,required:O,autoComplete:k,autoFocus:D,className:lC.input,placeholder:void 0===p?" ":p,"aria-describedby":N.showMessages&&q?F:void 0,"aria-invalid":(null==q?void 0:q.type)==="error"||void 0}),f&&"kinetic"===c&&(0,m.jsx)("label",{htmlFor:_,className:lC.kineticLabelWrapper,children:(0,m.jsx)(mX,{label:f,active:W||B.length>0,required:O})}),f&&"kinetic"!==c&&(0,m.jsxs)("label",{htmlFor:_,className:lC.label,children:[Z&&(0,m.jsx)(lT,{fieldIcon:C,className:lC.labelIconGlyph}),(0,m.jsxs)("span",{className:lC.labelText,children:[f,O&&(0,m.jsxs)("span",{className:lC.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,m.jsx)(lM,{currentValidation:q,showIcons:!!N.showIcons})]}),N.showMessages&&q&&(0,m.jsxs)("p",{id:F,className:lC.message,role:"error"===q.type?"alert":void 0,children:[(0,m.jsxs)("span",{className:lC.messageLead,children:["success"===q.type&&"Parfait !","error"===q.type&&"Erreur —","warning"===q.type&&"Attention —"]})," ",q.message]})]})};function m6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var m8=y().forwardRef(function(e,t){var n,r,a,i=(0,b.useLeftNavStore)(),o=i.slotName,s=i.basePath,l=i.componentContext,u=i.state,c=null!=(a=window.location)?a:{pathname:""},d=(0,b.useAssignedExtensions)(null!=o?o:"");return e.isChildOfHeader&&o&&d.length>0?(0,m.jsxs)(L.SideNav,(n=m6({"aria-label":(0,_.V)("leftNavigation","Left navigation"),className:"jzTJKtCPCooU36+y+NwbPQ==",expanded:!0,isFixedNav:!0,ref:t},e),r=r={children:[(0,m.jsx)(b.ExtensionSlot,{name:"global-nav-menu-slot"}),o?(0,m.jsx)(b.RenderIfValueIsTruthy,{value:l,fallback:(0,m.jsx)(b.ExtensionSlot,{name:o,state:m6({basePath:s,currentPath:c},u)}),children:(0,m.jsx)(b.ComponentContext.Provider,{value:l,children:(0,m.jsx)(b.ExtensionSlot,{name:o,state:m6({basePath:s,currentPath:c},u)})})}):null]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n)):null}),m9=n(6269),m7=n(3709),he=n(4896);function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hn(e,t){if(e){if("string"==typeof e)return ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ht(e,t)}}var hr=function(e){var t,n,r,a,i,o,s=e.selectedLocationUuid,l=e.defaultLocationUuid,u=e.locationTag,c=e.locationsPerRequest,d=void 0===c?50:c,f=e.onChange,p=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hn(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],v=(0,h.useId)(),w=(n=l?"/ws/fhir2/R4/Location?_id=".concat(l):null,a=(r=(0,m9.A)(n,he.egenFetch,{shouldRetryOnError:function(e){var t;return null!=e&&null!=(t=e.response)&&!!t.status&&e.response.status>=500}})).data,i=r.error,o=r.isLoading,(0,h.useMemo)(function(){var e;return{location:(null==a||null==(e=a.data)?void 0:e.entry)?a.data.entry[0]:null,error:n?i:null,isLoading:!!n&&o}},[a,o,i,n])).location,x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=(0,b.useDebounce)(n),a=(0,m7.Ay)(function(n,a){if(a){var i,o,s=null==(o=a.data)||null==(i=o.link)?void 0:i.find(function(e){return"next"===e.relation});if(!s)return null;var l=new URL(s.url);return l.origin===window.location.origin?s.url:new URL("".concat(l.pathname).concat(l.search?"?".concat(l.search):""),window.location.origin).toString()}var u="".concat(he.fhirBaseUrl,"/Location?"),c=new URLSearchParams;return c.append("_summary","data"),t&&c.append("_count",""+t),n&&c.append("_getpagesoffset",""+n*t),e&&c.append("_tag",e),"string"==typeof r&&""!==r&&c.append("name:contains",r),u+c.toString()},he.egenFetch),i=a.data,o=a.isLoading,s=a.isValidating,l=a.setSize,u=a.error;return(0,h.useMemo)(function(){var e,t,n,r,a;return{locations:(null==i?void 0:i.length)?null==i?void 0:i.flatMap(function(e){var t,n;return null!=(t=null==e||null==(n=e.data)?void 0:n.entry)?t:[]}):[],isLoading:o,totalResults:null==i||null==(t=i[0])||null==(e=t.data)?void 0:e.total,hasMore:null!=i&&!!i.length&&(null==i||null==(a=i[i.length-1])||null==(r=a.data)||null==(n=r.link)?void 0:n.some(function(e){return"next"===e.relation})),loadingNewData:s,error:u||null,setPage:l}},[o,i,s,l,u])}(u,d,y),S=x.locations,j=x.isLoading,E=x.hasMore,O=x.loadingNewData,k=x.error,D=x.setPage,P=(0,h.useMemo)(function(){if(w&&!y&&l){var e;return[w].concat(function(e){if(Array.isArray(e))return ht(e)}(e=S.filter(function(e){return e.resource.id!==l}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hn(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return null!=S?S:[]},[w,S,l,y]),A=(0,h.useCallback)(function(e){f(),g(e.trim())},[f]),C=(0,h.useCallback)(function(){!O&&E&&D(function(e){return e+1})},[O,E,D]),T=(0,b.useOnVisible)(C),N=E?Math.max(0,Math.floor(P.length-d/2)):-1;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(L.Search,{"aria-describedby":k?"".concat(v,"-error"):void 0,labelText:(0,_.V)("searchForLocation"),id:v,placeholder:(0,_.V)("searchForLocation"),onChange:function(e){return A(e.target.value)},size:"lg"}),k&&(0,m.jsx)("div",{className:"vWBFDqCDM8BcQhePvfa35g==",id:"".concat(v,"-error"),children:(0,m.jsx)(L.InlineNotification,{kind:"error",subtitle:(0,_.V)("errorLoadingLoginLocations","Unable to load login locations. Please try again or contact support if the problem persists."),title:(0,_.V)("error","Error")})}),(0,m.jsx)("div",{className:"Gbet+W1fVEk45aZli6JbrA==",children:j?(0,m.jsx)("div",{className:"QO-zjOxMSWAzXY-PMrSiwQ==",children:Array.from({length:5}).map(function(e,t){return(0,m.jsx)(L.RadioButtonSkeleton,{className:"otoCykP+JQHrsIsgKUOd7A==",role:"progressbar"},t)})}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"_6PasfpnQ738RjzgXBzAQpw==",children:P.length>0?(0,m.jsx)(L.RadioButtonGroup,{name:"loginLocations",onChange:function(e){f(null==e?void 0:e.toString())},orientation:"vertical",valueSelected:s,children:P.map(function(e,t){return(0,m.jsx)(L.RadioButton,{className:"rTDPjXuaGJbz9KhOf57M3g==",id:e.resource.id,labelText:(0,m.jsx)("span",{ref:t===N?T:null,children:e.resource.name}),name:e.resource.name,value:e.resource.id},e.resource.id)})}):(0,m.jsx)("div",{className:"w4-CatRLHH3loLqlunOalg==",children:(0,m.jsx)("p",{className:"Of2MJqhAMKF7nrwI5bKckw==",children:(0,_.V)("noResultsToDisplay")})})}),O&&(0,m.jsx)("div",{className:"NAwSBETYamP9uMuJE63U-w==",children:(0,m.jsx)(L.InlineLoading,{description:(0,_.V)("loading")})})]})})]})},ha=n(9250),hi=n(1442),ho=n(6553),hs=n(8507);function hl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function hd(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function hf(e,t){if(e){if("string"==typeof e)return hl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hl(e,t)}}var hp=(0,hi.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),hm=0,hh=window.getComputedStyle(document.body).overflow;function hy(e){var t=e.modalStack,n=e.modalContainer;n&&(t.length?(n.style.visibility||(addEventListener("keydown",hv),document.body.style.overflow="hidden",n.style.visibility="unset"),t.forEach(function(e,r){switch(e.state){case"NEW":var a,i,o,s,l,u,c,d=(a=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(i=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(a),i.setAttribute("role","dialog"),i.setAttribute("tabindex","-1"),i.setAttribute("aria-modal","true"),i);e.container=d,(function(e,t){var n;return(n=function(e,t){var n,r,a,i,o,s=arguments;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(n=s.length>2&&void 0!==s[2]?s[2]:{},r=(0,ho.Fg)(t),a=null,!e)return[3,2];if(!r)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,r.load)()];case 1:return i=l.sent(),o=hm++,a=(0,ha.mountRootParcel)(hd(hc({},i),{name:"".concat(t,"-").concat(o)}),hd(hc({},n),{domElement:e})),[3,3];case 2:(0,hs.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,a]}})},function(){var e=this,t=arguments;return new Promise(function(r,a){var i=n.apply(e,t);function o(e){hu(i,r,a,o,s,"next",e)}function s(e){hu(i,r,a,o,s,"throw",e)}o(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",n.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=r?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(o=s.unmount)||o.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){hp.setState({modalContainer:n,modalStack:t.filter(function(t){return t!==e})})},0)}})):(n.style.removeProperty("visibility"),document.body.style.overflow=hh,removeEventListener("keydown",hv)))}function hg(e){var t=hp.getState(),n=t.modalStack.map(function(t){return t===e?hd(hc({},t),{state:"TO_BE_DELETED"}):t});hp.setState(hd(hc({},t),{modalStack:n}))}function hv(e){var t,n;"Escape"===e.key&&(n=(function(e){if(Array.isArray(e))return e}(t=hp.getState().modalStack)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hf(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0])&&hg(n)}function hb(e){hp.subscribe(hy),hp.setState(hd(hc({},hp.getState()),{modalContainer:e}))}function hw(e){var t,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=function(){var e=hp.getState().modalStack.find(function(e){return e.onClose===i});e&&hg(e)};return(0,ho.Fg)(e)?(r=[{state:"NEW",onClose:i,modalName:e,props:hc({close:o},a)}].concat(function(e){if(Array.isArray(e))return hl(e)}(n=(t=hp.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hf(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),hp.setState(hd(hc({},t),{modalStack:r}))):(0,hs.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),o}var hx=n(919),hS=function(e){var t=e.notification,n=t.description,r=t.action,a=t.kind,i=t.critical,o=t.title,s=t.onAction;return(0,m.jsx)(L.ActionableNotification,{actionButtonLabel:r,kind:a||"info",lowContrast:i,subtitle:n,title:o||"",inline:!0,onActionButtonClick:s})};function hj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hE(e,t){if(e){if("string"==typeof e)return hj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hj(e,t)}}let hO=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hE(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1];return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return hj(e)})(n=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hE(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){return(0,m.jsx)(hS,{notification:e},e.id)})})};function hk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var hD=function(e){var t,n=e.notification,r=n.actionButtonLabel,a=n.onActionButtonClick,i=void 0===a?function(){}:a,o=n.subtitle,s=n.kind,l=n.title,u=n.critical,c=n.progressActionLabel,d=(n.id,function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(n,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),f=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(r))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return hk(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hk(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1];return(0,m.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({kind:s||"info",actionButtonLabel:p,ariaLabel:(0,_.V)("closesActionableNotification","Closes actionable notification"),onActionButtonClick:function(){i(),c&&y(c)},statusIconDescription:(0,_.V)("actionableNotification","Actionable notification"),subtitle:o,title:l,lowContrast:u,inline:!0},d))};function hP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hA(e,t){if(e){if("string"==typeof e)return hP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hP(e,t)}}let hC=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hA(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1];return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return hP(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hA(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){return(0,m.jsx)(hD,{notification:e},e.id)})})};var hT=n(5217),hN=n(72),hR=n(2797),hM=n(8206),hI=n(3497),hL=n(8134),h_=n(4666),hF=n(7931),hV=Object.prototype.hasOwnProperty;let hB=function(e){if(null==e)return!0;if((0,hI.A)(e)&&((0,hM.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,hL.A)(e)||(0,hF.A)(e)||(0,hR.A)(e)))return!e.length;var t=(0,hN.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,h_.A)(e))return!(0,hT.A)(e).length;for(var n in e)if(hV.call(e,n))return!1;return!0};var hz=n(8279);function hU(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function hW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function h$(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function hH(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var hG=new hx.Subject,hq=0,hY=new hx.Subject,hK=0;function hZ(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(hO,{subject:hG}))}function hX(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":hH(t))==="object"&&(hU(t,Error)||!hB(t)))?(hU(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){hG.next(h$(hW({},e),{id:hq++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function hQ(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(hC,{subject:hY}))}function hJ(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":hH(t))==="object"&&!hB(t))?setTimeout(function(){hY.next(h$(hW({},e),{id:hK++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}var h0=["NORMAL","HIGH","CRITICALLY_HIGH","OFF_SCALE_HIGH","LOW","CRITICALLY_LOW","OFF_SCALE_LOW"],h1=["critically_low","critically_high","high","low","normal","off_scale_low","off_scale_high"];let h2={container:"ScB70LqU+PKTglPLpquSYA==",card:"OaumoczyyhVxFGgK1Ymncw==","abnormal-value":"nIEaa1DoEVNwq6VRhytuqA==","critical-value":"piSS0orYMnJr8srfIKo2zw==",cell:"WVzs6v9nyUbN4BP3kiRvOg==","critically-high":"nWzimGykDKiWWpAA510ywA==","critically-low":"wz1U5oBN8Au6+HaU5WTJJA==",high:"_5XGrk2jf9LNICUS0mhpcuQ==",low:"bZP-khvj3DMGEuy6EwE+rA==","label-container":"m8YotuX9YyGBVTfwscLQxw==","value-container":"Qfl6BA8qVqs0ch1lkoGorA==",label:"GeE-oU8VbIwmewu0CLedqg==",value:"_1l76wCdnl85Ih71jhnW-4w==",units:"W7zPgHBl62LXyz9iCBMD1Q==","pad-right":"QTCXOa6vj1UmNa4ukP+r9g==","off-scale-low":"vCAWY7zmOXKiCw0oMh2oIQ==","off-scale-high":"_7x8iew49LjFwIFhlYEBJgQ==",arrow:"_53IVZxbBIwcFSLi67OJAqg=="};function h3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h4=function(e){var t,n,r,a,i,o,s,l,u,c,d,f,p,y,g,b,w,x,S=e.value,j=e.unit,E=e.label,O=e.interpretation,k=e.referenceRange,D=e.conceptUuid,P=e.variant,A=e.entityUuid,C=(0,h.useId)(),T=(c=null,(t=k||O?void 0:D)&&(c=A?"".concat(he.restBaseUrl,"/conceptreferencerange/?entity=").concat(A,"&concept=").concat(t,"&v=full"):"".concat(he.restBaseUrl,"/conceptreferencerange/?concept=").concat(t,"&v=full")),f=(d=(0,m9.A)(c,he.egenFetch)).data,p=d.error,y=d.isLoading,{referenceRange:(g=null==f||null==(u=f.data)||null==(l=u.results)?void 0:l[0])?{hiNormal:null!=(n=g.hiNormal)?n:null,hiAbsolute:null!=(r=g.hiAbsolute)?r:null,hiCritical:null!=(a=g.hiCritical)?a:null,lowNormal:null!=(i=g.lowNormal)?i:null,lowAbsolute:null!=(o=g.lowAbsolute)?o:null,lowCritical:null!=(s=g.lowCritical)?s:null}:void 0,error:p,isLoading:y}),N=T.referenceRange,R=T.isLoading,M=null!=k?k:N,I=(0,h.useMemo)(function(){if(O)return O?"--"===O?"normal":h0.includes(O)?O.toLowerCase():h1.includes(O)?O:"normal":void 0;if(M&&!R){if(!M||null==S||""===S)return"normal";var e="string"==typeof S?Number.parseFloat(S):S;return Number.isNaN(e)?"normal":null!==M.hiAbsolute&&void 0!==M.hiAbsolute&&e>M.hiAbsolute?"off_scale_high":null!==M.hiCritical&&void 0!==M.hiCritical&&e>=M.hiCritical?"critically_high":null!==M.hiNormal&&void 0!==M.hiNormal&&e>M.hiNormal?"high":null!==M.lowAbsolute&&void 0!==M.lowAbsolute&&e<M.lowAbsolute?"off_scale_low":null!==M.lowCritical&&void 0!==M.lowCritical&&e<=M.lowCritical?"critically_low":null!==M.lowNormal&&void 0!==M.lowNormal&&e<M.lowNormal?"low":"normal"}return"normal"},[O,M,S,R]),L=null!=I?I:"normal",F="critically_low"===L||"critically_high"===L||"off_scale_low"===L||"off_scale_high"===L,V="normal"!==L,B=E?"egen-numeric-dp-label-".concat(E.replaceAll(/\s+/g,"-").toLowerCase(),"-").concat(C):void 0,z="egen-numeric-dp-value-".concat(C),U="egen-numeric-dp-unit-".concat(C),W=null!=S&&""!==S,$=W?S:(0,_.V)("notAvailable","Not available"),H=v()((h3(b={},h2["critically-low"],"critically_low"===L||"off_scale_low"===L),h3(b,h2["critically-high"],"critically_high"===L||"off_scale_high"===L),h3(b,h2.low,"low"===L),h3(b,h2.high,"high"===L),h3(b,h2["off-scale-low"],"off_scale_low"===L),h3(b,h2["off-scale-high"],"off_scale_high"===L),b)),G=v()((h3(w={},h2.container,!0),h3(w,h2.card,!0),h3(w,h2["critical-value"],F),h3(w,h2["abnormal-value"],V&&!F),w)),q=v()((h3(x={},h2.cell,!0),h3(x,H,!0),x));return"cell"===(void 0===P?"card":P)?(0,m.jsxs)("div",{className:q,children:[$,W&&j?" ".concat(j):""]}):(0,m.jsxs)("section",{className:G,"data-testid":"numeric-datapoint-card",children:[E&&(0,m.jsxs)("div",{className:h2["label-container"],children:[(0,m.jsx)("span",{id:B,className:h2.label,children:E}),V&&(0,m.jsx)("span",{className:h2[L.replace("_","-")],title:(0,_.V)("abnormalValue","Abnormal value")})]}),(0,m.jsxs)("div",{className:h2["value-container"],children:[(0,m.jsx)("span",{id:z,"aria-labelledby":B&&U?"".concat(B," ").concat(U):B||U||void 0,className:h2.value,children:$}),W&&j&&(0,m.jsx)("span",{id:U,className:h2.units,children:j})]})]})};function h5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h6(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h9(e,t,n){return t&&h8(e.prototype,t),n&&h8(e,n),e}function h7(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h5(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(){function e(t){h6(this,e),ye(this,"canvas",void 0),ye(this,"gl",void 0),ye(this,"meshes",[]),ye(this,"commonUniforms",void 0),ye(this,"width",void 0),ye(this,"height",void 0),ye(this,"Material",void 0),ye(this,"Uniform",void 0),ye(this,"PlaneGeometry",void 0),ye(this,"Mesh",void 0),ye(this,"Attribute",void 0),this.canvas=t;var n=this.canvas.getContext("webgl",{antialias:!0});if(!n)throw Error("WebGL not supported");this.gl=n;var r=this.gl,a=this;this.Uniform=function(){function e(t){h6(this,e),ye(this,"type","float"),ye(this,"value",void 0),ye(this,"typeFn",void 0),ye(this,"excludeFrom",void 0),ye(this,"transpose",void 0),Object.assign(this,t),this.typeFn=({float:"1f",int:"1i",vec2:"2fv",vec3:"3fv",vec4:"4fv",mat4:"Matrix4fv"})[this.type]||"1f"}return h9(e,[{key:"update",value:function(e){if(void 0!==this.value&&null!==e){var t=0===this.typeFn.indexOf("Matrix"),n="uniform".concat(this.typeFn);t?r[n](e,this.transpose||!1,this.value):r[n](e,this.value)}}},{key:"getDeclaration",value:function(e,t,n){if(this.excludeFrom===t)return"";if("array"===this.type)return this.value[0].getDeclaration(e,t,this.value.length)+"\nconst int ".concat(e,"_length = ").concat(this.value.length,";");if("struct"===this.type){var r=e.replace("u_","");r=r.charAt(0).toUpperCase()+r.slice(1);var a=Object.entries(this.value).map(function(e){var n=h7(e,2),r=n[0];return n[1].getDeclaration(r,t).replace(/^uniform/,"")}).join("");return"uniform struct ".concat(r," \n{\n").concat(a,"\n} ").concat(e).concat(n?"[".concat(n,"]"):"",";")}return"uniform ".concat(this.type," ").concat(e).concat(n?"[".concat(n,"]"):"",";")}}]),e}(),this.Attribute=function(){function e(t){h6(this,e),ye(this,"type",r.FLOAT),ye(this,"normalized",!1),ye(this,"buffer",void 0),ye(this,"target",void 0),ye(this,"size",void 0),ye(this,"values",void 0),this.buffer=r.createBuffer(),Object.assign(this,t)}return h9(e,[{key:"update",value:function(){this.values&&(r.bindBuffer(this.target,this.buffer),r.bufferData(this.target,this.values,r.STATIC_DRAW))}},{key:"attach",value:function(e,t){var n=r.getAttribLocation(t,e);return this.target===r.ARRAY_BUFFER&&(r.bindBuffer(this.target,this.buffer),r.enableVertexAttribArray(n),r.vertexAttribPointer(n,this.size,this.type,this.normalized,0,0)),n}},{key:"use",value:function(e){r.bindBuffer(this.target,this.buffer),this.target===r.ARRAY_BUFFER&&(r.enableVertexAttribArray(e),r.vertexAttribPointer(e,this.size,this.type,this.normalized,0,0))}}]),e}(),this.Material=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};h6(this,e);var o=function(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw console.error(r.getShaderInfoLog(n)),Error("Shader compilation error");return n},s=function(e,t){return Object.entries(e).map(function(e){var n=h7(e,2),r=n[0];return n[1].getDeclaration(r,t)}).join("\n")};ye(this,"uniforms",void 0),ye(this,"uniformInstances",[]),ye(this,"program",void 0),this.uniforms=i;var l="precision highp float;",u="\n ".concat(l,"\n attribute vec4 position;\n attribute vec2 uv;\n attribute vec2 uvNorm;\n ").concat(s(a.commonUniforms,"vertex"),"\n ").concat(s(i,"vertex"),"\n ").concat(t,"\n "),c="\n ".concat(l,"\n ").concat(s(a.commonUniforms,"fragment"),"\n ").concat(s(i,"fragment"),"\n ").concat(n,"\n ");if(this.program=r.createProgram(),r.attachShader(this.program,o(r.VERTEX_SHADER,u)),r.attachShader(this.program,o(r.FRAGMENT_SHADER,c)),r.linkProgram(this.program),!r.getProgramParameter(this.program,r.LINK_STATUS))throw console.error(r.getProgramInfoLog(this.program)),Error("Program linking error");r.useProgram(this.program),this.attachUniforms(void 0,a.commonUniforms),this.attachUniforms(void 0,this.uniforms)}return h9(e,[{key:"attachUniforms",value:function(e,t){var n=this;void 0===e?Object.entries(t).forEach(function(e){var t=h7(e,2),r=t[0],a=t[1];return n.attachUniforms(r,a)}):"array"===t.type?t.value.forEach(function(t,r){return n.attachUniforms("".concat(e,"[").concat(r,"]"),t)}):"struct"===t.type?Object.entries(t.value).forEach(function(t){var r=h7(t,2),a=r[0],i=r[1];return n.attachUniforms("".concat(e,".").concat(a),i)}):this.uniformInstances.push({uniform:t,location:r.getUniformLocation(this.program,e)})}}]),e}(),this.PlaneGeometry=function(){function e(){h6(this,e),ye(this,"width",1),ye(this,"height",1),ye(this,"attributes",void 0),ye(this,"vertexCount",0),ye(this,"xSegCount",0),ye(this,"ySegCount",0),this.attributes={position:new a.Attribute({target:r.ARRAY_BUFFER,size:3}),uv:new a.Attribute({target:r.ARRAY_BUFFER,size:2}),uvNorm:new a.Attribute({target:r.ARRAY_BUFFER,size:2}),index:new a.Attribute({target:r.ELEMENT_ARRAY_BUFFER,size:3,type:r.UNSIGNED_SHORT})}}return h9(e,[{key:"setTopology",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.xSegCount=e,this.ySegCount=t,this.vertexCount=(this.xSegCount+1)*(this.ySegCount+1);var n=this.xSegCount*this.ySegCount*2;this.attributes.uv.values=new Float32Array(2*this.vertexCount),this.attributes.uvNorm.values=new Float32Array(2*this.vertexCount),this.attributes.index.values=new Uint16Array(3*n);for(var r=0;r<=this.ySegCount;r++)for(var a=0;a<=this.xSegCount;a++){var i=r*(this.xSegCount+1)+a;if(this.attributes.uv.values[2*i]=a/this.xSegCount,this.attributes.uv.values[2*i+1]=1-r/this.ySegCount,this.attributes.uvNorm.values[2*i]=a/this.xSegCount*2-1,this.attributes.uvNorm.values[2*i+1]=1-r/this.ySegCount*2,a<this.xSegCount&&r<this.ySegCount){var o=r*this.xSegCount+a;this.attributes.index.values[6*o]=i,this.attributes.index.values[6*o+1]=i+1+this.xSegCount,this.attributes.index.values[6*o+2]=i+1,this.attributes.index.values[6*o+3]=i+1,this.attributes.index.values[6*o+4]=i+1+this.xSegCount,this.attributes.index.values[6*o+5]=i+2+this.xSegCount}}this.attributes.uv.update(),this.attributes.uvNorm.update(),this.attributes.index.update()}},{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.width=e,this.height=t,this.attributes.position.values=new Float32Array(3*this.vertexCount);for(var n=-(e/2),r=-(t/2),a=e/this.xSegCount,i=t/this.ySegCount,o=0;o<=this.ySegCount;o++)for(var s=r+o*i,l=0;l<=this.xSegCount;l++){var u=n+l*a,c=o*(this.xSegCount+1)+l;this.attributes.position.values[3*c]=u,this.attributes.position.values[3*c+1]=-s,this.attributes.position.values[3*c+2]=0}this.attributes.position.update()}}]),e}(),this.Mesh=function(){function e(t,n){var r=this;h6(this,e),ye(this,"geometry",void 0),ye(this,"material",void 0),ye(this,"attributeInstances",[]),this.geometry=t,this.material=n,Object.entries(this.geometry.attributes).forEach(function(e){var t=h7(e,2),n=t[0],a=t[1];r.attributeInstances.push({attribute:a,location:a.attach(n,r.material.program)})}),a.meshes.push(this)}return h9(e,[{key:"draw",value:function(){r.useProgram(this.material.program),this.material.uniformInstances.forEach(function(e){var t=e.uniform,n=e.location;return t.update(n)}),this.attributeInstances.forEach(function(e){var t=e.attribute,n=e.location;return t.use(n)}),r.drawElements(r.TRIANGLES,this.geometry.attributes.index.values.length,r.UNSIGNED_SHORT,0)}}]),e}();var i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.commonUniforms={projectionMatrix:new this.Uniform({type:"mat4",value:i}),modelViewMatrix:new this.Uniform({type:"mat4",value:i}),resolution:new this.Uniform({type:"vec2",value:[1,1]}),aspectRatio:new this.Uniform({type:"float",value:1})}}return h9(e,[{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:640,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:480;this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.gl.viewport(0,0,e,t),this.commonUniforms.resolution.value=[e,t],this.commonUniforms.aspectRatio.value=e/t}},{key:"setOrthographicCamera",value:function(){this.commonUniforms.projectionMatrix.value=[2/this.width,0,0,0,0,2/this.height,0,0,0,0,-.001,0,0,0,0,1]}},{key:"render",value:function(){this.gl.clearColor(0,0,0,0),this.gl.clearDepth(1),this.meshes.forEach(function(e){return e.draw()})}}]),e}(),yn=function(){function e(t,n){var r=this;h6(this,e),ye(this,"canvas",void 0),ye(this,"colors",void 0),ye(this,"minigl",void 0),ye(this,"mesh",void 0),ye(this,"time",0),ye(this,"last",0),ye(this,"animationId",void 0),ye(this,"isPlaying",!1),ye(this,"animate",function(e){if(r.isPlaying){r.last||(r.last=e);var t=e-r.last;r.last=e,r.time+=Math.min(t,1e3/15),r.mesh.material.uniforms.u_time.value=r.time,r.minigl.render(),r.animationId=requestAnimationFrame(r.animate)}}),ye(this,"handleResize",function(){r.resize()}),this.canvas=t,this.colors=n,this.minigl=new yt(t),this.init()}return h9(e,[{key:"init",value:function(){for(var e=this.colors.map(function(e){var t;return[((t=parseInt(e.replace("#","0x"),16))>>16&255)/255,(t>>8&255)/255,(255&t)/255]}),t={u_time:new this.minigl.Uniform({value:0}),u_shadow_power:new this.minigl.Uniform({value:5}),u_darken_top:new this.minigl.Uniform({value:0}),u_active_colors:new this.minigl.Uniform({value:[1,1,1,1],type:"vec4"}),u_global:new this.minigl.Uniform({value:{noiseFreq:new this.minigl.Uniform({value:[14e-5,29e-5],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:5e-6})},type:"struct"}),u_vertDeform:new this.minigl.Uniform({value:{incline:new this.minigl.Uniform({value:0}),offsetTop:new this.minigl.Uniform({value:-.5}),offsetBottom:new this.minigl.Uniform({value:-.5}),noiseFreq:new this.minigl.Uniform({value:[3,4],type:"vec2"}),noiseAmp:new this.minigl.Uniform({value:320}),noiseSpeed:new this.minigl.Uniform({value:10}),noiseFlow:new this.minigl.Uniform({value:3}),noiseSeed:new this.minigl.Uniform({value:5})},type:"struct",excludeFrom:"fragment"}),u_baseColor:new this.minigl.Uniform({value:e[0],type:"vec3",excludeFrom:"fragment"}),u_waveLayers:new this.minigl.Uniform({value:[],excludeFrom:"fragment",type:"array"})},n=1;n<e.length;n++)t.u_waveLayers.value.push(new this.minigl.Uniform({value:{color:new this.minigl.Uniform({value:e[n],type:"vec3"}),noiseFreq:new this.minigl.Uniform({value:[2+n/e.length,3+n/e.length],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:11+.3*n}),noiseFlow:new this.minigl.Uniform({value:6.5+.3*n}),noiseSeed:new this.minigl.Uniform({value:5+10*n}),noiseFloor:new this.minigl.Uniform({value:.1}),noiseCeil:new this.minigl.Uniform({value:.63+.07*n})},type:"struct"}));var r=new this.minigl.Material("\nvec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 mod289(vec4 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 permute(vec4 x) { return mod289(((x*34.0)+1.0)*x); }\nvec4 taylorInvSqrt(vec4 r) { return 1.79284291400159 - 0.85373472095314 * r; }\n\nfloat snoise(vec3 v) {\n const vec2 C = vec2(1.0/6.0, 1.0/3.0);\n const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);\n vec3 i = floor(v + dot(v, C.yyy));\n vec3 x0 = v - i + dot(i, C.xxx);\n vec3 g = step(x0.yzx, x0.xyz);\n vec3 l = 1.0 - g;\n vec3 i1 = min(g.xyz, l.zxy);\n vec3 i2 = max(g.xyz, l.zxy);\n vec3 x1 = x0 - i1 + C.xxx;\n vec3 x2 = x0 - i2 + C.yyy;\n vec3 x3 = x0 - D.yyy;\n i = mod289(i);\n vec4 p = permute(permute(permute(i.z + vec4(0.0, i1.z, i2.z, 1.0)) + i.y + vec4(0.0, i1.y, i2.y, 1.0)) + i.x + vec4(0.0, i1.x, i2.x, 1.0));\n float n_ = 0.142857142857;\n vec3 ns = n_ * D.wyz - D.xzx;\n vec4 j = p - 49.0 * floor(p * ns.z * ns.z);\n vec4 x_ = floor(j * ns.z);\n vec4 y_ = floor(j - 7.0 * x_);\n vec4 x = x_ *ns.x + ns.yyyy;\n vec4 y = y_ *ns.x + ns.yyyy;\n vec4 h = 1.0 - abs(x) - abs(y);\n vec4 b0 = vec4(x.xy, y.xy);\n vec4 b1 = vec4(x.zw, y.zw);\n vec4 s0 = floor(b0)*2.0 + 1.0;\n vec4 s1 = floor(b1)*2.0 + 1.0;\n vec4 sh = -step(h, vec4(0.0));\n vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy;\n vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww;\n vec3 p0 = vec3(a0.xy,h.x);\n vec3 p1 = vec3(a0.zw,h.y);\n vec3 p2 = vec3(a1.xy,h.z);\n vec3 p3 = vec3(a1.zw,h.w);\n vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\n p0 *= norm.x; p1 *= norm.y; p2 *= norm.z; p3 *= norm.w;\n vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);\n m = m * m;\n return 42.0 * dot(m*m, vec4(dot(p0,x0), dot(p1,x1), dot(p2,x2), dot(p3,x3)));\n}\n\nvec3 blendNormal(vec3 base, vec3 blend) { return blend; }\nvec3 blendNormal(vec3 base, vec3 blend, float opacity) { return (blend * opacity + base * (1.0 - opacity)); }\n\nvarying vec3 v_color;\n\nvoid main() {\n float time = u_time * u_global.noiseSpeed;\n vec2 noiseCoord = resolution * uvNorm * u_global.noiseFreq;\n float tilt = resolution.y / 2.0 * uvNorm.y;\n float incline = resolution.x * uvNorm.x / 2.0 * u_vertDeform.incline;\n float offset = resolution.x / 2.0 * u_vertDeform.incline * mix(u_vertDeform.offsetBottom, u_vertDeform.offsetTop, uv.y);\n \n float noise = snoise(vec3(\n noiseCoord.x * u_vertDeform.noiseFreq.x + time * u_vertDeform.noiseFlow,\n noiseCoord.y * u_vertDeform.noiseFreq.y,\n time * u_vertDeform.noiseSpeed + u_vertDeform.noiseSeed\n )) * u_vertDeform.noiseAmp;\n \n noise *= 1.0 - pow(abs(uvNorm.y), 2.0);\n noise = max(0.0, noise);\n \n vec3 pos = vec3(position.x, position.y + tilt + incline + noise - offset, position.z);\n \n v_color = u_baseColor;\n \n for (int i = 0; i < u_waveLayers_length; i++) {\n if (u_active_colors[i + 1] == 1.) {\n WaveLayers layer = u_waveLayers[i];\n float layerNoise = smoothstep(\n layer.noiseFloor,\n layer.noiseCeil,\n snoise(vec3(\n noiseCoord.x * layer.noiseFreq.x + time * layer.noiseFlow,\n noiseCoord.y * layer.noiseFreq.y,\n time * layer.noiseSpeed + layer.noiseSeed\n )) / 2.0 + 0.5\n );\n v_color = blendNormal(v_color, layer.color, pow(layerNoise, 4.));\n }\n }\n \n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);\n}","\nvarying vec3 v_color;\n\nvoid main() {\n vec3 color = v_color;\n if (u_darken_top == 1.0) {\n vec2 st = gl_FragCoord.xy/resolution.xy;\n color.g -= pow(st.y + sin(-12.0) * st.x, u_shadow_power) * 0.4;\n }\n gl_FragColor = vec4(color, 1.0);\n}",t),a=new this.minigl.PlaneGeometry;this.mesh=new this.minigl.Mesh(a,r),this.resize(),window.addEventListener("resize",this.handleResize)}},{key:"resize",value:function(){var e=window.innerWidth,t=window.innerHeight;this.minigl.setSize(e,t),this.minigl.setOrthographicCamera();var n=Math.ceil(.02*e),r=Math.ceil(.05*t);this.mesh.geometry.setTopology(n,r),this.mesh.geometry.setSize(e,t),this.mesh.material.uniforms.u_shadow_power.value=e<600?5:6}},{key:"start",value:function(){this.isPlaying||(this.isPlaying=!0,this.last=performance.now(),this.animationId=requestAnimationFrame(this.animate))}},{key:"stop",value:function(){this.isPlaying=!1,this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=void 0)}},{key:"destroy",value:function(){this.stop(),window.removeEventListener("resize",this.handleResize)}}]),e}();function yr(e){var t=e.colors,n=void 0===t?["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"]:t,r=e.isPlaying,a=void 0===r||r,i=e.className,o=e.shadowPower,s=void 0===o?8:o,l=e.darkenTop,u=void 0!==l&&l,c=e.noiseSpeed,d=void 0===c?1e-5:c,f=e.noiseFrequency,p=void 0===f?[1e-4,9e-4]:f,y=e.deform,g=void 0===y?{incline:.5,noiseAmp:250,noiseFlow:5}:y,v=(0,h.useRef)(null),b=(0,h.useRef)(null);return(0,h.useEffect)(function(){if(v.current){var e=document.createElement("canvas");Object.assign(e.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"block"}),v.current.appendChild(e);try{var t=new yn(e,n);b.current=t,t.mesh.material.uniforms.u_shadow_power.value=s,t.mesh.material.uniforms.u_darken_top.value=+!!u,t.mesh.material.uniforms.u_global.value.noiseFreq.value=p,t.mesh.material.uniforms.u_global.value.noiseSpeed.value=d,Object.assign(t.mesh.material.uniforms.u_vertDeform.value,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t.mesh.material.uniforms.u_vertDeform.value,g)),a&&t.start()}catch(e){console.error("Failed to initialize gradient:",e)}return function(){b.current&&(b.current.destroy(),b.current=null),e.parentNode&&e.parentNode.removeChild(e)}}},[]),(0,h.useEffect)(function(){b.current&&(a?b.current.start():b.current.stop())},[a]),(0,m.jsx)("div",{ref:v,className:"absolute inset-0 z-0 w-full h-full overflow-hidden ".concat(void 0===i?"":i)})}function ya(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yo=(0,h.createContext)({config:null,setPageBackground:function(){}});function ys(e){var t,n=e.children,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(null))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yi(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yi(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1],o=(0,h.useMemo)(function(){return{config:a,setPageBackground:i}},[a]);return(0,m.jsx)(yo.Provider,{value:o,children:n})}function yl(){return(0,h.useContext)(yo)}var yu=["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"];function yc(e){var t=e.className;return(0,m.jsxs)("div",{className:ya("fixed inset-0 w-full h-full pointer-events-none z-0 overflow-hidden select-none bg-[#030708]",t),children:[(0,m.jsx)(yr,{colors:yu,isPlaying:!0,shadowPower:8,darkenTop:!1,noiseSpeed:1e-5,noiseFrequency:[1e-4,9e-4],deform:{incline:.5,noiseAmp:250,noiseFlow:5}}),(0,m.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/20 via-transparent to-black/60 pointer-events-none"}),(0,m.jsx)("div",{className:"absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-30 blur-[120px] pointer-events-none",style:{background:"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}})]})}function yd(e){var t=e.imageSrc,n=e.imageAlt,r=e.imageFit,a=void 0===r?"cover":r,i=e.className,o=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=void 0===d||d,p=e.accent,h=e.children;return t?(0,m.jsxs)("div",{className:ya("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none",!(null==i?void 0:i.includes("bg-"))&&"bg-[#030708]",i),children:[(0,m.jsx)("img",{src:t,alt:void 0===n?"Arri\xe8re-plan immersif":n,className:ya("absolute inset-0 w-full h-full select-none transition-all duration-700 ease-out","fill"===a?"object-fill":"contain"===a?"object-contain object-center":"object-cover object-center","fill"===a?"opacity-100":"opacity-95",o),referrerPolicy:"no-referrer"},t),p&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"color",opacity:.35}}),(0,m.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"multiply",opacity:.2}})]}),f&&(0,m.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black/55 via-black/15 via-25% to-transparent transition-opacity duration-700"}),f&&(0,m.jsx)("div",{className:ya("absolute inset-0 pointer-events-none bg-gradient-to-b from-black/45 via-black/20 to-black/70 transition-opacity duration-700",s)}),(0,m.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-[0.12] mix-blend-overlay",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E\")",backgroundSize:"180px 180px"}}),void 0!==u&&u&&s&&(0,m.jsx)("div",{className:ya("absolute inset-0 pointer-events-none transition-all duration-500",s)}),(void 0===c||c)&&(0,m.jsx)("div",{className:ya("absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-35 blur-[120px] pointer-events-none transition-all duration-700",l),style:{background:p?"radial-gradient(ellipse at center, ".concat(p,"66 0%, ").concat(p,"22 50%, transparent 80%)"):"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}}),h]}):(0,m.jsx)(yc,{className:i})}function yf(){var e,t,n,r=yl().config;return(null==r?void 0:r.customComponent)?(0,m.jsx)("div",{className:ya("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none bg-[#030708]",r.className),children:r.customComponent}):(null==r?void 0:r.imageSrc)?(0,m.jsx)(yd,{imageSrc:r.imageSrc,imageAlt:r.imageAlt,imageFit:r.imageFit,className:r.className,imageClassName:r.imageClassName,overlayClassName:r.overlayClassName,glowClassName:r.glowClassName,showAtmosphere:null!=(e=r.showAtmosphere)&&e,showGlow:null==(t=r.showGlow)||t,showDarkWash:null==(n=r.showDarkWash)||n,accent:r.accent,children:r.children}):(0,m.jsx)(yc,{className:null==r?void 0:r.className})}function yp(e){var t=e.customComponent,n=e.imageSrc,r=e.imageAlt,a=e.imageFit,i=e.className,o=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=e.accent,p=e.children,m=yl().setPageBackground;return(0,h.useEffect)(function(){return m({customComponent:t,imageSrc:n,imageAlt:r,imageFit:a,className:i,imageClassName:o,overlayClassName:s,glowClassName:l,showAtmosphere:u,showGlow:c,showDarkWash:d,accent:f,children:p}),function(){m(null)}},[m,t,n,r,a,i,o,s,l,u,c,d,f,p]),null}var ym=n(2804);let yh="YOpQLiaTysM+swWB7ATzKw==";function yy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function yv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function yb(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}var yw=function(e){if("children"in e){var t=e.children,n=e.className,r=yb(e,["children","className"]);return(0,m.jsx)("div",yv(yg({className:v()(yh,n)},r),{children:t}))}var a=e.title,i=e.illustration,o=e.className,s=yb(e,["title","illustration","className"]);return(0,m.jsx)("div",yv(yg({className:v()(yh,o)},s),{children:(0,m.jsx)(yx,{title:a,illustration:i})}))},yx=function(e){var t,n=e.title,r=e.illustration,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(null))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yy(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yy(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];return(0,h.useEffect)(function(){(0,ym.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,m.jsxs)("div",{className:v()("PjsJmcqHjhav+51GzX5n1A==",a),children:[r,(0,m.jsxs)("div",{className:"pPcKj1kNkKP4cQZUtFRU5g==",children:[(null==o?void 0:o.implementationName)&&(0,m.jsx)("p",{children:(0,_.V)(o.implementationName)}),(0,m.jsx)("p",{className:"_3d4ICXZtVrDwUYN1iMMJCA==",children:n})]})]})};function yS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yj=function(e){var t,n=e.totalItems,r=e.pageSize,a=e.onPageNumberChange,i=e.pageNumber,o=e.dashboardLinkUrl,s=e.currentItems,l=e.dashboardLinkLabel,u=(0,b.usePaginationInfo)(r,n,i,s),c=u.pageSizes,d=u.pageItemsCount,f="tablet"===(0,b.useLayoutType)(),p=(0,_.V)("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:n,pageItemsCount:d});return(0,m.jsx)(m.Fragment,{children:n>0&&(0,m.jsxs)("div",{className:v()((yS(t={},"lQ3akicW2mAhjncqby7nDA==",f),yS(t,"HfUTYLFumnQ+awk4OaX1Dg==",!f),t)),children:[(0,m.jsxs)("div",{children:[p,o&&(0,m.jsx)(b.ConfigurableLink,{to:o,className:"NM9v7zGqLsggVcQgLFigdA==",children:null!=l?l:(0,_.V)("seeAll","See all")})]}),(0,m.jsx)(L.Pagination,{className:"WzkBsEFtArGu5wzXr0lPcA==",page:i,pageSize:r,pageSizes:c,totalItems:n,onChange:a,pageRangeText:function(e,t){return(0,_.V)("paginationOfPages","of {{count}} pages",{count:t})},size:f?"lg":"sm"})]})})},yE=n(6625);function yO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yD(e){var t,n=e.entity,r=e.entityUuid,a=e.actionsSlotName,i=e.additionalActionsSlotState,o=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yO(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yO(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,b.useExtensionSlot)(a).extensions,c="tablet"===(0,b.useLayoutType)(),d=(0,b.useOnClickOutside)(function(){return l(!1)},s),f=(0,h.useRef)(null),p=(0,h.useRef)(null),y=(0,h.useId)(),g="entity-actions-menu-trigger-".concat(y),w="entity-actions-menu-".concat(y),x=(0,h.useCallback)(function(){return l(function(e){return!e})},[]),S=(0,h.useCallback)(function(){var e;l(!1),null==(e=f.current)||e.focus()},[]),j=(0,h.useCallback)(function(e){if("Escape"===e.key&&s){e.stopPropagation(),S();return}if(("ArrowDown"===e.key||"ArrowUp"===e.key)&&s){e.preventDefault();var t,n,r,a,i,o,l=null==(n=p.current)?void 0:n.querySelectorAll('[role="menuitem"]:not([disabled])');if(!(null==l?void 0:l.length))return;var u=null!=(t=null==(a=document.activeElement)||null==(r=a.closest)?void 0:r.call(a,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(o=l["ArrowDown"===e.key?0:l.length-1])||o.focus();return}var d=c+("ArrowDown"===e.key?1:-1),f=d<0?l.length-1:d>=l.length?0:d;null==(i=l[f])||i.focus()}},[S,s]);(0,h.useEffect)(function(){if(s&&p.current){var e=p.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[s]);var E=(0,h.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){yk(e,t,n[t])})}return e}({entityUuid:r,entity:n,closeMenu:S},i)},[r,n,S,i]);return 0===u.length?null:(0,m.jsx)("div",{className:"kWz-FQXziTlflmlOvSQU8w==",children:(0,m.jsxs)("div",{"data-overflow-menu":!0,className:v()("cds--overflow-menu",B),ref:d,children:[(0,m.jsxs)("button",{className:v()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},W),"aria-controls":w,"aria-expanded":s,"aria-haspopup":"true",id:g,onClick:x,onKeyDown:j,ref:f,children:[(0,m.jsx)("span",{className:"FNvGkLUDxlNyu5MsobGSiQ==",children:(0,_.V)("actions","Actions")})," ",(0,m.jsx)(yE.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}})]}),(0,m.jsxs)("div",{className:v()("cds--overflow-menu-options","cds--overflow-menu--flip",z,yk({},U,s)),"aria-labelledby":g,"data-floating-menu-direction":"bottom",id:w,onKeyDown:j,ref:p,role:"menu",tabIndex:-1,children:[(0,m.jsx)("ul",{className:v()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":c}),children:(0,m.jsx)(b.ExtensionSlot,{name:a,state:E},a)}),(0,m.jsx)("span",{})]})]})})}var yP=n(7488);let yA={contactDetails:"_0WAlP7BAsAgqReeW05Syxg==",deceased:"PaF2EK-ANVeIH6lZnkVXJg==",heading:"_2zRwLuDr67mWUDIQRycpHg==",row:"_1ShtU0d+XSLtWZB5Xtenlg==",col:"EwddJOyljhsm1Mho19p57w==",relationship:"VUQRxyGyP2uVTKGVha-XXg=="};function yC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||yN(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yN(e,t){if(e){if("string"==typeof e)return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yC(e,t)}}var yR=function(e){var t,n,r,a,i,o,s,l=(n=e.entityUuid,o=(i=(0,m9.A)(n?"".concat(he.restBaseUrl,"/cohort?v=custom:(uuid,name,startDate)&member=").concat(n):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=i.isLoading,{groups:null!=(r=null==o||null==(a=o.data)?void 0:a.results)?r:[],isLoading:s}),u=l.groups,c=void 0===u?[]:u,d=l.isLoading;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("p",{className:yA.heading,children:[(0,_.V)("entityGroups","Entity Groups")," (",null!=(t=null==c?void 0:c.length)?t:0,")"]}),d?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsxs)("ul",{children:[function(){if((null==c?void 0:c.length)>0){var e=c.sort(function(e,t){return(0,sT._U)(null==e?void 0:e.startDate).getTime()-(0,sT._U)(null==t?void 0:t.startDate).getTime()}).slice(0,3);return null==e?void 0:e.map(function(e){return(0,m.jsx)("li",{children:(0,m.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups/").concat(e.uuid),children:e.name},e.uuid)},e.uuid)})}return(0,m.jsx)("li",{children:"--"})}(),c.length>3&&(0,m.jsx)("li",{className:yA.link,children:(0,m.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups"),children:(0,_.V)("seeMoreGroups","See {{count}} more groups",{count:(null==c?void 0:c.length)-3})})})]})]})},yM=function(e){var t,n=e.entityId,r=(0,b.useEntity)(n),a=r.entity,i=r.isLoading,o=null==a||null==(t=a.address)?void 0:t.find(function(e){return"home"===e.use}),s=function(e){return e.split("#")[1]};return i?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:yA.heading,children:(0,_.V)("address","Address")}),(0,m.jsx)("ul",{children:o?Object.entries(o).filter(function(e){var t=yT(e,1)[0];return"id"!==t&&"use"!==t}).map(function(e){var t,n,r,a=yT(e,2),i=a[0],l=a[1];return"extension"===i?null==(r=o.extension)||null==(n=r[0])||null==(t=n.extension)?void 0:t.map(function(e,t){return(0,m.jsxs)("li",{children:[(0,_.V)(s(e.url),s(e.url)),": ",e.valueString]},"address-".concat(i,"-").concat(t))}):(0,m.jsxs)("li",{children:[(0,_.V)(i,i),": ",l]},"address-".concat(i))}):(0,m.jsx)("li",{children:"--"})})]})},yI=function(e){var t,n,r,a,i,o,s,l=(t=e.entityUuid,a=(0,b.useConfig)().contactAttributeTypes,o=(i=(0,m9.A)(t?"".concat(he.restBaseUrl,"/entity/").concat(t,"?v=custom:(attributes:(attributeType:(display,uuid),value))"):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=i.isLoading,{contactAttributes:null==o||null==(r=o.data)||null==(n=r.attributes)?void 0:n.filter(function(e){var t;return null==a||null==(t=a.uuids)?void 0:t.includes(e.attributeType.uuid)}),isLoading:s}),u=l.isLoading,c=l.contactAttributes,d=(0,h.useMemo)(function(){var e;return c?function(e){if(Array.isArray(e))return yC(e)}(e=null==c?void 0:c.map(function(e){return[e.attributeType.display?(0,_.V)(e.attributeType.display,e.attributeType.display):"",e.value]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yN(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():[]},[c]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:yA.heading,children:(0,_.V)("contactDetails","Contact Details")}),u?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsx)("ul",{children:d.length?d.map(function(e,t){var n=yT(e,2),r=n[0],a=n[1];return(0,m.jsxs)("li",{children:[r,": ",a]},"".concat(r,"-").concat(a,"-").concat(t))}):(0,m.jsx)("li",{children:"--"})})]})},yL=function(e){var t,n,r,a,i,o,s,l,u,c,d=(t=e.entityId,a="".concat(he.restBaseUrl,"/relationship?v=").concat("custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))","&person=").concat(t),o=(i=(0,yP.Ay)(t?a:null,he.egenFetch)).data,s=i.error,l=i.isLoading,u=i.isValidating,c=(null==o||null==(r=o.data)||null==(n=r.results)?void 0:n.length)?function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;e===l.personA.uuid?n.push({uuid:"".concat(l.uuid),display:l.personB.display,relativeAge:l.personB.age,relativeUuid:l.personB.uuid,relationshipType:l.relationshipType.bIsToA}):n.push({uuid:"".concat(l.uuid),display:l.personA.display,relativeAge:l.personA.age,relativeUuid:l.personA.uuid,relationshipType:l.relationshipType.aIsToB})}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(t,o.data.results):null,{data:o?c:null,error:s,isLoading:l,isValidating:u}),f=d.data,p=d.isLoading;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:yA.heading,children:(0,_.V)("relationships","Relationships")}),p?(0,m.jsx)(L.InlineLoading,{description:"".concat((0,_.V)("loading","Loading")," ..."),role:"progressbar"}):(0,m.jsx)("ul",{children:f&&f.length>0?(0,m.jsx)(m.Fragment,{children:f.map(function(e){return(0,m.jsxs)("li",{className:yA.relationship,children:[(0,m.jsx)("div",{children:(0,m.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/entity/").concat(e.relativeUuid,"/detail"),children:e.display})}),(0,m.jsx)("div",{children:e.relationshipType}),(0,m.jsx)("div",{children:"".concat(e.relativeAge?e.relativeAge:"--"," ").concat(e.relativeAge?1===e.relativeAge?(0,_.V)("yearAbbreviation","yr"):(0,_.V)("yearsAbbreviation","yrs"):"")})]},e.uuid)})}):(0,m.jsx)("li",{children:"--"})})]})};function y_(e){var t,n,r=e.entityId,a=e.inactive;return(0,m.jsxs)("div",{className:v()(yA.contactDetails,(t={},n=yA.inactive,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t)),children:[(0,m.jsxs)("div",{className:yA.row,children:[(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yM,{entityId:r})}),(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yI,{entityUuid:r})})]}),(0,m.jsxs)("div",{className:yA.row,children:[(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yL,{entityId:r})}),(0,m.jsx)("div",{className:yA.col,children:(0,m.jsx)(yR,{entityUuid:r})})]})]})}let yF={container:"Cv77SWzKIL33Efa8UclO5A==",activePatientContainer:"+EdOeUGN-+Myht0Gc4ikMw==",patientBanner:"+1X-eoTNiJAWmrNyW1uKTg==",patientName:"HjFT+u-cDhT-hf+hsn11Xg==",patientAvatar:"OP0MHpvYVC6OF7zImdEV3w==",patientAvatarButton:"-mC5reGPR9tvkeM0qSc5MA==",patientInfo:"mgVTXloP5WwGSJLgIW5TVg==",demographics:"_0Cixc19K7YZnsR1MGmBQNg==",row:"yZ25PajVI7esFz4wL1yOCg==",flexRow:"Ejo0BoOk-a+rWthDWMDH7w==",tagsSlot:"+MEITB-Gk8ZjLAvj3B8W3w==",identifiers:"BwRJpSUWSzceV7Pjz5UofA==",identifier:"kLaARBBq9K0roZYiS7GA1Q==",primaryIdentifier:"qYvg+lAUHmwTgbGCFXK8Yg==",secondaryIdentifier:"TLLxFft-df-e9delKSNViA==",value:"_4WXcSlqEoM5a51gAHLpS0A==",tag:"pzpHt574Yu33MqipyxxXag==",gender:"QtDv05OhEBSxQ0LZ6FfmNA==",separator:"Ld4CZgLBPDUgajeNQgM4Hw==",tooltipPadding:"GF5dbiMid4Mc+k7iKSbQCQ==",tooltipSmallText:"GlMubU+ECQXv0RlYebaD0g==",actionsButtonText:"MX8Uu4J+mIeszpUoF2RRgA=="};function yV(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return(0,m.jsx)("span",{className:yF.primaryIdentifier,children:(0,m.jsxs)(L.Tag,{className:yF.tag,type:"gray",children:[t&&(null==n?void 0:n.text)&&(0,m.jsxs)("span",{className:yF.label,children:[n.text,": "]}),(0,m.jsx)("span",{className:yF.value,children:r})]})})}function yB(e){var t=e.showIdentifierLabel,n=e.type,r=e.value;return(0,m.jsxs)(L.FormLabel,{className:yF.secondaryIdentifier,id:"entity-banner-identifier-".concat(r),children:[t&&(0,m.jsxs)("span",{className:yF.label,children:[null==n?void 0:n.text,": "]}),(0,m.jsx)("span",{className:yF.value,children:r})]})}function yz(e){var t,n=e.identifiers,r=e.showIdentifierLabel,a=(0,b.useConfig)().excludeEntityIdentifierCodeTypes,i=(0,b.usePrimaryIdentifierCode)().primaryIdentifierCode,o=null!=(t=null==n?void 0:n.filter(function(e){var t,n,r,i=null==(r=e.type)||null==(n=r.coding)||null==(t=n[0])?void 0:t.code;return i&&!(null==a?void 0:a.uuids.includes(i))}))?t:[];return(0,m.jsx)(m.Fragment,{children:(null==o?void 0:o.length)?o.map(function(e,t){var n,a,s=e.value,l=e.type;return(0,m.jsxs)(y().Fragment,{children:[(0,m.jsx)("span",{className:yF.identifier,children:(null==l||null==(a=l.coding)||null==(n=a[0])?void 0:n.code)===i?(0,m.jsx)(yV,{showIdentifierLabel:r,type:l,value:s}):(0,m.jsx)(yB,{showIdentifierLabel:r,type:l,value:s})}),t<o.length-1&&(0,m.jsx)("span",{className:yF.separator,children:"\xb7"})]},s)}):""})}function yU(e){var t,n,r=e.entity,a=e.renderedFrom,i=(null==r||null==(t=r.name)?void 0:t[0])?[null==(n=r.name[0].given)?void 0:n.join(" "),r.name[0].family].filter(Boolean).join(" "):(0,_.V)("unknown","Unknown"),o=(0,h.useMemo)(function(){return{entityUuid:r.id,entity:r,renderedFrom:a}},[r.id,r,a]);return(0,m.jsxs)("div",{className:yF.entityInfo,children:[(0,m.jsx)("div",{className:v()(yF.row,yF.entityNameRow),children:(0,m.jsxs)("div",{className:yF.flexRow,children:[(0,m.jsx)("span",{className:yF.entityName,children:i}),(0,m.jsx)(b.ExtensionSlot,{className:yF.tagsSlot,name:"entity-banner-tags-slot",state:o})]})}),(0,m.jsxs)("div",{className:yF.demographics,children:[r.birthDate&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("span",{children:(0,sT.LW)(r.birthDate,{time:!1})}),(0,m.jsx)("span",{className:yF.separator,children:"\xb7"})]}),(0,m.jsx)(yz,{identifiers:r.identifier,showIdentifierLabel:!0}),(0,m.jsx)(b.ExtensionSlot,{className:yF.extensionSlot,name:"entity-banner-bottom-slot",state:o})]})]})}var yW=n(6768),y$=n.n(yW);function yH(e){var t,n,r,a=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).entityPhotoConceptUuid,i=a?"".concat(he.restBaseUrl,"/datapoint?entity=").concat(e,"&concept=").concat(a,"&v=full"):null,o=(0,yP.Ay)(e?i:null,he.egenFetch),s=o.data,l=o.error,u=o.isLoading,c=null==s||null==(t=s.data)?void 0:t.results[0];return{data:c?{dateTime:null==c?void 0:c.recordedDatetime,imageSrc:null==c||null==(r=c.value)||null==(n=r.links)?void 0:n.uri}:null,error:l,isLoading:u}}let yG=function(e){var t=e.width,n=e.height,r=e["aria-label"],a=(0,Z.useTranslation)().t;return(0,m.jsxs)("svg",{"aria-label":null!=r?r:a("entityPhotoPlaceholder","Entity photo placeholder"),width:void 0===t?56:t,height:void 0===n?56:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"})]})},yq="zGr2tPPbF8QVWzyTv0fDHw==";function yY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yZ(e){var t=e.entityUuid,n=e.entityName,r=e.alt,a=yH(t),i=a.data,o=a.isLoading,s=yK((0,h.useState)(null),2),l=s[0],u=s[1],c=yK((0,h.useState)(!1),2),d=c[0],f=c[1],p=(0,h.useMemo)(function(){return y$().generate(t)},[t]);(0,h.useEffect)(function(){if(null==i?void 0:i.imageSrc){var e=new URL(i.imageSrc,window.location.origin).pathname;f(!0);var t=!1,n=new Image;return n.onload=function(){t||(u(e),f(!1))},n.onerror=function(){t||(u(null),f(!1))},n.src=e,function(){t=!0}}u(null),f(!1)},[null==i?void 0:i.imageSrc]);var y=(0,h.useMemo)(function(){return r||(l?(0,_.V)("entityPhotoAlt","Profile photo of {{entityName}}",{entityName:n}):(0,_.V)("entityAvatarAlt","Avatar for {{entityName}}",{entityName:n}))},[r,l,n]);return o||d?(0,m.jsx)(L.SkeletonIcon,{className:"f9LV60t8m0NTwg0u9VNH6Q==","data-testid":"skeleton-icon"}):(null==i?void 0:i.imageSrc)&&!l?(0,m.jsx)(yG,{"aria-label":(0,_.V)("entityPhotoPlaceholder","Photo placeholder for {{entityName}}",{entityName:n})}):l?(0,m.jsx)("div",{"aria-label":y,children:(0,m.jsx)("img",{className:yq,src:l,alt:y,title:n})}):(0,m.jsx)("div",{"aria-label":y,children:(0,m.jsx)("div",{className:yq,title:n,style:{backgroundImage:p.toDataUrl(),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:(0,m.jsx)("span",{className:"_6J1JiNoLqU9+wHh+JKTp0A==",children:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return e.split(/\s+/).filter(Boolean).slice(0,t).map(function(e){return e[0]}).join("")}(n)})})})}function yX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yQ(e){if(Array.isArray(e))return e}function yJ(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y0(e,t){if(e){if("string"==typeof e)return yX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yX(e,t)}}var y1=["egen-pict-appointments","egen-pict-assessment-1","egen-pict-assessment-2","egen-pict-blood-bank","egen-pict-cardiology","egen-pict-ct-scan","egen-pict-dentistry","egen-pict-emergency-department","egen-pict-facility","egen-pict-geriatrics","egen-pict-gynaecology","egen-pict-in-patient","egen-pict-laboratory","egen-pict-labs-2","egen-pict-obstetrics","egen-pict-patient-search","egen-pict-patients","egen-pict-payments-desk","egen-pict-pharmacy","egen-pict-pharmacy-2","egen-pict-registration","egen-pict-service-queues","egen-pict-stock-management","egen-pict-transfer","egen-pict-triage","egen-pict-x-ray"],y2=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-appointments",pictogramProps:e})})),y3=y2,y4=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-assessment-1",pictogramProps:e})})),y5=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-assessment-2",pictogramProps:e})})),y6=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-blood-bank",pictogramProps:e})})),y8=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-cardiology",pictogramProps:e})})),y9=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-ct-scan",pictogramProps:e})})),y7=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-dentistry",pictogramProps:e})})),ge=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-emergency-department",pictogramProps:e})})),gt=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-facility",pictogramProps:e})})),gn=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-geriatrics",pictogramProps:e})})),gr=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-gynaecology",pictogramProps:e})})),ga=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-in-patient",pictogramProps:e})})),gi=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-laboratory",pictogramProps:e})})),go=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-labs-2",pictogramProps:e})})),gs=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-obstetrics",pictogramProps:e})})),gl=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-patient-search",pictogramProps:e})})),gu=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-patients",pictogramProps:e})})),gc=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-payments-desk",pictogramProps:e})})),gd=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-pharmacy",pictogramProps:e})})),gf=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-pharmacy-2",pictogramProps:e})})),gp=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-registration",pictogramProps:e})})),gm=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),gh=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-stock-management",pictogramProps:e})})),gy=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-transfer",pictogramProps:e})})),gg=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-triage",pictogramProps:e})})),gv=(0,h.memo)((0,h.forwardRef)(function(e,t){return(0,m.jsx)(gS,{ref:t,pictogram:"egen-pict-x-ray",pictogramProps:e})})),gb=gt,gw=gu,gx=(0,h.memo)((0,h.forwardRef)(function(e,t){var n,r=yQ(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||y0(n)||yJ(),a=r[0],i=r.slice(1),o=a.pictogram,s=a.fallback,l=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["pictogram","fallback"]),u=(yQ(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||y0(i,1)||yJ())[0],c=(0,h.useRef)(document.getElementById(o));return(0,h.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,n=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var s=a.value;"childList"===s.type&&(c.current=document.getElementById(o))}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,m.jsx)(b.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,m.jsx)(gS,{ref:u,pictogram:o,pictogramProps:l})})})),gS=(0,h.memo)((0,h.forwardRef)(function(e,t){var n=e.pictogram,r=Object.assign({},{size:92},e.pictogramProps),a=r.className,i=r.size;return(i<=26||i>144)&&(console.error("Invalid size '".concat(i,"' specified for ").concat(n,". Defaulting to 92.")),i=92),(0,m.jsx)("svg",{ref:t,className:v()("wXX7tgyTzQUB487Ai2jwkw==",a),height:i,width:i,children:(0,m.jsx)("use",{href:"#".concat(n)})})})),gj=function(e){var t=e.children;return"tablet"===(0,b.useLayoutType)()?(0,m.jsx)(L.Layer,{children:t}):(0,m.jsx)(m.Fragment,{children:t})};function gE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gE(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var gD=function(e){var t,n=e.snackbar,r=e.closeSnackbar,a=n.actionButtonLabel,i=n.kind,o=void 0===i?"success":i,s=n.onActionButtonClick,l=void 0===s?function(){}:s,u=n.isLowContrast,c=n.progressActionLabel,d=n.subtitle,f=n.timeoutInMs,p=void 0===f?5e3:f,y=n.autoClose,g=void 0===y?"error"!==o:y,b=n.title,w=(n.id,function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(n,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),x=gk((0,h.useState)(void 0===a?"":a),2),S=x[0],j=x[1],E=gk((0,h.useState)(!0),2),O=E[0],k=E[1],D=gk((0,h.useState)(!1),2),P=D[0],A=D[1],C=(0,h.useCallback)(function(){setTimeout(r,250)},[r]),T=(0,h.useCallback)(function(){A(!0),C()},[C]);return(0,h.useEffect)(function(){if(g){var e=setTimeout(T,p);return function(){return clearTimeout(e)}}},[p,g,T]),(0,h.useEffect)(function(){k(!1),window.setTimeout(function(){k(!0)},0)},[]),(0,m.jsx)(L.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){gO(e,t,n[t])})}return e}({actionButtonLabel:S,"aria-label":(0,_.V)("closeSnackbar","Close snackbar"),className:v()("-oZItDje+VqIMbRFsj0vKg==",(gO(t={},"M2YBUemKsEmA3Eg4hsWRFQ==",O),gO(t,"yEmGTBZUeA8w30tHbNSn5g==",P),t)),kind:o,lowContrast:void 0===u?"error"!==o:u,onActionButtonClick:function(){l(),T(),c&&j(c)},onClose:C,statusIconDescription:(0,_.V)("snackbarNotification","Snackbar notification"),subtitle:void 0===d?"":d,title:b},w))};function gP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gA(e,t){if(e){if("string"==typeof e)return gP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gP(e,t)}}let gC=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||gA(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1],o=(0,h.useCallback)(function(e){i(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return gP(e)})(n=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||gA(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){return(0,m.jsx)(gD,{snackbar:e,closeSnackbar:function(){return o(e)}},e.id)})})};var gT=new hx.Subject,gN=0;function gR(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(gC,{subject:gT}))}function gM(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,n;gT.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:gN++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}function gI(e){var t=document.querySelector("template#loading-spinner");if(t){var n=t.content.cloneNode(!0),r=Array.prototype.map.call(n.childNodes,function(e){return e});return e.appendChild(n),function(){return r.forEach(function(e){return e.remove()})}}return function(){}}let gL={hiddenFilterSvg:"_8Tz1qFn+MdiJYyy6ez9GUQ==",card:"g40kSNNDpE9NhhUcTafNYw==","card--draggable":"rThVqQdfhOLBiRBlHkth2g==","card--expandable":"RY0ShAGOhiA0XKXO5Sqiag==",bendLayer:"qD6yEcIICh3zPVuc8ZeuEg==",faceLayer:"_0PONrThn18sTfyx8zxhmXg==",edgeLayer:"pg4uJnFEM6WrdOUdtEOQlA==",content:"ArelXhGngOZ+93JNlrBqBg==","blur--sm":"SLe0Wxb5gGxBgiL0MGasOQ==","blur--md":"zrxPZBEXl4NzqG6waBPZVg==","blur--lg":"_4P1jOOMRFuy5KYChqfEj3g==","blur--xl":"R19jP34asJMxjyzQwC1oKw==","glow--none":"pjXAlSa28W1lJr+wo68vVg==","glow--xs":"BmE-JvgGalzpyYFqsovNxw==","glow--sm":"HzeozIN6URFjM+uRLyEe5w==","glow--md":"dQu1UUEYusviaHtggLbX+w==","glow--lg":"ZtA9BZduBptr1334IbiEsg==","glow--xl":"f7aLRCodz2Y3rXD1qsAbLQ==","glow--2xl":"_7B6p9WVoCjjA5J7+JXNMgA==","shadow--none":"_7yiJ0EQp31lzXiYhtAIB8A==","shadow--xs":"r-9qY0z9axV1DyplHMrWsg==","shadow--sm":"vimfUTeWGP8vYRTc-UMX1Q==","shadow--md":"sjeik7aBFWGSrsclplvNbg==","shadow--lg":"_7n0E+oT-MyS2EusrZlSw-A==","shadow--xl":"Mys4y+e4Tg5csfEWKYKLLw==","shadow--2xl":"IE6NX0hiQXPvc27tAfJfgg=="};function g_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){gF(e,t,n[t])})}return e}var gB=function(e){var t,n,r,a,i=e.children,o=e.className,s=e.draggable,l=void 0!==s&&s,u=e.expandable,c=void 0!==u&&u,d=e.width,f=e.height,p=e.expandedWidth,y=e.expandedHeight,g=e.blurIntensity,b=e.shadowIntensity,w=e.glowIntensity,x=e.borderRadius,S=void 0===x?"0px":x,j=e.style,E=e.onClick,O=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return g_(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g_(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),k=O[0],D=O[1],P="egen-glass-blur-".concat((0,h.useId)().replace(/:/g,"")),A=l||c,C=A?mY.div:"div",T=A?{variants:c&&c?{collapsed:{width:d||"auto",height:f||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}},expanded:{width:p||"auto",height:y||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}}}:void 0,animate:c?k?"expanded":"collapsed":void 0,onClick:c?function(e){!c||e.target.closest("a, button, input, select, textarea")||D(function(e){return!e})}:E,drag:l,dragConstraints:l?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:l?.3:void 0,dragTransition:l?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:l?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98}}:{onClick:E};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("svg",{className:gL.hiddenFilterSvg,"aria-hidden":"true",children:(0,m.jsx)("defs",{children:(0,m.jsxs)("filter",{id:P,x:"0",y:"0",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[(0,m.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.003 0.007",numOctaves:1,result:"turbulence"}),(0,m.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:"200",xChannelSelector:"R",yChannelSelector:"G"})]})})}),(0,m.jsxs)(C,(n=gV({className:v()(gL.card,(gF(a={},gL["card--draggable"],l),gF(a,gL["card--expandable"],c),a),o),style:gV({borderRadius:S},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,j)},T),r=r={children:[(0,m.jsx)("div",{className:v()(gL.bendLayer,gL["blur--".concat(void 0===g?"xl":g)]),style:{borderRadius:S,filter:"url(#".concat(P,")")}}),(0,m.jsx)("div",{className:v()(gL.faceLayer,gL["glow--".concat(void 0===w?"sm":w)]),style:{borderRadius:S}}),(0,m.jsx)("div",{className:v()(gL.edgeLayer,gL["shadow--".concat(void 0===b?"md":b)]),style:{borderRadius:S}}),(0,m.jsx)("div",{className:gL.content,children:i})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))]})},gz={success:{icon:ev,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:s_,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:tP,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:tP,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:eH,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:eG,defaultEyebrow:"Information",colorToken:"info"}};let gU={wrapper:"GyBEs6eqDODWqnwCpOxkgA==",card:"H4pKi7IOS084SKqk0uyFfw==","card--success":"Yc+Kmcmvk2bUbJwvPd+ztA==","card--error":"qlQ3boD91foq+pO8piYM9Q==","card--warning":"+saabNyI2jV1RFmo+4Ggzw==","card--info":"hQvSQJ9lXVa4+WqICvWmFQ==",body:"UweKpMInr5Gk7FaBD5PKUw==",icon:"_7Hl059E-jiqdGfi2Fb7NQQ==",textArea:"XWDeilHanNAG+waXginzsw==",eyebrow:"VL4zl-URrFpGVQ+9Q78q1Q==",title:"GsPNPqYPa1DgbBA8SflK-g==",description:"vki-oFtrZPJfrXBNph1o9g==",closeButton:"JVG-auHlci1Qq5baFfgK1w==",actionsRow:"D4Ei6TMzlNUZXEhyvYFl5w==",actionButton:"vDOcCETP0Tg78PBf1+D5wQ==","actionButton--primary":"M5CeDQDbJCaliICbl1CZhQ==","actionButton--secondary":"EaDTATDS5SHmXghyS+5P2w==","actionButton--danger":"L-Gz2FqBtGPKiZm5v8YYlg==",progressTrack:"MN3iwSn3QIJeWC9eYIP6RQ==",progressFill:"wQc9y8YYdjvKSmG+bfICrQ=="};var gW=function(e){var t=e.colorVar,n=e.mode,r=e.durationMs,a=e.value;return(0,m.jsx)("div",{className:gU.progressTrack,children:"countdown"===n?(0,m.jsx)(mY.div,{className:gU.progressFill,style:{background:t},initial:{width:"100%"},animate:{width:"0%"},transition:{duration:(null!=r?r:4e3)/1e3,ease:"linear"}}):(0,m.jsx)(mY.div,{className:gU.progressFill,style:{background:t},initial:!1,animate:{width:"".concat(Math.max(0,Math.min(100,null!=a?a:0)),"%")},transition:{duration:.3,ease:"easeOut"}})})},g$=function(e){var t,n=e.toast,r=e.closeToast,a=n.description,i=n.kind,o=n.critical,s=n.title,l=n.actionButtonLabel,u=n.onActionButtonClick,c=n.variant,d=void 0===c?"default":c,f=n.eyebrow,p=n.progress,y=n.actions,g=n.duration;n.toastKey;var b=gz[void 0===i?"info":i],w=b.icon,x="var(--colors-".concat(b.colorToken,"-500)"),S=(0,h.useMemo)(function(){return(null==y?void 0:y.length)?y:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[y,l,u]),j=(0,h.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&r()},[r]),E=null!=g?g:"default"===d&&0===S.length?4e3:void 0;(0,h.useEffect)(function(){if("transfer"===d){if((null!=p?p:0)>=100){var e=setTimeout(r,1200);return function(){return clearTimeout(e)}}return}if(E){var t=setTimeout(r,E);return function(){return clearTimeout(t)}}},[d,p,E,r]);var O=null!=f?f:b.defaultEyebrow,k=(null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](a):a instanceof t)?a.message:a;return(0,m.jsx)(mY.div,{initial:{opacity:0,y:30,scale:.9,filter:"blur(4px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-15,scale:.95,filter:"blur(2px)",transition:{duration:.18}},layout:!0,className:gU.wrapper,children:(0,m.jsxs)(gB,{blurIntensity:"xl",glowIntensity:o?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:v()(gU.card,gU["card--".concat(b.colorToken)]),children:[(0,m.jsxs)("div",{className:gU.body,children:[(0,m.jsx)(w,{className:gU.icon,size:20}),(0,m.jsxs)("div",{className:gU.textArea,children:[(0,m.jsx)("span",{className:gU.eyebrow,children:O}),s&&(0,m.jsx)("p",{className:gU.title,children:s}),(0,m.jsx)("div",{className:gU.description,children:k})]}),(0,m.jsx)("button",{type:"button",onClick:r,className:gU.closeButton,"aria-label":"Fermer",children:(0,m.jsx)(eO,{size:14})})]}),S.length>0&&(0,m.jsx)("div",{className:gU.actionsRow,children:S.map(function(e,t){var n,r;return(0,m.jsx)("button",{type:"button",className:v()(gU.actionButton,gU["actionButton--".concat(null!=(n=e.kind)?n:"primary")]),onClick:function(){return j(e)},children:e.label},null!=(r=e.id)?r:t)})}),"transfer"===d?(0,m.jsx)(gW,{colorVar:x,mode:"progress",value:p}):E&&(0,m.jsx)(gW,{colorVar:x,mode:"countdown",durationMs:E})]})})};function gH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gG(e,t){if(e){if("string"==typeof e)return gH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gH(e,t)}}let gq=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||gG(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],i=r[1],o=(0,h.useCallback)(function(e){i(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,h.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return gH(e)})(n=t.filter(function(t){return e.toastKey?t.toastKey!==e.toastKey:t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||gG(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])})});return function(){return e.unsubscribe()}},[n]),(0,m.jsx)(m.Fragment,{children:a.map(function(e){var t;return(0,m.jsx)(g$,{toast:e,closeToast:function(){return o(e)}},null!=(t=e.toastKey)?t:e.id)})})};var gY=new hx.Subject,gK=0;function gZ(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(gq,{subject:gY}))}function gX(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!hB(t))?setTimeout(function(){var t,n;gY.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:gK++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var gQ=n(7774);function gJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function g1(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function g2(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var n=g8[e];return!n||!n()}function g3(e,t){var n,r=null==(n=vi.getState())?void 0:n.workspaceGroup,a=null==r?void 0:r.name;a&&e===a&&vu(function(){var n=vm(e);n&&(n.setState({},!0),n.subscribe(function(){})()),"function"==typeof(null==r?void 0:r.cleanup)&&r.cleanup(),vi.setState(function(e){return g1(g0({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},a?function(e){return e.currentWorkspaceGroup===a}:function(){return!0})}function g4(e,t){var n,r=t.name,a=t.additionalProps;(0,ho.Xb)(r);var i=function(){vn(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return g5(r,a)},closeWorkspaceGroup:!1})};g2(e.name)?i():vd("closing-workspace-launching-new-workspace",i,null!=(n=e.title)?n:e.name)}function g5(e,t){var n,r,a=(0,ho.Xb)(e),i=vi.getState().workspaceGroup;if(i&&!(null==(n=i.members)?void 0:n.includes(e)))return void g3(i.name,function(){g5(e,t)});var o=null==(r=vi.getState().workspaceGroup)?void 0:r.name,s=g1(g0({},a),{title:vf(a,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vn(e,t)},closeWorkspaceWithSavedChanges:function(t){return vn(e,g0({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var n,r;return n=e,r=t,void(g8[n]=r)},setTitle:function(t,n){s.title=t,s.titleNode=n,vi.setState(function(t){var n=t.openWorkspaces.map(function(t){return t.name===e?s:t});return g1(g0({},t),{openWorkspaces:n})})},currentWorkspaceGroup:o,additionalProps:null!=t?t:{}});function l(e,t){vi.setState(function(n){var r,a=[e].concat(function(e){if(Array.isArray(e))return gJ(e)}(r=null!=t?t:n.openWorkspaces)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e){if(e){if("string"==typeof e)return gJ(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return gJ(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=vl(e);return g1(g0({},n),{openWorkspaces:a,workspaceWindowState:i})})}o&&vm(o,t);var u=vi.getState().openWorkspaces,c=u.findIndex(function(t){return t.name===e}),d=u.find(function(e){return e.type==s.type});if(0===u.length)l(s);else if(u[0].canHide||0===c)if(c>=0){var f=u[c];l(g0(g1(g0({},f),{additionalProps:s.additionalProps}),f.title===vf(f,f.additionalProps)&&{title:vf(s,s.additionalProps)}),u.filter(function(t){return t.name!=e}))}else d?(l(d,vi.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),g4(d,{name:e,additionalProps:t})):l(s);else g4(u[0],{name:e,additionalProps:t})}function g6(e){var t=e.targetUrl,n=e.contextKey,r=e.workspaceName,a=e.additionalProps;vr(n),g5(r,a),(0,gQ.oo)({to:t})}var g8={};function g9(e,t){g8[e]=t}function g7(e){return g8[e]}function ve(){var e=vi.getState();vi.setState(g1(g0({},e),{prompt:null}))}var vt={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function vn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=g0({},vt,n);var r=function(){var t,r,a=vi.getState();a.openWorkspaces.find(function(t){return t.name===e});var i=a.openWorkspaces.filter(function(t){return t.name!=e}),o=null==(t=vi.getState().workspaceGroup)?void 0:t.name;o&&n.closeWorkspaceGroup&&g3(o),g8[e]=function(){return!1},vi.setState(function(e){return g1(g0({},e),{prompt:null,openWorkspaces:i,workspaceWindowState:vl(null==i?void 0:i[0])})}),null==n||null==(r=n.onWorkspaceClose)||r.call(n)};return g2(e,null==n?void 0:n.ignoreChanges)?(r(),!0):(vd("closing-workspace",r,null!=(t=(0,ho.Xb)(e).title)?t:e),!1)}function vr(e){vi.getState().context!=e&&vi.setState({context:e,openWorkspaces:[],prompt:null})}var va={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},vi=(0,hi.createGlobalStore)("workspace",va);function vo(){return vi}function vs(e){var t=vi.getState();vi.setState(g1(g0({},t),{workspaceWindowState:e}))}function vl(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function vu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=vi.getState().openWorkspaces.filter(t).every(function(e){return g2(e.name)}),r=function(){vp(),null==e||e()};n?r():vd("closing-all-workspaces",r)}function vc(){var e=(0,b.useStore)(vi),t=e.workspaceWindowState,n=e.openWorkspaces,r=e.prompt,a=e.workspaceGroup;return(0,h.useMemo)(function(){return{active:n.length>0,prompt:r,workspaceWindowState:t,workspaces:n,workspaceGroup:a}},[n,t,r,a])}function vd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==n||n()},confirmText:(0,_.V)("discard","Discard")};break;case"closing-all-workspaces":var a=vi.getState().openWorkspaces.filter(function(e){return!g2(e.name)}).map(function(e,t){var n=e.title;return"".concat(t+1,". ").concat(n)});t={title:(0,_.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,_.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:a.join(",")}),onConfirm:function(){null==n||n()},confirmText:(0,_.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:a.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,_.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,_.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:r}),onConfirm:function(){vi.setState(function(e){return g1(g0({},e),{prompt:null})}),null==n||n()},confirmText:(0,_.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==n||n();return}vi.setState(function(e){return g1(g0({},e),{prompt:t})})}function vf(e,t){var n;return null!=(n=null==t?void 0:t.workspaceTitle)?n:e.title}function vp(){vi.setState(va)}function vm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var n=(0,hi.getGlobalStore)(e,{});return t&&n.setState(function(e){return g0({},e,t)}),n}}let vh="f7spBy3jUTfjOH25a05A1A==",vy="ZROo9Y2WovRqEcmbEXN7sQ==",vg="+mcQhrE2BMNqPBknif4FqQ==";function vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vb(e){var t=e.getIcon,n=e.formOpenInTheBackground,r=e.tagContent;return(0,m.jsxs)(m.Fragment,{children:[t({size:16}),n?(0,m.jsx)("span",{className:"_7695LgJosRmkPmkyVGdZ-g==",children:"!"}):(0,m.jsx)("span",{className:"vo9ZXEHO6camG8qEsBCH8A==",children:r})]})}var vw=function(e){var t,n=e.getIcon,r=e.label,a=e.iconDescription,i=e.handler,o=e.type,s=e.tagContent,l=(0,b.useLayoutType)(),u=vc(),c=u.workspaces,d=u.workspaceWindowState,f=null!=(t=null==c?void 0:c.findIndex(function(e){return e.type===o}))?t:-1,p="hidden"!==d&&0===f,h=f>0||0===f&&"hidden"===d;return"tablet"===l||"phone"===l?(0,m.jsxs)(L.Button,{className:v()(vh,vv({},vg,p)),iconDescription:a,kind:"ghost",onClick:i,role:"button",tabIndex:0,size:"md",children:[(0,m.jsx)("span",{className:vy,children:(0,m.jsx)(vb,{formOpenInTheBackground:h,getIcon:n,tagContent:s})}),(0,m.jsx)("span",{children:r})]}):(0,m.jsx)(L.IconButton,{align:"left","aria-label":a,className:v()(vh,vv({},vg,p)),enterDelayMs:300,kind:"ghost",label:r,onClick:i,size:"md",children:(0,m.jsx)("div",{className:vy,children:(0,m.jsx)(vb,{formOpenInTheBackground:h,getIcon:n,tagContent:s})})})};function vx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e){var t,n,r=e.isWithinWorkspace,a=e.name,i=e.actionMenuProps,o=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vx(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vx(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=(0,h.useRef)(window.innerHeight),c=(0,h.useContext)(b.ComponentContext).featureName,d=(0,b.useLayoutType)();return(0,h.useEffect)(function(){var e=function(){l(!(0,b.isDesktop)(d)&&u.current>window.innerHeight),u.current!=window.innerHeight&&(u.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[u]),(0,m.jsx)("aside",{className:v()("GJUJ7TWs47hZNAq1HgT48A==",(vS(n={},"_7+TCfrT4vrpC5TH4e1by0w==",r),vS(n,"bQ0UMzF1JBk1bcCogWlGrw==",s),vS(n,"v-1cRnDYDLbApkU1gJodvg==",!s),n)),children:(0,m.jsx)("div",{className:"WocuWYX1W7JwP94ypr0B8A==",children:(0,m.jsx)(b.ExtensionSlot,{className:"Cn3Jbzq8LOgwfW4fj6XYSQ==",name:"action-menu-".concat(a&&"default"!=a?a:c,"-items-slot"),state:void 0===i?{}:i})})})}var vE=n(2086);function vO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vk(e){if(Array.isArray(e))return e}function vD(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function vA(e,t){if(e){if("string"==typeof e)return vO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vO(e,t)}}var vC=y().forwardRef(function(e,t){var n,r=vk(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vA(n)||vD(),a=r[0],i=r.slice(1),o=a.children,s=a.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["children","size"]),c=(vk(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||vA(i,1)||vD())[0];return 16===l||"16"===l||"16px"===l?y().createElement(vE.A,vP({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},u),(0,m.jsx)("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"}),(0,m.jsx)("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"}),o):y().createElement(vE.A,vP({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,m.jsx)("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"}),(0,m.jsx)("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"}),o)}),vT=n(2283);function vN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vR(e){if(Array.isArray(e))return e}function vM(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vI(e,t){if(e){if("string"==typeof e)return vN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vN(e,t)}}var vL=y().forwardRef(function(e,t){var n,r=vR(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vI(n)||vM(),a=r[0],i=r.slice(1),o=a.children,s=a.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["children","size"]),c=(vR(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||vI(i,1)||vM())[0];return y().createElement(vE.A,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,m.jsx)("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"}),(0,m.jsx)("path",{d:"M4 22H28V24H4z"}),o)}),v_=n(2768),vF=/[\\^$.*+?()[\]{}|]/g,vV=RegExp(vF.source);let vB=function(e){return(e=(0,v_.A)(e))&&vV.test(e)?e.replace(vF,"\\$&"):e};function vz(e){var t,n,r=e.contextKey,a=vc().prompt;return(0,h.useEffect)(function(){new RegExp("/".concat(vB(r),"(/|$)")).test(window.location.pathname)||console.warn('WorkspaceContainer has provided an invalid context key: "'.concat(r,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,h.useEffect)(function(){return vr(r),function(){vr(null)}},[r]),(0,h.useEffect)(function(){var e=function(e){var t=e.detail,n=t.cancelNavigation,a=t.newUrl,i=new RegExp("/".concat(vB(r),"(/|$)")),o=new URL(a),s=i.test(o.pathname),l=vi.getState().openWorkspaces.every(function(e){return g2(e.name)});s||(l?vp():(null==n||n(),vu(function(){(0,gQ.oo)({to:a})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=a?(0,m.jsxs)(L.ComposedModal,{open:!0,onClose:ve,children:[(0,m.jsx)(L.ModalHeader,{title:a.title}),(0,m.jsx)(L.ModalBody,{children:(0,m.jsx)("p",{className:"+SBeVyf3Vs1HLINqeNxwCA==",children:a.body})}),(0,m.jsxs)(L.ModalFooter,{children:[(0,m.jsx)(L.Button,{kind:"secondary",onClick:ve,children:null!=(t=a.cancelText)?t:(0,_.V)("cancel")}),(0,m.jsx)(L.Button,{kind:"danger",onClick:a.onConfirm,children:null!=(n=a.confirmText)?n:(0,_.V)("confirm")})]})]}):null}var vU=n(2879);function vW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vW(Object(n),!0).forEach(function(t){vG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vq(e){return(vq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vY(e,t){return(vY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vK(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vZ=function(e){var t=h.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&vY(o,t);var n,r,a,i=(n=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=vq(o);e=n?Reflect.construct(t,arguments,vq(this).constructor):t.apply(this,arguments);if(e&&("object"==(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return vK(this)});function o(e){var t;if(function(e,t){if(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),vG(vK(t=i.call(this,e)),"handleRef",function(e){t.el=e}),vG(vK(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),vG(vK(t),"getParcelProps",function(){var e=v$(v$({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return r=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,v$({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return vU.i&&vU.i.Consumer?h.createElement(vU.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=vU.i&&vU.i.Consumer?h.createElement(vU.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return h.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],vH(o.prototype,r),a&&vH(o,a),o}();vG(vZ,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function vX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function v1(e){var t,n,r,a,i,o,s,l,u=e.workspace,c=e.additionalPropsFromPage,d=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)())||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vJ(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vJ(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),f=d[0],p=d[1],y=(n=u.currentWorkspaceGroup,a=(r=vQ((0,h.useState)({}),2))[0],i=r[1],s=(o=vQ((0,h.useState)(n),2))[0],l=o[1],(0,h.useEffect)(function(){s!==n&&l(n)},[n]),(0,h.useEffect)(function(){var e,t=vm(s);return t&&(i(t.getState()),e=t.subscribe(i)),function(){t&&(null==e||e())}},[s]),a);(0,h.useEffect)(function(){var e=!0;return u.load().then(function(t){e&&p(t)}),function(){e=!1}},[u]);var g=(0,h.useMemo)(function(){return u&&v0({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,y,u.additionalProps)},[u,c,y]);return f?(0,m.jsx)(vZ,v0({config:f,mountParcel:ha.mountRootParcel},g),u.name):(0,m.jsx)(L.InlineLoading,{className:"H6dHj0oBasuEG5BThmRHhw==",description:"".concat((0,_.V)("loading","Loading")," ...")})}function v2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v3(e){var t,n,r,a=e.contextKey,i=e.overlay,o=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,b.useLayoutType)(),c=vc(),d=c.workspaces,f=c.workspaceWindowState,p=c.workspaceGroup,y=null==p?void 0:p.name,g=d[0],w="hidden"===f||null==g,x=null!=(t=null==g?void 0:g.width)?t:i?"wider":"narrow",S=(0,h.useMemo)(function(){return o||y&&!w},[y,w,o]);return(0,b.useBodyScrollLock)(!w&&!(0,b.isDesktop)(u)),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:o?"AHHuuXanpv12GtwxcK3ogA==":"E7yiHjGY1d2E+4Abx0jh7g==",children:[(0,m.jsx)("aside",{className:v()(i?"_7nS969hUMMe36pOPOtI3Fg==":"l+rgkmJVqlq3O++ce09vbA==",(v2(n={},"AJHmQ2iPp0Yic2jCrU6NIA==",w),v2(n,"Vb16L-oIiZ74fu1QQMOirg==","narrow"===x),v2(n,"Bn7v8I0voAWdRO7H9eKQiw==","wider"===x),v2(n,"vN8kIRmjOaaBlFkAfGVJ5g==","extra-wide"===x),n)),children:(0,m.jsx)("div",{className:v()("pBPmoo5CjBr1d116v8KrrA==",(v2(r={},"Sew5FCwW7FqufRz17h2owg==","maximized"===f),v2(r,"BxutHfy6GErdVMJpbvmkVg==",w),r)),children:d.map(function(e,t){return(0,m.jsx)("div",{className:v()("tYaVVyyd6Tcv58Bbo4mkcw==",v2({},"lBaWeq3srAzA5Ngk2dm0kQ==",0!==t)),children:(0,m.jsx)(h.Suspense,{fallback:null,children:(0,m.jsx)(Z.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,m.jsx)(v4,{workspaceInstance:e,additionalWorkspaceProps:s})})})},"workspace-container-".concat(e?e.name:"empty-".concat(t)))})})}),(0,m.jsx)(vz,{contextKey:a})]}),S&&(0,m.jsx)(vj,{name:y,isWithinWorkspace:!o,actionMenuProps:l})]})}function v4(e){var t,n=e.workspaceInstance,r=e.additionalWorkspaceProps,a=(0,Z.useTranslation)().t,i=(0,b.useLayoutType)(),o=vc(),s=o.workspaceWindowState,l=o.workspaceGroup,u=null==l?void 0:l.name,c="maximized"===s;(0,h.useEffect)(function(){var e=a(n.title);e!==n.title&&n.setTitle(e)},[n.title,a,n.setTitle]);var d=(0,h.useContext)(b.ComponentContext).featureName,f=(0,h.useCallback)(function(){vs(c?"normal":"maximized")},[c]),p=(0,h.useMemo)(function(){return null!=n?n:{}},[n]),y=p.canHide,g=void 0!==y&&y,w=p.canMaximize,x=p.currentWorkspaceGroup,S=p.closeWorkspace,j=(0,h.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){v2(e,t,n[t])})}return e}({},r,null==n?void 0:n.additionalProps)},[r,n]);return n&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader","Workspace Header"),className:"-3kjtr5uYox3-kZnfzcNuw==",children:[!(0,b.isDesktop)(i)&&!g&&(0,m.jsx)(L.HeaderMenuButton,{"aria-label":(0,_.V)("close","Close"),renderMenuIcon:(0,m.jsx)(eo,{}),onClick:function(){return S()}}),(0,m.jsx)(L.HeaderName,{prefix:"",children:null!=(t=n.titleNode)?t:a(n.title)}),(0,m.jsx)("div",{className:"_2Zd7JZN89pW2XY09qZBAAw=="}),(0,m.jsxs)(L.HeaderGlobalBar,{className:"ppNsYZC7Z00KBemD1lNxQA==",children:[(0,m.jsx)(b.ExtensionSlot,{name:"workspace-header-group-".concat(n.currentWorkspaceGroup,"-slot"),state:j}),(0,m.jsx)(b.ExtensionSlot,{name:"workspace-header-type-".concat(n.type,"-slot"),state:j}),(0,m.jsx)(b.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:j}),(0,b.isDesktop)(i)&&(0,m.jsxs)(m.Fragment,{children:[(void 0!==w&&w||c)&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":c?(0,_.V)("minimize","Minimize"):(0,_.V)("maximize","Maximize"),onClick:f,children:c?(0,m.jsx)(vC,{}):(0,m.jsx)(vT.hz,{})}),g&&!u?(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide","Hide"),onClick:function(){return vs("hidden")},children:(0,m.jsx)(es,{})}):(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,m.jsx)(eO,{})})]}),"tablet"===i&&g&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,m.jsx)(vL,{})})]})]}),(0,m.jsx)("div",{className:v()("cNdK12M+p0cj6LR0VGui6A==",v2({},"RXftxuAFC8bU7RXpujMdHA==",!!(void 0===x?"":x))),children:(0,m.jsx)(v1,{workspace:n,additionalPropsFromPage:r},n.name)})]})}var v5=n(188),v6=n(8254);function v8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v9(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function v7(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){v9(i,r,a,o,s,"next",e)}function s(e){v9(i,r,a,o,s,"throw",e)}o(void 0)})}}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function bt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function bn(e){return function(e){if(Array.isArray(e))return v8(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return v8(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v8(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function br(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function ba(e,t){return v7(function(){var n;return br(this,function(r){switch(r.label){case 0:if(!(n=ho.J_.getState().openedGroup))return[3,3];if(!(n.groupName!==e||!bs(n.props,t)))return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1})];case 1:if(!r.sent())return[2,!1];return[3,3];case 2:return[2,!0];case 3:return ho.J_.setState(function(n){return bt(be({},n),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function bi(e){return v7(function(){var t,n,r,a;return br(this,function(i){switch(i.label){case 0:if(n=(t=ho.J_.getState()).openedGroup,r=t.openedWindows,!n)return[3,4];if(!(r.length>0))return[3,3];if(a=e)return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:a=i.sent(),i.label=2;case 2:if(!a)return[2,!1];i.label=3;case 3:return ho.J_.setState(function(e){return bt(be({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function bo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v7(function(){var a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O;return br(this,function(k){switch(k.label){case 0:if(!(a=ho.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(i=(0,ho.Ml)(e)))throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered to a workspace window"));if(o=a.openedGroup,s=i.name,!(l=(0,ho.o1)(s)))throw Error("Unable to launch workspace ".concat(e,". Workspace window ").concat(i.name," is not registered to a workspace group"));if(c=(u=(0,ho.YX)(e))>=0,!(o&&(o.groupName!==l.name||!bs(o.props,r))))return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:r},openedWindows:[{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 2:if(!c)return[3,9];if(p=a.openedWindows[u],m=null!=(d=null==(f=a.openedGroup)?void 0:f.props)?d:{},h=a.isMostRecentlyOpenedWindowHidden,y=p.openedWorkspaces,!bs(p.props,n))return[3,6];if(!((g=y.find(function(t){return t.workspaceName===e}))&&bs(g.props,t)))return[3,3];return(h||u!==a.openedWindows.length-1)&&ho.J_.setState(bu.restoreWindow(a,s)),[2,!0];case 3:return[4,bl({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})];case 4:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=(v=null==a||null==(w=a.openedGroup)?void 0:w.props)?v:m},openedWindows:bn(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[bp(e,t)],props:null!=(b=null==p?void 0:p.props)?b:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 5:return[3,8];case 6:return[4,bl({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})];case 7:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=m?m:null==a||null==(x=a.openedGroup)?void 0:x.props},openedWindows:bn(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 8:return[3,12];case 9:if("closable"!=l.persistence)return[3,11];return[4,bl({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:i.name})];case 10:if(k.sent())return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=(S=null!=r?r:null==a||null==(j=a.openedGroup)?void 0:j.props)?S:null},openedWindows:[{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return ho.J_.setState(bt(be({},a),{openedGroup:{groupName:l.name,props:null!=(E=null!=r?r:null==a||null==(O=a.openedGroup)?void 0:O.props)?E:null},openedWindows:bn(a.openedWindows).concat([{windowName:s,openedWorkspaces:[bp(e,t)],props:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];case 12:return[2]}})})()}function bs(e,t){return null==e||null==t||(0,v6.b)(e,t)}function bl(e){function t(e,t){for(var n=[],r=e.openedWorkspaces.length-1;r>=0;r--){var a=e.openedWorkspaces[r];if(a.hasUnsavedChanges&&n.push(a),t&&a.workspaceName===t)break}return n}var n=ho.J_.getState(),r=n.openedWindows,a=n.workspaceTitleByWorkspaceName,i=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":i=r.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var o=r.find(function(t){return t.windowName===e.windowName});if(!o)throw Error("Window ".concat(e.windowName," not found in opened windows."));i=t(o);break;case"CLOSE_WORKSPACE":var s=r.find(function(t){return t.windowName===e.windowName});if(!s)throw Error("Window ".concat(e.windowName," not found in opened windows."));i=t(s,e.workspaceName);break;case"CLOSE_OTHER_WINDOWS":i=r.filter(function(t){return t.windowName!==e.windowNameToSpare}).flatMap(function(e){return t(e)})}return 0===i.length?Promise.resolve(!0):new Promise(function(e){var t=hw("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:i.map(function(e){return a[e.workspaceName]})})})}var bu={setWindowMaximized:function(e,t,n){var r=e.openedWindows.findIndex(function(e){return e.windowName===t}),a=bn(e.openedWindows),i=bt(be({},a[r]),{maximized:n});return a[r]=i,bt(be({},e),{openedWindows:a})},hideWindow:function(e){return bt(be({},e),{isMostRecentlyOpenedWindowHidden:!0})},restoreWindow:function(e,t){var n=e.openedWindows.findIndex(function(e){return e.windowName===t}),r=e.openedWindows[n],a=bn(e.openedWindows.filter(function(e,t){return t!==n})).concat([r]);return bt(be({},e),{openedWindows:a,isMostRecentlyOpenedWindowHidden:!1})},closeWorkspace:function(e,t){var n=(0,ho.YX)(t);if(n<0)return e;var r=be({},e.openedWindows[n]),a=r.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),i=bn(e.openedWindows);r.openedWorkspaces=r.openedWorkspaces.slice(0,a);var o=e.isMostRecentlyOpenedWindowHidden;if(0===r.openedWorkspaces.length){var s=n===e.openedWindows.length-1;i.splice(n,1),s&&i.length>0&&(o=!1)}else i[n]=r;return bt(be({},e),{openedWindows:i,isMostRecentlyOpenedWindowHidden:o})},openChildWorkspace:function(e,t,n,r){var a=e.registeredWorkspacesByName[n];if(!a)throw Error('No workspace named "'.concat(n,'" registered'));var i=e.registeredWorkspacesByName[t];if(!i)throw Error('No workspace named "'.concat(t,'" registered'));if(i.window!==a.window)throw Error("Child workspace ".concat(n," does not belong to the same workspace window as parent workspace ").concat(t));var o=e.openedWindows.findIndex(function(e){return e.windowName===a.window});if(-1==o)throw Error("Cannot open child workspace ".concat(n," as window ").concat(a.window," is not opened"));var s=e.openedWindows[o].openedWorkspaces,l=s.findIndex(function(e){return e.workspaceName===t});if(-1===l)throw Error("Cannot open child workspace ".concat(n," from parent workspace ").concat(t," as the parent is not opened within the workspace window"));var u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map(function(e,t){return t==o?bt(be({},e),{openedWorkspaces:bn(u).concat([bp(n,r)])}):e})}},setHasUnsavedChanges:function(e,t,n){var r=(0,ho.YX)(t);if(r<0)return e;var a=be({},e.openedWindows[r]),i=a.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(i<0)return e;a.openedWorkspaces[i]=bt(be({},a.openedWorkspaces[i]),{hasUnsavedChanges:n});var o=bn(e.openedWindows);return o[r]=a,bt(be({},e),{openedWindows:o})},setWorkspaceTitle:function(e,t,n){var r=be({},e.workspaceTitleByWorkspaceName);return null===n?delete r[t]:r[t]=n,bt(be({},e),{workspaceTitleByWorkspaceName:r})}};function bc(){return(0,b.useStoreWithActions)(ho.J_,bu)}var bd=function(){return(0,h.useContext)(vU.i)},bf=function(){return Object.keys(ho.J_.getState().registeredWorkspacesByName)};function bp(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,v5.A)()}}let bm={workspaceOuterContainer:"bPVpyfZzXGTGRy6q-9pUCQ==",narrowWorkspace:"kSYS7aTPRggp+MU8vlcg9Q==",widerWorkspace:"nW2HBDZ0RgkGRkWQv4sdoQ==",extraWideWorkspace:"em5yAU5C7oWbHDo0sV+3mw==",workspaceMiddleContainer:"Bx1i6z+7q-g19Un039FkIw==",maximized:"Kfygrk5eNBXuECXupuCX8g==",hidden:"RPimX0oediR2hea+lS-OuQ==",workspaceInnerContainer:"_5zxptoWhQKImthth5lAP+g==",workspaceSpacer:"E+9820x1sb5UGVFe-CBnKA==",loader:"vmBQnPcRkkl1-BXrxfe78A==",hiddenExtraWorkspace:"qkbMGOnFdM1xyc3yNGcang==",header:"IZ-2+-SpwQ-zVx81DihBdw==",headerButtons:"_81a2NYhmPVTD24yRK8d2FQ==",workspaceContent:"eetPy90L7DgJzpdTBFH3sg==",overlayHeaderSpacer:"ruc6rYzwbrMxADrXzvYMPA==",isActionMenuOpened:"XgCkc1lLTADQAwD3tG9jVA==",showActionMenu:"sHRt1Fx7e+48j2yyo8ktzg==",marginWorkspaceContent:"TN+S+hiol289+iSd7tDjwA==",workspaceContainerWithActionMenu:"xLg8emf8GoZJo-KsUJV1QQ==",workspaceFixedContainer:"W9cgZ7vfCSiTpKs+aaYksQ==",workspaceContainerWithoutActionMenu:"fRrxdLWEtrSuNfqGjVjqVA=="};function bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var by=function(e){var t,n,r,a,i=e.title,o=e.children,s=e.hasUnsavedChanges,l=void 0!==s&&s,u=(0,b.useLayoutType)(),c=bc(),d=c.setWindowMaximized,f=c.hideWindow,p=c.setHasUnsavedChanges,y=c.openedWindows,g=c.openedGroup,w=c.registeredGroupsByName,x=c.registeredWindowsByName,S=c.registeredWorkspacesByName,j=c.workspaceTitleByWorkspaceName,E=c.setWorkspaceTitle,O=c.isMostRecentlyOpenedWindowHidden,k=bd(),D=k.workspaceName,P=k.isRootWorkspace,A=k.closeWorkspace,C=k.showActionMenu,T=(0,ho.YX)(D),N=y[T],R=null==N?void 0:N.openedWorkspaces.find(function(e){return e.workspaceName===D});if((0,h.useEffect)(function(){(null==R?void 0:R.hasUnsavedChanges)!=l&&p(D,null!=l&&l)},[null==R?void 0:R.hasUnsavedChanges,l,D,p]),(0,h.useEffect)(function(){j[D]!==i&&E(D,i)},[j,D,i,E]),T<0||null==g||null==R)return null;var M=w[g.groupName];if(!M)throw Error("Cannot find registered workspace group ".concat(g.groupName));var I=S[D].window,F=x[I];if(!F)throw Error("Cannot find registered workspace window ".concat(I));var V=F.icon,B=F.canMaximize,z="closable"===M.persistence,U=!!V&&!z,W=N.maximized,$=null!=(t=null==F?void 0:F.width)?t:"narrow",H=Object.values(x).some(function(e){return e.group===g.groupName&&void 0!==e.icon}),G=T<y.length-1||O;return(0,m.jsxs)("div",{className:v()(bm.workspaceOuterContainer,(bh(n={},bm.narrowWorkspace,"narrow"===$),bh(n,bm.widerWorkspace,"wider"===$),bh(n,bm.extraWideWorkspace,"extra-wide"===$),bh(n,bm.isActionMenuOpened,H),n)),children:[(0,m.jsx)("div",{className:v()(bm.workspaceSpacer,bh({},bm.hidden,G))}),(0,m.jsx)("div",{className:v()(bm.workspaceMiddleContainer,(bh(r={},bm.maximized,W),bh(r,bm.hidden,G),bh(r,bm.isRootWorkspace,P),bh(r,bm.showActionMenu,C),r)),children:(0,m.jsxs)("div",{className:v()(bm.workspaceInnerContainer,(bh(a={},bm.maximized,W),bh(a,bm.hidden,G),bh(a,bm.isRootWorkspace,P),a)),children:[(0,m.jsxs)(L.Header,{"aria-label":(0,_.V)("workspaceHeader"),className:bm.header,children:[(0,m.jsx)(L.HeaderName,{prefix:"",children:i}),(0,m.jsx)("div",{className:bm.overlayHeaderSpacer}),(0,m.jsx)(L.HeaderGlobalBar,{className:bm.headerButtons,children:(0,b.isDesktop)(u)?(0,m.jsxs)(m.Fragment,{children:[(B||W)&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":W?(0,_.V)("minimize"):(0,_.V)("maximize"),onClick:function(){return d(I,!W)},children:W?(0,m.jsx)(vC,{}):(0,m.jsx)(vT.hz,{})}),U&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,m.jsx)(es,{})}),!z&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){return A({closeWindow:!0})},children:(0,m.jsx)(eO,{})})]}):(0,m.jsxs)(m.Fragment,{children:[U&&(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("hide"),onClick:function(){return f()},children:(0,m.jsx)(vL,{})}),(0,m.jsx)(L.HeaderGlobalAction,{"aria-label":(0,_.V)("close"),onClick:function(){z?bi():A({closeWindow:!0})},children:(0,m.jsx)(eO,{})})]})})]}),(0,m.jsx)("div",{className:v()(bm.workspaceContent),children:o})]})})]})};let bg="jc6--ve4CL-z756RWjy-Gg==",bv="whLL8QyjyxlJqTQo67X7BQ==",bb="fbyFm5PlSWWUnG9aPE8kTg==",bw="+aVpzvvOae5n83hGlMESXg==";function bx(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function bS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bj(e){var t=e.getIcon,n=e.hasUnsavedChanges,r=e.tagContent;return(0,m.jsxs)(m.Fragment,{children:[t({size:16}),n?(0,m.jsx)("span",{className:"sRkvSBatkOj+HMw7m2i81Q==",children:"!"}):(0,m.jsx)("span",{className:"XMH0DAK2HUw4W4tYCVa-Fg==",children:r})]})}var bE=function(e){var t,n,r,a=e.icon,i=e.label,o=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,b.useLayoutType)(),c=bc(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,y=c.isMostRecentlyOpenedWindowHidden,g=(0,h.useContext)(b.ComponentContext).extension,w=d.findIndex(function(e){return e.windowName===(null==g?void 0:g.extensionId)}),x=d[w],S=null!=x,j=S&&(w<d.length-1||y),E=S&&!j,O=null!=(t=null==x?void 0:x.openedWorkspaces.some(function(e){return e.hasUnsavedChanges}))&&t,k=function(){var e;return(e=function(){var e,t;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:if(!S)return[3,1];return j?f(x.windowName):p(),[3,3];case 1:return[4,null==(e=null==l?void 0:l())||e];case 2:n.sent()&&(t=s.workspaceName,bo(t,s.workspaceProps,s.windowProps)),n.label=3;case 3:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){bx(i,r,a,o,s,"next",e)}function s(e){bx(i,r,a,o,s,"throw",e)}o(void 0)})})()};return"tablet"===u||"phone"===u?(0,m.jsxs)(L.Button,{className:v()(bg,(bS(n={},bb,S&&!E),bS(n,bw,E),n)),iconDescription:i,kind:"ghost",onClick:k,role:"button",tabIndex:0,size:"md",children:[(0,m.jsx)("span",{className:bv,children:(0,m.jsx)(bj,{hasUnsavedChanges:O,getIcon:a,tagContent:o})}),(0,m.jsx)("span",{children:i})]}):(0,m.jsx)(L.IconButton,{align:"left","aria-label":i,className:v()(bg,(bS(r={},bb,S&&!E),bS(r,bw,E),r)),enterDelayMs:300,kind:"ghost",label:i,onClick:k,size:"md",children:(0,m.jsx)("div",{className:bv,children:(0,m.jsx)(bj,{hasUnsavedChanges:O,getIcon:a,tagContent:o})})})},bO=n(3447);let bk="_6Gke0iocK8-7xF6UDXtjtQ==";function bD(e){var t=e.workspaceGroup,n=e.groupProps,r=(0,b.useLayoutType)(),a=t.persistence;return(0,m.jsx)("aside",{className:"T2lMV3y-c2DH29-1sQdY7g==",children:(0,m.jsxs)("div",{className:bk,children:["closable"==a&&(0,b.isDesktop)(r)&&(0,m.jsx)(L.IconButton,{align:"left",onClick:function(){return bi()},label:(0,_.V)("close"),kind:"ghost",children:(0,m.jsx)(eO,{})}),(0,m.jsx)(b.ComponentContext.Provider,{value:{moduleName:t.moduleName,featureName:t.name},children:(0,m.jsx)(b.ExtensionSlot,{className:bk,name:t.name,state:{groupProps:n}})})]})})}var bP=n(8148);function bA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bC(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function bT(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){bC(i,r,a,o,s,"next",e)}function s(e){bC(i,r,a,o,s,"throw",e)}o(void 0)})}}function bN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bR(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var bM=function(e){var t=e.lifeCycle,n=e.openedWorkspace,r=e.openedWindow,a=e.isRootWorkspace,i=e.isLeafWorkspace,o=e.showActionMenu,s=bc(),l=s.openedGroup,u=s.closeWorkspace,c=s.openChildWorkspace,d=(0,h.useMemo)(function(){return n&&{closeWorkspace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bT(function(){var t,a,i,o,s,l;return bR(this,function(c){switch(c.label){case 0:if(a=void 0!==(t=e.closeWindow)&&t,o=void 0!==(i=e.discardUnsavedChanges)&&i,!a)return[3,3];if(s=o)return[3,2];return[4,bl({reason:"CLOSE_WINDOW",explicit:!0,windowName:r.windowName})];case 1:s=c.sent(),c.label=2;case 2:if(s)return u(r.openedWorkspaces[0].workspaceName),[2,!0];return[2,!1];case 3:if(l=o)return[3,5];return[4,bl({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:r.windowName,workspaceName:n.workspaceName})];case 4:l=c.sent(),c.label=5;case 5:if(l)return u(n.workspaceName),[2,!0];return[2,!1];case 6:return[2]}})})()},launchChildWorkspace:function(e,t){return bT(function(){var a,i,o;return bR(this,function(s){switch(s.label){case 0:if(a=n.workspaceName,-1===(o=(i=r.openedWorkspaces).findIndex(function(e){return e.workspaceName===a})))return[2];if(o===i.length-1||!i.slice(o+1).some(function(e){return e.hasUnsavedChanges}))return[3,2];return[4,bl({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:r.windowName,workspaceName:i[o+1].workspaceName})];case 1:if(!s.sent())return[2];s.label=2;case 2:return c(a,e,t||{}),[2]}})})()},workspaceName:n.workspaceName,workspaceProps:n.props,windowProps:r.props,groupProps:l&&l.props?l.props:null,isRootWorkspace:a,isLeafWorkspace:i,windowName:r.windowName,showActionMenu:o}},[n,u,l,r]);if(!t){var f,p,y=ho.J_.getState().registeredWorkspacesByName[n.workspaceName],g=y&&y.window?y.window:void 0,b=ho.J_.getState().registeredWindowsByName,w=g?b[g]:void 0,x=w&&w.width?w.width:"narrow",S=Object.values(b).some(function(e){return e.group===(null==l?void 0:l.groupName)&&void 0!==e.icon});return(0,m.jsxs)("div",{className:v()(bm.workspaceOuterContainer,(bN(f={},bm.narrowWorkspace,"narrow"===x),bN(f,bm.widerWorkspace,"wider"===x),bN(f,bm.extraWideWorkspace,"extra-wide"===x),bN(f,bm.isActionMenuOpened,S),f)),children:[(0,m.jsx)("div",{className:bm.workspaceSpacer}),(0,m.jsx)("div",{className:v()(bm.workspaceMiddleContainer,(bN(p={},bm.isRootWorkspace,a),bN(p,bm.showActionMenu,o),p)),children:(0,m.jsx)("div",{className:v()(bm.workspaceInnerContainer,bN({},bm.isRootWorkspace,a)),children:(0,m.jsx)(L.InlineLoading,{className:bm.loader,description:"".concat((0,_.V)("loading")," ...")})})})]})}return(0,m.jsx)(vZ,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){bN(e,t,n[t])})}return e}({config:t,mountParcel:ha.mountRootParcel},d),n.workspaceName)};let bI=function(e){var t,n=e.openedWindow,r=e.showActionMenu,a=n.openedWorkspaces,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)())||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return bA(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bA(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1],l=ho.J_.getState().registeredWorkspacesByName;return(0,h.useEffect)(function(){Promise.all(a.map(function(e){var t=l[e.workspaceName],n=t.moduleName,r=t.component;return(0,bP.o)(n,r)})).then(s)},[a]),(0,m.jsx)(m.Fragment,{children:a.map(function(e,t){return(0,m.jsx)(bM,{openedWorkspace:e,openedWindow:n,lifeCycle:o&&o[t]?o[t]:void 0,isRootWorkspace:0===t,isLeafWorkspace:t===a.length-1,showActionMenu:r},e.uuid)})})};function bL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_(e){e&&(0,hz.createRoot)(e).render((0,m.jsx)(bF,{}))}function bF(){var e,t=bc(),n=t.openedGroup,r=t.openedWindows,a=t.registeredGroupsByName,i=t.registeredWindowsByName;if((0,h.useEffect)(function(){return(0,bO.mI)("before-page-changed",function(e){var t=e.newPage,r=e.cancelNavigation,i=e.oldUrl,o=e.newUrl;if(n){if(t)return void r(bi().then(function(e){return!e}));var s=a[n.groupName],l=null==s?void 0:s.scopePattern;l&&function(e,t,n){try{var r=new URL(t,window.location.origin).pathname,a=new URL(n,window.location.origin).pathname,i=new RegExp(e),o=r.match(i),s=a.match(i);if(!o||!s)return!0;if(o.length>1)return!o.slice(1).every(function(e,t){return e===s[t+1]});return!1}catch(e){return!0}}(l,i,o)&&r(bi().then(function(e){return!e}))}})},[n,a]),!n)return null;var o=a[n.groupName],s=r.some(function(e){return e.maximized}),l=o.name,u=Object.values(i).filter(function(e){return e.group===l&&void 0!==e.icon}).sort(function(e,t){var n,r;return(null!=(n=e.order)?n:Number.MAX_VALUE)-(null!=(r=t.order)?r:Number.MAX_VALUE)}).length>0;return(0,m.jsxs)("div",{className:v()("_2u2mcnHqn77Jo33H5a1H2g==",(bL(e={},"_7RHYZQ-hEc8EPJUY-c9Hpg==",o.overlay),bL(e,"gvJRdHcF9cqv2qaFk6opjw==",s),e)),children:[(0,m.jsx)("div",{className:"_40ITOKKqqE8nvSQt409qiA==",children:r.map(function(e){return(0,m.jsx)(bI,{openedWindow:e,showActionMenu:u},e.windowName)})}),u&&(0,m.jsx)(bD,{workspaceGroup:o,groupProps:n.props})]})}function bV(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bB(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var bU,bW,b$,bH,bG,bq,bY,bK,bZ,bX,bQ,bJ,b0,b1,b2,b3,b4,b5,b6,b8,b9,b7,we,wt,wn,wr,wa,wi,wo={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ws={duration:.5,overwrite:!1,delay:0},wl=2*Math.PI,wu=wl/4,wc=0,wd=Math.sqrt,wf=Math.cos,wp=Math.sin,wm=function(e){return"string"==typeof e},wh=function(e){return"function"==typeof e},wy=function(e){return"number"==typeof e},wg=function(e){return void 0===e},wv=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},wb=function(e){return!1!==e},ww=function(){return"u">typeof window},wx=function(e){return wh(e)||wm(e)},wS="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},wj=Array.isArray,wE=/random\([^)]+\)/g,wO=/,\s*/g,wk=/(?:-?\.?\d|\.)+/gi,wD=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,wP=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,wA=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wC=/[+-]=-?[.\d]+/,wT=/[^,'"\[\]\s]+/gi,wN=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,wR={},wM={},wI=function(e){return(wM=xt(e,wR))&&S2},wL=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},w_=function(e,t){return!t&&console.warn(e)},wF=function(e,t){return e&&(wR[e]=t)&&wM&&(wM[e]=t)||wR},wV=function(){return 0},wB={suppressEvents:!0,isStart:!0,kill:!1},wz={suppressEvents:!0,kill:!1},wU={suppressEvents:!0},wW={},w$=[],wH={},wG={},wq={},wY=30,wK=[],wZ="",wX=function(e){var t,n,r=e[0];if(wv(r)||wh(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=wK.length;n--&&!wK[n].targetTest(r););t=wK[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Sl(e[n],t)))||e.splice(n,1);return e},wQ=function(e){return e._gsap||wX(xI(e))[0]._gsap},wJ=function(e,t,n){return(n=e[t])&&wh(n)?e[t]():wg(n)&&e.getAttribute&&e.getAttribute(t)||n},w0=function(e,t){return(e=e.split(",")).forEach(t)||e},w1=function(e){return Math.round(1e5*e)/1e5||0},w2=function(e){return Math.round(1e7*e)/1e7||0},w3=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+r:"-"===n?e-r:"*"===n?e*r:e/r},w4=function(e,t){for(var n=t.length,r=0;0>e.indexOf(t[r])&&++r<n;);return r<n},w5=function(){var e,t,n=w$.length,r=w$.slice(0);for(e=0,wH={},w$.length=0;e<n;e++)(t=r[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},w6=function(e){return!!(e._initted||e._startAt||e.add)},w8=function(e,t,n,r){w$.length&&!b6&&w5(),e.render(t,n,r||!!(b6&&t<0&&w6(e))),w$.length&&!b6&&w5()},w9=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(wT).length<2?t:wm(e)?e.trim():e},w7=function(e){return e},xe=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},xt=function(e,t){for(var n in t)e[n]=t[n];return e},xn=function e(t,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=wv(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},xr=function(e,t){var n,r={};for(n in e)n in t||(r[n]=e[n]);return r},xa=function(e){var t,n=e.parent||b9,r=e.keyframes?(t=wj(e.keyframes),function(e,n){for(var r in n)r in e||"duration"===r&&t||"ease"===r||(e[r]=n[r])}):xe;if(wb(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},xi=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},xo=function(e,t,n,r,a){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i,o=e[r];if(a)for(i=t[a];o&&o[a]>i;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},xs=function(e,t,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a=t._prev,i=t._next;a?a._next=i:e[n]===t&&(e[n]=i),i?i._prev=a:e[r]===t&&(e[r]=a),t._next=t._prev=t.parent=null},xl=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},xu=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},xc=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},xd=function(e,t,n,r){return e._startAt&&(b6?e._startAt.revert(wz):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},xf=function(e){return e._repeat?xp(e._tTime,e=e.duration()+e._rDelay)*e:0},xp=function(e,t){var n=Math.floor(e=w2(e/t));return e&&n===e?n-1:n},xm=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},xh=function(e){return e._end=w2(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},xy=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=w2(n._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),xh(e),n._dirty||xu(n,e)),e},xg=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=xm(e.rawTime(),t),(!t._dur||xT(0,t.totalDuration(),n)-t._tTime>1e-8)&&t.render(n,!0)),xu(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},xv=function(e,t,n,r){return t.parent&&xl(t),t._start=w2((wy(n)?n:n||e!==b9?xP(e,n,t):e._time)+t._delay),t._end=w2(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),xo(e,t,"_first","_last",e._sort?"_start":0),xS(t)||(e._recent=t),r||xg(e,t),e._ts<0&&xy(e,e._tTime),e},xb=function(e,t){return(wR.ScrollTrigger||wL("scrollTrigger",t))&&wR.ScrollTrigger.create(t,e)},xw=function(e,t,n,r,a){return(Sx(e,t,a),e._initted)?!n&&e._pt&&!b6&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&wr!==x4.frame?(w$.push(e),e._lazy=[a,r],1):void 0:1},xx=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(0>n.rawTime()||e(n))},xS=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xj=function(e,t,n,r){var a,i,o,s=e.ratio,l=t<0||!t&&(!e._start&&xx(e)&&!(!e._initted&&xS(e))||(e._ts<0||e._dp._ts<0)&&!xS(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(i=xp(c=xT(0,e._tDur,t),u),e._yoyo&&1&i&&(l=1-l),i!==xp(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||b6||r||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&xw(e,t,r,n,c))return;for(o=e._zTime,e._zTime=t||1e-8*!!n,n||(n=t&&!o),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,a=e._pt;a;)a.r(l,a.d),a=a._next;t<0&&xd(e,t,n,!0),e._onUpdate&&!n&&xG(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&xG(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&xl(e,1),n||b6||(xG(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xE=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<t)return r;r=r._prev}},xO=function(e,t,n,r){var a=e._repeat,i=w2(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=i/e._dur),e._dur=i,e._tDur=a?a<0?1e10:w2(i*(a+1)+e._rDelay*a):i,o>0&&!r&&xy(e,e._tTime=e._tDur*o),e.parent&&xh(e),n||xu(e.parent,e),e},xk=function(e){return bV(e,Sc)?xu(e):xO(e,e._dur)},xD={_start:0,endTime:wV,totalDuration:wV},xP=function e(t,n,r){var a,i,o,s=t.labels,l=t._recent||xD,u=t.duration()>=1e8?l.endTime(!1):t._dur;return wm(n)&&(isNaN(n)||n in s)?(i=n.charAt(0),o="%"===n.substr(-1),a=n.indexOf("="),"<"===i||">"===i)?(a>=0&&(n=n.replace(/=/,"")),("<"===i?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(a<0?l:r).totalDuration()/100:1)):a<0?(n in s||(s[n]=u),s[n]):(i=parseFloat(n.charAt(a-1)+n.substr(a+1)),o&&r&&(i=i/100*(wj(r)?r[0]:r).totalDuration()),a>1?e(t,n.substr(0,a-1),r)+i:u+i):null==n?u:+n},xA=function(e,t,n){var r,a,i=wy(t[1]),o=(i?2:1)+(e<2?0:1),s=t[o];if(i&&(s.duration=t[1]),s.parent=n,e){for(r=s,a=n;a&&!("immediateRender"in r);)r=a.vars.defaults||{},a=wb(a.vars.inherit)&&a.parent;s.immediateRender=wb(r.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new SP(t[0],s,t[o+1])},xC=function(e,t){return e||0===e?t(e):t},xT=function(e,t,n){return n<e?e:n>t?t:n},xN=function(e,t){return wm(e)&&(t=wN.exec(e))?t[1]:""},xR=[].slice,xM=function(e,t){return e&&wv(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&wv(e[0]))&&!e.nodeType&&e!==b7},xI=function(e,t,n){var r;return b8&&!t&&b8.selector?b8.selector(e):wm(e)&&!n&&(we||!x5())?xR.call((t||wt).querySelectorAll(e),0):wj(e)?(void 0===r&&(r=[]),e.forEach(function(e){var t;return wm(e)&&!n||xM(e,1)?(t=r).push.apply(t,xI(e)):r.push(e)})||r):xM(e)?xR.call(e,0):e?[e]:[]},xL=function(e){return e=xI(e)[0]||w_("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return xI(t,n.querySelectorAll?n:n===e?w_("Invalid scope")||wt.createElement("div"):e)}},x_=function(e){return e.sort(function(){return .5-Math.random()})},xF=function(e){if(wh(e))return e;var t=wv(e)?e:{each:e},n=Sr(t.ease),r=t.from||0,a=parseFloat(t.base)||0,i={},o=r>0&&r<1,s=isNaN(r)||o,l=t.axis,u=r,c=r;return wm(r)?u=c=({center:.5,edges:.5,end:1})[r]||0:!o&&s&&(u=r[0],c=r[1]),function(e,o,d){var f,p,m,h,y,g,v,b,w,x=(d||t).length,S=i[x];if(!S){if(!(w="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(v=-1e8;v<(v=d[w++].getBoundingClientRect().left)&&w<x;);w<x&&w--}for(g=0,S=i[x]=[],f=s?Math.min(w,x)*u-.5:r%w,p=1e8===w?0:s?x*c/w-.5:r/w|0,v=0,b=1e8;g<x;g++)m=g%w-f,h=p-(g/w|0),S[g]=y=l?Math.abs("y"===l?h:m):wd(m*m+h*h),y>v&&(v=y),y<b&&(b=y);"random"===r&&x_(S),S.max=v-b,S.min=b,S.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===r?-1:1),S.b=x<0?a-x:a,S.u=xN(t.amount||t.each)||0,n=n&&x<0?Sn(n):n}return x=(S[e]-S.min)/S.max||0,w2(S.b+(n?n(x):x)*S.v)+S.u}},xV=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=w2(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(wy(n)?0:xN(n))}},xB=function(e,t){var n,r,a=wj(e);return!a&&wv(e)&&(n=a=e.radius||1e8,e.values?(r=!wy((e=xI(e.values))[0]))&&(n*=n):e=xV(e.increment)),xC(t,a?wh(e)?function(t){return Math.abs((r=e(t))-t)<=n?r:t}:function(t){for(var a,i,o=parseFloat(r?t.x:t),s=parseFloat(r?t.y:0),l=1e8,u=0,c=e.length;c--;)(a=r?(a=e[c].x-o)*a+(i=e[c].y-s)*i:Math.abs(e[c]-o))<l&&(l=a,u=c);return u=!n||l<=n?e[u]:t,r||u===t||wy(t)?u:u+xN(t)}:xV(e))},xz=function(e,t,n,r){return xC(wj(e)?!t:!0===n?(n=0,!1):!r,function(){return wj(e)?e[~~(Math.random()*e.length)]:(r=(n=n||1e-5)<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*r)/r})},xU=function(e,t,n){return xC(n,function(n){return e[~~t(n)]})},xW=function(e){return e.replace(wE,function(e){var t=e.indexOf("[")+1,n=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(wO);return xz(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},x$=function(e,t,n,r,a){var i=t-e,o=r-n;return xC(a,function(t){return n+((t-e)/i*o||0)})},xH=function(e,t,n){var r,a,i,o=e.labels,s=1e8;for(r in o)(a=o[r]-t)<0==!!n&&a&&s>(a=Math.abs(a))&&(i=r,s=a);return i},xG=function(e,t,n){var r,a,i,o=e.vars,s=o[t],l=b8,u=e._ctx;if(s)return r=o[t+"Params"],a=o.callbackScope||e,n&&w$.length&&w5(),u&&(b8=u),i=r?s.apply(a,r):s.call(a),b8=l,i},xq=function(e){return xl(e),e.scrollTrigger&&e.scrollTrigger.kill(!!b6),1>e.progress()&&xG(e,"onInterrupt"),e},xY=[],xK=function(e){if(e)if(e=!e.name&&e.default||e,ww()||e.headless){var t=e.name,n=wh(e),r=t&&!n&&e.init?function(){this._props=[]}:e,a={init:wV,render:S_,add:Sv,kill:SV,modifier:SF,rawVars:0},i={targetTest:0,get:0,getSetter:SR,aliases:{},register:0};if(x5(),e!==r){if(wG[t])return;xe(r,xe(xr(e,a),i)),xt(r.prototype,xt(a,xr(e,i))),wG[r.prop=t]=r,e.targetTest&&(wK.push(r),wW[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}wF(t,r),e.register&&e.register(S2,r,SU)}else xY.push(e)},xZ={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xX=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*255+.5|0},xQ=function(e,t,n){var r,a,i,o,s,l,u,c,d,f,p=e?wy(e)?[e>>16,e>>8&255,255&e]:0:xZ.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),xZ[e])p=xZ[e];else if("#"===e.charAt(0)){if(e.length<6&&(r=e.charAt(1),e="#"+r+r+(a=e.charAt(2))+a+(i=e.charAt(3))+i+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=f=e.match(wk),t){if(~e.indexOf("="))return p=e.match(wD),n&&p.length<4&&(p[3]=1),p}else o=p[0]%360/360,s=p[1]/100,a=(l=p[2]/100)<=.5?l*(s+1):l+s-l*s,r=2*l-a,p.length>3&&(p[3]*=1),p[0]=xX(o+1/3,r,a),p[1]=xX(o,r,a),p[2]=xX(o-1/3,r,a);else p=e.match(wk)||xZ.transparent;p=p.map(Number)}return t&&!f&&(r=p[0]/255,l=((u=Math.max(r,a=p[1]/255,i=p[2]/255))+(c=Math.min(r,a,i)))/2,u===c?o=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),o=(u===r?(a-i)/d+6*(a<i):u===a?(i-r)/d+2:(r-a)/d+4)*60),p[0]=~~(o+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),n&&p.length<4&&(p[3]=1),p},xJ=function(e){var t=[],n=[],r=-1;return e.split(x1).forEach(function(e){var a=e.match(wP)||[];t.push.apply(t,a),n.push(r+=a.length+1)}),t.c=n,t},x0=function(e,t,n){var r,a,i,o,s="",l=(e+s).match(x1),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=xQ(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),n&&(i=xJ(e),(r=n.c).join(s)!==i.c.join(s)))for(o=(a=e.replace(x1,"1").split(wP)).length-1;c<o;c++)s+=a[c]+(~r.indexOf(c)?l.shift()||u+"0,0,0,0)":(i.length?i:l.length?l:n).shift());if(!a)for(o=(a=e.split(x1)).length-1;c<o;c++)s+=a[c]+l[c];return s+a[o]},x1=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in xZ)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),x2=/hsl[a]?\(/,x3=function(e){var t,n=e.join(" ");if(x1.lastIndex=0,x1.test(n))return t=x2.test(n),e[1]=x0(e[1],t),e[0]=x0(e[0],t,xJ(e[1])),!0},x4=(bZ=Date.now,bX=500,bQ=33,b0=bJ=bZ(),b1=1e3/240,b2=1e3/240,b3=[],b4=function e(t){var n,r,a,i,o=bZ()-b0,s=!0===t;if((o>bX||o<0)&&(bJ+=o-bQ),b0+=o,((n=(a=b0-bJ)-b2)>0||s)&&(i=++bq.frame,bY=a-1e3*bq.time,bq.time=a/=1e3,b2+=n+(n>=b1?4:b1-n),r=1),s||(b$=bH(e)),r)for(bK=0;bK<b3.length;bK++)b3[bK](a,bY,i,t)},bq={time:0,frame:0,tick:function(){b4(!0)},deltaRatio:function(e){return bY/(1e3/(e||60))},wake:function(){wn&&(!we&&ww()&&(wt=(b7=we=window).document||{},wR.gsap=S2,(b7.gsapVersions||(b7.gsapVersions=[])).push(S2.version),wI(wM||b7.GreenSockGlobals||!b7.gsap&&b7||{}),xY.forEach(xK)),bG="u">typeof requestAnimationFrame&&requestAnimationFrame,b$&&bq.sleep(),bH=bG||function(e){return setTimeout(e,b2-1e3*bq.time+1|0)},wi=1,b4(2))},sleep:function(){(bG?cancelAnimationFrame:clearTimeout)(b$),wi=0,bH=wV},lagSmoothing:function(e,t){bQ=Math.min(t||33,bX=e||1/0)},fps:function(e){b1=1e3/(e||240),b2=1e3*bq.time+b1},add:function(e,t,n){var r=t?function(t,n,a,i){e(t,n,a,i),bq.remove(r)}:e;return bq.remove(e),b3[n?"unshift":"push"](r),x5(),r},remove:function(e,t){~(t=b3.indexOf(e))&&b3.splice(t,1)&&bK>=t&&bK--},_listeners:b3}),x5=function(){return!wi&&x4.wake()},x6={},x8=/^[\d.\-M][\d.\-,\s]/,x9=/["']/g,x7=function(e){for(var t,n,r,a={},i=e.substr(1,e.length-3).split(":"),o=i[0],s=1,l=i.length;s<l;s++)n=i[s],t=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,t),a[o]=isNaN(r)?r.replace(x9,"").trim():+r,o=n.substr(t+1).trim();return a},Se=function(e){var t=e.indexOf("(")+1,n=e.indexOf(")"),r=e.indexOf("(",t);return e.substring(t,~r&&r<n?e.indexOf(")",n+1):n)},St=function(e){var t=(e+"").split("("),n=x6[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[x7(t[1])]:Se(e).split(",").map(w9)):x6._CE&&x8.test(e)?x6._CE("",e):n},Sn=function(e){return function(t){return 1-e(1-t)}},Sr=function(e,t){return e&&(wh(e)?e:x6[e]||St(e))||t},Sa=function(e,t,n,r){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===r&&(r=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var a,i={easeIn:t,easeOut:n,easeInOut:r};return w0(e,function(e){for(var t in x6[e]=wR[e]=i,x6[a=e.toLowerCase()]=n,i)x6[a+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=x6[e+"."+t]=i[t]}),i},Si=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},So=function e(t,n,r){var a=n>=1?n:1,i=(r||(t?.3:.45))/(n<1?n:1),o=i/wl*(Math.asin(1/a)||0),s=function(e){return 1===e?1:a*Math.pow(2,-10*e)*wp((e-o)*i)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Si(s);return i=wl/i,l.config=function(n,r){return e(t,n,r)},l},Ss=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},a="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:Si(r);return a.config=function(n){return e(t,n)},a};w0("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Sa(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},function(e){return 1-Math.pow(1-e,n)},function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow((1-e)*2,n)/2})}),x6.Linear.easeNone=x6.none=x6.Linear.easeIn,Sa("Elastic",So("in"),So("out"),So()),Sf=2*(Sd=1/2.75),Sp=2.5*Sd,Sa("Bounce",function(e){return 1-Sm(1-e)},Sm=function(e){return e<Sd?7.5625*e*e:e<Sf?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<Sp?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),Sa("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Sa("Circ",function(e){return-(wd(1-e*e)-1)}),Sa("Sine",function(e){return 1===e?1:-wf(e*wu)+1}),Sa("Back",Ss("in"),Ss("out"),Ss()),x6.SteppedEase=x6.steps=wR.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,r=e+ +!t,a=+!!t,i=.99999999;return function(e){return((r*xT(0,i,e)|0)+a)*n}}},ws.ease=x6["quad.out"],w0("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return wZ+=e+","+e+"Params,"});var Sl=function(e,t){this.id=wc++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:wJ,this.set=t?t.getSetter:SR},Su=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xO(this,+e.duration,1,1),this.data=e.data,b8&&(this._ctx=b8,b8.data.push(this)),wi||x4.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xO(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(x5(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(xy(this,e),!n._dp||n.parent||xg(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:-((n.totalDuration()-n._tTime)/n._ts))&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&xv(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),w8(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+xf(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+xf(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?xp(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?xm(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(xT(-Math.abs(this._delay),this.totalDuration(),n),!1!==t),xh(this),xc(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(x5(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=w2(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&xv(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(wb(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?xm(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=wU);var t=b6;return b6=e,w6(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),b6=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xk(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xk(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(xP(this,e),wb(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,wb(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var a=wh(e)?e:w7,i=function(){var e=t.then;t.then=null,n&&n(),wh(a)&&(a=a(t))&&(a.then||a===t)&&(t.then=e),r(a),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i})},t.kill=function(){xq(this)},e}();xe(Su.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Sc=function(e){function t(t,n){var r;return void 0===t&&(t={}),(r=e.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=wb(t.sortChildren),b9&&xv(t.parent||b9,bB(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&xb(bB(r),t.scrollTrigger),r}bz(t,e);var n=t.prototype;return n.to=function(e,t,n){return xA(0,arguments,this),this},n.from=function(e,t,n){return xA(1,arguments,this),this},n.fromTo=function(e,t,n,r){return xA(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,xa(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new SP(e,t,xP(this,n),1),this},n.call=function(e,t,n){return xv(this,SP.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,a,i,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=i,n.onCompleteParams=o,n.parent=this,new SP(e,n,xP(this,a)),this},n.staggerFrom=function(e,t,n,r,a,i,o){return n.runBackwards=1,xa(n).immediateRender=wb(n.immediateRender),this.staggerTo(e,t,n,r,a,i,o)},n.staggerFromTo=function(e,t,n,r,a,i,o,s){return r.startAt=n,xa(r).immediateRender=wb(r.immediateRender),this.staggerTo(e,t,r,a,i,o,s)},n.render=function(e,t,n){var r,a,i,o,s,l,u,c,d,f,p,m,h=this._time,y=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=e<=0?0:w2(e),b=this._zTime<0!=e<0&&(this._initted||!g);if(this!==b9&&v>y&&e>=0&&(v=y),v!==this._tTime||n||b){if(h!==this._time&&g&&(v+=this._time-h,e+=this._time-h),r=v,d=this._start,l=!(c=this._ts),b&&(g||(h=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,s=g+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,n);if(r=w2(v%s),v===y?(o=this._repeat,r=g):((o=~~(f=w2(v/s)))&&o===f&&(r=g,o--),r>g&&(r=g)),f=xp(this._tTime,s),!h&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),p&&1&o&&(r=g-r,m=1),o!==f&&!this._lock){var w=p&&1&f,x=w===(p&&1&o);if(o<f&&(w=!w),h=w?0:v%g?g:v,this._lock=1,this.render(h||(m?0:w2(o*s)),t,!g)._lock=0,this._tTime=v,!t&&this.parent&&xG(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1,f=o),h&&h!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(g=this._dur,y=this._tDur,x&&(this._lock=2,h=w?g:-1e-4,this.render(h,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=xE(this,w2(h),w2(r)))&&(v-=r-(r=u._start)),this._tTime=v,this._time=r,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,h=0),!h&&v&&g&&!t&&!f&&(xG(this,"onStart"),this._tTime!==v))return this;if(r>=h&&e>=0)for(a=this._first;a;){if(i=a._next,(a._act||r>=a._start)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(r-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(r-a._start)*a._ts,t,n),r!==this._time||!this._ts&&!l){u=0,i&&(v+=this._zTime=-1e-8);break}}a=i}else{a=this._last;for(var S=e<0?e:r;a;){if(i=a._prev,(a._act||S<=a._end)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(S-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(S-a._start)*a._ts,t,n||b6&&w6(a)),r!==this._time||!this._ts&&!l){u=0,i&&(v+=this._zTime=S?-1e-8:1e-8);break}}a=i}}if(u&&!t&&(this.pause(),u.render(r>=h?0:-1e-8)._zTime=r>=h?1:-1,this._ts))return this._start=d,xh(this),this.render(e,t,n);this._onUpdate&&!t&&xG(this,"onUpdate",!0),(v===y&&this._tTime>=this.totalDuration()||!v&&h)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts))&&!this._lock&&((e||!g)&&(v===y&&this._ts>0||!v&&this._ts<0)&&xl(this,1),t||e<0&&!h||!v&&!h&&y||(xG(this,v===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<y&&this.timeScale()>0)&&this._prom()))}return this},n.add=function(e,t){var n=this;if(wy(t)||(t=xP(this,t,e)),!bV(e,Su)){if(wj(e))return e.forEach(function(e){return n.add(e,t)}),this;if(wm(e))return this.addLabel(e,t);if(!wh(e))return this;e=SP.delayedCall(0,e)}return this!==e?xv(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var a=[],i=this._first;i;)i._start>=r&&(bV(i,SP)?t&&a.push(i):(n&&a.push(i),e&&a.push.apply(a,i.getChildren(!0,t,n)))),i=i._next;return a},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return wm(e)?this.removeLabel(e):wh(e)?this.killTweensOf(e):(e.parent===this&&xs(this,e),e===this._recent&&(this._recent=this._last),xu(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=w2(x4.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=xP(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=SP.delayedCall(0,t||wV,n);return r.data="isPause",this._hasPause=1,xv(this,r,xP(this,e))},n.removePause=function(e){var t=this._first;for(e=xP(this,e);t;)t._start===e&&"isPause"===t.data&&xl(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),a=r.length;a--;)Sh!==r[a]&&r[a].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],a=xI(e),i=this._first,o=wy(t);i;)bV(i,SP)?w4(i._targets,a)&&(o?(!Sh||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&r.push(i):(n=i.getTweensOf(a,t)).length&&r.push.apply(r,n),i=i._next;return r},n.tweenTo=function(e,t){t=t||{};var n,r=this,a=xP(r,e),i=t,o=i.startAt,s=i.onStart,l=i.onStartParams,u=i.immediateRender,c=SP.to(r,xe({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:t.duration||Math.abs((a-(o&&"time"in o?o.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var e=t.duration||Math.abs((a-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==e&&xO(c,e,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xe({startAt:{time:xP(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),xH(this,xP(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),xH(this,xP(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);var r,a=this._first,i=this.labels;for(e=w2(e);a;)a._start>=n&&(a._start+=e,a._end+=e),a=a._next;if(t)for(r in i)i[r]>=n&&(i[r]+=e);return xu(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),xu(this)},n.totalDuration=function(e){var t,n,r,a=0,i=this._last,o=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(r=this.parent;i;)t=i._prev,i._dirty&&i.totalDuration(),(n=i._start)>o&&this._sort&&i._ts&&!this._lock?(this._lock=1,xv(this,i,n-i._delay,1)._lock=0):o=n,n<0&&i._ts&&(a-=n,(!r&&!this._dp||r&&r.smoothChildTiming)&&(this._start+=w2(n/this._ts),this._time-=n,this._tTime-=n),this.shiftChildren(-n,!1,-Infinity),o=0),i._end>a&&i._ts&&(a=i._end),i=t;xO(this,this===b9&&this._time>a?this._time:a,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(b9._ts&&(w8(b9,xm(e,b9)),wr=x4.frame),x4.frame>=wY){wY+=wo.autoSleep||120;var t=b9._first;if((!t||!t._ts)&&wo.autoSleep&&x4._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||x4.sleep()}}},t}(Su);xe(Sc.prototype,{_lock:0,_hasPause:0,_forcing:0});var Sd,Sf,Sp,Sm,Sh,Sy,Sg=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,m,h=new SU(this._pt,e,t,0,1,SL,null,a),y=0,g=0;for(h.b=n,h.e=r,n+="",r+="",(p=~r.indexOf("random("))&&(r=xW(r)),i&&(i(m=[n,r],e,t),n=m[0],r=m[1]),l=n.match(wA)||[];s=wA.exec(r);)c=s[0],d=r.substring(y,s.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[g++]&&(f=parseFloat(l[g-1])||0,h._pt={_next:h._pt,p:d||1===g?d:",",s:f,c:"="===c.charAt(1)?w3(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},y=wA.lastIndex);return h.c=y<r.length?r.substring(y,r.length):"",h.fp=o,(wC.test(r)||p)&&(h.e=0),this._pt=h,h},Sv=function(e,t,n,r,a,i,o,s,l,u){wh(r)&&(r=r(a||0,e,i));var c,d=e[t],f="get"!==n?n:wh(d)?l?e[t.indexOf("set")||!wh(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,p=wh(d)?l?ST:SC:SA;if(wm(r)&&(~r.indexOf("random(")&&(r=xW(r)),"="===r.charAt(1)&&((c=w3(f,r)+(xN(f)||0))||0===c)&&(r=c)),!u||f!==r||Sy)return isNaN(f*r)||""===r?(d||t in e||wL(t,r),Sg.call(this,e,t,f,r,p,s||wo.stringFilter,l)):(c=new SU(this._pt,e,t,+f||0,r-(f||0),"boolean"==typeof d?SI:SM,0,p),l&&(c.fp=l),o&&c.modifier(o,this,e),this._pt=c)},Sb=function(e,t,n,r,a){if(wh(e)&&(e=SO(e,a,t,n,r)),!wv(e)||e.style&&e.nodeType||wj(e)||wS(e))return wm(e)?SO(e,a,t,n,r):e;var i,o={};for(i in e)o[i]=SO(e[i],a,t,n,r);return o},Sw=function(e,t,n,r,a,i){var o,s,l,u;if(wG[e]&&!1!==(o=new wG[e]).init(a,o.rawVars?t[e]:Sb(t[e],r,a,i,n),n,r,i)&&(n._pt=s=new SU(n._pt,a,e,0,1,o.render,o,0,o.priority),n!==wa))for(l=n._ptLookup[n._targets.indexOf(a)],u=o._props.length;u--;)l[o._props[u]]=s;return o},Sx=function e(t,n,r){var a,i,o,s,l,u,c,d,f,p,m,h,y,g=t.vars,v=g.ease,b=g.startAt,w=g.immediateRender,x=g.lazy,S=g.onUpdate,j=g.runBackwards,E=g.yoyoEase,O=g.keyframes,k=g.autoRevert,D=t._dur,P=t._startAt,A=t._targets,C=t.parent,T=C&&"nested"===C.data?C.vars.targets:A,N="auto"===t._overwrite&&!b5,R=t.timeline,M=g.easeReverse||E;if(!R||O&&v||(v="none"),t._ease=Sr(v,ws.ease),t._rEase=M&&(Sr(M)||t._ease),t._from=!R&&!!g.runBackwards,t._from&&(t.ratio=1),!R||O&&!g.stagger){if(h=(d=A[0]?wQ(A[0]).harness:0)&&g[d.prop],a=xr(g,wW),P&&(P._zTime<0&&P.progress(1),n<0&&j&&w&&!k?P.render(-1,!0):P.revert(j&&D?wz:wB),P._lazy=0),b){if(xl(t._startAt=SP.set(A,xe({data:"isStart",overwrite:!1,parent:C,immediateRender:!0,lazy:!P&&wb(x),startAt:null,delay:0,onUpdate:S&&function(){return xG(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(b6||!w&&!k)&&t._startAt.revert(wz),w&&D&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(j&&D&&!P)if(n&&(w=!1),o=xe({overwrite:!1,data:"isFromStart",lazy:w&&!P&&wb(x),immediateRender:w,stagger:0,parent:C},a),h&&(o[d.prop]=h),xl(t._startAt=SP.set(A,o)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(b6?t._startAt.revert(wz):t._startAt.render(-1,!0)),t._zTime=n,w){if(!n)return}else e(t._startAt,1e-8,1e-8);for(i=0,t._pt=t._ptCache=0,x=D&&wb(x)||x&&!D;i<A.length;i++){if(c=(l=A[i])._gsap||wX(A)[i]._gsap,t._ptLookup[i]=p={},wH[c.id]&&w$.length&&w5(),m=T===A?i:T.indexOf(l),d&&!1!==(f=new d).init(l,h||a,t,m,T)&&(t._pt=s=new SU(t._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(e){p[e]=s}),f.priority&&(u=1)),!d||h)for(o in a)wG[o]&&(f=Sw(o,a,t,m,l,T))?f.priority&&(u=1):p[o]=s=Sv.call(t,l,o,"get",a[o],m,T,0,g.stringFilter);t._op&&t._op[i]&&t.kill(l,t._op[i]),N&&t._pt&&(Sh=t,b9.killTweensOf(l,p,t.globalTime(n)),y=!t.parent,Sh=0),t._pt&&x&&(wH[c.id]=1)}u&&Sz(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!y,O&&n<=0&&R.render(1e8,!0,!0)},SS=function(e,t,n,r,a,i,o,s){var l,u,c,d,f=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!f)for(f=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Sy=1,e.vars[t]="+=0",Sx(e,o),Sy=0,s?w_(t+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(d=f.length;d--;)(l=(u=f[d])._pt||u).s=(r||0===r)&&!a?r:l.s+(r||0)+i*l.c,l.c=n-l.s,u.e&&(u.e=w1(n)+xN(u.e)),u.b&&(u.b=l.s+xN(u.b))},Sj=function(e,t){var n,r,a,i,o=e[0]?wQ(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(r in n=xt({},t),s)if(r in n)for(a=(i=s[r].split(",")).length;a--;)n[i[a]]=n[r];return n},SE=function(e,t,n,r){var a,i,o=t.ease||r||"power1.inOut";if(wj(t))i=n[e]||(n[e]=[]),t.forEach(function(e,n){return i.push({t:n/(t.length-1)*100,v:e,e:o})});else for(a in t)i=n[a]||(n[a]=[]),"ease"===a||i.push({t:parseFloat(e),v:t[a],e:o})},SO=function(e,t,n,r,a){return wh(e)?e.call(t,n,r,a):wm(e)&&~e.indexOf("random(")?xW(e):e},Sk=wZ+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",SD={};w0(Sk+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return SD[e]=1});var SP=function(e){function t(t,n,r,a){"number"==typeof n&&(r.duration=n,n=r,r=null);var i,o,s,l,u,c,d,f,p=e.call(this,a?n:xa(n))||this,m=p.vars,h=m.duration,y=m.delay,g=m.immediateRender,v=m.stagger,b=m.overwrite,w=m.keyframes,x=m.defaults,S=m.scrollTrigger,j=n.parent||b9,E=(wj(t)||wS(t)?wy(t[0]):"length"in n)?[t]:xI(t);if(p._targets=E.length?wX(E):w_("GSAP target "+t+" not found. https://gsap.com",!wo.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,w||v||wx(h)||wx(y)){var O=(n=p.vars).easeReverse||n.yoyoEase;if((i=p.timeline=new Sc({data:"nested",defaults:x||{},targets:j&&"nested"===j.data?j.vars.targets:E})).kill(),i.parent=i._dp=bB(p),i._start=0,v||wx(h)||wx(y)){if(l=E.length,d=v&&xF(v),wv(v))for(u in v)~Sk.indexOf(u)&&(f||(f={}),f[u]=v[u]);for(o=0;o<l;o++)(s=xr(n,SD)).stagger=0,O&&(s.easeReverse=O),f&&xt(s,f),c=E[o],s.duration=+SO(h,bB(p),o,c,E),s.delay=(+SO(y,bB(p),o,c,E)||0)-p._delay,!v&&1===l&&s.delay&&(p._delay=y=s.delay,p._start+=y,s.delay=0),i.to(c,s,d?d(o,c,E):0),i._ease=x6.none;i.duration()?h=y=0:p.timeline=0}else if(w){xa(xe(i.vars.defaults,{ease:"none"})),i._ease=Sr(w.ease||n.ease||"none");var k,D,P,A=0;if(wj(w))w.forEach(function(e){return i.to(E,e,">")}),i.duration();else{for(u in s={},w)"ease"===u||"easeEach"===u||SE(u,w[u],s,w.easeEach);for(u in s)for(o=0,k=s[u].sort(function(e,t){return e.t-t.t}),A=0;o<k.length;o++)(P={ease:(D=k[o]).e,duration:(D.t-(o?k[o-1].t:0))/100*h})[u]=D.v,i.to(E,P,A),A+=P.duration;i.duration()<h&&i.to({},{duration:h-i.duration()})}}h||p.duration(h=i.duration())}else p.timeline=0;return!0!==b||b5||(Sh=bB(p),b9.killTweensOf(E),Sh=0),xv(j,bB(p),r),n.reversed&&p.reverse(),n.paused&&p.paused(!0),(g||!h&&!w&&p._start===w2(j._time)&&wb(g)&&function e(t){return!t||t._ts&&e(t.parent)}(bB(p))&&"nested"!==j.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),S&&xb(bB(p),S),p}bz(t,e);var n=t.prototype;return n.render=function(e,t,n){var r,a,i,o,s,l,u,c,d=this._time,f=this._tDur,p=this._dur,m=e<0,h=e>f-1e-8&&!m?f:e<1e-8?0:e;if(p){if(h!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(r=h,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+e,t,n);if(r=w2(h%o),h===f?(i=this._repeat,r=p):(i=~~(s=w2(h/o)))&&i===s?(r=p,i--):r>p&&(r=p),(l=this._yoyo&&1&i)&&(r=p-r),s=xp(this._tTime,o),r===d&&!n&&this._initted&&i===s)return this._tTime=h,this;i!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&r!==o&&this._initted&&(this._lock=n=1,this.render(w2(o*i),!0).invalidate()._lock=0)}if(!this._initted){if(xw(this,m?e:r,n,t,h))return this._tTime=0,this;if(d!==this._time&&!(n&&this.vars.repeatRefresh&&i!==s))return this;if(p!==this._dur)return this.render(e,t,n)}if(this._rEase){var y=r<d;if(y!==this._inv){var g=y?d:p-d;this._inv=y,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=g?(y?-1:1)/g:0,this._invScale=y?-this.ratio:1-this.ratio,this._invEase=y?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((r-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(r/p);if(this._from&&(this.ratio=u=1-u),this._tTime=h,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&h&&!t&&!s&&(xG(this,"onStart"),this._tTime!==h))return this;for(a=this._pt;a;)a.r(u,a.d),a=a._next;c&&c.render(e<0?e:c._dur*c._ease(r/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&xd(this,e,t,n),xG(this,"onUpdate")),this._repeat&&i!==s&&this.vars.onRepeat&&!t&&this.parent&&xG(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(m&&!this._onUpdate&&xd(this,e,!0,!0),(e||!p)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&xl(this,1),!t&&!(m&&!d)&&(h||d||l)&&(xG(this,h===f?"onComplete":"onReverseComplete",!0),this._prom&&!(h<f&&this.timeScale()>0)&&this._prom()))}}else xj(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,a){wi||x4.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||Sx(this,i),SS(this,e,t,n,r,this._ease(i/this._dur),i,a))?this.resetTo(e,t,n,r,1):(xy(this,0),this.parent||xo(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?xq(this):this.scrollTrigger&&this.scrollTrigger.kill(!!b6),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Sh&&!0!==Sh.vars.overwrite)._first||xq(this),this.parent&&n!==this.timeline.totalDuration()&&xO(this,this._dur*this.timeline._tDur/n,0,1),this}var r,a,i,o,s,l,u,c=this._targets,d=e?xI(e):c,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&xi(c,d))return"all"===t&&(this._pt=0),xq(this);for(r=this._op=this._op||[],"all"!==t&&(wm(t)&&(s={},w0(t,function(e){return s[e]=1}),t=s),t=Sj(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in a=f[u],"all"===t?(r[u]=t,o=a,i={}):(i=r[u]=r[u]||{},o=t),o)(l=a&&a[s])&&("kill"in l.d&&!0!==l.d.kill(s)||xs(this,l,"_pt"),delete a[s]),"all"!==i&&(i[s]=1);return this._initted&&!this._pt&&p&&xq(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return xA(1,arguments)},t.delayedCall=function(e,n,r,a){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:a})},t.fromTo=function(e,t,n){return xA(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return b9.killTweensOf(e,t,n)},t}(Su);xe(SP.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),w0("staggerTo,staggerFrom,staggerFromTo",function(e){SP[e]=function(){var t=new Sc,n=xR.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}});var SA=function(e,t,n){return e[t]=n},SC=function(e,t,n){return e[t](n)},ST=function(e,t,n,r){return e[t](r.fp,n)},SN=function(e,t,n){return e.setAttribute(t,n)},SR=function(e,t){return wh(e[t])?SC:wg(e[t])&&e.setAttribute?SN:SA},SM=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},SI=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},SL=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},S_=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},SF=function(e,t,n,r){for(var a,i=this._pt;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},SV=function(e){for(var t,n,r=this._pt;r;)n=r._next,(r.p!==e||r.op)&&r.op!==e?r.dep||(t=1):xs(this,r,"_pt"),r=n;return!t},SB=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Sz=function(e){for(var t,n,r,a,i=e._pt;i;){for(t=i._next,n=r;n&&n.pr>i.pr;)n=n._next;(i._prev=n?n._prev:a)?i._prev._next=i:r=i,(i._next=n)?n._prev=i:a=i,i=t}e._pt=r},SU=function(){function e(e,t,n,r,a,i,o,s,l){this.t=t,this.s=r,this.c=a,this.p=n,this.r=i||SM,this.d=o||this,this.set=s||SA,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=SB,this.m=e,this.mt=n,this.tween=t},e}();w0(wZ+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return wW[e]=1}),wR.TweenMax=wR.TweenLite=SP,wR.TimelineLite=wR.TimelineMax=Sc,b9=new Sc({sortChildren:!1,defaults:ws,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),wo.stringFilter=x3;var SW=[],S$={},SH=[],SG=0,Sq=0,SY=function(e){return(S$[e]||SH).map(function(e){return e()})},SK=function(){var e=Date.now(),t=[];e-SG>2&&(SY("matchMediaInit"),SW.forEach(function(e){var n,r,a,i,o=e.queries,s=e.conditions;for(r in o)(n=b7.matchMedia(o[r]).matches)&&(a=1),n!==s[r]&&(s[r]=n,i=1);i&&(e.revert(),a&&t.push(e))}),SY("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),SG=e,SY("matchMedia"))},SZ=function(){function e(e,t){this.selector=t&&xL(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Sq++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){wh(e)&&(n=t,t=e,e=wh);var r=this,a=function(){var e,a=b8,i=r.selector;return a&&a!==r&&a.data.push(r),n&&(r.selector=xL(n)),b8=r,e=t.apply(r,arguments),wh(e)&&r._r.push(e),b8=a,r.selector=i,r.isReverted=!1,e};return r.last=a,e===wh?a(r,function(e){return r.add(null,e)}):e?r[e]=a:a},t.ignore=function(e){var t=b8;b8=null,e(this),b8=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return bV(n,e)?t.push.apply(t,n.getTweens()):bV(n,SP)&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e){for(var r,a=n.getTweens(),i=n.data.length;i--;)"isFlip"===(r=n.data[i]).data&&(r.revert(),r.getChildren(!0,!0,!1).forEach(function(e){return a.splice(a.indexOf(e),1)}));for(a.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),i=n.data.length;i--;)bV(r=n.data[i],Sc)?"nested"!==r.data&&(r.scrollTrigger&&r.scrollTrigger.revert(),r.kill()):!bV(r,SP)&&r.revert&&r.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var o=SW.length;o--;)SW[o].id===this.id&&SW.splice(o,1)},t.revert=function(e){this.kill(e||{})},e}(),SX=function(){function e(e){this.contexts=[],this.scope=e,b8&&b8.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){wv(e)||(e={matches:e});var r,a,i,o=new SZ(0,n||this.scope),s=o.conditions={};for(a in b8&&!o.selector&&(o.selector=b8.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===a?i=1:(r=b7.matchMedia(e[a]))&&(0>SW.indexOf(o)&&SW.push(o),(s[a]=r.matches)&&(i=1),r.addListener?r.addListener(SK):r.addEventListener("change",SK));return i&&t(o,function(e){return o.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),SQ={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return xK(e)})},timeline:function(e){return new Sc(e)},getTweensOf:function(e,t){return b9.getTweensOf(e,t)},getProperty:function(e,t,n,r){wm(e)&&(e=xI(e)[0]);var a=wQ(e||{}).get,i=n?w7:w9;return"native"===n&&(n=""),e?t?i((wG[t]&&wG[t].get||a)(e,t,n,r)):function(t,n,r){return i((wG[t]&&wG[t].get||a)(e,t,n,r))}:e},quickSetter:function(e,t,n){if((e=xI(e)).length>1){var r=e.map(function(e){return S2.quickSetter(e,t,n)}),a=r.length;return function(e){for(var t=a;t--;)r[t](e)}}e=e[0]||{};var i=wG[t],o=wQ(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=i?function(t){var r=new i;wa._pt=0,r.init(e,n?t+n:t,wa,0,[e]),r.render(1,r),wa._pt&&S_(1,wa)}:o.set(e,s);return i?l:function(t){return l(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,a=S2.to(e,xe(((r={})[t]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),i=function(e,n,r){return a.resetTo(t,e,n,r)};return i.tween=a,i},isTweening:function(e){return b9.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Sr(e.ease,ws.ease)),xn(ws,e||{})},config:function(e){return xn(wo,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,a=e.defaults,i=e.extendTimeline;(r||"").split(",").forEach(function(e){return e&&!wG[e]&&!wR[e]&&w_(t+" effect requires "+e+" plugin.")}),wq[t]=function(e,t,r){return n(xI(e),xe(t||{},a),r)},i&&(Sc.prototype[t]=function(e,n,r){return this.add(wq[t](e,wv(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){x6[e]=Sr(t)},parseEase:function(e,t){return arguments.length?Sr(e,t):x6},getById:function(e){return b9.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,a=new Sc(e);for(a.smoothChildTiming=wb(e.smoothChildTiming),b9.remove(a),a._dp=0,a._time=a._tTime=b9._time,n=b9._first;n;)r=n._next,(t||!(!n._dur&&bV(n,SP)&&n.vars.onComplete===n._targets[0]))&&xv(a,n,n._start-n._delay),n=r;return xv(b9,a,0),a},context:function(e,t){return e?new SZ(e,t):b8},matchMedia:function(e){return new SX(e)},matchMediaRefresh:function(){return SW.forEach(function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()})||SK()},addEventListener:function(e,t){var n=S$[e]||(S$[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=S$[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:function e(t,n,r){var a=n-t;return wj(t)?xU(t,e(0,t.length),n):xC(r,function(e){return(a+(e-t)%a)%a+t})},wrapYoyo:function e(t,n,r){var a=n-t,i=2*a;return wj(t)?xU(t,e(0,t.length-1),n):xC(r,function(e){return e=(i+(e-t)%i)%i||0,t+(e>a?i-e:e)})},distribute:xF,random:xz,snap:xB,normalize:function(e,t,n){return x$(e,t,0,1,n)},getUnit:xN,clamp:function(e,t,n){return xC(n,function(n){return xT(e,t,n)})},splitColor:xQ,toArray:xI,selector:xL,mapRange:x$,pipe:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||xN(n))}},interpolate:function e(t,n,r,a){var i=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!i){var o,s,l,u,c,d=wm(t),f={};if(!0===r&&(a=1)&&(r=null),d)t={p:t},n={p:n};else if(wj(t)&&!wj(n)){for(s=1,l=[],c=(u=t.length)-2;s<u;s++)l.push(e(t[s-1],t[s]));u--,i=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},r=n}else a||(t=xt(wj(t)?[]:{},t));if(!l){for(o in n)Sv.call(f,t,o,"get",n[o]);i=function(e){return S_(e,f)||(d?t.p:t)}}}return xC(r,i)},shuffle:x_},install:wI,effects:wq,ticker:x4,updateRoot:Sc.updateRoot,plugins:wG,globalTimeline:b9,core:{PropTween:SU,globals:wF,Tween:SP,Timeline:Sc,Animation:Su,getCache:wQ,_removeLinkedListItem:xs,reverting:function(){return b6},context:function(e){return e&&b8&&(b8.data.push(e),e._ctx=b8),b8},suppressOverwrites:function(e){return b5=e}}};w0("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return SQ[e]=SP[e]}),x4.add(Sc.updateRoot),wa=SQ.to({},{duration:0});var SJ=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},S0=function(e,t){var n,r,a,i=e._targets;for(n in t)for(r=i.length;r--;)(a=e._ptLookup[r][n])&&(a=a.d)&&(a._pt&&(a=SJ(a,n)),a&&a.modifier&&a.modifier(t[n],e,i[r],n))},S1=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,a;if(wm(n)&&(r={},w0(n,function(e){return r[e]=1}),n=r),t){for(a in r={},n)r[a]=t(n[a]);n=r}S0(e,n)}}}},S2=SQ.registerPlugin({name:"attr",init:function(e,t,n,r,a){var i,o,s;for(i in this.tween=n,t)s=e.getAttribute(i)||"",(o=this.add(e,"setAttribute",(s||0)+"",t[i],r,a,0,0,i)).op=i,o.b=s,this._props.push(i)},render:function(e,t){for(var n=t._pt;n;)b6?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},S1("roundProps",xV),S1("modifiers"),S1("snap",xB))||SQ;function S3(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}SP.version=Sc.version=S2.version="3.15.0",wn=1,ww()&&x5(),x6.Power0,x6.Power1,x6.Power2,x6.Power3,x6.Power4,x6.Linear,x6.Quad,x6.Cubic,x6.Quart,x6.Quint,x6.Strong,x6.Elastic,x6.Back,x6.SteppedEase,x6.Bounce,x6.Sine,x6.Expo,x6.Circ;var S4,S5,S6,S8,S9,S7,je,jt={},jn=180/Math.PI,jr=Math.PI/180,ja=Math.atan2,ji=/([A-Z])/g,jo=/(left|right|width|margin|padding|x)/i,js=/[\s,\(]\S/,jl={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ju=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},jc=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},jd=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},jf=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},jp=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},jm=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},jh=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},jy=function(e,t,n){return e.style[t]=n},jg=function(e,t,n){return e.style.setProperty(t,n)},jv=function(e,t,n){return e._gsap[t]=n},jb=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},jw=function(e,t,n,r,a){var i=e._gsap;i.scaleX=i.scaleY=n,i.renderTransform(a,i)},jx=function(e,t,n,r,a){var i=e._gsap;i[t]=n,i.renderTransform(a,i)},jS="transform",jj=jS+"Origin",jE=function e(t,n){var r=this,a=this.target,i=a.style,o=a._gsap;if(t in jt&&i){if(this.tfm=this.tfm||{},"transform"===t)return jl.transform.split(",").forEach(function(t){return e.call(r,t,n)});if(~(t=jl[t]||t).indexOf(",")?t.split(",").forEach(function(e){return r.tfm[e]=jU(a,e)}):this.tfm[t]=o.x?o[t]:jU(a,t),t===jj&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(jS)>=0)return;o.svg&&(this.svgo=a.getAttribute("data-svg-origin"),this.props.push(jj,n,"")),t=jS}(i||n)&&this.props.push(t,n,i[t])},jO=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},jk=function(){var e,t,n=this.props,r=this.target,a=r.style,i=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?a[n[e]]=n[e+2]:a.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(ji,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)i[t]=this.tfm[t];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=S7())&&e.isStart||a[jS]||(jO(a),i.zOrigin&&a[jj]&&(a[jj]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},jD=function(e,t){var n={target:e,props:[],revert:jk,save:jE};return e._gsap||S2.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return n.save(e)}),n},jP=function(e,t){var n=S4.createElementNS?S4.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):S4.createElement(e);return n&&n.style?n:S4.createElement(e)},jA=function e(t,n,r){var a=getComputedStyle(t);return a[n]||a.getPropertyValue(n.replace(ji,"-$1").toLowerCase())||a.getPropertyValue(n)||!r&&e(t,jT(n)||n,1)||""},jC="O,Moz,ms,Ms,Webkit".split(","),jT=function(e,t,n){var r=(t||S8).style,a=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(jC[a]+e in r););return a<0?null:(3===a?"ms":a>=0?jC[a]:"")+e},jN=function(){"u">typeof window&&window.document&&(S5=(S4=window.document).documentElement,S8=jP("div")||{style:{}},jP("div"),jj=(jS=jT(jS))+"Origin",S8.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",je=!!jT("perspective"),S7=S2.core.reverting,S6=1)},jR=function(e){var t,n=e.ownerSVGElement,r=jP("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=e.cloneNode(!0);a.style.display="block",r.appendChild(a),S5.appendChild(r);try{t=a.getBBox()}catch(e){}return r.removeChild(a),S5.removeChild(r),t},jM=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},jI=function(e){var t,n;try{t=e.getBBox()}catch(r){t=jR(e),n=1}return t&&(t.width||t.height)||n||(t=jR(e)),!t||t.width||t.x||t.y?t:{x:+jM(e,["x","cx","x1"])||0,y:+jM(e,["y","cy","y1"])||0,width:0,height:0}},jL=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&jI(e))},j_=function(e,t){if(t){var n,r=e.style;t in jt&&t!==jj&&(t=jS),r.removeProperty?(("ms"===(n=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),r.removeProperty("--"===n?t:t.replace(ji,"-$1").toLowerCase())):r.removeAttribute(t)}},jF=function(e,t,n,r,a,i){var o=new SU(e._pt,t,n,0,1,i?jh:jm);return e._pt=o,o.b=r,o.e=a,e._props.push(n),o},jV={deg:1,rad:1,turn:1},jB={grid:1,flex:1},jz=function e(t,n,r,a){var i,o,s,l,u=parseFloat(r)||0,c=(r+"").trim().substr((u+"").length)||"px",d=S8.style,f=jo.test(n),p="svg"===t.tagName.toLowerCase(),m=(p?"client":"offset")+(f?"Width":"Height"),h="px"===a,y="%"===a;if(a===c||!u||jV[a]||jV[c])return u;if("px"===c||h||(u=e(t,n,r,"px")),l=t.getCTM&&jL(t),(y||"%"===c)&&(jt[n]||~n.indexOf("adius")))return i=l?t.getBBox()[f?"width":"height"]:t[m],w1(y?u/i*100:u/100*i);if(d[f?"width":"height"]=100+(h?c:a),o="rem"!==a&&~n.indexOf("adius")||"em"===a&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==S4&&o.appendChild||(o=S4.body),(s=o._gsap)&&y&&s.width&&f&&s.time===x4.time&&!s.uncache)return w1(u/s.width*100);if(y&&("height"===n||"width"===n)){var g=t.style[n];t.style[n]=100+a,i=t[m],g?t.style[n]=g:j_(t,n)}else(y||"%"===c)&&!jB[jA(o,"display")]&&(d.position=jA(t,"position")),o===t&&(d.position="static"),o.appendChild(S8),i=S8[m],o.removeChild(S8),d.position="absolute";return f&&y&&((s=wQ(o)).time=x4.time,s.width=o[m]),w1(h?i*u/100:i&&u?100/i*u:0)},jU=function(e,t,n,r){var a;return S6||jN(),t in jl&&"transform"!==t&&~(t=jl[t]).indexOf(",")&&(t=t.split(",")[0]),jt[t]&&"transform"!==t?(a=j0(e,r),a="transformOrigin"!==t?a[t]:a.svg?a.origin:j1(jA(e,jj))+" "+a.zOrigin+"px"):(!(a=e.style[t])||"auto"===a||r||~(a+"").indexOf("calc("))&&(a=jq[t]&&jq[t](e,t,n)||jA(e,t)||wJ(e,t)||+("opacity"===t)),n&&!~(a+"").trim().indexOf(" ")?jz(e,t,a,n)+n:a},jW=function(e,t,n,r){if(!n||"none"===n){var a=jT(t,e,1),i=a&&jA(e,a,1);i&&i!==n?(t=a,n=i):"borderColor"===t&&(n=jA(e,"borderTopColor"))}var o,s,l,u,c,d,f,p,m,h,y,g=new SU(this._pt,e.style,t,0,1,SL),v=0,b=0;if(g.b=n,g.e=r,n+="","var(--"===(r+="").substring(0,6)&&(r=jA(e,r.substring(4,r.indexOf(")")))),"auto"===r&&(d=e.style[t],e.style[t]=r,r=jA(e,t)||r,d?e.style[t]=d:j_(e,t)),x3(o=[n,r]),n=o[0],r=o[1],l=n.match(wP)||[],(r.match(wP)||[]).length){for(;s=wP.exec(r);)f=s[0],m=r.substring(v,s.index),c?c=(c+1)%5:("rgba("===m.substr(-5)||"hsla("===m.substr(-5))&&(c=1),f!==(d=l[b++]||"")&&(u=parseFloat(d)||0,y=d.substr((u+"").length),"="===f.charAt(1)&&(f=w3(u,f)+y),p=parseFloat(f),h=f.substr((p+"").length),v=wP.lastIndex-h.length,h||(h=h||wo.units[t]||y,v===r.length&&(r+=h,g.e+=h)),y!==h&&(u=jz(e,t,d,h)||0),g._pt={_next:g._pt,p:m||1===b?m:",",s:u,c:p-u,m:c&&c<4||"zIndex"===t?Math.round:0});g.c=v<r.length?r.substring(v,r.length):""}else g.r="display"===t&&"none"===r?jh:jm;return wC.test(r)&&(g.e=0),this._pt=g,g},j$={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},jH=function(e){var t=e.split(" "),n=t[0],r=t[1]||"50%";return("top"===n||"bottom"===n||"left"===r||"right"===r)&&(e=n,n=r,r=e),t[0]=j$[n]||n,t[1]=j$[r]||r,t.join(" ")},jG=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,a,i=t.t,o=i.style,s=t.u,l=i._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(a=(s=s.split(",")).length;--a>-1;)jt[n=s[a]]&&(r=1,n="transformOrigin"===n?jj:jS),j_(i,n);r&&(j_(i,jS),l&&(l.svg&&i.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",j0(i,1),l.uncache=1,jO(o)))}},jq={clearProps:function(e,t,n,r,a){if("isFromStart"!==a.data){var i=e._pt=new SU(e._pt,t,n,0,0,jG);return i.u=r,i.pr=-10,i.tween=a,e._props.push(n),1}}},jY=[1,0,0,1,0,0],jK={},jZ=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},jX=function(e){var t=jA(e,jS);return jZ(t)?jY:t.substr(7).match(wD).map(w1)},jQ=function(e,t){var n,r,a,i,o=e._gsap||wQ(e),s=e.style,l=jX(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(a=e.transform.baseVal.consolidate().matrix).a,a.b,a.c,a.d,a.e,a.f]).join(",")?jY:l:(l!==jY||e.offsetParent||e===S5||o.svg||(a=s.display,s.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(i=1,r=e.nextElementSibling,S5.appendChild(e)),l=jX(e),a?s.display=a:j_(e,"display"),i&&(r?n.insertBefore(e,r):n?n.appendChild(e):S5.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},jJ=function(e,t,n,r,a,i){var o,s,l,u,c=e._gsap,d=a||jQ(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,m=c.xOffset||0,h=c.yOffset||0,y=d[0],g=d[1],v=d[2],b=d[3],w=d[4],x=d[5],S=t.split(" "),j=parseFloat(S[0])||0,E=parseFloat(S[1])||0;n?d!==jY&&(s=y*b-g*v)&&(l=b/s*j+-v/s*E+(v*x-b*w)/s,u=-g/s*j+y/s*E-(y*x-g*w)/s,j=l,E=u):(j=(o=jI(e)).x+(~S[0].indexOf("%")?j/100*o.width:j),E=o.y+(~(S[1]||S[0]).indexOf("%")?E/100*o.height:E)),r||!1!==r&&c.smooth?(c.xOffset=m+((w=j-f)*y+(x=E-p)*v)-w,c.yOffset=h+(w*g+x*b)-x):c.xOffset=c.yOffset=0,c.xOrigin=j,c.yOrigin=E,c.smooth=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[jj]="0px 0px",i&&(jF(i,c,"xOrigin",f,j),jF(i,c,"yOrigin",p,E),jF(i,c,"xOffset",m,c.xOffset),jF(i,c,"yOffset",h,c.yOffset)),e.setAttribute("data-svg-origin",j+" "+E)},j0=function(e,t){var n=e._gsap||new Sl(e);if("x"in n&&!t&&!n.uncache)return n;var r,a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O,k,D,P,A,C,T,N,R,M,I=e.style,L=n.scaleX<0,_=getComputedStyle(e),F=jA(e,jj)||"0";return r=a=i=l=u=c=d=f=p=0,o=s=1,n.svg=!!(e.getCTM&&jL(e)),_.translate&&(("none"!==_.translate||"none"!==_.scale||"none"!==_.rotate)&&(I[jS]=("none"!==_.translate?"translate3d("+(_.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==_.rotate?"rotate("+_.rotate+") ":"")+("none"!==_.scale?"scale("+_.scale.split(" ").join(",")+") ":"")+("none"!==_[jS]?_[jS]:"")),I.scale=I.rotate=I.translate="none"),y=jQ(e,n.svg),n.svg&&(n.uncache?(D=e.getBBox(),F=n.xOrigin-D.x+"px "+(n.yOrigin-D.y)+"px",k=""):k=!t&&e.getAttribute("data-svg-origin"),jJ(e,k||F,!!k||n.originIsAbsolute,!1!==n.smooth,y)),m=n.xOrigin||0,h=n.yOrigin||0,y!==jY&&(w=y[0],x=y[1],S=y[2],j=y[3],r=E=y[4],a=O=y[5],6===y.length?(o=Math.sqrt(w*w+x*x),s=Math.sqrt(j*j+S*S),l=w||x?ja(x,w)*jn:0,(d=S||j?ja(S,j)*jn+l:0)&&(s*=Math.abs(Math.cos(d*jr))),n.svg&&(r-=m-(m*w+h*S),a-=h-(m*x+h*j))):(M=y[6],N=y[7],A=y[8],C=y[9],T=y[10],R=y[11],r=y[12],a=y[13],i=y[14],u=(g=ja(M,T))*jn,g&&(k=E*(v=Math.cos(-g))+A*(b=Math.sin(-g)),D=O*v+C*b,P=M*v+T*b,A=-(E*b)+A*v,C=-(O*b)+C*v,T=-(M*b)+T*v,R=-(N*b)+R*v,E=k,O=D,M=P),c=(g=ja(-S,T))*jn,g&&(k=w*(v=Math.cos(-g))-A*(b=Math.sin(-g)),D=x*v-C*b,P=S*v-T*b,R=j*b+R*v,w=k,x=D,S=P),l=(g=ja(x,w))*jn,g&&(k=w*(v=Math.cos(g))+x*(b=Math.sin(g)),D=E*v+O*b,x=x*v-w*b,O=O*v-E*b,w=k,E=D),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=w1(Math.sqrt(w*w+x*x+S*S)),s=w1(Math.sqrt(O*O+M*M)),d=Math.abs(g=ja(E,O))>2e-4?g*jn:0,p=R?1/(R<0?-R:R):0),n.svg&&(k=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!jZ(jA(e,jS)),k&&e.setAttribute("transform",k))),Math.abs(d)>90&&270>Math.abs(d)&&(L?(o*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+"px",n.y=a-((n.yPercent=a&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-a)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+"px",n.z=i+"px",n.scaleX=w1(o),n.scaleY=w1(s),n.rotation=w1(l)+"deg",n.rotationX=w1(u)+"deg",n.rotationY=w1(c)+"deg",n.skewX=d+"deg",n.skewY=f+"deg",n.transformPerspective=p+"px",(n.zOrigin=parseFloat(F.split(" ")[2])||!t&&n.zOrigin||0)&&(I[jj]=j1(F)),n.xOffset=n.yOffset=0,n.force3D=wo.force3D,n.renderTransform=n.svg?j6:je?j5:j3,n.uncache=0,n},j1=function(e){return(e=e.split(" "))[0]+" "+e[1]},j2=function(e,t,n){var r=xN(t);return w1(parseFloat(t)+parseFloat(jz(e,"x",n+"px",r)))+r},j3=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,j5(e,t)},j4="0deg",j5=function(e,t){var n=t||this,r=n.xPercent,a=n.yPercent,i=n.x,o=n.y,s=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,y=n.force3D,g=n.target,v=n.zOrigin,b="",w="auto"===y&&e&&1!==e||!0===y;if(v&&(c!==j4||u!==j4)){var x,S=parseFloat(u)*jr,j=Math.sin(S),E=Math.cos(S);i=j2(g,i,-(j*(x=Math.cos(S=parseFloat(c)*jr))*v)),o=j2(g,o,-(-Math.sin(S)*v)),s=j2(g,s,-(E*x*v)+v)}"0px"!==h&&(b+="perspective("+h+") "),(r||a)&&(b+="translate("+r+"%, "+a+"%) "),(w||"0px"!==i||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||w?"translate3d("+i+", "+o+", "+s+") ":"translate("+i+", "+o+") "),l!==j4&&(b+="rotate("+l+") "),u!==j4&&(b+="rotateY("+u+") "),c!==j4&&(b+="rotateX("+c+") "),(d!==j4||f!==j4)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==m)&&(b+="scale("+p+", "+m+") "),g.style[jS]=b||"translate(0, 0)"},j6=function(e,t){var n,r,a,i,o,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,p=s.skewX,m=s.skewY,h=s.scaleX,y=s.scaleY,g=s.target,v=s.xOrigin,b=s.yOrigin,w=s.xOffset,x=s.yOffset,S=s.forceCSS,j=parseFloat(c),E=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(m=parseFloat(m))&&(p+=m=parseFloat(m),f+=m),f||p?(f*=jr,p*=jr,n=Math.cos(f)*h,r=Math.sin(f)*h,a=-(Math.sin(f-p)*y),i=Math.cos(f-p)*y,p&&(m*=jr,a*=o=Math.sqrt(1+(o=Math.tan(p-m))*o),i*=o,m&&(n*=o=Math.sqrt(1+(o=Math.tan(m))*o),r*=o)),n=w1(n),r=w1(r),a=w1(a),i=w1(i)):(n=h,i=y,r=a=0),(j&&!~(c+"").indexOf("px")||E&&!~(d+"").indexOf("px"))&&(j=jz(g,"x",c,"px"),E=jz(g,"y",d,"px")),(v||b||w||x)&&(j=w1(j+v-(v*n+b*a)+w),E=w1(E+b-(v*r+b*i)+x)),(l||u)&&(j=w1(j+l/100*(o=g.getBBox()).width),E=w1(E+u/100*o.height)),o="matrix("+n+","+r+","+a+","+i+","+j+","+E+")",g.setAttribute("transform",o),S&&(g.style[jS]=o)},j8=function(e,t,n,r,a){var i,o,s=wm(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?jn:1)-r,u=r+l+"deg";return s&&("short"===(i=a.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===i&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===i&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new SU(e._pt,t,n,r,l,jc),o.e=u,o.u="deg",e._props.push(n),o},j9=function(e,t){for(var n in t)e[n]=t[n];return e},j7=function(e,t,n){var r,a,i,o,s,l,u,c=j9({},n._gsap),d=n.style;for(a in c.svg?(i=n.getAttribute("transform"),n.setAttribute("transform",""),d[jS]=t,r=j0(n,1),j_(n,jS),n.setAttribute("transform",i)):(i=getComputedStyle(n)[jS],d[jS]=t,r=j0(n,1),d[jS]=i),jt)(i=c[a])!==(o=r[a])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)&&(s=xN(i)!==(u=xN(o))?jz(n,a,i,u):parseFloat(i),l=parseFloat(o),e._pt=new SU(e._pt,r,a,s,l-s,ju),e._pt.u=u||0,e._props.push(a));j9(r,c)};w0("padding,margin,Width,Radius",function(e,t){var n="Right",r="Bottom",a="Left",i=(t<3?["Top",n,r,a]:["Top"+a,"Top"+n,r+n,r+a]).map(function(n){return t<2?e+n:"border"+n+e});jq[t>1?"border"+e:e]=function(e,t,n,r,a){var o,s;if(arguments.length<4)return 5===(s=(o=i.map(function(t){return jU(e,t,n)})).join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},i.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,a)}});var Ee={name:"css",register:jN,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,a){var i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S=this._props,j=e.style,E=n.vars.startAt;for(d in S6||jN(),this.styles=this.styles||jD(e),w=this.styles.props,this.tween=n,t)if("autoRound"!==d&&(o=t[d],!(wG[d]&&Sw(d,t,n,r,e,a)))){if(u=void 0===o?"undefined":S3(o),c=jq[d],"function"===u&&(u=void 0===(o=o.call(n,r,e,a))?"undefined":S3(o)),"string"===u&&~o.indexOf("random(")&&(o=xW(o)),c)c(this,e,d,o,n)&&(b=1);else if("--"===d.substr(0,2))i=(getComputedStyle(e).getPropertyValue(d)+"").trim(),o+="",x1.lastIndex=0,!x1.test(i)&&(f=xN(i),(p=xN(o))?f!==p&&(i=jz(e,d,i,p)+p):f&&(o+=f)),this.add(j,"setProperty",i,o,r,a,0,0,d),S.push(d),w.push(d,0,j[d]);else if("undefined"!==u){if(E&&d in E?(wm(i="function"==typeof E[d]?E[d].call(n,r,e,a):E[d])&&~i.indexOf("random(")&&(i=xW(i)),xN(i+"")||"auto"===i||(i+=wo.units[d]||xN(jU(e,d))||""),"="===(i+"").charAt(1)&&(i=jU(e,d))):i=jU(e,d),l=parseFloat(i),(m="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),d in jl&&("autoAlpha"===d&&(1===l&&"hidden"===jU(e,"visibility")&&s&&(l=0),w.push("visibility",0,j.visibility),jF(this,j,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=jl[d]).indexOf(",")&&(d=d.split(",")[0])),h=d in jt){if(this.styles.save(d),x=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=jA(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var O=e.style.perspective;e.style.perspective=o,o=jA(e,"perspective"),O?e.style.perspective=O:j_(e,"perspective")}s=parseFloat(o)}if(y||((g=e._gsap).renderTransform&&!t.parseTransform||j0(e,t.parseTransform),v=!1!==t.smoothOrigin&&g.smooth,(y=this._pt=new SU(this._pt,j,jS,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new SU(this._pt,g,"scaleY",g.scaleY,(m?w3(g.scaleY,m+s):s)-g.scaleY||0,ju),this._pt.u=0,S.push("scaleY",d),d+="X";else if("transformOrigin"===d){w.push(jj,0,j[jj]),o=jH(o),g.svg?jJ(e,o,0,v,0,this):((p=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&jF(this,g,"zOrigin",g.zOrigin,p),jF(this,j,d,j1(i),j1(o)));continue}else if("svgOrigin"===d){jJ(e,o,1,v,0,this);continue}else if(d in jK){j8(this,g,d,l,m?w3(l,m+o):o);continue}else if("smoothOrigin"===d){jF(this,g,"smooth",g.smooth,o);continue}else if("force3D"===d){g[d]=o;continue}else if("transform"===d){j7(this,o,e);continue}}else d in j||(d=jT(d)||d);if(h||(s||0===s)&&(l||0===l)&&!js.test(o)&&d in j)f=(i+"").substr((l+"").length),s||(s=0),p=xN(o)||(d in wo.units?wo.units[d]:f),f!==p&&(l=jz(e,d,i,p)),this._pt=new SU(this._pt,h?g:j,d,l,(m?w3(l,m+s):s)-l,!h&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?jp:ju),this._pt.u=p||0,h&&x!==o?(this._pt.b=i,this._pt.e=x,this._pt.r=jf):f!==p&&"%"!==p&&(this._pt.b=i,this._pt.r=jd);else if(d in j)jW.call(this,e,d,i,m?m+o:o);else if(d in e)this.add(e,d,i||e[d],m?m+o:o,r,a);else if("parseTransform"!==d){wL(d,o);continue}h||(d in j?w.push(d,0,j[d]):"function"==typeof e[d]?w.push(d,2,e[d]()):w.push(d,1,i||e[d])),S.push(d)}}b&&Sz(this)},render:function(e,t){if(t.tween._time||!S7())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:jU,aliases:jl,getSetter:function(e,t,n){var r=jl[t];return r&&0>r.indexOf(",")&&(t=r),t in jt&&t!==jj&&(e._gsap.x||jU(e,"x"))?n&&S9===n?"scale"===t?jb:jv:(S9=n||{},"scale"===t?jw:jx):e.style&&!wg(e.style[t])?jy:~t.indexOf("-")?jg:SR(e,t)},core:{_removeProperty:j_,_getMatrix:jQ}};S2.utils.checkPrefix=jT,S2.core.getStyleSaver=jD,Dd=w0("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Dc="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){jt[e]=1}),w0(Dc,function(e){wo.units[e]="deg",jK[e]=1}),jl[Dd[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Dc,w0("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");jl[t[1]]=Dd[t[0]]}),w0("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){wo.units[e]="px"}),S2.registerPlugin(Ee);var Et=S2.registerPlugin(Ee)||S2;function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ea(e){return function(e){if(Array.isArray(e))return En(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return En(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return En(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Et.core.Tween;var Ei=function(e){var t=e.isOpen,n=e.onClose,r=e.position,a=void 0===r?"right":r,i=e.colors,o=e.items,s=e.socialItems,l=e.displaySocials,u=e.displayItemNumbering,c=e.accentColor,d=e.closeOnClickAway,f=void 0===d||d,p=(0,h.useRef)(null),g=(0,h.useRef)(null),v=(0,h.useRef)([]),b=(0,h.useRef)(null),w=(0,h.useRef)(null),x=(0,h.useRef)(null),S=(0,h.useRef)(!1),j=(0,h.useRef)(!1);(0,h.useLayoutEffect)(function(){var e=Et.context(function(){var e=p.current,t=g.current;if(e){var n=[];t&&(n=Array.from(t.querySelectorAll(".sm-prelayer"))),v.current=n;var r="left"===a?-100:100;Et.set([e].concat(Ea(n)),{xPercent:r,opacity:1}),t&&Et.set(t,{xPercent:0,opacity:1})}});return function(){return e.revert()}},[a]);var E=(0,h.useCallback)(function(){var e=p.current,t=v.current;if(!e)return null;null==(d=b.current)||d.kill(),w.current&&(w.current.kill(),w.current=null),null==(f=x.current)||f.kill();var n=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),r=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),i=e.querySelector(".sm-socials-title"),o=Array.from(e.querySelectorAll(".sm-socials-link")),s="left"===a?-100:100,l=t.map(function(e){return{el:e,start:s}});n.length&&Et.set(n,{yPercent:140,rotate:10}),r.length&&Et.set(r,Er({},"--sm-num-opacity",0)),i&&Et.set(i,{opacity:0}),o.length&&Et.set(o,{y:25,opacity:0});var u=Et.timeline({paused:!0});l.forEach(function(e,t){u.fromTo(e.el,{xPercent:e.start},{xPercent:0,duration:.5,ease:"power4.out"},.07*t)});var c=(l.length?(l.length-1)*.07:0)+.08*!!l.length;if(u.fromTo(e,{xPercent:s},{xPercent:0,duration:.65,ease:"power4.out"},c),n.length){var d,f,m,h=c+.0975;u.to(n,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},h),r.length&&u.to(r,(Er(m={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),Er(m,"stagger",{each:.08,from:"start"}),m),h+.1)}if(i||o.length){var y=c+.26;i&&u.to(i,{opacity:1,duration:.5,ease:"power2.out"},y),o.length&&u.to(o,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){Et.set(o,{clearProps:"opacity"})}},y+.04)}return b.current=u,u},[a]),O=(0,h.useCallback)(function(){if(!S.current){S.current=!0;var e=E();e?(e.eventCallback("onComplete",function(){S.current=!1}),e.play(0)):S.current=!1}},[E]),k=(0,h.useCallback)(function(){null==(e=b.current)||e.kill(),b.current=null,null==(t=x.current)||t.kill();var e,t,n,r=p.current,i=v.current;if(r){var o=Ea(i).concat([r]);null==(n=w.current)||n.kill();var s="left"===a?-100:100;w.current=Et.to(o,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(r.querySelectorAll(".sm-panel-itemLabel"));e.length&&Et.set(e,{yPercent:140,rotate:10});var t=Array.from(r.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&Et.set(t,Er({},"--sm-num-opacity",0));var n=r.querySelector(".sm-socials-title"),a=Array.from(r.querySelectorAll(".sm-socials-link"));n&&Et.set(n,{opacity:0}),a.length&&Et.set(a,{y:25,opacity:0}),S.current=!1}})}},[a]);y().useEffect(function(){t!==j.current&&(j.current=t,t?O():k())},[t,O,k]),y().useEffect(function(){if(f&&t){var e=function(e){p.current&&!p.current.contains(e.target)&&(null==n||n())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[f,t,n]);var D=i&&i.length?i.slice(0,4):[];if(D.length>=3){var P=Math.floor(D.length/2);D.splice(P,1)}var A=null!=o?o:[],C=null!=s?s:[];return(0,m.jsxs)("div",{className:"sm-scope",style:c?Er({},"--sm-accent",c):void 0,"data-position":a,children:[(0,m.jsx)("div",{ref:g,className:"sm-prelayers pointer-events-none",style:{zIndex:9998},"aria-hidden":"true",children:D.map(function(e,t){return(0,m.jsx)("div",{className:"sm-prelayer",style:{background:e}},t)})}),(0,m.jsx)("aside",{id:"staggered-menu-panel",ref:p,className:"staggered-menu-panel pointer-events-auto",style:{zIndex:9999,WebkitBackdropFilter:"blur(12px)"},"aria-hidden":!t,children:(0,m.jsxs)("div",{className:"sm-panel-inner",children:[A.length>0&&(0,m.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===u||u||void 0,children:A.map(function(e,t){return(0,m.jsx)("li",{className:"sm-panel-itemWrap",children:(0,m.jsx)("a",{className:"sm-panel-item",href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:(0,m.jsx)("span",{className:"sm-panel-itemLabel",children:e.label})})},e.label+t)})}),(void 0===l||l)&&C.length>0&&(0,m.jsxs)("div",{className:"sm-socials","aria-label":"Social links",children:[(0,m.jsx)("h3",{className:"sm-socials-title",children:"Socials"}),(0,m.jsx)("ul",{className:"sm-socials-list",role:"list",children:C.map(function(e,t){return(0,m.jsx)("li",{className:"sm-socials-item",children:(0,m.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"sm-socials-link",children:e.label})},e.label+t)})})]})]})}),(0,m.jsx)("style",{children:"\n.sm-scope .staggered-menu-panel { position: fixed; top: 0; ".concat("left"===a?"left: 0;":"right: 0;"," width: clamp(260px, 38vw, 420px); height: 100%; background: white; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 6em 2em 2em 2em; overflow-y: auto; z-index: 50; }\n.sm-scope .sm-prelayers { position: fixed; top: 0; ").concat("left"===a?"left: 0;":"right: 0;"," bottom: 0; width: clamp(260px, 38vw, 420px); pointer-events: none; z-index: 49; }\n.sm-scope .sm-prelayer { position: absolute; top: 0; right: 0; height: 100%; width: 100%; transform: translateX(0); }\n.sm-scope .sm-panel-inner { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }\n.sm-scope .sm-panel-itemWrap { position: relative; overflow: hidden; line-height: 1; }\n.sm-scope .sm-panel-item { position: relative; color: #000; font-weight: 600; font-size: 4rem; cursor: pointer; line-height: 1; letter-spacing: -2px; text-transform: uppercase; transition: background 0.25s, color 0.25s; display: inline-block; text-decoration: none; padding-right: 1.4em; }\n.sm-scope .sm-panel-itemLabel { display: inline-block; will-change: transform; transform-origin: 50% 100%; }\n.sm-scope .sm-panel-item:hover { color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }\n.sm-scope .sm-panel-list[data-numbering] { counter-reset: smItem; }\n.sm-scope .sm-panel-list[data-numbering] .sm-panel-item::after { counter-increment: smItem; content: counter(smItem, decimal-leading-zero); position: absolute; top: 0.1em; right: 3.2em; font-size: 18px; font-weight: 400; color: var(--sm-accent, #ff0000); letter-spacing: 0; pointer-events: none; user-select: none; opacity: var(--sm-num-opacity, 0); }\n.sm-scope .sm-socials { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }\n.sm-scope .sm-socials-title { margin: 0; font-size: 1rem; font-weight: 500; color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-socials-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }\n.sm-scope .sm-socials-list .sm-socials-link { opacity: 1; transition: opacity 0.3s ease; }\n.sm-scope .sm-socials-list:hover .sm-socials-link:not(:hover) { opacity: 0.35; }\n.sm-scope .sm-socials-list:focus-within .sm-socials-link:not(:focus-visible) { opacity: 0.35; }\n.sm-scope .sm-socials-list .sm-socials-link:hover, .sm-scope .sm-socials-list .sm-socials-link:focus-visible { opacity: 1; }\n.sm-scope .sm-socials-link:focus-visible { outline: 2px solid var(--sm-accent, #ff0000); outline-offset: 3px; }\n.sm-scope .sm-socials-link { font-size: 1.2rem; font-weight: 500; color: #111; text-decoration: none; position: relative; padding: 2px 0; display: inline-block; transition: color 0.3s ease, opacity 0.3s ease; }\n.sm-scope .sm-socials-link:hover { color: var(--sm-accent, #ff0000); }\n@media (max-width: 1024px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n@media (max-width: 640px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n ")})]})};function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Es=function(e){var t,n=e.isOpen,r=e.onToggle,a=e.menuButtonColor,i=e.openMenuButtonColor,o=e.changeMenuColorOnOpen,s=void 0===o||o,l=e.className,u=(0,h.useRef)(null),c=(0,h.useRef)(null),d=(0,h.useRef)(null),f=(0,h.useRef)(null),p=(0,h.useRef)(null),g=(0,h.useRef)(null),v=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(["Menu","Close"]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Eo(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eo(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=v[0],w=v[1],x=(0,h.useRef)(null),S=(0,h.useRef)(null),j=(0,h.useRef)(null),E=(0,h.useRef)(!1);(0,h.useLayoutEffect)(function(){var e=Et.context(function(){var e=c.current,t=d.current,n=f.current,r=p.current;e&&t&&n&&r&&(Et.set(e,{transformOrigin:"50% 50%",rotate:0}),Et.set(t,{transformOrigin:"50% 50%",rotate:90}),Et.set(n,{rotate:0,transformOrigin:"50% 50%"}),Et.set(r,{yPercent:0}),u.current&&a&&Et.set(u.current,{color:a}))});return function(){return e.revert()}},[a]),y().useEffect(function(){if(u.current)if(s){var e=E.current?i:a;e&&Et.set(u.current,{color:e})}else a&&Et.set(u.current,{color:a})},[s,a,i]);var O=(0,h.useCallback)(function(e){var t,n=f.current,r=c.current,a=d.current;n&&r&&a&&(null==(t=x.current)||t.kill(),e?(Et.set(n,{rotate:0,transformOrigin:"50% 50%"}),x.current=Et.timeline({defaults:{ease:"power4.out"}}).to(r,{rotate:45,duration:.5},0).to(a,{rotate:-45,duration:.5},0)):x.current=Et.timeline({defaults:{ease:"power3.inOut"}}).to(r,{rotate:0,duration:.35},0).to(a,{rotate:90,duration:.35},0).to(n,{rotate:0,duration:.001},0))},[]),k=(0,h.useCallback)(function(e){var t,n=u.current;if(n)if(null==(t=j.current)||t.kill(),s){var r=e?i:a;r&&(j.current=Et.to(n,{color:r,delay:.18,duration:.3,ease:"power2.out"}))}else a&&Et.set(n,{color:a})},[i,a,s]),D=(0,h.useCallback)(function(e){var t,n=p.current;if(n){null==(t=S.current)||t.kill();for(var r=e?"Menu":"Close",a=e?"Close":"Menu",i=[r],o=r,s=0;s<3;s++)o="Menu"===o?"Close":"Menu",i.push(o);o!==a&&i.push(a),i.push(a),w(i),Et.set(n,{yPercent:0});var l=i.length;S.current=Et.to(n,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return y().useEffect(function(){n!==E.current&&(E.current=n,O(n),k(n),D(n))},[n,O,k,D]),(0,m.jsxs)("button",{ref:u,className:"sm-toggle relative inline-flex items-center gap-[0.3rem] bg-transparent border-0 cursor-pointer font-medium leading-none overflow-visible pointer-events-auto".concat(l?" "+l:""),"aria-label":n?"Close menu":"Open menu","aria-expanded":n,"aria-controls":"staggered-menu-panel",onClick:r,type:"button",children:[(0,m.jsx)("span",{ref:g,className:"sm-toggle-textWrap relative inline-block h-[1em] overflow-hidden whitespace-nowrap w-[var(--sm-toggle-width,auto)] min-w-[var(--sm-toggle-width,auto)] mr-[0.5em]","aria-hidden":"true",children:(0,m.jsx)("span",{ref:p,className:"sm-toggle-textInner flex flex-col leading-none",children:b.map(function(e,t){return(0,m.jsx)("span",{className:"sm-toggle-line block h-[1em] leading-none",children:e},t)})})}),(0,m.jsxs)("span",{ref:f,className:"sm-icon relative w-[14px] h-[14px] shrink-0 inline-flex items-center justify-center [will-change:transform]","aria-hidden":"true",children:[(0,m.jsx)("span",{ref:c,className:"sm-icon-line absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"}),(0,m.jsx)("span",{ref:d,className:"sm-icon-line sm-icon-line-v absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"})]}),(0,m.jsx)("style",{children:"\n.sm-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; background: transparent; border: none; cursor: pointer; font-weight: 500; line-height: 1; overflow: visible; }\n.sm-toggle:focus-visible { outline: 2px solid #ffffffaa; outline-offset: 4px; border-radius: 4px; }\n.sm-toggle-textWrap { position: relative; display: inline-block; height: 1em; overflow: hidden; white-space: nowrap; width: var(--sm-toggle-width, auto); min-width: var(--sm-toggle-width, auto); }\n.sm-toggle-textInner { display: flex; flex-direction: column; line-height: 1; }\n.sm-toggle-line { display: block; height: 1em; line-height: 1; }\n.sm-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; display: inline-flex; align-items: center; justify-content: center; will-change: transform; }\n.sm-icon-line { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); will-change: transform; }\n "})]})};function El(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class Eu extends h.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(mI(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=mI(e)&&e.offsetWidth||0,r=mI(e)&&e.offsetHeight||0,a=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(a.height),i.width=parseFloat(a.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top,i.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Ec({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:i}){let o=(0,h.useId)(),s=(0,h.useRef)(null),l=(0,h.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,h.useContext)(dv),c=function(...e){return h.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=El(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():El(e[t],null)}}}}(...e),e)}(s,!1!==i?e.props?.ref??e?.ref:void 0);return(0,h.useInsertionEffect)(()=>{let{width:e,height:c,top:d,left:f,right:p,bottom:m,direction:h}=l.current;if(t||!1===i||!s.current||!e||!c)return;let y="rtl"===h,g="left"===n?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,v="bottom"===r?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let b=document.createElement("style");u&&(b.nonce=u);let w=a??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
|
|
13
13
|
[data-motion-pop-id="${o}"] {
|
|
14
14
|
position: absolute !important;
|
|
15
15
|
width: ${e}px !important;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
${g}px !important;
|
|
18
18
|
${v}px !important;
|
|
19
19
|
}
|
|
20
|
-
`),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(b)&&w.removeChild(b)}},[t]),(0,m.jsx)(Eu,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:!1===i?e:h.cloneElement(e,{ref:c})})}let Ed=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dA(Ef),d=(0,h.useId)(),f=(0,h.useRef)(n),p=(0,h.useRef)(r);dB(()=>{f.current=n,p.current=r});let y=!0,g=(0,h.useMemo)(()=>(y=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;r&&r()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[n,c,r]);return i&&y&&(g={...g}),(0,h.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),h.useEffect(()=>{n||c.size||!r||r()},[n]),e=(0,m.jsx)(Ec,{pop:"popLayout"===o,isPresent:n,anchorX:s,anchorY:l,root:u,children:e}),(0,m.jsx)(dP.Provider,{value:g,children:e})};function Ef(){return new Map}let Ep=e=>e.key||"";function Em(e){let t=[];return h.Children.forEach(e,e=>{(0,h.isValidElement)(e)&&t.push(e)}),t}let Eh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=p_(o),f=(0,h.useMemo)(()=>Em(e),[e]),p=o&&!c?[]:f.map(Ep),y=(0,h.useRef)(!0),g=(0,h.useRef)(f),v=dA(()=>new Map),b=(0,h.useRef)(new Set),[w,x]=(0,h.useState)(f),[S,j]=(0,h.useState)(f);dB(()=>{y.current=!1,g.current=f;for(let e=0;e<S.length;e++){let t=Ep(S[e]);p.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[S,p.length,p.join("-")]);let E=[];if(f!==w){let e=[...f];for(let t=0;t<S.length;t++){let n=S[t],r=Ep(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return"wait"===i&&E.length&&(e=E),j(Em(e)),x(f),null}let{forceRender:O}=(0,h.useContext)(dy);return(0,m.jsx)(m.Fragment,{children:S.map(e=>{let h=Ep(e),w=(!o||!!c)&&(f===S||p.includes(h));return(0,m.jsx)(Ed,{isPresent:w,initial:(!y.current||!!n)&&void 0,custom:t,presenceAffectsLayout:a,mode:i,root:u,onExitComplete:w?void 0:()=>{if(b.current.has(h)||!v.has(h))return;b.current.add(h),v.set(h,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(O?.(),j(g.current),o&&d?.(),r&&r())},anchorX:s,anchorY:l,children:e},h)})})},Ey={wrapper:"+MhaVae6THwsk5E6SgD91g==",trigger:"erLmyNa4KNmSTnIWruF98w==",triggerIcon:"vgVuFlAm9oz2YIX+R3KGog==",triggerChevron:"EdRjow+3atz2LikqTtwRiA==","triggerChevron--open":"_3Qo5hPFht+fmaD5wpyrVDA==","triggerChevron--up":"LhY70oEV9rW+HCjBflQttg==",overlay:"j+0L8iAqopV5T3dTF0FKHA==",panel:"DLLKVOAuRvynO719yhZLdQ==",panelInner:"DfOdez6SxH290+Zy++HamA==",column:"BLcH+6UWPrpxna6xW7CaRg==",columnSearch:"VF7IQhw8YUnuNbxqB5uxgg==",columnSearchIcon:"L3Vzmgyzo+bBL73XihSy8g==",columnSearchInput:"nxz89i96vOH2bJ8IlCF3vw==",columnList:"XXN4Osw2SEvuhRZebn+W4g==",columnItem:"iEw8FhekcP+mGRJY9ZWi+Q==",columnItemIcon:"Z+QCa3t-znECWPm2IMJvdg==",columnItemLabel:"TvYE56z6ZZPeeL4ZRozI9w==",columnItemChevron:"NEPWPyiPTSNucX+JQPDvag==",columnEmpty:"_8a9jyeZZX6-xJ78eLrafow=="};function Eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ev=function(e){var t,n=e.columnItems,r=e.columnIndex,a=e.activeItems,i=e.searchable,o=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Eg(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eg(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,h.useMemo)(function(){if(!c.trim())return n;var e=c.trim().toLowerCase();return n.filter(function(t){return t.label.toLowerCase().includes(e)})},[n,c]);return(0,m.jsxs)(mY.div,{className:Ey.column,initial:{opacity:0,width:0},animate:{opacity:1,width:"var(--cnd-column-width)"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeOut"},children:[i&&(0,m.jsxs)("div",{className:Ey.columnSearch,children:[(0,m.jsx)(tl,{className:Ey.columnSearchIcon,size:14}),(0,m.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:Ey.columnSearchInput,"aria-label":o})]}),(0,m.jsxs)("ul",{className:Ey.columnList,role:"list",children:[f.map(function(e){var t,n=a[r]===e.id,i=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,m.jsx)("li",{children:(0,m.jsxs)("button",{type:"button",className:Ey.columnItem,"data-active":n||void 0,onMouseEnter:function(){return s(e,r)},onFocus:function(){return s(e,r)},onClick:function(){!i&&e.path&&l(e.path)},children:[o&&(0,m.jsx)(o,{className:Ey.columnItemIcon,size:16}),(0,m.jsx)("span",{className:Ey.columnItemLabel,children:e.label}),i&&(0,m.jsx)(ej,{className:Ey.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,m.jsx)("li",{className:Ey.columnEmpty,children:"—"})]})]})};function Eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ew(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Ej(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ES(e){return function(e){if(Array.isArray(e))return Eb(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ej(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ej(e,t){if(e){if("string"==typeof e)return Eb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eb(e,t)}}var EE=function(e){var t,n,r=e.items,a=e.triggerLabel,i=e.triggerIcon,o=e.direction,s=void 0===o?"down":o,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,y=Ex((0,h.useState)(!1),2),g=y[0],b=y[1],w=Ex((0,h.useState)([r]),2),x=w[0],S=w[1],j=Ex((0,h.useState)([]),2),E=j[0],O=j[1],k=Ex((0,h.useState)(null),2),D=k[0],P=k[1],A=(0,h.useRef)(null);(0,h.useLayoutEffect)(function(){g||(S([r]),O([]))},[r,g]),(0,h.useLayoutEffect)(function(){if(g&&A.current){var e=A.current.getBoundingClientRect();P("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[g,s]);var C=function(e,t){var n,r=ES(E);r[t]=e.id,(null==(n=e.children)?void 0:n.length)?S(ES(x.slice(0,t+1)).concat([e.children])):S(x.slice(0,t+1)),O(r)},T=function(e){b(!1),null==f||f(e)};return(0,m.jsxs)("div",{className:v()(Ey.wrapper,p),children:[(0,m.jsxs)("button",{ref:A,type:"button",className:Ey.trigger,onClick:function(){return b(function(e){return!e})},"aria-haspopup":"true","aria-expanded":g,children:[i&&(0,m.jsx)(i,{className:Ey.triggerIcon,size:16}),(0,m.jsx)("span",{children:void 0===a?"Navigation":a}),(0,m.jsx)(ex,{className:v()(Ey.triggerChevron,(Ew(t={},Ey["triggerChevron--open"],g),Ew(t,Ey["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,m.jsx)(Eh,{children:g&&D&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:Ey.overlay,onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,m.jsx)(mY.div,{className:v()(Ey.panel,Ey["panel--".concat(s)]),style:(Ew(n={left:D.left,top:D.top,bottom:D.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),Ew(n,"--cnd-column-width","16rem"),n),initial:{opacity:0,y:"up"===s?10:-10,scale:.96},animate:{opacity:1,y:0,scale:1,width:"var(--cnd-panel-width)",transition:{opacity:{duration:.18},y:{duration:.28,type:"spring",stiffness:200,damping:20},scale:{duration:.18},width:{duration:.28,ease:"easeOut"}}},exit:{opacity:0,y:"up"===s?10:-10,scale:.96,transition:{duration:.18}},children:(0,m.jsx)("div",{className:Ey.panelInner,children:(0,m.jsx)(Eh,{mode:"sync",children:x.map(function(e,t){return(0,m.jsx)(Ev,{columnItems:e,columnIndex:t,activeItems:E,searchable:u,searchPlaceholder:d,onHover:C,onNavigate:T},t)})})})})]})})]})},EO=(0,h.createContext)(null),Ek=function(){var e=(0,h.useContext)(EO);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function ED(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EP=function(e){var t,n=e.children,r=e.open,a=e.onOpenChange,i=e.defaultOpen,o=e.className,s=e.side,l=e.height,u=e.closeThreshold,c=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(null!=i&&i))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return ED(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ED(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=void 0!==r,y=p?r:d,g=(0,h.useCallback)(function(e){null==a||a(e),p||f(e)},[a,p]);return(0,m.jsx)(EO.Provider,{value:{isOpen:y,onOpenChange:g,contentProps:{height:void 0===l?"55vh":l,className:void 0===o?"":o,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:n})};function EA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EC=function(e){var t,n=e.children,r=e.container,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return EA(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EA(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];if((0,h.useEffect)(function(){s(!0)},[]),!o||"u"<typeof document)return null;var l=a?(0,m.jsx)("div",{className:a,children:n}):n;return(0,rC.createPortal)(l,r||document.body)};let ET={triggerReset:"UTfMgRiNPzIznEurby664A==",container:"aWpQhbD4hQ2xfoFCY+v98A==","container--closed":"_6a2quhyuamg6Jnu2R0XZRg==",overlay:"uA7DGJbtkeLtyEgBWLudcg==",panel:"z6F4H-lgJLzzAj5DnVRryQ==","panel--top":"_38Sx-y4GdtWmNrETgQugkQ==","panel--bottom":"NGUY6C9LOAYjl6PSdt1xRw==",body:"IMmoKiNl8EmbBwnED75RbA==",scrollArea:"iAvbXCoavXWllacp5gpmHw==",handleRow:"ME49NFGQ57X-WijIuZhL-g==",handle:"lmM97ycxqOLoc3p10FNnJQ==",header:"e3jwSgdciqRPypRFgEXIEg==",title:"BmFFjd7CzigiMTXcFmiVwQ==",description:"PDFT4QgaZAFZt5sPYzNKxw==",footer:"p-rskDegBYgDoo-4cR88Nw=="};function EN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ER(e){if(Array.isArray(e))return e}function EM(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function EI(e,t){if(e){if("string"==typeof e)return EN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EN(e,t)}}var EL=(0,h.forwardRef)(function(e,t){var n,r=ER(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||EI(n)||EM(),a=r[0],i=r.slice(1),o=a.className,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["className"]),l=(ER(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||EI(i,1)||EM())[0],u=Ek(),c=u.isOpen,d=u.onOpenChange,f=(0,h.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,m.jsx)(mY.div,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:v()(ET.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function E_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function EF(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}EL.displayName="SheetOverlay";var EV=function(e){var t=e.asChild,n=e.children,r=e.className,a=Ek().onOpenChange,i=function(){return a(!0)};return t&&y().isValidElement(n)?y().cloneElement(n,EF(E_({},n.props),{className:v()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,m.jsx)("button",{onClick:i,type:"button",className:v()(ET.triggerReset,r),children:n})},EB=function(e){var t=e.asChild,n=e.children,r=e.className,a=Ek().onOpenChange,i=function(){return a(!1)};return t&&y().isValidElement(n)?y().cloneElement(n,EF(E_({},n.props),{className:v()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,m.jsx)("button",{onClick:i,type:"button",className:v()(ET.triggerReset,r),children:n})};function Ez(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&dq(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Ez(e,t)})})}function EU(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){uw(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let a=[];return t.forEach(e=>{a.push(fZ(e,n,{transitionOverride:r}))}),Promise.all(a)},set:n=>(uw(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=n)?Ez(t,r):"string"==typeof r?Ez(t,[r]):dq(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}let EW=function(){let e=dA(EU);return dB(e.mount,[]),e};function E$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EH=function(e){var t,n=e.children,r=e.className,a=Ek(),i=a.isOpen,o=a.onOpenChange,s=a.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=EW(),f=(0,h.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return E$(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E$(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],b="top"===c?-1:1,w=(0,h.useCallback)(function(){return o(!1)},[o]),x=(0,h.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,n=window.innerWidth;return e=n<=640?.6*t:n<=1024?.55*t:.5*t,l.includes("vh")?e=parseInt(l,10)/100*t:l.includes("px")&&(e=parseInt(l,10)),Math.min(e,.8*t)},[l]);(0,h.useEffect)(function(){var e=function(){return g(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,h.useEffect)(function(){return i?(document.body.style.overflow="hidden",d.start({y:0,transition:{type:"spring",stiffness:400,damping:40,mass:.8}})):(document.body.style.overflow="",d.start({y:b*(y+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[i,d,y,b]),(0,h.useEffect)(function(){var e=function(e){"Escape"===e.key&&i&&w()};return i&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[i,w]);var S=(0,h.useCallback)(function(e,t){var n=b*t.offset.y>y*u,r=b*t.velocity.y>800;n||r?w():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,w,u,y,b]),j=(0,h.useCallback)(function(e){e.target===f.current&&w()},[w]);if(0===y)return null;var E="top"===c?{top:-y,bottom:0}:{top:0,bottom:y};return(0,m.jsx)(EC,{children:(0,m.jsxs)("div",{className:v()(ET.container,!i&&ET["container--closed"]),children:[(0,m.jsx)(mY.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!i},transition:{duration:.2,ease:"easeOut"},onClick:j,className:ET.overlay,style:{pointerEvents:i?"auto":"none"}}),(0,m.jsxs)(mY.div,{drag:"y",dragConstraints:E,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:S,animate:d,initial:{y:b*(y+50)},className:v()(ET.panel,ET["panel--".concat(c)],void 0===r?"":r),style:{height:y},children:["bottom"===c&&(0,m.jsx)("div",{className:ET.handleRow,children:(0,m.jsx)("div",{className:ET.handle})}),(0,m.jsx)("div",{className:ET.body,children:(0,m.jsx)("div",{className:ET.scrollArea,children:n})}),"top"===c&&(0,m.jsx)("div",{className:ET.handleRow,children:(0,m.jsx)("div",{className:ET.handle})})]})]})})},EG=function(e){var t=e.children,n=e.className;return(0,m.jsx)("div",{className:v()(ET.header,n),children:t})},Eq=function(e){var t=e.children,n=e.className;return(0,m.jsx)("h3",{className:v()(ET.title,n),children:t})},EY=function(e){var t=e.children,n=e.className;return(0,m.jsx)("p",{className:v()(ET.description,n),children:t})},EK=function(e){var t=e.children,n=e.className;return(0,m.jsx)("div",{className:v()(ET.footer,n),children:t})},EZ=EP;function EX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E0=function(e){var t=e.items,n=e.title,r=e.hint,a=void 0===r?"Glisser une carte vers le bas pour fermer":r,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.className,u=e.style,c=e.itemWidth,d=void 0===c?"14rem":c,f=e.itemHeight,p=void 0===f?"18rem":f,y=e.accentColor,g=EJ((0,h.useState)(void 0!==o&&o),2),b=g[0],w=g[1],x=EJ((0,h.useState)(!1),2),S=x[0],j=x[1],E=void 0!==i,O=E?i:b,k=function(e){null==s||s(e),E||w(e)},D=function(e,t){t.offset.y>100&&O&&(k(!1),j(!1))},P=(t.length-1)/2,A=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){EQ(e,t,n[t])})}return e}({},y?EQ({},"--fg-accent",y):void 0,u);return(0,m.jsx)("div",{className:v()("mf1PQJZJIkTcC6ieajp06g==",l),style:A,children:(0,m.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,m.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,m.jsxs)(mY.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!O,scale:O?.9:1},children:[(0,m.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,m.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,m.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,m.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var n=t-P,r=1-.03*Math.abs(n);return(0,m.jsx)(mY.div,{drag:O,dragSnapToOrigin:!0,onDragEnd:D,className:v()("x+8qV1iWMRfwOVcjmG22XA==",EQ({},"-43huhs0q9f4MpiDC1igog==",O)),style:{width:d,height:p},animate:O?{y:-130,x:130*n,rotate:0,scale:1.05,zIndex:50}:{y:S?-10*n-40:-5*n,x:S?30*n:3*n,rotate:S?8*n:3*n,scale:r,zIndex:t+10},whileHover:O?{scale:1.1,zIndex:100}:void 0,whileDrag:O?{scale:1.05+.1,rotate:5,zIndex:150}:void 0,transition:{type:"spring",stiffness:350,damping:30},children:e.content},e.id)})}),(0,m.jsx)(mY.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!O,rotateX:S?-25:0,y:10*!!S,pointerEvents:O?"none":"auto"},onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onClick:function(){return k(!0)},children:(0,m.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,m.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,m.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,m.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===n?"Dossier":n})})]})})]}),a&&(0,m.jsx)(mY.div,{animate:{opacity:+!!O,y:50*!O},className:"xaOf3vz5KbUopgtshcuAKA==",children:a})]})})};function E1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E1(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E4(e){var t=e.items,n=e.className,r=e.style,a=E3((0,h.useState)(null),2),i=a[0],o=a[1],s=E3((0,h.useState)(null),2),l=s[0],u=s[1],c=function(e){u(i),o(e)},d=function(){u(i),o(null)};return(0,h.useEffect)(function(){if(i){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[i]),(0,m.jsxs)("div",{className:v()("cwEvWWvWR1VRjUW5EIdhaA==",n),style:r,children:[t.map(function(e){var t,n=(null==i?void 0:i.id)===e.id,r=!n&&(null==l?void 0:l.id)===e.id;return(0,m.jsx)("div",{className:e.className,children:(0,m.jsxs)(mY.div,{role:"button",tabIndex:0,"aria-pressed":n,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:v()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(E2(t={},"wpWM12DNjfwunfLOmmaBnQ==",n),E2(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!n),E2(t,"_1zQI0+1IAUASZtCPebAKvg==",r),t)),layoutId:"layout-grid-card-".concat(e.id),children:[n&&(0,m.jsx)(E6,{item:i}),(0,m.jsx)(E5,{item:e})]})},e.id)}),(0,m.jsx)(mY.div,{onClick:d,className:v()("SfuCW8U7MUzYHVthm3806Q==",E2({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==i?void 0:i.id))),animate:{opacity:+(null!=i&&!!i.id)},"aria-hidden":"true"})]})}function E5(e){var t=e.item;return(0,m.jsx)(mY.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function E6(e){var t=e.item;return(0,m.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,m.jsx)(mY.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,m.jsx)(mY.div,{layoutId:"layout-grid-content-".concat(null==t?void 0:t.id),initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{duration:.3,ease:"easeInOut"},className:"F2vzEavwn6vgxochiCbbkQ==",children:null==t?void 0:t.content})]})}let E8="VL60poBQJU5GXBc55DtOgg==",E9="Z-QYx9GU0-9PvqywVAWDOw==",E7="k5GwrlmSGQEXCHiD9NJSgg==",Oe="Sd+oehXhY2IvCEPY7LquSQ==",Ot="_2TUXiGgesFw6MMltbcDw7g==",On="aaY-ypFw8QYOvR34L1Ad3g==",Or="_0FXGSaE3Vf6Xfst6Bn-1XQ==",Oa="J+6pxxgImJiBa+5uolSRLA==",Oi="-cMLmEDNbTRZO+q9J5EnZQ==",Oo="pNL9YXjomLOkN1Sc1NOXsw==",Os="YY-ar9Letsk0I16pNK2koQ==";var Ol=function(){return(0,m.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,m.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ou(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ou(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Of=function(e){var t=e.title,n=e.coverImageUrl,r=e.category,a=e.itemCountLabel,i=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=Od((0,h.useState)(!1),2),f=d[0],p=d[1],y=Od((0,h.useState)(null),2),g=y[0],b=y[1],w=Od((0,h.useState)(null),2),x=w[0],S=w[1],j=Od((0,h.useState)(0),2),E=j[0],O=j[1],k=Od((0,h.useState)("translateY(0px)"),2),D=k[0],P=k[1],A=(0,h.useRef)(null),C=(0,h.useRef)(new Map),T=null!==g,N=f||T;(0,h.useEffect)(function(){if(null!==g){var e=function(){var e=C.current.get(g);e&&A.current&&O(e.getBoundingClientRect().top-A.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[g]);var R=function(e){if(e.detail){var t=C.current.get(e.id);if(t&&A.current){var n=window.innerHeight-t.getBoundingClientRect().bottom+A.current.offsetTop-390;P("translateY(".concat(n,"px)"))}b(e.id),S(e)}};return(0,m.jsx)("div",{className:v()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,m.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,m.jsxs)("div",{ref:A,className:v()("_09AECjHCq6I9nuofSaItrA==",Oc({},"GyoWR7DyKiD7EWOqlosJAg==",N)),children:[(0,m.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,m.jsxs)("div",{className:E8,children:[(0,m.jsx)("img",{className:E9,src:n,alt:""}),(0,m.jsx)("img",{className:v()(E9,E7),src:n,alt:"","aria-hidden":"true"})]}),(0,m.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,m.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,m.jsx)("h1",{className:Oe,children:t}),(0,m.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[r&&(0,m.jsx)("p",{className:Ot,children:r}),r&&a&&(0,m.jsx)("div",{className:Or}),a&&(0,m.jsx)("p",{className:Ot,children:a}),a&&i&&(0,m.jsx)("div",{className:Or}),i&&(0,m.jsx)("p",{className:Ot,children:i})]})]}),(0,m.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,m.jsxs)("div",{ref:(t=e.id,function(e){e?C.current.set(t,e):C.current.delete(t)}),className:Oa,onClick:function(){return R(e)},children:[(0,m.jsx)("p",{className:On,children:e.title}),(0,m.jsxs)("div",{className:Oi,children:[(0,m.jsx)("button",{type:"button",className:Oo,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,m.jsx)(e5,{size:20})}),e.meta&&(0,m.jsx)("p",{className:Ot,children:e.meta})]})]},e.id)})})]})]}),x&&(0,m.jsxs)("div",{className:v()("T5TjonuT8CpL6L9LnfYUbg==",Oc({},"Yw84bwYkOFxUPSl8uIlHYA==",T)),style:{top:"".concat(E,"px"),transform:D},children:[(0,m.jsxs)("div",{className:Oa,children:[(0,m.jsx)("p",{className:On,children:x.title}),(0,m.jsxs)("div",{className:Oi,children:[(0,m.jsx)("button",{type:"button",className:Oo,onClick:function(){P("translateY(0px)"),b(null)},"aria-label":"Fermer",children:(0,m.jsx)(ea,{size:20,className:Os})}),x.meta&&(0,m.jsx)("p",{className:Ot,children:x.meta})]})]}),(0,m.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,m.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,m.jsx)(Ol,{})]}),s&&(0,m.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":T?"none":void 0},children:[(0,m.jsx)("button",{type:"button",className:"GXOllnKpaSxbHHOmgv+RcQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,m.jsx)(ea,{size:24,className:v()(Oc({},Os,f))})}),(0,m.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,m.jsxs)("div",{className:E8,children:[(0,m.jsx)("h1",{className:Oe,children:s.name}),(0,m.jsx)("img",{className:E9,src:s.photoUrl,alt:""}),(0,m.jsx)("img",{className:v()(E9,E7),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,m.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,m.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,m.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,m.jsx)("p",{className:v()(Ot,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,m.jsx)("div",{className:Or}),s.itemCountLabel&&(0,m.jsx)("p",{className:Ot,children:s.itemCountLabel})]}),s.statLabel&&(0,m.jsx)("p",{className:Ot,children:s.statLabel})]}),s.description&&(0,m.jsx)("p",{className:On,children:s.description})]})]}),(0,m.jsx)(Ol,{}),(0,m.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})},Op={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},scale:{initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96}},zoom:{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6}},"slide-up":{initial:{opacity:0,y:48},animate:{opacity:1,y:0},exit:{opacity:0,y:24}},"slide-down":{initial:{opacity:0,y:-48},animate:{opacity:1,y:0},exit:{opacity:0,y:-24}},"slide-left":{initial:{opacity:0,x:48},animate:{opacity:1,x:0},exit:{opacity:0,x:24}},"slide-right":{initial:{opacity:0,x:-48},animate:{opacity:1,x:0},exit:{opacity:0,x:-24}},none:{initial:{},animate:{},exit:{}}};let Om={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};function Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Og(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oh(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ov=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},Ob=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Ow=function(e){var t,n,r,a,i,o,s,l,u=e.open,c=e.defaultOpen,d=e.onOpenChange,f=e.trigger,p=e.children,y=e.showCloseButton,g=e.renderCloseButton,b=e.cardVariant,w=e.cardProps,x=e.draggable,S=void 0!==x&&x,j=e.dockable,E=void 0!==j&&j,O=e.dockIcon,k=e.dockEdgeThreshold,D=void 0===k?80:k,P=e.dockUndockDistance,A=void 0===P?120:P,C=e.dockSize,T=void 0===C?56:C,N=e.closeOnOverlayClick,R=e.closeOnEscape,I=void 0===R||R,L=e.showOverlay,_=e.lockScroll,F=void 0===_||_,V=e.animation,B=void 0===V?"scale":V,z=e.overlayAnimation,U=e.className,W=e.style,$=e.overlayClassName,H=Og((0,h.useState)(void 0!==c&&c),2),G=H[0],q=H[1],Y=Og((0,h.useState)(!1),2),K=Y[0],Z=Y[1],X=Og((0,h.useState)(null),2),Q=X[0],J=X[1],ee=(0,h.useRef)(null),et=(0,h.useId)(),en=void 0!==u,er=en?u:G,ea=(0,h.useCallback)(function(e){null==d||d(e),en||q(e)},[d,en]),ei=(0,h.useCallback)(function(){return ea(!1)},[ea]);(0,h.useEffect)(function(){return Z(!0)},[]),(0,h.useEffect)(function(){er&&J(null)},[er]);var eo=(0,h.useCallback)(function(){if(E&&ee.current&&"u">typeof window){var e=ee.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2;if(Q)return void(Math.abs(t-("left"===Q.side?0:window.innerWidth))>A?J(null):J({side:Q.side,y:Ov(n,T)}));t<=D?J({side:"left",y:Ov(n,T)}):t>=window.innerWidth-D&&J({side:"right",y:Ov(n,T)})}},[E,Q,D,A,T]);(0,h.useEffect)(function(){if(er&&F)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[er,F]),(0,h.useEffect)(function(){if(er&&I){var e=function(e){"Escape"===e.key&&ei()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[er,I,ei]);var es=Ob(B)?B:{preset:B},el=null!=(r=es.variants)?r:Op[null!=(a=es.preset)?a:"scale"],eu={duration:null!=(i=es.duration)?i:.25,ease:null!=(o=es.ease)?o:[.16,1,.3,1]},ec={duration:null!=(s=null==z?void 0:z.duration)?s:.2,ease:null!=(l=null==z?void 0:z.ease)?l:"easeOut"},ed=(0,m.jsx)(Eh,{children:er&&(0,m.jsxs)("div",{className:Om.root,children:[(void 0===L||L)&&!Q&&(0,m.jsx)(mY.div,{className:v()(Om.overlay,$),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ec,onClick:void 0===N||N?ei:void 0,"aria-hidden":"true"}),Q?(0,m.jsx)(mY.div,{ref:ee,className:v()(Om.dockBubble,Om["dockBubble--".concat(Q.side)]),style:Oy({top:Q.y,width:T,height:T},Q.side,-(T/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:eo,initial:{scale:.3,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.3,opacity:0},transition:{type:"spring",stiffness:420,damping:32},whileDrag:{cursor:"grabbing"},role:"button",tabIndex:0,"aria-label":"D\xe9ployer le modal",onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&J(null)},children:null!=O?O:(0,m.jsx)(eQ,{size:20})}):(0,m.jsx)("div",{className:Om.centerLayer,children:(0,m.jsx)(mY.div,{ref:ee,role:"dialog","aria-modal":"true","aria-labelledby":(null==w?void 0:w.title)?et:void 0,className:v()(Om.panel,U),style:W,variants:el,initial:"initial",animate:"animate",exit:"exit",transition:eu,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:E?eo:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,m.jsxs)(M,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Oy(e,t,n[t])})}return e}({variant:void 0===b?"default":b},w),n=n={children:[(void 0===y||y)&&(g?g(ei):(0,m.jsx)("button",{type:"button",className:Om.closeButton,onClick:ei,"aria-label":"Fermer",children:(0,m.jsx)(eO,{size:18})})),p]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})})]})});return(0,m.jsxs)(m.Fragment,{children:[f&&(0,m.jsx)("span",{className:Om.triggerWrap,onClick:function(){return ea(!0)},children:f}),K&&(0,rC.createPortal)(ed,document.body)]})},Ox=(0,h.createContext)(null);function OS(){var e=(0,h.useContext)(Ox);if(!e)throw Error("Select compound components must be used within <Select>");return e}function Oj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OE(e){var t,n=e.children,r=e.options,a=e.selectedOptionId,i=e.onOptionChange,o=e.open,s=e.onOpenChange,l=e.getOptionId,u=void 0===l?function(e){return e.id}:l,c=e.getOptionName,d=void 0===c?function(e){return e.name}:c,f=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Oj(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oj(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1],g=(0,h.useRef)(null),v=void 0!==o,b=v?o:p,w=(0,h.useCallback)(function(e){null==s||s(e),v||y(e)},[s,v]),x=(0,h.useMemo)(function(){var e;return a&&null!=(e=r.find(function(e){return u(e)===a}))?e:r[0]},[r,a,u]),S=(0,h.useCallback)(function(e){null==i||i(e),w(!1)},[i,w]);return(0,m.jsx)(Ox.Provider,{value:{open:b,setOpen:w,selectedOption:x,options:r,onOptionSelect:S,getOptionId:u,getOptionName:d,triggerRef:g},children:n})}function OO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ok=function(e){var t,n=e.src,r=e.name,a=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return OO(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OO(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1];return n&&!i?(0,m.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:n,alt:"",onError:function(){return o(!0)}}):(0,m.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:r.charAt(0).toUpperCase()})};function OD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OP=function(e){var t,n,r=e.className,a=e.renderTrigger,i=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["className","renderTrigger","showAvatar","placeholder"]),l=OS(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,m.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){OD(e,t,n[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:v()("t3j-WppHuYF4Q80G8ssYTw==",r),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),n=n={children:[a?a(d,u):(0,m.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,m.jsxs)(m.Fragment,{children:[(void 0===i||i)&&(0,m.jsx)(Ok,{src:d.logo,name:f(d)}),(0,m.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,m.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,m.jsx)(ex,{className:v()("Mx+cKK19Fg1ZkYsq9XTF+Q==",OD({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};function OA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OA(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ON=function(e){var t=e.className,n=e.style,r=e.renderOption,a=e.title,i=void 0===a?"Options":a,o=e.searchable,s=e.searchPlaceholder,l=void 0===s?"Rechercher…":s,u=e.onSearch,c=e.emptyMessage,d=e.showAvatar,f=void 0===d||d,p=e.children,y=OS(),g=y.open,b=y.setOpen,w=y.options,x=y.selectedOption,S=y.onOptionSelect,j=y.getOptionId,E=y.getOptionName,O=y.triggerRef,k=OT((0,h.useState)(""),2),D=k[0],P=k[1],A=OT((0,h.useState)(null),2),C=A[0],T=A[1],N=(0,h.useRef)(null);(0,h.useLayoutEffect)(function(){if(g&&O.current){var e=O.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})}},[g,O]),(0,h.useLayoutEffect)(function(){if(g){var e=function(e){var t,n,r=e.target;(null==(t=N.current)?void 0:t.contains(r))||(null==(n=O.current)?void 0:n.contains(r))||b(!1)},t=function(e){"Escape"===e.key&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[g,b,O]),(0,h.useLayoutEffect)(function(){null==u||u(D)},[D,u]);var R=(0,h.useMemo)(function(){if(!D.trim())return w;var e=D.trim().toLowerCase();return w.filter(function(t){return E(t).toLowerCase().includes(e)})},[w,D,E]);return(0,m.jsx)(Eh,{children:g&&C&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,m.jsxs)(mY.div,{ref:N,role:"listbox",className:v()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){OC(e,t,n[t])})}return e}({top:C.top,left:C.left,minWidth:C.width},n),initial:{opacity:0,y:-6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.98,transition:{duration:.15}},transition:{duration:.18,ease:"easeOut"},children:[i&&(0,m.jsx)("div",{className:"A2JDtexU43VW64EghIpTQA==",children:(0,m.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:i})}),void 0!==o&&o&&(0,m.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,m.jsx)(tl,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,m.jsx)("input",{type:"search",value:D,onChange:function(e){return P(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,m.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===R.length?(0,m.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):R.map(function(e){var t=!!(x&&j(x)===j(e));return(0,m.jsx)("button",{type:"button",role:"option","aria-selected":t,className:v()("mqfrCZDVzn25GOVXds14vw==",OC({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return S(e)},children:r?r(e,t):(0,m.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,m.jsx)(Ok,{src:e.logo,name:E(e)}),(0,m.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,m.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:E(e)}),"string"==typeof e.plan&&(0,m.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,m.jsx)(eb,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},j(e))})}),p&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,m.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let OR="YDxgnSM2QPGOYYICdgjq7Q==";function OM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||OL(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OL(e,t){if(e){if("string"==typeof e)return OM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OM(e,t)}}function O_(e){var t=e.options,n=e.defaultActiveIndex,r=e.onChange,a=e.title,i=e.subtitle,o=e.className,s=e.style,l=OI((0,h.useState)(void 0===n?0:n),2),u=l[0],c=l[1],d=OI((0,h.useState)([]),2),f=d[0],p=d[1],y=function(e){e!==u&&(c(e),null==r||r(e))};return(0,h.useEffect)(function(){var e=[];return t.forEach(function(t,n){var r=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return OM(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OL(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([n])})},180*n);e.push(r)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,m.jsxs)("div",{className:v()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(a||i)&&(0,m.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[a&&(0,m.jsx)("h1",{className:v()("TsIf8Q8vAVSLc-vC4h6-UA==",OR,"CUA6-RpM0KPkwxkPhWbpzg=="),children:a}),i&&(0,m.jsx)("p",{className:v()("GiaxLFLhrXHmZTTZjk2qqg==",OR,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:i})]}),(0,m.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,m.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var n=u===t,r=f.includes(t);return(0,m.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":n,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:n?"auto 100%":"auto 120%",opacity:+!!r,transform:r?"translateX(0)":"translateX(-60px)",borderColor:n?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:n?"0 20px 60px color-mix(in srgb, var(--colors-neutral-950) 50%, transparent)":"0 10px 30px color-mix(in srgb, var(--colors-neutral-950) 30%, transparent)",flex:n?"7 1 0%":"1 1 0%",zIndex:n?10:1},onClick:function(){return y(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),y(t))},children:[(0,m.jsx)("div",{className:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:n?"0":"-40px",boxShadow:n?"inset 0 -120px 120px -120px var(--colors-neutral-950), inset 0 -120px 120px -80px var(--colors-neutral-950)":"inset 0 -120px 0px -120px var(--colors-neutral-950), inset 0 -120px 0px -80px var(--colors-neutral-950)"}}),(0,m.jsxs)("div",{className:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,m.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,m.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,m.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.title}),(0,m.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function OF(){cR.current||cI();let[e]=(0,h.useState)(cN.current);return e}function OV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function OB(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var Oz=function(e){return OV({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},e)},OU=function(e){return(0,m.jsx)("svg",OB(OV({},Oz(e)),{children:(0,m.jsx)("path",{d:"m6 9 6 6 6-6"})}))},OW=function(e){return(0,m.jsx)("svg",OB(OV({},Oz(e)),{children:(0,m.jsx)("path",{d:"M20 6 9 17l-5-5"})}))},O$=function(e){return(0,m.jsxs)("svg",OB(OV({},Oz(e)),{children:[(0,m.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,m.jsx)("path",{d:"m7 9 5-5 5 5"})]}))},OH=function(e){return(0,m.jsxs)("svg",OB(OV({},Oz(e)),{children:[(0,m.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,m.jsx)("path",{d:"m21 21-4.3-4.3"})]}))},OG=function(e){return(0,m.jsxs)("svg",OB(OV({},Oz(e)),{children:[(0,m.jsx)("path",{d:"M18 6 6 18"}),(0,m.jsx)("path",{d:"m6 6 12 12"})]}))},Oq=function(e){return(0,m.jsx)("svg",OB(OV({},Oz(e)),{children:(0,m.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}))};function OY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var OZ={type:"spring",duration:.5,bounce:.22},OX="flex w-full items-center justify-between gap-2 px-3.5 py-2.5 text-sm",OQ={hidden:{opacity:0,y:-6,filter:"blur(3px)"},show:{opacity:1,y:0,filter:"blur(0px)"}},OJ=(0,h.createContext)(null);function O0(e){var t=(0,h.useContext)(OJ);if(!t)throw Error("".concat(e," must be used within <MorphSelect>"));return t}function O1(e){var t,n=e.value,r=e.defaultValue,a=e.onValueChange,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.disabled,u=void 0!==l&&l,c=e.transition,d=void 0===c?OZ:c,f=e.radius,p=void 0===f?12:f,y=e.stagger,g=void 0===y?.035:y,v=e.staggerDelay,b=void 0===v?.08:v,w=e.className,x=e.children,S=null!=(t=OF())&&t,j=(0,h.useId)(),E=(0,h.useRef)(null),O=OK((0,h.useState)(void 0!==o&&o),2),k=O[0],D=O[1],P=void 0!==i,A=P?i:k,C=(0,h.useCallback)(function(e){P||D(e),null==s||s(e)},[P,s]),T=OK((0,h.useState)(r),2),N=T[0],R=T[1],M=OK((0,h.useState)(new Map),2),I=M[0],L=M[1],_=OK((0,h.useState)("Select"),2),F=_[0],V=_[1],B=void 0!==n,z=B?n:N,U=(0,h.useCallback)(function(e){B||R(e),null==a||a(e),C(!1)},[B,a,C]),W=(0,h.useCallback)(function(e,t){L(function(n){var r,a,i=new Map(n);return i.set(e,{label:t,count:(null!=(r=null==(a=n.get(e))?void 0:a.count)?r:0)+1}),i})},[]),$=(0,h.useCallback)(function(e){L(function(t){var n=t.get(e);if(!n)return t;var r=new Map(t);return n.count<=1?r.delete(e):r.set(e,{label:n.label,count:n.count-1}),r})},[]);(0,h.useEffect)(function(){if(A){var e=function(e){return"Escape"===e.key&&C(!1)},t=function(e){E.current&&!E.current.contains(e.target)&&C(!1)};return window.addEventListener("keydown",e),window.addEventListener("pointerdown",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t)}}},[A,C]);var H=(0,h.useMemo)(function(){return{value:z,open:A,setOpen:C,select:U,register:W,unregister:$,labelFor:function(e){var t;return void 0===e||null==(t=I.get(e))?void 0:t.label},placeholder:F,setPlaceholder:V,reduce:S,layoutId:"".concat(j,"-surface"),triggerId:"".concat(j,"-trigger"),listId:"".concat(j,"-list"),disabled:u,transition:d,radius:p,stagger:g,staggerDelay:b}},[z,A,C,U,W,$,I,F,S,j,u,d,p,g,b]);return(0,m.jsx)(OJ.Provider,{value:H,children:(0,m.jsx)("div",{ref:E,className:ya("relative",w),children:x})})}function O2(e){var t,n=e.placeholder,r=e.className,a=O0("MorphSelectValue");(0,h.useEffect)(function(){n&&a.setPlaceholder(n)},[n,a.setPlaceholder]);var i=a.labelFor(a.value);return(0,m.jsx)("span",{className:ya(i?"text-foreground":"text-muted-foreground",r),children:null!=(t=null!=i?i:n)?t:"Select"})}function O3(e){var t,n,r=e.className,a=e.icon,i=e.children,o=O0("MorphSelectTrigger"),s=null!=a?a:(0,m.jsx)(OU,{className:"h-4 w-4"});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"aria-hidden":!0},{inert:""}),n=n={className:ya(OX,"invisible rounded-xl border border-border"),children:[i,s]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)),(0,m.jsx)(Eh,{initial:!1,mode:"popLayout",children:o.open?null:(0,m.jsxs)(mY.button,{layoutId:o.layoutId,type:"button",id:o.triggerId,disabled:o.disabled,"aria-haspopup":"listbox","aria-expanded":o.open,"aria-controls":o.listId,onClick:function(){return o.setOpen(!0)},transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:ya(OX,"absolute inset-x-0 top-0 z-10 border border-border bg-background text-foreground outline-none transition-colors","hover:border-input focus-visible:ring-2 focus-visible:ring-foreground/20","disabled:pointer-events-none disabled:opacity-50",r),children:[(0,m.jsx)(mY.span,{layout:"position",className:"min-w-0 truncate",children:i}),(0,m.jsx)(mY.span,{layout:"position",className:"text-muted-foreground",children:s})]},"trigger")})]})}function O4(e){var t=e.className,n=e.headerClassName,r=e.listClassName,a=e.icon,i=e.children,o=O0("MorphSelectContent"),s=o.labelFor(o.value),l=(0,h.useMemo)(function(){return{hidden:{},show:{transition:{staggerChildren:o.stagger,delayChildren:o.staggerDelay}}}},[o.stagger,o.staggerDelay]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"hidden",children:i}),(0,m.jsx)(Eh,{initial:!1,mode:"popLayout",children:o.open?(0,m.jsxs)(mY.div,{layoutId:o.layoutId,id:o.listId,role:"listbox","aria-labelledby":o.triggerId,transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:ya("absolute inset-x-0 top-0 z-30 overflow-hidden border border-border bg-background shadow-lg",t),children:[(0,m.jsxs)(mY.button,{type:"button",layout:"position","aria-expanded":!0,onClick:function(){return o.setOpen(!1)},className:ya(OX,"outline-none",n),children:[(0,m.jsx)("span",{className:ya("min-w-0 truncate",s?"text-foreground":"text-muted-foreground"),children:null!=s?s:o.placeholder}),(0,m.jsx)(mY.span,{animate:{rotate:180},transition:o.reduce?{duration:0}:o.transition,className:"text-muted-foreground",children:null!=a?a:(0,m.jsx)(OU,{className:"h-4 w-4"})})]}),(0,m.jsx)("div",{className:"h-px bg-border"}),(0,m.jsx)(mY.ul,{initial:"hidden",animate:"show",variants:o.reduce?void 0:l,className:ya("p-1",r),children:i})]},"panel"):null})]})}function O5(e){var t=e.value,n=e.disabled,r=e.label,a=e.indicator,i=e.className,o=e.children,s=O0("MorphSelectItem"),l=s.value===t,u=null!=r?r:"string"==typeof o?o:t;return(0,h.useLayoutEffect)(function(){return s.register(t,u),function(){return s.unregister(t)}},[s.register,s.unregister,t,u]),(0,m.jsx)(mY.li,{variants:s.reduce?void 0:OQ,children:(0,m.jsxs)("button",{type:"button",role:"option","aria-selected":l,disabled:void 0!==n&&n,onClick:function(){return s.select(t)},className:ya("flex w-full items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm outline-none transition-colors",l?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:bg-muted","disabled:pointer-events-none disabled:opacity-50",i),children:[o,l?null!=a?a:(0,m.jsx)(OW,{className:"h-3.5 w-3.5 shrink-0"}):null]})})}function O6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O8(e){if(Array.isArray(e))return e}function O9(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function O7(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ke(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function kn(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function kr(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function ka(e,t){return O8(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||ko(e,t)||ke()}function ki(e){return O8(e)||O7(e)||ko(e)||ke()}function ko(e,t){if(e){if("string"==typeof e)return O6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O6(e,t)}}var ks=function(e){var t=e.state;return(0,m.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 text-muted-foreground transition-colors group-hover:text-foreground pointer-events-none",children:(0,m.jsx)("path",{d:"x"===t?"M 6 18 L 18 6 M 18 18 L 6 6":"up"===t?"M 6 15 L 12 9 M 18 15 L 12 9":"M 6 9 L 12 15 M 18 9 L 12 15",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",style:{transition:"d 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}})})},kl=function(e){var t=e.className;return(0,m.jsx)("svg",{viewBox:"0 0 24 24",className:ya("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,m.jsx)("polyline",{points:"20 6 9 17 4 12"})})},ku=function(e){var t=e.className;return(0,m.jsxs)("svg",{viewBox:"0 0 24 24",className:ya("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,m.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},kc=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=ka(h.useState(!1),2),n=t[0],r=t[1],a=h.useRef(null),i=h.useRef(null),o=h.useRef(null),s=function(t){if(!e&&a.current&&i.current){r(!0),null==(n=o.current)||n.cancel();var n,s=a.current.getBoundingClientRect(),l=Math.max(s.width,s.height),u=Math.max(.35*l,75),c=Math.floor(.2*l),d=Math.sqrt(Math.pow(s.width,2)+Math.pow(s.height,2)),f=Math.min(Math.max(400,1.5*d),1e3),p={x:(s.width-c)/2,y:(s.height-c)/2},m=p;t&&"clientX"in t&&(m={x:t.clientX-s.left-c/2,y:t.clientY-s.top-c/2}),i.current.style.width="".concat(c,"px"),i.current.style.height="".concat(c,"px"),o.current=i.current.animate([{transform:"translate(".concat(m.x,"px, ").concat(m.y,"px) scale(1)")},{transform:"translate(".concat(p.x,"px, ").concat(p.y,"px) scale(").concat((d+10+u)/c,")")}],{duration:f,easing:"cubic-bezier(0.2, 0, 0, 1)",fill:"forwards"})}},l=function(){var e;return(e=function(){var e;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!((e=o.current)&&"number"==typeof e.currentTime&&e.currentTime<300))return[3,2];return[4,new Promise(function(t){return setTimeout(t,300-e.currentTime)})];case 1:t.sent(),t.label=2;case 2:return r(!1),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){O9(i,r,a,o,s,"next",e)}function s(e){O9(i,r,a,o,s,"throw",e)}o(void 0)})})()};return{surfaceRef:a,rippleRef:i,pressed:n,events:{onPointerDown:function(e){0===e.button&&s(e)},onPointerUp:l,onPointerLeave:l,onPointerCancel:l}}},kd=h.forwardRef(function(e,t){var n=e.pressed,r=e.rippleRef;return(0,m.jsxs)("div",{ref:t,className:"absolute inset-0 overflow-hidden rounded-[inherit] pointer-events-none z-0",children:[(0,m.jsx)("div",{className:"absolute inset-0 bg-current opacity-0 transition-opacity duration-200 group-hover/m3item:opacity-[0.08] group-data-[active=true]:opacity-[0.08]"}),(0,m.jsx)("div",{ref:r,className:"absolute rounded-full opacity-0 bg-current",style:{background:"radial-gradient(closest-side, currentColor max(calc(100% - 70px), 65%), transparent 100%)",transition:"opacity 375ms linear",opacity:n?"0.12":"0",transitionDuration:n?"100ms":"375ms"}})]})});kd.displayName="RippleLayer";var kf=h.forwardRef(function(e,t){var n=ki([e,t]),r=n[0],a=n.slice(1),i=r.children,o=r.className,s=r.viewportRef,l=kr(r,["children","className","viewportRef"]),u=ka(a,1)[0],c=h.useRef(null),d=s||c,f=h.useRef(null),p=h.useRef(null),y=ka(h.useState(0),2),g=y[0],v=y[1],b=ka(h.useState(0),2),w=b[0],x=b[1],S=ka(h.useState(!1),2),j=S[0],E=S[1],O=h.useRef({startY:0,startScrollTop:0}),k=h.useCallback(function(){if(d.current){var e=d.current,t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;if(f.current&&(f.current.style.opacity=t>0?"1":"0"),p.current&&(p.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1"),n>r){var a=Math.max(r/n*r,30);v(a),x((r-a)/(n-r)*t)}else v(0)}},[d]);return h.useEffect(function(){var e=d.current;if(e){k();var t=new ResizeObserver(function(){return k()});t.observe(e),e.firstElementChild&&t.observe(e.firstElementChild);var n=new MutationObserver(function(){return k()});return n.observe(e,{childList:!0,subtree:!0,characterData:!0}),function(){t.disconnect(),n.disconnect()}}},[k,d]),h.useEffect(function(){if(j){var e=function(e){if(d.current){var t=e.clientY-O.current.startY,n=d.current,r=n.scrollHeight,a=n.clientHeight,i=Math.max(a/r*a,30);d.current.scrollTop=O.current.startScrollTop+(r-a)/(a-i)*t}},t=function(){E(!1),document.body.style.userSelect=""};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),function(){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}}},[j,d]),(0,m.jsxs)("div",kn(kt({ref:u,"data-dragging":j,className:ya("relative overflow-hidden group/scroll",o)},l),{children:[(0,m.jsx)("div",{ref:f,className:"absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),(0,m.jsx)("div",{ref:d,onScroll:k,style:{maxHeight:"inherit"},className:"w-full overflow-y-auto m3-hide-scroll rounded-[inherit]",children:i}),(0,m.jsx)("div",{ref:p,className:"absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),g>0&&(0,m.jsx)("div",{className:ya("absolute inset-y-0 right-0 z-50 flex items-start justify-end py-0.5 px-0.5 w-4 transition-opacity duration-300 cursor-default","opacity-0 pointer-events-none","group-hover/scroll:opacity-100 group-hover/scroll:pointer-events-auto","group-data-[dragging=true]/scroll:opacity-100 group-data-[dragging=true]/scroll:pointer-events-auto"),children:(0,m.jsx)("div",{className:ya("bg-border rounded-full transition-all duration-200 cursor-default touch-none shadow-sm","w-1 hover:w-1.5 hover:bg-muted-foreground","group-data-[dragging=true]/scroll:w-1.5 group-data-[dragging=true]/scroll:bg-muted-foreground"),style:{height:g,transform:"translateY(".concat(w,"px)")},onPointerDown:function(e){var t;e.preventDefault(),e.stopPropagation(),E(!0),O.current={startY:e.clientY,startScrollTop:(null==(t=d.current)?void 0:t.scrollTop)||0},document.body.style.userSelect="none"}})})]}))});kf.displayName="CustomFloatingScrollArea";var kp=function(){return(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n @keyframes m3-auto-item-cinematic { \n 0% { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); } \n 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } \n }\n \n @keyframes m3-chip-enter { \n 0% { opacity: 0; transform: scale(0.8) translate3d(8px, 0, 0); } \n 100% { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } \n }\n\n .m3-chip-animate {\n animation: m3-chip-enter 200ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;\n }\n \n .m3-auto-container[data-state="open"] .m3-auto-item { \n opacity: 0; \n animation: m3-auto-item-cinematic 350ms cubic-bezier(0.1, 0.8, 0.2, 1) forwards; \n }\n\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(1) { animation-delay: 50ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(2) { animation-delay: 100ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(3) { animation-delay: 150ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(4) { animation-delay: 200ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(n+5) { animation-delay: 250ms; }\n\n .m3-hide-scroll {\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n .m3-hide-scroll::-webkit-scrollbar {\n display: none;\n }\n '}})},km=h.forwardRef(function(e,t){var n=ki([e,t]),r=n[0],a=n.slice(1),i=r.className,o=r.children,s=r.isActive,l=r.isSelected,u=r.onSelectAction,c=kr(r,["className","children","isActive","isSelected","onSelectAction"]),d=ka(a,1)[0],f=kc(),p=f.surfaceRef,h=f.rippleRef,y=f.pressed,g=f.events;return(0,m.jsxs)("li",kn(kt({ref:function(e){p.current=e,"function"==typeof d?d(e):d&&(d.current=e)},role:"option","aria-selected":l,"data-active":s,className:ya("m3-auto-item group/m3item relative flex items-center p-3 px-4 cursor-pointer text-sm outline-none transition-colors overflow-hidden",s&&"bg-secondary/50 text-secondary-foreground",i),onMouseDown:function(e){e.preventDefault()},onClick:function(){setTimeout(function(){return u()},150)}},g,c),{children:[(0,m.jsx)(kd,{rippleRef:h,pressed:y}),(0,m.jsx)("span",{className:"relative z-10 flex w-full items-center pointer-events-none",children:o})]}))});function kh(e){var t=e.items,n=e.placeholder,r=e.emptyMessage,a=e.value,i=e.onValueChange,o=e.disabled,s=e.isCreatable,l=e.onCreate,u=e.className,c=e.onInputChange,d=e.loading,f=e.filterFn,p=e.debounceInterval,y=void 0===p?0:p,g=e.name,v=e.id,b=e.required,w=e["aria-label"],x=e["aria-labelledby"],S=e.maxOptions,j=e.minOptions,E=e.classNames,O=e.labels,k=e.renderItem,D=e.maxListHeight,P=void 0===D?260:D,A=e.chipMaxWidth,C=void 0===A?120:A,T=e.style,N=Array.isArray(a),R=null!=(eE=null==O?void 0:O.empty)?eE:void 0===r?"No results found.":r,M=null!=(eO=null==O?void 0:O.loading)?eO:"Loading results...",I=null!=(ek=null==O?void 0:O.clear)?ek:"Clear",L=null!=(eD=null==O?void 0:O.toggle)?eD:"Toggle options",_=null!=(eP=null==O?void 0:O.create)?eP:function(e){return'Create "'.concat(e,'"')},F=h.useId(),V=v?"".concat(v,"-listbox"):"".concat(F,"-listbox"),B=function(e){return"".concat(V,"-option-").concat(e)},z=ka(h.useState(function(){if(a){var e;return Array.isArray(a)?"":(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||""}return""}),2),U=z[0],W=z[1],$=ka(h.useState(U),2),H=$[0],G=$[1],q=ka(h.useState(!1),2),Y=q[0],K=q[1],Z=ka(h.useState("closed"),2),X=Z[0],Q=Z[1],J=ka(h.useState(-1),2),ee=J[0],et=J[1],en=h.useRef("mouse"),er=ka(h.useState("bottom"),2),ea=er[0],ei=er[1],eo=ka(h.useState(P),2),es=eo[0],el=eo[1],eu=h.useRef(null),ec=h.useRef(null),ed=h.useRef(null),ef=h.useRef(null),ep=h.useRef(null),em=h.useRef(null),eh=h.useRef(null),ey=h.useRef(null),eg=h.useRef(null),ev=ka(h.useState(a),2),eb=ev[0],ew=ev[1],ex=ka(h.useState(t),2),eS=ex[0],ej=ex[1];if(a!==eb||t!==eS)if(ew(a),ej(t),N)a&&0!==a.length||(W(""),G(""));else if(a){var eE,eO,ek,eD,eP,eA,eC=(null==(eA=t.find(function(e){return e.value===a}))?void 0:eA.label)||"";W(eC),G(eC)}else W(""),G("");var eT=kc(o),eN=eT.surfaceRef,eR=eT.rippleRef,eM=eT.pressed,eI=eT.events,eL=kc(o),e_=eL.surfaceRef,eF=eL.rippleRef,eV=eL.pressed,eB=eL.events,ez=h.useMemo(function(){return!1===f||null===f?t:f?t.filter(function(e){return f(e,H)}):H?t.filter(function(e){return e.label.toLowerCase().includes(H.toLowerCase())}):t},[t,H,f]),eU=ka(h.useState(ez),2),eW=eU[0],e$=eU[1];h.useEffect(function(){"open"===X&&e$(ez)},[ez,X]);var eH=h.useCallback(function(){if(ec.current){var e=ec.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top,r=t<280&&n>t?"top":"bottom";ei(r),el(Math.max(100,Math.min(P,("bottom"===r?t:n)-16)))}},[P]);h.useEffect(function(){var e=ec.current;if(e){var t=new ResizeObserver(function(){eH()});return t.observe(e),e.parentElement&&t.observe(e.parentElement),window.addEventListener("resize",eH),function(){t.disconnect(),window.removeEventListener("resize",eH)}}},[eH]),h.useEffect(function(){if(Y)return window.addEventListener("scroll",eH,{capture:!0,passive:!0}),function(){window.removeEventListener("scroll",eH,!0)}},[Y,eH]);var eG=h.useCallback(function(e){W(e),eg.current&&clearTimeout(eg.current),y&&y>0?eg.current=setTimeout(function(){G(e),c&&c(e)},y):(G(e),c&&c(e))},[y,c]),eq=h.useCallback(function(e){if(K(!0),Q("open"),ey.current&&clearTimeout(ey.current),"number"==typeof e)et(e);else{var t=ez.findIndex(function(e){return e.value===a});et(t>=0?t:-1)}},[ez,a]),eY=h.useCallback(function(){if(K(!1),Q("closing"),et(-1),N)W(""),G("");else if(a){var e,n=(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||"";W(n),G(n)}else W(""),G("");ey.current&&clearTimeout(ey.current),ey.current=setTimeout(function(){Q(function(e){return"closing"===e?"closed":e})},300)},[a,t,N]);h.useEffect(function(){return function(){ey.current&&clearTimeout(ey.current),eg.current&&clearTimeout(eg.current)}},[]),h.useEffect(function(){var e=function(e){ec.current&&!ec.current.contains(e.target)&&Y&&eY()};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[Y,eY]),h.useEffect(function(){if(ee>=0&&ed.current&&"keyboard"===en.current){var e=ed.current.children[ee];e&&e.scrollIntoView({block:"nearest"})}},[ee]);var eK=h.useCallback(function(){var e=ep.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;em.current&&(em.current.style.opacity=t>1?"1":"0"),eh.current&&(eh.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1")}},[]),eZ=h.useRef(0);h.useEffect(function(){if(N){var e=ep.current;if(e){var t=(null==a?void 0:a.length)||0;t>eZ.current&&requestAnimationFrame(function(){e.scrollLeft=e.scrollWidth}),eZ.current=t}}},[a,N]),h.useEffect(function(){var e,t,n=ep.current;if(n){var r=!1,a=function(a){r=!0,e=a.pageX-n.offsetLeft,t=n.scrollLeft,document.body.style.userSelect="none"},i=function(){r&&(r=!1,document.body.style.userSelect="")},o=function(a){if(r){a.preventDefault();var i=(a.pageX-n.offsetLeft-e)*1.5;n.scrollLeft=t-i}},s=function(e){0!==e.deltaY&&(e.preventDefault(),n.scrollLeft+=e.deltaY)};n.addEventListener("mousedown",a),n.addEventListener("mouseleave",i),n.addEventListener("mouseup",i),n.addEventListener("mousemove",o),n.addEventListener("wheel",s,{passive:!1}),eK(),n.addEventListener("scroll",eK);var l=new ResizeObserver(function(){return eK()});return l.observe(n),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseleave",i),n.removeEventListener("mouseup",i),n.removeEventListener("mousemove",o),n.removeEventListener("wheel",s),n.removeEventListener("scroll",eK),l.disconnect(),document.body.style.userSelect=""}}},[Y,a,eK]);var eX=void 0!==s&&s&&U.length>0&&!t.some(function(e){return e.label.toLowerCase()===U.toLowerCase()}),eQ=function(e){var n;if(N){var r,o,s=a||[];if(s.includes(e)){if("number"==typeof j&&s.length<=j){null==(r=eu.current)||r.focus();return}var l=s.filter(function(t){return t!==e});i&&i(l)}else{if("number"==typeof S&&s.length>=S){null==(o=eu.current)||o.focus();return}var u=((function(e){if(Array.isArray(e))return O6(e)})(s)||O7(s)||ko(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);i&&i(u)}W(""),G(""),c&&c("")}else{if(a===e)W(""),G(""),i&&i("");else{var d,f=(null==(d=t.find(function(t){return t.value===e}))?void 0:d.label)||"";W(f),G(f),i&&i(e)}eY()}null==(n=eu.current)||n.focus()},eJ=function(){var e;l&&U&&l(U),N||eY(),null==(e=eu.current)||e.focus()},e0=U.length>0?"x":Y?"up":"down",e1="closing"===X?eW:ez,e2=N&&(a||[]).length>0,e3=h.useCallback(function(e){if(!N)return!1;var t=a||[];return!t.includes(e)&&"number"==typeof S&&!!(t.length>=S)},[N,a,S]),e4=Y||"closing"===X;return(0,m.jsxs)("div",{ref:ec,style:T,className:ya("relative w-full transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",e2?"h-[5.25rem]":"h-11",u,null==E?void 0:E.root),children:[(0,m.jsx)(kp,{}),g&&(N?(a||[]).length>0?(a||[]).map(function(e){return(0,m.jsx)("input",{type:"hidden",name:g,value:e},e)}):(0,m.jsx)("input",{type:"hidden",name:g,value:"",required:b}):(0,m.jsx)("input",{type:"hidden",name:g,value:a||"",required:b})),(0,m.jsxs)("div",{"data-state":X,className:ya("m3-auto-container absolute inset-x-0 flex bg-card overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]","top"===ea?"bottom-0 flex-col-reverse":"top-0 flex-col",e4?"z-50 rounded-[1.25rem] border border-border shadow-[0px_16px_32px_rgba(0,0,0,0.14)]":"z-10 rounded-xl border border-input/60 shadow-sm hover:border-input h-full",null==E?void 0:E.container),children:[(0,m.jsxs)("div",{className:ya("relative flex items-center w-full h-11 flex-shrink-0 pl-4 pr-1.5 z-30",null==E?void 0:E.inputRow),children:[(0,m.jsx)("input",{ref:eu,id:v,role:"combobox","aria-expanded":Y,"aria-autocomplete":"list","aria-controls":V,"aria-activedescendant":ee>=0?B(ee):void 0,"aria-label":w,"aria-labelledby":x,value:U,onChange:function(e){var t=e.target.value;eG(t);var n=t.length>0?0:-1;Y?et(n):eq(n),en.current="keyboard"},onFocus:function(){return eq()},onKeyDown:function(e){var t=ez.length+ +!!eX;if("Tab"===e.key){Y&&eY();return}if(!Y&&("ArrowDown"===e.key||"ArrowUp"===e.key)){e.preventDefault(),eq();return}if(0!==t)switch(e.key){case"ArrowDown":e.preventDefault(),en.current="keyboard",et(function(e){return(e+1)%t});break;case"ArrowUp":e.preventDefault(),en.current="keyboard",et(function(e){return(e-1+t)%t});break;case"Home":e.preventDefault(),en.current="keyboard",et(0);break;case"End":e.preventDefault(),en.current="keyboard",et(t-1);break;case"Enter":if(e.preventDefault(),ee>=0)if(ee<ez.length){var n=ez[ee],r=N&&a||[],i=r.includes(n.value);N&&!i&&"number"==typeof S&&r.length>=S||eQ(n.value)}else eX&&eJ();break;case"Escape":eY()}},disabled:o,placeholder:n||"Select an option...",autoComplete:"off",className:ya("flex-1 h-full bg-transparent outline-none text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==E?void 0:E.input)}),(0,m.jsxs)("button",kn(kt({ref:eN,type:"button",tabIndex:-1,className:ya("p-1.5 rounded-full z-20 hover:bg-muted/50 transition-all relative overflow-hidden h-8 w-8 flex items-center justify-center flex-shrink-0",null==E?void 0:E.toggleButton),onClick:function(e){var t;e.preventDefault(),null==(t=eu.current)||t.focus(),U.length>0?(eG(""),!N&&i&&i(""),Y||eq(-1)):Y?eY():eq()},disabled:o,"aria-label":L},eI),{children:[(0,m.jsx)(kd,{rippleRef:eR,pressed:eM}),(0,m.jsx)("span",{className:"relative z-10 flex items-center justify-center pointer-events-none",children:(0,m.jsx)(ks,{state:e0})})]}))]}),N&&(a||[]).length>0&&(0,m.jsxs)("div",{className:ya("relative flex items-center justify-between h-10 overflow-hidden flex-shrink-0 border-border/40","top"===ea?"border-b":"border-t",null==E?void 0:E.chipsRow),children:[(0,m.jsx)("div",{ref:em,className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(0,m.jsx)("div",{ref:ep,className:"flex items-center gap-1.5 overflow-x-auto m3-hide-scroll flex-1 min-w-0 h-full py-0.5 pl-4 pr-12 select-none cursor-default",children:(a||[]).map(function(e){var n=t.find(function(t){return t.value===e});return n?(0,m.jsxs)("button",{type:"button",className:ya("m3-chip-animate group/chip relative flex items-center h-6 px-3 bg-secondary text-secondary-foreground text-xs font-medium rounded-full flex-shrink-0 transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] overflow-hidden cursor-default select-none",null==E?void 0:E.chip),onClick:function(){var t,n=a||[];if("number"!=typeof j||!(n.length<=j)){var r=n.filter(function(t){return t!==e});i&&i(r),null==(t=eu.current)||t.focus()}},children:[(0,m.jsx)("span",{className:"truncate",style:{maxWidth:C},children:n.label}),(0,m.jsx)("div",{className:"absolute inset-y-0 right-0 w-8 flex items-center justify-end pr-2 bg-gradient-to-l from-secondary via-secondary/90 to-transparent opacity-0 translate-x-2 group-hover/chip:opacity-100 group-hover/chip:translate-x-0 transition-all duration-150 pointer-events-none",children:(0,m.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3 h-3 stroke-current text-muted-foreground",fill:"none",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,m.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},e):null})}),(0,m.jsx)("div",{ref:eh,className:"absolute right-[60px] top-0 bottom-0 w-12 bg-gradient-to-l from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(!j||0===j)&&(0,m.jsxs)("button",kn(kt({ref:e_,type:"button",onClick:function(){var e;i&&i([]),null==(e=eu.current)||e.focus()},className:ya("px-3 h-8 rounded-full text-[10px] font-bold uppercase tracking-wider text-muted-foreground hover:bg-muted/50 transition-all relative overflow-hidden flex-shrink-0 flex items-center justify-center mr-1.5 cursor-default z-30",null==E?void 0:E.clearButton)},eB),{children:[(0,m.jsx)(kd,{rippleRef:eF,pressed:eV}),(0,m.jsx)("span",{className:"relative",children:I})]}))]}),(0,m.jsx)("div",{className:ya("grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] relative z-10",Y?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),onMouseDown:function(e){e.preventDefault()},children:(0,m.jsx)("div",{className:"overflow-hidden",children:"closed"!==X&&(0,m.jsx)("div",{className:"flex flex-col w-full",children:(0,m.jsx)(kf,{viewportRef:ef,style:{maxHeight:"".concat(es,"px")},className:"w-full",children:(0,m.jsx)("ul",{ref:ed,id:V,role:"listbox","aria-multiselectable":N,className:ya("w-full text-popover-foreground outline-none pb-2 pt-1",null==E?void 0:E.list),children:void 0!==d&&d?(0,m.jsxs)("li",{className:ya("m3-auto-item p-6 flex flex-col items-center justify-center gap-2 text-xs text-muted-foreground",null==E?void 0:E.loadingState),children:[(0,m.jsxs)("svg",{className:"animate-spin h-5 w-5 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,m.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3.5"}),(0,m.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,m.jsx)("span",{className:"font-medium tracking-wide",children:M})]}):0!==e1.length||eX?(0,m.jsxs)(m.Fragment,{children:[e1.map(function(e,t){var n=e3(e.value),r=N?!!(null==a?void 0:a.includes(e.value)):a===e.value,i=ee===t;return(0,m.jsxs)(km,{id:B(t),isActive:i,isSelected:r,onSelectAction:function(){n||eQ(e.value)},onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==t&&et(t))},className:ya(n&&"opacity-40 cursor-not-allowed pointer-events-none",null==E?void 0:E.item),children:[r&&(0,m.jsx)(kl,{className:"mr-3 flex-shrink-0 text-primary"}),k?k(e,{isActive:i,isSelected:r,isDisabled:n}):(0,m.jsxs)("div",{className:"flex flex-col w-full",children:[(0,m.jsx)("span",{className:"whitespace-normal break-words font-medium",children:e.label}),(e.description||e.tag)&&(0,m.jsxs)("div",{className:"flex justify-between items-center text-[11px] font-medium text-muted-foreground/70 w-full mt-0.5 gap-4",children:[(0,m.jsx)("span",{className:"truncate uppercase tracking-wider",children:e.description}),(0,m.jsx)("span",{className:"truncate",children:e.tag})]})]})]},e.value)}),eX&&(0,m.jsxs)(km,{id:B(ez.length),isActive:ee===ez.length,isSelected:!1,onSelectAction:eJ,onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==ez.length&&et(ez.length))},className:ya("text-primary/90 font-medium border-t border-border/40",null==E?void 0:E.item),children:[(0,m.jsx)(ku,{className:"mr-3 flex-shrink-0"}),(0,m.jsx)("span",{children:_(U)})]})]}):(0,m.jsx)("li",{className:ya("m3-auto-item p-4 px-4 text-sm text-center text-muted-foreground",null==E?void 0:E.emptyState),children:R})})})})})})]})]})}function ky(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||kb(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kv(e){return function(e){if(Array.isArray(e))return ky(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kb(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kb(e,t){if(e){if("string"==typeof e)return ky(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ky(e,t)}}km.displayName="M3AutocompleteItem";var kw=function(e,t){var n,r=t.trim().toLowerCase();return!r||[e.label,e.value,e.description].concat(kv(null!=(n=e.keywords)?n:[])).filter(Boolean).some(function(e){return String(e).toLowerCase().includes(r)})};function kx(e){var t,n,r=e.items,a=e.value,i=e.defaultValue,o=e.onValueChange,s=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.disabled,d=e.placeholder,f=e.searchPlaceholder,p=e.emptyMessage,y=e.searchable,g=e.allowDeselect,v=void 0===g||g,b=e.closeOnSelect,w=void 0===b||b,x=e.filterFn,S=e.onSearchChange,j=e.side,E=void 0===j?"auto":j,O=e.align,k=void 0===O?"center":O,D=e.sideOffset,P=void 0===D?4:D,A=e.renderItem,C=e.renderValue,T=e.triggerIcon,N=e.checkIcon,R=e.name,M=e.id,I=e["aria-label"],L=e.classNames,_=e.className,F=e.style,V=h.useId(),B="".concat(V,"-listbox"),z=function(e){return"".concat(V,"-option-").concat(e)},U=void 0!==a,W=kg(h.useState(void 0===i?"":i),2),$=W[0],H=W[1],G=U?a:$,q=void 0!==s,Y=kg(h.useState(void 0!==l&&l),2),K=Y[0],Z=Y[1],X=q?s:K,Q=h.useCallback(function(e){q||Z(e),null==u||u(e)},[q,u]),J=kg(h.useState(""),2),ee=J[0],et=J[1],en=kg(h.useState(0),2),er=en[0],ea=en[1],ei=kg(h.useState("bottom"),2),eo=ei[0],es=ei[1],el=h.useRef("mouse"),eu=h.useRef(null),ec=h.useRef(null),ed=h.useRef(null),ef=h.useRef(null),ep=h.useMemo(function(){return r.find(function(e){return e.value===G})},[r,G]),em=h.useMemo(function(){if(!1===x)return r;var e=null!=x?x:kw;return r.filter(function(t){return e(t,ee)})},[r,ee,x]),eh=h.useCallback(function(e){var t,n=v&&e===G?"":e;U||H(n),null==o||o(n),w&&(Q(!1),null==(t=ec.current)||t.focus())},[v,G,U,o,w,Q]);h.useEffect(function(){if(!X)return void et("");var e=em.findIndex(function(e){return e.value===G&&!e.disabled});ea(e>=0?e:Math.max(0,em.findIndex(function(e){return!e.disabled})));var t=requestAnimationFrame(function(){var e;return null==(e=ed.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(t)}},[X]),h.useLayoutEffect(function(){if(X&&eu.current){if("auto"!==E)return void es(E);var e=eu.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;es(t<340&&n>t?"top":"bottom")}},[X,E]),h.useEffect(function(){if(X){var e=function(e){eu.current&&!eu.current.contains(e.target)&&Q(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[X,Q]),h.useEffect(function(){X&&ea(Math.max(0,em.findIndex(function(e){return!e.disabled})))},[ee]),h.useEffect(function(){var e,t;X&&"keyboard"===el.current&&(null==(t=ef.current)||null==(e=t.querySelector('[data-index="'.concat(er,'"]')))||e.scrollIntoView({block:"nearest"}))},[er,X]);var ey=function(e,t){var n=em.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!em[r=(r+e+n)%n].disabled)return r;return t},eg=ya("bottom"===eo?"top-full":"bottom-full","start"===k&&"left-0","center"===k&&"left-1/2","end"===k&&"right-0"),ev=(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},"bottom"===eo?{marginTop:P}:{marginBottom:P}),n=n={"--egen-combobox-to":"center"===k?"translateX(-50%)":"translateX(0)","--egen-combobox-from-bottom":"".concat("center"===k?"translateX(-50%) ":"","translateY(-8px)"),"--egen-combobox-from-top":"".concat("center"===k?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===k?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),eb=[];em.forEach(function(e,t){var n=eb[eb.length-1];n&&n.heading===e.group?n.entries.push({item:e,index:t}):eb.push({heading:e.group,entries:[{item:e,index:t}]})});var ew=function(e){var t=e.item,n=e.index,r=G===t.value,a=er===n;return(0,m.jsxs)("div",{id:z(n),role:"option","data-index":n,"data-selected":a,"data-disabled":t.disabled?"true":void 0,"aria-selected":r,"aria-disabled":t.disabled||void 0,onMouseMove:function(){t.disabled||(el.current="mouse",er!==n&&ea(n))},onClick:function(){return!t.disabled&&eh(t.value)},className:ya("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==L?void 0:L.item),children:[A?A(t,{isActive:a,isSelected:r}):(0,m.jsxs)(m.Fragment,{children:[t.icon,t.description?(0,m.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,m.jsx)("span",{className:"truncate",children:t.label}),(0,m.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:t.description})]}):t.label]}),N&&r?(0,m.jsx)("span",{className:ya("ml-auto",null==L?void 0:L.itemCheck),children:N}):(0,m.jsx)(OW,{className:ya("ml-auto",r?"opacity-100":"opacity-0",null==L?void 0:L.itemCheck)})]},t.value)};return(0,m.jsxs)("div",{ref:eu,style:F,className:ya("relative w-full max-w-xs",_,null==L?void 0:L.root),children:[(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-combobox-in-bottom { from { opacity: 0; transform: var(--egen-combobox-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n@keyframes egen-combobox-in-top { from { opacity: 0; transform: var(--egen-combobox-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n.egen-combobox-content[data-side="bottom"] { animation: egen-combobox-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-combobox-content[data-side="top"] { animation: egen-combobox-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-combobox-content { animation: none !important; } }\n'}}),R?(0,m.jsx)("input",{type:"hidden",name:R,value:G}):null,(0,m.jsxs)("button",{ref:ec,id:M,type:"button",role:"combobox","aria-expanded":X,"aria-haspopup":"listbox","aria-controls":X?B:void 0,"aria-label":I,disabled:void 0!==c&&c,onClick:function(){return Q(!X)},onKeyDown:function(e){X||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),Q(!0))},className:ya("inline-flex h-9 w-full shrink-0 items-center justify-between gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium whitespace-nowrap text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",null==L?void 0:L.trigger),children:[(0,m.jsx)("span",{className:"min-w-0 truncate",children:C?C(ep):ep?ep.label:void 0===d?"Select...":d}),null!=T?T:(0,m.jsx)(O$,{className:"size-4 shrink-0 opacity-50"})]}),X?(0,m.jsx)("div",{"data-side":eo,"data-state":"open",style:ev,className:ya("egen-combobox-content absolute z-50 w-72 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",eg,null==L?void 0:L.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),Q(!1),null==(t=ec.current)||t.focus();return}if("Tab"===e.key)return void Q(!1);if(0!==em.length)switch(e.key){case"ArrowDown":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(1,e)});break;case"ArrowUp":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(-1,e)});break;case"Home":e.preventDefault(),el.current="keyboard",ea(Math.max(0,em.findIndex(function(e){return!e.disabled})));break;case"End":e.preventDefault(),el.current="keyboard";var n=kv(em).reverse().findIndex(function(e){return!e.disabled});ea(n>=0?em.length-1-n:0);break;case"Enter":e.preventDefault();var r=em[er];r&&!r.disabled&&eh(r.value)}},children:(0,m.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[void 0===y||y?(0,m.jsxs)("div",{className:ya("flex h-9 items-center gap-2 border-b border-border px-3",null==L?void 0:L.searchWrapper),children:[(0,m.jsx)(OH,{className:ya("size-4 shrink-0 opacity-50",null==L?void 0:L.searchIcon)}),(0,m.jsx)("input",{ref:ed,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":B,"aria-activedescendant":em.length?z(er):void 0,placeholder:void 0===f?"Search...":f,value:ee,onChange:function(e){et(e.target.value),el.current="keyboard",null==S||S(e.target.value)},className:ya("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==L?void 0:L.searchInput)})]}):(0,m.jsx)("input",{ref:ed,readOnly:!0,"aria-label":I,"aria-controls":B,"aria-activedescendant":em.length?z(er):void 0,className:"sr-only"}),(0,m.jsx)("div",{ref:ef,id:B,role:"listbox",className:ya("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",null==L?void 0:L.list),children:0===em.length?(0,m.jsx)("div",{className:ya("py-6 text-center text-sm",null==L?void 0:L.empty),children:void 0===p?"No results found.":p}):eb.map(function(e,t){var n;return(0,m.jsxs)("div",{role:"group","aria-label":e.heading,className:ya("overflow-hidden p-1 text-foreground",null==L?void 0:L.group),children:[e.heading?(0,m.jsx)("div",{className:ya("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==L?void 0:L.groupHeading),children:e.heading}):null,e.entries.map(ew)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))})})]})}):null]})}function kS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kE(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function kO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function kk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||kP(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kD(e){return function(e){if(Array.isArray(e))return kj(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kP(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kP(e,t){if(e){if("string"==typeof e)return kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kj(e,t)}}var kA=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:[e]},kC=function(e){var t;return Array.isArray(e)?{items:e,hasMore:!1}:{items:null!=(t=e.items)?t:[],hasMore:!!e.hasMore}},kT=function(e){return"number"==typeof e?"".concat(e,"px"):e};function kN(e){var t,n,r,a,i,o,s,l,u,c,d=e.fetcher,f=e.getOptionValue,p=e.getOptionLabel,y=e.renderOption,g=e.getDisplayValue,v=e.getOptionGroup,b=e.getOptionDisabled,w=e.preload,x=void 0!==w&&w,S=e.filterFn,j=e.debounceMs,E=e.minQueryLength,O=void 0===E?0:E,k=e.fetchOnOpen,D=e.cacheResults,P=void 0===D||D,A=e.reloadKey,C=e.initialOptions,T=e.resolveOption,N=e.open,R=e.defaultOpen,M=e.onOpenChange,I=e.disabled,L=void 0!==I&&I,_=e.name,F=e.id,V=e["aria-label"],B=e.label,z=e.placeholder,U=void 0===z?"Select...":z,W=e.searchPlaceholder,$=e.noResultsMessage,H=e.minQueryMessage,G=e.loadingMessage,q=e.retryLabel,Y=e.clearLabel,K=e.removeLabel,Z=void 0===K?function(e){return"Remove ".concat(e)}:K,X=e.errorMessage,Q=void 0===X?"Failed to fetch options":X,J=e.loadMoreErrorLabel,ee=e.searchable,et=e.clearable,en=void 0===et||et,er=e.showClearButton,ea=e.closeOnSelect,ei=e.width,eo=e.contentWidth,es=void 0===eo?"trigger":eo,el=e.side,eu=void 0===el?"auto":el,ec=e.align,ed=void 0===ec?"start":ec,ef=e.sideOffset,ep=void 0===ef?4:ef,em=e.maxListHeight,eh=void 0===em?300:em,ey=e.loadingSkeleton,eg=e.loadingIndicator,ev=e.notFound,eb=e.renderError,ew=e.header,ex=e.footer,eS=e.triggerIcon,ej=e.checkIcon,eE=e.controllerRef,eO=e.classNames,ek=e.className,eD=e.triggerClassName,eP=e.style,eA=!0===e.multiple,eC=!0===e.multiple?e.maxSelected:void 0,eT=!0===e.multiple&&null!=(u=e.maxVisibleTags)?u:3,eN=!0===e.multiple?e.renderTag:void 0,eR=null!=ea?ea:!eA,eM=h.useId(),eI="".concat(eM,"-listbox"),eL=function(e){return"".concat(eM,"-option-").concat(e)},e_=h.useCallback(function(e){return p?p(e):f(e)},[p,f]),eF=void 0!==e.value,eV=kk(h.useState(function(){return kA(e.defaultValue)}),2),eB=eV[0],ez=eV[1],eU=eF?kA(e.value):eB,eW=void 0!==N,e$=kk(h.useState(void 0!==R&&R),2),eH=e$[0],eG=e$[1],eq=eW?N:eH,eY=h.useCallback(function(e){eW||eG(e),null==M||M(e)},[eW,M]),eK=h.useRef(new Map),eZ=h.useRef(new Set),eX=kk(h.useReducer(function(e){return e+1},0),2)[1];h.useMemo(function(){null==C||C.forEach(function(e){return eK.current.set(f(e),e)})},[C]);var eQ=h.useRef(T);eQ.current=T;var eJ=eU.join("\0");h.useEffect(function(){var e=eQ.current;if(e){var t=!1;return eU.forEach(function(n){eK.current.has(n)||eZ.current.has(n)||(eZ.current.add(n),Promise.resolve(e(n)).then(function(e){t||void 0===e||(eK.current.set(n,e),eX())}).catch(function(){}))}),function(){t=!0}}},[eJ]);var e0=kk(h.useState(""),2),e1=e0[0],e2=e0[1],e3=(t=x?"":e1,n=x?0:void 0===j?300:j,i=(a=function(e){if(Array.isArray(e))return e}(r=h.useState(t))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(r)||function(e){if(e){if("string"==typeof e)return kS(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kS(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],o=a[1],h.useEffect(function(){if(!(n<=0)){var e=setTimeout(function(){return o(t)},n);return function(){return clearTimeout(e)}}},[t,n]),n<=0?t:i),e4=e3.trim(),e5=!x&&e4.length>0&&e4.length<O,e6=kk(h.useState([]),2),e8=e6[0],e9=e6[1],e7=kk(h.useState("idle"),2),te=e7[0],tt=e7[1],tn=kk(h.useState(null),2),tr=tn[0],ta=tn[1],ti=kk(h.useState(!1),2),to=ti[0],ts=ti[1],tl=kk(h.useState(!1),2),tu=tl[0],tc=tl[1],td=kk(h.useState(!1),2),tf=td[0],tp=td[1],tm=kk(h.useState(0),2),th=tm[0],ty=tm[1],tg=h.useRef(d);tg.current=d;var tv=h.useRef(f);tv.current=f;var tb=h.useRef(new Map),tw=h.useRef(0),tx=h.useRef(0),tS=h.useRef(null),tj=(eq||!(void 0===k||k))&&!e5,tE="".concat(null!=A?A:"","\0").concat(th,"\0").concat(""===e4?"":e3),tO=h.useCallback(function(e){e.forEach(function(e){return eK.current.set(tv.current(e),e)})},[]);h.useEffect(function(){if(tj){var e,t=P?tb.current.get(tE):void 0;if(t){e9(t.items),ts(t.hasMore),tp(!1),tx.current=t.page,ta(null),tt("ready");return}null==(e=tS.current)||e.abort();var n=new AbortController,r=++tw.current;return tt("loading"),ta(null),tp(!1),Promise.resolve().then(function(){return tg.current(""===e4?"":e3,{signal:n.signal,page:0})}).then(function(e){if(!n.signal.aborted&&r===tw.current){var t=kC(e);tO(t.items),P&&tb.current.set(tE,{items:t.items,hasMore:t.hasMore,page:0}),tx.current=0,e9(t.items),ts(t.hasMore),tt("ready"),eX()}}).catch(function(e){if(!n.signal.aborted&&r===tw.current){var t;ta((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&e.message?e.message:Q),tt("error")}}),function(){return n.abort()}}},[tj,tE,P]);var tk=h.useCallback(function(){tb.current.delete(tE),ty(function(e){return e+1})},[tE]),tD=h.useCallback(function(){var e;return(e=function(){var e,t,n,r,a;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:if("ready"!==te||!to||tu)return[2];e=tw.current,t=tx.current+1,tS.current=n=new AbortController,tc(!0),tp(!1),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,tg.current(""===e4?"":e3,{signal:n.signal,page:t})];case 2:if(r=i.sent(),n.signal.aborted||e!==tw.current)return[2];return tO((a=kC(r)).items),e9(function(e){var n=new Set(e.map(function(e){return tv.current(e)})),r=kD(e).concat(kD(a.items.filter(function(e){return!n.has(tv.current(e))})));return P&&tb.current.set(tE,{items:r,hasMore:a.hasMore,page:t}),r}),tx.current=t,ts(a.hasMore),[3,5];case 3:return i.sent(),n.signal.aborted||e!==tw.current||tp(!0),[3,5];case 4:return tS.current===n&&(tS.current=null,tc(!1)),[7];case 5:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){kE(i,r,a,o,s,"next",e)}function s(e){kE(i,r,a,o,s,"throw",e)}o(void 0)})})()},[te,to,tu,e4,e3,tO,P,tE]);h.useEffect(function(){return function(){var e;tw.current+=1,null==(e=tS.current)||e.abort()}},[]);var tP=h.useMemo(function(){return!1===S?null:S||(x?function(e,t){var n=t.trim().toLowerCase();return!n||e_(e).toLowerCase().includes(n)}:null)},[S,x,e_]),tA=h.useMemo(function(){return tP&&e1?e8.filter(function(e){return tP(e,e1)}):e8},[e8,tP,e1]),tC=eU.map(function(e){return eK.current.get(e)}),tT=eA&&void 0!==eC&&eU.length>=eC,tN=function(e){return!!(null==b?void 0:b(e))||tT&&!eU.includes(f(e))},tR=function(t){var n,r,a;eF||ez(t),!0===e.multiple?null==(n=e.onChange)||n.call(e,t,t.map(function(e){return eK.current.get(e)}).filter(function(e){return void 0!==e})):null==(a=e.onChange)||a.call(e,null!=(r=t[0])?r:"",void 0!==t[0]?eK.current.get(t[0]):void 0)},tM=h.useRef(null),tI=h.useRef(null),tL=h.useRef(null),t_=h.useRef(null),tF=h.useRef(null),tV=function(e){var t,n=f(e);if(eK.current.set(n,e),eA){var r=eU.includes(n);if(!r&&tT)return;tR(r?eU.filter(function(e){return e!==n}):kD(eU).concat([n]))}else tR(en&&eU[0]===n?[]:[n]);eR&&(eY(!1),null==(t=tM.current)||t.focus())},tB=function(e){return tR(eU.filter(function(t){return t!==e}))},tz=function(){return tR([])};h.useImperativeHandle(eE,function(){return{open:function(){return!L&&eY(!0)},close:function(){return eY(!1)},focus:function(){var e;return null==(e=tM.current)?void 0:e.focus()},clear:tz,refresh:function(){tb.current.clear(),ty(function(e){return e+1})}}},[L,eY,eU,eF]);var tU=kk(h.useState(0),2),tW=tU[0],t$=tU[1],tH=kk(h.useState("bottom"),2),tG=tH[0],tq=tH[1],tY=h.useRef("mouse"),tK=function(){return Math.max(0,tA.findIndex(function(e){return!tN(e)}))};h.useEffect(function(){if(!eq)return void e2("");var e=requestAnimationFrame(function(){var e;return null==(e=tL.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[eq]),h.useEffect(function(){if(eq){var e=eA||void 0===eU[0]?-1:tA.findIndex(function(e){return f(e)===eU[0]&&!tN(e)});t$(e>=0?e:tK())}},[eq,e1,te]),h.useLayoutEffect(function(){if(eq&&tI.current){if("auto"!==eu)return void tq(eu);var e=tI.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;tq(t<Math.min(eh,300)+48&&n>t?"top":"bottom")}},[eq,eu,eh]),h.useEffect(function(){if(eq){var e=function(e){tI.current&&!tI.current.contains(e.target)&&eY(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[eq,eY]),h.useEffect(function(){var e,t,n;eq&&"keyboard"===tY.current&&(null==(n=t_.current)||null==(t=n.querySelector('[data-index="'.concat(tW,'"]')))||null==(e=t.scrollIntoView)||e.call(t,{block:"nearest"}))},[tW,eq]),h.useEffect(function(){if(!(!eq||!to||"ready"!==te||tf||"u"<typeof IntersectionObserver)){var e=tF.current;if(e){var t=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&tD()},{root:t_.current,rootMargin:"48px"});return t.observe(e),function(){return t.disconnect()}}}},[eq,to,te,tf,tD,tA.length]);var tZ=function(e,t){var n=tA.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!tN(tA[r=(r+e+n)%n]))return r;return t},tX=ya("bottom"===tG?"top-full":"bottom-full","start"===ed&&"left-0","center"===ed&&"left-1/2","end"===ed&&"right-0"),tQ=(s=kO({width:"trigger"===es?"100%":kT(es)},"bottom"===tG?{marginTop:ep}:{marginBottom:ep}),l=l={"--egen-async-select-to":"center"===ed?"translateX(-50%)":"translateX(0)","--egen-async-select-from-bottom":"".concat("center"===ed?"translateX(-50%) ":"","translateY(-8px)"),"--egen-async-select-from-top":"".concat("center"===ed?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===ed?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(l)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(l,e))}),s),tJ=[];tA.forEach(function(e,t){var n=null==v?void 0:v(e),r=tJ[tJ.length-1];r&&r.heading===n?r.entries.push({item:e,index:t}):tJ.push({heading:n,entries:[{item:e,index:t}]})});var t0=function(e){var t=e.item,n=e.index,r=f(t),a=eU.includes(r),i=tW===n,o=tN(t);return(0,m.jsxs)("div",{id:eL(n),role:"option","data-index":n,"data-selected":i,"data-disabled":o?"true":void 0,"aria-selected":a,"aria-disabled":o||void 0,onMouseMove:function(){o||(tY.current="mouse",tW!==n&&t$(n))},onClick:function(){return!o&&tV(t)},className:ya("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==eO?void 0:eO.item),children:[y?y(t,{isActive:i,isSelected:a,isDisabled:o}):e_(t),ej&&a?(0,m.jsx)("span",{className:ya("ml-auto",null==eO?void 0:eO.itemCheck),children:ej}):(0,m.jsx)(OW,{className:ya("ml-auto size-3",a?"opacity-100":"opacity-0",null==eO?void 0:eO.itemCheck)})]},r)},t1=function(e,t){return void 0!==t?e_(t):e},t2=eU.length>0,t3=null!=W?W:"Search ".concat(B.toLowerCase(),"..."),t4=null!=$?$:"No ".concat(B.toLowerCase()," found."),t5="loading"===te;return(0,m.jsxs)("div",{ref:tI,style:kO({width:kT(void 0===ei?"200px":ei)},eP),className:ya("relative",ek,null==eO?void 0:eO.root),children:[(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-async-select-in-bottom { from { opacity: 0; transform: var(--egen-async-select-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n@keyframes egen-async-select-in-top { from { opacity: 0; transform: var(--egen-async-select-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n.egen-async-select-content[data-side="bottom"] { animation: egen-async-select-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-async-select-content[data-side="top"] { animation: egen-async-select-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-async-select-content { animation: none !important; } }\n'}}),_?eA?eU.map(function(e){return(0,m.jsx)("input",{type:"hidden",name:_,value:e},e)}):(0,m.jsx)("input",{type:"hidden",name:_,value:null!=(c=eU[0])?c:""}):null,(0,m.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:t5?void 0===G?"Loading...":G:""}),(0,m.jsxs)("div",{ref:tM,id:F,role:"combobox",tabIndex:L?-1:0,"aria-expanded":eq,"aria-haspopup":"listbox","aria-controls":eq?eI:void 0,"aria-label":null!=V?V:B,"aria-disabled":L||void 0,"aria-busy":t5||void 0,"data-disabled":L?"true":void 0,"data-state":eq?"open":"closed",onClick:function(){return!L&&eY(!eq)},onKeyDown:function(e){!L&&(eq||"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key&&" "!==e.key?!eq&&eA&&"Backspace"===e.key&&t2&&tB(eU[eU.length-1]):(e.preventDefault(),eY(!0)))},className:ya("flex min-h-9 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",eD,null==eO?void 0:eO.trigger),children:[(0,m.jsx)("span",{className:ya("flex min-w-0 flex-1 items-center",null==eO?void 0:eO.triggerValue),children:function(){if(!t2)return(0,m.jsx)("span",{className:ya("truncate text-muted-foreground",null==eO?void 0:eO.placeholder),children:U});if(!eA){var e=tC[0];return(0,m.jsx)("span",{className:"min-w-0 truncate",children:void 0!==e?g?g(e):e_(e):eU[0]})}var t=eU.slice(0,Math.max(0,eT)),n=eU.slice(t.length);return(0,m.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[t.map(function(e){var t=eK.current.get(e),n=t1(e,t);return(0,m.jsxs)("span",{className:ya("inline-flex max-w-full items-center gap-1 rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-foreground",null==eO?void 0:eO.tag),children:[(0,m.jsx)("span",{className:"truncate",children:eN?eN(t,e):n}),L?null:(0,m.jsx)("button",{type:"button",tabIndex:-1,"aria-label":Z(n),onMouseDown:function(e){return e.preventDefault()},onClick:function(t){t.stopPropagation(),tB(e)},className:ya("rounded-sm opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.tagRemove),children:(0,m.jsx)(OG,{className:"size-3"})})]},e)}),n.length>0?(0,m.jsxs)("span",{title:n.map(function(e){return t1(e,eK.current.get(e))}).join(", "),className:ya("rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.tag),children:["+",n.length]}):null]})}()}),void 0!==er&&er&&t2&&!L?(0,m.jsx)("button",{type:"button",tabIndex:-1,"aria-label":void 0===Y?"Clear":Y,onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),tz()},className:ya("shrink-0 rounded-sm opacity-50 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.clearButton),children:(0,m.jsx)(OG,{className:"size-4"})}):null,null!=eS?eS:(0,m.jsx)(O$,{className:ya("size-3 shrink-0 opacity-50",null==eO?void 0:eO.triggerIcon)})]}),eq?(0,m.jsx)("div",{"data-side":tG,"data-state":"open",style:tQ,className:ya("egen-async-select-content absolute z-50 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",tX,null==eO?void 0:eO.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),eY(!1),null==(t=tM.current)||t.focus();return}if("Tab"===e.key)return void eY(!1);if("Backspace"===e.key&&eA&&""===e1&&eU.length>0)return void tB(eU[eU.length-1]);if(0!==tA.length)switch(e.key){case"ArrowDown":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(1,e)});break;case"ArrowUp":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(-1,e)});break;case"Home":e.preventDefault(),tY.current="keyboard",t$(tK());break;case"End":e.preventDefault(),tY.current="keyboard";var n=kD(tA).reverse().findIndex(function(e){return!tN(e)});t$(n>=0?tA.length-1-n:0);break;case"Enter":e.preventDefault();var r=tA[tW];r&&!tN(r)&&tV(r)}},children:(0,m.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[ew?(0,m.jsx)("div",{className:null==eO?void 0:eO.header,children:ew}):null,void 0===ee||ee?(0,m.jsxs)("div",{className:ya("relative flex h-9 items-center gap-2 border-b border-border px-3",null==eO?void 0:eO.searchWrapper),children:[(0,m.jsx)(OH,{className:ya("size-4 shrink-0 opacity-50",null==eO?void 0:eO.searchIcon)}),(0,m.jsx)("input",{ref:tL,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":eI,"aria-activedescendant":tA.length?eL(tW):void 0,placeholder:t3,value:e1,onChange:function(e){e2(e.target.value),tY.current="keyboard"},className:ya("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==eO?void 0:eO.searchInput)}),t5&&tA.length>0?(0,m.jsx)("span",{className:ya("flex shrink-0 items-center text-muted-foreground",null==eO?void 0:eO.searchSpinner),"aria-hidden":!0,children:null!=eg?eg:(0,m.jsx)(Oq,{className:"size-4 animate-spin"})}):null]}):(0,m.jsx)("input",{ref:tL,readOnly:!0,"aria-label":null!=V?V:B,"aria-controls":eI,"aria-activedescendant":tA.length?eL(tW):void 0,className:"sr-only"}),(0,m.jsxs)("div",{ref:t_,id:eI,role:"listbox","aria-multiselectable":eA||void 0,"aria-busy":t5||void 0,style:{maxHeight:eh},className:ya("scroll-py-1 overflow-x-hidden overflow-y-auto",null==eO?void 0:eO.list),children:[e5?(0,m.jsx)("div",{className:ya("py-6 text-center text-sm text-muted-foreground",null==eO?void 0:eO.hint),children:null!=H?H:"Type at least ".concat(O," characters to search.")}):"error"===te?eb?eb(null!=tr?tr:Q,tk):(0,m.jsxs)("div",{role:"alert",className:ya("flex flex-col items-center gap-2 p-4 text-center text-sm text-destructive",null==eO?void 0:eO.error),children:[(0,m.jsx)("span",{children:null!=tr?tr:Q}),(0,m.jsx)("button",{type:"button",onClick:tk,className:"rounded-md border border-border px-2 py-1 text-xs font-medium text-foreground outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===q?"Retry":q})]}):(t5||"idle"===te)&&0===tA.length?null!=ey?ey:(0,m.jsx)("div",{className:ya("p-1",null==eO?void 0:eO.skeleton),"aria-hidden":!0,children:[1,2,3].map(function(e){return(0,m.jsxs)("div",{className:"flex items-center gap-2 rounded-sm px-2 py-1.5",children:[(0,m.jsx)("div",{className:"size-6 animate-pulse rounded-full bg-muted"}),(0,m.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,m.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-muted"}),(0,m.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-muted"})]})]},e)})}):0===tA.length?null!=ev?ev:(0,m.jsx)("div",{className:ya("py-6 text-center text-sm",null==eO?void 0:eO.empty),children:t4}):tJ.map(function(e,t){var n;return(0,m.jsxs)("div",{role:"group","aria-label":e.heading,className:ya("overflow-hidden p-1 text-foreground",null==eO?void 0:eO.group),children:[e.heading?(0,m.jsx)("div",{className:ya("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.groupHeading),children:e.heading}):null,e.entries.map(t0)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))}),to&&"ready"===te?(0,m.jsx)("div",{ref:tF,className:ya("flex items-center justify-center p-2 text-xs text-muted-foreground",null==eO?void 0:eO.loadMore),children:tf?(0,m.jsx)("button",{type:"button",onClick:function(){tD()},className:"rounded-md px-2 py-1 text-destructive outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===J?"Failed to load more. Retry":J}):tu?null!=eg?eg:(0,m.jsx)(Oq,{className:"size-4 animate-spin"}):null}):null]}),ex?(0,m.jsx)("div",{className:null==eO?void 0:eO.footer,children:ex}):null]})}):null]})}function kR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kM(e,t){if(e){if("string"==typeof e)return kR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kR(e,t)}}var kI=function(e){var t,n=e.images,r=e.cardWidth,a=void 0===r?256:r,i=e.cardHeight,o=void 0===i?352:i,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,h.useRef)(null),f=(0,h.useRef)(!1),p=(0,h.useRef)(0),y=(0,h.useRef)(0),g=(0,h.useRef)(null),b=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(function(){return Array.from({length:n.length},function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||kM(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),w=b[0],x=b[1];(0,h.useEffect)(function(){x(Array.from({length:n.length},function(e,t){return t}))},[n.length]);var S=(0,h.useCallback)(function(e,t){var n,r,a=null==(r=getComputedStyle(t||document.documentElement))||null==(n=r.getPropertyValue(e))?void 0:n.trim();return a?a.endsWith("ms")?parseFloat(a):a.endsWith("s")?1e3*parseFloat(a):parseFloat(a)||0:0},[]),j=(0,h.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),E=(0,h.useCallback)(function(){return j()[0]||null},[j]),O=(0,h.useCallback)(function(){j().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[j]),k=(0,h.useCallback)(function(e){var t=E();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[E]),D=(0,h.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,y.current=e;var t=E();t&&(t.style.transition="none")}},[E]),P=(0,h.useCallback)(function(){if(f.current){g.current&&(cancelAnimationFrame(g.current),g.current=null);var e=y.current-p.current,t=S("--card-swap-duration",d.current),n=E();if(n)if(n.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var r=Math.sign(e);n.style.setProperty("--swipe-x","".concat(300*r,"px")),n.style.setProperty("--swipe-rotate","".concat(20*r,"deg")),setTimeout(function(){E()===n&&n.style.setProperty("--swipe-rotate","".concat(-(20*r),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],r>0?"right":"left"),((function(e){if(Array.isArray(e))return kR(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||kM(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e[0]]))})},t)}else k(0);f.current=!1,p.current=0,y.current=0}},[S,E,k,c]),A=(0,h.useCallback)(function(e){f.current&&(g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(function(){y.current=e;var t=y.current-p.current;k(t),Math.abs(t)>50&&P()}))},[k,P]);return(0,h.useEffect)(function(){var e=d.current;if(e){var t=function(e){return D(e.clientX)},n=function(e){return A(e.clientX)},r=function(){return P()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",n),e.addEventListener("pointerup",r),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",r),g.current&&cancelAnimationFrame(g.current)}}},[D,A,P]),(0,h.useEffect)(function(){O()},[w,O]),(0,m.jsx)("section",{ref:d,className:v()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":n.length.toString(),"--card-swap-duration":"0.3s"},l),children:w.map(function(e,t){return(0,m.jsx)("article",{"data-image-swiper-card":!0,className:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:n.length-t,width:a,height:o},children:(0,m.jsx)("img",{src:n[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(n[e],"-").concat(e))})})},kL=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,k_=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,kF=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,kV=/(^[#\.][a-z]|[a-y][a-z])/i,kB=Math.PI/180,kz=180/Math.PI,kU=Math.sin,kW=Math.cos,k$=Math.abs,kH=Math.sqrt,kG=Math.atan2,kq=function(e){return"string"==typeof e},kY=function(e){return"number"==typeof e},kK={},kZ={},kX=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},kQ=function(e){return Math.round(1e5*e)/1e5||0},kJ=function(e){return Math.round(1e10*e)/1e10||0},k0=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},k1=function(e,t,n,r){var a=e[t],i=1===r?6:Dr(a,n,r);if((i||!r)&&i+n+2<a.length)return e.splice(t,0,a.slice(0,n+i+2)),a.splice(0,n+i),1},k2=function(e,t,n){var r=e.length,a=~~(n*r);if(e[a]>t){for(;--a&&e[a]>t;);a<0&&(a=0)}else for(;e[++a]<t&&a<r;);return a<r?a:r-1},k3=function(e,t){var n=e.length;for(t||e.reverse();n--;)e[n].reversed||function(e){var t,n=0;for(e.reverse();n<e.length;n+=2)t=e[n],e[n]=e[n+1],e[n+1]=t;e.reversed=!e.reversed}(e[n])},k4=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},k5=function(e,t){var n=e.length,r=e[n-1]||[],a=r.length;n&&t[0]===r[a-2]&&t[1]===r[a-1]&&(t=r.concat(t.slice(2)),n--),e[n]=t};function k6(e){var t,n=(e=kq(e)&&kV.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return n&&(e=e.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(t=n._gsPath[e])&&!t._dirty?t:n._gsPath[e]=Ds(e)):e?kq(e)?Ds(e):kY(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var k8=function(e,t){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(e.attributes),i=a.length;for(t=","+t+",";--i>-1;)n=a[i].nodeName.toLowerCase(),0>t.indexOf(","+n+",")&&r.setAttributeNS(null,n,a[i].nodeValue);return r},k9={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},k7=function(e,t){for(var n=t?t.split(","):[],r={},a=n.length;--a>-1;)r[n[a]]=+e.getAttribute(n[a])||0;return r};function De(e,t,n){var r,a=e[t],i=e[t+2],o=e[t+4];return a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,r=i+(o+(e[t+6]-o)*n-i)*n-a,a=e[t+1],i=e[t+3],o=e[t+5],a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,kQ(kG(i+(o+(e[t+7]-o)*n-i)*n-a,r)*kz)}function Dt(e,t,n){var r=Math.max(0,~~(k$((n=void 0===n?1:kJ(n)||0)-(t=kJ(t)||0))-1e-8)),a=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=k4(e[n],e[n].slice(0));return k4(e,t)}(e);if(t>n&&(t=1-t,n=1-n,k3(a),a.totalLength=0),t<0||n<0){var i=Math.abs(~~Math.min(t,n))+1;t+=i,n+=i}a.totalLength||Dn(a);var o,s,l,u,c,d,f,p,m=n>1,h=Da(a,t,kK,!0),y=Da(a,n,kZ),g=y.segment,v=h.segment,b=y.segIndex,w=h.segIndex,x=y.i,S=h.i,j=w===b,E=x===S&&j;if(m||r){for(o=b<w||j&&x<S||E&&y.t<h.t,k1(a,w,S,h.t)&&(w++,!o&&(b++,E?(y.t=(y.t-h.t)/(1-h.t),x=0):j&&(x-=S))),1e-5>Math.abs(1-(n-t))?b=w-1:!y.t&&b?b--:k1(a,b,x,y.t)&&o&&w++,1===h.t&&(w=(w+1)%a.length),c=[],f=1+(d=a.length)*r,p=w,f+=(d-w+b)%d,u=0;u<f;u++)k5(c,a[p++%d]);a=c}else if(l=1===y.t?6:Dr(g,x,y.t),t!==n)for(s=Dr(v,S,E?h.t/y.t:h.t),j&&(l+=s),g.splice(x+l+2),(s||S)&&v.splice(0,S+s),u=a.length;u--;)(u<w||u>b)&&a.splice(u,1);else g.angle=De(g,x+l,0),x+=l,h=g[x],y=g[x+1],g.length=g.totalLength=0,g.totalPoints=a.totalPoints=8,g.push(h,y,h,y,h,y,h,y);return a.totalLength=0,a}function Dn(e,t){var n,r,a;for(a=n=r=0;a<e.length;a++)e[a].resolution=~~t||12,n+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b=~~e.resolution||12,w=1/b,x=e.length,S=e[t],j=e[t+1],E=t?t/6*b:0,O=e.samples,k=e.lookup,D=(t?e.minLength:1e8)||1e8,P=O[E+(void 0)*b-1],A=t?O[E-1]:0;for(O.length=k.length=0,r=t+2;r<x;r+=6){if(a=e[r+4]-S,i=e[r+2]-S,o=e[r]-S,u=e[r+5]-j,c=e[r+3]-j,d=e[r+1]-j,s=l=f=p=0,.01>k$(a)&&.01>k$(u)&&k$(o)+k$(d)<.01)e.length>8&&(e.splice(r,6),r-=6,x-=6);else for(n=1;n<=b;n++)m=1-(h=w*n),s=l-(l=(h*h*a+3*m*(h*i+m*o))*h),(g=kH((f=p-(p=(h*h*u+3*m*(h*c+m*d))*h))*f+s*s))<D&&(D=g),A+=g,O[E++]=A;S+=a,j+=u}if(P)for(P-=A;E<O.length;E++)O[E]+=P;if(O.length&&D){if(e.totalLength=v=O[O.length-1]||0,e.minLength=D,v/D<9999)for(n=0,g=y=0;n<v;n+=D)k[g++]=O[y]<n?++y:y}else e.totalLength=O[0]=0;return t?A-O[t/2-1]:A}(e[a]),r+=e[a].length;return e.totalPoints=r,e.totalLength=n,e}function Dr(e,t,n){if(n<=0||n>=1)return 0;var r=e[t],a=e[t+1],i=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=r+(i-r)*n,f=i+(s-i)*n,p=a+(o-a)*n,m=o+(l-o)*n,h=d+(f-d)*n,y=p+(m-p)*n,g=s+(u-s)*n,v=l+(c-l)*n;return f+=(g-f)*n,m+=(v-m)*n,e.splice(t+2,4,kQ(d),kQ(p),kQ(h),kQ(y),kQ(h+(f-h)*n),kQ(y+(m-y)*n),kQ(f),kQ(m),kQ(g),kQ(v)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function Da(e,t,n,r){n=n||{},e.totalLength||Dn(e),(t<0||t>1)&&(t=kX(t));var a,i,o,s,l,u,c,d=0,f=e[0];if(t)if(1===t)c=1,d=e.length-1,u=(f=e[d]).length-8;else{if(e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)d=u;t=(o-(s=l-(f=e[d]).totalLength))/(l-s)||0}a=f.samples,i=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:k2(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),c=1/i*((o-s)/(l-s)+u%i),u=6*~~(u/i),r&&1===c&&(u+6<f.length?(u+=6,c=0):d+1<e.length&&(u=c=0,f=e[++d]))}else c=u=d=0,f=e[0];return n.t=c,n.i=u,n.path=e,n.segment=f,n.segIndex=d,n}function Di(e,t,n,r){var a,i,o,s,l,u,c,d,f,p=e[0],m=r||{};if((t<0||t>1)&&(t=kX(t)),p.lookup||Dn(e),e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)p=e[u];t=(o-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,i=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:k2(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),f=1-(c=1/i*((o-s)/(l-s)+u%i)||0),d=p[u=6*~~(u/i)],m.x=kQ((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),m.y=kQ((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),n&&(m.angle=p.totalLength?De(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),m}function Do(e,t,n,r,a,i,o){for(var s,l,u,c,d,f=e.length;--f>-1;)for(u=0,l=(s=e[f]).length;u<l;u+=2)c=s[u],d=s[u+1],s[u]=c*t+d*r+i,s[u+1]=c*n+d*a+o;return e._dirty=1,e}function Ds(e){var t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y=(e+"").replace(kF,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(kL)||[],g=[],v=0,b=0,w=2/3,x=y.length,S=0,j="ERROR: malformed path: "+e,E=function(e,t,n,r){c=(n-e)/3,d=(r-t)/3,s.push(e+c,t+d,n-c,r-d,n,r)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(j),g;for(t=0;t<x;t++)if(p=i,isNaN(y[t])?o=(i=y[t].toUpperCase())!==y[t]:t--,r=+y[t+1],a=+y[t+2],o&&(r+=v,a+=b),t||(l=r,u=a),"M"===i)s&&(s.length<8?g.length-=1:S+=s.length,k0(s)),v=l=r,b=u=a,s=[r,a],g.push(s),t+=2,i="L";else if("C"===i)s||(s=[0,0]),o||(v=b=0),s.push(r,a,v+ +y[t+3],b+ +y[t+4],v+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===i)c=v,d=b,("C"===p||"S"===p)&&(c+=v-s[s.length-4],d+=b-s[s.length-3]),o||(v=b=0),s.push(c,d,r,a,v+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===i)c=v+(r-v)*w,d=b+(a-b)*w,o||(v=b=0),v+=+y[t+3],b+=+y[t+4],s.push(c,d,v+(r-v)*w,b+(a-b)*w,v,b),t+=4;else if("T"===i)c=v-s[s.length-4],d=b-s[s.length-3],s.push(v+c,b+d,r+(v+1.5*c-r)*w,a+(b+1.5*d-a)*w,v=r,b=a),t+=2;else if("H"===i)E(v,b,v=r,b),t+=1;else if("V"===i)E(v,b,v,b=r+(o?b-v:0)),t+=1;else if("L"===i||"Z"===i)"Z"===i&&(r=l,a=u,s.closed=!0),("L"===i||k$(v-r)>.5||k$(b-a)>.5)&&(E(v,b,r,a),"L"===i&&(t+=2)),v=r,b=a;else if("A"===i){if(m=y[t+4],h=y[t+5],c=y[t+6],d=y[t+7],n=7,m.length>1&&(m.length<3?(d=c,c=h,n--):(d=h,c=m.substr(2),n-=2),h=m.charAt(1),m=m.charAt(0)),f=function(e,t,n,r,a,i,o,s,l){if(e!==s||t!==l){n=k$(n),r=k$(r);var u=a%360*kB,c=kW(u),d=kU(u),f=Math.PI,p=2*f,m=(e-s)/2,h=(t-l)/2,y=c*m+d*h,g=-d*m+c*h,v=y*y,b=g*g,w=v/(n*n)+b/(r*r);w>1&&(n=kH(w)*n,r=kH(w)*r);var x=n*n,S=r*r,j=(x*S-x*b-S*v)/(x*b+S*v);j<0&&(j=0);var E=(i===o?-1:1)*kH(j),O=n*g/r*E,k=-(r*y/n*E),D=(e+s)/2+(c*O-d*k),P=(t+l)/2+(d*O+c*k),A=(y-O)/n,C=(g-k)/r,T=(-y-O)/n,N=(-g-k)/r,R=A*A+C*C,M=(C<0?-1:1)*Math.acos(A/kH(R)),I=(A*N-C*T<0?-1:1)*Math.acos((A*T+C*N)/kH(R*(T*T+N*N)));isNaN(I)&&(I=f),!o&&I>0?I-=p:o&&I<0&&(I+=p),M%=p;var L,_=Math.ceil(k$(I%=p)/(p/4)),F=[],V=I/_,B=4/3*kU(V/2)/(1+kW(V/2)),z=c*n,U=d*n,W=-(d*r),$=c*r;for(L=0;L<_;L++)y=kW(a=M+L*V),g=kU(a),A=kW(a+=V),C=kU(a),F.push(y-B*g,g+B*y,A+B*C,C-B*A,A,C);for(L=0;L<F.length;L+=2)y=F[L],g=F[L+1],F[L]=y*z+g*W+D,F[L+1]=y*U+g*$+P;return F[L-2]=s,F[L-1]=l,F}}(v,b,+y[t+1],+y[t+2],+y[t+3],+m,+h,(o?v:0)+ +c,(o?b:0)+ +d),t+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);v=s[s.length-2],b=s[s.length-1]}else console.log(j);return(t=s.length)<6?(g.pop(),t=0):k0(s),g.totalPoints=S+t,g}function Dl(e,t){1e-4>k$(e[0]-e[2])&&1e-4>k$(e[1]-e[3])&&(e=e.slice(2));var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g=e.length-2,v=+e[0],b=+e[1],w=+e[2],x=+e[3],S=[v,b,v,b],j=w-v,E=x-b,O=e.nonSmooth||[],k=.001>Math.abs(e[g]-v)&&.001>Math.abs(e[g+1]-b);if(!g)return[v,b,v,b,v,b,v,b];for(k&&(e.push(w,x),w=v,x=b,v=e[g-2],b=e[g-1],e.unshift(v,b),g+=4,O=[0,0].concat(O)),t=t||0===t?+t:1,a=2;a<g;a+=2)if(n=v,r=b,v=w,b=x,w=+e[a+2],x=+e[a+3],v!==w||b!==x){if(i=j,o=E,j=w-v,E=x-b,O[a]){S.push(v-(v-n)/4,b-(b-r)/4,v,b,v+(w-v)/4,b+(x-b)/4);continue}s=kH(i*i+o*o),l=kH(j*j+E*E),u=kH(Math.pow(j/l+i/s,2)+Math.pow(E/l+o/s,2)),c=(s+l)*t*.25/u,d=v-(v-n)*(s?c/s:0),f=v+(w-v)*(l?c/l:0),p=v-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),m=b-(b-r)*(s?c/s:0),h=b+(x-b)*(l?c/l:0),y=b-(m+((h-m)*(3*s/(s+l)+.5)/4||0)),S.push(kQ(d+p),kQ(m+y),kQ(v),kQ(b),kQ(f+p),kQ(h+y))}return v!==w||b!==x||S.length<4?S.push(kQ(w),kQ(x),kQ(w),kQ(x)):S.length-=2,2===S.length?S.push(v,b,v,b,v,b):k&&(S.splice(0,6),S.length-=6),S.closed=k,S}function Du(e){kY(e[0])&&(e=[e]);var t,n,r,a,i="",o=e.length;for(n=0;n<o;n++){for(i+="M"+kQ((a=e[n])[0])+","+kQ(a[1])+" C",t=a.length,r=2;r<t;r++)i+=kQ(a[r++])+","+kQ(a[r++])+" "+kQ(a[r++])+","+kQ(a[r++])+" "+kQ(a[r++])+","+kQ(a[r])+" ";a.closed&&(i+="z")}return i}var Dc,Dd,Df,Dp,Dm,Dh,Dy,Dg,Dv,Db,Dw,Dx="transform",DS=Dx+"Origin",Dj=function(e){var t=e.ownerDocument||e;for(!(Dx in e.style)&&("msTransform"in e.style)&&(DS=(Dx="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(Dp=window,Dv=new DR,t){Df=t,Dm=t.documentElement,Dh=t.body,(Db=Df.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),r=t.createElement("div"),a=t&&(t.body||t.firstElementChild);a&&a.appendChild&&(a.appendChild(n),n.appendChild(r),n.style.position="static",n.style.transform="translate3d(0,0,1px)",Dw=r.offsetParent!==n,a.removeChild(n))}return t},DE=function(e){for(var t,n;e&&e!==Dh;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},DO=[],Dk=[],DD=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},DP=function e(t,n){if(t.parentNode&&(Df||Dj(t))){var r=DD(t),a=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=r?n?"rect":"g":"div",o=100*(2===n),s=100*(3===n),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=Df.createElementNS?Df.createElementNS(a.replace(/^https/,"http"),i):Df.createElement(i);return n&&(r?(Dg||(Dg=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),Dg.appendChild(u)):(Dy||Object.assign((Dy=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),Dy.appendChild(u))),u}throw"Need document and parent."},DA=function(e){for(var t=new DR,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},DC=function(e){var t,n=e.getCTM();return n||(t=e.style[Dx],e.style[Dx]="none",e.appendChild(Db),n=Db.getCTM(),e.removeChild(Db),t?e.style[Dx]=t:e.style.removeProperty(Dx.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Dv.clone()},DT=function(e,t){var n,r,a,i,o,s,l=DD(e),u=e===l,c=l?DO:Dk,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===Dp)return e;if(c.length||c.push(DP(e,1),DP(e,2),DP(e,3)),n=l?Dg:Dy,l)u?(i=-(a=DC(e)).e/a.a,o=-a.f/a.d,r=Dv):e.getBBox?(a=e.getBBox(),i=(r=(r=e.transform?e.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?DA(r):r.getItem(0).matrix:Dv).a*a.x+r.c*a.y,o=r.b*a.x+r.d*a.y):(r=new DR,i=o=0),t&&"g"===e.tagName.toLowerCase()&&(i=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+i)+","+(r.f+o)+")");else{if(i=o=0,Dw)for(r=e.offsetParent,a=e;a&&(a=a.parentNode)&&a!==r&&a.parentNode;)(Dp.getComputedStyle(a)[Dx]+"").length>4&&(i=a.offsetLeft,o=a.offsetTop,a=0);if("absolute"!==(s=Dp.getComputedStyle(e)).position&&"fixed"!==s.position)for(r=e.offsetParent;d&&d!==r;)i+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(a=n.style).top=e.offsetTop-o+"px",a.left=e.offsetLeft-i+"px",a[Dx]=s[Dx],a[DS]=s[DS],a.position="fixed"===s.position?"fixed":"absolute",f.appendChild(n)}return n},DN=function(e,t,n,r,a,i,o){return e.a=t,e.b=n,e.c=r,e.d=a,e.e=i,e.f=o,e},DR=function(){function e(e,t,n,r,a,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===i&&(i=0),DN(this,e,t,n,r,a,i)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,a=this.e,i=this.f,o=e*r-t*n||1e-10;return DN(this,r/o,-t/o,-n/o,e/o,(n*i-r*a)/o,-(e*i-t*a)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return DN(this,s*t+u*r,s*n+u*a,l*t+c*r,l*n+c*a,i+d*t+f*r,o+d*n+f*a)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&a===e.d&&i===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var n=e.x,r=e.y,a=this.a,i=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=n*a+r*o+l||0,t.y=n*i+r*s+u||0,t},e}();function DM(e,t,n,r){if(!e||!e.parentNode||(Df||Dj(e)).documentElement===e)return new DR;var a=DE(e),i=DD(e)?DO:Dk,o=DT(e,n),s=i[0].getBoundingClientRect(),l=i[1].getBoundingClientRect(),u=i[2].getBoundingClientRect(),c=o.parentNode,d=!r&&function e(t){return"fixed"===Dp.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new DR((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:Dp.pageXOffset||Df.scrollLeft||Dm.scrollLeft||Dh.scrollLeft||0),s.top+(d?0:Dp.pageYOffset||Df.scrollTop||Dm.scrollTop||Dh.scrollTop||0));if(c.removeChild(o),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var DI,DL,D_,DF,DV,DB,Dz="x,translateX,left,marginLeft,xPercent".split(","),DU="y,translateY,top,marginTop,yPercent".split(","),DW=Math.PI/180,D$=function(e,t,n,r){for(var a=t.length,i=2===r?0:r,o=0;o<a;o++)e[i]=parseFloat(t[o][n]),2===r&&(e[i+1]=0),i+=2;return e},DH=function(e,t,n){return parseFloat(e._gsap.get(e,t,n||"px"))||0},DG=function(e){var t,n=e[0],r=e[1];for(t=2;t<e.length;t+=2)n=e[t]+=n,r=e[t+1]+=r},Dq=function(e,t,n,r,a,i,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(DH(n,r,s),a?DH(n,a,l):0),o.relative&&DG(t),t=[(a?Dl:function(e,t){void 0===t&&(t=1);for(var n=e[0],r=0,a=[n,0],i=2;i<e.length;i+=2)a.push(n,r,e[i],r=(e[i]-n)*t/2,n=e[i],-r);return a})(t,o.curviness)]),t=i(DQ(t,n,o)),DJ(e,n,r,t,"x",s),a&&DJ(e,n,a,t,"y",l),Dn(t,o.resolution||(0===o.curviness?20:12))},DY=function(e){return e},DK=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,DZ=function(e,t,n){var r,a=DM(e),i=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(r=e.viewBox.baseVal).width||(r={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):r=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(i=t.push?t[0]*(r?r.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(r?r.height:e.offsetHeight||0):t.y),n.apply(i||o?a.apply({x:i,y:o}):{x:a.e,y:a.f})},DX=function(e,t,n,r){var a,i=DM(e.parentNode,!0,!0),o=i.clone().multiply(DM(t)),s=DZ(e,n,i),l=DZ(t,r,i),u=l.x,c=l.y;return o.e=o.f=0,"auto"===r&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(a=t.getAttribute("d").match(DK)||[],u+=(a=o.apply({x:+a[0],y:+a[1]})).x,c+=a.y),a&&(u-=(a=o.apply(t.getBBox())).x,c-=a.y),o.e=u-s.x,o.f=c-s.y,o},DQ=function(e,t,n){var r,a,i,o=n.align,s=n.matrix,l=n.offsetX,u=n.offsetY,c=n.alignOrigin,d=e[0][0],f=e[0][1],p=DH(t,"x"),m=DH(t,"y");return e&&e.length?(o&&("self"===o||(r=DF(o)[0]||t)===t?Do(e,1,0,0,1,p-d,m-f):(c&&!1!==c[2]?DI.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(DH(t,"xPercent")/100),-(DH(t,"yPercent")/100)],i=(a=DX(t,r,c,"auto")).apply({x:d,y:f}),Do(e,a.a,a.b,a.c,a.d,p+a.e-(i.x-a.e),m+a.f-(i.y-a.f)))),s?Do(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&Do(e,1,0,0,1,l||0,u||0),e):k6("M0,0L0,0")},DJ=function(e,t,n,r,a,i){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[n],u=l&&0>l.indexOf(",")?l:n,c=e._pt=new DL(e._pt,t,u,0,0,DY,0,o.set(t,u,e));c.u=D_(o.get(t,u,i))||0,c.path=r,c.pp=a,e._props.push(u)},D0={version:"3.15.0",name:"motionPath",register:function(e,t,n){D_=(DI=e).utils.getUnit,DF=DI.utils.toArray,DV=DI.core.getStyleSaver,DB=DI.core.reverting||function(){},DL=n},init:function(e,t,n){if(!DI)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!t.style&&t.path||(t={path:t});var r,a,i,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,m=u.x,h=u.y,y=c[0],g=(a=t.start,i="end"in t?t.end:1,function(e){return a||1!==i?Dt(e,a,i):e});if(this.rawPaths=l,this.target=e,this.tween=n,this.styles=DV&&DV(e,"transform"),(this.rotate=d||0===d)&&(this.rOffset=parseFloat(d)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=D_(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)Dn(o=g(DQ(k6(t.path),e,t)),t.resolution),l.push(o),DJ(this,e,t.x||"x",o,"x",t.unitX||"px"),DJ(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!m&&~Dz.indexOf(s)?m=s:!h&&~DU.indexOf(s)&&(h=s);for(s in m&&h?l.push(Dq(this,D$(D$([],c,m,0),c,h,1),e,m,h,g,t,f||D_(c[0][m]),p||D_(c[0][h]))):m=h=0,y)s!==m&&s!==h&&l.push(Dq(this,D$([],c,s,2),e,s,0,g,t,D_(c[0][s])))}n.vars.immediateRender&&this.render(n.progress(),this)},render:function(e,t){var n=t.rawPaths,r=n.length,a=t._pt;if(t.tween._time||!DB()){for(e>1?e=1:e<0&&(e=0);r--;)Di(n[r],e,!r&&t.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,e),a=a._next;t.rotate&&t.rSet(t.target,t.rProp,n[0].angle*(t.radians?DW:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return Dn(k6(e)).totalLength},sliceRawPath:Dt,getRawPath:k6,pointsToSegment:Dl,stringToRawPath:Ds,rawPathToString:Du,transformRawPath:Do,getGlobalMatrix:DM,getPositionOnPath:Di,cacheRawPathMeasurements:Dn,convertToPath:function(e,t){return DF(e).map(function(e){var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O;return n=!1!==t,"path"!==(O=e.tagName.toLowerCase())&&e.getBBox?(l=k8(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),E=k7(e,k9[O]),"rect"===O?(o=E.rx,s=E.ry||o,a=E.x,i=E.y,f=E.width-2*o,p=E.height-2*s,o||s?(m=a+.44771525016900005*o,g=(y=(h=a+o)+f)+.552284749831*o,v=y+o,b=i+.44771525016900005*s,S=(x=(w=i+s)+p)+.552284749831*s,j=x+s,r="M"+v+","+w+" V"+x+" C"+[v,S,g,j,y,j,y-(y-h)/3,j,h+(y-h)/3,j,h,j,m,j,a,S,a,x,a,x-(x-w)/3,a,w+(x-w)/3,a,w,a,b,m,i,h,i,h+(y-h)/3,i,y-(y-h)/3,i,y,i,g,i,v,b,v,w].join(",")+"z"):r="M"+(a+f)+","+i+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===O||"ellipse"===O?("circle"===O?c=.552284749831*(o=s=E.r):(o=E.rx,c=.552284749831*(s=E.ry)),a=E.cx,i=E.cy,u=.552284749831*o,r="M"+(a+o)+","+i+" C"+[a+o,i+c,a+u,i+s,a,i+s,a-u,i+s,a-o,i+c,a-o,i,a-o,i-c,a-u,i-s,a,i-s,a+u,i-s,a+o,i-c,a+o,i].join(",")+"z"):"line"===O?r="M"+E.x1+","+E.y1+" L"+E.x2+","+E.y2:("polyline"===O||"polygon"===O)&&(r="M"+(a=(d=(e.getAttribute("points")+"").match(k_)||[]).shift())+","+(i=d.shift())+" L"+d.join(","),"polygon"===O&&(r+=","+a+","+i+"z")),l.setAttribute("d",Du(l._gsRawPath=Ds(r))),n&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,n){var r=DM(t,!0,!0).multiply(DM(e));return n?r.apply(n):r},getAlignMatrix:DX,getRelativePosition:function(e,t,n,r){var a=DX(e,t,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function(e,t){var n=D$(D$([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&DG(n),["cubic"===t.type?n:Dl(n,t.curviness)]}};(DI||"u">typeof window&&(DI=window.gsap)&&DI.registerPlugin&&DI)&&DI.registerPlugin(D0);let D1="_91T10b5z4yVLEvBTiOHB2w==",D2="DV-xKWaHEEvN+MaZK6G-sw==",D3="BiOYgCt0Z+UKXxmzw9enhg==";function D4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function D6(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}Et.registerPlugin(D0);var D8=function(e){var t,n=e.url,r=e.title,a=e.open,i=e.inPlace,o=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return D4(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return D4(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,h.useRef)(null),p={transformOrigin:"center center"},y=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},g=function(){return{cx:200,cy:200,r:49}};return(0,h.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,n=c?0:e+t;a?Et.timeline().set(f.current,D5({},p,y())).to(f.current,D6(D5({},p,g()),{duration:t,ease:"power3.inOut"})).to(f.current,D6(D5({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):Et.timeline({overwrite:!0}).set(f.current,D5({},p,{cx:5100,cy:200,r:4900})).to(f.current,D6(D5({},p,g()),{delay:n,duration:e,ease:"power4.out"})).to(f.current,D6(D5({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},y()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[a]),(0,m.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:D1,children:[(0,m.jsxs)("defs",{children:[(0,m.jsx)("clipPath",{id:"".concat(o,"_circleClip"),children:(0,m.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,m.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,m.jsx)("rect",{width:400,height:400})})]}),(0,m.jsx)("g",{clipPath:"url(#".concat(o).concat(i?"_squareClip":"_circleClip",")"),children:(0,m.jsx)("image",{width:400,height:400,href:n,className:D2,children:(0,m.jsx)("title",{children:r})})})]})},D9=function(e){var t=e.images,n=e.onSelect,r=function(e){return 200-(24*t.length-10)/2+24*e},a=function(){return 370};return(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:D1,children:t.map(function(e,t){return(0,m.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,m.jsx)("defs",{children:(0,m.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,m.jsx)("circle",{cx:r(t),cy:a(),r:7})})}),(0,m.jsx)("image",{x:r(t)-7,y:a()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:D2,preserveAspectRatio:"xMidYMid slice"}),(0,m.jsx)("circle",{onClick:function(){return n(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:r(t),cy:a(),r:9,children:(0,m.jsx)("title",{children:e.title})})]},e.url)})})};function D7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D7(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pt=function(e){var t=e.images,n=e.autoplay,r=void 0===n||n,a=e.autoplayInterval,i=void 0===a?4500:a,o=e.className,s=e.style,l=Pe((0,h.useState)(0),2),u=l[0],c=l[1],d=Pe((0,h.useState)(0),2),f=d[0],p=d[1],y=Pe((0,h.useState)(!1),2),g=y[0],b=y[1],w=(0,h.useRef)(null),x=function(e){return p(e)},S=(0,h.useCallback)(function(){c(function(e){var n=e+1;return n>=t.length&&(n=0),n})},[t.length]),j=(0,h.useCallback)(function(){c(function(e){var n=e-1;return n<0&&(n=t.length-1),n})},[t.length]);return(0,h.useEffect)(function(){return b(!0)},[u]),(0,h.useEffect)(function(){return b(!1)},[f]),(0,h.useEffect)(function(){if(r)return w.current&&clearInterval(w.current),w.current=window.setInterval(S,i),function(){w.current&&clearInterval(w.current)}},[u,r,i,S]),(0,m.jsxs)("div",{className:v()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,m.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,n){return(0,m.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===n?n:t.length+1},children:(0,m.jsx)(D8,{total:t.length,id:n,url:e.url,title:e.title,open:u===n,inPlace:f===n,onInPlace:x})},e.url)}),(0,m.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,m.jsx)(D9,{images:t,onSelect:function(e){g||c(e)}})})]}),(0,m.jsx)("button",{type:"button",className:v()(D3,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:j,disabled:g,"aria-label":"Image pr\xe9c\xe9dente",children:(0,m.jsx)(eS,{size:28})}),(0,m.jsx)("button",{type:"button",className:v()(D3,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:S,disabled:g,"aria-label":"Image suivante",children:(0,m.jsx)(ej,{size:28})})]})};function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e){var t=e.handleShuffle,n=e.testimonial,r=e.position,a=e.id,i=e.author,o=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,h.useRef)(0),f="front"===r;return(0,m.jsxs)(mY.div,{style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pn(e,t,n[t])})}return e}({zIndex:"front"===r?2:+("middle"===r),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===r?"-6deg":"middle"===r?"0deg":"6deg",x:"front"===r?"0%":"middle"===r?"33%":"66%"},drag:!0,dragElastic:.35,dragListener:f,dragConstraints:{top:0,left:0,right:0,bottom:0},onDragStart:function(e){d.current=e.clientX},onDragEnd:function(e){var n=e.clientX;d.current-n>150&&t(),d.current=0},transition:{duration:.35},className:v()("ohCq+RO21+rIvJcyy3o2gw==",Pn({},"ovSoDUuNx-SamWlqj-vDmQ==",f),u),children:[(0,m.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(a),alt:"Avatar of ".concat(i),className:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,m.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',n,'"']}),(0,m.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:i})]})}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pi(e){if(Array.isArray(e))return e}function Po(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ps(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pl(e,t){if(e){if("string"==typeof e)return Pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pa(e,t)}}function Pu(e){var t,n=e.testimonials,r=e.cardWidth,a=void 0===r?350:r,i=e.cardHeight,o=void 0===i?450:i,s=e.className,l=e.style,u=e.onShuffle,c=Pi(t=(0,h.useState)(function(){return n.map(function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||Pl(t,2)||Ps(),d=c[0],f=c[1];(0,h.useEffect)(function(){f(n.map(function(e,t){return t}))},[n]);var p=(0,h.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,r=Pi(e)||Po(e)||Pl(e)||Ps(),a=r[0],i=r.slice(1);return null==u||u(null==(t=n[a])?void 0:t.id),((function(e){if(Array.isArray(e))return Pa(e)})(i)||Po(i)||Pl(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([a])})},[u,n]);return(0,m.jsx)("div",{className:v()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a,height:o},l),children:d.map(function(e,t){var r=n[e];return r?(0,m.jsx)(Pr,{id:r.id,testimonial:r.testimonial,author:r.author,avatarUrl:r.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:a,cardHeight:o},r.id):null})})}var Pc=(0,h.createContext)(null),Pd=function(){var e=(0,h.useContext)(Pc);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function Pf(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Pp(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(function(n){var r=e[n],a=t[n];return"function"==typeof r?"".concat(r)==="".concat(a):Pf(r)&&Pf(a)?Pp(r,a):r===a})}function Pm(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function Ph(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Py(e){return"number"==typeof e}function Pg(e){return"string"==typeof e}function Pv(e){return"boolean"==typeof e}function Pb(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pw(e){return Math.abs(e)}function Px(e){return Math.sign(e)}function PS(e){return Pk(e).map(Number)}function Pj(e){return e[PE(e)]}function PE(e){return Math.max(0,e.length-1)}function PO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,n){return t+n})}function Pk(e){return Object.keys(e)}function PD(e,t){var n;return void 0!==t.MouseEvent&&(null!=(n=t.MouseEvent)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)}function PP(){var e=[],t={add:function(n,r,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in n?(n.addEventListener(r,a,o),i=function(){return n.removeEventListener(r,a,o)}):(n.addListener(a),i=function(){return n.removeListener(a)}),e.push(i),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function PA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Pw(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function PC(e){var t=e;function n(e){return Py(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function PT(e,t){var n="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},r=t.style,a=null,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!i){var o=Math.round(100*e.direction(t))/100;o!==a&&(r.transform=n(o),a=o)}},toggleActive:function(e){i=!e}}}var PN={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function PR(e,t,n){var r,a,i,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,n){return[t,n].reduce(function(t,n){return Pk(n).forEach(function(r){var a=t[r],i=n[r],o=Pb(a)&&Pb(i);t[r]=o?e(a,i):i}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){var r=n.breakpoints||{},a=Pk(r).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return r[e]}).reduce(function(e,n){return t(e,n)},{});return t(n,a)},optionsMediaQueries:function(t){return t.map(function(e){return Pk(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),m=(o=[],{init:function(e,t){return(o=t.filter(function(e){var t=e.options;return!1!==p.optionsAtMedia(t).active})).forEach(function(t){return t.init(e,p)}),t.reduce(function(e,t){var n,r;return Object.assign(e,(n={},r=t.name,r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),h=PP(),y=(a={},i={init:function(e){r=e},emit:function(e){return(a[e]||[]).forEach(function(t){return t(r,e)}),i},off:function(e,t){return a[e]=(a[e]||[]).filter(function(e){return e!==t}),i},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),i},clear:function(){a={}}}),g=p.mergeOptions,v=p.optionsAtMedia,b=p.optionsMediaQueries,w=y.on,x=y.off,S=y.emit,j=!1,E=g(PN,PR.globalOptions),O=g(E),k=[];function D(t,n){var r,a,i,o;!j&&(O=v(E=g(E,t)),k=n||k,r=O.container,a=O.slides,u=(Pg(r)?e.querySelector(r):r)||e.children[0],i=Pg(a)?u.querySelectorAll(a):a,c=[].slice.call(i||u.children),s=function t(n){var r=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O,k,D,P,A,C,T,N,R,M,I,L,_,F,V,B,z,U,W,$,H,G,q,Y,K,Z,X=i.align,Q=i.axis,J=i.direction,ee=i.startIndex,et=i.loop,en=i.duration,er=i.dragFree,ea=i.dragThreshold,ei=i.inViewThreshold,eo=i.slidesToScroll,es=i.skipSnaps,el=i.containScroll,eu=i.watchResize,ec=i.watchSlides,ed=i.watchDrag,ef=i.watchFocus,ep={measure:function(e){var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}},em=ep.measure(t),eh=n.map(ep.measure),ey=(d="rtl"===J,p=(f="y"===Q)||!d?1:-1,m=f?"top":d?"right":"left",h=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:m,endEdge:h,measureSize:function(e){var t=e.height,n=e.width;return f?t:n},direction:function(e){return e*p}}),eg=ey.measureSize(em),ev={measure:function(e){return e/100*eg}},eb=(s=X,l=eg,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return Pg(s)?u[s](e):s(l,e,t)}}),ew=!et&&!!el,ex=et||!!el,eS=(y=ey.measureSize,g=ey.startEdge,v=ey.endEdge,b=eh[0]&&ex,w=function(){if(!b)return 0;var e=eh[0];return Pw(em[g]-e[g])}(),x=b?parseFloat(a.getComputedStyle(Pj(n)).getPropertyValue("margin-".concat(v))):0,S=eh.map(y),j=eh.map(function(e,t,n){var r=t===PE(n);return t?r?S[t]+x:n[t+1][g]-e[g]:S[t]+w}).map(Pw),{slideSizes:S,slideSizesWithGaps:j,startGap:w,endGap:x}),ej=eS.slideSizes,eE=eS.slideSizesWithGaps,eO=eS.startGap,ek=eS.endGap,eD=(E=ey.startEdge,O=ey.endEdge,k=ey.direction,D=Py(eo),{groupSlides:function(e){return D?PS(e).filter(function(e){return e%eo==0}).map(function(t){return e.slice(t,t+eo)}):e.length?PS(e).reduce(function(t,n,r){var a=Pj(t)||0,i=n===PE(e),o=em[E]-eh[a][E],s=em[E]-eh[n][O],l=et||0!==a?0:k(eO),u=Pw(s-(!et&&i?k(ek):0)-(o+l));return r&&u>eg+2&&t.push(n),i&&t.push(e.length),t},[]).map(function(t,n,r){var a=Math.max(r[n-1]||0);return e.slice(a,t)}):[]}}),eP=(P=ey.startEdge,A=ey.endEdge,T=(C=eD.groupSlides)(eh).map(function(e){return Pj(e)[A]-e[0][P]}).map(Pw).map(eb.measure),R=C(N=eh.map(function(e){return em[P]-e[P]}).map(function(e){return-Pw(e)})).map(function(e){return e[0]}).map(function(e,t){return e+T[t]}),{snaps:N,snapsAligned:R}),eA=eP.snaps,eC=eP.snapsAligned,eT=-Pj(eA)+Pj(eE),eN=function(e,t,n,r){var a,i,o=PA(-t+e,0),s=n.map(function(e,t){var r=o.min,a=o.max,i=o.constrain(e),s=t===PE(n);return t?s||function(e,t){return 1>=Pw(e-t)}(r,i)?r:function(e,t){return 1>=Pw(e-t)}(a,i)?a:i:a}).map(function(e){return parseFloat(e.toFixed(3))}),l=(a=s[0],i=Pj(s),PA(s.lastIndexOf(a),s.indexOf(i)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return s;var n=l.min,a=l.max;return s.slice(n,a)}(),scrollContainLimit:l}}(eg,eT,eC,el),eR=eN.snapsContained,eM=eN.scrollContainLimit,eI=ew?eR:eC,eL=(M=eI[0],{limit:PA(et?M-eT:Pj(eI),M)}).limit,e_=function e(t,n,r){var a=PA(0,t).constrain,i=t+1,o=s(n);function s(e){return r?Pw((i+e)%i):a(e)}function l(){return e(t,o,r)}var u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(PE(eI),ee,et),eF=e_.clone(),eV=PS(n),eB=function(e){var t=e.dragHandler,n=e.scrollBody,r=e.scrollBounds;e.options.loop||r.constrain(t.pointerDown()),n.seek()},ez=function(e,t){var n=e.scrollBody,r=e.translate,a=e.location,i=e.offsetLocation,o=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,m=n.settled(),h=!f.shouldConstrain(),y=p?m:m&&h,g=y&&!u.pointerDown();g&&c.stop();var v=a.get()*t+o.get()*(1-t);i.set(v),p&&(s.loop(n.direction()),l.loop()),r.to(i.get()),g&&d.emit("settle"),y||d.emit("scroll")},eU=function(e,t,n,r){var a=PP(),i=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,n(),n());var a=e-o;for(o=e,s+=a;s>=i;)n(),s-=i;r(s/i),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){a.add(e,"visibilitychange",function(){e.hidden&&(o=null,s=0)})},destroy:function(){c(),a.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:n,render:r}}(r,a,function(){return eB(e2)},function(e){return ez(e2,e)}),eW=eI[e_.get()],e$=PC(eW),eH=PC(eW),eG=PC(eW),eq=PC(eW),eY=function(e,t,n,r,a){var i=0,o=0,s=a,l=.68,u=e.get(),c=0;function d(e){return s=e,p}function f(e){return l=e,p}var p={direction:function(){return o},duration:function(){return s},velocity:function(){return i},seek:function(){var t=r.get()-e.get(),a=0;return s?(n.set(e),i+=t/s,i*=l,u+=i,e.add(i),a=u-c):(i=0,n.set(r),e.set(r),a=t),o=Px(a),c=u,p},settled:function(){return .001>Pw(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(a)},useFriction:f,useDuration:d};return p}(e$,eG,eH,eq,en),eK=function(e,t,n,r,a){var i=r.reachedAny,o=r.removeOffset,s=r.constrain;function l(e){return e.concat().sort(function(e,t){return Pw(e)-Pw(t)})[0]}function u(t,r){var a=[t,t+n,t-n];if(!e)return t;if(!r)return l(a);var i=a.filter(function(e){return Px(e)===r});return i.length?l(i):Pj(a)-n}return{byDistance:function(n,r){var l,c=a.get()+n,d=(l=e?o(c):s(c),{index:t.map(function(e,t){return{diff:u(e-l,0),index:t}}).sort(function(e,t){return Pw(e.diff)-Pw(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,m=!e&&i(c);if(!r||m)return{index:f,distance:n};var h=n+u(t[f]-p,0);return{index:f,distance:h}},byIndex:function(e,n){var r=u(t[e]-a.get(),n);return{index:e,distance:r}},shortcut:u}}(et,eI,eT,eL,eq),eZ=function(e,t,n,r,a,i,o){function s(a){var s=a.distance,l=a.index!==t.get();i.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(a.index),o.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,n){var r=t.clone().set(e);s(a.byIndex(r.get(),n))}}}(eU,e_,eF,eY,eK,eq,o),eX=(I=eL.max,L=eL.length,{get:function(e){return L?-((e-I)/L):0}}),eQ=PP(),eJ=(F={},V=null,B=null,z=!1,{init:function(){_=new IntersectionObserver(function(e){z||(e.forEach(function(e){F[n.indexOf(e.target)]=e}),V=null,B=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:ei}),n.forEach(function(e){return _.observe(e)})},destroy:function(){_&&_.disconnect(),z=!0},get:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&V)return V;if(!e&&B)return B;var t=Pk(F).reduce(function(t,n){var r=parseInt(n),a=F[r].isIntersecting;return(e&&a||!e&&!a)&&t.push(r),t},[]);return e&&(V=t),e||(B=t),t}}),e0=(U=eD.groupSlides,W=eM.min,$=eM.max,{slideRegistry:(c=U(eV),1===eI.length?[eV]:ew&&"keepSnaps"!==el?c.slice(W,$).map(function(e,t,n){var r=t===PE(n);return t?r?PO(PE(eV)-Pj(n)[0]+1,Pj(n)[0]):e:PO(Pj(n[0])+1)}):c)}).slideRegistry,e1=function(e,t,n,r,a,i,o,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(i.add(document,"keydown",c,!1),t.forEach(function(t,c){i.add(t,"focus",function(t){(Pv(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var i=n.findIndex(function(e){return e.includes(t)});Py(i)&&(a.useDuration(0),r.index(i,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,n,e0,eZ,eY,eQ,o,ef),e2={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:em,slideRects:eh,animation:eU,axis:ey,dragHandler:function(e,t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g){var v=e.cross,b=e.direction,w=["INPUT","SELECT","TEXTAREA"],x={passive:!1},S=PP(),j=PP(),E=PA(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},k={mouse:500,touch:600},D=m?43:25,P=!1,A=0,C=0,T=!1,N=!1,R=!1,M=!1;function I(e){if(!PD(e,r)&&e.touches.length>=2)return L(e);var t=i.readPoint(e),n=i.readPoint(e,v),o=Pw(t-A),l=Pw(n-C);if(!N&&!M&&(!e.cancelable||!(N=o>l)))return L(e);var c=i.pointerMove(e);o>h&&(R=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(b(c)),e.preventDefault()}function L(e){var t,n,r,a=c.byDistance(0,!1).index!==d.get(),o=i.pointerUp(e)*(m?k:O)[M?"mouse":"touch"],s=(t=b(o),n=d.add(-1*Px(t)),r=c.byDistance(t,!m).distance,m||Pw(t)<E?r:y&&a?.5*r:c.byIndex(n.get(),0).distance),p=function(e,t){if(0===e||0===t||Pw(e)<=Pw(t))return 0;var n,r,a=(n=Pw(e),r=Pw(t),Pw(n-r));return Pw(a/e)}(o,s);N=!1,T=!1,j.clear(),u.useDuration(D-10*p).useFriction(.68+p/50),l.distance(s,!m),M=!1,f.emit("pointerUp")}function _(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){g&&S.add(t,"dragstart",function(e){return e.preventDefault()},x).add(t,"touchmove",function(){},x).add(t,"touchend",function(){}).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",L).add(t,"contextmenu",L).add(t,"click",_,!0);function s(s){var l,c,d,p;(Pv(g)||g(e,s))&&(M=p=PD(l=s,r),R=m&&p&&!l.buttons&&P,P=Pw(a.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",w.includes(c)||(T=!0,i.pointerDown(l),u.useFriction(0).useDuration(0),a.set(o),d=M?n:t,j.add(d,"touchmove",I,x).add(d,"touchend",L).add(d,"mousemove",I,x).add(d,"mouseup",L),A=i.readPoint(l),C=i.readPoint(l,v),f.emit("pointerDown"))))}},destroy:function(){S.clear(),j.clear()},pointerDown:function(){return T}}}(ey,e,r,a,eq,function(e,t){var n,r;function a(e){return e.timeStamp}function i(n,r){var a=r||e.scroll;return(PD(n,t)?n:n.touches[0])["client".concat("x"===a?"X":"Y")]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){var t=i(e)-i(r),o=a(e)-a(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;var t=i(r)-i(n),o=a(e)-a(n),s=a(e)-a(r)>170,l=t/o;return o&&!s&&Pw(l)>.1?l:0},readPoint:i}}(ey,a),e$,eU,eZ,eY,eK,e_,o,ev,er,ea,es,ed),eventStore:eQ,percentOfView:ev,index:e_,indexPrevious:eF,limit:eL,location:e$,offsetLocation:eG,previousLocation:eH,options:i,resizeHandler:function(e,t,n,r,a,i,o){var s,l,u=[e].concat(r),c=[],d=!1;function f(e){return a.measureSize(o.measure(e))}return{init:function(a){i&&(l=f(e),c=r.map(f),s=new ResizeObserver(function(n){(Pv(i)||i(a,n))&&function(n){var i=!0,o=!1,s=void 0;try{for(var u,p=n[Symbol.iterator]();!(i=(u=p.next()).done);i=!0){var m=u.value;if(d)return;var h=m.target===e,y=r.indexOf(m.target),g=h?l:c[y],v=f(h?e:r[y]);if(Pw(v-g)>=.5){a.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{i||null==p.return||p.return()}finally{if(o)throw s}}}(n)}),n.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,a,n,ey,eu,ep),scrollBody:eY,scrollBounds:function(e,t,n,r,a){var i=a.measure(10),o=a.measure(50),s=PA(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(a){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=Pw(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(c/o);n.subtract(d*f),!a&&Pw(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(eL,eG,eq,eY,ev),scrollLooper:(H=[e$,eG,eH,eq],q=(G=PA(eL.min+.1,eL.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&q(eG.get())){var t=-1*e*eT;H.forEach(function(e){return e.add(t)})}}}),scrollProgress:eX,scrollSnapList:eI.map(eX.get),scrollSnaps:eI,scrollTarget:eK,scrollTo:eZ,slideLooper:function(e,t,n,r,a,i,o,s,l){var u=PS(a),c=PS(a).reverse(),d=m(p(c,o[0]),n,!1).concat(m(p(u,t-o[0]-1),-n,!0));function f(e,t){return e.reduce(function(e,t){return e-a[t]},t)}function p(e,t){return e.reduce(function(e,n){return f(e,t)>0?e.concat([n]):e},[])}function m(a,o,u){var c=i.map(function(e,n){return{start:e-r[n]+.5+o,end:e+t-.5+o}});return a.map(function(t){var r=u?0:-n,a=u?n:0,i=c[t][u?"end":"start"];return{index:t,loopPoint:i,slideLocation:PC(-1),translate:PT(e,l[t]),target:function(){return s.get()>i?r:a}}})}return{canLoop:function(){return d.every(function(e){var n=e.index;return .1>=f(u.filter(function(e){return e!==n}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,n=e.translate,r=e.slideLocation,a=t();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:d}}(ey,eg,eT,ej,eE,eA,eI,eG,n),slideFocus:e1,slidesHandler:(Z=!1,{init:function(e){ec&&(K=new MutationObserver(function(t){!Z&&(Pv(ec)||ec(e,t))&&function(t){var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(t)})).observe(t,{childList:!0})},destroy:function(){K&&K.disconnect(),Z=!0}}),slidesInView:eJ,slideIndexes:eV,slideRegistry:e0,slidesToScroll:eD,target:eq,translate:PT(ey,t)};return e2}(e,u,c,d,f,n,y);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(O),b([E].concat(function(e){if(Array.isArray(e))return Ph(e)}(o=k.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e){if(e){if("string"==typeof e)return Ph(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ph(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).forEach(function(e){return h.add(e,"change",P)}),O.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(N),s.eventHandler.init(N),s.resizeHandler.init(N),s.slidesHandler.init(N),s.options.loop&&s.slideLooper.loop(),u.offsetParent&&c.length&&s.dragHandler.init(N),l=m.init(N,k)))}function P(e,t){var n=T();A(),D(g({startIndex:n},e),t),y.emit("reInit")}function A(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),m.destroy(),h.clear()}function C(e,t,n){O.active&&!j&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),s.scrollTo.index(e,n||0))}function T(){return s.index.get()}var N={canScrollNext:function(){return s.index.add(1).get()!==T()},canScrollPrev:function(){return s.index.add(-1).get()!==T()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){j||(j=!0,h.clear(),A(),y.emit("destroy"),y.clear())},off:x,on:w,emit:S,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:P,rootNode:function(){return e},scrollNext:function(e){C(s.index.add(1).get(),e,-1)},scrollPrev:function(e){C(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:C,selectedScrollSnap:T,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return D(t,n),setTimeout(function(){return y.emit("init")},0),N}function PM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PM(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,h.useRef)(e),r=(0,h.useRef)(t),a=PI((0,h.useState)(),2),i=a[0],o=a[1],s=PI((0,h.useState)(),2),l=s[0],u=s[1],c=(0,h.useCallback)(function(){i&&i.reInit(n.current,r.current)},[i]);return(0,h.useEffect)(function(){Pp(n.current,e)||(n.current=e,c())},[e,c]),(0,h.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var n=Pm(e),r=Pm(t);return n.every(function(e,t){return Pp(e,r[t])})}(r.current,t)&&(r.current=t,c())},[t,c]),(0,h.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){PR.globalOptions=PL.globalOptions;var e=PR(l,n.current,r.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,i]}PR.globalOptions=void 0,PL.globalOptions=void 0;let P_={root:"tdejYd2vuxy0mfD4W2J+jw==",viewport:"BzM337PSXvRayyYwjsiCKw==","viewport--x":"_98E0ZUOehP1rxRPgPQZzQg==","viewport--y":"CCMIiXjCBQAMwkqxJsI3Pg==",container:"TG-E6FLJUAkSIHrYBvoXtg==","container--x":"aUzVDJOwTVV4q-Kn0oqNPA==","container--y":"Q-tXlloS3nMGAM5J9W6GwA==",slide:"eqtMmBhS05zGHR0EesgHaw==","slide--x":"_0fY9RrAfetQ4jWZ6O0WhJQ==","slide--y":"_9d8JpyHV87JtGiAWP8Btuw==",thumbsViewport:"gavQFViS+IVYeAlNj8hlBQ==",thumbsContainer:"umsVBn0z4F-ma9IJu78PFw==","thumbsContainer--x":"HMLba9Ijt06btOrMVkk-jg==","thumbsContainer--y":"IuqTKMYP2zQBbtfSj1+0XQ==",thumb:"_6tC7bHzuA6DP75VG3mb1Vw==","thumb--active":"rSXJb09-+ekHWs9Kr6eK-g==",thumbImage:"H3rE7ZtwW0NN8Ti1+k45Sg==",dots:"xhwJiTmcB78zUtdgAtJm4Q==",dot:"ftAUylfEUwMcgWd8ag4h8g==","dot--active":"_9GeJo3THY2950-iACPngew=="};function PF(e){var t=e.children,n=e.className,r=Pd(),a=r.axis,i=r.mainViewportRef;return(0,m.jsx)("div",{ref:i,className:v()(P_.viewport,P_["viewport--".concat(a)],n),children:(0,m.jsx)("div",{className:v()(P_.container,P_["container--".concat(a)]),children:t})})}function PV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PV(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pz(e){var t,n,r,a=e.children,i=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(r=null==i?void 0:i.axis)?r:"x",f=PB(PL((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},i),n=n={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),o),2),p=f[0],g=f[1],b=PB(PL({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),w=b[0],x=b[1],S=PB((0,h.useState)(0),2),j=S[0],E=S[1],O=(0,h.useMemo)(function(){return function(e){var t=y().Children.toArray(e),n=!0,r=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;if(y().isValidElement(s)&&s.type===PF){var l=s.props;return y().Children.toArray(l.children).filter(y().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return[]}(a)},[a]),k=(0,h.useCallback)(function(e){null==g||g.scrollTo(e)},[g]),D=(0,h.useCallback)(function(){if(g){var e=g.selectedScrollSnap();E(e),null==x||x.scrollTo(e)}},[g,x]);return(0,h.useEffect)(function(){if(g)return D(),g.on("select",D).on("reInit",D),function(){g.off("select",D).off("reInit",D)}},[g,D]),(0,m.jsx)(Pc.Provider,{value:{axis:d,mainViewportRef:p,mainApi:g,thumbsViewportRef:w,thumbsApi:x,selectedIndex:j,scrollTo:k,thumbnails:O},children:(0,m.jsx)("div",{className:v()(P_.root,u),style:c,children:a})})}function PU(e){var t=e.children,n=e.className,r=Pd().axis;return(0,m.jsx)("div",{className:v()(P_.slide,P_["slide--".concat(r)],n),children:t})}function PW(e){var t=e.className,n=e.thumbsSliderClassName,r=Pd(),a=r.axis,i=r.thumbsViewportRef,o=r.thumbnails,s=r.selectedIndex,l=r.scrollTo;return 0===o.length?null:(0,m.jsx)("div",{ref:i,className:v()(P_.thumbsViewport,t),children:(0,m.jsx)("div",{className:v()(P_.thumbsContainer,P_["thumbsContainer--".concat(a)]),children:o.map(function(e,t){var r,a,i=t===s;return(0,m.jsx)("button",{type:"button",onClick:function(){return l(t)},className:v()(P_.thumb,(r={},a=P_["thumb--active"],a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r),i&&n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":i,children:e&&(0,m.jsx)("img",{src:e,alt:"",className:P_.thumbImage})},t)})})})}function P$(e){var t=e.className,n=e.dotClassName,r=Pd(),a=r.thumbnails,i=r.selectedIndex,o=r.scrollTo;return 0===a.length?null:(0,m.jsx)("div",{className:v()(P_.dots,t),children:a.map(function(e,t){var r,a,s;return(0,m.jsx)("button",{type:"button",onClick:function(){return o(t)},className:v()(P_.dot,(r={},a=P_["dot--active"],s=t===i,a in r?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s,r),n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===i},t)})})}function PH(e){var t=e.id,n=e.as,r=e.variant,a=void 0===r?"transparent":r,i=e.title,o=e.titleAs,s=e.description,l=e.actions,u=e.ariaLabel,c=e.bare,d=e.className,f=e.children,p=!!(i||s||l);return(0,m.jsxs)(void 0===n?"section":n,{id:t,"aria-label":u,className:["xsPyVpEdgja0llYjB3PdYg==","panel"===a?"IdjlGes9g7I9RGbalXKuEw==":"mSODpTRIETPzwrdlVZKHAQ==",void 0!==c&&c&&"panel"===a?"dqH8uZ6svn0a-ANxRswbEw==":"",null!=d?d:""].filter(Boolean).join(" "),children:[p&&(0,m.jsxs)("div",{className:"LYLZgwdW+ZQ094mxka6QwQ==",children:[(0,m.jsxs)("div",{className:"+Aqb8e3ZepkrAMa4z4v-tQ==",children:[i&&(0,m.jsx)(void 0===o?"h2":o,{className:"QEtbLMiYFeiRjc7fZ+Qrwg==",children:i}),s&&(0,m.jsx)("p",{className:"teYjkGxaHLinWBvLv5ULwA==",children:s})]}),l&&(0,m.jsx)("div",{className:"yD97e81VCsiEGleZjd-MSQ==",children:l})]}),(0,m.jsx)("div",{className:"gH7gSQGqCrm6Kdq+mty58A==",children:f})]})}function PG(e){var t,n=e.tile,r=e.size,a=e.onSelect,i=e.className;return(0,m.jsxs)(mY.div,{whileHover:{scale:"large"===r?1.008:1.012},transition:{duration:.2},onClick:function(){return a(n)},role:"button",tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(n))},className:["epn5Xr0wuijHX+AGdLOjTQ==","large"===r?"vfFCu1fewysJ2OePivqftg==":"_5PSxM40V8VvkMWcjtHh7lQ==",null!=i?i:""].join(" "),children:[(0,m.jsx)("img",{src:n.imageUrl,alt:n.title,className:"FZ7wibJ0rKv9a7xHLPzhCw==",referrerPolicy:"no-referrer"}),(0,m.jsx)("div",{className:"V2q1if8rFbKRFCMAsXIx3A=="}),(0,m.jsx)("div",{className:"RhZz5XHN5ocl4A43Psz1eg==",children:"large"===r?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h3",{className:"FDykDf3R9FzapTX-dyKZTg==",children:n.title}),(0,m.jsx)("span",{className:"ehVT3WDOS1PC11dEIvTfsw==",children:null!=(t=n.linkText)?t:"En savoir plus →"})]}):(0,m.jsx)("h4",{className:"j3a-9yic75kspWNZW+1m+Q==",children:n.title})})]})}function Pq(e){var t=e.mainTile,n=e.secondaryTiles,r=e.onSelectTile;return(0,m.jsxs)("div",{className:"gqDAe+adtM8NJnnwyLSxnA==",children:[(0,m.jsx)(PG,{tile:t,size:"large",onSelect:r}),n.slice(0,4).map(function(e){return(0,m.jsx)(PG,{tile:e,size:"medium",onSelect:r},e.id)})]})}function PY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PK(e){if(Array.isArray(e))return e}function PZ(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function PX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function PQ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function PJ(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function P0(e,t){return PK(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||P2(e,t)||PZ()}function P1(e){return PK(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P2(e)||PZ()}function P2(e,t){if(e){if("string"==typeof e)return PY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PY(e,t)}}var P3=(0,h.forwardRef)(function(e,t){var n=e.left,r=e.center,a=e.right,i=e.secondary,o=e.children,s=e.sticky,l=void 0===s||s,u=e.stickyOffset,c=e.variant,d=e.ariaLabel,f=e.className,p=e.wrapperClassName;return(0,m.jsxs)("div",{className:ya("flex flex-col w-full z-(--z-index-sticky,200)",l&&"sticky",p),style:l?{top:void 0===u?"var(--own-offline-banner-height, 0px)":u}:void 0,children:[(0,m.jsxs)("header",{ref:t,role:"banner","aria-label":void 0===d?"Navigation principale":d,className:ya("relative flex w-full items-center justify-between gap-2 px-3 sm:px-4 select-none","h-(--layout-header-height,48px) border-b","border-b-(--panel-header-border,rgba(255,255,255,0.08))","text-(--colors-surface-foreground,#f4f4f4)","glass"===(void 0===c?"glass":c)?"bg-(--panel-header-background,rgba(11,25,44,0.72)) backdrop-blur-xl shadow-(--panel-header-box-shadow,0_1px_12px_rgba(0,0,0,0.25))":"bg-(--colors-surface-card,#0b192c) shadow-(--panel-header-box-shadow,none)",f),children:[(0,m.jsx)("div",{className:"flex min-w-0 shrink-0 items-center gap-2",children:n}),r?(0,m.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-2",children:r}):null,(0,m.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:a}),o]}),i?(0,m.jsx)("div",{className:"w-full",children:i}):null]})}),P4=(0,h.forwardRef)(function(e,t){var n=P1([e,t]),r=n[0],a=n.slice(1),i=r.icon,o=r.label,s=r.badge,l=r.active,u=void 0!==l&&l,c=r.className,d=r.type,f=PJ(r,["icon","label","badge","active","className","type"]),p=P0(a,1)[0],h=null!=s&&""!==s&&0!==s;return(0,m.jsxs)("button",PQ(PX({ref:p,type:void 0===d?"button":d,title:o,"aria-label":o,"aria-pressed":u||void 0,className:ya("relative inline-flex h-9 min-w-9 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-inherit transition-colors duration-150 outline-none","hover:bg-white/10 focus-visible:ring-2 focus-visible:ring-primary-400",u&&"bg-primary-500/25 text-primary-200",c)},f),{children:[i,h?(0,m.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-500 px-1 text-[10px] font-bold leading-none text-white",children:s}):null]}))});function P5(e){var t=e.className;return(0,m.jsx)("div",{"aria-hidden":"true",className:ya("mx-1 h-5 w-px bg-white/15",t)})}var P6=(0,h.forwardRef)(function(e,t){var n=P1([e,t]),r=n[0],a=n.slice(1),i=r.src,o=r.name,s=r.active,l=r.className,u=r.type,c=PJ(r,["src","name","active","className","type"]),d=P0(a,1)[0],f=o.split(/\s+/).filter(Boolean).slice(0,2).map(function(e){var t;return null==(t=e[0])?void 0:t.toUpperCase()}).join("");return(0,m.jsx)("button",PQ(PX({ref:d,type:void 0===u?"button":u,title:o,"aria-label":o,className:ya("relative inline-flex h-8 w-8 cursor-pointer items-center justify-center overflow-hidden rounded-full p-0","border border-primary-400/50 bg-primary-900/40 text-xs font-bold text-white outline-none","transition-transform duration-150 hover:scale-105 focus-visible:ring-2 focus-visible:ring-primary-400",void 0!==s&&s&&"ring-2 ring-primary-400",l)},c),{children:i?(0,m.jsx)("img",{src:i,alt:"",className:"h-full w-full object-cover"}):f}))}),P8={conversation:{id:"conversation",number:"1",name:"Mode Conversation",shortName:"Conversation",tagline:"Comprendre & R\xe9pondre",badgeLabel:"Conv",emoji:"\uD83D\uDCAC",iconName:"MessageSquare",color:{text:"text-sky-400",bg:"bg-sky-500/10",border:"border-sky-500/30",ring:"ring-sky-500/40",badgeBg:"bg-sky-500",badgeText:"text-slate-950",glow:"shadow-sky-500/25",accent:"#38bdf8"},principle:"L'agent comprend et r\xe9pond.",bullets:["Questions & r\xe9ponses","Explications & clarifications","Discussion en langage naturel","Conseil informationnel"],example:"\xab Qu'est-ce que cette fonctionnalit\xe9 ? \xbb"},recherche:{id:"recherche",number:"2",name:"Mode Recherche / Analyse",shortName:"Recherche",tagline:"Chercher, R\xe9cup\xe9rer & Interpr\xe9ter",badgeLabel:"Rech",emoji:"\uD83D\uDD0E",iconName:"Search",color:{text:"text-amber-400",bg:"bg-amber-500/10",border:"border-amber-500/30",ring:"ring-amber-500/40",badgeBg:"bg-amber-400",badgeText:"text-slate-950",glow:"shadow-amber-500/25",accent:"#fbbf24"},principle:"L'agent cherche, r\xe9cup\xe8re et interpr\xe8te de l'information.",bullets:["Recherche dans la base de connaissances","Consultation & extraction documentaire","Analyse et croisement de donn\xe9es","Comparaison & synth\xe8se structur\xe9e"],example:"\xab Trouve les documents concernant ce projet et r\xe9sume-les. \xbb"},action:{id:"action",number:"3",name:"Mode Action",shortName:"Action",tagline:"Agir sur le Syst\xe8me via Outils",badgeLabel:"Act",emoji:"⚙️",iconName:"Zap",color:{text:"text-emerald-400",bg:"bg-emerald-500/10",border:"border-emerald-500/30",ring:"ring-emerald-500/40",badgeBg:"bg-emerald-400",badgeText:"text-slate-950",glow:"shadow-emerald-500/25",accent:"#34d399"},principle:"L'agent agit sur le syst\xe8me \xe0 travers des outils (diff\xe9rence cl\xe9 avec un simple chatbot).",bullets:["Cr\xe9er, modifier, supprimer des contenus","Publier & programmer des diffusions","Appeler des API & int\xe9grations","D\xe9clencher des workflows & automatisations"],example:"\xab Cr\xe9e cette actualit\xe9 et programme sa publication demain. \xbb"},autonome:{id:"autonome",number:"4",name:"Mode Autonome",shortName:"Autonome",tagline:"Orchestration Multi-\xe9tapes vers un Objectif",badgeLabel:"Auto",emoji:"\uD83E\uDD16",iconName:"Cpu",color:{text:"text-purple-400",bg:"bg-purple-500/10",border:"border-purple-500/30",ring:"ring-purple-500/40",badgeBg:"bg-purple-400",badgeText:"text-slate-950",glow:"shadow-purple-500/25",accent:"#c084fc"},principle:"L'agent re\xe7oit un objectif et d\xe9termine lui-m\xeame les \xe9tapes n\xe9cessaires sans guidage pas-\xe0-pas.",bullets:["Planification intelligente de l’objectif","Recherche & analyse autonome","Cr\xe9ation & ex\xe9cution des actions requises","V\xe9rification & production du r\xe9sultat final"],example:"\xab Pr\xe9pare toute la communication de notre \xe9v\xe9nement. \xbb",schema:["Objectif","Planification","Recherche","Analyse","Cr\xe9ation","Actions","V\xe9rification","R\xe9sultat"]}},P9="egen_assistant_mode";function P7(){if("u"<typeof window)return"conversation";try{var e=localStorage.getItem(P9);if(e&&P8[e])return e}catch(e){}return"conversation"}function Ae(e){if("u">typeof window)try{localStorage.setItem(P9,e)}catch(e){}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var Ar=["#7C6AF7","#7DD3C7","#E8B4D4"];function Aa(){return"u">typeof process&&(null==process.env?void 0:"production")!=="production"}function Ai(e){var t=e.replace("#","").trim(),n=Number.parseInt(3===t.length?t.split("").map(function(e){return e+e}).join(""):t.padEnd(6,"0").slice(0,6),16);return Number.isNaN(n)?[.96,.96,.96]:[(n>>16&255)/255,(n>>8&255)/255,(255&n)/255]}function Ao(e,t,n){var r=e.createShader(t);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))?r:(Aa()&&console.warn("LiveOrb: shader failed to compile\n",e.getShaderInfoLog(r)),e.deleteShader(r),null):null}function As(e,t,n,r){var a,i="#F4F4F5",o="#09090B",s=0,l=Ar;return"black"===e?(i="#18181B",o="#F4F4F5"):"webgl"===e?(i=null!=(a=(l=r&&r.length>0?r:Ar)[1])?a:Ar[1],o="#0C0C10",s=1):"custom"===e&&(i=null!=t?t:"#7C5CFF",o=null!=n?n:"#FAFAFA"),{body:i,eye:o,mode:s,palette:l}}function Al(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=An({variant:"white",interactive:!0,blink:!0},n),a={x:0,y:.08},i={x:0,y:.08},o=!1,s=e.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1,powerPreference:"high-performance"});if(!s)return null;var l=Ao(s,s.VERTEX_SHADER,"\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}\n"),u=Ao(s,s.FRAGMENT_SHADER,"\nprecision highp float;\n\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform float u_speed;\nuniform vec2 u_look;\nuniform float u_blink;\nuniform float u_mode;\nuniform vec3 u_body;\nuniform vec3 u_eye;\nuniform vec3 u_c1;\nuniform vec3 u_c2;\nuniform vec3 u_c3;\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat noise(vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n float a = hash(i);\n float b = hash(i + vec2(1.0, 0.0));\n float c = hash(i + vec2(0.0, 1.0));\n float d = hash(i + vec2(1.0, 1.0));\n vec2 u = f * f * (3.0 - 2.0 * f);\n return mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;\n}\n\nfloat fbm(vec2 p) {\n float v = 0.0;\n float a = 0.5;\n mat2 m = mat2(1.6, 1.2, -1.2, 1.6);\n for (int i = 0; i < 5; i++) {\n v += a * noise(p);\n p = m * p;\n a *= 0.5;\n }\n return v;\n}\n\nvec3 orient(vec3 p, vec2 look) {\n float yaw = look.x * 0.92;\n float pitch = -look.y * 0.78;\n float cy = cos(yaw);\n float sy = sin(yaw);\n float cp = cos(pitch);\n float sp = sin(pitch);\n vec3 q = vec3(p.x, p.y * cp - p.z * sp, p.y * sp + p.z * cp);\n return vec3(q.x * cy + q.z * sy, q.y, -q.x * sy + q.z * cy);\n}\n\nfloat eyeMask(vec3 n, vec3 e, vec3 right, vec3 up, float halfH, float rad) {\n float facing = dot(n, e);\n float x = dot(n, right) - dot(e, right);\n float y = dot(n, up) - dot(e, up);\n y -= clamp(y, -halfH, halfH);\n float d = length(vec2(x, y)) - rad;\n float fill = 1.0 - smoothstep(-0.01, 0.01, d);\n return fill * smoothstep(0.12, 0.32, facing);\n}\n\nvec3 wash(vec3 n, float t) {\n vec2 q = n.xy * 2.2 + n.z * 0.85;\n vec2 w1 = vec2(\n fbm(q * 1.4 + vec2(t * 0.22, t * 0.18)),\n fbm(q * 1.4 + vec2(-t * 0.16, t * 0.24) + 4.1)\n );\n q += (w1 - 0.5) * 0.72;\n float f = fbm(q * 2.1 + vec2(0.0, t * 0.12));\n float g = fbm(q * 4.6 - vec2(t * 0.2, 0.0));\n vec3 col = mix(u_c1, u_c2, smoothstep(0.28, 0.72, f));\n return mix(col, u_c3, pow(smoothstep(0.42, 0.9, g), 1.4));\n}\n\nvoid main() {\n vec2 uv = (gl_FragCoord.xy / u_resolution.xy) * 2.0 - 1.0;\n float aspect = u_resolution.x / max(u_resolution.y, 1.0);\n uv.x *= aspect;\n\n float radius = 0.94;\n vec2 p = uv / radius;\n float r2 = dot(p, p);\n float edge = 1.0 - smoothstep(0.985, 1.012, sqrt(max(r2, 0.0)));\n if (edge <= 0.001) {\n gl_FragColor = vec4(0.0);\n return;\n }\n\n float z = sqrt(max(1.0 - r2, 0.0));\n vec3 n = normalize(vec3(p, z));\n\n vec2 look = u_look;\n float lm = length(look);\n if (lm > 1.0) look /= lm;\n\n vec3 right = orient(vec3(1.0, 0.0, 0.0), look);\n vec3 up = orient(vec3(0.0, 1.0, 0.0), look);\n vec3 eL = orient(normalize(vec3(-0.32, 0.08, 1.0)), look);\n vec3 eR = orient(normalize(vec3(0.32, 0.08, 1.0)), look);\n\n float halfH = mix(0.128, 0.012, u_blink);\n float rad = mix(0.054, 0.062, u_blink);\n float eyes = max(\n eyeMask(n, eL, right, up, halfH, rad),\n eyeMask(n, eR, right, up, halfH, rad)\n );\n\n vec3 body = u_mode > 0.5 ? wash(n, u_time * u_speed) : u_body;\n vec3 col = mix(body, u_eye, clamp(eyes, 0.0, 1.0));\n\n gl_FragColor = vec4(clamp(col, 0.0, 1.0), edge);\n}\n");if(!l||!u)return null;var c=s.createProgram();if(!c)return null;if(s.attachShader(c,l),s.attachShader(c,u),s.linkProgram(c),!s.getProgramParameter(c,s.LINK_STATUS))return Aa()&&console.warn("LiveOrb: program failed to link\n",s.getProgramInfoLog(c)),null;s.useProgram(c),null==(t=r.onHasGl)||t.call(r,!0);var d=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,d),s.bufferData(s.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),s.STATIC_DRAW);var f=s.getAttribLocation(c,"a_position");s.enableVertexAttribArray(f),s.vertexAttribPointer(f,2,s.FLOAT,!1,0,0);var p=s.getUniformLocation(c,"u_resolution"),m=s.getUniformLocation(c,"u_time"),h=s.getUniformLocation(c,"u_speed"),y=s.getUniformLocation(c,"u_look"),g=s.getUniformLocation(c,"u_blink"),v=s.getUniformLocation(c,"u_mode"),b=s.getUniformLocation(c,"u_body"),w=s.getUniformLocation(c,"u_eye"),x=s.getUniformLocation(c,"u_c1"),S=s.getUniformLocation(c,"u_c2"),j=s.getUniformLocation(c,"u_c3");s.enable(s.BLEND),s.blendFunc(s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA);var E=0,O=!0,k=performance.now(),D=k+1800+2400*Math.random(),P=-1e4,A=function(){var t=e.parentElement;if(t){var n=Math.min(window.devicePixelRatio||1,2),r=t.clientWidth,a=t.clientHeight;r<=0||a<=0||(e.width=Math.max(1,Math.floor(r*n)),e.height=Math.max(1,Math.floor(a*n)),e.style.width="".concat(r,"px"),e.style.height="".concat(a,"px"),s.viewport(0,0,e.width,e.height))}};A();var C=new ResizeObserver(A);e.parentElement&&C.observe(e.parentElement);var T=window.matchMedia("(prefers-reduced-motion: reduce)"),N=function(){o=T.matches};N(),T.addEventListener("change",N);var R=function(t){if(r.interactive){var n=e.parentElement;if(n){var a=n.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var o=(t.clientX-(a.left+a.width/2))/(a.width/2),s=(a.top+a.height/2-t.clientY)/(a.height/2);i.x=Math.min(1,Math.max(-1,o)),i.y=Math.min(1,Math.max(-1,s))}}}};window.addEventListener("pointermove",R,{passive:!0});var M=function(t){if(O){var n=As(r.variant,r.color,r.eyeColor,r.colors);r.interactive?(a.x+=(i.x-a.x)*.16,a.y+=(i.y-a.y)*.16):(a.x+=(0-a.x)*.12,a.y+=(.08-a.y)*.12),!o&&r.blink&&t>=D&&(P=t,D=t+2200+3800*Math.random());var l=(t-P)/1e3,u=0;!o&&r.blink&&(l<.055?u=l/.055:l<.1?u=1:l<.18&&(u=1-(l-.1)/.08));var c=Ai(n.body),d=Ai(n.eye),f=[0,1,2].map(function(e){var t;return Ai(null!=(t=n.palette[e%n.palette.length])?t:Ar[e])});s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.uniform2f(p,e.width,e.height),s.uniform1f(m,o?0:(t-k)/1e3),s.uniform1f(h,.55*!o),s.uniform2f(y,a.x,a.y),s.uniform1f(g,u),s.uniform1f(v,n.mode),s.uniform3f(b,c[0],c[1],c[2]),s.uniform3f(w,d[0],d[1],d[2]),s.uniform3f(x,f[0][0],f[0][1],f[0][2]),s.uniform3f(S,f[1][0],f[1][1],f[1][2]),s.uniform3f(j,f[2][0],f[2][1],f[2][2]),s.drawArrays(s.TRIANGLES,0,6),E=requestAnimationFrame(M)}};return E=requestAnimationFrame(M),{setOptions:function(e){r=An({},r,e)},destroy:function(){var e;O=!1,cancelAnimationFrame(E),C.disconnect(),T.removeEventListener("change",N),window.removeEventListener("pointermove",R),null==(e=r.onHasGl)||e.call(r,!1),s.deleteProgram(c),s.deleteShader(l),s.deleteShader(u),s.deleteBuffer(d)}}}function Au(e){var t,n=e.className,r=e.size,a=void 0===r?280:r,i=e.variant,o=void 0===i?"white":i,s=e.color,l=e.eyeColor,u=e.colors,c=e.interactive,d=void 0===c||c,f=e.blink,p=void 0===f||f,y=(0,h.useRef)(null),g=(0,h.useRef)(null),v=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return At(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return At(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=v[0],w=v[1];(0,h.useEffect)(function(){var e=y.current;if(e)return g.current=Al(e,{variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,onHasGl:w}),function(){var e;null==(e=g.current)||e.destroy(),g.current=null}},[]),(0,h.useEffect)(function(){var e;null==(e=g.current)||e.setOptions({variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,onHasGl:w})},[o,s,l,u,d,p]);var x=As(o,s,l,u);return(0,m.jsxs)("div",{"data-slot":"live-orb",role:"img","aria-label":"Orb character",className:ya("relative shrink-0",n),style:{width:a,height:a},children:[b?null:(0,m.jsxs)("div",{"aria-hidden":!0,className:"absolute inset-[2%] overflow-hidden rounded-full",style:function(e){if(1===e.mode){var t,n,r,a=null!=(t=e.palette[0])?t:Ar[0],i=null!=(n=e.palette[1])?n:Ar[1],o=null!=(r=e.palette[2])?r:Ar[2];return{backgroundImage:"linear-gradient(135deg, ".concat(a,", ").concat(i,", ").concat(o,")")}}return{backgroundColor:e.body}}(x),children:[(0,m.jsx)("span",{className:"absolute rounded-full",style:{backgroundColor:x.eye,width:"13%",height:"28%",left:"31%",top:"34%"}}),(0,m.jsx)("span",{className:"absolute rounded-full",style:{backgroundColor:x.eye,width:"13%",height:"28%",left:"56%",top:"34%"}})]}),(0,m.jsx)("canvas",{ref:y,className:"absolute inset-0 size-full"})]})}function Ac(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ad(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Af(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Ad(i,r,a,o,s,"next",e)}function s(e){Ad(i,r,a,o,s,"throw",e)}o(void 0)})}}function Ap(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Am(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Am(e,t){if(e){if("string"==typeof e)return Ac(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ac(e,t)}}function Ah(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function Ay(e){var t=e.text,n=Ap((0,h.useState)("auto"),2),r=n[0],a=n[1],i=(0,h.useRef)(null);return(0,h.useEffect)(function(){i.current&&a(i.current.offsetWidth)},[t]),(0,m.jsxs)("span",{className:"relative inline-flex items-center justify-center overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",style:{width:r},children:[(0,m.jsx)("span",{ref:i,className:"invisible whitespace-nowrap px-1",children:t}),(0,m.jsx)("span",{className:"absolute inset-0 flex items-center justify-center whitespace-nowrap animate-in fade-in zoom-in-95 duration-300",children:t},t)]})}function Ag(e){var t=e.model,n=e.className,r={"Composer 2.5":"https://cdn.21st.dev/assets/mirror/7d/7dc00bc09f225fcda46cbc9c6b669c69c025a231877d6c17baa6a003f04f02b2.svg","Gemini 3.5 Flash":"https://cdn.21st.dev/assets/mirror/cd/cda2df6631d5fa227de3fa04ed78cf354f910ba92a9f086e7455655c10ad9d09.svg","GPT 5.5":"https://cdn.21st.dev/assets/mirror/b9/b93fa7942be639a1dae60194ff12141145d7d9fd59581582d6ff23335755f19c.svg","Opus 4.8":"https://cdn.21st.dev/assets/mirror/5d/5de1221c77cc91e748066fd642ad0eee1c1fa65328814f5178166f901e599709.svg","GLM 5.2":"https://cdn.21st.dev/assets/mirror/b2/b2a6c0ff63efd8a555edf8a174ea6fcfeca120ac1595a2d461ca11d3ae89276c.svg"};return(0,m.jsx)("img",{src:r[t]||r["GPT 5.5"],alt:t,className:ya("object-contain",{"GPT 5.5":"dark:invert"}[t],n)})}function Av(){return(0,m.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("path",{d:"M7 12V2M7 2L2.5 6.5M7 2L11.5 6.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ab(){return(0,m.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,m.jsx)("rect",{x:"5",y:"1",width:"4",height:"7",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M2.75 6.5V7a4.25 4.25 0 0 0 8.5 0v-.5M7 11.25V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function Aw(){return(0,m.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",fill:"currentColor"})})}function Ax(){return(0,m.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("path",{d:"M7 2.5V11.5M2.5 7H11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function AS(){return(0,m.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("path",{d:"M2.5 2.5L11.5 11.5M11.5 2.5L2.5 11.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function Aj(e){var t=e.level;return(0,m.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,m.jsx)("rect",{x:"1.5",y:"8",width:"2.5",height:"4.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:1}),(0,m.jsx)("rect",{x:"5.75",y:"5",width:"2.5",height:"7.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Medium"===t||"Max Effort"===t?1:.3}),(0,m.jsx)("rect",{x:"10",y:"2",width:"2.5",height:"10.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Max Effort"===t?1:.3})]})}function AE(e){var t=e.attachment,n=e.index,r=e.onRemove,a=e.onOpen,i=e.registerRef,o=Ap((0,h.useState)(!1),2),s=o[0],l=o[1],u=(0,h.useRef)(null);return(0,m.jsxs)("button",{ref:function(e){u.current=e,i(t.id,e)},type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},onClick:function(e){e.stopPropagation(),u.current&&a(t,u.current.getBoundingClientRect())},style:{animationDelay:"".concat(35*n,"ms"),animationFillMode:"backwards"},className:ya("group relative size-12 shrink-0 overflow-hidden rounded-xl border border-border bg-muted outline-none","transition-transform duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:scale-[1.04] active:scale-[0.96]","animate-in fade-in slide-in-from-top-3 zoom-in-90 duration-400"),"aria-label":"Open preview of ".concat(t.name),children:[(0,m.jsx)("img",{src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1}),(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-start justify-end bg-black/0 transition-colors duration-200",s&&"bg-black/25"),children:(0,m.jsx)("span",{role:"button",tabIndex:-1,onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.stopPropagation(),r(t.id)},className:ya("m-1 flex size-4 items-center justify-center rounded-full bg-background/90 text-foreground/70 shadow-sm transition-all duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-background hover:text-foreground hover:scale-110",s?"opacity-100 scale-100":"opacity-0 scale-50 pointer-events-none"),"aria-label":"Remove ".concat(t.name),children:(0,m.jsx)(AS,{})})})]})}function AO(e){var t=e.attachment,n=e.originRect,r=e.onClose,a=Ap((0,h.useState)("opening"),2),i=a[0],o=a[1],s=Ap((0,h.useState)(null),2),l=s[0],u=s[1],c=(0,h.useRef)(null);(0,h.useEffect)(function(){var e=Math.min(.86*window.innerWidth,560),n=Math.min(.78*window.innerHeight,720),r=t.width||800,a=t.height||600,i=Math.min(e/r,n/a,1.6),s=r*i,l=a*i;u({top:(window.innerHeight-l)/2,left:(window.innerWidth-s)/2,width:s,height:l,radius:20});var c=requestAnimationFrame(function(){return o("open")});return function(){return cancelAnimationFrame(c)}},[t]);var d=(0,h.useCallback)(function(){return o("closing")},[]);(0,h.useEffect)(function(){var e=function(e){"Escape"===e.key&&d()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[d]);var f="open"===i,p="closing"===i,y=f&&l?l:{top:n.top,left:n.left,width:n.width,height:n.height,radius:12},g=p?"ease-out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)",v=p?"0.3s":"0.45s",b="top ".concat(v," ").concat(g,", left ").concat(v," ").concat(g,", width ").concat(v," ").concat(g,", height ").concat(v," ").concat(g,", border-radius ").concat(v," ").concat(g);return(0,m.jsxs)("div",{className:"fixed inset-0 z-[100]",onClick:d,role:"dialog","aria-modal":"true",children:[(0,m.jsx)("div",{className:"absolute inset-0 bg-background/70 backdrop-blur-md transition-opacity duration-400",style:{opacity:+!!f}}),(0,m.jsx)("div",{style:{position:"fixed",top:y.top,left:y.left,width:y.width,height:y.height,borderRadius:y.radius,transition:b,overflow:"hidden",boxShadow:f?"0 24px 60px -12px rgb(0 0 0 / 0.35)":"0 0px 0px 0px rgb(0 0 0 / 0)"},className:"bg-muted",onTransitionEnd:function(){"closing"===i&&r()},onClick:function(e){return e.stopPropagation()},children:(0,m.jsx)("img",{ref:c,src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1})}),(0,m.jsx)("button",{type:"button",onClick:d,style:{opacity:+!!f,transform:f?"scale(1)":"scale(0.7)"},className:ya("fixed right-4 top-4 flex size-9 items-center justify-center rounded-full bg-card/90 text-foreground/70 shadow-md backdrop-blur-sm","transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-card hover:text-foreground",!f&&"pointer-events-none"),children:(0,m.jsx)("span",{className:"scale-150",children:(0,m.jsx)(AS,{})})})]})}var Ak=h.forwardRef(function(e,t){var n=e.onSubmit,r=e.placeholder,a=void 0===r?"Ask anything":r,i=e.className,o=e.models,s=void 0===o?["GPT 5.5","Opus 4.8","Gemini 3.5 Flash","Composer 2.5","GLM 5.2"]:o,l=e.efforts,u=void 0===l?["Low","Medium","Max Effort"]:l,c=e.defaultValue,d=e.value,f=e.onChange,p=e.maxAttachments,y=void 0===p?6:p,g=Ap((0,h.useState)(!1),2),v=g[0],b=g[1],w=Ap((0,h.useState)(!1),2),x=w[0],S=w[1],j=Ap((0,h.useState)(void 0===c?"":c),2),E=j[0],O=j[1],k=Ap((0,h.useState)(s[0]),2),D=k[0],P=k[1],A=Ap((0,h.useState)(1),2),C=A[0],T=A[1],N=Ap((0,h.useState)(!1),2),R=N[0],M=N[1],I=Ap((0,h.useState)([]),2),L=I[0],_=I[1],F=Ap((0,h.useState)(null),2),V=F[0],B=F[1],z=Ap((0,h.useState)(!1),2),U=z[0],W=z[1],$=Ap((0,h.useState)([,,,,,].fill(0)),2),H=$[0],G=$[1],q=(0,h.useRef)(void 0!==d?d:E),Y=(0,h.useRef)(null),K=(0,h.useRef)(null),Z=(0,h.useRef)(null),X=(0,h.useRef)(null),Q=(0,h.useRef)(null),J=(0,h.useRef)(null),ee=Ap((0,h.useState)({opacity:0,transform:"translateY(0px) scale(0.95)",transition:"none"}),2),et=ee[0],en=ee[1],er=Ap((0,h.useState)(116),2),ea=er[0],ei=er[1],eo=Ap((0,h.useState)(68),2),es=eo[0],el=eo[1],eu=Ap((0,h.useState)(!1),2),ec=eu[0],ed=eu[1],ef=void 0!==d,ep=ef?d:E,em=""!==ep.trim()||L.length>0,eh=L.length>0,ey=(0,h.useRef)(null),eg=(0,h.useRef)(null),ev=(0,h.useRef)(null),eb=(0,h.useRef)(null),ew=(0,h.useRef)(null),ex=(0,h.useRef)(new Map);(0,h.useEffect)(function(){q.current=ep},[ep]);var eS=function(){var e=ey.current;if(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;ev.current&&(ev.current.style.opacity=Math.min(t/20,1).toString()),eb.current&&(eb.current.style.opacity=Math.min(Math.max(n-r-t-16,0)/10,1).toString())}},ej=(0,h.useCallback)(function(e){S(!0),ef||O(e),null==f||f(e)},[ef,f]),eE=(0,h.useCallback)(function(){X.current&&(X.current.stop(),X.current=null),Z.current&&(cancelAnimationFrame(Z.current),Z.current=null),Y.current&&(Y.current.getTracks().forEach(function(e){return e.stop()}),Y.current=null),K.current&&(K.current.close(),K.current=null),Q.current&&(window.clearInterval(Q.current),Q.current=null),J.current&&(window.clearInterval(J.current),J.current=null),W(!1),G([,,,,,].fill(0))},[]),eO=(0,h.useCallback)(function(){return Af(function(){var e,t,n,r,a,i,o,s;function l(){var e="Can you build a high fidelity Framer Motion layout animation for a dark mode dashboard?".split(" "),t=0,n=q.current;J.current=window.setInterval(function(){t<e.length?(ej(n=(n?n+" ":"")+e[t]),t++):eE()},300)}return Ah(this,function(u){switch(u.label){case 0:S(!1),b(!0),e=null,u.label=1;case 1:if(u.trys.push([1,4,,5]),!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return[3,3];return[4,navigator.mediaDevices.getUserMedia({audio:!0})];case 2:e=u.sent(),u.label=3;case 3:return[3,5];case 4:return u.sent(),console.warn("Microphone access denied or unavailable. Falling back to simulated voice mode for demo."),[3,5];case 5:return W(!0),e?(Y.current=e,K.current=t=new(window.AudioContext||window.webkitAudioContext),(n=t.createAnalyser()).fftSize=64,t.createMediaStreamSource(e).connect(n),r=new Uint8Array(n.frequencyBinCount),(a=function(){n.getByteFrequencyData(r);for(var e=[,,,,,].fill(0),t=Math.floor(r.length/5),i=0;i<5;i++){for(var o=0,s=0;s<t;s++)o+=r[i*t+s];e[i]=o/t/255}G(e),Z.current=requestAnimationFrame(a)})(),(i=window.SpeechRecognition||window.webkitSpeechRecognition)?((o=new i).continuous=!0,o.interimResults=!0,s=q.current,o.onresult=function(e){for(var t="",n="",r=e.resultIndex;r<e.results.length;++r)e.results[r].isFinal?n+=e.results[r][0].transcript:t+=e.results[r][0].transcript;n&&(s+=(s?" ":"")+n),ej((s+(t?" "+t:"")).trim())},o.onerror=function(e){console.error("Speech recognition error",e),eE()},o.onend=function(){eE()},X.current=o,o.start()):(console.warn("Speech Recognition API not supported in this browser. Using simulated text."),l())):(Q.current=window.setInterval(function(){G(Array.from({length:5},function(){return .8*Math.random()+.1}))},100),l()),[2]}})})()},[ej,eE]);(0,h.useEffect)(function(){U&&ey.current&&(ey.current.scrollTop=ey.current.scrollHeight)},[ep,U]),(0,h.useEffect)(function(){return function(){eE(),L.forEach(function(e){return URL.revokeObjectURL(e.url)})}},[eE,L]),(0,h.useEffect)(function(){(""!==ep.trim()||eh)&&!v&&(S(!1),b(!0))},[ep,v,eh]),(0,h.useEffect)(function(){if(v&&!U){var e=setTimeout(function(){if(ey.current){ey.current.focus();var e=ey.current.value.length;ey.current.setSelectionRange(e,e)}},50);return function(){return clearTimeout(e)}}},[v,U]),(0,h.useEffect)(function(){if(ey.current){var e=ey.current,t=e.style.height;e.style.transition="none",e.style.height="0px";var n=e.scrollHeight;e.style.height=t,e.offsetHeight,e.style.transition="";var r=Math.max(68,Math.min(n,160));e.style.height="".concat(r,"px"),el(r),ed(n>160),setTimeout(eS,0)}},[ep,v]),(0,h.useEffect)(function(){ei(Math.max(116,es+48)),setTimeout(eS,0)},[es]),(0,h.useEffect)(function(){if(R){var e=function(e){eg.current&&!eg.current.contains(e.target)&&M(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[R]);var ek=function(){(""!==ep.trim()||eh)&&(S(!1),null==n||n(ep,{model:D,effort:u[C],attachments:L.map(function(e){return e.file})}),ej(""),L.forEach(function(e){return URL.revokeObjectURL(e.url)}),_([]),b(!1),M(!1))},eD=function(e,t,n,r){var a="".concat(e.name,"-").concat(e.lastModified,"-").concat(Math.random().toString(36).slice(2,8));_(function(i){return((function(e){if(Array.isArray(e))return Ac(e)})(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||Am(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([{id:a,file:e,url:t,name:e.name,width:n,height:r}])})},eP=function(e){S(!0),_(function(t){var n=t.find(function(t){return t.id===e});return n&&URL.revokeObjectURL(n.url),t.filter(function(t){return t.id!==e})}),ex.current.delete(e)},eA=em&&!U,eC=!em&&!U;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{ref:function(e){"function"==typeof t?t(e):t&&(t.current=e),eg.current=e},onBlur:function(e){!(eg.current&&eg.current.contains(e.relatedTarget))&&(""!==ep.trim()||eh||U||(S(!1),b(!1),M(!1)))},className:ya("relative flex flex-col w-full",i),style:{maxWidth:"100%",transition:x?"max-width 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},children:[(0,m.jsx)("input",{ref:ew,type:"file",accept:"image/*",multiple:!0,onChange:function(e){return Af(function(){var t,n,r,a,i,o,s,l,u,c;return Ah(this,function(d){if(!(t=e.target.files)||(n=Array.from(t).filter(function(e){return e.type.startsWith("image/")}),e.target.value="",0===n.length))return[2];r=Math.max(0,y-L.length),a=n.slice(0,r),v?S(!0):(S(!1),b(!0)),i=!0,o=!1,s=void 0;try{for(l=function(){var e=c.value,t=URL.createObjectURL(e),n=new Image;n.onload=function(){return eD(e,t,n.naturalWidth,n.naturalHeight)},n.onerror=function(){return eD(e,t,800,600)},n.src=t},u=a[Symbol.iterator]();!(i=(c=u.next()).done);i=!0)l()}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return[2]})})()},className:"hidden",tabIndex:-1,"aria-hidden":"true"}),(0,m.jsx)("div",{"aria-hidden":!eh,style:{height:eh&&v?68:0,transition:x?"height 0.15s ease-out":"height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:"w-full relative z-0 overflow-hidden",children:(0,m.jsx)("div",{style:{position:"absolute",bottom:-8,left:20,right:20,height:68,transform:eh&&v?"translateY(0)":"translateY(100%)",opacity:eh&&v?1:0,transition:x?"transform 0.15s ease-out, opacity 0.15s ease-out":"transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out"},className:"border border-border border-b-0 bg-muted rounded-t-2xl px-2 pt-2 pb-1 flex items-start gap-2 overflow-x-auto prompt-scrollbar",children:L.map(function(e,t){return(0,m.jsx)(AE,{attachment:e,index:t,onRemove:eP,onOpen:function(e,t){return B({attachment:e,rect:t})},registerRef:function(e,t){return ex.current.set(e,t)}},e.id)})})}),(0,m.jsxs)("div",{onMouseDown:function(e){var t,n=e.target===ey.current;!v||n||U||(e.preventDefault(),null==(t=ey.current)||t.focus())},style:{borderRadius:24,height:v?ea:48,transition:x?"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)",overflow:v?"visible":"hidden"},className:ya("relative w-full border border-border bg-card shadow-sm focus-within:border-ring/40 focus-within:ring-1 focus-within:ring-ring/20 hover:border-border/80 z-10",v?"cursor-text":"cursor-default"),children:[(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .prompt-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-track { background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }\n .prompt-scrollbar:hover::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); }\n "}}),(0,m.jsx)("textarea",{ref:ey,value:ep,onChange:function(e){return ej(e.target.value)},onScroll:eS,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),ek()),"Escape"!==e.key||""!==ep.trim()||eh||(S(!1),b(!1),M(!1))},placeholder:a,"aria-label":"Prompt",disabled:U,style:{transition:x?"height 0.15s ease-out":"opacity 0.3s ease-out, transform 0.3s ease-out, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:ya("prompt-scrollbar absolute top-0 inset-x-0 z-[1] w-full resize-none bg-transparent pl-4 pr-12 py-3.5 text-sm leading-[22px] text-foreground outline-none placeholder:font-medium placeholder:text-muted-foreground/80 cursor-text",v?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 -translate-y-1 pointer-events-none",ec?"overflow-y-auto":"overflow-y-hidden",U&&"pointer-events-none")}),(0,m.jsx)("div",{ref:ev,className:"absolute left-4 right-12 top-0 z-[2] h-8 bg-gradient-to-b from-card via-card/90 to-transparent pointer-events-none"}),(0,m.jsx)("div",{ref:eb,className:"absolute left-4 right-12 z-[2] h-8 bg-gradient-to-t from-card via-card/90 to-transparent pointer-events-none",style:{opacity:0,top:"".concat(es-32,"px"),transition:x?"top 0.15s ease-out":"top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"}}),(0,m.jsx)("button",{type:"button",onClick:function(){S(!1),b(!0)},style:{transition:x?"none":"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:ya("absolute inset-x-0 top-0 z-[1] cursor-text pl-4 pr-12 py-[15px] text-left text-sm font-medium leading-[17px] text-muted-foreground/80 outline-none truncate",v?"opacity-0 scale-105 translate-y-1 pointer-events-none":"opacity-100 scale-100 translate-y-0"),"aria-label":"Open prompt input",children:a}),(0,m.jsxs)("div",{className:ya("absolute bottom-2 left-3 right-12 z-[10] flex items-center gap-0 transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",v&&!U?"opacity-100 blur-0 translate-y-0 pointer-events-auto":"opacity-0 blur-sm translate-y-2 pointer-events-none"),children:[(0,m.jsxs)("div",{className:"relative",children:[(0,m.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),M(function(e){return!e})},className:ya("group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 outline-none hover:bg-accent/60 hover:text-foreground cursor-default",R?"bg-accent/60 text-foreground":""),"aria-label":"Select model. Current: ".concat(D),children:[(0,m.jsx)(Ag,{model:D,className:"size-3.5 opacity-70 group-hover:opacity-100 transition-opacity"}),(0,m.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,m.jsx)(Ay,{text:D})})]}),(0,m.jsx)("div",{style:{transformOrigin:"bottom left"},onMouseLeave:function(){en(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={opacity:0,transform:e.transform.replace("scale(1)","scale(0.95)"),transition:"opacity 0.2s ease-in, transform 0.2s ease-out"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t})},className:ya("absolute bottom-full left-0 mb-2.5 z-50 w-44 rounded-2xl border border-border bg-card/95 p-1 shadow-xl backdrop-blur-md flex flex-col gap-0.5 transition-all duration-400 cursor-default",R?"opacity-100 scale-100 translate-y-0 pointer-events-auto ease-[cubic-bezier(0.34,1.56,0.64,1)]":"opacity-0 scale-95 translate-y-3 pointer-events-none ease-[cubic-bezier(0.175,0.885,0.32,1.275)]"),children:(0,m.jsxs)("div",{className:"relative flex flex-col gap-0.5",children:[(0,m.jsx)("div",{style:et,className:"absolute left-0 right-0 top-0 h-8 -z-10 rounded-xl bg-accent pointer-events-none"}),s.map(function(e,t){return(0,m.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){en(function(e){return{opacity:1,transform:"translateY(".concat(34*t,"px) scale(1)"),transition:0===e.opacity?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease"}})},onClick:function(t){t.stopPropagation(),P(e),M(!1)},className:"group relative flex h-8 w-full items-center justify-between rounded-xl px-2.5 py-1.5 text-left text-xs font-medium text-foreground/80 outline-none active:scale-[0.98] cursor-default",children:(0,m.jsxs)("span",{className:"flex items-center gap-2",children:[(0,m.jsx)(Ag,{model:e,className:"size-3.5 opacity-85 group-hover:opacity-100 transition-opacity"}),e]})},e)})]})})]}),(0,m.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),T(function(e){return(e+1)%u.length})},className:"group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default",children:[(0,m.jsx)(Aj,{level:u[C]}),(0,m.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,m.jsx)(Ay,{text:u[C]})})]}),(0,m.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){var t;e.stopPropagation(),null==(t=ew.current)||t.click()},disabled:L.length>=y,className:"ml-auto flex size-7 items-center justify-center rounded-full text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default disabled:opacity-40 disabled:pointer-events-none",children:(0,m.jsx)(Ax,{})})]}),(0,m.jsx)("div",{className:ya("absolute right-12 bottom-2 z-[10] flex h-8 items-center justify-end gap-[3px] transition-all duration-400 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",U?"w-16 opacity-100 translate-x-0":"w-0 opacity-0 translate-x-4 pointer-events-none"),children:H.map(function(e,t){return(0,m.jsx)("div",{className:"w-1 rounded-full bg-primary transition-[height] duration-75 ease-out",style:{height:"".concat(Math.max(4,24*e),"px")}},t)})}),(0,m.jsx)("button",{type:"button",onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.preventDefault(),U?eE():em?ek():eO()},"aria-label":eA?"Send prompt":U?"Stop recording":"Use voice input",style:{borderRadius:9999},className:"absolute right-2 bottom-2 z-[10] flex h-8 w-8 items-center justify-center bg-primary text-primary-foreground transition-all duration-300 hover:opacity-90 outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-default",children:(0,m.jsxs)("span",{className:"relative flex h-full w-full items-center justify-center",children:[(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eA?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,m.jsx)(Av,{})}),(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eC?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 -rotate-45 blur-[1px] pointer-events-none"),children:(0,m.jsx)(Ab,{})}),(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",U?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,m.jsx)(Aw,{})})]})})]})]}),V&&(0,m.jsx)(AO,{attachment:V.attachment,originRect:V.rect,onClose:function(){return B(null)}})]})});function AD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Ak.displayName="PromptInput";var AP=(0,h.lazy)(function(){return n.e("1808").then(n.bind(n,339))}),AA=new Set;function AC(e){if(!("u"<typeof document||AA.has(e))){AA.add(e);var t=document.createElement("link");t.rel="preload",t.as="fetch",t.crossOrigin="anonymous",t.href=e,document.head.appendChild(t)}}function AT(e){var t,n=e.scene,r=e.className,a=e.onLoad,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return AD(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return AD(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];return(0,m.jsxs)("div",{className:"relative ".concat(void 0===r?"w-full h-full":r," overflow-hidden"),children:[!o&&(0,m.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center bg-[#030708] text-teal-400 gap-3 transition-opacity duration-300",children:[(0,m.jsx)("div",{className:"w-10 h-10 border-2 border-teal-400 border-t-transparent rounded-full animate-spin"}),(0,m.jsx)("span",{className:"text-xs font-mono tracking-widest text-teal-300/80 uppercase animate-pulse",children:"Initialisation Robot 3D..."})]}),(0,m.jsx)("div",{className:"w-full h-full transition-opacity duration-500 ".concat(o?"opacity-100":"opacity-0"),children:(0,m.jsx)(h.Suspense,{fallback:null,children:(0,m.jsx)(AP,{scene:n,className:"w-full h-full",onLoad:function(e){s(!0),a&&a(e)}})})})]})}var AN={mode:"dark",hue:0,saturation:1,brightness:1},AR={title:"Recursive Erosion particle sphere background",source:"<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Recursive Erosion Particle Sphere</title>\n <style>\n * { margin: 0; padding: 0; box-sizing: border-box; }\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n background: #0a0908;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n #stage {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n }\n </style>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js\"><\/script>\n</head>\n<body>\n <canvas id=\"stage\"></canvas>\n\n <script>\n (function() {\n var canvas = document.getElementById('stage');\n var width = window.innerWidth;\n var height = window.innerHeight;\n\n // Ensure canvas has dimension\n canvas.width = width;\n canvas.height = height;\n\n // Mouse tracking\n var mouseX = 0, mouseY = 0;\n var targetRotX = 0, targetRotY = 0;\n window.addEventListener('mousemove', function(e) {\n mouseX = (e.clientX / window.innerWidth) * 2 - 1;\n mouseY = -(e.clientY / window.innerHeight) * 2 + 1;\n });\n\n // Simple 3D noise approximation\n function snoise(x, y, z) {\n return Math.sin(x * 1.7 + y * 2.3) * Math.cos(y * 1.5 + z * 2.1) * Math.sin(z * 1.9 + x * 0.9);\n }\n\n // Check if THREE is loaded\n if (typeof THREE !== 'undefined') {\n initThree();\n } else {\n // In case external CDN fails, fallback to standalone canvas 2D rendering\n initCanvasFallback();\n }\n\n function initThree() {\n var scene = new THREE.Scene();\n var camera = new THREE.PerspectiveCamera(50, width / height, 0.1, 1000);\n camera.position.z = 240;\n\n var renderer = new THREE.WebGLRenderer({\n canvas: canvas,\n antialias: true,\n alpha: true,\n powerPreference: \"high-performance\"\n });\n renderer.setSize(width, height);\n renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));\n\n // Create 7,000 points on Fibonacci sphere\n var particleCount = 7000;\n var geometry = new THREE.BufferGeometry();\n var positions = new Float32Array(particleCount * 3);\n var basePositions = new Float32Array(particleCount * 3);\n var colors = new Float32Array(particleCount * 3);\n var sizes = new Float32Array(particleCount);\n\n var sphereRadius = 82;\n var goldenRatio = (1 + Math.sqrt(5)) / 2;\n\n for (var i = 0; i < particleCount; i++) {\n var y = 1 - (i / (particleCount - 1)) * 2;\n var radiusAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / goldenRatio;\n\n var x = Math.cos(theta) * radiusAtY;\n var z = Math.sin(theta) * radiusAtY;\n\n var bx = x * sphereRadius;\n var by = y * sphereRadius;\n var bz = z * sphereRadius;\n\n basePositions[i * 3] = bx;\n basePositions[i * 3 + 1] = by;\n basePositions[i * 3 + 2] = bz;\n\n positions[i * 3] = bx;\n positions[i * 3 + 1] = by;\n positions[i * 3 + 2] = bz;\n\n // Warm orange / amber / golden palette with organic gradient\n var ratio = (y + 1) * 0.5;\n var r = 1.0;\n var g = 0.38 + ratio * 0.28 + Math.random() * 0.12;\n var b = 0.05 + ratio * 0.08;\n\n colors[i * 3] = r;\n colors[i * 3 + 1] = g;\n colors[i * 3 + 2] = b;\n\n sizes[i] = 1.2 + Math.random() * 2.0;\n }\n\n geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));\n geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3));\n\n // Circular glow particle texture\n var circleCanvas = document.createElement('canvas');\n circleCanvas.width = 64;\n circleCanvas.height = 64;\n var ctx = circleCanvas.getContext('2d');\n var grad = ctx.createRadialGradient(32, 32, 0, 32, 32, 32);\n grad.addColorStop(0, 'rgba(255, 255, 255, 1)');\n grad.addColorStop(0.2, 'rgba(255, 160, 60, 0.9)');\n grad.addColorStop(0.5, 'rgba(255, 90, 20, 0.4)');\n grad.addColorStop(1, 'rgba(255, 60, 0, 0)');\n ctx.fillStyle = grad;\n ctx.fillRect(0, 0, 64, 64);\n\n var pTexture = new THREE.CanvasTexture(circleCanvas);\n\n var material = new THREE.PointsMaterial({\n size: 3.2,\n vertexColors: true,\n map: pTexture,\n transparent: true,\n blending: THREE.AdditiveBlending,\n depthWrite: false,\n opacity: 0.92\n });\n\n var points = new THREE.Points(geometry, material);\n scene.add(points);\n\n // 8 jagged lightning arcs that strike across the sphere\n var arcGroup = new THREE.Group();\n var arcLines = [];\n var ARC_COUNT = 8;\n var ARC_SEGMENTS = 20;\n\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcGeo = new THREE.BufferGeometry();\n var arcPos = new Float32Array(ARC_SEGMENTS * 3);\n arcGeo.setAttribute('position', new THREE.BufferAttribute(arcPos, 3));\n\n var arcMat = new THREE.LineBasicMaterial({\n color: new THREE.Color(1.0, 0.72 + Math.random() * 0.25, 0.3),\n transparent: true,\n opacity: 0.75,\n blending: THREE.AdditiveBlending,\n linewidth: 1.5\n });\n\n var line = new THREE.Line(arcGeo, arcMat);\n arcLines.push({ line: line, geo: arcGeo, phase: Math.random() * Math.PI * 2, speed: 0.8 + Math.random() * 0.6 });\n arcGroup.add(line);\n }\n scene.add(arcGroup);\n\n // Inner glowing core\n var coreGeo = new THREE.SphereGeometry(sphereRadius * 0.3, 16, 16);\n var coreMat = new THREE.MeshBasicMaterial({\n color: 0xff5500,\n transparent: true,\n opacity: 0.08,\n blending: THREE.AdditiveBlending,\n wireframe: true\n });\n var coreMesh = new THREE.Mesh(coreGeo, coreMat);\n scene.add(coreMesh);\n\n var clock = new THREE.Clock();\n\n function animate() {\n requestAnimationFrame(animate);\n var time = clock.getElapsedTime();\n\n // 4-second erosion breathing loop\n var loopCycle = (time % 4.0) / 4.0; // 0 to 1\n var erosionPulse = Math.sin(loopCycle * Math.PI * 2);\n\n var posAttr = geometry.attributes.position;\n var posArray = posAttr.array;\n\n for (var i = 0; i < particleCount; i++) {\n var i3 = i * 3;\n var bx = basePositions[i3];\n var by = basePositions[i3 + 1];\n var bz = basePositions[i3 + 2];\n\n // 3D noise for recursive erosion crumpling & hole creation\n var nVal = snoise(bx * 0.025 + time * 0.4, by * 0.025 + time * 0.3, bz * 0.025);\n var isHole = nVal > (0.42 - erosionPulse * 0.25);\n\n var displace = isHole ? (1.0 + (nVal - 0.3) * 0.65) : (1.0 + nVal * 0.12 * erosionPulse);\n posArray[i3] = bx * displace;\n posArray[i3 + 1] = by * displace;\n posArray[i3 + 2] = bz * displace;\n }\n posAttr.needsUpdate = true;\n\n // Lightning arcs updates\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcObj = arcLines[a];\n var aGeo = arcObj.geo;\n var aPos = aGeo.attributes.position.array;\n\n var tPhase = time * arcObj.speed + arcObj.phase;\n var p1Idx = Math.floor(Math.abs(Math.sin(tPhase * 0.7) * (particleCount - 1)));\n var p2Idx = Math.floor(Math.abs(Math.cos(tPhase * 0.5) * (particleCount - 1)));\n\n var x1 = posArray[p1Idx * 3], y1 = posArray[p1Idx * 3 + 1], z1 = posArray[p1Idx * 3 + 2];\n var x2 = posArray[p2Idx * 3], y2 = posArray[p2Idx * 3 + 1], z2 = posArray[p2Idx * 3 + 2];\n\n for (var s = 0; s < ARC_SEGMENTS; s++) {\n var tSeg = s / (ARC_SEGMENTS - 1);\n var sx = x1 + (x2 - x1) * tSeg;\n var sy = y1 + (y2 - y1) * tSeg;\n var sz = z1 + (z2 - z1) * tSeg;\n\n // Jagged lightning noise displacement\n if (s > 0 && s < ARC_SEGMENTS - 1) {\n var jitter = Math.sin(tSeg * Math.PI) * 7.5;\n sx += (Math.random() - 0.5) * jitter;\n sy += (Math.random() - 0.5) * jitter;\n sz += (Math.random() - 0.5) * jitter;\n }\n\n aPos[s * 3] = sx;\n aPos[s * 3 + 1] = sy;\n aPos[s * 3 + 2] = sz;\n }\n aGeo.attributes.position.needsUpdate = true;\n arcObj.line.material.opacity = 0.3 + Math.random() * 0.65;\n }\n\n // Smooth rotation & interactive mouse tilt\n targetRotX = mouseY * 0.45;\n targetRotY = mouseX * 0.55;\n\n points.rotation.y += 0.0035;\n points.rotation.x += (targetRotX - points.rotation.x) * 0.05;\n points.rotation.z += (targetRotY * 0.2 - points.rotation.z) * 0.05;\n\n arcGroup.rotation.copy(points.rotation);\n coreMesh.rotation.copy(points.rotation);\n\n renderer.render(scene, camera);\n }\n\n animate();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n camera.aspect = width / height;\n camera.updateProjectionMatrix();\n renderer.setSize(width, height);\n });\n }\n\n function initCanvasFallback() {\n var ctx = canvas.getContext('2d');\n var particles = [];\n var count = 3000;\n for (var i = 0; i < count; i++) {\n var y = 1 - (i / (count - 1)) * 2;\n var rAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / 1.6180339887;\n particles.push({\n x: Math.cos(theta) * rAtY,\n y: y,\n z: Math.sin(theta) * rAtY,\n baseRadius: 180\n });\n }\n\n var angleX = 0, angleY = 0;\n function renderLoop() {\n requestAnimationFrame(renderLoop);\n ctx.fillStyle = '#0a0908';\n ctx.fillRect(0, 0, width, height);\n\n var cx = width / 2;\n var cy = height / 2;\n\n angleY += 0.005;\n angleX = mouseY * 0.3;\n\n for (var i = 0; i < count; i += 2) {\n var p = particles[i];\n var cosY = Math.cos(angleY), sinY = Math.sin(angleY);\n var cosX = Math.cos(angleX), sinX = Math.sin(angleX);\n\n var x1 = p.x * cosY - p.z * sinY;\n var z1 = p.z * cosY + p.x * sinY;\n\n var y2 = p.y * cosX - z1 * sinX;\n var z2 = z1 * cosX + p.y * sinX;\n\n var scale = 400 / (400 + z2 * p.baseRadius);\n var px = cx + x1 * p.baseRadius * scale;\n var py = cy + y2 * p.baseRadius * scale;\n\n var alpha = Math.max(0.1, Math.min(1, (z2 + 1.2) * 0.45));\n ctx.fillStyle = 'rgba(255, 140, 40, ' + alpha + ')';\n ctx.beginPath();\n ctx.arc(px, py, Math.max(1, 2.0 * scale), 0, Math.PI * 2);\n ctx.fill();\n }\n }\n renderLoop();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n canvas.width = width;\n canvas.height = height;\n });\n }\n })();\n <\/script>\n</body>\n</html>",background:"#0a0908",theme:{lightBackground:"#f4f3f1",darkBackground:"#0a0908"},targets:[{selector:"#stage",role:"background"}],hiddenTargets:["#badge",".sr"]};function AM(e,t,n){return Math.min(n,Math.max(t,e))}function AI(e,t){var n,r;return null!=(n=null==(r=e.theme)?void 0:r["".concat(t,"Background")])?n:e.background}function AL(e){var t=e.mode,n=void 0===t?AN.mode:t,r=e.hue,a=void 0===r?AN.hue:r,i=e.saturation,o=void 0===i?AN.saturation:i,s=e.brightness,l=void 0===s?AN.brightness:s,u=e.className,c=e.style,d="light"===n?"light":"dark",f=AI(AR,d),p=(0,h.useMemo)(function(){var e,t,n,r,a,i,o,s;return t=AI(AR,d),n=AR.source,r=JSON.stringify(AR.targets).replace(/</g,"\\u003c"),a=JSON.stringify(null!=(e=AR.hiddenTargets)?e:[]).replace(/</g,"\\u003c"),i=JSON.stringify(d),o="<style data-threeui-focus>\nhtml, body { width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: ".concat(t," !important; color-scheme: ").concat(d,' !important; }\nbody { position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important; }\nbody > * { visibility: hidden !important; }\nbody[data-threeui-ready] > [data-threeui-role] { visibility: visible !important; }\n[data-threeui-residual] { display: none !important; }\n[data-threeui-hidden] { display: none !important; }\n[data-threeui-role="background"] { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; z-index: 0 !important; opacity: 1 !important; pointer-events: none !important; }\n[data-threeui-role="button"] { position: relative !important; z-index: 2 !important; opacity: 1 !important; flex: none !important; }\n[data-threeui-role="visual"] { position: relative !important; z-index: 1 !important; width: min(100%, 1040px) !important; max-width: 1040px !important; max-height: 100% !important; margin: auto !important; padding: 24px !important; overflow: auto !important; opacity: 1 !important; filter: none !important; }\n</style>'),s="<script data-threeui-focus>\n(function () {\n document.documentElement.dataset.sfMode = ".concat(i,";\n var isolated = false;\n function isolate() {\n if (isolated) return;\n var specs = ").concat(r,";\n var hiddenSelectors = ").concat(a,";\n var roots = [];\n hiddenSelectors.forEach(function (selector) {\n document.querySelectorAll(selector).forEach(function (element) {\n element.setAttribute('data-threeui-hidden', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n });\n specs.forEach(function (spec) {\n var element = document.querySelector(spec.selector);\n if (!element) return;\n element.setAttribute('data-threeui-role', spec.role);\n if (!roots.some(function (root) { return root.contains(element); })) roots.push(element);\n });\n if (!roots.length) return;\n isolated = true;\n roots.forEach(function (root) {\n var placeholderLink = root.matches('a[href=\"#\"]') ? root : root.querySelector('a[href=\"#\"]');\n if (placeholderLink) placeholderLink.addEventListener('click', function (event) { event.preventDefault(); });\n document.body.appendChild(root);\n });\n Array.from(document.body.children).forEach(function (element) {\n if (roots.indexOf(element) !== -1) return;\n element.setAttribute('data-threeui-residual', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n document.body.setAttribute('data-threeui-ready', '');\n requestAnimationFrame(function () { window.dispatchEvent(new Event('resize')); });\n }\n function scheduleIsolation() { setTimeout(isolate, 100); }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scheduleIsolation, { once: true });\n else scheduleIsolation();\n window.addEventListener('load', isolate, { once: true });\n})();\n<\/script>"),n.replace(/<\/head>/i,"".concat(o,"</head>")).replace(/<\/body>/i,"".concat(s,"</body>"))},[d]),y=AM(a,-180,180),g=AM(o,0,2),v=AM(l,.35,1.65),b=0===y&&1===g&&1===v?void 0:"hue-rotate(".concat(y,"deg) saturate(").concat(g,") brightness(").concat(v,")");return(0,m.jsx)("iframe",{className:u,"data-mode":d,title:AR.title,srcDoc:p,sandbox:"allow-scripts",loading:"eager",style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({display:"block",width:"100%",height:"100%",border:0,background:f,filter:b},c)})}function A_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AF(e){if(Array.isArray(e))return e}function AV(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AB(e,t){if(e){if("string"==typeof e)return A_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A_(e,t)}}var Az=(0,h.forwardRef)(function(e,t){var n,r,a,i=AF(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||AB(n)||AV(),o=i[0],s=i.slice(1),l=o.children,u=o.optionsComponent,c=o.header,d=o.footer,f=o.align,p=o.width,h=o.className,y=void 0===h?"":h,g=o.contentClassName,v=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["children","optionsComponent","header","footer","align","width","className","contentClassName"]),b=(AF(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||AB(s,1)||AV())[0],w=y.includes("fixed")||y.includes("absolute");return(0,m.jsx)("div",(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:b,className:"".concat(w?"":"absolute top-full mt-2"," z-[9999] text-xs text-slate-100 select-none overflow-hidden\n bg-slate-950/90 backdrop-blur-3xl rounded-2xl border border-white/20\n shadow-[0_16px_48px_0_rgba(0,0,0,0.65)]\n before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/[0.12] before:to-transparent before:pointer-events-none\n animate-in fade-in zoom-in-95 duration-150\n ").concat({right:"right-0",left:"left-0",center:"left-1/2 -translate-x-1/2",none:""}[void 0===f?"right":f],"\n ").concat(p||"","\n ").concat(y,"\n ")},v),a=a={children:(0,m.jsxs)("div",{className:"relative z-10 p-1.5 ".concat(void 0===g?"":g),children:[c&&(0,m.jsx)("div",{className:"pb-1.5 mb-1.5 border-b border-white/10 px-2 pt-1",children:c}),u||l,d&&(0,m.jsx)("div",{className:"pt-1.5 mt-1.5 border-t border-white/10 px-2 pb-1",children:d})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r))});Az.displayName="WaterGlassModal";function AU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AW=new(function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");AU(this,"ctx",null),AU(this,"isMuted",!1),AU(this,"volume",.5),AU(this,"lastPlayTimes",{}),AU(this,"noiseBuffer",null);try{var n=localStorage.getItem("egen_xbox_sound_muted");null!==n&&(this.isMuted="true"===n);var r=localStorage.getItem("egen_xbox_sound_volume");null!==r&&(this.volume=parseFloat(r)||.5)}catch(e){}if("u">typeof window){var a=function(){e.initContext(),window.removeEventListener("pointerdown",a),window.removeEventListener("keydown",a)};window.addEventListener("pointerdown",a,{passive:!0}),window.addEventListener("keydown",a,{passive:!0})}}return e=[{key:"initContext",value:function(){if(!this.ctx&&"u">typeof window){var e=window.AudioContext||window.webkitAudioContext;e&&(this.ctx=new e,this.generateNoiseBuffer())}return this.ctx&&"suspended"===this.ctx.state&&this.ctx.resume().catch(function(){}),this.ctx}},{key:"generateNoiseBuffer",value:function(){if(this.ctx){for(var e=.5*this.ctx.sampleRate,t=this.ctx.createBuffer(2,e,this.ctx.sampleRate),n=0;n<2;n++)for(var r=t.getChannelData(n),a=0;a<e;a++)r[a]=2*Math.random()-1;this.noiseBuffer=t}}},{key:"getIsMuted",value:function(){return this.isMuted}},{key:"setMuted",value:function(e){this.isMuted=e;try{localStorage.setItem("egen_xbox_sound_muted",String(e))}catch(e){}}},{key:"toggleMute",value:function(){return this.setMuted(!this.isMuted),this.isMuted||this.play("select"),this.isMuted}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(e){this.volume=Math.max(0,Math.min(1,e));try{localStorage.setItem("egen_xbox_sound_volume",String(this.volume))}catch(e){}}},{key:"play",value:function(e){if(!this.isMuted){var t=performance.now();if(!this.lastPlayTimes[e]||!(t-this.lastPlayTimes[e]<({hover:40,scroll:40,boundary:160,select:60,back:60,modalOpen:100,folderOpen:120,notification:180,achievement:250,toastSuccess:120,toastInfo:120,toastWarning:120,toastError:120,toggle:60})[e])){this.lastPlayTimes[e]=t;var n=this.initContext();if(n)try{switch(e){case"hover":this.playHover(n);break;case"select":this.playSelect(n);break;case"back":this.playBack(n);break;case"modalOpen":this.playModalOpen(n);break;case"folderOpen":this.playFolderOpen(n);break;case"scroll":this.playScroll(n);break;case"boundary":this.playBoundary(n);break;case"notification":this.playNotification(n);break;case"achievement":this.playAchievement(n);break;case"toastSuccess":this.playToastSuccess(n);break;case"toastInfo":this.playToastInfo(n);break;case"toastWarning":this.playToastWarning(n);break;case"toastError":this.playToastError(n);break;case"toggle":this.playToggle(n)}}catch(e){console.warn("Xbox Audio error:",e)}}}}},{key:"playHover",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sine",n.frequency.setValueAtTime(2200,t),n.frequency.exponentialRampToValueAtTime(1400,t+.025),a.type="bandpass",a.frequency.setValueAtTime(1800,t),a.Q.setValueAtTime(3,t);var i=.12*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.025),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.03)}},{key:"playSelect",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="sine",n.frequency.setValueAtTime(920,t),n.frequency.exponentialRampToValueAtTime(1480,t+.035),n.frequency.exponentialRampToValueAtTime(1100,t+.07);var a=.28*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.003),r.gain.exponentialRampToValueAtTime(.001,t+.07),n.connect(r),r.connect(e.destination);var i=e.createOscillator(),o=e.createGain();i.type="triangle",i.frequency.setValueAtTime(460,t),i.frequency.exponentialRampToValueAtTime(320,t+.05);var s=.15*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(s,t+.004),o.gain.exponentialRampToValueAtTime(.001,t+.05),i.connect(o),o.connect(e.destination),n.start(t),i.start(t),n.stop(t+.08),i.stop(t+.06)}},{key:"playBack",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(750,t),n.frequency.exponentialRampToValueAtTime(260,t+.015);var a=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02);var i=e.createOscillator(),o=e.createGain(),s=e.createBiquadFilter();i.type="sine",i.frequency.setValueAtTime(540,t),i.frequency.exponentialRampToValueAtTime(210,t+.085),s.type="lowpass",s.frequency.setValueAtTime(1200,t),s.frequency.exponentialRampToValueAtTime(360,t+.09),s.Q.setValueAtTime(1.8,t);var l=.28*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(l,t+.004),o.gain.exponentialRampToValueAtTime(1e-4,t+.095),i.connect(s),s.connect(o),o.connect(e.destination);var u=e.createOscillator(),c=e.createGain();u.type="sine",u.frequency.setValueAtTime(230,t),u.frequency.exponentialRampToValueAtTime(95,t+.095);var d=.18*this.volume;c.gain.setValueAtTime(0,t),c.gain.linearRampToValueAtTime(d,t+.005),c.gain.exponentialRampToValueAtTime(1e-4,t+.1),u.connect(c),c.connect(e.destination),i.start(t),u.start(t),i.stop(t+.1),u.stop(t+.11)}},{key:"playModalOpen",value:function(e){var t=this,n=e.currentTime,r=e.createBiquadFilter();if(r.type="lowpass",r.frequency.setValueAtTime(1100,n),r.Q.setValueAtTime(.7,n),r.connect(e.destination),this.noiseBuffer){var a=e.createBufferSource();a.buffer=this.noiseBuffer;var i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(450,n),i.frequency.exponentialRampToValueAtTime(700,n+.1),i.Q.setValueAtTime(1.2,n);var o=e.createGain(),s=.045*this.volume;o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.03),o.gain.exponentialRampToValueAtTime(1e-4,n+.18),a.connect(i),i.connect(o),o.connect(r),a.start(n),a.stop(n+.19)}[{freqStart:370,freqEnd:392,startOffset:0,dur:.22,vol:.14},{freqStart:554,freqEnd:587.33,startOffset:.022,dur:.24,vol:.12},{freqStart:740,freqEnd:783.99,startOffset:.045,dur:.2,vol:.08}].forEach(function(a){var i=e.createOscillator(),o=e.createGain();i.type="sine";var s=n+a.startOffset;i.frequency.setValueAtTime(a.freqStart,s),i.frequency.exponentialRampToValueAtTime(a.freqEnd,s+.06);var l=t.volume*a.vol;o.gain.setValueAtTime(0,s),o.gain.linearRampToValueAtTime(l,s+.022),o.gain.exponentialRampToValueAtTime(1e-4,s+a.dur),i.connect(o),o.connect(r),i.start(s),i.stop(s+a.dur+.01)})}},{key:"playFolderOpen",value:function(e){var t=this,n=e.currentTime;if(this.noiseBuffer){var r=e.createBufferSource();r.buffer=this.noiseBuffer;var a=e.createBiquadFilter();a.type="bandpass",a.frequency.setValueAtTime(350,n),a.frequency.exponentialRampToValueAtTime(2400,n+.12),a.frequency.exponentialRampToValueAtTime(600,n+.28),a.Q.setValueAtTime(3.5,n);var i=e.createGain(),o=.2*this.volume;i.gain.setValueAtTime(0,n),i.gain.linearRampToValueAtTime(o,n+.08),i.gain.exponentialRampToValueAtTime(1e-4,n+.28),r.connect(a),a.connect(i),i.connect(e.destination),r.start(n),r.stop(n+.3)}[659.25,987.77,1318.5].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(.85*r,n),i.frequency.exponentialRampToValueAtTime(r,n+.09);var s=.12*t.volume/(a+1);o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.04),o.gain.exponentialRampToValueAtTime(1e-4,n+.35),i.connect(o),o.connect(e.destination),i.start(n),i.stop(n+.36)})}},{key:"playScroll",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="triangle",n.frequency.setValueAtTime(1400,t),n.frequency.exponentialRampToValueAtTime(800,t+.018),a.type="bandpass",a.frequency.setValueAtTime(1200,t),a.Q.setValueAtTime(2,t);var i=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02)}},{key:"playBoundary",value:function(e){var t=e.currentTime,n=e.createBiquadFilter();n.type="lowpass",n.frequency.setValueAtTime(450,t),n.frequency.exponentialRampToValueAtTime(180,t+.06),n.Q.setValueAtTime(1.2,t),n.connect(e.destination);var r=e.createOscillator(),a=e.createGain();r.type="sine",r.frequency.setValueAtTime(210,t),r.frequency.exponentialRampToValueAtTime(85,t+.055);var i=.17*this.volume;a.gain.setValueAtTime(0,t),a.gain.linearRampToValueAtTime(i,t+.003),a.gain.exponentialRampToValueAtTime(1e-4,t+.065),r.connect(a),a.connect(n),r.start(t),r.stop(t+.07);var o=e.createOscillator(),s=e.createGain();o.type="triangle",o.frequency.setValueAtTime(110,t),o.frequency.exponentialRampToValueAtTime(55,t+.045);var l=.11*this.volume;s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(l,t+.002),s.gain.exponentialRampToValueAtTime(1e-4,t+.05),o.connect(s),s.connect(n),o.start(t),o.stop(t+.055)}},{key:"playNotification",value:function(e){var t=this,n=e.currentTime;[{f:880,start:0,dur:.22,vol:.25},{f:1320,start:.08,dur:.35,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.f,n+r.start);var o=t.volume*r.vol;i.gain.setValueAtTime(0,n+r.start),i.gain.linearRampToValueAtTime(o,n+r.start+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.start+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.start),a.stop(n+r.start+r.dur)})}},{key:"playAchievement",value:function(e){var t=this,n=e.currentTime;[{freq:739.99,time:0,dur:.15},{freq:1108.73,time:.08,dur:.55}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.freq,n+r.time);var o=.3*t.volume;i.gain.setValueAtTime(0,n+r.time),i.gain.linearRampToValueAtTime(o,n+r.time+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.time+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.time),a.stop(n+r.time+r.dur)}),[1479.98,1864.66,2217.46,2959.96].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(r,n+.12);var s=.22*t.volume/(a+1);o.gain.setValueAtTime(0,n+.12),o.gain.linearRampToValueAtTime(s,n+.14),o.gain.exponentialRampToValueAtTime(1e-4,n+.85),i.connect(o),o.connect(e.destination),i.start(n+.12),i.stop(n+.9)})}},{key:"playToastSuccess",value:function(e){var t=this,n=e.currentTime;[{f:739.99,delay:0,dur:.2,vol:.24},{f:932.33,delay:.04,dur:.22,vol:.26},{f:1108.73,delay:.08,dur:.42,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.008),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastInfo",value:function(e){var t=this,n=e.currentTime;[{f:880,delay:0,dur:.22,vol:.24},{f:1318.5,delay:.045,dur:.3,vol:.26},{f:440,delay:0,dur:.15,vol:.12}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.006),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastWarning",value:function(e){var t=this,n=e.currentTime;[{f:554.37,delay:0,dur:.06,vol:.25},{f:466.16,delay:.075,dur:.12,vol:.26}].forEach(function(r){var a=e.createOscillator(),i=e.createGain(),o=e.createBiquadFilter();a.type="triangle",o.type="bandpass",o.frequency.setValueAtTime(900,n+r.delay),o.Q.setValueAtTime(2.2,n+r.delay);var s=n+r.delay;a.frequency.setValueAtTime(r.f,s);var l=t.volume*r.vol;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(l,s+.005),i.gain.exponentialRampToValueAtTime(1e-4,s+r.dur),a.connect(o),o.connect(i),i.connect(e.destination),a.start(s),a.stop(s+r.dur+.01)})}},{key:"playToastError",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sawtooth",n.frequency.setValueAtTime(392,t),n.frequency.exponentialRampToValueAtTime(220,t+.12),a.type="lowpass",a.frequency.setValueAtTime(650,t),a.frequency.exponentialRampToValueAtTime(200,t+.12),a.Q.setValueAtTime(2,t);var i=.24*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.005),r.gain.exponentialRampToValueAtTime(1e-4,t+.13),n.connect(a),a.connect(r),r.connect(e.destination);var o=e.createOscillator(),s=e.createGain();o.type="sine",o.frequency.setValueAtTime(140,t),o.frequency.exponentialRampToValueAtTime(60,t+.15),s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(.18*this.volume,t+.005),s.gain.exponentialRampToValueAtTime(1e-4,t+.15),o.connect(s),s.connect(e.destination),n.start(t),o.start(t),n.stop(t+.14),o.stop(t+.16)}},{key:"playToggle",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(1100,t),n.frequency.exponentialRampToValueAtTime(1600,t+.02);var a=.18*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.03),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.035)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function A$(e){AW.play(e)}function AH(){return AW.getIsMuted()}function AG(){return AW.toggleMute()}function Aq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){AY(e,t,n[t])})}return e}function AZ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function AX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||AJ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AQ(e){return function(e){if(Array.isArray(e))return Aq(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AJ(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AJ(e,t){if(e){if("string"==typeof e)return Aq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aq(e,t)}}var A0={type:"spring",stiffness:560,damping:34,mass:.7};function A1(e,t){return e.find(function(e){return e.id===t})}function A2(e,t){return null==e?void 0:e.operators.find(function(e){return e.value===t})}function A3(e){var t,n,r=e.anchorKey,a=e.label,i=e.onClose,o=e.children,s=h.useRef(null),l=OF(),u=AX(h.useState(null),2),c=u[0],d=u[1],f=AX(h.useState(!1),2),p=f[0],y=f[1],g=AX(h.useState(null),2),v=g[0],b=g[1];h.useLayoutEffect(function(){var e=document.querySelector('[data-fb-anchor="'.concat(r,'"]'));d(e),y(!!(null==e?void 0:e.closest(".dark")))},[r]);var w=h.useRef(r);return w.current=r,h.useEffect(function(){return function(){var e;null==(e=document.querySelector('[data-fb-anchor="'.concat(w.current,'"]')))||e.focus()}},[]),h.useLayoutEffect(function(){if(c){var e=function(){var e=s.current;if(e){var t=c.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight,a=t.left,i=t.bottom+6;a=Math.max(8,a=Math.min(a,window.innerWidth-n-8)),i+r>window.innerHeight-8&&(i=t.top-6-r),b({top:i,left:a})}};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[c]),h.useEffect(function(){var e=function(e){!s.current||s.current.contains(e.target)||c&&c.contains(e.target)||i()},t=function(e){"Escape"===e.key&&(e.stopPropagation(),i())};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t,!0)}},[c,i]),(0,rC.createPortal)((0,m.jsx)("div",{className:p?"dark":"",style:{display:"contents"},children:(0,m.jsx)(mY.div,{ref:s,role:"dialog","aria-label":a,initial:!l&&{opacity:0,y:-3,scale:.985},animate:{opacity:1,y:0,scale:1},transition:{duration:.12,ease:[.2,.8,.2,1]},style:{position:"fixed",top:null!=(t=null==v?void 0:v.top)?t:-9999,left:null!=(n=null==v?void 0:v.left)?n:-9999,zIndex:60},className:"min-w-[13rem] max-w-[18rem] overflow-hidden rounded-lg border border-[var(--fb-border)] bg-[var(--fb-bg-surface)] shadow-[0_10px_30px_-8px_rgba(0,0,0,0.25)]",children:o})}),document.body)}function A4(e){var t=e.items,n=e.multi,r=e.loading,a=e.error,i=e.searchable,o=e.placeholder,s=e.onQuery,l=e.onPick,u=e.onRetry,c=e.ariaLabel,d=AX(h.useState(""),2),f=d[0],p=d[1],y=AX(h.useState(0),2),g=y[0],v=y[1],b=h.useId(),w=h.useRef(null),x=h.useRef(null),S=h.useMemo(function(){if(s)return t;var e=f.trim().toLowerCase();return e?t.filter(function(t){return t.label.toLowerCase().includes(e)}):t},[t,f,s]);h.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=w.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]),h.useEffect(function(){v(function(e){return Math.min(e,Math.max(0,S.length-1))})},[S.length]),h.useEffect(function(){var e,t=null==(e=x.current)?void 0:e.querySelector('[data-idx="'.concat(g,'"]'));null==t||t.scrollIntoView({block:"nearest"})},[g]);var j=function(e){var t=S[e];t&&l(t.value)},E=function(e){"ArrowDown"===e.key?(e.preventDefault(),v(function(e){return Math.min(e+1,S.length-1)})):"ArrowUp"===e.key?(e.preventDefault(),v(function(e){return Math.max(e-1,0)})):"Home"===e.key?(e.preventDefault(),v(0)):"End"===e.key?(e.preventDefault(),v(S.length-1)):"Enter"===e.key&&(e.preventDefault(),j(g))};return(0,m.jsxs)("div",{children:[(void 0===i||i)&&(0,m.jsx)("div",{className:"border-b border-[var(--fb-border)] p-1.5",children:(0,m.jsx)("input",{ref:w,role:"combobox","aria-expanded":"true","aria-controls":b,"aria-activedescendant":S[g]?"".concat(b,"-").concat(g):void 0,"aria-label":c,value:f,onChange:function(e){p(e.target.value),null==s||s(e.target.value)},onKeyDown:E,placeholder:void 0===o?"Rechercher…":o,className:"w-full bg-transparent px-1.5 py-1 text-[13px] text-[var(--fb-fg)] outline-none placeholder:text-[var(--fb-fg-subtle)]",autoComplete:"off",spellCheck:!1})}),(0,m.jsxs)("ul",{ref:x,id:b,role:"listbox","aria-multiselectable":n||void 0,"aria-label":c,className:"max-h-60 overflow-y-auto p-1",onKeyDown:E,tabIndex:-1,children:[r&&(0,m.jsxs)("li",{className:"flex items-center gap-2 px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:[(0,m.jsx)(Ct,{})," Chargement des options…"]}),a&&!r&&(0,m.jsxs)("li",{className:"px-2 py-2.5 text-[13px]",children:[(0,m.jsx)("p",{className:"text-[var(--fb-fg-muted)]",children:"Impossible de charger les options."}),(0,m.jsx)("button",{type:"button",onClick:u,className:"mt-1 rounded-md px-1.5 py-0.5 text-[13px] font-medium text-[var(--fb-fg)] underline decoration-[var(--fb-fg-subtle)] underline-offset-2 hover:decoration-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60",children:"R\xe9essayer"})]}),!r&&!a&&0===S.length&&(0,m.jsx)("li",{className:"px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun r\xe9sultat"}),!r&&!a&&S.map(function(e,t){var r=t===g;return(0,m.jsxs)("li",{id:"".concat(b,"-").concat(t),"data-idx":t,role:"option","aria-selected":n?!!e.selected:r,onMouseEnter:function(){return v(t)},onClick:function(){return l(e.value)},className:["flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-[13px] text-[var(--fb-fg)]",r?"bg-[var(--fb-bg-active)]":"bg-transparent"].join(" "),children:[n&&(0,m.jsx)("span",{"aria-hidden":!0,className:["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-[4px] border transition-colors",e.selected?"border-[var(--fb-border-strong)] bg-[var(--fb-border-strong)] text-[var(--fb-fg-on-accent)]":"border-[var(--fb-border)]"].join(" "),children:e.selected&&(0,m.jsx)(Ce,{})}),e.glyph&&(0,m.jsx)("span",{className:"shrink-0","aria-hidden":!0,children:e.glyph}),(0,m.jsx)("span",{className:"truncate",children:e.label}),!n&&e.selected&&(0,m.jsx)("span",{className:"ml-auto text-[var(--fb-fg-muted)]",children:(0,m.jsx)(Ce,{})})]},e.value)})]})]})}function A5(e){var t=e.inputType,n=e.arity,r=e.values,a=e.onCommit,i=e.ariaLabel,o=e.rangeLabels,s=void 0===o?["Min","Max"]:o,l=e.placeholder,u=h.useRef(null);h.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=u.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]);var c="w-full rounded-md border border-[var(--fb-border)] bg-transparent px-2 py-1.5 text-[13px] text-[var(--fb-fg)] outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60";if(2===n){var d=AX(r,2),f=d[0],p=void 0===f?"":f,y=d[1],g=void 0===y?"":y;return(0,m.jsxs)("div",{className:"flex items-start gap-2 p-2",children:[(0,m.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,m.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[0]}),(0,m.jsx)("input",{ref:u,type:t,value:p,"aria-label":"".concat(i," — ").concat(s[0]),onChange:function(e){return a([e.target.value,g])},className:c})]}),(0,m.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,m.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[1]}),(0,m.jsx)("input",{type:t,value:g,"aria-label":"".concat(i," — ").concat(s[1]),onChange:function(e){return a([p,e.target.value])},className:c})]})]})}var v=AX(r,1)[0];return(0,m.jsx)("div",{className:"p-2",children:(0,m.jsx)("input",{ref:u,type:t,value:void 0===v?"":v,placeholder:l,"aria-label":i,onChange:function(e){return a([e.target.value])},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur()},className:c})})}function A6(e){var t=e.role,n=e.children,r=e.onOpen,a=e.registerRef,i=e.tabIndex,o=e.ariaLabel,s=e.anchorKey,l=e.onFocus,u=e.muted,c=e.active,d=e.flash,f=e.disabled;return(0,m.jsx)("button",{type:"button",ref:a,tabIndex:i,"aria-label":o,"aria-haspopup":"listbox","aria-expanded":c,"aria-disabled":f||void 0,"data-fb-anchor":s,onFocus:l,onClick:r,"data-flash":d?"":void 0,className:["relative flex items-center gap-1 whitespace-nowrap px-2 py-[4px] text-[13px] leading-[1.35] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70",f?"cursor-default":"active:scale-[0.98]",u?"text-[var(--fb-fg-muted)]":"text-[var(--fb-fg)]",c?"bg-[var(--fb-bg-active)]":f?"":"hover:bg-[var(--fb-bg-hover)]","field"===t?"rounded-l-md font-medium":"","data-[flash]:animate-[fb-flash_620ms_ease-out]"].join(" "),children:n})}function A8(e){var t,n,r=e.fields,a=e.value,i=e.onChange,o=e.addLabel,s=void 0===o?"Filtre":o,l=e.emptyLabel,u=void 0===l?"Ajouter un filtre":l,c=e.clearLabel,d=e.allowDuplicateFields,f=void 0!==d&&d,p=e.disabled,y=e.className,g=e["aria-label"],v=OF(),b=AX(h.useState(null),2),w=b[0],x=b[1],S=AX(h.useState(null),2),j=S[0],E=S[1],O=h.useRef([]),k=AX(h.useState(0),2),D=k[0],P=k[1],A=AX(h.useState({}),2),C=A[0],T=A[1],N=[];a.forEach(function(e){N.push({filterId:e.id,kind:"field"}),N.push({filterId:e.id,kind:"operator"}),N.push({filterId:e.id,kind:"value"}),N.push({filterId:e.id,kind:"remove"})}),N.push({kind:"add"}),h.useEffect(function(){D>N.length-1&&P(N.length-1)},[N.length,D]);var R=function(e){var t,n=Math.max(0,Math.min(e,N.length-1));P(n),null==(t=O.current[n])||t.focus()},M=function(e){var t,n,o=A1(r,e);if(o){var s=o.operators[0],l={id:"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"f_".concat(Math.random().toString(36).slice(2,9)),field:e,operator:null!=(t=null==s?void 0:s.value)?t:"is",values:[]};i(AQ(a).concat([l])),x((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:l.id})}},I=function(e,t){var n,o=A1(r,t),s=null==o?void 0:o.operators[0];i(a.map(function(n){var r;return n.id===e?AZ(AK({},n),{field:t,operator:null!=(r=null==s?void 0:s.value)?r:n.operator,values:[]}):n})),x((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:e})},L=function(e,t){var n,o,s=a.find(function(t){return t.id===e}),l=A2(A1(r,null!=(n=null==s?void 0:s.field)?n:""),t),u=null!=(o=null==l?void 0:l.arity)?o:1;i(a.map(function(n){if(n.id!==e)return n;var r=0===u?[]:(null==l?void 0:l.multi)?n.values:n.values.slice(0,u);return AZ(AK({},n),{operator:t,values:r})})),x(0===u?null:{kind:"value",filterId:e})},_=function(e,t,n){i(a.map(function(r){if(r.id!==e)return r;if(!n)return AZ(AK({},r),{values:[t]});var a=r.values.includes(t);return AZ(AK({},r),{values:a?r.values.filter(function(e){return e!==t}):AQ(r.values).concat([t])})})),E(e),window.setTimeout(function(){return E(function(t){return t===e?null:t})},640),n||x(null)},F=function(e,t){i(a.map(function(n){return n.id===e?AZ(AK({},n),{values:t}):n}))},V=function(e,t){i(a.filter(function(t){return t.id!==e})),x(null);var n=Math.max(0,(null!=t?t:D)-1);requestAnimationFrame(function(){return R(n)})},B=h.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.loadOptions&&(T(function(t){var n,r;return AZ(AK({},t),AY({},e.id,{loading:!0,error:!1,options:null!=(n=null==(r=t[e.id])?void 0:r.options)?n:[]}))}),e.loadOptions(t).then(function(t){return T(function(n){return AZ(AK({},n),AY({},e.id,{loading:!1,error:!1,options:t}))})}).catch(function(){return T(function(t){return AZ(AK({},t),AY({},e.id,{loading:!1,error:!0,options:[]}))})}))},[]);h.useEffect(function(){if(w&&"value"===w.kind){var e,t,n=a.find(function(e){return e.id===w.filterId}),i=A1(r,null!=(e=null==n?void 0:n.field)?e:"");(null==i?void 0:i.loadOptions)&&!(null==(t=C[i.id])?void 0:t.options.length)&&B(i)}},[w]);var z=0,U=function(){var e=z++;return{idx:e,register:function(t){return O.current[e]=t},tabIndex:e===D?0:-1,onFocus:function(){return P(e)}}},W=w?"add"===w.kind?"add":"".concat(w.filterId,":").concat(w.kind):null,$=function(){if(!w)return"";if("add"===w.kind)return u;if("field"===w.kind)return"Modifier le champ du filtre";if("operator"===w.kind)return"Choisir un op\xe9rateur";var e,t=a.find(function(e){return e.id===w.filterId}),n=A1(r,null!=(e=null==t?void 0:t.field)?e:"");return n?"Valeur pour ".concat(n.label):"Valeur du filtre"}(),H=a.length>1;return(0,m.jsxs)("div",{role:"toolbar","aria-label":void 0===g?"Filtres":g,"aria-orientation":"horizontal","aria-disabled":p||void 0,onKeyDown:function(e){if(!w){var t=N.length-1;if("ArrowRight"===e.key)e.preventDefault(),R(D>=t?0:D+1);else if("ArrowLeft"===e.key)e.preventDefault(),R(D<=0?t:D-1);else if("Home"===e.key)e.preventDefault(),R(0);else if("End"===e.key)e.preventDefault(),R(t);else if("Backspace"===e.key||"Delete"===e.key){var n=N[D];(null==n?void 0:n.filterId)&&(e.preventDefault(),V(n.filterId,D))}}},className:["flex flex-wrap items-center gap-1.5",p?"pointer-events-none opacity-50":"",null!=y?y:""].join(" "),children:[(0,m.jsx)("style",{children:"\n:root {\n --fb-fg: #18181b;\n --fb-fg-muted: #71717a;\n --fb-fg-subtle: #a1a1aa;\n --fb-fg-on-accent: #ffffff;\n --fb-bg-surface: #ffffff;\n --fb-bg-chip: rgba(24, 24, 27, 0.04);\n --fb-bg-hover: rgba(24, 24, 27, 0.06);\n --fb-bg-active: rgba(24, 24, 27, 0.08);\n --fb-border: rgba(24, 24, 27, 0.09);\n --fb-border-strong: #18181b;\n --fb-accent: #3b82f6;\n --fb-accent-rgb: 59 130 246;\n}\n.dark {\n --fb-fg: #f4f4f5;\n --fb-fg-muted: #a1a1aa;\n --fb-fg-subtle: #71717a;\n --fb-fg-on-accent: #18181b;\n --fb-bg-surface: #18181b;\n --fb-bg-chip: rgba(255, 255, 255, 0.05);\n --fb-bg-hover: rgba(255, 255, 255, 0.08);\n --fb-bg-active: rgba(255, 255, 255, 0.12);\n --fb-border: rgba(255, 255, 255, 0.08);\n --fb-border-strong: #f4f4f5;\n --fb-accent: #60a5fa;\n --fb-accent-rgb: 96 165 250;\n}\n@keyframes fb-flash {\n 0% { background-color: rgb(var(--fb-accent-rgb) / 0.18); }\n 100% { background-color: transparent; }\n}\n@media (prefers-reduced-motion: reduce) {\n @keyframes fb-flash {\n 0%, 100% { background-color: transparent; }\n }\n}\n"}),(0,m.jsx)(Eh,{initial:!1,mode:"popLayout",children:a.map(function(e){var t,n,a,i,o,s,l,u,c,d=A1(r,e.field),f=A2(d,e.operator),p=null!=(t=null==f?void 0:f.arity)?t:1,h=null!=(n=null==d?void 0:d.type)?n:"select",y=0===p?{text:"—",empty:!1,glyphs:[]}:"select"===h?function(e,t){if(!t.length)return{text:"Choisir…",empty:!0,glyphs:[]};var n=function(t){return null==e?void 0:e.find(function(e){return e.value===t})},r=function(e){var t,r;return null!=(t=null==(r=n(e))?void 0:r.label)?t:e},a=t.map(function(e){var t;return null==(t=n(e))?void 0:t.glyph}).filter(Boolean).slice(0,3);return 1===t.length?{text:r(t[0]),empty:!1,glyphs:a}:t.length<=3?{text:t.map(r).join(", "),empty:!1,glyphs:a}:{text:"".concat(r(t[0])," +").concat(t.length-1),empty:!1,glyphs:a}}((null==d?void 0:d.loadOptions)?null==(c=C[d.id])?void 0:c.options:null==d?void 0:d.options,e.values):function(e,t,n){if(0===t)return{text:"—",empty:!1,glyphs:[]};if(!n.some(function(e){return""!==e&&null!=e}))return{text:"Choisir une valeur…",empty:!0,glyphs:[]};var r,a,i,o=function(t){if(!t)return"…";if("date"!==e)return t;var n=new Date(t);return Number.isNaN(n.getTime())?t:n.toLocaleDateString()};return 2===t?{text:"".concat(o(null!=(a=n[0])?a:"")," – ").concat(o(null!=(i=n[1])?i:"")),empty:!1,glyphs:[]}:{text:o(null!=(r=n[0])?r:""),empty:!1,glyphs:[]}}(h,p,e.values),g=U(),b=U(),S=U(),E=U(),O=j===e.id;return(0,m.jsxs)(mY.div,{layout:!v,initial:!v&&{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:v?{opacity:0}:{opacity:0,scale:.9},transition:A0,className:"group flex items-stretch overflow-hidden rounded-md border border-[var(--fb-border)] bg-[var(--fb-bg-chip)]",children:[(0,m.jsxs)(A6,{role:"field",registerRef:g.register,tabIndex:g.tabIndex,onFocus:g.onFocus,anchorKey:"".concat(e.id,":field"),active:(null==w?void 0:w.kind)==="field"&&w.filterId===e.id,ariaLabel:"Champ : ".concat(null!=(a=null==d?void 0:d.label)?a:e.field,". Modifier le champ."),onOpen:function(){return x({kind:"field",filterId:e.id})},children:[(null==d?void 0:d.icon)&&(0,m.jsx)("span",{className:"text-[var(--fb-fg-muted)]","aria-hidden":!0,children:d.icon}),null!=(i=null==d?void 0:d.label)?i:e.field]}),(0,m.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,m.jsx)(A6,{role:"operator",registerRef:b.register,tabIndex:b.tabIndex,onFocus:b.onFocus,anchorKey:"".concat(e.id,":operator"),muted:!0,active:(null==w?void 0:w.kind)==="operator"&&w.filterId===e.id,ariaLabel:"Op\xe9rateur : ".concat(null!=(o=null==f?void 0:f.label)?o:e.operator,". Modifier l'op\xe9rateur."),onOpen:function(){return x({kind:"operator",filterId:e.id})},children:null!=(s=null==f?void 0:f.label)?s:e.operator}),(0,m.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,m.jsxs)(A6,{role:"value",registerRef:S.register,tabIndex:S.tabIndex,onFocus:S.onFocus,anchorKey:"".concat(e.id,":value"),muted:y.empty||0===p,disabled:0===p,active:(null==w?void 0:w.kind)==="value"&&w.filterId===e.id,flash:O,ariaLabel:0===p?"Valeur : aucune valeur requise pour l'op\xe9rateur ".concat(null!=(l=null==f?void 0:f.label)?l:e.operator,"."):"Valeur : ".concat(y.empty?"aucune s\xe9lectionn\xe9e":y.text,". Modifier la valeur."),onOpen:function(){0!==p&&x({kind:"value",filterId:e.id})},children:[!y.empty&&y.glyphs.length>0&&(0,m.jsx)("span",{className:"flex shrink-0 items-center gap-0.5","aria-hidden":!0,children:y.glyphs.map(function(e,t){return(0,m.jsx)("span",{className:"flex items-center",children:e},t)})}),(0,m.jsx)("span",{className:"max-w-[12rem] truncate font-medium text-[var(--fb-fg)]",children:y.empty?(0,m.jsx)("span",{className:"font-normal text-[var(--fb-fg-subtle)]",children:y.text}):y.text})]}),(0,m.jsx)("button",{type:"button",ref:E.register,tabIndex:E.tabIndex,onFocus:E.onFocus,onClick:function(){return V(e.id,E.idx)},"aria-label":"Supprimer le filtre ".concat(null!=(u=null==d?void 0:d.label)?u:e.field),className:"flex items-center px-1.5 text-[var(--fb-fg-subtle)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:(0,m.jsx)(A7,{})})]},e.id)})}),(t=U(),n=0===a.length,(0,m.jsxs)("button",{type:"button",ref:t.register,tabIndex:t.tabIndex,onFocus:t.onFocus,"data-fb-anchor":"add","aria-label":n?u:s,"aria-haspopup":"listbox","aria-expanded":(null==w?void 0:w.kind)==="add",onClick:function(){return x({kind:"add"})},className:"flex items-center gap-1 rounded-md border border-dashed border-[var(--fb-border)] px-2 py-[6px] text-[13px] font-medium leading-none text-[var(--fb-fg-muted)] transition-colors hover:border-[var(--fb-border-strong)]/40 hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:[(0,m.jsx)(A9,{}),n?u:s]})),H&&(0,m.jsx)("button",{type:"button",onClick:function(){i([]),x(null),requestAnimationFrame(function(){return R(0)})},className:"ml-0.5 rounded-md px-2 py-[6px] text-[13px] leading-none text-[var(--fb-fg-muted)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70",children:void 0===c?"R\xe9initialiser":c}),w&&W&&(0,m.jsx)(A3,{anchorKey:W,label:$,onClose:function(){return x(null)},children:function(){if(!w)return null;if("add"===w.kind||"field"===w.kind){var e,t,n,i,o,s="field"===w.kind?w.filterId:null,l=new Set(a.filter(function(e){return e.id!==s}).map(function(e){return e.field})),u=r.filter(function(e){return f||!l.has(e.id)}).map(function(e){return{value:e.id,label:e.label,glyph:e.icon}});return(0,m.jsx)(A4,{ariaLabel:$,items:u,multi:!1,onPick:function(e){return"add"===w.kind?M(e):I(w.filterId,e)}},null!=W?W:void 0)}var c=a.find(function(e){return e.id===w.filterId}),d=A1(r,null!=(e=null==c?void 0:c.field)?e:"");if(!c||!d)return null;if("operator"===w.kind){var p=d.operators.map(function(e){return{value:e.value,label:e.label,selected:e.value===c.operator}});return(0,m.jsx)(A4,{ariaLabel:$,items:p,multi:!1,searchable:p.length>6,onPick:function(e){return L(c.id,e)}},null!=W?W:void 0)}var h=A2(d,c.operator),y=null!=(t=null==h?void 0:h.arity)?t:1;if(0===y)return null;var g=null!=(n=d.type)?n:"select";if("text"===g||"number"===g||"date"===g)return(0,m.jsx)(A5,{inputType:g,arity:y,values:c.values,onCommit:function(e){return F(c.id,e)},ariaLabel:$,rangeLabels:"date"===g?["Du","Au"]:["Min","Max"],placeholder:"text"===g?"Rechercher…":void 0},null!=W?W:void 0);var v=!!(null==h?void 0:h.multi),b=d.loadOptions?C[d.id]:void 0,x=(d.loadOptions?null!=(i=null==b?void 0:b.options)?i:[]:null!=(o=d.options)?o:[]).map(function(e){return{value:e.value,label:e.label,glyph:e.glyph,selected:c.values.includes(e.value)}});return(0,m.jsx)(A4,{ariaLabel:$,items:x,multi:v,loading:null==b?void 0:b.loading,error:null==b?void 0:b.error,onQuery:d.loadOptions?function(e){return B(d,e)}:void 0,onRetry:function(){return B(d)},onPick:function(e){return _(c.id,e,v)}},null!=W?W:void 0)}()})]})}function A9(){return(0,m.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,m.jsx)("path",{d:"M6 2.5v7M2.5 6h7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function A7(){return(0,m.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,m.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function Ce(){return(0,m.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,m.jsx)("path",{d:"M2.5 6.2l2.2 2.3L9.5 3.7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ct(){return(0,m.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:"animate-spin",children:[(0,m.jsx)("circle",{cx:"7",cy:"7",r:"5.5",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M12.5 7A5.5 5.5 0 0 0 7 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}let Cn=A8;var Cr={text:[{value:"contains",label:"contient"},{value:"not_contains",label:"ne contient pas"},{value:"equals",label:"est exactement"},{value:"starts_with",label:"commence par"},{value:"is_empty",label:"est vide",arity:0},{value:"is_not_empty",label:"n'est pas vide",arity:0}],number:[{value:"eq",label:"="},{value:"neq",label:"≠"},{value:"gt",label:">"},{value:"gte",label:"≥"},{value:"lt",label:"<"},{value:"lte",label:"≤"},{value:"between",label:"entre",arity:2}],date:[{value:"on",label:"le"},{value:"before",label:"avant le"},{value:"after",label:"apr\xe8s le"},{value:"between",label:"entre",arity:2}],boolean:[{value:"is",label:"est"}],select:[{value:"is",label:"est"},{value:"is_not",label:"n'est pas"},{value:"is_any_of",label:"est l'un de",multi:!0}]},Ca=[{value:"true",label:"Oui"},{value:"false",label:"Non"}];function Ci(e,t){var n=function(e){var n,r;return null!=(n=null==(r=t.find(function(t){return t.field===e}))?void 0:r.values)?n:[]};return e.fields.filter(function(e){return!e.dependsOn||n(e.dependsOn).length>0}).map(function(e){if("boolean"===e.type)return{id:e.id,label:e.label,icon:e.icon,type:"select",operators:null!=(a=e.operators)?a:Cr.boolean,options:null!=(i=e.options)?i:Ca};var t,r,a,i,o=null!=(t=e.operators)?t:Cr[e.type];if("select"!==e.type)return{id:e.id,label:e.label,icon:e.icon,type:e.type,operators:o};var s=e.dependsOn?n(e.dependsOn):[];return e.optionsByParent?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:s.flatMap(function(t){var n,r;return null!=(n=null==(r=e.optionsByParent)?void 0:r[t])?n:[]})}:e.loadOptions?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,loadOptions:function(t){return e.loadOptions(t,{parentValues:s})}}:{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:null!=(r=e.options)?r:[]}})}function Co(e,t){for(var n=t,r=0;r<e.fields.length&&"break"!==function(){var t=!1,r=n.filter(function(r){var a=e.fields.find(function(e){return e.id===r.field});if(!(null==a?void 0:a.dependsOn))return!0;var i=n.find(function(e){return e.field===a.dependsOn}),o=!!i&&i.values.length>0;return o||(t=!0),o});if(n=r.map(function(n){var a,i=e.fields.find(function(e){return e.id===n.field});if(!(null==i?void 0:i.dependsOn)||!i.optionsByParent)return n;var o=r.find(function(e){return e.field===i.dependsOn}),s=new Set((null!=(a=null==o?void 0:o.values)?a:[]).flatMap(function(e){var t,n,r;return null!=(t=null==(r=i.optionsByParent)||null==(n=r[e])?void 0:n.map(function(e){return e.value}))?t:[]})),l=n.values.filter(function(e){return s.has(e)});return l.length!==n.values.length&&(t=!0),l.length===n.values.length?n:AZ(AK({},n),{values:l})}),!t)return"break"}();r++);return n}function Cs(e,t,n){return{fields:h.useMemo(function(){return Ci(e,t)},[e,t]),onChange:h.useCallback(function(t){return n(Co(e,t))},[e,n])}}function Cl(e,t,n,r){var a=function(e){return null==e?"":String(e)};switch(t){case"is_empty":return""===a(n);case"is_not_empty":return""!==a(n);case"contains":return a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"not_contains":return!a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"starts_with":return a(n).toLowerCase().startsWith(a(r[0]).toLowerCase());case"equals":return a(n).toLowerCase()===a(r[0]).toLowerCase();case"is":return a(n)===r[0];case"is_not":return a(n)!==r[0];case"is_any_of":return r.includes(a(n));case"eq":return Number(n)===Number(r[0]);case"neq":return Number(n)!==Number(r[0]);case"gt":return Number(n)>Number(r[0]);case"gte":return Number(n)>=Number(r[0]);case"lt":return Number(n)<Number(r[0]);case"lte":return Number(n)<=Number(r[0]);case"between":var i=AX(r,2),o=i[0],s=i[1];if("date"===e){var l=new Date(a(n)).getTime(),u=!o||l>=new Date(o).getTime(),c=!s||l<=new Date(s).getTime();return u&&c}var d=Number(n),f=void 0===o||""===o||d>=Number(o),p=void 0===s||""===s||d<=Number(s);return f&&p;case"on":return a(n).slice(0,10)===a(r[0]).slice(0,10);case"before":return new Date(a(n)).getTime()<new Date(r[0]).getTime();case"after":return new Date(a(n)).getTime()>new Date(r[0]).getTime();default:return!0}}function Cu(e,t,n,r){return Array.isArray(n)?n.some(function(n){return Cl(e,t,n,r)}):Cl(e,t,n,r)}function Cc(e,t){return"is_empty"===e||"is_not_empty"===e||t.some(function(e){return""!==e&&void 0!==e})}function Cd(e,t,n,r){return t.every(function(t){if(!Cc(t.operator,t.values))return!0;var a=n.fields.find(function(e){return e.id===t.field}),i=null==a?void 0:a.type;return Cu("boolean"===i||void 0===i?"select":i,t.operator,r(e,t.field),t.values)})}var Cf=["\xe9lections","corruption","budget","diplomatie","sant\xe9","\xe9ducation","climat","s\xe9curit\xe9"],Cp={fields:[{id:"status",label:"Statut",type:"select",options:[{value:"draft",label:"Brouillon"},{value:"published",label:"Publi\xe9"},{value:"archived",label:"Archiv\xe9"}]},{id:"category",label:"Cat\xe9gorie",type:"select",options:[{value:"politique",label:"Politique"},{value:"sport",label:"Sport"},{value:"economie",label:"\xc9conomie"},{value:"culture",label:"Culture"}]},{id:"subcategory",label:"Sous-cat\xe9gorie",type:"select",dependsOn:"category",optionsByParent:{politique:[{value:"national",label:"National"},{value:"international",label:"International"},{value:"institutions",label:"Institutions"}],sport:[{value:"football",label:"Football"},{value:"basketball",label:"Basketball"},{value:"athletisme",label:"Athl\xe9tisme"}],economie:[{value:"marches",label:"March\xe9s"},{value:"entreprises",label:"Entreprises"},{value:"emploi",label:"Emploi"}],culture:[{value:"musique",label:"Musique"},{value:"cinema",label:"Cin\xe9ma"},{value:"litterature",label:"Litt\xe9rature"}]}},{id:"tags",label:"Tags",type:"select",loadOptions:function(e){return new Promise(function(t){window.setTimeout(function(){var n=e.trim().toLowerCase();t(Cf.filter(function(e){return e.toLowerCase().includes(n)}).map(function(e){return{value:e,label:e}}))},350)})}},{id:"title",label:"Titre",type:"text"},{id:"views",label:"Vues",type:"number"},{id:"publishedAt",label:"Date de publication",type:"date"},{id:"featured",label:"\xc0 la une",type:"boolean"}]},Cm=[{id:"1",title:"Le budget 2027 d\xe9voil\xe9 \xe0 l'Assembl\xe9e",status:"published",category:"politique",subcategory:"national",tags:["budget","\xe9lections"],views:4300,publishedAt:"2026-09-02",featured:!0},{id:"2",title:"Sommet r\xe9gional sur le climat \xe0 Libreville",status:"published",category:"politique",subcategory:"international",tags:["climat","diplomatie"],views:2100,publishedAt:"2026-08-20",featured:!1},{id:"3",title:"Les Panth\xe8res qualifi\xe9es pour la CAN",status:"published",category:"sport",subcategory:"football",tags:["football"],views:9800,publishedAt:"2026-09-10",featured:!0},{id:"4",title:"R\xe9forme du syst\xe8me \xe9ducatif : ce qui change",status:"draft",category:"politique",subcategory:"institutions",tags:["\xe9ducation"],views:120,publishedAt:"2026-09-15",featured:!1},{id:"5",title:"Les march\xe9s locaux r\xe9sistent \xe0 l'inflation",status:"published",category:"economie",subcategory:"marches",tags:["budget"],views:1560,publishedAt:"2026-07-30",featured:!1},{id:"6",title:"Festival de musique urbaine \xe0 Port-Gentil",status:"published",category:"culture",subcategory:"musique",tags:[],views:870,publishedAt:"2026-09-05",featured:!1},{id:"7",title:"Nouvelle campagne de vaccination lanc\xe9e",status:"published",category:"politique",subcategory:"national",tags:["sant\xe9"],views:3400,publishedAt:"2026-06-18",featured:!1},{id:"8",title:"Championnat national de basketball : bilan",status:"archived",category:"sport",subcategory:"basketball",tags:[],views:640,publishedAt:"2026-05-02",featured:!1}];function Ch(e,t){switch(t){case"status":return e.status;case"category":return e.category;case"subcategory":return e.subcategory;case"tags":return e.tags;case"title":return e.title;case"views":return e.views;case"publishedAt":return e.publishedAt;case"featured":return e.featured;default:return}}var Cy={contains:"icontains",not_contains:"icontains",equals:"iexact",starts_with:"istartswith",is_empty:"isnull",is_not_empty:"isnull",eq:"exact",neq:"exact",gt:"gt",gte:"gte",lt:"lt",lte:"lte",on:"exact",before:"lt",after:"gt",is:"exact",is_not:"exact",is_any_of:"in"};function Cg(){var e=AX(h.useState([]),2),t=e[0],n=Cs(Cp,t,e[1]),r=n.fields,a=n.onChange,i=h.useMemo(function(){return Cm.filter(function(e){return Cd(e,t,Cp,Ch)})},[t]),o=h.useMemo(function(){return function(e){var t=new URLSearchParams,n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l,u=i.value;if(Cc(u.operator,u.values)){if("between"===u.operator){var c=AX(u.values,2),d=c[0],f=c[1];d&&t.append("".concat(u.field,"__gte"),d),f&&t.append("".concat(u.field,"__lte"),f);continue}if("is_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"true");continue}if("is_not_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"false");continue}var p=null!=(s=Cy[u.operator])?s:"exact",m="is_any_of"===u.operator?u.values.join(","):null!=(l=u.values[0])?l:"";t.append("".concat(u.field,"__").concat(p),m)}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t.toString()}(t)},[t]);return(0,m.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,m.jsx)(A8,{fields:r,value:t,onChange:a,"aria-label":"Filtrer les articles"}),(0,m.jsxs)("ul",{className:"flex flex-col gap-2",children:[i.map(function(e){return(0,m.jsxs)("li",{className:"rounded-md border border-[var(--fb-border)] px-3 py-2 text-[13px] text-[var(--fb-fg)]",children:[(0,m.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,m.jsx)("span",{className:"font-medium",children:e.title}),e.featured&&(0,m.jsx)("span",{className:"text-[var(--fb-fg-muted)]",children:"★ \xe0 la une"})]}),(0,m.jsxs)("div",{className:"mt-0.5 text-[12px] text-[var(--fb-fg-muted)]",children:[e.category," / ",e.subcategory," \xb7 ",e.views," vues \xb7 ",new Date(e.publishedAt).toLocaleDateString()]})]},e.id)}),0===i.length&&(0,m.jsx)("li",{className:"rounded-md border border-dashed border-[var(--fb-border)] px-3 py-4 text-center text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun article ne correspond \xe0 ces filtres."})]}),(0,m.jsxs)("details",{className:"text-[12px] text-[var(--fb-fg-muted)]",children:[(0,m.jsx)("summary",{className:"cursor-pointer select-none",children:"Voir l'\xe9tat brut (\xe0 des fins p\xe9dagogiques)"}),(0,m.jsx)("p",{className:"mt-2",children:"\xc9tat `filters` produit par <FilterBar> :"}),(0,m.jsx)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:JSON.stringify(t,null,2)}),(0,m.jsx)("p",{className:"mt-2",children:"Query string \xe9quivalente (convention django-filter) :"}),(0,m.jsxs)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:["?",o||"(aucun filtre actif)"]})]})]})}var Cv=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e,t,n){return!!e&&""!==e.trim()&&n.indexOf(e)===t}).join(" ").trim()},Cb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function Cw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cx(e){if(Array.isArray(e))return e}function CS(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Cj(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function CE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function CO(e,t){return Cx(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||CD(e,t)||Cj()}function Ck(e){return function(e){if(Array.isArray(e))return Cw(e)}(e)||CS(e)||CD(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CD(e,t){if(e){if("string"==typeof e)return Cw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cw(e,t)}}var CP=(0,h.forwardRef)(function(e,t){var n,r,a,i=Cx(n=[e,t])||CS(n)||CD(n)||Cj(),o=i[0],s=i.slice(1),l=o.color,u=o.size,c=void 0===u?24:u,d=o.strokeWidth,f=void 0===d?2:d,p=o.absoluteStrokeWidth,m=o.className,y=o.children,g=o.iconNode,v=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]),b=CO(s,1)[0];return(0,h.createElement)("svg",CE((r=CE({ref:b},Cb),a=a={width:c,height:c,stroke:void 0===l?"currentColor":l,strokeWidth:p?24*Number(f)/Number(c):f,className:Cv("lucide",void 0===m?"":m)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r),v),Ck(g.map(function(e){var t=CO(e,2),n=t[0],r=t[1];return(0,h.createElement)(n,r)})).concat(Ck(Array.isArray(y)?y:[y])))});function CA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CC(e){if(Array.isArray(e))return e}function CT(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function CN(e,t){if(e){if("string"==typeof e)return CA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CA(e,t)}}var CR=function(e,t){var n=(0,h.forwardRef)(function(n,r){var a,i=CC(a=[n,r])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||CN(a)||CT(),o=i[0],s=i.slice(1),l=o.className,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["className"]),c=(CC(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||CN(s,1)||CT())[0];return(0,h.createElement)(CP,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:c,iconNode:t,className:Cv("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l)},u))});return n.displayName="".concat(e),n},CM=CR("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),CI=CR("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),CL=CR("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),C_=CR("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),CF=CR("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),CV=CR("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),CB=CR("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Cz=CR("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),CU=CR("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);function CW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CW(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CH(e){var t,n=e.currentCategory,r=e.onSelectCategory,a=e.sortOption,i=e.onSelectSort,o=e.viewMode,s=e.onToggleViewMode,l=e.typeFilter,u=e.onSelectTypeFilter,c=C$((0,h.useState)(!1),2),d=c[0],f=c[1],p=C$((0,h.useState)(!1),2),y=p[0],g=p[1],v=[{id:"all",label:"Tout",icon:(0,m.jsx)(CM,{className:"w-3.5 h-3.5"})},{id:"documents",label:"Documents",icon:(0,m.jsx)(CI,{className:"w-3.5 h-3.5"})},{id:"images",label:"Images",icon:(0,m.jsx)(CL,{className:"w-3.5 h-3.5"})},{id:"videos",label:"Vid\xe9os",icon:(0,m.jsx)(C_,{className:"w-3.5 h-3.5"})},{id:"music",label:"Musique",icon:(0,m.jsx)(CF,{className:"w-3.5 h-3.5"})},{id:"archives",label:"Archives",icon:(0,m.jsx)(CV,{className:"w-3.5 h-3.5"})}],b=[{id:"recent",label:"Plus r\xe9cents"},{id:"oldest",label:"Plus anciens"},{id:"name_asc",label:"Nom A → Z"},{id:"name_desc",label:"Nom Z → A"},{id:"items_count",label:"Nombre d’\xe9l\xe9ments"}],w=(null==(t=b.find(function(e){return e.id===a}))?void 0:t.label)||"Plus r\xe9cents";return(0,m.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2.5 py-1 relative z-20",children:[(0,m.jsx)("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 sm:pb-0 scrollbar-none w-full sm:w-auto",children:v.map(function(e){var t=n===e.id;return(0,m.jsxs)("button",{onClick:function(){return r(e.id)},className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold whitespace-nowrap transition-all duration-200 cursor-pointer ".concat(t?"bg-emerald-500/25 text-white border border-emerald-400/80 shadow-[0_0_12px_rgba(16,185,129,0.3)] drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]":"bg-transparent text-white/70 hover:text-white hover:bg-white/5 border border-white/10 hover:border-white/20 drop-shadow-[0_1px_1px_rgba(0,0,0,0.8)]"),children:[(0,m.jsx)("span",{className:t?"text-emerald-400":"text-white/60",children:e.icon}),(0,m.jsx)("span",{children:e.label})]},e.id)})}),(0,m.jsxs)("div",{className:"flex items-center justify-between sm:justify-end gap-1.5 sm:gap-2 w-full sm:w-auto mt-0.5 sm:mt-0",children:[(0,m.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,m.jsxs)("button",{onClick:function(){f(!d),g(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,m.jsxs)("div",{className:"flex items-center gap-1",children:[(0,m.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Tri :"}),(0,m.jsx)("span",{className:"text-white font-semibold truncate max-w-[70px] sm:max-w-none",children:w})]}),(0,m.jsx)(CB,{className:"w-3 h-3 text-white/50 shrink-0"})]}),d&&(0,m.jsx)("div",{className:"absolute right-0 mt-2 w-44 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:b.map(function(e){return(0,m.jsx)("button",{onClick:function(){i(e.id),f(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(a===e.id?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e.label},e.id)})})]}),(0,m.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,m.jsxs)("button",{onClick:function(){g(!y),f(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,m.jsxs)("div",{className:"flex items-center gap-1",children:[(0,m.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Type :"}),(0,m.jsx)("span",{className:"text-white font-semibold truncate max-w-[60px] sm:max-w-none",children:l})]}),(0,m.jsx)(CB,{className:"w-3 h-3 text-white/50 shrink-0"})]}),y&&(0,m.jsx)("div",{className:"absolute right-0 mt-2 w-36 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:["Tous","Dossiers","Documents","Images","Vid\xe9os","Archives"].map(function(e){return(0,m.jsx)("button",{onClick:function(){u(e),g(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(l===e?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e},e)})})]}),(0,m.jsxs)("div",{className:"flex items-center p-0.5 rounded-lg bg-black/20 border border-white/10 shrink-0",children:[(0,m.jsx)("button",{onClick:function(){return s("grid")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("grid"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Grille",children:(0,m.jsx)(Cz,{className:"w-3.5 h-3.5"})}),(0,m.jsx)("button",{onClick:function(){return s("list")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("list"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Liste",children:(0,m.jsx)(CU,{className:"w-3.5 h-3.5"})})]})]})]})}},5923(e,t,n){"use strict";n.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var r=n(2974),a=n(240),i=n(2298),o=n(345),s=n(9405);function l(e){let t,n="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,(0,r.AU)(this)}copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)(this,e)}cycle(e,t,n){return(0,r.xy)(this,e,t,n)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,i.$T)(this)}compare(e){return(0,a.SE)(this,e)}}class c{#t;constructor(e=0,t=0,n=0,a=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=a,(0,r.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.tY)(this,e)}subtract(e){return(0,r.YP)(this,e)}set(e){return(0,r.ib)(this,e)}cycle(e,t,n){return(0,r.gt)(this,e,t,n)}toString(){return(0,i.ot)(this)}compare(e){return(0,a.Nu)(this,e)}}class d{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,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,(0,r.AU)(this)}copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)((0,r.ib)(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return(0,r.xy)(this,e,t,n);default:return(0,r.gt)(this,e,t,n)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,i.qk)(this)}compare(e){let t=(0,a.SE)(this,e);return 0===t?(0,a.Nu)(this,(0,s.tR)(e)):t}}class f{#t;constructor(...e){let[t,n,a,i,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}copy(){return this.era?new f(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new f(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.E0)(this,e)}subtract(e){return(0,r.d_)(this,e)}set(e,t){return(0,r.D8)(this,e,t)}cycle(e,t,n){return(0,r.XH)(this,e,t,n)}toDate(){return(0,s.cd)(this)}toString(){return(0,i.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,n){"use strict";n.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>i});var r=n(5923),a=n(5504);function i(e,t,n,r){let a=(t=s(e,t))-1,i=-2;return n<=2?i=0:o(t)&&(i=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+i+r)}function o(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={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 c{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),s=(0,a.z)(t,146097),u=Math.floor(s/36524),c=(0,a.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,a.z)(c,1461)/365),[p,m]=l(400*n+100*u+4*d+f+ +(4!==u&&4!==f)),h=e-i(p,m,1,1),y=2;e<i(p,m,3,1)?y=0:o(m)&&(y=1);let g=Math.floor(((h+y)*12+373)/367),v=e-i(p,m,g,1)+1;return new(0,r.ng)(p,m,g,v)}toJulianDay(e){return i(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[o(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return o(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},9405(e,t,n){"use strict";n.d(t,{Ou:()=>x,Tr:()=>f,Yd:()=>m,ay:()=>p,cd:()=>b,gw:()=>h,oU:()=>s,tR:()=>y,uB:()=>v,yP:()=>g});var r=n(5923),a=n(2974),i=n(345),o=n(240);function s(e){return e=g(e,new(0,i.FG)),l((0,i.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,n,r,a,i,o){let s=new Date;return s.setUTCHours(r,a,i,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,o.Xj)()&&!(0,o.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:i,minute:s,second:u}=d(e,t);return l(n,r,a,i,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let n=c.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function f(e,t,n="compatible"){var r,a,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===n&&!(0,o.rS)()){c=g(c,new(0,i.FG));let e=new Date,t=(0,i.LA)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let p=s(c),m=u(p-864e5,t),h=u(p+864e5,t),v=(r=c,((a=p-m)==(l=p-h)?[a]:[a,l]).filter(e=>{var n;let a;return n=r,a=d(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===v.length)return v[0];if(v.length>1)switch(n){case"compatible":case"earlier":return v[0];case"later":return v[v.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(p-m,p-h);case"compatible":case"later":return Math.max(p-m,p-h);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,n="compatible"){return new Date(f(e,t,n))}function m(e,t){let n=u(e,t),a=new Date(e+n),i=a.getUTCFullYear(),o=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),c=a.getUTCMinutes(),d=a.getUTCSeconds(),f=a.getUTCMilliseconds();return new(0,r.Ip)(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,n,l,c,d,f)}function h(e){return new(0,r.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let n=0,a=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:a,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:i,millisecond:o}=t),new(0,r._l)(e.calendar,e.era,e.year,e.month,e.day,n,a,i,o)}function g(e,t){if((0,o.Jg)(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,a.AU)(r),r}function v(e,t,n){return e instanceof r.Ip?e.timeZone===t?e:w(e,t):m(f(e,t,n),t)}function b(e){return new Date(s(e)-e.offset)}function w(e,t){return g(m(s(e)-e.offset,t),e.calendar)}function x(e){return w(e,(0,o.Xj)())}},227(e,t,n){"use strict";let r,a;n.d(t,{d:()=>K});var i=n(5923),o=n(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=(0,o.LA)(t.era,t.year);return new(0,i.ng)(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,n]=(0,o.f5)(e.year+-543);return new(0,i.ng)(t,n,e.month,e.day)}function u(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function c(e,t){let n=Math.floor(4*(t-e)/1461);t>=u(e,n+1,1,1)&&n++;let r=1+Math.floor((t-u(e,n,1,1))/30),a=t+1-u(e,n,r,1);return[n,r,a]}function d(e){return Math.floor(e%4/3)}function f(e,t){return t%13!=0?30:d(e)+5}class p{fromJulianDay(e){let[t,n,r]=c(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),u(1723856,t,e.month,e.day)}getDaysInMonth(e){return f(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class m extends p{fromJulianDay(e){let[t,n,r]=c(1723856,e);return t+=5500,new(0,i.ng)(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class h extends p{fromJulianDay(e){let[t,n,r]=c(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),u(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),f(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var y=n(5504);let g=765433;function v(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(n+1),7)&&(n+=1),n}function w(e){let t,n;return b(e)+(t=b(e-1),n=b(e),b(e+1)-n==356?2:+(n-t==382))}function x(e){return w(e+1)-w(e)}function S(e,t){if(t>=6&&!v(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=x(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!v(e):30}class j{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/g*19+234)/235)+1,r=w(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=w(--n)));let o=1,s=0;for(;s<a;)s+=S(n,o),o++;let l=a-(s-=S(n,--o));return new(0,i.ng)(this,n,o,l)}toJulianDay(e){let t=w(e.year);for(let n=1;n<e.month;n++)t+=S(e.year,n);return t+e.day+347997}getDaysInMonth(e){return S(e.year,e.month)}getMonthsInYear(e){return v(e.year)?13:12}getDaysInYear(e){return x(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(v(t.year)&&!v(e.year)&&t.month>6?e.month--:!v(t.year)&&v(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class E extends o.FG{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,o.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(a.year-1)?31:30)+155+90+10):(t=(0,o.U_)(a.year)?31:30,l-=80),l<t)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new(0,i.ng)(this,s,n,r)}toJulianDay(e){let t,n,r=e.year+78,[a,i]=(0,o.f5)(r);return((0,o.U_)(i)?(t=31,n=(0,o.rG)(a,i,3,21)):(t=30,n=(0,o.rG)(a,i,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,o.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function O(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function k(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+O(t,r,1,1)))/29.5)+1),o=n-O(t,r,a,1)+1;return new(0,i.ng)(e,r,a,o)}function D(e){return(14+11*e)%30<11}class P{fromJulianDay(e){return k(this,1948440,e)}toJulianDay(e){return O(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&D(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return D(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class A extends P{fromJulianDay(e){return k(this,1948439,e)}toJulianDay(e){return O(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function C(e){return 460322+a[e-1300]}function T(e,t){return(r[e-1300]&1<<11-(t-1))==0?29:30}function N(e,t){let n=C(e);for(let r=1;r<t;r++)n+=T(e,r);return n}function R(e){return a[e+1-1300]-a[e-1300]}class M extends P{constructor(){if(super(),this.identifier="islamic-umalqura",r||(r=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!a){a=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){a[t-1300]=e;for(let n=1;n<=12;n++)e+=T(t,n)}}}fromJulianDay(e){let t=e-1948440,n=C(1300),r=C(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-C(++e)+1;let a=R(e);if(r===a){n=12;break}if(r<a){let t=T(e,n);for(n=1;r>t;)r-=t,t=T(e,++n);break}}return new(0,i.ng)(this,e,n,t-N(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+N(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):T(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):R(e.year)}}let I=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],L=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_=[1867,1911,1925,1988,2018],F=["meiji","taisho","showa","heisei","reiwa"];function V(e){let t=I.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?I.length-1:0===t?0:t-1}function B(e){let t=_[F.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,i.ng)(e.year+t,e.month,e.day)}class z extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=V(t);return new(0,i.ng)(this,F[n],t.year-_[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(B(e))}balanceDate(e){let t=B(e),n=V(t);F[n]!==e.era&&(e.era=F[n],e.year=t.year-_[n]),this.constrainDate(e)}constrainDate(e){let t=F.indexOf(e.era),n=L[t];if(null!=n){let[r,a,i]=n,o=r-_[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,n,r]=I[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return F}getYearsInEra(e){let t=F.indexOf(e.era),n=I[t],r=I[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(B(e))}getMinimumMonthInYear(e){let t=U(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=U(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function U(e){if(1===e.year)return I[F.indexOf(e.era)]}let W=[0,31,62,93,124,155,186,216,246,276,306,336];class ${fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-W[a]+1;return new(0,i.ng)(this,n,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=W[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function H(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function G(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class q extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=G((0,o.LA)(t.era,t.year));return new(0,i.ng)(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=G(H(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,n]=(0,o.f5)(H(e));return new(0,i.ng)(t,n,e.month,e.day)}function K(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new m;case"coptic":return new h;case"hebrew":return new j;case"indian":return new E;case"islamic-civil":return new P;case"islamic-tbla":return new A;case"islamic-umalqura":return new M;case"japanese":return new z;case"persian":return new $;case"roc":return new q;default:return new(0,o.FG)}}},2974(e,t,n){"use strict";n.d(t,{AU:()=>u,D8:()=>O,E0:()=>S,Rb:()=>m,Re:()=>d,WQ:()=>i,XH:()=>E,YP:()=>v,d_:()=>j,gt:()=>w,hZ:()=>f,ib:()=>p,tY:()=>g,xy:()=>b});var r=n(9405),a=n(345);function i(e,t){let n=e.copy(),r="hour"in n?y(n,t):0;o(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s(n),l(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){let e=n.calendar.isInverseEra?.(n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let i=n.calendar.getMonthsInYear(n);return n.month>i&&(n.month=i,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function o(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)o(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o(e,1)}function l(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function d(e,t){return i(e,c(t))}function f(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),u(n),n}function p(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),m(n),n}function m(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function h(e,t){let n=e%t;return n<0&&(n+=t),n}function y(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=h(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=h(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=h(e.minute,60),n=Math.floor(e.hour/24),e.hour=h(e.hour,24),n}function g(e,t){let n=e.copy();return y(n,t),n}function v(e,t){return g(e,c(t))}function b(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw Error("Invalid era: "+e.era);i=x(i,n,0,t.length-1,r?.round),a.era=t[i],u(a);break}case"year":a.calendar.isInverseEra?.(a)&&(n=-n),a.year=x(e.year,n,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=x(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":a.day=x(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),u(a),a}function w(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,i=0,o=23;if(r?.hourCycle===12){let e=t>=12;i=12*!!e,o=e?23:11}a.hour=x(t,n,i,o,r?.round);break}case"minute":a.minute=x(e.minute,n,0,59,r?.round);break;case"second":a.second=x(e.second,n,0,59,r?.round);break;case"millisecond":a.millisecond=x(e.millisecond,n,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return a}function x(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function S(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let a=i((0,r.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=(0,r.Tr)(a,e.timeZone)}else n=(0,r.oU)(e)-e.offset;n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0);let a=(0,r.Yd)(n,e.timeZone);return(0,r.yP)(a,e.calendar)}function j(e,t){return S(e,c(t))}function E(e,t,n,i){switch(t){case"hour":{let t=0,o=23;if(i?.hourCycle===12){let n=e.hour>=12;t=12*!!n,o=n?23:11}let s=(0,r.tR)(e),l=(0,r.yP)(p(s,{hour:t}),new(0,a.FG)),u=[(0,r.Tr)(l,e.timeZone,"earlier"),(0,r.Tr)(l,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===l.day)[0],c=(0,r.yP)(p(s,{hour:o}),new(0,a.FG)),d=[(0,r.Tr)(c,e.timeZone,"earlier"),(0,r.Tr)(c,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,r.oU)(e)-e.offset,m=Math.floor(f/36e5),h=f%36e5;return f=36e5*x(m,n,Math.floor(u/36e5),Math.floor(d/36e5),i?.round)+h,(0,r.yP)((0,r.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return w(e,t,n,i);case"era":case"year":case"month":case"day":{let a=b((0,r.tR)(e),t,n,i),o=(0,r.Tr)(a,e.timeZone);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function O(e,t,n){let a=(0,r.tR)(e),i=p(f(a,t),t);if(0===i.compare(a))return e;let o=(0,r.Tr)(i,e.timeZone,n);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}},240(e,t,n){"use strict";n.d(t,{p9:()=>x,$I:()=>E,RZ:()=>D,tB:()=>f,rS:()=>b,kq:()=>j,Jg:()=>l,Py:()=>P,tF:()=>o,Xj:()=>v,Nu:()=>h,SJ:()=>d,SE:()=>m,ro:()=>i,D:()=>S,ZI:()=>A,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>w});var r=n(9405);let a={"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 i(e,t){return t=(0,r.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function o(e,t){return t=(0,r.yP)(t,e.calendar),e=w(e),t=w(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&i(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return i(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,n){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(n?c[n]:function(e){let t=k.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo()))return k.set(e,t),t.firstDay}let n=function(e){if(Intl.Locale){let t=O.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&O.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];t="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&a[n]||0};k.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function f(e){return(0,r.Yd)(Date.now(),e)}function p(e){return(0,r.gw)(f(e))}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function h(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let g=null;function v(){return null==g&&(g=new Intl.DateTimeFormat().resolvedOptions().timeZone),g}function b(){return!1}function w(e){return e.subtract({days:e.day-1})}function x(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function S(e){return w(e.subtract({months:e.month-1}))}function j(e,t,n){let r=d(e,t,n);return e.subtract({days:r})}function E(e,t,n){return j(e,t,n).add({days:6})}let O=new Map,k=new Map;function D(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d(w(e),t,n)+r)/7)}function P(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function A(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,n){"use strict";n.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>h,ot:()=>f,qk:()=>m});var r=n(5923),a=n(9405),i=n(345);let o=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function u(e){let t=e.match(o);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let n=new(0,r.ng)(d(t[1],0,9999),d(t[2],1,12),1);return n.day=d(t[3],1,n.calendar.getDaysInMonth(n)),n}function c(e){let t=e.match(s);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let n=d(t[1],-9999,9999),a=new(0,r._l)(n<1?"BC":"AD",n<1?-n+1:n,d(t[2],1,12),1,t[4]?d(t[4],0,23):0,t[5]?d(t[5],0,59):0,t[6]?d(t[6],0,59):0,t[7]?1e3*d(t[7],0,1/0):0);return a.day=d(t[3],0,a.calendar.getDaysInMonth(a)),a}function d(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function f(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function p(e){let t,n=(0,a.yP)(e,new(0,i.FG));return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function m(e){return`${p(e)}T${f(e)}`}function h(e){var t;let n,r,a,i,o;return`${m(e)}${n=0>Math.sign(t=e.offset)?"-":"+",r=Math.floor((t=Math.abs(t))/36e5),a=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),o=`${n}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`,0!==i&&(o+=`:${String(i).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,n){"use strict";function r(e,t){return e-t*Math.floor(e/t)}n.d(t,{z:()=>r})},99(e,t,n){"use strict";n.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var r=n(9726),a=n(5565),i=n(8048);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e){return e.replace(/[\/\-@]/g,"_")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"./start",r=arguments.length>2?arguments[2]:void 0;return s(function(){var a,i,o,s,d,p,m;return u(this,function(u){switch(u.label){case 0:return a=(null==r?void 0:r.maxLoadingTime)&&!(r.maxLoadingTime<=0)?r.maxLoadingTime:6e5,i=void 0,[4,Promise.race([f(e,null==r?void 0:r.importMap),new Promise(function(t,n){i=setTimeout(function(){var t;n(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=a)<1e3?"".concat(t," milliseconds"):t<6e4?"".concat(Math.floor(t/1e3)," seconds"):t<36e5?"".concat(Math.floor(t/6e4)," minutes"):t<864e5?"".concat(Math.floor(t/36e5)," hours"):"".concat(Math.floor(t/864e5)," days"),".")))},a)})])];case 1:var h;if(u.sent(),i&&clearTimeout(i),o=c(e),!((void 0===(h=s=window[o])?"undefined":l(h))==="object"&&null!==h&&"init"in h&&"function"==typeof h.init&&"get"in h&&"function"==typeof h.get))throw console.error(d="The global variable ".concat(o," does not refer to a federated module")),Error(d);return s.init(n.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(m="Container for ".concat(e," did not return an ESM module as expected")),Error(m);return[2,p]}})})()}function f(e,t){return s(function(){var n,o,s,l,d,f,h;return u(this,function(u){switch(u.label){case 0:if("string"!=typeof e||0===e.trim().length)throw console.error("Attempted to call importDynamic() without supplying a package to load"),Error("Attempted to call importDynamic() without supplying a package to load");if(n=c(e),window[n])return[3,7];if(null==t)return[3,1];return s=t,[3,3];case 1:return[4,p()];case 2:s=u.sent(),u.label=3;case 3:if(!(o=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=o.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,i.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,n){var r,a,i,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[m];if(s||(s=window[m]=new Set([])),o)s.has(e)?(i=function(){r&&o.removeEventListener("load",r),a&&o.removeEventListener("error",a)},r=function(){i(),t(null)},a=function(e){i(),n(e.message)},o.addEventListener("load",r),o.addEventListener("error",a)):(console.warn("Script at ".concat(e," already loaded. Not loading it again.")),t(null));else{s.add(e);var l,u,c,d=document.createElement("script");d.src=e,d.type="text/javascript",d.async=!0;var f=setTimeout(function(){console.error("The script at ".concat(e," did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration."))},5e3);c=function(){clearTimeout(f),s.delete(e),l&&d.removeEventListener("load",l),u&&d.removeEventListener("error",u)},l=function(){c(),t(null)},u=function(t){c();var r,a="Failed to load script from ".concat(e);console.error(a,t),n(null!=(r=t.message)?r:a)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return h=u.sent(),f&&(0,r.Vt)({kind:"error",title:(0,a.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,a.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:d}),actionButtonLabel:(0,a.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,i.w_)(),window.location.reload()}}),[2,Promise.reject(h)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,i.F$)()]})})()}var m=Symbol("__egen_script_loading")},8048(e,t,n){"use strict";function r(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,l,"next",e)}function l(e){r(o,a,i,s,l,"throw",e)}s(void 0)})}}function i(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}n.d(t,{BX:()=>j,E:()=>x,F$:()=>m,SM:()=>O,fd:()=>w,o5:()=>y,q1:()=>b,tK:()=>h,uT:()=>g,w_:()=>S,xI:()=>v});var o="import-map-override:",s="import-map-overrides-disabled",l="import-map-overrides:change",u=!1,c=null;function d(){return a(function(){var e,t,n,r,a,o,s;return i(this,function(i){switch(i.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],n=0,i.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],i.label=2;case 2:if(i.trys.push([2,7,,8]),!r.src)return[3,5];return[4,fetch(r.src)];case 3:return a=i.sent(),o=t.push,[4,a.json()];case 4:return o.apply(t,[i.sent()]),[3,6];case 5:r.textContent&&t.push(JSON.parse(r.textContent)),i.label=6;case 6:return[3,8];case 7:return s=i.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(n),s),[3,8];case 8:return n++,[3,1];case 9:return[2,f(t)]}})})()}function f(e){var t={imports:{}},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function p(){var e={};try{for(var t=v(),n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=r.slice(o.length);if(!t.includes(a)){var i=localStorage.getItem(r);i&&(e[a]=i)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function m(){return a(function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,d()];case 1:if(e=t.sent(),!u)return[2,e];return[2,f([e,null!=c?c:p()])]}})})()}function h(){return a(function(){return i(this,function(e){return[2,d()]})})()}function y(){return a(function(){return i(this,function(e){switch(e.label){case 0:if(!u)return[2,d()];return[4,d()];case 1:return[2,f([e.sent(),p()])]}})})()}function g(e){if(!u)return{imports:{}};if(e){for(var t={},n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=localStorage.getItem(r);a&&(t[r.slice(o.length)]=a)}}return{imports:t}}return p()}function v(){if(!u)return[];try{var e=localStorage.getItem(s);if(e){var t=JSON.parse(e);if(Array.isArray(t))return t}}catch(e){}return[]}function b(e){return!!u&&v().includes(e)}function w(e,t){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.setItem(o+e,t),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to write import-map override to localStorage",e)}}function x(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(o+e);var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}function S(){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(o))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to clear import-map overrides from localStorage",e)}}function j(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}var E=!1;function O(){!E&&(E=!0,(u="development"===window.spaEnv)&&(c=p()))}},101(e,t,n){"use strict";n.d(t,{xI:()=>a.xI,E:()=>a.E,eH:()=>S,SM:()=>a.SM,zU:()=>g,BX:()=>a.BX,w_:()=>a.w_,Y6:()=>v,Yv:()=>r.Yv,tK:()=>a.tK,Ln:()=>r.Ln,FM:()=>y,o5:()=>a.o5,fd:()=>a.fd,Tx:()=>w,KI:()=>x,rL:()=>r.rL,WY:()=>b,F$:()=>a.F$,zC:()=>r.zC,_m:()=>E,q1:()=>a.q1,uT:()=>a.uT});var r=n(99),a=n(8048),i=n(2235);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var u="egen-routes:",c="egen-routes:change",d=!1,f=null;function p(){return s(function(){var e,t,n,r,a,o;return l(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],n=0,s.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],s.label=2;case 2:if(s.trys.push([2,7,,8]),a=void 0,!r.src)return[3,5];return[4,fetch(r.src)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:r.textContent&&(a=JSON.parse(r.textContent)),s.label=6;case 6:return a&&(0,i.S)(a)&&t.push(a),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(n),o),[3,8];case 8:return n++,[3,1];case 9:return[2,m(t)]}})})()}function m(e){var t={},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function h(){return s(function(){var e,t,n,r,a,o,c,d,f,p,m,h;return l(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],n=0;n<localStorage.length;n++)(null==(r=localStorage.key(n))?void 0:r.startsWith(u))&&(a=localStorage.getItem(r))&&t.push({moduleName:r.slice(u.length),raw:a});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,n=e.raw;return s(function(){var e,r;return l(this,function(a){switch(a.label){case 0:if(e=JSON.parse(n),(0,i.j)(e))return[2,{moduleName:t,routes:e}];if(!("string"==typeof e&&e.startsWith("http")))return[3,3];return[4,fetch(e)];case 1:return[4,a.sent().json()];case 2:if(r=a.sent(),(0,i.j)(r))return[2,{moduleName:t,routes:r}];throw Error("".concat(e," did not resolve to a valid EgenAppRoutes object"));case 3:throw Error("Override for ".concat(t," is neither a valid routes object nor a URL"))}})})()}))];case 2:o=y.sent(),c=!0,d=!1,f=void 0;try{for(p=o[Symbol.iterator]();!(c=(m=p.next()).done);c=!0)h=m.value,"fulfilled"===h.status?e[h.value.moduleName]=h.value.routes:console.warn("[route-maps] Failed to load route override",h.reason)}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return[3,4];case 3:return console.warn("[route-maps] Failed to read route overrides from localStorage",y.sent()),[3,4];case 4:return[2,e]}})})()}function y(){return s(function(){var e,t;return l(this,function(n){switch(n.label){case 0:return[4,p()];case 1:if(e=n.sent(),!d)return[2,e];if(null==f)return[3,2];return t=f,[3,4];case 2:return[4,h()];case 3:t=n.sent(),n.label=4;case 4:return[2,m([e,t])]}})})()}function g(){return s(function(){return l(this,function(e){return[2,p()]})})()}function v(){return s(function(){var e;return l(this,function(t){switch(t.label){case 0:if(!d)return[2,p()];return[4,p()];case 1:return e=[t.sent()],[4,h()];case 2:return[2,m.apply(void 0,[e.concat([t.sent()])])]}})})()}function b(){if(!d)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(null==n?void 0:n.startsWith(u)){var r=localStorage.getItem(n);r&&(e[n.slice(u.length)]=r)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function w(e,t){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(u+e,JSON.stringify(t));else{var n,r=JSON.parse(t);if(!(0,i.j)(r))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(u+e,JSON.stringify(r))}else if(n=URL,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)localStorage.setItem(u+e,JSON.stringify(t.toString()));else{if(!(0,i.j)(t))return void console.error("Override for ".concat(e," is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL"),t);localStorage.setItem(u+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}}function x(e){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{localStorage.removeItem(u+e),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}}function S(){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(u))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}}var j=null;function E(){return j||(j=(d="development"===window.spaEnv)?h().then(function(e){f=e}):Promise.resolve())}},8507(e,t,n){"use strict";n.d(t,{J:()=>i,N:()=>a});var r=n(9726);function a(e){var t=o(e);setTimeout(function(){throw t})}function i(){var e=Error();return function(t){var n=o(t);n.stack+="\nAsync stacktrace:\n".concat(e.stack),a(t)}}function o(e){var t,n;if(null!=(n=Error)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)return e;if(null===e)return Error("'null' was thrown as an error");if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(n){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.Vt)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,n){"use strict";n.d(t,{dX:()=>r.dX,wE:()=>r.wE,_3:()=>r._3,uN:()=>r.uN,$F:()=>r.$F,Gz:()=>r.Gz,eb:()=>r.eb,Sj:()=>r.Sj,mv:()=>r.mv,yp:()=>l,PQ:()=>r.PQ});var r=n(6014),a=n(4356),i=n(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l(e){if("string"!=typeof e&&((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");var t,n={globals:s({},i.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,a.A)(e):e,n),function(e){if(Array.isArray(e))return o(e)}(t=n.variables)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){switch(e.type){case"UnaryExpression":return n=e,r=t,u(n.argument,r);case"BinaryExpression":return a=e,i=t,[u(a.left,i),u(a.right,i)].filter(Boolean);case"ConditionalExpression":return o=e,l=t,[u(o.consequent,l),u(o.test,l),u(o.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,m=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),m;case"ArrowFunctionExpression":return function(e,t){var n=s({},t);n.isLocalExpression=!0;var r=null!=(d=null==(p=e.params)?void 0:p.map(c(n)))?d:[],a=null!=(f=u(e.body,n))?f:[];if(a&&Array.isArray(a)){var i=!0,o=!1,l=void 0;try{for(var d,f,p,m,h=a[Symbol.iterator]();!(i=(m=h.next()).done);i=!0){var y=m.value;r.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{i||null==h.return||h.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return h=e,y=t,u(h.object,y),void((g=s({},y)).isLocalExpression=!0,u(h.property,g));case"ArrayExpression":return v=e,b=t,void(null==(w=v.elements)||w.map(c(b)));case"SequenceExpression":return x=e,S=t,void(null==(j=x.expressions)||j.map(c(S)));case"NewExpression":return E=e,O=t,void(null==(k=E.arguments)||k.map(c(O)));case"Literal":case"TemplateElement":return;case"Identifier":var n,r,a,i,o,l,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O,k,D,P,A,C,T=e,N=t;if(!(T.name in N.globals))if(N.isLocalExpression)return T.name;else N.variables.add(T.name);return;case"TemplateLiteral":return D=e,P=t,void(null==(A=D.expressions)||A.map(c(P)),null==(C=D.quasis)||C.map(c(P)));default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function c(e){return function(t){return null===t?null:u(t,e)}}},8162(e,t,n){"use strict";n.r(t),n.d(t,{ASSISTANT_MODES:()=>v.wJ8,ActionMenu:()=>v.WyE,ActionMenuButton:()=>v.EDM,ActionMenuButton2:()=>v.Wjo,ActionableNotificationComponent:()=>v.drd,ActivityIcon:()=>v.npY,AddIcon:()=>v.REV,AllergiesIcon:()=>v.UgN,AnimatedHomeBackground:()=>v.BpM,AppointmentsAltPictogram:()=>v.MnZ,AppointmentsPictogram:()=>v.B1u,ArrowDownIcon:()=>v.ZLN,ArrowLeftIcon:()=>v.A60,ArrowRightIcon:()=>v.flY,ArrowUpIcon:()=>v.Kpk,Assessment1Pictogram:()=>v.IHy,Assessment2Pictogram:()=>v.$iy,AsyncSelect:()=>v.DWK,AttachmentIcon:()=>v.PtA,Autocomplete:()=>v.jT8,BabyIcon:()=>v.qYP,BloodBankPictogram:()=>v.nvs,Breakpoint:()=>v.EA,CalendarHeatMapIcon:()=>v.mmM,CalendarIcon:()=>v.CTc,CardHeader:()=>v.aRn,CardModal:()=>v.oVc,CardiologyPictogram:()=>v.uU$,CaretDownIcon:()=>v.bDP,CaretLeftIcon:()=>v.eCO,CaretRightIcon:()=>v.JJd,CaretUpIcon:()=>v.SwV,Carousel:()=>v.FNf,CarouselContext:()=>v.Ycj,CascadingNavDropdown:()=>v._PX,ChartAverageIcon:()=>v.ZHE,ChartLineIcon:()=>v.SCH,CheckmarkFilledIcon:()=>v.FtQ,CheckmarkOutlineIcon:()=>v.pm$,ChemistryIcon:()=>v.W4t,ChevronDownIcon:()=>v.D3D,ChevronLeftIcon:()=>v.YJP,ChevronRightIcon:()=>v.vKP,ChevronUpIcon:()=>v.Mtm,CircularGallery:()=>v.GF9,ClassificationTags:()=>v.QpY,CloseFilledIcon:()=>v.oCk,CloseIcon:()=>v.USm,CloseOutlineIcon:()=>v.Wdn,ColumnWithSearch:()=>v.Fny,Combobox:()=>v.G3_,ConditionsIcon:()=>v.ci3,ContentSection:()=>v.Fe_,CtScanPictogram:()=>v.DeE,CustomOverflowMenu:()=>v.TQT,CustomOverflowMenuItem:()=>v.cxd,DEFAULT_BOOLEAN_OPTIONS:()=>v.ofx,DEFAULT_OPERATORS:()=>v.whL,DashboardExtension:()=>v.cJN,DecoratedCard:()=>v.mqB,DefaultPageBackground:()=>v.NOx,DentistryPictogram:()=>v.TNY,DocumentAttachmentIcon:()=>v.Ce6,DocumentIcon:()=>v.pyG,DocumentToolbar:()=>v.PAB,DownloadIcon:()=>v.s3U,DrugOrderIcon:()=>v.uqj,DynamicField:()=>v.koC,EditIcon:()=>v.qUP,EgenDatePicker:()=>v.O_s,EgenDateRangePicker:()=>v.tKr,EmergencyDepartmentPictogram:()=>v.sgv,EmptyCard:()=>v.slS,EmptyCardIllustration:()=>v.Ua6,EntityBannerActionsMenu:()=>v.M9T,EntityBannerContactDetails:()=>v.EGc,EntityBannerEntityIdentifiers:()=>v.teX,EntityBannerEntityInfo:()=>v.Zpy,EntityDetailBrowser:()=>v.NIm,EntityPhoto:()=>v.Klm,ErrorCard:()=>v.JrA,ErrorState:()=>v.W5n,EventScheduleIcon:()=>v.XaH,EventsIcon:()=>v.Jc,FacilityPictogram:()=>v.ECF,FilterBar:()=>v.Qnn,FilterBarDefault:()=>v.vNL,FilterBarDemo:()=>v.RJr,FolderGallery:()=>v.fNA,GenderFemaleIcon:()=>v.XB2,GenderMaleIcon:()=>v.szA,GenderOtherIcon:()=>v.hXZ,GenderUnknownIcon:()=>v.x1U,GenericOrderTypeIcon:()=>v.naI,GeriatricsPictogram:()=>v.SQq,GlobalPageBackground:()=>v.Nqf,GradientBlur:()=>v.wtE,GradientWave:()=>v.GcC,GroupAccessIcon:()=>v.Pyy,GroupIcon:()=>v.nFg,GynaecologyPictogram:()=>v.owH,HeroMosaic:()=>v.LdX,HeroTileCard:()=>v.b6Z,HomePictogram:()=>v.KKH,HospitalBedIcon:()=>v.jMM,Icon:()=>v.Int,ImageMedicalIcon:()=>v.Ix5,ImageSwiper:()=>v.QeH,InPatientPictogram:()=>v.thS,InformationFilledIcon:()=>v._e_,InformationIcon:()=>v.uQc,InformationSquareIcon:()=>v.ZrL,InteractiveSelector:()=>v.wmT,InventoryManagementIcon:()=>v.vFG,LabOrderIcon:()=>v.hi6,LaboratoryPictogram:()=>v.ehn,Labs2Pictogram:()=>v.rpF,LayoutGrid:()=>v.D6i,LeftNavMenu:()=>v.Ojh,LiquidGlassCard:()=>v.lok,ListCheckedIcon:()=>v.Rt$,LiveOrb:()=>v.AFR,LocationIcon:()=>v.BT6,LocationPicker:()=>v.MTs,MORPH_SELECT_DEFAULT_TRANSITION:()=>v.AOq,MaterialOrderIcon:()=>v.zZ0,MaximizeIcon:()=>v._Xm,MaybeIcon:()=>v.oy0,MaybePictogram:()=>v.bmf,MedicationIcon:()=>v.Fnj,MenuToggleButton:()=>v.qLc,MessageQueueIcon:()=>v.uFu,MicroscopeIcon:()=>v.u4h,MoneyIcon:()=>v.yBj,MorphSelect:()=>v.NGl,MorphSelectContent:()=>v.EiO,MorphSelectItem:()=>v.iRo,MorphSelectTrigger:()=>v.PK0,MorphSelectValue:()=>v.qXl,MotherIcon:()=>v.XEq,MovementIcon:()=>v.lyJ,Notification:()=>v.Eg0,NumericDataPoint:()=>v.YiA,ObstetricsPictogram:()=>v.Bk2,OverflowMenuHorizontalIcon:()=>v.rv3,OverflowMenuVerticalIcon:()=>v.Rnm,PageBackground:()=>v.Kz$,PageBackgroundProvider:()=>v.z0Y,PageHeader:()=>v.zYs,PageHeaderContent:()=>v.gpz,Pagination:()=>v.dKS,PasswordIcon:()=>v.BGy,PatientListsPictogram:()=>v.$2H,PatientSearchPictogram:()=>v.cxq,PatientsPictogram:()=>v.X25,PaymentsDeskPictogram:()=>v.dNG,PedestrianFamilyIcon:()=>v.PPo,PenIcon:()=>v.rZj,Pharmacy2Pictogram:()=>v.Q92,PharmacyPictogram:()=>v.w21,Pictogram:()=>v.bF1,PrinterIcon:()=>v.wwY,ProcedureOrderIcon:()=>v.H0x,ProgramsIcon:()=>v.lq$,PromptInput:()=>v.Plc,RECURSIVE_EROSION_DEFAULTS:()=>v.Km0,RadiologyIcon:()=>v.SA3,RecursiveErosionBackground:()=>v.OoY,ReferralOrderIcon:()=>v.tCH,RegistrationPictogram:()=>v.et7,RenewIcon:()=>v.JTN,ReportIcon:()=>v.cQD,ResetIcon:()=>v.NAP,ResponsiveWrapper:()=>v.KFv,SaveIcon:()=>v.LPu,SearchIcon:()=>v.WIv,Select:()=>v.l6P,SelectContent:()=>v.gCo,SelectContext:()=>v.CW5,SelectTrigger:()=>v.bqE,ServiceQueuesPictogram:()=>v.Y21,SettingsIcon:()=>v.Zes,Sheet:()=>v.cjw,SheetClose:()=>v.kNS,SheetContent:()=>v.hae,SheetContext:()=>v.P8U,SheetDescription:()=>v.Qsg,SheetFooter:()=>v.XWC,SheetHeader:()=>v.Fm9,SheetOverlay:()=>v.YP7,SheetPortal:()=>v.yde,SheetRoot:()=>v.KId,SheetTitle:()=>v.qpM,SheetTrigger:()=>v.CGR,ShoppingCartAddItemIcon:()=>v.Uve,ShoppingCartArrowDownIcon:()=>v.Lfm,ShoppingCartIcon:()=>v.aJF,Slider:()=>v.Apm,SliderContainer:()=>v.Jbi,SliderDotButton:()=>v.vY7,Snackbar:()=>v.qb_,SplineScene:()=>v.C44,StaggeredMenuPanel:()=>v._kB,StickyNoteAddIcon:()=>v.OC$,StockManagementPictogram:()=>v.q__,SwitcherIcon:()=>v.RFy,SyringeIcon:()=>v.hZg,TableBatchActions:()=>v.GGC,TableIcon:()=>v.KbA,TableOfContentsIcon:()=>v.pYV,TestimonialCard:()=>v._f_,TestimonialCardStack:()=>v.uDL,ThumbsSlider:()=>v.BM2,TimeIcon:()=>v.b1c,Toast:()=>v.y8,ToolsIcon:()=>v.dwU,TopBar:()=>v.Vsm,TopBarAvatar:()=>v.mIk,TopBarDivider:()=>v.AA7,TopBarIconButton:()=>v.gFP,TransferPictogram:()=>v.SKX,TranslateIcon:()=>v.SwB,TrashCanIcon:()=>v.EJV,TreeViewAltIcon:()=>v.MO4,TriagePictogram:()=>v.XHu,UserAvatarIcon:()=>v.yDT,UserFollowIcon:()=>v.osL,UserIcon:()=>v.nys,UserXrayIcon:()=>v.feL,ViewIcon:()=>v.tCQ,ViewOffIcon:()=>v.Oi_,WarningIcon:()=>v.id,WaterGlassModal:()=>v.BIq,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>v.ozP,WorkspaceContainer:()=>v.XvC,WorkspaceNotification:()=>v.tMf,XrayPictogram:()=>v.B2u,activateOfflineCapability:()=>m.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,age:()=>w.KW,ageAsDuration:()=>w.Cy,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>m.FO,buildFilterFields:()=>v.mOW,canAccessStorage:()=>w._g,canBeginEditSynchronizationItemsOfType:()=>m.xN,canCloseWorkspaceWithoutPrompting:()=>v.SvQ,cancelPrompt:()=>v.zlb,cardModalAnimationPresets:()=>v.QsE,changeWorkspaceContext:()=>v.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,cleanCascadingFilters:()=>v._Jn,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>v.G_3,closeWorkspace:()=>v.MJ8,closeWorkspaceGroup2:()=>v.biy,cn:()=>v.cn,compile:()=>u.wE,convertToLocaleCalendar:()=>w.d4,createAttachment:()=>s.cD,createDashboard:()=>v.n6L,createErrorHandler:()=>l.J,createLiveOrb:()=>v.Ogf,defaultValidation:()=>v.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>m.lY,detach:()=>c.Yo,detachAll:()=>c.No,dispatchActionableNotificationShown:()=>f.LQ,dispatchConnectivityChanged:()=>f.Yt,dispatchNotificationShown:()=>f.FI,dispatchPrecacheStaticDependencies:()=>f.pc,dispatchSnackbarShown:()=>f.$3,dispatchToastShown:()=>f.Vt,displayName:()=>w.QC,duration:()=>w.p0,egenOfflineCachingStrategyHttpHeaderName:()=>m.T$,egenOfflineResponseBodyHttpHeaderName:()=>m.Q1,egenOfflineResponseStatusHttpHeaderName:()=>m.Gt,enableImportMapOverride:()=>o.BX,esmStyleGuideSchema:()=>v.uQD,evaluate:()=>u._3,evaluateAsBoolean:()=>u.eb,evaluateAsBooleanAsync:()=>u.Gz,evaluateAsNumber:()=>u.dX,evaluateAsNumberAsync:()=>u.$F,evaluateAsType:()=>u.Sj,evaluateAsTypeAsync:()=>u.uN,evaluateAsync:()=>u.mv,evaluateFilter:()=>v.Ws0,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,fetchCurrentEntity:()=>s.dZ,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>y.yw,fireEgenEvent:()=>s.g8,formatDate:()=>w.Yq,formatDatetime:()=>w.Rt,formatDuration:()=>w.a3,formatDurationBetween:()=>w.g2,formatEntityName:()=>w.MS,formatPartialDate:()=>w.LW,formatPatientName:()=>w.Qr,formatTime:()=>w.fU,formattedName:()=>w.qK,generateOfflineUuid:()=>m.sA,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>b.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>m.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>w.a7,getDefaultsFromConfigSchema:()=>w.kd,getDynamicOfflineDataEntries:()=>m.FE,getDynamicOfflineDataEntriesFor:()=>m.WA,getDynamicOfflineDataHandlers:()=>m.qb,getEgenServiceWorker:()=>m.b1,getEntityName:()=>w.He,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>m.C$,getFullSynchronizationItemsFor:()=>m.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>w.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getOfflineDb:()=>m.e,getOfflineEntityDataStore:()=>m.sm,getOfflineSynchronizationStore:()=>m.LM,getOpenedWindowIndexByWorkspace:()=>c.YX,getPatientName:()=>w.Vp,getPromptBeforeClosingFcn:()=>v.OeE,getRegisteredWorkspace2Names:()=>v.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getSavedAssistantMode:()=>v.T7$,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>m.Gp,getSynchronizationItems:()=>m.pb,getSynchronizationItemsFor:()=>m.Io,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>v.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>v.XzH,goBackInHistory:()=>p.tA,iconIds:()=>v.kE8,importDynamic:()=>o.rL,integrateBreakpoints:()=>v.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>w.pf,isEgenDateToday:()=>w.L8,isEgenRoutes:()=>f.Ss,isFilterReady:()=>v.iVR,isImportMapOverrideDisabled:()=>o.q1,isOfflineUuid:()=>m.bO,isOnline:()=>w.sc,isVersionSatisfied:()=>w.rX,isXboxAudioMuted:()=>v.lgu,jsep:()=>u.PQ,launchWorkspace:()=>v.TC2,launchWorkspace2:()=>v.pTx,launchWorkspaceGroup:()=>v.aN0,launchWorkspaceGroup2:()=>v.GYk,leftNavStore:()=>c.Gp,loadLifeCycles:()=>y.oB,matchLocale:()=>w.w7,matchesFilters:()=>v.lu9,messageEgenServiceWorker:()=>m.Oc,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>v.Fmw,offlineUuidPrefix:()=>m.jU,parseDate:()=>w._U,parseDateInput:()=>w.qE,pictogramIds:()=>v.vJW,playXboxSound:()=>v.x4I,preloadImport:()=>o.zC,preloadSplineScene:()=>v.Pfj,promptBeforeClosing:()=>v.F3N,promptForClosingWorkspaces:()=>v.hLN,putDynamicOfflineData:()=>m.yD,putDynamicOfflineDataFor:()=>m.ff,queueSynchronizationItem:()=>m.Zr,queueSynchronizationItemFor:()=>m.Iq,registerApp:()=>y.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>w.XE,registerEgenServiceWorker:()=>m.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerOfflineEntityHandler:()=>m.Wo,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>m.NU,removeDynamicOfflineDataFor:()=>m.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.KI,renderActionableNotifications:()=>v.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>v.CU$,renderLoadingSpinner:()=>v.uWG,renderSnackbars:()=>v.ZLm,renderToasts:()=>v.f1b,renderWorkspaceWindowsAndMenu:()=>v.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>v._1W,retry:()=>w.L5,runSynchronization:()=>m.AO,saveAssistantMode:()=>v.Pe5,saveWorkSession:()=>s.XM,selectPreferredName:()=>w.VO,setCurrentOfflineMode:()=>m.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setLeftNav:()=>c.Vx,setupDynamicOfflineDataHandler:()=>m.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>v.EPe,setupOfflineSync:()=>m.cy,setupRouteMapOverrides:()=>o._m,shallowEqual:()=>w.bN,showActionableNotification:()=>v.ZyP,showModal:()=>v.toY,showNotification:()=>v.Dsh,showSnackbar:()=>v.tdF,showToast:()=>v.P0c,showWorkspacePrompts:()=>v.ctS,slugify:()=>o.Yv,subscribeActionableNotificationShown:()=>f.bK,subscribeConnectivity:()=>f.sT,subscribeConnectivityChanged:()=>f.gj,subscribeEgenEvent:()=>s.mI,subscribeNotificationShown:()=>f.bJ,subscribePrecacheStaticDependencies:()=>f.ff,subscribeSnackbarShown:()=>f.ls,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>f.dX,syncAllDynamicOfflineData:()=>m.Td,syncDynamicOfflineData:()=>m.u1,syncOfflineEntityData:()=>m.Oj,toDateObjectStrict:()=>w.kQ,toEgenIsoString:()=>w.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,toggleXboxAudio:()=>v.MiD,translateFrom:()=>b.t,tryRegisterExtension:()=>y.Y1,unsetLeftNav:()=>c.sr,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>v._RD,useCarouselContext:()=>v.RGi,useCustomOverflowMenu:()=>v.ckU,useEntityPhoto:()=>v.XhU,useFilterSchema:()=>v.d4y,usePageBackground:()=>v.DYW,useSelectContext:()=>v.hPu,useSheetContext:()=>v.sCq,useWorkspace2Context:()=>v.WO_,useWorkspace2Store:()=>v.AkA,useWorkspaces:()=>v.CH0,workspace2Store:()=>c.J_,workspace2StoreActions:()=>v.cJy,workspaceStore:()=>v.x9q,xboxAudio:()=>v.o81});var r=n(4896),a={};for(let e in r)"default"!==e&&(a[e]=()=>r[e]);n.d(t,a);var i=n(2804),a={};for(let e in i)"default"!==e&&(a[e]=()=>i[e]);n.d(t,a);var o=n(101),s=n(3447),l=n(8507),u=n(9360),c=n(7477),d=n(5794),f=n(5895),p=n(7774),m=n(6563),h=n(346),a={};for(let e in h)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(a[e]=()=>h[e]);n.d(t,a);var y=n(7334),g=n(1442),a={};for(let e in g)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","finishRegisteringAllApps","tryRegisterExtension","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","loadLifeCycles","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(a[e]=()=>g[e]);n.d(t,a);var v=n(9764),b=n(5565),w=n(7184)},5895(e,t,n){"use strict";n.d(t,{$3:()=>r.$3,FI:()=>r.FI,LQ:()=>r.LQ,Ss:()=>a.S,Vt:()=>r.Vt,Yt:()=>r.Yt,bJ:()=>r.bJ,bK:()=>r.bK,dX:()=>r.dX,ff:()=>r.ff,gj:()=>r.gj,j0:()=>a.j,ls:()=>r.ls,pc:()=>r.pc,sT:()=>r.sT});var r=n(9726),a=n(2235)},2235(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&!(Object.hasOwn(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||Object.hasOwn(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||Object.hasOwn(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||Object.hasOwn(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}function o(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],a=t[1];return"string"==typeof n&&i(a)})}n.d(t,{S:()=>o,j:()=>i})},7334(e,t,n){"use strict";n.d(t,{yw:()=>f,Y1:()=>l,FZ:()=>d,oB:()=>s.o});var r=n(9250),a=n(2804),i=n(5794),o=n(7477),s=n(8148);function l(e,t){var n=t.name;if(!n)return void console.error("An extension definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.'),t);t.slots&&t.slot&&console.warn("The extension ".concat(n," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var r=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition."),t);(0,o.VK)({name:n,load:function(){return(0,s.o)(e,t.component)},meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:null==(u=t.online)||u,offline:null!=(c=t.offline)&&c,featureFlag:t.featureFlag,displayExpression:t.displayExpression});var a=!0,i=!1,l=void 0;try{for(var u,c,d,f=r[Symbol.iterator]();!(a=(d=f.next()).done);a=!0){var p=d.value;(0,o.K0)(p,n)}}catch(e){i=!0,l=e}finally{try{a||null==f.return||f.return()}finally{if(i)throw l}}}function u(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var c=[];function d(e,t){if(e&&t&&(void 0===t?"undefined":u(t))==="object"){(0,a.registerModuleWithConfigSystem)(e);var n,r,d,f,p,m,h,y,g,v=null!=(n=t.extensions)?n:[],b=null!=(r=t.modals)?r:[],w=null!=(d=t.workspaces)?d:[],x=null!=(f=t.workspaceGroups)?f:[],S=null!=(p=t.featureFlags)?p:[],j=null!=(m=t.workspaceGroups2)?m:[],E=null!=(h=t.workspaceWindows2)?h:[],O=null!=(y=t.workspaces2)?y:[];null==(g=t.pages)||g.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var n,r;c.push((n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t),r=r={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),v.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?l(e,t):console.warn("An extension for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),b.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")){var n;(n=t.name)?t.component?(0,o.Ju)({name:n,moduleName:e,load:function(){return(0,s.o)(e,t.component)}}):console.error("The modal ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition."),t):console.error("A modal definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.'),t)}else console.warn("A modal for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),w.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var n=t.name;if(!n)return console.error("A workspace definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t);var r=t.title;if(!r)return console.error("A workspace definition in ".concat(e,' is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.'),t);if(!t.component)return console.error("The workspace ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition."),t);(0,o.pm)({name:n,title:r,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:function(){return(0,s.o)(e,t.component)}});var a=!0,i=!1,l=void 0;try{for(var u,c=(t.groups||[])[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;(0,o.io)({name:d,members:[n]})}}catch(e){i=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw l}}}(e,t):console.warn("A workspace for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),x.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")){var n,r;(r=t.name)?(0,o.io)({name:r,members:null!=(n=t.members)?n:[]}):console.error("A workspace group definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t)}else console.warn("A workspace group for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),(0,o.rD)(e,j),function(e,t){(0,o.Qb)(e,t);var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value;if(u.icon){var c={name:u.name,component:u.icon,slot:u.group,order:u.order};l(e,c)}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(e,E),(0,o.Uh)(e,O),S.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,i.uA)(t.flagName,t.label,t.description):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.'),t);else console.warn("A feature flag for ".concat(e," could not be registered as it does not appear to have the required properties"),t)})}}function f(){c.sort(function(e,t){return e.appName.localeCompare(t.appName,"en")});var e=new Map,t=!0,n=!1,a=void 0;try{for(var o,l=c[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var u,d=o.value;e.has(d.appName)?e.set(d.appName,e.get(d.appName)+1):e.set(d.appName,0);var f=e.get(d.appName),p="".concat(d.appName,"-page-").concat(f),m=null!=(u=d.containerDomId)?u:"egen-apps-container",h=document.getElementById(m),y="single-spa-application:".concat(p);if(h){var g=document.createElement("div");g.id=y,null==h||h.appendChild(g)}else throw Error("".concat(d.appName," ").concat(d.component,' cannot be mounted to "').concat(m,'"; DOM element does not exist.'));!function(e,t){var n,a,o,l,u=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===u)return console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);var c=(n=function e(t){if(Array.isArray(t)){var n,a=t.map(e);return function(e){return a.some(function(t){return t(e)})}}return"string"==typeof t?(0,r.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(n=RegExp)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(u),a=t.online,o=t.offline,l=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==a||a)||!navigator.onLine&&null!=o&&o)&&(!l||!!(0,i.jj)(l))&&n(e)}:n);(0,r.registerApplication)(e,function(){return(0,s.o)(t.appName,t.component)},c)}(p,d)}}catch(e){n=!0,a=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw a}}}},8148(e,t,n){"use strict";n.d(t,{o:()=>u});var r=n(99),a=n(2804);function i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)})}}function s(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var l=new Map;function u(e,t){return o(function(){var n,i,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(i=(n=t.indexOf("#"))>=0)?t.substring(0,n):e,d=i?t.substring(n+1):t,[4,(0,r.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var m,h;return[2,(m=u,h=f,o(function(){var e,t;return s(this,function(n){switch(n.label){case 0:if(m in l)return[3,5];if(null==h)return[3,1];return t=h,[3,3];case 1:return[4,(0,r.rL)(m)];case 2:t=n.sent(),n.label=3;case 3:return e=t,[4,l[m]=new Promise(function(t,n){if(Object.hasOwn(e,"startupApp")){var r=e.startupApp;if("function"==typeof r)return Promise.resolve(r()).then(function(){(0,a.registerModuleLoad)(m),t(null)}).catch(n)}(0,a.registerModuleLoad)(m),t(null)})];case 4:return n.sent(),[3,7];case 5:return[4,l[m]];case 6:n.sent(),n.label=7;case 7:return[2]}})})()).then(function(){return f[d]()})]}return f?f&&Object.hasOwn(f,d)?console.warn("The export ".concat(t,", defined in ").concat(e,"'s routes.json, is not a function")):console.warn("".concat(u,' does not define a component called "').concat(d,'", referenced in ').concat(e,"'s routes.json. This cannot be loaded.")):console.warn("Unknown app ".concat(u," for ").concat(t," defined in ").concat(e,"'s routes.json")),[2,c]}})})()}var c={bootstrap:function(){return Promise.resolve()},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}}},3903(e,t,n){"use strict";n.d(t,{g2:()=>ey,Rt:()=>eo,XE:()=>J,a3:()=>el,LW:()=>en,a7:()=>ee,L8:()=>q,Yq:()=>er,L3:()=>K,fU:()=>ei,_U:()=>Z,d4:()=>es,p0:()=>em,kQ:()=>Y,qE:()=>eu,pf:()=>G});var r,a=n(9405),i=n(227);if("u">typeof navigator){let e=navigator;r=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;r=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var o=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch{return"en-US"}}(r||"en-US"),s=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},l={};for(let e=0;e<100;e++)l[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var u={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},c="[1234567890一二三四五六七八九〇\\d]",d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},f={},p={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},m={zone:p,year:l,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},h={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:`\\(?(?:${Object.keys(p).join("|")})\\)?`,MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},y={...h,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},g={},v=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=o){let n=t.toLowerCase(),r=g[n];if(r)return r;let a=new e(t);return g[n]=a,a}constructor(e=o){this.locale=e,this.lookups={...m},this.vars={...h};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){return"number"==typeof e?e:"string"==typeof e?this.stringToInt(e):void 0}stringToInt(e){if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!Number.isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.stringToInt(t):2===t.length?10*this.stringToInt(t):this.stringToInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.stringToInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.stringToInt(n)+(r?this.stringToInt(r):0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=d:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){let t=f[e];if(t)return t;if("fullwide"===e||"hanidec"===e)return{group:c,lookup:{...d}};let n=u[e];if(!n)return{group:"\\d",lookup:{...d}};let r=String.fromCharCode(n),a=String.fromCharCode(n+9),i={};for(let e=0;e<10;e++)i[String.fromCharCode(n+e)]=e;return f[e]={group:`[${r}-${a}]`,lookup:i},f[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,y)Object.hasOwn(y,n)&&(this.vars[n]=y[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,i)=>{e[n+a+(i<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let i=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let o=0;o<12;o++){let s=i.formatToParts(n[o]).find(r);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);/^\d+$/.test(l)||(/^ko/i.test(this.locale)&&(l+="월"),"medium"===a?(l=l.replace(/\.$/,""),e[`${l}\\.?`]=!0):e[l]=!0,t[l]=o+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let i=0;i<12;i++){let o=a.formatToParts(n[i]).find(r);if(!o)continue;let s=o.value.toLocaleLowerCase(this.locale);s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0,t[s]=i+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let i=Intl.DateTimeFormat(this.locale,{weekday:a});for(let o=0;o<7;o++){let s=i.formatToParts(e[o]).find(t);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);"short"===a?(l=l.replace(/\.$/,""),n.push(`${l}\\.?`)):n.push(l),r[l]=o}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let i=0;i<2;i++){let o=a.formatToParts(e[i]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*i}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],w={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},x=()=>new Date;function S(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var j=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let i=e.handler(a);if(i){for(let[e,t]of Object.entries(i))e in n||void 0===t||(n[e]=t);let e=a.index??0;if(t=(t=t.slice(0,e)+t.slice(e+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},E=["year","month","day","hour","minute","second","millisecond","offset"],O={};function k(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var D=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],P={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...D],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:D,id:D,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function A(e,t=o){let n=function(e){var t,n;let r,a,i=O[e];if(i)return i;let o=v.factory(e),s=new j({doneChecker:k,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:S(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:S(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:S(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/\b(now|today|tomorrow|yesterday)\b/i,handler:e=>{let t=x(),n=e[0].toLowerCase(),r={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[n]??0;0!==r&&t.setTime(t.getTime()+r);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===n?{...a,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:a}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:([,e,t,n,r])=>{let a,i=parseFloat(t);"week"===(a=n.length<=2?w[n]:(a=n.replace(/s$/,"")).toLowerCase())&&(a="day",i*=7),("-"===e||r)&&(i*=-1);let o=x();return"millisecond"===a?o.setUTCMilliseconds(o.getUTCMilliseconds()+i):"second"===a?o.setUTCSeconds(o.getUTCSeconds()+i):"minute"===a?o.setUTCMinutes(o.getUTCMinutes()+i):"hour"===a?o.setUTCHours(o.getUTCHours()+i):"day"===a?o.setUTCDate(o.getUTCDate()+i):"month"===a?o.setUTCMonth(o.getUTCMonth()+i):"year"===a&&o.setUTCFullYear(o.getUTCFullYear()+i),{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate(),hour:o.getUTCHours(),minute:o.getUTCMinutes(),second:o.getUTCSeconds(),millisecond:o.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:e=>{let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:e=>{let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:S(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:S(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:S(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:S(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:S(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:S(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:S(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:S(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:S(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:S(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:S(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:S(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:S(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:S(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:S(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:S(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:S(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:S(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:S(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:S(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:S(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:S(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:S(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:S(["offset"])}],a=o.baseName.slice(0,5),b.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(E.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return void 0!==t.year&&t.year<100&&(t.year=l[String(e.year)]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})});return O[e]=s,s}(t),r=function(e,t){let n=P[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function C(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new s(e.year??NaN,(e.month??NaN)-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new s(t.valueOf()-60*e.offset*1e3):t}function T(e,t=o){let n=A(e,t),r=n.invalid?new s(NaN):C(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function N(e,t=o){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):T(e,t)}Date.fromString=s.fromString=T,Date.fromAny=s.fromAny=N,"u">typeof window&&(window.anyDateParser={fromString:T,fromAny:N,fromObject:C,attempt:A});var R=n(5350),M=n.n(R),I=n(648),L=n(6871),_=n(2147);let F=function(e){return null==e};var V=n(313),B=n(1851);function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){U(e,t,n[t])})}return e}function $(e,t){var n=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return n.get?n.get.call(e):n.value}M().extend(I),M().extend(_),M().extend(L);var H="YYYY-MM-DDTHH:mm:ss.SSSZZ";function G(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&M()(e,H).isValid()}function q(e){return M()(e).isToday()}function Y(e){return G(e)?M()(e,H).toDate():null}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=M()(e);return t&&(n=n.utc()),n.format(H)}function Z(e){return M()(e).toDate()}var X=new WeakMap,Q=new(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=this,n=X,r={writable:!0,value:new Map};if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,r)}return e=[{key:"register",value:function(e,t){$(this,X).set(e,t)}},{key:"getCalendar",value:function(e){if(e){if(e.calendar)return e.calendar;if(e.region){var t="".concat(e.language,"-").concat(e.region);if($(this,X).has(t))return $(this,X).get(t)}if(e.language&&$(this,X).has(e.language))return $(this,X).get(e.language);var n=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return $(this,X).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),n),n}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function J(e,t){Q.register(e,t)}function ee(e){var t,n=null!=e?e:(0,B.J)();return Q.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t)?n:new Intl.Locale(n))}var et={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=A(e,(0,B.J)());if(n.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!F(n.day)&&F(n.month)&&(n=Object.assign({},(0,V.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=Object.assign({},(0,V.A)(n,"day"),{date:n.day}));var r=M()().set(n).toDate();return F(n.year)&&(t.year=!1),F(n.month)&&(t.month=!1),F(n.date)&&(t.day=!1),er(r,t)}function er(e,t){var n,r,a=null!=(n=null==t?void 0:t.locale)?n:(0,B.J)(),i=new Intl.Locale(a),o=W({},et,{noToday:"am"===i.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,m=o.numberingSystem,h={calendar:null!=s?s:ee(i),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:m},y=M()(e).isToday();if(y&&!p)r=(r=new Intl.RelativeTimeFormat(a,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(a)+r.slice(1);else{"en"===i.language&&(a="en-GB");var g=new Intl.DateTimeFormat(a,h).formatToParts(e);("en"===i.language||"am"===i.language)&&"standard"==l&&f&&c&&(g=g.map(ea("-"))),"wide"==l&&(g=g.map(ea(" — "))),"ethiopic"===h.calendar&&(g=g.filter(function(e,t,n){return"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type)})),r=g.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(r+=", ".concat(ei(e))),r}var ea=function(e){return function(t,n,r){return"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e}}};function ei(e){return e.toLocaleTimeString((0,B.J)(),{hour:"2-digit",minute:"2-digit"})}function eo(e,t){var n,r;return er(e,(n=W({},t),r=r={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function es(e,t){var n=ee("string"==typeof t?new Intl.Locale(t):t);return n?(0,a.yP)(e,(0,i.d)(n)):e}function el(e,t){return new Intl.DurationFormat((0,B.J)(),t).format(e)}function eu(e,t){if(null==e)return null;if("string"==typeof e){var n=A(e,(0,B.J)());return n.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(n.day&&!n.month&&(n=W({},(0,V.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=W({},(0,V.A)(n,"day"),{date:n.day})),M()(t).set(n))}return M()(e)}var ec=["years","months","days","hours","minutes","seconds"],ed={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"};function ef(e){var t;return null!=(t=ed[e])?t:e}var ep={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function em(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),r=arguments.length>2?arguments[2]:void 0,a=M()(n),i=eu(e,a);if(null==i)return null;if("string"==typeof r){var o=ef(r);return U({},o,a.diff(i,o))}var s=null!=r?r:{},l=s.thresholds,u=s.largestUnit,c=s.smallestUnit;if(void 0!==u||void 0!==c){var d,f=c?ef(c):void 0;return d="auto"===u||void 0===u?function(e,t,n){for(var r=ec.indexOf(n),a=0;a<ec.length;a++){var i=ec[a];if(t.diff(e,i)>0)return a<=r?i:n}return n}(i,a,null!=f?f:"seconds"):ef(u),function(e,t,n,r){var a=ec.indexOf(n),i=ec.indexOf(r),o=ec.slice(a,i+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=o[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value,h=t.diff(l,m);s[m]=h,l=l.add(h,m)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(i,a,d,null!=f?f:d)}var p=(t=function(e){var t=W({},ep);if(e){var n=!0,r=!1,a=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||function(e){if(e){if("string"==typeof e)return z(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];void 0!==c&&(t[ef(u)]=c)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}return t}(l),a.diff(i,"seconds")<t.seconds?"seconds":a.diff(i,"minutes")<t.minutes?"minutes":a.diff(i,"hours")<t.hours?"hours":a.diff(i,"days")<t.days?"days":a.diff(i,"months")<t.months?"months":"years");return U({},p,a.diff(i,p))}var eh={style:"short",localeMatcher:"lookup"};function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),n=arguments.length>2?arguments[2]:void 0,r=em(e,t,n);return null==r?null:el(r,(void 0===n?"undefined":n&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&n.formatOptions?W({},eh,n.formatOptions):eh)}},1851(e,t,n){"use strict";function r(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}n.d(t,{J:()=>r})},7184(e,t,n){"use strict";n.d(t,{g2:()=>i.g2,bN:()=>b.b,JK:()=>l.J,a3:()=>i.a3,LW:()=>i.LW,MS:()=>h,He:()=>f,rX:()=>O,L8:()=>i.L8,VO:()=>v,QC:()=>m,_U:()=>i._U,kQ:()=>i.kQ,qE:()=>i.qE,KW:()=>s,pf:()=>i.pf,kd:()=>function e(t){var n={},r=!0,a=!1,i=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;if(x(t[l])&&t[l].hasOwnProperty("_default"))n[l]=t[l]._default;else{if(l.startsWith("_"))continue;x(t[l])?n[l]=e(t[l]):n[l]=t[l]}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n},L5:()=>A,XE:()=>i.XE,Qr:()=>y,_g:()=>w,a7:()=>i.a7,sc:()=>u.s,w7:()=>d,L3:()=>i.L3,Yq:()=>i.Yq,fU:()=>i.fU,qK:()=>g,d4:()=>i.d4,Cy:()=>o,p0:()=>i.p0,Vp:()=>p,Rt:()=>i.Rt});var r=n(5350),a=n.n(r),i=n(3903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=a()(t),r=(0,i.qE)(e,n);if(null==r)return null;var o=n.diff(r,"hours"),s=n.diff(r,"days"),l=n.diff(r,"weeks"),u=n.diff(r,"months"),c=n.diff(r,"years"),d={};if(o<2)d.minutes=n.diff(r,"minutes");else if(s<2)d.hours=o;else if(l<4)d.days=s;else if(c<1){var f=n.subtract(l,"weeks").diff(r,"days");d.weeks=l,d.days=f}else if(c<2){var p=n.subtract(u,"months").diff(r,"days");d.months=u,d.days=p}else if(c<18){var m=n.subtract(c,"year").diff(r,"months");d.years=c,d.months=m}else d.years=c;return d}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=o(e,t);if(null==n)return null;var r={style:"short",localeMatcher:"lookup"};return"minutes"in n&&0===n.minutes&&(r.minutesDisplay="always"),(0,i.a3)(n,r)}var l=n(1851),u=n(2316);function c(e){if("string"==typeof e&&0!==e.trim().length){var t=e.replaceAll("_","-");try{return new Intl.Locale(t).toString()}catch(e){return}}}function d(e,t,n){if(null==e)return n;var r=c(e);if(!r)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),n;var a=[],i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var d=l.value,f=c(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}a.push({canonical:f,original:d})}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}for(var p=r;p;){var m=function(){var e=a.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",n=a.find(function(e){return e.canonical.startsWith(t)});if(n)return{v:n.original};if("ht"===p)return p="fr-HT","continue";var r=p.lastIndexOf("-");if(-1===r)return"break";var i=(p=p.slice(0,r)).lastIndexOf("-");-1!==i&&p.length-i==2&&(p=p.slice(0,i))}();if("object"==(m&&"u">typeof Symbol&&m.constructor===Symbol?"symbol":typeof m))return m.v;if("break"===m)break}return n}function f(e){return h(v(e,"usual","official"))}function p(e){return f(e)}function m(e){return f(e)}function h(e){var t,n,r,a;return e?null!=(t=e.text)?t:(a=null!=(r=(n=e).given)?r:[],(n.family?a.concat(n.family):a).join(" ")):""}function y(e){return h(e)}function g(e){return h(e)}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];0===n.length&&(n=["usual"]);var a=!0,i=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var u=function(){var t,n=s.value,r=null==(t=e.name)?void 0:t.find(function(e){var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(r)return{v:r}}();if("object"==(u&&"u">typeof Symbol&&u.constructor===Symbol?"symbol":typeof u))return u.v}}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}}var b=n(8254);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function x(e){return!!e&&e.constructor===Object}var S=n(8164);function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),3!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return j(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,3)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],a=n[1],i=n[2];return"".concat(r,".").concat(a,".").concat(i)}function O(e,t){var n=function(e){var t=e.indexOf("-");if(t>=0){var n=E(e.slice(0,t)),r=e.slice(t+1);return"".concat(n,"-").concat(r)}return E(e)}(t);return S.satisfies(n,e,{includePrerelease:!0})}function k(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function D(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){k(i,r,a,o,s,"next",e)}function s(e){k(i,r,a,o,s,"throw",e)}o(void 0)})}}function P(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function A(e){return D(function(e){var t,n,r,a,i,o,s,l=arguments;return P(this,function(u){switch(u.label){case 0:n=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,r=t.getDelay,a=t.onError,n=null!=n?n:function(e){return e<=5},r=null!=r?r:function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,n?e+1:e)}(e,1e3)},i=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=r(i),D(function(){return P(this,function(e){return c<=0?[2]:[2,new Promise(function(e){return setTimeout(e,c)})]})})())];case 2:return u.sent(),[4,e()];case 3:return[2,u.sent()];case 4:return s=u.sent(),null==a||a(s,i),o=s,[3,5];case 5:if(n(i++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}}}]);
|
|
20
|
+
`),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(b)&&w.removeChild(b)}},[t]),(0,m.jsx)(Eu,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:!1===i?e:h.cloneElement(e,{ref:c})})}let Ed=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dA(Ef),d=(0,h.useId)(),f=(0,h.useRef)(n),p=(0,h.useRef)(r);dB(()=>{f.current=n,p.current=r});let y=!0,g=(0,h.useMemo)(()=>(y=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;r&&r()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[n,c,r]);return i&&y&&(g={...g}),(0,h.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),h.useEffect(()=>{n||c.size||!r||r()},[n]),e=(0,m.jsx)(Ec,{pop:"popLayout"===o,isPresent:n,anchorX:s,anchorY:l,root:u,children:e}),(0,m.jsx)(dP.Provider,{value:g,children:e})};function Ef(){return new Map}let Ep=e=>e.key||"";function Em(e){let t=[];return h.Children.forEach(e,e=>{(0,h.isValidElement)(e)&&t.push(e)}),t}let Eh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=p_(o),f=(0,h.useMemo)(()=>Em(e),[e]),p=o&&!c?[]:f.map(Ep),y=(0,h.useRef)(!0),g=(0,h.useRef)(f),v=dA(()=>new Map),b=(0,h.useRef)(new Set),[w,x]=(0,h.useState)(f),[S,j]=(0,h.useState)(f);dB(()=>{y.current=!1,g.current=f;for(let e=0;e<S.length;e++){let t=Ep(S[e]);p.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[S,p.length,p.join("-")]);let E=[];if(f!==w){let e=[...f];for(let t=0;t<S.length;t++){let n=S[t],r=Ep(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return"wait"===i&&E.length&&(e=E),j(Em(e)),x(f),null}let{forceRender:O}=(0,h.useContext)(dy);return(0,m.jsx)(m.Fragment,{children:S.map(e=>{let h=Ep(e),w=(!o||!!c)&&(f===S||p.includes(h));return(0,m.jsx)(Ed,{isPresent:w,initial:(!y.current||!!n)&&void 0,custom:t,presenceAffectsLayout:a,mode:i,root:u,onExitComplete:w?void 0:()=>{if(b.current.has(h)||!v.has(h))return;b.current.add(h),v.set(h,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(O?.(),j(g.current),o&&d?.(),r&&r())},anchorX:s,anchorY:l,children:e},h)})})},Ey={wrapper:"+MhaVae6THwsk5E6SgD91g==",trigger:"erLmyNa4KNmSTnIWruF98w==",triggerIcon:"vgVuFlAm9oz2YIX+R3KGog==",triggerChevron:"EdRjow+3atz2LikqTtwRiA==","triggerChevron--open":"_3Qo5hPFht+fmaD5wpyrVDA==","triggerChevron--up":"LhY70oEV9rW+HCjBflQttg==",overlay:"j+0L8iAqopV5T3dTF0FKHA==",panel:"DLLKVOAuRvynO719yhZLdQ==",panelInner:"DfOdez6SxH290+Zy++HamA==",column:"BLcH+6UWPrpxna6xW7CaRg==",columnSearch:"VF7IQhw8YUnuNbxqB5uxgg==",columnSearchIcon:"L3Vzmgyzo+bBL73XihSy8g==",columnSearchInput:"nxz89i96vOH2bJ8IlCF3vw==",columnList:"XXN4Osw2SEvuhRZebn+W4g==",columnItem:"iEw8FhekcP+mGRJY9ZWi+Q==",columnItemIcon:"Z+QCa3t-znECWPm2IMJvdg==",columnItemLabel:"TvYE56z6ZZPeeL4ZRozI9w==",columnItemChevron:"NEPWPyiPTSNucX+JQPDvag==",columnEmpty:"_8a9jyeZZX6-xJ78eLrafow=="};function Eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ev=function(e){var t,n=e.columnItems,r=e.columnIndex,a=e.activeItems,i=e.searchable,o=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Eg(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Eg(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,h.useMemo)(function(){if(!c.trim())return n;var e=c.trim().toLowerCase();return n.filter(function(t){return t.label.toLowerCase().includes(e)})},[n,c]);return(0,m.jsxs)(mY.div,{className:Ey.column,initial:{opacity:0,width:0},animate:{opacity:1,width:"var(--cnd-column-width)"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeOut"},children:[i&&(0,m.jsxs)("div",{className:Ey.columnSearch,children:[(0,m.jsx)(tl,{className:Ey.columnSearchIcon,size:14}),(0,m.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:Ey.columnSearchInput,"aria-label":o})]}),(0,m.jsxs)("ul",{className:Ey.columnList,role:"list",children:[f.map(function(e){var t,n=a[r]===e.id,i=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,m.jsx)("li",{children:(0,m.jsxs)("button",{type:"button",className:Ey.columnItem,"data-active":n||void 0,onMouseEnter:function(){return s(e,r)},onFocus:function(){return s(e,r)},onClick:function(){!i&&e.path&&l(e.path)},children:[o&&(0,m.jsx)(o,{className:Ey.columnItemIcon,size:16}),(0,m.jsx)("span",{className:Ey.columnItemLabel,children:e.label}),i&&(0,m.jsx)(ej,{className:Ey.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,m.jsx)("li",{className:Ey.columnEmpty,children:"—"})]})]})};function Eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ew(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Ej(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ES(e){return function(e){if(Array.isArray(e))return Eb(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ej(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ej(e,t){if(e){if("string"==typeof e)return Eb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eb(e,t)}}var EE=function(e){var t,n,r=e.items,a=e.triggerLabel,i=e.triggerIcon,o=e.direction,s=void 0===o?"down":o,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,y=Ex((0,h.useState)(!1),2),g=y[0],b=y[1],w=Ex((0,h.useState)([r]),2),x=w[0],S=w[1],j=Ex((0,h.useState)([]),2),E=j[0],O=j[1],k=Ex((0,h.useState)(null),2),D=k[0],P=k[1],A=(0,h.useRef)(null);(0,h.useLayoutEffect)(function(){g||(S([r]),O([]))},[r,g]),(0,h.useLayoutEffect)(function(){if(g&&A.current){var e=A.current.getBoundingClientRect();P("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[g,s]);var C=function(e,t){var n,r=ES(E);r[t]=e.id,(null==(n=e.children)?void 0:n.length)?S(ES(x.slice(0,t+1)).concat([e.children])):S(x.slice(0,t+1)),O(r)},T=function(e){b(!1),null==f||f(e)};return(0,m.jsxs)("div",{className:v()(Ey.wrapper,p),children:[(0,m.jsxs)("button",{ref:A,type:"button",className:Ey.trigger,onClick:function(){return b(function(e){return!e})},"aria-haspopup":"true","aria-expanded":g,children:[i&&(0,m.jsx)(i,{className:Ey.triggerIcon,size:16}),(0,m.jsx)("span",{children:void 0===a?"Navigation":a}),(0,m.jsx)(ex,{className:v()(Ey.triggerChevron,(Ew(t={},Ey["triggerChevron--open"],g),Ew(t,Ey["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,m.jsx)(Eh,{children:g&&D&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:Ey.overlay,onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,m.jsx)(mY.div,{className:v()(Ey.panel,Ey["panel--".concat(s)]),style:(Ew(n={left:D.left,top:D.top,bottom:D.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),Ew(n,"--cnd-column-width","16rem"),n),initial:{opacity:0,y:"up"===s?10:-10,scale:.96},animate:{opacity:1,y:0,scale:1,width:"var(--cnd-panel-width)",transition:{opacity:{duration:.18},y:{duration:.28,type:"spring",stiffness:200,damping:20},scale:{duration:.18},width:{duration:.28,ease:"easeOut"}}},exit:{opacity:0,y:"up"===s?10:-10,scale:.96,transition:{duration:.18}},children:(0,m.jsx)("div",{className:Ey.panelInner,children:(0,m.jsx)(Eh,{mode:"sync",children:x.map(function(e,t){return(0,m.jsx)(Ev,{columnItems:e,columnIndex:t,activeItems:E,searchable:u,searchPlaceholder:d,onHover:C,onNavigate:T},t)})})})})]})})]})},EO=(0,h.createContext)(null),Ek=function(){var e=(0,h.useContext)(EO);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function ED(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EP=function(e){var t,n=e.children,r=e.open,a=e.onOpenChange,i=e.defaultOpen,o=e.className,s=e.side,l=e.height,u=e.closeThreshold,c=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(null!=i&&i))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return ED(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ED(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=void 0!==r,y=p?r:d,g=(0,h.useCallback)(function(e){null==a||a(e),p||f(e)},[a,p]);return(0,m.jsx)(EO.Provider,{value:{isOpen:y,onOpenChange:g,contentProps:{height:void 0===l?"55vh":l,className:void 0===o?"":o,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:n})};function EA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EC=function(e){var t,n=e.children,r=e.container,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return EA(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EA(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];if((0,h.useEffect)(function(){s(!0)},[]),!o||"u"<typeof document)return null;var l=a?(0,m.jsx)("div",{className:a,children:n}):n;return(0,rC.createPortal)(l,r||document.body)};let ET={triggerReset:"UTfMgRiNPzIznEurby664A==",container:"aWpQhbD4hQ2xfoFCY+v98A==","container--closed":"_6a2quhyuamg6Jnu2R0XZRg==",overlay:"uA7DGJbtkeLtyEgBWLudcg==",panel:"z6F4H-lgJLzzAj5DnVRryQ==","panel--top":"_38Sx-y4GdtWmNrETgQugkQ==","panel--bottom":"NGUY6C9LOAYjl6PSdt1xRw==",body:"IMmoKiNl8EmbBwnED75RbA==",scrollArea:"iAvbXCoavXWllacp5gpmHw==",handleRow:"ME49NFGQ57X-WijIuZhL-g==",handle:"lmM97ycxqOLoc3p10FNnJQ==",header:"e3jwSgdciqRPypRFgEXIEg==",title:"BmFFjd7CzigiMTXcFmiVwQ==",description:"PDFT4QgaZAFZt5sPYzNKxw==",footer:"p-rskDegBYgDoo-4cR88Nw=="};function EN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ER(e){if(Array.isArray(e))return e}function EM(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function EI(e,t){if(e){if("string"==typeof e)return EN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EN(e,t)}}var EL=(0,h.forwardRef)(function(e,t){var n,r=ER(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||EI(n)||EM(),a=r[0],i=r.slice(1),o=a.className,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["className"]),l=(ER(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||EI(i,1)||EM())[0],u=Ek(),c=u.isOpen,d=u.onOpenChange,f=(0,h.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,m.jsx)(mY.div,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:v()(ET.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function E_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function EF(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}EL.displayName="SheetOverlay";var EV=function(e){var t=e.asChild,n=e.children,r=e.className,a=Ek().onOpenChange,i=function(){return a(!0)};return t&&y().isValidElement(n)?y().cloneElement(n,EF(E_({},n.props),{className:v()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,m.jsx)("button",{onClick:i,type:"button",className:v()(ET.triggerReset,r),children:n})},EB=function(e){var t=e.asChild,n=e.children,r=e.className,a=Ek().onOpenChange,i=function(){return a(!1)};return t&&y().isValidElement(n)?y().cloneElement(n,EF(E_({},n.props),{className:v()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,m.jsx)("button",{onClick:i,type:"button",className:v()(ET.triggerReset,r),children:n})};function Ez(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&dq(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Ez(e,t)})})}function EU(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){uw(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let a=[];return t.forEach(e=>{a.push(fZ(e,n,{transitionOverride:r}))}),Promise.all(a)},set:n=>(uw(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=n)?Ez(t,r):"string"==typeof r?Ez(t,[r]):dq(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}let EW=function(){let e=dA(EU);return dB(e.mount,[]),e};function E$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EH=function(e){var t,n=e.children,r=e.className,a=Ek(),i=a.isOpen,o=a.onOpenChange,s=a.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=EW(),f=(0,h.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return E$(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E$(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=p[0],g=p[1],b="top"===c?-1:1,w=(0,h.useCallback)(function(){return o(!1)},[o]),x=(0,h.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,n=window.innerWidth;return e=n<=640?.6*t:n<=1024?.55*t:.5*t,l.includes("vh")?e=parseInt(l,10)/100*t:l.includes("px")&&(e=parseInt(l,10)),Math.min(e,.8*t)},[l]);(0,h.useEffect)(function(){var e=function(){return g(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,h.useEffect)(function(){return i?(document.body.style.overflow="hidden",d.start({y:0,transition:{type:"spring",stiffness:400,damping:40,mass:.8}})):(document.body.style.overflow="",d.start({y:b*(y+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[i,d,y,b]),(0,h.useEffect)(function(){var e=function(e){"Escape"===e.key&&i&&w()};return i&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[i,w]);var S=(0,h.useCallback)(function(e,t){var n=b*t.offset.y>y*u,r=b*t.velocity.y>800;n||r?w():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,w,u,y,b]),j=(0,h.useCallback)(function(e){e.target===f.current&&w()},[w]);if(0===y)return null;var E="top"===c?{top:-y,bottom:0}:{top:0,bottom:y};return(0,m.jsx)(EC,{children:(0,m.jsxs)("div",{className:v()(ET.container,!i&&ET["container--closed"]),children:[(0,m.jsx)(mY.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!i},transition:{duration:.2,ease:"easeOut"},onClick:j,className:ET.overlay,style:{pointerEvents:i?"auto":"none"}}),(0,m.jsxs)(mY.div,{drag:"y",dragConstraints:E,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:S,animate:d,initial:{y:b*(y+50)},className:v()(ET.panel,ET["panel--".concat(c)],void 0===r?"":r),style:{height:y},children:["bottom"===c&&(0,m.jsx)("div",{className:ET.handleRow,children:(0,m.jsx)("div",{className:ET.handle})}),(0,m.jsx)("div",{className:ET.body,children:(0,m.jsx)("div",{className:ET.scrollArea,children:n})}),"top"===c&&(0,m.jsx)("div",{className:ET.handleRow,children:(0,m.jsx)("div",{className:ET.handle})})]})]})})},EG=function(e){var t=e.children,n=e.className;return(0,m.jsx)("div",{className:v()(ET.header,n),children:t})},Eq=function(e){var t=e.children,n=e.className;return(0,m.jsx)("h3",{className:v()(ET.title,n),children:t})},EY=function(e){var t=e.children,n=e.className;return(0,m.jsx)("p",{className:v()(ET.description,n),children:t})},EK=function(e){var t=e.children,n=e.className;return(0,m.jsx)("div",{className:v()(ET.footer,n),children:t})},EZ=EP;function EX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E0=function(e){var t=e.items,n=e.title,r=e.hint,a=void 0===r?"Glisser une carte vers le bas pour fermer":r,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.className,u=e.style,c=e.itemWidth,d=void 0===c?"14rem":c,f=e.itemHeight,p=void 0===f?"18rem":f,y=e.accentColor,g=EJ((0,h.useState)(void 0!==o&&o),2),b=g[0],w=g[1],x=EJ((0,h.useState)(!1),2),S=x[0],j=x[1],E=void 0!==i,O=E?i:b,k=function(e){null==s||s(e),E||w(e)},D=function(e,t){t.offset.y>100&&O&&(k(!1),j(!1))},P=(t.length-1)/2,A=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){EQ(e,t,n[t])})}return e}({},y?EQ({},"--fg-accent",y):void 0,u);return(0,m.jsx)("div",{className:v()("mf1PQJZJIkTcC6ieajp06g==",l),style:A,children:(0,m.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,m.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,m.jsxs)(mY.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!O,scale:O?.9:1},children:[(0,m.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,m.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,m.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,m.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var n=t-P,r=1-.03*Math.abs(n);return(0,m.jsx)(mY.div,{drag:O,dragSnapToOrigin:!0,onDragEnd:D,className:v()("x+8qV1iWMRfwOVcjmG22XA==",EQ({},"-43huhs0q9f4MpiDC1igog==",O)),style:{width:d,height:p},animate:O?{y:-130,x:130*n,rotate:0,scale:1.05,zIndex:50}:{y:S?-10*n-40:-5*n,x:S?30*n:3*n,rotate:S?8*n:3*n,scale:r,zIndex:t+10},whileHover:O?{scale:1.1,zIndex:100}:void 0,whileDrag:O?{scale:1.05+.1,rotate:5,zIndex:150}:void 0,transition:{type:"spring",stiffness:350,damping:30},children:e.content},e.id)})}),(0,m.jsx)(mY.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!O,rotateX:S?-25:0,y:10*!!S,pointerEvents:O?"none":"auto"},onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onClick:function(){return k(!0)},children:(0,m.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,m.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,m.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,m.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===n?"Dossier":n})})]})})]}),a&&(0,m.jsx)(mY.div,{animate:{opacity:+!!O,y:50*!O},className:"xaOf3vz5KbUopgtshcuAKA==",children:a})]})})};function E1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E1(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E4(e){var t=e.items,n=e.className,r=e.style,a=E3((0,h.useState)(null),2),i=a[0],o=a[1],s=E3((0,h.useState)(null),2),l=s[0],u=s[1],c=function(e){u(i),o(e)},d=function(){u(i),o(null)};return(0,h.useEffect)(function(){if(i){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[i]),(0,m.jsxs)("div",{className:v()("cwEvWWvWR1VRjUW5EIdhaA==",n),style:r,children:[t.map(function(e){var t,n=(null==i?void 0:i.id)===e.id,r=!n&&(null==l?void 0:l.id)===e.id;return(0,m.jsx)("div",{className:e.className,children:(0,m.jsxs)(mY.div,{role:"button",tabIndex:0,"aria-pressed":n,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:v()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(E2(t={},"wpWM12DNjfwunfLOmmaBnQ==",n),E2(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!n),E2(t,"_1zQI0+1IAUASZtCPebAKvg==",r),t)),layoutId:"layout-grid-card-".concat(e.id),children:[n&&(0,m.jsx)(E6,{item:i}),(0,m.jsx)(E5,{item:e})]})},e.id)}),(0,m.jsx)(mY.div,{onClick:d,className:v()("SfuCW8U7MUzYHVthm3806Q==",E2({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==i?void 0:i.id))),animate:{opacity:+(null!=i&&!!i.id)},"aria-hidden":"true"})]})}function E5(e){var t=e.item;return(0,m.jsx)(mY.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function E6(e){var t=e.item;return(0,m.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,m.jsx)(mY.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,m.jsx)(mY.div,{layoutId:"layout-grid-content-".concat(null==t?void 0:t.id),initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{duration:.3,ease:"easeInOut"},className:"F2vzEavwn6vgxochiCbbkQ==",children:null==t?void 0:t.content})]})}let E8="VL60poBQJU5GXBc55DtOgg==",E9="Z-QYx9GU0-9PvqywVAWDOw==",E7="k5GwrlmSGQEXCHiD9NJSgg==",Oe="Sd+oehXhY2IvCEPY7LquSQ==",Ot="_2TUXiGgesFw6MMltbcDw7g==",On="aaY-ypFw8QYOvR34L1Ad3g==",Or="_0FXGSaE3Vf6Xfst6Bn-1XQ==",Oa="J+6pxxgImJiBa+5uolSRLA==",Oi="-cMLmEDNbTRZO+q9J5EnZQ==",Oo="pNL9YXjomLOkN1Sc1NOXsw==",Os="YY-ar9Letsk0I16pNK2koQ==";var Ol=function(){return(0,m.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,m.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ou(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ou(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Of=function(e){var t=e.title,n=e.coverImageUrl,r=e.category,a=e.itemCountLabel,i=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=Od((0,h.useState)(!1),2),f=d[0],p=d[1],y=Od((0,h.useState)(null),2),g=y[0],b=y[1],w=Od((0,h.useState)(null),2),x=w[0],S=w[1],j=Od((0,h.useState)(0),2),E=j[0],O=j[1],k=Od((0,h.useState)("translateY(0px)"),2),D=k[0],P=k[1],A=(0,h.useRef)(null),C=(0,h.useRef)(new Map),T=null!==g,N=f||T;(0,h.useEffect)(function(){if(null!==g){var e=function(){var e=C.current.get(g);e&&A.current&&O(e.getBoundingClientRect().top-A.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[g]);var R=function(e){if(e.detail){var t=C.current.get(e.id);if(t&&A.current){var n=window.innerHeight-t.getBoundingClientRect().bottom+A.current.offsetTop-390;P("translateY(".concat(n,"px)"))}b(e.id),S(e)}};return(0,m.jsx)("div",{className:v()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,m.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,m.jsxs)("div",{ref:A,className:v()("_09AECjHCq6I9nuofSaItrA==",Oc({},"GyoWR7DyKiD7EWOqlosJAg==",N)),children:[(0,m.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,m.jsxs)("div",{className:E8,children:[(0,m.jsx)("img",{className:E9,src:n,alt:""}),(0,m.jsx)("img",{className:v()(E9,E7),src:n,alt:"","aria-hidden":"true"})]}),(0,m.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,m.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,m.jsx)("h1",{className:Oe,children:t}),(0,m.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[r&&(0,m.jsx)("p",{className:Ot,children:r}),r&&a&&(0,m.jsx)("div",{className:Or}),a&&(0,m.jsx)("p",{className:Ot,children:a}),a&&i&&(0,m.jsx)("div",{className:Or}),i&&(0,m.jsx)("p",{className:Ot,children:i})]})]}),(0,m.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,m.jsxs)("div",{ref:(t=e.id,function(e){e?C.current.set(t,e):C.current.delete(t)}),className:Oa,onClick:function(){return R(e)},children:[(0,m.jsx)("p",{className:On,children:e.title}),(0,m.jsxs)("div",{className:Oi,children:[(0,m.jsx)("button",{type:"button",className:Oo,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,m.jsx)(e5,{size:20})}),e.meta&&(0,m.jsx)("p",{className:Ot,children:e.meta})]})]},e.id)})})]})]}),x&&(0,m.jsxs)("div",{className:v()("T5TjonuT8CpL6L9LnfYUbg==",Oc({},"Yw84bwYkOFxUPSl8uIlHYA==",T)),style:{top:"".concat(E,"px"),transform:D},children:[(0,m.jsxs)("div",{className:Oa,children:[(0,m.jsx)("p",{className:On,children:x.title}),(0,m.jsxs)("div",{className:Oi,children:[(0,m.jsx)("button",{type:"button",className:Oo,onClick:function(){P("translateY(0px)"),b(null)},"aria-label":"Fermer",children:(0,m.jsx)(ea,{size:20,className:Os})}),x.meta&&(0,m.jsx)("p",{className:Ot,children:x.meta})]})]}),(0,m.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,m.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,m.jsx)(Ol,{})]}),s&&(0,m.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":T?"none":void 0},children:[(0,m.jsx)("button",{type:"button",className:"GXOllnKpaSxbHHOmgv+RcQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,m.jsx)(ea,{size:24,className:v()(Oc({},Os,f))})}),(0,m.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,m.jsxs)("div",{className:E8,children:[(0,m.jsx)("h1",{className:Oe,children:s.name}),(0,m.jsx)("img",{className:E9,src:s.photoUrl,alt:""}),(0,m.jsx)("img",{className:v()(E9,E7),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,m.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,m.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,m.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,m.jsx)("p",{className:v()(Ot,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,m.jsx)("div",{className:Or}),s.itemCountLabel&&(0,m.jsx)("p",{className:Ot,children:s.itemCountLabel})]}),s.statLabel&&(0,m.jsx)("p",{className:Ot,children:s.statLabel})]}),s.description&&(0,m.jsx)("p",{className:On,children:s.description})]})]}),(0,m.jsx)(Ol,{}),(0,m.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})},Op={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},scale:{initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96}},zoom:{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6}},"slide-up":{initial:{opacity:0,y:48},animate:{opacity:1,y:0},exit:{opacity:0,y:24}},"slide-down":{initial:{opacity:0,y:-48},animate:{opacity:1,y:0},exit:{opacity:0,y:-24}},"slide-left":{initial:{opacity:0,x:48},animate:{opacity:1,x:0},exit:{opacity:0,x:24}},"slide-right":{initial:{opacity:0,x:-48},animate:{opacity:1,x:0},exit:{opacity:0,x:-24}},none:{initial:{},animate:{},exit:{}}};let Om={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};function Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Og(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oh(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ov=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},Ob=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Ow=function(e){var t,n,r,a,i,o,s,l,u=e.open,c=e.defaultOpen,d=e.onOpenChange,f=e.trigger,p=e.children,y=e.showCloseButton,g=e.renderCloseButton,b=e.cardVariant,w=e.cardProps,x=e.draggable,S=void 0!==x&&x,j=e.dockable,E=void 0!==j&&j,O=e.dockIcon,k=e.dockEdgeThreshold,D=void 0===k?80:k,P=e.dockUndockDistance,A=void 0===P?120:P,C=e.dockSize,T=void 0===C?56:C,N=e.closeOnOverlayClick,R=e.closeOnEscape,I=void 0===R||R,L=e.showOverlay,_=e.lockScroll,F=void 0===_||_,V=e.animation,B=void 0===V?"scale":V,z=e.overlayAnimation,U=e.className,W=e.style,$=e.overlayClassName,H=Og((0,h.useState)(void 0!==c&&c),2),G=H[0],q=H[1],Y=Og((0,h.useState)(!1),2),K=Y[0],Z=Y[1],X=Og((0,h.useState)(null),2),Q=X[0],J=X[1],ee=(0,h.useRef)(null),et=(0,h.useId)(),en=void 0!==u,er=en?u:G,ea=(0,h.useCallback)(function(e){null==d||d(e),en||q(e)},[d,en]),ei=(0,h.useCallback)(function(){return ea(!1)},[ea]);(0,h.useEffect)(function(){return Z(!0)},[]),(0,h.useEffect)(function(){er&&J(null)},[er]);var eo=(0,h.useCallback)(function(){if(E&&ee.current&&"u">typeof window){var e=ee.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2;if(Q)return void(Math.abs(t-("left"===Q.side?0:window.innerWidth))>A?J(null):J({side:Q.side,y:Ov(n,T)}));t<=D?J({side:"left",y:Ov(n,T)}):t>=window.innerWidth-D&&J({side:"right",y:Ov(n,T)})}},[E,Q,D,A,T]);(0,h.useEffect)(function(){if(er&&F)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[er,F]),(0,h.useEffect)(function(){if(er&&I){var e=function(e){"Escape"===e.key&&ei()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[er,I,ei]);var es=Ob(B)?B:{preset:B},el=null!=(r=es.variants)?r:Op[null!=(a=es.preset)?a:"scale"],eu={duration:null!=(i=es.duration)?i:.25,ease:null!=(o=es.ease)?o:[.16,1,.3,1]},ec={duration:null!=(s=null==z?void 0:z.duration)?s:.2,ease:null!=(l=null==z?void 0:z.ease)?l:"easeOut"},ed=(0,m.jsx)(Eh,{children:er&&(0,m.jsxs)("div",{className:Om.root,children:[(void 0===L||L)&&!Q&&(0,m.jsx)(mY.div,{className:v()(Om.overlay,$),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ec,onClick:void 0===N||N?ei:void 0,"aria-hidden":"true"}),Q?(0,m.jsx)(mY.div,{ref:ee,className:v()(Om.dockBubble,Om["dockBubble--".concat(Q.side)]),style:Oy({top:Q.y,width:T,height:T},Q.side,-(T/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:eo,initial:{scale:.3,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.3,opacity:0},transition:{type:"spring",stiffness:420,damping:32},whileDrag:{cursor:"grabbing"},role:"button",tabIndex:0,"aria-label":"D\xe9ployer le modal",onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&J(null)},children:null!=O?O:(0,m.jsx)(eQ,{size:20})}):(0,m.jsx)("div",{className:Om.centerLayer,children:(0,m.jsx)(mY.div,{ref:ee,role:"dialog","aria-modal":"true","aria-labelledby":(null==w?void 0:w.title)?et:void 0,className:v()(Om.panel,U),style:W,variants:el,initial:"initial",animate:"animate",exit:"exit",transition:eu,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:E?eo:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,m.jsxs)(M,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Oy(e,t,n[t])})}return e}({variant:void 0===b?"default":b},w),n=n={children:[(void 0===y||y)&&(g?g(ei):(0,m.jsx)("button",{type:"button",className:Om.closeButton,onClick:ei,"aria-label":"Fermer",children:(0,m.jsx)(eO,{size:18})})),p]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})})]})});return(0,m.jsxs)(m.Fragment,{children:[f&&(0,m.jsx)("span",{className:Om.triggerWrap,onClick:function(){return ea(!0)},children:f}),K&&(0,rC.createPortal)(ed,document.body)]})},Ox=(0,h.createContext)(null);function OS(){var e=(0,h.useContext)(Ox);if(!e)throw Error("Select compound components must be used within <Select>");return e}function Oj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OE(e){var t,n=e.children,r=e.options,a=e.selectedOptionId,i=e.onOptionChange,o=e.open,s=e.onOpenChange,l=e.getOptionId,u=void 0===l?function(e){return e.id}:l,c=e.getOptionName,d=void 0===c?function(e){return e.name}:c,f=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Oj(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oj(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],y=f[1],g=(0,h.useRef)(null),v=void 0!==o,b=v?o:p,w=(0,h.useCallback)(function(e){null==s||s(e),v||y(e)},[s,v]),x=(0,h.useMemo)(function(){var e;return a&&null!=(e=r.find(function(e){return u(e)===a}))?e:r[0]},[r,a,u]),S=(0,h.useCallback)(function(e){null==i||i(e),w(!1)},[i,w]);return(0,m.jsx)(Ox.Provider,{value:{open:b,setOpen:w,selectedOption:x,options:r,onOptionSelect:S,getOptionId:u,getOptionName:d,triggerRef:g},children:n})}function OO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ok=function(e){var t,n=e.src,r=e.name,a=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return OO(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OO(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1];return n&&!i?(0,m.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:n,alt:"",onError:function(){return o(!0)}}):(0,m.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:r.charAt(0).toUpperCase()})};function OD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OP=function(e){var t,n,r=e.className,a=e.renderTrigger,i=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["className","renderTrigger","showAvatar","placeholder"]),l=OS(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,m.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){OD(e,t,n[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:v()("t3j-WppHuYF4Q80G8ssYTw==",r),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),n=n={children:[a?a(d,u):(0,m.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,m.jsxs)(m.Fragment,{children:[(void 0===i||i)&&(0,m.jsx)(Ok,{src:d.logo,name:f(d)}),(0,m.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,m.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,m.jsx)(ex,{className:v()("Mx+cKK19Fg1ZkYsq9XTF+Q==",OD({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};function OA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OA(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ON=function(e){var t=e.className,n=e.style,r=e.renderOption,a=e.title,i=void 0===a?"Options":a,o=e.searchable,s=e.searchPlaceholder,l=void 0===s?"Rechercher…":s,u=e.onSearch,c=e.emptyMessage,d=e.showAvatar,f=void 0===d||d,p=e.children,y=OS(),g=y.open,b=y.setOpen,w=y.options,x=y.selectedOption,S=y.onOptionSelect,j=y.getOptionId,E=y.getOptionName,O=y.triggerRef,k=OT((0,h.useState)(""),2),D=k[0],P=k[1],A=OT((0,h.useState)(null),2),C=A[0],T=A[1],N=(0,h.useRef)(null);(0,h.useLayoutEffect)(function(){if(g&&O.current){var e=O.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})}},[g,O]),(0,h.useLayoutEffect)(function(){if(g){var e=function(e){var t,n,r=e.target;(null==(t=N.current)?void 0:t.contains(r))||(null==(n=O.current)?void 0:n.contains(r))||b(!1)},t=function(e){"Escape"===e.key&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[g,b,O]),(0,h.useLayoutEffect)(function(){null==u||u(D)},[D,u]);var R=(0,h.useMemo)(function(){if(!D.trim())return w;var e=D.trim().toLowerCase();return w.filter(function(t){return E(t).toLowerCase().includes(e)})},[w,D,E]);return(0,m.jsx)(Eh,{children:g&&C&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,m.jsxs)(mY.div,{ref:N,role:"listbox",className:v()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){OC(e,t,n[t])})}return e}({top:C.top,left:C.left,minWidth:C.width},n),initial:{opacity:0,y:-6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.98,transition:{duration:.15}},transition:{duration:.18,ease:"easeOut"},children:[i&&(0,m.jsx)("div",{className:"A2JDtexU43VW64EghIpTQA==",children:(0,m.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:i})}),void 0!==o&&o&&(0,m.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,m.jsx)(tl,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,m.jsx)("input",{type:"search",value:D,onChange:function(e){return P(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,m.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===R.length?(0,m.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):R.map(function(e){var t=!!(x&&j(x)===j(e));return(0,m.jsx)("button",{type:"button",role:"option","aria-selected":t,className:v()("mqfrCZDVzn25GOVXds14vw==",OC({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return S(e)},children:r?r(e,t):(0,m.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,m.jsx)(Ok,{src:e.logo,name:E(e)}),(0,m.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,m.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:E(e)}),"string"==typeof e.plan&&(0,m.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,m.jsx)(eb,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},j(e))})}),p&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,m.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let OR="YDxgnSM2QPGOYYICdgjq7Q==";function OM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||OL(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OL(e,t){if(e){if("string"==typeof e)return OM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OM(e,t)}}function O_(e){var t=e.options,n=e.defaultActiveIndex,r=e.onChange,a=e.title,i=e.subtitle,o=e.className,s=e.style,l=OI((0,h.useState)(void 0===n?0:n),2),u=l[0],c=l[1],d=OI((0,h.useState)([]),2),f=d[0],p=d[1],y=function(e){e!==u&&(c(e),null==r||r(e))};return(0,h.useEffect)(function(){var e=[];return t.forEach(function(t,n){var r=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return OM(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OL(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([n])})},180*n);e.push(r)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,m.jsxs)("div",{className:v()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(a||i)&&(0,m.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[a&&(0,m.jsx)("h1",{className:v()("TsIf8Q8vAVSLc-vC4h6-UA==",OR,"CUA6-RpM0KPkwxkPhWbpzg=="),children:a}),i&&(0,m.jsx)("p",{className:v()("GiaxLFLhrXHmZTTZjk2qqg==",OR,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:i})]}),(0,m.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,m.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var n=u===t,r=f.includes(t);return(0,m.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":n,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:n?"auto 100%":"auto 120%",opacity:+!!r,transform:r?"translateX(0)":"translateX(-60px)",borderColor:n?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:n?"0 20px 60px color-mix(in srgb, var(--colors-neutral-950) 50%, transparent)":"0 10px 30px color-mix(in srgb, var(--colors-neutral-950) 30%, transparent)",flex:n?"7 1 0%":"1 1 0%",zIndex:n?10:1},onClick:function(){return y(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),y(t))},children:[(0,m.jsx)("div",{className:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:n?"0":"-40px",boxShadow:n?"inset 0 -120px 120px -120px var(--colors-neutral-950), inset 0 -120px 120px -80px var(--colors-neutral-950)":"inset 0 -120px 0px -120px var(--colors-neutral-950), inset 0 -120px 0px -80px var(--colors-neutral-950)"}}),(0,m.jsxs)("div",{className:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,m.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,m.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,m.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.title}),(0,m.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function OF(){cR.current||cI();let[e]=(0,h.useState)(cN.current);return e}function OV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function OB(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var Oz=function(e){return OV({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},e)},OU=function(e){return(0,m.jsx)("svg",OB(OV({},Oz(e)),{children:(0,m.jsx)("path",{d:"m6 9 6 6 6-6"})}))},OW=function(e){return(0,m.jsx)("svg",OB(OV({},Oz(e)),{children:(0,m.jsx)("path",{d:"M20 6 9 17l-5-5"})}))},O$=function(e){return(0,m.jsxs)("svg",OB(OV({},Oz(e)),{children:[(0,m.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,m.jsx)("path",{d:"m7 9 5-5 5 5"})]}))},OH=function(e){return(0,m.jsxs)("svg",OB(OV({},Oz(e)),{children:[(0,m.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,m.jsx)("path",{d:"m21 21-4.3-4.3"})]}))},OG=function(e){return(0,m.jsxs)("svg",OB(OV({},Oz(e)),{children:[(0,m.jsx)("path",{d:"M18 6 6 18"}),(0,m.jsx)("path",{d:"m6 6 12 12"})]}))},Oq=function(e){return(0,m.jsx)("svg",OB(OV({},Oz(e)),{children:(0,m.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}))};function OY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OY(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var OZ={type:"spring",duration:.5,bounce:.22},OX="flex w-full items-center justify-between gap-2 px-3.5 py-2.5 text-sm",OQ={hidden:{opacity:0,y:-6,filter:"blur(3px)"},show:{opacity:1,y:0,filter:"blur(0px)"}},OJ=(0,h.createContext)(null);function O0(e){var t=(0,h.useContext)(OJ);if(!t)throw Error("".concat(e," must be used within <MorphSelect>"));return t}function O1(e){var t,n=e.value,r=e.defaultValue,a=e.onValueChange,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.disabled,u=void 0!==l&&l,c=e.transition,d=void 0===c?OZ:c,f=e.radius,p=void 0===f?12:f,y=e.stagger,g=void 0===y?.035:y,v=e.staggerDelay,b=void 0===v?.08:v,w=e.className,x=e.children,S=null!=(t=OF())&&t,j=(0,h.useId)(),E=(0,h.useRef)(null),O=OK((0,h.useState)(void 0!==o&&o),2),k=O[0],D=O[1],P=void 0!==i,A=P?i:k,C=(0,h.useCallback)(function(e){P||D(e),null==s||s(e)},[P,s]),T=OK((0,h.useState)(r),2),N=T[0],R=T[1],M=OK((0,h.useState)(new Map),2),I=M[0],L=M[1],_=OK((0,h.useState)("Select"),2),F=_[0],V=_[1],B=void 0!==n,z=B?n:N,U=(0,h.useCallback)(function(e){B||R(e),null==a||a(e),C(!1)},[B,a,C]),W=(0,h.useCallback)(function(e,t){L(function(n){var r,a,i=new Map(n);return i.set(e,{label:t,count:(null!=(r=null==(a=n.get(e))?void 0:a.count)?r:0)+1}),i})},[]),$=(0,h.useCallback)(function(e){L(function(t){var n=t.get(e);if(!n)return t;var r=new Map(t);return n.count<=1?r.delete(e):r.set(e,{label:n.label,count:n.count-1}),r})},[]);(0,h.useEffect)(function(){if(A){var e=function(e){return"Escape"===e.key&&C(!1)},t=function(e){E.current&&!E.current.contains(e.target)&&C(!1)};return window.addEventListener("keydown",e),window.addEventListener("pointerdown",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t)}}},[A,C]);var H=(0,h.useMemo)(function(){return{value:z,open:A,setOpen:C,select:U,register:W,unregister:$,labelFor:function(e){var t;return void 0===e||null==(t=I.get(e))?void 0:t.label},placeholder:F,setPlaceholder:V,reduce:S,layoutId:"".concat(j,"-surface"),triggerId:"".concat(j,"-trigger"),listId:"".concat(j,"-list"),disabled:u,transition:d,radius:p,stagger:g,staggerDelay:b}},[z,A,C,U,W,$,I,F,S,j,u,d,p,g,b]);return(0,m.jsx)(OJ.Provider,{value:H,children:(0,m.jsx)("div",{ref:E,className:ya("relative",w),children:x})})}function O2(e){var t,n=e.placeholder,r=e.className,a=O0("MorphSelectValue");(0,h.useEffect)(function(){n&&a.setPlaceholder(n)},[n,a.setPlaceholder]);var i=a.labelFor(a.value);return(0,m.jsx)("span",{className:ya(i?"text-foreground":"text-muted-foreground",r),children:null!=(t=null!=i?i:n)?t:"Select"})}function O3(e){var t,n,r=e.className,a=e.icon,i=e.children,o=O0("MorphSelectTrigger"),s=null!=a?a:(0,m.jsx)(OU,{className:"h-4 w-4"});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"aria-hidden":!0},{inert:""}),n=n={className:ya(OX,"invisible rounded-xl border border-border"),children:[i,s]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)),(0,m.jsx)(Eh,{initial:!1,mode:"popLayout",children:o.open?null:(0,m.jsxs)(mY.button,{layoutId:o.layoutId,type:"button",id:o.triggerId,disabled:o.disabled,"aria-haspopup":"listbox","aria-expanded":o.open,"aria-controls":o.listId,onClick:function(){return o.setOpen(!0)},transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:ya(OX,"absolute inset-x-0 top-0 z-10 border border-border bg-background text-foreground outline-none transition-colors","hover:border-input focus-visible:ring-2 focus-visible:ring-foreground/20","disabled:pointer-events-none disabled:opacity-50",r),children:[(0,m.jsx)(mY.span,{layout:"position",className:"min-w-0 truncate",children:i}),(0,m.jsx)(mY.span,{layout:"position",className:"text-muted-foreground",children:s})]},"trigger")})]})}function O4(e){var t=e.className,n=e.headerClassName,r=e.listClassName,a=e.icon,i=e.children,o=O0("MorphSelectContent"),s=o.labelFor(o.value),l=(0,h.useMemo)(function(){return{hidden:{},show:{transition:{staggerChildren:o.stagger,delayChildren:o.staggerDelay}}}},[o.stagger,o.staggerDelay]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"hidden",children:i}),(0,m.jsx)(Eh,{initial:!1,mode:"popLayout",children:o.open?(0,m.jsxs)(mY.div,{layoutId:o.layoutId,id:o.listId,role:"listbox","aria-labelledby":o.triggerId,transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:ya("absolute inset-x-0 top-0 z-30 overflow-hidden border border-border bg-background shadow-lg",t),children:[(0,m.jsxs)(mY.button,{type:"button",layout:"position","aria-expanded":!0,onClick:function(){return o.setOpen(!1)},className:ya(OX,"outline-none",n),children:[(0,m.jsx)("span",{className:ya("min-w-0 truncate",s?"text-foreground":"text-muted-foreground"),children:null!=s?s:o.placeholder}),(0,m.jsx)(mY.span,{animate:{rotate:180},transition:o.reduce?{duration:0}:o.transition,className:"text-muted-foreground",children:null!=a?a:(0,m.jsx)(OU,{className:"h-4 w-4"})})]}),(0,m.jsx)("div",{className:"h-px bg-border"}),(0,m.jsx)(mY.ul,{initial:"hidden",animate:"show",variants:o.reduce?void 0:l,className:ya("p-1",r),children:i})]},"panel"):null})]})}function O5(e){var t=e.value,n=e.disabled,r=e.label,a=e.indicator,i=e.className,o=e.children,s=O0("MorphSelectItem"),l=s.value===t,u=null!=r?r:"string"==typeof o?o:t;return(0,h.useLayoutEffect)(function(){return s.register(t,u),function(){return s.unregister(t)}},[s.register,s.unregister,t,u]),(0,m.jsx)(mY.li,{variants:s.reduce?void 0:OQ,children:(0,m.jsxs)("button",{type:"button",role:"option","aria-selected":l,disabled:void 0!==n&&n,onClick:function(){return s.select(t)},className:ya("flex w-full items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm outline-none transition-colors",l?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:bg-muted","disabled:pointer-events-none disabled:opacity-50",i),children:[o,l?null!=a?a:(0,m.jsx)(OW,{className:"h-3.5 w-3.5 shrink-0"}):null]})})}function O6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O8(e){if(Array.isArray(e))return e}function O9(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function O7(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ke(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function kn(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function kr(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function ka(e,t){return O8(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||ko(e,t)||ke()}function ki(e){return O8(e)||O7(e)||ko(e)||ke()}function ko(e,t){if(e){if("string"==typeof e)return O6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O6(e,t)}}var ks=function(e){var t=e.state;return(0,m.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 text-muted-foreground transition-colors group-hover:text-foreground pointer-events-none",children:(0,m.jsx)("path",{d:"x"===t?"M 6 18 L 18 6 M 18 18 L 6 6":"up"===t?"M 6 15 L 12 9 M 18 15 L 12 9":"M 6 9 L 12 15 M 18 9 L 12 15",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",style:{transition:"d 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}})})},kl=function(e){var t=e.className;return(0,m.jsx)("svg",{viewBox:"0 0 24 24",className:ya("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,m.jsx)("polyline",{points:"20 6 9 17 4 12"})})},ku=function(e){var t=e.className;return(0,m.jsxs)("svg",{viewBox:"0 0 24 24",className:ya("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,m.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},kc=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=ka(h.useState(!1),2),n=t[0],r=t[1],a=h.useRef(null),i=h.useRef(null),o=h.useRef(null),s=function(t){if(!e&&a.current&&i.current){r(!0),null==(n=o.current)||n.cancel();var n,s=a.current.getBoundingClientRect(),l=Math.max(s.width,s.height),u=Math.max(.35*l,75),c=Math.floor(.2*l),d=Math.sqrt(Math.pow(s.width,2)+Math.pow(s.height,2)),f=Math.min(Math.max(400,1.5*d),1e3),p={x:(s.width-c)/2,y:(s.height-c)/2},m=p;t&&"clientX"in t&&(m={x:t.clientX-s.left-c/2,y:t.clientY-s.top-c/2}),i.current.style.width="".concat(c,"px"),i.current.style.height="".concat(c,"px"),o.current=i.current.animate([{transform:"translate(".concat(m.x,"px, ").concat(m.y,"px) scale(1)")},{transform:"translate(".concat(p.x,"px, ").concat(p.y,"px) scale(").concat((d+10+u)/c,")")}],{duration:f,easing:"cubic-bezier(0.2, 0, 0, 1)",fill:"forwards"})}},l=function(){var e;return(e=function(){var e;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!((e=o.current)&&"number"==typeof e.currentTime&&e.currentTime<300))return[3,2];return[4,new Promise(function(t){return setTimeout(t,300-e.currentTime)})];case 1:t.sent(),t.label=2;case 2:return r(!1),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){O9(i,r,a,o,s,"next",e)}function s(e){O9(i,r,a,o,s,"throw",e)}o(void 0)})})()};return{surfaceRef:a,rippleRef:i,pressed:n,events:{onPointerDown:function(e){0===e.button&&s(e)},onPointerUp:l,onPointerLeave:l,onPointerCancel:l}}},kd=h.forwardRef(function(e,t){var n=e.pressed,r=e.rippleRef;return(0,m.jsxs)("div",{ref:t,className:"absolute inset-0 overflow-hidden rounded-[inherit] pointer-events-none z-0",children:[(0,m.jsx)("div",{className:"absolute inset-0 bg-current opacity-0 transition-opacity duration-200 group-hover/m3item:opacity-[0.08] group-data-[active=true]:opacity-[0.08]"}),(0,m.jsx)("div",{ref:r,className:"absolute rounded-full opacity-0 bg-current",style:{background:"radial-gradient(closest-side, currentColor max(calc(100% - 70px), 65%), transparent 100%)",transition:"opacity 375ms linear",opacity:n?"0.12":"0",transitionDuration:n?"100ms":"375ms"}})]})});kd.displayName="RippleLayer";var kf=h.forwardRef(function(e,t){var n=ki([e,t]),r=n[0],a=n.slice(1),i=r.children,o=r.className,s=r.viewportRef,l=kr(r,["children","className","viewportRef"]),u=ka(a,1)[0],c=h.useRef(null),d=s||c,f=h.useRef(null),p=h.useRef(null),y=ka(h.useState(0),2),g=y[0],v=y[1],b=ka(h.useState(0),2),w=b[0],x=b[1],S=ka(h.useState(!1),2),j=S[0],E=S[1],O=h.useRef({startY:0,startScrollTop:0}),k=h.useCallback(function(){if(d.current){var e=d.current,t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;if(f.current&&(f.current.style.opacity=t>0?"1":"0"),p.current&&(p.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1"),n>r){var a=Math.max(r/n*r,30);v(a),x((r-a)/(n-r)*t)}else v(0)}},[d]);return h.useEffect(function(){var e=d.current;if(e){k();var t=new ResizeObserver(function(){return k()});t.observe(e),e.firstElementChild&&t.observe(e.firstElementChild);var n=new MutationObserver(function(){return k()});return n.observe(e,{childList:!0,subtree:!0,characterData:!0}),function(){t.disconnect(),n.disconnect()}}},[k,d]),h.useEffect(function(){if(j){var e=function(e){if(d.current){var t=e.clientY-O.current.startY,n=d.current,r=n.scrollHeight,a=n.clientHeight,i=Math.max(a/r*a,30);d.current.scrollTop=O.current.startScrollTop+(r-a)/(a-i)*t}},t=function(){E(!1),document.body.style.userSelect=""};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),function(){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}}},[j,d]),(0,m.jsxs)("div",kn(kt({ref:u,"data-dragging":j,className:ya("relative overflow-hidden group/scroll",o)},l),{children:[(0,m.jsx)("div",{ref:f,className:"absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),(0,m.jsx)("div",{ref:d,onScroll:k,style:{maxHeight:"inherit"},className:"w-full overflow-y-auto m3-hide-scroll rounded-[inherit]",children:i}),(0,m.jsx)("div",{ref:p,className:"absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),g>0&&(0,m.jsx)("div",{className:ya("absolute inset-y-0 right-0 z-50 flex items-start justify-end py-0.5 px-0.5 w-4 transition-opacity duration-300 cursor-default","opacity-0 pointer-events-none","group-hover/scroll:opacity-100 group-hover/scroll:pointer-events-auto","group-data-[dragging=true]/scroll:opacity-100 group-data-[dragging=true]/scroll:pointer-events-auto"),children:(0,m.jsx)("div",{className:ya("bg-border rounded-full transition-all duration-200 cursor-default touch-none shadow-sm","w-1 hover:w-1.5 hover:bg-muted-foreground","group-data-[dragging=true]/scroll:w-1.5 group-data-[dragging=true]/scroll:bg-muted-foreground"),style:{height:g,transform:"translateY(".concat(w,"px)")},onPointerDown:function(e){var t;e.preventDefault(),e.stopPropagation(),E(!0),O.current={startY:e.clientY,startScrollTop:(null==(t=d.current)?void 0:t.scrollTop)||0},document.body.style.userSelect="none"}})})]}))});kf.displayName="CustomFloatingScrollArea";var kp=function(){return(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n @keyframes m3-auto-item-cinematic { \n 0% { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); } \n 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } \n }\n \n @keyframes m3-chip-enter { \n 0% { opacity: 0; transform: scale(0.8) translate3d(8px, 0, 0); } \n 100% { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } \n }\n\n .m3-chip-animate {\n animation: m3-chip-enter 200ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;\n }\n \n .m3-auto-container[data-state="open"] .m3-auto-item { \n opacity: 0; \n animation: m3-auto-item-cinematic 350ms cubic-bezier(0.1, 0.8, 0.2, 1) forwards; \n }\n\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(1) { animation-delay: 50ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(2) { animation-delay: 100ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(3) { animation-delay: 150ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(4) { animation-delay: 200ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(n+5) { animation-delay: 250ms; }\n\n .m3-hide-scroll {\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n .m3-hide-scroll::-webkit-scrollbar {\n display: none;\n }\n '}})},km=h.forwardRef(function(e,t){var n=ki([e,t]),r=n[0],a=n.slice(1),i=r.className,o=r.children,s=r.isActive,l=r.isSelected,u=r.onSelectAction,c=kr(r,["className","children","isActive","isSelected","onSelectAction"]),d=ka(a,1)[0],f=kc(),p=f.surfaceRef,h=f.rippleRef,y=f.pressed,g=f.events;return(0,m.jsxs)("li",kn(kt({ref:function(e){p.current=e,"function"==typeof d?d(e):d&&(d.current=e)},role:"option","aria-selected":l,"data-active":s,className:ya("m3-auto-item group/m3item relative flex items-center p-3 px-4 cursor-pointer text-sm outline-none transition-colors overflow-hidden",s&&"bg-secondary/50 text-secondary-foreground",i),onMouseDown:function(e){e.preventDefault()},onClick:function(){setTimeout(function(){return u()},150)}},g,c),{children:[(0,m.jsx)(kd,{rippleRef:h,pressed:y}),(0,m.jsx)("span",{className:"relative z-10 flex w-full items-center pointer-events-none",children:o})]}))});function kh(e){var t=e.items,n=e.placeholder,r=e.emptyMessage,a=e.value,i=e.onValueChange,o=e.disabled,s=e.isCreatable,l=e.onCreate,u=e.className,c=e.onInputChange,d=e.loading,f=e.filterFn,p=e.debounceInterval,y=void 0===p?0:p,g=e.name,v=e.id,b=e.required,w=e["aria-label"],x=e["aria-labelledby"],S=e.maxOptions,j=e.minOptions,E=e.classNames,O=e.labels,k=e.renderItem,D=e.maxListHeight,P=void 0===D?260:D,A=e.chipMaxWidth,C=void 0===A?120:A,T=e.style,N=Array.isArray(a),R=null!=(eE=null==O?void 0:O.empty)?eE:void 0===r?"No results found.":r,M=null!=(eO=null==O?void 0:O.loading)?eO:"Loading results...",I=null!=(ek=null==O?void 0:O.clear)?ek:"Clear",L=null!=(eD=null==O?void 0:O.toggle)?eD:"Toggle options",_=null!=(eP=null==O?void 0:O.create)?eP:function(e){return'Create "'.concat(e,'"')},F=h.useId(),V=v?"".concat(v,"-listbox"):"".concat(F,"-listbox"),B=function(e){return"".concat(V,"-option-").concat(e)},z=ka(h.useState(function(){if(a){var e;return Array.isArray(a)?"":(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||""}return""}),2),U=z[0],W=z[1],$=ka(h.useState(U),2),H=$[0],G=$[1],q=ka(h.useState(!1),2),Y=q[0],K=q[1],Z=ka(h.useState("closed"),2),X=Z[0],Q=Z[1],J=ka(h.useState(-1),2),ee=J[0],et=J[1],en=h.useRef("mouse"),er=ka(h.useState("bottom"),2),ea=er[0],ei=er[1],eo=ka(h.useState(P),2),es=eo[0],el=eo[1],eu=h.useRef(null),ec=h.useRef(null),ed=h.useRef(null),ef=h.useRef(null),ep=h.useRef(null),em=h.useRef(null),eh=h.useRef(null),ey=h.useRef(null),eg=h.useRef(null),ev=ka(h.useState(a),2),eb=ev[0],ew=ev[1],ex=ka(h.useState(t),2),eS=ex[0],ej=ex[1];if(a!==eb||t!==eS)if(ew(a),ej(t),N)a&&0!==a.length||(W(""),G(""));else if(a){var eE,eO,ek,eD,eP,eA,eC=(null==(eA=t.find(function(e){return e.value===a}))?void 0:eA.label)||"";W(eC),G(eC)}else W(""),G("");var eT=kc(o),eN=eT.surfaceRef,eR=eT.rippleRef,eM=eT.pressed,eI=eT.events,eL=kc(o),e_=eL.surfaceRef,eF=eL.rippleRef,eV=eL.pressed,eB=eL.events,ez=h.useMemo(function(){return!1===f||null===f?t:f?t.filter(function(e){return f(e,H)}):H?t.filter(function(e){return e.label.toLowerCase().includes(H.toLowerCase())}):t},[t,H,f]),eU=ka(h.useState(ez),2),eW=eU[0],e$=eU[1];h.useEffect(function(){"open"===X&&e$(ez)},[ez,X]);var eH=h.useCallback(function(){if(ec.current){var e=ec.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top,r=t<280&&n>t?"top":"bottom";ei(r),el(Math.max(100,Math.min(P,("bottom"===r?t:n)-16)))}},[P]);h.useEffect(function(){var e=ec.current;if(e){var t=new ResizeObserver(function(){eH()});return t.observe(e),e.parentElement&&t.observe(e.parentElement),window.addEventListener("resize",eH),function(){t.disconnect(),window.removeEventListener("resize",eH)}}},[eH]),h.useEffect(function(){if(Y)return window.addEventListener("scroll",eH,{capture:!0,passive:!0}),function(){window.removeEventListener("scroll",eH,!0)}},[Y,eH]);var eG=h.useCallback(function(e){W(e),eg.current&&clearTimeout(eg.current),y&&y>0?eg.current=setTimeout(function(){G(e),c&&c(e)},y):(G(e),c&&c(e))},[y,c]),eq=h.useCallback(function(e){if(K(!0),Q("open"),ey.current&&clearTimeout(ey.current),"number"==typeof e)et(e);else{var t=ez.findIndex(function(e){return e.value===a});et(t>=0?t:-1)}},[ez,a]),eY=h.useCallback(function(){if(K(!1),Q("closing"),et(-1),N)W(""),G("");else if(a){var e,n=(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||"";W(n),G(n)}else W(""),G("");ey.current&&clearTimeout(ey.current),ey.current=setTimeout(function(){Q(function(e){return"closing"===e?"closed":e})},300)},[a,t,N]);h.useEffect(function(){return function(){ey.current&&clearTimeout(ey.current),eg.current&&clearTimeout(eg.current)}},[]),h.useEffect(function(){var e=function(e){ec.current&&!ec.current.contains(e.target)&&Y&&eY()};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[Y,eY]),h.useEffect(function(){if(ee>=0&&ed.current&&"keyboard"===en.current){var e=ed.current.children[ee];e&&e.scrollIntoView({block:"nearest"})}},[ee]);var eK=h.useCallback(function(){var e=ep.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;em.current&&(em.current.style.opacity=t>1?"1":"0"),eh.current&&(eh.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1")}},[]),eZ=h.useRef(0);h.useEffect(function(){if(N){var e=ep.current;if(e){var t=(null==a?void 0:a.length)||0;t>eZ.current&&requestAnimationFrame(function(){e.scrollLeft=e.scrollWidth}),eZ.current=t}}},[a,N]),h.useEffect(function(){var e,t,n=ep.current;if(n){var r=!1,a=function(a){r=!0,e=a.pageX-n.offsetLeft,t=n.scrollLeft,document.body.style.userSelect="none"},i=function(){r&&(r=!1,document.body.style.userSelect="")},o=function(a){if(r){a.preventDefault();var i=(a.pageX-n.offsetLeft-e)*1.5;n.scrollLeft=t-i}},s=function(e){0!==e.deltaY&&(e.preventDefault(),n.scrollLeft+=e.deltaY)};n.addEventListener("mousedown",a),n.addEventListener("mouseleave",i),n.addEventListener("mouseup",i),n.addEventListener("mousemove",o),n.addEventListener("wheel",s,{passive:!1}),eK(),n.addEventListener("scroll",eK);var l=new ResizeObserver(function(){return eK()});return l.observe(n),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseleave",i),n.removeEventListener("mouseup",i),n.removeEventListener("mousemove",o),n.removeEventListener("wheel",s),n.removeEventListener("scroll",eK),l.disconnect(),document.body.style.userSelect=""}}},[Y,a,eK]);var eX=void 0!==s&&s&&U.length>0&&!t.some(function(e){return e.label.toLowerCase()===U.toLowerCase()}),eQ=function(e){var n;if(N){var r,o,s=a||[];if(s.includes(e)){if("number"==typeof j&&s.length<=j){null==(r=eu.current)||r.focus();return}var l=s.filter(function(t){return t!==e});i&&i(l)}else{if("number"==typeof S&&s.length>=S){null==(o=eu.current)||o.focus();return}var u=((function(e){if(Array.isArray(e))return O6(e)})(s)||O7(s)||ko(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);i&&i(u)}W(""),G(""),c&&c("")}else{if(a===e)W(""),G(""),i&&i("");else{var d,f=(null==(d=t.find(function(t){return t.value===e}))?void 0:d.label)||"";W(f),G(f),i&&i(e)}eY()}null==(n=eu.current)||n.focus()},eJ=function(){var e;l&&U&&l(U),N||eY(),null==(e=eu.current)||e.focus()},e0=U.length>0?"x":Y?"up":"down",e1="closing"===X?eW:ez,e2=N&&(a||[]).length>0,e3=h.useCallback(function(e){if(!N)return!1;var t=a||[];return!t.includes(e)&&"number"==typeof S&&!!(t.length>=S)},[N,a,S]),e4=Y||"closing"===X;return(0,m.jsxs)("div",{ref:ec,style:T,className:ya("relative w-full transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",e2?"h-[5.25rem]":"h-11",u,null==E?void 0:E.root),children:[(0,m.jsx)(kp,{}),g&&(N?(a||[]).length>0?(a||[]).map(function(e){return(0,m.jsx)("input",{type:"hidden",name:g,value:e},e)}):(0,m.jsx)("input",{type:"hidden",name:g,value:"",required:b}):(0,m.jsx)("input",{type:"hidden",name:g,value:a||"",required:b})),(0,m.jsxs)("div",{"data-state":X,className:ya("m3-auto-container absolute inset-x-0 flex bg-card overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]","top"===ea?"bottom-0 flex-col-reverse":"top-0 flex-col",e4?"z-50 rounded-[1.25rem] border border-border shadow-[0px_16px_32px_rgba(0,0,0,0.14)]":"z-10 rounded-xl border border-input/60 shadow-sm hover:border-input h-full",null==E?void 0:E.container),children:[(0,m.jsxs)("div",{className:ya("relative flex items-center w-full h-11 flex-shrink-0 pl-4 pr-1.5 z-30",null==E?void 0:E.inputRow),children:[(0,m.jsx)("input",{ref:eu,id:v,role:"combobox","aria-expanded":Y,"aria-autocomplete":"list","aria-controls":V,"aria-activedescendant":ee>=0?B(ee):void 0,"aria-label":w,"aria-labelledby":x,value:U,onChange:function(e){var t=e.target.value;eG(t);var n=t.length>0?0:-1;Y?et(n):eq(n),en.current="keyboard"},onFocus:function(){return eq()},onKeyDown:function(e){var t=ez.length+ +!!eX;if("Tab"===e.key){Y&&eY();return}if(!Y&&("ArrowDown"===e.key||"ArrowUp"===e.key)){e.preventDefault(),eq();return}if(0!==t)switch(e.key){case"ArrowDown":e.preventDefault(),en.current="keyboard",et(function(e){return(e+1)%t});break;case"ArrowUp":e.preventDefault(),en.current="keyboard",et(function(e){return(e-1+t)%t});break;case"Home":e.preventDefault(),en.current="keyboard",et(0);break;case"End":e.preventDefault(),en.current="keyboard",et(t-1);break;case"Enter":if(e.preventDefault(),ee>=0)if(ee<ez.length){var n=ez[ee],r=N&&a||[],i=r.includes(n.value);N&&!i&&"number"==typeof S&&r.length>=S||eQ(n.value)}else eX&&eJ();break;case"Escape":eY()}},disabled:o,placeholder:n||"Select an option...",autoComplete:"off",className:ya("flex-1 h-full bg-transparent outline-none text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==E?void 0:E.input)}),(0,m.jsxs)("button",kn(kt({ref:eN,type:"button",tabIndex:-1,className:ya("p-1.5 rounded-full z-20 hover:bg-muted/50 transition-all relative overflow-hidden h-8 w-8 flex items-center justify-center flex-shrink-0",null==E?void 0:E.toggleButton),onClick:function(e){var t;e.preventDefault(),null==(t=eu.current)||t.focus(),U.length>0?(eG(""),!N&&i&&i(""),Y||eq(-1)):Y?eY():eq()},disabled:o,"aria-label":L},eI),{children:[(0,m.jsx)(kd,{rippleRef:eR,pressed:eM}),(0,m.jsx)("span",{className:"relative z-10 flex items-center justify-center pointer-events-none",children:(0,m.jsx)(ks,{state:e0})})]}))]}),N&&(a||[]).length>0&&(0,m.jsxs)("div",{className:ya("relative flex items-center justify-between h-10 overflow-hidden flex-shrink-0 border-border/40","top"===ea?"border-b":"border-t",null==E?void 0:E.chipsRow),children:[(0,m.jsx)("div",{ref:em,className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(0,m.jsx)("div",{ref:ep,className:"flex items-center gap-1.5 overflow-x-auto m3-hide-scroll flex-1 min-w-0 h-full py-0.5 pl-4 pr-12 select-none cursor-default",children:(a||[]).map(function(e){var n=t.find(function(t){return t.value===e});return n?(0,m.jsxs)("button",{type:"button",className:ya("m3-chip-animate group/chip relative flex items-center h-6 px-3 bg-secondary text-secondary-foreground text-xs font-medium rounded-full flex-shrink-0 transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] overflow-hidden cursor-default select-none",null==E?void 0:E.chip),onClick:function(){var t,n=a||[];if("number"!=typeof j||!(n.length<=j)){var r=n.filter(function(t){return t!==e});i&&i(r),null==(t=eu.current)||t.focus()}},children:[(0,m.jsx)("span",{className:"truncate",style:{maxWidth:C},children:n.label}),(0,m.jsx)("div",{className:"absolute inset-y-0 right-0 w-8 flex items-center justify-end pr-2 bg-gradient-to-l from-secondary via-secondary/90 to-transparent opacity-0 translate-x-2 group-hover/chip:opacity-100 group-hover/chip:translate-x-0 transition-all duration-150 pointer-events-none",children:(0,m.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3 h-3 stroke-current text-muted-foreground",fill:"none",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,m.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,m.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},e):null})}),(0,m.jsx)("div",{ref:eh,className:"absolute right-[60px] top-0 bottom-0 w-12 bg-gradient-to-l from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(!j||0===j)&&(0,m.jsxs)("button",kn(kt({ref:e_,type:"button",onClick:function(){var e;i&&i([]),null==(e=eu.current)||e.focus()},className:ya("px-3 h-8 rounded-full text-[10px] font-bold uppercase tracking-wider text-muted-foreground hover:bg-muted/50 transition-all relative overflow-hidden flex-shrink-0 flex items-center justify-center mr-1.5 cursor-default z-30",null==E?void 0:E.clearButton)},eB),{children:[(0,m.jsx)(kd,{rippleRef:eF,pressed:eV}),(0,m.jsx)("span",{className:"relative",children:I})]}))]}),(0,m.jsx)("div",{className:ya("grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] relative z-10",Y?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),onMouseDown:function(e){e.preventDefault()},children:(0,m.jsx)("div",{className:"overflow-hidden",children:"closed"!==X&&(0,m.jsx)("div",{className:"flex flex-col w-full",children:(0,m.jsx)(kf,{viewportRef:ef,style:{maxHeight:"".concat(es,"px")},className:"w-full",children:(0,m.jsx)("ul",{ref:ed,id:V,role:"listbox","aria-multiselectable":N,className:ya("w-full text-popover-foreground outline-none pb-2 pt-1",null==E?void 0:E.list),children:void 0!==d&&d?(0,m.jsxs)("li",{className:ya("m3-auto-item p-6 flex flex-col items-center justify-center gap-2 text-xs text-muted-foreground",null==E?void 0:E.loadingState),children:[(0,m.jsxs)("svg",{className:"animate-spin h-5 w-5 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,m.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3.5"}),(0,m.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,m.jsx)("span",{className:"font-medium tracking-wide",children:M})]}):0!==e1.length||eX?(0,m.jsxs)(m.Fragment,{children:[e1.map(function(e,t){var n=e3(e.value),r=N?!!(null==a?void 0:a.includes(e.value)):a===e.value,i=ee===t;return(0,m.jsxs)(km,{id:B(t),isActive:i,isSelected:r,onSelectAction:function(){n||eQ(e.value)},onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==t&&et(t))},className:ya(n&&"opacity-40 cursor-not-allowed pointer-events-none",null==E?void 0:E.item),children:[r&&(0,m.jsx)(kl,{className:"mr-3 flex-shrink-0 text-primary"}),k?k(e,{isActive:i,isSelected:r,isDisabled:n}):(0,m.jsxs)("div",{className:"flex flex-col w-full",children:[(0,m.jsx)("span",{className:"whitespace-normal break-words font-medium",children:e.label}),(e.description||e.tag)&&(0,m.jsxs)("div",{className:"flex justify-between items-center text-[11px] font-medium text-muted-foreground/70 w-full mt-0.5 gap-4",children:[(0,m.jsx)("span",{className:"truncate uppercase tracking-wider",children:e.description}),(0,m.jsx)("span",{className:"truncate",children:e.tag})]})]})]},e.value)}),eX&&(0,m.jsxs)(km,{id:B(ez.length),isActive:ee===ez.length,isSelected:!1,onSelectAction:eJ,onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==ez.length&&et(ez.length))},className:ya("text-primary/90 font-medium border-t border-border/40",null==E?void 0:E.item),children:[(0,m.jsx)(ku,{className:"mr-3 flex-shrink-0"}),(0,m.jsx)("span",{children:_(U)})]})]}):(0,m.jsx)("li",{className:ya("m3-auto-item p-4 px-4 text-sm text-center text-muted-foreground",null==E?void 0:E.emptyState),children:R})})})})})})]})]})}function ky(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||kb(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kv(e){return function(e){if(Array.isArray(e))return ky(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kb(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kb(e,t){if(e){if("string"==typeof e)return ky(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ky(e,t)}}km.displayName="M3AutocompleteItem";var kw=function(e,t){var n,r=t.trim().toLowerCase();return!r||[e.label,e.value,e.description].concat(kv(null!=(n=e.keywords)?n:[])).filter(Boolean).some(function(e){return String(e).toLowerCase().includes(r)})};function kx(e){var t,n,r=e.items,a=e.value,i=e.defaultValue,o=e.onValueChange,s=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.disabled,d=e.placeholder,f=e.searchPlaceholder,p=e.emptyMessage,y=e.searchable,g=e.allowDeselect,v=void 0===g||g,b=e.closeOnSelect,w=void 0===b||b,x=e.filterFn,S=e.onSearchChange,j=e.side,E=void 0===j?"auto":j,O=e.align,k=void 0===O?"center":O,D=e.sideOffset,P=void 0===D?4:D,A=e.renderItem,C=e.renderValue,T=e.triggerIcon,N=e.checkIcon,R=e.name,M=e.id,I=e["aria-label"],L=e.classNames,_=e.className,F=e.style,V=h.useId(),B="".concat(V,"-listbox"),z=function(e){return"".concat(V,"-option-").concat(e)},U=void 0!==a,W=kg(h.useState(void 0===i?"":i),2),$=W[0],H=W[1],G=U?a:$,q=void 0!==s,Y=kg(h.useState(void 0!==l&&l),2),K=Y[0],Z=Y[1],X=q?s:K,Q=h.useCallback(function(e){q||Z(e),null==u||u(e)},[q,u]),J=kg(h.useState(""),2),ee=J[0],et=J[1],en=kg(h.useState(0),2),er=en[0],ea=en[1],ei=kg(h.useState("bottom"),2),eo=ei[0],es=ei[1],el=h.useRef("mouse"),eu=h.useRef(null),ec=h.useRef(null),ed=h.useRef(null),ef=h.useRef(null),ep=h.useMemo(function(){return r.find(function(e){return e.value===G})},[r,G]),em=h.useMemo(function(){if(!1===x)return r;var e=null!=x?x:kw;return r.filter(function(t){return e(t,ee)})},[r,ee,x]),eh=h.useCallback(function(e){var t,n=v&&e===G?"":e;U||H(n),null==o||o(n),w&&(Q(!1),null==(t=ec.current)||t.focus())},[v,G,U,o,w,Q]);h.useEffect(function(){if(!X)return void et("");var e=em.findIndex(function(e){return e.value===G&&!e.disabled});ea(e>=0?e:Math.max(0,em.findIndex(function(e){return!e.disabled})));var t=requestAnimationFrame(function(){var e;return null==(e=ed.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(t)}},[X]),h.useLayoutEffect(function(){if(X&&eu.current){if("auto"!==E)return void es(E);var e=eu.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;es(t<340&&n>t?"top":"bottom")}},[X,E]),h.useEffect(function(){if(X){var e=function(e){eu.current&&!eu.current.contains(e.target)&&Q(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[X,Q]),h.useEffect(function(){X&&ea(Math.max(0,em.findIndex(function(e){return!e.disabled})))},[ee]),h.useEffect(function(){var e,t;X&&"keyboard"===el.current&&(null==(t=ef.current)||null==(e=t.querySelector('[data-index="'.concat(er,'"]')))||e.scrollIntoView({block:"nearest"}))},[er,X]);var ey=function(e,t){var n=em.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!em[r=(r+e+n)%n].disabled)return r;return t},eg=ya("bottom"===eo?"top-full":"bottom-full","start"===k&&"left-0","center"===k&&"left-1/2","end"===k&&"right-0"),ev=(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},"bottom"===eo?{marginTop:P}:{marginBottom:P}),n=n={"--egen-combobox-to":"center"===k?"translateX(-50%)":"translateX(0)","--egen-combobox-from-bottom":"".concat("center"===k?"translateX(-50%) ":"","translateY(-8px)"),"--egen-combobox-from-top":"".concat("center"===k?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===k?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),eb=[];em.forEach(function(e,t){var n=eb[eb.length-1];n&&n.heading===e.group?n.entries.push({item:e,index:t}):eb.push({heading:e.group,entries:[{item:e,index:t}]})});var ew=function(e){var t=e.item,n=e.index,r=G===t.value,a=er===n;return(0,m.jsxs)("div",{id:z(n),role:"option","data-index":n,"data-selected":a,"data-disabled":t.disabled?"true":void 0,"aria-selected":r,"aria-disabled":t.disabled||void 0,onMouseMove:function(){t.disabled||(el.current="mouse",er!==n&&ea(n))},onClick:function(){return!t.disabled&&eh(t.value)},className:ya("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==L?void 0:L.item),children:[A?A(t,{isActive:a,isSelected:r}):(0,m.jsxs)(m.Fragment,{children:[t.icon,t.description?(0,m.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,m.jsx)("span",{className:"truncate",children:t.label}),(0,m.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:t.description})]}):t.label]}),N&&r?(0,m.jsx)("span",{className:ya("ml-auto",null==L?void 0:L.itemCheck),children:N}):(0,m.jsx)(OW,{className:ya("ml-auto",r?"opacity-100":"opacity-0",null==L?void 0:L.itemCheck)})]},t.value)};return(0,m.jsxs)("div",{ref:eu,style:F,className:ya("relative w-full max-w-xs",_,null==L?void 0:L.root),children:[(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-combobox-in-bottom { from { opacity: 0; transform: var(--egen-combobox-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n@keyframes egen-combobox-in-top { from { opacity: 0; transform: var(--egen-combobox-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n.egen-combobox-content[data-side="bottom"] { animation: egen-combobox-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-combobox-content[data-side="top"] { animation: egen-combobox-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-combobox-content { animation: none !important; } }\n'}}),R?(0,m.jsx)("input",{type:"hidden",name:R,value:G}):null,(0,m.jsxs)("button",{ref:ec,id:M,type:"button",role:"combobox","aria-expanded":X,"aria-haspopup":"listbox","aria-controls":X?B:void 0,"aria-label":I,disabled:void 0!==c&&c,onClick:function(){return Q(!X)},onKeyDown:function(e){X||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),Q(!0))},className:ya("inline-flex h-9 w-full shrink-0 items-center justify-between gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium whitespace-nowrap text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",null==L?void 0:L.trigger),children:[(0,m.jsx)("span",{className:"min-w-0 truncate",children:C?C(ep):ep?ep.label:void 0===d?"Select...":d}),null!=T?T:(0,m.jsx)(O$,{className:"size-4 shrink-0 opacity-50"})]}),X?(0,m.jsx)("div",{"data-side":eo,"data-state":"open",style:ev,className:ya("egen-combobox-content absolute z-50 w-72 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",eg,null==L?void 0:L.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),Q(!1),null==(t=ec.current)||t.focus();return}if("Tab"===e.key)return void Q(!1);if(0!==em.length)switch(e.key){case"ArrowDown":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(1,e)});break;case"ArrowUp":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(-1,e)});break;case"Home":e.preventDefault(),el.current="keyboard",ea(Math.max(0,em.findIndex(function(e){return!e.disabled})));break;case"End":e.preventDefault(),el.current="keyboard";var n=kv(em).reverse().findIndex(function(e){return!e.disabled});ea(n>=0?em.length-1-n:0);break;case"Enter":e.preventDefault();var r=em[er];r&&!r.disabled&&eh(r.value)}},children:(0,m.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[void 0===y||y?(0,m.jsxs)("div",{className:ya("flex h-9 items-center gap-2 border-b border-border px-3",null==L?void 0:L.searchWrapper),children:[(0,m.jsx)(OH,{className:ya("size-4 shrink-0 opacity-50",null==L?void 0:L.searchIcon)}),(0,m.jsx)("input",{ref:ed,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":B,"aria-activedescendant":em.length?z(er):void 0,placeholder:void 0===f?"Search...":f,value:ee,onChange:function(e){et(e.target.value),el.current="keyboard",null==S||S(e.target.value)},className:ya("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==L?void 0:L.searchInput)})]}):(0,m.jsx)("input",{ref:ed,readOnly:!0,"aria-label":I,"aria-controls":B,"aria-activedescendant":em.length?z(er):void 0,className:"sr-only"}),(0,m.jsx)("div",{ref:ef,id:B,role:"listbox",className:ya("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",null==L?void 0:L.list),children:0===em.length?(0,m.jsx)("div",{className:ya("py-6 text-center text-sm",null==L?void 0:L.empty),children:void 0===p?"No results found.":p}):eb.map(function(e,t){var n;return(0,m.jsxs)("div",{role:"group","aria-label":e.heading,className:ya("overflow-hidden p-1 text-foreground",null==L?void 0:L.group),children:[e.heading?(0,m.jsx)("div",{className:ya("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==L?void 0:L.groupHeading),children:e.heading}):null,e.entries.map(ew)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))})})]})}):null]})}function kS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kE(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function kO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function kk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||kP(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kD(e){return function(e){if(Array.isArray(e))return kj(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kP(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kP(e,t){if(e){if("string"==typeof e)return kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kj(e,t)}}var kA=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:[e]},kC=function(e){var t;return Array.isArray(e)?{items:e,hasMore:!1}:{items:null!=(t=e.items)?t:[],hasMore:!!e.hasMore}},kT=function(e){return"number"==typeof e?"".concat(e,"px"):e};function kN(e){var t,n,r,a,i,o,s,l,u,c,d=e.fetcher,f=e.getOptionValue,p=e.getOptionLabel,y=e.renderOption,g=e.getDisplayValue,v=e.getOptionGroup,b=e.getOptionDisabled,w=e.preload,x=void 0!==w&&w,S=e.filterFn,j=e.debounceMs,E=e.minQueryLength,O=void 0===E?0:E,k=e.fetchOnOpen,D=e.cacheResults,P=void 0===D||D,A=e.reloadKey,C=e.initialOptions,T=e.resolveOption,N=e.open,R=e.defaultOpen,M=e.onOpenChange,I=e.disabled,L=void 0!==I&&I,_=e.name,F=e.id,V=e["aria-label"],B=e.label,z=e.placeholder,U=void 0===z?"Select...":z,W=e.searchPlaceholder,$=e.noResultsMessage,H=e.minQueryMessage,G=e.loadingMessage,q=e.retryLabel,Y=e.clearLabel,K=e.removeLabel,Z=void 0===K?function(e){return"Remove ".concat(e)}:K,X=e.errorMessage,Q=void 0===X?"Failed to fetch options":X,J=e.loadMoreErrorLabel,ee=e.searchable,et=e.clearable,en=void 0===et||et,er=e.showClearButton,ea=e.closeOnSelect,ei=e.width,eo=e.contentWidth,es=void 0===eo?"trigger":eo,el=e.side,eu=void 0===el?"auto":el,ec=e.align,ed=void 0===ec?"start":ec,ef=e.sideOffset,ep=void 0===ef?4:ef,em=e.maxListHeight,eh=void 0===em?300:em,ey=e.loadingSkeleton,eg=e.loadingIndicator,ev=e.notFound,eb=e.renderError,ew=e.header,ex=e.footer,eS=e.triggerIcon,ej=e.checkIcon,eE=e.controllerRef,eO=e.classNames,ek=e.className,eD=e.triggerClassName,eP=e.style,eA=!0===e.multiple,eC=!0===e.multiple?e.maxSelected:void 0,eT=!0===e.multiple&&null!=(u=e.maxVisibleTags)?u:3,eN=!0===e.multiple?e.renderTag:void 0,eR=null!=ea?ea:!eA,eM=h.useId(),eI="".concat(eM,"-listbox"),eL=function(e){return"".concat(eM,"-option-").concat(e)},e_=h.useCallback(function(e){return p?p(e):f(e)},[p,f]),eF=void 0!==e.value,eV=kk(h.useState(function(){return kA(e.defaultValue)}),2),eB=eV[0],ez=eV[1],eU=eF?kA(e.value):eB,eW=void 0!==N,e$=kk(h.useState(void 0!==R&&R),2),eH=e$[0],eG=e$[1],eq=eW?N:eH,eY=h.useCallback(function(e){eW||eG(e),null==M||M(e)},[eW,M]),eK=h.useRef(new Map),eZ=h.useRef(new Set),eX=kk(h.useReducer(function(e){return e+1},0),2)[1];h.useMemo(function(){null==C||C.forEach(function(e){return eK.current.set(f(e),e)})},[C]);var eQ=h.useRef(T);eQ.current=T;var eJ=eU.join("\0");h.useEffect(function(){var e=eQ.current;if(e){var t=!1;return eU.forEach(function(n){eK.current.has(n)||eZ.current.has(n)||(eZ.current.add(n),Promise.resolve(e(n)).then(function(e){t||void 0===e||(eK.current.set(n,e),eX())}).catch(function(){}))}),function(){t=!0}}},[eJ]);var e0=kk(h.useState(""),2),e1=e0[0],e2=e0[1],e3=(t=x?"":e1,n=x?0:void 0===j?300:j,i=(a=function(e){if(Array.isArray(e))return e}(r=h.useState(t))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(r)||function(e){if(e){if("string"==typeof e)return kS(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kS(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],o=a[1],h.useEffect(function(){if(!(n<=0)){var e=setTimeout(function(){return o(t)},n);return function(){return clearTimeout(e)}}},[t,n]),n<=0?t:i),e4=e3.trim(),e5=!x&&e4.length>0&&e4.length<O,e6=kk(h.useState([]),2),e8=e6[0],e9=e6[1],e7=kk(h.useState("idle"),2),te=e7[0],tt=e7[1],tn=kk(h.useState(null),2),tr=tn[0],ta=tn[1],ti=kk(h.useState(!1),2),to=ti[0],ts=ti[1],tl=kk(h.useState(!1),2),tu=tl[0],tc=tl[1],td=kk(h.useState(!1),2),tf=td[0],tp=td[1],tm=kk(h.useState(0),2),th=tm[0],ty=tm[1],tg=h.useRef(d);tg.current=d;var tv=h.useRef(f);tv.current=f;var tb=h.useRef(new Map),tw=h.useRef(0),tx=h.useRef(0),tS=h.useRef(null),tj=(eq||!(void 0===k||k))&&!e5,tE="".concat(null!=A?A:"","\0").concat(th,"\0").concat(""===e4?"":e3),tO=h.useCallback(function(e){e.forEach(function(e){return eK.current.set(tv.current(e),e)})},[]);h.useEffect(function(){if(tj){var e,t=P?tb.current.get(tE):void 0;if(t){e9(t.items),ts(t.hasMore),tp(!1),tx.current=t.page,ta(null),tt("ready");return}null==(e=tS.current)||e.abort();var n=new AbortController,r=++tw.current;return tt("loading"),ta(null),tp(!1),Promise.resolve().then(function(){return tg.current(""===e4?"":e3,{signal:n.signal,page:0})}).then(function(e){if(!n.signal.aborted&&r===tw.current){var t=kC(e);tO(t.items),P&&tb.current.set(tE,{items:t.items,hasMore:t.hasMore,page:0}),tx.current=0,e9(t.items),ts(t.hasMore),tt("ready"),eX()}}).catch(function(e){if(!n.signal.aborted&&r===tw.current){var t;ta((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&e.message?e.message:Q),tt("error")}}),function(){return n.abort()}}},[tj,tE,P]);var tk=h.useCallback(function(){tb.current.delete(tE),ty(function(e){return e+1})},[tE]),tD=h.useCallback(function(){var e;return(e=function(){var e,t,n,r,a;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:if("ready"!==te||!to||tu)return[2];e=tw.current,t=tx.current+1,tS.current=n=new AbortController,tc(!0),tp(!1),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,tg.current(""===e4?"":e3,{signal:n.signal,page:t})];case 2:if(r=i.sent(),n.signal.aborted||e!==tw.current)return[2];return tO((a=kC(r)).items),e9(function(e){var n=new Set(e.map(function(e){return tv.current(e)})),r=kD(e).concat(kD(a.items.filter(function(e){return!n.has(tv.current(e))})));return P&&tb.current.set(tE,{items:r,hasMore:a.hasMore,page:t}),r}),tx.current=t,ts(a.hasMore),[3,5];case 3:return i.sent(),n.signal.aborted||e!==tw.current||tp(!0),[3,5];case 4:return tS.current===n&&(tS.current=null,tc(!1)),[7];case 5:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){kE(i,r,a,o,s,"next",e)}function s(e){kE(i,r,a,o,s,"throw",e)}o(void 0)})})()},[te,to,tu,e4,e3,tO,P,tE]);h.useEffect(function(){return function(){var e;tw.current+=1,null==(e=tS.current)||e.abort()}},[]);var tP=h.useMemo(function(){return!1===S?null:S||(x?function(e,t){var n=t.trim().toLowerCase();return!n||e_(e).toLowerCase().includes(n)}:null)},[S,x,e_]),tA=h.useMemo(function(){return tP&&e1?e8.filter(function(e){return tP(e,e1)}):e8},[e8,tP,e1]),tC=eU.map(function(e){return eK.current.get(e)}),tT=eA&&void 0!==eC&&eU.length>=eC,tN=function(e){return!!(null==b?void 0:b(e))||tT&&!eU.includes(f(e))},tR=function(t){var n,r,a;eF||ez(t),!0===e.multiple?null==(n=e.onChange)||n.call(e,t,t.map(function(e){return eK.current.get(e)}).filter(function(e){return void 0!==e})):null==(a=e.onChange)||a.call(e,null!=(r=t[0])?r:"",void 0!==t[0]?eK.current.get(t[0]):void 0)},tM=h.useRef(null),tI=h.useRef(null),tL=h.useRef(null),t_=h.useRef(null),tF=h.useRef(null),tV=function(e){var t,n=f(e);if(eK.current.set(n,e),eA){var r=eU.includes(n);if(!r&&tT)return;tR(r?eU.filter(function(e){return e!==n}):kD(eU).concat([n]))}else tR(en&&eU[0]===n?[]:[n]);eR&&(eY(!1),null==(t=tM.current)||t.focus())},tB=function(e){return tR(eU.filter(function(t){return t!==e}))},tz=function(){return tR([])};h.useImperativeHandle(eE,function(){return{open:function(){return!L&&eY(!0)},close:function(){return eY(!1)},focus:function(){var e;return null==(e=tM.current)?void 0:e.focus()},clear:tz,refresh:function(){tb.current.clear(),ty(function(e){return e+1})}}},[L,eY,eU,eF]);var tU=kk(h.useState(0),2),tW=tU[0],t$=tU[1],tH=kk(h.useState("bottom"),2),tG=tH[0],tq=tH[1],tY=h.useRef("mouse"),tK=function(){return Math.max(0,tA.findIndex(function(e){return!tN(e)}))};h.useEffect(function(){if(!eq)return void e2("");var e=requestAnimationFrame(function(){var e;return null==(e=tL.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[eq]),h.useEffect(function(){if(eq){var e=eA||void 0===eU[0]?-1:tA.findIndex(function(e){return f(e)===eU[0]&&!tN(e)});t$(e>=0?e:tK())}},[eq,e1,te]),h.useLayoutEffect(function(){if(eq&&tI.current){if("auto"!==eu)return void tq(eu);var e=tI.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;tq(t<Math.min(eh,300)+48&&n>t?"top":"bottom")}},[eq,eu,eh]),h.useEffect(function(){if(eq){var e=function(e){tI.current&&!tI.current.contains(e.target)&&eY(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[eq,eY]),h.useEffect(function(){var e,t,n;eq&&"keyboard"===tY.current&&(null==(n=t_.current)||null==(t=n.querySelector('[data-index="'.concat(tW,'"]')))||null==(e=t.scrollIntoView)||e.call(t,{block:"nearest"}))},[tW,eq]),h.useEffect(function(){if(!(!eq||!to||"ready"!==te||tf||"u"<typeof IntersectionObserver)){var e=tF.current;if(e){var t=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&tD()},{root:t_.current,rootMargin:"48px"});return t.observe(e),function(){return t.disconnect()}}}},[eq,to,te,tf,tD,tA.length]);var tZ=function(e,t){var n=tA.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!tN(tA[r=(r+e+n)%n]))return r;return t},tX=ya("bottom"===tG?"top-full":"bottom-full","start"===ed&&"left-0","center"===ed&&"left-1/2","end"===ed&&"right-0"),tQ=(s=kO({width:"trigger"===es?"100%":kT(es)},"bottom"===tG?{marginTop:ep}:{marginBottom:ep}),l=l={"--egen-async-select-to":"center"===ed?"translateX(-50%)":"translateX(0)","--egen-async-select-from-bottom":"".concat("center"===ed?"translateX(-50%) ":"","translateY(-8px)"),"--egen-async-select-from-top":"".concat("center"===ed?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===ed?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(l)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(l,e))}),s),tJ=[];tA.forEach(function(e,t){var n=null==v?void 0:v(e),r=tJ[tJ.length-1];r&&r.heading===n?r.entries.push({item:e,index:t}):tJ.push({heading:n,entries:[{item:e,index:t}]})});var t0=function(e){var t=e.item,n=e.index,r=f(t),a=eU.includes(r),i=tW===n,o=tN(t);return(0,m.jsxs)("div",{id:eL(n),role:"option","data-index":n,"data-selected":i,"data-disabled":o?"true":void 0,"aria-selected":a,"aria-disabled":o||void 0,onMouseMove:function(){o||(tY.current="mouse",tW!==n&&t$(n))},onClick:function(){return!o&&tV(t)},className:ya("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==eO?void 0:eO.item),children:[y?y(t,{isActive:i,isSelected:a,isDisabled:o}):e_(t),ej&&a?(0,m.jsx)("span",{className:ya("ml-auto",null==eO?void 0:eO.itemCheck),children:ej}):(0,m.jsx)(OW,{className:ya("ml-auto size-3",a?"opacity-100":"opacity-0",null==eO?void 0:eO.itemCheck)})]},r)},t1=function(e,t){return void 0!==t?e_(t):e},t2=eU.length>0,t3=null!=W?W:"Search ".concat(B.toLowerCase(),"..."),t4=null!=$?$:"No ".concat(B.toLowerCase()," found."),t5="loading"===te;return(0,m.jsxs)("div",{ref:tI,style:kO({width:kT(void 0===ei?"200px":ei)},eP),className:ya("relative",ek,null==eO?void 0:eO.root),children:[(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-async-select-in-bottom { from { opacity: 0; transform: var(--egen-async-select-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n@keyframes egen-async-select-in-top { from { opacity: 0; transform: var(--egen-async-select-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n.egen-async-select-content[data-side="bottom"] { animation: egen-async-select-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-async-select-content[data-side="top"] { animation: egen-async-select-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-async-select-content { animation: none !important; } }\n'}}),_?eA?eU.map(function(e){return(0,m.jsx)("input",{type:"hidden",name:_,value:e},e)}):(0,m.jsx)("input",{type:"hidden",name:_,value:null!=(c=eU[0])?c:""}):null,(0,m.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:t5?void 0===G?"Loading...":G:""}),(0,m.jsxs)("div",{ref:tM,id:F,role:"combobox",tabIndex:L?-1:0,"aria-expanded":eq,"aria-haspopup":"listbox","aria-controls":eq?eI:void 0,"aria-label":null!=V?V:B,"aria-disabled":L||void 0,"aria-busy":t5||void 0,"data-disabled":L?"true":void 0,"data-state":eq?"open":"closed",onClick:function(){return!L&&eY(!eq)},onKeyDown:function(e){!L&&(eq||"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key&&" "!==e.key?!eq&&eA&&"Backspace"===e.key&&t2&&tB(eU[eU.length-1]):(e.preventDefault(),eY(!0)))},className:ya("flex min-h-9 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",eD,null==eO?void 0:eO.trigger),children:[(0,m.jsx)("span",{className:ya("flex min-w-0 flex-1 items-center",null==eO?void 0:eO.triggerValue),children:function(){if(!t2)return(0,m.jsx)("span",{className:ya("truncate text-muted-foreground",null==eO?void 0:eO.placeholder),children:U});if(!eA){var e=tC[0];return(0,m.jsx)("span",{className:"min-w-0 truncate",children:void 0!==e?g?g(e):e_(e):eU[0]})}var t=eU.slice(0,Math.max(0,eT)),n=eU.slice(t.length);return(0,m.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[t.map(function(e){var t=eK.current.get(e),n=t1(e,t);return(0,m.jsxs)("span",{className:ya("inline-flex max-w-full items-center gap-1 rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-foreground",null==eO?void 0:eO.tag),children:[(0,m.jsx)("span",{className:"truncate",children:eN?eN(t,e):n}),L?null:(0,m.jsx)("button",{type:"button",tabIndex:-1,"aria-label":Z(n),onMouseDown:function(e){return e.preventDefault()},onClick:function(t){t.stopPropagation(),tB(e)},className:ya("rounded-sm opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.tagRemove),children:(0,m.jsx)(OG,{className:"size-3"})})]},e)}),n.length>0?(0,m.jsxs)("span",{title:n.map(function(e){return t1(e,eK.current.get(e))}).join(", "),className:ya("rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.tag),children:["+",n.length]}):null]})}()}),void 0!==er&&er&&t2&&!L?(0,m.jsx)("button",{type:"button",tabIndex:-1,"aria-label":void 0===Y?"Clear":Y,onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),tz()},className:ya("shrink-0 rounded-sm opacity-50 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.clearButton),children:(0,m.jsx)(OG,{className:"size-4"})}):null,null!=eS?eS:(0,m.jsx)(O$,{className:ya("size-3 shrink-0 opacity-50",null==eO?void 0:eO.triggerIcon)})]}),eq?(0,m.jsx)("div",{"data-side":tG,"data-state":"open",style:tQ,className:ya("egen-async-select-content absolute z-50 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",tX,null==eO?void 0:eO.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),eY(!1),null==(t=tM.current)||t.focus();return}if("Tab"===e.key)return void eY(!1);if("Backspace"===e.key&&eA&&""===e1&&eU.length>0)return void tB(eU[eU.length-1]);if(0!==tA.length)switch(e.key){case"ArrowDown":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(1,e)});break;case"ArrowUp":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(-1,e)});break;case"Home":e.preventDefault(),tY.current="keyboard",t$(tK());break;case"End":e.preventDefault(),tY.current="keyboard";var n=kD(tA).reverse().findIndex(function(e){return!tN(e)});t$(n>=0?tA.length-1-n:0);break;case"Enter":e.preventDefault();var r=tA[tW];r&&!tN(r)&&tV(r)}},children:(0,m.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[ew?(0,m.jsx)("div",{className:null==eO?void 0:eO.header,children:ew}):null,void 0===ee||ee?(0,m.jsxs)("div",{className:ya("relative flex h-9 items-center gap-2 border-b border-border px-3",null==eO?void 0:eO.searchWrapper),children:[(0,m.jsx)(OH,{className:ya("size-4 shrink-0 opacity-50",null==eO?void 0:eO.searchIcon)}),(0,m.jsx)("input",{ref:tL,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":eI,"aria-activedescendant":tA.length?eL(tW):void 0,placeholder:t3,value:e1,onChange:function(e){e2(e.target.value),tY.current="keyboard"},className:ya("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==eO?void 0:eO.searchInput)}),t5&&tA.length>0?(0,m.jsx)("span",{className:ya("flex shrink-0 items-center text-muted-foreground",null==eO?void 0:eO.searchSpinner),"aria-hidden":!0,children:null!=eg?eg:(0,m.jsx)(Oq,{className:"size-4 animate-spin"})}):null]}):(0,m.jsx)("input",{ref:tL,readOnly:!0,"aria-label":null!=V?V:B,"aria-controls":eI,"aria-activedescendant":tA.length?eL(tW):void 0,className:"sr-only"}),(0,m.jsxs)("div",{ref:t_,id:eI,role:"listbox","aria-multiselectable":eA||void 0,"aria-busy":t5||void 0,style:{maxHeight:eh},className:ya("scroll-py-1 overflow-x-hidden overflow-y-auto",null==eO?void 0:eO.list),children:[e5?(0,m.jsx)("div",{className:ya("py-6 text-center text-sm text-muted-foreground",null==eO?void 0:eO.hint),children:null!=H?H:"Type at least ".concat(O," characters to search.")}):"error"===te?eb?eb(null!=tr?tr:Q,tk):(0,m.jsxs)("div",{role:"alert",className:ya("flex flex-col items-center gap-2 p-4 text-center text-sm text-destructive",null==eO?void 0:eO.error),children:[(0,m.jsx)("span",{children:null!=tr?tr:Q}),(0,m.jsx)("button",{type:"button",onClick:tk,className:"rounded-md border border-border px-2 py-1 text-xs font-medium text-foreground outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===q?"Retry":q})]}):(t5||"idle"===te)&&0===tA.length?null!=ey?ey:(0,m.jsx)("div",{className:ya("p-1",null==eO?void 0:eO.skeleton),"aria-hidden":!0,children:[1,2,3].map(function(e){return(0,m.jsxs)("div",{className:"flex items-center gap-2 rounded-sm px-2 py-1.5",children:[(0,m.jsx)("div",{className:"size-6 animate-pulse rounded-full bg-muted"}),(0,m.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,m.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-muted"}),(0,m.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-muted"})]})]},e)})}):0===tA.length?null!=ev?ev:(0,m.jsx)("div",{className:ya("py-6 text-center text-sm",null==eO?void 0:eO.empty),children:t4}):tJ.map(function(e,t){var n;return(0,m.jsxs)("div",{role:"group","aria-label":e.heading,className:ya("overflow-hidden p-1 text-foreground",null==eO?void 0:eO.group),children:[e.heading?(0,m.jsx)("div",{className:ya("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.groupHeading),children:e.heading}):null,e.entries.map(t0)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))}),to&&"ready"===te?(0,m.jsx)("div",{ref:tF,className:ya("flex items-center justify-center p-2 text-xs text-muted-foreground",null==eO?void 0:eO.loadMore),children:tf?(0,m.jsx)("button",{type:"button",onClick:function(){tD()},className:"rounded-md px-2 py-1 text-destructive outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===J?"Failed to load more. Retry":J}):tu?null!=eg?eg:(0,m.jsx)(Oq,{className:"size-4 animate-spin"}):null}):null]}),ex?(0,m.jsx)("div",{className:null==eO?void 0:eO.footer,children:ex}):null]})}):null]})}function kR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kM(e,t){if(e){if("string"==typeof e)return kR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kR(e,t)}}var kI=function(e){var t,n=e.images,r=e.cardWidth,a=void 0===r?256:r,i=e.cardHeight,o=void 0===i?352:i,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,h.useRef)(null),f=(0,h.useRef)(!1),p=(0,h.useRef)(0),y=(0,h.useRef)(0),g=(0,h.useRef)(null),b=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(function(){return Array.from({length:n.length},function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||kM(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),w=b[0],x=b[1];(0,h.useEffect)(function(){x(Array.from({length:n.length},function(e,t){return t}))},[n.length]);var S=(0,h.useCallback)(function(e,t){var n,r,a=null==(r=getComputedStyle(t||document.documentElement))||null==(n=r.getPropertyValue(e))?void 0:n.trim();return a?a.endsWith("ms")?parseFloat(a):a.endsWith("s")?1e3*parseFloat(a):parseFloat(a)||0:0},[]),j=(0,h.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),E=(0,h.useCallback)(function(){return j()[0]||null},[j]),O=(0,h.useCallback)(function(){j().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[j]),k=(0,h.useCallback)(function(e){var t=E();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[E]),D=(0,h.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,y.current=e;var t=E();t&&(t.style.transition="none")}},[E]),P=(0,h.useCallback)(function(){if(f.current){g.current&&(cancelAnimationFrame(g.current),g.current=null);var e=y.current-p.current,t=S("--card-swap-duration",d.current),n=E();if(n)if(n.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var r=Math.sign(e);n.style.setProperty("--swipe-x","".concat(300*r,"px")),n.style.setProperty("--swipe-rotate","".concat(20*r,"deg")),setTimeout(function(){E()===n&&n.style.setProperty("--swipe-rotate","".concat(-(20*r),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],r>0?"right":"left"),((function(e){if(Array.isArray(e))return kR(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||kM(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e[0]]))})},t)}else k(0);f.current=!1,p.current=0,y.current=0}},[S,E,k,c]),A=(0,h.useCallback)(function(e){f.current&&(g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(function(){y.current=e;var t=y.current-p.current;k(t),Math.abs(t)>50&&P()}))},[k,P]);return(0,h.useEffect)(function(){var e=d.current;if(e){var t=function(e){return D(e.clientX)},n=function(e){return A(e.clientX)},r=function(){return P()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",n),e.addEventListener("pointerup",r),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",r),g.current&&cancelAnimationFrame(g.current)}}},[D,A,P]),(0,h.useEffect)(function(){O()},[w,O]),(0,m.jsx)("section",{ref:d,className:v()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":n.length.toString(),"--card-swap-duration":"0.3s"},l),children:w.map(function(e,t){return(0,m.jsx)("article",{"data-image-swiper-card":!0,className:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:n.length-t,width:a,height:o},children:(0,m.jsx)("img",{src:n[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(n[e],"-").concat(e))})})},kL=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,k_=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,kF=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,kV=/(^[#\.][a-z]|[a-y][a-z])/i,kB=Math.PI/180,kz=180/Math.PI,kU=Math.sin,kW=Math.cos,k$=Math.abs,kH=Math.sqrt,kG=Math.atan2,kq=function(e){return"string"==typeof e},kY=function(e){return"number"==typeof e},kK={},kZ={},kX=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},kQ=function(e){return Math.round(1e5*e)/1e5||0},kJ=function(e){return Math.round(1e10*e)/1e10||0},k0=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},k1=function(e,t,n,r){var a=e[t],i=1===r?6:Dr(a,n,r);if((i||!r)&&i+n+2<a.length)return e.splice(t,0,a.slice(0,n+i+2)),a.splice(0,n+i),1},k2=function(e,t,n){var r=e.length,a=~~(n*r);if(e[a]>t){for(;--a&&e[a]>t;);a<0&&(a=0)}else for(;e[++a]<t&&a<r;);return a<r?a:r-1},k3=function(e,t){var n=e.length;for(t||e.reverse();n--;)e[n].reversed||function(e){var t,n=0;for(e.reverse();n<e.length;n+=2)t=e[n],e[n]=e[n+1],e[n+1]=t;e.reversed=!e.reversed}(e[n])},k4=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},k5=function(e,t){var n=e.length,r=e[n-1]||[],a=r.length;n&&t[0]===r[a-2]&&t[1]===r[a-1]&&(t=r.concat(t.slice(2)),n--),e[n]=t};function k6(e){var t,n=(e=kq(e)&&kV.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return n&&(e=e.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(t=n._gsPath[e])&&!t._dirty?t:n._gsPath[e]=Ds(e)):e?kq(e)?Ds(e):kY(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var k8=function(e,t){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(e.attributes),i=a.length;for(t=","+t+",";--i>-1;)n=a[i].nodeName.toLowerCase(),0>t.indexOf(","+n+",")&&r.setAttributeNS(null,n,a[i].nodeValue);return r},k9={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},k7=function(e,t){for(var n=t?t.split(","):[],r={},a=n.length;--a>-1;)r[n[a]]=+e.getAttribute(n[a])||0;return r};function De(e,t,n){var r,a=e[t],i=e[t+2],o=e[t+4];return a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,r=i+(o+(e[t+6]-o)*n-i)*n-a,a=e[t+1],i=e[t+3],o=e[t+5],a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,kQ(kG(i+(o+(e[t+7]-o)*n-i)*n-a,r)*kz)}function Dt(e,t,n){var r=Math.max(0,~~(k$((n=void 0===n?1:kJ(n)||0)-(t=kJ(t)||0))-1e-8)),a=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=k4(e[n],e[n].slice(0));return k4(e,t)}(e);if(t>n&&(t=1-t,n=1-n,k3(a),a.totalLength=0),t<0||n<0){var i=Math.abs(~~Math.min(t,n))+1;t+=i,n+=i}a.totalLength||Dn(a);var o,s,l,u,c,d,f,p,m=n>1,h=Da(a,t,kK,!0),y=Da(a,n,kZ),g=y.segment,v=h.segment,b=y.segIndex,w=h.segIndex,x=y.i,S=h.i,j=w===b,E=x===S&&j;if(m||r){for(o=b<w||j&&x<S||E&&y.t<h.t,k1(a,w,S,h.t)&&(w++,!o&&(b++,E?(y.t=(y.t-h.t)/(1-h.t),x=0):j&&(x-=S))),1e-5>Math.abs(1-(n-t))?b=w-1:!y.t&&b?b--:k1(a,b,x,y.t)&&o&&w++,1===h.t&&(w=(w+1)%a.length),c=[],f=1+(d=a.length)*r,p=w,f+=(d-w+b)%d,u=0;u<f;u++)k5(c,a[p++%d]);a=c}else if(l=1===y.t?6:Dr(g,x,y.t),t!==n)for(s=Dr(v,S,E?h.t/y.t:h.t),j&&(l+=s),g.splice(x+l+2),(s||S)&&v.splice(0,S+s),u=a.length;u--;)(u<w||u>b)&&a.splice(u,1);else g.angle=De(g,x+l,0),x+=l,h=g[x],y=g[x+1],g.length=g.totalLength=0,g.totalPoints=a.totalPoints=8,g.push(h,y,h,y,h,y,h,y);return a.totalLength=0,a}function Dn(e,t){var n,r,a;for(a=n=r=0;a<e.length;a++)e[a].resolution=~~t||12,n+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b=~~e.resolution||12,w=1/b,x=e.length,S=e[t],j=e[t+1],E=t?t/6*b:0,O=e.samples,k=e.lookup,D=(t?e.minLength:1e8)||1e8,P=O[E+(void 0)*b-1],A=t?O[E-1]:0;for(O.length=k.length=0,r=t+2;r<x;r+=6){if(a=e[r+4]-S,i=e[r+2]-S,o=e[r]-S,u=e[r+5]-j,c=e[r+3]-j,d=e[r+1]-j,s=l=f=p=0,.01>k$(a)&&.01>k$(u)&&k$(o)+k$(d)<.01)e.length>8&&(e.splice(r,6),r-=6,x-=6);else for(n=1;n<=b;n++)m=1-(h=w*n),s=l-(l=(h*h*a+3*m*(h*i+m*o))*h),(g=kH((f=p-(p=(h*h*u+3*m*(h*c+m*d))*h))*f+s*s))<D&&(D=g),A+=g,O[E++]=A;S+=a,j+=u}if(P)for(P-=A;E<O.length;E++)O[E]+=P;if(O.length&&D){if(e.totalLength=v=O[O.length-1]||0,e.minLength=D,v/D<9999)for(n=0,g=y=0;n<v;n+=D)k[g++]=O[y]<n?++y:y}else e.totalLength=O[0]=0;return t?A-O[t/2-1]:A}(e[a]),r+=e[a].length;return e.totalPoints=r,e.totalLength=n,e}function Dr(e,t,n){if(n<=0||n>=1)return 0;var r=e[t],a=e[t+1],i=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=r+(i-r)*n,f=i+(s-i)*n,p=a+(o-a)*n,m=o+(l-o)*n,h=d+(f-d)*n,y=p+(m-p)*n,g=s+(u-s)*n,v=l+(c-l)*n;return f+=(g-f)*n,m+=(v-m)*n,e.splice(t+2,4,kQ(d),kQ(p),kQ(h),kQ(y),kQ(h+(f-h)*n),kQ(y+(m-y)*n),kQ(f),kQ(m),kQ(g),kQ(v)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function Da(e,t,n,r){n=n||{},e.totalLength||Dn(e),(t<0||t>1)&&(t=kX(t));var a,i,o,s,l,u,c,d=0,f=e[0];if(t)if(1===t)c=1,d=e.length-1,u=(f=e[d]).length-8;else{if(e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)d=u;t=(o-(s=l-(f=e[d]).totalLength))/(l-s)||0}a=f.samples,i=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:k2(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),c=1/i*((o-s)/(l-s)+u%i),u=6*~~(u/i),r&&1===c&&(u+6<f.length?(u+=6,c=0):d+1<e.length&&(u=c=0,f=e[++d]))}else c=u=d=0,f=e[0];return n.t=c,n.i=u,n.path=e,n.segment=f,n.segIndex=d,n}function Di(e,t,n,r){var a,i,o,s,l,u,c,d,f,p=e[0],m=r||{};if((t<0||t>1)&&(t=kX(t)),p.lookup||Dn(e),e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)p=e[u];t=(o-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,i=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:k2(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),f=1-(c=1/i*((o-s)/(l-s)+u%i)||0),d=p[u=6*~~(u/i)],m.x=kQ((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),m.y=kQ((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),n&&(m.angle=p.totalLength?De(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),m}function Do(e,t,n,r,a,i,o){for(var s,l,u,c,d,f=e.length;--f>-1;)for(u=0,l=(s=e[f]).length;u<l;u+=2)c=s[u],d=s[u+1],s[u]=c*t+d*r+i,s[u+1]=c*n+d*a+o;return e._dirty=1,e}function Ds(e){var t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y=(e+"").replace(kF,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(kL)||[],g=[],v=0,b=0,w=2/3,x=y.length,S=0,j="ERROR: malformed path: "+e,E=function(e,t,n,r){c=(n-e)/3,d=(r-t)/3,s.push(e+c,t+d,n-c,r-d,n,r)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(j),g;for(t=0;t<x;t++)if(p=i,isNaN(y[t])?o=(i=y[t].toUpperCase())!==y[t]:t--,r=+y[t+1],a=+y[t+2],o&&(r+=v,a+=b),t||(l=r,u=a),"M"===i)s&&(s.length<8?g.length-=1:S+=s.length,k0(s)),v=l=r,b=u=a,s=[r,a],g.push(s),t+=2,i="L";else if("C"===i)s||(s=[0,0]),o||(v=b=0),s.push(r,a,v+ +y[t+3],b+ +y[t+4],v+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===i)c=v,d=b,("C"===p||"S"===p)&&(c+=v-s[s.length-4],d+=b-s[s.length-3]),o||(v=b=0),s.push(c,d,r,a,v+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===i)c=v+(r-v)*w,d=b+(a-b)*w,o||(v=b=0),v+=+y[t+3],b+=+y[t+4],s.push(c,d,v+(r-v)*w,b+(a-b)*w,v,b),t+=4;else if("T"===i)c=v-s[s.length-4],d=b-s[s.length-3],s.push(v+c,b+d,r+(v+1.5*c-r)*w,a+(b+1.5*d-a)*w,v=r,b=a),t+=2;else if("H"===i)E(v,b,v=r,b),t+=1;else if("V"===i)E(v,b,v,b=r+(o?b-v:0)),t+=1;else if("L"===i||"Z"===i)"Z"===i&&(r=l,a=u,s.closed=!0),("L"===i||k$(v-r)>.5||k$(b-a)>.5)&&(E(v,b,r,a),"L"===i&&(t+=2)),v=r,b=a;else if("A"===i){if(m=y[t+4],h=y[t+5],c=y[t+6],d=y[t+7],n=7,m.length>1&&(m.length<3?(d=c,c=h,n--):(d=h,c=m.substr(2),n-=2),h=m.charAt(1),m=m.charAt(0)),f=function(e,t,n,r,a,i,o,s,l){if(e!==s||t!==l){n=k$(n),r=k$(r);var u=a%360*kB,c=kW(u),d=kU(u),f=Math.PI,p=2*f,m=(e-s)/2,h=(t-l)/2,y=c*m+d*h,g=-d*m+c*h,v=y*y,b=g*g,w=v/(n*n)+b/(r*r);w>1&&(n=kH(w)*n,r=kH(w)*r);var x=n*n,S=r*r,j=(x*S-x*b-S*v)/(x*b+S*v);j<0&&(j=0);var E=(i===o?-1:1)*kH(j),O=n*g/r*E,k=-(r*y/n*E),D=(e+s)/2+(c*O-d*k),P=(t+l)/2+(d*O+c*k),A=(y-O)/n,C=(g-k)/r,T=(-y-O)/n,N=(-g-k)/r,R=A*A+C*C,M=(C<0?-1:1)*Math.acos(A/kH(R)),I=(A*N-C*T<0?-1:1)*Math.acos((A*T+C*N)/kH(R*(T*T+N*N)));isNaN(I)&&(I=f),!o&&I>0?I-=p:o&&I<0&&(I+=p),M%=p;var L,_=Math.ceil(k$(I%=p)/(p/4)),F=[],V=I/_,B=4/3*kU(V/2)/(1+kW(V/2)),z=c*n,U=d*n,W=-(d*r),$=c*r;for(L=0;L<_;L++)y=kW(a=M+L*V),g=kU(a),A=kW(a+=V),C=kU(a),F.push(y-B*g,g+B*y,A+B*C,C-B*A,A,C);for(L=0;L<F.length;L+=2)y=F[L],g=F[L+1],F[L]=y*z+g*W+D,F[L+1]=y*U+g*$+P;return F[L-2]=s,F[L-1]=l,F}}(v,b,+y[t+1],+y[t+2],+y[t+3],+m,+h,(o?v:0)+ +c,(o?b:0)+ +d),t+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);v=s[s.length-2],b=s[s.length-1]}else console.log(j);return(t=s.length)<6?(g.pop(),t=0):k0(s),g.totalPoints=S+t,g}function Dl(e,t){1e-4>k$(e[0]-e[2])&&1e-4>k$(e[1]-e[3])&&(e=e.slice(2));var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g=e.length-2,v=+e[0],b=+e[1],w=+e[2],x=+e[3],S=[v,b,v,b],j=w-v,E=x-b,O=e.nonSmooth||[],k=.001>Math.abs(e[g]-v)&&.001>Math.abs(e[g+1]-b);if(!g)return[v,b,v,b,v,b,v,b];for(k&&(e.push(w,x),w=v,x=b,v=e[g-2],b=e[g-1],e.unshift(v,b),g+=4,O=[0,0].concat(O)),t=t||0===t?+t:1,a=2;a<g;a+=2)if(n=v,r=b,v=w,b=x,w=+e[a+2],x=+e[a+3],v!==w||b!==x){if(i=j,o=E,j=w-v,E=x-b,O[a]){S.push(v-(v-n)/4,b-(b-r)/4,v,b,v+(w-v)/4,b+(x-b)/4);continue}s=kH(i*i+o*o),l=kH(j*j+E*E),u=kH(Math.pow(j/l+i/s,2)+Math.pow(E/l+o/s,2)),c=(s+l)*t*.25/u,d=v-(v-n)*(s?c/s:0),f=v+(w-v)*(l?c/l:0),p=v-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),m=b-(b-r)*(s?c/s:0),h=b+(x-b)*(l?c/l:0),y=b-(m+((h-m)*(3*s/(s+l)+.5)/4||0)),S.push(kQ(d+p),kQ(m+y),kQ(v),kQ(b),kQ(f+p),kQ(h+y))}return v!==w||b!==x||S.length<4?S.push(kQ(w),kQ(x),kQ(w),kQ(x)):S.length-=2,2===S.length?S.push(v,b,v,b,v,b):k&&(S.splice(0,6),S.length-=6),S.closed=k,S}function Du(e){kY(e[0])&&(e=[e]);var t,n,r,a,i="",o=e.length;for(n=0;n<o;n++){for(i+="M"+kQ((a=e[n])[0])+","+kQ(a[1])+" C",t=a.length,r=2;r<t;r++)i+=kQ(a[r++])+","+kQ(a[r++])+" "+kQ(a[r++])+","+kQ(a[r++])+" "+kQ(a[r++])+","+kQ(a[r])+" ";a.closed&&(i+="z")}return i}var Dc,Dd,Df,Dp,Dm,Dh,Dy,Dg,Dv,Db,Dw,Dx="transform",DS=Dx+"Origin",Dj=function(e){var t=e.ownerDocument||e;for(!(Dx in e.style)&&("msTransform"in e.style)&&(DS=(Dx="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(Dp=window,Dv=new DR,t){Df=t,Dm=t.documentElement,Dh=t.body,(Db=Df.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),r=t.createElement("div"),a=t&&(t.body||t.firstElementChild);a&&a.appendChild&&(a.appendChild(n),n.appendChild(r),n.style.position="static",n.style.transform="translate3d(0,0,1px)",Dw=r.offsetParent!==n,a.removeChild(n))}return t},DE=function(e){for(var t,n;e&&e!==Dh;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},DO=[],Dk=[],DD=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},DP=function e(t,n){if(t.parentNode&&(Df||Dj(t))){var r=DD(t),a=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=r?n?"rect":"g":"div",o=100*(2===n),s=100*(3===n),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=Df.createElementNS?Df.createElementNS(a.replace(/^https/,"http"),i):Df.createElement(i);return n&&(r?(Dg||(Dg=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),Dg.appendChild(u)):(Dy||Object.assign((Dy=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),Dy.appendChild(u))),u}throw"Need document and parent."},DA=function(e){for(var t=new DR,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},DC=function(e){var t,n=e.getCTM();return n||(t=e.style[Dx],e.style[Dx]="none",e.appendChild(Db),n=Db.getCTM(),e.removeChild(Db),t?e.style[Dx]=t:e.style.removeProperty(Dx.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Dv.clone()},DT=function(e,t){var n,r,a,i,o,s,l=DD(e),u=e===l,c=l?DO:Dk,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===Dp)return e;if(c.length||c.push(DP(e,1),DP(e,2),DP(e,3)),n=l?Dg:Dy,l)u?(i=-(a=DC(e)).e/a.a,o=-a.f/a.d,r=Dv):e.getBBox?(a=e.getBBox(),i=(r=(r=e.transform?e.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?DA(r):r.getItem(0).matrix:Dv).a*a.x+r.c*a.y,o=r.b*a.x+r.d*a.y):(r=new DR,i=o=0),t&&"g"===e.tagName.toLowerCase()&&(i=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+i)+","+(r.f+o)+")");else{if(i=o=0,Dw)for(r=e.offsetParent,a=e;a&&(a=a.parentNode)&&a!==r&&a.parentNode;)(Dp.getComputedStyle(a)[Dx]+"").length>4&&(i=a.offsetLeft,o=a.offsetTop,a=0);if("absolute"!==(s=Dp.getComputedStyle(e)).position&&"fixed"!==s.position)for(r=e.offsetParent;d&&d!==r;)i+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(a=n.style).top=e.offsetTop-o+"px",a.left=e.offsetLeft-i+"px",a[Dx]=s[Dx],a[DS]=s[DS],a.position="fixed"===s.position?"fixed":"absolute",f.appendChild(n)}return n},DN=function(e,t,n,r,a,i,o){return e.a=t,e.b=n,e.c=r,e.d=a,e.e=i,e.f=o,e},DR=function(){function e(e,t,n,r,a,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===i&&(i=0),DN(this,e,t,n,r,a,i)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,a=this.e,i=this.f,o=e*r-t*n||1e-10;return DN(this,r/o,-t/o,-n/o,e/o,(n*i-r*a)/o,-(e*i-t*a)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return DN(this,s*t+u*r,s*n+u*a,l*t+c*r,l*n+c*a,i+d*t+f*r,o+d*n+f*a)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&a===e.d&&i===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var n=e.x,r=e.y,a=this.a,i=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=n*a+r*o+l||0,t.y=n*i+r*s+u||0,t},e}();function DM(e,t,n,r){if(!e||!e.parentNode||(Df||Dj(e)).documentElement===e)return new DR;var a=DE(e),i=DD(e)?DO:Dk,o=DT(e,n),s=i[0].getBoundingClientRect(),l=i[1].getBoundingClientRect(),u=i[2].getBoundingClientRect(),c=o.parentNode,d=!r&&function e(t){return"fixed"===Dp.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new DR((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:Dp.pageXOffset||Df.scrollLeft||Dm.scrollLeft||Dh.scrollLeft||0),s.top+(d?0:Dp.pageYOffset||Df.scrollTop||Dm.scrollTop||Dh.scrollTop||0));if(c.removeChild(o),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var DI,DL,D_,DF,DV,DB,Dz="x,translateX,left,marginLeft,xPercent".split(","),DU="y,translateY,top,marginTop,yPercent".split(","),DW=Math.PI/180,D$=function(e,t,n,r){for(var a=t.length,i=2===r?0:r,o=0;o<a;o++)e[i]=parseFloat(t[o][n]),2===r&&(e[i+1]=0),i+=2;return e},DH=function(e,t,n){return parseFloat(e._gsap.get(e,t,n||"px"))||0},DG=function(e){var t,n=e[0],r=e[1];for(t=2;t<e.length;t+=2)n=e[t]+=n,r=e[t+1]+=r},Dq=function(e,t,n,r,a,i,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(DH(n,r,s),a?DH(n,a,l):0),o.relative&&DG(t),t=[(a?Dl:function(e,t){void 0===t&&(t=1);for(var n=e[0],r=0,a=[n,0],i=2;i<e.length;i+=2)a.push(n,r,e[i],r=(e[i]-n)*t/2,n=e[i],-r);return a})(t,o.curviness)]),t=i(DQ(t,n,o)),DJ(e,n,r,t,"x",s),a&&DJ(e,n,a,t,"y",l),Dn(t,o.resolution||(0===o.curviness?20:12))},DY=function(e){return e},DK=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,DZ=function(e,t,n){var r,a=DM(e),i=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(r=e.viewBox.baseVal).width||(r={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):r=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(i=t.push?t[0]*(r?r.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(r?r.height:e.offsetHeight||0):t.y),n.apply(i||o?a.apply({x:i,y:o}):{x:a.e,y:a.f})},DX=function(e,t,n,r){var a,i=DM(e.parentNode,!0,!0),o=i.clone().multiply(DM(t)),s=DZ(e,n,i),l=DZ(t,r,i),u=l.x,c=l.y;return o.e=o.f=0,"auto"===r&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(a=t.getAttribute("d").match(DK)||[],u+=(a=o.apply({x:+a[0],y:+a[1]})).x,c+=a.y),a&&(u-=(a=o.apply(t.getBBox())).x,c-=a.y),o.e=u-s.x,o.f=c-s.y,o},DQ=function(e,t,n){var r,a,i,o=n.align,s=n.matrix,l=n.offsetX,u=n.offsetY,c=n.alignOrigin,d=e[0][0],f=e[0][1],p=DH(t,"x"),m=DH(t,"y");return e&&e.length?(o&&("self"===o||(r=DF(o)[0]||t)===t?Do(e,1,0,0,1,p-d,m-f):(c&&!1!==c[2]?DI.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(DH(t,"xPercent")/100),-(DH(t,"yPercent")/100)],i=(a=DX(t,r,c,"auto")).apply({x:d,y:f}),Do(e,a.a,a.b,a.c,a.d,p+a.e-(i.x-a.e),m+a.f-(i.y-a.f)))),s?Do(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&Do(e,1,0,0,1,l||0,u||0),e):k6("M0,0L0,0")},DJ=function(e,t,n,r,a,i){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[n],u=l&&0>l.indexOf(",")?l:n,c=e._pt=new DL(e._pt,t,u,0,0,DY,0,o.set(t,u,e));c.u=D_(o.get(t,u,i))||0,c.path=r,c.pp=a,e._props.push(u)},D0={version:"3.15.0",name:"motionPath",register:function(e,t,n){D_=(DI=e).utils.getUnit,DF=DI.utils.toArray,DV=DI.core.getStyleSaver,DB=DI.core.reverting||function(){},DL=n},init:function(e,t,n){if(!DI)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!t.style&&t.path||(t={path:t});var r,a,i,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,m=u.x,h=u.y,y=c[0],g=(a=t.start,i="end"in t?t.end:1,function(e){return a||1!==i?Dt(e,a,i):e});if(this.rawPaths=l,this.target=e,this.tween=n,this.styles=DV&&DV(e,"transform"),(this.rotate=d||0===d)&&(this.rOffset=parseFloat(d)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=D_(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)Dn(o=g(DQ(k6(t.path),e,t)),t.resolution),l.push(o),DJ(this,e,t.x||"x",o,"x",t.unitX||"px"),DJ(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!m&&~Dz.indexOf(s)?m=s:!h&&~DU.indexOf(s)&&(h=s);for(s in m&&h?l.push(Dq(this,D$(D$([],c,m,0),c,h,1),e,m,h,g,t,f||D_(c[0][m]),p||D_(c[0][h]))):m=h=0,y)s!==m&&s!==h&&l.push(Dq(this,D$([],c,s,2),e,s,0,g,t,D_(c[0][s])))}n.vars.immediateRender&&this.render(n.progress(),this)},render:function(e,t){var n=t.rawPaths,r=n.length,a=t._pt;if(t.tween._time||!DB()){for(e>1?e=1:e<0&&(e=0);r--;)Di(n[r],e,!r&&t.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,e),a=a._next;t.rotate&&t.rSet(t.target,t.rProp,n[0].angle*(t.radians?DW:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return Dn(k6(e)).totalLength},sliceRawPath:Dt,getRawPath:k6,pointsToSegment:Dl,stringToRawPath:Ds,rawPathToString:Du,transformRawPath:Do,getGlobalMatrix:DM,getPositionOnPath:Di,cacheRawPathMeasurements:Dn,convertToPath:function(e,t){return DF(e).map(function(e){var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O;return n=!1!==t,"path"!==(O=e.tagName.toLowerCase())&&e.getBBox?(l=k8(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),E=k7(e,k9[O]),"rect"===O?(o=E.rx,s=E.ry||o,a=E.x,i=E.y,f=E.width-2*o,p=E.height-2*s,o||s?(m=a+.44771525016900005*o,g=(y=(h=a+o)+f)+.552284749831*o,v=y+o,b=i+.44771525016900005*s,S=(x=(w=i+s)+p)+.552284749831*s,j=x+s,r="M"+v+","+w+" V"+x+" C"+[v,S,g,j,y,j,y-(y-h)/3,j,h+(y-h)/3,j,h,j,m,j,a,S,a,x,a,x-(x-w)/3,a,w+(x-w)/3,a,w,a,b,m,i,h,i,h+(y-h)/3,i,y-(y-h)/3,i,y,i,g,i,v,b,v,w].join(",")+"z"):r="M"+(a+f)+","+i+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===O||"ellipse"===O?("circle"===O?c=.552284749831*(o=s=E.r):(o=E.rx,c=.552284749831*(s=E.ry)),a=E.cx,i=E.cy,u=.552284749831*o,r="M"+(a+o)+","+i+" C"+[a+o,i+c,a+u,i+s,a,i+s,a-u,i+s,a-o,i+c,a-o,i,a-o,i-c,a-u,i-s,a,i-s,a+u,i-s,a+o,i-c,a+o,i].join(",")+"z"):"line"===O?r="M"+E.x1+","+E.y1+" L"+E.x2+","+E.y2:("polyline"===O||"polygon"===O)&&(r="M"+(a=(d=(e.getAttribute("points")+"").match(k_)||[]).shift())+","+(i=d.shift())+" L"+d.join(","),"polygon"===O&&(r+=","+a+","+i+"z")),l.setAttribute("d",Du(l._gsRawPath=Ds(r))),n&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,n){var r=DM(t,!0,!0).multiply(DM(e));return n?r.apply(n):r},getAlignMatrix:DX,getRelativePosition:function(e,t,n,r){var a=DX(e,t,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function(e,t){var n=D$(D$([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&DG(n),["cubic"===t.type?n:Dl(n,t.curviness)]}};(DI||"u">typeof window&&(DI=window.gsap)&&DI.registerPlugin&&DI)&&DI.registerPlugin(D0);let D1="_91T10b5z4yVLEvBTiOHB2w==",D2="DV-xKWaHEEvN+MaZK6G-sw==",D3="BiOYgCt0Z+UKXxmzw9enhg==";function D4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function D6(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}Et.registerPlugin(D0);var D8=function(e){var t,n=e.url,r=e.title,a=e.open,i=e.inPlace,o=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return D4(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return D4(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,h.useRef)(null),p={transformOrigin:"center center"},y=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},g=function(){return{cx:200,cy:200,r:49}};return(0,h.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,n=c?0:e+t;a?Et.timeline().set(f.current,D5({},p,y())).to(f.current,D6(D5({},p,g()),{duration:t,ease:"power3.inOut"})).to(f.current,D6(D5({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):Et.timeline({overwrite:!0}).set(f.current,D5({},p,{cx:5100,cy:200,r:4900})).to(f.current,D6(D5({},p,g()),{delay:n,duration:e,ease:"power4.out"})).to(f.current,D6(D5({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},y()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[a]),(0,m.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:D1,children:[(0,m.jsxs)("defs",{children:[(0,m.jsx)("clipPath",{id:"".concat(o,"_circleClip"),children:(0,m.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,m.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,m.jsx)("rect",{width:400,height:400})})]}),(0,m.jsx)("g",{clipPath:"url(#".concat(o).concat(i?"_squareClip":"_circleClip",")"),children:(0,m.jsx)("image",{width:400,height:400,href:n,className:D2,children:(0,m.jsx)("title",{children:r})})})]})},D9=function(e){var t=e.images,n=e.onSelect,r=function(e){return 200-(24*t.length-10)/2+24*e},a=function(){return 370};return(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:D1,children:t.map(function(e,t){return(0,m.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,m.jsx)("defs",{children:(0,m.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,m.jsx)("circle",{cx:r(t),cy:a(),r:7})})}),(0,m.jsx)("image",{x:r(t)-7,y:a()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:D2,preserveAspectRatio:"xMidYMid slice"}),(0,m.jsx)("circle",{onClick:function(){return n(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:r(t),cy:a(),r:9,children:(0,m.jsx)("title",{children:e.title})})]},e.url)})})};function D7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D7(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pt=function(e){var t=e.images,n=e.autoplay,r=void 0===n||n,a=e.autoplayInterval,i=void 0===a?4500:a,o=e.className,s=e.style,l=Pe((0,h.useState)(0),2),u=l[0],c=l[1],d=Pe((0,h.useState)(0),2),f=d[0],p=d[1],y=Pe((0,h.useState)(!1),2),g=y[0],b=y[1],w=(0,h.useRef)(null),x=function(e){return p(e)},S=(0,h.useCallback)(function(){c(function(e){var n=e+1;return n>=t.length&&(n=0),n})},[t.length]),j=(0,h.useCallback)(function(){c(function(e){var n=e-1;return n<0&&(n=t.length-1),n})},[t.length]);return(0,h.useEffect)(function(){return b(!0)},[u]),(0,h.useEffect)(function(){return b(!1)},[f]),(0,h.useEffect)(function(){if(r)return w.current&&clearInterval(w.current),w.current=window.setInterval(S,i),function(){w.current&&clearInterval(w.current)}},[u,r,i,S]),(0,m.jsxs)("div",{className:v()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,m.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,n){return(0,m.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===n?n:t.length+1},children:(0,m.jsx)(D8,{total:t.length,id:n,url:e.url,title:e.title,open:u===n,inPlace:f===n,onInPlace:x})},e.url)}),(0,m.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,m.jsx)(D9,{images:t,onSelect:function(e){g||c(e)}})})]}),(0,m.jsx)("button",{type:"button",className:v()(D3,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:j,disabled:g,"aria-label":"Image pr\xe9c\xe9dente",children:(0,m.jsx)(eS,{size:28})}),(0,m.jsx)("button",{type:"button",className:v()(D3,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:S,disabled:g,"aria-label":"Image suivante",children:(0,m.jsx)(ej,{size:28})})]})};function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e){var t=e.handleShuffle,n=e.testimonial,r=e.position,a=e.id,i=e.author,o=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,h.useRef)(0),f="front"===r;return(0,m.jsxs)(mY.div,{style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pn(e,t,n[t])})}return e}({zIndex:"front"===r?2:+("middle"===r),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===r?"-6deg":"middle"===r?"0deg":"6deg",x:"front"===r?"0%":"middle"===r?"33%":"66%"},drag:!0,dragElastic:.35,dragListener:f,dragConstraints:{top:0,left:0,right:0,bottom:0},onDragStart:function(e){d.current=e.clientX},onDragEnd:function(e){var n=e.clientX;d.current-n>150&&t(),d.current=0},transition:{duration:.35},className:v()("ohCq+RO21+rIvJcyy3o2gw==",Pn({},"ovSoDUuNx-SamWlqj-vDmQ==",f),u),children:[(0,m.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(a),alt:"Avatar of ".concat(i),className:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,m.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',n,'"']}),(0,m.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:i})]})}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pi(e){if(Array.isArray(e))return e}function Po(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ps(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pl(e,t){if(e){if("string"==typeof e)return Pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pa(e,t)}}function Pu(e){var t,n=e.testimonials,r=e.cardWidth,a=void 0===r?350:r,i=e.cardHeight,o=void 0===i?450:i,s=e.className,l=e.style,u=e.onShuffle,c=Pi(t=(0,h.useState)(function(){return n.map(function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||Pl(t,2)||Ps(),d=c[0],f=c[1];(0,h.useEffect)(function(){f(n.map(function(e,t){return t}))},[n]);var p=(0,h.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,r=Pi(e)||Po(e)||Pl(e)||Ps(),a=r[0],i=r.slice(1);return null==u||u(null==(t=n[a])?void 0:t.id),((function(e){if(Array.isArray(e))return Pa(e)})(i)||Po(i)||Pl(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([a])})},[u,n]);return(0,m.jsx)("div",{className:v()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a,height:o},l),children:d.map(function(e,t){var r=n[e];return r?(0,m.jsx)(Pr,{id:r.id,testimonial:r.testimonial,author:r.author,avatarUrl:r.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:a,cardHeight:o},r.id):null})})}var Pc=(0,h.createContext)(null),Pd=function(){var e=(0,h.useContext)(Pc);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function Pf(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Pp(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(function(n){var r=e[n],a=t[n];return"function"==typeof r?"".concat(r)==="".concat(a):Pf(r)&&Pf(a)?Pp(r,a):r===a})}function Pm(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function Ph(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Py(e){return"number"==typeof e}function Pg(e){return"string"==typeof e}function Pv(e){return"boolean"==typeof e}function Pb(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pw(e){return Math.abs(e)}function Px(e){return Math.sign(e)}function PS(e){return Pk(e).map(Number)}function Pj(e){return e[PE(e)]}function PE(e){return Math.max(0,e.length-1)}function PO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,n){return t+n})}function Pk(e){return Object.keys(e)}function PD(e,t){var n;return void 0!==t.MouseEvent&&(null!=(n=t.MouseEvent)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)}function PP(){var e=[],t={add:function(n,r,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in n?(n.addEventListener(r,a,o),i=function(){return n.removeEventListener(r,a,o)}):(n.addListener(a),i=function(){return n.removeListener(a)}),e.push(i),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function PA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Pw(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function PC(e){var t=e;function n(e){return Py(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function PT(e,t){var n="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},r=t.style,a=null,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!i){var o=Math.round(100*e.direction(t))/100;o!==a&&(r.transform=n(o),a=o)}},toggleActive:function(e){i=!e}}}var PN={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function PR(e,t,n){var r,a,i,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,n){return[t,n].reduce(function(t,n){return Pk(n).forEach(function(r){var a=t[r],i=n[r],o=Pb(a)&&Pb(i);t[r]=o?e(a,i):i}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){var r=n.breakpoints||{},a=Pk(r).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return r[e]}).reduce(function(e,n){return t(e,n)},{});return t(n,a)},optionsMediaQueries:function(t){return t.map(function(e){return Pk(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),m=(o=[],{init:function(e,t){return(o=t.filter(function(e){var t=e.options;return!1!==p.optionsAtMedia(t).active})).forEach(function(t){return t.init(e,p)}),t.reduce(function(e,t){var n,r;return Object.assign(e,(n={},r=t.name,r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),h=PP(),y=(a={},i={init:function(e){r=e},emit:function(e){return(a[e]||[]).forEach(function(t){return t(r,e)}),i},off:function(e,t){return a[e]=(a[e]||[]).filter(function(e){return e!==t}),i},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),i},clear:function(){a={}}}),g=p.mergeOptions,v=p.optionsAtMedia,b=p.optionsMediaQueries,w=y.on,x=y.off,S=y.emit,j=!1,E=g(PN,PR.globalOptions),O=g(E),k=[];function D(t,n){var r,a,i,o;!j&&(O=v(E=g(E,t)),k=n||k,r=O.container,a=O.slides,u=(Pg(r)?e.querySelector(r):r)||e.children[0],i=Pg(a)?u.querySelectorAll(a):a,c=[].slice.call(i||u.children),s=function t(n){var r=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O,k,D,P,A,C,T,N,R,M,I,L,_,F,V,B,z,U,W,$,H,G,q,Y,K,Z,X=i.align,Q=i.axis,J=i.direction,ee=i.startIndex,et=i.loop,en=i.duration,er=i.dragFree,ea=i.dragThreshold,ei=i.inViewThreshold,eo=i.slidesToScroll,es=i.skipSnaps,el=i.containScroll,eu=i.watchResize,ec=i.watchSlides,ed=i.watchDrag,ef=i.watchFocus,ep={measure:function(e){var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}},em=ep.measure(t),eh=n.map(ep.measure),ey=(d="rtl"===J,p=(f="y"===Q)||!d?1:-1,m=f?"top":d?"right":"left",h=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:m,endEdge:h,measureSize:function(e){var t=e.height,n=e.width;return f?t:n},direction:function(e){return e*p}}),eg=ey.measureSize(em),ev={measure:function(e){return e/100*eg}},eb=(s=X,l=eg,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return Pg(s)?u[s](e):s(l,e,t)}}),ew=!et&&!!el,ex=et||!!el,eS=(y=ey.measureSize,g=ey.startEdge,v=ey.endEdge,b=eh[0]&&ex,w=function(){if(!b)return 0;var e=eh[0];return Pw(em[g]-e[g])}(),x=b?parseFloat(a.getComputedStyle(Pj(n)).getPropertyValue("margin-".concat(v))):0,S=eh.map(y),j=eh.map(function(e,t,n){var r=t===PE(n);return t?r?S[t]+x:n[t+1][g]-e[g]:S[t]+w}).map(Pw),{slideSizes:S,slideSizesWithGaps:j,startGap:w,endGap:x}),ej=eS.slideSizes,eE=eS.slideSizesWithGaps,eO=eS.startGap,ek=eS.endGap,eD=(E=ey.startEdge,O=ey.endEdge,k=ey.direction,D=Py(eo),{groupSlides:function(e){return D?PS(e).filter(function(e){return e%eo==0}).map(function(t){return e.slice(t,t+eo)}):e.length?PS(e).reduce(function(t,n,r){var a=Pj(t)||0,i=n===PE(e),o=em[E]-eh[a][E],s=em[E]-eh[n][O],l=et||0!==a?0:k(eO),u=Pw(s-(!et&&i?k(ek):0)-(o+l));return r&&u>eg+2&&t.push(n),i&&t.push(e.length),t},[]).map(function(t,n,r){var a=Math.max(r[n-1]||0);return e.slice(a,t)}):[]}}),eP=(P=ey.startEdge,A=ey.endEdge,T=(C=eD.groupSlides)(eh).map(function(e){return Pj(e)[A]-e[0][P]}).map(Pw).map(eb.measure),R=C(N=eh.map(function(e){return em[P]-e[P]}).map(function(e){return-Pw(e)})).map(function(e){return e[0]}).map(function(e,t){return e+T[t]}),{snaps:N,snapsAligned:R}),eA=eP.snaps,eC=eP.snapsAligned,eT=-Pj(eA)+Pj(eE),eN=function(e,t,n,r){var a,i,o=PA(-t+e,0),s=n.map(function(e,t){var r=o.min,a=o.max,i=o.constrain(e),s=t===PE(n);return t?s||function(e,t){return 1>=Pw(e-t)}(r,i)?r:function(e,t){return 1>=Pw(e-t)}(a,i)?a:i:a}).map(function(e){return parseFloat(e.toFixed(3))}),l=(a=s[0],i=Pj(s),PA(s.lastIndexOf(a),s.indexOf(i)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return s;var n=l.min,a=l.max;return s.slice(n,a)}(),scrollContainLimit:l}}(eg,eT,eC,el),eR=eN.snapsContained,eM=eN.scrollContainLimit,eI=ew?eR:eC,eL=(M=eI[0],{limit:PA(et?M-eT:Pj(eI),M)}).limit,e_=function e(t,n,r){var a=PA(0,t).constrain,i=t+1,o=s(n);function s(e){return r?Pw((i+e)%i):a(e)}function l(){return e(t,o,r)}var u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(PE(eI),ee,et),eF=e_.clone(),eV=PS(n),eB=function(e){var t=e.dragHandler,n=e.scrollBody,r=e.scrollBounds;e.options.loop||r.constrain(t.pointerDown()),n.seek()},ez=function(e,t){var n=e.scrollBody,r=e.translate,a=e.location,i=e.offsetLocation,o=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,m=n.settled(),h=!f.shouldConstrain(),y=p?m:m&&h,g=y&&!u.pointerDown();g&&c.stop();var v=a.get()*t+o.get()*(1-t);i.set(v),p&&(s.loop(n.direction()),l.loop()),r.to(i.get()),g&&d.emit("settle"),y||d.emit("scroll")},eU=function(e,t,n,r){var a=PP(),i=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,n(),n());var a=e-o;for(o=e,s+=a;s>=i;)n(),s-=i;r(s/i),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){a.add(e,"visibilitychange",function(){e.hidden&&(o=null,s=0)})},destroy:function(){c(),a.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:n,render:r}}(r,a,function(){return eB(e2)},function(e){return ez(e2,e)}),eW=eI[e_.get()],e$=PC(eW),eH=PC(eW),eG=PC(eW),eq=PC(eW),eY=function(e,t,n,r,a){var i=0,o=0,s=a,l=.68,u=e.get(),c=0;function d(e){return s=e,p}function f(e){return l=e,p}var p={direction:function(){return o},duration:function(){return s},velocity:function(){return i},seek:function(){var t=r.get()-e.get(),a=0;return s?(n.set(e),i+=t/s,i*=l,u+=i,e.add(i),a=u-c):(i=0,n.set(r),e.set(r),a=t),o=Px(a),c=u,p},settled:function(){return .001>Pw(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(a)},useFriction:f,useDuration:d};return p}(e$,eG,eH,eq,en),eK=function(e,t,n,r,a){var i=r.reachedAny,o=r.removeOffset,s=r.constrain;function l(e){return e.concat().sort(function(e,t){return Pw(e)-Pw(t)})[0]}function u(t,r){var a=[t,t+n,t-n];if(!e)return t;if(!r)return l(a);var i=a.filter(function(e){return Px(e)===r});return i.length?l(i):Pj(a)-n}return{byDistance:function(n,r){var l,c=a.get()+n,d=(l=e?o(c):s(c),{index:t.map(function(e,t){return{diff:u(e-l,0),index:t}}).sort(function(e,t){return Pw(e.diff)-Pw(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,m=!e&&i(c);if(!r||m)return{index:f,distance:n};var h=n+u(t[f]-p,0);return{index:f,distance:h}},byIndex:function(e,n){var r=u(t[e]-a.get(),n);return{index:e,distance:r}},shortcut:u}}(et,eI,eT,eL,eq),eZ=function(e,t,n,r,a,i,o){function s(a){var s=a.distance,l=a.index!==t.get();i.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(a.index),o.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,n){var r=t.clone().set(e);s(a.byIndex(r.get(),n))}}}(eU,e_,eF,eY,eK,eq,o),eX=(I=eL.max,L=eL.length,{get:function(e){return L?-((e-I)/L):0}}),eQ=PP(),eJ=(F={},V=null,B=null,z=!1,{init:function(){_=new IntersectionObserver(function(e){z||(e.forEach(function(e){F[n.indexOf(e.target)]=e}),V=null,B=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:ei}),n.forEach(function(e){return _.observe(e)})},destroy:function(){_&&_.disconnect(),z=!0},get:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&V)return V;if(!e&&B)return B;var t=Pk(F).reduce(function(t,n){var r=parseInt(n),a=F[r].isIntersecting;return(e&&a||!e&&!a)&&t.push(r),t},[]);return e&&(V=t),e||(B=t),t}}),e0=(U=eD.groupSlides,W=eM.min,$=eM.max,{slideRegistry:(c=U(eV),1===eI.length?[eV]:ew&&"keepSnaps"!==el?c.slice(W,$).map(function(e,t,n){var r=t===PE(n);return t?r?PO(PE(eV)-Pj(n)[0]+1,Pj(n)[0]):e:PO(Pj(n[0])+1)}):c)}).slideRegistry,e1=function(e,t,n,r,a,i,o,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(i.add(document,"keydown",c,!1),t.forEach(function(t,c){i.add(t,"focus",function(t){(Pv(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var i=n.findIndex(function(e){return e.includes(t)});Py(i)&&(a.useDuration(0),r.index(i,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,n,e0,eZ,eY,eQ,o,ef),e2={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:em,slideRects:eh,animation:eU,axis:ey,dragHandler:function(e,t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,g){var v=e.cross,b=e.direction,w=["INPUT","SELECT","TEXTAREA"],x={passive:!1},S=PP(),j=PP(),E=PA(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},k={mouse:500,touch:600},D=m?43:25,P=!1,A=0,C=0,T=!1,N=!1,R=!1,M=!1;function I(e){if(!PD(e,r)&&e.touches.length>=2)return L(e);var t=i.readPoint(e),n=i.readPoint(e,v),o=Pw(t-A),l=Pw(n-C);if(!N&&!M&&(!e.cancelable||!(N=o>l)))return L(e);var c=i.pointerMove(e);o>h&&(R=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(b(c)),e.preventDefault()}function L(e){var t,n,r,a=c.byDistance(0,!1).index!==d.get(),o=i.pointerUp(e)*(m?k:O)[M?"mouse":"touch"],s=(t=b(o),n=d.add(-1*Px(t)),r=c.byDistance(t,!m).distance,m||Pw(t)<E?r:y&&a?.5*r:c.byIndex(n.get(),0).distance),p=function(e,t){if(0===e||0===t||Pw(e)<=Pw(t))return 0;var n,r,a=(n=Pw(e),r=Pw(t),Pw(n-r));return Pw(a/e)}(o,s);N=!1,T=!1,j.clear(),u.useDuration(D-10*p).useFriction(.68+p/50),l.distance(s,!m),M=!1,f.emit("pointerUp")}function _(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){g&&S.add(t,"dragstart",function(e){return e.preventDefault()},x).add(t,"touchmove",function(){},x).add(t,"touchend",function(){}).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",L).add(t,"contextmenu",L).add(t,"click",_,!0);function s(s){var l,c,d,p;(Pv(g)||g(e,s))&&(M=p=PD(l=s,r),R=m&&p&&!l.buttons&&P,P=Pw(a.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",w.includes(c)||(T=!0,i.pointerDown(l),u.useFriction(0).useDuration(0),a.set(o),d=M?n:t,j.add(d,"touchmove",I,x).add(d,"touchend",L).add(d,"mousemove",I,x).add(d,"mouseup",L),A=i.readPoint(l),C=i.readPoint(l,v),f.emit("pointerDown"))))}},destroy:function(){S.clear(),j.clear()},pointerDown:function(){return T}}}(ey,e,r,a,eq,function(e,t){var n,r;function a(e){return e.timeStamp}function i(n,r){var a=r||e.scroll;return(PD(n,t)?n:n.touches[0])["client".concat("x"===a?"X":"Y")]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){var t=i(e)-i(r),o=a(e)-a(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;var t=i(r)-i(n),o=a(e)-a(n),s=a(e)-a(r)>170,l=t/o;return o&&!s&&Pw(l)>.1?l:0},readPoint:i}}(ey,a),e$,eU,eZ,eY,eK,e_,o,ev,er,ea,es,ed),eventStore:eQ,percentOfView:ev,index:e_,indexPrevious:eF,limit:eL,location:e$,offsetLocation:eG,previousLocation:eH,options:i,resizeHandler:function(e,t,n,r,a,i,o){var s,l,u=[e].concat(r),c=[],d=!1;function f(e){return a.measureSize(o.measure(e))}return{init:function(a){i&&(l=f(e),c=r.map(f),s=new ResizeObserver(function(n){(Pv(i)||i(a,n))&&function(n){var i=!0,o=!1,s=void 0;try{for(var u,p=n[Symbol.iterator]();!(i=(u=p.next()).done);i=!0){var m=u.value;if(d)return;var h=m.target===e,y=r.indexOf(m.target),g=h?l:c[y],v=f(h?e:r[y]);if(Pw(v-g)>=.5){a.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{i||null==p.return||p.return()}finally{if(o)throw s}}}(n)}),n.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,a,n,ey,eu,ep),scrollBody:eY,scrollBounds:function(e,t,n,r,a){var i=a.measure(10),o=a.measure(50),s=PA(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(a){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=Pw(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(c/o);n.subtract(d*f),!a&&Pw(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(eL,eG,eq,eY,ev),scrollLooper:(H=[e$,eG,eH,eq],q=(G=PA(eL.min+.1,eL.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&q(eG.get())){var t=-1*e*eT;H.forEach(function(e){return e.add(t)})}}}),scrollProgress:eX,scrollSnapList:eI.map(eX.get),scrollSnaps:eI,scrollTarget:eK,scrollTo:eZ,slideLooper:function(e,t,n,r,a,i,o,s,l){var u=PS(a),c=PS(a).reverse(),d=m(p(c,o[0]),n,!1).concat(m(p(u,t-o[0]-1),-n,!0));function f(e,t){return e.reduce(function(e,t){return e-a[t]},t)}function p(e,t){return e.reduce(function(e,n){return f(e,t)>0?e.concat([n]):e},[])}function m(a,o,u){var c=i.map(function(e,n){return{start:e-r[n]+.5+o,end:e+t-.5+o}});return a.map(function(t){var r=u?0:-n,a=u?n:0,i=c[t][u?"end":"start"];return{index:t,loopPoint:i,slideLocation:PC(-1),translate:PT(e,l[t]),target:function(){return s.get()>i?r:a}}})}return{canLoop:function(){return d.every(function(e){var n=e.index;return .1>=f(u.filter(function(e){return e!==n}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,n=e.translate,r=e.slideLocation,a=t();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:d}}(ey,eg,eT,ej,eE,eA,eI,eG,n),slideFocus:e1,slidesHandler:(Z=!1,{init:function(e){ec&&(K=new MutationObserver(function(t){!Z&&(Pv(ec)||ec(e,t))&&function(t){var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(t)})).observe(t,{childList:!0})},destroy:function(){K&&K.disconnect(),Z=!0}}),slidesInView:eJ,slideIndexes:eV,slideRegistry:e0,slidesToScroll:eD,target:eq,translate:PT(ey,t)};return e2}(e,u,c,d,f,n,y);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(O),b([E].concat(function(e){if(Array.isArray(e))return Ph(e)}(o=k.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e){if(e){if("string"==typeof e)return Ph(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ph(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).forEach(function(e){return h.add(e,"change",P)}),O.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(N),s.eventHandler.init(N),s.resizeHandler.init(N),s.slidesHandler.init(N),s.options.loop&&s.slideLooper.loop(),u.offsetParent&&c.length&&s.dragHandler.init(N),l=m.init(N,k)))}function P(e,t){var n=T();A(),D(g({startIndex:n},e),t),y.emit("reInit")}function A(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),m.destroy(),h.clear()}function C(e,t,n){O.active&&!j&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),s.scrollTo.index(e,n||0))}function T(){return s.index.get()}var N={canScrollNext:function(){return s.index.add(1).get()!==T()},canScrollPrev:function(){return s.index.add(-1).get()!==T()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){j||(j=!0,h.clear(),A(),y.emit("destroy"),y.clear())},off:x,on:w,emit:S,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:P,rootNode:function(){return e},scrollNext:function(e){C(s.index.add(1).get(),e,-1)},scrollPrev:function(e){C(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:C,selectedScrollSnap:T,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return D(t,n),setTimeout(function(){return y.emit("init")},0),N}function PM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PM(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,h.useRef)(e),r=(0,h.useRef)(t),a=PI((0,h.useState)(),2),i=a[0],o=a[1],s=PI((0,h.useState)(),2),l=s[0],u=s[1],c=(0,h.useCallback)(function(){i&&i.reInit(n.current,r.current)},[i]);return(0,h.useEffect)(function(){Pp(n.current,e)||(n.current=e,c())},[e,c]),(0,h.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var n=Pm(e),r=Pm(t);return n.every(function(e,t){return Pp(e,r[t])})}(r.current,t)&&(r.current=t,c())},[t,c]),(0,h.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){PR.globalOptions=PL.globalOptions;var e=PR(l,n.current,r.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,i]}PR.globalOptions=void 0,PL.globalOptions=void 0;let P_={root:"tdejYd2vuxy0mfD4W2J+jw==",viewport:"BzM337PSXvRayyYwjsiCKw==","viewport--x":"_98E0ZUOehP1rxRPgPQZzQg==","viewport--y":"CCMIiXjCBQAMwkqxJsI3Pg==",container:"TG-E6FLJUAkSIHrYBvoXtg==","container--x":"aUzVDJOwTVV4q-Kn0oqNPA==","container--y":"Q-tXlloS3nMGAM5J9W6GwA==",slide:"eqtMmBhS05zGHR0EesgHaw==","slide--x":"_0fY9RrAfetQ4jWZ6O0WhJQ==","slide--y":"_9d8JpyHV87JtGiAWP8Btuw==",thumbsViewport:"gavQFViS+IVYeAlNj8hlBQ==",thumbsContainer:"umsVBn0z4F-ma9IJu78PFw==","thumbsContainer--x":"HMLba9Ijt06btOrMVkk-jg==","thumbsContainer--y":"IuqTKMYP2zQBbtfSj1+0XQ==",thumb:"_6tC7bHzuA6DP75VG3mb1Vw==","thumb--active":"rSXJb09-+ekHWs9Kr6eK-g==",thumbImage:"H3rE7ZtwW0NN8Ti1+k45Sg==",dots:"xhwJiTmcB78zUtdgAtJm4Q==",dot:"ftAUylfEUwMcgWd8ag4h8g==","dot--active":"_9GeJo3THY2950-iACPngew=="};function PF(e){var t=e.children,n=e.className,r=Pd(),a=r.axis,i=r.mainViewportRef;return(0,m.jsx)("div",{ref:i,className:v()(P_.viewport,P_["viewport--".concat(a)],n),children:(0,m.jsx)("div",{className:v()(P_.container,P_["container--".concat(a)]),children:t})})}function PV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PV(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pz(e){var t,n,r,a=e.children,i=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(r=null==i?void 0:i.axis)?r:"x",f=PB(PL((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},i),n=n={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),o),2),p=f[0],g=f[1],b=PB(PL({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),w=b[0],x=b[1],S=PB((0,h.useState)(0),2),j=S[0],E=S[1],O=(0,h.useMemo)(function(){return function(e){var t=y().Children.toArray(e),n=!0,r=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;if(y().isValidElement(s)&&s.type===PF){var l=s.props;return y().Children.toArray(l.children).filter(y().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return[]}(a)},[a]),k=(0,h.useCallback)(function(e){null==g||g.scrollTo(e)},[g]),D=(0,h.useCallback)(function(){if(g){var e=g.selectedScrollSnap();E(e),null==x||x.scrollTo(e)}},[g,x]);return(0,h.useEffect)(function(){if(g)return D(),g.on("select",D).on("reInit",D),function(){g.off("select",D).off("reInit",D)}},[g,D]),(0,m.jsx)(Pc.Provider,{value:{axis:d,mainViewportRef:p,mainApi:g,thumbsViewportRef:w,thumbsApi:x,selectedIndex:j,scrollTo:k,thumbnails:O},children:(0,m.jsx)("div",{className:v()(P_.root,u),style:c,children:a})})}function PU(e){var t=e.children,n=e.className,r=Pd().axis;return(0,m.jsx)("div",{className:v()(P_.slide,P_["slide--".concat(r)],n),children:t})}function PW(e){var t=e.className,n=e.thumbsSliderClassName,r=Pd(),a=r.axis,i=r.thumbsViewportRef,o=r.thumbnails,s=r.selectedIndex,l=r.scrollTo;return 0===o.length?null:(0,m.jsx)("div",{ref:i,className:v()(P_.thumbsViewport,t),children:(0,m.jsx)("div",{className:v()(P_.thumbsContainer,P_["thumbsContainer--".concat(a)]),children:o.map(function(e,t){var r,a,i=t===s;return(0,m.jsx)("button",{type:"button",onClick:function(){return l(t)},className:v()(P_.thumb,(r={},a=P_["thumb--active"],a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r),i&&n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":i,children:e&&(0,m.jsx)("img",{src:e,alt:"",className:P_.thumbImage})},t)})})})}function P$(e){var t=e.className,n=e.dotClassName,r=Pd(),a=r.thumbnails,i=r.selectedIndex,o=r.scrollTo;return 0===a.length?null:(0,m.jsx)("div",{className:v()(P_.dots,t),children:a.map(function(e,t){var r,a,s;return(0,m.jsx)("button",{type:"button",onClick:function(){return o(t)},className:v()(P_.dot,(r={},a=P_["dot--active"],s=t===i,a in r?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s,r),n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===i},t)})})}function PH(e){var t=e.id,n=e.as,r=e.variant,a=void 0===r?"transparent":r,i=e.title,o=e.titleAs,s=e.description,l=e.actions,u=e.ariaLabel,c=e.bare,d=e.className,f=e.children,p=!!(i||s||l);return(0,m.jsxs)(void 0===n?"section":n,{id:t,"aria-label":u,className:["xsPyVpEdgja0llYjB3PdYg==","panel"===a?"IdjlGes9g7I9RGbalXKuEw==":"mSODpTRIETPzwrdlVZKHAQ==",void 0!==c&&c&&"panel"===a?"dqH8uZ6svn0a-ANxRswbEw==":"",null!=d?d:""].filter(Boolean).join(" "),children:[p&&(0,m.jsxs)("div",{className:"LYLZgwdW+ZQ094mxka6QwQ==",children:[(0,m.jsxs)("div",{className:"+Aqb8e3ZepkrAMa4z4v-tQ==",children:[i&&(0,m.jsx)(void 0===o?"h2":o,{className:"QEtbLMiYFeiRjc7fZ+Qrwg==",children:i}),s&&(0,m.jsx)("p",{className:"teYjkGxaHLinWBvLv5ULwA==",children:s})]}),l&&(0,m.jsx)("div",{className:"yD97e81VCsiEGleZjd-MSQ==",children:l})]}),(0,m.jsx)("div",{className:"gH7gSQGqCrm6Kdq+mty58A==",children:f})]})}function PG(e){var t,n=e.tile,r=e.size,a=e.onSelect,i=e.className;return(0,m.jsxs)(mY.div,{whileHover:{scale:"large"===r?1.008:1.012},transition:{duration:.2},onClick:function(){return a(n)},role:"button",tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(n))},className:["epn5Xr0wuijHX+AGdLOjTQ==","large"===r?"vfFCu1fewysJ2OePivqftg==":"_5PSxM40V8VvkMWcjtHh7lQ==",null!=i?i:""].join(" "),children:[(0,m.jsx)("img",{src:n.imageUrl,alt:n.title,className:"FZ7wibJ0rKv9a7xHLPzhCw==",referrerPolicy:"no-referrer"}),(0,m.jsx)("div",{className:"V2q1if8rFbKRFCMAsXIx3A=="}),(0,m.jsx)("div",{className:"RhZz5XHN5ocl4A43Psz1eg==",children:"large"===r?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h3",{className:"FDykDf3R9FzapTX-dyKZTg==",children:n.title}),(0,m.jsx)("span",{className:"ehVT3WDOS1PC11dEIvTfsw==",children:null!=(t=n.linkText)?t:"En savoir plus →"})]}):(0,m.jsx)("h4",{className:"j3a-9yic75kspWNZW+1m+Q==",children:n.title})})]})}function Pq(e){var t=e.mainTile,n=e.secondaryTiles,r=e.onSelectTile;return(0,m.jsxs)("div",{className:"gqDAe+adtM8NJnnwyLSxnA==",children:[(0,m.jsx)(PG,{tile:t,size:"large",onSelect:r}),n.slice(0,4).map(function(e){return(0,m.jsx)(PG,{tile:e,size:"medium",onSelect:r},e.id)})]})}function PY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PK(e){if(Array.isArray(e))return e}function PZ(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function PX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function PQ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function PJ(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function P0(e,t){return PK(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||P2(e,t)||PZ()}function P1(e){return PK(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P2(e)||PZ()}function P2(e,t){if(e){if("string"==typeof e)return PY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PY(e,t)}}var P3=(0,h.forwardRef)(function(e,t){var n=e.left,r=e.center,a=e.right,i=e.secondary,o=e.children,s=e.sticky,l=void 0===s||s,u=e.stickyOffset,c=e.variant,d=e.ariaLabel,f=e.className,p=e.wrapperClassName;return(0,m.jsxs)("div",{className:ya("flex flex-col w-full z-(--z-index-sticky,200)",l&&"sticky",p),style:l?{top:void 0===u?"var(--own-offline-banner-height, 0px)":u}:void 0,children:[(0,m.jsxs)("header",{ref:t,role:"banner","aria-label":void 0===d?"Navigation principale":d,className:ya("relative flex w-full items-center justify-between gap-2 px-3 sm:px-4 select-none","h-(--layout-header-height,48px) border-b","border-b-(--panel-header-border,rgba(255,255,255,0.08))","text-(--colors-surface-foreground,#f4f4f4)","glass"===(void 0===c?"glass":c)?"bg-(--panel-header-background,rgba(11,25,44,0.72)) backdrop-blur-xl shadow-(--panel-header-box-shadow,0_1px_12px_rgba(0,0,0,0.25))":"bg-(--colors-surface-card,#0b192c) shadow-(--panel-header-box-shadow,none)",f),children:[(0,m.jsx)("div",{className:"flex min-w-0 shrink-0 items-center gap-2",children:n}),r?(0,m.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-2",children:r}):null,(0,m.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:a}),o]}),i?(0,m.jsx)("div",{className:"w-full",children:i}):null]})}),P4=(0,h.forwardRef)(function(e,t){var n=P1([e,t]),r=n[0],a=n.slice(1),i=r.icon,o=r.label,s=r.badge,l=r.active,u=void 0!==l&&l,c=r.className,d=r.type,f=PJ(r,["icon","label","badge","active","className","type"]),p=P0(a,1)[0],h=null!=s&&""!==s&&0!==s;return(0,m.jsxs)("button",PQ(PX({ref:p,type:void 0===d?"button":d,title:o,"aria-label":o,"aria-pressed":u||void 0,className:ya("relative inline-flex h-9 min-w-9 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-inherit transition-colors duration-150 outline-none","hover:bg-white/10 focus-visible:ring-2 focus-visible:ring-primary-400",u&&"bg-primary-500/25 text-primary-200",c)},f),{children:[i,h?(0,m.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-500 px-1 text-[10px] font-bold leading-none text-white",children:s}):null]}))});function P5(e){var t=e.className;return(0,m.jsx)("div",{"aria-hidden":"true",className:ya("mx-1 h-5 w-px bg-white/15",t)})}var P6=(0,h.forwardRef)(function(e,t){var n=P1([e,t]),r=n[0],a=n.slice(1),i=r.src,o=r.name,s=r.active,l=r.className,u=r.type,c=PJ(r,["src","name","active","className","type"]),d=P0(a,1)[0],f=o.split(/\s+/).filter(Boolean).slice(0,2).map(function(e){var t;return null==(t=e[0])?void 0:t.toUpperCase()}).join("");return(0,m.jsx)("button",PQ(PX({ref:d,type:void 0===u?"button":u,title:o,"aria-label":o,className:ya("relative inline-flex h-8 w-8 cursor-pointer items-center justify-center overflow-hidden rounded-full p-0","border border-primary-400/50 bg-primary-900/40 text-xs font-bold text-white outline-none","transition-transform duration-150 hover:scale-105 focus-visible:ring-2 focus-visible:ring-primary-400",void 0!==s&&s&&"ring-2 ring-primary-400",l)},c),{children:i?(0,m.jsx)("img",{src:i,alt:"",className:"h-full w-full object-cover"}):f}))}),P8={conversation:{id:"conversation",number:"1",name:"Mode Conversation",shortName:"Conversation",tagline:"Comprendre & R\xe9pondre",badgeLabel:"Conv",emoji:"\uD83D\uDCAC",iconName:"MessageSquare",color:{text:"text-sky-400",bg:"bg-sky-500/10",border:"border-sky-500/30",ring:"ring-sky-500/40",badgeBg:"bg-sky-500",badgeText:"text-slate-950",glow:"shadow-sky-500/25",accent:"#38bdf8"},principle:"L'agent comprend et r\xe9pond.",bullets:["Questions & r\xe9ponses","Explications & clarifications","Discussion en langage naturel","Conseil informationnel"],example:"\xab Qu'est-ce que cette fonctionnalit\xe9 ? \xbb"},recherche:{id:"recherche",number:"2",name:"Mode Recherche / Analyse",shortName:"Recherche",tagline:"Chercher, R\xe9cup\xe9rer & Interpr\xe9ter",badgeLabel:"Rech",emoji:"\uD83D\uDD0E",iconName:"Search",color:{text:"text-amber-400",bg:"bg-amber-500/10",border:"border-amber-500/30",ring:"ring-amber-500/40",badgeBg:"bg-amber-400",badgeText:"text-slate-950",glow:"shadow-amber-500/25",accent:"#fbbf24"},principle:"L'agent cherche, r\xe9cup\xe8re et interpr\xe8te de l'information.",bullets:["Recherche dans la base de connaissances","Consultation & extraction documentaire","Analyse et croisement de donn\xe9es","Comparaison & synth\xe8se structur\xe9e"],example:"\xab Trouve les documents concernant ce projet et r\xe9sume-les. \xbb"},action:{id:"action",number:"3",name:"Mode Action",shortName:"Action",tagline:"Agir sur le Syst\xe8me via Outils",badgeLabel:"Act",emoji:"⚙️",iconName:"Zap",color:{text:"text-emerald-400",bg:"bg-emerald-500/10",border:"border-emerald-500/30",ring:"ring-emerald-500/40",badgeBg:"bg-emerald-400",badgeText:"text-slate-950",glow:"shadow-emerald-500/25",accent:"#34d399"},principle:"L'agent agit sur le syst\xe8me \xe0 travers des outils (diff\xe9rence cl\xe9 avec un simple chatbot).",bullets:["Cr\xe9er, modifier, supprimer des contenus","Publier & programmer des diffusions","Appeler des API & int\xe9grations","D\xe9clencher des workflows & automatisations"],example:"\xab Cr\xe9e cette actualit\xe9 et programme sa publication demain. \xbb"},autonome:{id:"autonome",number:"4",name:"Mode Autonome",shortName:"Autonome",tagline:"Orchestration Multi-\xe9tapes vers un Objectif",badgeLabel:"Auto",emoji:"\uD83E\uDD16",iconName:"Cpu",color:{text:"text-purple-400",bg:"bg-purple-500/10",border:"border-purple-500/30",ring:"ring-purple-500/40",badgeBg:"bg-purple-400",badgeText:"text-slate-950",glow:"shadow-purple-500/25",accent:"#c084fc"},principle:"L'agent re\xe7oit un objectif et d\xe9termine lui-m\xeame les \xe9tapes n\xe9cessaires sans guidage pas-\xe0-pas.",bullets:["Planification intelligente de l’objectif","Recherche & analyse autonome","Cr\xe9ation & ex\xe9cution des actions requises","V\xe9rification & production du r\xe9sultat final"],example:"\xab Pr\xe9pare toute la communication de notre \xe9v\xe9nement. \xbb",schema:["Objectif","Planification","Recherche","Analyse","Cr\xe9ation","Actions","V\xe9rification","R\xe9sultat"]}},P9="egen_assistant_mode";function P7(){if("u"<typeof window)return"conversation";try{var e=localStorage.getItem(P9);if(e&&P8[e])return e}catch(e){}return"conversation"}function Ae(e){if("u">typeof window)try{localStorage.setItem(P9,e)}catch(e){}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var Ar=["#7C6AF7","#7DD3C7","#E8B4D4"];function Aa(){return"u">typeof process&&(null==process.env?void 0:"production")!=="production"}function Ai(e){var t=e.replace("#","").trim(),n=Number.parseInt(3===t.length?t.split("").map(function(e){return e+e}).join(""):t.padEnd(6,"0").slice(0,6),16);return Number.isNaN(n)?[.96,.96,.96]:[(n>>16&255)/255,(n>>8&255)/255,(255&n)/255]}function Ao(e,t,n){var r=e.createShader(t);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))?r:(Aa()&&console.warn("LiveOrb: shader failed to compile\n",e.getShaderInfoLog(r)),e.deleteShader(r),null):null}function As(e,t,n,r){var a,i="#F4F4F5",o="#09090B",s=0,l=Ar;return"black"===e?(i="#18181B",o="#F4F4F5"):"webgl"===e?(i=null!=(a=(l=r&&r.length>0?r:Ar)[1])?a:Ar[1],o="#0C0C10",s=1):"custom"===e&&(i=null!=t?t:"#7C5CFF",o=null!=n?n:"#FAFAFA"),{body:i,eye:o,mode:s,palette:l}}function Al(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=An({variant:"white",interactive:!0,blink:!0},n),a={x:0,y:.08},i={x:0,y:.08},o=!1,s=e.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1,powerPreference:"high-performance"});if(!s)return null;var l=Ao(s,s.VERTEX_SHADER,"\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}\n"),u=Ao(s,s.FRAGMENT_SHADER,"\nprecision highp float;\n\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform float u_speed;\nuniform vec2 u_look;\nuniform float u_blink;\nuniform float u_mode;\nuniform vec3 u_body;\nuniform vec3 u_eye;\nuniform vec3 u_c1;\nuniform vec3 u_c2;\nuniform vec3 u_c3;\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat noise(vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n float a = hash(i);\n float b = hash(i + vec2(1.0, 0.0));\n float c = hash(i + vec2(0.0, 1.0));\n float d = hash(i + vec2(1.0, 1.0));\n vec2 u = f * f * (3.0 - 2.0 * f);\n return mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;\n}\n\nfloat fbm(vec2 p) {\n float v = 0.0;\n float a = 0.5;\n mat2 m = mat2(1.6, 1.2, -1.2, 1.6);\n for (int i = 0; i < 5; i++) {\n v += a * noise(p);\n p = m * p;\n a *= 0.5;\n }\n return v;\n}\n\nvec3 orient(vec3 p, vec2 look) {\n float yaw = look.x * 0.92;\n float pitch = -look.y * 0.78;\n float cy = cos(yaw);\n float sy = sin(yaw);\n float cp = cos(pitch);\n float sp = sin(pitch);\n vec3 q = vec3(p.x, p.y * cp - p.z * sp, p.y * sp + p.z * cp);\n return vec3(q.x * cy + q.z * sy, q.y, -q.x * sy + q.z * cy);\n}\n\nfloat eyeMask(vec3 n, vec3 e, vec3 right, vec3 up, float halfH, float rad) {\n float facing = dot(n, e);\n float x = dot(n, right) - dot(e, right);\n float y = dot(n, up) - dot(e, up);\n y -= clamp(y, -halfH, halfH);\n float d = length(vec2(x, y)) - rad;\n float fill = 1.0 - smoothstep(-0.01, 0.01, d);\n return fill * smoothstep(0.12, 0.32, facing);\n}\n\nvec3 wash(vec3 n, float t) {\n vec2 q = n.xy * 2.2 + n.z * 0.85;\n vec2 w1 = vec2(\n fbm(q * 1.4 + vec2(t * 0.22, t * 0.18)),\n fbm(q * 1.4 + vec2(-t * 0.16, t * 0.24) + 4.1)\n );\n q += (w1 - 0.5) * 0.72;\n float f = fbm(q * 2.1 + vec2(0.0, t * 0.12));\n float g = fbm(q * 4.6 - vec2(t * 0.2, 0.0));\n vec3 col = mix(u_c1, u_c2, smoothstep(0.28, 0.72, f));\n return mix(col, u_c3, pow(smoothstep(0.42, 0.9, g), 1.4));\n}\n\nvoid main() {\n vec2 uv = (gl_FragCoord.xy / u_resolution.xy) * 2.0 - 1.0;\n float aspect = u_resolution.x / max(u_resolution.y, 1.0);\n uv.x *= aspect;\n\n float radius = 0.94;\n vec2 p = uv / radius;\n float r2 = dot(p, p);\n float edge = 1.0 - smoothstep(0.985, 1.012, sqrt(max(r2, 0.0)));\n if (edge <= 0.001) {\n gl_FragColor = vec4(0.0);\n return;\n }\n\n float z = sqrt(max(1.0 - r2, 0.0));\n vec3 n = normalize(vec3(p, z));\n\n vec2 look = u_look;\n float lm = length(look);\n if (lm > 1.0) look /= lm;\n\n vec3 right = orient(vec3(1.0, 0.0, 0.0), look);\n vec3 up = orient(vec3(0.0, 1.0, 0.0), look);\n vec3 eL = orient(normalize(vec3(-0.32, 0.08, 1.0)), look);\n vec3 eR = orient(normalize(vec3(0.32, 0.08, 1.0)), look);\n\n float halfH = mix(0.128, 0.012, u_blink);\n float rad = mix(0.054, 0.062, u_blink);\n float eyes = max(\n eyeMask(n, eL, right, up, halfH, rad),\n eyeMask(n, eR, right, up, halfH, rad)\n );\n\n vec3 body = u_mode > 0.5 ? wash(n, u_time * u_speed) : u_body;\n vec3 col = mix(body, u_eye, clamp(eyes, 0.0, 1.0));\n\n gl_FragColor = vec4(clamp(col, 0.0, 1.0), edge);\n}\n");if(!l||!u)return null;var c=s.createProgram();if(!c)return null;if(s.attachShader(c,l),s.attachShader(c,u),s.linkProgram(c),!s.getProgramParameter(c,s.LINK_STATUS))return Aa()&&console.warn("LiveOrb: program failed to link\n",s.getProgramInfoLog(c)),null;s.useProgram(c),null==(t=r.onHasGl)||t.call(r,!0);var d=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,d),s.bufferData(s.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),s.STATIC_DRAW);var f=s.getAttribLocation(c,"a_position");s.enableVertexAttribArray(f),s.vertexAttribPointer(f,2,s.FLOAT,!1,0,0);var p=s.getUniformLocation(c,"u_resolution"),m=s.getUniformLocation(c,"u_time"),h=s.getUniformLocation(c,"u_speed"),y=s.getUniformLocation(c,"u_look"),g=s.getUniformLocation(c,"u_blink"),v=s.getUniformLocation(c,"u_mode"),b=s.getUniformLocation(c,"u_body"),w=s.getUniformLocation(c,"u_eye"),x=s.getUniformLocation(c,"u_c1"),S=s.getUniformLocation(c,"u_c2"),j=s.getUniformLocation(c,"u_c3");s.enable(s.BLEND),s.blendFunc(s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA);var E=0,O=!0,k=performance.now(),D=k+1800+2400*Math.random(),P=-1e4,A=function(){var t=e.parentElement;if(t){var n=Math.min(window.devicePixelRatio||1,2),r=t.clientWidth,a=t.clientHeight;r<=0||a<=0||(e.width=Math.max(1,Math.floor(r*n)),e.height=Math.max(1,Math.floor(a*n)),e.style.width="".concat(r,"px"),e.style.height="".concat(a,"px"),s.viewport(0,0,e.width,e.height))}};A();var C=new ResizeObserver(A);e.parentElement&&C.observe(e.parentElement);var T=window.matchMedia("(prefers-reduced-motion: reduce)"),N=function(){o=T.matches};N(),T.addEventListener("change",N);var R=function(t){if(r.interactive){var n=e.parentElement;if(n){var a=n.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var o=(t.clientX-(a.left+a.width/2))/(a.width/2),s=(a.top+a.height/2-t.clientY)/(a.height/2);i.x=Math.min(1,Math.max(-1,o)),i.y=Math.min(1,Math.max(-1,s))}}}};window.addEventListener("pointermove",R,{passive:!0});var M=function(t){if(O){var n=As(r.variant,r.color,r.eyeColor,r.colors);r.interactive?(a.x+=(i.x-a.x)*.16,a.y+=(i.y-a.y)*.16):(a.x+=(0-a.x)*.12,a.y+=(.08-a.y)*.12),!o&&r.blink&&t>=D&&(P=t,D=t+2200+3800*Math.random());var l=(t-P)/1e3,u=0;!o&&r.blink&&(l<.055?u=l/.055:l<.1?u=1:l<.18&&(u=1-(l-.1)/.08));var c=Ai(n.body),d=Ai(n.eye),f=[0,1,2].map(function(e){var t;return Ai(null!=(t=n.palette[e%n.palette.length])?t:Ar[e])});s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.uniform2f(p,e.width,e.height),s.uniform1f(m,o?0:(t-k)/1e3),s.uniform1f(h,.55*!o),s.uniform2f(y,a.x,a.y),s.uniform1f(g,u),s.uniform1f(v,n.mode),s.uniform3f(b,c[0],c[1],c[2]),s.uniform3f(w,d[0],d[1],d[2]),s.uniform3f(x,f[0][0],f[0][1],f[0][2]),s.uniform3f(S,f[1][0],f[1][1],f[1][2]),s.uniform3f(j,f[2][0],f[2][1],f[2][2]),s.drawArrays(s.TRIANGLES,0,6),E=requestAnimationFrame(M)}};return E=requestAnimationFrame(M),{setOptions:function(e){r=An({},r,e)},destroy:function(){var e;O=!1,cancelAnimationFrame(E),C.disconnect(),T.removeEventListener("change",N),window.removeEventListener("pointermove",R),null==(e=r.onHasGl)||e.call(r,!1),s.deleteProgram(c),s.deleteShader(l),s.deleteShader(u),s.deleteBuffer(d)}}}function Au(e){var t,n=e.className,r=e.size,a=void 0===r?280:r,i=e.variant,o=void 0===i?"white":i,s=e.color,l=e.eyeColor,u=e.colors,c=e.interactive,d=void 0===c||c,f=e.blink,p=void 0===f||f,y=(0,h.useRef)(null),g=(0,h.useRef)(null),v=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return At(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return At(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=v[0],w=v[1];(0,h.useEffect)(function(){var e=y.current;if(e)return g.current=Al(e,{variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,onHasGl:w}),function(){var e;null==(e=g.current)||e.destroy(),g.current=null}},[]),(0,h.useEffect)(function(){var e;null==(e=g.current)||e.setOptions({variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,onHasGl:w})},[o,s,l,u,d,p]);var x=As(o,s,l,u);return(0,m.jsxs)("div",{"data-slot":"live-orb",role:"img","aria-label":"Orb character",className:ya("relative shrink-0",n),style:{width:a,height:a},children:[b?null:(0,m.jsxs)("div",{"aria-hidden":!0,className:"absolute inset-[2%] overflow-hidden rounded-full",style:function(e){if(1===e.mode){var t,n,r,a=null!=(t=e.palette[0])?t:Ar[0],i=null!=(n=e.palette[1])?n:Ar[1],o=null!=(r=e.palette[2])?r:Ar[2];return{backgroundImage:"linear-gradient(135deg, ".concat(a,", ").concat(i,", ").concat(o,")")}}return{backgroundColor:e.body}}(x),children:[(0,m.jsx)("span",{className:"absolute rounded-full",style:{backgroundColor:x.eye,width:"13%",height:"28%",left:"31%",top:"34%"}}),(0,m.jsx)("span",{className:"absolute rounded-full",style:{backgroundColor:x.eye,width:"13%",height:"28%",left:"56%",top:"34%"}})]}),(0,m.jsx)("canvas",{ref:y,className:"absolute inset-0 size-full"})]})}function Ac(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ad(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Af(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Ad(i,r,a,o,s,"next",e)}function s(e){Ad(i,r,a,o,s,"throw",e)}o(void 0)})}}function Ap(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Am(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Am(e,t){if(e){if("string"==typeof e)return Ac(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ac(e,t)}}function Ah(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function Ay(e){var t=e.text,n=Ap((0,h.useState)("auto"),2),r=n[0],a=n[1],i=(0,h.useRef)(null);return(0,h.useEffect)(function(){i.current&&a(i.current.offsetWidth)},[t]),(0,m.jsxs)("span",{className:"relative inline-flex items-center justify-center overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",style:{width:r},children:[(0,m.jsx)("span",{ref:i,className:"invisible whitespace-nowrap px-1",children:t}),(0,m.jsx)("span",{className:"absolute inset-0 flex items-center justify-center whitespace-nowrap animate-in fade-in zoom-in-95 duration-300",children:t},t)]})}function Ag(e){var t=e.model,n=e.className,r={"Composer 2.5":"https://cdn.21st.dev/assets/mirror/7d/7dc00bc09f225fcda46cbc9c6b669c69c025a231877d6c17baa6a003f04f02b2.svg","Gemini 3.5 Flash":"https://cdn.21st.dev/assets/mirror/cd/cda2df6631d5fa227de3fa04ed78cf354f910ba92a9f086e7455655c10ad9d09.svg","GPT 5.5":"https://cdn.21st.dev/assets/mirror/b9/b93fa7942be639a1dae60194ff12141145d7d9fd59581582d6ff23335755f19c.svg","Opus 4.8":"https://cdn.21st.dev/assets/mirror/5d/5de1221c77cc91e748066fd642ad0eee1c1fa65328814f5178166f901e599709.svg","GLM 5.2":"https://cdn.21st.dev/assets/mirror/b2/b2a6c0ff63efd8a555edf8a174ea6fcfeca120ac1595a2d461ca11d3ae89276c.svg"};return(0,m.jsx)("img",{src:r[t]||r["GPT 5.5"],alt:t,className:ya("object-contain",{"GPT 5.5":"dark:invert"}[t],n)})}function Av(){return(0,m.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("path",{d:"M7 12V2M7 2L2.5 6.5M7 2L11.5 6.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ab(){return(0,m.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,m.jsx)("rect",{x:"5",y:"1",width:"4",height:"7",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M2.75 6.5V7a4.25 4.25 0 0 0 8.5 0v-.5M7 11.25V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function Aw(){return(0,m.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",fill:"currentColor"})})}function Ax(){return(0,m.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("path",{d:"M7 2.5V11.5M2.5 7H11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function AS(){return(0,m.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,m.jsx)("path",{d:"M2.5 2.5L11.5 11.5M11.5 2.5L2.5 11.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function Aj(e){var t=e.level;return(0,m.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,m.jsx)("rect",{x:"1.5",y:"8",width:"2.5",height:"4.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:1}),(0,m.jsx)("rect",{x:"5.75",y:"5",width:"2.5",height:"7.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Medium"===t||"Max Effort"===t?1:.3}),(0,m.jsx)("rect",{x:"10",y:"2",width:"2.5",height:"10.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Max Effort"===t?1:.3})]})}function AE(e){var t=e.attachment,n=e.index,r=e.onRemove,a=e.onOpen,i=e.registerRef,o=Ap((0,h.useState)(!1),2),s=o[0],l=o[1],u=(0,h.useRef)(null);return(0,m.jsxs)("button",{ref:function(e){u.current=e,i(t.id,e)},type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},onClick:function(e){e.stopPropagation(),u.current&&a(t,u.current.getBoundingClientRect())},style:{animationDelay:"".concat(35*n,"ms"),animationFillMode:"backwards"},className:ya("group relative size-12 shrink-0 overflow-hidden rounded-xl border border-border bg-muted outline-none","transition-transform duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:scale-[1.04] active:scale-[0.96]","animate-in fade-in slide-in-from-top-3 zoom-in-90 duration-400"),"aria-label":"Open preview of ".concat(t.name),children:[(0,m.jsx)("img",{src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1}),(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-start justify-end bg-black/0 transition-colors duration-200",s&&"bg-black/25"),children:(0,m.jsx)("span",{role:"button",tabIndex:-1,onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.stopPropagation(),r(t.id)},className:ya("m-1 flex size-4 items-center justify-center rounded-full bg-background/90 text-foreground/70 shadow-sm transition-all duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-background hover:text-foreground hover:scale-110",s?"opacity-100 scale-100":"opacity-0 scale-50 pointer-events-none"),"aria-label":"Remove ".concat(t.name),children:(0,m.jsx)(AS,{})})})]})}function AO(e){var t=e.attachment,n=e.originRect,r=e.onClose,a=Ap((0,h.useState)("opening"),2),i=a[0],o=a[1],s=Ap((0,h.useState)(null),2),l=s[0],u=s[1],c=(0,h.useRef)(null);(0,h.useEffect)(function(){var e=Math.min(.86*window.innerWidth,560),n=Math.min(.78*window.innerHeight,720),r=t.width||800,a=t.height||600,i=Math.min(e/r,n/a,1.6),s=r*i,l=a*i;u({top:(window.innerHeight-l)/2,left:(window.innerWidth-s)/2,width:s,height:l,radius:20});var c=requestAnimationFrame(function(){return o("open")});return function(){return cancelAnimationFrame(c)}},[t]);var d=(0,h.useCallback)(function(){return o("closing")},[]);(0,h.useEffect)(function(){var e=function(e){"Escape"===e.key&&d()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[d]);var f="open"===i,p="closing"===i,y=f&&l?l:{top:n.top,left:n.left,width:n.width,height:n.height,radius:12},g=p?"ease-out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)",v=p?"0.3s":"0.45s",b="top ".concat(v," ").concat(g,", left ").concat(v," ").concat(g,", width ").concat(v," ").concat(g,", height ").concat(v," ").concat(g,", border-radius ").concat(v," ").concat(g);return(0,m.jsxs)("div",{className:"fixed inset-0 z-[100]",onClick:d,role:"dialog","aria-modal":"true",children:[(0,m.jsx)("div",{className:"absolute inset-0 bg-background/70 backdrop-blur-md transition-opacity duration-400",style:{opacity:+!!f}}),(0,m.jsx)("div",{style:{position:"fixed",top:y.top,left:y.left,width:y.width,height:y.height,borderRadius:y.radius,transition:b,overflow:"hidden",boxShadow:f?"0 24px 60px -12px rgb(0 0 0 / 0.35)":"0 0px 0px 0px rgb(0 0 0 / 0)"},className:"bg-muted",onTransitionEnd:function(){"closing"===i&&r()},onClick:function(e){return e.stopPropagation()},children:(0,m.jsx)("img",{ref:c,src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1})}),(0,m.jsx)("button",{type:"button",onClick:d,style:{opacity:+!!f,transform:f?"scale(1)":"scale(0.7)"},className:ya("fixed right-4 top-4 flex size-9 items-center justify-center rounded-full bg-card/90 text-foreground/70 shadow-md backdrop-blur-sm","transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-card hover:text-foreground",!f&&"pointer-events-none"),children:(0,m.jsx)("span",{className:"scale-150",children:(0,m.jsx)(AS,{})})})]})}var Ak=h.forwardRef(function(e,t){var n=e.onSubmit,r=e.placeholder,a=void 0===r?"Ask anything":r,i=e.className,o=e.models,s=void 0===o?["GPT 5.5","Opus 4.8","Gemini 3.5 Flash","Composer 2.5","GLM 5.2"]:o,l=e.efforts,u=void 0===l?["Low","Medium","Max Effort"]:l,c=e.defaultValue,d=e.value,f=e.onChange,p=e.maxAttachments,y=void 0===p?6:p,g=Ap((0,h.useState)(!1),2),v=g[0],b=g[1],w=Ap((0,h.useState)(!1),2),x=w[0],S=w[1],j=Ap((0,h.useState)(void 0===c?"":c),2),E=j[0],O=j[1],k=Ap((0,h.useState)(s[0]),2),D=k[0],P=k[1],A=Ap((0,h.useState)(1),2),C=A[0],T=A[1],N=Ap((0,h.useState)(!1),2),R=N[0],M=N[1],I=Ap((0,h.useState)([]),2),L=I[0],_=I[1],F=Ap((0,h.useState)(null),2),V=F[0],B=F[1],z=Ap((0,h.useState)(!1),2),U=z[0],W=z[1],$=Ap((0,h.useState)([,,,,,].fill(0)),2),H=$[0],G=$[1],q=(0,h.useRef)(void 0!==d?d:E),Y=(0,h.useRef)(null),K=(0,h.useRef)(null),Z=(0,h.useRef)(null),X=(0,h.useRef)(null),Q=(0,h.useRef)(null),J=(0,h.useRef)(null),ee=Ap((0,h.useState)({opacity:0,transform:"translateY(0px) scale(0.95)",transition:"none"}),2),et=ee[0],en=ee[1],er=Ap((0,h.useState)(116),2),ea=er[0],ei=er[1],eo=Ap((0,h.useState)(68),2),es=eo[0],el=eo[1],eu=Ap((0,h.useState)(!1),2),ec=eu[0],ed=eu[1],ef=void 0!==d,ep=ef?d:E,em=""!==ep.trim()||L.length>0,eh=L.length>0,ey=(0,h.useRef)(null),eg=(0,h.useRef)(null),ev=(0,h.useRef)(null),eb=(0,h.useRef)(null),ew=(0,h.useRef)(null),ex=(0,h.useRef)(new Map);(0,h.useEffect)(function(){q.current=ep},[ep]);var eS=function(){var e=ey.current;if(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;ev.current&&(ev.current.style.opacity=Math.min(t/20,1).toString()),eb.current&&(eb.current.style.opacity=Math.min(Math.max(n-r-t-16,0)/10,1).toString())}},ej=(0,h.useCallback)(function(e){S(!0),ef||O(e),null==f||f(e)},[ef,f]),eE=(0,h.useCallback)(function(){X.current&&(X.current.stop(),X.current=null),Z.current&&(cancelAnimationFrame(Z.current),Z.current=null),Y.current&&(Y.current.getTracks().forEach(function(e){return e.stop()}),Y.current=null),K.current&&(K.current.close(),K.current=null),Q.current&&(window.clearInterval(Q.current),Q.current=null),J.current&&(window.clearInterval(J.current),J.current=null),W(!1),G([,,,,,].fill(0))},[]),eO=(0,h.useCallback)(function(){return Af(function(){var e,t,n,r,a,i,o,s;function l(){var e="Can you build a high fidelity Framer Motion layout animation for a dark mode dashboard?".split(" "),t=0,n=q.current;J.current=window.setInterval(function(){t<e.length?(ej(n=(n?n+" ":"")+e[t]),t++):eE()},300)}return Ah(this,function(u){switch(u.label){case 0:S(!1),b(!0),e=null,u.label=1;case 1:if(u.trys.push([1,4,,5]),!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return[3,3];return[4,navigator.mediaDevices.getUserMedia({audio:!0})];case 2:e=u.sent(),u.label=3;case 3:return[3,5];case 4:return u.sent(),console.warn("Microphone access denied or unavailable. Falling back to simulated voice mode for demo."),[3,5];case 5:return W(!0),e?(Y.current=e,K.current=t=new(window.AudioContext||window.webkitAudioContext),(n=t.createAnalyser()).fftSize=64,t.createMediaStreamSource(e).connect(n),r=new Uint8Array(n.frequencyBinCount),(a=function(){n.getByteFrequencyData(r);for(var e=[,,,,,].fill(0),t=Math.floor(r.length/5),i=0;i<5;i++){for(var o=0,s=0;s<t;s++)o+=r[i*t+s];e[i]=o/t/255}G(e),Z.current=requestAnimationFrame(a)})(),(i=window.SpeechRecognition||window.webkitSpeechRecognition)?((o=new i).continuous=!0,o.interimResults=!0,s=q.current,o.onresult=function(e){for(var t="",n="",r=e.resultIndex;r<e.results.length;++r)e.results[r].isFinal?n+=e.results[r][0].transcript:t+=e.results[r][0].transcript;n&&(s+=(s?" ":"")+n),ej((s+(t?" "+t:"")).trim())},o.onerror=function(e){console.error("Speech recognition error",e),eE()},o.onend=function(){eE()},X.current=o,o.start()):(console.warn("Speech Recognition API not supported in this browser. Using simulated text."),l())):(Q.current=window.setInterval(function(){G(Array.from({length:5},function(){return .8*Math.random()+.1}))},100),l()),[2]}})})()},[ej,eE]);(0,h.useEffect)(function(){U&&ey.current&&(ey.current.scrollTop=ey.current.scrollHeight)},[ep,U]),(0,h.useEffect)(function(){return function(){eE(),L.forEach(function(e){return URL.revokeObjectURL(e.url)})}},[eE,L]),(0,h.useEffect)(function(){(""!==ep.trim()||eh)&&!v&&(S(!1),b(!0))},[ep,v,eh]),(0,h.useEffect)(function(){if(v&&!U){var e=setTimeout(function(){if(ey.current){ey.current.focus();var e=ey.current.value.length;ey.current.setSelectionRange(e,e)}},50);return function(){return clearTimeout(e)}}},[v,U]),(0,h.useEffect)(function(){if(ey.current){var e=ey.current,t=e.style.height;e.style.transition="none",e.style.height="0px";var n=e.scrollHeight;e.style.height=t,e.offsetHeight,e.style.transition="";var r=Math.max(68,Math.min(n,160));e.style.height="".concat(r,"px"),el(r),ed(n>160),setTimeout(eS,0)}},[ep,v]),(0,h.useEffect)(function(){ei(Math.max(116,es+48)),setTimeout(eS,0)},[es]),(0,h.useEffect)(function(){if(R){var e=function(e){eg.current&&!eg.current.contains(e.target)&&M(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[R]);var ek=function(){(""!==ep.trim()||eh)&&(S(!1),null==n||n(ep,{model:D,effort:u[C],attachments:L.map(function(e){return e.file})}),ej(""),L.forEach(function(e){return URL.revokeObjectURL(e.url)}),_([]),b(!1),M(!1))},eD=function(e,t,n,r){var a="".concat(e.name,"-").concat(e.lastModified,"-").concat(Math.random().toString(36).slice(2,8));_(function(i){return((function(e){if(Array.isArray(e))return Ac(e)})(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||Am(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([{id:a,file:e,url:t,name:e.name,width:n,height:r}])})},eP=function(e){S(!0),_(function(t){var n=t.find(function(t){return t.id===e});return n&&URL.revokeObjectURL(n.url),t.filter(function(t){return t.id!==e})}),ex.current.delete(e)},eA=em&&!U,eC=!em&&!U;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{ref:function(e){"function"==typeof t?t(e):t&&(t.current=e),eg.current=e},onBlur:function(e){!(eg.current&&eg.current.contains(e.relatedTarget))&&(""!==ep.trim()||eh||U||(S(!1),b(!1),M(!1)))},className:ya("relative flex flex-col w-full",i),style:{maxWidth:"100%",transition:x?"max-width 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},children:[(0,m.jsx)("input",{ref:ew,type:"file",accept:"image/*",multiple:!0,onChange:function(e){return Af(function(){var t,n,r,a,i,o,s,l,u,c;return Ah(this,function(d){if(!(t=e.target.files)||(n=Array.from(t).filter(function(e){return e.type.startsWith("image/")}),e.target.value="",0===n.length))return[2];r=Math.max(0,y-L.length),a=n.slice(0,r),v?S(!0):(S(!1),b(!0)),i=!0,o=!1,s=void 0;try{for(l=function(){var e=c.value,t=URL.createObjectURL(e),n=new Image;n.onload=function(){return eD(e,t,n.naturalWidth,n.naturalHeight)},n.onerror=function(){return eD(e,t,800,600)},n.src=t},u=a[Symbol.iterator]();!(i=(c=u.next()).done);i=!0)l()}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return[2]})})()},className:"hidden",tabIndex:-1,"aria-hidden":"true"}),(0,m.jsx)("div",{"aria-hidden":!eh,style:{height:eh&&v?68:0,transition:x?"height 0.15s ease-out":"height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:"w-full relative z-0 overflow-hidden",children:(0,m.jsx)("div",{style:{position:"absolute",bottom:-8,left:20,right:20,height:68,transform:eh&&v?"translateY(0)":"translateY(100%)",opacity:eh&&v?1:0,transition:x?"transform 0.15s ease-out, opacity 0.15s ease-out":"transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out"},className:"border border-border border-b-0 bg-muted rounded-t-2xl px-2 pt-2 pb-1 flex items-start gap-2 overflow-x-auto prompt-scrollbar",children:L.map(function(e,t){return(0,m.jsx)(AE,{attachment:e,index:t,onRemove:eP,onOpen:function(e,t){return B({attachment:e,rect:t})},registerRef:function(e,t){return ex.current.set(e,t)}},e.id)})})}),(0,m.jsxs)("div",{onMouseDown:function(e){var t,n=e.target===ey.current;!v||n||U||(e.preventDefault(),null==(t=ey.current)||t.focus())},style:{borderRadius:24,height:v?ea:48,transition:x?"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)",overflow:v?"visible":"hidden"},className:ya("relative w-full border border-border bg-card shadow-sm focus-within:border-ring/40 focus-within:ring-1 focus-within:ring-ring/20 hover:border-border/80 z-10",v?"cursor-text":"cursor-default"),children:[(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .prompt-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-track { background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }\n .prompt-scrollbar:hover::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); }\n "}}),(0,m.jsx)("textarea",{ref:ey,value:ep,onChange:function(e){return ej(e.target.value)},onScroll:eS,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),ek()),"Escape"!==e.key||""!==ep.trim()||eh||(S(!1),b(!1),M(!1))},placeholder:a,"aria-label":"Prompt",disabled:U,style:{transition:x?"height 0.15s ease-out":"opacity 0.3s ease-out, transform 0.3s ease-out, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:ya("prompt-scrollbar absolute top-0 inset-x-0 z-[1] w-full resize-none bg-transparent pl-4 pr-12 py-3.5 text-sm leading-[22px] text-foreground outline-none placeholder:font-medium placeholder:text-muted-foreground/80 cursor-text",v?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 -translate-y-1 pointer-events-none",ec?"overflow-y-auto":"overflow-y-hidden",U&&"pointer-events-none")}),(0,m.jsx)("div",{ref:ev,className:"absolute left-4 right-12 top-0 z-[2] h-8 bg-gradient-to-b from-card via-card/90 to-transparent pointer-events-none"}),(0,m.jsx)("div",{ref:eb,className:"absolute left-4 right-12 z-[2] h-8 bg-gradient-to-t from-card via-card/90 to-transparent pointer-events-none",style:{opacity:0,top:"".concat(es-32,"px"),transition:x?"top 0.15s ease-out":"top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"}}),(0,m.jsx)("button",{type:"button",onClick:function(){S(!1),b(!0)},style:{transition:x?"none":"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:ya("absolute inset-x-0 top-0 z-[1] cursor-text pl-4 pr-12 py-[15px] text-left text-sm font-medium leading-[17px] text-muted-foreground/80 outline-none truncate",v?"opacity-0 scale-105 translate-y-1 pointer-events-none":"opacity-100 scale-100 translate-y-0"),"aria-label":"Open prompt input",children:a}),(0,m.jsxs)("div",{className:ya("absolute bottom-2 left-3 right-12 z-[10] flex items-center gap-0 transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",v&&!U?"opacity-100 blur-0 translate-y-0 pointer-events-auto":"opacity-0 blur-sm translate-y-2 pointer-events-none"),children:[(0,m.jsxs)("div",{className:"relative",children:[(0,m.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),M(function(e){return!e})},className:ya("group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 outline-none hover:bg-accent/60 hover:text-foreground cursor-default",R?"bg-accent/60 text-foreground":""),"aria-label":"Select model. Current: ".concat(D),children:[(0,m.jsx)(Ag,{model:D,className:"size-3.5 opacity-70 group-hover:opacity-100 transition-opacity"}),(0,m.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,m.jsx)(Ay,{text:D})})]}),(0,m.jsx)("div",{style:{transformOrigin:"bottom left"},onMouseLeave:function(){en(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={opacity:0,transform:e.transform.replace("scale(1)","scale(0.95)"),transition:"opacity 0.2s ease-in, transform 0.2s ease-out"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t})},className:ya("absolute bottom-full left-0 mb-2.5 z-50 w-44 rounded-2xl border border-border bg-card/95 p-1 shadow-xl backdrop-blur-md flex flex-col gap-0.5 transition-all duration-400 cursor-default",R?"opacity-100 scale-100 translate-y-0 pointer-events-auto ease-[cubic-bezier(0.34,1.56,0.64,1)]":"opacity-0 scale-95 translate-y-3 pointer-events-none ease-[cubic-bezier(0.175,0.885,0.32,1.275)]"),children:(0,m.jsxs)("div",{className:"relative flex flex-col gap-0.5",children:[(0,m.jsx)("div",{style:et,className:"absolute left-0 right-0 top-0 h-8 -z-10 rounded-xl bg-accent pointer-events-none"}),s.map(function(e,t){return(0,m.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){en(function(e){return{opacity:1,transform:"translateY(".concat(34*t,"px) scale(1)"),transition:0===e.opacity?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease"}})},onClick:function(t){t.stopPropagation(),P(e),M(!1)},className:"group relative flex h-8 w-full items-center justify-between rounded-xl px-2.5 py-1.5 text-left text-xs font-medium text-foreground/80 outline-none active:scale-[0.98] cursor-default",children:(0,m.jsxs)("span",{className:"flex items-center gap-2",children:[(0,m.jsx)(Ag,{model:e,className:"size-3.5 opacity-85 group-hover:opacity-100 transition-opacity"}),e]})},e)})]})})]}),(0,m.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),T(function(e){return(e+1)%u.length})},className:"group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default",children:[(0,m.jsx)(Aj,{level:u[C]}),(0,m.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,m.jsx)(Ay,{text:u[C]})})]}),(0,m.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){var t;e.stopPropagation(),null==(t=ew.current)||t.click()},disabled:L.length>=y,className:"ml-auto flex size-7 items-center justify-center rounded-full text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default disabled:opacity-40 disabled:pointer-events-none",children:(0,m.jsx)(Ax,{})})]}),(0,m.jsx)("div",{className:ya("absolute right-12 bottom-2 z-[10] flex h-8 items-center justify-end gap-[3px] transition-all duration-400 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",U?"w-16 opacity-100 translate-x-0":"w-0 opacity-0 translate-x-4 pointer-events-none"),children:H.map(function(e,t){return(0,m.jsx)("div",{className:"w-1 rounded-full bg-primary transition-[height] duration-75 ease-out",style:{height:"".concat(Math.max(4,24*e),"px")}},t)})}),(0,m.jsx)("button",{type:"button",onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.preventDefault(),U?eE():em?ek():eO()},"aria-label":eA?"Send prompt":U?"Stop recording":"Use voice input",style:{borderRadius:9999},className:"absolute right-2 bottom-2 z-[10] flex h-8 w-8 items-center justify-center bg-primary text-primary-foreground transition-all duration-300 hover:opacity-90 outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-default",children:(0,m.jsxs)("span",{className:"relative flex h-full w-full items-center justify-center",children:[(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eA?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,m.jsx)(Av,{})}),(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eC?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 -rotate-45 blur-[1px] pointer-events-none"),children:(0,m.jsx)(Ab,{})}),(0,m.jsx)("span",{className:ya("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",U?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,m.jsx)(Aw,{})})]})})]})]}),V&&(0,m.jsx)(AO,{attachment:V.attachment,originRect:V.rect,onClose:function(){return B(null)}})]})});function AD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Ak.displayName="PromptInput";var AP=(0,h.lazy)(function(){return n.e("1808").then(n.bind(n,339))}),AA=new Set;function AC(e){if(!("u"<typeof document||AA.has(e))){AA.add(e);var t=document.createElement("link");t.rel="preload",t.as="fetch",t.crossOrigin="anonymous",t.href=e,document.head.appendChild(t)}}function AT(e){var t,n=e.scene,r=e.className,a=e.onLoad,i=function(e){if(Array.isArray(e))return e}(t=(0,h.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return AD(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return AD(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];return(0,m.jsxs)("div",{className:"relative ".concat(void 0===r?"w-full h-full":r," overflow-hidden"),children:[!o&&(0,m.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center bg-[#030708] text-teal-400 gap-3 transition-opacity duration-300",children:[(0,m.jsx)("div",{className:"w-10 h-10 border-2 border-teal-400 border-t-transparent rounded-full animate-spin"}),(0,m.jsx)("span",{className:"text-xs font-mono tracking-widest text-teal-300/80 uppercase animate-pulse",children:"Initialisation Robot 3D..."})]}),(0,m.jsx)("div",{className:"w-full h-full transition-opacity duration-500 ".concat(o?"opacity-100":"opacity-0"),children:(0,m.jsx)(h.Suspense,{fallback:null,children:(0,m.jsx)(AP,{scene:n,className:"w-full h-full",onLoad:function(e){s(!0),a&&a(e)}})})})]})}var AN={mode:"dark",hue:0,saturation:1,brightness:1},AR={title:"Recursive Erosion particle sphere background",source:"<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Recursive Erosion Particle Sphere</title>\n <style>\n * { margin: 0; padding: 0; box-sizing: border-box; }\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n background: #0a0908;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n #stage {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n }\n </style>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js\"><\/script>\n</head>\n<body>\n <canvas id=\"stage\"></canvas>\n\n <script>\n (function() {\n var canvas = document.getElementById('stage');\n var width = window.innerWidth;\n var height = window.innerHeight;\n\n // Ensure canvas has dimension\n canvas.width = width;\n canvas.height = height;\n\n // Mouse tracking\n var mouseX = 0, mouseY = 0;\n var targetRotX = 0, targetRotY = 0;\n window.addEventListener('mousemove', function(e) {\n mouseX = (e.clientX / window.innerWidth) * 2 - 1;\n mouseY = -(e.clientY / window.innerHeight) * 2 + 1;\n });\n\n // Simple 3D noise approximation\n function snoise(x, y, z) {\n return Math.sin(x * 1.7 + y * 2.3) * Math.cos(y * 1.5 + z * 2.1) * Math.sin(z * 1.9 + x * 0.9);\n }\n\n // Check if THREE is loaded\n if (typeof THREE !== 'undefined') {\n initThree();\n } else {\n // In case external CDN fails, fallback to standalone canvas 2D rendering\n initCanvasFallback();\n }\n\n function initThree() {\n var scene = new THREE.Scene();\n var camera = new THREE.PerspectiveCamera(50, width / height, 0.1, 1000);\n camera.position.z = 240;\n\n var renderer = new THREE.WebGLRenderer({\n canvas: canvas,\n antialias: true,\n alpha: true,\n powerPreference: \"high-performance\"\n });\n renderer.setSize(width, height);\n renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));\n\n // Create 7,000 points on Fibonacci sphere\n var particleCount = 7000;\n var geometry = new THREE.BufferGeometry();\n var positions = new Float32Array(particleCount * 3);\n var basePositions = new Float32Array(particleCount * 3);\n var colors = new Float32Array(particleCount * 3);\n var sizes = new Float32Array(particleCount);\n\n var sphereRadius = 82;\n var goldenRatio = (1 + Math.sqrt(5)) / 2;\n\n for (var i = 0; i < particleCount; i++) {\n var y = 1 - (i / (particleCount - 1)) * 2;\n var radiusAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / goldenRatio;\n\n var x = Math.cos(theta) * radiusAtY;\n var z = Math.sin(theta) * radiusAtY;\n\n var bx = x * sphereRadius;\n var by = y * sphereRadius;\n var bz = z * sphereRadius;\n\n basePositions[i * 3] = bx;\n basePositions[i * 3 + 1] = by;\n basePositions[i * 3 + 2] = bz;\n\n positions[i * 3] = bx;\n positions[i * 3 + 1] = by;\n positions[i * 3 + 2] = bz;\n\n // Warm orange / amber / golden palette with organic gradient\n var ratio = (y + 1) * 0.5;\n var r = 1.0;\n var g = 0.38 + ratio * 0.28 + Math.random() * 0.12;\n var b = 0.05 + ratio * 0.08;\n\n colors[i * 3] = r;\n colors[i * 3 + 1] = g;\n colors[i * 3 + 2] = b;\n\n sizes[i] = 1.2 + Math.random() * 2.0;\n }\n\n geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));\n geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3));\n\n // Circular glow particle texture\n var circleCanvas = document.createElement('canvas');\n circleCanvas.width = 64;\n circleCanvas.height = 64;\n var ctx = circleCanvas.getContext('2d');\n var grad = ctx.createRadialGradient(32, 32, 0, 32, 32, 32);\n grad.addColorStop(0, 'rgba(255, 255, 255, 1)');\n grad.addColorStop(0.2, 'rgba(255, 160, 60, 0.9)');\n grad.addColorStop(0.5, 'rgba(255, 90, 20, 0.4)');\n grad.addColorStop(1, 'rgba(255, 60, 0, 0)');\n ctx.fillStyle = grad;\n ctx.fillRect(0, 0, 64, 64);\n\n var pTexture = new THREE.CanvasTexture(circleCanvas);\n\n var material = new THREE.PointsMaterial({\n size: 3.2,\n vertexColors: true,\n map: pTexture,\n transparent: true,\n blending: THREE.AdditiveBlending,\n depthWrite: false,\n opacity: 0.92\n });\n\n var points = new THREE.Points(geometry, material);\n scene.add(points);\n\n // 8 jagged lightning arcs that strike across the sphere\n var arcGroup = new THREE.Group();\n var arcLines = [];\n var ARC_COUNT = 8;\n var ARC_SEGMENTS = 20;\n\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcGeo = new THREE.BufferGeometry();\n var arcPos = new Float32Array(ARC_SEGMENTS * 3);\n arcGeo.setAttribute('position', new THREE.BufferAttribute(arcPos, 3));\n\n var arcMat = new THREE.LineBasicMaterial({\n color: new THREE.Color(1.0, 0.72 + Math.random() * 0.25, 0.3),\n transparent: true,\n opacity: 0.75,\n blending: THREE.AdditiveBlending,\n linewidth: 1.5\n });\n\n var line = new THREE.Line(arcGeo, arcMat);\n arcLines.push({ line: line, geo: arcGeo, phase: Math.random() * Math.PI * 2, speed: 0.8 + Math.random() * 0.6 });\n arcGroup.add(line);\n }\n scene.add(arcGroup);\n\n // Inner glowing core\n var coreGeo = new THREE.SphereGeometry(sphereRadius * 0.3, 16, 16);\n var coreMat = new THREE.MeshBasicMaterial({\n color: 0xff5500,\n transparent: true,\n opacity: 0.08,\n blending: THREE.AdditiveBlending,\n wireframe: true\n });\n var coreMesh = new THREE.Mesh(coreGeo, coreMat);\n scene.add(coreMesh);\n\n var clock = new THREE.Clock();\n\n function animate() {\n requestAnimationFrame(animate);\n var time = clock.getElapsedTime();\n\n // 4-second erosion breathing loop\n var loopCycle = (time % 4.0) / 4.0; // 0 to 1\n var erosionPulse = Math.sin(loopCycle * Math.PI * 2);\n\n var posAttr = geometry.attributes.position;\n var posArray = posAttr.array;\n\n for (var i = 0; i < particleCount; i++) {\n var i3 = i * 3;\n var bx = basePositions[i3];\n var by = basePositions[i3 + 1];\n var bz = basePositions[i3 + 2];\n\n // 3D noise for recursive erosion crumpling & hole creation\n var nVal = snoise(bx * 0.025 + time * 0.4, by * 0.025 + time * 0.3, bz * 0.025);\n var isHole = nVal > (0.42 - erosionPulse * 0.25);\n\n var displace = isHole ? (1.0 + (nVal - 0.3) * 0.65) : (1.0 + nVal * 0.12 * erosionPulse);\n posArray[i3] = bx * displace;\n posArray[i3 + 1] = by * displace;\n posArray[i3 + 2] = bz * displace;\n }\n posAttr.needsUpdate = true;\n\n // Lightning arcs updates\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcObj = arcLines[a];\n var aGeo = arcObj.geo;\n var aPos = aGeo.attributes.position.array;\n\n var tPhase = time * arcObj.speed + arcObj.phase;\n var p1Idx = Math.floor(Math.abs(Math.sin(tPhase * 0.7) * (particleCount - 1)));\n var p2Idx = Math.floor(Math.abs(Math.cos(tPhase * 0.5) * (particleCount - 1)));\n\n var x1 = posArray[p1Idx * 3], y1 = posArray[p1Idx * 3 + 1], z1 = posArray[p1Idx * 3 + 2];\n var x2 = posArray[p2Idx * 3], y2 = posArray[p2Idx * 3 + 1], z2 = posArray[p2Idx * 3 + 2];\n\n for (var s = 0; s < ARC_SEGMENTS; s++) {\n var tSeg = s / (ARC_SEGMENTS - 1);\n var sx = x1 + (x2 - x1) * tSeg;\n var sy = y1 + (y2 - y1) * tSeg;\n var sz = z1 + (z2 - z1) * tSeg;\n\n // Jagged lightning noise displacement\n if (s > 0 && s < ARC_SEGMENTS - 1) {\n var jitter = Math.sin(tSeg * Math.PI) * 7.5;\n sx += (Math.random() - 0.5) * jitter;\n sy += (Math.random() - 0.5) * jitter;\n sz += (Math.random() - 0.5) * jitter;\n }\n\n aPos[s * 3] = sx;\n aPos[s * 3 + 1] = sy;\n aPos[s * 3 + 2] = sz;\n }\n aGeo.attributes.position.needsUpdate = true;\n arcObj.line.material.opacity = 0.3 + Math.random() * 0.65;\n }\n\n // Smooth rotation & interactive mouse tilt\n targetRotX = mouseY * 0.45;\n targetRotY = mouseX * 0.55;\n\n points.rotation.y += 0.0035;\n points.rotation.x += (targetRotX - points.rotation.x) * 0.05;\n points.rotation.z += (targetRotY * 0.2 - points.rotation.z) * 0.05;\n\n arcGroup.rotation.copy(points.rotation);\n coreMesh.rotation.copy(points.rotation);\n\n renderer.render(scene, camera);\n }\n\n animate();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n camera.aspect = width / height;\n camera.updateProjectionMatrix();\n renderer.setSize(width, height);\n });\n }\n\n function initCanvasFallback() {\n var ctx = canvas.getContext('2d');\n var particles = [];\n var count = 3000;\n for (var i = 0; i < count; i++) {\n var y = 1 - (i / (count - 1)) * 2;\n var rAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / 1.6180339887;\n particles.push({\n x: Math.cos(theta) * rAtY,\n y: y,\n z: Math.sin(theta) * rAtY,\n baseRadius: 180\n });\n }\n\n var angleX = 0, angleY = 0;\n function renderLoop() {\n requestAnimationFrame(renderLoop);\n ctx.fillStyle = '#0a0908';\n ctx.fillRect(0, 0, width, height);\n\n var cx = width / 2;\n var cy = height / 2;\n\n angleY += 0.005;\n angleX = mouseY * 0.3;\n\n for (var i = 0; i < count; i += 2) {\n var p = particles[i];\n var cosY = Math.cos(angleY), sinY = Math.sin(angleY);\n var cosX = Math.cos(angleX), sinX = Math.sin(angleX);\n\n var x1 = p.x * cosY - p.z * sinY;\n var z1 = p.z * cosY + p.x * sinY;\n\n var y2 = p.y * cosX - z1 * sinX;\n var z2 = z1 * cosX + p.y * sinX;\n\n var scale = 400 / (400 + z2 * p.baseRadius);\n var px = cx + x1 * p.baseRadius * scale;\n var py = cy + y2 * p.baseRadius * scale;\n\n var alpha = Math.max(0.1, Math.min(1, (z2 + 1.2) * 0.45));\n ctx.fillStyle = 'rgba(255, 140, 40, ' + alpha + ')';\n ctx.beginPath();\n ctx.arc(px, py, Math.max(1, 2.0 * scale), 0, Math.PI * 2);\n ctx.fill();\n }\n }\n renderLoop();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n canvas.width = width;\n canvas.height = height;\n });\n }\n })();\n <\/script>\n</body>\n</html>",background:"#0a0908",theme:{lightBackground:"#f4f3f1",darkBackground:"#0a0908"},targets:[{selector:"#stage",role:"background"}],hiddenTargets:["#badge",".sr"]};function AM(e,t,n){return Math.min(n,Math.max(t,e))}function AI(e,t){var n,r;return null!=(n=null==(r=e.theme)?void 0:r["".concat(t,"Background")])?n:e.background}function AL(e){var t=e.mode,n=void 0===t?AN.mode:t,r=e.hue,a=void 0===r?AN.hue:r,i=e.saturation,o=void 0===i?AN.saturation:i,s=e.brightness,l=void 0===s?AN.brightness:s,u=e.className,c=e.style,d="light"===n?"light":"dark",f=AI(AR,d),p=(0,h.useMemo)(function(){var e,t,n,r,a,i,o,s;return t=AI(AR,d),n=AR.source,r=JSON.stringify(AR.targets).replace(/</g,"\\u003c"),a=JSON.stringify(null!=(e=AR.hiddenTargets)?e:[]).replace(/</g,"\\u003c"),i=JSON.stringify(d),o="<style data-threeui-focus>\nhtml, body { width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: ".concat(t," !important; color-scheme: ").concat(d,' !important; }\nbody { position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important; }\nbody > * { visibility: hidden !important; }\nbody[data-threeui-ready] > [data-threeui-role] { visibility: visible !important; }\n[data-threeui-residual] { display: none !important; }\n[data-threeui-hidden] { display: none !important; }\n[data-threeui-role="background"] { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; z-index: 0 !important; opacity: 1 !important; pointer-events: none !important; }\n[data-threeui-role="button"] { position: relative !important; z-index: 2 !important; opacity: 1 !important; flex: none !important; }\n[data-threeui-role="visual"] { position: relative !important; z-index: 1 !important; width: min(100%, 1040px) !important; max-width: 1040px !important; max-height: 100% !important; margin: auto !important; padding: 24px !important; overflow: auto !important; opacity: 1 !important; filter: none !important; }\n</style>'),s="<script data-threeui-focus>\n(function () {\n document.documentElement.dataset.sfMode = ".concat(i,";\n var isolated = false;\n function isolate() {\n if (isolated) return;\n var specs = ").concat(r,";\n var hiddenSelectors = ").concat(a,";\n var roots = [];\n hiddenSelectors.forEach(function (selector) {\n document.querySelectorAll(selector).forEach(function (element) {\n element.setAttribute('data-threeui-hidden', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n });\n specs.forEach(function (spec) {\n var element = document.querySelector(spec.selector);\n if (!element) return;\n element.setAttribute('data-threeui-role', spec.role);\n if (!roots.some(function (root) { return root.contains(element); })) roots.push(element);\n });\n if (!roots.length) return;\n isolated = true;\n roots.forEach(function (root) {\n var placeholderLink = root.matches('a[href=\"#\"]') ? root : root.querySelector('a[href=\"#\"]');\n if (placeholderLink) placeholderLink.addEventListener('click', function (event) { event.preventDefault(); });\n document.body.appendChild(root);\n });\n Array.from(document.body.children).forEach(function (element) {\n if (roots.indexOf(element) !== -1) return;\n element.setAttribute('data-threeui-residual', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n document.body.setAttribute('data-threeui-ready', '');\n requestAnimationFrame(function () { window.dispatchEvent(new Event('resize')); });\n }\n function scheduleIsolation() { setTimeout(isolate, 100); }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scheduleIsolation, { once: true });\n else scheduleIsolation();\n window.addEventListener('load', isolate, { once: true });\n})();\n<\/script>"),n.replace(/<\/head>/i,"".concat(o,"</head>")).replace(/<\/body>/i,"".concat(s,"</body>"))},[d]),y=AM(a,-180,180),g=AM(o,0,2),v=AM(l,.35,1.65),b=0===y&&1===g&&1===v?void 0:"hue-rotate(".concat(y,"deg) saturate(").concat(g,") brightness(").concat(v,")");return(0,m.jsx)("iframe",{className:u,"data-mode":d,title:AR.title,srcDoc:p,sandbox:"allow-scripts",loading:"eager",style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({display:"block",width:"100%",height:"100%",border:0,background:f,filter:b},c)})}function A_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AF(e){if(Array.isArray(e))return e}function AV(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AB(e,t){if(e){if("string"==typeof e)return A_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A_(e,t)}}var Az=(0,h.forwardRef)(function(e,t){var n,r,a,i=AF(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||AB(n)||AV(),o=i[0],s=i.slice(1),l=o.children,u=o.optionsComponent,c=o.header,d=o.footer,f=o.align,p=o.width,h=o.className,y=void 0===h?"":h,g=o.contentClassName,v=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["children","optionsComponent","header","footer","align","width","className","contentClassName"]),b=(AF(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||AB(s,1)||AV())[0],w=y.includes("fixed")||y.includes("absolute");return(0,m.jsx)("div",(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:b,className:"".concat(w?"":"absolute top-full mt-2"," z-[9999] text-xs text-slate-100 select-none overflow-hidden\n bg-slate-950/90 backdrop-blur-3xl rounded-2xl border border-white/20\n shadow-[0_16px_48px_0_rgba(0,0,0,0.65)]\n before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/[0.12] before:to-transparent before:pointer-events-none\n animate-in fade-in zoom-in-95 duration-150\n ").concat({right:"right-0",left:"left-0",center:"left-1/2 -translate-x-1/2",none:""}[void 0===f?"right":f],"\n ").concat(p||"","\n ").concat(y,"\n ")},v),a=a={children:(0,m.jsxs)("div",{className:"relative z-10 p-1.5 ".concat(void 0===g?"":g),children:[c&&(0,m.jsx)("div",{className:"pb-1.5 mb-1.5 border-b border-white/10 px-2 pt-1",children:c}),u||l,d&&(0,m.jsx)("div",{className:"pt-1.5 mt-1.5 border-t border-white/10 px-2 pb-1",children:d})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r))});Az.displayName="WaterGlassModal";function AU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AW=new(function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");AU(this,"ctx",null),AU(this,"isMuted",!1),AU(this,"volume",.5),AU(this,"lastPlayTimes",{}),AU(this,"noiseBuffer",null);try{var n=localStorage.getItem("egen_xbox_sound_muted");null!==n&&(this.isMuted="true"===n);var r=localStorage.getItem("egen_xbox_sound_volume");null!==r&&(this.volume=parseFloat(r)||.5)}catch(e){}if("u">typeof window){var a=function(){e.initContext(),window.removeEventListener("pointerdown",a),window.removeEventListener("keydown",a)};window.addEventListener("pointerdown",a,{passive:!0}),window.addEventListener("keydown",a,{passive:!0})}}return e=[{key:"initContext",value:function(){if(!this.ctx&&"u">typeof window){var e=window.AudioContext||window.webkitAudioContext;e&&(this.ctx=new e,this.generateNoiseBuffer())}return this.ctx&&"suspended"===this.ctx.state&&this.ctx.resume().catch(function(){}),this.ctx}},{key:"generateNoiseBuffer",value:function(){if(this.ctx){for(var e=.5*this.ctx.sampleRate,t=this.ctx.createBuffer(2,e,this.ctx.sampleRate),n=0;n<2;n++)for(var r=t.getChannelData(n),a=0;a<e;a++)r[a]=2*Math.random()-1;this.noiseBuffer=t}}},{key:"getIsMuted",value:function(){return this.isMuted}},{key:"setMuted",value:function(e){this.isMuted=e;try{localStorage.setItem("egen_xbox_sound_muted",String(e))}catch(e){}}},{key:"toggleMute",value:function(){return this.setMuted(!this.isMuted),this.isMuted||this.play("select"),this.isMuted}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(e){this.volume=Math.max(0,Math.min(1,e));try{localStorage.setItem("egen_xbox_sound_volume",String(this.volume))}catch(e){}}},{key:"play",value:function(e){if(!this.isMuted){var t=performance.now();if(!this.lastPlayTimes[e]||!(t-this.lastPlayTimes[e]<({hover:40,scroll:40,boundary:160,select:60,back:60,modalOpen:100,folderOpen:120,notification:180,achievement:250,toastSuccess:120,toastInfo:120,toastWarning:120,toastError:120,toggle:60})[e])){this.lastPlayTimes[e]=t;var n=this.initContext();if(n)try{switch(e){case"hover":this.playHover(n);break;case"select":this.playSelect(n);break;case"back":this.playBack(n);break;case"modalOpen":this.playModalOpen(n);break;case"folderOpen":this.playFolderOpen(n);break;case"scroll":this.playScroll(n);break;case"boundary":this.playBoundary(n);break;case"notification":this.playNotification(n);break;case"achievement":this.playAchievement(n);break;case"toastSuccess":this.playToastSuccess(n);break;case"toastInfo":this.playToastInfo(n);break;case"toastWarning":this.playToastWarning(n);break;case"toastError":this.playToastError(n);break;case"toggle":this.playToggle(n)}}catch(e){console.warn("Xbox Audio error:",e)}}}}},{key:"playHover",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sine",n.frequency.setValueAtTime(2200,t),n.frequency.exponentialRampToValueAtTime(1400,t+.025),a.type="bandpass",a.frequency.setValueAtTime(1800,t),a.Q.setValueAtTime(3,t);var i=.12*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.025),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.03)}},{key:"playSelect",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="sine",n.frequency.setValueAtTime(920,t),n.frequency.exponentialRampToValueAtTime(1480,t+.035),n.frequency.exponentialRampToValueAtTime(1100,t+.07);var a=.28*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.003),r.gain.exponentialRampToValueAtTime(.001,t+.07),n.connect(r),r.connect(e.destination);var i=e.createOscillator(),o=e.createGain();i.type="triangle",i.frequency.setValueAtTime(460,t),i.frequency.exponentialRampToValueAtTime(320,t+.05);var s=.15*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(s,t+.004),o.gain.exponentialRampToValueAtTime(.001,t+.05),i.connect(o),o.connect(e.destination),n.start(t),i.start(t),n.stop(t+.08),i.stop(t+.06)}},{key:"playBack",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(750,t),n.frequency.exponentialRampToValueAtTime(260,t+.015);var a=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02);var i=e.createOscillator(),o=e.createGain(),s=e.createBiquadFilter();i.type="sine",i.frequency.setValueAtTime(540,t),i.frequency.exponentialRampToValueAtTime(210,t+.085),s.type="lowpass",s.frequency.setValueAtTime(1200,t),s.frequency.exponentialRampToValueAtTime(360,t+.09),s.Q.setValueAtTime(1.8,t);var l=.28*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(l,t+.004),o.gain.exponentialRampToValueAtTime(1e-4,t+.095),i.connect(s),s.connect(o),o.connect(e.destination);var u=e.createOscillator(),c=e.createGain();u.type="sine",u.frequency.setValueAtTime(230,t),u.frequency.exponentialRampToValueAtTime(95,t+.095);var d=.18*this.volume;c.gain.setValueAtTime(0,t),c.gain.linearRampToValueAtTime(d,t+.005),c.gain.exponentialRampToValueAtTime(1e-4,t+.1),u.connect(c),c.connect(e.destination),i.start(t),u.start(t),i.stop(t+.1),u.stop(t+.11)}},{key:"playModalOpen",value:function(e){var t=this,n=e.currentTime,r=e.createBiquadFilter();if(r.type="lowpass",r.frequency.setValueAtTime(1100,n),r.Q.setValueAtTime(.7,n),r.connect(e.destination),this.noiseBuffer){var a=e.createBufferSource();a.buffer=this.noiseBuffer;var i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(450,n),i.frequency.exponentialRampToValueAtTime(700,n+.1),i.Q.setValueAtTime(1.2,n);var o=e.createGain(),s=.045*this.volume;o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.03),o.gain.exponentialRampToValueAtTime(1e-4,n+.18),a.connect(i),i.connect(o),o.connect(r),a.start(n),a.stop(n+.19)}[{freqStart:370,freqEnd:392,startOffset:0,dur:.22,vol:.14},{freqStart:554,freqEnd:587.33,startOffset:.022,dur:.24,vol:.12},{freqStart:740,freqEnd:783.99,startOffset:.045,dur:.2,vol:.08}].forEach(function(a){var i=e.createOscillator(),o=e.createGain();i.type="sine";var s=n+a.startOffset;i.frequency.setValueAtTime(a.freqStart,s),i.frequency.exponentialRampToValueAtTime(a.freqEnd,s+.06);var l=t.volume*a.vol;o.gain.setValueAtTime(0,s),o.gain.linearRampToValueAtTime(l,s+.022),o.gain.exponentialRampToValueAtTime(1e-4,s+a.dur),i.connect(o),o.connect(r),i.start(s),i.stop(s+a.dur+.01)})}},{key:"playFolderOpen",value:function(e){var t=this,n=e.currentTime;if(this.noiseBuffer){var r=e.createBufferSource();r.buffer=this.noiseBuffer;var a=e.createBiquadFilter();a.type="bandpass",a.frequency.setValueAtTime(350,n),a.frequency.exponentialRampToValueAtTime(2400,n+.12),a.frequency.exponentialRampToValueAtTime(600,n+.28),a.Q.setValueAtTime(3.5,n);var i=e.createGain(),o=.2*this.volume;i.gain.setValueAtTime(0,n),i.gain.linearRampToValueAtTime(o,n+.08),i.gain.exponentialRampToValueAtTime(1e-4,n+.28),r.connect(a),a.connect(i),i.connect(e.destination),r.start(n),r.stop(n+.3)}[659.25,987.77,1318.5].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(.85*r,n),i.frequency.exponentialRampToValueAtTime(r,n+.09);var s=.12*t.volume/(a+1);o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.04),o.gain.exponentialRampToValueAtTime(1e-4,n+.35),i.connect(o),o.connect(e.destination),i.start(n),i.stop(n+.36)})}},{key:"playScroll",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="triangle",n.frequency.setValueAtTime(1400,t),n.frequency.exponentialRampToValueAtTime(800,t+.018),a.type="bandpass",a.frequency.setValueAtTime(1200,t),a.Q.setValueAtTime(2,t);var i=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02)}},{key:"playBoundary",value:function(e){var t=e.currentTime,n=e.createBiquadFilter();n.type="lowpass",n.frequency.setValueAtTime(450,t),n.frequency.exponentialRampToValueAtTime(180,t+.06),n.Q.setValueAtTime(1.2,t),n.connect(e.destination);var r=e.createOscillator(),a=e.createGain();r.type="sine",r.frequency.setValueAtTime(210,t),r.frequency.exponentialRampToValueAtTime(85,t+.055);var i=.17*this.volume;a.gain.setValueAtTime(0,t),a.gain.linearRampToValueAtTime(i,t+.003),a.gain.exponentialRampToValueAtTime(1e-4,t+.065),r.connect(a),a.connect(n),r.start(t),r.stop(t+.07);var o=e.createOscillator(),s=e.createGain();o.type="triangle",o.frequency.setValueAtTime(110,t),o.frequency.exponentialRampToValueAtTime(55,t+.045);var l=.11*this.volume;s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(l,t+.002),s.gain.exponentialRampToValueAtTime(1e-4,t+.05),o.connect(s),s.connect(n),o.start(t),o.stop(t+.055)}},{key:"playNotification",value:function(e){var t=this,n=e.currentTime;[{f:880,start:0,dur:.22,vol:.25},{f:1320,start:.08,dur:.35,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.f,n+r.start);var o=t.volume*r.vol;i.gain.setValueAtTime(0,n+r.start),i.gain.linearRampToValueAtTime(o,n+r.start+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.start+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.start),a.stop(n+r.start+r.dur)})}},{key:"playAchievement",value:function(e){var t=this,n=e.currentTime;[{freq:739.99,time:0,dur:.15},{freq:1108.73,time:.08,dur:.55}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.freq,n+r.time);var o=.3*t.volume;i.gain.setValueAtTime(0,n+r.time),i.gain.linearRampToValueAtTime(o,n+r.time+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.time+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.time),a.stop(n+r.time+r.dur)}),[1479.98,1864.66,2217.46,2959.96].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(r,n+.12);var s=.22*t.volume/(a+1);o.gain.setValueAtTime(0,n+.12),o.gain.linearRampToValueAtTime(s,n+.14),o.gain.exponentialRampToValueAtTime(1e-4,n+.85),i.connect(o),o.connect(e.destination),i.start(n+.12),i.stop(n+.9)})}},{key:"playToastSuccess",value:function(e){var t=this,n=e.currentTime;[{f:739.99,delay:0,dur:.2,vol:.24},{f:932.33,delay:.04,dur:.22,vol:.26},{f:1108.73,delay:.08,dur:.42,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.008),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastInfo",value:function(e){var t=this,n=e.currentTime;[{f:880,delay:0,dur:.22,vol:.24},{f:1318.5,delay:.045,dur:.3,vol:.26},{f:440,delay:0,dur:.15,vol:.12}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.006),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastWarning",value:function(e){var t=this,n=e.currentTime;[{f:554.37,delay:0,dur:.06,vol:.25},{f:466.16,delay:.075,dur:.12,vol:.26}].forEach(function(r){var a=e.createOscillator(),i=e.createGain(),o=e.createBiquadFilter();a.type="triangle",o.type="bandpass",o.frequency.setValueAtTime(900,n+r.delay),o.Q.setValueAtTime(2.2,n+r.delay);var s=n+r.delay;a.frequency.setValueAtTime(r.f,s);var l=t.volume*r.vol;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(l,s+.005),i.gain.exponentialRampToValueAtTime(1e-4,s+r.dur),a.connect(o),o.connect(i),i.connect(e.destination),a.start(s),a.stop(s+r.dur+.01)})}},{key:"playToastError",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sawtooth",n.frequency.setValueAtTime(392,t),n.frequency.exponentialRampToValueAtTime(220,t+.12),a.type="lowpass",a.frequency.setValueAtTime(650,t),a.frequency.exponentialRampToValueAtTime(200,t+.12),a.Q.setValueAtTime(2,t);var i=.24*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.005),r.gain.exponentialRampToValueAtTime(1e-4,t+.13),n.connect(a),a.connect(r),r.connect(e.destination);var o=e.createOscillator(),s=e.createGain();o.type="sine",o.frequency.setValueAtTime(140,t),o.frequency.exponentialRampToValueAtTime(60,t+.15),s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(.18*this.volume,t+.005),s.gain.exponentialRampToValueAtTime(1e-4,t+.15),o.connect(s),s.connect(e.destination),n.start(t),o.start(t),n.stop(t+.14),o.stop(t+.16)}},{key:"playToggle",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(1100,t),n.frequency.exponentialRampToValueAtTime(1600,t+.02);var a=.18*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.03),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.035)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function A$(e){AW.play(e)}function AH(){return AW.getIsMuted()}function AG(){return AW.toggleMute()}function Aq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){AY(e,t,n[t])})}return e}function AZ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function AX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||AJ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AQ(e){return function(e){if(Array.isArray(e))return Aq(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AJ(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AJ(e,t){if(e){if("string"==typeof e)return Aq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aq(e,t)}}var A0={type:"spring",stiffness:560,damping:34,mass:.7};function A1(e,t){return e.find(function(e){return e.id===t})}function A2(e,t){return null==e?void 0:e.operators.find(function(e){return e.value===t})}function A3(e){var t,n,r=e.anchorKey,a=e.label,i=e.onClose,o=e.children,s=h.useRef(null),l=OF(),u=AX(h.useState(null),2),c=u[0],d=u[1],f=AX(h.useState(!1),2),p=f[0],y=f[1],g=AX(h.useState(null),2),v=g[0],b=g[1];h.useLayoutEffect(function(){var e=document.querySelector('[data-fb-anchor="'.concat(r,'"]'));d(e),y(!!(null==e?void 0:e.closest(".dark")))},[r]);var w=h.useRef(r);return w.current=r,h.useEffect(function(){return function(){var e;null==(e=document.querySelector('[data-fb-anchor="'.concat(w.current,'"]')))||e.focus()}},[]),h.useLayoutEffect(function(){if(c){var e=function(){var e=s.current;if(e){var t=c.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight,a=t.left,i=t.bottom+6;a=Math.max(8,a=Math.min(a,window.innerWidth-n-8)),i+r>window.innerHeight-8&&(i=t.top-6-r),b({top:i,left:a})}};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[c]),h.useEffect(function(){var e=function(e){!s.current||s.current.contains(e.target)||c&&c.contains(e.target)||i()},t=function(e){"Escape"===e.key&&(e.stopPropagation(),i())};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t,!0)}},[c,i]),(0,rC.createPortal)((0,m.jsx)("div",{className:p?"dark":"",style:{display:"contents"},children:(0,m.jsx)(mY.div,{ref:s,role:"dialog","aria-label":a,initial:!l&&{opacity:0,y:-3,scale:.985},animate:{opacity:1,y:0,scale:1},transition:{duration:.12,ease:[.2,.8,.2,1]},style:{position:"fixed",top:null!=(t=null==v?void 0:v.top)?t:-9999,left:null!=(n=null==v?void 0:v.left)?n:-9999,zIndex:60},className:"min-w-[13rem] max-w-[18rem] overflow-hidden rounded-lg border border-[var(--fb-border)] bg-[var(--fb-bg-surface)] shadow-[0_10px_30px_-8px_rgba(0,0,0,0.25)]",children:o})}),document.body)}function A4(e){var t=e.items,n=e.multi,r=e.loading,a=e.error,i=e.searchable,o=e.placeholder,s=e.onQuery,l=e.onPick,u=e.onRetry,c=e.ariaLabel,d=AX(h.useState(""),2),f=d[0],p=d[1],y=AX(h.useState(0),2),g=y[0],v=y[1],b=h.useId(),w=h.useRef(null),x=h.useRef(null),S=h.useMemo(function(){if(s)return t;var e=f.trim().toLowerCase();return e?t.filter(function(t){return t.label.toLowerCase().includes(e)}):t},[t,f,s]);h.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=w.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]),h.useEffect(function(){v(function(e){return Math.min(e,Math.max(0,S.length-1))})},[S.length]),h.useEffect(function(){var e,t=null==(e=x.current)?void 0:e.querySelector('[data-idx="'.concat(g,'"]'));null==t||t.scrollIntoView({block:"nearest"})},[g]);var j=function(e){var t=S[e];t&&l(t.value)},E=function(e){"ArrowDown"===e.key?(e.preventDefault(),v(function(e){return Math.min(e+1,S.length-1)})):"ArrowUp"===e.key?(e.preventDefault(),v(function(e){return Math.max(e-1,0)})):"Home"===e.key?(e.preventDefault(),v(0)):"End"===e.key?(e.preventDefault(),v(S.length-1)):"Enter"===e.key&&(e.preventDefault(),j(g))};return(0,m.jsxs)("div",{children:[(void 0===i||i)&&(0,m.jsx)("div",{className:"border-b border-[var(--fb-border)] p-1.5",children:(0,m.jsx)("input",{ref:w,role:"combobox","aria-expanded":"true","aria-controls":b,"aria-activedescendant":S[g]?"".concat(b,"-").concat(g):void 0,"aria-label":c,value:f,onChange:function(e){p(e.target.value),null==s||s(e.target.value)},onKeyDown:E,placeholder:void 0===o?"Rechercher…":o,className:"w-full bg-transparent px-1.5 py-1 text-[13px] text-[var(--fb-fg)] outline-none placeholder:text-[var(--fb-fg-subtle)]",autoComplete:"off",spellCheck:!1})}),(0,m.jsxs)("ul",{ref:x,id:b,role:"listbox","aria-multiselectable":n||void 0,"aria-label":c,className:"max-h-60 overflow-y-auto p-1",onKeyDown:E,tabIndex:-1,children:[r&&(0,m.jsxs)("li",{className:"flex items-center gap-2 px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:[(0,m.jsx)(Ct,{})," Chargement des options…"]}),a&&!r&&(0,m.jsxs)("li",{className:"px-2 py-2.5 text-[13px]",children:[(0,m.jsx)("p",{className:"text-[var(--fb-fg-muted)]",children:"Impossible de charger les options."}),(0,m.jsx)("button",{type:"button",onClick:u,className:"mt-1 rounded-md px-1.5 py-0.5 text-[13px] font-medium text-[var(--fb-fg)] underline decoration-[var(--fb-fg-subtle)] underline-offset-2 hover:decoration-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60",children:"R\xe9essayer"})]}),!r&&!a&&0===S.length&&(0,m.jsx)("li",{className:"px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun r\xe9sultat"}),!r&&!a&&S.map(function(e,t){var r=t===g;return(0,m.jsxs)("li",{id:"".concat(b,"-").concat(t),"data-idx":t,role:"option","aria-selected":n?!!e.selected:r,onMouseEnter:function(){return v(t)},onClick:function(){return l(e.value)},className:["flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-[13px] text-[var(--fb-fg)]",r?"bg-[var(--fb-bg-active)]":"bg-transparent"].join(" "),children:[n&&(0,m.jsx)("span",{"aria-hidden":!0,className:["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-[4px] border transition-colors",e.selected?"border-[var(--fb-border-strong)] bg-[var(--fb-border-strong)] text-[var(--fb-fg-on-accent)]":"border-[var(--fb-border)]"].join(" "),children:e.selected&&(0,m.jsx)(Ce,{})}),e.glyph&&(0,m.jsx)("span",{className:"shrink-0","aria-hidden":!0,children:e.glyph}),(0,m.jsx)("span",{className:"truncate",children:e.label}),!n&&e.selected&&(0,m.jsx)("span",{className:"ml-auto text-[var(--fb-fg-muted)]",children:(0,m.jsx)(Ce,{})})]},e.value)})]})]})}function A5(e){var t=e.inputType,n=e.arity,r=e.values,a=e.onCommit,i=e.ariaLabel,o=e.rangeLabels,s=void 0===o?["Min","Max"]:o,l=e.placeholder,u=h.useRef(null);h.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=u.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]);var c="w-full rounded-md border border-[var(--fb-border)] bg-transparent px-2 py-1.5 text-[13px] text-[var(--fb-fg)] outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60";if(2===n){var d=AX(r,2),f=d[0],p=void 0===f?"":f,y=d[1],g=void 0===y?"":y;return(0,m.jsxs)("div",{className:"flex items-start gap-2 p-2",children:[(0,m.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,m.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[0]}),(0,m.jsx)("input",{ref:u,type:t,value:p,"aria-label":"".concat(i," — ").concat(s[0]),onChange:function(e){return a([e.target.value,g])},className:c})]}),(0,m.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,m.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[1]}),(0,m.jsx)("input",{type:t,value:g,"aria-label":"".concat(i," — ").concat(s[1]),onChange:function(e){return a([p,e.target.value])},className:c})]})]})}var v=AX(r,1)[0];return(0,m.jsx)("div",{className:"p-2",children:(0,m.jsx)("input",{ref:u,type:t,value:void 0===v?"":v,placeholder:l,"aria-label":i,onChange:function(e){return a([e.target.value])},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur()},className:c})})}function A6(e){var t=e.role,n=e.children,r=e.onOpen,a=e.registerRef,i=e.tabIndex,o=e.ariaLabel,s=e.anchorKey,l=e.onFocus,u=e.muted,c=e.active,d=e.flash,f=e.disabled;return(0,m.jsx)("button",{type:"button",ref:a,tabIndex:i,"aria-label":o,"aria-haspopup":"listbox","aria-expanded":c,"aria-disabled":f||void 0,"data-fb-anchor":s,onFocus:l,onClick:r,"data-flash":d?"":void 0,className:["relative flex items-center gap-1 whitespace-nowrap px-2 py-[4px] text-[13px] leading-[1.35] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70",f?"cursor-default":"active:scale-[0.98]",u?"text-[var(--fb-fg-muted)]":"text-[var(--fb-fg)]",c?"bg-[var(--fb-bg-active)]":f?"":"hover:bg-[var(--fb-bg-hover)]","field"===t?"rounded-l-md font-medium":"","data-[flash]:animate-[fb-flash_620ms_ease-out]"].join(" "),children:n})}function A8(e){var t,n,r=e.fields,a=e.value,i=e.onChange,o=e.addLabel,s=void 0===o?"Filtre":o,l=e.emptyLabel,u=void 0===l?"Ajouter un filtre":l,c=e.clearLabel,d=e.allowDuplicateFields,f=void 0!==d&&d,p=e.disabled,y=e.className,g=e["aria-label"],v=OF(),b=AX(h.useState(null),2),w=b[0],x=b[1],S=AX(h.useState(null),2),j=S[0],E=S[1],O=h.useRef([]),k=AX(h.useState(0),2),D=k[0],P=k[1],A=AX(h.useState({}),2),C=A[0],T=A[1],N=[];a.forEach(function(e){N.push({filterId:e.id,kind:"field"}),N.push({filterId:e.id,kind:"operator"}),N.push({filterId:e.id,kind:"value"}),N.push({filterId:e.id,kind:"remove"})}),N.push({kind:"add"}),h.useEffect(function(){D>N.length-1&&P(N.length-1)},[N.length,D]);var R=function(e){var t,n=Math.max(0,Math.min(e,N.length-1));P(n),null==(t=O.current[n])||t.focus()},M=function(e){var t,n,o=A1(r,e);if(o){var s=o.operators[0],l={id:"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"f_".concat(Math.random().toString(36).slice(2,9)),field:e,operator:null!=(t=null==s?void 0:s.value)?t:"is",values:[]};i(AQ(a).concat([l])),x((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:l.id})}},I=function(e,t){var n,o=A1(r,t),s=null==o?void 0:o.operators[0];i(a.map(function(n){var r;return n.id===e?AZ(AK({},n),{field:t,operator:null!=(r=null==s?void 0:s.value)?r:n.operator,values:[]}):n})),x((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:e})},L=function(e,t){var n,o,s=a.find(function(t){return t.id===e}),l=A2(A1(r,null!=(n=null==s?void 0:s.field)?n:""),t),u=null!=(o=null==l?void 0:l.arity)?o:1;i(a.map(function(n){if(n.id!==e)return n;var r=0===u?[]:(null==l?void 0:l.multi)?n.values:n.values.slice(0,u);return AZ(AK({},n),{operator:t,values:r})})),x(0===u?null:{kind:"value",filterId:e})},_=function(e,t,n){i(a.map(function(r){if(r.id!==e)return r;if(!n)return AZ(AK({},r),{values:[t]});var a=r.values.includes(t);return AZ(AK({},r),{values:a?r.values.filter(function(e){return e!==t}):AQ(r.values).concat([t])})})),E(e),window.setTimeout(function(){return E(function(t){return t===e?null:t})},640),n||x(null)},F=function(e,t){i(a.map(function(n){return n.id===e?AZ(AK({},n),{values:t}):n}))},V=function(e,t){i(a.filter(function(t){return t.id!==e})),x(null);var n=Math.max(0,(null!=t?t:D)-1);requestAnimationFrame(function(){return R(n)})},B=h.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.loadOptions&&(T(function(t){var n,r;return AZ(AK({},t),AY({},e.id,{loading:!0,error:!1,options:null!=(n=null==(r=t[e.id])?void 0:r.options)?n:[]}))}),e.loadOptions(t).then(function(t){return T(function(n){return AZ(AK({},n),AY({},e.id,{loading:!1,error:!1,options:t}))})}).catch(function(){return T(function(t){return AZ(AK({},t),AY({},e.id,{loading:!1,error:!0,options:[]}))})}))},[]);h.useEffect(function(){if(w&&"value"===w.kind){var e,t,n=a.find(function(e){return e.id===w.filterId}),i=A1(r,null!=(e=null==n?void 0:n.field)?e:"");(null==i?void 0:i.loadOptions)&&!(null==(t=C[i.id])?void 0:t.options.length)&&B(i)}},[w]);var z=0,U=function(){var e=z++;return{idx:e,register:function(t){return O.current[e]=t},tabIndex:e===D?0:-1,onFocus:function(){return P(e)}}},W=w?"add"===w.kind?"add":"".concat(w.filterId,":").concat(w.kind):null,$=function(){if(!w)return"";if("add"===w.kind)return u;if("field"===w.kind)return"Modifier le champ du filtre";if("operator"===w.kind)return"Choisir un op\xe9rateur";var e,t=a.find(function(e){return e.id===w.filterId}),n=A1(r,null!=(e=null==t?void 0:t.field)?e:"");return n?"Valeur pour ".concat(n.label):"Valeur du filtre"}(),H=a.length>1;return(0,m.jsxs)("div",{role:"toolbar","aria-label":void 0===g?"Filtres":g,"aria-orientation":"horizontal","aria-disabled":p||void 0,onKeyDown:function(e){if(!w){var t=N.length-1;if("ArrowRight"===e.key)e.preventDefault(),R(D>=t?0:D+1);else if("ArrowLeft"===e.key)e.preventDefault(),R(D<=0?t:D-1);else if("Home"===e.key)e.preventDefault(),R(0);else if("End"===e.key)e.preventDefault(),R(t);else if("Backspace"===e.key||"Delete"===e.key){var n=N[D];(null==n?void 0:n.filterId)&&(e.preventDefault(),V(n.filterId,D))}}},className:["flex flex-wrap items-center gap-1.5",p?"pointer-events-none opacity-50":"",null!=y?y:""].join(" "),children:[(0,m.jsx)("style",{children:"\n:root {\n --fb-fg: #18181b;\n --fb-fg-muted: #71717a;\n --fb-fg-subtle: #a1a1aa;\n --fb-fg-on-accent: #ffffff;\n --fb-bg-surface: #ffffff;\n --fb-bg-chip: rgba(24, 24, 27, 0.04);\n --fb-bg-hover: rgba(24, 24, 27, 0.06);\n --fb-bg-active: rgba(24, 24, 27, 0.08);\n --fb-border: rgba(24, 24, 27, 0.09);\n --fb-border-strong: #18181b;\n --fb-accent: #3b82f6;\n --fb-accent-rgb: 59 130 246;\n}\n.dark {\n --fb-fg: #f4f4f5;\n --fb-fg-muted: #a1a1aa;\n --fb-fg-subtle: #71717a;\n --fb-fg-on-accent: #18181b;\n --fb-bg-surface: #18181b;\n --fb-bg-chip: rgba(255, 255, 255, 0.05);\n --fb-bg-hover: rgba(255, 255, 255, 0.08);\n --fb-bg-active: rgba(255, 255, 255, 0.12);\n --fb-border: rgba(255, 255, 255, 0.08);\n --fb-border-strong: #f4f4f5;\n --fb-accent: #60a5fa;\n --fb-accent-rgb: 96 165 250;\n}\n@keyframes fb-flash {\n 0% { background-color: rgb(var(--fb-accent-rgb) / 0.18); }\n 100% { background-color: transparent; }\n}\n@media (prefers-reduced-motion: reduce) {\n @keyframes fb-flash {\n 0%, 100% { background-color: transparent; }\n }\n}\n"}),(0,m.jsx)(Eh,{initial:!1,mode:"popLayout",children:a.map(function(e){var t,n,a,i,o,s,l,u,c,d=A1(r,e.field),f=A2(d,e.operator),p=null!=(t=null==f?void 0:f.arity)?t:1,h=null!=(n=null==d?void 0:d.type)?n:"select",y=0===p?{text:"—",empty:!1,glyphs:[]}:"select"===h?function(e,t){if(!t.length)return{text:"Choisir…",empty:!0,glyphs:[]};var n=function(t){return null==e?void 0:e.find(function(e){return e.value===t})},r=function(e){var t,r;return null!=(t=null==(r=n(e))?void 0:r.label)?t:e},a=t.map(function(e){var t;return null==(t=n(e))?void 0:t.glyph}).filter(Boolean).slice(0,3);return 1===t.length?{text:r(t[0]),empty:!1,glyphs:a}:t.length<=3?{text:t.map(r).join(", "),empty:!1,glyphs:a}:{text:"".concat(r(t[0])," +").concat(t.length-1),empty:!1,glyphs:a}}((null==d?void 0:d.loadOptions)?null==(c=C[d.id])?void 0:c.options:null==d?void 0:d.options,e.values):function(e,t,n){if(0===t)return{text:"—",empty:!1,glyphs:[]};if(!n.some(function(e){return""!==e&&null!=e}))return{text:"Choisir une valeur…",empty:!0,glyphs:[]};var r,a,i,o=function(t){if(!t)return"…";if("date"!==e)return t;var n=new Date(t);return Number.isNaN(n.getTime())?t:n.toLocaleDateString()};return 2===t?{text:"".concat(o(null!=(a=n[0])?a:"")," – ").concat(o(null!=(i=n[1])?i:"")),empty:!1,glyphs:[]}:{text:o(null!=(r=n[0])?r:""),empty:!1,glyphs:[]}}(h,p,e.values),g=U(),b=U(),S=U(),E=U(),O=j===e.id;return(0,m.jsxs)(mY.div,{layout:!v,initial:!v&&{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:v?{opacity:0}:{opacity:0,scale:.9},transition:A0,className:"group flex items-stretch overflow-hidden rounded-md border border-[var(--fb-border)] bg-[var(--fb-bg-chip)]",children:[(0,m.jsxs)(A6,{role:"field",registerRef:g.register,tabIndex:g.tabIndex,onFocus:g.onFocus,anchorKey:"".concat(e.id,":field"),active:(null==w?void 0:w.kind)==="field"&&w.filterId===e.id,ariaLabel:"Champ : ".concat(null!=(a=null==d?void 0:d.label)?a:e.field,". Modifier le champ."),onOpen:function(){return x({kind:"field",filterId:e.id})},children:[(null==d?void 0:d.icon)&&(0,m.jsx)("span",{className:"text-[var(--fb-fg-muted)]","aria-hidden":!0,children:d.icon}),null!=(i=null==d?void 0:d.label)?i:e.field]}),(0,m.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,m.jsx)(A6,{role:"operator",registerRef:b.register,tabIndex:b.tabIndex,onFocus:b.onFocus,anchorKey:"".concat(e.id,":operator"),muted:!0,active:(null==w?void 0:w.kind)==="operator"&&w.filterId===e.id,ariaLabel:"Op\xe9rateur : ".concat(null!=(o=null==f?void 0:f.label)?o:e.operator,". Modifier l'op\xe9rateur."),onOpen:function(){return x({kind:"operator",filterId:e.id})},children:null!=(s=null==f?void 0:f.label)?s:e.operator}),(0,m.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,m.jsxs)(A6,{role:"value",registerRef:S.register,tabIndex:S.tabIndex,onFocus:S.onFocus,anchorKey:"".concat(e.id,":value"),muted:y.empty||0===p,disabled:0===p,active:(null==w?void 0:w.kind)==="value"&&w.filterId===e.id,flash:O,ariaLabel:0===p?"Valeur : aucune valeur requise pour l'op\xe9rateur ".concat(null!=(l=null==f?void 0:f.label)?l:e.operator,"."):"Valeur : ".concat(y.empty?"aucune s\xe9lectionn\xe9e":y.text,". Modifier la valeur."),onOpen:function(){0!==p&&x({kind:"value",filterId:e.id})},children:[!y.empty&&y.glyphs.length>0&&(0,m.jsx)("span",{className:"flex shrink-0 items-center gap-0.5","aria-hidden":!0,children:y.glyphs.map(function(e,t){return(0,m.jsx)("span",{className:"flex items-center",children:e},t)})}),(0,m.jsx)("span",{className:"max-w-[12rem] truncate font-medium text-[var(--fb-fg)]",children:y.empty?(0,m.jsx)("span",{className:"font-normal text-[var(--fb-fg-subtle)]",children:y.text}):y.text})]}),(0,m.jsx)("button",{type:"button",ref:E.register,tabIndex:E.tabIndex,onFocus:E.onFocus,onClick:function(){return V(e.id,E.idx)},"aria-label":"Supprimer le filtre ".concat(null!=(u=null==d?void 0:d.label)?u:e.field),className:"flex items-center px-1.5 text-[var(--fb-fg-subtle)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:(0,m.jsx)(A7,{})})]},e.id)})}),(t=U(),n=0===a.length,(0,m.jsxs)("button",{type:"button",ref:t.register,tabIndex:t.tabIndex,onFocus:t.onFocus,"data-fb-anchor":"add","aria-label":n?u:s,"aria-haspopup":"listbox","aria-expanded":(null==w?void 0:w.kind)==="add",onClick:function(){return x({kind:"add"})},className:"flex items-center gap-1 rounded-md border border-dashed border-[var(--fb-border)] px-2 py-[6px] text-[13px] font-medium leading-none text-[var(--fb-fg-muted)] transition-colors hover:border-[var(--fb-border-strong)]/40 hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:[(0,m.jsx)(A9,{}),n?u:s]})),H&&(0,m.jsx)("button",{type:"button",onClick:function(){i([]),x(null),requestAnimationFrame(function(){return R(0)})},className:"ml-0.5 rounded-md px-2 py-[6px] text-[13px] leading-none text-[var(--fb-fg-muted)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70",children:void 0===c?"R\xe9initialiser":c}),w&&W&&(0,m.jsx)(A3,{anchorKey:W,label:$,onClose:function(){return x(null)},children:function(){if(!w)return null;if("add"===w.kind||"field"===w.kind){var e,t,n,i,o,s="field"===w.kind?w.filterId:null,l=new Set(a.filter(function(e){return e.id!==s}).map(function(e){return e.field})),u=r.filter(function(e){return f||!l.has(e.id)}).map(function(e){return{value:e.id,label:e.label,glyph:e.icon}});return(0,m.jsx)(A4,{ariaLabel:$,items:u,multi:!1,onPick:function(e){return"add"===w.kind?M(e):I(w.filterId,e)}},null!=W?W:void 0)}var c=a.find(function(e){return e.id===w.filterId}),d=A1(r,null!=(e=null==c?void 0:c.field)?e:"");if(!c||!d)return null;if("operator"===w.kind){var p=d.operators.map(function(e){return{value:e.value,label:e.label,selected:e.value===c.operator}});return(0,m.jsx)(A4,{ariaLabel:$,items:p,multi:!1,searchable:p.length>6,onPick:function(e){return L(c.id,e)}},null!=W?W:void 0)}var h=A2(d,c.operator),y=null!=(t=null==h?void 0:h.arity)?t:1;if(0===y)return null;var g=null!=(n=d.type)?n:"select";if("text"===g||"number"===g||"date"===g)return(0,m.jsx)(A5,{inputType:g,arity:y,values:c.values,onCommit:function(e){return F(c.id,e)},ariaLabel:$,rangeLabels:"date"===g?["Du","Au"]:["Min","Max"],placeholder:"text"===g?"Rechercher…":void 0},null!=W?W:void 0);var v=!!(null==h?void 0:h.multi),b=d.loadOptions?C[d.id]:void 0,x=(d.loadOptions?null!=(i=null==b?void 0:b.options)?i:[]:null!=(o=d.options)?o:[]).map(function(e){return{value:e.value,label:e.label,glyph:e.glyph,selected:c.values.includes(e.value)}});return(0,m.jsx)(A4,{ariaLabel:$,items:x,multi:v,loading:null==b?void 0:b.loading,error:null==b?void 0:b.error,onQuery:d.loadOptions?function(e){return B(d,e)}:void 0,onRetry:function(){return B(d)},onPick:function(e){return _(c.id,e,v)}},null!=W?W:void 0)}()})]})}function A9(){return(0,m.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,m.jsx)("path",{d:"M6 2.5v7M2.5 6h7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function A7(){return(0,m.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,m.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function Ce(){return(0,m.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,m.jsx)("path",{d:"M2.5 6.2l2.2 2.3L9.5 3.7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ct(){return(0,m.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:"animate-spin",children:[(0,m.jsx)("circle",{cx:"7",cy:"7",r:"5.5",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M12.5 7A5.5 5.5 0 0 0 7 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}let Cn=A8;var Cr={text:[{value:"contains",label:"contient"},{value:"not_contains",label:"ne contient pas"},{value:"equals",label:"est exactement"},{value:"starts_with",label:"commence par"},{value:"is_empty",label:"est vide",arity:0},{value:"is_not_empty",label:"n'est pas vide",arity:0}],number:[{value:"eq",label:"="},{value:"neq",label:"≠"},{value:"gt",label:">"},{value:"gte",label:"≥"},{value:"lt",label:"<"},{value:"lte",label:"≤"},{value:"between",label:"entre",arity:2}],date:[{value:"on",label:"le"},{value:"before",label:"avant le"},{value:"after",label:"apr\xe8s le"},{value:"between",label:"entre",arity:2}],boolean:[{value:"is",label:"est"}],select:[{value:"is",label:"est"},{value:"is_not",label:"n'est pas"},{value:"is_any_of",label:"est l'un de",multi:!0}]},Ca=[{value:"true",label:"Oui"},{value:"false",label:"Non"}];function Ci(e,t){var n=function(e){var n,r;return null!=(n=null==(r=t.find(function(t){return t.field===e}))?void 0:r.values)?n:[]};return e.fields.filter(function(e){return!e.dependsOn||n(e.dependsOn).length>0}).map(function(e){if("boolean"===e.type)return{id:e.id,label:e.label,icon:e.icon,type:"select",operators:null!=(a=e.operators)?a:Cr.boolean,options:null!=(i=e.options)?i:Ca};var t,r,a,i,o=null!=(t=e.operators)?t:Cr[e.type];if("select"!==e.type)return{id:e.id,label:e.label,icon:e.icon,type:e.type,operators:o};var s=e.dependsOn?n(e.dependsOn):[];return e.optionsByParent?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:s.flatMap(function(t){var n,r;return null!=(n=null==(r=e.optionsByParent)?void 0:r[t])?n:[]})}:e.loadOptions?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,loadOptions:function(t){return e.loadOptions(t,{parentValues:s})}}:{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:null!=(r=e.options)?r:[]}})}function Co(e,t){for(var n=t,r=0;r<e.fields.length&&"break"!==function(){var t=!1,r=n.filter(function(r){var a=e.fields.find(function(e){return e.id===r.field});if(!(null==a?void 0:a.dependsOn))return!0;var i=n.find(function(e){return e.field===a.dependsOn}),o=!!i&&i.values.length>0;return o||(t=!0),o});if(n=r.map(function(n){var a,i=e.fields.find(function(e){return e.id===n.field});if(!(null==i?void 0:i.dependsOn)||!i.optionsByParent)return n;var o=r.find(function(e){return e.field===i.dependsOn}),s=new Set((null!=(a=null==o?void 0:o.values)?a:[]).flatMap(function(e){var t,n,r;return null!=(t=null==(r=i.optionsByParent)||null==(n=r[e])?void 0:n.map(function(e){return e.value}))?t:[]})),l=n.values.filter(function(e){return s.has(e)});return l.length!==n.values.length&&(t=!0),l.length===n.values.length?n:AZ(AK({},n),{values:l})}),!t)return"break"}();r++);return n}function Cs(e,t,n){return{fields:h.useMemo(function(){return Ci(e,t)},[e,t]),onChange:h.useCallback(function(t){return n(Co(e,t))},[e,n])}}function Cl(e,t,n,r){var a=function(e){return null==e?"":String(e)};switch(t){case"is_empty":return""===a(n);case"is_not_empty":return""!==a(n);case"contains":return a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"not_contains":return!a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"starts_with":return a(n).toLowerCase().startsWith(a(r[0]).toLowerCase());case"equals":return a(n).toLowerCase()===a(r[0]).toLowerCase();case"is":return a(n)===r[0];case"is_not":return a(n)!==r[0];case"is_any_of":return r.includes(a(n));case"eq":return Number(n)===Number(r[0]);case"neq":return Number(n)!==Number(r[0]);case"gt":return Number(n)>Number(r[0]);case"gte":return Number(n)>=Number(r[0]);case"lt":return Number(n)<Number(r[0]);case"lte":return Number(n)<=Number(r[0]);case"between":var i=AX(r,2),o=i[0],s=i[1];if("date"===e){var l=new Date(a(n)).getTime(),u=!o||l>=new Date(o).getTime(),c=!s||l<=new Date(s).getTime();return u&&c}var d=Number(n),f=void 0===o||""===o||d>=Number(o),p=void 0===s||""===s||d<=Number(s);return f&&p;case"on":return a(n).slice(0,10)===a(r[0]).slice(0,10);case"before":return new Date(a(n)).getTime()<new Date(r[0]).getTime();case"after":return new Date(a(n)).getTime()>new Date(r[0]).getTime();default:return!0}}function Cu(e,t,n,r){return Array.isArray(n)?n.some(function(n){return Cl(e,t,n,r)}):Cl(e,t,n,r)}function Cc(e,t){return"is_empty"===e||"is_not_empty"===e||t.some(function(e){return""!==e&&void 0!==e})}function Cd(e,t,n,r){return t.every(function(t){if(!Cc(t.operator,t.values))return!0;var a=n.fields.find(function(e){return e.id===t.field}),i=null==a?void 0:a.type;return Cu("boolean"===i||void 0===i?"select":i,t.operator,r(e,t.field),t.values)})}var Cf=["\xe9lections","corruption","budget","diplomatie","sant\xe9","\xe9ducation","climat","s\xe9curit\xe9"],Cp={fields:[{id:"status",label:"Statut",type:"select",options:[{value:"draft",label:"Brouillon"},{value:"published",label:"Publi\xe9"},{value:"archived",label:"Archiv\xe9"}]},{id:"category",label:"Cat\xe9gorie",type:"select",options:[{value:"politique",label:"Politique"},{value:"sport",label:"Sport"},{value:"economie",label:"\xc9conomie"},{value:"culture",label:"Culture"}]},{id:"subcategory",label:"Sous-cat\xe9gorie",type:"select",dependsOn:"category",optionsByParent:{politique:[{value:"national",label:"National"},{value:"international",label:"International"},{value:"institutions",label:"Institutions"}],sport:[{value:"football",label:"Football"},{value:"basketball",label:"Basketball"},{value:"athletisme",label:"Athl\xe9tisme"}],economie:[{value:"marches",label:"March\xe9s"},{value:"entreprises",label:"Entreprises"},{value:"emploi",label:"Emploi"}],culture:[{value:"musique",label:"Musique"},{value:"cinema",label:"Cin\xe9ma"},{value:"litterature",label:"Litt\xe9rature"}]}},{id:"tags",label:"Tags",type:"select",loadOptions:function(e){return new Promise(function(t){window.setTimeout(function(){var n=e.trim().toLowerCase();t(Cf.filter(function(e){return e.toLowerCase().includes(n)}).map(function(e){return{value:e,label:e}}))},350)})}},{id:"title",label:"Titre",type:"text"},{id:"views",label:"Vues",type:"number"},{id:"publishedAt",label:"Date de publication",type:"date"},{id:"featured",label:"\xc0 la une",type:"boolean"}]},Cm=[{id:"1",title:"Le budget 2027 d\xe9voil\xe9 \xe0 l'Assembl\xe9e",status:"published",category:"politique",subcategory:"national",tags:["budget","\xe9lections"],views:4300,publishedAt:"2026-09-02",featured:!0},{id:"2",title:"Sommet r\xe9gional sur le climat \xe0 Libreville",status:"published",category:"politique",subcategory:"international",tags:["climat","diplomatie"],views:2100,publishedAt:"2026-08-20",featured:!1},{id:"3",title:"Les Panth\xe8res qualifi\xe9es pour la CAN",status:"published",category:"sport",subcategory:"football",tags:["football"],views:9800,publishedAt:"2026-09-10",featured:!0},{id:"4",title:"R\xe9forme du syst\xe8me \xe9ducatif : ce qui change",status:"draft",category:"politique",subcategory:"institutions",tags:["\xe9ducation"],views:120,publishedAt:"2026-09-15",featured:!1},{id:"5",title:"Les march\xe9s locaux r\xe9sistent \xe0 l'inflation",status:"published",category:"economie",subcategory:"marches",tags:["budget"],views:1560,publishedAt:"2026-07-30",featured:!1},{id:"6",title:"Festival de musique urbaine \xe0 Port-Gentil",status:"published",category:"culture",subcategory:"musique",tags:[],views:870,publishedAt:"2026-09-05",featured:!1},{id:"7",title:"Nouvelle campagne de vaccination lanc\xe9e",status:"published",category:"politique",subcategory:"national",tags:["sant\xe9"],views:3400,publishedAt:"2026-06-18",featured:!1},{id:"8",title:"Championnat national de basketball : bilan",status:"archived",category:"sport",subcategory:"basketball",tags:[],views:640,publishedAt:"2026-05-02",featured:!1}];function Ch(e,t){switch(t){case"status":return e.status;case"category":return e.category;case"subcategory":return e.subcategory;case"tags":return e.tags;case"title":return e.title;case"views":return e.views;case"publishedAt":return e.publishedAt;case"featured":return e.featured;default:return}}var Cy={contains:"icontains",not_contains:"icontains",equals:"iexact",starts_with:"istartswith",is_empty:"isnull",is_not_empty:"isnull",eq:"exact",neq:"exact",gt:"gt",gte:"gte",lt:"lt",lte:"lte",on:"exact",before:"lt",after:"gt",is:"exact",is_not:"exact",is_any_of:"in"};function Cg(){var e=AX(h.useState([]),2),t=e[0],n=Cs(Cp,t,e[1]),r=n.fields,a=n.onChange,i=h.useMemo(function(){return Cm.filter(function(e){return Cd(e,t,Cp,Ch)})},[t]),o=h.useMemo(function(){return function(e){var t=new URLSearchParams,n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l,u=i.value;if(Cc(u.operator,u.values)){if("between"===u.operator){var c=AX(u.values,2),d=c[0],f=c[1];d&&t.append("".concat(u.field,"__gte"),d),f&&t.append("".concat(u.field,"__lte"),f);continue}if("is_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"true");continue}if("is_not_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"false");continue}var p=null!=(s=Cy[u.operator])?s:"exact",m="is_any_of"===u.operator?u.values.join(","):null!=(l=u.values[0])?l:"";t.append("".concat(u.field,"__").concat(p),m)}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t.toString()}(t)},[t]);return(0,m.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,m.jsx)(A8,{fields:r,value:t,onChange:a,"aria-label":"Filtrer les articles"}),(0,m.jsxs)("ul",{className:"flex flex-col gap-2",children:[i.map(function(e){return(0,m.jsxs)("li",{className:"rounded-md border border-[var(--fb-border)] px-3 py-2 text-[13px] text-[var(--fb-fg)]",children:[(0,m.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,m.jsx)("span",{className:"font-medium",children:e.title}),e.featured&&(0,m.jsx)("span",{className:"text-[var(--fb-fg-muted)]",children:"★ \xe0 la une"})]}),(0,m.jsxs)("div",{className:"mt-0.5 text-[12px] text-[var(--fb-fg-muted)]",children:[e.category," / ",e.subcategory," \xb7 ",e.views," vues \xb7 ",new Date(e.publishedAt).toLocaleDateString()]})]},e.id)}),0===i.length&&(0,m.jsx)("li",{className:"rounded-md border border-dashed border-[var(--fb-border)] px-3 py-4 text-center text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun article ne correspond \xe0 ces filtres."})]}),(0,m.jsxs)("details",{className:"text-[12px] text-[var(--fb-fg-muted)]",children:[(0,m.jsx)("summary",{className:"cursor-pointer select-none",children:"Voir l'\xe9tat brut (\xe0 des fins p\xe9dagogiques)"}),(0,m.jsx)("p",{className:"mt-2",children:"\xc9tat `filters` produit par <FilterBar> :"}),(0,m.jsx)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:JSON.stringify(t,null,2)}),(0,m.jsx)("p",{className:"mt-2",children:"Query string \xe9quivalente (convention django-filter) :"}),(0,m.jsxs)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:["?",o||"(aucun filtre actif)"]})]})]})}var Cv=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e,t,n){return!!e&&""!==e.trim()&&n.indexOf(e)===t}).join(" ").trim()},Cb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function Cw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cx(e){if(Array.isArray(e))return e}function CS(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Cj(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function CE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function CO(e,t){return Cx(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||CD(e,t)||Cj()}function Ck(e){return function(e){if(Array.isArray(e))return Cw(e)}(e)||CS(e)||CD(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CD(e,t){if(e){if("string"==typeof e)return Cw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cw(e,t)}}var CP=(0,h.forwardRef)(function(e,t){var n,r,a,i=Cx(n=[e,t])||CS(n)||CD(n)||Cj(),o=i[0],s=i.slice(1),l=o.color,u=o.size,c=void 0===u?24:u,d=o.strokeWidth,f=void 0===d?2:d,p=o.absoluteStrokeWidth,m=o.className,y=o.children,g=o.iconNode,v=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]),b=CO(s,1)[0];return(0,h.createElement)("svg",CE((r=CE({ref:b},Cb),a=a={width:c,height:c,stroke:void 0===l?"currentColor":l,strokeWidth:p?24*Number(f)/Number(c):f,className:Cv("lucide",void 0===m?"":m)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r),v),Ck(g.map(function(e){var t=CO(e,2),n=t[0],r=t[1];return(0,h.createElement)(n,r)})).concat(Ck(Array.isArray(y)?y:[y])))});function CA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CC(e){if(Array.isArray(e))return e}function CT(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function CN(e,t){if(e){if("string"==typeof e)return CA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CA(e,t)}}var CR=function(e,t){var n=(0,h.forwardRef)(function(n,r){var a,i=CC(a=[n,r])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||CN(a)||CT(),o=i[0],s=i.slice(1),l=o.className,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["className"]),c=(CC(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||CN(s,1)||CT())[0];return(0,h.createElement)(CP,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:c,iconNode:t,className:Cv("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l)},u))});return n.displayName="".concat(e),n},CM=CR("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),CI=CR("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),CL=CR("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),C_=CR("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),CF=CR("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),CV=CR("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),CB=CR("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Cz=CR("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),CU=CR("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);function CW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CW(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CH(e){var t,n=e.currentCategory,r=e.onSelectCategory,a=e.sortOption,i=e.onSelectSort,o=e.viewMode,s=e.onToggleViewMode,l=e.typeFilter,u=e.onSelectTypeFilter,c=C$((0,h.useState)(!1),2),d=c[0],f=c[1],p=C$((0,h.useState)(!1),2),y=p[0],g=p[1],v=[{id:"all",label:"Tout",icon:(0,m.jsx)(CM,{className:"w-3.5 h-3.5"})},{id:"documents",label:"Documents",icon:(0,m.jsx)(CI,{className:"w-3.5 h-3.5"})},{id:"images",label:"Images",icon:(0,m.jsx)(CL,{className:"w-3.5 h-3.5"})},{id:"videos",label:"Vid\xe9os",icon:(0,m.jsx)(C_,{className:"w-3.5 h-3.5"})},{id:"music",label:"Musique",icon:(0,m.jsx)(CF,{className:"w-3.5 h-3.5"})},{id:"archives",label:"Archives",icon:(0,m.jsx)(CV,{className:"w-3.5 h-3.5"})}],b=[{id:"recent",label:"Plus r\xe9cents"},{id:"oldest",label:"Plus anciens"},{id:"name_asc",label:"Nom A → Z"},{id:"name_desc",label:"Nom Z → A"},{id:"items_count",label:"Nombre d’\xe9l\xe9ments"}],w=(null==(t=b.find(function(e){return e.id===a}))?void 0:t.label)||"Plus r\xe9cents";return(0,m.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2.5 py-1 relative z-20",children:[(0,m.jsx)("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 sm:pb-0 scrollbar-none w-full sm:w-auto",children:v.map(function(e){var t=n===e.id;return(0,m.jsxs)("button",{onClick:function(){return r(e.id)},className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold whitespace-nowrap transition-all duration-200 cursor-pointer ".concat(t?"bg-emerald-500/25 text-white border border-emerald-400/80 shadow-[0_0_12px_rgba(16,185,129,0.3)] drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]":"bg-transparent text-white/70 hover:text-white hover:bg-white/5 border border-white/10 hover:border-white/20 drop-shadow-[0_1px_1px_rgba(0,0,0,0.8)]"),children:[(0,m.jsx)("span",{className:t?"text-emerald-400":"text-white/60",children:e.icon}),(0,m.jsx)("span",{children:e.label})]},e.id)})}),(0,m.jsxs)("div",{className:"flex items-center justify-between sm:justify-end gap-1.5 sm:gap-2 w-full sm:w-auto mt-0.5 sm:mt-0",children:[(0,m.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,m.jsxs)("button",{onClick:function(){f(!d),g(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,m.jsxs)("div",{className:"flex items-center gap-1",children:[(0,m.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Tri :"}),(0,m.jsx)("span",{className:"text-white font-semibold truncate max-w-[70px] sm:max-w-none",children:w})]}),(0,m.jsx)(CB,{className:"w-3 h-3 text-white/50 shrink-0"})]}),d&&(0,m.jsx)("div",{className:"absolute right-0 mt-2 w-44 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:b.map(function(e){return(0,m.jsx)("button",{onClick:function(){i(e.id),f(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(a===e.id?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e.label},e.id)})})]}),(0,m.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,m.jsxs)("button",{onClick:function(){g(!y),f(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,m.jsxs)("div",{className:"flex items-center gap-1",children:[(0,m.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Type :"}),(0,m.jsx)("span",{className:"text-white font-semibold truncate max-w-[60px] sm:max-w-none",children:l})]}),(0,m.jsx)(CB,{className:"w-3 h-3 text-white/50 shrink-0"})]}),y&&(0,m.jsx)("div",{className:"absolute right-0 mt-2 w-36 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:["Tous","Dossiers","Documents","Images","Vid\xe9os","Archives"].map(function(e){return(0,m.jsx)("button",{onClick:function(){u(e),g(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(l===e?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e},e)})})]}),(0,m.jsxs)("div",{className:"flex items-center p-0.5 rounded-lg bg-black/20 border border-white/10 shrink-0",children:[(0,m.jsx)("button",{onClick:function(){return s("grid")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("grid"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Grille",children:(0,m.jsx)(Cz,{className:"w-3.5 h-3.5"})}),(0,m.jsx)("button",{onClick:function(){return s("list")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("list"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Liste",children:(0,m.jsx)(CU,{className:"w-3.5 h-3.5"})})]})]})]})}},5923(e,t,n){"use strict";n.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var r=n(2974),a=n(240),i=n(2298),o=n(345),s=n(9405);function l(e){let t,n="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,(0,r.AU)(this)}copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)(this,e)}cycle(e,t,n){return(0,r.xy)(this,e,t,n)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,i.$T)(this)}compare(e){return(0,a.SE)(this,e)}}class c{#t;constructor(e=0,t=0,n=0,a=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=a,(0,r.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.tY)(this,e)}subtract(e){return(0,r.YP)(this,e)}set(e){return(0,r.ib)(this,e)}cycle(e,t,n){return(0,r.gt)(this,e,t,n)}toString(){return(0,i.ot)(this)}compare(e){return(0,a.Nu)(this,e)}}class d{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,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,(0,r.AU)(this)}copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)((0,r.ib)(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return(0,r.xy)(this,e,t,n);default:return(0,r.gt)(this,e,t,n)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,i.qk)(this)}compare(e){let t=(0,a.SE)(this,e);return 0===t?(0,a.Nu)(this,(0,s.tR)(e)):t}}class f{#t;constructor(...e){let[t,n,a,i,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}copy(){return this.era?new f(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new f(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.E0)(this,e)}subtract(e){return(0,r.d_)(this,e)}set(e,t){return(0,r.D8)(this,e,t)}cycle(e,t,n){return(0,r.XH)(this,e,t,n)}toDate(){return(0,s.cd)(this)}toString(){return(0,i.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,n){"use strict";n.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>i});var r=n(5923),a=n(5504);function i(e,t,n,r){let a=(t=s(e,t))-1,i=-2;return n<=2?i=0:o(t)&&(i=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+i+r)}function o(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={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 c{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),s=(0,a.z)(t,146097),u=Math.floor(s/36524),c=(0,a.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,a.z)(c,1461)/365),[p,m]=l(400*n+100*u+4*d+f+ +(4!==u&&4!==f)),h=e-i(p,m,1,1),y=2;e<i(p,m,3,1)?y=0:o(m)&&(y=1);let g=Math.floor(((h+y)*12+373)/367),v=e-i(p,m,g,1)+1;return new(0,r.ng)(p,m,g,v)}toJulianDay(e){return i(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[o(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return o(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},9405(e,t,n){"use strict";n.d(t,{Ou:()=>x,Tr:()=>f,Yd:()=>m,ay:()=>p,cd:()=>b,gw:()=>h,oU:()=>s,tR:()=>y,uB:()=>v,yP:()=>g});var r=n(5923),a=n(2974),i=n(345),o=n(240);function s(e){return e=g(e,new(0,i.FG)),l((0,i.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,n,r,a,i,o){let s=new Date;return s.setUTCHours(r,a,i,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,o.Xj)()&&!(0,o.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:i,minute:s,second:u}=d(e,t);return l(n,r,a,i,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let n=c.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function f(e,t,n="compatible"){var r,a,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===n&&!(0,o.rS)()){c=g(c,new(0,i.FG));let e=new Date,t=(0,i.LA)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let p=s(c),m=u(p-864e5,t),h=u(p+864e5,t),v=(r=c,((a=p-m)==(l=p-h)?[a]:[a,l]).filter(e=>{var n;let a;return n=r,a=d(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===v.length)return v[0];if(v.length>1)switch(n){case"compatible":case"earlier":return v[0];case"later":return v[v.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(p-m,p-h);case"compatible":case"later":return Math.max(p-m,p-h);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,n="compatible"){return new Date(f(e,t,n))}function m(e,t){let n=u(e,t),a=new Date(e+n),i=a.getUTCFullYear(),o=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),c=a.getUTCMinutes(),d=a.getUTCSeconds(),f=a.getUTCMilliseconds();return new(0,r.Ip)(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,n,l,c,d,f)}function h(e){return new(0,r.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let n=0,a=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:a,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:i,millisecond:o}=t),new(0,r._l)(e.calendar,e.era,e.year,e.month,e.day,n,a,i,o)}function g(e,t){if((0,o.Jg)(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,a.AU)(r),r}function v(e,t,n){return e instanceof r.Ip?e.timeZone===t?e:w(e,t):m(f(e,t,n),t)}function b(e){return new Date(s(e)-e.offset)}function w(e,t){return g(m(s(e)-e.offset,t),e.calendar)}function x(e){return w(e,(0,o.Xj)())}},227(e,t,n){"use strict";let r,a;n.d(t,{d:()=>K});var i=n(5923),o=n(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=(0,o.LA)(t.era,t.year);return new(0,i.ng)(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,n]=(0,o.f5)(e.year+-543);return new(0,i.ng)(t,n,e.month,e.day)}function u(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function c(e,t){let n=Math.floor(4*(t-e)/1461);t>=u(e,n+1,1,1)&&n++;let r=1+Math.floor((t-u(e,n,1,1))/30),a=t+1-u(e,n,r,1);return[n,r,a]}function d(e){return Math.floor(e%4/3)}function f(e,t){return t%13!=0?30:d(e)+5}class p{fromJulianDay(e){let[t,n,r]=c(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),u(1723856,t,e.month,e.day)}getDaysInMonth(e){return f(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class m extends p{fromJulianDay(e){let[t,n,r]=c(1723856,e);return t+=5500,new(0,i.ng)(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class h extends p{fromJulianDay(e){let[t,n,r]=c(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),u(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),f(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var y=n(5504);let g=765433;function v(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(n+1),7)&&(n+=1),n}function w(e){let t,n;return b(e)+(t=b(e-1),n=b(e),b(e+1)-n==356?2:+(n-t==382))}function x(e){return w(e+1)-w(e)}function S(e,t){if(t>=6&&!v(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=x(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!v(e):30}class j{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/g*19+234)/235)+1,r=w(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=w(--n)));let o=1,s=0;for(;s<a;)s+=S(n,o),o++;let l=a-(s-=S(n,--o));return new(0,i.ng)(this,n,o,l)}toJulianDay(e){let t=w(e.year);for(let n=1;n<e.month;n++)t+=S(e.year,n);return t+e.day+347997}getDaysInMonth(e){return S(e.year,e.month)}getMonthsInYear(e){return v(e.year)?13:12}getDaysInYear(e){return x(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(v(t.year)&&!v(e.year)&&t.month>6?e.month--:!v(t.year)&&v(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class E extends o.FG{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,o.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(a.year-1)?31:30)+155+90+10):(t=(0,o.U_)(a.year)?31:30,l-=80),l<t)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new(0,i.ng)(this,s,n,r)}toJulianDay(e){let t,n,r=e.year+78,[a,i]=(0,o.f5)(r);return((0,o.U_)(i)?(t=31,n=(0,o.rG)(a,i,3,21)):(t=30,n=(0,o.rG)(a,i,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,o.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function O(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function k(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+O(t,r,1,1)))/29.5)+1),o=n-O(t,r,a,1)+1;return new(0,i.ng)(e,r,a,o)}function D(e){return(14+11*e)%30<11}class P{fromJulianDay(e){return k(this,1948440,e)}toJulianDay(e){return O(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&D(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return D(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class A extends P{fromJulianDay(e){return k(this,1948439,e)}toJulianDay(e){return O(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function C(e){return 460322+a[e-1300]}function T(e,t){return(r[e-1300]&1<<11-(t-1))==0?29:30}function N(e,t){let n=C(e);for(let r=1;r<t;r++)n+=T(e,r);return n}function R(e){return a[e+1-1300]-a[e-1300]}class M extends P{constructor(){if(super(),this.identifier="islamic-umalqura",r||(r=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!a){a=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){a[t-1300]=e;for(let n=1;n<=12;n++)e+=T(t,n)}}}fromJulianDay(e){let t=e-1948440,n=C(1300),r=C(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-C(++e)+1;let a=R(e);if(r===a){n=12;break}if(r<a){let t=T(e,n);for(n=1;r>t;)r-=t,t=T(e,++n);break}}return new(0,i.ng)(this,e,n,t-N(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+N(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):T(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):R(e.year)}}let I=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],L=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_=[1867,1911,1925,1988,2018],F=["meiji","taisho","showa","heisei","reiwa"];function V(e){let t=I.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?I.length-1:0===t?0:t-1}function B(e){let t=_[F.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,i.ng)(e.year+t,e.month,e.day)}class z extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=V(t);return new(0,i.ng)(this,F[n],t.year-_[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(B(e))}balanceDate(e){let t=B(e),n=V(t);F[n]!==e.era&&(e.era=F[n],e.year=t.year-_[n]),this.constrainDate(e)}constrainDate(e){let t=F.indexOf(e.era),n=L[t];if(null!=n){let[r,a,i]=n,o=r-_[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,n,r]=I[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return F}getYearsInEra(e){let t=F.indexOf(e.era),n=I[t],r=I[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(B(e))}getMinimumMonthInYear(e){let t=U(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=U(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function U(e){if(1===e.year)return I[F.indexOf(e.era)]}let W=[0,31,62,93,124,155,186,216,246,276,306,336];class ${fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-W[a]+1;return new(0,i.ng)(this,n,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=W[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function H(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function G(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class q extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=G((0,o.LA)(t.era,t.year));return new(0,i.ng)(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=G(H(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,n]=(0,o.f5)(H(e));return new(0,i.ng)(t,n,e.month,e.day)}function K(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new m;case"coptic":return new h;case"hebrew":return new j;case"indian":return new E;case"islamic-civil":return new P;case"islamic-tbla":return new A;case"islamic-umalqura":return new M;case"japanese":return new z;case"persian":return new $;case"roc":return new q;default:return new(0,o.FG)}}},2974(e,t,n){"use strict";n.d(t,{AU:()=>u,D8:()=>O,E0:()=>S,Rb:()=>m,Re:()=>d,WQ:()=>i,XH:()=>E,YP:()=>v,d_:()=>j,gt:()=>w,hZ:()=>f,ib:()=>p,tY:()=>g,xy:()=>b});var r=n(9405),a=n(345);function i(e,t){let n=e.copy(),r="hour"in n?y(n,t):0;o(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s(n),l(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){let e=n.calendar.isInverseEra?.(n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let i=n.calendar.getMonthsInYear(n);return n.month>i&&(n.month=i,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function o(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)o(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o(e,1)}function l(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function d(e,t){return i(e,c(t))}function f(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),u(n),n}function p(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),m(n),n}function m(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function h(e,t){let n=e%t;return n<0&&(n+=t),n}function y(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=h(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=h(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=h(e.minute,60),n=Math.floor(e.hour/24),e.hour=h(e.hour,24),n}function g(e,t){let n=e.copy();return y(n,t),n}function v(e,t){return g(e,c(t))}function b(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw Error("Invalid era: "+e.era);i=x(i,n,0,t.length-1,r?.round),a.era=t[i],u(a);break}case"year":a.calendar.isInverseEra?.(a)&&(n=-n),a.year=x(e.year,n,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=x(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":a.day=x(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),u(a),a}function w(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,i=0,o=23;if(r?.hourCycle===12){let e=t>=12;i=12*!!e,o=e?23:11}a.hour=x(t,n,i,o,r?.round);break}case"minute":a.minute=x(e.minute,n,0,59,r?.round);break;case"second":a.second=x(e.second,n,0,59,r?.round);break;case"millisecond":a.millisecond=x(e.millisecond,n,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return a}function x(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function S(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let a=i((0,r.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=(0,r.Tr)(a,e.timeZone)}else n=(0,r.oU)(e)-e.offset;n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0);let a=(0,r.Yd)(n,e.timeZone);return(0,r.yP)(a,e.calendar)}function j(e,t){return S(e,c(t))}function E(e,t,n,i){switch(t){case"hour":{let t=0,o=23;if(i?.hourCycle===12){let n=e.hour>=12;t=12*!!n,o=n?23:11}let s=(0,r.tR)(e),l=(0,r.yP)(p(s,{hour:t}),new(0,a.FG)),u=[(0,r.Tr)(l,e.timeZone,"earlier"),(0,r.Tr)(l,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===l.day)[0],c=(0,r.yP)(p(s,{hour:o}),new(0,a.FG)),d=[(0,r.Tr)(c,e.timeZone,"earlier"),(0,r.Tr)(c,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,r.oU)(e)-e.offset,m=Math.floor(f/36e5),h=f%36e5;return f=36e5*x(m,n,Math.floor(u/36e5),Math.floor(d/36e5),i?.round)+h,(0,r.yP)((0,r.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return w(e,t,n,i);case"era":case"year":case"month":case"day":{let a=b((0,r.tR)(e),t,n,i),o=(0,r.Tr)(a,e.timeZone);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function O(e,t,n){let a=(0,r.tR)(e),i=p(f(a,t),t);if(0===i.compare(a))return e;let o=(0,r.Tr)(i,e.timeZone,n);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}},240(e,t,n){"use strict";n.d(t,{p9:()=>x,$I:()=>E,RZ:()=>D,tB:()=>f,rS:()=>b,kq:()=>j,Jg:()=>l,Py:()=>P,tF:()=>o,Xj:()=>v,Nu:()=>h,SJ:()=>d,SE:()=>m,ro:()=>i,D:()=>S,ZI:()=>A,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>w});var r=n(9405);let a={"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 i(e,t){return t=(0,r.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function o(e,t){return t=(0,r.yP)(t,e.calendar),e=w(e),t=w(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&i(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return i(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,n){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(n?c[n]:function(e){let t=k.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo()))return k.set(e,t),t.firstDay}let n=function(e){if(Intl.Locale){let t=O.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&O.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];t="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&a[n]||0};k.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function f(e){return(0,r.Yd)(Date.now(),e)}function p(e){return(0,r.gw)(f(e))}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function h(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let g=null;function v(){return null==g&&(g=new Intl.DateTimeFormat().resolvedOptions().timeZone),g}function b(){return!1}function w(e){return e.subtract({days:e.day-1})}function x(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function S(e){return w(e.subtract({months:e.month-1}))}function j(e,t,n){let r=d(e,t,n);return e.subtract({days:r})}function E(e,t,n){return j(e,t,n).add({days:6})}let O=new Map,k=new Map;function D(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d(w(e),t,n)+r)/7)}function P(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function A(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,n){"use strict";n.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>h,ot:()=>f,qk:()=>m});var r=n(5923),a=n(9405),i=n(345);let o=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function u(e){let t=e.match(o);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let n=new(0,r.ng)(d(t[1],0,9999),d(t[2],1,12),1);return n.day=d(t[3],1,n.calendar.getDaysInMonth(n)),n}function c(e){let t=e.match(s);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let n=d(t[1],-9999,9999),a=new(0,r._l)(n<1?"BC":"AD",n<1?-n+1:n,d(t[2],1,12),1,t[4]?d(t[4],0,23):0,t[5]?d(t[5],0,59):0,t[6]?d(t[6],0,59):0,t[7]?1e3*d(t[7],0,1/0):0);return a.day=d(t[3],0,a.calendar.getDaysInMonth(a)),a}function d(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function f(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function p(e){let t,n=(0,a.yP)(e,new(0,i.FG));return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function m(e){return`${p(e)}T${f(e)}`}function h(e){var t;let n,r,a,i,o;return`${m(e)}${n=0>Math.sign(t=e.offset)?"-":"+",r=Math.floor((t=Math.abs(t))/36e5),a=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),o=`${n}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`,0!==i&&(o+=`:${String(i).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,n){"use strict";function r(e,t){return e-t*Math.floor(e/t)}n.d(t,{z:()=>r})},99(e,t,n){"use strict";n.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var r=n(9726),a=n(5565),i=n(8048);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e){return e.replace(/[\/\-@]/g,"_")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"./start",r=arguments.length>2?arguments[2]:void 0;return s(function(){var a,i,o,s,d,p,m;return u(this,function(u){switch(u.label){case 0:return a=(null==r?void 0:r.maxLoadingTime)&&!(r.maxLoadingTime<=0)?r.maxLoadingTime:6e5,i=void 0,[4,Promise.race([f(e,null==r?void 0:r.importMap),new Promise(function(t,n){i=setTimeout(function(){var t;n(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=a)<1e3?"".concat(t," milliseconds"):t<6e4?"".concat(Math.floor(t/1e3)," seconds"):t<36e5?"".concat(Math.floor(t/6e4)," minutes"):t<864e5?"".concat(Math.floor(t/36e5)," hours"):"".concat(Math.floor(t/864e5)," days"),".")))},a)})])];case 1:var h;if(u.sent(),i&&clearTimeout(i),o=c(e),!((void 0===(h=s=window[o])?"undefined":l(h))==="object"&&null!==h&&"init"in h&&"function"==typeof h.init&&"get"in h&&"function"==typeof h.get))throw console.error(d="The global variable ".concat(o," does not refer to a federated module")),Error(d);return s.init(n.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(m="Container for ".concat(e," did not return an ESM module as expected")),Error(m);return[2,p]}})})()}function f(e,t){return s(function(){var n,o,s,l,d,f,h;return u(this,function(u){switch(u.label){case 0:if("string"!=typeof e||0===e.trim().length)throw console.error("Attempted to call importDynamic() without supplying a package to load"),Error("Attempted to call importDynamic() without supplying a package to load");if(n=c(e),window[n])return[3,7];if(null==t)return[3,1];return s=t,[3,3];case 1:return[4,p()];case 2:s=u.sent(),u.label=3;case 3:if(!(o=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=o.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,i.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,n){var r,a,i,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[m];if(s||(s=window[m]=new Set([])),o)s.has(e)?(i=function(){r&&o.removeEventListener("load",r),a&&o.removeEventListener("error",a)},r=function(){i(),t(null)},a=function(e){i(),n(e.message)},o.addEventListener("load",r),o.addEventListener("error",a)):(console.warn("Script at ".concat(e," already loaded. Not loading it again.")),t(null));else{s.add(e);var l,u,c,d=document.createElement("script");d.src=e,d.type="text/javascript",d.async=!0;var f=setTimeout(function(){console.error("The script at ".concat(e," did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration."))},5e3);c=function(){clearTimeout(f),s.delete(e),l&&d.removeEventListener("load",l),u&&d.removeEventListener("error",u)},l=function(){c(),t(null)},u=function(t){c();var r,a="Failed to load script from ".concat(e);console.error(a,t),n(null!=(r=t.message)?r:a)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return h=u.sent(),f&&(0,r.Vt)({kind:"error",title:(0,a.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,a.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:d}),actionButtonLabel:(0,a.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,i.w_)(),window.location.reload()}}),[2,Promise.reject(h)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,i.F$)()]})})()}var m=Symbol("__egen_script_loading")},8048(e,t,n){"use strict";function r(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,l,"next",e)}function l(e){r(o,a,i,s,l,"throw",e)}s(void 0)})}}function i(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}n.d(t,{BX:()=>j,E:()=>x,F$:()=>m,SM:()=>O,fd:()=>w,o5:()=>y,q1:()=>b,tK:()=>h,uT:()=>g,w_:()=>S,xI:()=>v});var o="import-map-override:",s="import-map-overrides-disabled",l="import-map-overrides:change",u=!1,c=null;function d(){return a(function(){var e,t,n,r,a,o,s;return i(this,function(i){switch(i.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],n=0,i.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],i.label=2;case 2:if(i.trys.push([2,7,,8]),!r.src)return[3,5];return[4,fetch(r.src)];case 3:return a=i.sent(),o=t.push,[4,a.json()];case 4:return o.apply(t,[i.sent()]),[3,6];case 5:r.textContent&&t.push(JSON.parse(r.textContent)),i.label=6;case 6:return[3,8];case 7:return s=i.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(n),s),[3,8];case 8:return n++,[3,1];case 9:return[2,f(t)]}})})()}function f(e){var t={imports:{}},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function p(){var e={};try{for(var t=v(),n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=r.slice(o.length);if(!t.includes(a)){var i=localStorage.getItem(r);i&&(e[a]=i)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function m(){return a(function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,d()];case 1:if(e=t.sent(),!u)return[2,e];return[2,f([e,null!=c?c:p()])]}})})()}function h(){return a(function(){return i(this,function(e){return[2,d()]})})()}function y(){return a(function(){return i(this,function(e){switch(e.label){case 0:if(!u)return[2,d()];return[4,d()];case 1:return[2,f([e.sent(),p()])]}})})()}function g(e){if(!u)return{imports:{}};if(e){for(var t={},n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=localStorage.getItem(r);a&&(t[r.slice(o.length)]=a)}}return{imports:t}}return p()}function v(){if(!u)return[];try{var e=localStorage.getItem(s);if(e){var t=JSON.parse(e);if(Array.isArray(t))return t}}catch(e){}return[]}function b(e){return!!u&&v().includes(e)}function w(e,t){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.setItem(o+e,t),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to write import-map override to localStorage",e)}}function x(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(o+e);var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}function S(){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(o))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to clear import-map overrides from localStorage",e)}}function j(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=v().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}var E=!1;function O(){!E&&(E=!0,(u="development"===window.spaEnv)&&(c=p()))}},101(e,t,n){"use strict";n.d(t,{xI:()=>a.xI,E:()=>a.E,eH:()=>S,SM:()=>a.SM,zU:()=>g,BX:()=>a.BX,w_:()=>a.w_,Y6:()=>v,Yv:()=>r.Yv,tK:()=>a.tK,Ln:()=>r.Ln,FM:()=>y,o5:()=>a.o5,fd:()=>a.fd,Tx:()=>w,KI:()=>x,rL:()=>r.rL,WY:()=>b,F$:()=>a.F$,zC:()=>r.zC,_m:()=>E,q1:()=>a.q1,uT:()=>a.uT});var r=n(99),a=n(8048),i=n(2235);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var u="egen-routes:",c="egen-routes:change",d=!1,f=null;function p(){return s(function(){var e,t,n,r,a,o;return l(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],n=0,s.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],s.label=2;case 2:if(s.trys.push([2,7,,8]),a=void 0,!r.src)return[3,5];return[4,fetch(r.src)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:r.textContent&&(a=JSON.parse(r.textContent)),s.label=6;case 6:return a&&(0,i.S)(a)&&t.push(a),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(n),o),[3,8];case 8:return n++,[3,1];case 9:return[2,m(t)]}})})()}function m(e){var t={},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function h(){return s(function(){var e,t,n,r,a,o,c,d,f,p,m,h;return l(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],n=0;n<localStorage.length;n++)(null==(r=localStorage.key(n))?void 0:r.startsWith(u))&&(a=localStorage.getItem(r))&&t.push({moduleName:r.slice(u.length),raw:a});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,n=e.raw;return s(function(){var e,r;return l(this,function(a){switch(a.label){case 0:if(e=JSON.parse(n),(0,i.j)(e))return[2,{moduleName:t,routes:e}];if(!("string"==typeof e&&e.startsWith("http")))return[3,3];return[4,fetch(e)];case 1:return[4,a.sent().json()];case 2:if(r=a.sent(),(0,i.j)(r))return[2,{moduleName:t,routes:r}];throw Error("".concat(e," did not resolve to a valid EgenAppRoutes object"));case 3:throw Error("Override for ".concat(t," is neither a valid routes object nor a URL"))}})})()}))];case 2:o=y.sent(),c=!0,d=!1,f=void 0;try{for(p=o[Symbol.iterator]();!(c=(m=p.next()).done);c=!0)h=m.value,"fulfilled"===h.status?e[h.value.moduleName]=h.value.routes:console.warn("[route-maps] Failed to load route override",h.reason)}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return[3,4];case 3:return console.warn("[route-maps] Failed to read route overrides from localStorage",y.sent()),[3,4];case 4:return[2,e]}})})()}function y(){return s(function(){var e,t;return l(this,function(n){switch(n.label){case 0:return[4,p()];case 1:if(e=n.sent(),!d)return[2,e];if(null==f)return[3,2];return t=f,[3,4];case 2:return[4,h()];case 3:t=n.sent(),n.label=4;case 4:return[2,m([e,t])]}})})()}function g(){return s(function(){return l(this,function(e){return[2,p()]})})()}function v(){return s(function(){var e;return l(this,function(t){switch(t.label){case 0:if(!d)return[2,p()];return[4,p()];case 1:return e=[t.sent()],[4,h()];case 2:return[2,m.apply(void 0,[e.concat([t.sent()])])]}})})()}function b(){if(!d)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(null==n?void 0:n.startsWith(u)){var r=localStorage.getItem(n);r&&(e[n.slice(u.length)]=r)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function w(e,t){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(u+e,JSON.stringify(t));else{var n,r=JSON.parse(t);if(!(0,i.j)(r))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(u+e,JSON.stringify(r))}else if(n=URL,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)localStorage.setItem(u+e,JSON.stringify(t.toString()));else{if(!(0,i.j)(t))return void console.error("Override for ".concat(e," is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL"),t);localStorage.setItem(u+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}}function x(e){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{localStorage.removeItem(u+e),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}}function S(){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(u))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}}var j=null;function E(){return j||(j=(d="development"===window.spaEnv)?h().then(function(e){f=e}):Promise.resolve())}},8507(e,t,n){"use strict";n.d(t,{J:()=>i,N:()=>a});var r=n(9726);function a(e){var t=o(e);setTimeout(function(){throw t})}function i(){var e=Error();return function(t){var n=o(t);n.stack+="\nAsync stacktrace:\n".concat(e.stack),a(t)}}function o(e){var t,n;if(null!=(n=Error)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)return e;if(null===e)return Error("'null' was thrown as an error");if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(n){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.Vt)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,n){"use strict";n.d(t,{dX:()=>r.dX,wE:()=>r.wE,_3:()=>r._3,uN:()=>r.uN,$F:()=>r.$F,Gz:()=>r.Gz,eb:()=>r.eb,Sj:()=>r.Sj,mv:()=>r.mv,yp:()=>l,PQ:()=>r.PQ});var r=n(6014),a=n(4356),i=n(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l(e){if("string"!=typeof e&&((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");var t,n={globals:s({},i.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,a.A)(e):e,n),function(e){if(Array.isArray(e))return o(e)}(t=n.variables)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){switch(e.type){case"UnaryExpression":return n=e,r=t,u(n.argument,r);case"BinaryExpression":return a=e,i=t,[u(a.left,i),u(a.right,i)].filter(Boolean);case"ConditionalExpression":return o=e,l=t,[u(o.consequent,l),u(o.test,l),u(o.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,m=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),m;case"ArrowFunctionExpression":return function(e,t){var n=s({},t);n.isLocalExpression=!0;var r=null!=(d=null==(p=e.params)?void 0:p.map(c(n)))?d:[],a=null!=(f=u(e.body,n))?f:[];if(a&&Array.isArray(a)){var i=!0,o=!1,l=void 0;try{for(var d,f,p,m,h=a[Symbol.iterator]();!(i=(m=h.next()).done);i=!0){var y=m.value;r.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{i||null==h.return||h.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return h=e,y=t,u(h.object,y),void((g=s({},y)).isLocalExpression=!0,u(h.property,g));case"ArrayExpression":return v=e,b=t,void(null==(w=v.elements)||w.map(c(b)));case"SequenceExpression":return x=e,S=t,void(null==(j=x.expressions)||j.map(c(S)));case"NewExpression":return E=e,O=t,void(null==(k=E.arguments)||k.map(c(O)));case"Literal":case"TemplateElement":return;case"Identifier":var n,r,a,i,o,l,d,f,p,m,h,y,g,v,b,w,x,S,j,E,O,k,D,P,A,C,T=e,N=t;if(!(T.name in N.globals))if(N.isLocalExpression)return T.name;else N.variables.add(T.name);return;case"TemplateLiteral":return D=e,P=t,void(null==(A=D.expressions)||A.map(c(P)),null==(C=D.quasis)||C.map(c(P)));default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function c(e){return function(t){return null===t?null:u(t,e)}}},8162(e,t,n){"use strict";n.r(t),n.d(t,{ASSISTANT_MODES:()=>v.wJ8,ActionMenu:()=>v.WyE,ActionMenuButton:()=>v.EDM,ActionMenuButton2:()=>v.Wjo,ActionableNotificationComponent:()=>v.drd,ActivityIcon:()=>v.npY,AddIcon:()=>v.REV,AllergiesIcon:()=>v.UgN,AnimatedHomeBackground:()=>v.BpM,AppointmentsAltPictogram:()=>v.MnZ,AppointmentsPictogram:()=>v.B1u,ArrowDownIcon:()=>v.ZLN,ArrowLeftIcon:()=>v.A60,ArrowRightIcon:()=>v.flY,ArrowUpIcon:()=>v.Kpk,Assessment1Pictogram:()=>v.IHy,Assessment2Pictogram:()=>v.$iy,AsyncSelect:()=>v.DWK,AttachmentIcon:()=>v.PtA,Autocomplete:()=>v.jT8,BabyIcon:()=>v.qYP,BloodBankPictogram:()=>v.nvs,Breakpoint:()=>v.EA,CalendarHeatMapIcon:()=>v.mmM,CalendarIcon:()=>v.CTc,CardHeader:()=>v.aRn,CardModal:()=>v.oVc,CardiologyPictogram:()=>v.uU$,CaretDownIcon:()=>v.bDP,CaretLeftIcon:()=>v.eCO,CaretRightIcon:()=>v.JJd,CaretUpIcon:()=>v.SwV,Carousel:()=>v.FNf,CarouselContext:()=>v.Ycj,CascadingNavDropdown:()=>v._PX,ChartAverageIcon:()=>v.ZHE,ChartLineIcon:()=>v.SCH,CheckmarkFilledIcon:()=>v.FtQ,CheckmarkOutlineIcon:()=>v.pm$,ChemistryIcon:()=>v.W4t,ChevronDownIcon:()=>v.D3D,ChevronLeftIcon:()=>v.YJP,ChevronRightIcon:()=>v.vKP,ChevronUpIcon:()=>v.Mtm,CircularGallery:()=>v.GF9,ClassificationTags:()=>v.QpY,CloseFilledIcon:()=>v.oCk,CloseIcon:()=>v.USm,CloseOutlineIcon:()=>v.Wdn,ColumnWithSearch:()=>v.Fny,Combobox:()=>v.G3_,ConditionsIcon:()=>v.ci3,ContentSection:()=>v.Fe_,CtScanPictogram:()=>v.DeE,CustomOverflowMenu:()=>v.TQT,CustomOverflowMenuItem:()=>v.cxd,DEFAULT_BOOLEAN_OPTIONS:()=>v.ofx,DEFAULT_OPERATORS:()=>v.whL,DashboardExtension:()=>v.cJN,DecoratedCard:()=>v.mqB,DefaultPageBackground:()=>v.NOx,DentistryPictogram:()=>v.TNY,DocumentAttachmentIcon:()=>v.Ce6,DocumentIcon:()=>v.pyG,DocumentToolbar:()=>v.PAB,DownloadIcon:()=>v.s3U,DrugOrderIcon:()=>v.uqj,DynamicField:()=>v.koC,EditIcon:()=>v.qUP,EgenDatePicker:()=>v.O_s,EgenDateRangePicker:()=>v.tKr,EmergencyDepartmentPictogram:()=>v.sgv,EmptyCard:()=>v.slS,EmptyCardIllustration:()=>v.Ua6,EntityBannerActionsMenu:()=>v.M9T,EntityBannerContactDetails:()=>v.EGc,EntityBannerEntityIdentifiers:()=>v.teX,EntityBannerEntityInfo:()=>v.Zpy,EntityDetailBrowser:()=>v.NIm,EntityPhoto:()=>v.Klm,ErrorCard:()=>v.JrA,ErrorState:()=>v.W5n,EventScheduleIcon:()=>v.XaH,EventsIcon:()=>v.Jc,FacilityPictogram:()=>v.ECF,FilterBar:()=>v.Qnn,FilterBarDefault:()=>v.vNL,FilterBarDemo:()=>v.RJr,FolderGallery:()=>v.fNA,GenderFemaleIcon:()=>v.XB2,GenderMaleIcon:()=>v.szA,GenderOtherIcon:()=>v.hXZ,GenderUnknownIcon:()=>v.x1U,GenericOrderTypeIcon:()=>v.naI,GeriatricsPictogram:()=>v.SQq,GlobalPageBackground:()=>v.Nqf,GradientBlur:()=>v.wtE,GradientWave:()=>v.GcC,GroupAccessIcon:()=>v.Pyy,GroupIcon:()=>v.nFg,GynaecologyPictogram:()=>v.owH,HeroMosaic:()=>v.LdX,HeroTileCard:()=>v.b6Z,HomePictogram:()=>v.KKH,HospitalBedIcon:()=>v.jMM,Icon:()=>v.Int,ImageMedicalIcon:()=>v.Ix5,ImageSwiper:()=>v.QeH,InPatientPictogram:()=>v.thS,InformationFilledIcon:()=>v._e_,InformationIcon:()=>v.uQc,InformationSquareIcon:()=>v.ZrL,InteractiveSelector:()=>v.wmT,InventoryManagementIcon:()=>v.vFG,LabOrderIcon:()=>v.hi6,LaboratoryPictogram:()=>v.ehn,Labs2Pictogram:()=>v.rpF,LayoutGrid:()=>v.D6i,LeftNavMenu:()=>v.Ojh,LiquidGlassCard:()=>v.lok,ListCheckedIcon:()=>v.Rt$,LiveOrb:()=>v.AFR,LocationIcon:()=>v.BT6,LocationPicker:()=>v.MTs,MORPH_SELECT_DEFAULT_TRANSITION:()=>v.AOq,MaterialOrderIcon:()=>v.zZ0,MaximizeIcon:()=>v._Xm,MaybeIcon:()=>v.oy0,MaybePictogram:()=>v.bmf,MedicationIcon:()=>v.Fnj,MenuToggleButton:()=>v.qLc,MessageQueueIcon:()=>v.uFu,MicroscopeIcon:()=>v.u4h,MoneyIcon:()=>v.yBj,MorphSelect:()=>v.NGl,MorphSelectContent:()=>v.EiO,MorphSelectItem:()=>v.iRo,MorphSelectTrigger:()=>v.PK0,MorphSelectValue:()=>v.qXl,MotherIcon:()=>v.XEq,MovementIcon:()=>v.lyJ,Notification:()=>v.Eg0,NumericDataPoint:()=>v.YiA,ObstetricsPictogram:()=>v.Bk2,OverflowMenuHorizontalIcon:()=>v.rv3,OverflowMenuVerticalIcon:()=>v.Rnm,PageBackground:()=>v.Kz$,PageBackgroundProvider:()=>v.z0Y,PageHeader:()=>v.zYs,PageHeaderContent:()=>v.gpz,Pagination:()=>v.dKS,PasswordIcon:()=>v.BGy,PatientListsPictogram:()=>v.$2H,PatientSearchPictogram:()=>v.cxq,PatientsPictogram:()=>v.X25,PaymentsDeskPictogram:()=>v.dNG,PedestrianFamilyIcon:()=>v.PPo,PenIcon:()=>v.rZj,Pharmacy2Pictogram:()=>v.Q92,PharmacyPictogram:()=>v.w21,Pictogram:()=>v.bF1,PrinterIcon:()=>v.wwY,ProcedureOrderIcon:()=>v.H0x,ProgramsIcon:()=>v.lq$,PromptInput:()=>v.Plc,RECURSIVE_EROSION_DEFAULTS:()=>v.Km0,RadiologyIcon:()=>v.SA3,RecursiveErosionBackground:()=>v.OoY,ReferralOrderIcon:()=>v.tCH,RegistrationPictogram:()=>v.et7,RenewIcon:()=>v.JTN,ReportIcon:()=>v.cQD,ResetIcon:()=>v.NAP,ResponsiveWrapper:()=>v.KFv,SaveIcon:()=>v.LPu,SearchIcon:()=>v.WIv,Select:()=>v.l6P,SelectContent:()=>v.gCo,SelectContext:()=>v.CW5,SelectTrigger:()=>v.bqE,ServiceQueuesPictogram:()=>v.Y21,SettingsIcon:()=>v.Zes,Sheet:()=>v.cjw,SheetClose:()=>v.kNS,SheetContent:()=>v.hae,SheetContext:()=>v.P8U,SheetDescription:()=>v.Qsg,SheetFooter:()=>v.XWC,SheetHeader:()=>v.Fm9,SheetOverlay:()=>v.YP7,SheetPortal:()=>v.yde,SheetRoot:()=>v.KId,SheetTitle:()=>v.qpM,SheetTrigger:()=>v.CGR,ShoppingCartAddItemIcon:()=>v.Uve,ShoppingCartArrowDownIcon:()=>v.Lfm,ShoppingCartIcon:()=>v.aJF,Slider:()=>v.Apm,SliderContainer:()=>v.Jbi,SliderDotButton:()=>v.vY7,Snackbar:()=>v.qb_,SplineScene:()=>v.C44,StaggeredMenuPanel:()=>v._kB,StickyNoteAddIcon:()=>v.OC$,StockManagementPictogram:()=>v.q__,SwitcherIcon:()=>v.RFy,SyringeIcon:()=>v.hZg,TOPBAR_LEVEL2_NAV_SLOT:()=>c.H9,TableBatchActions:()=>v.GGC,TableIcon:()=>v.KbA,TableOfContentsIcon:()=>v.pYV,TestimonialCard:()=>v._f_,TestimonialCardStack:()=>v.uDL,ThumbsSlider:()=>v.BM2,TimeIcon:()=>v.b1c,Toast:()=>v.y8,ToolsIcon:()=>v.dwU,TopBar:()=>v.Vsm,TopBarAvatar:()=>v.mIk,TopBarDivider:()=>v.AA7,TopBarIconButton:()=>v.gFP,TransferPictogram:()=>v.SKX,TranslateIcon:()=>v.SwB,TrashCanIcon:()=>v.EJV,TreeViewAltIcon:()=>v.MO4,TriagePictogram:()=>v.XHu,UserAvatarIcon:()=>v.yDT,UserFollowIcon:()=>v.osL,UserIcon:()=>v.nys,UserXrayIcon:()=>v.feL,ViewIcon:()=>v.tCQ,ViewOffIcon:()=>v.Oi_,WarningIcon:()=>v.id,WaterGlassModal:()=>v.BIq,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>v.ozP,WorkspaceContainer:()=>v.XvC,WorkspaceNotification:()=>v.tMf,XrayPictogram:()=>v.B2u,activateOfflineCapability:()=>m.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,age:()=>w.KW,ageAsDuration:()=>w.Cy,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>m.FO,buildFilterFields:()=>v.mOW,canAccessStorage:()=>w._g,canBeginEditSynchronizationItemsOfType:()=>m.xN,canCloseWorkspaceWithoutPrompting:()=>v.SvQ,cancelPrompt:()=>v.zlb,cardModalAnimationPresets:()=>v.QsE,changeWorkspaceContext:()=>v.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,cleanCascadingFilters:()=>v._Jn,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>v.G_3,closeWorkspace:()=>v.MJ8,closeWorkspaceGroup2:()=>v.biy,cn:()=>v.cn,compile:()=>u.wE,convertToLocaleCalendar:()=>w.d4,createAttachment:()=>s.cD,createDashboard:()=>v.n6L,createErrorHandler:()=>l.J,createLiveOrb:()=>v.Ogf,defaultValidation:()=>v.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>m.lY,detach:()=>c.Yo,detachAll:()=>c.No,dispatchActionableNotificationShown:()=>f.LQ,dispatchConnectivityChanged:()=>f.Yt,dispatchNotificationShown:()=>f.FI,dispatchPrecacheStaticDependencies:()=>f.pc,dispatchSnackbarShown:()=>f.$3,dispatchToastShown:()=>f.Vt,displayName:()=>w.QC,duration:()=>w.p0,egenOfflineCachingStrategyHttpHeaderName:()=>m.T$,egenOfflineResponseBodyHttpHeaderName:()=>m.Q1,egenOfflineResponseStatusHttpHeaderName:()=>m.Gt,enableImportMapOverride:()=>o.BX,esmStyleGuideSchema:()=>v.uQD,evaluate:()=>u._3,evaluateAsBoolean:()=>u.eb,evaluateAsBooleanAsync:()=>u.Gz,evaluateAsNumber:()=>u.dX,evaluateAsNumberAsync:()=>u.$F,evaluateAsType:()=>u.Sj,evaluateAsTypeAsync:()=>u.uN,evaluateAsync:()=>u.mv,evaluateFilter:()=>v.Ws0,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,fetchCurrentEntity:()=>s.dZ,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>y.yw,fireEgenEvent:()=>s.g8,formatDate:()=>w.Yq,formatDatetime:()=>w.Rt,formatDuration:()=>w.a3,formatDurationBetween:()=>w.g2,formatEntityName:()=>w.MS,formatPartialDate:()=>w.LW,formatPatientName:()=>w.Qr,formatTime:()=>w.fU,formattedName:()=>w.qK,generateOfflineUuid:()=>m.sA,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>b.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>m.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>w.a7,getDefaultsFromConfigSchema:()=>w.kd,getDynamicOfflineDataEntries:()=>m.FE,getDynamicOfflineDataEntriesFor:()=>m.WA,getDynamicOfflineDataHandlers:()=>m.qb,getEgenServiceWorker:()=>m.b1,getEntityName:()=>w.He,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>m.C$,getFullSynchronizationItemsFor:()=>m.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>w.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getOfflineDb:()=>m.e,getOfflineEntityDataStore:()=>m.sm,getOfflineSynchronizationStore:()=>m.LM,getOpenedWindowIndexByWorkspace:()=>c.YX,getPatientName:()=>w.Vp,getPromptBeforeClosingFcn:()=>v.OeE,getRegisteredWorkspace2Names:()=>v.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getSavedAssistantMode:()=>v.T7$,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>m.Gp,getSynchronizationItems:()=>m.pb,getSynchronizationItemsFor:()=>m.Io,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>v.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>v.XzH,goBackInHistory:()=>p.tA,iconIds:()=>v.kE8,importDynamic:()=>o.rL,integrateBreakpoints:()=>v.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>w.pf,isEgenDateToday:()=>w.L8,isEgenRoutes:()=>f.Ss,isFilterReady:()=>v.iVR,isImportMapOverrideDisabled:()=>o.q1,isNavEntryMeta:()=>c.DK,isOfflineUuid:()=>m.bO,isOnline:()=>w.sc,isVersionSatisfied:()=>w.rX,isXboxAudioMuted:()=>v.lgu,jsep:()=>u.PQ,launchWorkspace:()=>v.TC2,launchWorkspace2:()=>v.pTx,launchWorkspaceGroup:()=>v.aN0,launchWorkspaceGroup2:()=>v.GYk,leftNavStore:()=>c.Gp,loadLifeCycles:()=>y.oB,matchLocale:()=>w.w7,matchesFilters:()=>v.lu9,messageEgenServiceWorker:()=>m.Oc,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>v.Fmw,offlineUuidPrefix:()=>m.jU,parseDate:()=>w._U,parseDateInput:()=>w.qE,pictogramIds:()=>v.vJW,playXboxSound:()=>v.x4I,preloadImport:()=>o.zC,preloadSplineScene:()=>v.Pfj,promptBeforeClosing:()=>v.F3N,promptForClosingWorkspaces:()=>v.hLN,putDynamicOfflineData:()=>m.yD,putDynamicOfflineDataFor:()=>m.ff,queueSynchronizationItem:()=>m.Zr,queueSynchronizationItemFor:()=>m.Iq,registerApp:()=>y.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>w.XE,registerEgenServiceWorker:()=>m.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerOfflineEntityHandler:()=>m.Wo,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>m.NU,removeDynamicOfflineDataFor:()=>m.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.KI,renderActionableNotifications:()=>v.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>v.CU$,renderLoadingSpinner:()=>v.uWG,renderSnackbars:()=>v.ZLm,renderToasts:()=>v.f1b,renderWorkspaceWindowsAndMenu:()=>v.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>v._1W,retry:()=>w.L5,runSynchronization:()=>m.AO,saveAssistantMode:()=>v.Pe5,saveWorkSession:()=>s.XM,selectPreferredName:()=>w.VO,setCurrentOfflineMode:()=>m.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setLeftNav:()=>c.Vx,setupDynamicOfflineDataHandler:()=>m.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>v.EPe,setupOfflineSync:()=>m.cy,setupRouteMapOverrides:()=>o._m,shallowEqual:()=>w.bN,showActionableNotification:()=>v.ZyP,showModal:()=>v.toY,showNotification:()=>v.Dsh,showSnackbar:()=>v.tdF,showToast:()=>v.P0c,showWorkspacePrompts:()=>v.ctS,slugify:()=>o.Yv,subscribeActionableNotificationShown:()=>f.bK,subscribeConnectivity:()=>f.sT,subscribeConnectivityChanged:()=>f.gj,subscribeEgenEvent:()=>s.mI,subscribeNotificationShown:()=>f.bJ,subscribePrecacheStaticDependencies:()=>f.ff,subscribeSnackbarShown:()=>f.ls,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>f.dX,syncAllDynamicOfflineData:()=>m.Td,syncDynamicOfflineData:()=>m.u1,syncOfflineEntityData:()=>m.Oj,toDateObjectStrict:()=>w.kQ,toEgenIsoString:()=>w.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,toggleXboxAudio:()=>v.MiD,translateFrom:()=>b.t,tryRegisterExtension:()=>y.Y1,unsetLeftNav:()=>c.sr,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>v._RD,useCarouselContext:()=>v.RGi,useCustomOverflowMenu:()=>v.ckU,useEntityPhoto:()=>v.XhU,useFilterSchema:()=>v.d4y,usePageBackground:()=>v.DYW,useSelectContext:()=>v.hPu,useSheetContext:()=>v.sCq,useWorkspace2Context:()=>v.WO_,useWorkspace2Store:()=>v.AkA,useWorkspaces:()=>v.CH0,workspace2Store:()=>c.J_,workspace2StoreActions:()=>v.cJy,workspaceStore:()=>v.x9q,xboxAudio:()=>v.o81});var r=n(4896),a={};for(let e in r)"default"!==e&&(a[e]=()=>r[e]);n.d(t,a);var i=n(2804),a={};for(let e in i)"default"!==e&&(a[e]=()=>i[e]);n.d(t,a);var o=n(101),s=n(3447),l=n(8507),u=n(9360),c=n(6553),d=n(5794),f=n(5895),p=n(7774),m=n(6563),h=n(346),a={};for(let e in h)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","TOPBAR_LEVEL2_NAV_SLOT","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","isNavEntryMeta","WorkSessionStatus","getExtensionRegistrationFrom","navigate","registerBreadcrumbs","getDynamicOfflineDataEntries","syncOfflineEntityData","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(a[e]=()=>h[e]);n.d(t,a);var y=n(7334),g=n(1442),a={};for(let e in g)0>["getGroupByWindowName","getImportMapOverrideMap","evaluateAsNumber","importDynamic","finishRegisteringAllApps","tryRegisterExtension","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","TOPBAR_LEVEL2_NAV_SLOT","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","loadLifeCycles","isNavEntryMeta","WorkSessionStatus","getExtensionRegistrationFrom","navigate","registerBreadcrumbs","getDynamicOfflineDataEntries","syncOfflineEntityData","evaluateAsTypeAsync"].indexOf(e)&&(a[e]=()=>g[e]);n.d(t,a);var v=n(9764),b=n(5565),w=n(7184)},5895(e,t,n){"use strict";n.d(t,{$3:()=>r.$3,FI:()=>r.FI,LQ:()=>r.LQ,Ss:()=>a.S,Vt:()=>r.Vt,Yt:()=>r.Yt,bJ:()=>r.bJ,bK:()=>r.bK,dX:()=>r.dX,ff:()=>r.ff,gj:()=>r.gj,j0:()=>a.j,ls:()=>r.ls,pc:()=>r.pc,sT:()=>r.sT});var r=n(9726),a=n(2235)},2235(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&!(Object.hasOwn(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||Object.hasOwn(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||Object.hasOwn(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||Object.hasOwn(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}function o(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],a=t[1];return"string"==typeof n&&i(a)})}n.d(t,{S:()=>o,j:()=>i})},7334(e,t,n){"use strict";n.d(t,{yw:()=>f,Y1:()=>l,FZ:()=>d,oB:()=>s.o});var r=n(9250),a=n(2804),i=n(5794),o=n(6553),s=n(8148);function l(e,t){var n=t.name;if(!n)return void console.error("An extension definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.'),t);t.slots&&t.slot&&console.warn("The extension ".concat(n," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var r=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition."),t);(0,o.VK)({name:n,load:function(){return(0,s.o)(e,t.component)},meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:null==(u=t.online)||u,offline:null!=(c=t.offline)&&c,featureFlag:t.featureFlag,displayExpression:t.displayExpression});var a=!0,i=!1,l=void 0;try{for(var u,c,d,f=r[Symbol.iterator]();!(a=(d=f.next()).done);a=!0){var p=d.value;(0,o.K0)(p,n)}}catch(e){i=!0,l=e}finally{try{a||null==f.return||f.return()}finally{if(i)throw l}}}function u(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var c=[];function d(e,t){if(e&&t&&(void 0===t?"undefined":u(t))==="object"){(0,a.registerModuleWithConfigSystem)(e);var n,r,d,f,p,m,h,y,g,v=null!=(n=t.extensions)?n:[],b=null!=(r=t.modals)?r:[],w=null!=(d=t.workspaces)?d:[],x=null!=(f=t.workspaceGroups)?f:[],S=null!=(p=t.featureFlags)?p:[],j=null!=(m=t.workspaceGroups2)?m:[],E=null!=(h=t.workspaceWindows2)?h:[],O=null!=(y=t.workspaces2)?y:[];null==(g=t.pages)||g.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var n,r;c.push((n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t),r=r={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),v.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?l(e,t):console.warn("An extension for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),b.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")){var n;(n=t.name)?t.component?(0,o.Ju)({name:n,moduleName:e,load:function(){return(0,s.o)(e,t.component)}}):console.error("The modal ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition."),t):console.error("A modal definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.'),t)}else console.warn("A modal for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),w.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var n=t.name;if(!n)return console.error("A workspace definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t);var r=t.title;if(!r)return console.error("A workspace definition in ".concat(e,' is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.'),t);if(!t.component)return console.error("The workspace ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition."),t);(0,o.pm)({name:n,title:r,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:function(){return(0,s.o)(e,t.component)}});var a=!0,i=!1,l=void 0;try{for(var u,c=(t.groups||[])[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;(0,o.io)({name:d,members:[n]})}}catch(e){i=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw l}}}(e,t):console.warn("A workspace for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),x.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")){var n,r;(r=t.name)?(0,o.io)({name:r,members:null!=(n=t.members)?n:[]}):console.error("A workspace group definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t)}else console.warn("A workspace group for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),(0,o.rD)(e,j),function(e,t){(0,o.Qb)(e,t);var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value;if(u.icon){var c={name:u.name,component:u.icon,slot:u.group,order:u.order};l(e,c)}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(e,E),(0,o.Uh)(e,O),S.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,i.uA)(t.flagName,t.label,t.description):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.'),t);else console.warn("A feature flag for ".concat(e," could not be registered as it does not appear to have the required properties"),t)})}}function f(){c.sort(function(e,t){return e.appName.localeCompare(t.appName,"en")});var e=new Map,t=!0,n=!1,a=void 0;try{for(var o,l=c[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var u,d=o.value;e.has(d.appName)?e.set(d.appName,e.get(d.appName)+1):e.set(d.appName,0);var f=e.get(d.appName),p="".concat(d.appName,"-page-").concat(f),m=null!=(u=d.containerDomId)?u:"egen-apps-container",h=document.getElementById(m),y="single-spa-application:".concat(p);if(h){var g=document.createElement("div");g.id=y,null==h||h.appendChild(g)}else throw Error("".concat(d.appName," ").concat(d.component,' cannot be mounted to "').concat(m,'"; DOM element does not exist.'));!function(e,t){var n,a,o,l,u=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===u)return console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);var c=(n=function e(t){if(Array.isArray(t)){var n,a=t.map(e);return function(e){return a.some(function(t){return t(e)})}}return"string"==typeof t?(0,r.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(n=RegExp)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(u),a=t.online,o=t.offline,l=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==a||a)||!navigator.onLine&&null!=o&&o)&&(!l||!!(0,i.jj)(l))&&n(e)}:n);(0,r.registerApplication)(e,function(){return(0,s.o)(t.appName,t.component)},c)}(p,d)}}catch(e){n=!0,a=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw a}}}},8148(e,t,n){"use strict";n.d(t,{o:()=>u});var r=n(99),a=n(2804);function i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)})}}function s(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var l=new Map;function u(e,t){return o(function(){var n,i,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(i=(n=t.indexOf("#"))>=0)?t.substring(0,n):e,d=i?t.substring(n+1):t,[4,(0,r.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var m,h;return[2,(m=u,h=f,o(function(){var e,t;return s(this,function(n){switch(n.label){case 0:if(m in l)return[3,5];if(null==h)return[3,1];return t=h,[3,3];case 1:return[4,(0,r.rL)(m)];case 2:t=n.sent(),n.label=3;case 3:return e=t,[4,l[m]=new Promise(function(t,n){if(Object.hasOwn(e,"startupApp")){var r=e.startupApp;if("function"==typeof r)return Promise.resolve(r()).then(function(){(0,a.registerModuleLoad)(m),t(null)}).catch(n)}(0,a.registerModuleLoad)(m),t(null)})];case 4:return n.sent(),[3,7];case 5:return[4,l[m]];case 6:n.sent(),n.label=7;case 7:return[2]}})})()).then(function(){return f[d]()})]}return f?f&&Object.hasOwn(f,d)?console.warn("The export ".concat(t,", defined in ").concat(e,"'s routes.json, is not a function")):console.warn("".concat(u,' does not define a component called "').concat(d,'", referenced in ').concat(e,"'s routes.json. This cannot be loaded.")):console.warn("Unknown app ".concat(u," for ").concat(t," defined in ").concat(e,"'s routes.json")),[2,c]}})})()}var c={bootstrap:function(){return Promise.resolve()},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}}},3903(e,t,n){"use strict";n.d(t,{g2:()=>ey,Rt:()=>eo,XE:()=>J,a3:()=>el,LW:()=>en,a7:()=>ee,L8:()=>q,Yq:()=>er,L3:()=>K,fU:()=>ei,_U:()=>Z,d4:()=>es,p0:()=>em,kQ:()=>Y,qE:()=>eu,pf:()=>G});var r,a=n(9405),i=n(227);if("u">typeof navigator){let e=navigator;r=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;r=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var o=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch{return"en-US"}}(r||"en-US"),s=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},l={};for(let e=0;e<100;e++)l[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var u={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},c="[1234567890一二三四五六七八九〇\\d]",d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},f={},p={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},m={zone:p,year:l,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},h={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:`\\(?(?:${Object.keys(p).join("|")})\\)?`,MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},y={...h,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},g={},v=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=o){let n=t.toLowerCase(),r=g[n];if(r)return r;let a=new e(t);return g[n]=a,a}constructor(e=o){this.locale=e,this.lookups={...m},this.vars={...h};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){return"number"==typeof e?e:"string"==typeof e?this.stringToInt(e):void 0}stringToInt(e){if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!Number.isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.stringToInt(t):2===t.length?10*this.stringToInt(t):this.stringToInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.stringToInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.stringToInt(n)+(r?this.stringToInt(r):0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=d:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){let t=f[e];if(t)return t;if("fullwide"===e||"hanidec"===e)return{group:c,lookup:{...d}};let n=u[e];if(!n)return{group:"\\d",lookup:{...d}};let r=String.fromCharCode(n),a=String.fromCharCode(n+9),i={};for(let e=0;e<10;e++)i[String.fromCharCode(n+e)]=e;return f[e]={group:`[${r}-${a}]`,lookup:i},f[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,y)Object.hasOwn(y,n)&&(this.vars[n]=y[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,i)=>{e[n+a+(i<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let i=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let o=0;o<12;o++){let s=i.formatToParts(n[o]).find(r);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);/^\d+$/.test(l)||(/^ko/i.test(this.locale)&&(l+="월"),"medium"===a?(l=l.replace(/\.$/,""),e[`${l}\\.?`]=!0):e[l]=!0,t[l]=o+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let i=0;i<12;i++){let o=a.formatToParts(n[i]).find(r);if(!o)continue;let s=o.value.toLocaleLowerCase(this.locale);s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0,t[s]=i+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let i=Intl.DateTimeFormat(this.locale,{weekday:a});for(let o=0;o<7;o++){let s=i.formatToParts(e[o]).find(t);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);"short"===a?(l=l.replace(/\.$/,""),n.push(`${l}\\.?`)):n.push(l),r[l]=o}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let i=0;i<2;i++){let o=a.formatToParts(e[i]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*i}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],w={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},x=()=>new Date;function S(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var j=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let i=e.handler(a);if(i){for(let[e,t]of Object.entries(i))e in n||void 0===t||(n[e]=t);let e=a.index??0;if(t=(t=t.slice(0,e)+t.slice(e+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},E=["year","month","day","hour","minute","second","millisecond","offset"],O={};function k(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var D=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],P={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...D],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:D,id:D,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function A(e,t=o){let n=function(e){var t,n;let r,a,i=O[e];if(i)return i;let o=v.factory(e),s=new j({doneChecker:k,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:S(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:S(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:S(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/\b(now|today|tomorrow|yesterday)\b/i,handler:e=>{let t=x(),n=e[0].toLowerCase(),r={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[n]??0;0!==r&&t.setTime(t.getTime()+r);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===n?{...a,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:a}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:([,e,t,n,r])=>{let a,i=parseFloat(t);"week"===(a=n.length<=2?w[n]:(a=n.replace(/s$/,"")).toLowerCase())&&(a="day",i*=7),("-"===e||r)&&(i*=-1);let o=x();return"millisecond"===a?o.setUTCMilliseconds(o.getUTCMilliseconds()+i):"second"===a?o.setUTCSeconds(o.getUTCSeconds()+i):"minute"===a?o.setUTCMinutes(o.getUTCMinutes()+i):"hour"===a?o.setUTCHours(o.getUTCHours()+i):"day"===a?o.setUTCDate(o.getUTCDate()+i):"month"===a?o.setUTCMonth(o.getUTCMonth()+i):"year"===a&&o.setUTCFullYear(o.getUTCFullYear()+i),{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate(),hour:o.getUTCHours(),minute:o.getUTCMinutes(),second:o.getUTCSeconds(),millisecond:o.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:e=>{let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:e=>{let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:S(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:S(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:S(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:S(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:S(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:S(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:S(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:S(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:S(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:S(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:S(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:S(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:S(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:S(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:S(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:S(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:S(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:S(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:S(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:S(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:S(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:S(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:S(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:S(["offset"])}],a=o.baseName.slice(0,5),b.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(E.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return void 0!==t.year&&t.year<100&&(t.year=l[String(e.year)]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})});return O[e]=s,s}(t),r=function(e,t){let n=P[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function C(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new s(e.year??NaN,(e.month??NaN)-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new s(t.valueOf()-60*e.offset*1e3):t}function T(e,t=o){let n=A(e,t),r=n.invalid?new s(NaN):C(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function N(e,t=o){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):T(e,t)}Date.fromString=s.fromString=T,Date.fromAny=s.fromAny=N,"u">typeof window&&(window.anyDateParser={fromString:T,fromAny:N,fromObject:C,attempt:A});var R=n(5350),M=n.n(R),I=n(648),L=n(6871),_=n(2147);let F=function(e){return null==e};var V=n(313),B=n(1851);function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){U(e,t,n[t])})}return e}function $(e,t){var n=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return n.get?n.get.call(e):n.value}M().extend(I),M().extend(_),M().extend(L);var H="YYYY-MM-DDTHH:mm:ss.SSSZZ";function G(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&M()(e,H).isValid()}function q(e){return M()(e).isToday()}function Y(e){return G(e)?M()(e,H).toDate():null}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=M()(e);return t&&(n=n.utc()),n.format(H)}function Z(e){return M()(e).toDate()}var X=new WeakMap,Q=new(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=this,n=X,r={writable:!0,value:new Map};if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,r)}return e=[{key:"register",value:function(e,t){$(this,X).set(e,t)}},{key:"getCalendar",value:function(e){if(e){if(e.calendar)return e.calendar;if(e.region){var t="".concat(e.language,"-").concat(e.region);if($(this,X).has(t))return $(this,X).get(t)}if(e.language&&$(this,X).has(e.language))return $(this,X).get(e.language);var n=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return $(this,X).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),n),n}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function J(e,t){Q.register(e,t)}function ee(e){var t,n=null!=e?e:(0,B.J)();return Q.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t)?n:new Intl.Locale(n))}var et={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=A(e,(0,B.J)());if(n.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!F(n.day)&&F(n.month)&&(n=Object.assign({},(0,V.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=Object.assign({},(0,V.A)(n,"day"),{date:n.day}));var r=M()().set(n).toDate();return F(n.year)&&(t.year=!1),F(n.month)&&(t.month=!1),F(n.date)&&(t.day=!1),er(r,t)}function er(e,t){var n,r,a=null!=(n=null==t?void 0:t.locale)?n:(0,B.J)(),i=new Intl.Locale(a),o=W({},et,{noToday:"am"===i.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,m=o.numberingSystem,h={calendar:null!=s?s:ee(i),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:m},y=M()(e).isToday();if(y&&!p)r=(r=new Intl.RelativeTimeFormat(a,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(a)+r.slice(1);else{"en"===i.language&&(a="en-GB");var g=new Intl.DateTimeFormat(a,h).formatToParts(e);("en"===i.language||"am"===i.language)&&"standard"==l&&f&&c&&(g=g.map(ea("-"))),"wide"==l&&(g=g.map(ea(" — "))),"ethiopic"===h.calendar&&(g=g.filter(function(e,t,n){return"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type)})),r=g.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(r+=", ".concat(ei(e))),r}var ea=function(e){return function(t,n,r){return"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e}}};function ei(e){return e.toLocaleTimeString((0,B.J)(),{hour:"2-digit",minute:"2-digit"})}function eo(e,t){var n,r;return er(e,(n=W({},t),r=r={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function es(e,t){var n=ee("string"==typeof t?new Intl.Locale(t):t);return n?(0,a.yP)(e,(0,i.d)(n)):e}function el(e,t){return new Intl.DurationFormat((0,B.J)(),t).format(e)}function eu(e,t){if(null==e)return null;if("string"==typeof e){var n=A(e,(0,B.J)());return n.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(n.day&&!n.month&&(n=W({},(0,V.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=W({},(0,V.A)(n,"day"),{date:n.day})),M()(t).set(n))}return M()(e)}var ec=["years","months","days","hours","minutes","seconds"],ed={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"};function ef(e){var t;return null!=(t=ed[e])?t:e}var ep={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function em(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),r=arguments.length>2?arguments[2]:void 0,a=M()(n),i=eu(e,a);if(null==i)return null;if("string"==typeof r){var o=ef(r);return U({},o,a.diff(i,o))}var s=null!=r?r:{},l=s.thresholds,u=s.largestUnit,c=s.smallestUnit;if(void 0!==u||void 0!==c){var d,f=c?ef(c):void 0;return d="auto"===u||void 0===u?function(e,t,n){for(var r=ec.indexOf(n),a=0;a<ec.length;a++){var i=ec[a];if(t.diff(e,i)>0)return a<=r?i:n}return n}(i,a,null!=f?f:"seconds"):ef(u),function(e,t,n,r){var a=ec.indexOf(n),i=ec.indexOf(r),o=ec.slice(a,i+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=o[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value,h=t.diff(l,m);s[m]=h,l=l.add(h,m)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(i,a,d,null!=f?f:d)}var p=(t=function(e){var t=W({},ep);if(e){var n=!0,r=!1,a=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||function(e){if(e){if("string"==typeof e)return z(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];void 0!==c&&(t[ef(u)]=c)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}return t}(l),a.diff(i,"seconds")<t.seconds?"seconds":a.diff(i,"minutes")<t.minutes?"minutes":a.diff(i,"hours")<t.hours?"hours":a.diff(i,"days")<t.days?"days":a.diff(i,"months")<t.months?"months":"years");return U({},p,a.diff(i,p))}var eh={style:"short",localeMatcher:"lookup"};function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M()(),n=arguments.length>2?arguments[2]:void 0,r=em(e,t,n);return null==r?null:el(r,(void 0===n?"undefined":n&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&n.formatOptions?W({},eh,n.formatOptions):eh)}},1851(e,t,n){"use strict";function r(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}n.d(t,{J:()=>r})},7184(e,t,n){"use strict";n.d(t,{g2:()=>i.g2,bN:()=>b.b,JK:()=>l.J,a3:()=>i.a3,LW:()=>i.LW,MS:()=>h,He:()=>f,rX:()=>O,L8:()=>i.L8,VO:()=>v,QC:()=>m,_U:()=>i._U,kQ:()=>i.kQ,qE:()=>i.qE,KW:()=>s,pf:()=>i.pf,kd:()=>function e(t){var n={},r=!0,a=!1,i=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;if(x(t[l])&&t[l].hasOwnProperty("_default"))n[l]=t[l]._default;else{if(l.startsWith("_"))continue;x(t[l])?n[l]=e(t[l]):n[l]=t[l]}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n},L5:()=>A,XE:()=>i.XE,Qr:()=>y,_g:()=>w,a7:()=>i.a7,sc:()=>u.s,w7:()=>d,L3:()=>i.L3,Yq:()=>i.Yq,fU:()=>i.fU,qK:()=>g,d4:()=>i.d4,Cy:()=>o,p0:()=>i.p0,Vp:()=>p,Rt:()=>i.Rt});var r=n(5350),a=n.n(r),i=n(3903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=a()(t),r=(0,i.qE)(e,n);if(null==r)return null;var o=n.diff(r,"hours"),s=n.diff(r,"days"),l=n.diff(r,"weeks"),u=n.diff(r,"months"),c=n.diff(r,"years"),d={};if(o<2)d.minutes=n.diff(r,"minutes");else if(s<2)d.hours=o;else if(l<4)d.days=s;else if(c<1){var f=n.subtract(l,"weeks").diff(r,"days");d.weeks=l,d.days=f}else if(c<2){var p=n.subtract(u,"months").diff(r,"days");d.months=u,d.days=p}else if(c<18){var m=n.subtract(c,"year").diff(r,"months");d.years=c,d.months=m}else d.years=c;return d}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=o(e,t);if(null==n)return null;var r={style:"short",localeMatcher:"lookup"};return"minutes"in n&&0===n.minutes&&(r.minutesDisplay="always"),(0,i.a3)(n,r)}var l=n(1851),u=n(2316);function c(e){if("string"==typeof e&&0!==e.trim().length){var t=e.replaceAll("_","-");try{return new Intl.Locale(t).toString()}catch(e){return}}}function d(e,t,n){if(null==e)return n;var r=c(e);if(!r)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),n;var a=[],i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var d=l.value,f=c(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}a.push({canonical:f,original:d})}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}for(var p=r;p;){var m=function(){var e=a.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",n=a.find(function(e){return e.canonical.startsWith(t)});if(n)return{v:n.original};if("ht"===p)return p="fr-HT","continue";var r=p.lastIndexOf("-");if(-1===r)return"break";var i=(p=p.slice(0,r)).lastIndexOf("-");-1!==i&&p.length-i==2&&(p=p.slice(0,i))}();if("object"==(m&&"u">typeof Symbol&&m.constructor===Symbol?"symbol":typeof m))return m.v;if("break"===m)break}return n}function f(e){return h(v(e,"usual","official"))}function p(e){return f(e)}function m(e){return f(e)}function h(e){var t,n,r,a;return e?null!=(t=e.text)?t:(a=null!=(r=(n=e).given)?r:[],(n.family?a.concat(n.family):a).join(" ")):""}function y(e){return h(e)}function g(e){return h(e)}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];0===n.length&&(n=["usual"]);var a=!0,i=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var u=function(){var t,n=s.value,r=null==(t=e.name)?void 0:t.find(function(e){var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(r)return{v:r}}();if("object"==(u&&"u">typeof Symbol&&u.constructor===Symbol?"symbol":typeof u))return u.v}}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}}var b=n(8254);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function x(e){return!!e&&e.constructor===Object}var S=n(8164);function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),3!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return j(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,3)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],a=n[1],i=n[2];return"".concat(r,".").concat(a,".").concat(i)}function O(e,t){var n=function(e){var t=e.indexOf("-");if(t>=0){var n=E(e.slice(0,t)),r=e.slice(t+1);return"".concat(n,"-").concat(r)}return E(e)}(t);return S.satisfies(n,e,{includePrerelease:!0})}function k(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function D(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){k(i,r,a,o,s,"next",e)}function s(e){k(i,r,a,o,s,"throw",e)}o(void 0)})}}function P(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function A(e){return D(function(e){var t,n,r,a,i,o,s,l=arguments;return P(this,function(u){switch(u.label){case 0:n=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,r=t.getDelay,a=t.onError,n=null!=n?n:function(e){return e<=5},r=null!=r?r:function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,n?e+1:e)}(e,1e3)},i=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=r(i),D(function(){return P(this,function(e){return c<=0?[2]:[2,new Promise(function(e){return setTimeout(e,c)})]})})())];case 2:return u.sent(),[4,e()];case 3:return[2,u.sent()];case 4:return s=u.sent(),null==a||a(s,i),o=s,[3,5];case 5:if(n(i++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}}}]);
|