PageSourceSearch

https://www.finavia.fi/modules/custom/finavia_frontend/app/dist/js/global.bundle.js?v=1790776148

js finavia.fi collected 2026-10-02 02:45:57 UTC 217,101 bytes, 3 lines download raw bytes

1/*! For license information please see global.bundle.js.LICENSE.txt */
2(self.webpackChunkfinavia_frontend=self.webpackChunkfinavia_frontend||[]).push([["global"],{349(e){function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=349,e.exports=t},1657(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(6540),i=n(5556),o=n.n(i),a=n(1468),s=n(6942),l=n.n(s),c=n(17),u=n(2890),d=n(5580),h=n(7111),m=n(3131);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}function f({toFlightsPage:e=!1}){const{airportContext:t}=(0,a.d4)(e=>e.uiState),n=(0,a.wA)();(0,r.useEffect)(()=>{var e;d.C.IS_FRONT||d.C.IS_WEBGUIDE?n((0,m.clearAirportContext)()):null!==(e=d.C.AIRPORT_CONTEXT)&&void 0!==e&&e.name&&n((0,m.setAirportContext)(d.C.AIRPORT_CONTEXT))},[]);const i=(0,r.useMemo)(()=>(0,h.bk)({toFlightsPage:e}),[]),{isOpen:o,getToggleButtonProps:s,getLabelProps:f,getMenuProps:g,highlightedIndex:v,getItemProps:y,openMenu:b}=(0,c.WM)({items:i,defaultHighlightedIndex:0,itemToString:e=>e.name,onKeyDown(e){e.currentTarget.classList.remove("focus-visible")},onSelectedItemChange(e){(0,h.bw)(e.selectedItem.url)},onStateChange(e){e.hasOwnProperty("isOpen")&&(e=>{document.querySelector("body").classList[e?"add":"remove"]("lock-scroll")})(e.isOpen)}});return r.createElement("div",{className:"airport-select"},r.createElement("label",f({className:"visually-hidden"}),u.I0.selectAirport),r.createElement("button",p({type:"button"},s({onClick:()=>{o||(e||n((0,m.setActiveHeaderIcon)("")),requestAnimationFrame(b))},className:l()("airport-select__button",{"airport-select__button--header":!e})})),t.name||u.I0.selectAirport),r.createElement("ul",g({className:l()("airport-select__menu",{"airport-select__menu--closed":!o})}),o&&i.map((e,t)=>r.createElement("li",p({key:e.code},y({item:e,className:l()("airport-select__menu-item",{"airport-select__menu-item--highlighted":t===v})})),r.createElement("a",{className:"airport-select__menu-item__link",href:e.url},u.Uh[e.code])))))}f.propTypes={toFlightsPage:o().bool};const g=f},962(e,t,n){"use strict";var r=n(6540),i=n(5580),o=n(8131),a=n(7353),s=n(5338),l=n(961),c=n(1468),u=n(1657);if(!i.C.IS_WEBGUIDE){const e=(0,s.createRoot)(document.getElementById("block-backtoairportlinkblock"));(0,l.flushSync)(()=>{e.render(r.createElement(c.Kq,{store:a.Ay},r.createElement(o.Q,{persistor:a.qj},r.createElement(u.A,null))))})}},6692(e,t,n){"use strict";var r=n(6540),i=n(8131),o=n(7353),a=n(5338),s=n(1468),l=n(8623),c=n(5556),u=n.n(c),d=n(2890),h=n(3807),m=n(7111),p=n(5580),f=n(6231),g=n(6942),v=n.n(g),y=n(7137),b=n(8203);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(null,arguments)}const E=r.forwardRef(({isActive:e,id:t,title:n,icon:i,count:o=0,...a},s)=>r.createElement("button",w({"aria-haspopup":"true","aria-controls":t,"aria-expanded":e,id:`${t}-toggle`,className:v()("header-button",`header-button--${t}`,{"header-button--active":e}),ref:s},a),r.createElement(y.A,{icon:i,className:"rw-icon--sm@sm rw-icon--md@lg"}),r.createElement("span",{className:"link-text"},n),o>0&&r.createElement("span",{className:"link-badge","aria-label":1===o?d.I0.flightCountLabelSingular(o):d.I0.flightCountLabelPlural(o)},o)));E.displayName="HeaderIcon",E.propTypes={isActive:u().bool.isRequired,id:u().oneOf(b.Y).isRequired,title:u().string.isRequired,icon:u().string.isRequired,count:u().number};const _=E;var T=n(4950);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}const S=({activeItem:e,setActiveHeaderIcon:t})=>{const n=(0,f.Ub)({query:`(min-width: ${p.NF})`}),i={id:"search",title:d.Pr.searchBtnLabel,icon:"magnifier"},o={id:"language",title:d.Pr.languageBtnLabel,icon:"globe"},a=[i,o],s=[o];return r.createElement(r.Fragment,null,!n&&r.createElement(T.Ay,null),n&&r.createElement("div",{className:"site-header__toolbar"},(p.C.IS_WEBGUIDE?s:a).map(({id:n,title:i,icon:o,count:a},s)=>{const l={isActive:e===n,id:n,key:n,title:i,icon:o,count:a};return r.createElement(_,x({},l,{onClick:e=>((e,n)=>{t(n),(0,m.Yk)(e)})(e,n),key:s}))}),r.createElement(T.Ay,null)))};S.propTypes={myFlightsCount:u().number.isRequired,activeItem:u().string.isRequired,setActiveHeaderIcon:u().func.isRequired,logout:u().func.isRequired,clearActiveFlightDetails:u().func.isRequired};const N=(0,s.Ng)(function(e){return{myFlightsCount:(0,h.W1)(e).filter(({sdt:e})=>e).length,activeItem:e.uiState.activeHeaderIcon}},l.A)(S),$=document.getElementById("header-icons");(0,a.createRoot)($).render(r.createElement(s.Kq,{store:o.Ay},r.createElement(i.Q,{persistor:o.qj},r.createElement(N,null))))},375(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(6540),i=n(7111),o=n(4129),a=n(8988),s=n(1611),l=n(7137),c=n(4100),u=n(5454),d=n(5580),h=n(2890),m=n(3131),p=n(5556),f=n.n(p),g=n(312),v=n.n(g),y=n(1468);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(null,arguments)}const w={...h.Pr,...h.I0},E=({flightId:e,defaultFlightNumbers:t,defaultFlightDate:n,flightBeltStatus:h,flightStatusCode:p,flightDetailsOpen:f,isMobileOverlay:g=!1})=>{var E;const _=(0,y.wA)(),{register:T,handleSubmit:x,formState:S,setValue:N,getValues:$,apiVerifyCaptcha:k}=(0,s.mN)({...s.Xm,defaultValues:{departingOrTransferring:"departing"}}),{errors:A}=S,C=(0,r.useRef)(),[M,R]=(0,r.useState)([{text:"",isActive:!1}]),[F]=(0,r.useState)(t),[L,D]=(0,r.useState)(!1),[O,P]=(0,r.useState)(!1),[I,V]=(0,r.useState)(!1),[j,q]=(0,r.useState)(!1);(0,r.useEffect)(()=>{B()},[]);const B=async()=>{const e=(await(0,o.getUserPreferencesList)()).body.map(e=>({text:e.name,isActive:!1,id:e.tid}));R(e)},W=()=>{q(!j),_(f?(0,m.setActiveHeaderIcon)("",!0):(0,m.setActiveHeaderIcon)("myflights"))};return r.createElement("section",{className:"myflights-preferences"},r.createElement("h2",{className:"rw-responsive-heading--tiny myflights-preferences__heading"},w.preferencesMainTitle),r.createElement("div",{className:"rw-grid myflights-preferences__container"},!(0,i.YA)(p)&&(0,i.ol)(n)&&w.preferencesDisabledText,!(0,i.ol)(n)&&w.preferencesDisabledYetText,(0,i.YA)(p)&&(0,i.ol)(n)&&!O&&w.preferencesEnabledText,null!==(E=!O)&&void 0!==E?E:r.createElement(r.Fragment,null,r.createElement("span",{className:"myflights-preferences__bold"},w.preferencesEnabledTextSubscribe),r.createElement("span",null,w.preferencesEnabledText1),r.createElement("span",{className:"myflights-preferences__underlined"},w.preferencesEnabledTextExtensive),r.createElement("span",null,w.preferencesEnabledText2)),r.createElement(r.Fragment,null,O?r.createElement("div",{className:g?"rw-row myflights-preferences__larger":"rw-row"},r.createElement("div",null,r.createElement("span",{className:"myflights-preferences__text"},r.createElement(u.A,{type:"warning",message:w.preferencesSuccess,showCloseButton:!1})))):(0,i.YA)(p,h)&&(0,i.ol)(n)&&r.createElement("div",{className:"myflights-preferences__description"},r.createElement("div",{className:"rw-row rw-row--no-gutter myflights-preferences__subscription"},r.createElement("div",{className:"rw-col--md-8"},r.createElement(s.uh,b({type:"email",required:!0,label:w.emailLabel,inputRef:T("email",{required:w.errorEmailEmpty,validate:{validEmail:s.Bf,validCharacters:s.hK}})},(0,s.xi)({inputName:"email",formState:S,errors:A}))))),r.createElement("button",{className:L?"rw-button myflights_preferences__toggle-button open":"rw-button myflights_preferences__toggle-button",onClick:()=>D(!L)},r.createElement("span",null,w.preferencesToggleText),r.createElement(l.A,{icon:"arrow-down",className:"rw-icon--md"})))),!O&&L&&r.createElement(r.Fragment,null,r.createElement("div",{className:"rw-row rw-row--no-gutter"},r.createElement("div",{className:"rw-col--sm-6"},I&&r.createElement(u.A,{type:"error",className:"myflights-preferences__error",message:w.errorRunwayNotification})),r.createElement("div",{className:"rw-col--sm-6 myflights-preferences__topics"},r.createElement("p",{className:"myflights-preferences__subheading"},w.preferencesTopicsText),r.createElement("p",{className:"rw-label"},w.preferencesTopicsLabel),M.map(({text:e,isActive:t})=>r.createElement("button",{className:"rw-filter-bubble","aria-pressed":t,key:e,onClick:()=>(e=>{const t=M.map(t=>t.text===e?{...t,isActive:!t.isActive}:t);R(t)})(e)},e))))),j&&r.createElement(v(),{isOpen:j,onRequestClose:W,contentLabel:"Terms of use",className:"ReactModal__modal",overlayClassName:"ReactModal__backdrop"},r.createElement(c.A,{closeModal:W,modalComponent:r.createElement(a.A,{nodeId:d.C.MYFLIGHTS_TOU_NID})}))),!O&&(0,i.YA)(p,h)&&(0,i.ol)(n)&&r.createElement(r.Fragment,null,r.createElement("hr",{className:"myflights-preferences__hr"}),r.createElement("div",{className:"myflights-preferences__consent-checkbox"},r.createElement(s.st,b({label:r.createElement(r.Fragment,null,w.preferencesConsentLabel," ",r.createElement("span",{className:"myflights-preferences__terms-link",role:"button",onClick:()=>{W(),N("isConsent",!$("isConsent"))},onKeyDown:e=>" "===e.key&&W(),tabIndex:0},w.preferencesConsentLabelLink)," ",w.preferencesConsentLabelMyFlight),inputRef:T("isConsent",{required:w.preferencesConsentRequiredText})},(0,s.xi)({inputName:"isConsent",formState:S,errors:A}))),r.createElement(s.Ze,{onChange:(e,t)=>
2{k(t,C)}})),r.createElement("button",{className:"rw-button rw-button--primary myflights-preferences__button",onClick:x(t=>(async t=>{const r=M.filter(e=>!0===e.isActive).map(e=>e.id);try{var i;if("error"===(await(0,o.subscribeToPreferences)({scheduledTime:n,flight_id:e,email:t.email,language_code:null!==(i=d.C.ACTIVE_LANGUAGE)&&void 0!==i?i:"en",userPreferences:r.length?r:[]})).body.status)return void V(!0);P(!0)}catch(e){console.log(e),V(!0)}const a=JSON.parse(localStorage.getItem("flights"))||[],s={flightNumbers:F,date:n},l=[...a.filter(e=>e.flightNumbers!==s.flightNumbers||e.date!==s.date),s];localStorage.setItem("flights",JSON.stringify(l))})(t)),disabled:S.isSubmitting},w.preferencesSubscribeButton)))};E.propTypes={flightId:f().string.isRequired,defaultFlightNumbers:f().string.isRequired,defaultFlightDate:f().string.isRequired,flightStatusCode:f().string.isRequired,flightBeltStatus:f().string.isRequired,flightDetailsOpen:f().bool.isRequired,isMobileOverlay:f().bool};const _=E;f().array.isRequired},9295(e,t,n){"use strict";n.d(t,{A:()=>O});var r=n(6540),i=n(961),o=n(1468),a=n(7353),s=n(3131),l=n(6942),c=n.n(l),u=n(5580),d=n(2890),h=n(3913),m=n(5884),p=n(3972),f=n(5556),g=n.n(f),v=n(7111),y=n(8203),b=n(5926),w=n(7137);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(null,arguments)}function _({menu_icon:e,selectedMenuName:t,selectedMenuUrl:n}){const{isHovered:i,hoverProps:o}=(0,b.M)({onHoverStart:null,onHoverEnd:null,onHoverChange:null});return r.createElement("a",E({},o,{className:"inline-navigation__link-to-parent",href:n}),e&&r.createElement(w.A,{icon:e,color:i?"finnishBlue":"finaviaBlueDark",className:"rw-icon rw-icon--md"}),r.createElement("span",{className:"inline-navigation__link-to-parent__text"},t),r.createElement(w.A,{icon:"arrow-right",color:"finaviaBlueDark",className:"rw-icon rw-icon--sm inline-navigation__link-to-parent__chevron"}))}_.propTypes={selectedMenuName:g().string.isRequired,selectedMenuUrl:g().string,menu_icon:g().string};const T=_;function x({item:e}){var t;const n=(0,v.yl)(null===(t=window)||void 0===t?void 0:t.location.pathname,e.slug);return r.createElement("li",{className:"inline-navigation__column-item"},r.createElement("a",{className:"inline-navigation__column-item__link",href:e.slug,"aria-current":n?"page":null},e.name))}x.propTypes={item:y.Wg.isRequired};const S=x;var N=n(4950);function $({menuItems:e,selectedMenuName:t,selectedMenuUrl:n,menu_icon:i,overlayRef:o,closeMenu:a}){const[s,l]=(0,r.useState)(null);return(0,r.useEffect)(()=>{e&&l((0,v.kU)(e))},[e]),r.createElement("div",{className:c()("inline-navigation__overlay",t&&"inline-navigation__overlay--open"),id:N.JQ,ref:o},r.createElement("div",{className:"inline-navigation__overlay__content"},t&&r.createElement(p.n1,{autoFocus:!0,contain:!0,restoreFocus:!0},r.createElement(T,{selectedMenuName:t,selectedMenuUrl:n,menu_icon:i}),r.createElement("ul",{className:"inline-navigation__columns"},s&&Object.values(s).map(e=>r.createElement("div",{className:"inline-navigation__column",role:"presentation",key:e[0].id},e&&Object.values(e).map(e=>r.createElement(S,{item:e,key:e.id}))))),r.createElement("button",{className:"visually-hidden focusable",onClick:a},d.Lg.clickToCloseNavMenu))))}$.propTypes={menuItems:y.Lt,selectedMenuName:g().string.isRequired,selectedMenuUrl:g().string,menu_icon:g().string,overlayRef:g().shape({current:g().object}).isRequired,closeMenu:g().func.isRequired};const k=$;function A({menuItem:e}){return r.createElement("a",{className:"inline-navigation__list-item__home",role:"menuitem",href:e.slug,"aria-label":e.name},r.createElement(w.A,{icon:"house",className:"rw-icon--md","aria-hidden":!0}))}
2A.propTypes={menuItem:y.Wg.isRequired};const C=A;var M=n(7835);function R({isAriaCurrent:e,menuItem:t,toggleMenu:n,isActive:i}){return r.createElement("li",{className:"inline-navigation__list-item",role:"none"},(0,v.u9)(t)?r.createElement(C,{menuItem:t}):t.children?r.createElement(M.A,{className:"inline-navigation__list-item__button",role:"menuitem",onClick:()=>{n(i?void 0:t)},"aria-haspopup":!0,"aria-controls":N.JQ,"aria-expanded":i,"aria-current":e?"page":null},r.createElement("span",{className:"inline-navigation__list-item__text"},t.name)):r.createElement("a",{className:"inline-navigation__list-item__link",role:"menuitem",href:t.slug,"aria-current":e?"page":null},r.createElement("span",{className:"inline-navigation__list-item__text"},t.name)))}R.propTypes={menuItem:y.Wg.isRequired,toggleMenu:g().func.isRequired,isActive:g().bool.isRequired,isAriaCurrent:g().bool.isRequired};const F=R,L=function(){const{airportContext:e,activeHeaderIcon:t}=(0,o.d4)(e=>e.uiState),n=(0,o.wA)(),{navData:i,navTheme:a}=(0,m.t)(),[l,p]=(0,r.useState)(""),[f,g]=(0,r.useState)(""),[y,b]=(0,r.useState)(null),[w,E]=(0,r.useState)(null),_=(0,r.useRef)(null),T=(0,h.ZC)(t);(0,r.useEffect)(()=>{"inline-navigation"===T&&"inline-navigation"!==t&&l&&S()},[t]),(0,h.ML)("keydown",e=>{"Escape"===e.key&&x()});const x=e=>{e?(p(e.name),g(e.slug),b(e.children),E(e.menu_icon),"inline-navigation"!==t&&n((0,s.setActiveHeaderIcon)("inline-navigation"))):(n((0,s.setActiveHeaderIcon)("")),S())},S=()=>{p(""),g(""),b(null)},N=Object.values(i),$=N.findIndex(e=>{var t;return(0,v.yl)(null===(t=window)||void 0===t?void 0:t.location.pathname,e.slug)});return r.createElement("nav",{className:c()("inline-navigation",`inline-navigation--${a}`),role:"navigation","aria-label":d.Lg.navigationAriaLabel},r.createElement("ul",{className:"inline-navigation__list",role:"menu"},!u.G&&(null==e?void 0:e.code)&&r.createElement(C,{menuItem:{id:e.code,slug:e.url,name:e.name}}),N.map((e,n)=>{const i=l===e.name,o=!("inline-navigation"===t&&!i)&&$===n;return r.createElement(F,{isAriaCurrent:o,menuItem:e,toggleMenu:x,isActive:i,key:e.id})})),r.createElement(k,{menuItems:y,selectedMenuName:l,selectedMenuUrl:f,menu_icon:w,overlayRef:_,closeMenu:()=>x()}))},D=document.getElementById("inline-navigation")||document.createElement("div");function O(e){return(0,i.createPortal)(r.createElement(o.Kq,{store:a.Ay},r.createElement(L,e)),D)}},4950(e,t,n){"use strict";n.d(t,{JQ:()=>ia,W4:()=>ra,A7:()=>na,Ay:()=>aa});var r=n(6540),i=n(6231),o=n(5919),a=n(5580),s=n(5884),l=n(6942),c=n.n(l),u=n(1468),d=n(8221),h=n.n(d),m=n(3131),p=n(2890),f=n(3913),g=n(7835),v=n(7137),y=n(5556),b=n.n(y);const w=({isOpen:e,children:t,id:n,distanceFromTop:i})=>{const o=(0,r.useRef)(),a=(0,f.ZC)(e);return(0,r.useEffect)(()=>{e&&!a&&o.current&&(o.current.scrollTop=0)},[e]),r.createElement("div",{className:c()("mobile-navigation-overlay",{"mobile-navigation-overlay--open":e}),id:n,style:{top:`${i}px`}},r.createElement("div",{className:"mobile-navigation-overlay__container",ref:o},r.createElement("div",{className:"mobile-navigation-overlay__content"},t)))};w.propTypes={isOpen:b().bool.isRequired,id:b().string.isRequired,children:b().oneOfType([b().node,b().arrayOf(b().node)]).isRequired,distanceFromTop:b().number};const E=w,_={current:null},T={current:!1},x="undefined"!=typeof window;function S(){if(T.current=!0,x)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_.current=e.matches;e.addEventListener("change",t),t()}else _.current=!1}var N=n(4848);const $=(0,r.createContext)({strict:!1}),k=e=>1e3*e,A=e=>e/1e3,C=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),M=e=>/^0[^.\s]+$/u.test(e);class R{constructor(){this.subscriptions=[]}add(e){var t,n;return t=this.subscriptions,n=e,-1===t.indexOf(n)&&t.push(n),()=>function(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const F=e=>180*e/Math.PI,L=e=>{const t=F(Math.atan2(e[1],e[0]));return O(t)},D={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:L,rotateZ:L,skewX:e=>F(Math.atan(e[1])),skewY:e=>F(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},O=e=>((e%=360)<0&&(e+=360),e),P=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),I=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),V={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:P,scaleY:I,scale:e=>(P(e)+I(e))/2,rotateX:e=>O(F(Math.atan2(e[6],e[5]))),rotateY:e=>O(F(Math.atan2(-e[2],e[0]))),rotateZ:L,rotate:L,skewX:e=>F(Math.atan(e[4])),skewY:e=>F(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function j(e){return e.includes("scale")?1:0}function q(e,t){if(!e||"none"===e)return j(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=V,i=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=D,i=t}if(!i)return j(t);const o=r[t],a=i[1].split(",").map(B);return"function"==typeof o?o(a):a[o]}function B(e){return parseFloat(e.trim())}const W=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],H=(()=>new Set(W))(),K=(e,t,n)=>n>t?t:n<e?e:n,Y={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},U={...Y,transform:e=>K(0,1,e)},z={...Y,default:1},G=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}
2),X=G("deg"),Z=G("%"),J=G("px"),Q=G("vh"),ee=G("vw"),te=(()=>({...Z,parse:e=>Z.parse(e)/100,transform:e=>Z.transform(100*e)}))(),ne=e=>e===Y||e===J,re=new Set(["x","y","z"]),ie=W.filter(e=>!re.has(e)),oe={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return"border-box"===r?i:i-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})=>q(t,"x"),y:(e,{transform:t})=>q(t,"y")};oe.translateX=oe.x,oe.translateY=oe.y;const ae=e=>e,se={},le=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ce={value:null,addProjectionMetrics:null};function ue(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=le.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(u.schedule(t),e()),l++,t(s)}const u={schedule:(e,t=!1,o=!1)=>{const s=o&&i?n:r;return t&&a.add(e),s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i)return void(o=!0);i=!0;const a=n;n=r,r=a,n.forEach(c),t&&ce.value&&ce.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,u.process(e))}};return u}(o,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:m,postRender:p}=a,f=()=>{const o=se.useManualTiming,a=o?i.timestamp:performance.now();n=!1,o||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:le.reduce((t,o)=>{const s=a[o];return t[o]=(t,o=!1,a=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(f)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<le.length;t++)a[le[t]].cancel(e)},state:i,steps:a}}const{schedule:de,cancel:he,state:me,steps:pe}=ue("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ae,!0),fe=new Set;let ge=!1,ve=!1,ye=!1;function be(){if(ve){const e=Array.from(fe).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return ie.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const 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)})}ve=!1,ge=!1,fe.forEach(e=>e.complete(ye)),fe.clear()}function we(){fe.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ve=!0)})}class Ee{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(fe.add(this),ge||(ge=!0,de.read(we),de.resolveKeyframes(be))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),fe.delete(this)}cancel(){"scheduled"===this.state&&(fe.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function _e(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}function Te(e){let t;return()=>(void 0===t&&(t=e()),t)}const xe={};function Se(e,t){const n=Te(e);return()=>xe[t]??n()}const Ne=Se(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),$e=e=>null!==e;function ke(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter($e),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}class Ae{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)}}const Ce={layout:0,mainThread:0,waapi:0},Me=e=>Array.isArray(e)&&"number"==typeof e[0],Re=Se(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),Fe=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Le=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,De={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Le([0,.65,.55,1]),circOut:Le([.55,0,1,.45]),backIn:Le([.31,.01,.66,-.59]),backOut:Le([.33,1.53,.69,.99])};function Oe(e,t){return e?"function"==typeof e?Re()?Fe(e,t):"ease-out":Me(e)?Le(e):Array.isArray(e)?e.map(e=>Oe(e,t)||De.easeOut):De[e]:void 0}function Pe(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Oe(s,i);Array.isArray(d)&&(u.easing=d),ce.value&&Ce.waapi++;const h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};c&&(h.pseudoElement=c);const m=e.animate(u,h);return ce.value&&m.finished.finally(()=>{Ce.waapi--}),m}function Ie(e){return"function"==typeof e&&"applyToOptions"in e}class Ve extends Ae{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(i),this.allowFlatten=o,this.options=e,e.type;const l=function({type:e,...t}){return Ie(e)&&Re()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=Pe(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const e=ke(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),_e(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;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(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&&Ne()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),ae):r(this)}}const je=new Set(["opacity","clipPath","filter","transform"]),{schedule:qe,cancel:Be}=ue(queueMicrotask,!1);let We;function He(){We=void 0}const Ke={now:()=>(void 0===We&&Ke.set(me.isProcessing||se.useManualTiming?me.timestamp:performance.now()),We),set:e=>{We=e,queueMicrotask(He)}},Ye=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ue(e,t){return t?e*(1e3/t):0}const ze={current:void 0};class Ge{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=Ke.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(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Ke.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}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 R);const n=this.events[e].add(t);return"change"===e?()=>{n(),de.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const 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)}
2setWithVelocity(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 ze.current&&ze.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Ke.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ue(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 Xe(e,t){return new Ge(e,t)}const Ze=e=>Math.round(1e5*e)/1e5,Je=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Qe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,et=(e,t)=>n=>Boolean("string"==typeof n&&Qe.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),tt=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,o,a,s]=r.match(Je);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},nt={...Y,transform:e=>Math.round((e=>K(0,255,e))(e))},rt={test:et("rgb","red"),parse:tt("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+nt.transform(e)+", "+nt.transform(t)+", "+nt.transform(n)+", "+Ze(U.transform(r))+")"},it={test:et("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:rt.transform},ot={test:et("hsl","hue"),parse:tt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Z.transform(Ze(t))+", "+Z.transform(Ze(n))+", "+Ze(U.transform(r))+")"},at={test:e=>rt.test(e)||it.test(e)||ot.test(e),parse:e=>rt.test(e)?rt.parse(e):ot.test(e)?ot.parse(e):it.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?rt.transform(e):ot.transform(e),getAnimatableNone:e=>{const t=at.parse(e);return t.alpha=0,at.transform(t)}},st=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,lt="number",ct="color",ut=/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 dt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(ut,e=>(at.test(e)?(r.color.push(o),i.push(ct),n.push(at.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(lt),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function ht({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==r[o]){const e=t[o];i+=e===lt?Ze(r[o]):e===ct?at.transform(r[o]):r[o]}return i}}const mt={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(Je)?.length||0)+(e.match(st)?.length||0)>0},parse:function(e){return dt(e).values},createTransformer:function(e){return ht(dt(e))},getAnimatableNone:function(e){const t=dt(e);return ht(t)(t.values.map((e,n)=>((e,t)=>{return"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof(n=e)?0:at.test(n)?at.getAnimatableNone(n):n;var n})(e,t.split[n])))}},pt=new Set(["brightness","contrast","saturate","opacity"]);function ft(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Je)||[];if(!r)return e;const i=n.replace(r,"");let o=pt.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const gt=/\b([a-z-]*)\(.*?\)/gu,vt={...mt,getAnimatableNone:e=>{const t=e.match(gt);return t?t.map(ft).join(" "):e}},yt={...mt,getAnimatableNone:e=>{const t=mt.parse(e);return mt.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},bt={...Y,transform:Math.round},wt={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:X,skewX:X,skewY:X,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:U,originX:te,originY:te,originZ:J,zIndex:bt,fillOpacity:U,strokeOpacity:U,numOctaves:bt},Et={...wt,color:at,backgroundColor:at,outlineColor:at,fill:at,stroke:at,borderColor:at,borderTopColor:at,borderRightColor:at,borderBottomColor:at,borderLeftColor:at,filter:vt,WebkitFilter:vt,mask:yt,WebkitMask:yt},_t=e=>Et[e],Tt=new Set([vt,yt]);function xt(e,t){let n=_t(e);return Tt.has(n)||(n=mt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const St=e=>t=>t.test(e),Nt=[Y,J,Z,X,ee,Q,{test:e=>"auto"===e,parse:e=>e}],$t=e=>Nt.find(St(e)),kt=[...Nt,at,mt],At=e=>Boolean(e&&e.getVelocity),Ct=new WeakMap;function Mt(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function Rt(e){return"string"==typeof e||Array.isArray(e)}const Ft=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lt=["initial",...Ft];function Dt(e){return Mt(e.animate)||Lt.some(t=>Rt(e[t]))}function Ot(e){return Boolean(Dt(e)||e.variants)}function Pt(e){const t=[{},{}];
vendor: 4,512 bytes, line 2
2return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function It(e,t,n,r){if("function"==typeof t){const[i,o]=Pt(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,o]=Pt(r);t=t(void 0!==n?n:e.custom,i,o)}return t}const Vt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jt={};function qt(e){jt=e}class Bt{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:a},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=Ee,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=()=>{const e=Ke.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,de.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Dt(t),this.isVariantNode=Ot(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&At(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(const e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ct.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:(T.current||S(),this.shouldReduceMotion=_.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),he(this.notifyUpdate),he(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const 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){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&je.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:r,times:i,ease:o,duration:a}=t.accelerate,s=new Ve({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:k(a)}),l=n(s);return void this.valueSubscriptions.set(e,()=>{l(),s.cancel()})}const n=H.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&de.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}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 jt){const t=jt[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];
2t.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):{x:{min:0,max:0},y:{min:0,max:0}}}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<Vt.length;t++){const n=Vt[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],o=n[r];if(At(i))e.addValue(r,i);else if(At(o))e.addValue(r,Xe(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,Xe(void 0!==t?t:i,{owner:e}))}}for(const 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){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const 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);const 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=Xe(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];var r;return null!=n&&("string"==typeof n&&(C(n)||M(n))?n=parseFloat(n):(r=n,!kt.find(St(r))&&mt.test(t)&&(n=xt(e,t))),this.setBaseTarget(e,At(n)?n.get():n)),At(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const r=It(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||At(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new R),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){qe.render(this.render)}}const Wt={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"]};let Ht=!1;function Kt(){return function(){if(Ht)return;const e={};for(const t in Wt)e[t]={isEnabled:e=>Wt[t].some(t=>!!e[t])};qt(e),Ht=!0}(),jt}function Yt(e){const t=Kt();for(const n in e)t[n]={...t[n],...e[n]};qt(t)}function Ut({children:e,features:t,strict:n=!1}){const[,i]=(0,r.useState)(!zt(t)),o=(0,r.useRef)(void 0);if(!zt(t)){const{renderer:e,...n}=t;o.current=e,Yt(n)}return(0,r.useEffect)(()=>{zt(t)&&t().then(({renderer:e,...t})=>{Yt(t),o.current=e,i(!0)})},[]),(0,N.jsx)($.Provider,{value:{renderer:o.current,strict:n},children:e})}function zt(e){return"function"==typeof e}class Gt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Xt(e,t,n){const r=e.getProps();return It(r,t,void 0!==n?n:r.custom,e)}function Zt(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Jt(e,t){const n=e?.[t]??e?.default??e;return n!==e?Zt(n,e):n}const Qt=new Set(["width","height","top","left","right","bottom",...W]),en=e=>Array.isArray(e);function tn(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xe(n))}function nn(e){return en(e)?e[e.length-1]||0:e}function rn(e,t){const n=e.getValue("willChange");if(r=n,Boolean(At(r)&&r.add))return n.add(t);if(!n&&se.WillChange){const n=new se.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function on(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const an="data-"+on("framerAppearId");function sn(e){return e.props[an]}const ln=(e,t)=>n=>t(e(n)),cn=(...e)=>e.reduce(ln),un=e=>t=>"string"==typeof t&&t.startsWith(e),dn=un("--"),hn=un("var(--"),mn=e=>!!hn(e)&&pn.test(e.split("/*")[0].trim()),pn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function fn(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}function gn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vn(e,t){return n=>n>0?t:e}const yn=(e,t,n)=>e+(t-e)*n,bn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},wn=[it,rt,ot];function En(e){const t=(n=e,wn.find(e=>e.test(n)));var n;if(Boolean(t),!Boolean(t))return!1;let r=t.parse(e);return t===ot&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=gn(s,r,e+1/3),o=gn(s,r,e),a=gn(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(r)),r}const _n=(e,t)=>{const n=En(e),r=En(t);if(!n||!r)return vn(e,t);const i={...n};return e=>(i.red=bn(n.red,r.red,e),i.green=bn(n.green,r.green,e),i.blue=bn(n.blue,r.blue,e),i.alpha=yn(n.alpha,r.alpha,e),rt.transform(i))},Tn=new Set(["none","hidden"]);function xn(e,t){return n=>yn(e,t,n)}
2function Sn(e){return"number"==typeof e?xn:"string"==typeof e?mn(e)?vn:at.test(e)?_n:kn:Array.isArray(e)?Nn:"object"==typeof e?at.test(e)?_n:$n:vn}function Nn(e,t){const n=[...e],r=n.length,i=e.map((e,n)=>Sn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function $n(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Sn(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const kn=(e,t)=>{const n=mt.createTransformer(t),r=dt(e),i=dt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Tn.has(e)&&!i.values.length||Tn.has(t)&&!r.values.length?function(e,t){return Tn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):cn(Nn(function(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n):vn(e,t)};function An(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?yn(e,t,n):Sn(e)(e,t)}const Cn=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>de.update(t,e),stop:()=>he(t),now:()=>me.isProcessing?me.timestamp:Ke.now()}},Mn=2e4;function Rn(e){let t=0,n=e.next(t);for(;!n.done&&t<Mn;)t+=50,n=e.next(t);return t>=Mn?1/0:t}const Fn=.01,Ln=2,Dn=.005,On=.5;function Pn(e,t){return e*Math.sqrt(1-t*t)}const In=["duration","bounce"],Vn=["stiffness","damping","mass"];function jn(e,t){return t.some(t=>void 0!==e[t])}function qn(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!jn(e,Vn)&&jn(e,In))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,o=2*K(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:o}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;k(10);let a=1-t;a=K(.05,1,a),e=K(.01,10,A(e)),a<1?(i=t=>{const r=t*a,i=r*e;return.001-(r-n)/Pn(t,a)*Math.exp(-i)},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Pn(Math.pow(t,2),a);return(.001-i(t)>0?-1:1)*((o-s)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=k(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-A(n.velocity||0)}),p=h||0,f=c/(2*Math.sqrt(l*u)),g=a-o,v=A(Math.sqrt(l/u)),y=Math.abs(g)<5;let b,w,E,_,T,x;if(r||(r=y?Fn:Ln),i||(i=y?Dn:On),f<1)E=Pn(v,f),_=(p+f*v*g)/E,b=e=>{const t=Math.exp(-f*v*e);return a-t*(_*Math.sin(E*e)+g*Math.cos(E*e))},T=f*v*_+g*E,x=f*v*g-_*E,w=e=>Math.exp(-f*v*e)*(T*Math.sin(E*e)+x*Math.cos(E*e));else if(1===f){b=e=>a-Math.exp(-v*e)*(g+(p+v*g)*e);const e=p+v*g;w=t=>Math.exp(-v*t)*(v*e*t-p)}else{const e=v*Math.sqrt(f*f-1);b=t=>{const n=Math.exp(-f*v*t),r=Math.min(e*t,300);return a-n*((p+f*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};const t=(p+f*v*g)/e,n=f*v*t-g*e,r=f*v*g-t*e;w=t=>{const i=Math.exp(-f*v*t),o=Math.min(e*t,300);return i*(n*Math.sinh(o)+r*Math.cosh(o))}}const S={calculatedDuration:m&&d||null,velocity:e=>k(w(e)),next:e=>{if(!m&&f<1){const t=Math.exp(-f*v*e),n=Math.sin(E*e),o=Math.cos(E*e),l=a-t*(_*n+g*o),c=k(t*(T*n+x*o));return s.done=Math.abs(c)<=r&&Math.abs(a-l)<=i,s.value=s.done?a:l,s}const t=b(e);if(m)s.done=e>=d;else{const n=k(w(e));s.done=Math.abs(n)<=r&&Math.abs(a-t)<=i}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(Rn(S),Mn),t=Fe(t=>S.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return S}function Bn(e,t,n){const r=Math.max(t-5,0);return Ue(n-e(r),t-r)}function Wn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const f=d+p,g=void 0===a?f:a(f);g!==f&&(p=g-d);const v=e=>-p*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let w,E;const _=e=>{var t;t=h.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,E=qn({keyframes:[h.value,m(h.value)],velocity:Bn(y,e,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return E||void 0!==w||(t=!0,b(e),_(e)),void 0!==w&&e>=w?E.next(e-w):(!t&&b(e),h)}}}qn.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Rn(r),Mn);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:A(i)}}(e,100,qn);return e.ease=t.ease,e.duration=k(t.duration),e.type="keyframes",e};const Hn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Kn(e,t,n,r){if(e===t&&n===r)return ae;return i=>0===i||1===i?i:Hn(function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=Hn(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}const Yn=Kn(.42,0,1,1),Un=Kn(0,0,.58,1),zn=Kn(.42,0,.58,1),Gn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xn=e=>t=>1-e(1-t),Zn=Kn(.33,1.53,.69,.99),Jn=Xn(Zn),Qn=Gn(Jn),er=e=>e>=1?1:(e*=2)<1?.5*Jn(e):.5*(2-Math.pow(2,-10*(e-1))),tr=e=>1-Math.sin(Math.acos(e)),nr=Xn(tr),rr=Gn(tr),ir={linear:ae,easeIn:Yn,easeInOut:zn,easeOut:Un,circIn:tr,circInOut:rr,circOut:nr,backIn:Jn,backInOut:Qn,backOut:Zn,anticipate:er},or=e=>{if(Me(e)){e.length;const[t,n,r,i]=e;return Kn(t,n,r,i)}return"string"==typeof e?ir[e]:e}
2,ar=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};function sr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(or):or(r),o={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ar(0,t,r);e.push(yn(n,1,i))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(t.length,1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],i=n||se.mix||An,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||ae:t;o=cn(e,o)}r.push(o)}return r}(t,r,i),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=ar(e[r],e[r+1],n);return s[r](i)};return n?t=>c(K(e[0],e[o-1],t)):c}(a,t,{ease:Array.isArray(i)?i:(l=t,c=i,l.map(()=>c||zn).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}const lr={decay:Wn,inertia:Wn,tween:sr,keyframes:sr,spring:qn};function cr(e){"string"==typeof e.type&&(e.type=lr[e.type])}const ur=e=>e/100;class dr extends Ae{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=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==Ke.now()&&this.tick(Ke.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},Ce.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;cr(e);const{type:t=sr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e;let{keyframes:a}=e;const s=t||sr;s!==sr&&"number"!=typeof a[0]&&(this.mixKeyframes=cn(ur,An(a[0],a[1])),a=[0,100]);const l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=Rn(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y,b=this.currentTime,w=n;if(u){const e=Math.min(this.currentTime,r)/a;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1),Boolean(t%2)&&("reverse"===d?(n=1-n,h&&(n-=h/a)):"mirror"===d&&(w=o)),b=K(0,1,n)*a}v?(this.delayState.value=c[0],y=this.delayState):y=w.next(b),i&&!v&&(y.value=i(y.value));let{done:E}=y;v||null===s||(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return _&&m!==Wn&&(y.value=ke(c,this.options,f,this.speed)),p&&p(y.value),_&&this.finish(),y}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(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(){const e=this.currentTime;return e<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(e):Bn(e=>this.generator.next(e).value,e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Ke.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Cn,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const 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(Ke.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,Ce.mainThread--}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)}}const hr={anticipate:er,backInOut:Qn,circInOut:rr};class mr extends Ve{constructor(e){var t;"string"==typeof(t=e).ease&&t.ease in hr&&(t.ease=hr[t.ease]),cr(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const a=new dr({...o,autoplay:!1}),s=Math.max(10,Ke.now()-this.startTime),l=K(0,10,s-10),c=a.sample(s).value,{name:u}=this.options;i&&u&&_e(i,u,c),t.setWithVelocity(a.sample(Math.max(0,s-l)).value,c,l),a.stop()}}const pr=(e,t)=>
2!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!mt.test(e)&&"0"!==e||e.startsWith("url(")));function fr(e){e.duration=0,e.type="keyframes"}const gr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,vr=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),yr=Te(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class br extends Ae{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ke.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:c,...u},h=c?.KeyframeResolver||Ee;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Ke.now();let u=!0;(function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],a=pr(i,t),s=pr(o,t);return!(!a||!s)&&(function(e){const 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||Ie(n))&&r)})(e,i,o,a)||(u=!1,!se.instantAnimations&&s||c?.(ke(e,n,t)),e[0]=e[e.length-1],fr(n),n.repeat=0);const d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},h=u&&!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return yr()&&n&&(je.has(n)||vr.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&gr.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!u)&&!c&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(d),m=d.motionValue?.owner?.current;let p;if(h)try{p=new mr({...d,element:m})}catch{p=new dr(d)}else p=new dr(d);p.finished.then(()=>{this.notifyFinished()}).catch(ae),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}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(),ye=!0,we(),be(),ye=!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()}}const wr={type:"spring",stiffness:500,damping:25,restSpeed:10},Er={type:"keyframes",duration:.8},_r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tr=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),xr=(e,t,n,r={},i,o)=>a=>{const s=Jt(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=k(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};(function(e){for(const t in e)if(!Tr.has(t))return!0;return!1})(s)||Object.assign(u,((e,{keyframes:t})=>t.length>2?Er:H.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:wr:_r)(e,u)),u.duration&&(u.duration=k(u.duration)),u.repeatDelay&&(u.repeatDelay=k(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(fr(u),0===u.delay&&(d=!0)),(se.instantAnimations||se.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,fr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!o&&void 0!==t.get()){const e=ke(u.keyframes,s);if(void 0!==e)return void de.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new dr(u):new br(u)};function Sr({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Nr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();o=o?Zt(o,l):l;const c=o?.reduceMotion;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const t in s){const r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||d&&Sr(d,t))continue;const a={delay:n,...Jt(o||{},t)},l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!a.velocity){de.update(()=>r.set(i));continue}let h=!1;if(window.MotionHandoffAnimation){const n=sn(e);if(n){const e=window.MotionHandoffAnimation(n,t,de);null!==e&&(a.startTime=e,h=!0)}}rn(e,t);const m=c??e.shouldReduceMotion;r.start(xr(t,r,i,m&&Qt.has(t)?{type:!1}:a,e,h));const p=r.animation;p&&u.push(p)}if(a){const t=()=>de.update(()=>{a&&function(e,t){const n=Xt(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const t in o)tn(e,t,nn(o[t]))}(e,a)});u.length?Promise.all(u).then(t):t()}return u}function $r(e,t,n,r=0,i=1){const o=Array.from(e).sort((e,t)=>
vendor: 5,556 bytes, line 2
2e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}function kr(e,t,n={}){const r=Xt(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Nr(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=0,o=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(kr(l,t,{...a,delay:n+("function"==typeof r?0:r)+$r(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,o,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}return Promise.all([o(),a(n.delay)])}const Ar=Lt.length;function Cr(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Cr(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Ar;n++){const r=Lt[n],i=e.props[r];(Rt(i)||!1===i)&&(t[r]=i)}return t}function Mr(e,t){if(!Array.isArray(t))return!1;const 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}const Rr=[...Ft].reverse(),Fr=Ft.length;function Lr(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>kr(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=kr(e,t,n);else{const i="function"==typeof t?Xt(e,t,n.custom):t;r=Promise.all(Nr(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=Pr(),r=!0,i=!1;const o=t=>(n,r)=>{const i=Xt(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(a){const{props:s}=e,l=Cr(e.parent)||{},c=[],u=new Set;let d={},h=1/0;for(let t=0;t<Fr;t++){const m=Rr[t],p=n[m],f=void 0!==s[m]?s[m]:l[m],g=Rt(f),v=m===a?p.isActive:null;!1===v&&(h=t);let y=f===l[m]&&f!==s[m]&&g;if(y&&(r||i)&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...d},!p.isActive&&null===v||!f&&!p.prevProp||Mt(f)||"boolean"==typeof f)continue;if("exit"===m&&p.isActive&&!0!==v){p.prevResolvedValues&&(d={...d,...p.prevResolvedValues});continue}const b=Dr(p.prevProp,f);let w=b||m===a&&p.isActive&&!y&&g||t>h&&g,E=!1;const _=Array.isArray(f)?f:[f];let T=_.reduce(o(m),{});!1===v&&(T={});const{prevResolvedValues:x={}}=p,S={...x,...T},N=t=>{w=!0,u.has(t)&&(E=!0,u.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=T[e],n=x[e];if(d.hasOwnProperty(e))continue;let r=!1;r=en(t)&&en(n)?!Mr(t,n):t!==n,r?null!=t?N(e):u.add(e):void 0!==t&&u.has(e)?N(e):p.protectedKeys[e]=!0}p.prevProp=f,p.prevResolvedValues=T,p.isActive&&(d={...d,...T}),(r||i)&&e.blockInitialAnimation&&(w=!1);const $=y&&b;w&&(!$||E)&&c.push(..._.map(t=>{const n={type:m};if("string"==typeof t&&(r||i)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,i=Xt(r,t);if(r.enteringChildren&&i){const{delayChildren:t}=i.transition||{};n.delay=$r(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){const t={};if("boolean"!=typeof s.initial){const n=Xt(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=Boolean(c.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(m=!1),r=!1,i=!1,m?t(c):Promise.resolve()}return{animateChanges:a,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;const i=a(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Pr(),i=!0}}}function Dr(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Mr(t,e)}function Or(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pr(){return{animate:Or(!0),whileInView:Or(),whileHover:Or(),whileTap:Or(),whileDrag:Or(),whileFocus:Or(),exit:Or()}}let Ir=0;const Vr={animation:{Feature:class extends Gt{constructor(e){super(e),e.animationState||(e.animationState=Lr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Mt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{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 Gt{constructor(){super(...arguments),this.id=Ir++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{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){const{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){const n=Xt(this.node,e,t);if(n){const{transition:e,transitionEnd:t,...r}=n;for(const 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);return void(this.isExitComplete=!1)}const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
2{this.isExitComplete=!0,t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function jr(e,t){const n=function(e){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function qr(e){return{point:{x:e.pageX,y:e.pageY}}}function Br(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&de.postRender(()=>i(t,qr(t)))}function Wr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Hr(e){return"object"==typeof(t=e)&&null!==t&&"offsetHeight"in e&&!("ownerSVGElement"in e);var t}const Kr=(e,t)=>!!t&&(e===t||Kr(e,t.parentElement)),Yr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);new Set(["INPUT","SELECT","TEXTAREA"]);const Ur=new WeakSet;function zr(e){return t=>{"Enter"===t.key&&e(t)}}function Gr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Xr(e){return(e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary)(e)&&!0}const Zr=new WeakSet;function Jr(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&de.postRender(()=>i(t,qr(t)))}const Qr=new WeakMap,ei=new WeakMap,ti=e=>{const t=Qr.get(e.target);t&&t(e)},ni=e=>{e.forEach(ti)};const ri={some:0,all:1},ii={inView:{Feature:class extends Gt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ri[r]};this.stopObserver=function(e,t,n){const r=function({root:e,...t}){const n=e||document;ei.has(n)||ei.set(n,{});const r=ei.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ni,{root:e,...t})),r[i]}(t);return Qr.set(e,n),r.observe(e),()=>{Qr.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{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 Gt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){const[r,i,o]=jr(e,n),a=e=>{const r=e.currentTarget;if(!Xr(e))return;if(Zr.has(e))return;Ur.add(r),n.stopPropagation&&Zr.add(e);const o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Ur.has(r)&&Ur.delete(r),Xr(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||Kr(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),Hr(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=zr(()=>{if(Ur.has(n))return;Gr(n,"down");const e=zr(()=>{Gr(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Gr(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),t=e,Yr.has(t.tagName)||!0===t.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(Jr(this.node,t,"Start"),(e,{success:t})=>Jr(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:!1===n?.tap})}unmount(){}}},focus:{Feature:class extends Gt{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=cn(Wr(this.node.current,"focus",()=>this.onFocus()),Wr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Gt{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,o]=jr(e,n);
2return r.forEach(e=>{let n,r=!1,o=!1;const a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),o&&(o=!1,a(e))},l=e=>{"touch"!==e.pointerType&&(r?o=!0:a(e))};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType)return;o=!1;const a=t(e,r);"function"==typeof a&&(n=a,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),o}(e,(e,t)=>(Br(this.node,t,"Start"),e=>Br(this.node,e,"End"))))}unmount(){}}}},oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ai(e,t,n=1){const[r,i]=function(e){const t=oi.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return C(e)?parseFloat(e):e}return mn(i)?ai(i,t,n+1):i}function si(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||M(e)}const li=new Set(["auto","none","0"]);class ci extends Ee{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{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&&(r=r.trim(),mn(r))){const i=ai(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Qt.has(n)||2!==e.length)return;const[r,i]=e,o=$t(r),a=$t(i);if(fn(r)!==fn(i)&&oe[n])this.needsMeasurement=!0;else if(o!==a)if(ne(o)&&ne(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else oe[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||si(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!li.has(t)&&dt(t).values.length&&(r=e[i]),i++}if(r&&n)for(const i of t)e[i]=xt(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oe[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const i=n.length-1,o=n[i];n[i]=oe[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 4,017 bytes, line 2
2h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}class ui extends Bt{constructor(){super(...arguments),this.KeyframeResolver=ci}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const 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);const{children:e}=this.props;At(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}const di=(e,t)=>t&&"number"==typeof e?t.transform(e):e,hi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mi=W.length;function pi(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(H.has(e))a=!0;else if(dn(e))i[e]=n;else{const t=di(n,wt[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<mi;o++){const a=W[o],s=e[a];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===(a.startsWith("scale")?1:0);else{const e=parseFloat(s);l=a.startsWith("scale")?1===e:0===e}if(!l||n){const e=di(s,wt[a]);l||(i=!1,r+=`${hi[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}const fi={offset:"stroke-dashoffset",array:"stroke-dasharray"},gi={offset:"strokeDashoffset",array:"strokeDasharray"},vi=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yi(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,c,u){if(pi(e,s,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const e of vi)void 0!==d[e]&&(h[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!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?fi:gi;e[o.offset]=""+-r,e[o.array]=`${t} ${n}`}(d,i,o,a,!1)}const bi=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"]),wi=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ei(e,{style:t,vars:n},r,i){const o=e.style;let a;for(a in t)o[a]=t[a];for(a in i?.applyProjectionStyles(o,r),n)o.setProperty(a,n[a])}function _i(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ti={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!J.test(e))return e;e=parseFloat(e)}return`${_i(e,t.target.x)}% ${_i(e,t.target.y)}%`}},xi={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=mt.parse(e);if(i.length>5)return r;const o=mt.createTransformer(e),a="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const c=yn(s,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=c),"number"==typeof i[3+a]&&(i[3+a]/=c),o(i)}},Si={borderRadius:{...Ti,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ti,borderTopRightRadius:Ti,borderBottomLeftRadius:Ti,borderBottomRightRadius:Ti,boxShadow:xi};function Ni(e,{layout:t,layoutId:n}){return H.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Si[e]||"opacity"===e)}function $i(e,t,n){const r=e.style,i=t?.style,o={};if(!r)return o;for(const t in r)(At(r[t])||i&&At(i[t])||Ni(t,e)||void 0!==n?.getValue(t)?.liveStyle)&&(o[t]=r[t]);return o}
2function ki(e,t,n){const r=$i(e,t,n);for(const n in e)(At(e[n])||At(t[n]))&&(r[-1!==W.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class Ai extends ui{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ye}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(H.has(t)){const e=_t(t);return e&&e.default||0}return t=bi.has(t)?t:on(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ki(e,t,n)}build(e,t,n){yi(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){Ei(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(bi.has(n)?n:on(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=wi(e.tagName),super.mount(e)}}class Ci extends ui{constructor(){super(...arguments),this.type="html",this.renderInstance=Ei}readValueFromInstance(e,t){if(H.has(t))return this.projection?.isProjecting?j(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return q(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),i=(dn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return function(e,t){return function({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}(function(e,t){if(!t)return e;const 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))}(e,t)}build(e,t,n){pi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return $i(e,t,n)}}const Mi=["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 Ri(e){return"string"==typeof e&&!e.includes("-")&&!!(Mi.indexOf(e)>-1||/[A-Z]/u.test(e))}const Fi={renderer:(e,t)=>t.isSVG??Ri(e)?new Ai(t):new Ci(t,{allowProjection:e!==r.Fragment}),...Vr,...ii},Li=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Di=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 Oi(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Di.has(e)}let Pi=e=>!Oi(e);function Ii(e){"function"==typeof e&&(Pi=t=>t.startsWith("on")?!Oi(t):e(t))}try{Ii(require("@emotion/is-prop-valid").default)}catch{}function Vi(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}function ji({children:e,isValidProp:t,...n}){t&&Ii(t);const i=(0,r.useContext)(Li);(n={...i,...n}).transition=Zt(n.transition,i.transition),n.isStatic=Vi(()=>n.isStatic);const o=(0,r.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return(0,N.jsx)(Li.Provider,{value:o,children:e})}const qi=(0,r.createContext)({}),Bi="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Wi=(0,r.createContext)(null);function Hi(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class Ki extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(Hr(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,n=Hr(e)&&e.offsetWidth||0,r=Hr(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Yi({children:e,isPresent:t,anchorX:n,anchorY:i,root:o,pop:a}){const s=(0,r.useId)(),l=(0,r.useRef)(null),c=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,r.useContext)(Li),d=e.props?.ref??e?.ref,h=function(...e){return r.useCallback(function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Hi(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Hi(e[t],null)}}}}(...e),e)}(l,d);return(0,r.useInsertionEffect)(()=>{const{width:e,height:r,top:d,left:h,right:m,bottom:p}=c.current;if(t||!1===a||!l.current||!e||!r)return;const f="left"===n?`left: ${h}`:`right: ${m}`,g="bottom"===i?`bottom: ${p}`:`top: ${d}`;l.current.dataset.motionPopId=s;const v=document.createElement("style");u&&(v.nonce=u);const y=o??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`\n          [data-motion-pop-id="${s}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${r}px !important;\n            ${f}px !important;\n            ${g}px !important;\n          }\n        `),()=>{l.current?.removeAttribute("data-motion-pop-id"),y.contains(v)&&y.removeChild(v)}},[t]),(0,N.jsx)(Ki,{isPresent:t,childRef:l,sizeRef:c,pop:a,children:!1===a?e:r.cloneElement(e,{ref:h})})}const Ui=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:s,anchorX:l,anchorY:c,root:u})=>{const d=Vi(zi),h=(0,r.useId)();let m=!0,p=(0,r.useMemo)(()=>(m=!1,{id:h,initial:t,isPresent:n,custom:o,onExitComplete:e=>{d.set(e,!0);for(const e of d.values())if(!e)return;i&&i()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[n,d,i]);return a&&m&&(p={...p}),(0,r.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),r.useEffect(()=>{!n&&!d.size&&i&&i()},[n]),e=(0,N.jsx)(Yi,{pop:"popLayout"===s,isPresent:n,anchorX:l,anchorY:c,root:u,children:e}),(0,N.jsx)(Wi.Provider,{value:p,children:e})};function zi(){return new Map}const Gi=e=>e.key||"";function Xi(e){const t=[];
2return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}const Zi=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:a="sync",propagate:s=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,h]=function(e=!0){const t=(0,r.useContext)(Wi);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return o(a)},[e]);const s=(0,r.useCallback)(()=>e&&i&&i(a),[a,i,e]);return!n&&i?[!1,s]:[!0]}(s),m=(0,r.useMemo)(()=>Xi(e),[e]),p=s&&!d?[]:m.map(Gi),f=(0,r.useRef)(!0),g=(0,r.useRef)(m),v=Vi(()=>new Map),y=(0,r.useRef)(new Set),[b,w]=(0,r.useState)(m),[E,_]=(0,r.useState)(m);Bi(()=>{f.current=!1,g.current=m;for(let e=0;e<E.length;e++){const t=Gi(E[e]);p.includes(t)?(v.delete(t),y.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[E,p.length,p.join("-")]);const T=[];if(m!==b){let e=[...m];for(let t=0;t<E.length;t++){const n=E[t],r=Gi(n);p.includes(r)||(e.splice(t,0,n),T.push(n))}return"wait"===a&&T.length&&(e=T),_(Xi(e)),w(m),null}const{forceRender:x}=(0,r.useContext)(qi);return(0,N.jsx)(N.Fragment,{children:E.map(e=>{const r=Gi(e),b=!(s&&!d)&&(m===E||p.includes(r));return(0,N.jsx)(Ui,{isPresent:b,initial:!(f.current&&!n)&&void 0,custom:t,presenceAffectsLayout:o,mode:a,root:u,onExitComplete:b?void 0:()=>{if(y.current.has(r))return;if(!v.has(r))return;y.current.add(r),v.set(r,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(x?.(),_(g.current),s&&h?.(),i&&i())},anchorX:l,anchorY:c,children:e},r)})})},Ji=(0,r.createContext)({});function Qi(e){return Array.isArray(e)?e.join(" "):e}function eo(e,t,n){for(const r in t)At(t[r])||Ni(r,n)||(e[r]=t[r])}function to(e,t){const n={},i=function(e,t){const n={};return eo(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,r.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return pi(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.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)&&(n.tabIndex=0),n.style=i,n}function no(e,t,n,i){const o=(0,r.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return yi(n,t,wi(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};eo(t,e.style,e),o.style={...t,...o.style}}return o}function ro(e,t,n,{latestValues:i},o,a=!1,s){const l=(s??Ri(e)?no:to)(t,i,o,e),c=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||At(e[i])||(Pi(i)||!0===n&&Oi(i)||!t&&!Oi(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),u=e!==r.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=(0,r.useMemo)(()=>At(d)?d.get():d,[d]);return(0,r.createElement)(e,{...u,children:h})}function io(e){return At(e)?e.get():e}function oo(e,t,n,r){const i={},o=r(e,{});for(const e in o)i[e]=io(o[e]);let{initial:a,animate:s}=e;const l=Dt(e),c=Ot(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Mt(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=It(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(i[e]=t)}for(const t in e)i[t]=e[t]}}}return i}const ao=e=>(t,n)=>{const i=(0,r.useContext)(Ji),o=(0,r.useContext)(Wi),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:oo(n,r,i,e),renderState:t()}}(e,t,i,o);return n?a():Vi(a)},so=ao({scrapeMotionValuesFromProps:$i,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),lo=ao({scrapeMotionValuesFromProps:ki,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),co=Symbol.for("motionComponentSymbol");function uo(e,t,n){const i=(0,r.useRef)(n);(0,r.useInsertionEffect)(()=>{i.current=n});const o=(0,r.useRef)(null);return(0,r.useCallback)(n=>{n&&e.onMount?.(n);const r=i.current;if("function"==typeof r)if(n){const e=r(n);"function"==typeof e&&(o.current=e)}else o.current?(o.current(),o.current=null):r(n);else r&&(r.current=n);t&&(n?t.mount(n):t.unmount())},[t])}const ho=(0,r.createContext)({});function mo(e,t,n,i,o,a){const{visualElement:s}=(0,r.useContext)(Ji),l=(0,r.useContext)($),c=(0,r.useContext)(Wi),u=(0,r.useContext)(Li),d=u.reducedMotion,h=u.ski
2pAnimations,m=(0,r.useRef)(null),p=(0,r.useRef)(!1);i=i||l.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d,skipAnimations:h,isSVG:a}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const f=m.current,g=(0,r.useContext)(ho);!f||f.projection||!o||"html"!==f.type&&"svg"!==f.type||function(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;var h;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:po(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(a)||s&&(h=s,h&&"object"==typeof h&&Object.prototype.hasOwnProperty.call(h,"current")),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(m.current,n,o,g);const v=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{f&&v.current&&f.update(n,c)});const y=n[an],b=(0,r.useRef)(Boolean(y)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return Bi(()=>{p.current=!0,f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,r.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),b.current=!1),f.enteringChildren=void 0)}),f}function po(e){if(e)return!1!==e.options.allowProjection?e.projection:po(e.parent)}function fo(e,{forwardMotionProps:t=!1,type:n}={},i,o){i&&Yt(i);const a=n?"svg"===n:Ri(e),s=a?lo:so;function l(n,i){let l;const c={...(0,r.useContext)(Li),...n,layoutId:go(n)},{isStatic:u}=c,d=function(e){const{initial:t,animate:n}=function(e,t){if(Dt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Rt(t)?t:void 0,animate:Rt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(Ji));return(0,r.useMemo)(()=>({initial:t,animate:n}),[Qi(t),Qi(n)])}(n),h=s(n,u);if(!u&&"undefined"!=typeof window){(0,r.useContext)($).strict;const t=function(e){const t=Kt(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(c);l=t.MeasureLayout,d.visualElement=mo(e,h,c,o,t.ProjectionNode,a)}return(0,N.jsxs)(Ji.Provider,{value:d,children:[l&&d.visualElement?(0,N.jsx)(l,{visualElement:d.visualElement,...c}):null,ro(e,n,uo(h,d.visualElement,i),h,u,t,a)]})}l.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const c=(0,r.forwardRef)(l);return c[co]=e,c}function go({layoutId:e}){const t=(0,r.useContext)(qi).id;return t&&void 0!==e?t+"-"+e:e}function vo(e,t){if("undefined"==typeof Proxy)return fo;const n=new Map,r=(n,r)=>fo(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,fo(o,void 0,e,t)),n.get(o))})}const yo=vo();var bo=n(3972),wo=n(5926),Eo=n(7111),_o=n(8203);function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},To.apply(null,arguments)}function xo({isHomeLink:e,openSubmenu:t,currentMenuLevel:n,menuItem:i}){var o;const{navTheme:a}=(0,s.t)(),{isHovered:l,hoverProps:u}=(0,wo.M)({onHoverStart:null,onHoverEnd:null,onHoverChange:null}),d=0===n&&i.children,h=(0,Eo.yl)(null===(o=window)||void 0===o?void 0:o.location.pathname,i.slug),m=e&&"dark"===a,p=m?"white":l?"finnishBlue":"finaviaBlueDark";return r.createElement("li",To({className:"mobile-navigation-menus__item",role:"none"},u),d?r.createElement(g.A,{role:"menuitem",className:"mobile-navigation-menus__button",onClick:()=>t(i)},i.menu_icon&&r.createElement(v.A,{icon:i.menu_icon,color:p,className:"rw-icon rw-icon--md mobile-navigation-menus__icon"}),i.name,r.createElement(v.A,{icon:"arrow-right",color:"finaviaBlueDark",className:"rw-icon rw-icon--sm mobile-navigation-menus__icon mobile-navigation-menus__icon--chevron-right"})):r.createElement("a",{role:"menuitem",className:c()("mobile-navigation-menus__link",m&&"mobile-navigation-menus__link--dark",n>0&&"mobile-navigation-menus__link--child"),"aria-current":h?"page":null,href:i.slug},(i.menu_icon||e)&&n<1&&r.createElement(v.A,{icon:i.menu_icon||"house",color:p,className:"rw-icon rw-icon--md mobile-navigation-menus__icon"}),i.name,r.createElement(v.A,{icon:"arrow-right",color:"white",className:"rw-icon rw-icon--sm mobile-navigation-menus__icon mobile-navigation-menus__icon--chevron-right"})))}
2xo.propTypes={openSubmenu:b().func,currentMenuLevel:b().number.isRequired,menuItem:b().object.isRequired,isHomeLink:b().bool.isRequired};const So=xo;var No=n(1596);function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$o.apply(null,arguments)}function ko({currentMenus:e,currentMenuLevel:t,parentMenu:n,parentMenuAttributes:i,openSubmenu:l,backToParentMenu:d,globalAirportContext:h}){var m,f;const{navTheme:y}=(0,s.t)(),{airportContext:b}=(0,u.d4)(e=>e.uiState),w=0===t&&(null==b?void 0:b.code)&&!a.G,E=(0,Eo.yl)(null===(m=window)||void 0===m?void 0:m.location.pathname,null==n?void 0:n.slug),{isHovered:_,hoverProps:T}=(0,wo.M)({onHoverStart:null,onHoverEnd:null,onHoverChange:null}),[x,S]=(0,r.useState)(!1),N=o.k.path.currentPath+"/?navref="+(null===(f=o.k.path.currentQuery)||void 0===f?void 0:f.navref);return r.createElement(bo.n1,{autoFocus:!0,contain:!0},r.createElement("ul",{role:"menu"},n?r.createElement(r.Fragment,null,r.createElement("li",{role:"none"},r.createElement(g.A,{role:"menuitem",className:c()("mobile-navigation-menus__back","dark"===y&&"mobile-navigation-menus__back--dark"),onClick:d},r.createElement(v.A,{icon:"arrow-left",color:"dark"===y?"white":"finaviaBlueDark",className:"rw-icon rw-icon--sm mobile-navigation-menus__icon mobile-navigation-menus__icon--chevron-left"}),p.Lg.back)),r.createElement("li",$o({role:"none"},T),r.createElement("a",{role:"menuitem",className:"mobile-navigation-menus__link-to-parent",href:i.slug,"aria-current":E?"page":null},i.icon&&r.createElement(v.A,{icon:i.icon,color:_?"finnishBlue":"finaviaBlueDark",className:"rw-icon rw-icon--md mobile-navigation-menus__icon"}),i.name))):r.createElement(r.Fragment,null,r.createElement("li",{className:"mobile-navigation-menus__item",role:"none"},r.createElement(g.A,{role:"menuitem",className:"mobile-navigation-menus__link open-search-btn",onClick:()=>S(!x)},r.createElement("span",null,r.createElement(v.A,{icon:"magnifier",color:"finaviaBlueDark",className:"rw-icon rw-icon--md mobile-navigation-menus__icon mobile-navigation-menus__icon--magnifier"}),p.Lg.searchBtnLabel),x&&r.createElement(v.A,{icon:"cross",color:"finaviaBlueDark",className:"rw-icon rw-icon--sm mobile-navigation-menus__icon mobile-navigation-menus__icon--cross"})),x&&r.createElement(No.A,{submitSearch:(e="",t="")=>{if(e){const n=(0,Eo.mp)({searchTerm:e,airport:h,navref:t});window.location.href=n}},globalAirportContext:h}))),w&&r.createElement(So,{menuItem:{id:b.code,slug:b.url,name:b.name},currentMenuLevel:t,isHomeLink:!0}),Object.values(e).map(e=>r.createElement(So,{menuItem:e,currentMenuLevel:t,openSubmenu:l,isHomeLink:(0,Eo.u9)(e),key:e.id})),!n&&r.createElement(r.Fragment,null,r.createElement("li",{className:"mobile-navigation-menus__item select-language",role:"none"},r.createElement(g.A,{role:"menuitem",className:"mobile-navigation-menus__link",id:"language"},r.createElement(v.A,{icon:"globe",color:"finaviaBlueDark",className:"rw-icon rw-icon--md mobile-navigation-menus__icon mobile-navigation-menus__icon--globe"}),p.Lg.languageBtnLabel)),r.createElement("li",{className:"mobile-navigation-menus__item available-languages",role:"none"},[{value:"en"},{value:"fi"},{value:"sv"}].map(e=>r.createElement("a",{role:"menuitem",className:`\n                  language-links__link\n                  ${a.C.ACTIVE_LANGUAGE===e.value&&"is-active"}`,href:`/${e.value}/${N}`,key:e.value},e.value))))))}ko.propTypes={currentMenuLevel:b().oneOf([0,1]).isRequired,parentMenu:_o.Lt,parentMenuAttributes:b().shape({name:b().string.isRequired,slug:b().string.isRequired,icon:b().string}),backToParentMenu:b().func.isRequired,openSubmenu:b().func.isRequired,currentMenus:_o.Lt.isRequired,globalAirportContext:b().string.isRequired};const Ao=(0,u.Ng)(function(e){return{globalAirportContext:e.uiState.airportContext.code||""}})(ko),Co=function(){const{navData:e}=(0,s.t)(),[t,n]=(0,r.useState)(e),[i,o]=(0,r.useState)(0),[a,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(null),d=()=>{n(a),o(i-1),l(null),u(null)},h=e=>{n(e.children),o(i+1),l(t),u({name:e.name,slug:e.slug,icon:e.menu_icon||null})},m=function(){!T.current&&S();const[e]=(0,r.useState)(_.current);return e}()?0:350,f=[{initial:{x:-m,opacity:0}
2,animate:{x:0,opacity:1},exit:{x:-m,opacity:0},key:i,className:"mobile-navigation-menus__motion"},{initial:{x:m,opacity:0},animate:{x:0,opacity:1},exit:{x:m,opacity:0},key:i,className:"mobile-navigation-menus__motion"}];return t?r.createElement("nav",{className:"mobile-navigation-menus",role:"navigation","aria-label":p.Lg.navigationAriaLabel},r.createElement(Ut,{strict:!0,features:Fi},r.createElement(ji,{transition:{duration:.2,ease:"easeInOut"}},r.createElement(Zi,{exitBeforeEnter:!0,initial:!1},0===i&&r.createElement(yo.div,f[0],r.createElement(Ao,{currentMenus:t,currentMenuLevel:i,parentMenu:a,parentMenuAttributes:c,openSubmenu:h,backToParentMenu:d})),1===i&&r.createElement(yo.div,f[1],r.createElement(Ao,{currentMenus:t,currentMenuLevel:i,parentMenu:a,parentMenuAttributes:c,openSubmenu:h,backToParentMenu:d})))))):null},Mo=function(){const{navTheme:e,navData:t}=(0,s.t)(),{activeHeaderIcon:n}=(0,u.d4)(({uiState:e})=>e),i=(0,u.wA)(),[o,a]=(0,r.useState)(0),l=Boolean(t&&"mobile-navigation"===n),d=(0,r.useRef)(null),y=h()(()=>{if(l){var e;const t=null===(e=d.current)||void 0===e?void 0:e.getBoundingClientRect();a((null==t?void 0:t.bottom)||0)}},200);return(0,f.ML)("resize",y),(0,r.useEffect)(()=>{window.fcWidget&&(l?window.fcWidget.hide():window.fcWidget.show())},[l]),r.createElement("div",{className:c()("mobile-navigation",`mobile-navigation--${e}`)},r.createElement("div",{className:"mobile-navigation-toggle"},r.createElement(g.A,{className:"mobile-navigation-toggle__button",id:na,onClick:()=>{var e;const t=null===(e=d.current)||void 0===e?void 0:e.getBoundingClientRect();a((null==t?void 0:t.bottom)||0),i((0,m.setActiveHeaderIcon)(l?"":"mobile-navigation"))},"aria-label":p.Lg.toggleLabel,"aria-controls":ra,"aria-haspopup":!0,"aria-expanded":l,ref:d},r.createElement("span",{className:"mobile-navigation-toggle__text"},l?p.Lg.toggleClosePrompt:p.Lg.toggleOpenPrompt),r.createElement(v.A,{className:"rw-icon--md",icon:l?"cross":"hamburger","aria-hidden":!0}))),r.createElement(E,{id:ra,isOpen:l,distanceFromTop:o},l&&r.createElement(Co,null)))};var Ro=n(9295),Fo=n(8522),Lo=n(4930),Do=n(3807),Oo=n(206),Po=n(9814),Io=n(8623),Vo=n(375);const jo=({flight:e,myFlights:t})=>{const[n,i]=(0,r.useState)(!1),[o,a]=(0,r.useState)(!1),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),d=(e,t)=>(()=>{const e=JSON.parse(localStorage.getItem("flights"))||[],t=(new Date).setHours(0,0,0,0),n=e.filter(e=>new Date(e.date).setHours(0,0,0,0)>=t);return n.length!==e.length&&localStorage.setItem("flights",JSON.stringify(n)),n})().some(n=>{var r;return n.date===e&&(null===(r=n.flightNumbers)||void 0===r?void 0:r.split(", ").includes(t.split(", ")[0]))}),h=()=>{i(!1),a(!1),l(!1);const t=d(e.sdt,e.flightNumbers);u(t)};return(0,r.useEffect)(()=>{u(d(e.sdt,e.flightNumbers))},[e]),(0,r.useEffect)(()=>{const n=t.find(t=>t.id===e.id);void 0!==n?e.pushSubscription=n.pushSubscription:e.pushSubscription&&delete e.pushSubscription},[t]),r.createElement(r.Fragment,null,n||s||o?r.createElement(r.Fragment,null,r.createElement("div",{className:"js-toolbar-dropdown-overlay js-toolbar-dropdown-overlay--over-header",role:"button",onClick:h,tabIndex:0,onKeyDown:e=>"Enter"===e.key&&h()}),r.createElement("div",{className:"modal-overlay "+(s?"push-overlay":""),onClick:h,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&h()},r.createElement("div",{className:"modal-content",role:"button",tabIndex:0,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()},r.createElement("div",{className:"modal-header"},r.createElement("span",null,n&&r.createElement(r.Fragment,null,r.createElement(v.A,{icon:"paper-airplane",className:"rw-icon--md paper-airplane"}),p.Pr.emailLabel),s&&r.createElement(r.Fragment,null,r.createElement(v.A,{icon:"bell-icon",className:"rw-icon--md bell-icon"}),p.Pr.pushNotificationLabel),o&&r.createElement(r.Fragment,null,r.createElement(v.A,{icon:"paper-airplane",className:"rw-icon--md paper-airplane"}),p.Pr.emailLabel)),r.createElement("button",{className:"rw-button rw-button--plain-blue rw-button--icon",onClick:h},p.Pr.flightDetailsCloseButtonLabel,r.createElement(v.A,{icon:"cross",className:"rw-icon--md@sm rw-icon--xl@md"}))),n&&r.createElement(Vo.A,{key:e.tag,flightId:e.id,defaultFlightNumbers:e.flightNumbers,defaultFlightDate:e.sdt,flightBeltStatus:e.bltStatus,flightStatusCode:e.statusCode,flightDetailsOpen:!0,isMobileOverlay:!0}),o&&r.createElement("div",{className:"flight-subscription__email-unsubscribe"},r.createElement("h2",{className:"rw-responsive-heading--tiny flight-subscription__email-heading"},p.Pr.myflightEmailUnsubscribe),p.Pr.emailUnsubscribeLabel)))):r.createElement(r.Fragment,null,r.createElement("h1",{className:"flight-subscription--label"},p.Pr.subscriptionLabel),"Helsinki"!==e.destination&&r.createElement("div",{className:"flight-subscription--toggle"},r.createElement("span",null,r.createElement(v.A,{icon:"paper-airplane",className:"rw-icon--md paper-airplane"}),p.Pr.emailLabel),r.createElement(Po.A,{label:p.Pr.toggleSaveFlightLabel,textOn:"",textOff:"",checked:c,onChange:()=>{d(e.sdt,e.flightNumbers)?a(!0):i(!n)}}))))};jo.propTypes={flight:b().shape(_o.Ky),myFlights:b().arrayOf(b().oneOfType([b().shape({..._o.Ky,isDepartingFlight:b().bool.isRequired}),b().shape({tag:b().string.isRequired,homeAirport:b().string.isRequired,isLoading:b().bool})])).isRequired};const qo=(0,u.Ng)(function(e){return{myFlights:(0,Do.W1)(e)}},Io.A)(jo);function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bo.apply(null,arguments)}const Wo={...p.I0,...p.Pr},Ho=({label:e,value:t})=>r.createElement("div",{className:"flight-details-item"},r.createElement("div",{className:"flight-details-item__label"},e),r.createElement("div",{className:"flight-details-item__value"},t));Ho.propTypes={label:b().string.isRequired,value:b().oneOfType([b().PropTypes.string,b().node]).isRequired};const Ko=({flight:e})=>{const t="Helsinki"===e.origin;return r.createElement("div",{className:"my-flight-details"},r.createElement("div",{className:"flight-details__container"},e.statusText&&r.createElement(Oo.A,Bo({},e,{large:!0,className:"flight-details__flight-status","aria-label":Wo.status})),r.createElement("h1",{className:"flight-details__origin-destination","aria-label":t?Wo.destination:Wo.from},t?e.destination:e.origin),r.createElement("div",{className:"flight-details__flight-number","aria-label":Wo.flightNumbers},e.flightNumbers),r.createElement("div",{className:"flight-details__row"},r.createElement(Ho,{label:t?Wo.departureTime:Wo.arrivalTime,value:r.createElement(r.Fragment,null,r.createElement("div",{"aria-label":Wo.scheduledTime,className:c()({linethrough:e.altTime})},(0,Eo.fU)(e.sdt)),e.altTime&&r.createElement("div",{className:"flight-details__alt-time","aria-label":Wo.estimatedTime},(0,Eo.fU)(e.altTime)))}),r.createElement(Ho,{label:t?Wo.departureDate:Wo.arrivalDate,value:(0,Eo.hy)(e.sdt)}),r.createElement(Ho,{label:t?Wo.gate:Wo.belt,value:t?e.gate:e.belt?r.createElement("span",{className:"flight-details__belt flight-status flight-status--belt"},(0,Eo.L_)(e.bltStatus)):"-"}))),(0,Eo.YA)(e.statusCode)?r.createElement(qo,{flight:e}):r.createElement("p",null,Wo.preferencesDisabledText))};Ko.propTypes={flight:b().shape(_o.Ky)};const Yo=Ko,Uo=({activeTab:e,keywords:t,flightList:n,selectedFlight:i,setSelectedFlight:o})=>{const s=(0,u.wA)(),[l,c]=(0,r.useState)([]),[d,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)((0,Eo.Yq)(Eo.xV[0])),[v,y]=(0,r.useState)(!1),b=(0,Eo.cU)(a.C.FLIGHT_SEARCH_LIMITS.HEL_MAX_SUB),w=(0,Eo.Yq)(b),E=(new Date).toISOString(),_={...p.I0,...p.Me};return(0,r.useEffect)(()=>{const e=document.querySelector(".autocomplete__clear");o(null),e&&e.click()},[e]),(0,r.useEffect)(()=>{0!==n.flights.length||v||(s((0,m.registerAirportFlightsUpdater)(a.C.FLIGHTS_AIRPORT,"now")),y(!0))},[n.flights,v,s]),r.createElement(r.Fragment,null,r.createElement(Lo.tE,{parentClasses:"myflights-search__item",label:_.searchDateLabel,value:f.slice(0,10),identifier:"search-flight-date",min:E.slice(0,10),max:w.slice(0,10),onChange:e=>{var n,r;const i=null===(n=e.detail)||void 0===n||null===(r=n.valueAsDate)||void 0===r?void 0:r.toISOString(),o=(0,Eo.Yq)(i);g(o),s((0,m.searchFlightsAndAirlines)(t,o))}}),r.createElement("br",null),r.createElement("div",{className:"rw-label"},_.searchKeywordsLabel),r.createElement(Fo.A,{data:l.map(e=>e.autocompleteText),placeholder:_.myFlightsSearch,handleChange:t=>{h(!0);const r=n.flights.filter(n=>e===a.C.FLIGHTS_QUERY_PARAMS.DEP?(n.destination.toLowerCase().includes(t.toLowerCase())||n.flightNumbers.toLowerCase().includes(t.toLowerCase()))&&new Date(n.scheduled).toISOString().slice(0,10)===f:(n.origin.toLowerCase().includes(t.toLowerCase())||n.flightNumbers.toLowerCase().includes(t.toLowerCase()))&&new Date(n.scheduled).toISOString().slice(0,10)===f).map(t=>{const n=new Date(t.scheduled),r=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(n);return{autocompleteText:`${e===a.C.FLIGHTS_QUERY_PARAMS.DEP?t.destination:t.origin} ${r} ${t.flightNumbers}`,id:t.id}});c(r),h(!1)},handleSelect:e=>{const t=l.find(t=>t.autocompleteText===e),r=t?n.flights.find(e=>t.id.includes(e.id)):null;o(r||null)},loading:d,label:"Search Flights",threshold:3}),i&&r.createElement(Yo,{flight:i}))};Uo.propTypes={flightList:b().shape({flights:b().arrayOf(b().shape(_o.Ky))}
2).isRequired,activeTab:b().string.isRequired,keywords:b().string,date:b().string,selectedFlight:b().object,setSelectedFlight:b().func};const zo=(0,u.Ng)(function(e){return{activeTab:e.uiState.flightsAndAirlinesTab,flightList:{flights:(0,Do.sm)(e)},keywords:e.flightAndAirlineSearch.keywords,date:e.flightAndAirlineSearch.date}})(Uo);var Go=n(1117);const Xo=({selectedFlight:e,setSelectedFlight:t})=>r.createElement("div",{className:"myflights__search-and-subscribe"},r.createElement("div",{className:"myflights__search-and-subscribe__ingress"},r.createElement(v.A,{icon:"pass",className:"rw-icon--md@sm rw-icon--xl@md"}),p.I0.myFlightsIngress),r.createElement("div",{className:"flights-search"},r.createElement(Go.A,{isInOverlay:!0}),r.createElement(zo,{selectedFlight:e,setSelectedFlight:t})));Xo.propTypes={selectedFlight:b().object,setSelectedFlight:b().func};const Zo=Xo,Jo=({children:e,isOpen:t,onClose:n})=>{const i=(0,r.useRef)(),o=(0,f.ZC)(t);return(0,r.useEffect)(()=>{t&&!o&&i.current&&(i.current.scrollTop=0)},[t]),r.createElement("div",{className:c()("subscription-overlay",{"subscription-overlay--open":t}),"aria-hidden":!t},r.createElement("div",{className:"subscription-overlay__container",ref:i},r.createElement("button",{className:"subscription-overlay__close rw-button rw-button--plain-blue rw-button--icon",onClick:n,disabled:!t},p.Pr.flightDetailsCloseButtonLabel,r.createElement(v.A,{icon:"cross",className:"rw-icon--md@sm rw-icon--xl@md"})),r.createElement("div",{className:"subscription-overlay__content"},e)))};Jo.propTypes={isOpen:b().bool.isRequired,children:b().oneOfType([b().node,b().arrayOf(b().node)]).isRequired,onClose:b().func.isRequired};const Qo=Jo,ea=()=>{const[e,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(null);let o=null;a.C.FLIGHTS_AIRPORT="hel";const s=new URL(window.location);(0,r.useEffect)(()=>{o=document.querySelector(".autocomplete__clear"),s.searchParams.has("flights")&&t(!0)});const l=(0,u.wA)();return r.createElement("div",{className:"bottom-quick-links"},r.createElement("a",{className:"bottom-quick-link",href:`https://hel-map.finavia.fi/?language=${a.C.ACTIVE_LANGUAGE}&navref=toolbar`},r.createElement(v.A,{icon:"pin",color:"finaviaBlue",className:"rw-icon--sm"}),p.dA.mapLabel),r.createElement("button",{className:"bottom-quick-link",onClick:()=>{t(!0),s.searchParams.set("flights","true"),window.history.pushState({},"",s)},id:"myflights-toggle",onKeyDown:e=>"Enter"===e.key&&l((0,m.setActiveHeaderIcon)(""))},r.createElement(v.A,{icon:"airplane",color:"finaviaBlue",className:"rw-icon--sm"}),p.$z.myflight),r.createElement(Qo,{isOpen:e,onClose:()=>{o&&o.click(),t(!1),i(null),s.searchParams.delete("flights"),window.history.pushState({},"",s)}},r.createElement(Zo,{selectedFlight:n,setSelectedFlight:i})))},ta=(0,Eo.OQ)(),na="mobile-navigation-toggle",ra="mobile-navigation-overlay",ia="inline-navigation-overlay",{airport_context:oa}=o.k.finavia_airports;function aa(){const e=(0,i.Ub)({query:`(min-width: ${a.NF})`}),t=(0,i.Ub)({query:`(max-width: ${a.Gc})`}),n=!1;return r.createElement(s.i9,null,e?n:r.createElement(Mo,null),(t?oa:n)&&"HEL"===oa.code&&!ta&&"sv"!==a.C.ACTIVE_LANGUAGE&&r.createElement(ea,null),e?r.createElement(Ro.A,null):n)}},5884(e,t,n){"use strict";n.d(t,{i9:()=>h,t:()=>m});var r=n(6540),i=n(5556),o=n.n(i),a=n(1468),s=n(5580),l=n(7111),c=n(8203),u=n(4524);const d=(0,r.createContext)(null);function h({children:e,mockNavData:t}){const{airportContext:n}=(0,a.d4)(e=>e.uiState),i=(null==n?void 0:n.code)&&!s.G,o=(0,u.Z)(),c=i?(0,l.DS)(null==o?void 0:o.main,n):s.G?null==o?void 0:o["webguide-navigation"]:null==o?void 0:o.main;return(0,r.useEffect)(function(){if(s.G)return;const e=document.querySelector(".header-wrapper");e&&(i?e.classList.remove("header-wrapper--dark"):e.classList.add("header-wrapper--dark"))},[i]),r.createElement(d.Provider,{value:{navData:c,navTheme:i?"light":"dark"}},c?e:null)}function m(){return(0,r.useContext)(d)}h.propTypes={children:o().oneOfType([o().node,o().arrayOf(o().node)]).isRequired,mockNavData:o().shape({menus:o().shape({main:c.Lt.isRequired}).isRequired})}},815(e,t,n){"use strict";var r=n(6540),i=n(5338),o=n(6942),a=n.n(o),s=n(7111),l=n(7047),c=n(7137),u=n(2890),d=n(5556),h=n.n(d);
2const m=({notification:e,focusable:t,...n})=>{const i="crisis"===e.attention_type;return r.createElement("div",n,r.createElement("div",{className:"main-notification"},r.createElement(c.A,{className:"main-notification__icon rw-icon--sm@sm rw-icon--md@lg",icon:i?"warning":"info",color:i?"white":"black"}),r.createElement("div",{className:"main-notification__wrapper"},r.createElement("a",{className:"main-notification__link",href:e.slug,tabIndex:t?0:-1},e.title))))};m.propTypes={notification:h().shape({title:h().string.isRequired,slug:h().string.isRequired,attention_type:h().string.isRequired}),focusable:h().bool.isRequired};const p=m,f=({notifications:e=[]})=>r.createElement("ul",{className:"visually-hidden","aria-label":u.Me.notifications},e.map(({slug:e,title:t})=>r.createElement("li",{key:e},r.createElement("a",{href:e},t))));f.propTypes={notifications:h().arrayOf(h().shape({title:h().string.isRequired,slug:h().string.isRequired}))};const g=f;var v=n(4129);const y=({onClick:e})=>r.createElement("button",{className:"main-notifications__arrow main-notifications__arrow--prev",onClick:e},r.createElement(c.A,{icon:"arrow-up",color:"finnishBlue",className:"rw-icon--md"}),u.Me.previousButtonLabel),b=({onClick:e})=>r.createElement("button",{className:"main-notifications__arrow main-notifications__arrow--next",onClick:e},r.createElement(c.A,{icon:"arrow-down",color:"finnishBlue",className:"rw-icon--md"}),u.Me.nextButtonLabel);y.propTypes={onClick:h().func},b.propTypes={onClick:h().func};const w=()=>{const[e,t]=(0,r.useState)([]),[n,i]=(0,r.useState)(1);(0,r.useEffect)(()=>{!async function(){const e=await(0,v.getNotifications)();t(e.body)}()},[]);const o={prevArrow:r.createElement(y,null),nextArrow:r.createElement(b,null),dots:!1,arrows:!0,arrowColor:"finnishBlue",pauseOnHover:!0,swipe:!1,touchMove:!1,draggable:!1,autoplay:!0,autoplaySpeed:1e4,vertical:!0,beforeChange:(e,t)=>
2{i(t+1)}},c=e.some(e=>"crisis"===e.attention_type),u=a()("layout-container__element--full","main-notifications",{"main-notifications--crisis":c}),d=e.filter(e=>!c||"crisis"===e.attention_type);return!d.length||(0,s.jP)()?null:r.createElement("div",{className:u},r.createElement("div",{className:"main-notifications__wrapper"},1===d.length?r.createElement(p,{notification:d[0],focusable:!0}):r.createElement(r.Fragment,null,r.createElement("div",{className:"main-notifications__pager"},`${n} / ${d.length}`),r.createElement(l.A,o,d.map((e,t)=>r.createElement(p,{notification:e,focusable:n===t+1,key:t}))))),d.length>1&&r.createElement(g,{notifications:d}))},E=document.getElementById("notifications");E&&(0,i.createRoot)(E).render(r.createElement(w,null))},1171(e,t,n){"use strict";var r=n(6540),i=n(5338),o=n(5580);const a=!0;let s,l,c,u=!1,d=!1,h=!1,m=!1,p=null,f=!1;const g="http://www.w3.org/1999/xlink",v={},y=e=>"object"==(e=typeof e)||"function"===e;const b=(e,t,...n)=>{let r=null,i=null,o=null,s=!1,l=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?u(r):null!=r&&"boolean"!=typeof r&&((s="function"!=typeof e&&!y(r))&&(r=String(r)),s&&l?c[c.length-1].$text$+=r:c.push(s?w(null,r):r),l=s)};if(u(n),t&&(t.key&&(i=t.key),t.name&&(o=t.name),a)){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}if("function"==typeof e)return e(null===t?{}:t,c,T);const d=w(e,null);return d.$attrs$=t,c.length>0&&(d.$children$=c),d.$key$=i,d.$name$=o,d},w=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return n},E={},_=e=>e&&e.$tag$===E,T={forEach:(e,t)=>e.map(x).forEach(t),map:(e,t)=>e.map(x).map(t).map(S)},x=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),S=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),b(e.vtag,t,...e.vchildren||[])}const t=w(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},N=(e,t,n)=>{const r=e;return{emit:e=>
2$(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},$=(e,t,n)=>{const r=Ee.ce(t,n);return e.dispatchEvent(r),r},k=new WeakMap,A=(e,t,n,r)=>{var i;let o=C(t,n);const a=ve.get(o);if(e=11===e.nodeType?e:we,a)if("string"==typeof a){e=e.head||e;let t,n=k.get(e);if(n||k.set(e,n=new Set),!n.has(o)){{t=we.createElement("style"),t.innerHTML=a;const n=null!==(i=Ee.$nonce$)&&void 0!==i?i:function(e){var t,n,r;return null!==(r=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==r?r:void 0}(we);null!=n&&t.setAttribute("nonce",n),e.insertBefore(t,e.querySelector("link"))}n&&n.add(o)}}else!e.adoptedStyleSheets.includes(a)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return o},C=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),M=(e,t,n,r,i,o)=>{if(n!==r){let a=fe(e,t),s=t.toLowerCase();if("class"===t){const t=e.classList,i=F(n),o=F(r);t.remove(...i.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!i.includes(e)))}else if("style"===t){for(const t in n)r&&null!=r[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("key"===t);else if("ref"===t)r&&r(e);else if(e.__lookupSetter__(t)||"o"!==t[0]||"n"!==t[1]){{const l=y(r);if((a||l&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{const i=null==r?"":r;"list"===t?a=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,c=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(g,t):e.removeAttribute(t)):(!a||4&o||i)&&!l&&(r=!0===r?"":r,c?e.setAttributeNS(g,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):fe(be,s)?s.slice(2):s[2]+t.slice(3),n&&Ee.rel(e,t,n,!1),r&&Ee.ael(e,t,r,!1)}},R=/\s/,F=e=>e?e.split(R):[],L=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||v,a=t.$attrs$||v;for(r in o)r in a||M(i,r,o[r],void 0,n,t.$flags$);for(r in a)M(i,r,o[r],a[r],n,t.$flags$)},D=(e,t,n,r)=>{const i=t.$children$[n];let o,a,d,p=0;if(!u&&(h=!0,"slot"===i.$tag$&&(s&&r.classList.add(s+"-s"),i.$flags$|=i.$children$?2:1)),null!==i.$text$)o=i.$elm$=we.createTextNode(i.$text$);else if(1&i.$flags$)o=i.$elm$=we.createTextNode("");else{if(!m&&(m="svg"===i.$tag$),o=i.$elm$=we.createElementNS(m?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&i.$flags$?"slot-fb":i.$tag$),m&&"foreignObject"===i.$tag$&&(m=!1),L(null,i,m),null!=s&&o["s-si"]!==s&&o.classList.add(o["s-si"]=s),i.$children$)for(p=0;p<i.$children$.length;++p)a=D(e,i,p,o),a&&o.appendChild(a);"svg"===i.$tag$?m=!1:"foreignObject"===o.tagName&&(m=!0)}return o["s-hn"]=c,3&i.$flags$&&(o["s-sr"]=!0,o["s-cr"]=l,o["s-sn"]=i.$name$||"",d=e&&e.$children$&&e.$children$[n],d&&d.$tag$===i.$tag$&&e.$elm$&&O(e.$elm$,!1)),o},O=(e,t)=>{Ee.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==c&&r["s-ol"]&&(q(r).insertBefore(r,j(r)),r["s-ol"].remove(),r["s-ol"]=void 0,h=!0),t&&O(r,t)}Ee.$flags$&=-2},P=(e,t,n,r,i,o)=>{let a,s=e["s-cr"]&&e["s-cr"].parentNode||e;for(s.shadowRoot&&s.tagName===c&&(s=s.shadowRoot);i<=o;++i)r[i]&&(a=D(null,n,i,e),a&&(r[i].$elm$=a,s.insertBefore(a,j(t))))},I=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,U(r),d=!0,i["s-ol"]?i["s-ol"].remove():O(i,!0),i.remove())},V=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),j=e=>e&&e["s-ol"]||e,q=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,B=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,a=t.$text$;let s;null!==a?(s=n["s-cr"])?s.parentNode.textContent=a:e.$text$!==a&&(n.data=a):(m="svg"===o||"foreignObject"!==o&&m,"slot"===o||L(e,t,m),null!==r&&null!==i?((e,t,n,r)=>{let i,o,a=0,s=0,l=0,c=0,u=t.length-1,d=t[0],h=t[u],m=r.length-1,p=r[0],f=r[m];for(;a<=u&&s<=m;)if(null==d)d=t[++a];else if(null==h)h=t[--u];else if(null==p)p=r[++s];else if(null==f)f=r[--m];else if(V(d,p))B(d,p),d=t[++a],p=r[++s];else if(V(h,f))B(h,f),h=t[--u],f=r[--m];else if(V(d,f))"slot"!==d.$tag$&&"slot"!==f.$tag$||O(d.$elm$.parentNode,!1),B(d,f),e.insertBefore(d.$elm$,h.$elm$.nextSibling),d=t[++a],f=r[--m];else if(V(h,p))"slot"!==d.$tag$&&"slot"!==f.$tag$||O(h.$elm$.parentNode,!1),B(h,p),e.insertBefore(h.$elm$,d.$elm$),h=t[--u],p=r[++s];else{for(l=-1,c=a;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===p.$key$){l=c;break}l>=0?(o=t[l],o.$tag$!==p.$tag$?i=D(t&&t[s],n,l,e):(B(o,p),t[l]=void 0,i=o.$elm$),p=r[++s]):(i=D(t&&t[s],n,s,e),p=r[++s]),i&&q(d.$elm$).insertBefore(i,j(d.$elm$))}a>u?P(e,null==r[m+1]?null:r[m+1].$elm$,n,r,s,m):s>m&&I(t,a,u)})(n,r,t,i):null!==i?(null!==e.$text$&&(n.textContent=""),P(n,null,t,i,0,i.length-1)):null!==r&&I(r,0,r.length-1),m&&"svg"===o&&(m=!1))},W=e=>{const t=e.childNodes;let n,r,i,o,a,s;for(r=0,i=t.length;r<i;r++)if(n=t[r],1===n.nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,o=0;o<i;o++)if(s=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==a){if(1===s&&a===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==t[o].textContent.trim()){n.hidden=!0;break}W(n)}},H=[],K=e=>{let t,n,r,i,o,a,s=0;const l=e.childNodes,c=l.length;for(;s<c;s++){if(t=l[s],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],a=r.length-1;a>=0;a--)n=r[a],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(Y(n,i)?(o=H.find(e=>e.$nodeToRelocate$===n),d=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:H.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&H.map(e=>{Y(e.$nodeToRelocate$,n["s-sn"])&&(o=H.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):H.some(e=>e.$nodeToRelocate$===n)||H.push({$nodeToRelocate$:n}));1===t.nodeType&&K(t)}},Y=(e,t)=>
21===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,U=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(U)},z=(e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||w(null,null),o=_(t)?t:b(null,null,t);if(c=n.tagName,r.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},r.$attrsToReflect$.map(([e,t])=>o.$attrs$[t]=n[e])),o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=i.$elm$=n.shadowRoot||n,s=n["s-sc"],l=n["s-cr"],u=_e&&!!(1&r.$flags$),d=!1,B(i,o),Ee.$flags$|=1,h){let e,t,n,r,i,a;K(o.$elm$);let s=0;for(;s<H.length;s++)e=H[s],t=e.$nodeToRelocate$,t["s-ol"]||(n=we.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(s=0;s<H.length;s++)if(e=H[s],t=e.$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,i=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(a=n["s-nr"],a&&a["s-sn"]===t["s-sn"]&&r===a.parentNode&&(a=a.nextSibling,!a||!a["s-nr"])){i=a;break}(!i&&r!==t.parentNode||t.nextSibling!==i)&&t!==i&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,i))}else 1===t.nodeType&&(t.hidden=!0)}d&&W(o.$elm$),Ee.$flags$&=-2,H.length=0},G=(e,t)=>{e.$flags$|=16,e.$ancestorComponent$;const n=()=>X(e,t);return Me(n)},X=(e,t)=>{const n=e.$hostElement$,r=(e.$cmpMeta$.$tagName$,()=>{}),i=n;let o;return t?(ne(n,"componentWillLoad"),o=ee(i,"componentWillLoad")):(ne(n,"componentWillUpdate"),o=ee(i,"componentWillUpdate")),ne(n,"componentWillRender"),o=te(o,()=>ee(i,"componentWillRender")),r(),te(o,()=>Z(e,i,t))},Z=async(e,t,n)=>{const r=e.$hostElement$,i=(e.$cmpMeta$.$tagName$,()=>{});r["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=(t.$tagName$,()=>{}),o=A(_e&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&r&&n.classList.add(o+"-s")),i()})(e);const o=(e.$cmpMeta$.$tagName$,()=>{});J(e,t,r),o(),i(),Q(e)},J=(e,t,n)=>{try{p=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,z(e,t)}catch(t){ge(t,e.$hostElement$)}return p=null,null},Q=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=t;e.$ancestorComponent$;ee(r,"componentDidRender"),ne(t,"componentDidRender"),64&e.$flags$?(ee(r,"componentDidUpdate"),ne(t,"componentDidUpdate"),n()):(e.$flags$|=64,ee(r,"componentDidLoad"),ne(t,"componentDidLoad"),n())},ee=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ge(e)}},te=(e,t)=>e&&e.then?e.then(t):t(),ne=(e,t)=>{}
2,re=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const n=Object.entries(t.$members$),r=e.prototype;n.map(([e,[n]])=>{(31&n||32&n)&&Object.defineProperty(r,e,{get(){return t=e,me(this).$instanceValues$.get(t);var t},set(n){((e,t,n,r)=>{const i=me(e),o=e,a=i.$instanceValues$.get(t),s=i.$flags$,l=o;var c,u;c=n,u=r.$members$[t][0],n=null==c||y(c)?c:4&u?"false"!==c&&(""===c||!!c):2&u?parseFloat(c):1&u?String(c):c;const d=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!d&&(i.$instanceValues$.set(t,n),1)){if(r.$watchers$&&128&s){const e=r.$watchers$[t];e&&e.map(e=>{try{l[e](n,a,t)}catch(e){ge(e,o)}})}if(2==(18&s)){if(l.componentShouldUpdate&&!1===l.componentShouldUpdate(n,a,t))return;G(i,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0})});{const i=new Map;r.attributeChangedCallback=function(e,t,n){Ee.jmp(()=>{const t=i.get(e);if(this.hasOwnProperty(t))n=this[t],delete this[t];else if(r.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==n)return;this[t]=(null!==n||"boolean"!=typeof this[t])&&n})},e.observedAttributes=n.filter(([e,t])=>15&t[0]).map(([e,n])=>{const r=n[1]||e;return i.set(r,e),512&n[0]&&t.$attrsToReflect$.push([e,r]),r})}}return e},ie=async(e,t,n,r,i)=>{if(!(32&t.$flags$)&&(i=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),i.style)){let r=i.style;"string"!=typeof r&&(r=r[t.$modeName$=(e=>ye.map(t=>t(e)).find(e=>!!e))(e)]);const o=C(n,t.$modeName$);if(!ve.has(o)){const e=(n.$tagName$,()=>{});((e,t,n)=>{let r=ve.get(e);xe&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,ve.set(e,r)})(o,r,!!(1&n.$flags$)),e()}}t.$ancestorComponent$;const o=()=>G(t,!0);o()},oe=e=>{},ae=e=>{const t=e["s-cr"]=we.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},se=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[],!_e&&1&n.$flags$&&(n.$flags$|=8);const r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){pe(this,n)},connectedCallback(){(e=>{if(!(1&Ee.$flags$)){const t=me(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)le(e,t,n.$listeners$,!1),oe(t.$lazyInstance$);else{let r;t.$flags$|=1,!r&&12&n.$flags$&&ae(e),n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),ie(e,t,n)}r()}})(this),r&&r.call(this)},disconnectedCallback(){(e=>{if(!(1&Ee.$flags$)){const t=me(e);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}})(this),i&&i.call(this)},__attachShadow(){_e?this.attachShadow({mode:"open",delegatesFocus:!!(16&n.$flags$)}):this.shadowRoot=this}}),e.is=n.$tagName$,re(e,n)},le=(e,t,n,r)=>{n&&n.map(([n,r,i])=>{const o=ue(e,n),a=ce(t,i),s=de(n);Ee.ael(o,r,a,s),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Ee.rel(o,r,a,s))})},ce=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(e){ge(e)}},ue=(e,t)=>
24&t?we:8&t?be:16&t?we.body:e,de=e=>Te?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),he=new WeakMap,me=e=>he.get(e),pe=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return le(e,n,t.$listeners$,!1),he.set(e,n)},fe=(e,t)=>t in e,ge=(e,t)=>(0,console.error)(e,t),ve=new Map,ye=[],be="undefined"!=typeof window?window:{},we=be.document||{head:{}},Ee=(be.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),_e=!0,Te=(()=>{let e=!1;try{we.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),xe=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Se=[],Ne=[],$e=(e,t)=>n=>{e.push(n),f||(f=!0,t&&4&Ee.$flags$?Ce(Ae):Ee.raf(Ae))},ke=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ge(e)}e.length=0},Ae=()=>{ke(Se),ke(Ne),(f=Se.length>0)&&Ee.raf(Ae)},Ce=e=>Promise.resolve(void 0).then(e),Me=$e(Ne,!0),Re=/^(\d{4})-(\d{2})-(\d{2})$/;var Fe;function Le(e,t,n){var r=parseInt(n,10),i=parseInt(t,10),o=parseInt(e,10);if(Number.isInteger(o)&&Number.isInteger(i)&&Number.isInteger(r)&&i>0&&i<=12&&r>0&&r<=31&&o>0)return new Date(o,i-1,r)}function De(e){if(!e)return;const t=e.match(Re);return t?Le(t[1],t[2],t[3]):void 0}function Oe(e){if(!e)return"";var t=e.getDate().toString(10),n=(e.getMonth()+1).toString(10),r=e.getFullYear().toString(10);return e.getDate()<10&&(t=`0${t}`),e.getMonth()<9&&(n=`0${n}`),`${r}-${n}-${t}`}function Pe(e,t){return null!=e&&null!=t&&Ie(e,t)&&e.getDate()===t.getDate()}function Ie(e,t){return null!=e&&null!=t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function Ve(e,t){var n=new Date(e);return n.setDate(n.getDate()+t),n}function je(e,t=Fe.Monday){var n=new Date(e),r=n.getDay(),i=(r<t?7:0)+r-t;return n.setDate(n.getDate()-i),n}function qe(e,t=Fe.Monday){var n=new Date(e),r=n.getDay(),i=6+(r<t?-7:0)-(r-t);return n.setDate(n.getDate()+i),n}function Be(e){return new Date(e.getFullYear(),e.getMonth(),1)}function We(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function He(e,t){const n=new Date(e);return n.setMonth(t),n}function Ke(e,t){const n=new Date(e);return n.setFullYear(t),n}function Ye(e,t,n){return Ue(e,t,n)===e}function Ue(e,t,n){const r=e.getTime();return t&&t instanceof Date&&r<t.getTime()?t:n&&n instanceof Date&&r>n.getTime()?n:e}function ze(){return Math.random().toString(16).slice(-4)}function Ge(e){return`${e}-${ze()}${ze()}-${ze()}-${ze()}-${ze()}-${ze()}${ze()}${ze()}`}!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(Fe||(Fe={}));const Xe=({onClick:e,dateFormatter:t,localization:n,name:r,formattedValue:i,valueAsDate:o,value:a,identifier:s,disabled:l,required:c,role:u,buttonRef:d,inputRef:h,onInput:m,onBlur:p,onFocus:f})=>b("div",{class:"duet-date__input-wrapper"},b("input",{class:"duet-date__input",value:i,placeholder:n.placeholder,id:s,disabled:l,role:u,required:!!c||void 0,"aria-autocomplete":"none",onInput:m,onFocus:f,onBlur:p,autoComplete:"off",ref:h}),b("input",{type:"hidden",name:r,value:a}),b("button",{class:"duet-date__toggle",onClick:e,disabled:l,ref:d,type:"button"},b("span",{class:"duet-date__toggle-icon"},b("svg",{"aria-hidden":"true",height:"24",viewBox:"0 0 21 21",width:"24",xmlns:"http://www.w3.org/2000/svg"},b("g",{fill:"none","fill-rule":"evenodd",transform:"translate(2 2)"},b("path",{d:"m2.5.5h12c1.1045695 0 2 .8954305 2 2v12c0 1.1045695-.8954305 2-2 2h-12c-1.1045695 0-2-.8954305-2-2v-12c0-1.1045695.8954305-2 2-2z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),b("path",{d:"m.5 4.5h16",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),b("g",{fill:"currentColor"},b("circle",{cx:"8.5",cy:"8.5",r:"1"}),b("circle",{cx:"4.5",cy:"8.5",r:"1"}),b("circle",{cx:"12.5",cy:"8.5",r:"1"}),b("circle",{cx:"8.5",cy:"12.5",r:"1"}),b("circle",{cx:"4.5",cy:"12.5",r:"1"}),b("circle",{cx:"12.5",cy:"12.5",r:"1"}))))),b("span",{class:"duet-date__vhidden"},n.buttonLabel,o&&b("span",null,", ",n.selectedDateMessage," ",t.format(o))))),Ze=({focusedDay:e,today:t,day:n,onDaySelect:r,onKeyboardNavigation:i,focusedDayRef:o,disabled:a,inRange:s,isSelected:l,dateFormatter:c})=>{const u=Pe(n,t),d=Ie(n,e),h=Pe(n,e),m=!s;return b("button",{class:{"duet-date__day":!0,"is-outside":m,"is-today":u,"is-month":d,"is-disabled":a},tabIndex:h?0:-1,onClick:function(e){r(e,n)},onKeyDown:i,"aria-disabled":a?"true":void 0,disabled:m,type:"button","aria-pressed":l?"true":"false",ref:e=>{h&&e&&o&&o(e)}},b("span",{"aria-hidden":"true"},n.getDate()),b("span",{class:"duet-date__vhidden"},c.format(n)))},Je=({selectedDate:e,focusedDate:t,labelledById:n,localization:r,firstDayOfWeek:i,min:o,max:a,dateFormatter:s,isDateDisabled:l,onDateSelect:c,onKeyboardNavigation:u,focusedDayRef:d})=>{const h=new Date,m=function(e,t=Fe.Monday){return function(e,t){const n=[];let r=e;for(;!Pe(r,t);)n.push(r),r=Ve(r,1);return n.push(r),n}(je(Be(e),t),qe(We(e),t))}(t,i);return b("table",{class:"duet-date__table","aria-labelledby":n},b("thead",null,b("tr",null,(p=r.dayNames,f=i,g=e=>b("th",{class:"duet-date__table-header",scope:"col"},b("span",{"aria-hidden":"true"},e.substr(0,2)),b("span",{class:"duet-date__vhidden"},e)),p.map((e,t)=>{const n=(t+f)%p.length;return g(p[n])})))),b("tbody",null,function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(m).map(n=>b("tr",{class:"duet-date__row"},n.map(n=>b("td",{class:"duet-date__cell"},b(Ze,{day:n,today:h,focusedDay:t,isSelected:Pe(n,e),disabled:l(n),inRange:Ye(n,o,a),onDaySelect:c,dateFormatter:s,onKeyboardNavigation:u,focusedDayRef:d})))))));var p,f,g}
vendor: 18,623 bytes, line 2
2,Qe={buttonLabel:"Choose date",placeholder:"YYYY-MM-DD",selectedDateMessage:"Selected date is",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",calendarHeading:"Choose a date",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],locale:"en-GB"},et={parse:De,format:Oe},tt=/[^0-9\.\/\-]+/g,nt=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duetChange=N(this,"duetChange",7),this.duetBlur=N(this,"duetBlur",7),this.duetFocus=N(this,"duetFocus",7),this.duetOpen=N(this,"duetOpen",7),this.duetClose=N(this,"duetClose",7),this.monthSelectId=Ge("DuetDateMonth"),this.yearSelectId=Ge("DuetDateYear"),this.dialogLabelId=Ge("DuetDateLabel"),this.initialTouchX=null,this.initialTouchY=null,this.activeFocus=!1,this.focusedDay=new Date,this.open=!1,this.name="date",this.identifier="",this.disabled=!1,this.direction="right",this.required=!1,this.value="",this.min="",this.max="",this.firstDayOfWeek=Fe.Monday,this.localization=Qe,this.dateAdapter=et,this.isDateDisabled=()=>!1,this.enableActiveFocus=()=>{this.activeFocus=!0},this.disableActiveFocus=()=>{this.activeFocus=!1},this.toggleOpen=e=>{e.preventDefault(),this.open?this.hide(!1):this.show()},this.handleEscKey=e=>{27===e.keyCode&&this.hide()},this.handleBlur=e=>{e.stopPropagation(),this.duetBlur.emit({component:"duet-date-picker"})},this.handleFocus=e=>{e.stopPropagation(),this.duetFocus.emit({component:"duet-date-picker"})},this.handleTouchStart=e=>{const t=e.changedTouches[0];this.initialTouchX=t.pageX,this.initialTouchY=t.pageY},this.handleTouchMove=e=>{e.preventDefault()},this.handleTouchEnd=e=>{const t=e.changedTouches[0],n=t.pageX-this.initialTouchX,r=t.pageY-this.initialTouchY,i=Math.abs(n)>=70&&Math.abs(r)<=70,o=Math.abs(r)>=70&&Math.abs(n)<=70&&r>0;i?this.addMonths(n<0?1:-1):o&&(this.hide(!1),e.preventDefault()),this.initialTouchY=null,this.initialTouchX=null},this.handleNextMonthClick=e=>{e.preventDefault(),this.addMonths(1)},this.handlePreviousMonthClick=e=>{e.preventDefault(),this.addMonths(-1)},this.handleFirstFocusableKeydown=e=>{9===e.keyCode&&e.shiftKey&&(this.focusedDayNode.focus(),e.preventDefault())},this.handleKeyboardNavigation=e=>{if(9===e.keyCode&&!e.shiftKey)return e.preventDefault(),void this.firstFocusableElement.focus();var t=!0;switch(e.keyCode){case 39:this.addDays(1);break;case 37:this.addDays(-1);break;case 40:this.addDays(7);break;case 38:this.addDays(-7);break;case 33:e.shiftKey?this.addYears(-1):this.addMonths(-1);break;case 34:e.shiftKey?this.addYears(1):this.addMonths(1);break;case 36:this.startOfWeek();break;case 35:this.endOfWeek();break;default:t=!1}t&&(e.preventDefault(),this.enableActiveFocus())},this.handleDaySelect=(e,t)=>{const n=Ye(t,De(this.min),De(this.max)),r=!this.isDateDisabled(t);n&&r?(this.setValue(t),this.hide()):this.setFocusedDay(t)},this.handleMonthSelect=e=>{this.setMonth(parseInt(e.target.value,10))},this.handleYearSelect=e=>{this.setYear(parseInt(e.target.value,10))},this.handleInputChange=()=>{const e=this.datePickerInput;!function(e,t){const n=e.value,r=e.selectionStart,i=n.slice(0,r),o=n.slice(r,n.length),a=i.replace(t,""),s=a+o.replace(t,""),l=a.length;e.value=s,e.selectionStart=e.selectionEnd=l}(e,tt);const t=this.dateAdapter.parse(e.value,Le);(t||""===e.value)&&this.setValue(t)},this.processFocusedDayNode=e=>{this.focusedDayNode=e,this.activeFocus&&this.open&&setTimeout(()=>e.focus(),0)}}connectedCallback(){this.createDateFormatters()}createDateFormatters(){this.dateFormatShort=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long"}),this.dateFormatLong=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long",year:"numeric"})}handleDocumentClick(e){this.open&&e.composedPath().every(e=>e!==this.dialogWrapperNode&&e!==this.datePickerButton)&&this.hide(!1)}async setFocus(){return this.datePickerInput.focus()}async show(){this.open=!0,this.duetOpen.emit({component:"duet-date-picker"}),this.setFocusedDay(De(this.value)||new Date),clearTimeout(this.focusTimeoutId),this.focusTimeoutId=setTimeout(()=>this.monthSelectNode.focus(),300)}async hide(e=!0){this.open=!1,this.duetClose.emit({component:"duet-date-picker"}),clearTimeout(this.focusTimeoutId),e&&setTimeout(()=>this.datePickerButton.focus(),500)}addDays(e){this.setFocusedDay(Ve(this.focusedDay,e))}addMonths(e){this.setMonth(this.focusedDay.getMonth()+e)}addYears(e){this.setYear(this.focusedDay.getFullYear()+e)}startOfWeek(){this.setFocusedDay(je(this.focusedDay,this.firstDayOfWeek))}endOfWeek(){this.setFocusedDay(qe(this.focusedDay,this.firstDayOfWeek))}setMonth(e){const t=He(Be(this.focusedDay),e),n=We(t),r=He(this.focusedDay,e);this.setFocusedDay(Ue(r,t,n))}setYear(e){const t=Ke(Be(this.focusedDay),e),n=We(t),r=Ke(this.focusedDay,e);this.setFocusedDay(Ue(r,t,n))}setFocusedDay(e){this.focusedDay=Ue(e,De(this.min),De(this.max))}setValue(e){this.value=Oe(e),this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:e})}render(){const e=De(this.value),t=e&&this.dateAdapter.format(e),n=(e||this.focusedDay).getFullYear(),r=this.focusedDay.getMonth(),i=this.focusedDay.getFullYear(),o=De(this.min),a=De(this.max),s=null!=o&&o.getMonth()===r&&o.getFullYear()===i,l=null!=a&&a.getMonth()===r&&a.getFullYear()===i,c=o?o.getFullYear():n-10,u=a?a.getFullYear():n+10;return b(E,null,b("div",{class:"duet-date"},b(Xe,{dateFormatter:this.dateFormatLong,value:this.value,valueAsDate:e,formattedValue:t,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,role:this.role,required:this.required,identifier:this.identifier,localization:this.localization,buttonRef:e=>this.datePickerButton=e,inputRef:e=>this.datePickerInput=e}),b("div",{class:{"duet-date__dialog":!0,"is-left":"left"===this.direction,"is-active":this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},b("div",{class:"duet-date__dialog-content",onKeyDown:this.handleEscKey,ref:e=>this.dialogWrapperNode=e},b("div",{class:"duet-date__mobile",onFocusin:this.disableActiveFocus},b("label",{class:"duet-date__mobile-heading"},this.localization.calendarHeading),b("button",{class:"duet-date__close",ref:e=>this.firstFocusableElement=e,onKeyDown:this.handleFirstFocusableKeydown,onClick:()=>this.hide(),type:"button"},b("svg",{"aria-hidden":"true",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},b("path",{d:"M0 0h24v24H0V0z",fill:"none"}),b("path",{d:"M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"})),b("span",{class:"duet-date__vhidden"},this.localization.closeLabel))),b("div",{class:"duet-date__header",onFocusin:this.disableActiveFocus},b("div",null,b("h2",{id:this.dialogLabelId,class:"duet-date__vhidden","aria-live":"polite","aria-atomic":"true"},this.localization.monthNames[r]," ",this.focusedDay.getFullYear()),b("label",{htmlFor:this.monthSelectId,class:"duet-date__vhidden"},this.localization.monthSelectLabel),b("div",{class:"duet-date__select"},b("select",{id:this.monthSelectId,class:"duet-date__select--month",ref:e=>this.monthSelectNode=e,onChange:this.handleMonthSelect},this.localization.monthNames.map((e,t)=>b("option",{key:e,value:t,selected:t===r,disabled:!Ye(new Date(i,t,1),o?Be(o):null,a?We(a):null)},e))),b("div",{class:"duet-date__select-label","aria-hidden":"true"},b("span",null,this.localization.monthNamesShort[r]),b("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},b("path",{d:"M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"})))),b("label",{htmlFor:this.yearSelectId,class:"duet-date__vhidden"},this.localization.yearSelectLabel),b("div",{class:"duet-date__select"},b("select",{id:this.yearSelectId,class:"duet-date__select--year",onChange:this.handleYearSelect},function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}(c,u).map(e=>b("option",{key:e,selected:e===i},e))),b("div",{class:"duet-date__select-label","aria-hidden":"true"},b("span",null,this.focusedDay.getFullYear()),b("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},b("path",{d:"M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"}))))),b("div",{class:"duet-date__nav"},b("button",{class:"duet-date__prev",onClick:this.handlePreviousMonthClick,disabled:s,type:"button"},b("svg",{"aria-hidden":"true",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 24 24"},b("path",{d:"M14.71 15.88L10.83 12l3.88-3.88c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42z"})),b("span",{class:"duet-date__vhidden"},this.localization.prevMonthLabel)),b("button",{class:"duet-date__next",onClick:this.handleNextMonthClick,disabled:l,type:"button"},b("svg",{"aria-hidden":"true",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 24 24"},b("path",{d:"M9.29 15.88L13.17 12 9.29 8.12c-.39-.39-.39-1.02 0-1.41.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42z"})),b("span",{class:"duet-date__vhidden"},this.localization.nextMonthLabel)))),b(Je,{dateFormatter:this.dateFormatShort,selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,localization:this.localization,firstDayOfWeek:this.firstDayOfWeek,focusedDayRef:this.processFocusedDayNode,min:o,max:a,isDateDisabled:this.isDateDisabled})))))}get element(){return this}static get watchers(){return{localization:["createDateFormatters"]}}static get style(){return'.duet-date *,.duet-date *::before,.duet-date *::after{box-sizing:border-box;margin:0;width:auto}.duet-date{box-sizing:border-box;color:var(--duet-color-text);display:block;font-family:var(--duet-font);margin:0;position:relative;text-align:left;width:100%}.duet-date__input{-webkit-appearance:none;appearance:none;background:var(--duet-color-surface);border:1px solid var(--duet-color-border, var(--duet-color-text));border-radius:var(--duet-radius);color:var(--duet-color-text);float:none;font-family:var(--duet-font);font-size:100%;line-height:normal;padding:14px 60px 14px 14px;width:100%}.duet-date__input:focus{border-color:var(--duet-color-primary);box-shadow:0 0 0 1px var(--duet-color-primary);outline:0}.duet-date__input::-webkit-input-placeholder{color:var(--duet-color-placeholder);opacity:1}.duet-date__input:-moz-placeholder{color:var(--duet-color-placeholder);opacity:1}.duet-date__input:-ms-input-placeholder{color:var(--duet-color-placeholder)}.duet-date__input-wrapper{position:relative;width:100%}.duet-date__toggle{-moz-appearance:none;-webkit-appearance:none;-webkit-user-select:none;align-items:center;appearance:none;background:var(--duet-color-button);border:0;border-radius:0;border-bottom-right-radius:var(--duet-radius);border-top-right-radius:var(--duet-radius);box-shadow:inset 1px 0 0 rgba(0, 0, 0, 0.1);color:var(--duet-color-text);cursor:pointer;display:flex;height:calc(100% - 2px);justify-content:center;padding:0;position:absolute;right:1px;top:1px;user-select:none;width:48px;z-index:2}.duet-date__toggle:focus{box-shadow:0 0 0 2px var(--duet-color-primary);outline:0}.duet-date__toggle-icon{display:flex;flex-basis:100%;justify-content:center;align-items:center}.duet-date__dialog{display:flex;left:0;min-width:320px;opacity:0;position:absolute;top:100%;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;visibility:hidden;width:100%;will-change:transform, opacity, visibility;z-index:var(--duet-z-index)}@media (max-width: 35.9375em){.duet-date__dialog{background:var(--duet-color-overlay);bottom:0;position:fixed;right:0;top:0;transform:translateZ(0);transform-origin:bottom center}}.duet-date__dialog.is-left{left:auto;right:0;width:auto}.duet-date__dialog.is-active{opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.duet-date__dialog-content{background:var(--duet-color-surface);border:1px solid rgba(0, 0, 0, 0.1);border-radius:var(--duet-radius);box-shadow:0 4px 10px 0 rgba(0, 0, 0, 0.1);margin-left:auto;margin-top:8px;max-width:310px;min-width:290px;padding:16px 16px 20px;position:relative;transform:none;width:100%;z-index:var(--duet-z-index)}@media (max-width: 35.9375em){.duet-date__dialog-content{border:0;border-radius:0;border-top-left-radius:var(--duet-radius);border-top-right-radius:var(--duet-radius);bottom:0;left:0;margin:0;max-width:none;min-height:26em;opacity:0;padding:0 8% 20px;position:absolute;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;visibility:hidden;will-change:transform, opacity, visibility}.is-active .duet-date__dialog-content{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}}.duet-date__table{border-collapse:collapse;border-spacing:0;color:var(--duet-color-text);font-size:1rem;font-weight:var(--duet-font-normal);line-height:1.25;text-align:center;width:100%}.duet-date__table-header{font-size:0.75rem;font-weight:var(--duet-font-bold);letter-spacing:1px;line-height:1.25;padding-bottom:8px;text-decoration:none;text-transform:uppercase}.duet-date__cell{text-align:center}.duet-date__day{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;color:var(--duet-color-text);cursor:pointer;display:inline-block;font-family:var(--duet-font);font-size:0.875rem;font-variant-numeric:tabular-nums;font-weight:var(--duet-font-normal);height:36px;line-height:1.25;padding:0 0 1px;position:relative;text-align:center;vertical-align:middle;width:36px;z-index:1}.duet-date__day.is-today{box-shadow:0 0 0 1px var(--duet-color-primary);position:relative;z-index:200}.duet-date__day:hover::before,.duet-date__day.is-today::before{background:var(--duet-color-primary);border-radius:50%;bottom:0;content:"";left:0;opacity:0.06;position:absolute;right:0;top:0}.duet-date__day[aria-pressed=true],.duet-date__day:focus{background:var(--duet-color-primary);box-shadow:none;color:var(--duet-color-text-active);outline:0}.duet-date__day:active{background:var(--duet-color-primary);box-shadow:0 0 5px var(--duet-color-primary);color:var(--duet-color-text-active);z-index:200}.duet-date__day:focus{box-shadow:0 0 5px var(--duet-color-primary);z-index:200}.duet-date__day:not(.is-month){box-shadow:none}.duet-date__day:not(.is-month),.duet-date__day[aria-disabled=true]{background:transparent;color:var(--duet-color-text);cursor:default;opacity:0.5}.duet-date__day[aria-disabled=true].is-today{box-shadow:0 0 0 1px var(--duet-color-primary)}.duet-date__day[aria-disabled=true].is-today:focus{box-shadow:0 0 5px var(--duet-color-primary);background:var(--duet-color-primary);color:var(--duet-color-text-active)}.duet-date__day[aria-disabled=true]:not(.is-today)::before{display:none}.duet-date__day.is-outside{background:var(--duet-color-button);box-shadow:none;color:var(--duet-color-text);cursor:default;opacity:0.6;pointer-events:none}.duet-date__day.is-outside::before{display:none}.duet-date__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px;width:100%}.duet-date__nav{white-space:nowrap}.duet-date__prev,.duet-date__next{-moz-appearance:none;-webkit-appearance:none;align-items:center;appearance:none;background:var(--duet-color-button);border:0;border-radius:50%;color:var(--duet-color-text);cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;padding:0;transition:background-color 300ms ease;width:32px}@media (max-width: 35.9375em){.duet-date__prev,.duet-date__next{height:40px;width:40px}}.duet-date__prev:focus,.duet-date__next:focus{box-shadow:0 0 0 2px var(--duet-color-primary);outline:0}.duet-date__prev:active:focus,.duet-date__next:active:focus{box-shadow:none}.duet-date__prev:disabled,.duet-date__next:disabled{cursor:default;opacity:0.5}.duet-date__prev svg,.duet-date__next svg{margin:0 auto}.duet-date__select{display:inline-flex;margin-top:4px;position:relative}.duet-date__select span{margin-right:4px}.duet-date__select select{cursor:pointer;font-size:1rem;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:2}.duet-date__select select:focus+.duet-date__select-label{box-shadow:0 0 0 2px var(--duet-color-primary)}.duet-date__select-label{align-items:center;border-radius:var(--duet-radius);color:var(--duet-color-text);display:flex;font-size:1.25rem;font-weight:var(--duet-font-bold);line-height:1.25;padding:0 4px 0 8px;pointer-events:none;position:relative;width:100%;z-index:1}.duet-date__select-label svg{width:16px;height:16px}.duet-date__mobile{align-items:center;border-bottom:1px solid rgba(0, 0, 0, 0.12);display:flex;justify-content:space-between;margin-bottom:20px;margin-left:-10%;overflow:hidden;padding:12px 20px;position:relative;text-overflow:ellipsis;white-space:nowrap;width:120%}@media (min-width: 36em){.duet-date__mobile{border:0;margin:0;overflow:visible;padding:0;position:absolute;right:-8px;top:-8px;width:auto}}.duet-date__mobile-heading{display:inline-block;font-weight:var(--duet-font-bold);max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date__mobile-heading{display:none}}.duet-date__close{-webkit-appearance:none;align-items:center;appearance:none;background:var(--duet-color-button);border:0;border-radius:50%;color:var(--duet-color-text);cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;width:24px}@media (min-width: 36em){.duet-date__close{opacity:0}
2}.duet-date__close:focus{box-shadow:0 0 0 2px var(--duet-color-primary);outline:none}@media (min-width: 36em){.duet-date__close:focus{opacity:1}}.duet-date__close svg{margin:0 auto}.duet-date__vhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;top:0;width:1px}'}},rt=se(nt,[0,"duet-date-picker",{name:[1],identifier:[1],disabled:[516],role:[1],direction:[1],required:[4],value:[1537],min:[1],max:[1],firstDayOfWeek:[2,"first-day-of-week"],localization:[16],dateAdapter:[16],isDateDisabled:[16],activeFocus:[32],focusedDay:[32],open:[32]},[[6,"click","handleDocumentClick"]]]);var it=n(7111),ot=n(5556),at=n.n(ot),st=n(1468),lt=n(8131),ct=n(8203),ut=n(6360),dt=n(3913),ht=n(8623),mt=n(7353),pt=n(4743),ft=n.n(pt),gt=n(3807),vt=n(2890),yt=n(5071),bt=n(7137),wt=n(6942),Et=n.n(wt);function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_t.apply(null,arguments)}const Tt=({items:e,className:t,...n})=>r.createElement("ul",_t({className:Et()("rw-iconed-list",t)},n),e.map(({icon:e,text:t},n)=>r.createElement("li",{className:"rw-iconed-list__item",key:n},r.createElement(bt.A,{icon:e,className:"rw-iconed-list__icon rw-icon--sm",color:"finaviaBlueDark","aria-hidden":!0}),r.createElement("span",null,t))));Tt.propTypes={items:at().arrayOf(at().shape({icon:at().string.isRequired,text:at().string.isRequired})),className:at().string};const xt=Tt;var St=n(1909);const Nt=({links:e,wide:t})=>r.createElement("div",{className:Et()({"airport__quick-links--wide":t,"airport__quick-links":!t})},e.map(({title:e,url:t,class:n},i)=>r.createElement("a",{href:t,className:n,key:i},e)));Nt.propTypes={links:at().arrayOf(at().shape({title:at().string.isRequired,url:at().string.isRequired,class:at().string.isRequired})),wide:at().bool};const $t=Nt;var kt=n(7047),At=n(9814),Ct=n(206);const Mt={...vt.I0,...vt.Pr},Rt=({label:e,value:t})=>r.createElement("div",{className:"flight-details-item"},r.createElement("div",{className:"flight-details-item__label"},e),r.createElement("div",{className:"flight-details-item__value"},t));Rt.propTypes={label:at().string.isRequired,value:at().oneOfType([at().PropTypes.string,at().node]).isRequired};const Ft=({sdt:e,altTime:t,newTime:n,origin:i,statusCode:o,statusText:a,gate:s,terminal:l,flightNumbers:c,destination:u,destinationAirport:d,chkdsk:h,belt:m,bltStatus:p,isDepartingFlight:f,homeAirport:g,pushSubscription:v})=>{var y;return r.createElement("div",{className:"flight-details"},r.createElement("div",{className:"flight-details__container"},r.createElement("h1",{className:"flight-details__origin-destination","aria-label":f?Mt.destination:Mt.from},f?u:i),r.createElement("div",{className:"flight-details__flight-number","aria-label":Mt.flightNumbers},c),a&&r.createElement(Ct.A,{statusCode:o,sdt:e,newTime:n,statusText:a,large:!0,className:"flight-details__flight-status","aria-label":Mt.status}),r.createElement("div",{className:"flight-details__row"},r.createElement(Rt,{label:f?Mt.departureTime:Mt.arrivalTime,value:r.createElement(r.Fragment,null,r.createElement("div",{"aria-label":Mt.scheduledTime,className:Et()({linethrough:t})},(0,it.fU)(e)),t&&r.createElement("div",{className:"flight-details__alt-time","aria-label":Mt.estimatedTime},(0,it.fU)(t)))}),r.createElement(Rt,{label:f?Mt.departureDate:Mt.arrivalDate,value:(0,it.hy)(e)})),r.createElement("div",{className:"flight-details__row"},"HEL"!==g&&r.createElement(Rt,{label:Mt.terminal,value:(null==l||null===(y=l.slice)||void 0===y?void 0:y.call(l,0,2))||"-"}),f?r.createElement(r.Fragment,null,r.createElement(Rt,{label:Mt.gate,value:s||"-"}),"HEL"===g&&r.createElement(Rt,{label:Mt.checkinDesk,value:h||"-"})):r.createElement(r.Fragment,null,"HEL"===(null==d?void 0:d.iataCode)&&r.createElement(Rt,{label:Mt.beltNumber,value:m||"-"}),r.createElement(Rt,{label:Mt.beltStatus,value:m?r.createElement("span",{className:"flight-details__belt flight-status flight-status--belt"},(0,it.L_)(p)):"-"})))))};Ft.propTypes={...ct.Ky,isAddedToMyFlights:at().bool.isRequired,isDepartingFlight:at().bool.isRequired};const Lt=Ft;var Dt=n(1657);const Ot=({toFlightsPage:e})=>{const t=(0,r.useMemo)(()=>(0,it.bk)({toFlightsPage:e}),[]);return r.createElement("select",{className:"airport-select__button button button--bg-blue button--select","aria-label":vt.I0.selectAirport,onChange:e=>{const t=e.target.value;t&&(window.location.href=t)}},r.createElement("option",{selected:!0,disabled:!0},vt.I0.selectAirport),t.map(({url:e,name:t,code:n})=>r.createElement("option",{value:e,key:n},t)))};Ot.propTypes={toFlightsPage:at().bool.isRequired};const Pt=Ot,It=({airportContext:e})=>{const t=o.C.IS_WEBGUIDE?o.C.WEBGUIDE_FLIGHTS_PAGE:e.flightsPage;return r.createElement("div",{className:"myflights__empty"},r.createElement("h1",{className:"myflights-empty__title"},vt.I0.myFlightsEmptyTitle),t?r.createElement("div",{className:"button-container--row"},r.createElement("a",{href:`${t}?tab=arr`,className:"rw-button rw-button--primary"},vt.I0.arrivals),r.createElement("a",{href:`${t}?tab=dep`,className:"rw-button rw-button--primary"},vt.I0.departures)):(0,it.OQ)()?r.createElement("div",{className:"myflights-empty__select"},r.createElement(Pt,{toFlightsPage:!0})):r.createElement("div",{className:"myflights-empty__select"},r.createElement(Dt.A,{toFlightsPage:!0})))};It.propTypes={airportContext:ct.J1.isRequired};const Vt=(0,st.Ng)(e=>({airportContext:e.uiState.airportContext}))(It);var jt=n(375),qt=n(809),Bt=n(1233);const Wt=({isLoading:e,securityLanesData:t,flight:n})=>{var i;const[a,s]=(0,r.useState)(!1);if(!o.Gg||!n)return null;const{homeAirport:l,isDepartingFlight:c,terminal:u,boardingTime:d}=n;return"HEL"===l&&c&&r.createElement(r.Fragment,null,r.createElement("div",{className:"myflights__security-waiting-time__header"},r.createElement("span",{className:"myflights-security-waiting-time__label"},vt.n0.securityLanesLabel),r.createElement("div",{className:"myflights-security-waiting-time"},!0===e&&r.createElement(qt.A,null),t.length>0?t.map(e=>r.createElement("span",{key:e,className:"myflights-security-waiting-time__terminal"}
2,e)):r.createElement("strong",null,vt.n0.securityWaitingTimeNoDataAvailable)),o.f9&&r.createElement("button",{className:Et()("myflights__toggle-chart",{"myflights__toggle-chart--open":a}),onClick:()=>s(!a)},vt.Pr.securityWaitingTimeChartButtonLabel)),o.f9&&a&&r.createElement("div",{className:"myflights-security-waiting-time-chart"},r.createElement(Bt.A,{defaultTerminal:null==u||null===(i=u.slice)||void 0===i?void 0:i.call(u,0,2),boardingTime:d,showTOC:!0})))};Wt.propTypes={isLoading:at().bool.isRequired,securityLanesData:at().arrayOf(at().string),flight:at().shape(ct.Ky)},(0,st.Ng)(function(e){return{isLoading:e.securityWaitingTime.summary.isLoading,securityLanesData:(0,it.Rp)(e.securityWaitingTime.summary.Report,e.securityWaitingTime.stats.data)}},ht.A)(Wt);var Ht=n(9041);const Kt=({text:e})=>e?r.createElement("div",{className:"flight-saved-overlay"},r.createElement("div",{className:"flight-saved-overlay__content"},e)):null;Kt.propTypes={text:at().string};const Yt=Kt;function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ut.apply(null,arguments)}const zt={...vt.Pr,...vt.I0},Gt={arrows:!0,speed:500,infinite:!1,slidesToShow:2,slidesToScroll:2,responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]},Xt=({myFlights:e,concurrentLoading:t,flightDetails:n,flightDetailsOpen:i,removeFromMyFlights:a,addToMyFlights:s,flightsByAirports:l,fetchHistoricFlights:c,historicFlightsLoading:u,notifyMyFlightStatusChange:d,gaDataLayerPush:h})=>{var m,p;const[f,g]=(0,r.useState)(0),[v,y]=(0,r.useState)(!1),{isSmallUp:b}=(0,dt.Gu)(["smallUp"]),w=(0,r.useRef)(),E=(0,dt.ZC)(e),_=(0,dt.ZC)(i),T={adaptiveHeight:!1,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1,afterChange:e=>g(e),prevArrow:r.createElement(yt.A,{direction:"left",size:b?"lg":"md"}),nextArrow:r.createElement(yt.A,{direction:"right",size:b?"lg":"md"})};(0,r.useEffect)(()=>{if(!u){const t=e.filter(({homeAirport:e,sdt:t})=>l.some(({code:t,lastUpdated:n})=>t===e&&n)&&!t);t.length>0&&c(t)}E&&e.forEach(e=>{const t=E.find(t=>t.tag===e.tag);t&&"HEL"!==e.homeAirport&&d(e,t)})},[e]),(0,r.useEffect)(()=>{e.forEach(e=>{e.isDepartingFlight?"DEP"!==e.statusCode&&"D"!==e.statusCode||a(e):("completed"===e.bltStatus||""!==e.actualTime&&(0,it.TD)(e.actualTime)||""!==e.sdt&&(0,it.TD)(e.sdt))&&a(e)})},[]);const x=((e,t)=>{const n=e.filter(({sdt:e})=>e).map(e=>({...e,isAddedToMyFlights:!0}));return t&&!n.some(({tag:e})=>e===t.tag)&&n.push(t),n.sort((e,t)=>ft()(e.sdt).isBefore(t.sdt)?1:-1)})(e,n),S=x[f]||x[0]||{},N=(0,it.Qs)(S.homeAirport).map(e=>({...e,url:(0,it.cd)(e.url,"flight-plan")})),$=null!==(m=null===(p=o.C.ALL_AIRPORTS.find(e=>e.code===S.homeAirport))||void 0===p?void 0:p.flight_details_services)&&void 0!==m?m:[];(0,r.useEffect)(()=>{if(!1===_&&!0===i){const e=n&&x.findIndex(e=>e.tag===n.tag);w.current&&n&&e!==f?w.current.slickGoTo(e):x.length>0&&h("viewFlightDetails",S)}},[i]),(0,r.useEffect)(()=>{!0===i&&h("viewFlightDetails",S)},[f]);const k=e=>{e.isAddedToMyFlights?(y(zt.FlightRemovedOverlayText),setTimeout(()=>{y(null),a(e)},1500)):(y(zt.FlightSavedOverlayText),setTimeout(()=>{y(null)},1500),s(e))};return r.createElement(r.Fragment,null,v&&r.createElement(Yt,{text:v}),r.createElement("div",{className:"myflights"},x.length>0?r.createElement(r.Fragment,null,r.createElement("div",{className:"myflights__top"},r.createElement("div",{className:"myflights__last-updated"},`${zt.flightDetailsLastUpdatedPrefix} ${(0,it.fU)((0,it.QA)(l,S.homeAirport))}`)),r.createElement(kt.A,Ut({ref:w},T),x.map(e=>r.createElement("div",{key:e.tag},r.createElement("div",{className:"myflights__flight-info"},t&&r.createElement(St.A,null),r.createElement("div",{key:`a${e.tag}`},r.createElement(Lt,Ut({},e,{handleToggleMyFlights:k}))),!1),"HEL"===e.homeAirport&&r.createElement(r.Fragment,null,e.isDepartingFlight&&r.createElement(jt.A,{key:`preferences-${e.tag}`,defaultFlightNumbers:e.flightNumbers,flightId:e.id,defaultFlightDate:e.sdt,flightBeltStatus:e.bltStatus,flightStatusCode:e.statusCode,flightDetailsOpen:i}
2)),"HEL"!==e.homeAirport&&r.createElement("div",{className:"myflights__save",key:`e${e.tag}`},r.createElement("p",{className:"rw-responsive-heading--tiny rw-font-weight-middle myflights__save-heading"},zt.saveFlightTitle),r.createElement("div",{className:"myflights__save-body"},r.createElement(xt,{items:[{icon:"checkmark",text:zt.saveFlightText1},{icon:"checkmark",text:zt.saveFlightText2},{icon:"cross",text:zt.saveFlightText3}]}),r.createElement("div",{className:"myflights__save-toggle"},r.createElement(At.A,{label:zt.toggleSaveFlightLabel,checked:e.isAddedToMyFlights,onChange:()=>k({tag:e.tag,sdt:e.sdt,homeAirport:e.homeAirport,isDepartingFlight:e.isDepartingFlight,isAddedToMyFlights:e.isAddedToMyFlights})}))))))),"HEL"!==S.homeAirport&&r.createElement(r.Fragment,null,N.length>0&&!o.C.IS_WEBGUIDE&&r.createElement("div",{className:"myflights-quicklinks"},r.createElement("h2",{className:"myflights-quicklinks__title"},zt.quickLinksTitle),r.createElement($t,{links:N})),$.map(({title:e,categoryId:t})=>r.createElement(Ht.A,{title:e,categoryId:parseInt(t),sliderSettings:Gt,key:t,navref:"flight-carousel"})))):r.createElement(Vt,null)))};Xt.propTypes={myFlights:at().arrayOf(at().oneOfType([at().shape({...ct.Ky,isDepartingFlight:at().bool.isRequired}),at().shape({tag:at().string.isRequired,homeAirport:at().string.isRequired,isLoading:at().bool})])).isRequired,concurrentLoading:at().bool.isRequired,removeFromMyFlights:at().func.isRequired,addToMyFlights:at().func.isRequired,gaDataLayerPush:at().func.isRequired,fetchHistoricFlights:at().func.isRequired,notifyMyFlightStatusChange:at().func.isRequired,historicFlightsLoading:at().bool.isRequired,flightsByAirports:at().arrayOf(at().shape({lastUpdated:at().string.isRequired})),flightDetails:at().shape(ct.Ky),flightDetailsOpen:at().bool.isRequired};const Zt=(0,st.Ng)(function(e){const{tag:t,arrOrDep:n,homeAirport:r}=e.uiState.activeFlightDetails,i=r&&n&&t?{...(0,it.x7)(r.toLowerCase(),n,e.flightList.flightsByAirports,t),isAddedToMyFlights:!1}:null;return{myFlights:(0,gt.W1)(e),concurrentLoading:(0,gt.L_)(e),flightsByAirports:e.flightList.flightsByAirports,historicFlightsLoading:e.myFlights.historicFlights.loading,flightDetailsOpen:"myflights"===e.uiState.activeHeaderIcon,flightDetails:i}},ht.A)(Xt),Jt=({myFlights:e,registerAirportFlightsUpdater:t,clearAirportFlightsUpdater:n})=>{const i=()=>{e.map(e=>e.airport).filter((e,t,n)=>n.indexOf(e)===t).forEach(e=>{t(e)})};(0,r.useEffect)(()=>{o.C.FLIGHTS_AIRPORT&&t(o.C.FLIGHTS_AIRPORT),i()},[]),(0,r.useEffect)(()=>{i()},[e]);const a=(0,r.useCallback)(()=>{n()},[]);return(0,dt.ML)("beforeunload",a),r.createElement(Zt,null)};Jt.propTypes={registerAirportFlightsUpdater:at().func.isRequired,clearAirportFlightsUpdater:at().func.isRequired,myFlights:at().arrayOf(at().shape({tag:at().string.isRequired,airport:at().string.isRequired})).isRequired,flightsByAirports:at().arrayOf(at().shape({code:at().string.isRequired,arr:at().arrayOf(at().shape(ct.Ky)),dep:at().arrayOf(at().shape(ct.Ky))})).isRequired,registerMyFlightsUpdater:at().func.isRequired};const Qt=(0,st.Ng)(function(e){return{myFlights:e.myFlights.flights,flightsByAirports:e.flightList.flightsByAirports}},ht.A)(Jt),en=(0,ut.N)(()=>r.createElement(st.Kq,{store:mt.Ay},r.createElement(lt.Q,{persistor:mt.qj},r.createElement(Qt,null))));var tn=n(4976),nn=n(5902),rn=n(3131);const on=({isOpen:e,children:t,id:n,withCloseButton:i=!0})=>{const o=(0,r.useRef)(),a=(0,dt.ZC)(e),s=(0,st.wA)();return(0,r.useEffect)(()=>{e&&!a&&o.current&&(o.current.scrollTop=0)},[e]),r.createElement("div",{className:Et()("overlay-right",{"overlay-right--open":e}),"aria-hidden":!e,id:n},r.createElement("div",{className:"overlay-right__container",ref:o},i&&r.createElement("button",{className:"overlay-right__close rw-button rw-button--plain-blue rw-button--icon",onClick:()=>s((0,rn.setActiveHeaderIcon)("")),disabled:!e},vt.Pr.flightDetailsCloseButtonLabel,r.createElement(bt.A,{icon:"cross",className:"rw-icon--md@sm rw-icon--xl@md"})),r.createElement("div",{className:"overlay-right__content"},t)))};on.propTypes={isOpen:at().bool.isRequired,id:at().string.isRequired,children:at().oneOfType([at().node,at().arrayOf(at().node)]).isRequired,withCloseButton:at().bool};const an=on;n(2557);var sn=n(1196),ln=n.n(sn);
2var cn=n(312),un=n.n(cn),dn=n(961),hn=n(5732);function mn({notification:e}){const t=(0,st.wA)(),{uid:n,level:i,title:o,message:a,autoDismiss:s}=e;return(0,r.useEffect)(()=>{if(s){const e=setTimeout(()=>t((0,hn._b)(n)),1e3*s);return()=>clearTimeout(e)}},[n,s,t]),r.createElement("div",{className:`rw-notification rw-notification--${i}`,"aria-label":"notice","aria-live":"polite",role:"region"},r.createElement("h2",{className:"rw-notification__content"},o&&r.createElement("strong",null,o," "),a),r.createElement("button",{type:"button",className:"rw-notification__close","aria-label":"Close Notification",onClick:()=>t((0,hn._b)(n))}))}mn.propTypes={notification:at().shape({uid:at().string.isRequired,level:at().string.isRequired,title:at().string,message:at().string,autoDismiss:at().oneOfType([at().number,at().bool])}).isRequired};const pn=function(){const e=(0,st.d4)(e=>e.notifications);return e.length?(0,dn.createPortal)(r.createElement("div",{className:"rw-notification-container"},e.map(e=>r.createElement(mn,{key:e.uid,notification:e}))),document.body):null},fn=({notifications:e})=>{const t=[...e].pop()||{},{title:n="",message:i="",action:o={},uid:a}=t,s=`${n}. ${i} ${o.label||""}.`;return r.createElement("div",{role:"status","aria-live":"polite","aria-atomic":!0,className:"visually-hidden"},t?r.createElement("span",{className:`notification-announcement-${a}`},s):null)};fn.propTypes={notifications:at().array.isRequired};const gn=fn;function vn(){const e=(0,st.d4)(e=>e.notifications),t=(0,st.d4)(e=>e.uiState.activeHeaderIcon),n=(0,st.wA)();return(0,r.useEffect)(()=>{un().setAppElement("#root")},[]),(0,r.useEffect)(()=>{(0,it.My)()},[]),r.createElement(tn.rI,{history:mt.b6},r.createElement(pn,null),r.createElement(gn,{notifications:e}),t&&r.createElement("div",{className:Et()("js-toolbar-dropdown-overlay",{"js-toolbar-dropdown-overlay--over-header":"myflights"===t||"myaccount"===t}),onClick:()=>n((0,rn.setActiveHeaderIcon)("")),role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&n((0,rn.setActiveHeaderIcon)(""))}),r.createElement(an,{id:"myflights",isOpen:"myflights"===t},r.createElement(en,null)),!o.C.IS_WEBGUIDE&&r.createElement(an,{id:"myaccount",isOpen:"myaccount"===t},r.createElement("div",null)))}customElements.define("duet-date-picker",rt),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}),Array.from||(Array.from=function(){var e;try{e=Symbol.iterator?Symbol.iterator:"Symbol(Symbol.iterator)"}catch(t){e="Symbol(Symbol.iterator)"}var t=Object.prototype.toString,n=function(e){return"function"==typeof e||"[object Function]"===t.call(e)},r=Math.pow(2,53)-1;return function(t){var i=Object(t),o=n(i[e]);if(null==t&&!o)throw new TypeError("Array.from requires an array-like object or iterator - not null or undefined");var a,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!n(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(a=arguments[2])}var l=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),r)}(i.length);return function(e,t,n,r,i,o){for(var a=0;a<n||i;){var s=r(a),l=i?s.value:s;if(i&&s.done)return t;t[a]=o?void 0===e?o(l,a):o.call(e,l,a):l,a+=1}if(i)throw new TypeError("Array.from: provided arrayLike or iterator has length more then 2 ** 52 - 1");return t.length=n,t}(a,n(this)?Object(new this(l)):new Array(l),l,function(t,n){var r=t&&n[e]();return function(e){return t?r.next():n[e]}}(o,i),o,s)}}()),ln().polyfill();const yn=()=>r.createElement(nn.vd,null,r.createElement(st.Kq,{store:mt.Ay},r.createElement(lt.Q,{persistor:mt.qj},r.createElement(vn,null)))),bn=document.getElementById("app-portal");(0,i.createRoot)(bn).render(r.createElement(yn,null))},4840(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9325(e,t,n){var r=n(4840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},8221(e,t,n){var r=n(3805),i=n(124),o=n(9374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,m,p=0,f=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-m;return void 0===m||n>=t||n<0||g&&e-p>=u}function w(){var e=i();if(b(e))return E(e);h=setTimeout(w,function(e){var n=t-(e-m);return g?s(n,u-(e-p)):n}(e))}function E(e){return h=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=i(),n=b(e);if(l=arguments,c=this,m=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(w,t),f?y(e):d}(m);if(g)return clearTimeout(h),h=setTimeout(w,t),y(m)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(f=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=m=c=h=void 0},_.flush=function(){return void 0===h?d:E(i())},_}},124(e,t,n){var r=n(9325);e.exports=function(){return r.Date.now()}},9374(e){e.exports=function(e){return e}},9698(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},4848(e,t,n){"use strict";e.exports=n(9698)},1196(e){!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,r=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?m.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):m.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;
2if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function u(t,n){var r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(e){var t=c(e,"Y")&&u(e,"Y"),n=c(e,"X")&&u(e,"X");return t||n}function h(t){var n,r,i,a,s=(o()-t.startTime)/468;a=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*a)),r=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,i),r===t.x&&i===t.y||e.requestAnimationFrame(h.bind(e,t))}function m(n,r,a){var l,c,u,d,m=o();n===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),h({scrollable:l,method:d,startTime:m,startX:c,startY:u,x:r,y:a})}}}}()},7330(e,t,n){"use strict";var r=n(6105);e.exports=r},1936(e,t,n){"use strict";n(1392);var r=n(7015);e.exports=r("String","startsWith")},2557(e,t,n){"use strict";n(1635)},1635(e,t,n){"use strict";var r=n(7330);e.exports=r},9306(e,t,n){"use strict";var r=n(4901),i=n(6823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},8551(e,t,n){"use strict";var r=n(34),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},9617(e,t,n){"use strict";var r=n(5397),i=n(5610),o=n(6198),a=function(e){return function(t,n,a){var s=r(t),l=o(s);if(0===l)return!e&&-1;var c,u=i(a,l);if(e&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2195(e,t,n){"use strict";var r=n(9504),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},6955(e,t,n){"use strict";var r=n(2140),i=n(4901),o=n(2195),a=n(8227)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},7740(e,t,n){"use strict";var r=n(9297),i=n(5031),o=n(7347),a=n(4913);e.exports=function(e,t,n){for(var s=i(t),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},1436(e,t,n){"use strict";var r=n(8227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},6699(e,t,n){"use strict";var r=n(3724),i=n(4913),o=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6980(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6840(e,t,n){"use strict";var r=n(4901),i=n(4913),o=n(283),a=n(9433);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},9433(e,t,n){"use strict";var r=n(4576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},3724(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(e,t,n){"use strict";var r=n(4576),i=n(34),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},7015(e,t,n){"use strict";var r=n(4576),i=n(9504);e.exports=function(e,t){return i(r[e].prototype[t])}},8727(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839(e,t,n){"use strict";var r=n(4576).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},9519(e,t,n){"use strict";var r,i,o=n(4576),a=n(2839),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>
vendor: 4,245 bytes, line 2
20&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},6518(e,t,n){"use strict";var r=n(4576),i=n(7347).f,o=n(6699),a=n(6840),s=n(9433),l=n(7740),c=n(2796);e.exports=function(e,t){var n,u,d,h,m,p=e.target,f=e.global,g=e.stat;if(n=f?r:g?r[p]||s(p,{}):r[p]&&r[p].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(m=i(n,u))&&m.value:n[u],!c(f?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,e)}}},9039(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},616(e,t,n){"use strict";var r=n(9039);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9565(e,t,n){"use strict";var r=n(616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350(e,t,n){"use strict";var r=n(3724),i=n(9297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},7476(e,t,n){"use strict";var r=n(2195),i=n(9504);e.exports=function(e){if("Function"===r(e))return i(e)}},9504(e,t,n){"use strict";var r=n(616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},7751(e,t,n){"use strict";var r=n(4576),i=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},5966(e,t,n){"use strict";var r=n(9306),i=n(4117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},4576(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297(e,t,n){"use strict";var r=n(9504),i=n(8981),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},421(e){"use strict";e.exports={}},5917(e,t,n){"use strict";var r=n(3724),i=n(9039),o=n(4055);e.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055(e,t,n){"use strict";var r=n(9504),i=n(9039),o=n(2195),a=Object,s=r("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},3706(e,t,n){"use strict";var r=n(9504),i=n(4901),o=n(7629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},1181(e,t,n){"use strict";var r,i,o,a=n(8622),s=n(4576),l=n(34),c=n(6699),u=n(9297),d=n(7629),h=n(6119),m=n(421),p="Object already initialized",f=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new f(p);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(u(e,y))throw new f(p);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}},4901(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796(e,t,n){"use strict";var r=n(9039),i=n(4901),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},4117(e){"use strict";e.exports=function(e){return null==e}},34(e,t,n){"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},6395(e){"use strict";e.exports=!1},788(e,t,n){"use strict";var r=n(34),i=n(2195),o=n(8227)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}}
vendor: 4,977 bytes, line 2
2,757(e,t,n){"use strict";var r=n(7751),i=n(4901),o=n(1625),a=n(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},6198(e,t,n){"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},283(e,t,n){"use strict";var r=n(9504),i=n(9039),o=n(4901),a=n(9297),s=n(3724),l=n(350).CONFIGURABLE,c=n(3706),u=n(1181),d=u.enforce,h=u.get,m=String,p=Object.defineProperty,f=r("".slice),g=r("".replace),v=r([].join),y=s&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===f(m(t),0,7)&&(t="["+g(m(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return o(this)&&h(this).source||c(this)},"toString")},741(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},511(e,t,n){"use strict";var r=n(788),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},4913(e,t,n){"use strict";var r=n(3724),i=n(5917),o=n(8686),a=n(8551),s=n(6969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",m="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=u(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347(e,t,n){"use strict";var r=n(3724),i=n(9565),o=n(8773),a=n(6980),s=n(5397),l=n(6969),c=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},8480(e,t,n){"use strict";var r=n(1828),i=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},3717(e,t){"use strict";t.f=Object.getOwnPropertySymbols},1625(e,t,n){"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1828(e,t,n){"use strict";var r=n(9504),i=n(9297),o=n(5397),a=n(9617).indexOf,s=n(421),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},8773(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4270(e,t,n){"use strict";var r=n(9565),i=n(4901),o=n(34),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},5031(e,t,n){"use strict";var r=n(7751),i=n(9504),o=n(8480),a=n(3717),s=n(8551),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},7750(e,t,n){"use strict";var r=n(4117),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},6119(e,t,n){"use strict";var r=n(5745),i=n(3392),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},7629(e,t,n){"use strict";var r=n(6395),i=n(4576),o=n(9433),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(e,t,n){"use strict";var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},4495(e,t,n){"use strict";var r=n(9519),i=n(9039),o=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610(e,t,n){"use strict";var r=n(1291),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5397(e,t,n){"use strict";var r=n(7055),i=n(7750);e.exports=function(e){return r(i(e))}},1291(e,t,n){"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8014(e,t,n){"use strict";var r=n(1291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},8981(e,t,n){"use strict";var r=n(7750),i=Object;e.exports=function(e){return i(r(e))}}
2,2777(e,t,n){"use strict";var r=n(9565),i=n(34),o=n(757),a=n(5966),s=n(4270),l=n(8227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969(e,t,n){"use strict";var r=n(2777),i=n(757);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},2140(e,t,n){"use strict";var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},3036(e,t,n){"use strict";var r=n(6955),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},6823(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392(e,t,n){"use strict";var r=n(9504),i=0,o=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},7040(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686(e,t,n){"use strict";var r=n(3724),i=n(9039);e.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622(e,t,n){"use strict";var r=n(4576),i=n(4901),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},8227(e,t,n){"use strict";var r=n(4576),i=n(5745),o=n(9297),a=n(3392),s=n(4495),l=n(7040),c=r.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},1392(e,t,n){"use strict";var r,i=n(6518),o=n(7476),a=n(7347).f,s=n(8014),l=n(3036),c=n(511),u=n(7750),d=n(1436),h=n(6395),m=o("".slice),p=Math.min,f=d("startsWith");i({target:"String",proto:!0,forced:!(!h&&!f&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||f)},{startsWith:function(e){var t=l(u(this));c(e);var n=l(e),r=s(p(arguments.length>1?arguments[1]:void 0,t.length));return m(t,r,r+n.length)===n}})},6105(e,t,n){"use strict";var r=n(1936);e.exports=r},3972(e,t,n){"use strict";n.d(t,{n1:()=>Q});var r=n(6540);const i="undefined"!=typeof document?r.useLayoutEffect:()=>{};var o=n(9672),a=n(4836);function s(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function l(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function c(e){let t=null;return()=>(null==t&&(t=e()),t)}const u=c(function(){return l(/^Mac/i)}),d=c(function(){return l(/^iPhone/i)}),h=c(function(){return l(/^iPad/i)||u()&&navigator.maxTouchPoints>1}),m=c(function(){return d()||h()}),p=(c(function(){return u()||m()}
vendor: 6,079 bytes, line 2
2),c(function(){return s(/AppleWebKit/i)&&!f()})),f=c(function(){return s(/Chrome/i)}),g=c(function(){return s(/Android/i)}),v=c(function(){return s(/Firefox/i)}),y="undefined"!=typeof Element&&"checkVisibility"in Element.prototype;function b(e,t){return y?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){const t=(0,a.mD)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||b(e.parentElement,e))}const w=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],E=w.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";w.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const _=w.join(':not([hidden]):not([tabindex="-1"]),');function T(e){return e.matches(E)&&b(e)&&!S(e)}function x(e){return e.matches(_)&&b(e)&&!S(e)}function S(e){let t=e;for(;null!=t;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var N=n(5780);class ${get currentNode(){return this._currentNode}set currentNode(e){if(!(0,o.sD)(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const t=[];let n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,o.sD)(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if("function"==typeof this.filter?n=this.filter(e):(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}const t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if("function"==typeof this.filter?e=this.filter(t):(null===(n=this.filter)||void 0===n?void 0:n.acceptNode)&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){const n=e.shadowRoot;if(n){const e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}var t;if("function"==typeof this.filter)return this.filter(e);if(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=null!=r?r:null,this.whatToShow=null!=n?n:NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));const i=t.shadowRoot;if(i){const e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}function k(e){if(function(){if(null==A){A=!1;try{document.createElement("div").focus({get preventScroll(){return A=!0,!0}})}catch{}}return A}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let A=null;function C(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}=t;v()&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(u()?o=!0:a=!0);let c=p()&&u()&&!h()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});C.isOpening=n,k(e),e.dispatchEvent(c),C.isOpening=!1}C.isOpening=!1;let M=null,R="keyboard";const F=new Set;let L=new Map,D=!1,O=!1;function P(e,t){for(let n of F)n(e,t)}function I(e){D=!0,!C.isOpening&&function(e){return!(e.metaKey||!u()&&e.altKey||e.ctrlKey||"Control"
2===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(M="keyboard",R="keyboard",P("keyboard",e))}function V(e){M="pointer",R="pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(D=!0,P("pointer",e))}function j(e){var t;!C.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(g()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(D=!0,M="virtual",R="virtual")}function q(e){(0,o.wt)(e)!==window&&(0,o.wt)(e)!==document&&e.isTrusted&&(D||O||(M="virtual",R="virtual",P("virtual",e)),D=!1,O=!1)}function B(){D=!1,O=!0}function W(e){if("undefined"==typeof window||"undefined"==typeof document||L.get((0,a.mD)(e)))return;const t=(0,a.mD)(e),n=(0,a.TW)(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){D=!0,r.apply(this,arguments)},n.addEventListener("keydown",I,!0),n.addEventListener("keyup",I,!0),n.addEventListener("click",j,!0),t.addEventListener("focus",q,!0),t.addEventListener("blur",B,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",V,!0),n.addEventListener("pointermove",V,!0),n.addEventListener("pointerup",V,!0)),t.addEventListener("beforeunload",()=>{H(e)},{once:!0}),L.set(t,{focus:r})}const H=(e,t)=>{const n=(0,a.mD)(e),r=(0,a.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),L.has(n)&&(n.HTMLElement.prototype.focus=L.get(n).focus,r.removeEventListener("keydown",I,!0),r.removeEventListener("keyup",I,!0),r.removeEventListener("click",j,!0),n.removeEventListener("focus",q,!0),n.removeEventListener("blur",B,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",V,!0),r.removeEventListener("pointermove",V,!0),r.removeEventListener("pointerup",V,!0)),L.delete(n))};function K(){return M}"undefined"!=typeof document&&function(e){const t=(0,a.TW)(e);let n;"loading"!==t.readyState?W(e):(n=()=>{W(e)},t.addEventListener("DOMContentLoaded",n))}(),new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Y=new Map,U=new Set;function z(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=(0,o.wt)(n);if(!e(n)||!r)return;let i=Y.get(r);if(i&&(i.delete(n.propertyName),0===i.size&&(r.removeEventListener("transitioncancel",t),Y.delete(r)),0===Y.size)){for(let e of U)e();U.clear()}};document.body.addEventListener("transitionrun",n=>{let r=(0,o.wt)(n);if(!e(n)||!r)return;let i=Y.get(r);i||(i=new Set,Y.set(r,i),r.addEventListener("transitioncancel",t,{once:!0})),i.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function G(e){if(!e.isConnected)return;const t=(0,a.TW)(e);if("virtual"===K()){let r=(0,o.bq)(t);n=()=>{const n=(0,o.bq)(t);n!==r&&n!==t.body||!e.isConnected||k(e)},requestAnimationFrame(()=>{!function(){for(const[e]of Y)"isConnected"in e&&!e.isConnected&&Y.delete(e)}(),0===Y.size?n():U.add(n)})}else k(e);var n}"undefined"!=typeof document&&("loading"!==document.readyState?z():document.addEventListener("DOMContentLoaded",z));const X=r.createContext(null),Z="react-aria-focus-scope-restore";let J=null;function Q(e){let{children:t,contain:n,restoreFocus:s,autoFocus:l}=e,c=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)([]),{parentNode:h}=(0,r.useContext)(X)||{},m=(0,r.useMemo)(()=>new me({scopeRef:d}),[d]);i(()=>{let e=h||pe.root;if(pe.getTreeNode(e.scopeRef)&&J&&!oe(J,e.scopeRef)){let t=pe.getTreeNode(J);t&&(e=t)}e.addChild(m),pe.addNode(m)},[m,h]),i(()=>{let e=pe.getTreeNode(d);e&&(e.contain=!!n)},[n]),i(()=>{var e;let t=null===(e=c.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==u.current;)n.push(t),t.addEventListener(Z,r),t=t.nextSibling;return d.current=n,()=>{for(let e of n)e.removeEventListener(Z,r)}},[t]),function(e,t,n){i(()=>{if(t||n)return;let r=e.current;const i=(0,a.TW)(r?r[0]:void 0);let s=t=>{let n=(0,o.wt)(t);re(n,e.current)?J=e:ne(n)||(J=null)};return i.addEventListener("focusin",s,!1),null==r||r.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,t,n])}(d,s,n),function(e,t){let n=(0,r.useRef)(void 0),s=(0,r.useRef)(void 0);i(()=>{let r=e.current;if(!t)return void(s.current&&(cancelAnimationFrame(s.current),s.current=void 0));const i=(0,a.TW)(r?r[0]:void 0);let l=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!te(e)||t.isComposing)return;let n=(0,o.bq)(i),r=e.current;if(!r||!re(n,r))return;let a=de(ee(r),{tabbable:!0},r);if(!n)return;a.currentNode=n;let s=t.shiftKey?a.previousNode():a.nextNode();s||(a.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,s=t.shiftKey?a.previousNode():a.nextNode()),t.preventDefault(),s&&ae(s,!0)},c=t=>{J&&!oe(J,e)||!re((0,o.wt)(t),e.current)?te(e)&&!ie((0,o.wt)(t),e)?n.current?n.current.focus():J&&J.current&&le(J.current):te(e)&&(n.current=(0,o.wt)(t)):(J=e,n.current=(0,o.wt)(t))},u=t=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{let r=K(),a=("virtual"===r||null===r)&&g()&&f(),s=(0,o.bq)(i);if(!a&&s&&te(e)&&!ie(s,e)){J=e;let r=(0,o.wt)(t);var l;r&&r.isConnected?(n.current=r,null===(l=n.current)||void 0===l||l.focus()):J.current&&le(J.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",c,!1),null==r||r.forEach(e
2=>e.addEventListener("focusin",c,!1)),null==r||r.forEach(e=>e.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",c,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",c,!1)),null==r||r.forEach(e=>e.removeEventListener("focusout",u,!1))}},[e,t]),i(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[s])}(d,n),function(e,t,n){const s=(0,r.useRef)("undefined"!=typeof document?(0,o.bq)((0,a.TW)(e.current?e.current[0]:void 0)):null);i(()=>{let r=e.current;const i=(0,a.TW)(r?r[0]:void 0);if(!t||n)return;let s=()=>{J&&!oe(J,e)||!re((0,o.bq)(i),e.current)||(J=e)};return i.addEventListener("focusin",s,!1),null==r||r.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,n]),i(()=>{const r=(0,a.TW)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!te(e)||t.isComposing)return;let n=r.activeElement;if(!ie(n,e)||!ce(e))return;let i=pe.getTreeNode(e);if(!i)return;let o=i.nodeToRestore,a=de(r.body,{tabbable:!0});a.currentNode=n;let s=t.shiftKey?a.previousNode():a.nextNode();if(o&&o.isConnected&&o!==r.body||(o=void 0,i.nodeToRestore=void 0),(!s||!ie(s,e))&&o){a.currentNode=o;do{s=t.shiftKey?a.previousNode():a.nextNode()}while(ie(s,e));t.preventDefault(),t.stopPropagation(),s?ae(s,!0):ne(o)?ae(o,!0):n.blur()}};return n||r.addEventListener("keydown",i,!0),()=>{n||r.removeEventListener("keydown",i,!0)}},[e,t,n]),i(()=>{const n=(0,a.TW)(e.current?e.current[0]:void 0);if(!t)return;let r=pe.getTreeNode(e);var i;return r?(r.nodeToRestore=null!==(i=s.current)&&void 0!==i?i:void 0,()=>{let r=pe.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=(0,o.bq)(n);if(t&&i&&(a&&ie(a,e)||a===n.body&&ce(e))){let t=pe.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected)return void ue(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&pe.getTreeNode(n.scopeRef))return void ue(se(n.scopeRef.current,!0));n=n.parent}}})}}):void 0},[e,t])}(d,s,n),function(e,t){const n=r.useRef(t);(0,r.useEffect)(()=>{if(n.current){J=e;const t=(0,a.TW)(e.current?e.current[0]:void 0);!re((0,o.bq)(t),J.current)&&e.current&&le(e.current)}n.current=!1},[e])}(d,l),(0,r.useEffect)(()=>{const e=(0,o.bq)((0,a.TW)(d.current?d.current[0]:void 0));let t=null;if(re(e,d.current)){for(let n of pe.traverse())n.scopeRef&&re(e,n.scopeRef.current)&&(t=n);t===pe.getTreeNode(d)&&(J=t.scopeRef)}},[d]),i(()=>()=>{var e,t,n;let r=null!==(n=null===(t=pe.getTreeNode(d))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;d!==J&&!oe(d,J)||r&&!pe.getTreeNode(r)||(J=r),pe.removeTreeNode(d
2)},[d]);let p=(0,r.useMemo)(()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:l}=t;var c;let u=r||(0,o.bq)((0,a.TW)(null!==(c=n[0])&&void 0!==c?c:void 0)),d=n[0].previousElementSibling,h=de(ee(n),{tabbable:i,accept:l},n);h.currentNode=re(u,n)?u:d;let m=h.nextNode();return!m&&s&&(h.currentNode=d,m=h.nextNode()),m&&ae(m,!0),m},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:l}=t;var c;let u=r||(0,o.bq)((0,a.TW)(null!==(c=n[0])&&void 0!==c?c:void 0)),d=n[n.length-1].nextElementSibling,h=de(ee(n),{tabbable:i,accept:l},n);h.currentNode=re(u,n)?u:d;let m=h.previousNode();return!m&&s&&(h.currentNode=d,m=h.previousNode()),m&&ae(m,!0),m},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=de(ee(n),{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let a=o.nextNode();return a&&ae(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=de(ee(n),{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let a=o.previousNode();return a&&ae(a,!0),a}}}(d),[]),v=(0,r.useMemo)(()=>({focusManager:p,parentNode:m}),[m,p]);return r.createElement(X.Provider,{value:v},r.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:c}),t,r.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function ee(e){return e[0].parentElement}function te(e){let t=pe.getTreeNode(J);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function ne(e){return ie(e)}function re(e,t){return!!e&&!!t&&t.some(t=>(0,o.sD)(t,e))}function ie(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of pe.traverse(pe.getTreeNode(t)))if(n&&re(e,n.current))return!0;return!1}function oe(e,t){var n;let r=null===(n=pe.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ae(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{G(e)}catch{}}function se(e,t=!0){let n=e[0].previousElementSibling,r=ee(e),i=de(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=ee(e),i=de(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function le(e,t=!0){ae(se(e,t))}function ce(e){let t=pe.getTreeNode(J);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function ue(e){e.dispatchEvent(new CustomEvent(Z,{bubbles:!0,cancelable:!0}))&&ae(e)}function de(e,t,n){let r=(null==t?void 0:t.tabbable)?x:T,i=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=(0,a.TW)(i),l=function(e,t,n,r){return(0,N.Nf)()?new $(e,t,n,r):e.createTreeWalker(t,n,r)}(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(e){if((0,o.sD)(null==t?void 0:t.from,e))return NodeFilter.FILTER_REJECT;if((null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")){if(!function(e){if(e.checked)return!0;const t=function(e){if(!e.form)return Array.from((0,a.TW)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);const t=e.form.elements.namedItem(e.name);let n=(0,a.mD)(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e))return NodeFilter.FILTER_REJECT;if("INPUT"===l.currentNode.tagName&&"radio"===l.currentNode.type&&l.currentNode.name===e.name)return NodeFilter.FILTER_REJECT}return!r(e)||n&&!re(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(l.currentNode=t.from),l}class he{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let i=new me({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&re(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>
20&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new he;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new me({scopeRef:null}),this.fastMap.set(null,this.root)}}class me{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let pe=new he},5926(e,t,n){"use strict";n.d(t,{M:()=>u});var r=n(6540);var i=n(9672),o=n(4836);let a=!1,s=0;function l(e){"touch"===e.pointerType&&(a=!0,setTimeout(()=>{a=!1},50))}function c(){if("undefined"!=typeof document)return 0===s&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",l),s++,()=>{s--,s>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",l)}}function u(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:s,isDisabled:l}=e,[u,d]=(0,r.useState)(!1),h=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(c,[]);let{addGlobalListener:m,removeAllGlobalListeners:p}=function(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)},[]),n=(0,r.useCallback)((t,n,r,i)=>{var o;let a=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),i=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}(),{hoverProps:f,triggerHoverEnd:g}=(0,r.useMemo)(()=>{let e=(e,t)=>{let r=h.target;h.pointerType="",h.target=null,"touch"!==t&&h.isHovered&&r&&(h.isHovered=!1,p(),s&&s({type:"hoverend",target:r,pointerType:t}),n&&n(!1),d(!1))},r={};return"undefined"!=typeof PointerEvent&&(r.onPointerEnter=r=>{a&&"mouse"===r.pointerType||((r,a)=>{if(h.pointerType=a,l||"touch"===a||h.isHovered||!(0,i.sD)(r.currentTarget,(0,i.wt)(r)))return;h.isHovered=!0;let s=r.currentTarget;h.target=s,m((0,o.TW)((0,i.wt)(r)),"pointerover",t=>{h.isHovered&&h.target&&!(0,i.sD)(h.target,(0,i.wt)(t))&&e(0,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:a}),n&&n(!0),d(!0)})(r,r.pointerType)},r.onPointerLeave=t=>{!l&&(0,i.sD)(t.currentTarget,(0,i.wt)(t))&&e(0,t.pointerType)}),{hoverProps:r,triggerHoverEnd:e}},[t,n,s,l,h,m,p]);return(0,r.useEffect)(()=>{l&&g({currentTarget:h.target},h.pointerType)},[l]),{hoverProps:f,isHovered:u}}},9672(e,t,n){"use strict";n.d(t,{bq:()=>a,sD:()=>o,wt:()=>s});var r=n(4836),i=n(5780);function o(e,t){if(!(0,i.Nf)())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:(0,r.Ng)(n)?n.host:n.parentNode}return!1}const a=(e=document)=>{var t;if(!(0,i.Nf)())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function s(e){if((0,i.Nf)()&&e.target instanceof Element&&e.target.shadowRoot){var t,n;if("composedPath"in e)return null!==(t=e.composedPath()[0])&&void 0!==t?t:null;if("composedPath"in e.nativeEvent)return null!==(n=e.nativeEvent.composedPath()[0])&&void 0!==n?n:null}return e.target}},4836(e,t,n){"use strict";n.d(t,{Ng:()=>o,TW:()=>r,mD:()=>i});const r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window;function o(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}},5780(e,t,n){"use strict";n.d(t,{Nf:()=>r});function r(){return false}}},e=>{var t=t=>e(e.s=t);t(1171),t(6692),t(815),t(962),t(9295)}]);
3//# sourceMappingURL=global.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.