PageSourceSearch

https://malaysiaaviationgroup.com.my/etc.clientlibs/mh/clientlibs/…/resources/assets/main-BRllkcH1.js

js malaysiaaviationgroup.com.my collected 2026-10-02 17:09:27 UTC 2,638,891 bytes, 1,221 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Accordion-B25opUVe.js","assets/chevron-down-DiSjCzq4.js","assets/Accordion-Drt5eBo1.css","assets/AdminDashboard-BG-30vx5.js","assets/AdminDashboard-CH03Y1df.css","assets/AnchorNavigation-BUKBOpx2.js","assets/AnchorNavigation-Bi0HHtSF.css","assets/AnchorTag-CVDIwgXX.js","assets/AnchorTag-fGrAXJbL.css","assets/BookingWidgetUrlQueryGenerator-D-tq4CmM.js","assets/BookingWidgetUrlQueryGenerator-BRr8f4ps.css","assets/TourismCampaign-DMruuU2p.js","assets/TourismCampaign-B3Hj9vu2.css","assets/ComplainDashboard-DKwIRAw0.js","assets/ComplainDashboard-Bh1znDDJ.css","assets/ContactUs-DkH3TAHT.js","assets/FileUpload-j-6Sa8ie.js","assets/file-exclamation-dlSvKZ3W.js","assets/file-pdf-DCSzQ4B1.js","assets/circle-plus-DFopHHuO.js","assets/FileUpload-DkxzWaue.css","assets/MHTextArea-DfVygah7.js","assets/MHTextArea-DwIgBObb.css","assets/ContactUs-BNrQISbj.css","assets/CountdownTimer-Cm-wF5iz.js","assets/CountdownTimer-CfZQwH7q.css","assets/CrossSellTiles-BaFHyck6.js","assets/CrossSellTiles-BdbjY0qI.css","assets/DestinationEssentialDetails-Cv58LBpi.js","assets/advancedFormat-Bfn4sid2.js","assets/utc-lR580o7L.js","assets/DestinationEssentialDetails-B5-TNAbQ.css","assets/DestinationWindow-C3g_XLGk.js","assets/DestinationWindow-B2Hc5R6m.css","assets/DestinationsListing-C2Z5NjOA.js","assets/DestinationsListing-CvFy3LyU.css","assets/FloatingExpandableSidebar-BwPal4jA.js","assets/FloatingExpandableSidebar-GSvCDmrs.css","assets/FlysiswaFormV3-BrTeomhc.js","assets/RegistrtionConfirmation-orR-2cxP.js","assets/RegistrtionConfirmation-DkhKFDp9.css","assets/FlysiswaFormV3-EtlnSOY6.css","assets/FlysiswaForm-DerhZKP_.js","assets/FlysiswaForm-DzzJpfBg.css","assets/InflightMenu-BHJ2emCf.js","assets/circle-exclamation-CseA6fV6.js","assets/InflightMenu-B3UydaPE.css","assets/JalDataFeed-B4QI7NRq.js","assets/JalDataFeed-C2EoBnQT.css","assets/LowFareDestinationTiles-DRlk6CqO.js","assets/LowFareDestinationTiles-DINSDczO.css","assets/BusinessCard-CIigxqCv.js","assets/BusinessCard-xM92rTqp.css","assets/MAGBrandsCarousel-BAw2WrJP.js","assets/MAGBrandsCarousel-xkTLZNlK.css","assets/MAGDownloadTiles-BhSFfFFk.js","assets/MAGDownloadTiles-BPDplgDj.css","assets/MAGFooter-C5yNmefD.js","assets/MAGFooterAccordion-N6VjJfAN.js","assets/MAGFooterAccordion-CSrG526E.css","assets/MAGFooter-f_FuRvta.css","assets/MAGHeader-CS7dRmBc.js","assets/MAGHeader-CnPvROBf.css","assets/MHTable-Cv5iMyBz.js","assets/MHTable-CX-KKxgg.css","assets/MHVideo-i3UgLEz3.js","assets/BaseVideo-BAlJP7yu.js","assets/BaseVideo-By5ctBiR.css","assets/MHVideo-DiSOeYVR.css","assets/MediaCentreListing-BexwCVQn.js","assets/NewsTile-CMY673Ca.js","assets/NewsTile-CXUmIx5y.css","assets/MediaCentreListing-CyBjGbEw.css","assets/MediaCentreSearch-BWNWqTJG.js","assets/filter-CXDmakc7.js","assets/MediaCentreSearch-Htoa4xA8.css","assets/MovieReelsAndSearch-CdsHuudD.js","assets/MovieTile-DypKlnnF.js","assets/icon-play-circle-BIx_IGyt.js","assets/MovieTile-BR1Dms8j.css","assets/MovieSearch-CZikld5N.js","assets/MovieSearch-QOoOvl74.css","assets/MovieReelsAndSearch-Z7YWfBQZ.css","assets/MovieSearchResults-BmVKbJSP.js","assets/MovieSearchResults-BQ-ebbmi.css","assets/NavigationTiles-Y8pd1s7_.js","assets/NavigationTiles-CeQa6ozb.css","assets/NewsletterSignUp-COaRheRM.js","assets/NewsletterSignUp-DolNubgP.css","assets/PeekFunction-YB5_SVH_.js","assets/PeekFunction-_2ihC6am.css","assets/PlanYourTripTiles-Db1vudah.js","assets/PlanYourTripTiles-RuqznGhe.css","assets/PromoListing-B-hJfnW8.js","assets/PromoListing-c-LaESPb.css","assets/SearchResults-DMhvZHyR.js","assets/SearchResults-DweRH1pN.css","assets/ShowMore-xE4B3UQT.js","assets/ShowMore-DitrNKmV.css","assets/Steps-BO4maSlB.js","assets/Steps-n7O6fFw1.css","assets/TravelConfirmationLetter-LkUq1Tpp.js","assets/TravelConfirmationLetter-D2zB0R1z.css","assets/TravelRegulationsOrAdvisory-kWrq2md3.js","assets/TravelRegulationsOrAdvisory-Dm31xxyy.css","assets/USP-B02C_efW.js","assets/USP-DxSbtNon.css","assets/VoucherTile-CuJ-IsYS.js","assets/VoucherTile-Bj85pdJS.css","assets/ADSFooter-Bo_C2Uhe.js","assets/ADSFooter-DOE8bw6S.css","assets/ADSHeader-BcGZi1ej.js","assets/ADSHeader-BmtBWrs9.css","assets/AmalCategoryTiles-Bl0WQS8x.js","assets/AmalCategoryTiles-Br0EcHm_.css","assets/AmalEduIslamTab-BS_rgdWa.js","assets/useAmalWebviewAuth-DrK1aYgw.js","assets/AmalEduIslamTab-EN3qtLqN.css","assets/AmalFavourite-ApTVKGZQ.js","assets/copy-DxIQ1dvH.js","assets/heart-BEp2htn4.js","assets/Snackbar-tRlIpcTn.js","assets/Snackbar-BFbvB1QA.css","assets/AmalFavourite-Dq9ofa6W.css","assets/AmalFooter-jhhYpnNG.js","assets/AmalFooter-DRLzEXRu.css","assets/AmalHeader-CmGp5k3y.js","assets/AmalHeader-leVEyMvE.css","assets/AmalLocationFeatureTiles-CV_X7V6a.js","assets/AmalLocationFeatureTiles-DoNVmrcc.css","assets/AmalLocationListing-DA3Hdi0N.js","assets/Overlay-VBn_1R7T.js","assets/Overlay-FG5fJNM2.css","assets/AmalLocationListing-Cy3DzIiD.css","assets/AmalLocationTiles-BPpTXqjS.js","assets/AmalLocationTiles-HSXSoYlJ.css","assets/AmalMallTiles-Dw3gl3tk.js","assets/AmalMallTiles-DryQuzat.css","assets/AmalOrganizationEduIslamTiles-EhmURGyD.js","assets/AmalOrganizationEduIslamTiles-BS55RYAL.css","assets/AmalPrayerTile-BF_IPTmr.js","assets/AmalPrayerTile-CQQkVnnb.css","assets/AmalPrayersListing-Ji0lmtUo.js","assets/AmalPrayersListing-Dfn9xfGC.css","assets/AmalQuote-BRhE731C.js","assets/AmalQuote-BModvwDh.css","assets/AmalSavedList-_ZdQSROg.js","assets/AmalSavedList-BmzrT43A.css","assets/AmalUspIcon-BDWYq2A_.js","assets/AmalUspIcon-B_Oh2tke.css","assets/AmalBookingWidget-CqqNsXsC.js","assets/AmalFlightSearch-bMdBSSwe.js","assets/AmalFlightSearch-BvLuQ8qR.css","assets/AmalFlightHotelSearch-Bu0G5fme.js","assets/AmalFlightHotelSearch-BQjRi7Qq.css","assets/AmalFlightSchedule-BAn4jxyr.js","assets/AmalUmrahPackages-Dp1jGV01.js","assets/AmalUmrahPackages-DKAC0bXF.css","assets/AmalFlightStatus-B4rCmePv.js","assets/AmalBookingWidget-Bh8AXJLR.css","assets/EnrichFlypassFlightSearch-BvWmpjyS.js","assets/EnrichFlypassFlightSearch-B69lYT-Q.css","assets/FlightDisruption-BBlzDzfW.js","assets/FlightDisruption-DUleZNTb.css","assets/EnrichAccountSettings-BiezPiAv.js","assets/circle-x-CO0cDlqs.js","assets/EnrichToastMessage-BQtKfCig.js","assets/EnrichToastMessage-H_k-ygA0.css","assets/EnrichAccountSettings-9BDEOn6d.css","assets/EnrichBreadcrumb-BV1Yj27q.js","assets/EnrichBreadcrumb-DA67W-FM.css","assets/EnrichBuyEnrichPointsFormOverlay-Bs2gYtPk.js","assets/EnrichBuyEnrichPointsFormOverlay-B1bp4hWQ.css","assets/EnrichCard-T9iMCFai.js","assets/EnrichInfoCard-DlCGF_XZ.js","assets/EnrichInfoCard-TTVslfFa.css","assets/EnrichCard-BJGg70Ou.css","assets/EnrichCarouselTiles-BkbgBYQY.js","assets/EnrichCarouselTiles-ZdCLxViQ.css","assets/EnrichClaimMissingPoints-DiZqwWA2.js","assets/icon-calendar-CEMZUwGT.js","assets/EnrichClaimMissingPoints-CwgEMqEp.css","assets/EnrichCoBrandCard-BqvZ6nXl.js","assets/EnrichCoBrandCard-DtlK-McG.css","assets/EnrichCoBrandCardWidget-DTYJCAQ9.js","assets/EnrichCoBrandCardWidget-BYn0DEk_.css","assets/EnrichCompanion-B-EcPt_d.js","assets/FormAccordion-Dd0CciiP.js","assets/FormAccordion-CasRxyjM.css","assets/EnrichCompanion-0Hykh-Fl.css","assets/EnrichContactUs-BXSFyHio.js","assets/EnrichContactUs-D1IGK7qE.css","assets/EnrichCrossSellTiles-qhbdWnvt.js","assets/EnrichCrossSellTiles-DbFvBfMW.css","assets/EnrichFamilyPool-BcbTvNyQ.js","assets/trash-can-BcdkHQ_1.js","assets/EnrichFamilyPool-n0MD5k8Y.css","assets/EnrichFlyPass-B6X_7bPe.js","assets/EnrichFlyPass-Lnh0Bhb6.css","assets/EnrichGiftCardListing-gvYa2udr.js","assets/EnrichGiftCardTile-Dwra2VTV.js","assets/EnrichGiftCardTile-_za9wb2V.css","assets/EnrichGiftCardListing-86udlX6n.css","assets/EnrichGiftCardProductDetailsSelection-BbVUYMdb.js","assets/EnrichRedemptionRadio-6mqx8tCs.js","assets/EnrichRedemptionRadio-40QrAEVx.css","assets/enrich-points-coin-C0OIOOeI.js","assets/EnrichGiftCardProductDetailsSelection-DnZItOfb.css","assets/EnrichGiftCardQuickRedemptionOverlay-CmDXD5nj.js","assets/EnrichGiftCardQuickRedemptionOverlay-Be_8MBQb.css","assets/EnrichGiftCardsFeatureTiles-BoCIJe3Y.js","assets/EnrichGiftCardsFeatureTiles-BP2t82L5.css","assets/EnrichHeader-DGjt3yl5.js","assets/EnrichHeader-BVnWxUTG.css","assets/EnrichInviteAndEarn-lYjXNeUa.js","assets/DonutProgressChart-Bz2FJZ2U.js","assets/DonutProgressChart-CQ-33Xqd.css","assets/EnrichInviteAndEarn-BZkACRqM.
1css","assets/EnrichMembershipSummary-D_3l9a_9.js","assets/lock-Dd9KYA8L.js","assets/EnrichMembershipSummary-18GS4UOF.css","assets/EnrichMhFlypass-CfUNVezI.js","assets/EnrichMhFlypass-C82XGD5h.css","assets/EnrichMidTierBooster-ChIkqOi8.js","assets/EnrichMidTierBooster-7m3uMO-T.css","assets/EnrichMyTravellersForm-DjR-HXuF.js","assets/circle-plus-DZOF3J7b.js","assets/EnrichMyTravellersForm-J0NUpmfm.css","assets/EnrichMyTrips-aCki4LsK.js","assets/NoTrips-Dy1DOfx6.js","assets/EnrichMyTrips-BWWln71l.css","assets/EnrichNavigationBar-BJ8SWIhr.js","assets/bell-B67_L94m.js","assets/EnrichNavigationBar-RBxFAYjL.css","assets/EnrichNotifications-BeHuB1j_.js","assets/EnrichNotifications-1_UpBdST.css","assets/EnrichPointServices-D48g9aWH.js","assets/EnrichPointServices-9QX1UCxx.css","assets/EnrichPointServicesPayment-Da6k4cA3.js","assets/useAmadeusSDK-CY1huXtj.js","assets/EnrichPointServicesPayment-DmgnJzZ4.css","assets/EnrichPointsActivity-DZ6PPIuz.js","assets/EnrichPointsActivity-CJrYY_ch.css","assets/EnrichPointsExchangeConfirmationOverlay-BwjeeaKf.js","assets/pointExchangeStore-Dk1jIbHN.js","assets/EnrichPointsExchangeConfirmationOverlay-CEfRSYLB.css","assets/EnrichPointsExchangeForm-Cr9Uks0W.js","assets/EnrichPointsExchangeForm-BHR6DOx4.css","assets/EnrichProfile-CNJqxA4Q.js","assets/EnrichProfile-CuQUpgON.css","assets/EnrichSavedCards--6WCa_k7.js","assets/EnrichSavedCards-D14F8BR-.css","assets/EnrichSetAsFamilyPoolContributor-D8E4MNXN.js","assets/OverlaySingleFileUpload-DJ8wuh76.js","assets/OverlaySingleFileUpload-BH1_Xvrk.css","assets/useEnrichSupplementaryMemberStore-B8FzCP5B.js","assets/EnrichSetAsFamilyPoolContributor-D9ibbQ6G.css","assets/EnrichStatusBenefits-CoZh04Kh.js","assets/EnrichStatusBenefits-BA8KJ861.css","assets/EnrichSupplementaryMembers-Cdj12mIF.js","assets/EnrichSupplementaryMembers-DDAtMvbo.css","assets/EnrichSupplementaryMembersAddMember-BrlBsVQK.js","assets/EnrichSupplementaryMembersAddMember-B8gayIKp.css","assets/EnrichSupplementaryMembersReplacement-DiAaOZzA.js","assets/EnrichSupplementaryMembersReplacement-hnywNC8W.css","assets/EnrichTrackClaimStatus-C1pIYJdo.js","assets/EnrichTrackClaimStatus-ASE5JkHQ.css","assets/EnrichTransactionHistory-Ccmlk02O.js","assets/EnrichTransactionHistory-CMukUPFu.css","assets/EnrichTravellerOverlay-GgJRNSeY.js","assets/EnrichTravellerOverlay-DZw5xbdi.css","assets/EnrichUpcomingTrips-2k-MZpiE.js","assets/EnrichUpcomingTrips-DellpYUv.css","assets/ExternalFlightSearch-EnCE_YGr.js","assets/ExternalFlightSearch-BRaFrRHM.css","assets/FareHistogram-BxnzZxmR.js","assets/FareHistogram-DlxpTcuy.css","assets/FireflyDealsTiles-DnngC4_V.js","assets/FireflyDealsTiles-lh1IxfyC.css","assets/FireflyFooter-BOX4oaxZ.js","assets/FireflyFooter-sXnPpd-D.css","assets/FireflyHeader-C_hvzAbi.js","assets/FireflyHeader-CxU-0aG9.css","assets/FireflyInformationTiles-y7f2xdPI.js","assets/FireflyTravelInfoTiles-BUlIF-T-.js","assets/FireflyTravelInfoTiles-DwRUjJrH.css","assets/FireflyBookingWidget-CCY9f-n0.js","assets/FireflyNeighbourFreeSeat-BPMbxN91.js","assets/FireflyNeighbourFreeSeat-Co27112G.css","assets/FireflyBookingWidget-CqnOccc-.css","assets/Checkbox-CujrwIjM.js","assets/Checkbox-BHyXL7Dp.css","assets/DynamicDropdown-CZpB7NXE.js","assets/DynamicDropdown-B-pN45qD.css","assets/FileUpload-LcPw-UsR.js","assets/FormContainer-D4_kTR2F.js","assets/RatingSlider-B90Fbijz.js","assets/RatingSlider-CjQimkgw.css","assets/TextArea-DDGKWuFV.js","assets/TextArea-CVsITl2O.css","assets/TextField-Bh2waEXY.js","assets/TextField-IZAQ_QeP.css","assets/MABAFooter-B2ac2-aT.js","assets/MABAFooterAccordion-DEpUQuP4.js","assets/MABAFooterAccordion-O3HJNxMf.css","assets/MABAFooter-ByIjS_z3.css","assets/MABAHeader-D7-jffFj.js","assets/MABAHeader-D3cBECDa.css","assets/MABAImageOverflowTile-DrznAmkh.js","assets/MABAImageOverflowTile-CKZnLxOQ.css","assets/MasKargoFooter-liRYOkQ5.js","assets/MasKargoFooter-CXESKR7z.css","assets/MasKargoHeader-CqUPs_vd.js","assets/MasKargoHeader-aMlrLDWA.css","assets/MasKargoLocateOurOffice-D4dLAhNt.js","assets/MasKargoLocateOurOffice-DDgcd6pC.css","assets/BookingInquiry-6HYvmtkT.js","assets/AirportPicker-Dlni4vTK.js","assets/AirportPicker-DW_SvjKC.css","assets/BookingInquiry-C0cExbAS.css","assets/FlightSchedule-ecbbPNB7.js","assets/FlightSchedule-Cotp35KM.css","assets/MasKargoIframe-QOMbhfky.js","assets/MasKargoIframe-B3DooLwN.css","assets/MaskargoBookingWidget-C2bDw5Ya.js","assets/MaskargoBookingWidget-SR8XQDPS.css","assets/MaskargoShipmentTracking-Bpq-67_9.js","assets/MaskargoShipmentTracking-BbDR6Gh-.css","assets/Matta2024-DvEHZby0.js","assets/Matta2024-CvPpW9vz.css","assets/PostLoginHandler-FCoB_jgh.js","assets/PostLoginHandler-DyqWd1Hq.css","assets/ReferralLink-BLjtPnTU.js","assets/ReferralLink-BnZWaeBN.css","assets/SignUpForm-CL_y91T_.js","assets/SignUpForm-D95BfRBv.css","assets/StudentInfoCard-7744oQa8.js","assets/StudentInfoCard-B87uSp4O.css","assets/MHHBookingWidgetUrlQueryGenerator-DGSchZQ6.js","assets/AirportOriginPicker-fe9rM2mL.js","assets/AirportOriginPicker-BOBeww1r.css","assets/MHHBookingWidgetUrlQueryGenerator-D1y04iyG.css","assets/MHHDestinationAndTourDeals-DJ51HcKu.js","assets/MHHDestinationAndTourDeals-D6F9Zsit.css","assets/MHHFooter-BHLfyfuc.js","assets/MHHFooter-ChnqjqMZ.css","assets/MHHHeader-DWYO0GiI.js","assets/MHHHeader-HxqOWChe.css","assets/MHHHeaderDeals-BYi4pfyk.js","assets/MHHHeaderDeals-BwZ__I2q.css","assets/MHHHotelDealsTiles-DC3bPud-.js","assets/MHHHotelDealsTiles-B_JQ02C0.css","assets/MHHPromotionPopUp-o5BFISmX.js","assets/MHHPromotionPopUp-DrUlRroQ.css","assets/MHHTripspirationCards-BdjN9foW.js","assets/MHHTripspirationCards-B3MOmd_2.css","assets/MHHUSPIcon-DBmjgs5O.js","assets/MHHUSPIcon-A8eQ_6yx.css","assets/MHHAirportTransfer-BlSsiBsH.js","assets/MHHAirportTransfer-BnOb6Cip.css","assets/MHHBookingWidget-_Zj52jn4.js","assets/MHHFlightHotelSearch-DhvCnkOD.js","assets/dateValidate-BWZ5euf0.js","assets/MHHFlightHotelSearch-B1inUUoB.css","assets/MHHHotelSearch-CBwnijJD.js","assets/MHHTripsAndTours-Dme7h3ko.js","assets/MHHBookingWidget-CGpFkH-m.css","assets/main-BhWLm695.css","assets/main-COSB23XU.css","assets/main-l_BntPim.css","assets/main-GGptRJAv.css"])))=>i.map(i=>d[i]);
2const scriptRel="modulepreload",assetsURL=function(t){return"/etc.clientlibs/mh/clientlibs/clientlib-vue/resources/"+t},seen={},__vitePreload=function(o,r,e){let n=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));n=Promise.all(r.map(s=>{if(s=assetsURL(s),s in seen)return;seen[s]=!0;const l=s.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":scriptRel,l||(c.as="script",c.crossOrigin=""),c.href=s,i&&c.setAttribute("nonce",i),document.head.appendChild(c),l)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}return n.then(()=>o()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};(()=>{function t(r){if(r=Math.trunc(r)||0,r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]}const o=Reflect.getPrototypeOf(Int8Array);for(const r of[Array,String,o])Object.defineProperty(r.prototype,"at",{value:t,writable:!0,enumerable:!1,
2configurable:!0})})();Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function t(){var o=isNaN(arguments[0])?1:Number(arguments[0]);return o?Array.prototype.reduce.call(this,function(r,e){return Array.isArray(e)?r.push.apply(r,t.call(e,o-1)):r.push(e),r},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(t){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});Promise.allSettled=Promise.allSettled||function(t){return Promise.all(t.map(function(o){return o.then(function(r){return{status:"fulfilled",value:r}}).catch(function(r){return{status:"rejected",reason:r}})}))};Promise.any=Promise.any||function(t){return new Promise(function(o,r,e,n){e=[],n=t.map(function(a,i){return Promise.resolve(a).then(o,function(s){return e[i]=s,--n||r({errors:e})})}).length})};/**
3 * String.prototype.replaceAll() polyfill
4 * https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/
5 * @author Chris Ferdinandi
6 * @license MIT
7 */String.prototype.replaceAll||(String.prototype.replaceAll=function(t,o){return Object.prototype.toString.call(t).toLowerCase()==="[object regexp]"?this.replace(t,o):this.replace(new RegExp(t,"g"),o)});/*!
8 * @copyright Copyright (c) 2017 IcoMoon.io
9 * @license   Licensed under MIT license
10 *            See https://github.com/Keyamoon/svgxuse
11 * @version   1.2.6
12 */function isIOS$1(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}isIOS$1()&&document.documentElement.setAttribute("data-os","iOS");var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var o=t.default;if(typeof o=="function"){var r=function e(){return this instanceof e?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};r.prototype=o.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}var lodash={exports:{}};/**
13 * @license
14 * Lodash <https://lodash.com/>
15 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
16 * Released under MIT license <https://lodash.com/license>
17 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
18 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
19 */lodash.exports;(function(t,o){(function(){var r,e="4.17.21",n=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,c="__lodash_placeholder__",u=1,f=2,m=4,b=1,y=2,_=1,S=2,C=4,T=8,x=16,k=32,E=64,w=128,D=256,N=512,F=30,V="...",A=800,M=16,O=1,R=2,I=3,j=1/0,H=9007199254740991,U=17976931348623157e292,B=NaN,L=4294967295,z=L-1,W=L>>>1,J=[["ary",w],["bind",_],["bindKey",S],["curry",T],["curryRight",x],["flip",N],["partial",k],["partialRight",E],["rearg",D]],te="[object Arguments]",re="[object Array]",oe="[object AsyncFunction]",X="[object Boolean]",se="[object Date]",le="[object DOMException]",he="[object Error]",ge="[object Function]",Q="[object GeneratorFunction]",Y="[object Map]",ne="[object Number]",Ce="[object Null]",ae="[object Object]",Be="[object Promise]",me="[object Proxy]",K="[object RegExp]",q="[object Set]",Z="[object String]",de="[object Symbol]",fe="[object Undefined]",_e="[object WeakMap]",pe="[object WeakSet]",ve="[object ArrayBuffer]",Me="[object DataView]",Fe="[object Float32Array]",Te="[object Float64Array]",Se="[object Int8Array]",Ae="[object Int16Array]",ue="[object Int32Array]",ye="[object Uint8Array]",Xe="[object Uint8ClampedArray]",De="[object Uint16Array]",ke="[object Uint32Array]",ze=/\b__p \+= '';/g,qe=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pt=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,Je=RegExp(pt.source),$e=RegExp(Ne.source),st=/<%-([\s\S]+?)%>/g,bt=/<%([\s\S]+?)%>/g,Bt=/<%=([\s\S]+?)%>/g,rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ze=/^\w*$/,dt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/[\\^$.*+?()[\]{}|]/g,lt=RegExp(Ye.source),et=/^\s+/,nt=/\s/,Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ft=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,Ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yt=/[()=,{}\[\]\/\s]/,Dt=/\\(\\)?/g,_t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ie=/\w*$/,Le=/^[-+]0x[0-9a-f]+$/i,ct=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,He=/^(?:0|[1-9]\d*)$/,ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,172 bytes, line 19
197f]/g,kt=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Vt="\\u0300-\\u036f",zt="\\ufe20-\\ufe2f",_o="\\u20d0-\\u20ff",xe=Vt+zt+_o,Ke="\\u2700-\\u27bf",Ge="a-z\\xdf-\\xf6\\xf8-\\xff",ut="\\xac\\xb1\\xd7\\xf7",Et="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ft="\\u2000-\\u206f",qt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jt="A-Z\\xc0-\\xd6\\xd8-\\xde",Xt="\\ufe0e\\ufe0f",To=ut+Et+Ft+qt,Zo="['’]",er="["+wt+"]",hn="["+To+"]",Rr="["+xe+"]",Xn="\\d+",ai="["+Ke+"]",Jn="["+Ge+"]",tr="[^"+wt+To+Xn+Ke+Ge+Jt+"]",$r="\\ud83c[\\udffb-\\udfff]",Hr="(?:"+Rr+"|"+$r+")",xt="[^"+wt+"]",eo="(?:\\ud83c[\\udde6-\\uddff]){2}",bo="[\\ud800-\\udbff][\\udc00-\\udfff]",Co="["+Jt+"]",or="\\u200d",rr="(?:"+Jn+"|"+tr+")",fr="(?:"+Co+"|"+tr+")",nr="(?:"+Zo+"(?:d|ll|m|re|s|t|ve))?",ar="(?:"+Zo+"(?:D|LL|M|RE|S|T|VE))?",ir=Hr+"?",gn="["+Xt+"]?",Zn="(?:"+or+"(?:"+[xt,eo,bo].join("|")+")"+gn+ir+")*",ea="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ta="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_n=gn+ir+Zn,oa="(?:"+[ai,eo,bo].join("|")+")"+_n,ra="(?:"+[xt+Rr+"?",Rr,eo,bo,er].join("|")+")",na=RegExp(Zo,"g"),aa=RegExp(Rr,"g"),Ur=RegExp($r+"(?="+$r+")|"+ra+_n,"g"),ia=RegExp([Co+"?"+Jn+"+"+nr+"(?="+[hn,Co,"$"].join("|")+")",fr+"+"+ar+"(?="+[hn,Co+rr,"$"].join("|")+")",Co+"?"+rr+"+"+nr,Co+"+"+ar,ta,ea,Xn,oa].join("|"),"g"),sa=RegExp("["+or+wt+xe+Xt+"]"),la=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ca=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],da=-1,gt={};gt[Fe]=gt[Te]=gt[Se]=gt[Ae]=gt[ue]=gt[ye]=gt[Xe]=gt[De]=gt[ke]=!0,gt[te]=gt[re]=gt[ve]=gt[X]=gt[Me]=gt[se]=gt[he]=gt[ge]=gt[Y]=gt[ne]=gt[ae]=gt[K]=gt[q]=gt[Z]=gt[_e]=!1;var At={};At[te]=At[re]=At[ve]=At[Me]=At[X]=At[se]=At[Fe]=At[Te]=At[Se]=At[Ae]=At[ue]=At[Y]=At[ne]=At[ae]=At[K]=At[q]=At[Z]=At[de]=At[ye]=At[Xe]=At[De]=At[ke]=!0,At[he]=At[ge]=At[_e]=!1;var mr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},hr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_r={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},br=parseFloat,yr=parseInt,sr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,vr=typeof self=="object"&&self&&self.Object===Object&&self,Zt=sr||vr||Function("return this")(),Uo=o&&!o.nodeType&&o,Oo=Uo&&!0&&t&&!t.nodeType&&t,bn=Oo&&Oo.exports===Uo,Gr=bn&&sr.process,fo=function(){try{var Pe=Oo&&Oo.require&&Oo.require("util").t
vendor: 4,756 bytes, line 19
19ypes;return Pe||Gr&&Gr.binding&&Gr.binding("util")}catch{}}(),yn=fo&&fo.isArrayBuffer,vn=fo&&fo.isDate,Sn=fo&&fo.isMap,Tn=fo&&fo.isRegExp,Cn=fo&&fo.isSet,kn=fo&&fo.isTypedArray;function uo(Pe,Re,Oe){switch(Oe.length){case 0:return Pe.call(Re);case 1:return Pe.call(Re,Oe[0]);case 2:return Pe.call(Re,Oe[0],Oe[1]);case 3:return Pe.call(Re,Oe[0],Oe[1],Oe[2])}return Pe.apply(Re,Oe)}function ua(Pe,Re,Oe,it){for(var St=-1,Ht=Pe==null?0:Pe.length;++St<Ht;){var to=Pe[St];Re(it,to,Oe(to),Pe)}return it}function mo(Pe,Re){for(var Oe=-1,it=Pe==null?0:Pe.length;++Oe<it&&Re(Pe[Oe],Oe,Pe)!==!1;);return Pe}function pa(Pe,Re){for(var Oe=Pe==null?0:Pe.length;Oe--&&Re(Pe[Oe],Oe,Pe)!==!1;);return Pe}function wn(Pe,Re){for(var Oe=-1,it=Pe==null?0:Pe.length;++Oe<it;)if(!Re(Pe[Oe],Oe,Pe))return!1;return!0}function Ao(Pe,Re){for(var Oe=-1,it=Pe==null?0:Pe.length,St=0,Ht=[];++Oe<it;){var to=Pe[Oe];Re(to,Oe,Pe)&&(Ht[St++]=to)}return Ht}function Sr(Pe,Re){var Oe=Pe==null?0:Pe.length;return!!Oe&&Go(Pe,Re,0)>-1}function jr(Pe,Re,Oe){for(var it=-1,St=Pe==null?0:Pe.length;++it<St;)if(Oe(Re,Pe[it]))return!0;return!1}function Kt(Pe,Re){for(var Oe=-1,it=Pe==null?0:Pe.length,St=Array(it);++Oe<it;)St[Oe]=Re(Pe[Oe],Oe,Pe);return St}function Bo(Pe,Re){for(var Oe=-1,it=Re.length,St=Pe.length;++Oe<it;)Pe[St+Oe]=Re[Oe];return Pe}function zr(Pe,Re,Oe,it){var St=-1,Ht=Pe==null?0:Pe.length;for(it&&Ht&&(Oe=Pe[++St]);++St<Ht;)Oe=Re(Oe,Pe[St],St,Pe);return Oe}function fa(Pe,Re,Oe,it){var St=Pe==null?0:Pe.length;for(it&&St&&(Oe=Pe[--St]);St--;)Oe=Re(Oe,Pe[St],St,Pe);return Oe}function Wr(Pe,Re){for(var Oe=-1,it=Pe==null?0:Pe.length;++Oe<it;)if(Re(Pe[Oe],Oe,Pe))return!0;return!1}var ma=Yr("length");function ha(Pe){return Pe.split("")}function ga(Pe){return Pe.match(Ot)||[]}function En(Pe,Re,Oe){var it;return Oe(Pe,function(St,Ht,to){if(Re(St,Ht,to))return it=Ht,!1}),it}function Tr(Pe,Re,Oe,it){for(var St=Pe.length,Ht=Oe+(it?1:-1);it?Ht--:++Ht<St;)if(Re(Pe[Ht],Ht,Pe))return Ht;return-1}function Go(Pe,Re,Oe){return Re===Re?Ba(Pe,Re,Oe):Tr(Pe,xn,Oe)}function ba(Pe,Re,Oe,it){for(var St=Oe-1,Ht=Pe.length;++St<Ht;)if(it(Pe[St],Re))return St;return-1}function xn(Pe){return Pe!==Pe}function An(Pe,Re){var Oe=Pe==null?0:Pe.length;return Oe?Kr(Pe,Re)/Oe:B}function Yr(Pe){return function(Re){return Re==null?r:Re[Pe]}}function qr(Pe){return function(Re){return Pe==null?r:Pe[Re]}}function Bn(Pe,Re,Oe,it,St){return St(Pe,function(Ht,to,Wt){Oe=it?(it=!1,Ht):Re(Oe,Ht,to,Wt)}),Oe}function ya(Pe,Re){var Oe=Pe.length;for(Pe.sort(Re);Oe--;)Pe[Oe]=Pe[Oe].value;return Pe}function Kr(Pe,Re){for(var Oe,it=-1,St=Pe.length;++it<St;){var Ht=Re(Pe[it]);Ht!==r&&(Oe=Oe===r?Ht:Oe+Ht)}return Oe}function Qr(Pe,Re){for(var Oe=-1,it=Array(Pe);++Oe<Pe;)it[Oe]=Re(Oe);return it}function va(Pe,Re){return Kt(Re,function(Oe){return[Oe,Pe[Oe]]})}function Pn(Pe){return Pe&&Pe.slice(0,Ln(Pe)+1).replace(et,"")}function po(Pe){return function(Re){return Pe(Re)}}function Xr(Pe,Re){return Kt(Re,function(Oe){return Pe[Oe]})}function lr(Pe,Re){return Pe.has(Re)}function Nn(Pe,Re){for(var Oe=-1,it=Pe.length;++Oe<it&&Go(Re,Pe[Oe],0)>-1;);return Oe}function Dn(Pe,Re){for(var Oe=Pe.length;Oe--&&Go(Re,Pe[Oe],0)>-1;);return Oe}function Sa(Pe,Re){for(var Oe=Pe.length,it=0;Oe--;)Pe[Oe]===Re&&++it;return it}var Ta=qr(mr),Ca=qr(hr);function ka(Pe){return"\\"+_r[Pe]}function wa(Pe,Re){return Pe==null?r:Pe[Re]}function jo(Pe){return sa.test(Pe)}function Ea(Pe){return la.test(Pe)}function xa(Pe){for(var Re,Oe=[];!(Re=Pe.next()).done;)Oe.push(Re.value);return Oe}function Jr(Pe){var Re=-1,Oe=Array(Pe.size);return Pe.forEach(function(it,St){Oe[++Re]=[St,it]}),Oe}function Vn(Pe,Re){return function(Oe){return Pe(Re(Oe))}}function Po(Pe,Re){for(var Oe=-1,it=Pe.length,St=0,Ht=[];++Oe<it;){var to=Pe[Oe];(to===Re||to===c)&&(Pe[Oe]=c,Ht[St++]=Oe)}return Ht}function Cr(Pe){var Re=-1,Oe=Array(Pe.size);return Pe.forEach(function(it){Oe[++Re]=it}),Oe}function Aa(Pe){var Re=-1,Oe=Array(Pe.size);return Pe.forEach(function(it){Oe[++Re]=[it,it]}),Oe}function Ba(Pe,Re,Oe){for(var it=Oe-1,St=Pe.length;++it<St;)if(Pe[it]===Re)return it;return-1}function Pa(Pe,Re,Oe){for(var it=Oe+1;it--;)if(Pe[it]===Re)return it;return it}function zo(Pe){return jo(Pe)?Da(Pe):ma(Pe)}function yo(Pe){return jo(Pe)?Va(Pe):ha(Pe)}function Ln(Pe){for(var Re=Pe.length;Re--&&nt.test(Pe.charAt(Re)););return Re}var Na=qr(gr);function Da(Pe){for(var Re=Ur.lastIndex=0;Ur.test(Pe);)++Re;return Re}function Va(Pe){return Pe.match(Ur)||[]}function La(Pe){return Pe.match(ia)||[]}var Ma=function Pe(Re){Re=Re==null?Zt:Wo.defaults(Zt.Object(),Re,Wo.pick(Zt,ca));var Oe=Re.Array,it=Re.Date,St=Re.Error,Ht=Re.Function,to=Re.Math,Wt=Re.Object,Zr=Re.RegExp,Oa=Re.String,ho=Re.TypeError,kr=Oe.prototype,Ia=Ht.prototype,Yo=Wt.prototype,wr=Re["__c
19ore-js_shared__"],Er=Ia.toString,Gt=Yo.hasOwnProperty,Fa=0,Mn=function(){var g=/[^.]+$/.exec(wr&&wr.keys&&wr.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),xr=Yo.toString,Ra=Er.call(Wt),$a=Zt._,Ha=Zr("^"+Er.call(Gt).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ar=bn?Re.Buffer:r,No=Re.Symbol,Br=Re.Uint8Array,On=Ar?Ar.allocUnsafe:r,Pr=Vn(Wt.getPrototypeOf,Wt),In=Wt.create,Fn=Yo.propertyIsEnumerable,Nr=kr.splice,Rn=No?No.isConcatSpreadable:r,cr=No?No.iterator:r,Io=No?No.toStringTag:r,Dr=function(){try{var g=oi(Wt,"defineProperty");return g({},"",{}),g}catch{}}(),Ua=Re.clearTimeout!==Zt.clearTimeout&&Re.clearTimeout,Ga=it&&it.now!==Zt.Date.now&&it.now,ja=Re.setTimeout!==Zt.setTimeout&&Re.setTimeout,Vr=to.ceil,Lr=to.floor,en=Wt.getOwnPropertySymbols,za=Ar?Ar.isBuffer:r,$n=Re.isFinite,Wa=kr.join,Ya=Vn(Wt.keys,Wt),oo=to.max,ao=to.min,qa=it.now,Ka=Re.parseInt,Hn=to.random,so=kr.reverse,ii=oi(Re,"DataView"),Un=oi(Re,"Map"),si=oi(Re,"Promise"),tn=oi(Re,"Set"),Gn=oi(Re,"WeakMap"),jn=oi(Wt,"create"),Qa=Gn&&new Gn,rn={},ki=ri(ii),wi=ri(Un),Ei=ri(si),xi=ri(tn),Ai=ri(Gn),Xa=No?No.prototype:r,zn=Xa?Xa.valueOf:r,fi=Xa?Xa.toString:r;function ie(g){if(io(g)&&!Lt(g)&&!(g instanceof Rt)){if(g instanceof ko)return g;if(Gt.call(g,"__wrapped__"))return ec(g)}return new ko(g)}var nn=function(){function g(){}return function(v){if(!no(v))return{};if(In)return In(v);g.prototype=v;var P=new g;return g.prototype=r,P}}();function Ja(){}function ko(g,v){this.__wrapped__=g,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=r}ie.templateSettings={escape:st,evaluate:bt,interpolate:Bt,variable:"",imports:{_:ie}},ie.prototype=Ja.prototype,ie.prototype.constructor=ie,ko.prototype=nn(Ja.prototype),ko.prototype.constructor=ko;function Rt(g){this.__wrapped__=g,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function Bi(){var g=new Rt(this.__wrapped__);return g.__actions__=Do(this.__actions__),g.__dir__=this.__dir__,g.__filtered__=this.__filtered__,g.__iteratees__=Do(this.__iteratees__),g.__takeCount__=this.__takeCount__,g.__views__=Do(this.__views__),g}function Pi(){if(this.__filtered__){var g=new Rt(this);g.__dir__=-1,g.__filtered__=!0}else g=this.clone(),g.__dir__*=-1;return g}function Ni(){var g=this.__wrapped__.value(),v=this.__dir__,P=Lt(g),G=v<0,ee=P?g.length:0,ce=Fd(0,ee,this.__views__),be=ce.start,Ee=ce.end,Ve=Ee-be,Ue=G?Ee:be-1,je=this.__iteratees__,Qe=je.length,at=0,mt=ao(Ve,this.__takeCount__);if(!P||!G&&ee==Ve&&mt==Ve)return Cl(g,this.__actions__);var Tt=[];e:for(;Ve--&&at<mt;){Ue+=v;for(var It=-1,Ct=g[Ue];++It<Qe;){var Ut=je[It],jt=Ut.iteratee,$o=Ut.type,xo=jt(Ct);if($o==R)Ct=xo;else if(!xo){if($o==O)continue e;break e}}Tt[at++]=Ct}return Tt}Rt.prototype=nn(Ja.prototype),Rt.prototype.constructor=Rt;function Mr(g){var v=-1,P=g==null?0:g.length;for(this.clear();++v<P;){var G=g[v];this.set(G[0],G[1])}}function Di(){this.__data__=jn?jn(null):{},this.size=0}function Vi(g){var v=this.has(g)&&delete this.__data__[g];return this.size-=v?1:0,v}function Li(g){var v=this.__data__;if(jn){var P=v[g];return P===l?r:P}return Gt.call(v,g)?v[g]:r}function Mi(g){var v=this.__data__;return jn?v[g]!==r:Gt.call(v,g)}function Oi(g,v){var P=this.__data__;return this.size+=this.has(g)?0:1,P[g]=jn&&v===r?l:v,this}Mr.prototype.clear=Di,Mr.prototype.delete=Vi,Mr.prototype.get=Li,Mr.prototype.has=Mi,Mr.prototype.set=Oi;function qo(g){var v=-1,P=g==null?0:g.length;for(this.clear();++v<P;){var G=g[v];this.set(G[0],G[1])}}function Ii(){this.__data__=[],this.size=0}function Fi(g){var v=this.__data__,P=$i(v,g);if(P<0)return!1;var G=v.length-1;return P==G?v.pop():Nr.call(v,P,1),--this.size,!0}function Ri(g){var v=this.__data__,P=$i(v,g);return P<0?r:v[P][1]}function ro(g){return $i(this.__data__,g)>-1}function Oc(g,v){var P=this.__data__,G=$i(P,g);return G<0?(++this.size,P.push([g,v])):P[G][1]=v,this}qo.prototype.clear=Ii,qo.prototype.delete=Fi,qo.prototype.get=Ri,qo.prototype.has=ro,qo.prototype.set=Oc;function an(g){var v=-1,P=g==null?0:g.length;for(this.clear();++v<P;){var G=g[v];this.set(G[0],G[1])}}function Ic(){this.size=0,this.__data__={hash:new Mr,map:new(Un||qo),str
vendor: 6,055 bytes, line 19
19ing:new Mr}}function Fc(g){var v=Ji(this,g).delete(g);return this.size-=v?1:0,v}function Rc(g){return Ji(this,g).get(g)}function $c(g){return Ji(this,g).has(g)}function Hc(g,v){var P=Ji(this,g),G=P.size;return P.set(g,v),this.size+=P.size==G?0:1,this}an.prototype.clear=Ic,an.prototype.delete=Fc,an.prototype.get=Rc,an.prototype.has=$c,an.prototype.set=Hc;function Za(g){var v=-1,P=g==null?0:g.length;for(this.__data__=new an;++v<P;)this.add(g[v])}function Uc(g){return this.__data__.set(g,l),this}function Gc(g){return this.__data__.has(g)}Za.prototype.add=Za.prototype.push=Uc,Za.prototype.has=Gc;function dr(g){var v=this.__data__=new qo(g);this.size=v.size}function jc(){this.__data__=new qo,this.size=0}function zc(g){var v=this.__data__,P=v.delete(g);return this.size=v.size,P}function Wc(g){return this.__data__.get(g)}function Yc(g){return this.__data__.has(g)}function qc(g,v){var P=this.__data__;if(P instanceof qo){var G=P.__data__;if(!Un||G.length<n-1)return G.push([g,v]),this.size=++P.size,this;P=this.__data__=new an(G)}return P.set(g,v),this.size=P.size,this}dr.prototype.clear=jc,dr.prototype.delete=zc,dr.prototype.get=Wc,dr.prototype.has=Yc,dr.prototype.set=qc;function el(g,v){var P=Lt(g),G=!P&&ni(g),ee=!P&&!G&&Qn(g),ce=!P&&!G&&!ee&&ui(g),be=P||G||ee||ce,Ee=be?Qr(g.length,Oa):[],Ve=Ee.length;for(var Ue in g)(v||Gt.call(g,Ue))&&!(be&&(Ue=="length"||ee&&(Ue=="offset"||Ue=="parent")||ce&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||dn(Ue,Ve)))&&Ee.push(Ue);return Ee}function tl(g){var v=g.length;return v?g[vs(0,v-1)]:r}function Kc(g,v){return Zi(Do(g),ei(v,0,g.length))}function Qc(g){return Zi(Do(g))}function ds(g,v,P){(P!==r&&!ur(g[v],P)||P===r&&!(v in g))&&sn(g,v,P)}function mi(g,v,P){var G=g[v];(!(Gt.call(g,v)&&ur(G,P))||P===r&&!(v in g))&&sn(g,v,P)}function $i(g,v){for(var P=g.length;P--;)if(ur(g[P][0],v))return P;return-1}function Xc(g,v,P,G){return Wn(g,function(ee,ce,be){v(G,ee,P(ee),be)}),G}function ol(g,v){return g&&Ir(v,go(v),g)}function Jc(g,v){return g&&Ir(v,Lo(v),g)}function sn(g,v,P){v=="__proto__"&&Dr?Dr(g,v,{configurable:!0,enumerable:!0,value:P,writable:!0}):g[v]=P}function us(g,v){for(var P=-1,G=v.length,ee=Oe(G),ce=g==null;++P<G;)ee[P]=ce?r:zs(g,v[P]);return ee}function ei(g,v,P){return g===g&&(P!==r&&(g=g<=P?g:P),v!==r&&(g=g>=v?g:v)),g}function Ko(g,v,P,G,ee,ce){var be,Ee=v&u,Ve=v&f,Ue=v&m;if(P&&(be=ee?P(g,G,ee,ce):P(g)),be!==r)return be;if(!no(g))return g;var je=Lt(g);if(je){if(be=$d(g),!Ee)return Do(g,be)}else{var Qe=So(g),at=Qe==ge||Qe==Q;if(Qn(g))return El(g,Ee);if(Qe==ae||Qe==te||at&&!ee){if(be=Ve||at?{}:zl(g),!Ee)return Ve?Bd(g,Jc(be,g)):Ad(g,ol(be,g))}else{if(!At[Qe])return ee?g:{};be=Hd(g,Qe,Ee)}}ce||(ce=new dr);var mt=ce.get(g);if(mt)return mt;ce.set(g,be),vc(g)?g.forEach(function(Ct){be.add(Ko(Ct,v,P,Ct,g,ce))}):bc(g)&&g.forEach(function(Ct,Ut){be.set(Ut,Ko(Ct,v,P,Ut,g,ce))});var Tt=Ue?Ve?Ns:Ps:Ve?Lo:go,It=je?r:Tt(g);return mo(It||g,function(Ct,Ut){It&&(Ut=Ct,Ct=g[Ut]),mi(be,Ut,Ko(Ct,v,P,Ut,g,ce))}),be}function Zc(g){var v=go(g);return function(P){return rl(P,g,v)}}function rl(g,v,P){var G=P.length;if(g==null)return!G;for(g=Wt(g);G--;){var ee=P[G],ce=v[ee],be=g[ee];if(be===r&&!(ee in g)||!ce(be))return!1}return!0}function nl(g,v,P){if(typeof g!="function")throw new ho(i);return Ti(function(){g.apply(r,P)},v)}function hi(g,v,P,G){var ee=-1,ce=Sr,be=!0,Ee=g.length,Ve=[],Ue=v.length;if(!Ee)return Ve;P&&(v=Kt(v,po(P))),G?(ce=jr,be=!1):v.length>=n&&(ce=lr,be=!1,v=new Za(v));e:for(;++ee<Ee;){var je=g[ee],Qe=P==null?je:P(je);if(je=G||je!==0?je:0,be&&Qe===Qe){for(var at=Ue;at--;)if(v[at]===Qe)continue e;Ve.push(je)}else ce(v,Qe,G)||Ve.push(je)}return Ve}var Wn=Nl(Or),al=Nl(fs,!0);function ed(g,v){var P=!0;return Wn(g,function(G,ee,ce){return P=!!v(G,ee,ce),P}),P}function Hi(g,v,P){for(var G=-1,ee=g.length;++G<ee;){var ce=g[G],be=v(ce);if(be!=null&&(Ee===r?be===be&&!Ro(be):P(be,Ee)))var Ee=be,Ve=ce}return Ve}function td(g,v,P,G){var ee=g.length;for(P=Mt(P),P<0&&(P=-P>ee?0:ee+P),G=G===r||G>ee?ee:Mt(G),G<0&&(G+=ee),G=P>G?0:Tc(G);P<G;)g[P++]=v;return g}function il(g,v){var P=[];return Wn(g,function(G,ee,ce){v(G,ee,ce)&&P.push(G)}),P}function vo(g,v,P,G,ee){var ce=-1,be=g.length;for(P||(P=Gd),ee||(ee=[]);++ce<be;){var Ee=g[ce];v>0&&P(Ee)?v>1?vo(Ee,v-1,P,G,ee):Bo(ee,Ee):G||(ee[ee.length]=Ee)}return ee}var ps=Dl(),sl=Dl(!0);function Or(g,v){return g&&ps(g,v,go)}function fs(g,v){return g&&sl(g,v,go)}function Ui(g,v){return Ao(v,function(P){return un(g[P])})}function ti(g,v){v=qn(v,g);for(var P=0,G=v.length;g!=null&&P<G;)g=g[Fr(v[P++])];return P&&P==G?g:r}function ll(g,v,P){var G=v(g);return Lt(g)?G:Bo(G,P(g))}function wo(g){return g==null?g===r?fe:Ce:Io&&Io in Wt(g)?Id(g):Qd(g)}function ms(g,v){return g>v}function od(g,v){return g!=null&&Gt.call(g,v)}function rd(g,v){return g!=null&&v in Wt(g)}function nd(g,v,P){return g>=ao(v,P)&&g<oo(v,P)}function hs(g,v,P){for(var G=P?jr:Sr,ee=g[0].length,ce=g.length,be=ce,Ee=Oe(ce),Ve=1/0,Ue=[];be--;){var je=g[be];be&&v&&(je=Kt(je,po(v))),Ve=ao(je.length,Ve),Ee[be]=!P&&(v||ee>=120&&je.length>=120)?new Za(be&&je):r}je=g[0];var Qe=-1,at=Ee[0];e:for(;++Qe<ee&&Ue.length<Ve;){var mt=je[Qe],Tt=v?v(mt):mt;if(mt=P||mt!==0?mt:0,!(at?lr(at,Tt):G(Ue,Tt,P))){for(be=ce;--be;){var It=Ee[be];if(!(It?lr(It,Tt):G(g[be],Tt,P)))continue e}at&&at.push(Tt),Ue.push(mt)}}return Ue}function ad(g,v,P,G){return Or(g,function(ee,ce,be){v(G,P(ee),ce,be)}),G}function gi(g,v,P){v=qn(v,g),g=Kl(g,v);var G=g==null?g:g[Fr(Xo(v))];return G==null?r:uo(G,g,P)}function cl(g){return io(g)&&wo(g)==te}function id(g){return io(g)&&wo(g)==ve}function sd(g){return io(g)&&wo(g)==se}function bi(g,v,P,G,ee){return g===v?!0:g==null||v==null||!io(g)&&!io(v)?g!==g&&v!==v:ld(g,v,P,G,bi,ee)}function ld(g,v,P,G,ee,ce){var be=Lt(g),Ee=Lt(v),Ve=be?re:So(g),Ue=Ee?re:So(v);Ve=Ve==te?ae:Ve,Ue=Ue==te?ae:Ue;var je=Ve==ae,Qe=Ue==ae,at=Ve==Ue;if(at&&Qn(g)){if(!Qn(v))return!1;be=!0,je=!1}if(at&&!je)return ce||(ce=new dr),be||ui(g)?Ul(g,v,P,G,ee,ce):Md(g,v,Ve,P,G,ee,ce);if(!(P&b)){var mt=je&&Gt.call(g,"__wrapped__"),Tt=Qe&&Gt.call(v,"__wrapped__");
vendor: 18,548 bytes, lines 19-21
19if(mt||Tt){var It=mt?g.value():g,Ct=Tt?v.value():v;return ce||(ce=new dr),ee(It,Ct,P,G,ce)}}return at?(ce||(ce=new dr),Od(g,v,P,G,ee,ce)):!1}function cd(g){return io(g)&&So(g)==Y}function gs(g,v,P,G){var ee=P.length,ce=ee,be=!G;if(g==null)return!ce;for(g=Wt(g);ee--;){var Ee=P[ee];if(be&&Ee[2]?Ee[1]!==g[Ee[0]]:!(Ee[0]in g))return!1}for(;++ee<ce;){Ee=P[ee];var Ve=Ee[0],Ue=g[Ve],je=Ee[1];if(be&&Ee[2]){if(Ue===r&&!(Ve in g))return!1}else{var Qe=new dr;if(G)var at=G(Ue,je,Ve,g,v,Qe);if(!(at===r?bi(je,Ue,b|y,G,Qe):at))return!1}}return!0}function dl(g){if(!no(g)||zd(g))return!1;var v=un(g)?Ha:We;return v.test(ri(g))}function dd(g){return io(g)&&wo(g)==K}function ud(g){return io(g)&&So(g)==q}function pd(g){return io(g)&&as(g.length)&&!!gt[wo(g)]}function ul(g){return typeof g=="function"?g:g==null?Mo:typeof g=="object"?Lt(g)?ml(g[0],g[1]):fl(g):Vc(g)}function _s(g){if(!Si(g))return Ya(g);var v=[];for(var P in Wt(g))Gt.call(g,P)&&P!="constructor"&&v.push(P);return v}function fd(g){if(!no(g))return Kd(g);var v=Si(g),P=[];for(var G in g)G=="constructor"&&(v||!Gt.call(g,G))||P.push(G);return P}function bs(g,v){return g<v}function pl(g,v){var P=-1,G=Vo(g)?Oe(g.length):[];return Wn(g,function(ee,ce,be){G[++P]=v(ee,ce,be)}),G}function fl(g){var v=Vs(g);return v.length==1&&v[0][2]?Yl(v[0][0],v[0][1]):function(P){return P===g||gs(P,g,v)}}function ml(g,v){return Ms(g)&&Wl(v)?Yl(Fr(g),v):function(P){var G=zs(P,g);return G===r&&G===v?Ws(P,g):bi(v,G,b|y)}}function Gi(g,v,P,G,ee){g!==v&&ps(v,function(ce,be){if(ee||(ee=new dr),no(ce))md(g,v,be,P,Gi,G,ee);else{var Ee=G?G(Is(g,be),ce,be+"",g,v,ee):r;Ee===r&&(Ee=ce),ds(g,be,Ee)}},Lo)}function md(g,v,P,G,ee,ce,be){var Ee=Is(g,P),Ve=Is(v,P),Ue=be.get(Ve);if(Ue){ds(g,P,Ue);return}var je=ce?ce(Ee,Ve,P+"",g,v,be):r,Qe=je===r;if(Qe){var at=Lt(Ve),mt=!at&&Qn(Ve),Tt=!at&&!mt&&ui(Ve);je=Ve,at||mt||Tt?Lt(Ee)?je=Ee:lo(Ee)?je=Do(Ee):mt?(Qe=!1,je=El(Ve,!0)):Tt?(Qe=!1,je=xl(Ve,!0)):je=[]:Ci(Ve)||ni(Ve)?(je=Ee,ni(Ee)?je=Cc(Ee):(!no(Ee)||un(Ee))&&(je=zl(Ve))):Qe=!1}Qe&&(be.set(Ve,je),ee(je,Ve,G,ce,be),be.delete(Ve)),ds(g,P,je)}function hl(g,v){var P=g.length;if(P)return v+=v<0?P:0,dn(v,P)?g[v]:r}function gl(g,v,P){v.length?v=Kt(v,function(ce){return Lt(ce)?function(be){return ti(be,ce.length===1?ce[0]:ce)}:ce}):v=[Mo];var G=-1;v=Kt(v,po(vt()));var ee=pl(g,function(ce,be,Ee){var Ve=Kt(v,function(Ue){return Ue(ce)});return{criteria:Ve,index:++G,value:ce}});return ya(ee,function(ce,be){return xd(ce,be,P)})}function hd(g,v){return _l(g,v,function(P,G){return Ws(g,G)})}function _l(g,v,P){for(var G=-1,ee=v.length,ce={};++G<ee;){var be=v[G],Ee=ti(g,be);P(Ee,be)&&yi(ce,qn(be,g),Ee)}return ce}function gd(g){return function(v){return ti(v,g)}}function ys(g,v,P,G){var ee=G?ba:Go,ce=-1,be=v.length,Ee=g;for(g===v&&(v=Do(v)),P&&(Ee=Kt(g,po(P)));++ce<be;)for(var Ve=0,Ue=v[ce],je=P?P(Ue):Ue;(Ve=ee(Ee,je,Ve,G))>-1;)Ee!==g&&Nr.call(Ee,Ve,1),Nr.call(g,Ve,1);return g}function bl(g,v){for(var P=g?v.length:0,G=P-1;P--;){var ee=v[P];if(P==G||ee!==ce){var ce=ee;dn(ee)?Nr.call(g,ee,1):Cs(g,ee)}}return g}function vs(g,v){return g+Lr(Hn()*(v-g+1))}function _d(g,v,P,G){for(var ee=-1,ce=oo(Vr((v-g)/(P||1)),0),be=Oe(ce);ce--;)be[G?ce:++ee]=g,g+=P;return be}function Ss(g,v){var P="";if(!g||v<1||v>H)return P;do v%2&&(P+=g),v=Lr(v/2),v&&(g+=g);while(v);return P}function $t(g,v){return Fs(ql(g,v,Mo),g+"")}function bd(g){return tl(pi(g))}function yd(g,v){var P=pi(g);return Zi(P,ei(v,0,P.length))}function yi(g,v,P,G){if(!no(g))return g;v=qn(v,g);for(var ee=-1,ce=v.length,be=ce-1,Ee=g;Ee!=null&&++ee<ce;){var Ve=Fr(v[ee]),Ue=P;if(Ve==="__proto__"||Ve==="constructor"||Ve==="prototype")return g;if(ee!=be){var je=Ee[Ve];Ue=G?G(je,Ve,Ee):r,Ue===r&&(Ue=no(je)?je:dn(v[ee+1])?[]:{})}mi(Ee,Ve,Ue),Ee=Ee[Ve]}return g}var yl=Qa?function(g,v){return Qa.set(g,v),g}:Mo,vd=Dr?function(g,v){return Dr(g,"toString",{configurable:!0,enumerable:!1,value:qs(v),writable:!0})}:Mo;function Sd(g){return Zi(pi(g))}function Qo(g,v,P){var G=-1,ee=g.length;v<0&&(v=-v>ee?0:ee+v),P=P>ee?ee:P,P<0&&(P+=ee),ee=v>P?0:P-v>>>0,v>>>=0;for(var ce=Oe(ee);++G<ee;)ce[G]=g[G+v];return ce}function Td(g,v){var P;return Wn(g,function(G,ee,ce){return P=v(G,ee,ce),!P}),!!P}function ji(g,v,P){var G=0,ee=g==null?G:g.length;if(typeof v=="number"&&v===v&&ee<=W){for(;G<ee;){var ce=G+ee>>>1,be=g[ce];be!==null&&!Ro(be)&&(P?be<=v:be<v)?G=ce+1:ee=ce}return ee}return Ts(g,v,Mo,P)}function Ts(g,v,P,G){var ee=0,ce=g==null?0:g.length;if(ce===0)return 0;v=P(v);for(var be=v!==v,Ee=v===null,Ve=Ro(v),Ue=v===r;ee<ce;){var je=Lr((ee+ce)/2),Qe=P(g[je]),at=Qe!==r,mt=Qe===null,Tt=Qe===Qe,It=Ro(Qe);if(be)var Ct=G||Tt;else Ue?Ct=Tt&&(G||at):Ee?Ct=Tt&&at&&(G||!mt):Ve?Ct=Tt&&at&&!mt&&(G||!It):mt||It?Ct=!1:Ct=G?Qe<=v:Qe<v;Ct?ee=je+1:ce=je}return ao(ce,z)}function vl(g,v){for(var P=-1,G=g.length,ee=0,ce=[];++P<G;){var be=g[P],Ee=v?v(be):be;if(!P||!ur(Ee,Ve)){var Ve=Ee;ce[ee++]=be===0?0:be}}return ce}function Sl(g){return typeof g=="number"?g:Ro(g)?B:+g}function Fo(g){if(typeof g=="string")return g;if(Lt(g))return Kt(g,Fo)+"";if(Ro(g))return fi?fi.call(g):"";var v=g+"";return v=="0"&&1/g==-j?"-0":v}function Yn(g,v,P){var G=-1,ee=Sr,ce=g.length,be=!0,Ee=[],Ve=Ee;if(P)be=!1,ee=jr;else if(ce>=n){var Ue=v?null:Vd(g);if(Ue)return Cr(Ue);be=!1,ee=lr,Ve=new Za}else Ve=v?[]:Ee;e:for(;++G<ce;){var je=g[G],Qe=v?v(je):je;if(je=P||je!==0?je:0,be&&Qe===Qe){for(var at=Ve.length;at--;)if(Ve[at]===Qe)continue e;v&&Ve.push(Qe),Ee.push(je)}else ee(Ve,Qe,P)||(Ve!==Ee&&Ve.push(Qe),Ee.push(je))}return Ee}function Cs(g,v){return v=qn(v,g),g=Kl(g,v),g==null||delete g[Fr(Xo(v))]}function Tl(g,v,P,G){return yi(g,v,P(ti(g,v)),G)}function zi(g,v,P,G){for(var ee=g.length,ce=G?ee:-1;(G?ce--:++ce<ee)&&v(g[ce],ce,g););return P?Qo(g,G?0:ce,G?ce+1:ee):Qo(g,G?ce+1:0,G?ee:ce)}function Cl(g,v){var P=g;return P instanceof Rt&&(P=P.value()),zr(v,function(G,ee){return ee.func.apply(ee.thisArg,Bo([G],ee.args))},P)}function ks(g,v,P){var G=g.length;if(G<2)return G?Yn(g[0]):[];for(var ee=-1,ce=Oe(G);++ee<G;)for(var be=g[ee],Ee=-1;++Ee<G;)Ee!=ee&&(ce[ee]=hi(ce[ee]||be,g[Ee],v,P));return Yn(vo(ce,1),v,P)}function kl(g,v,P){for(var G=-1,ee=g.length,ce=v.length,be={};++G<ee;){var Ee=G<ce?v[G]:r;P(be,g[G],Ee)}return be}function ws(g){return lo(g)?g:[]}function Es(g){return typeof g=="function"?g:Mo}function qn(g,v){return Lt(g)?g:Ms(g,v)?[g]:Zl(Qt(g))}var Cd=$t;function Kn(g,v,P){var G=g.length;return P=P===r?G:P,!v&&P>=G?g:Qo(g,v,P)}var wl=Ua||function(g){return Zt.clearTimeout(g)};function El(g,v){if(v)return g.slice();var P=g.length,G=On?On(P):new g.constructor(P);return g.copy(G),G}function xs(g){var v=new g.constructor(g.byteLength);return new Br(v).set(new Br(g)),v}function kd(g,v){var P=v?xs(g.buffer):g.buffer;return new g.constructor(P,g.byteOffset,g.byteLength)}function wd(g){var v=new g.constructor(g.source,Ie.exec(g));return v.lastIndex=g.lastIndex,v}function Ed(g){return zn?Wt(zn.call(g)):{}}function xl(g,v){var P=v?xs(g.buffer):g.buffer;return new g.constructor(P,g.byteOffset,g.length)}function Al(g,v){if(g!==v){var P=g!==r,G=g===null,ee=g===g,ce=Ro(g),be=v!==r,Ee=v===null,Ve=v===v,Ue=Ro(v);if(!Ee&&!Ue&&!ce&&g>v||ce&&be&&Ve&&!Ee&&!Ue||G&&be&&Ve||!P&&Ve||!ee)return 1;if(!G&&!ce&&!Ue&&g<v||Ue&&P&&ee&&!G&&!ce||Ee&&P&&ee||!be&&ee||!Ve)return-1}return 0}function xd(g,v,P){for(var G=-1,ee=g.criteria,ce=v.criteria,be=ee.length,Ee=P.length;++G<be;){var Ve=Al(ee[G],ce[G]);if(Ve){if(G>=Ee)return Ve;var Ue=P[G];return Ve*(Ue=="desc"?-1:1)}}return g.index-v.index}function Bl(g,v,P,G){for(var ee=-1,ce=g.length,be=P.length,Ee=-1,Ve=v.length,Ue=oo(ce-be,0),je=Oe(Ve+Ue),Qe=!G;++Ee<Ve;)je[Ee]=v[Ee];for(;++ee<be;)(Qe||ee<ce)&&(je[P[ee]]=g[ee]);for(;Ue--;)je[Ee++]=g[ee++];return je}function Pl(g,v,P,G){for(var ee=-1,ce=g.length,be=-1,Ee=P.length,Ve=-1,Ue=v.length,je=oo(ce-Ee,0),Qe=Oe(je+Ue),at=!G;++ee<je;)Qe[ee]=g[ee];for(var mt=ee;++Ve<Ue;)Qe[mt+Ve]=v[Ve];for(;++be<Ee;)(at||ee<ce)&&(Qe[mt+P[be]]=g[ee++]);return Qe}function Do(g,v){var P=-1,G=g.length;for(v||(v=Oe(G));++P<G;)v[P]=g[P];return v}function Ir(g,v,P,G){var ee=!P;P||(P={});for(var ce=-1,be=v.length;++ce<be;){var Ee=v[ce],Ve=G?G(P[Ee],g[Ee],Ee,P,g):r;Ve===r&&(Ve=g[Ee]),ee?sn(P,Ee,Ve):mi(P,Ee,Ve)}return P}function Ad(g,v){return Ir(g,Ls(g),v)}function Bd(g,v){return Ir(g,Gl(g),v)}function Wi(g,v){return function(P,G){var ee=Lt(P)?ua:Xc,ce=v?v():{};return ee(P,g,vt(G,2),ce)}}function li(g){return $t(function(v,P){var G=-1,ee=P.length,ce=ee>1?P[ee-1]:r,be=ee>2?P[2]:r;for(ce=g.length>3&&typeof ce=="function"?(ee--,ce):r,be&&Eo(P[0],P[1],be)&&(ce=ee<3?r:ce,ee=1),v=Wt(v);++G<ee;){var Ee=P[G];Ee&&g(v,Ee,G,ce)}return v})}function Nl(g,v){return function(P,G){if(P==null)return P;if(!Vo(P))return g(P,G);for(var ee=P.length,ce=v?ee:-1,be=Wt(P);(v?ce--:++ce<ee)&&G(be[ce],ce,be)!==!1;);return P}}function Dl(g){return function(v,P,G){for(var ee=-1,ce=Wt(v),be=G(v),Ee=be.length;Ee--;){var Ve=be[g?Ee:++ee];if(P(ce[Ve],Ve,ce)===!1)break}return v}}function Pd(g,v,P){var G=v&_,ee=vi(g);function ce(){var be=this&&this!==Zt&&this instanceof ce?ee:g;return be.apply(G?P:this,arguments)}return ce}function Vl(g){return function(v){v=Qt(v);var P=jo(v)?yo(v):r,G=P?P[0]:v.charAt(0),ee=P?Kn(P,1).join(""):v.slice(1);return G[g]()+ee}}function ci(g){return function(v){return zr(Nc(Pc(v).replace(na,"")),g,"")}}function vi(g){return function(){var v=arguments;switch(v.length){case 0:return new g;case 1:return new g(v[0]);case 2:return new g(v[0],v[1]);case 3:return new g(v[0],v[1],v[2]);case 4:return new g(v[0],v[1],v[2],v[3]);case 5:return new g(v[0],v[1],v[2],v[3],v[4]);case 6:return new g(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new g(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var P=nn(g.prototype),G=g.apply(P,v);return no(G)?G:P}}function Nd(g,v,P){var G=vi(g);function ee(){for(var ce=arguments.length,be=Oe(ce),Ee=ce,Ve=di(ee);Ee--;)be[Ee]=arguments[Ee];var Ue=ce<3&&be[0]!==Ve&&be[ce-1]!==Ve?[]:Po(be,Ve);if(ce-=Ue.length,ce<P)return Fl(g,v,Yi,ee.placeholder,r,be,Ue,r,r,P-ce);var je=this&&this!==Zt&&this instanceof ee?G:g;return uo(je,this,be)}return ee}function Ll(g){return function(v,P,G){var ee=Wt(v);if(!Vo(v)){var ce=vt(P,3);v=go(v),P=function(Ee){return ce(ee[Ee],Ee,ee)}}var be=g(v,P,G);return be>-1?ee[ce?v[be]:be]:r}}function Ml(g){return cn(function(v){var P=v.length,G=P,ee=ko.prototype.thru;for(g&&v.reverse();G--;){var ce=v[G];if(typeof ce!="function")throw new ho(i);if(ee&&!be&&Xi(ce)=="wrapper")var be=new ko([],!0)}for(G=be?G:P;++G<P;){ce=v[G];var Ee=Xi(ce),Ve=Ee=="wrapper"?Ds(ce):r;Ve&&Os(Ve[0])&&Ve[1]==(w|T|k|D)&&!Ve[4].length&&Ve[9]==1?be=be[Xi(Ve[0])].apply(be,Ve[3]):be=ce.length==1&&Os(ce)?be[Ee]():be.thru(ce)}return function(){var Ue=arguments,je=Ue[0];if(be&&Ue.length==1&&Lt(je))return be.plant(je).value();for(var Qe=0,at=P?v[Qe].apply(this,Ue):je;++Qe<P;)at=v[Qe].call(this,at);return at}})}function Yi(g,v,P,G,ee,ce,be,Ee,Ve,Ue){var je=v&w,Qe=v&_,at=v&S,mt=v&(T|x),Tt=v&N,It=at?r:vi(g);function Ct(){for(var Ut=arguments.length,jt=Oe(Ut),$o=Ut;$o--;)jt[$o]=arguments[$o];if(mt)var xo=di(Ct),Ho=Sa(jt,xo);if(G&&(jt=Bl(jt,G,ee,mt)),ce&&(jt=Pl(jt,ce,be,mt)),Ut-=Ho,mt&&Ut<Ue){var co=Po(jt,xo);return Fl(g,v,Yi,Ct.placeholder,P,jt,co,Ee,Ve,Ue-Ut)}var pr=Qe?P:this,fn=at?pr[g]:g;return Ut=jt.length,Ee?jt=Xd(jt,Ee):Tt&&Ut>1&&jt.reverse(),je&&Ve<Ut&&(jt.length=Ve),this&&this!==Zt&&this instanceof Ct&&(fn=It||vi(fn)),fn.apply(pr,jt)}return Ct}function Ol(g,v){return function(P,G){return ad(P,g,v(G),{})}}function qi(g,v){return function(P,G){var ee;if(P===r&&G===r)return v;if(P!==r&&(ee=P),G!==r){if(ee===r)return G;typeof P=="string"||typeof G=="string"?(P=Fo(P),G=Fo(G)):(P=Sl(P),G=Sl(G)),ee=g(P,G)}return ee}}function As(g){return cn(function(v){return v=Kt(v,po(vt())),$t(function(P){var G=this;return g(v,function(ee){return uo(ee,G,P)})})})}function Ki(g,v){v=v===r?" ":Fo(v);var P=v.length;if(P<2)return P?Ss(v,g):v;var G=Ss(v,Vr(g/zo(v)));return jo(v)?Kn(yo(G),0,g).join(""):G.slice(0,g)}function Dd(g,v,P,G){var ee=v&_,ce=vi(g);function be(){for(var Ee=-1,Ve=arguments.length,Ue=-1,je=G.length,Qe=Oe(je+Ve),at=this&&this!==Zt&&this instanceof be?ce:g;++Ue<je;)Qe[Ue]=G[Ue];for(;Ve--;)Qe[Ue++]=arguments[++Ee];return uo(at,ee?P:this,Qe)}return be}function Il(g){return function(v,P,G){return G&&typeof G!="number"&&Eo(v,P,G)&&(P=G=r),v=pn(v),P===r?(P=v,v=0):P=pn(P),G=G===r?v<P?1:-1:pn(G),_d(v,P,G,g)}}function Qi(g){return function(v,P){return typeof v=="string"&&typeof P=="string"||(v=Jo(v),P=Jo(P)),g(v,P)}}function Fl(g,v,P,G,ee,ce,be,Ee,Ve,Ue){var je=v&T,Qe=je?be:r,at=je?r:be,mt=je?ce:r,Tt=je?r:ce;v|=je?k:E,v&=~(je?E:k),v&C||(v&=~(_|S));var It=[g,v,ee,mt,Qe,Tt,at,Ee,Ve,Ue],Ct=P.apply(r,It);return Os(g)&&Ql(Ct,It),Ct.placeholder=G,Xl(Ct,g,v)}function Bs(g){var v=to[g];return function(P,G){if(P=Jo(P),G=G==null?0:ao(Mt(G),292),G&&$n(P)){var ee=(Qt(P)+"e").split("e"),ce=v(ee[0]+"e"+(+ee[1]+G));return ee=(Qt(ce)+"e").split("e"),+(ee[0]+"e"+(+ee[1]-G))}return v(P)}}var Vd=tn&&1/Cr(new tn([,-0]))[1]==j?function(g){return new tn(g)}:Xs;function Rl(g){return function(v){var P=So(v);return P==Y?Jr(v):P==q?Aa(v):va(v,g(v))}}function ln(g,v,P,G,ee,ce,be,Ee){var Ve=v&S;if(!Ve&&typeof g!="function")throw new ho(i);var Ue=G?G.length:0;if(Ue||(v&=~(k|E),G=ee=r),be=be===r?be:oo(Mt(be),0),Ee=Ee===r?Ee:Mt(Ee),Ue-=ee?ee.length:0,v&E){var je=G,Qe=ee;G=ee=r}var at=Ve?r:Ds(g),mt=[g,v,P,G,ee,je,Qe,ce,be,Ee];if(at&&qd(mt,at),g=mt[0],v=mt[1],P=mt[2],G=mt[3],ee=mt[4],Ee=mt[9]=mt[9]===r?Ve?0:g.length:oo(mt[9]-Ue,0),!Ee&&v&(T|x)&&(v&=~(T|x)),!v||v==_)var Tt=Pd(g,v,P);else v==T||v==x?Tt=Nd(g,v,Ee):(v==k||v==(_|k))&&!ee.length?Tt=Dd(g,v,P,G):Tt=Yi.apply(r,mt);var It=at?yl:Ql;return Xl(It(Tt,mt),g,v)}function $l(g,v,P,G){return g===r||ur(g,Yo[P])&&!Gt.call(G,P)?v:g}function Hl(g,v,P,G,ee,ce){return no(g)&&no(v)&&(ce.set(v,g),Gi(g,v,r,Hl,ce),ce.delete(v)),g}function Ld(g){return Ci(g)?r:g}function Ul(g,v,P,G,ee,ce){var be=P&b,Ee=g.length,Ve=v.length;if(Ee!=Ve&&!(be&&Ve>Ee))return!1;var Ue=ce.get(g),je=ce.get(v);if(Ue&&je)return Ue==v&&je==g;var Qe=-1,at=!0,mt=P&y?new Za:r;for(ce.set(g,v),ce.set(v,g);++Qe<Ee;){var Tt=g[Qe],It=v[Qe];if(G)var Ct=be?G(It,Tt,Qe,v,g,ce):G(Tt,It,Qe,g,v,ce);if(Ct!==r){if(Ct)continue;at=!1;break}if(mt){if(!Wr(v,function(Ut,jt){if(!lr(mt,jt)&&(Tt===Ut||ee(Tt,Ut,P,G,ce)))return mt.push(jt)})){at=!1;break}}else if(!(Tt===It||ee(Tt,It,P,G,ce))){at=!1;break}}return ce.delete(g),ce.delete(v),at}function Md(g,v,P,G,ee,ce,be){switch(P){case Me:if(g.byteLength!=v.byteLength||g.byteOffset!=v.byteOffset)return!1;g=g.buffer,v=v.buffer;case ve:return!(g.byteLength!=v.byteLength||!ce(new Br(g),new Br(v)));case X:case se:case ne:return ur(+g,+v);case he:return g.name==v.name&&g.message==v.message;case K:case Z:return g==v+"";case Y:var Ee=Jr;case q:var Ve=G&b;if(Ee||(Ee=Cr),g.size!=v.size&&!Ve)return!1;var Ue=be.get(g);if(Ue)return Ue==v;G|=y,be.set(g,v);var je=Ul(Ee(g),Ee(v),G,ee,ce,be);return be.delete(g),je;case de:if(zn)return zn.call(g)==zn.call(v)}return!1}function Od(g,v,P,G,ee,ce){var be=P&b,Ee=Ps(g),Ve=Ee.length,Ue=Ps(v),je=Ue.length;if(Ve!=je&&!be)return!1;for(var Qe=Ve;Qe--;){var at=Ee[Qe];if(!(be?at in v:Gt.call(v,at)))return!1}var mt=ce.get(g),Tt=ce.get(v);if(mt&&Tt)return mt==v&&Tt==g;var It=!0;ce.set(g,v),ce.set(v,g);for(var Ct=be;++Qe<Ve;){at=Ee[Qe];var Ut=g[at],jt=v[at];if(G)var $o=be?G(jt,Ut,at,v,g,ce):G(Ut,jt,at,g,v,ce);if(!($o===r?Ut===jt||ee(Ut,jt,P,G,ce):$o)){It=!1;break}Ct||(Ct=at=="constructor")}if(It&&!Ct){var xo=g.constructor,Ho=v.constructor;xo!=Ho&&"constructor"in g&&"constructor"in v&&!(typeof xo=="function"&&xo instanceof xo&&typeof Ho=="function"&&Ho instanceof Ho)&&(It=!1)}return ce.delete(g),ce.delete(v),It}function cn(g){return Fs(ql(g,r,rc),g+"")}function Ps(g){return ll(g,go,Ls)}function Ns(g){return ll(g,Lo,Gl)}var Ds=Qa?function(g){return Qa.get(g)}:Xs;function Xi(g){for(var v=g.name+"",P=rn[v],G=Gt.call(rn,v)?P.length:0;G--;){var ee=P[G],ce=ee.func;if(ce==null||ce==g)return ee.name}return v}function di(g){var v=Gt.call(ie,"placeholder")?ie:g;return v.placeholder}function vt(){var g=ie.iteratee||Ks;return g=g===Ks?ul:g,arguments.length?g(arguments[0],arguments[1]):g}function Ji(g,v){var P=g.__data__;return jd(v)?P[typeof v=="string"?"string":"hash"]:P.map}function Vs(g){for(var v=go(g),P=v.length;P--;){var G=v[P],ee=g[G];v[P]=[G,ee,Wl(ee)]}return v}function oi(g,v){var P=wa(g,v);return dl(P)?P:r}function Id(g){var v=Gt.call(g,Io),P=g[Io];try{g[Io]=r;var G=!0}catch{}var ee=xr.call(g);return G&&(v?g[Io]=P:delete g[Io]),ee}var Ls=en?function(g){return g==null?[]:(g=Wt(g),Ao(en(g),function(v){return Fn.call(g,v)}))}:Js,Gl=en?function(g){for(var v=[];g;)Bo(v,Ls(g)),g=Pr(g);return v}:Js,So=wo;(ii&&So(new ii(new ArrayBuffer(1)))!=Me||Un&&So(new Un)!=Y||si&&So(si.resolve())!=Be||tn&&So(new tn)!=q||Gn&&So(new Gn)!=_e)&&(So=function(g){var v=wo(g),P=v==ae?g.constructor:r,G=P?ri(P):"";if(G)switch(G){case ki:return Me;case wi:return Y;case Ei:return Be;case xi:return q;case Ai:return _e}return v});function Fd(g,v,P){for(var G=-1,ee=P.length;++G<ee;){var ce=P[G],be=ce.size;switch(ce.type){case"drop":g+=be;break;case"dropRight":v-=be;break;case"take":v=ao(v,g+be);break;case"takeRight":g=oo(g,v-be);break}}return{start:g,end:v}}function Rd(g){var v=g.match(ft);return v?v[1].split(Nt):[]}function jl(g,v,P){v=qn(v,g);for(var G=-1,ee=v.length,ce=!1;++G<ee;){var be=Fr(v[G]);if(!(ce=g!=null&&P(g,be)))break;g=g[be]}return ce||++G!=ee?ce:(ee=g==null?0:g.length,!!ee&&as(ee)&&dn(be,ee)&&(Lt(g)||ni(g)))}function $d(g){var v=g.length,P=new g.constructor(v);return v&&typeof g[0]=="string"&&Gt.call(g,"index")&&(P.index=g.index,P.input=g.input),P}function zl(g){return typeof g.constructor=="function"&&!Si(g)?nn(Pr(g)):{}}function Hd(g,v,P){var G=g.constructor;switch(v){case ve:return xs(g);case X:case se:return new G(+g);case Me:return kd(g,P);case Fe:case Te:case Se:case Ae:case ue:case ye:case Xe:case De:case ke:return xl(g,P);case Y:return new G;case ne:case Z:return new G(g);case K:return wd(g);case q:return new G;case de:return Ed(g)}}function Ud(g,v){var P=v.length;if(!P)return g;var G=P-1;return v[G]=(P>1?"& ":"")+v[G],v=v.join(P>2?", ":" "),g.replace(Pt,`{
20/* [wrapped with `+v+`] */
21`)}function Gd(g){return Lt(g)||ni(g)||!!(Rn&&g&&g[Rn])}function dn(g,v){var P=typeof g;return v=v??H,!!v&&(P=="number"||P!="symbol"&&He.test(g))&&g>-1&&g%1==0&&g<v}function Eo(g,v,P){if(!no(P))return!1;var G=typeof v;return(G=="number"?Vo(P)&&dn(v,P.length):G=="string"&&v in P)?ur(P[v],g):!1}function Ms(g,v){if(Lt(g))return!1;var P=typeof g;return P=="number"||P=="symbol"||P=="boolean"||g==null||Ro(g)?!0:Ze.test(g)||!rt.test(g)||v!=null&&g in Wt(v)}
vendor: 1,086 bytes, line 21
21function jd(g){var v=typeof g;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?g!=="__proto__":g===null}function Os(g){var v=Xi(g),P=ie[v];if(typeof P!="function"||!(v in Rt.prototype))return!1;if(g===P)return!0;var G=Ds(P);return!!G&&g===G[0]}function zd(g){return!!Mn&&Mn in g}var Wd=wr?un:Zs;function Si(g){var v=g&&g.constructor,P=typeof v=="function"&&v.prototype||Yo;return g===P}function Wl(g){return g===g&&!no(g)}function Yl(g,v){return function(P){return P==null?!1:P[g]===v&&(v!==r||g in Wt(P))}}function Yd(g){var v=rs(g,function(G){return P.size===d&&P.clear(),G}),P=v.cache;return v}function qd(g,v){var P=g[1],G=v[1],ee=P|G,ce=ee<(_|S|w),be=G==w&&P==T||G==w&&P==D&&g[7].length<=v[8]||G==(w|D)&&v[7].length<=v[8]&&P==T;if(!(ce||be))return g;G&_&&(g[2]=v[2],ee|=P&_?0:C);var Ee=v[3];if(Ee){var Ve=g[3];g[3]=Ve?Bl(Ve,Ee,v[4]):Ee,g[4]=Ve?Po(g[3],c):v[4]}return Ee=v[5],Ee&&(Ve=g[5],g[5]=Ve?Pl(Ve,Ee,v[6]):Ee,g[6]=Ve?Po(g[5],c):v[6]),Ee=v[7],Ee&&(g[7]=Ee),G&w&&(g[8]=g[8]==null?v[8]:ao(g[8],v[8])),g[9]==null&&(g[9]=v[9]),g[0]=v[0],g[1]=ee,g}function Kd(g){var v=[];
vendor: 8,466 bytes, line 21
21if(g!=null)for(var P in Wt(g))v.push(P);return v}function Qd(g){return xr.call(g)}function ql(g,v,P){return v=oo(v===r?g.length-1:v,0),function(){for(var G=arguments,ee=-1,ce=oo(G.length-v,0),be=Oe(ce);++ee<ce;)be[ee]=G[v+ee];ee=-1;for(var Ee=Oe(v+1);++ee<v;)Ee[ee]=G[ee];return Ee[v]=P(be),uo(g,this,Ee)}}function Kl(g,v){return v.length<2?g:ti(g,Qo(v,0,-1))}function Xd(g,v){for(var P=g.length,G=ao(v.length,P),ee=Do(g);G--;){var ce=v[G];g[G]=dn(ce,P)?ee[ce]:r}return g}function Is(g,v){if(!(v==="constructor"&&typeof g[v]=="function")&&v!="__proto__")return g[v]}var Ql=Jl(yl),Ti=ja||function(g,v){return Zt.setTimeout(g,v)},Fs=Jl(vd);function Xl(g,v,P){var G=v+"";return Fs(g,Ud(G,Jd(Rd(G),P)))}function Jl(g){var v=0,P=0;return function(){var G=qa(),ee=M-(G-P);if(P=G,ee>0){if(++v>=A)return arguments[0]}else v=0;return g.apply(r,arguments)}}function Zi(g,v){var P=-1,G=g.length,ee=G-1;for(v=v===r?G:v;++P<v;){var ce=vs(P,ee),be=g[ce];g[ce]=g[P],g[P]=be}return g.length=v,g}var Zl=Yd(function(g){var v=[];return g.charCodeAt(0)===46&&v.push(""),g.replace(dt,function(P,G,ee,ce){v.push(ee?ce.replace(Dt,"$1"):G||P)}),v});function Fr(g){if(typeof g=="string"||Ro(g))return g;var v=g+"";return v=="0"&&1/g==-j?"-0":v}function ri(g){if(g!=null){try{return Er.call(g)}catch{}try{return g+""}catch{}}return""}function Jd(g,v){return mo(J,function(P){var G="_."+P[0];v&P[1]&&!Sr(g,G)&&g.push(G)}),g.sort()}function ec(g){if(g instanceof Rt)return g.clone();var v=new ko(g.__wrapped__,g.__chain__);return v.__actions__=Do(g.__actions__),v.__index__=g.__index__,v.__values__=g.__values__,v}function Zd(g,v,P){(P?Eo(g,v,P):v===r)?v=1:v=oo(Mt(v),0);var G=g==null?0:g.length;if(!G||v<1)return[];for(var ee=0,ce=0,be=Oe(Vr(G/v));ee<G;)be[ce++]=Qo(g,ee,ee+=v);return be}function eu(g){for(var v=-1,P=g==null?0:g.length,G=0,ee=[];++v<P;){var ce=g[v];ce&&(ee[G++]=ce)}return ee}function tu(){var g=arguments.length;if(!g)return[];for(var v=Oe(g-1),P=arguments[0],G=g;G--;)v[G-1]=arguments[G];return Bo(Lt(P)?Do(P):[P],vo(v,1))}var ou=$t(function(g,v){return lo(g)?hi(g,vo(v,1,lo,!0)):[]}),ru=$t(function(g,v){var P=Xo(v);return lo(P)&&(P=r),lo(g)?hi(g,vo(v,1,lo,!0),vt(P,2)):[]}),nu=$t(function(g,v){var P=Xo(v);return lo(P)&&(P=r),lo(g)?hi(g,vo(v,1,lo,!0),r,P):[]});function au(g,v,P){var G=g==null?0:g.length;return G?(v=P||v===r?1:Mt(v),Qo(g,v<0?0:v,G)):[]}function iu(g,v,P){var G=g==null?0:g.length;return G?(v=P||v===r?1:Mt(v),v=G-v,Qo(g,0,v<0?0:v)):[]}function su(g,v){return g&&g.length?zi(g,vt(v,3),!0,!0):[]}function lu(g,v){return g&&g.length?zi(g,vt(v,3),!0):[]}function cu(g,v,P,G){var ee=g==null?0:g.length;return ee?(P&&typeof P!="number"&&Eo(g,v,P)&&(P=0,G=ee),td(g,v,P,G)):[]}function tc(g,v,P){var G=g==null?0:g.length;if(!G)return-1;var ee=P==null?0:Mt(P);return ee<0&&(ee=oo(G+ee,0)),Tr(g,vt(v,3),ee)}function oc(g,v,P){var G=g==null?0:g.length;if(!G)return-1;var ee=G-1;return P!==r&&(ee=Mt(P),ee=P<0?oo(G+ee,0):ao(ee,G-1)),Tr(g,vt(v,3),ee,!0)}function rc(g){var v=g==null?0:g.length;return v?vo(g,1):[]}function du(g){var v=g==null?0:g.length;return v?vo(g,j):[]}function uu(g,v){var P=g==null?0:g.length;return P?(v=v===r?1:Mt(v),vo(g,v)):[]}function pu(g){for(var v=-1,P=g==null?0:g.length,G={};++v<P;){var ee=g[v];G[ee[0]]=ee[1]}return G}function nc(g){return g&&g.length?g[0]:r}function fu(g,v,P){var G=g==null?0:g.length;if(!G)return-1;var ee=P==null?0:Mt(P);return ee<0&&(ee=oo(G+ee,0)),Go(g,v,ee)}function mu(g){var v=g==null?0:g.length;return v?Qo(g,0,-1):[]}var hu=$t(function(g){var v=Kt(g,ws);return v.length&&v[0]===g[0]?hs(v):[]}),gu=$t(function(g){var v=Xo(g),P=Kt(g,ws);return v===Xo(P)?v=r:P.pop(),P.length&&P[0]===g[0]?hs(P,vt(v,2)):[]}),_u=$t(function(g){var v=Xo(g),P=Kt(g,ws);return v=typeof v=="function"?v:r,v&&P.pop(),P.length&&P[0]===g[0]?hs(P,r,v):[]});function bu(g,v){return g==null?"":Wa.call(g,v)}function Xo(g){var v=g==null?0:g.length;return v?g[v-1]:r}function yu(g,v,P){var G=g==null?0:g.length;if(!G)return-1;var ee=G;return P!==r&&(ee=Mt(P),ee=ee<0?oo(G+ee,0):ao(ee,G-1)),v===v?Pa(g,v,ee):Tr(g,xn,ee,!0)}function vu(g,v){return g&&g.length?hl(g,Mt(v)):r}var Su=$t(ac);function ac(g,v){return g&&g.length&&v&&v.length?ys(g,v):g}function Tu(g,v,P){return g&&g.length&&v&&v.length?ys(g,v,vt(P,2)):g}function Cu(g,v,P){return g&&g.length&&v&&v.length?ys(g,v,r,P):g}var ku=cn(function(g,v){var P=g==null?0:g.length,G=us(g,v);return bl(g,Kt(v,function(ee){return dn(ee,P)?+ee:ee}).sort(Al)),G});function wu(g,v){var P=[];if(!(g&&g.length))return P;var G=-1,ee=[],ce=g.length;for(v=vt(v,3);++G<ce;){var be=g[G];v(be,G,g)&&(P.push(be),ee.push(G))}return bl(g,ee),P}function Rs(g){return g==null?g:so.call(g)}function Eu(g,v,P){var G=g==null?0:g.length;return G?(P&&typeof P!="number"&&Eo(g,v,P)?(v=0,P=G):(v=v==null?0:Mt(v),P=P===r?G:Mt(P)),Qo(g,v,P)):[]}function xu(g,v){return ji(g,v)}function Au(g,v,P){return Ts(g,v,vt(P,2))}function Bu(g,v){var P=g==null?0:g.length;if(P){var G=ji(g,v);if(G<P&&ur(g[G],v))return G}return-1}function Pu(g,v){return ji(g,v,!0)}function Nu(g,v,P){return Ts(g,v,vt(P,2),!0)}function Du(g,v){var P=g==null?0:g.length;if(P){var G=ji(g,v,!0)-1;if(ur(g[G],v))return G}return-1}function Vu(g){return g&&g.length?vl(g):[]}function Lu(g,v){return g&&g.length?vl(g,vt(v,2)):[]}function Mu(g){var v=g==null?0:g.length;return v?Qo(g,1,v):[]}function Ou(g,v,P){return g&&g.length?(v=P||v===r?1:Mt(v),Qo(g,0,v<0?0:v)):[]}function Iu(g,v,P){var G=g==null?0:g.length;return G?(v=P||v===r?1:Mt(v),v=G-v,Qo(g,v<0?0:v,G)):[]}function Fu(g,v){return g&&g.length?zi(g,vt(v,3),!1,!0):[]}function Ru(g,v){return g&&g.length?zi(g,vt(v,3)):[]}var $u=$t(function(g){return Yn(vo(g,1,lo,!0))}),Hu=$t(function(g){var v=Xo(g);return lo(v)&&(v=r),Yn(vo(g,1,lo,!0),vt(v,2))}),Uu=$t(function(g){var v=Xo(g);return v=typeof v=="function"?v:r,Yn(vo(g,1,lo,!0),r,v)});function Gu(g){return g&&g.length?Yn(g):[]}function ju(g,v){return g&&g.length?Yn(g,vt(v,2)):[]}function zu(g,v){return v=typeof v=="function"?v:r,g&&g.length?Yn(g,r,v):[]}function $s(g){if(!(g&&g.length))return[];var v=0;return g=Ao(g,function(P){if(lo(P))return v=oo(P.length,v),!0}),Qr(v,function(P){return Kt(g,Yr(P))})}function ic(g,v){if(!(g&&g.length))return[];var P=$s(g);return v==null?P:Kt(P,function(G){return uo(v,r,G)})}var Wu=$t(function(g,v){return lo(g)?hi(g,v):[]}),Yu=$t(function(g){return ks(Ao(g,lo))}),qu=$t(function(g){var v=Xo(g);return lo(v)&&(v=r),ks(Ao(g,lo),vt(v,2))}),Ku=$t(function(g){var v=Xo(g);return v=typeof v=="function"?v:r,ks(Ao(g,lo),r,v)}),Qu=$t($s);function Xu(g,v){return kl(g||[],v||[],mi)}function Ju(g,v){return kl(g||[],v||[],yi)}var Zu=$t(function(g){var v=g.length,P=v>1?g[v-1]:r;return P=typeof P=="function"?(g.pop(),P):r,ic(g,P)});function sc(g){var v=ie(g);return v.__chain__=!0,v}function ep(g,v){return v(g),g}function es(g,v){return v(g)}var tp=cn(function(g){var v=g.length,P=v?g[0]:0,G=this.__wrapped__,ee=function(ce){return us(ce,g)};return v>1||this.__actions__.length||!(G instanceof Rt)||!dn(P)?this.thru(ee):(G=G.slice(P,+P+(v?1:0)),G.__actions__.push({func:es,args:[ee],thisArg:r}),new ko(G,this.__chain__).thru(function(ce){return v&&!ce.length&&ce.push(r),ce}))});function op(){return sc(this)}function rp(){return new ko(this.value(),this.__chain__)}function np(){this.__values__===r&&(this.__values__=Sc(this.value()));var g=this.__index__>=this.__values__.length,v=g?r:this.__values__[this.__index__++];return{done:g,value:v}}function ap(){return this}function ip(g){for(var v,P=this;P instanceof Ja;){var G=ec(P);G.__index__=0,G.__values__=r,v?ee.__wrapped__=G:v=G;var ee=G;P=P.__wrapped__}return ee.__wrapped__=g,v}function sp(){var g=this.__wrapped__;if(g instanceof Rt){var v=g;return this.__actions__.length&&(v=new Rt(this)),v=v.reverse(),v.__actions__.push({func:es,args:[Rs],thisArg:r}),new ko(v,this.__chain__)}return this.thru(Rs)}function lp(){return Cl(this.__wrapped__,this.__actions__)}var cp=Wi(function(g,v,P){Gt.call(g,P)?++g[P]:sn(g,P,1)});function dp(g,v,P){var G=Lt(g)?wn:ed;return P&&Eo(g,v,P)&&(v=r),G(g,vt(v,3))}function up(g,v){var P=Lt(g)?Ao:il;return P(g,vt(v,3))}var pp=Ll(tc),fp=Ll(oc);function mp(g,v){return vo(ts(g,v),1)}function hp(g,v){return vo(ts(g,v),j)}function gp(g,v,P){return P=P===r?1:Mt(P),vo(ts(g,v),P)}function lc(g,v){var P=Lt(g)?mo:Wn;return P(g,vt(v,3))}function cc(g,v){var P=Lt(g)?pa:al;return P(g,vt(v,3))}var _p=Wi(function(g,v,P){Gt.call(g,P)?g[P].push(v):sn(g,P,[v])});function bp(g,v,P,G){g=Vo(g)?g:pi(g),P=P&&!G?Mt(P):0;var ee=g.length;
vendor: 5,328 bytes, line 21
21return P<0&&(P=oo(ee+P,0)),ss(g)?P<=ee&&g.indexOf(v,P)>-1:!!ee&&Go(g,v,P)>-1}var yp=$t(function(g,v,P){var G=-1,ee=typeof v=="function",ce=Vo(g)?Oe(g.length):[];return Wn(g,function(be){ce[++G]=ee?uo(v,be,P):gi(be,v,P)}),ce}),vp=Wi(function(g,v,P){sn(g,P,v)});function ts(g,v){var P=Lt(g)?Kt:pl;return P(g,vt(v,3))}function Sp(g,v,P,G){return g==null?[]:(Lt(v)||(v=v==null?[]:[v]),P=G?r:P,Lt(P)||(P=P==null?[]:[P]),gl(g,v,P))}var Tp=Wi(function(g,v,P){g[P?0:1].push(v)},function(){return[[],[]]});function Cp(g,v,P){var G=Lt(g)?zr:Bn,ee=arguments.length<3;return G(g,vt(v,4),P,ee,Wn)}function kp(g,v,P){var G=Lt(g)?fa:Bn,ee=arguments.length<3;return G(g,vt(v,4),P,ee,al)}function wp(g,v){var P=Lt(g)?Ao:il;return P(g,ns(vt(v,3)))}function Ep(g){var v=Lt(g)?tl:bd;return v(g)}function xp(g,v,P){(P?Eo(g,v,P):v===r)?v=1:v=Mt(v);var G=Lt(g)?Kc:yd;return G(g,v)}function Ap(g){var v=Lt(g)?Qc:Sd;return v(g)}function Bp(g){if(g==null)return 0;if(Vo(g))return ss(g)?zo(g):g.length;var v=So(g);return v==Y||v==q?g.size:_s(g).length}function Pp(g,v,P){var G=Lt(g)?Wr:Td;return P&&Eo(g,v,P)&&(v=r),G(g,vt(v,3))}var Np=$t(function(g,v){if(g==null)return[];var P=v.length;return P>1&&Eo(g,v[0],v[1])?v=[]:P>2&&Eo(v[0],v[1],v[2])&&(v=[v[0]]),gl(g,vo(v,1),[])}),os=Ga||function(){return Zt.Date.now()};function Dp(g,v){if(typeof v!="function")throw new ho(i);return g=Mt(g),function(){if(--g<1)return v.apply(this,arguments)}}function dc(g,v,P){return v=P?r:v,v=g&&v==null?g.length:v,ln(g,w,r,r,r,r,v)}function uc(g,v){var P;if(typeof v!="function")throw new ho(i);return g=Mt(g),function(){return--g>0&&(P=v.apply(this,arguments)),g<=1&&(v=r),P}}var Hs=$t(function(g,v,P){var G=_;if(P.length){var ee=Po(P,di(Hs));G|=k}return ln(g,G,v,P,ee)}),pc=$t(function(g,v,P){var G=_|S;if(P.length){var ee=Po(P,di(pc));G|=k}return ln(v,G,g,P,ee)});function fc(g,v,P){v=P?r:v;var G=ln(g,T,r,r,r,r,r,v);return G.placeholder=fc.placeholder,G}function mc(g,v,P){v=P?r:v;var G=ln(g,x,r,r,r,r,r,v);return G.placeholder=mc.placeholder,G}function hc(g,v,P){var G,ee,ce,be,Ee,Ve,Ue=0,je=!1,Qe=!1,at=!0;if(typeof g!="function")throw new ho(i);v=Jo(v)||0,no(P)&&(je=!!P.leading,Qe="maxWait"in P,ce=Qe?oo(Jo(P.maxWait)||0,v):ce,at="trailing"in P?!!P.trailing:at);function mt(co){var pr=G,fn=ee;return G=ee=r,Ue=co,be=g.apply(fn,pr),be}function Tt(co){return Ue=co,Ee=Ti(Ut,v),je?mt(co):be}function It(co){var pr=co-Ve,fn=co-Ue,Lc=v-pr;return Qe?ao(Lc,ce-fn):Lc}function Ct(co){var pr=co-Ve,fn=co-Ue;return Ve===r||pr>=v||pr<0||Qe&&fn>=ce}function Ut(){var co=os();if(Ct(co))return jt(co);Ee=Ti(Ut,It(co))}function jt(co){return Ee=r,at&&G?mt(co):(G=ee=r,be)}function $o(){Ee!==r&&wl(Ee),Ue=0,G=Ve=ee=Ee=r}function xo(){return Ee===r?be:jt(os())}function Ho(){var co=os(),pr=Ct(co);if(G=arguments,ee=this,Ve=co,pr){if(Ee===r)return Tt(Ve);if(Qe)return wl(Ee),Ee=Ti(Ut,v),mt(Ve)}return Ee===r&&(Ee=Ti(Ut,v)),be}return Ho.cancel=$o,Ho.flush=xo,Ho}var Vp=$t(function(g,v){return nl(g,1,v)}),Lp=$t(function(g,v,P){return nl(g,Jo(v)||0,P)});function Mp(g){return ln(g,N)}function rs(g,v){if(typeof g!="function"||v!=null&&typeof v!="function")throw new ho(i);var P=function(){var G=arguments,ee=v?v.apply(this,G):G[0],ce=P.cache;if(ce.has(ee))return ce.get(ee);var be=g.apply(this,G);return P.cache=ce.set(ee,be)||ce,be};return P.cache=new(rs.Cache||an),P}rs.Cache=an;function ns(g){if(typeof g!="function")throw new ho(i);return function(){var v=arguments;switch(v.length){case 0:return!g.call(this);case 1:return!g.call(this,v[0]);case 2:return!g.call(this,v[0],v[1]);case 3:return!g.call(this,v[0],v[1],v[2])}return!g.apply(this,v)}}function Op(g){return uc(2,g)}var Ip=Cd(function(g,v){v=v.length==1&&Lt(v[0])?Kt(v[0],po(vt())):Kt(vo(v,1),po(vt()));var P=v.length;return $t(function(G){for(var ee=-1,ce=ao(G.length,P);++ee<ce;)G[ee]=v[ee].call(this,G[ee]);return uo(g,this,G)})}),Us=$t(function(g,v){var P=Po(v,di(Us));return ln(g,k,r,v,P)}),gc=$t(function(g,v){var P=Po(v,di(gc));return ln(g,E,r,v,P)}),Fp=cn(function(g,v){return ln(g,D,r,r,r,v)});function Rp(g,v){if(typeof g!="function")throw new ho(i);return v=v===r?v:Mt(v),$t(g,v)}function $p(g,v){if(typeof g!="function")throw new ho(i);return v=v==null?0:oo(Mt(v),0),$t(function(P){var G=P[v],ee=Kn(P,0,v);return G&&Bo(ee,G),uo(g,this,ee)})}function Hp(g,v,P){var G=!0,ee=!0;if(typeof g!="function")throw new ho(i);return no(P)&&(G="leading"in P?!!P.leading:G,ee="trailing"in P?!!P.trailing:ee),hc(g,v,{leading:G,maxWait:v,trailing:ee})}function Up(g){return dc(g,1)}function Gp(g,v){return Us(Es(v),g)}function jp(){if(!arguments.length)return[];var g=arguments[0];return Lt(g)?g:[g]}function zp(g){return Ko(g,m)}function Wp(g,v){return v=typeof v=="function"?v:r,Ko(g,m,v)}function Yp(g){return Ko(g,u|m)}function qp(g,v){return v=typeof v=="function"?v:r,Ko(g,u|m,v)}function Kp(g,v){return v==null||rl(g,v,go(v))}function ur(g,v){return g===v||g!==g&&v!==v}var Qp=Qi(ms),Xp=Qi(function(g,v){return g>=v}),ni=cl(function(){return arguments}())?cl:function(g){return io(g)&&Gt.call(g,"callee")&&!Fn.call(g,"callee")},Lt=Oe.isArray,Jp=yn?po(yn):id;function Vo(g){return g!=null&&as(g.length)&&!un(g)}function lo(g){return io(g)&&Vo(g)}function Zp(g){return g===!0||g===!1||io(g)&&wo(g)==X}var Qn=za||Zs,ef=vn?po(vn):sd;function tf(g){return io(g)&&g.nodeType===1&&!Ci(g)}function of(g){if(g==null)return!0;
vendor: 6,502 bytes, line 21
21if(Vo(g)&&(Lt(g)||typeof g=="string"||typeof g.splice=="function"||Qn(g)||ui(g)||ni(g)))return!g.length;var v=So(g);if(v==Y||v==q)return!g.size;if(Si(g))return!_s(g).length;for(var P in g)if(Gt.call(g,P))return!1;return!0}function rf(g,v){return bi(g,v)}function nf(g,v,P){P=typeof P=="function"?P:r;var G=P?P(g,v):r;return G===r?bi(g,v,r,P):!!G}function Gs(g){if(!io(g))return!1;var v=wo(g);return v==he||v==le||typeof g.message=="string"&&typeof g.name=="string"&&!Ci(g)}function af(g){return typeof g=="number"&&$n(g)}function un(g){if(!no(g))return!1;var v=wo(g);return v==ge||v==Q||v==oe||v==me}function _c(g){return typeof g=="number"&&g==Mt(g)}function as(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=H}function no(g){var v=typeof g;return g!=null&&(v=="object"||v=="function")}function io(g){return g!=null&&typeof g=="object"}var bc=Sn?po(Sn):cd;function sf(g,v){return g===v||gs(g,v,Vs(v))}function lf(g,v,P){return P=typeof P=="function"?P:r,gs(g,v,Vs(v),P)}function cf(g){return yc(g)&&g!=+g}function df(g){if(Wd(g))throw new St(a);return dl(g)}function uf(g){return g===null}function pf(g){return g==null}function yc(g){return typeof g=="number"||io(g)&&wo(g)==ne}function Ci(g){if(!io(g)||wo(g)!=ae)return!1;var v=Pr(g);if(v===null)return!0;var P=Gt.call(v,"constructor")&&v.constructor;return typeof P=="function"&&P instanceof P&&Er.call(P)==Ra}var js=Tn?po(Tn):dd;function ff(g){return _c(g)&&g>=-H&&g<=H}var vc=Cn?po(Cn):ud;function ss(g){return typeof g=="string"||!Lt(g)&&io(g)&&wo(g)==Z}function Ro(g){return typeof g=="symbol"||io(g)&&wo(g)==de}var ui=kn?po(kn):pd;function mf(g){return g===r}function hf(g){return io(g)&&So(g)==_e}function gf(g){return io(g)&&wo(g)==pe}var _f=Qi(bs),bf=Qi(function(g,v){return g<=v});function Sc(g){if(!g)return[];if(Vo(g))return ss(g)?yo(g):Do(g);if(cr&&g[cr])return xa(g[cr]());var v=So(g),P=v==Y?Jr:v==q?Cr:pi;return P(g)}function pn(g){if(!g)return g===0?g:0;if(g=Jo(g),g===j||g===-j){var v=g<0?-1:1;return v*U}return g===g?g:0}function Mt(g){var v=pn(g),P=v%1;return v===v?P?v-P:v:0}function Tc(g){return g?ei(Mt(g),0,L):0}function Jo(g){if(typeof g=="number")return g;if(Ro(g))return B;if(no(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=no(v)?v+"":v}if(typeof g!="string")return g===0?g:+g;g=Pn(g);var P=ct.test(g);return P||we.test(g)?yr(g.slice(2),P?2:8):Le.test(g)?B:+g}function Cc(g){return Ir(g,Lo(g))}function yf(g){return g?ei(Mt(g),-H,H):g===0?g:0}function Qt(g){return g==null?"":Fo(g)}var vf=li(function(g,v){if(Si(v)||Vo(v)){Ir(v,go(v),g);return}for(var P in v)Gt.call(v,P)&&mi(g,P,v[P])}),kc=li(function(g,v){Ir(v,Lo(v),g)}),ls=li(function(g,v,P,G){Ir(v,Lo(v),g,G)}),Sf=li(function(g,v,P,G){Ir(v,go(v),g,G)}),Tf=cn(us);function Cf(g,v){var P=nn(g);return v==null?P:ol(P,v)}var kf=$t(function(g,v){g=Wt(g);var P=-1,G=v.length,ee=G>2?v[2]:r;for(ee&&Eo(v[0],v[1],ee)&&(G=1);++P<G;)for(var ce=v[P],be=Lo(ce),Ee=-1,Ve=be.length;++Ee<Ve;){var Ue=be[Ee],je=g[Ue];(je===r||ur(je,Yo[Ue])&&!Gt.call(g,Ue))&&(g[Ue]=ce[Ue])}return g}),wf=$t(function(g){return g.push(r,Hl),uo(wc,r,g)});function Ef(g,v){return En(g,vt(v,3),Or)}function xf(g,v){return En(g,vt(v,3),fs)}function Af(g,v){return g==null?g:ps(g,vt(v,3),Lo)}function Bf(g,v){return g==null?g:sl(g,vt(v,3),Lo)}function Pf(g,v){return g&&Or(g,vt(v,3))}function Nf(g,v){return g&&fs(g,vt(v,3))}function Df(g){return g==null?[]:Ui(g,go(g))}function Vf(g){return g==null?[]:Ui(g,Lo(g))}function zs(g,v,P){var G=g==null?r:ti(g,v);return G===r?P:G}function Lf(g,v){return g!=null&&jl(g,v,od)}function Ws(g,v){return g!=null&&jl(g,v,rd)}var Mf=Ol(function(g,v,P){v!=null&&typeof v.toString!="function"&&(v=xr.call(v)),g[v]=P},qs(Mo)),Of=Ol(function(g,v,P){v!=null&&typeof v.toString!="function"&&(v=xr.call(v)),Gt.call(g,v)?g[v].push(P):g[v]=[P]},vt),If=$t(gi);function go(g){return Vo(g)?el(g):_s(g)}function Lo(g){return Vo(g)?el(g,!0):fd(g)}function Ff(g,v){var P={};return v=vt(v,3),Or(g,function(G,ee,ce){sn(P,v(G,ee,ce),G)}),P}function Rf(g,v){var P={};return v=vt(v,3),Or(g,function(G,ee,ce){sn(P,ee,v(G,ee,ce))}),P}var $f=li(function(g,v,P){Gi(g,v,P)}),wc=li(function(g,v,P,G){Gi(g,v,P,G)}),Hf=cn(function(g,v){var P={};if(g==null)return P;var G=!1;v=Kt(v,function(ce){return ce=qn(ce,g),G||(G=ce.length>1),ce}),Ir(g,Ns(g),P),G&&(P=Ko(P,u|f|m,Ld));for(var ee=v.length;ee--;)Cs(P,v[ee]);return P});function Uf(g,v){return Ec(g,ns(vt(v)))}var Gf=cn(function(g,v){return g==null?{}:hd(g,v)});function Ec(g,v){if(g==null)return{};var P=Kt(Ns(g),function(G){return[G]});return v=vt(v),_l(g,P,function(G,ee){return v(G,ee[0])})}function jf(g,v,P){v=qn(v,g);var G=-1,ee=v.length;for(ee||(ee=1,g=r);++G<ee;){var ce=g==null?r:g[Fr(v[G])];ce===r&&(G=ee,ce=P),g=un(ce)?ce.call(g):ce}return g}function zf(g,v,P){return g==null?g:yi(g,v,P)}function Wf(g,v,P,G){return G=typeof G=="function"?G:r,g==null?g:yi(g,v,P,G)}var xc=Rl(go),Ac=Rl(Lo);function Yf(g,v,P){var G=Lt(g),ee=G||Qn(g)||ui(g);if(v=vt(v,4),P==null){var ce=g&&g.constructor;ee?P=G?new ce:[]:no(g)?P=un(ce)?nn(Pr(g)):{}:P={}}return(ee?mo:Or)(g,function(be,Ee,Ve){return v(P,be,Ee,Ve)}),P}function qf(g,v){return g==null?!0:Cs(g,v)}function Kf(g,v,P){return g==null?g:Tl(g,v,Es(P))}function Qf(g,v,P,G){return G=typeof G=="function"?G:r,g==null?g:Tl(g,v,Es(P),G)}function pi(g){return g==null?[]:Xr(g,go(g))}function Xf(g){return g==null?[]:Xr(g,Lo(g))}function Jf(g,v,P){return P===r&&(P=v,v=r),P!==r&&(P=Jo(P),P=P===P?P:0),v!==r&&(v=Jo(v),v=v===v?v:0),ei(Jo(g),v,P)}function Zf(g,v,P){return v=pn(v),P===r?(P=v,v=0):P=pn(P),g=Jo(g),nd(g,v,P)}function em(g,v,P){if(P&&typeof P!="boolean"&&Eo(g,v,P)&&(v=P=r),P===r&&(typeof v=="boolean"?(P=v,v=r):typeof g=="boolean"&&(P=g,g=r)),g===r&&v===r?(g=0,v=1):(g=pn(g),v===r?(v=g,g=0):v=pn(v)),g>v){var G=g;g=v,v=G}if(P||g%1||v%1){var ee=Hn();return ao(g+ee*(v-g+br("1e-"+((ee+"").length-1))),v)}return vs(g,v)}var tm=ci(function(g,v,P){return v=v.toLowerCase(),g+(P?Bc(v):v)});function Bc(g){return Ys(Qt(g).toLowerCase())}function Pc(g){return g=Qt(g),g&&g.replace(ot,Ta).replace(aa,"")}function om(g,v,P){g=Qt(g),v=Fo(v);var G=g.length;P=P===r?G:ei(Mt(P),0,G);var ee=P;return P-=v.length,P>=0&&g.slice(P,ee)==v}function rm(g){return g=Qt(g),g&&$e.test(g)?g.replace(Ne,Ca):g}function nm(g){return g=Qt(g),g&&lt.test(g)?g.replace(Ye,"\\$&"):g}var am=ci(function(g,v,P){return g+(P?"-":"")+v.toLowerCase()}),im=ci(function(g,v,P){return g+(P?" ":"")+v.toLowerCase()}),sm=Vl("toLowerCase");function lm(g,v,P){g=Qt(g),v=Mt(v);var G=v?zo(g):0;if(!v||G>=v)return g;var ee=(v-G)/2;
vendor: 12,903 bytes, lines 21-38
21return Ki(Lr(ee),P)+g+Ki(Vr(ee),P)}function cm(g,v,P){g=Qt(g),v=Mt(v);var G=v?zo(g):0;return v&&G<v?g+Ki(v-G,P):g}function dm(g,v,P){g=Qt(g),v=Mt(v);var G=v?zo(g):0;return v&&G<v?Ki(v-G,P)+g:g}function um(g,v,P){return P||v==null?v=0:v&&(v=+v),Ka(Qt(g).replace(et,""),v||0)}function pm(g,v,P){return(P?Eo(g,v,P):v===r)?v=1:v=Mt(v),Ss(Qt(g),v)}function fm(){var g=arguments,v=Qt(g[0]);return g.length<3?v:v.replace(g[1],g[2])}var mm=ci(function(g,v,P){return g+(P?"_":"")+v.toLowerCase()});function hm(g,v,P){return P&&typeof P!="number"&&Eo(g,v,P)&&(v=P=r),P=P===r?L:P>>>0,P?(g=Qt(g),g&&(typeof v=="string"||v!=null&&!js(v))&&(v=Fo(v),!v&&jo(g))?Kn(yo(g),0,P):g.split(v,P)):[]}var gm=ci(function(g,v,P){return g+(P?" ":"")+Ys(v)});function _m(g,v,P){return g=Qt(g),P=P==null?0:ei(Mt(P),0,g.length),v=Fo(v),g.slice(P,P+v.length)==v}function bm(g,v,P){var G=ie.templateSettings;P&&Eo(g,v,P)&&(v=r),g=Qt(g),v=ls({},v,G,$l);var ee=ls({},v.imports,G.imports,$l),ce=go(ee),be=Xr(ee,ce),Ee,Ve,Ue=0,je=v.interpolate||kt,Qe="__p += '",at=Zr((v.escape||kt).source+"|"+je.source+"|"+(je===Bt?_t:kt).source+"|"+(v.evaluate||kt).source+"|$","g"),mt="//# sourceURL="+(Gt.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++da+"]")+`
22`;g.replace(at,function(Ct,Ut,jt,$o,xo,Ho){return jt||(jt=$o),Qe+=g.slice(Ue,Ho).replace(Yt,ka),Ut&&(Ee=!0,Qe+=`' +
23__e(`+Ut+`) +
24'`),xo&&(Ve=!0,Qe+=`';
25`+xo+`;
26__p += '`),jt&&(Qe+=`' +
27((__t = (`+jt+`)) == null ? '' : __t) +
28'`),Ue=Ho+Ct.length,Ct}),Qe+=`';
29`;var Tt=Gt.call(v,"variable")&&v.variable;if(!Tt)Qe=`with (obj) {
30`+Qe+`
31}
32`;else if(yt.test(Tt))throw new St(s);Qe=(Ve?Qe.replace(ze,""):Qe).replace(qe,"$1").replace(ht,"$1;"),Qe="function("+(Tt||"obj")+`) {
33`+(Tt?"":`obj || (obj = {});
34`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Ve?`, __j = Array.prototype.join;
35function print() { __p += __j.call(arguments, '') }
36`:`;
37`)+Qe+`return __p
38}`;var It=Dc(function(){return Ht(ce,mt+"return "+Qe).apply(r,be)});if(It.source=Qe,Gs(It))throw It;return It}function ym(g){return Qt(g).toLowerCase()}function vm(g){return Qt(g).toUpperCase()}function Sm(g,v,P){if(g=Qt(g),g&&(P||v===r))return Pn(g);if(!g||!(v=Fo(v)))return g;var G=yo(g),ee=yo(v),ce=Nn(G,ee),be=Dn(G,ee)+1;return Kn(G,ce,be).join("")}function Tm(g,v,P){if(g=Qt(g),g&&(P||v===r))return g.slice(0,Ln(g)+1);if(!g||!(v=Fo(v)))return g;var G=yo(g),ee=Dn(G,yo(v))+1;return Kn(G,0,ee).join("")}function Cm(g,v,P){if(g=Qt(g),g&&(P||v===r))return g.replace(et,"");if(!g||!(v=Fo(v)))return g;var G=yo(g),ee=Nn(G,yo(v));return Kn(G,ee).join("")}function km(g,v){var P=F,G=V;if(no(v)){var ee="separator"in v?v.separator:ee;P="length"in v?Mt(v.length):P,G="omission"in v?Fo(v.omission):G}g=Qt(g);var ce=g.length;if(jo(g)){var be=yo(g);ce=be.length}if(P>=ce)return g;var Ee=P-zo(G);if(Ee<1)return G;var Ve=be?Kn(be,0,Ee).join(""):g.slice(0,Ee);if(ee===r)return Ve+G;if(be&&(Ee+=Ve.length-Ee),js(ee)){if(g.slice(Ee).search(ee)){var Ue,je=Ve;for(ee.global||(ee=Zr(ee.source,Qt(Ie.exec(ee))+"g")),ee.lastIndex=0;Ue=ee.exec(je);)var Qe=Ue.index;Ve=Ve.slice(0,Qe===r?Ee:Qe)}}else if(g.indexOf(Fo(ee),Ee)!=Ee){var at=Ve.lastIndexOf(ee);at>-1&&(Ve=Ve.slice(0,at))}return Ve+G}function wm(g){return g=Qt(g),g&&Je.test(g)?g.replace(pt,Na):g}var Em=ci(function(g,v,P){return g+(P?" ":"")+v.toUpperCase()}),Ys=Vl("toUpperCase");function Nc(g,v,P){return g=Qt(g),v=P?r:v,v===r?Ea(g)?La(g):ga(g):g.match(v)||[]}var Dc=$t(function(g,v){try{return uo(g,r,v)}catch(P){return Gs(P)?P:new St(P)}}),xm=cn(function(g,v){return mo(v,function(P){P=Fr(P),sn(g,P,Hs(g[P],g))}),g});function Am(g){var v=g==null?0:g.length,P=vt();return g=v?Kt(g,function(G){if(typeof G[1]!="function")throw new ho(i);return[P(G[0]),G[1]]}):[],$t(function(G){for(var ee=-1;++ee<v;){var ce=g[ee];if(uo(ce[0],this,G))return uo(ce[1],this,G)}})}function Bm(g){return Zc(Ko(g,u))}function qs(g){return function(){return g}}function Pm(g,v){return g==null||g!==g?v:g}var Nm=Ml(),Dm=Ml(!0);function Mo(g){return g}function Ks(g){return ul(typeof g=="function"?g:Ko(g,u))}function Vm(g){return fl(Ko(g,u))}function Lm(g,v){return ml(g,Ko(v,u))}var Mm=$t(function(g,v){return function(P){return gi(P,g,v)}}),Om=$t(function(g,v){return function(P){return gi(g,P,v)}});function Qs(g,v,P){var G=go(v),ee=Ui(v,G);P==null&&!(no(v)&&(ee.length||!G.length))&&(P=v,v=g,g=this,ee=Ui(v,go(v)));var ce=!(no(P)&&"chain"in P)||!!P.chain,be=un(g);return mo(ee,function(Ee){var Ve=v[Ee];g[Ee]=Ve,be&&(g.prototype[Ee]=function(){var Ue=this.__chain__;if(ce||Ue){var je=g(this.__wrapped__),Qe=je.__actions__=Do(this.__actions__);return Qe.push({func:Ve,args:arguments,thisArg:g}),je.__chain__=Ue,je}return Ve.apply(g,Bo([this.value()],arguments))})}),g}function Im(){return Zt._===this&&(Zt._=$a),this}function Xs(){}function Fm(g){return g=Mt(g),$t(function(v){return hl(v,g)})}var Rm=As(Kt),$m=As(wn),Hm=As(Wr);function Vc(g){return Ms(g)?Yr(Fr(g)):gd(g)}function Um(g){return function(v){return g==null?r:ti(g,v)}}var Gm=Il(),jm=Il(!0);function Js(){return[]}function Zs(){return!1}function zm(){return{}}function Wm(){return""}function Ym(){return!0}function qm(g,v){if(g=Mt(g),g<1||g>H)return[];var P=L,G=ao(g,L);v=vt(v),g-=L;for(var ee=Qr(G,v);++P<g;)v(P);return ee}function Km(g){return Lt(g)?Kt(g,Fr):Ro(g)?[g]:Do(Zl(Qt(g)))}function Qm(g){var v=++Fa;return Qt(g)+v}var Xm=qi(function(g,v){return g+v},0),Jm=Bs("ceil"),Zm=qi(function(g,v){return g/v},1),eh=Bs("floor");function th(g){return g&&g.length?Hi(g,Mo,ms):r}function oh(g,v){return g&&g.length?Hi(g,vt(v,2),ms):r}function rh(g){return An(g,Mo)}function nh(g,v){return An(g,vt(v,2))}function ah(g){return g&&g.length?Hi(g,Mo,bs):r}function ih(g,v){return g&&g.length?Hi(g,vt(v,2),bs):r}var sh=qi(function(g,v){return g*v},1),lh=Bs("round"),ch=qi(function(g,v){return g-v},0);function dh(g){return g&&g.length?Kr(g,Mo):0}function uh(g,v){return g&&g.length?Kr(g,vt(v,2)):0}return ie.after=Dp,ie.ary=dc,ie.assign=vf,ie.assignIn=kc,ie.assignInWith=ls,ie.assignWith=Sf,ie.at=Tf,ie.before=uc,ie.bind=Hs,ie.bindAll=xm,ie.bindKey=pc,ie.castArray=jp,ie.chain=sc,ie.chunk=Zd,ie.compact=eu,ie.concat=tu,ie.cond=Am,ie.conforms=Bm,ie.constant=qs,ie.countBy=cp,ie.create=Cf,ie.curry=fc,ie.curryRight=mc,ie.debounce=hc,ie.defaults=kf,ie.defaultsDeep=wf,ie.defer=Vp,ie.delay=Lp,ie.difference=ou,ie.differenceBy=ru,ie.differenceWith=nu,ie.drop=au,ie.dropRight=iu,ie.dropRightWhile=su,ie.dropWhile=lu,ie.fill=cu,ie.filter=up,ie.flatMap=mp,ie.flatMapDeep=hp,ie.flatMapDepth=gp,ie.flatten=rc,ie.flattenDeep=du,ie.flattenDepth=uu,ie.flip=Mp,ie.flow=Nm,ie.flowRight=Dm,ie.fromPairs=pu,ie.functions=Df,ie.functionsIn=Vf,ie.groupBy=_p,ie.initial=mu,ie.intersection=hu,ie.intersectionBy=gu,ie.intersectionWith=_u,ie.invert=Mf,ie.invertBy=Of,ie.invokeMap=yp,ie.iteratee=Ks,ie.keyBy=vp,ie.keys=go,ie.keysIn=Lo,ie.map=ts,ie.mapKeys=Ff,ie.mapValues=Rf,ie.matches=Vm,ie.matchesProperty=Lm,ie.memoize=rs,ie.merge=$f,ie.mergeWith=wc,ie.method=Mm,ie.methodOf=Om,ie.mixin=Qs,ie.negate=ns,ie.nthArg=Fm,ie.omit=Hf,ie.omitBy=Uf,ie.once=Op,ie.orderBy=Sp,ie.over=Rm,ie.overArgs=Ip,ie.overEvery=$m,ie.overSome=Hm,ie.partial=Us,ie.partialRight=gc,ie.partition=Tp,ie.pick=Gf,ie.pickBy=Ec,ie.property=Vc,ie.propertyOf=Um,ie.pull=Su,ie.pullAll=ac,ie.pullAllBy=Tu,ie.pullAllWith=Cu,ie.pullAt=ku,ie.range=Gm,ie.rangeRight=jm,ie.rearg=Fp,ie.reject=wp,ie.remove=wu,ie.rest=Rp,ie.reverse=Rs,ie.sampleSize=xp,ie.set=zf,ie.setWith=Wf,ie.shuffle=Ap,ie.slice=Eu,ie.sortBy=Np,ie.sortedUniq=Vu,ie.sortedUniqBy=Lu,ie.split=hm,ie.spread=$p,ie.tail=Mu,ie.take=Ou,ie.takeRight=Iu,ie.takeRightWhile=Fu,ie.takeWhile=Ru,ie.tap=ep,ie.throttle=Hp,ie.thru=es,ie.toArray=Sc,ie.toPairs=xc,ie.toPairsIn=Ac,ie.toPath=Km,ie.toPlainObject=Cc,ie.transform=Yf,ie.unary=Up,ie.union=$u,ie.unionBy=Hu,ie.unionWith=Uu,ie.uniq=Gu,ie.uniqBy=ju,ie.uniqWith=zu,ie.unset=qf,ie.unzip=$s,ie.unzipWith=ic,ie.update=Kf,ie.updateWith=Qf,ie.values=pi,ie.valuesIn=Xf,ie.without=Wu,ie.words=Nc,ie.wrap=Gp,ie.xor=Yu,ie.xorBy=qu,ie.xorWith=Ku,ie.zip=Qu,ie.zipObject=Xu,ie.zipObjectDeep=Ju,ie.zipWith=Zu,ie.entries=xc,ie.entriesIn=Ac,ie.extend=kc,ie.extendWith=ls,Qs(ie,ie),ie.add=Xm,ie.attempt=Dc,ie.camelCase=tm,ie.capitalize=Bc,ie.ceil=Jm,ie.clamp=Jf,ie.clone=zp,ie.cloneDeep=Yp,ie.cloneDeepWith=qp,ie.cloneWith=Wp,ie.conformsTo=Kp,ie.deburr=Pc,ie.defaultTo=Pm,ie.divide=Zm,ie.endsWith=om,ie.eq=ur,ie.escape=rm,ie.escapeRegExp=nm,ie.every=dp,ie.find=pp,ie.findIndex=tc,ie.findKey=Ef,ie.findLast=fp,ie.findLastIndex=oc,ie.findLastKey=xf,ie.floor=eh,ie.forEach=lc,ie.forEachRight=cc,ie.forIn=Af,ie.forInRight=Bf,ie.forOwn=Pf,ie.forOwnRight=Nf,ie.get=zs,ie.gt=Qp,ie.gte=Xp,ie.has=Lf,ie.hasIn=Ws,ie.head=nc,ie.identity=Mo,ie.includes=bp,ie.indexOf=fu,ie.inRange=Zf,ie.invoke=If,ie.isArguments=ni,ie.isArray=Lt,ie.isArrayBuffer=Jp,ie.isArrayLike=Vo,ie.isArrayLikeObject=lo,ie.isBoolean=Zp,ie.isBuffer=Qn,ie.isDate=ef,ie.isElement=tf,ie.isEmpty=of,ie.isEqual=rf,ie.isEqualWith=nf,ie.isError=Gs,ie.isFinite=af,ie.isFunction=un,ie.isInteger=_c,ie.isLength=as,ie.isMap=bc,ie.isMatch=sf,ie.isMatchWith=lf,ie.isNaN=cf,ie.isNative=df,ie.isNil=pf,ie.isNull=uf,ie.isNumber=yc,ie.isObject=no,ie.isObjectLike=io,ie.isPlainObject=Ci,ie.isRegExp=js,ie.isSafeInteger=ff,ie.isSet=vc,ie.isString=ss,ie.isSymbol=Ro,ie.isTypedArray=ui,ie.isUndefined=mf,ie.isWeakMap=hf,ie.isWeakSet=gf,ie.join=bu,ie.kebabCase=am,ie.last=Xo,ie.lastIndexOf=yu,ie.lowerCase=im,ie.lowerFirst=sm,ie.lt=_f,ie.lte=bf,ie.max=th,ie.maxBy=oh,ie.mean=rh,ie.meanBy=nh,ie.min=ah,ie.minBy=ih,ie.stubArray=Js,ie.stubFalse=Zs,ie.stubObject=zm,ie.stubString=Wm,ie.stubTrue=Ym,ie.multiply=sh,ie.nth=vu,ie.noConflict=Im,ie.noop=Xs,ie.now=os,ie.pad=lm,ie.padEnd=cm,ie.padStart=dm,ie.parseInt=um,ie.random=em,ie.reduce=Cp,ie.reduceRight=kp,ie.repeat=pm,ie.replace=fm,ie.result=jf,ie.round=lh,ie.runInContext=Pe,ie.sample=Ep,ie.size=Bp,ie.snakeCase=mm,ie.some=Pp,ie.sortedIndex=xu,ie.sortedIndexBy=Au,ie.sortedIndexOf=Bu,ie.sortedLastIndex=Pu,ie.sortedLastIndexBy=Nu,ie.sortedLastIndexOf=Du,ie.startCase=gm,ie.startsWith=_m,ie.subtract=ch,ie.sum=dh,ie.sumBy=uh,ie.template=bm,ie.times=qm,ie.toFinite=pn,ie.toInteger=Mt,ie.toLength=Tc,ie.toLower=ym,ie.toNumber=Jo,ie.toSafeInteger=yf,ie.toString=Qt,ie.toUpper=vm,ie.trim=Sm,ie.trimEnd=Tm,ie.trimStart=Cm,ie.truncate=km,ie.unescape=wm,ie.uniqueId=Qm,ie.upperCase=Em,ie.upperFirst=Ys,ie.each=lc,ie.eachRight=cc,ie.first=nc,Qs(ie,function(){var g={};return Or(ie,function(v,P){Gt.call(ie.prototype,P)||(g[P]=v)}),g}(),{chain:!1}),ie.VERSION=e,mo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){ie[g].placeholder=ie}),mo(["drop","take"],function(g,v){Rt.prototype[g]=function(P){P=P===r?1:oo(Mt(P),0);var G=this.__filtered__&&!v?new Rt(this):this.clone();return G.__filtered__?G.__takeCount__=ao(P,G.__takeCount__):G.__views__.push({size:ao(P,L),type:g+(G.__dir__<0?"Right":"")}),G},Rt.prototype[g+"Right"]=function(P){return this.reverse()[g](P).reverse()}}),mo(["filter","map","takeWhile"],function(g,v){var P=v+1,G=P==O||P==I;Rt.prototype[g]=function(ee){var ce=this.clone();return ce.__iteratees__.push({iteratee:vt(ee,3),type:P}),ce.__filtered__=ce.__filtered__||G,ce}}),mo(["head","last"],function(g,v){var P="take"+(v?"Right":"");Rt.prototype[g]=function(){return this[P](1).value()[0]}}),mo(["initial","tail"],function(g,v){var P="drop"+(v?"":"Right");Rt.prototype[g]=function(){return this.__filtered__?new Rt(this):this[P](1)}}),Rt.prototype.compact=function(){return this.filter(Mo)},Rt.prototype.find=function(g){return this.filter(g).head()},Rt.prototype.findLast=function(g){return this.reverse().find(g)},Rt.prototype.invokeMap=$t(function(g,v){return typeof g=="function"?new Rt(this):this.map(function(P){return gi(P,g,v)})}),Rt.prototype.reject=function(g){return this.filter(ns(vt(g)))},Rt.prototype.slice=function(g,v){g=Mt(g);var P=this;return P.__filtered__&&(g>0||v<0)?new Rt(P):(g<0?P=P.takeRight(-g):g&&(P=P.drop(g)),v!==r&&(v=Mt(v),P=v<0?P.dropRight(-v):P.take(v-g)),P)},Rt.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Rt.prototype.toArray=function(){return this.take(L)},Or(Rt.prototype,function(g,v){var P=/^(?:filter|find|map|reject)|While$/.test(v),G=/^(?:head|last)$/.test(v),ee=ie[G?"take"+(v=="last"?"Right":""):v],ce=G||/^find/.test(v);ee&&(ie.prototype[v]=function(){var be=this.__wrapped__,Ee=G?[1]:arguments,Ve=be instanceof Rt,Ue=Ee[0],je=Ve||Lt(be),Qe=function(Ut){var jt=ee.apply(ie,Bo([Ut],Ee));return G&&at?jt[0]:jt};je&&P&&typeof Ue=="function"&&Ue.length!=1&&(Ve=je=!1);var at=this.__chain__,mt=!!this.__actions__.length,Tt=ce&&!at,It=Ve&&!mt;if(!ce&&je){be=It?be:new Rt(this);var Ct=g.apply(be,Ee);return Ct.__actions__.push({func:es,args:[Qe],thisArg:r}),new ko(Ct,at)}return Tt&&It?g.apply(this,Ee):(Ct=this.thru(Qe),Tt?G?Ct.value()[0]:Ct.value():Ct)})}),mo(["pop","push","shift","sort","splice","unshift"],function(g){var v=kr[g],P=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",G=
38/^(?:pop|shift)$/.test(g);ie.prototype[g]=function(){var ee=arguments;if(G&&!this.__chain__){var ce=this.value();return v.apply(Lt(ce)?ce:[],ee)}return this[P](function(be){return v.apply(Lt(be)?be:[],ee)})}}),Or(Rt.prototype,function(g,v){var P=ie[v];if(P){var G=P.name+"";Gt.call(rn,G)||(rn[G]=[]),rn[G].push({name:v,func:P})}}),rn[Yi(r,S).name]=[{name:"wrapper",func:r}],Rt.prototype.clone=Bi,Rt.prototype.reverse=Pi,Rt.prototype.value=Ni,ie.prototype.at=tp,ie.prototype.chain=op,ie.prototype.commit=rp,ie.prototype.next=np,ie.prototype.plant=ip,ie.prototype.reverse=sp,ie.prototype.toJSON=ie.prototype.valueOf=ie.prototype.value=lp,ie.prototype.first=ie.prototype.head,cr&&(ie.prototype[cr]=ap),ie},Wo=Ma();Oo?((Oo.exports=Wo)._=Wo,Uo._=Wo):Zt._=Wo}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;/*!
39  * shared v9.13.1
40  * (c) 2024 kazuya kawaguchi
41  * Released under the MIT License.
42  */const inBrowser=typeof window<"u",makeSymbol=(t,o=!1)=>o?Symbol.for(t):Symbol(t),generateFormatCacheKey=(t,o,r)=>friendlyJSONstringify({l:t,k:o,s:r}),friendlyJSONstringify=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$2=t=>typeof t=="number"&&isFinite(t),isDate$3=t=>toTypeString$1(t)==="[object Date]",isRegExp=t=>toTypeString$1(t)==="[object RegExp]",isEmptyObject$1=t=>isPlainObject$3(t)&&Object.keys(t).length===0,assign$3=Object.assign;let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty$e=Object.prototype.hasOwnProperty;function hasOwn$1(t,o){return hasOwnProperty$e.call(t,o)}const isArray$c=Array.isArray,isFunction$6=t=>typeof t=="function",isString$4=t=>typeof t=="string",isBoolean=t=>typeof t=="boolean",isObject$e=t=>t!==null&&typeof t=="object",isPromise$2=t=>isObject$e(t)&&isFunction$6(t.then)&&isFunction$6(t.catch),objectToString$3=Object.prototype.toString,toTypeString$1=t=>objectToString$3.call(t),isPlainObject$3=t=>{if(!isObject$e(t))return!1;const o=Object.getPrototypeOf(t);return o===null||o.constructor===Object},toDisplayString$1=t=>t==null?"":isArray$c(t)||isPlainObject$3(t)&&t.toString===objectToString$3?JSON.stringify(t,null,2):String(t);function join$1(t,o=""){return t.reduce((r,e,n)=>n===0?r+e:r+o+e,"")}function incrementer(t){let o=t;return()=>++o}function warn(t,o){typeof console<"u"&&(console.warn("[intlify] "+t),o&&console.warn(o.stack))}function createEmitter(){const t=new Map;return{events:t,on(r,e){const n=t.get(r);n&&n.push(e)||t.set(r,[e])},off(r,e){const n=t.get(r);n&&n.splice(n.indexOf(e)>>>0,1)},emit(r,e){(t.get(r)||[]).slice().map(n=>n(e)),(t.get("*")||[]).slice().map(n=>n(r,e))}}}const isNotObjectOrIsArray=t=>!isObject$e(t)||isArray$c(t);function deepCopy$1(t,o){if(isNotObjectOrIsArray(t)||isNotObjectOrIsArray(o))throw new Error("Invalid value");const r=[{src:t,des:o}];for(;r.length;){const{src:e,des:n}=r.pop();Object.keys(e).forEach(a=>{isNotObjectOrIsArray(e[a])||isNotObjectOrIsArray(n[a])?n[a]=e[a]:r.push({src:e[a],des:n[a]})})}}/*!
43  * message-compiler v9.13.1
44  * (c) 2024 kazuya kawaguchi
45  * Released under the MIT License.
46  */function createPosition(t,o,r){return{line:t,column:o,offset:r}}function createLocation(t,o,r){return{start:t,end:o}}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$1(t,...o){return o.length===1&&isObject$d(o[0])&&(o=o[0]),(!o||!o.hasOwnProperty)&&(o={}),t.replace(RE_ARGS,(r,e)=>o.hasOwnProperty(e)?o[e]:"")}const assign$2=Object.assign,isString$3=t=>typeof t=="string",isObject$d=t=>t!==null&&typeof t=="object";function join(t,o=""){return t.reduce((r,e,n)=>n===0?r+e:r+o+e,"")}const CompileWarnCodes={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},warnMessages={[CompileWarnCodes.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function createCompileWarn(t,o,...r){const e=format$1(warnMessages[t],...r||[]),n={message:String(e),code:t};return o&&(n.location=o),n}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTE
46RMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},errorMessages={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(t,o,r={}){const{domain:e,messages:n,args:a}=r,i=format$1((n||errorMessages)[t]||"",...a||[]),s=new SyntaxError(String(i));return s.code=t,o&&(s.location=o),s.domain=e,s}function defaultOnError(t){throw t}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
47`,CHAR_LS="\u2028",CHAR_PS="\u2029";function createScanner(t){const o=t;let r=0,e=1,n=1,a=0;const i=w=>o[w]===CHAR_CR&&o[w+1]===CHAR_LF,s=w=>o[w]===CHAR_LF,l=w=>o[w]===CHAR_PS,d=w=>o[w]===CHAR_LS,c=w=>i(w)||s(w)||l(w)||d(w),u=()=>r,f=()=>e,m=()=>n,b=()=>a,y=w=>i(w)||l(w)||d(w)?CHAR_LF:o[w],_=()=>y(r),S=()=>y(r+a);function C(){return a=0,c(r)&&(e++,n=0),i(r)&&r++,r++,n++,o[r]}function T(){return i(r+a)&&a++,a++,o[r+a]}function x(){r=0,e=1,n=1,a=0}function k(w=0){a=w}function E(){const w=r+a;for(;w!==r;)C();a=0}return{index:u,line:f,column:m,peekOffset:b,charAt:y,currentChar:_,currentPeek:S,next:C,peek:T,reset:x,resetPeek:k,skipToPeek:E}}const EOF=void 0,DOT$1=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(t,o={}){const r=o.location!==!1,e=createScanner(t),n=()=>e.index(),a=()=>createPosition(e.line(),e.column(),e.index()),i=a(),s=n(),l={currentType:14,offset:s,startLoc:i,endLoc:i,lastType:14,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},d=()=>l,{onError:c}=o;function u(K,q,Z,...de){const fe=d();if(q.column+=Z,q.offset+=Z,c){const _e=r?createLocation(fe.startLoc,q):null,pe=createCompileError(K,_e,{domain:ERROR_DOMAIN$3,args:de});c(pe)}}function f(K,q,Z){K.endLoc=a(),K.currentType=q;const de={type:q};return r&&(de.loc=createLocation(K.startLoc,K.endLoc)),Z!=null&&(de.value=Z),de}const m=K=>f(K,14);function b(K,q){return K.currentChar()===q?(K.next(),q):(u(CompileErrorCodes.EXPECTED_TOKEN,a(),0,q),"")}function y(K){let q="";for(;K.currentPeek()===CHAR_SP||K.currentPeek()===CHAR_LF;)q+=K.currentPeek(),K.peek();return q}function _(K){const q=y(K);return K.skipToPeek(),q}function S(K){if(K===EOF)return!1;const q=K.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q===95}function C(K){if(K===EOF)return!1;const q=K.charCodeAt(0);return q>=48&&q<=57}function T(K,q){const{currentType:Z}=q;if(Z!==2)return!1;y(K);const de=S(K.currentPeek());return K.resetPeek(),de}function x(K,q){const{currentType:Z}=q;if(Z!==2)return!1;y(K);const de=K.currentPeek()==="-"?K.peek():K.currentPeek(),fe=C(de);return K.resetPeek(),fe}function k(K,q){const{currentType:Z}=q;if(Z!==2)return!1;y(K);const de=K.currentPeek()===LITERAL_DELIMITER;return K.resetPeek(),de}function E(K,q){const{currentType:Z}=q;if(Z!==8)return!1;y(K);const de=K.currentPeek()===".";return K.resetPeek(),de}function w(K,q){const{currentType:Z}=q;if(Z!==9)return!1;y(K);const de=S(K.currentPeek());return K.resetPeek(),de}function D(K,q){const{currentType:Z}=q;if(!(Z===8||Z===12))return!1;y(K);const de=K.currentPeek()===":";return K.resetPeek(),de}function N(K,q){const{currentType:Z}=q;if(Z!==10)return!1;const de=()=>{const _e=K.currentPeek();return _e==="{"?S(K.peek()):_e==="@"||_e==="%"||_e==="|"||_e===":"||_e==="."||_e===CHAR_SP||!_e?!1:_e===CHAR_LF?(K.peek(),de()):A(K,!1)},fe=de();return K.resetPeek(),fe}function F(K){y(K);const q=K.currentPeek()==="|";return K.resetPeek(),q}function V(K){const q=y(K),Z=K.currentPeek()==="%"&&K.peek()==="{";return K.resetPeek(),{isModulo:Z,hasSpace:q.length>0}}function A(K,q=!0){const Z=(fe=!1,_e="",pe=!1)=>{const ve=K.currentPeek();return ve==="{"?_e==="%"?!1:fe:ve==="@"||!ve?_e==="%"?!0:fe:ve==="%"?(K.peek(),Z(fe,"%",!0)):ve==="|"?_e==="%"||pe?!0:!(_e===CHAR_SP||_e===CHAR_LF):ve===CHAR_SP?(K.peek(),Z(!0,CHAR_SP,pe)):ve===CHAR_LF?(K.peek(),Z(!0,CHAR_LF,pe)):!0},de=Z();return q&&K.resetPeek(),de}function M(K,q){const Z=K.currentChar();return Z===EOF?EOF:q(Z)?(K.next(),Z):null}function O(K){const q=K.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36}function R(K){return M(K,O)}function I(K){const q=K.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36||q===45}function j(K){return M(K,I)}function H(K){const q=K.charCodeAt(0);return q>=48&&q<=57}function U(K){return M(K,H)}function B(K){const q=K.charCodeAt(0);return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function L(K){return M(K,B)}function z(K){let q="",Z="";for(;q=U(K);)Z+=q;return Z}function W(K){_(K);const q=K.currentChar();return q!=="%"&&u(CompileErrorCodes.EXPECTED_TOKEN,a(),0,q),K.next(),"%"}function J(K){let q="";for(;;){const Z=K.currentChar();if(Z==="{"||Z==="}"||Z==="@"||Z==="|"||!Z)break;if(Z==="%")if(A(K))q+=Z,K.next();else break;else if(Z===CHAR_SP||Z===CHAR_LF)if(A(K))q+=Z,K.next();else{if(F(K))break;q+=Z,K.next()}else q+=Z,K.next()}return q}function te(K){_(K);let q="",Z="";for(;q=j(K);)Z+=q;return K.currentChar()===EOF&&u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,a(),0),Z}function re(K){_(K);let q="";return K.currentChar()==="-"?(K.next(),q+=`-${z(K)}`):q+=z(K),K.currentChar()===EOF&&u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,a(),0),q}function oe(K){return K!==LITERAL_DELIMITER&&K!==CHAR_LF}function X(K){_(K),b(K,"'");let q="",Z="";for(;q=M(K,oe);)q==="\\"?Z+=se(K):Z+=q;const de=K.currentChar();return de===CHAR_LF||de===EOF?(u(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),de===CHAR_LF&&(K.next(),b(K,"'")),Z):(b(K,"'"),Z)}function se(K){const q=K.currentChar();switch(q){case"\\":case"'":return K.next(),`\\${q}`;case"u":return le(K,q,4);case"U":return le(K,q,6);default:return u(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,a(),0,q),""}}function le(K,q,Z){b(K,q);let de="";for(let fe=0;fe<Z;fe++){const _e=L(K);if(!_e){u(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${q}${de}${K.currentChar()}`);break}de+=_e}return`\\${q}${de}`}function he(K){return K!=="{"&&K!=="}"&&K!==CHAR_SP&&K!==CHAR_LF}function ge(K){_(K);let q="",Z="";for(;q=M(K,he);)Z+=q;return Z}function Q(K){let q="",Z="";for(;q=R(K);)Z+=q;return Z}function Y(K){const q=Z=>{const de=K.currentChar();return de==="{"||de==="%"||de==="@"||de==="|"||de==="("||de===")"||!de||de===CHAR_SP?Z:(Z+=de,K.next(),q(Z))};return q("")}function ne(K){_(K);const q=b(K,"|");return _(K),q}function Ce(K,q){let Z=null;switch(K.currentChar()){case"{":return q.braceNest>=1&&u(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),K.next(),Z=f(q,2,"{"),_(K),q.braceNest++,Z;case"}":return q.braceNest>
vendor: 7,526 bytes, line 47
470&&q.currentType===2&&u(CompileErrorCodes.EMPTY_PLACEHOLDER,a(),0),K.next(),Z=f(q,3,"}"),q.braceNest--,q.braceNest>0&&_(K),q.inLinked&&q.braceNest===0&&(q.inLinked=!1),Z;case"@":return q.braceNest>0&&u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,a(),0),Z=ae(K,q)||m(q),q.braceNest=0,Z;default:{let fe=!0,_e=!0,pe=!0;if(F(K))return q.braceNest>0&&u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,a(),0),Z=f(q,1,ne(K)),q.braceNest=0,q.inLinked=!1,Z;if(q.braceNest>0&&(q.currentType===5||q.currentType===6||q.currentType===7))return u(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,a(),0),q.braceNest=0,Be(K,q);if(fe=T(K,q))return Z=f(q,5,te(K)),_(K),Z;if(_e=x(K,q))return Z=f(q,6,re(K)),_(K),Z;if(pe=k(K,q))return Z=f(q,7,X(K)),_(K),Z;if(!fe&&!_e&&!pe)return Z=f(q,13,ge(K)),u(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,Z.value),_(K),Z;break}}return Z}function ae(K,q){const{currentType:Z}=q;let de=null;const fe=K.currentChar();switch((Z===8||Z===9||Z===12||Z===10)&&(fe===CHAR_LF||fe===CHAR_SP)&&u(CompileErrorCodes.INVALID_LINKED_FORMAT,a(),0),fe){case"@":return K.next(),de=f(q,8,"@"),q.inLinked=!0,de;case".":return _(K),K.next(),f(q,9,".");case":":return _(K),K.next(),f(q,10,":");default:return F(K)?(de=f(q,1,ne(K)),q.braceNest=0,q.inLinked=!1,de):E(K,q)||D(K,q)?(_(K),ae(K,q)):w(K,q)?(_(K),f(q,12,Q(K))):N(K,q)?(_(K),fe==="{"?Ce(K,q)||de:f(q,11,Y(K))):(Z===8&&u(CompileErrorCodes.INVALID_LINKED_FORMAT,a(),0),q.braceNest=0,q.inLinked=!1,Be(K,q))}}function Be(K,q){let Z={type:14};if(q.braceNest>0)return Ce(K,q)||m(q);if(q.inLinked)return ae(K,q)||m(q);switch(K.currentChar()){case"{":return Ce(K,q)||m(q);case"}":return u(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,a(),0),K.next(),f(q,3,"}");case"@":return ae(K,q)||m(q);default:{if(F(K))return Z=f(q,1,ne(K)),q.braceNest=0,q.inLinked=!1,Z;const{isModulo:fe,hasSpace:_e}=V(K);if(fe)return _e?f(q,0,J(K)):f(q,4,W(K));if(A(K))return f(q,0,J(K));break}}return Z}function me(){const{currentType:K,offset:q,startLoc:Z,endLoc:de}=l;return l.lastType=K,l.lastOffset=q,l.lastStartLoc=Z,l.lastEndLoc=de,l.offset=n(),l.startLoc=a(),e.currentChar()===EOF?f(l,14):Be(e,l)}return{nextToken:me,currentOffset:n,currentPosition:a,context:d}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(t,o,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(o||r,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function createParser(t={}){const o=t.location!==!1,{onError:r,onWarn:e}=t;function n(T,x,k,E,...w){const D=T.currentPosition();if(D.offset+=E,D.column+=E,r){const N=o?createLocation(k,D):null,F=createCompileError(x,N,{domain:ERROR_DOMAIN$2,args:w});r(F)}}function a(T,x,k,E,...w){const D=T.currentPosition();if(D.offset+=E,D.column+=E,e){const N=o?createLocation(k,D):null;e(createCompileWarn(x,N,w))}}function i(T,x,k){const E={type:T};return o&&(E.start=x,E.end=x,E.loc={start:k,end:k}),E}function s(T,x,k,E){o&&(T.end=x,T.loc&&(T.loc.end=k))}function l(T,x){const k=T.context(),E=i(3,k.offset,k.startLoc);return E.value=x,s(E,T.currentOffset(),T.currentPosition()),E}function d(T,x){const k=T.context(),{lastOffset:E,lastStartLoc:w}=k,D=i(5,E,w);return D.index=parseInt(x,10),T.nextToken(),s(D,T.currentOffset(),T.currentPosition()),D}function c(T,x,k){const E=T.context(),{lastOffset:w,lastStartLoc:D}=E,N=i(4,w,D);return N.key=x,k===!0&&(N.modulo=!0),T.nextToken(),s(N,T.currentOffset(),T.currentPosition()),N}function u(T,x){const k=T.context(),{lastOffset:E,lastStartLoc:w}=k,D=i(9,E,w);return D.value=x.replace(KNOWN_ESCAPES,fromEscapeSequence),T.nextToken(),s(D,T.currentOffset(),T.currentPosition()),D}function f(T){const x=T.nextToken(),k=T.context(),{lastOffset:E,lastStartLoc:w}=k,D=i(8,E,w);return x.type!==12?(n(T,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),D.value="",s(D,E,w),{nextConsumeToken:x,node:D}):(x.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,getTokenCaption(x)),D.value=x.value||"",s(D,T.currentOffset(),T.currentPosition()),{node:D})}function m(T,x){const k=T.context(),E=i(7,k.offset,k.startLoc);return E.value=x,s(E,T.currentOffset(),T.currentPosition()),E}function b(T){const x=T.context(),k=i(6,x.offset,x.startLoc);let E=T.nextToken();if(E.type===9){const w=f(T);k.modifier=w.node,E=w.nextConsumeToken||T.nextToken()}switch(E.type!==10&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(E)),E=T.nextToken(),E.type===2&&(E=T.nextToken()),E.type){case 11:E.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(E)),k.key=m(T,E.value||"");break;case 5:E.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(E)),k.key=c(T,E.value||"");break;case 6:E.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(E)),k.key=d(T,E.value||"");break;case 7:E.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(E)),k.key=u(T,E.value||"");break;default:{n(T,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,x.lastStartLoc,0);const w=T.context(),D=i(7,w.offset,w.startLoc);return D.value="",s(D,w.offset,w.startLoc),k.key=D,s(k,w.offset,w.startLoc),{nextConsumeToken:E,node:k}}}return s(k,T.currentOffset(),T.currentPosition()),{node:k}}function y(T){const x=T.context(),k=x.currentType===1?T.currentOffset():x.offset,E=x.currentType===1?x.endLoc:x.startLoc,w=i(2,k,E);w.items=[];let D=null,N=null;do{const A=D||T.nextToken();switch(D=null,A.type){case 0:A.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(A)),w.items.push(l(T,A.value||""));break;case 6:A.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(A)),w.items.push(d(T,A.value||""));break;case 4:N=!0;break;case 5:A.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(A)),w.items.push(c(T,A.value||"",!!N)),N&&(a(T,CompileWarnCodes.USE_MODULO_SYNTAX,x.lastStartLoc,0,getTokenCaption(A)),N=null);break;case 7:A.value==null&&n(T,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,getTokenCaption(A)),w.items.push(u(T,A.value||""));break;case 8:{const M=b(T);w.items.push(M.node),D=M.nextConsumeToken||null;break}}}while(x.currentType!==14&&x.currentType!==1);const F=x.currentType===1?x.lastOffset:T.currentOffset(),V=x.currentType===1?x.lastEndLoc:T.currentPosition();return s(w,F,V),w}function _(T,x,k,E){const w=T.context();let D=E.items.length===0;const N=i(1,x,k);N.cases=[],N.cases.push(E);do{const F=y(T);D||(D=F.items.length===0),N.cases.push(F)}while(w.currentType!==14);return D&&n(T,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),s(N,T.currentOffset(),T.currentPosition()),N}function S(T){const x=T.context(),{offset:k,startLoc:E}=x,w=y(T);return x.currentType===14?w:_(T,k,E,w)}function C(T){const x=createTokenizer(T,assign$2({},t)),k=x.context(),E=i(0,k.offset,k.startLoc);return o&&E.loc&&(E.loc.source=T),E.body=S(x),t.onCacheKey&&(E.cacheKey=t.onCacheKey(T)),k.currentType!==14&&n(x,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,T[k.offset]||""),s(E,x.currentOffset(),x.currentPosition()),E}return{parse:C}}function getTokenCaption(t){if(t.type===14)return"EOF";const o=(t.value||"").replace(/\r?\n/gu,"\\n");return o.length>10?o.slice(0,9)+"…":o}function createTransformer(t,o={}){const r={ast:t,helpers:new Set};return{context:()=>
47r,helper:a=>(r.helpers.add(a),a)}}function traverseNodes(t,o){for(let r=0;r<t.length;r++)traverseNode(t[r],o)}function traverseNode(t,o){switch(t.type){case 1:traverseNodes(t.cases,o),o.helper("plural");break;case 2:traverseNodes(t.items,o);break;case 6:{traverseNode(t.key,o),o.helper("linked"),o.helper("type");break}case 5:o.helper("interpolate"),o.helper("list");break;case 4:o.helper("interpolate"),o.helper("named");break}}function transform$1(t,o={}){const r=createTransformer(t);r.helper("normalize"),t.body&&traverseNode(t.body,r);const e=r.context();t.helpers=Array.from(e.helpers)}function optimize(t){const o=t.body;return o.type===2?optimizeMessageNode(o):o.cases.forEach(r=>optimizeMessageNode(r)),t}function optimizeMessageNode(t){if(t.items.length===1){const o=t.items[0];(o.type===3||o.type===9)&&(t.static=o.value,delete o.value)}else{const o=[];for(let r=0;r<t.items.length;r++){const e=t.items[r];if(!(e.type===3||e.type===9)||e.value==null)break;o.push(e.value)}if(o.length===t.items.length){t.static=join(o);for(let r=0;r<t.items.length;r++){const e=t.items[r];(e.type===3||e.type===9)&&delete e.value}}}}const ERROR_DOMAIN$1="minifier";function minify(t){switch(t.t=t.type,t.type){case 0:{const o=t;minify(o.body),o.b=o.body,delete o.body;break}case 1:{const o=t,r=o.cases;for(let e=0;e<r.length;e++)minify(r[e]);o.c=r,delete o.cases;break}case 2:{const o=t,r=o.items;for(let e=0;e<r.length;e++)minify(r[e]);o.i=r,delete o.items,o.static&&(o.s=o.static,delete o.static);break}case 3:case 9:case 8:case 7:{const o=t;o.value&&(o.v=o.value,delete o.value);break}case 6:{const o=t;minify(o.key),o.k=o.key,delete o.key,o.modifier&&(minify(o.modifier),o.m=o.modifier,delete o.modifier);break}case 5:{const o=t;o.i=o.index,delete o.index;break}case 4:{const o=t;o.k=o.key,delete o.key;break}default:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[t.type]})}delete t.type}const ERROR_DOMAIN="parser";function createCodeGenerator(t,o){const{sourceMap:r,filename:e,breakLineCode:n,needIndent:a}=o,i=o.location!==!1,s={filename:e,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:a,indentLevel:0};i&&t.loc&&(s.source=t.loc.source);const l=()=>s;function d(_,S){s.code+=_}function c(_,S=!0){const C=S?n:"";d(a?C+"  ".repeat(_):C)}function u(_=!0){const S=++s.indentLevel;_&&c(S)}function f(_=!0){const S=--s.indentLevel;_&&c(S)}function m(){c(s.indentLevel)}return{context:l,push:d,indent:u,deindent:f,newline:m,helper:_=>`_${_}`,needIndent:()=>s.needIndent}}function generateLinkedNode(t,o){const{helper:r}=t;t.push(`${r("linked")}(`),generateNode(t,o.key),o.modifier?(t.push(", "),generateNode(t,o.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function generateMessageNode(t,o){const{helper:r,needIndent:e}=t;t.push(`${r("normalize")}([`),t.indent(e());const n=o.items.length;for(let a=0;a<n&&(generateNode(t,o.items[a]),a!==n-1);a++)t.push(", ");t.deindent(e()),t.push("])")}function generatePluralNode(t,o){const{helper:r,needIndent:e}=t;if(o.cases.length>1){t.push(`${r("plural")}([`),t.indent(e());const n=o.cases.length;for(let a=0;a<n&&(generateNode(t,o.cases[a]),a!==n-1);a++)t.push(", ");t.deindent(e()),t.push("])")}}function generateResource(t,o){o.body?generateNode(t,o.body):t.push("null")}function generateNode(t,o){const{helper:r}=t;switch(o.type){case 0:generateResource(t,o);break;case 1:generatePluralNode(t,o);break;case 2:generateMessageNode(t,o);break;case 6:generateLinkedNode(t,o);break;case 8:t.push(JSON.stringify(o.value),o);break;case 7:t.push(JSON.stringify(o.value),o);break;case 5:t.push(`${r("interpolate")}(${r("list")}(${o.index}))`,o);break;case 4:t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(o.key)}))`,o);break;case 9:t.push(JSON.stringify(o.value),o);break;case 3:t.push(JSON.stringify(o.value),o);break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[o.type]})}}const generate=(t,o={})=>{const r=isString$3(o.mode)?o.mode:"normal",e=isString$3(o.filename)?o.filename:"message.intl",n=!!o.sourceMap,a=o.breakLineCode!=null?o.breakLineCode:r==="arrow"?";":`
48`,i=o.needIndent?o.needIndent:r!=="arrow",s=t.helpers||[],l=createCodeGenerator(t,{mode:r,filename:e,sourceMap:n,breakLineCode:a,needIndent:i});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),s.length>0&&(l.push(`const { ${join(s.map(u=>`${u}: _${u}`),", ")} } = ctx`),l.newline()),l.push("return "),generateNode(l,t),l.deindent(i),l.push("}"),delete t.helpers;const{code:d,map:c}=l.context();return{ast:t,code:d,map:c?c.toJSON():void 0}};function baseCompile$1(t,o={}){const r=assign$2({},o),e=!!r.jit,n=!!r.minify,a=r.optimize==null?!0:r.optimize,s=createParser(r).parse(t);
48return e?(a&&optimize(s),n&&minify(s),{ast:s,code:""}):(transform$1(s,r),generate(s,r))}/*!
49  * core-base v9.13.1
50  * (c) 2024 kazuya kawaguchi
51  * Released under the MIT License.
52  */function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis$1().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis$1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis$1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]};pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]};pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]};pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(t){return literalValueRE.test(t)}function stripQuotes(t){const o=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return o===r&&(o===34||o===39)?t.slice(1,-1):t}function getPathCharType(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(t){const o=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:isLiteral(o)?stripQuotes(o):"*"+o}function parse$2(t){const o=[];let r=-1,e=0,n=0,a,i,s,l,d,c,u;const f=[];f[0]=()=>{i===void 0?i=s:i+=s},f[1]=()=>{i!==void 0&&(o.push(i),i=void 0)},f[2]=()=>{f[0](),n++},f[3]=()=>{if(n>0)n--,e=4,f[0]();else{if(n=0,i===void 0||(i=formatSubPath(i),i===!1))return!1;f[1]()}};function m(){const b=t[r+1];if(e===5&&b==="'"||e===6&&b==='"')return r++,s="\\"+b,f[0](),!0}for(;e!==null;)if(r++,a=t[r],!(a==="\\"&&m())){if(l=getPathCharType(a),u=pathStateMachine[e],d=u[l]||u.l||8,d===8||(e=d[0],d[1]!==void 0&&(c=f[d[1]],c&&(s=a,c()===!1))))return;if(e===7)return o}}const cache=new Map;function resolveWithKeyValue(t,o){return isObject$e(t)?t[o]:null}function resolveValue(t,o){if(!isObject$e(t))return null;let r=cache.get(o);if(r||(r=parse$2(o),r&&cache.set(o,r)),!r)return null;const e=r.length;let n=t,a=0;for(;a<e;){const i=n[r[a]];if(i===void 0||isFunction$6(n))return null;n=i,a++}return n}const DEFAULT_MODIFIER=t=>t,DEFAULT_MESSAGE=t=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=t=>t.length===0?"":join$1(t),DEFAULT_INTERPOLATE=toDisplayString$1;function pluralDefault(t,o){return t=Math.abs(t),o===2?t?t>1?1:0:1:t?Math.min(t,2):0}function getPluralIndex(t){const o=isNumber$2(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(isNumber$2(t.named.count)||isNumber$2(t.named.n))?isNumber$2(t.named.count)?t.named.count:isNumber$2(t.named.n)?t.named.n:o:o}function normalizeNamed(t,o){o.count||(o.count=t),o.n||(o.n=t)}function createMessageContext(t={}){const o=t.locale,r=getPluralIndex(t),e=isObject$e(t.pluralRules)&&isString$4(o)&&isFunction$6(t.pluralRules[o])?t.pluralRules[o]:pluralDefault,n=isObject$e(t.pluralRules)&&isString$4(o)&&isFunction$6(t.pluralRules[o])?pluralDefault:void 0,a=S=>S[e(r,S.length,n)],i=t.list||[],s=S=>i[S],l=t.named||{};isNumber$2(t.pluralIndex)&&normalizeNamed(r,l);const d=S=>l[S];function c(S){const C=isFunction$6(t.messages)?t.messages(S):isObject$e(t.messages)?t.messages[S]:!1;return C||(t.parent?t.parent.message(S):DEFAULT_MESSAGE)}const u=S=>t.modifiers?t.modifiers[S]:DEFAULT_MODIFIER,f=isPlainObject$3(t.processor)&&isFunction$6(t.processor.normalize)?t.processor.normalize:DEFAULT_NORMALIZE,m=isPlainObject$3(t.processor)&&isFunction$6(t.processor.interpolate)?t.processor.interpolate:DEFAULT_INTERPOLATE,b=isPlainObject$3(t.processor)&&isString$4(t.processor.type)?t.processor.type:DEFAULT_MESSAGE_DATA_TYPE,_={list:s,named:d,plural:a,linked:(S,...C)=>{const[T,x]=C;let k="text",E="";C.length===1?isObject$e(T)?(E=T.modifier||E,k=T.type||k):isString$4(T)&&(E=T||E):C.length===2&&(isString$4(T)&&(E=T||E),isString$4(x)&&(k=x||k));const w=c(S)(_),D=k==="vnode"&&isArray$c(w)&&E?w[0]:w;return E?u(E)(D,k):D},message:c,type:b,interpolate:m,normalize:f,values:assign$3({},i,l)};return _}let devtools=null;function setDevToolsHook(t){devtools=t}function initI18nDevTools(t,o,r){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:o,meta:r})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(t){return o=>devtools&&devtools.emit(t,o)}const code$1$1=CompileWarnCodes.__EXTEND_POINT__,inc$1$1=incrementer(code$1$1),CoreWarnCodes={NOT_FOUND_KEY:code$1$1,FALLBACK_TO_TRANSLATE:inc$1$1(),CANNOT_FORMAT_NUM
52BER:inc$1$1(),FALLBACK_TO_NUMBER_FORMAT:inc$1$1(),CANNOT_FORMAT_DATE:inc$1$1(),FALLBACK_TO_DATE_FORMAT:inc$1$1(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:inc$1$1(),__EXTEND_POINT__:inc$1$1()},code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$2(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$2(),NOT_SUPPORT_LOCALE_TYPE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(t){return createCompileError(t,null,void 0)}function getLocale(t,o){return o.locale!=null?resolveLocale(o.locale):resolveLocale(t.locale)}let _resolveLocale;function resolveLocale(t){if(isString$4(t))return t;if(isFunction$6(t)){if(t.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(t.constructor.name==="Function"){const o=t();if(isPromise$2(o))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=o}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(t,o,r){return[...new Set([r,...isArray$c(o)?o:isObject$e(o)?Object.keys(o):isString$4(o)?[o]:[r]])]}function fallbackWithLocaleChain(t,o,r){const e=isString$4(r)?r:DEFAULT_LOCALE,n=t;n.__localeChainCache||(n.__localeChainCache=new Map);let a=n.__localeChainCache.get(e);if(!a){a=[];let i=[r];for(;isArray$c(i);)i=appendBlockToChain(a,i,o);const s=isArray$c(o)||!isPlainObject$3(o)?o:o.default?o.default:null;i=isString$4(s)?[s]:s,isArray$c(i)&&appendBlockToChain(a,i,!1),n.__localeChainCache.set(e,a)}return a}function appendBlockToChain(t,o,r){let e=!0;for(let n=0;n<o.length&&isBoolean(e);n++){const a=o[n];isString$4(a)&&(e=appendLocaleToChain(t,o[n],r))}return e}function appendLocaleToChain(t,o,r){let e;const n=o.split("-");do{const a=n.join("-");e=appendItemToChain(t,a,r),n.splice(-1,1)}while(n.length&&e===!0);return e}function appendItemToChain(t,o,r){let e=!1;if(!t.includes(o)&&(e=!0,o)){e=o[o.length-1]!=="!";const n=o.replace(/!/g,"");t.push(n),(isArray$c(r)||isPlainObject$3(r))&&r[n]&&(e=r[n])}return e}const VERSION$2="9.13.1",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize$3=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(t,o)=>o==="text"&&isString$4(t)?t.toUpperCase():o==="vnode"&&isObject$e(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,o)=>o==="text"&&isString$4(t)?t.toLowerCase():o==="vnode"&&isObject$e(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,o)=>o==="text"&&isString$4(t)?capitalize$3(t):o==="vnode"&&isObject$e(t)&&"__v_isVNode"in t?capitalize$3(t.children):t}}let _compiler;function registerMessageCompiler(t){_compiler=t}let _resolver;function registerMessageResolver(t){_resolver=t}let _fallbacker;function registerLocaleFallbacker(t){_fallbacker=t}let _additionalMeta=null;const setAdditionalMeta=t=>{_additionalMeta=t},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=t=>{_fallbackContext=t},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(t={}){const o=isFunction$6(t.onWarn)?t.onWarn:warn,r=isString$4(t.version)?t.version:VERSION$2,e=isString$4(t.locale)||isFunction$6(t.locale)?t.locale:DEFAULT_LOCALE,n=isFunction$6(e)?DEFAULT_LOCALE:e,a=isArray$c(t.fallbackLocale)||isPlainObject$3(t.fallbackLocale)||isString$4(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,i=isPlainObject$3(t.messages)?t.messages:{[n]:{}},s=isPlainObject$3(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},l=isPlainObject$3(t.numberFormats)?t.numberFormats:{[n]:{}},d=assign$3({},t.modifiers||{},getDefaultLinkedModifiers()),c=t.pluralRules||{},u=isFunction$6(t.missing)?t.missing:null,f=isBoolean(t.missingWarn)||isRegExp(t.missingWarn)?t.missingWarn:!0,m=isBoolean(t.fallbackWarn)||isRegExp(t.fallbackWarn)?t.fallbackWarn:!0,b=!!t.fallbackFormat,y=!!t.unresolving,_=isFunction$6(t.postTranslation)?t.postTranslation:null,S=isPlainObject$3(t.processor)?t.processor:null,C=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0,T=!!t.escapeParameter,x=isFunction$6(t.messageCompiler)?t.messageCompiler:_compiler,k=isFunction$6(t.messageResolver)?t.messageResolver:_resolver||resolveWithKeyValue,E=isFunction$6(t.localeFallbacker)?t.localeFallbacker:_fallbacker||fallbackWithSimple,w=isObject$e(t.fallbackContext)?t.fallbackContext:void 0,D=t,N=isObject$e(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,F=isObject$e(D.__numberFormatters)?D.__numberFormatters:new Map,V=isObject$e(D.__meta)?D.__meta:{};_cid++;const A={version:r,cid:_cid,locale:e,fallbackLocale:a,messages:i,modifiers:d,pluralRules:c,missing:u,missingWarn:f,fallbackWarn:m,fallbackFormat:b,unresolving:y,postTranslation:_,processor:S,warnHtmlMessage:C,escapeParameter:T,messageCompiler:x,messageResolver:k,localeFallbacker:E,fallbackContext:w,onWarn:o,__meta:V};return A.datetimeFormats=s,A.numberFormats=l,A.__datetimeFormatters=N,A.__numberFormatters=F,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(A,r,V),A}function handleMissing(t,o,r,e,n){const{missing:a,onWarn:i}=t;if(a!==null){const s=a(t,r,o,n);return isString$4(s)?s:o}else return o}function updateFallbackLocale(t,o,r){const e=t;e.__localeChainCache=new Map,t.localeFallbacker(t,r,o)}function isAlmostSameLocale(t,o){return t===o?!1:t.split("-")[0]===o.split("-")[0]}function isImplicitFallback(t,o){const r=o.indexOf(t);if(r===-1)return!1;for(let e=r+1;e<o.length;e++)if(isAlmostSameLocale(t,o[e]))return!0;return!1}function format(t){return r=>formatParts(r,t)}function formatParts(t,o){const r=o.b||o.body;if((r.t||r.type)===1){const e=r,n=e.c||e.cases;return t.plural(n.reduce((a,i)=>[...a,formatMessageParts(t,i)],[]))}else return formatMessageParts(t,r)}function formatMessageParts(t,o){const r=o.s||o.static;if(r)return t.type==="text"?r:t.normalize([r]);{const e=(o.i||o.items).reduce((n,a)=>[...n,formatMessagePart(t,a)],[]);return t.normalize(e)}}function formatMessagePart(t,o){const r=o.t||o.type;switch(r){case 3:{const e=o;return e.v||e.value}case 9:{const e=o;return e.v||e.value}case 4:{const e=o;return t.interpolate(t.named(e.k||e.key))}case 5:{const e=o;return t.interpolate(t.list(e.i!=null?e.i:e.index))}case 6:{const e=o,n=e.m||e.modifier;return t.linked(formatMessagePart(t,e.k||e.key),n?formatMessagePart(t,n):void 0,t.type)}case 7:{const e=o;return e.v||e.value}case 8:{const e=o;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${r}`)}}const defaultOnCacheKey=t=>t;let compileCache=Object.create(null);const isMessageAST=t=>isObject$e(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function baseCompile(t,o={}){let r=!1;const e=o.onError||defaultOnError;return o.onError=n=>{r=!0,e(n)},{...baseCompile$1(t,o),detectError:r}}const compileToFunction=(t,o)=>{if(!isString$4(t))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);{isBoolean(o.warnHtmlMessage)&&o.warnHtmlMessage;const e=(o.onCacheKey||defaultOnCacheKey)(t),n=compileCache[e];if(n)return n;const{code:a,detectError:i}=baseCompile(t,o),s=new Function(`return ${a}`)();return i?s:compileCache[e]=s}};function compile$1(t,o){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$4(t)){isBoolean(o.warnHtmlMessage)&&o.warnHtmlMessage;const e=(o.onCacheKey||defaultOnCacheKey)(t),n=compileCache[e];if(n)return n;const{ast:a,detectError:i}=baseCompile(t,{...o,location:!1,jit:!0}),s=format(a);return i?s:compileCache[e]=s}else{const r=t.cacheKey;if(r){const e=compileCache[r];return e||(compileCache[r]=format(t))}else return format(t)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=t=>isFunction$6(t);function translate$1(t,...o){const{fallbackFormat:r,postTranslation:e,unresolving:n,messageCompiler:a,fallbackLocale:i,messages:s}=t,[l,d]=parseTranslateArgs(...o),c=isBoolean(d.missingWarn)?d.missingWarn:t.missingWarn,u=isBo
52olean(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,f=isBoolean(d.escapeParameter)?d.escapeParameter:t.escapeParameter,m=!!d.resolvedMessage,b=isString$4(d.default)||isBoolean(d.default)?isBoolean(d.default)?a?l:()=>l:d.default:r?a?l:()=>l:"",y=r||b!=="",_=getLocale(t,d);f&&escapeParams(d);let[S,C,T]=m?[l,_,s[_]||{}]:resolveMessageFormat(t,l,_,i,u,c),x=S,k=l;if(!m&&!(isString$4(x)||isMessageAST(x)||isMessageFunction(x))&&y&&(x=b,k=x),!m&&(!(isString$4(x)||isMessageAST(x)||isMessageFunction(x))||!isString$4(C)))return n?NOT_REOSLVED:l;let E=!1;const w=()=>{E=!0},D=isMessageFunction(x)?x:compileMessageFormat(t,l,C,x,k,w);if(E)return x;const N=getMessageContextOptions(t,C,T,d),F=createMessageContext(N),V=evaluateMessage(t,D,F),A=e?e(V,l):V;if(__INTLIFY_PROD_DEVTOOLS__){const M={timestamp:Date.now(),key:isString$4(l)?l:isMessageFunction(x)?x.key:"",locale:C||(isMessageFunction(x)?x.locale:""),format:isString$4(x)?x:isMessageFunction(x)?x.source:"",message:A};M.meta=assign$3({},t.__meta,getAdditionalMeta()||{}),translateDevTools(M)}return A}function escapeParams(t){isArray$c(t.list)?t.list=t.list.map(o=>isString$4(o)?escapeHtml(o):o):isObject$e(t.named)&&Object.keys(t.named).forEach(o=>{isString$4(t.named[o])&&(t.named[o]=escapeHtml(t.named[o]))})}function resolveMessageFormat(t,o,r,e,n,a){const{messages:i,onWarn:s,messageResolver:l,localeFallbacker:d}=t,c=d(t,e,r);let u={},f,m=null;const b="translate";for(let y=0;y<c.length&&(f=c[y],u=i[f]||{},(m=l(u,o))===null&&(m=u[o]),!(isString$4(m)||isMessageAST(m)||isMessageFunction(m)));y++)if(!isImplicitFallback(f,c)){const _=handleMissing(t,o,f,a,b);_!==o&&(m=_)}return[m,f,u]}function compileMessageFormat(t,o,r,e,n,a){const{messageCompiler:i,warnHtmlMessage:s}=t;if(isMessageFunction(e)){const d=e;return d.locale=d.locale||r,d.key=d.key||o,d}if(i==null){const d=()=>e;return d.locale=r,d.key=o,d}const l=i(e,getCompileContext(t,r,n,e,s,a));return l.locale=r,l.key=o,l.source=e,l}function evaluateMessage(t,o,r){return o(r)}function parseTranslateArgs(...t){const[o,r,e]=t,n={};if(!isString$4(o)&&!isNumber$2(o)&&!isMessageFunction(o)&&!isMessageAST(o))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const a=isNumber$2(o)?String(o):(isMessageFunction(o),o);return isNumber$2(r)?n.plural=r:isString$4(r)?n.default=r:isPlainObject$3(r)&&!isEmptyObject$1(r)?n.named=r:isArray$c(r)&&(n.list=r),isNumber$2(e)?n.plural=e:isString$4(e)?n.default=e:isPlainObject$3(e)&&assign$3(n,e),[a,n]}function getCompileContext(t,o,r,e,n,a){return{locale:o,key:r,warnHtmlMessage:n,onError:i=>{throw a&&a(i),i},onCacheKey:i=>generateFormatCacheKey(o,r,i)}}function getMessageContextOptions(t,o,r,e){const{modifiers:n,pluralRules:a,messageResolver:i,fallbackLocale:s,fallbackWarn:l,missingWarn:d,fallbackContext:c}=t,f={locale:o,modifiers:n,pluralRules:a,messages:m=>{let b=i(r,m);if(b==null&&c){const[,,y]=resolveMessageFormat(c,m,o,s,l,d);b=i(y,m)}if(isString$4(b)||isMessageAST(b)){let y=!1;const S=compileMessageFormat(t,m,o,b,m,()=>{y=!0});return y?NOOP_MESSAGE_FUNCTION:S}else return isMessageFunction(b)?b:NOOP_MESSAGE_FUNCTION}};return t.processor&&(f.processor=t.processor),e.list&&(f.list=e.list),e.named&&(f.named=e.named),isNumber$2(e.plural)&&(f.pluralIndex=e.plural),f}function datetime(t,...o){const{datetimeFormats:r,unresolving:e,fallbackLocale:n,onWarn:a,localeFallbacker:i}=t,{__datetimeFormatters:s}=t,[l,d,c,u]=parseDateTimeArgs(...o),f=isBoolean(c.missingWarn)?c.missingWarn:t.missingWarn;isBoolean(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn;const m=!!c.part,b=getLocale(t,c),y=i(t,n,b);if(!isString$4(l)||l==="")return new Intl.DateTimeFormat(b,u).format(d);let _={},S,C=null;const T="datetime format";for(let E=0;E<y.length&&(S=y[E],_=r[S]||{},C=_[l],!isPlainObject$3(C));E++)handleMissing(t,l,S,f,T);if(!isPlainObject$3(C)||!isString$4(S))return e?NOT_REOSLVED:l;let x=`${S}__${l}`;isEmptyObject$1(u)||(x=`${x}__${JSON.stringify(u)}`);let k=s.get(x);return k||(k=new Intl.DateTimeFormat(S,assign$3({},C,u)),s.set(x,k)),m?k.formatToParts(d):k.format(d)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...t){const[o,r,e,n]=t,a={};let i={},s;if(isString$4(o)){const l=o.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const d=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(d);try{s.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$3(o)){if(isNaN(o.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=o}else if(isNumber$2(o))s=o;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$4(r)?a.key=r:isPlainObject$3(r)&&Object.keys(r).forEach(l=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(l)?i[l]=r[l]:a[l]=r[l]}),isString$4(e)?a.locale=e:isPlainObject$3(e)&&(i=e),isPlainObject$3(n)&&(i=n),[a.key||"",s,a,i]}function clearDateTimeFormat(t,o,r){const e=t;for(const n in r){const a=`${o}__${n}`;e.__datetimeFormatters.has(a)&&e.__datetimeFormatters.delete(a)}}function number$1(t,...o){const{numberFormats:r,unresolving:e,fallbackLocale:n,onWarn:a,localeFallbacker:i}=t,{__numberFormatters:s}=t,[l,d,c,u]=parseNumberArgs(...o),f=isBoolean(c.missingWarn)?c.missingWarn:t.missingWarn;isBoolean(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn;const m=!!c.part,b=getLocale(t,c),y=i(t,n,b);if(!isString$4(l)||l==="")return new Intl.NumberFormat(b,u).format(d);let _={},S,C=null;const T="number format";for(let E=0;E<y.length&&(S=y[E],_=r[S]||{},C=_[l],!isPlainObject$3(C));E++)handleMissing(t,l,S,f,T);if(!isPlainObject$3(C)||!isString$4(S))return e?NOT_REOSLVED:l;let x=`${S}__${l}`;isEmptyObject$1(u)||(x=`${x}
52__${JSON.stringify(u)}`);let k=s.get(x);return k||(k=new Intl.NumberFormat(S,assign$3({},C,u)),s.set(x,k)),m?k.formatToParts(d):k.format(d)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...t){const[o,r,e,n]=t,a={};let i={};if(!isNumber$2(o))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const s=o;return isString$4(r)?a.key=r:isPlainObject$3(r)&&Object.keys(r).forEach(l=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(l)?i[l]=r[l]:a[l]=r[l]}),isString$4(e)?a.locale=e:isPlainObject$3(e)&&(i=e),isPlainObject$3(n)&&(i=n),[a.key||"",s,a,i]}function clearNumberFormat(t,o,r){const e=t;for(const n in r){const a=`${o}__${n}`;e.__numberFormatters.has(a)&&e.__numberFormatters.delete(a)}}initFeatureFlags$1();/**
53* @vue/shared v3.5.6
54* (c) 2018-present Yuxi (Evan) You and Vue contributors
55* @license MIT
56**//*! #__NO_SIDE_EFFECTS__ */function makeMap(t){const o=Object.create(null);for(const r of t.split(","))o[r]=1;return r=>r in o}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),isModelListener=t=>t.startsWith("onUpdate:"),extend$4=Object.assign,remove$2=(t,o)=>{const r=t.indexOf(o);r>-1&&t.splice(r,1)},hasOwnProperty$d=Object.prototype.hasOwnProperty,hasOwn=(t,o)=>hasOwnProperty$d.call(t,o),isArray$b=Array.isArray,isMap=t=>toTypeString(t)==="[object Map]",isSet=t=>toTypeString(t)==="[object Set]",isDate$2=t=>toTypeString(t)==="[object Date]",isFunction$5=t=>typeof t=="function",isString$2=t=>typeof t=="string",isSymbol$4=t=>typeof t=="symbol",isObject$c=t=>t!==null&&typeof t=="object",isPromise$1=t=>(isObject$c(t)||isFunction$5(t))&&isFunction$5(t.then)&&isFunction$5(t.catch),objectToString$2=Object.prototype.toString,toTypeString=t=>objectToString$2.call(t),toRawType=t=>toTypeString(t).slice(8,-1),isPlainObject$2=t=>toTypeString(t)==="[object Object]",isIntegerKey=t=>isString$2(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const o=Object.create(null);return r=>o[r]||(o[r]=t(r))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,(o,r)=>r?r.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize$2(t)}`:""),hasChanged=(t,o)=>!Object.is(t,o),invokeArrayFns=(t,...o)=>{for(let r=0;r<t.length;r++)t[r](...o)},def=(t,o,r,e=!1)=>{Object.defineProperty(t,o,{configurable:!0,enumerable:!1,writable:e,value:r})},looseToNumber=t=>{const o=parseFloat(t);return isNaN(o)?t:o},toNumber$1=t=>{const o=isString$2(t)?Number(t):NaN;return isNaN(o)?t:o};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(t){if(isArray$b(t)){const o={};for(let r=0;r<t.length;r++){const e=t[r],n=isString$2(e)?parseStringStyle(e):normalizeStyle(e);if(n)for(const a in n)o[a]=n[a]}return o}else if(isString$2(t)||isObject$c(t))return t}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(t){const o={};return t.replace(styleCommentRE,"").split(listDelimiterRE).forEach(r=>{if(r){const e=r.split(propertyDelimiterRE);e.length>1&&(o[e[0].trim()]=e[1].trim())}}),o}function normalizeClass(t){let o="";if(isString$2(t))o=t;else if(isArray$b(t))for(let r=0;r<t.length;r++){const e=normalizeClass(t[r]);e&&(o+=e+" ")}else if(isObject$c(t))for(const r in t)t[r]&&(o+=r+" ");return o.trim()}function normalizeProps(t){if(!t)return null;let{class:o,style:r}=t;return o&&!isString$2(o)&&(t.class=normalizeClass(o)),r&&(t.style=normalizeStyle(r)),t}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(t){return!!t||t===""}function looseCompareArrays(t,o){if(t.length!==o.length)return!1;let r=!0;for(let e=0;r&&e<t.length;e++)r=looseEqual(t[e],o[e]);return r}function looseEqual(t,o){if(t===o)return!0;let r=isDate$2(t),e=isDate$2(o);if(r||e)return r&&e?t.getTime()===o.getTime():!1;if(r=isSymbol$4(t),e=isSymbol$4(o),r||e)return t===o;if(r=isArray$b(t),e=isArray$b(o),r||e)return r&&e?looseCompareArrays(t,o):!1;if(r=isObject$c(t),e=isObject$c(o),r||e){if(!r||!e)return!1;const n=Object.keys(t).length,a=Object.keys(o).length;if(n!==a)return!1;for(const i in t){const s=t.hasOwnProperty(i),l=o.hasOwnProperty(i);if(s&&!l||!s&&l||!looseEqual(t[i],o[i]))return!1}}return String(t)===String(o)}function looseIndexOf(t,o){return t.findIndex(r=>looseEqual(r,o))}const isRef$1=t=>!!(t&&t.__v_isRef===!0),toDisplayString=t=>isString$2(t)?t:t==null?"":isArray$b(t)||isObject$c(t)&&(t.toString===objectToString$2||!isFunction$5(t.toString))?isRef$1(t)?toDisplayString(t.value):JSON.stringify(t,replacer,2):String(t),replacer=(t,o)=>isRef$1(o)?replacer(t,o.value):isMap(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((r,[e,n],a)=>(r[stringifySymbol(e,a)+" =>"]=n,r),{})}:isSet(o)?{[`Set(${o.size})`]:[...o.values()].map(r=>stringifySymbol(r))}:isSymbol$4(o)?stringifySymbol(o):isObject$c(o)&&!isArray$b(o)&&!isPlainObject$2(o)?String(o):o,str
vendor: 10,062 bytes, lines 56-60
56ingifySymbol=(t,o="")=>{var r;return isSymbol$4(t)?`Symbol(${(r=t.description)!=null?r:o})`:t};/**
57* @vue/reactivity v3.5.6
58* (c) 2018-present Yuxi (Evan) You and Vue contributors
59* @license MIT
60**/let activeEffectScope;class EffectScope{constructor(o=!1){this.detached=o,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!o&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let o,r;if(this.scopes)for(o=0,r=this.scopes.length;o<r;o++)this.scopes[o].pause();for(o=0,r=this.effects.length;o<r;o++)this.effects[o].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let o,r;if(this.scopes)for(o=0,r=this.scopes.length;o<r;o++)this.scopes[o].resume();for(o=0,r=this.effects.length;o<r;o++)this.effects[o].resume()}}run(o){if(this._active){const r=activeEffectScope;try{return activeEffectScope=this,o()}finally{activeEffectScope=r}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(o){if(this._active){let r,e;for(r=0,e=this.effects.length;r<e;r++)this.effects[r].stop();for(r=0,e=this.cleanups.length;r<e;r++)this.cleanups[r]();if(this.scopes)for(r=0,e=this.scopes.length;r<e;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!o){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(t){return new EffectScope(t)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(t,o=!1){activeEffectScope&&activeEffectScope.cleanups.push(t)}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(o){this.fn=o,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const o=activeSub,r=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=o,shouldTrack=r,this.flags&=-3}}stop(){if(this.flags&1){for(let o=this.deps;o;o=o.nextDep)removeSub(o);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub;function batch(t){t.flags|=8,t.next=batchedSub,batchedSub=t}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;let t;for(;batchedSub;){let o=batchedSub;for(batchedSub=void 0;o;){const r=o.next;if(o.next=void 0,o.flags&=-9,o.flags&1)try{o.trigger()}catch(e){t||(t=e)}o=r}}if(t)throw t}function prepareDeps(t){for(let o=t.deps;o;o=o.nextDep)o.version=-1,o.prevActiveLink=o.dep.activeLink,o.dep.activeLink=o}function cleanupDeps(t){let o,r=t.depsTail,e=r;for(;e;){const n=e.prevDep;e.version===-1?(e===r&&(r=n),removeSub(e),removeDep(e)):o=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0,e=n}t.deps=o,t.depsTail=r}function isDirty(t){for(let o=t.deps;o;o=o.nextDep)if(o.dep.version!==o.version||o.dep.computed&&(refreshComputed(o.dep.computed)||o.dep.version!==o.version))return!0;return!!t._dirty}function refreshComputed(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===globalVersion))return;t.globalVersion=globalVersion;const o=t.dep;if(t.flags|=2,o.version>0&&!t.isSSR&&t.deps&&!isDirty(t)){t.flags&=-3;return}const r=activeSub,e=shouldTrack;activeSub=t,shouldTrack=!0;try{prepareDeps(t);const n=t.fn(t._value);(o.version===0||hasChanged(n,t._value))&&(t._value=n,o.version++)}catch(n){throw o.version++,n}finally{activeSub=r,shouldTrack=e,cleanupDeps(t),t.flags&=-3}}function removeSub(t){const{dep:o,prevSub:r,nextSub:e}=t;if(r&&(r.nextSub=e,t.prevSub=void 0),e&&(e.prevSub=r,t.nextSub=void 0),o.subs===t&&(o.subs=r),!o.subs&&o.computed){o.computed.flags&=-5;for(let n=o.computed.deps;n;n=n.nextDep)removeSub(n)}}function removeDep(t){const{prevDep:o,nextDep:r}=t;o&&(o.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=o,t.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const t=trackStack.pop();shouldTrack=t===void 0?!0:t}function cleanupEffect(t){const{cleanup:o}=t;if(t.cleanup=void 0,o){const r=activeSub;activeSub=void 0;try{o()}finally{activeSub=r}}}let globalVersion=0;class Link{constructor(o,r){this.sub=o,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(o){this.computed=o,this.version=0,this.activeLink=void 0,this.subs=void 0}track(o){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==activeSub)r=this.activeLink=new Link(activeSub,this),activeSub.deps?(r.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=r,activeSub.depsTail=r):activeSub.deps=activeSub.depsTail=r,activeSub.flags&4&&addSub(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const e=r.nextDep;e.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=e),r.prevDep=activeSub.depsTail,r.nextDep=void 0,activeSub.depsTail.nextDep=r,activeSub.depsTail=r,activeSub.deps===r&&(activeSub.deps=e)}return r}trigger(o){this.version++,globalVersion++,this.notify(o)}notify(o){startBatch();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{endBatch()}}}function addSub(t){const o=t.dep.computed;if(o&&!t.dep.subs){o.flags|=20;for(let e=o.deps;e;e=e.nextDep)addSub(e)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(t,o,r){if(shouldTrack&&activeSub){let e=targetMap.get(t);e||targetMap.set(t,e=new Map);let n=e.get(r);n||e.set(r,n=new Dep),n.track()}}function trigger$1(t,o,r,e,n,a){const i=targetMap.get(t);if(!i){globalVersion++;return}const s=l=>{l&&l.trigger()};if(startBatch(),o==="clear")i.forEach(s);else{const l=isArray$b(t),d=l&&isIntegerKey(r);if(l&&r==="length"){const c=Number(e);i.forEach((u,f)=>{(f==="length"||f===ARRAY_ITERATE_KEY||!isSymbol$4(f)&&f>=c)&&s(u)})}else switch(r!==void 0&&s(i.get(r)),d&&s(i.get(ARRAY_ITERATE_KEY)),o){case"add":l?d&&s(i.get("length")):(s(i.get(ITERATE_KEY)),isMap(t)&&s(i.get(MAP_KEY_ITERATE_KEY)));break;case"delete":l||(s(i.get(ITERATE_KEY)),isMap(t)&&s(i.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(t)&&s(i.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(t,o){var r;return(r=targetMap.get(t))==null?void 0:r.get(o)}function reactiveReadArray(t){const o=toRaw(t);return o===t?o:(track(o,"iterate",ARRAY_ITERATE_KEY),isShallow(t)?o:o.map(toReactive))}function shallowReadArray(t){return track(t=toRaw(t),"iterate",ARRAY_ITERATE_KEY),t}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...t){return reactiveReadArray(this).concat(...t.map(o=>isArray$b(o)?reactiveReadArray(o):o))},entries(){return iterator(this,"entries",t=>(t[1]=toReactive(t[1]),t))},every(t,o){return apply$2(this,"every",t,o,void 0,arguments)},filter(t,o){return apply$2(this,"filter",t,o,r=>r.map(toReactive),arguments)},find(t,o){return apply$2(this,"find",t,o,toReactive,arguments)},findIndex(t,o){return apply$2(this,"findIndex",t,o,void 0,arguments)},findLast(t,o){return apply$2(this,"findLast",t,o,toReactive,arguments)},findLastIndex(t,o){return apply$2(this,"findLastIndex",t,o,void 0,arguments)},forEach(t,o){return apply$2(this,"forEach",t,o,void 0,arguments)},includes(...t){return searchProxy(this,"includes",t)},indexOf(...t){return searchProxy(this,"indexOf",t)},join(t){return reactiveReadArray(this).join(t)},lastIndexOf(...t){return searchProxy(this,"lastIndexOf",t)},map(t,o){return apply$2(this,"map",t,o,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...t){return noTracking(this,"push",t)},reduce(t,...o){return reduce(this,"reduce",t,o)},reduceRight(t,...o){return reduce(this,"reduceRight",t,o)},shift(){return noTracking(this,"shift")},some(t,o){return apply$2(this,"some",t,o,void 0,arguments)},splice(...t){return noTracking(this,"splice",t)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(t){return reactiveReadArray(this).toSorted(t)},toSpliced(...t){return reactiveReadArray(this).toSpliced(...t)},unshift(...t){return noTracking(this,"unshift",t)},values(){return iterator(this,"values",toReactive)}};function iterator(t,o,r){const e=shallowReadArray(t),n=e[o]();return e!==t&&!isShallow(t)&&(n._next=n.next,n.next=()=>{const a=n._next();return a.value&&(a.value=r(a.value)),a}),n}const arrayProto$1=Array.prototype;function apply$2(t,o,r,e,n,a){const i=shallowReadArray(t),s=i!==t&&!isShallow(t),l=i[o];if(l!==arrayProto$1[o]){const u=l.apply(t,a);return s?toReactive(u):u}let d=r;i!==t&&(s?d=function(u,f){return r.call(this,toReactive(u),f,t)}:r.length>2&&(d=function(u,f){return r.call(this,u,f,t)}));const c=l.call(i,d,e);return s&&n?n(c):c}function reduce(t,o,r,e){const n=shallowReadArray(t);let a=r;return n!==t&&(isShallow(t)?r.length>3&&(a=function(i,s,l){return r.call(this,i,s,l,t)}):a=function(i,s,l){return r.call(this,i,toReactive(s),l,t)}),n[o](a,...e)}function searchProxy(t,o,r){const e=toRaw(t);track(e,"iterate",ARRAY_ITERATE_KEY);const n=e[o](...r);return(n===-1||n===!1)&&isProxy(r[0])?(r[0]=toRaw(r[0]),e[o](...r)):n}function noTracking(t,o,r=[]){pauseTracking(),startBatch();const e=toRaw(t)[o].apply(t,r);return endBatch(),resetTracking(),e}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbol
vendor: 4,837 bytes, line 60
60s=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol$4));function hasOwnProperty$c(t){isSymbol$4(t)||(t=String(t));const o=toRaw(this);return track(o,"has",t),o.hasOwnProperty(t)}class BaseReactiveHandler{constructor(o=!1,r=!1){this._isReadonly=o,this._isShallow=r}get(o,r,e){const n=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return a;if(r==="__v_raw")return e===(n?a?shallowReadonlyMap:readonlyMap:a?shallowReactiveMap:reactiveMap).get(o)||Object.getPrototypeOf(o)===Object.getPrototypeOf(e)?o:void 0;const i=isArray$b(o);if(!n){let l;if(i&&(l=arrayInstrumentations[r]))return l;if(r==="hasOwnProperty")return hasOwnProperty$c}const s=Reflect.get(o,r,isRef(o)?o:e);return(isSymbol$4(r)?builtInSymbols.has(r):isNonTrackableKeys(r))||(n||track(o,"get",r),a)?s:isRef(s)?i&&isIntegerKey(r)?s:s.value:isObject$c(s)?n?readonly(s):reactive(s):s}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(o=!1){super(!1,o)}set(o,r,e,n){let a=o[r];if(!this._isShallow){const l=isReadonly(a);if(!isShallow(e)&&!isReadonly(e)&&(a=toRaw(a),e=toRaw(e)),!isArray$b(o)&&isRef(a)&&!isRef(e))return l?!1:(a.value=e,!0)}const i=isArray$b(o)&&isIntegerKey(r)?Number(r)<o.length:hasOwn(o,r),s=Reflect.set(o,r,e,isRef(o)?o:n);return o===toRaw(n)&&(i?hasChanged(e,a)&&trigger$1(o,"set",r,e):trigger$1(o,"add",r,e)),s}deleteProperty(o,r){const e=hasOwn(o,r);o[r];const n=Reflect.deleteProperty(o,r);return n&&e&&trigger$1(o,"delete",r,void 0),n}has(o,r){const e=Reflect.has(o,r);return(!isSymbol$4(r)||!builtInSymbols.has(r))&&track(o,"has",r),e}ownKeys(o){return track(o,"iterate",isArray$b(o)?"length":ITERATE_KEY),Reflect.ownKeys(o)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(o=!1){super(!0,o)}set(o,r){return!0}deleteProperty(o,r){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=t=>t,getProto=t=>Reflect.getPrototypeOf(t);function get$2(t,o,r=!1,e=!1){t=t.__v_raw;const n=toRaw(t),a=toRaw(o);r||(hasChanged(o,a)&&track(n,"get",o),track(n,"get",a));const{has:i}=getProto(n),s=e?toShallow:r?toReadonly:toReactive;if(i.call(n,o))return s(t.get(o));if(i.call(n,a))return s(t.get(a));t!==n&&t.get(o)}function has$2(t,o=!1){const r=this.__v_raw,e=toRaw(r),n=toRaw(t);return o||(hasChanged(t,n)&&track(e,"has",t),track(e,"has",n)),t===n?r.has(t):r.has(t)||r.has(n)}function size(t,o=!1){return t=t.__v_raw,!o&&track(toRaw(t),"iterate",ITERATE_KEY),Reflect.get(t,"size",t)}function add(t,o=!1){!o&&!isShallow(t)&&!isReadonly(t)&&(t=toRaw(t));const r=toRaw(this);return getProto(r).has.call(r,t)||(r.add(t),trigger$1(r,"add",t,t)),this}function set$3(t,o,r=!1){!r&&!isShallow(o)&&!isReadonly(o)&&(o=toRaw(o));const e=toRaw(this),{has:n,get:a}=getProto(e);let i=n.call(e,t);i||(t=toRaw(t),i=n.call(e,t));const s=a.call(e,t);return e.set(t,o),i?hasChanged(o,s)&&trigger$1(e,"set",t,o):trigger$1(e,"add",t,o),this}function deleteEntry(t){const o=toRaw(this),{has:r,get:e}=getProto(o);let n=r.call(o,t);n||(t=toRaw(t),n=r.call(o,t)),e&&e.call(o,t);const a=o.delete(t);return n&&trigger$1(o,"delete",t,void 0),a}function clear(){const t=toRaw(this),o=t.size!==0,r=t.clear();return o&&trigger$1(t,"clear",void 0,void 0),r}function createForEach(t,o){return function(e,n){const a=this,i=a.__v_raw,s=toRaw(i),l=o?toShallow:t?toReadonly:toReactive;return!t&&track(s,"iterate",ITERATE_KEY),i.forEach((d,c)=>e.call(n,l(d),l(c),a))}}function createIterableMethod(t,o,r){return function(...e){const n=this.__v_raw,a=toRaw(n),i=isMap(a),s=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,d=n[t](...e),c=r?toShallow:o?toReadonly:toReactive;return!o&&track(a,"iterate",l?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:s?[c(u[0]),c(u[1])]:c(u),done:f}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...o){return t==="delete"?!1:t==="clear"?void 0:this}}function createInstrumentations(){const t={get(a){return get$2(this,a)},get size(){return size(this)},has:has$2,add,set:set$3,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},o={get(a){return get$2(this,a,!1,!0)},get size(){return size(this)},has:has$2,add(a){return add.call(this,a,!0)},set(a,i){return set$3.call(this,a,i,!0)},delete:deleteEntry,clear,forEach:createForEach(!1,!0)},r={get(a){return get$2(this,a,!0)},get size(){return size(this,!0)},has(a){return has$2.call(this,a,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)}
vendor: 6,832 bytes, line 60
60,e={get(a){return get$2(this,a,!0,!0)},get size(){return size(this,!0)},has(a){return has$2.call(this,a,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{t[a]=createIterableMethod(a,!1,!1),r[a]=createIterableMethod(a,!0,!1),o[a]=createIterableMethod(a,!1,!0),e[a]=createIterableMethod(a,!0,!0)}),[t,r,o,e]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(t,o){const r=o?t?shallowReadonlyInstrumentations:shallowInstrumentations:t?readonlyInstrumentations:mutableInstrumentations;return(e,n,a)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?e:Reflect.get(hasOwn(r,n)&&n in e?r:e,n,a)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,o,r,e,n){if(!isObject$c(t)||t.__v_raw&&!(o&&t.__v_isReactive))return t;const a=n.get(t);if(a)return a;const i=getTargetType(t);if(i===0)return t;const s=new Proxy(t,i===2?e:r);return n.set(t,s),s}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return t?!!t.__v_raw:!1}function toRaw(t){const o=t&&t.__v_raw;return o?toRaw(o):t}function markRaw(t){return!hasOwn(t,"__v_skip")&&Object.isExtensible(t)&&def(t,"__v_skip",!0),t}const toReactive=t=>isObject$c(t)?reactive(t):t,toReadonly=t=>isObject$c(t)?readonly(t):t;function isRef(t){return t?t.__v_isRef===!0:!1}function ref$1(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,o){return isRef(t)?t:new RefImpl(t,o)}class RefImpl{constructor(o,r){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?o:toRaw(o),this._value=r?o:toReactive(o),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(o){const r=this._rawValue,e=this.__v_isShallow||isShallow(o)||isReadonly(o);o=e?o:toRaw(o),hasChanged(o,r)&&(this._rawValue=o,this._value=e?o:toReactive(o),this.dep.trigger())}}function unref(t){return isRef(t)?t.value:t}function toValue$1(t){return isFunction$5(t)?t():unref(t)}const shallowUnwrapHandlers={get:(t,o,r)=>o==="__v_raw"?t:unref(Reflect.get(t,o,r)),set:(t,o,r,e)=>{const n=t[o];return isRef(n)&&!isRef(r)?(n.value=r,!0):Reflect.set(t,o,r,e)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}class CustomRefImpl{constructor(o){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Dep,{get:e,set:n}=o(r.track.bind(r),r.trigger.bind(r));this._get=e,this._set=n}get value(){return this._value=this._get()}set value(o){this._set(o)}}function customRef(t){return new CustomRefImpl(t)}function toRefs(t){const o=isArray$b(t)?new Array(t.length):{};for(const r in t)o[r]=propertyToRef(t,r);return o}class ObjectRefImpl{constructor(o,r,e){this._object=o,this._key=r,this._defaultValue=e,this.__v_isRef=!0,this._value=void 0}get value(){const o=this._object[this._key];return this._value=o===void 0?this._defaultValue:o}set value(o){this._object[this._key]=o}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(o){this._getter=o,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef(t,o,r){return isRef(t)?t:isFunction$5(t)?new GetterRefImpl(t):isObject$c(t)&&arguments.length>1?propertyToRef(t,o,r):ref$1(t)}function propertyToRef(t,o,r){const e=t[o];return isRef(e)?e:new ObjectRefImpl(t,o,r)}class ComputedRefImpl{constructor(o,r,e){this.fn=o,this.setter=r,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.effect=this,this.__v_isReadonly=!r,this.isSSR=e}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this),!0}get value(){const o=this.dep.track();return refreshComputed(this),o&&(o.version=this.dep.version),this._value}set value(o){this.setter&&this.setter(o)}}function computed$1(t,o,r=!1){let e,n;return isFunction$5(t)?e=t:(e=t.get,n=t.set),new ComputedRefImpl(e,n,r)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(t,o=!1,r=activeWatcher){if(r){let e=cleanupMap.get(r);e||cleanupMap.set(r,e=[]),e.push(t)}}function watch$1(t,o,r=EMPTY_OBJ){const{immediate:e,deep:n,once:a,scheduler:i,augmentJob:s,call:l}=r,d=x=>n?x:isShallow(x)||n===!1||n===0?traverse(x,1):traverse(x);let c,u,f,m,b=!1,y=!1;if(isRef(t)?(u=()=>t.value,b=isShallow(t)):isReactive(t)?(u=()=>d(t),b=!0):isArray$b(t)?(y=!0,b=t.some(x=>isReactive(x)||isShallow(x)),u=()=>t.map(x=>{if(isRef(x))return x.value;if(isReactive(x))return d(x);if(isFunction$5(x))return l?l(x,2):x()})):isFunction$5(t)?o?u=l?()=>l(t,2):t:u=()=>{if(f){pauseTracking();try{f()}finally{resetTracking()}}const x=activeWatcher;activeWatcher=c;try{return l?l(t,3,[m]):t(m)}finally{activeWatcher=x}}:u=NOOP,o&&n){const x=u,k=n===!0?1/0:n;u=()=>traverse(x(),k)}const _=getCurrentScope(),S=()=>{c.stop(),_&&remove$2(_.effects,c)};if(a&&o){const x=o;o=(...k)=>{x(...k),S()}}let C=y?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const T=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(o){const k=c.run();if(n||b||(y?k.some((E,w)=>hasChanged(E,C[w])):hasChanged(k,C))){f&&f();const E=activeWatcher;activeWatcher=c;try{const w=[k,C===INITIAL_WATCHER_VALUE?void 0:y&&C[0]===INITIAL_WATCHER_VALUE?[]:C,m];l?l(o,3,w):o(...w),C=k}finally{activeWatcher=E}}}else c.run()};
60return s&&s(T),c=new ReactiveEffect(u),c.scheduler=i?()=>i(T,!1):T,m=x=>onWatcherCleanup(x,!1,c),f=c.onStop=()=>{const x=cleanupMap.get(c);if(x){if(l)l(x,4);else for(const k of x)k();cleanupMap.delete(c)}},o?e?T(!0):C=c.run():i?i(T.bind(null,!0),!0):c.run(),S.pause=c.pause.bind(c),S.resume=c.resume.bind(c),S.stop=S,S}function traverse(t,o=1/0,r){if(o<=0||!isObject$c(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),o--,isRef(t))traverse(t.value,o,r);else if(isArray$b(t))for(let e=0;e<t.length;e++)traverse(t[e],o,r);else if(isSet(t)||isMap(t))t.forEach(e=>{traverse(e,o,r)});else if(isPlainObject$2(t)){for(const e in t)traverse(t[e],o,r);for(const e of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,e)&&traverse(t[e],o,r)}return t}/**
61* @vue/runtime-core v3.5.6
62* (c) 2018-present Yuxi (Evan) You and Vue contributors
63* @license MIT
64**/const stack=[];let isWarning=!1;function warn$1(t,...o){if(isWarning)return;isWarning=!0,pauseTracking();const r=stack.length?stack[stack.length-1].component:null,e=r&&r.appContext.config.warnHandler,n=getComponentTrace();if(e)callWithErrorHandling(e,r,11,[t+o.map(a=>{var i,s;return(s=(i=a.toString)==null?void 0:i.call(a))!=null?s:JSON.stringify(a)}).join(""),r&&r.proxy,n.map(({vnode:a})=>`at <${formatComponentName(r,a.type)}>`).join(`
65`),n]);else{const a=[`[Vue warn]: ${t}`,...o];n.length&&a.push(`
66`,...formatTrace(n)),console.warn(...a)}resetTracking(),isWarning=!1}function getComponentTrace(){let t=stack[stack.length-1];if(!t)return[];const o=[];for(;t;){const r=o[0];r&&r.vnode===t?r.recurseCount++:o.push({vnode:t,recurseCount:0});const e=t.component&&t.component.parent;t=e&&e.vnode}return o}function formatTrace(t){const o=[];return t.forEach((r,e)=>{o.push(...e===0?[]:[`
67`],...formatTraceEntry(r))}),o}function formatTraceEntry({vnode:t,recurseCount:o}){const r=o>0?`... (${o} recursive calls)`:"",e=t.component?t.component.parent==null:!1,n=` at <${formatComponentName(t.component,t.type,e)}`,a=">"+r;return t.props?[n,...formatProps(t.props),a]:[n+a]}function formatProps(t){const o=[],r=Object.keys(t);return r.slice(0,3).forEach(e=>{o.push(...formatProp(e,t[e]))}),r.length>3&&o.push(" ..."),o}function formatProp(t,o,r){return isString$2(o)?(o=JSON.stringify(o),r?o:[`${t}=${o}`]):typeof o=="number"||typeof o=="boolean"||o==null?r?o:[`${t}=${o}`]:isRef(o)?(o=formatProp(t,toRaw(o.value),!0),r?o:[`${t}=Ref<`,o,">"]):isFunction$5(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=toRaw(o),r?o:[`${t}=`,o])}function callWithErrorHandling(t,o,r,e){try{return e?t(...e):t()}catch(n){handleError(n,o,r)}}function callWithAsyncErrorHandling(t,o,r,e){if(isFunction$5(t)){const n=callWithErrorHandling(t,o,r,e);return n&&isPromise$1(n)&&n.catch(a=>{handleError(a,o,r)}),n}if(isArray$b(t)){const n=[];for(let a=0;a<t.length;a++)n.push(callWithAsyncErrorHandling(t[a],o,r,e));return n}}function handleError(t,o,r,e=!0){const n=o?o.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:i}=o&&o.appContext.config||EMPTY_OBJ;if(o){let s=o.parent;const l=o.proxy,d=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,l,d)===!1)return}s=s.parent}if(a){pauseTracking(),callWithErrorHandling(a,null,10,[t,l,d]),resetTracking();return}}logError(t,r,n,e,i)}function logError(t,o,r,e=!0,n=!1){if(n)throw t;console.error(t)}let isFlushing=!1,isFlushPending=!1;const queue$1=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(t){const o=currentFlushPromise||resolvedPromise;return t?o.then(this?t.bind(this):t):o}function findInsertionIndex$1(t){let o=isFlushing?flushIndex+1:0,r=queue$1.length;for(;o<r;){const e=o+r>>>1,n=queue$1[e],a=getId$1(n);a<t||a===t&&n.flags&2?o=e+1:r=e}return o}function queueJob(t){if(!(t.flags&1)){const o=getId$1(t),r=queue$1[queue$1.length-1];!r||!(t.flags&2)&&o>=getId$1(r)?queue$1.push(t):queue$1.splice(findInsertionIndex$1(o),0,t),t.flags|=1,queueFlush()}}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(t){isArray$b(t)?pendingPostFlushCbs.push(...t):activePostFlushCbs&&t.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,t):t.flags&1||(pendingPostFlushCbs.push(t),t.flags|=1),queueFlush()}function flushPreFlushCbs(t,o,r=isFlushing?flushIndex+1:0){for(;r<queue$1.length;r++){const e=queue$1[r];if(e&&e.flags&2){if(t&&e.id!==t.uid)continue;queue$1.splice(r,1),r--,e.flags&4&&(e.flags&=-2),e(),e.flags&=-2}}}function flushPostFlushCbs(t){if(pendingPostFlushCbs.length){const o=[...new Set(pendingPostFlushCbs)].sort((r,e)=>getId$1(r)-getId$1(e));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...o);return}for(activePostFlushCbs=o,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const r=activePostFlushCbs[postFlushIndex];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId$1=t=>t.id==null?t.flags&2?-1:1/0:t.id;function flushJobs(t){isFlushPending=!1,isFlushing=!0;try{for(flushIndex=0;flushIndex<queue$1.length;flushIndex++){const o=queue$1[flushIndex];o&&!(o.flags&8)&&(o.flags&4&&(o.flags&=-2),callWithErrorHandling(o,o.i,o.i?15:14),o.flags&=-2)}}finally{for(;flushIndex<queue$1.length;flushIndex++){const o=queue$1[flushIndex];o&&(o.flags&=-2)}flushIndex=0,queue$1.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$1.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools$1,buffer=[],devtoolsNotInstalled=!1;function emit$1(t,...o){devtools$1?devtools$1.emit(t,...o):devtoolsNotInstalled||buffer.push({event:t,args:o})}function setDevtoolsHook$1(t,o){var r,e;devtools$1=t,devtools$1?(devtools$1.enabled=!0,buffer.forEach(({event:n,args:a})=>devtools$1.emit(n,...a)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((e=(r=window.navigator)==null?void 0:r.userAgent)!=null&&e.includes("jsdom"))?((o.__VUE_DEVTOOLS_HOOK_REPLAY__=o.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{setDevtoolsHook$1(a,o)}),setTimeout(()=>{devtools$1||(o.__VUE_DEVTOOLS_HOOK_REPLAY__=null,devtoolsNotInstalled=!0,buffer=[])},3e3)):(devtoolsNotInstalled=!0,buffer=[])}function devtoolsInitApp(t,o){emit$1("app:init",t,o,{Fragment,Text:Text$1,Comment,Static})}function devtoolsUnmountApp(t){emit$1("app:unmount",t)}const devtoolsComponentAdded=createDevtoolsComponentHook("component:added"),devtoolsComponentUpdated=createDevtoolsComponentHook("component:updated"),_devtoolsComponentRemoved=createDevtoolsComponentHook("component:removed"),devtoolsComponentRemoved=t=>{devtools$1&&typeof devtools$1.cleanupBuffer=="function"&&!devtools$1.cleanupBuffer(t)&&_devtoolsComponentRemoved(t)};/*! #__NO_SIDE_EFFECTS__ */function createDevtoolsComponentHook(t){return o=>{emit$1(t,o.appContext.app,o.uid,o.parent?o.parent.uid:void 0,o)}}function devtoolsComponentEmit(t,o,r){emit$1("component:emit",t.appContext.app,t,o,r)}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const o=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,o}function withCtx(t,o=currentRenderingInstance,r){if(!o||t._n)return t;const e=(...n)=>{e._d&&setBlockTracking(-1);const a=setCurrentRenderingInstance(o);let i;try{i=t(...n)}finally{setCurrentRenderingInstance(a),e._d&&setBlockTracking(1)}return devtoolsComponentUpdated(o),i};return e._n=!0,e._c=!0,e._d=!0,e}function withDirectives(t,o){if(currentRenderingInstance===null)return t;const r=getComponentPublicInstance(currentRenderingInstance),e=t.dirs||(t.dirs=[]);for(let n=0;n<o.length;n++){let[a,i,s,l=EMPTY_OBJ]=o[n];a&&(isFunction$5(a)&&(a={mounted:a,updated:a}),a.deep&&traverse(i),e.push({dir:a,instance:r,value:i,oldValue:void 0,arg:s,modifiers:l}))}return t}function invokeDirectiveHook(t,o,r,e){const n=t.dirs,a=o&&o.dirs;for(let i=0;i<n.length;i++){const s=n[i];a&&(s.oldValue=a[i].value);let l=s.dir[e];l&&(pauseTracking(),callWithAsyncErrorHandling(l,r,8,[t.el,s,t,o]),resetTracking())}}const TeleportEndKey=Symbol("_vte"),isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTeleportDeferred=t=>t&&(t.defer||t.defer===""),isTargetSVG=t=>typeof SVGElement<"u"&&t instanceof SVGElement,isTargetMathML=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,resolveTarget=(t,o)=>{const r=t&&t.to;return isString$2(r)?o?o(r):null:r},TeleportImpl={name:"Teleport",__isTeleport:!0,process(t,o,r,e,n,a,i,s,l,d){const{mc:c,pc:u,pbc:f,o:{insert:m,querySelector:b,createText:y,createComment:_}}=d,S=isTeleportDisabled(o.props);let{shapeFlag:C,children:T,dynamicChildren:x}=o;if(t==null){const k=o.el=y(""),E=o.anchor=y("");m(k,r,e),m(E,r,e);const w=(N,F)=>{C&16&&(n&&n.isCE&&(n.ce._teleportTarget=N),c(T,N,F,n,a,i,s,l))},D=()=>{const N=o.target=resolveTarget(o.props,b),F=prepareAnchor(N,o,y,m);N&&(i!=="svg"&&isTargetSVG(N)?i="svg":i!=="mathml"&&isTargetMathML(N)&&(i="mathml"),S||(w(N,F),updateCssVars(o)))};S&&(w(r,E),updateCssVars(o)),isTeleportDeferred(o.props)?queuePostRenderEffect(D,a):D()}else{o.el=t.el,o.targetStart=t.targetStart;const k=o.anchor=t.anchor,E=o.target=t.target,w=o.targetAnchor=t.targetAnchor,D=isTeleportDisabled(t.props),N=D?r:E,F=D?k:w;if(i==="svg"||isTargetSVG(E)?i="svg":(i==="mathml"||isTargetMathML(E))&&(i="mathml"),x?(f(t.dynamicChildren,x,N,n,a,i,s),traverseStaticChildren(t,o,!0)):l||u(t,o,N,F,n,a,i,s,!1),S)D?o.props&&t.props&&o.props.to!==t.props.to&&(o.props.to=t.props.to):moveTeleport(o,r,k,d,1);else if((o.props&&o.props.to)!==(t.props&&t.props.to)){const V=o.target=resolveTarget(o.props,b);V&&moveTeleport(o,V,null,d,0)}else D&&moveTeleport(o,E,w,d,1);updateCssVars(o)}},remove(t,o,r,{um:e,o:{remove:n}},a){const{shapeFlag:i,children:s,anchor:l,targetStart:d,targetAnchor:c,target:u,props:f}=t;if(u&&(n(d),n(c)),a&&n(l),i&16){const m=a||!isTeleportDisabled(f);for(let b=0;b<s.length;b++){const y=s[b];e(y,o,r,m,!!y.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(t,o,r,{o:{insert:e},m:n},a=2){a===0&&e(t.targetAnchor,o,r);const{el:i,anchor:s,shapeFlag:l,children:d,props:c}=t,u=a===2;if(u&&e(i,o,r),(!u||isTeleportDisabled(c))&&l&16)for(let f=0;f<d.length;f++)n(d[f],o,r,2);u&&e(s,o,r)}function hydrateTeleport(t,o,r,e,n,a,{o:{nextSibling:i,parentNode:s,querySelector:l,insert:d,createText:c}},u){const f=o.target=resolveTarget(o.props,l);if(f){const m=f._lpa||f.firstChild;if(o.shapeFlag&16)if(isTeleportDisabled(o.props))o.anchor=u(i(t),o,s(t),r,e,n,a),o.targetStart=m,o.targetAnchor=m&&i(m);
vendor: 10,123 bytes, line 67
67else{o.anchor=i(t);let b=m;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")o.targetStart=b;else if(b.data==="teleport anchor"){o.targetAnchor=b,f._lpa=o.targetAnchor&&i(o.targetAnchor);break}}b=i(b)}o.targetAnchor||prepareAnchor(f,o,c,d),u(m&&i(m),o,f,r,e,n,a)}updateCssVars(o)}return o.anchor&&i(o.anchor)}const Teleport=TeleportImpl;function updateCssVars(t){const o=t.ctx;if(o&&o.ut){let r=t.targetStart;for(;r&&r!==t.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",o.uid),r=r.nextSibling;o.ut()}}function prepareAnchor(t,o,r,e){const n=o.targetStart=r(""),a=o.targetAnchor=r("");return n[TeleportEndKey]=a,t&&(e(n,t),e(a,t)),a}const leaveCbKey=Symbol("_leaveCb"),enterCbKey$1=Symbol("_enterCb");function useTransitionState(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=t=>{const o=t.subTree;return o.component?recursiveGetSubtree(o.component):o},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:o}){const r=getCurrentInstance(),e=useTransitionState();return()=>{const n=o.default&&getTransitionRawChildren(o.default(),!0);if(!n||!n.length)return;const a=findNonCommentChild(n),i=toRaw(t),{mode:s}=i;if(e.isLeaving)return emptyPlaceholder(a);const l=getInnerChild$1(a);if(!l)return emptyPlaceholder(a);let d=resolveTransitionHooks(l,i,e,r,f=>d=f);l.type!==Comment&&setTransitionHooks(l,d);const c=r.subTree,u=c&&getInnerChild$1(c);if(u&&u.type!==Comment&&!isSameVNodeType(l,u)&&recursiveGetSubtree(r).type!==Comment){const f=resolveTransitionHooks(u,i,e,r);if(setTransitionHooks(u,f),s==="out-in"&&l.type!==Comment)return e.isLeaving=!0,f.afterLeave=()=>{e.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave},emptyPlaceholder(a);s==="in-out"&&l.type!==Comment&&(f.delayLeave=(m,b,y)=>{const _=getLeavingNodesForType(e,u);_[String(u.key)]=u,m[leaveCbKey]=()=>{b(),m[leaveCbKey]=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}};function findNonCommentChild(t){let o=t[0];if(t.length>1){for(const r of t)if(r.type!==Comment){o=r;break}}return o}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,o){const{leavingVNodes:r}=t;let e=r.get(o.type);return e||(e=Object.create(null),r.set(o.type,e)),e}function resolveTransitionHooks(t,o,r,e,n){const{appear:a,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:m,onAfterLeave:b,onLeaveCancelled:y,onBeforeAppear:_,onAppear:S,onAfterAppear:C,onAppearCancelled:T}=o,x=String(t.key),k=getLeavingNodesForType(r,t),E=(N,F)=>{N&&callWithAsyncErrorHandling(N,e,9,F)},w=(N,F)=>{const V=F[1];E(N,F),isArray$b(N)?N.every(A=>A.length<=1)&&V():N.length<=1&&V()},D={mode:i,persisted:s,beforeEnter(N){let F=l;if(!r.isMounted)if(a)F=_||l;else return;N[leaveCbKey]&&N[leaveCbKey](!0);const V=k[x];V&&isSameVNodeType(t,V)&&V.el[leaveCbKey]&&V.el[leaveCbKey](),E(F,[N])},enter(N){let F=d,V=c,A=u;if(!r.isMounted)if(a)F=S||d,V=C||c,A=T||u;else return;let M=!1;const O=N[enterCbKey$1]=R=>{M||(M=!0,R?E(A,[N]):E(V,[N]),D.delayedLeave&&D.delayedLeave(),N[enterCbKey$1]=void 0)};F?w(F,[N,O]):O()},leave(N,F){const V=String(t.key);if(N[enterCbKey$1]&&N[enterCbKey$1](!0),r.isUnmounting)return F();E(f,[N]);let A=!1;const M=N[leaveCbKey]=O=>{A||(A=!0,F(),O?E(y,[N]):E(b,[N]),N[leaveCbKey]=void 0,k[V]===t&&delete k[V])};k[V]=t,m?w(m,[N,M]):M()},clone(N){const F=resolveTransitionHooks(N,o,r,e,n);return n&&n(F),F}};return D}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getInnerChild$1(t){if(!isKeepAlive(t))return isTeleport(t.type)&&t.children?findNonCommentChild(t.children):t;const{shapeFlag:o,children:r}=t;if(r){if(o&16)return r[0];if(o&32&&isFunction$5(r.default))return r.default()}}function setTransitionHooks(t,o){t.shapeFlag&6&&t.component?(t.transition=o,setTransitionHooks(t.component.subTree,o)):t.shapeFlag&128?(t.ssContent.transition=o.clone(t.ssContent),t.ssFallback.transition=o.clone(t.ssFallback)):t.transition=o}function getTransitionRawChildren(t,o=!1,r){let e=[],n=0;for(let a=0;a<t.length;a++){let i=t[a];const s=r==null?i.key:String(r)+String(i.key!=null?i.key:a);i.type===Fragment?(i.patchFlag&128&&n++,e=e.concat(getTransitionRawChildren(i.children,o,s))):(o||i.type!==Comment)&&e.push(s!=null?cloneVNode(i,{key:s}):i)}if(n>1)for(let a=0;a<e.length;a++)e[a].patchFlag=-2;return e}/*! #__NO_SIDE_EFFECTS__ */function defineComponent(t,o){return isFunction$5(t)?extend$4({name:t.name},o,{setup:t}):t}function markAsyncBoundary(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function setRef(t,o,r,e,n=!1){if(isArray$b(t)){t.forEach((b,y)=>setRef(b,o&&(isArray$b(o)?o[y]:o),r,e,n));return}if(isAsyncWrapper(e)&&!n)return;const a=e.shapeFlag&4?getComponentPublicInstance(e.component):e.el,i=n?null:a,{i:s,r:l}=t,d=o&&o.r,c=s.refs===EMPTY_OBJ?s.refs={}:s.refs,u=s.setupState,f=toRaw(u),m=u===EMPTY_OBJ?()=>!1:b=>hasOwn(f,b);if(d!=null&&d!==l&&(isString$2(d)?(c[d]=null,m(d)&&(u[d]=null)):isRef(d)&&(d.value=null)),isFunction$5(l))callWithErrorHandling(l,s,12,[i,c]);else{const b=isString$2(l),y=isRef(l);if(b||y){const _=()=>{if(t.f){const S=b?m(l)?u[l]:c[l]:l.value;n?isArray$b(S)&&remove$2(S,a):isArray$b(S)?S.includes(a)||S.push(a):b?(c[l]=[a],m(l)&&(u[l]=c[l])):(l.value=[a],t.k&&(c[t.k]=l.value))}else b?(c[l]=i,m(l)&&(u[l]=i)):y&&(l.value=i,t.k&&(c[t.k]=i))};i?(_.id=-1,queuePostRenderEffect(_,r)):_()}}}const isComment=t=>t.nodeType===8;function forEachElement(t,o){if(isComment(t)&&t.data==="["){let r=1,e=t.nextSibling;for(;e;){if(e.nodeType===1)o(e);else if(isComment(e))if(e.data==="]"){if(--r===0)break}else e.data==="["&&r++;e=e.nextSibling}}else o(t)}const isAsyncWrapper=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function defineAsyncComponent(t){isFunction$5(t)&&(t={loader:t});const{loader:o,loadingComponent:r,errorComponent:e,delay:n=200,hydrate:a,timeout:i,suspensible:s=!0,onError:l}=t;let d=null,c,u=0;const f=()=>(u++,d=null,m()),m=()=>{let b;return d||(b=d=o().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),l)return new Promise((_,S)=>{l(y,()=>_(f()),()=>S(y),u+1)});throw y}).then(y=>b!==d&&d?d:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),c=y,y)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(b,y,_){const S=a?()=>{const C=a(_,T=>forEachElement(b,T));C&&(y.bum||(y.bum=[])).push(C)}:_;c?S():m().then(()=>!y.isUnmounted&&S())},get __asyncResolved(){return c},setup(){const b=currentInstance;if(markAsyncBoundary(b),c)return()=>createInnerComp(c,b);const y=T=>{d=null,handleError(T,b,13,!e)};if(s&&b.suspense||isInSSRComponentSetup)return m().then(T=>()=>createInnerComp(T,b)).catch(T=>(y(T),()=>e?createVNode(e,{error:T}):null));const _=ref$1(!1),S=ref$1(),C=ref$1(!!n);return n&&setTimeout(()=>{C.value=!1},n),i!=null&&setTimeout(()=>{if(!_.value&&!S.value){const T=new Error(`Async component timed out after ${i}ms.`);y(T),S.value=T}},i),m().then(()=>{_.value=!0,b.parent&&isKeepAlive(b.parent.vnode)&&b.parent.update()}).catch(T=>{y(T),S.value=T}),()=>{if(_.value&&c)return createInnerComp(c,b);if(S.value&&e)return createVNode(e,{error:S.value});if(r&&!C.value)return createVNode(r)}}})}function createInnerComp(t,o){const{ref:r,props:e,children:n,ce:a}=o.vnode,i=createVNode(t,e,n);return i.ref=r,i.ce=a,delete o.vnode.ce,i}const isKeepAlive=t=>t.type.__isKeepAlive;function onActivated(t,o){registerKeepAliveHook(t,"a",o)}function onDeactivated(t,o){registerKeepAliveHook(t,"da",o)}function registerKeepAliveHook(t,o,r=currentInstance){const e=t.__wdc||(t.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(injectHook(o,e,r),r){let n=r.parent;for(;n&&n.parent;)isKeepAlive(n.parent.vnode)&&injectToKeepAliveRoot(e,o,r,n),n=n.parent}}function injectToKeepAliveRoot(t,o,r,e){const n=injectHook(o,t,e,!0);onUnmounted(()=>{remove$2(e[o],n)},r)}function injectHook(t,o,r=currentInstance,e=!1){if(r){const n=r[t]||(r[t]=[]),a=o.__weh||(o.__weh=(...i)=>{pauseTracking();const s=setCurrentInstance(r),l=callWithAsyncErrorHandling(o,r,t,i);return s(),resetTracking(),l});return e?n.unshift(a):n.push(a),a}}const createHook=t=>(o,r=currentInstance)=>{(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...e)=>o(...e),r)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,o=currentInstance){injectHook("ec",t,o)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(t,o){return resolveAsset(COMPONENTS,t,!0,o)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$2(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveDirective(t){return resolveAsset(DIRECTIVES,t)}function resolveAsset(t,o,r=!0,e=!1){const n=currentRenderingInstance||currentInstance;if(n){const a=n.type;if(t===COMPONENTS){const s=getComponentName(a,!1);if(s&&(s===o||s===camelize(o)||s===capitalize$2(camelize(o))))return a}const i=resolve(n[t]||a[t],o)||resolve(n.appContext[t],o);return!i&&e?a:i}}function resolve(t,o){return t&&(t[o]||t[camelize(o)]||t[capitalize$2(camelize(o))])}function renderList(t,o,r,e){let n;const a=r,i=isArray$b(t);if(i||isString$2(t)){const s=i&&isReactive(t);let l=!1;
vendor: 4,678 bytes, line 67
67s&&(l=!isShallow(t),t=shallowReadArray(t)),n=new Array(t.length);for(let d=0,c=t.length;d<c;d++)n[d]=o(l?toReactive(t[d]):t[d],d,void 0,a)}else if(typeof t=="number"){n=new Array(t);for(let s=0;s<t;s++)n[s]=o(s+1,s,void 0,a)}else if(isObject$c(t))if(t[Symbol.iterator])n=Array.from(t,(s,l)=>o(s,l,void 0,a));else{const s=Object.keys(t);n=new Array(s.length);for(let l=0,d=s.length;l<d;l++){const c=s[l];n[l]=o(t[c],c,l,a)}}else n=[];return n}function createSlots(t,o){for(let r=0;r<o.length;r++){const e=o[r];if(isArray$b(e))for(let n=0;n<e.length;n++)t[e[n].name]=e[n].fn;else e&&(t[e.name]=e.key?(...n)=>{const a=e.fn(...n);return a&&(a.key=e.key),a}:e.fn)}return t}function renderSlot(t,o,r={},e,n){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.ce)return o!=="default"&&(r.name=o),openBlock(),createBlock(Fragment,null,[createVNode("slot",r,e&&e())],64);let a=t[o];a&&a._c&&(a._d=!1),openBlock();const i=a&&ensureValidVNode(a(r)),s=createBlock(Fragment,{key:(r.key||i&&i.key||`_${o}`)+(!i&&e?"_fb":"")},i||(e?e():[]),i&&t._===1?64:-2);return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function ensureValidVNode(t){return t.some(o=>isVNode$1(o)?!(o.type===Comment||o.type===Fragment&&!ensureValidVNode(o.children)):!0)?t:null}const getPublicInstance=t=>t?isStatefulComponent(t)?getComponentPublicInstance(t):getPublicInstance(t.parent):null,publicPropertiesMap=extend$4(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>{queueJob(t.update)}),$nextTick:t=>t.n||(t.n=nextTick$1.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,o)=>t!==EMPTY_OBJ&&!t.__isScriptSetup&&hasOwn(t,o),PublicInstanceProxyHandlers={get({_:t},o){if(o==="__v_skip")return!0;const{ctx:r,setupState:e,data:n,props:a,accessCache:i,type:s,appContext:l}=t;let d;if(o[0]!=="$"){const m=i[o];if(m!==void 0)switch(m){case 1:return e[o];case 2:return n[o];case 4:return r[o];case 3:return a[o]}else{if(hasSetupBinding(e,o))return i[o]=1,e[o];if(n!==EMPTY_OBJ&&hasOwn(n,o))return i[o]=2,n[o];if((d=t.propsOptions[0])&&hasOwn(d,o))return i[o]=3,a[o];if(r!==EMPTY_OBJ&&hasOwn(r,o))return i[o]=4,r[o];shouldCacheAccess&&(i[o]=0)}}const c=publicPropertiesMap[o];let u,f;if(c)return o==="$attrs"&&track(t.attrs,"get",""),c(t);if((u=s.__cssModules)&&(u=u[o]))return u;if(r!==EMPTY_OBJ&&hasOwn(r,o))return i[o]=4,r[o];if(f=l.config.globalProperties,hasOwn(f,o))return f[o]},set({_:t},o,r){const{data:e,setupState:n,ctx:a}=t;return hasSetupBinding(n,o)?(n[o]=r,!0):e!==EMPTY_OBJ&&hasOwn(e,o)?(e[o]=r,!0):hasOwn(t.props,o)||o[0]==="$"&&o.slice(1)in t?!1:(a[o]=r,!0)},has({_:{data:t,setupState:o,accessCache:r,ctx:e,appContext:n,propsOptions:a}},i){let s;return!!r[i]||t!==EMPTY_OBJ&&hasOwn(t,i)||hasSetupBinding(o,i)||(s=a[0])&&hasOwn(s,i)||hasOwn(e,i)||hasOwn(publicPropertiesMap,i)||hasOwn(n.config.globalProperties,i)},defineProperty(t,o,r){return r.get!=null?t._.accessCache[o]=0:hasOwn(r,"value")&&this.set(t,o,r.value,null),Reflect.defineProperty(t,o,r)}};function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(t){return isArray$b(t)?t.reduce((o,r)=>(o[r]=null,o),{}):t}let shouldCacheAccess=!0;function applyOptions(t){const o=resolveMergedOptions(t),r=t.proxy,e=t.ctx;shouldCacheAccess=!1,o.beforeCreate&&callHook$1(o.beforeCreate,t,"bc");const{data:n,computed:a,methods:i,watch:s,provide:l,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:m,updated:b,activated:y,deactivated:_,beforeDestroy:S,beforeUnmount:C,destroyed:T,unmounted:x,render:k,renderTracked:E,renderTriggered:w,errorCaptured:D,serverPrefetch:N,expose:F,inheritAttrs:V,components:A,directives:M,filters:O}=o;if(d&&resolveInjections(d,e,null),i)for(const j in i){const H=i[j];isFunction$5(H)&&(e[j]=H.bind(r))}if(n){const j=n.call(r,r);isObject$c(j)&&(t.data=reactive(j))}if(shouldCacheAccess=!0,a)for(const j in a){const H=a[j],U=isFunction$5(H)?H.bind(r,r):isFunction$5(H.get)?H.get.bind(r,r):NOOP,B=!isFunction$5(H)&&isFunction$5(H.set)?H.set.bind(r):NOOP,L=computed({get:U,set:B});Object.defineProperty(e,j,{enumerable:!0,configurable:!0,get:()=>L.value,set:z=>L.value=z})}if(s)for(const j in s)createWatcher(s[j],e,r,j);if(l){const j=isFunction$5(l)?l.call(r):l;
vendor: 5,518 bytes, line 67
67Reflect.ownKeys(j).forEach(H=>{provide(H,j[H])})}c&&callHook$1(c,t,"c");function I(j,H){isArray$b(H)?H.forEach(U=>j(U.bind(r))):H&&j(H.bind(r))}if(I(onBeforeMount,u),I(onMounted,f),I(onBeforeUpdate,m),I(onUpdated,b),I(onActivated,y),I(onDeactivated,_),I(onErrorCaptured,D),I(onRenderTracked,E),I(onRenderTriggered,w),I(onBeforeUnmount,C),I(onUnmounted,x),I(onServerPrefetch,N),isArray$b(F))if(F.length){const j=t.exposed||(t.exposed={});F.forEach(H=>{Object.defineProperty(j,H,{get:()=>r[H],set:U=>r[H]=U})})}else t.exposed||(t.exposed={});k&&t.render===NOOP&&(t.render=k),V!=null&&(t.inheritAttrs=V),A&&(t.components=A),M&&(t.directives=M),N&&markAsyncBoundary(t)}function resolveInjections(t,o,r=NOOP){isArray$b(t)&&(t=normalizeInject(t));for(const e in t){const n=t[e];let a;isObject$c(n)?"default"in n?a=inject(n.from||e,n.default,!0):a=inject(n.from||e):a=inject(n),isRef(a)?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):o[e]=a}}function callHook$1(t,o,r){callWithAsyncErrorHandling(isArray$b(t)?t.map(e=>e.bind(o.proxy)):t.bind(o.proxy),o,r)}function createWatcher(t,o,r,e){let n=e.includes(".")?createPathGetter(r,e):()=>r[e];if(isString$2(t)){const a=o[t];isFunction$5(a)&&watch(n,a)}else if(isFunction$5(t))watch(n,t.bind(r));else if(isObject$c(t))if(isArray$b(t))t.forEach(a=>createWatcher(a,o,r,e));else{const a=isFunction$5(t.handler)?t.handler.bind(r):o[t.handler];isFunction$5(a)&&watch(n,a,t)}}function resolveMergedOptions(t){const o=t.type,{mixins:r,extends:e}=o,{mixins:n,optionsCache:a,config:{optionMergeStrategies:i}}=t.appContext,s=a.get(o);let l;return s?l=s:!n.length&&!r&&!e?l=o:(l={},n.length&&n.forEach(d=>mergeOptions$1(l,d,i,!0)),mergeOptions$1(l,o,i)),isObject$c(o)&&a.set(o,l),l}function mergeOptions$1(t,o,r,e=!1){const{mixins:n,extends:a}=o;a&&mergeOptions$1(t,a,r,!0),n&&n.forEach(i=>mergeOptions$1(t,i,r,!0));for(const i in o)if(!(e&&i==="expose")){const s=internalOptionMergeStrats[i]||r&&r[i];t[i]=s?s(t[i],o[i]):o[i]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,o){return o?t?function(){return extend$4(isFunction$5(t)?t.call(this,this):t,isFunction$5(o)?o.call(this,this):o)}:o:t}function mergeInject(t,o){return mergeObjectOptions(normalizeInject(t),normalizeInject(o))}function normalizeInject(t){if(isArray$b(t)){const o={};for(let r=0;r<t.length;r++)o[t[r]]=t[r];return o}return t}function mergeAsArray(t,o){return t?[...new Set([].concat(t,o))]:o}function mergeObjectOptions(t,o){return t?extend$4(Object.create(null),t,o):o}function mergeEmitsOrPropsOptions(t,o){return t?isArray$b(t)&&isArray$b(o)?[...new Set([...t,...o])]:extend$4(Object.create(null),normalizePropsOrEmits(t),normalizePropsOrEmits(o??{})):o}function mergeWatchOptions(t,o){if(!t)return o;if(!o)return t;const r=extend$4(Object.create(null),t);for(const e in o)r[e]=mergeAsArray(t[e],o[e]);return r}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(t,o){return function(e,n=null){isFunction$5(e)||(e=extend$4({},e)),n!=null&&!isObject$c(n)&&(n=null);const a=createAppContext(),i=new WeakSet,s=[];let l=!1;const d=a.app={_uid:uid$1++,_component:e,_props:n,_container:null,_context:a,_instance:null,version:version$3,get config(){return a.config},set config(c){},use(c,...u){return i.has(c)||(c&&isFunction$5(c.install)?(i.add(c),c.install(d,...u)):isFunction$5(c)&&(i.add(c),c(d,...u))),d},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),d},component(c,u){return u?(a.components[c]=u,d):a.components[c]},directive(c,u){return u?(a.directives[c]=u,d):a.directives[c]},mount(c,u,f){if(!l){const m=d._ceVNode||createVNode(e,n);return m.appContext=a,f===!0?f="svg":f===!1&&(f=void 0),u&&o?o(m,c):t(m,c,f),l=!0,d._container=c,c.__vue_app__=d,d._instance=m.component,devtoolsInitApp(d,version$3),getComponentPublicInstance(m.component)}},onUnmount(c){s.push(c)},unmount(){l&&(callWithAsyncErrorHandling(s,d._instance,16),t(null,d._container),d._instance=null,devtoolsUnmountApp(d),delete d._container.__vue_app__)},provide(c,u){return a.provides[c]=u,d},runWithContext(c){const u=currentApp;currentApp=d;try{return c()}finally{currentApp=u}}};return d}}let currentApp=null;function provide(t,o){if(currentInstance){let r=currentInstance.provides;const e=currentInstance.parent&&currentInstance.parent.provides;e===r&&(r=currentInstance.provides=Object.create(e)),r[t]=o}}function inject(t,o,r=!1){const e=currentInstance||currentRenderingInstance;if(e||currentApp){const n=currentApp?currentApp._context.provides:e?e.parent==null?e.vnode.appContext&&e.vnode.appContext.provides:e.parent.provides:void 0;if(n&&t in n)return n[t];
vendor: 4,382 bytes, line 67
67if(arguments.length>1)return r&&isFunction$5(o)?o.call(e&&e.proxy):o}}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=t=>Object.getPrototypeOf(t)===internalObjectProto;function initProps(t,o,r,e=!1){const n={},a=createInternalObject();t.propsDefaults=Object.create(null),setFullProps(t,o,n,a);for(const i in t.propsOptions[0])i in n||(n[i]=void 0);r?t.props=e?n:shallowReactive(n):t.type.props?t.props=n:t.props=a,t.attrs=a}function updateProps(t,o,r,e){const{props:n,attrs:a,vnode:{patchFlag:i}}=t,s=toRaw(n),[l]=t.propsOptions;let d=!1;if((e||i>0)&&!(i&16)){if(i&8){const c=t.vnode.dynamicProps;for(let u=0;u<c.length;u++){let f=c[u];if(isEmitListener(t.emitsOptions,f))continue;const m=o[f];if(l)if(hasOwn(a,f))m!==a[f]&&(a[f]=m,d=!0);else{const b=camelize(f);n[b]=resolvePropValue(l,s,b,m,t,!1)}else m!==a[f]&&(a[f]=m,d=!0)}}}else{setFullProps(t,o,n,a)&&(d=!0);let c;for(const u in s)(!o||!hasOwn(o,u)&&((c=hyphenate(u))===u||!hasOwn(o,c)))&&(l?r&&(r[u]!==void 0||r[c]!==void 0)&&(n[u]=resolvePropValue(l,s,u,void 0,t,!0)):delete n[u]);if(a!==s)for(const u in a)(!o||!hasOwn(o,u))&&(delete a[u],d=!0)}d&&trigger$1(t.attrs,"set","")}function setFullProps(t,o,r,e){const[n,a]=t.propsOptions;let i=!1,s;if(o)for(let l in o){if(isReservedProp(l))continue;const d=o[l];let c;n&&hasOwn(n,c=camelize(l))?!a||!a.includes(c)?r[c]=d:(s||(s={}))[c]=d:isEmitListener(t.emitsOptions,l)||(!(l in e)||d!==e[l])&&(e[l]=d,i=!0)}if(a){const l=toRaw(r),d=s||EMPTY_OBJ;for(let c=0;c<a.length;c++){const u=a[c];r[u]=resolvePropValue(n,l,u,d[u],t,!hasOwn(d,u))}}return i}function resolvePropValue(t,o,r,e,n,a){const i=t[r];if(i!=null){const s=hasOwn(i,"default");if(s&&e===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&isFunction$5(l)){const{propsDefaults:d}=n;if(r in d)e=d[r];else{const c=setCurrentInstance(n);e=d[r]=l.call(null,o),c()}}else e=l;n.ce&&n.ce._setProp(r,e)}i[0]&&(a&&!s?e=!1:i[1]&&(e===""||e===hyphenate(r))&&(e=!0))}return e}const mixinPropsCache=new WeakMap;function normalizePropsOptions(t,o,r=!1){const e=r?mixinPropsCache:o.propsCache,n=e.get(t);if(n)return n;const a=t.props,i={},s=[];let l=!1;if(!isFunction$5(t)){const c=u=>{l=!0;const[f,m]=normalizePropsOptions(u,o,!0);extend$4(i,f),m&&s.push(...m)};!r&&o.mixins.length&&o.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!a&&!l)return isObject$c(t)&&e.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$b(a))for(let c=0;c<a.length;c++){const u=camelize(a[c]);validatePropName(u)&&(i[u]=EMPTY_OBJ)}else if(a)for(const c in a){const u=camelize(c);if(validatePropName(u)){const f=a[c],m=i[u]=isArray$b(f)||isFunction$5(f)?{type:f}:extend$4({},f),b=m.type;let y=!1,_=!0;if(isArray$b(b))for(let S=0;S<b.length;++S){const C=b[S],T=isFunction$5(C)&&C.name;if(T==="Boolean"){y=!0;break}else T==="String"&&(_=!1)}else y=isFunction$5(b)&&b.name==="Boolean";m[0]=y,m[1]=_,(y||hasOwn(m,"default"))&&s.push(u)}}const d=[i,s];return isObject$c(t)&&e.set(t,d),d}function validatePropName(t){return t[0]!=="$"&&!isReservedProp(t)}const isInternalKey=t=>t[0]==="_"||t==="$stable",normalizeSlotValue=t=>isArray$b(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot$1=(t,o,r)=>{if(o._n)return o;const e=withCtx((...n)=>normalizeSlotValue(o(...n)),r);return e._c=!1,e},normalizeObjectSlots=(t,o,r)=>{const e=t._ctx;for(const n in t){if(isInternalKey(n))continue;const a=t[n];if(isFunction$5(a))o[n]=normalizeSlot$1(n,a,e);else if(a!=null){const i=normalizeSlotValue(a);o[n]=()=>i}}},normalizeVNodeSlots=(t,o)=>{const r=normalizeSlotValue(o);t.slots.default=()=>r},assignSlots=(t,o,r)=>{for(const e in o)(r||e!=="_")&&(t[e]=o[e])},initSlots=(t,o,r)=>{const e=t.slots=createInternalObject();if(t.vnode.shapeFlag&32){const n=o._;n?(assignSlots(e,o,r),r&&def(e,"_",n,!0)):normalizeObjectSlots(o,e)}else o&&normalizeVNodeSlots(t,o)},updateSlots=(t,o,r)=>{const{vnode:e,slots:n}=t;let a=!0,i=EMPTY_OBJ;if(e.shapeFlag&32){const s=o._;s?r&&s===1?a=!1:assignSlots(n,o,r):(a=!o.$stable,normalizeObjectSlots(o,n)),i=o}else o&&(normalizeVNodeSlots(t,o),i={default:1});if(a)for(const s in n)!isInternalKey(s)&&i[s]==null&&delete n[s]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function baseCreateRenderer(t,o){const r=getGlobalThis();r.__VUE__=!0,setDevtoolsHook$1(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);
vendor: 4,919 bytes, line 67
67const{insert:e,remove:n,patchProp:a,createElement:i,createText:s,createComment:l,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:m=NOOP,insertStaticContent:b}=t,y=(Q,Y,ne,Ce=null,ae=null,Be=null,me=void 0,K=null,q=!!Y.dynamicChildren)=>{if(Q===Y)return;Q&&!isSameVNodeType(Q,Y)&&(Ce=oe(Q),z(Q,ae,Be,!0),Q=null),Y.patchFlag===-2&&(q=!1,Y.dynamicChildren=null);const{type:Z,ref:de,shapeFlag:fe}=Y;switch(Z){case Text$1:_(Q,Y,ne,Ce);break;case Comment:S(Q,Y,ne,Ce);break;case Static:Q==null&&C(Y,ne,Ce,me);break;case Fragment:A(Q,Y,ne,Ce,ae,Be,me,K,q);break;default:fe&1?k(Q,Y,ne,Ce,ae,Be,me,K,q):fe&6?M(Q,Y,ne,Ce,ae,Be,me,K,q):(fe&64||fe&128)&&Z.process(Q,Y,ne,Ce,ae,Be,me,K,q,le)}de!=null&&ae&&setRef(de,Q&&Q.ref,Be,Y||Q,!Y)},_=(Q,Y,ne,Ce)=>{if(Q==null)e(Y.el=s(Y.children),ne,Ce);else{const ae=Y.el=Q.el;Y.children!==Q.children&&d(ae,Y.children)}},S=(Q,Y,ne,Ce)=>{Q==null?e(Y.el=l(Y.children||""),ne,Ce):Y.el=Q.el},C=(Q,Y,ne,Ce)=>{[Q.el,Q.anchor]=b(Q.children,Y,ne,Ce,Q.el,Q.anchor)},T=({el:Q,anchor:Y},ne,Ce)=>{let ae;for(;Q&&Q!==Y;)ae=f(Q),e(Q,ne,Ce),Q=ae;e(Y,ne,Ce)},x=({el:Q,anchor:Y})=>{let ne;for(;Q&&Q!==Y;)ne=f(Q),n(Q),Q=ne;n(Y)},k=(Q,Y,ne,Ce,ae,Be,me,K,q)=>{Y.type==="svg"?me="svg":Y.type==="math"&&(me="mathml"),Q==null?E(Y,ne,Ce,ae,Be,me,K,q):N(Q,Y,ae,Be,me,K,q)},E=(Q,Y,ne,Ce,ae,Be,me,K)=>{let q,Z;const{props:de,shapeFlag:fe,transition:_e,dirs:pe}=Q;if(q=Q.el=i(Q.type,Be,de&&de.is,de),fe&8?c(q,Q.children):fe&16&&D(Q.children,q,null,Ce,ae,resolveChildrenNamespace(Q,Be),me,K),pe&&invokeDirectiveHook(Q,null,Ce,"created"),w(q,Q,Q.scopeId,me,Ce),de){for(const Me in de)Me!=="value"&&!isReservedProp(Me)&&a(q,Me,null,de[Me],Be,Ce);"value"in de&&a(q,"value",null,de.value,Be),(Z=de.onVnodeBeforeMount)&&invokeVNodeHook(Z,Ce,Q)}def(q,"__vnode",Q,!0),def(q,"__vueParentComponent",Ce,!0),pe&&invokeDirectiveHook(Q,null,Ce,"beforeMount");const ve=needTransition(ae,_e);ve&&_e.beforeEnter(q),e(q,Y,ne),((Z=de&&de.onVnodeMounted)||ve||pe)&&queuePostRenderEffect(()=>{Z&&invokeVNodeHook(Z,Ce,Q),ve&&_e.enter(q),pe&&invokeDirectiveHook(Q,null,Ce,"mounted")},ae)},w=(Q,Y,ne,Ce,ae)=>{if(ne&&m(Q,ne),Ce)for(let Be=0;Be<Ce.length;Be++)m(Q,Ce[Be]);if(ae){let Be=ae.subTree;if(Y===Be||isSuspense(Be.type)&&(Be.ssContent===Y||Be.ssFallback===Y)){const me=ae.vnode;w(Q,me,me.scopeId,me.slotScopeIds,ae.parent)}}},D=(Q,Y,ne,Ce,ae,Be,me,K,q=0)=>{for(let Z=q;Z<Q.length;Z++){const de=Q[Z]=K?cloneIfMounted(Q[Z]):normalizeVNode(Q[Z]);y(null,de,Y,ne,Ce,ae,Be,me,K)}},N=(Q,Y,ne,Ce,ae,Be,me)=>{const K=Y.el=Q.el;K.__vnode=Y;let{patchFlag:q,dynamicChildren:Z,dirs:de}=Y;q|=Q.patchFlag&16;const fe=Q.props||EMPTY_OBJ,_e=Y.props||EMPTY_OBJ;let pe;if(ne&&toggleRecurse(ne,!1),(pe=_e.onVnodeBeforeUpdate)&&invokeVNodeHook(pe,ne,Y,Q),de&&invokeDirectiveHook(Y,Q,ne,"beforeUpdate"),ne&&toggleRecurse(ne,!0),(fe.innerHTML&&_e.innerHTML==null||fe.textContent&&_e.textContent==null)&&c(K,""),Z?F(Q.dynamicChildren,Z,K,ne,Ce,resolveChildrenNamespace(Y,ae),Be):me||H(Q,Y,K,null,ne,Ce,resolveChildrenNamespace(Y,ae),Be,!1),q>0){if(q&16)V(K,fe,_e,ne,ae);else if(q&2&&fe.class!==_e.class&&a(K,"class",null,_e.class,ae),q&4&&a(K,"style",fe.style,_e.style,ae),q&8){const ve=Y.dynamicProps;for(let Me=0;Me<ve.length;Me++){const Fe=ve[Me],Te=fe[Fe],Se=_e[Fe];(Se!==Te||Fe==="value")&&a(K,Fe,Te,Se,ae,ne)}}q&1&&Q.children!==Y.children&&c(K,Y.children)}else!me&&Z==null&&V(K,fe,_e,ne,ae);((pe=_e.onVnodeUpdated)||de)&&queuePostRenderEffect(()=>{pe&&invokeVNodeHook(pe,ne,Y,Q),de&&invokeDirectiveHook(Y,Q,ne,"updated")},Ce)},F=(Q,Y,ne,Ce,ae,Be,me)=>{for(let K=0;K<Y.length;K++){const q=Q[K],Z=Y[K],de=q.el&&(q.type===Fragment||!isSameVNodeType(q,Z)||q.shapeFlag&70)?u(q.el):ne;y(q,Z,de,null,Ce,ae,Be,me,!0)}},V=(Q,Y,ne,Ce,ae)=>{if(Y!==ne){if(Y!==EMPTY_OBJ)for(const Be in Y)!isReservedProp(Be)&&!(Be in ne)&&a(Q,Be,Y[Be],null,ae,Ce);for(const Be in ne){if(isReservedProp(Be))continue;const me=ne[Be],K=Y[Be];me!==K&&Be!=="value"&&a(Q,Be,K,me,ae,Ce)}"value"in ne&&a(Q,"value",Y.value,ne.value,ae)}},A=(Q,Y,ne,Ce,ae,Be,me,K,q)=>{const Z=Y.el=Q?Q.el:s(""),de=Y.anchor=Q?Q.anchor:s("");let{patchFlag:fe,dynamicChildren:_e,slotScopeIds:pe}=Y;pe&&(K=K?K.concat(pe):pe),Q==null?(e(Z,ne,Ce),e(de,ne,Ce),D(Y.children||[],ne,de,ae,Be,me,K,q)):fe>0&&fe&64&&_e&&Q.dynamicChildren?(F(Q.dynamicChildren,_e,ne,ae,Be,me,K),(Y.key!=null||ae&&Y===ae.subTree)&&traverseStaticChildren(Q,Y,!0)):H(Q,Y,ne,de,ae,Be,me,K,q)},M=(Q,Y,ne,Ce,ae,Be,me,K,q)=>{Y.slotScopeIds=K,Q==null?Y.shapeFlag&512?ae.ctx.activate(Y,ne,Ce,me,q):O(Y,ne,Ce,ae,Be,me,q):R(Q,Y,q)},O=(Q,Y,ne,Ce,ae,Be,me)=>{const K=Q.component=createComponentInstance(Q,Ce,ae);if(isKeepAlive(Q)&&(K.ctx.renderer=le),setupComponent(K,!1,me),K.asyncDep){if(ae&&ae.registerDep(K,I,me),!Q.el){const q=K.subTree=createVNode(Comment);S(null,q,Y,ne)}}else I(K,Q,Y,ne,ae,Be,me)},R=(Q,Y,ne)=>{const Ce=Y.component=Q.component;if(shouldUpdateComponent(Q,Y,ne))if(Ce.asyncDep&&!Ce.asyncResolved){j(Ce,Y,ne);return}
vendor: 7,762 bytes, line 67
67else Ce.next=Y,Ce.update();else Y.el=Q.el,Ce.vnode=Y},I=(Q,Y,ne,Ce,ae,Be,me)=>{const K=()=>{if(Q.isMounted){let{next:fe,bu:_e,u:pe,parent:ve,vnode:Me}=Q;{const ue=locateNonHydratedAsyncRoot(Q);if(ue){fe&&(fe.el=Me.el,j(Q,fe,me)),ue.asyncDep.then(()=>{Q.isUnmounted||K()});return}}let Fe=fe,Te;toggleRecurse(Q,!1),fe?(fe.el=Me.el,j(Q,fe,me)):fe=Me,_e&&invokeArrayFns(_e),(Te=fe.props&&fe.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Te,ve,fe,Me),toggleRecurse(Q,!0);const Se=renderComponentRoot(Q),Ae=Q.subTree;Q.subTree=Se,y(Ae,Se,u(Ae.el),oe(Ae),Q,ae,Be),fe.el=Se.el,Fe===null&&updateHOCHostEl(Q,Se.el),pe&&queuePostRenderEffect(pe,ae),(Te=fe.props&&fe.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Te,ve,fe,Me),ae),devtoolsComponentUpdated(Q)}else{let fe;const{el:_e,props:pe}=Y,{bm:ve,m:Me,parent:Fe,root:Te,type:Se}=Q,Ae=isAsyncWrapper(Y);if(toggleRecurse(Q,!1),ve&&invokeArrayFns(ve),!Ae&&(fe=pe&&pe.onVnodeBeforeMount)&&invokeVNodeHook(fe,Fe,Y),toggleRecurse(Q,!0),_e&&ge){const ue=()=>{Q.subTree=renderComponentRoot(Q),ge(_e,Q.subTree,Q,ae,null)};Ae&&Se.__asyncHydrate?Se.__asyncHydrate(_e,Q,ue):ue()}else{Te.ce&&Te.ce._injectChildStyle(Se);const ue=Q.subTree=renderComponentRoot(Q);y(null,ue,ne,Ce,Q,ae,Be),Y.el=ue.el}if(Me&&queuePostRenderEffect(Me,ae),!Ae&&(fe=pe&&pe.onVnodeMounted)){const ue=Y;queuePostRenderEffect(()=>invokeVNodeHook(fe,Fe,ue),ae)}(Y.shapeFlag&256||Fe&&isAsyncWrapper(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&Q.a&&queuePostRenderEffect(Q.a,ae),Q.isMounted=!0,devtoolsComponentAdded(Q),Y=ne=Ce=null}};Q.scope.on();const q=Q.effect=new ReactiveEffect(K);Q.scope.off();const Z=Q.update=q.run.bind(q),de=Q.job=q.runIfDirty.bind(q);de.i=Q,de.id=Q.uid,q.scheduler=()=>queueJob(de),toggleRecurse(Q,!0),Z()},j=(Q,Y,ne)=>{Y.component=Q;const Ce=Q.vnode.props;Q.vnode=Y,Q.next=null,updateProps(Q,Y.props,Ce,ne),updateSlots(Q,Y.children,ne),pauseTracking(),flushPreFlushCbs(Q),resetTracking()},H=(Q,Y,ne,Ce,ae,Be,me,K,q=!1)=>{const Z=Q&&Q.children,de=Q?Q.shapeFlag:0,fe=Y.children,{patchFlag:_e,shapeFlag:pe}=Y;if(_e>0){if(_e&128){B(Z,fe,ne,Ce,ae,Be,me,K,q);return}else if(_e&256){U(Z,fe,ne,Ce,ae,Be,me,K,q);return}}pe&8?(de&16&&re(Z,ae,Be),fe!==Z&&c(ne,fe)):de&16?pe&16?B(Z,fe,ne,Ce,ae,Be,me,K,q):re(Z,ae,Be,!0):(de&8&&c(ne,""),pe&16&&D(fe,ne,Ce,ae,Be,me,K,q))},U=(Q,Y,ne,Ce,ae,Be,me,K,q)=>{Q=Q||EMPTY_ARR,Y=Y||EMPTY_ARR;const Z=Q.length,de=Y.length,fe=Math.min(Z,de);let _e;for(_e=0;_e<fe;_e++){const pe=Y[_e]=q?cloneIfMounted(Y[_e]):normalizeVNode(Y[_e]);y(Q[_e],pe,ne,null,ae,Be,me,K,q)}Z>de?re(Q,ae,Be,!0,!1,fe):D(Y,ne,Ce,ae,Be,me,K,q,fe)},B=(Q,Y,ne,Ce,ae,Be,me,K,q)=>{let Z=0;const de=Y.length;let fe=Q.length-1,_e=de-1;for(;Z<=fe&&Z<=_e;){const pe=Q[Z],ve=Y[Z]=q?cloneIfMounted(Y[Z]):normalizeVNode(Y[Z]);if(isSameVNodeType(pe,ve))y(pe,ve,ne,null,ae,Be,me,K,q);else break;Z++}for(;Z<=fe&&Z<=_e;){const pe=Q[fe],ve=Y[_e]=q?cloneIfMounted(Y[_e]):normalizeVNode(Y[_e]);if(isSameVNodeType(pe,ve))y(pe,ve,ne,null,ae,Be,me,K,q);else break;fe--,_e--}if(Z>fe){if(Z<=_e){const pe=_e+1,ve=pe<de?Y[pe].el:Ce;for(;Z<=_e;)y(null,Y[Z]=q?cloneIfMounted(Y[Z]):normalizeVNode(Y[Z]),ne,ve,ae,Be,me,K,q),Z++}}else if(Z>_e)for(;Z<=fe;)z(Q[Z],ae,Be,!0),Z++;else{const pe=Z,ve=Z,Me=new Map;for(Z=ve;Z<=_e;Z++){const De=Y[Z]=q?cloneIfMounted(Y[Z]):normalizeVNode(Y[Z]);De.key!=null&&Me.set(De.key,Z)}let Fe,Te=0;const Se=_e-ve+1;let Ae=!1,ue=0;const ye=new Array(Se);for(Z=0;Z<Se;Z++)ye[Z]=0;for(Z=pe;Z<=fe;Z++){const De=Q[Z];if(Te>=Se){z(De,ae,Be,!0);continue}let ke;if(De.key!=null)ke=Me.get(De.key);else for(Fe=ve;Fe<=_e;Fe++)if(ye[Fe-ve]===0&&isSameVNodeType(De,Y[Fe])){ke=Fe;break}ke===void 0?z(De,ae,Be,!0):(ye[ke-ve]=Z+1,ke>=ue?ue=ke:Ae=!0,y(De,Y[ke],ne,null,ae,Be,me,K,q),Te++)}const Xe=Ae?getSequence(ye):EMPTY_ARR;for(Fe=Xe.length-1,Z=Se-1;Z>=0;Z--){const De=ve+Z,ke=Y[De],ze=De+1<de?Y[De+1].el:Ce;ye[Z]===0?y(null,ke,ne,ze,ae,Be,me,K,q):Ae&&(Fe<0||Z!==Xe[Fe]?L(ke,ne,ze,2):Fe--)}}},L=(Q,Y,ne,Ce,ae=null)=>{const{el:Be,type:me,transition:K,children:q,shapeFlag:Z}=Q;if(Z&6){L(Q.component.subTree,Y,ne,Ce);return}if(Z&128){Q.suspense.move(Y,ne,Ce);return}if(Z&64){me.move(Q,Y,ne,le);return}if(me===Fragment){e(Be,Y,ne);for(let fe=0;fe<q.length;fe++)L(q[fe],Y,ne,Ce);e(Q.anchor,Y,ne);return}if(me===Static){T(Q,Y,ne);return}if(Ce!==2&&Z&1&&K)if(Ce===0)K.beforeEnter(Be),e(Be,Y,ne),queuePostRenderEffect(()=>K.enter(Be),ae);else{const{leave:fe,delayLeave:_e,afterLeave:pe}=K,ve=()=>e(Be,Y,ne),Me=()=>{fe(Be,()=>{ve(),pe&&pe()})};_e?_e(Be,ve,Me):Me()}else e(Be,Y,ne)},z=(Q,Y,ne,Ce=!1,ae=!1)=>{const{type:Be,props:me,ref:K,children:q,dynamicChildren:Z,shapeFlag:de,patchFlag:fe,dirs:_e,cacheIndex:pe}=Q;if(fe===-2&&(ae=!1),K!=null&&setRef(K,null,ne,Q,!0),pe!=null&&(Y.renderCache[pe]=void 0),de&256){Y.ctx.deactivate(Q);return}const ve=de&1&&_e,Me=!isAsyncWrapper(Q);let Fe;if(Me&&(Fe=me&&me.onVnodeBeforeUnmount)&&invokeVNodeHook(Fe,Y,Q),de&6)te(Q.component,ne,Ce);else{if(de&128){Q.suspense.unmount(ne,Ce);return}ve&&invokeDirectiveHook(Q,null,Y,"beforeUnmount"),de&64?Q.type.remove(Q,Y,ne,le,Ce):Z&&!Z.hasOnce&&(Be!==Fragment||fe>0&&fe&64)?re(Z,Y,ne,!1,!0):(Be===Fragment&&fe&384||!ae&&de&16)&&re(q,Y,ne),Ce&&W(Q)}(Me&&(Fe=me&&me.onVnodeUnmounted)||ve)&&queuePostRenderEffect(()=>{Fe&&invokeVNodeHook(Fe,Y,Q),ve&&invokeDirectiveHook(Q,null,Y,"unmounted")},ne)},W=Q=>{const{type:Y,el:ne,anchor:Ce,transition:ae}=Q;if(Y===Fragment){J(ne,Ce);return}if(Y===Static){x(Q);return}const Be=()=>{n(ne),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(Q.shapeFlag&1&&ae&&!ae.persisted){const{leave:me,delayLeave:K}=ae,q=()=>me(ne,Be);K?K(Q.el,Be,q):q()}else Be()},J=(Q,Y)=>{let ne;for(;Q!==Y;)ne=f(Q),n(Q),Q=ne;n(Y)},te=(Q,Y,ne)=>{const{bum:Ce,scope:ae,job:Be,subTree:me,um:K,m:q,a:Z}=Q;invalidateMount(q),invalidateMount(Z),Ce&&invokeArrayFns(Ce),ae.stop(),Be&&(Be.flags|=8,z(me,Q,Y,ne)),K&&queuePostRenderEffect(K,Y),queuePostRenderEffect(()=>{Q.isUnmounted=!0},Y),Y&&Y.pendingBranch&&!Y.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===Y.pendingId&&(Y.deps--,Y.deps===0&&Y.resolve()),devtoolsComponentRemoved(Q)},re=(Q,Y,ne,Ce=!1,ae=!1,Be=0)=>{for(let me=Be;me<Q.length;me++)z(Q[me],Y,ne,Ce,ae)},oe=Q=>{if(Q.shapeFlag&6)return oe(Q.component.subTree);if(Q.shapeFlag&128)return Q.suspense.next();const Y=f(Q.anchor||Q.el),ne=Y&&Y[TeleportEndKey];return ne?f(ne):Y};let X=!1;const se=(Q,Y,ne)=>{Q==null?Y._vnode&&z(Y._vnode,null,null,!0):y(Y._vnode||null,Q,Y,null,null,null,ne),Y._vnode=Q,X||(X=!0,flushPreFlushCbs(),flushPostFlushCbs(),X=!1)},le={p:y,um:z,m:L,r:W,mt:O,mc:D,pc:H,pbc:F,n:oe,o:t};let he,ge;return{render:se,hydrate:he,createApp:createAppAPI(se,he)}}function resolveChildrenNamespace({type:t,props:o},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&o&&o.encoding&&o.encoding.includes("html")?void 0:r}function toggleRecurse({effect:t,job:o},r){r?(t.flags|=32,o.flags|=4):(t.flags&=-33,o.flags&=-5)}function needTransition(t,o){return(!t||t&&!t.pendingBranch)&&o&&!o.persisted}function traverseStaticChildren(t,o,r=!1){const e=t.children,n=o.children;if(isArray$b(e)&&isArray$b(n))for(let a=0;a<e.length;a++){const i=e[a];let s=n[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=n[a]=cloneIfMounted(n[a]),s.el=i.el),!r&&s.patchFlag!==-2&&traverseStaticChildren(i,s)),s.type===Text$1&&(s.el=i.el)}}function getSequence(t){const o=t.slice(),r=[0];let e,n,a,i,s;const l=t.length;for(e=0;e<l;e++){const d=t[e];if(d!==0){if(n=r[r.length-1],t[n]<d){o[e]=n,r.push(e);continue}for(a=0,i=r.length-1;a<i;)s=a+i>>1,t[r[s]]<d?a=s+1:i=s;d<t[r[a]]&&(a>0&&(o[e]=r[a-1]),r[a]=e)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=o[i];return r}function locateNonHydratedAsyncRoot(t){const o=t.subTree.component;if(o)return o.asyncDep&&!o.asyncResolved?o:locateNonHydratedAsyncRoot(o)}
vendor: 5,887 bytes, line 67
67function invalidateMount(t){if(t)for(let o=0;o<t.length;o++)t[o].flags|=8}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(t,o){return doWatch(t,null,o)}function watch(t,o,r){return doWatch(t,o,r)}function doWatch(t,o,r=EMPTY_OBJ){const{immediate:e,deep:n,flush:a,once:i}=r,s=extend$4({},r);let l;if(isInSSRComponentSetup)if(a==="sync"){const f=useSSRContext();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!o||e)s.once=!0;else{const f=()=>{};return f.stop=NOOP,f.resume=NOOP,f.pause=NOOP,f}const d=currentInstance;s.call=(f,m,b)=>callWithAsyncErrorHandling(f,d,m,b);let c=!1;a==="post"?s.scheduler=f=>{queuePostRenderEffect(f,d&&d.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(f,m)=>{m?f():queueJob(f)}),s.augmentJob=f=>{o&&(f.flags|=4),c&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const u=watch$1(t,o,s);return l&&l.push(u),u}function instanceWatch(t,o,r){const e=this.proxy,n=isString$2(t)?t.includes(".")?createPathGetter(e,t):()=>e[t]:t.bind(e,e);let a;isFunction$5(o)?a=o:(a=o.handler,r=o);const i=setCurrentInstance(this),s=doWatch(n,a.bind(e),r);return i(),s}function createPathGetter(t,o){const r=o.split(".");return()=>{let e=t;for(let n=0;n<r.length&&e;n++)e=e[r[n]];return e}}const getModelModifiers=(t,o)=>o==="modelValue"||o==="model-value"?t.modelModifiers:t[`${o}Modifiers`]||t[`${camelize(o)}Modifiers`]||t[`${hyphenate(o)}Modifiers`];function emit(t,o,...r){if(t.isUnmounted)return;const e=t.vnode.props||EMPTY_OBJ;let n=r;const a=o.startsWith("update:"),i=a&&getModelModifiers(e,o.slice(7));i&&(i.trim&&(n=r.map(c=>isString$2(c)?c.trim():c)),i.number&&(n=r.map(looseToNumber))),devtoolsComponentEmit(t,o,n);let s,l=e[s=toHandlerKey(o)]||e[s=toHandlerKey(camelize(o))];!l&&a&&(l=e[s=toHandlerKey(hyphenate(o))]),l&&callWithAsyncErrorHandling(l,t,6,n);const d=e[s+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,callWithAsyncErrorHandling(d,t,6,n)}}function normalizeEmitsOptions(t,o,r=!1){const e=o.emitsCache,n=e.get(t);if(n!==void 0)return n;const a=t.emits;let i={},s=!1;if(!isFunction$5(t)){const l=d=>{const c=normalizeEmitsOptions(d,o,!0);c&&(s=!0,extend$4(i,c))};!r&&o.mixins.length&&o.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(isObject$c(t)&&e.set(t,null),null):(isArray$b(a)?a.forEach(l=>i[l]=null):extend$4(i,a),isObject$c(t)&&e.set(t,i),i)}function isEmitListener(t,o){return!t||!isOn(o)?!1:(o=o.slice(2).replace(/Once$/,""),hasOwn(t,o[0].toLowerCase()+o.slice(1))||hasOwn(t,hyphenate(o))||hasOwn(t,o))}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:o,vnode:r,proxy:e,withProxy:n,propsOptions:[a],slots:i,attrs:s,emit:l,render:d,renderCache:c,props:u,data:f,setupState:m,ctx:b,inheritAttrs:y}=t,_=setCurrentRenderingInstance(t);let S,C;try{if(r.shapeFlag&4){const x=n||e,k=x;S=normalizeVNode(d.call(k,x,c,u,m,f,b)),C=s}else{const x=o;S=normalizeVNode(x.length>1?x(u,{attrs:s,slots:i,emit:l}):x(u,null)),C=o.props?s:getFunctionalFallthrough(s)}}catch(x){blockStack.length=0,handleError(x,t,1),S=createVNode(Comment)}let T=S;if(C&&y!==!1){const x=Object.keys(C),{shapeFlag:k}=T;x.length&&k&7&&(a&&x.some(isModelListener)&&(C=filterModelListeners(C,a)),T=cloneVNode(T,C,!1,!0))}return r.dirs&&(T=cloneVNode(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition&&setTransitionHooks(T,r.transition),S=T,setCurrentRenderingInstance(_),S}const getFunctionalFallthrough=t=>{let o;for(const r in t)(r==="class"||r==="style"||isOn(r))&&((o||(o={}))[r]=t[r]);return o},filterModelListeners=(t,o)=>{const r={};for(const e in t)(!isModelListener(e)||!(e.slice(9)in o))&&(r[e]=t[e]);return r};function shouldUpdateComponent(t,o,r){const{props:e,children:n,component:a}=t,{props:i,children:s,patchFlag:l}=o,d=a.emitsOptions;if(o.dirs||o.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return e?hasPropsChanged(e,i,d):!!i;if(l&8){const c=o.dynamicProps;for(let u=0;u<c.length;u++){const f=c[u];if(i[f]!==e[f]&&!isEmitListener(d,f))return!0}}}else return(n||s)&&(!s||!s.$stable)?!0:e===i?!1:e?i?hasPropsChanged(e,i,d):!0:!!i;return!1}function hasPropsChanged(t,o,r){const e=Object.keys(o);if(e.length!==Object.keys(t).length)return!0;for(let n=0;n<e.length;n++){const a=e[n];if(o[a]!==t[a]&&!isEmitListener(r,a))return!0}return!1}function updateHOCHostEl({vnode:t,parent:o},r){for(;o;){const e=o.subTree;if(e.suspense&&e.suspense.activeBranch===t&&(e.el=t.el),e===t)(t=o.vnode).el=r,o=o.parent;else break}}const isSuspense=t=>t.__isSuspense;function queueEffectWithSuspense(t,o){o&&o.pendingBranch?isArray$b(t)?o.effects.push(...t):o.effects.push(t):queuePostFlushCb(t)}const Fragment=Symbol.for("v-fgt"),Text$1=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(t=!1){blockStack.push(currentBlock=t?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(t){isBlockTreeEnabled+=t,t<0&&currentBlock&&(currentBlock.hasOnce=!0)}function setupBlock(t){return t.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(t),t}function createElementBlock(t,o,r,e,n,a){return setupBlock(createBaseVNode(t,o,r,e,n,a,!0))}function createBlock(t,o,r,e,n){return setupBlock(createVNode(t,o,r,e,n,!0))}function isVNode$1(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,o){return t.type===o.type&&t.key===o.key}const normalizeKey=({key:t})=>t??null,normalizeRef=({ref:t,ref_key:o,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?isString$2(t)||isRef(t)||isFunction$5(t)?{i:currentRenderingInstance,r:t,k:o,f:!!r}:t:null);function createBaseVNode(t,o=null,r=null,e=0,n=null,a=t===Fragment?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,t
vendor: 4,826 bytes, line 67
67ype:t,props:o,key:o&&normalizeKey(o),ref:o&&normalizeRef(o),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:e,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return s?(normalizeChildren(l,r),a&128&&t.normalize(l)):r&&(l.shapeFlag|=isString$2(r)?8:16),isBlockTreeEnabled>0&&!i&&currentBlock&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&currentBlock.push(l),l}const createVNode=_createVNode;function _createVNode(t,o=null,r=null,e=0,n=null,a=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode$1(t)){const s=cloneVNode(t,o,!0);return r&&normalizeChildren(s,r),isBlockTreeEnabled>0&&!a&&currentBlock&&(s.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=s:currentBlock.push(s)),s.patchFlag=-2,s}if(isClassComponent(t)&&(t=t.__vccOpts),o){o=guardReactiveProps(o);let{class:s,style:l}=o;s&&!isString$2(s)&&(o.class=normalizeClass(s)),isObject$c(l)&&(isProxy(l)&&!isArray$b(l)&&(l=extend$4({},l)),o.style=normalizeStyle(l))}const i=isString$2(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$c(t)?4:isFunction$5(t)?2:0;return createBaseVNode(t,o,r,e,n,i,a,!0)}function guardReactiveProps(t){return t?isProxy(t)||isInternalObject(t)?extend$4({},t):t:null}function cloneVNode(t,o,r=!1,e=!1){const{props:n,ref:a,patchFlag:i,children:s,transition:l}=t,d=o?mergeProps(n||{},o):n,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&normalizeKey(d),ref:o&&o.ref?r&&a?isArray$b(a)?a.concat(normalizeRef(o)):[a,normalizeRef(o)]:normalizeRef(o):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:o&&t.type!==Fragment?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&e&&setTransitionHooks(c,l.clone(c)),c}function createTextVNode(t=" ",o=0){return createVNode(Text$1,null,t,o)}function createStaticVNode(t,o){const r=createVNode(Static,null,t);return r.staticCount=o,r}function createCommentVNode(t="",o=!1){return o?(openBlock(),createBlock(Comment,null,t)):createVNode(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment):isArray$b(t)?createVNode(Fragment,null,t.slice()):typeof t=="object"?cloneIfMounted(t):createVNode(Text$1,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,o){let r=0;const{shapeFlag:e}=t;if(o==null)o=null;else if(isArray$b(o))r=16;else if(typeof o=="object")if(e&65){const n=o.default;n&&(n._c&&(n._d=!1),normalizeChildren(t,n()),n._c&&(n._d=!0));return}else{r=32;const n=o._;!n&&!isInternalObject(o)?o._ctx=currentRenderingInstance:n===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?o._=1:(o._=2,t.patchFlag|=1024))}else isFunction$5(o)?(o={default:o,_ctx:currentRenderingInstance},r=32):(o=String(o),e&64?(r=16,o=[createTextVNode(o)]):r=8);t.children=o,t.shapeFlag|=r}function mergeProps(...t){const o={};for(let r=0;r<t.length;r++){const e=t[r];for(const n in e)if(n==="class")o.class!==e.class&&(o.class=normalizeClass([o.class,e.class]));else if(n==="style")o.style=normalizeStyle([o.style,e.style]);else if(isOn(n)){const a=o[n],i=e[n];i&&a!==i&&!(isArray$b(a)&&a.includes(i))&&(o[n]=a?[].concat(a,i):i)}else n!==""&&(o[n]=e[n])}return o}function invokeVNodeHook(t,o,r,e=null){callWithAsyncErrorHandling(t,o,7,[r,e])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(t,o,r){const e=t.type,n=(o?o.appContext:t.appContext)||emptyAppContext,a={uid:uid++,vnode:t,type:e,parent:o,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:o?o.provides:Object.create(n.provides),ids:o?o.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(e,n),emitsOptions:normalizeEmitsOptions(e,n),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:e.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 3,878 bytes, lines 67-70
67sp:null};return a.ctx={_:a},a.root=o?o.root:a,a.emit=emit.bind(null,a),t.ce&&t.ce(a),a}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const t=getGlobalThis(),o=(r,e)=>{let n;return(n=t[r])||(n=t[r]=[]),n.push(e),a=>{n.length>1?n.forEach(i=>i(a)):n[0](a)}};internalSetCurrentInstance=o("__VUE_INSTANCE_SETTERS__",r=>currentInstance=r),setInSSRSetupState=o("__VUE_SSR_SETTERS__",r=>isInSSRComponentSetup=r)}const setCurrentInstance=t=>{const o=currentInstance;return internalSetCurrentInstance(t),t.scope.on(),()=>{t.scope.off(),internalSetCurrentInstance(o)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,o=!1,r=!1){o&&setInSSRSetupState(o);const{props:e,children:n}=t.vnode,a=isStatefulComponent(t);initProps(t,e,a,o),initSlots(t,n,r);const i=a?setupStatefulComponent(t,o):void 0;return o&&setInSSRSetupState(!1),i}function setupStatefulComponent(t,o){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,PublicInstanceProxyHandlers);const{setup:e}=r;if(e){const n=t.setupContext=e.length>1?createSetupContext(t):null,a=setCurrentInstance(t);pauseTracking();const i=callWithErrorHandling(e,t,0,[t.props,n]);if(resetTracking(),a(),isPromise$1(i)){if(isAsyncWrapper(t)||markAsyncBoundary(t),i.then(unsetCurrentInstance,unsetCurrentInstance),o)return i.then(s=>{handleSetupResult(t,s,o)}).catch(s=>{handleError(s,t,0)});t.asyncDep=i}else handleSetupResult(t,i,o)}else finishComponentSetup(t,o)}function handleSetupResult(t,o,r){isFunction$5(o)?t.type.__ssrInlineRender?t.ssrRender=o:t.render=o:isObject$c(o)&&(t.devtoolsRawSetupState=o,t.setupState=proxyRefs(o)),finishComponentSetup(t,r)}let compile;function finishComponentSetup(t,o,r){const e=t.type;if(!t.render){if(!o&&compile&&!e.render){const n=e.template||resolveMergedOptions(t).template;if(n){const{isCustomElement:a,compilerOptions:i}=t.appContext.config,{delimiters:s,compilerOptions:l}=e,d=extend$4(extend$4({isCustomElement:a,delimiters:s},i),l);e.render=compile(n,d)}}t.render=e.render||NOOP}{const n=setCurrentInstance(t);pauseTracking();try{applyOptions(t)}finally{resetTracking(),n()}}}const attrsProxyHandlers={get(t,o){return track(t,"get",""),t[o]}};function createSetupContext(t){const o=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,attrsProxyHandlers),slots:t.slots,emit:t.emit,expose:o}}function getComponentPublicInstance(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(o,r){if(r in o)return o[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](t)},has(o,r){return r in o||r in publicPropertiesMap}})):t.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=t=>t.replace(classifyRE,o=>o.toUpperCase()).replace(/[-_]/g,"");function getComponentName(t,o=!0){return isFunction$5(t)?t.displayName||t.name:t.name||o&&t.__name}function formatComponentName(t,o,r=!1){let e=getComponentName(o);if(!e&&o.__file){const n=o.__file.match(/([^/\\]+)\.\w+$/);n&&(e=n[1])}if(!e&&t&&t.parent){const n=a=>{for(const i in a)if(a[i]===o)return i};e=n(t.components||t.parent.type.components)||n(t.appContext.components)}return e?classify(e):r?"App":"Anonymous"}function isClassComponent(t){return isFunction$5(t)&&"__vccOpts"in t}const computed=(t,o)=>computed$1(t,o,isInSSRComponentSetup);function h(t,o,r){const e=arguments.length;return e===2?isObject$c(o)&&!isArray$b(o)?isVNode$1(o)?createVNode(t,null,[o]):createVNode(t,o):createVNode(t,null,o):(e>3?r=Array.prototype.slice.call(arguments,2):e===3&&isVNode$1(r)&&(r=[r]),createVNode(t,o,r))}const version$3="3.5.6";/**
68* @vue/runtime-dom v3.5.6
69* (c) 2018-present Yuxi (Evan) You and Vue contributors
70* @license MIT
71**/let policy;const tt=typeof window<"u"&&window.trustedTypes;if(tt)try{policy=tt.createPolicy("vue",{createHTML:t=>t})}catch{}const unsafeToTrustedHTML=policy?t=>policy.createHTML(t):t=>t,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(t,o,r)=>{o.insertBefore(t,r||null)},remove:t=>{const o=t.parentNode;o&&o.removeChild(t)},createElement:(t,o,r,e)=>{const n=o==="svg"?doc.createElementNS(svgNS,t):o==="mathml"?doc.createElementNS(mathmlNS,t):r?doc.createElement(t,{is:r}):doc.createElement(t);return t==="select"&&e&&e.multiple!=null&&n.setAttribute("multiple",e.multiple),n},createText:t=>doc.createTextNode(t),createComment:t=>doc.createComment(t),setText:(t,o)=>{t.nodeValue=o},setElementText:(t,o)=>{t.textContent=o},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc.querySelector(t),setScopeId(t,o){t.setAttribute(o,"")},insertStaticContent(t,o,r,e,n,a){const i=r?r.previousSibling:o.lastChild;if(n&&(n===a||n.nextSibling))for(;o.insertBefore(n.cloneNode(!0),r),!(n===a||!(n=n.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(e==="svg"?`<svg>${t}</svg>`:e==="mathml"?`<math>${t}</math>`:t);const s=templateContainer.content;if(e==="svg"||e==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}o.insertBefore(s,r)}return[i?i.nextSibling:o.firstChild,r?r.previousSibling:o.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$4({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=t=>(t.displayName="Transition",t.props=TransitionPropsValidators,t),Transition=decorate$1((t,{slots:o})=>h(BaseTransition,resolveTransitionProps(t),o)),callHook=(t,o=[])=>{isArray$b(t)?t.forEach(r=>r(...o)):t&&t(...o)},hasExplicitCallback=t=>t?isArray$b(t)?t.some(o=>o.length>1):t.length>1:!1;function resolveTransitionProps(t){const o={};for(const A in t)A in DOMTransitionPropsValidators||(o[A]=t[A]);if(t.css===!1)return o;const{name:r="v",type:e,duration:n,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:d=i,appearToClass:c=s,leaveFromClass:u=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:m=`${r}-leave-to`}=t,b=normalizeDuration(n),y=b&&b[0],_=b&&b[1],{onBeforeEnter:S,onEnter:C,onEnterCancelled:T,onLeave:x,onLeaveCancelled:k,onBeforeAppear:E=S,onAppear:w=C,onAppearCancelled:D=T}=o,N=(A,M,O)=>{removeTransitionClass(A,M?c:s),removeTransitionClass(A,M?d:i),O&&O()},F=(A,M)=>{A._isLeaving=!1,removeTransitionClass(A,u),removeTransitionClass(A,m),removeTransitionClass(A,f),M&&M()},V=A=>(M,O)=>{const R=A?w:C,I=()=>N(M,A,O);callHook(R,[M,I]),nextFrame(()=>{removeTransitionClass(M,A?l:a),addTransitionClass(M,A?c:s),hasExplicitCallback(R)||whenTransitionEnds(M,e,y,I)})};return extend$4(o,{onBeforeEnter(A){callHook(S,[A]),addTransitionClass(A,a),addTransitionClass(A,i)},onBeforeAppear(A){callHook(E,[A]),addTransitionClass(A,l),addTransitionClass(A,d)},onEnter:V(!1),onAppear:V(!0),onLeave(A,M){A._isLeaving=!0;const O=()=>F(A,M);addTransitionClass(A,u),addTransitionClass(A,f),forceReflow(),nextFrame(()=>{A._isLeaving&&(removeTransitionClass(A,u),addTransitionClass(A,m),hasExplicitCallback(x)||whenTransitionEnds(A,e,_,O))}),callHook(x,[A,O])},onEnterCancelled(A){N(A,!1),callHook(T,[A])},onAppearCancelled(A){N(A,!0),callHook(D,[A])},onLeaveCancelled(A){F(A),callHook(k,[A])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$c(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const o=NumberOf(t);return[o,o]}}function NumberOf(t){return toNumber$1(t)}
vendor: 4,244 bytes, line 71
71function addTransitionClass(t,o){o.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[vtcKey]||(t[vtcKey]=new Set)).add(o)}function removeTransitionClass(t,o){o.split(/\s+/).forEach(e=>e&&t.classList.remove(e));const r=t[vtcKey];r&&(r.delete(o),r.size||(t[vtcKey]=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,o,r,e){const n=t._endId=++endId,a=()=>{n===t._endId&&e()};if(r)return setTimeout(a,r);const{type:i,timeout:s,propCount:l}=getTransitionInfo(t,o);if(!i)return e();const d=i+"end";let c=0;const u=()=>{t.removeEventListener(d,f),a()},f=m=>{m.target===t&&++c>=l&&u()};setTimeout(()=>{c<l&&u()},s+1),t.addEventListener(d,f)}function getTransitionInfo(t,o){const r=window.getComputedStyle(t),e=b=>(r[b]||"").split(", "),n=e(`${TRANSITION}Delay`),a=e(`${TRANSITION}Duration`),i=getTimeout(n,a),s=e(`${ANIMATION}Delay`),l=e(`${ANIMATION}Duration`),d=getTimeout(s,l);let c=null,u=0,f=0;o===TRANSITION?i>0&&(c=TRANSITION,u=i,f=a.length):o===ANIMATION?d>0&&(c=ANIMATION,u=d,f=l.length):(u=Math.max(i,d),c=u>0?i>d?TRANSITION:ANIMATION:null,f=c?c===TRANSITION?a.length:l.length:0);const m=c===TRANSITION&&/\b(transform|all)(,|$)/.test(e(`${TRANSITION}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:m}}function getTimeout(t,o){for(;t.length<o.length;)t=t.concat(t);return Math.max(...o.map((r,e)=>toMs(r)+toMs(t[e])))}function toMs(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(t,o,r){const e=t[vtcKey];e&&(o=(o?[o,...e]:[...e]).join(" ")),o==null?t.removeAttribute("class"):r?t.setAttribute("class",o):t.className=o}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(t,{value:o},{transition:r}){t[vShowOriginalDisplay]=t.style.display==="none"?"":t.style.display,r&&o?r.beforeEnter(t):setDisplay(t,o)},mounted(t,{value:o},{transition:r}){r&&o&&r.enter(t)},updated(t,{value:o,oldValue:r},{transition:e}){!o!=!r&&(e?o?(e.beforeEnter(t),setDisplay(t,!0),e.enter(t)):e.leave(t,()=>{setDisplay(t,!1)}):setDisplay(t,o))},beforeUnmount(t,{value:o}){setDisplay(t,o)}};function setDisplay(t,o){t.style.display=o?t[vShowOriginalDisplay]:"none",t[vShowHidden]=!o}const CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(t,o,r){const e=t.style,n=isString$2(r);let a=!1;if(r&&!n){if(o)if(isString$2(o))for(const i of o.split(";")){const s=i.slice(0,i.indexOf(":")).trim();r[s]==null&&setStyle(e,s,"")}else for(const i in o)r[i]==null&&setStyle(e,i,"");for(const i in r)i==="display"&&(a=!0),setStyle(e,i,r[i])}else if(n){if(o!==r){const i=e[CSS_VAR_TEXT];i&&(r+=";"+i),e.cssText=r,a=displayRE.test(r)}}else o&&t.removeAttribute("style");vShowOriginalDisplay in t&&(t[vShowOriginalDisplay]=a?e.display:"",t[vShowHidden]&&(e.display="none"))}const importantRE=/\s*!important$/;function setStyle(t,o,r){if(isArray$b(r))r.forEach(e=>setStyle(t,o,e));else if(r==null&&(r=""),o.startsWith("--"))t.setProperty(o,r);else{const e=autoPrefix(t,o);importantRE.test(r)?t.setProperty(hyphenate(e),r.replace(importantRE,""),"important"):t[e]=r}}const prefixes$1=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,o){const r=prefixCache[o];if(r)return r;let e=camelize(o);if(e!=="filter"&&e in t)return prefixCache[o]=e;e=capitalize$2(e);for(let n=0;n<prefixes$1.length;n++){const a=prefixes$1[n]+e;if(a in t)return prefixCache[o]=a}return o}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(t,o,r,e,n,a=isSpecialBooleanAttr(o)){e&&o.startsWith("xlink:")?r==null?t.removeAttributeNS(xlinkNS,o.slice(6,o.length)):t.setAttributeNS(xlinkNS,o,r):r==null||a&&!includeBooleanAttr(r)?t.removeAttribute(o):t.setAttribute(o,a?"":isSymbol$4(r)?String(r):r)}function patchDOMProp(t,o,r,e){if(o==="innerHTML"||o==="textContent"){r!=null&&(t[o]=o==="innerHTML"?unsafeToTrustedHTML(r):r);return}const n=t.tagName;if(o==="value"&&n!=="PROGRESS"&&!n.includes("-")){const i=n==="OPTION"?t.getAttribute("value")||"":t.value,s=r==null?t.type==="checkbox"?"on":"":String(r);(i!==s||!("_value"in t))&&(t.value=s),r==null&&t.removeAttribute(o),t._value=r;return}let a=!1;if(r===""||r==null){const i=typeof t[o];
vendor: 4,277 bytes, line 71
71i==="boolean"?r=includeBooleanAttr(r):r==null&&i==="string"?(r="",a=!0):i==="number"&&(r=0,a=!0)}try{t[o]=r}catch{}a&&t.removeAttribute(o)}function addEventListener(t,o,r,e){t.addEventListener(o,r,e)}function removeEventListener(t,o,r,e){t.removeEventListener(o,r,e)}const veiKey=Symbol("_vei");function patchEvent(t,o,r,e,n=null){const a=t[veiKey]||(t[veiKey]={}),i=a[o];if(e&&i)i.value=e;else{const[s,l]=parseName(o);if(e){const d=a[o]=createInvoker(e,n);addEventListener(t,s,d,l)}else i&&(removeEventListener(t,s,i,l),a[o]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(t){let o;if(optionsModifierRE.test(t)){o={};let e;for(;e=t.match(optionsModifierRE);)t=t.slice(0,t.length-e[0].length),o[e[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):hyphenate(t.slice(2)),o]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,o){const r=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=r.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(e,r.value),o,5,[e])};return r.value=t,r.attached=getNow(),r}function patchStopImmediatePropagation(t,o){if(isArray$b(o)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},o.map(e=>n=>!n._stopped&&e&&e(n))}else return o}const isNativeOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,patchProp=(t,o,r,e,n,a)=>{const i=n==="svg";o==="class"?patchClass(t,e,i):o==="style"?patchStyle(t,r,e):isOn(o)?isModelListener(o)||patchEvent(t,o,r,e,a):(o[0]==="."?(o=o.slice(1),!0):o[0]==="^"?(o=o.slice(1),!1):shouldSetAsProp(t,o,e,i))?(patchDOMProp(t,o,e),!t.tagName.includes("-")&&(o==="value"||o==="checked"||o==="selected")&&patchAttr(t,o,e,i,a,o!=="value")):(o==="true-value"?t._trueValue=e:o==="false-value"&&(t._falseValue=e),patchAttr(t,o,e,i))};function shouldSetAsProp(t,o,r,e){if(e)return!!(o==="innerHTML"||o==="textContent"||o in t&&isNativeOn(o)&&isFunction$5(r));if(o==="spellcheck"||o==="draggable"||o==="translate"||o==="form"||o==="list"&&t.tagName==="INPUT"||o==="type"&&t.tagName==="TEXTAREA")return!1;if(o==="width"||o==="height"){const n=t.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return isNativeOn(o)&&isString$2(r)?!1:!!(o in t||t._isVueCE&&(/[A-Z]/.test(o)||!isString$2(r)))}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),decorate=t=>(delete t.props.mode,t),TransitionGroupImpl=decorate({name:"TransitionGroup",props:extend$4({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(t,{slots:o}){const r=getCurrentInstance(),e=useTransitionState();let n,a;return onUpdated(()=>{if(!n.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!hasCSSTransform(n[0].el,r.vnode.el,i))return;n.forEach(callPendingCbs),n.forEach(recordPosition);const s=n.filter(applyTranslation);forceReflow(),s.forEach(l=>{const d=l.el,c=d.style;addTransitionClass(d,i),c.transform=c.webkitTransform=c.transitionDuration="";const u=d[moveCbKey]=f=>{f&&f.target!==d||(!f||/transform$/.test(f.propertyName))&&(d.removeEventListener("transitionend",u),d[moveCbKey]=null,removeTransitionClass(d,i))};d.addEventListener("transitionend",u)})}),()=>{const i=toRaw(t),s=resolveTransitionProps(i);let l=i.tag||Fragment;if(n=[],a)for(let d=0;d<a.length;d++){const c=a[d];c.el&&c.el instanceof Element&&(n.push(c),setTransitionHooks(c,resolveTransitionHooks(c,s,e,r)),positionMap.set(c,c.el.getBoundingClientRect()))}a=o.default?getTransitionRawChildren(o.default()):[];for(let d=0;d<a.length;d++){const c=a[d];c.key!=null&&setTransitionHooks(c,resolveTransitionHooks(c,s,e,r))}return createVNode(l,null,a)}}}),TransitionGroup=TransitionGroupImpl;function callPendingCbs(t){const o=t.el;o[moveCbKey]&&o[moveCbKey](),o[enterCbKey]&&o[enterCbKey]()}function recordPosition(t){newPositionMap.set(t,t.el.getBoundingClientRect())}function applyTranslation(t){const o=positionMap.get(t),r=newPositionMap.get(t),e=o.left-r.left,n=o.top-r.top;if(e||n){const a=t.el.style;return a.transform=a.webkitTransform=`translate(${e}px,${n}px)`,a.transitionDuration="0s",t}}function hasCSSTransform(t,o,r){const e=t.cloneNode(),n=t[vtcKey];
vendor: 6,716 bytes, line 71
71n&&n.forEach(s=>{s.split(/\s+/).forEach(l=>l&&e.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&e.classList.add(s)),e.style.display="none";const a=o.nodeType===1?o:o.parentNode;a.appendChild(e);const{hasTransform:i}=getTransitionInfo(e);return a.removeChild(e),i}const getModelAssigner=t=>{const o=t.props["onUpdate:modelValue"]||!1;return isArray$b(o)?r=>invokeArrayFns(o,r):o};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const o=t.target;o.composing&&(o.composing=!1,o.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(t,{modifiers:{lazy:o,trim:r,number:e}},n){t[assignKey]=getModelAssigner(n);const a=e||n.props&&n.props.type==="number";addEventListener(t,o?"change":"input",i=>{if(i.target.composing)return;let s=t.value;r&&(s=s.trim()),a&&(s=looseToNumber(s)),t[assignKey](s)}),r&&addEventListener(t,"change",()=>{t.value=t.value.trim()}),o||(addEventListener(t,"compositionstart",onCompositionStart),addEventListener(t,"compositionend",onCompositionEnd),addEventListener(t,"change",onCompositionEnd))},mounted(t,{value:o}){t.value=o??""},beforeUpdate(t,{value:o,oldValue:r,modifiers:{lazy:e,trim:n,number:a}},i){if(t[assignKey]=getModelAssigner(i),t.composing)return;const s=(a||t.type==="number")&&!/^0\d/.test(t.value)?looseToNumber(t.value):t.value,l=o??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(e&&o===r||n&&t.value.trim()===l)||(t.value=l))}},vModelCheckbox={deep:!0,created(t,o,r){t[assignKey]=getModelAssigner(r),addEventListener(t,"change",()=>{const e=t._modelValue,n=getValue$2(t),a=t.checked,i=t[assignKey];if(isArray$b(e)){const s=looseIndexOf(e,n),l=s!==-1;if(a&&!l)i(e.concat(n));else if(!a&&l){const d=[...e];d.splice(s,1),i(d)}}else if(isSet(e)){const s=new Set(e);a?s.add(n):s.delete(n),i(s)}else i(getCheckboxValue(t,a))})},mounted:setChecked,beforeUpdate(t,o,r){t[assignKey]=getModelAssigner(r),setChecked(t,o,r)}};function setChecked(t,{value:o,oldValue:r},e){t._modelValue=o;let n;isArray$b(o)?n=looseIndexOf(o,e.props.value)>-1:isSet(o)?n=o.has(e.props.value):n=looseEqual(o,getCheckboxValue(t,!0)),t.checked!==n&&(t.checked=n)}const vModelRadio={created(t,{value:o},r){t.checked=looseEqual(o,r.props.value),t[assignKey]=getModelAssigner(r),addEventListener(t,"change",()=>{t[assignKey](getValue$2(t))})},beforeUpdate(t,{value:o,oldValue:r},e){t[assignKey]=getModelAssigner(e),o!==r&&(t.checked=looseEqual(o,e.props.value))}},vModelSelect={deep:!0,created(t,{value:o,modifiers:{number:r}},e){const n=isSet(o);addEventListener(t,"change",()=>{const a=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>r?looseToNumber(getValue$2(i)):getValue$2(i));t[assignKey](t.multiple?n?new Set(a):a:a[0]),t._assigning=!0,nextTick$1(()=>{t._assigning=!1})}),t[assignKey]=getModelAssigner(e)},mounted(t,{value:o,modifiers:{number:r}}){setSelected(t,o)},beforeUpdate(t,o,r){t[assignKey]=getModelAssigner(r)},updated(t,{value:o,modifiers:{number:r}}){t._assigning||setSelected(t,o)}};function setSelected(t,o,r){const e=t.multiple,n=isArray$b(o);if(!(e&&!n&&!isSet(o))){for(let a=0,i=t.options.length;a<i;a++){const s=t.options[a],l=getValue$2(s);if(e)if(n){const d=typeof l;d==="string"||d==="number"?s.selected=o.some(c=>String(c)===String(l)):s.selected=looseIndexOf(o,l)>-1}else s.selected=o.has(l);else if(looseEqual(getValue$2(s),o)){t.selectedIndex!==a&&(t.selectedIndex=a);return}}!e&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue$2(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,o){const r=o?"_trueValue":"_falseValue";return r in t?t[r]:o}const vModelDynamic={created(t,o,r){callModelHook(t,o,r,null,"created")},mounted(t,o,r){callModelHook(t,o,r,null,"mounted")},beforeUpdate(t,o,r,e){callModelHook(t,o,r,e,"beforeUpdate")},updated(t,o,r,e){callModelHook(t,o,r,e,"updated")}};function resolveDynamicModel(t,o){switch(t){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(o){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(t,o,r,e,n){const i=resolveDynamicModel(t.tagName,r.props&&r.props.type)[n];i&&i(t,o,r,e)}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,o)=>systemModifiers.some(r=>t[`${r}Key`]&&!o.includes(r))},withModifiers=(t,o)=>{const r=t._withMods||(t._withMods={}),e=o.join(".");return r[e]||(r[e]=(n,...a)=>{for(let i=0;i<o.length;i++){const s=modifierGuards[o[i]];if(s&&s(n,o))return}return t(n,...a)})},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(t,o)=>{const r=t._withKeys||(t._withKeys={}),e=o.join(".");return r[e]||(r[e]=n=>{if(!("key"in n))return;const a=hyphenate(n.key);if(o.some(i=>i===a||keyNames[i]===a))return t(n)})},rendererOptions=extend$4({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=(...t)=>{const o=ensureRenderer().createApp(...t),{mount:r}=o;return o.mount=e=>{const n=normalizeContainer(e);if(!n)return;const a=o._component;!isFunction$5(a)&&!a.render&&!a.template&&(a.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const i=r(n,!1,resolveRootNamespace(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),i},o};function resolveRootNamespace(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function normalizeContainer(t){return isString$2(t)?document.querySelector(t):t}function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const isProxyAvailable=typeof Proxy=="function",HOOK_SETUP="devtools-plugin:setup",HOOK_PLUGIN_SETTINGS_SET="plugin:settings:set";let supported,perf;function isPerformanceSupported(){var t;return supported!==void 0||(typeof window<"u"&&window.performance?(supported=!0,perf=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(supported=!0,perf=globalThis.perf_hooks.performance):supported=!1),supported}function now$1(){return isPerformanceSupported()?perf.now():Date.now()}class ApiProxy{constructor(o,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=r;
71const e={};if(o.settings)for(const i in o.settings){const s=o.settings[i];e[i]=s.defaultValue}const n=`__vue-devtools-plugin-settings__${o.id}`;let a=Object.assign({},e);try{const i=localStorage.getItem(n),s=JSON.parse(i);Object.assign(a,s)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(n,JSON.stringify(i))}catch{}a=i},now(){return now$1()}},r&&r.on(HOOK_PLUGIN_SETTINGS_SET,(i,s)=>{i===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(i,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:s,args:l,resolve:d})})})}async setRealTarget(o){this.target=o;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function setupDevtoolsPlugin(t,o){const r=t,e=getTarget(),n=getDevtoolsGlobalHook(),a=isProxyAvailable&&r.enableEarlyProxy;if(n&&(e.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))n.emit(HOOK_SETUP,t,o);else{const i=a?new ApiProxy(r,n):null;(e.__VUE_DEVTOOLS_PLUGINS__=e.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:o,proxy:i}),i&&o(i.proxiedTarget)}}/*!
72  * vue-i18n v9.13.1
73  * (c) 2024 kazuya kawaguchi
74  * Released under the MIT License.
75  */const VERSION$1="9.13.1";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis$1().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis$1().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis$1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis$1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis$1().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1);inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1();const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(t,...o){return createCompileError(t,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(t){if(!isObject$e(t))return t;for(const o in t)if(hasOwn$1(t,o))if(!o.includes("."))isObject$e(t[o])&&handleFlatJson(t[o]);else{const r=o.split("."),e=r.length-1;let n=t,a=!1;for(let i=0;i<e;i++){if(r[i]in n||(n[r[i]]={}),!isObject$e(n[r[i]])){a=!0;break}n=n[r[i]]}a||(n[r[e]]=t[o],delete t[o]),isObject$e(n[r[e]])&&handleFlatJson(n[r[e]])}return t}function getLocaleMessages(t,o){const{messages:r,__i18n:e,messageResolver:n,flatJson:a}=o,i=isPlainObject$3(r)?r:isArray$c(e)?{}:{[t]:{}};if(isArray$c(e)&&e.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:d}=s;l?(i[l]=i[l]||{},deepCopy$1(d,i[l])):deepCopy$1(d,i)}else isString$4(s)&&deepCopy$1(JSON.parse(s),i)}),n==null&&a)for(const s in i)hasOwn$1(i,s)&&handleFlatJson(i[s]);return i}function getComponentOptions(t){return t.type}function adjustI18nResources(t,o,r){let e=isObject$e(o.messages)?o.messages:{};"__i18nGlobal"in r&&(e=getLocaleMessages(t.locale.value,{messages:e,__i18n:r.__i18nGlobal}));const n=Object.keys(e);
75n.length&&n.forEach(a=>{t.mergeLocaleMessage(a,e[a])});{if(isObject$e(o.datetimeFormats)){const a=Object.keys(o.datetimeFormats);a.length&&a.forEach(i=>{t.mergeDateTimeFormat(i,o.datetimeFormats[i])})}if(isObject$e(o.numberFormats)){const a=Object.keys(o.numberFormats);a.length&&a.forEach(i=>{t.mergeNumberFormat(i,o.numberFormats[i])})}}}function createTextNode(t){return createVNode(Text$1,null,t,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(t){return(o,r,e,n)=>t(r,e,getCurrentInstance()||void 0,n)}const getMetaInfo=()=>{const t=getCurrentInstance();let o=null;return t&&(o=getComponentOptions(t)[DEVTOOLS_META])?{[DEVTOOLS_META]:o}:null};function createComposer(t={},o){const{__root:r,__injectWithOption:e}=t,n=r===void 0,a=t.flatJson,i=inBrowser?ref$1:shallowRef,s=!!t.translateExistCompatible;let l=isBoolean(t.inheritLocale)?t.inheritLocale:!0;const d=i(r&&l?r.locale.value:isString$4(t.locale)?t.locale:DEFAULT_LOCALE),c=i(r&&l?r.fallbackLocale.value:isString$4(t.fallbackLocale)||isArray$c(t.fallbackLocale)||isPlainObject$3(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:d.value),u=i(getLocaleMessages(d.value,t)),f=i(isPlainObject$3(t.datetimeFormats)?t.datetimeFormats:{[d.value]:{}}),m=i(isPlainObject$3(t.numberFormats)?t.numberFormats:{[d.value]:{}});let b=r?r.missingWarn:isBoolean(t.missingWarn)||isRegExp(t.missingWarn)?t.missingWarn:!0,y=r?r.fallbackWarn:isBoolean(t.fallbackWarn)||isRegExp(t.fallbackWarn)?t.fallbackWarn:!0,_=r?r.fallbackRoot:isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,S=!!t.fallbackFormat,C=isFunction$6(t.missing)?t.missing:null,T=isFunction$6(t.missing)?defineCoreMissingHandler(t.missing):null,x=isFunction$6(t.postTranslation)?t.postTranslation:null,k=r?r.warnHtmlMessage:isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const w=r?r.modifiers:isPlainObject$3(t.modifiers)?t.modifiers:{};let D=t.pluralRules||r&&r.pluralRules,N;N=(()=>{n&&setFallbackContext(null);const pe={version:VERSION$1,locale:d.value,fallbackLocale:c.value,messages:u.value,modifiers:w,pluralRules:D,missing:T===null?void 0:T,missingWarn:b,fallbackWarn:y,fallbackFormat:S,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:k,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};pe.datetimeFormats=f.value,pe.numberFormats=m.value,pe.__datetimeFormatters=isPlainObject$3(N)?N.__datetimeFormatters:void 0,pe.__numberFormatters=isPlainObject$3(N)?N.__numberFormatters:void 0;const ve=createCoreContext(pe);return n&&setFallbackContext(ve),ve})(),updateFallbackLocale(N,d.value,c.value);function V(){return[d.value,c.value,u.value,f.value,m.value]}const A=computed({get:()=>d.value,set:pe=>{d.value=pe,N.locale=d.value}}),M=computed({get:()=>c.value,set:pe=>{c.value=pe,N.fallbackLocale=c.value,updateFallbackLocale(N,d.value,pe)}}),O=computed(()=>u.value),R=computed(()=>f.value),I=computed(()=>m.value);function j(){return isFunction$6(x)?x:null}function H(pe){x=pe,N.postTranslation=pe}function U(){return C}function B(pe){pe!==null&&(T=defineCoreMissingHandler(pe)),C=pe,N.missing=T}const L=(pe,ve,Me,Fe,Te,Se)=>{V();let Ae;
75try{__INTLIFY_PROD_DEVTOOLS__,n||(N.fallbackContext=r?getFallbackContext():void 0),Ae=pe(N)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(N.fallbackContext=void 0)}if(Me!=="translate exists"&&isNumber$2(Ae)&&Ae===NOT_REOSLVED||Me==="translate exists"&&!Ae){const[ue,ye]=ve();return r&&_?Fe(r):Te(ue)}else{if(Se(Ae))return Ae;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function z(...pe){return L(ve=>Reflect.apply(translate$1,null,[ve,...pe]),()=>parseTranslateArgs(...pe),"translate",ve=>Reflect.apply(ve.t,ve,[...pe]),ve=>ve,ve=>isString$4(ve))}function W(...pe){const[ve,Me,Fe]=pe;if(Fe&&!isObject$e(Fe))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return z(ve,Me,assign$3({resolvedMessage:!0},Fe||{}))}function J(...pe){return L(ve=>Reflect.apply(datetime,null,[ve,...pe]),()=>parseDateTimeArgs(...pe),"datetime format",ve=>Reflect.apply(ve.d,ve,[...pe]),()=>MISSING_RESOLVE_VALUE,ve=>isString$4(ve))}function te(...pe){return L(ve=>Reflect.apply(number$1,null,[ve,...pe]),()=>parseNumberArgs(...pe),"number format",ve=>Reflect.apply(ve.n,ve,[...pe]),()=>MISSING_RESOLVE_VALUE,ve=>isString$4(ve))}function re(pe){return pe.map(ve=>isString$4(ve)||isNumber$2(ve)||isBoolean(ve)?createTextNode(String(ve)):ve)}const X={normalize:re,interpolate:pe=>pe,type:"vnode"};function se(...pe){return L(ve=>{let Me;const Fe=ve;try{Fe.processor=X,Me=Reflect.apply(translate$1,null,[Fe,...pe])}finally{Fe.processor=null}return Me},()=>parseTranslateArgs(...pe),"translate",ve=>ve[TranslateVNodeSymbol](...pe),ve=>[createTextNode(ve)],ve=>isArray$c(ve))}function le(...pe){return L(ve=>Reflect.apply(number$1,null,[ve,...pe]),()=>parseNumberArgs(...pe),"number format",ve=>ve[NumberPartsSymbol](...pe),NOOP_RETURN_ARRAY,ve=>isString$4(ve)||isArray$c(ve))}function he(...pe){return L(ve=>Reflect.apply(datetime,null,[ve,...pe]),()=>parseDateTimeArgs(...pe),"datetime format",ve=>ve[DatetimePartsSymbol](...pe),NOOP_RETURN_ARRAY,ve=>isString$4(ve)||isArray$c(ve))}function ge(pe){D=pe,N.pluralRules=D}function Q(pe,ve){return L(()=>{if(!pe)return!1;const Me=isString$4(ve)?ve:d.value,Fe=Ce(Me),Te=N.messageResolver(Fe,pe);return s?Te!=null:isMessageAST(Te)||isMessageFunction(Te)||isString$4(Te)},()=>[pe],"translate exists",Me=>Reflect.apply(Me.te,Me,[pe,ve]),NOOP_RETURN_FALSE,Me=>isBoolean(Me))}function Y(pe){let ve=null;const Me=fallbackWithLocaleChain(N,c.value,d.value);for(let Fe=0;Fe<Me.length;Fe++){const Te=u.value[Me[Fe]]||{},Se=N.messageResolver(Te,pe);if(Se!=null){ve=Se;break}}return ve}function ne(pe){const ve=Y(pe);return ve??(r?r.tm(pe)||{}:{})}function Ce(pe){return u.value[pe]||{}}function ae(pe,ve){if(a){const Me={[pe]:ve};for(const Fe in Me)hasOwn$1(Me,Fe)&&handleFlatJson(Me[Fe]);ve=Me[pe]}u.value[pe]=ve,N.messages=u.value}function Be(pe,ve){u.value[pe]=u.value[pe]||{};const Me={[pe]:ve};if(a)for(const Fe in Me)hasOwn$1(Me,Fe)&&handleFlatJson(Me[Fe]);ve=Me[pe],deepCopy$1(ve,u.value[pe]),N.messages=u.value}function me(pe){return f.value[pe]||{}}function K(pe,ve){f.value[pe]=ve,N.datetimeFormats=f.value,clearDateTimeFormat(N,pe,ve)}function q(pe,ve){f.value[pe]=assign$3(f.value[pe]||{},ve),N.datetimeFormats=f.value,clearDateTimeFormat(N,pe,ve)}function Z(pe){return m.value[pe]||{}}function de(pe,ve){m.value[pe]=ve,N.numberFormats=m.value,clearNumberFormat(N,pe,ve)}function fe(pe,ve){m.value[pe]=assign$3(m.value[pe]||{},ve),N.numberFormats=m.value,clearNumberFormat(N,pe,ve)}composerID++,r&&inBrowser&&(watch(r.locale,pe=>{l&&(d.value=pe,N.locale=pe,updateFallbackLocale(N,d.value,c.value))}),watch(r.fallbackLocale,pe=>{l&&(c.value=pe,N.fallbackLocale=pe,updateFallbackLocale(N,d.value,c.value))}));const _e={id:composerID,locale:A,fallbackLocale:M,get inheritLocale(){return l},set inheritLocale(pe){l=pe,pe&&r&&(d.value=r.locale.value,c.value=r.fallbackLocale.value,updateFallbackLocale(N,d.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:O,get modifiers(){return w},get pluralRules(){return D||{}},get isGlobal(){return n},get missingWarn(){return b},set missingWarn(pe){b=pe,N.missingWarn=b},get fallbackWarn(){return y},set fallbackWarn(pe){y=pe,N.fallbackWarn=y},get fallbackRoot(){return _},set fallbackRoot(pe){_=pe},get fallbackFormat(){return S},set fallbackFormat(pe){S=pe,N.fallbackFormat=S},get warnHtmlMessage(){return k},set warnHtmlMessage(pe){k=pe,N.warnHtmlMessage=pe},get escapeParameter(){return E},set escapeParameter(pe){E=pe,N.escapeParameter=pe},t:z,getLocaleMessage:Ce,setLocaleMessage:ae,mergeLocaleMessage:Be,getPostTranslationHandler:j,setPostTranslationHandler:H,getMissingHandler:U,setMissingHandler:B,[SetPluralRulesSymbol]:ge};return _e.datetimeFormats=R,_e.numberFormats=I,_e.rt=W,_e.te=Q,_e.tm=ne,_e.d=J,_e.n=te,_e.getDateTimeFormat=me,_e.setDateTimeFormat=K,_e.mergeDateTimeFormat=q,_e.getNumberFormat=Z,_e.setNumberFormat=de,_e.mergeNumberFormat=fe,_e[InejctWithOptionSymbol]=e,_e[TranslateVNodeSymbol]=se,_e[DatetimePartsSymbol]=he,_e[NumberPartsSymbol]=le,_e}function convertComposerOptions(t){const o=isString$4(t.locale)?t.locale:DEFAULT_LOCALE,r=isString$4(t.fallbackLocale)||isArray$c(t.fallbackLocale)||isPlainObject$3(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,e=isFunction$6(t.missing)?t.missing:void 0,n=isBoolean(t.silentTranslationWarn)||isRegExp(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,a=isBoolean(t.silentFallbackWarn)||isRegExp(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,i=isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=isPlainObject$3(t.modifiers)?t.modifiers:{},d=t.pluralizationRules,c=isFunction$6(t.postTranslation)?t.postTranslation:void 0,u=isString$4(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,f=!!t.escapeParameterHtml,m=isBoolean(t.sync)?t.sync:!0;let b=t.messages;if(isPlainObject$3(t.sharedMessages)){const E=t.sharedMessages;b=Object.keys(E).reduce((D,N)=>{const F=D[N]||(D[N]={});return assign$3(F,E[N]),D},b||{})}const{__i18n:y,__root:_,__injectWithOption:S}
75=t,C=t.datetimeFormats,T=t.numberFormats,x=t.flatJson,k=t.translateExistCompatible;return{locale:o,fallbackLocale:r,messages:b,flatJson:x,datetimeFormats:C,numberFormats:T,missing:e,missingWarn:n,fallbackWarn:a,fallbackRoot:i,fallbackFormat:s,modifiers:l,pluralRules:d,postTranslation:c,warnHtmlMessage:u,escapeParameter:f,messageResolver:t.messageResolver,inheritLocale:m,translateExistCompatible:k,__i18n:y,__root:_,__injectWithOption:S}}function createVueI18n(t={},o){{const r=createComposer(convertComposerOptions(t)),{__extender:e}=t,n={id:r.id,get locale(){return r.locale.value},set locale(a){r.locale.value=a},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(a){r.fallbackLocale.value=a},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return r.getMissingHandler()},set missing(a){r.setMissingHandler(a)},get silentTranslationWarn(){return isBoolean(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(a){r.missingWarn=isBoolean(a)?!a:a},get silentFallbackWarn(){return isBoolean(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(a){r.fallbackWarn=isBoolean(a)?!a:a},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(a){r.fallbackFormat=a},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(a){r.setPostTranslationHandler(a)},get sync(){return r.inheritLocale},set sync(a){r.inheritLocale=a},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){r.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(a){r.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...a){const[i,s,l]=a,d={};let c=null,u=null;if(!isString$4(i))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const f=i;return isString$4(s)?d.locale=s:isArray$c(s)?c=s:isPlainObject$3(s)&&(u=s),isArray$c(l)?c=l:isPlainObject$3(l)&&(u=l),Reflect.apply(r.t,r,[f,c||u||{},d])},rt(...a){return Reflect.apply(r.rt,r,[...a])},tc(...a){const[i,s,l]=a,d={plural:1};let c=null,u=null;if(!isString$4(i))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const f=i;return isString$4(s)?d.locale=s:isNumber$2(s)?d.plural=s:isArray$c(s)?c=s:isPlainObject$3(s)&&(u=s),isString$4(l)?d.locale=l:isArray$c(l)?c=l:isPlainObject$3(l)&&(u=l),Reflect.apply(r.t,r,[f,c||u||{},d])},te(a,i){return r.te(a,i)},tm(a){return r.tm(a)},getLocaleMessage(a){return r.getLocaleMessage(a)},setLocaleMessage(a,i){r.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){r.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(r.d,r,[...a])},getDateTimeFormat(a){return r.getDateTimeFormat(a)},setDateTimeFormat(a,i){r.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){r.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(r.n,r,[...a])},getNumberFormat(a){return r.getNumberFormat(a)},setNumberFormat(a,i){r.setNumberFormat(a,i)},mergeNumberFormat(a,i){r.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1}};return n.__extender=e,n}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:t},o){return o.length===1&&o[0]==="default"?(t.default?t.default():[]).reduce((e,n)=>[...e,...n.type===Fragment?n.children:[n]],[]):o.reduce((r,e)=>{const n=t[e];return n&&(r[e]=n()),r},{})}function getFragmentableTag(t){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign$3({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>isNumber$2(t)||!isNaN(t)}},baseFormatProps),setup(t,o){const{slots:r,attrs:e}=o,n=t.i18n||useI18n({useScope:t.scope,__useComponent:!0});return()=>{const a=Object.keys(r).filter(u=>u!=="_"),i={};t.locale&&(i.locale=t.locale),t.plural!==void 0&&(i.plural=isString$4(t.plural)?+t.plural:t.plural);const s=getInterpolateArg(o,a),l=n[TranslateVNodeSymbol](t.keypath,s,i),d=assign$3({},e),c=isString$4(t.tag)||isObject$e(t.tag)?t.tag:getFragmentableTag();return h(c,d,l)}}}),Translation=TranslationImpl;function isVNode(t){return isArray$c(t)&&!isString$4(t[0])}function renderFormatter(t,o,r,e){const{slots:n,attrs:a}=o;return()=>{const i={part:!0};let s={};t.locale&&(i.locale=t.locale),isString$4(t.format)?i.key=t.format:isObject$e(t.format)&&(isString$4(t.format.key)&&(i.key=t.format.key),s=Object.keys(t.format).reduce((f,m)=>r.includes(m)?assign$3({},f,{[m]:t.format[m]}
75):f,{}));const l=e(t.value,i,s);let d=[i.key];isArray$c(l)?d=l.map((f,m)=>{const b=n[f.type],y=b?b({[f.type]:f.value,index:m,parts:l}):[f.value];return isVNode(y)&&(y[0].key=`${f.type}-${m}`),y}):isString$4(l)&&(d=[l]);const c=assign$3({},a),u=isString$4(t.tag)||isObject$e(t.tag)?t.tag:getFragmentableTag();return h(u,c,d)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign$3({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,o){const r=t.i18n||useI18n({useScope:t.scope,__useComponent:!0});return renderFormatter(t,o,NUMBER_FORMAT_OPTIONS_KEYS,(...e)=>r[NumberPartsSymbol](...e))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign$3({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,o){const r=t.i18n||useI18n({useScope:t.scope,__useComponent:!0});return renderFormatter(t,o,DATETIME_FORMAT_OPTIONS_KEYS,(...e)=>r[DatetimePartsSymbol](...e))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(t,o){const r=t;if(t.mode==="composition")return r.__getInstance(o)||t.global;{const e=r.__getInstance(o);return e!=null?e.__composer:t.global.__composer}}function vTDirective(t){const o=i=>{const{instance:s,modifiers:l,value:d}=i;if(!s||!s.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const c=getComposer$2(t,s.$),u=parseValue(d);return[Reflect.apply(c.t,c,[...makeParams(u)]),c]};return{created:(i,s)=>{const[l,d]=o(s);inBrowser&&t.global===d&&(i.__i18nWatcher=watch(d.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=d,i.textContent=l},unmounted:i=>{inBrowser&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const l=i.__composer,d=parseValue(s);i.textContent=Reflect.apply(l.t,l,[...makeParams(d)])}},getSSRProps:i=>{const[s]=o(i);return{textContent:s}}}}function parseValue(t){if(isString$4(t))return{path:t};if(isPlainObject$3(t)){if(!("path"in t))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return t}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(t){const{path:o,locale:r,args:e,choice:n,plural:a}=t,i={},s=e||{};return isString$4(r)&&(i.locale=r),isNumber$2(n)&&(i.plural=n),isNumber$2(a)&&(i.plural=a),[o,s,i]}function apply$1(t,o,...r){const e=isPlainObject$3(r[0])?r[0]:{},n=!!e.useI18nComponentName;(isBoolean(e.globalInstall)?e.globalInstall:!0)&&([n?"i18n":Translation.name,"I18nT"].forEach(i=>t.component(i,Translation)),[NumberFormat.name,"I18nN"].forEach(i=>t.component(i,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(i=>t.component(i,DatetimeFormat))),t.directive("t",vTDirective(o))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(t,o){return new Promise((r,e)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:t},n=>{devtoolsApi=n,n.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{updateComponentTreeTags(i,s,o)}),n.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&s&&(o.mode==="legacy"?i.vnode.el.__VUE_I18N__!==o.global.__composer&&inspectComposer(s,i.vnode.el.__VUE_I18N__):inspectComposer(s,i.vnode.el.__VUE_I18N__))}),n.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),n.on.getInspectorTree(i=>{i.app===t&&i.inspectorId==="vue-i18n-resource-inspector"&&registerScope(i,o)});const a=new Map;n.on.getInspectorState(async i=>{if(i.app===t&&i.inspectorId==="vue-i18n-resource-inspector")if(n.unhighlightElement(),inspectScope(i,o),i.nodeId==="global"){if(!a.has(i.app)){const[s]=await n.getComponentInstances(i.app);a.set(i.app,s)}n.highlightElement(a.get(i.app))}else{const s=getComponentInstance(i.nodeId,o);s&&n.highlightElement(s)}}),n.on.editInspectorState(i=>{i.app===t&&i.inspectorId==="vue-i18n-resource-inspector"&&editScope(i,o)}),n.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),r(!0)})}catch(n){console.error(n),e(!1)}})}
75function getI18nScopeLable(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function updateComponentTreeTags(t,o,r){const e=r.mode==="composition"?r.global:r.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==e){const n={label:`i18n (${getI18nScopeLable(t)} Scope)`,textColor:0,backgroundColor:16764185};o.tags.push(n)}}function inspectComposer(t,o){const r=VUE_I18N_COMPONENT_TYPES;t.state.push({type:r,key:"locale",editable:!0,value:o.locale.value}),t.state.push({type:r,key:"availableLocales",editable:!1,value:o.availableLocales}),t.state.push({type:r,key:"fallbackLocale",editable:!0,value:o.fallbackLocale.value}),t.state.push({type:r,key:"inheritLocale",editable:!0,value:o.inheritLocale}),t.state.push({type:r,key:"messages",editable:!1,value:getLocaleMessageValue(o.messages.value)}),t.state.push({type:r,key:"datetimeFormats",editable:!1,value:o.datetimeFormats.value}),t.state.push({type:r,key:"numberFormats",editable:!1,value:o.numberFormats.value})}function getLocaleMessageValue(t){const o={};return Object.keys(t).forEach(r=>{const e=t[r];isFunction$6(e)&&"source"in e?o[r]=getMessageFunctionDetails(e):isMessageAST(e)&&e.loc&&e.loc.source?o[r]=e.loc.source:isObject$e(e)?o[r]=getLocaleMessageValue(e):o[r]=e}),o}const ESC={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function escape$1(t){return t.replace(/[<>"&]/g,escapeChar)}function escapeChar(t){return ESC[t]||t}function getMessageFunctionDetails(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${escape$1(t.source)}")`:"(?)"}`}}}function registerScope(t,o){t.rootNodes.push({id:"global",label:"Global Scope"});const r=o.mode==="composition"?o.global:o.global.__composer;for(const[e,n]of o.__instances){const a=o.mode==="composition"?n:n.__composer;r!==a&&t.rootNodes.push({id:a.id.toString(),label:`${getI18nScopeLable(e)} Scope`})}}function getComponentInstance(t,o){let r=null;if(t!=="global"){for(const[e,n]of o.__instances.entries())if(n.id.toString()===t){r=e;break}}return r}function getComposer$1(t,o){if(t==="global")return o.mode==="composition"?o.global:o.global.__composer;{const r=Array.from(o.__instances.values()).find(e=>e.id.toString()===t);return r?o.mode==="composition"?r:r.__composer:null}}function inspectScope(t,o){const r=getComposer$1(t.nodeId,o);return r&&(t.state=makeScopeInspectState(r)),null}function makeScopeInspectState(t){const o={},r="Locale related info",e=[{type:r,key:"locale",editable:!0,value:t.locale.value},{type:r,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:r,key:"availableLocales",editable:!1,value:t.availableLocales},{type:r,key:"inheritLocale",editable:!0,value:t.inheritLocale}];o[r]=e;const n="Locale messages info",a=[{type:n,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}];o[n]=a;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];o[i]=s;const l="Datetime formats info",d=[{type:l,key:"numberFormats",editable:!1,value:t.numberFormats.value}];o[l]=d}return o}function addTimelineEvent(t,o){if(devtoolsApi){let r;o&&"groupId"in o&&(r=o.groupId,delete o.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:r,time:Date.now(),meta:{},data:o||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function editScope(t,o){const r=getComposer$1(t.nodeId,o);if(r){const[e]=t.path;e==="locale"&&isString$4(t.state.value)?r.locale.value=t.state.value:e==="fallbackLocale"&&(isString$4(t.state.value)||isArray$c(t.state.value)||isObject$e(t.state.value))?r.fallbackLocale.value=t.state.value:e==="inheritLocale"&&isBoolean(t.state.value)&&(r.inheritLocale=t.state.value)}}function defineMixin(t,o,r){return{beforeCreate(){const e=getCurrentInstance();if(!e)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const n=this.$options;if(n.i18n){const a=n.i18n;if(n.__i18n&&(a.__i18n=n.__i18n),a.__root=o,this===this.$root)this.$i18n=mergeToGlobal(t,a);else{a.__injectWithOption=!0,a.__extender=r.__vueI18nExtend,this.$i18n=createVueI18n(a);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(n.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(t,n);else{this.$i18n=createVueI18n({__i18n:n.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:o});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=t;n.__i18nGlobal&&adjustI18nResources(o,n,n),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,i)=>this.$i18n.te(a,i),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),r.__setInstance(e,this.$i18n)},mounted(){if(this.$el&&this.$i18n){const e=this.$i18n;this.$el.__VUE_I18N__=e.__composer;const n=this.__v_emitter=createEmitter();e.__enableEmitter&&e.__enableEmitter(n),n.on("*",addTimelineEvent)}},unmounted(){const e=getCurrentInstance();if(!e)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const n=this.$i18n;this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&
75(n.__disableEmitter&&n.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(e),delete this.$i18n}}}function mergeToGlobal(t,o){t.locale=o.locale||t.locale,t.fallbackLocale=o.fallbackLocale||t.fallbackLocale,t.missing=o.missing||t.missing,t.silentTranslationWarn=o.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=o.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=o.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=o.postTranslation||t.postTranslation,t.warnHtmlInMessage=o.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=o.escapeParameterHtml||t.escapeParameterHtml,t.sync=o.sync||t.sync,t.__composer[SetPluralRulesSymbol](o.pluralizationRules||t.pluralizationRules);const r=getLocaleMessages(t.locale,{messages:o.messages,__i18n:o.__i18n});return Object.keys(r).forEach(e=>t.mergeLocaleMessage(e,r[e])),o.datetimeFormats&&Object.keys(o.datetimeFormats).forEach(e=>t.mergeDateTimeFormat(e,o.datetimeFormats[e])),o.numberFormats&&Object.keys(o.numberFormats).forEach(e=>t.mergeNumberFormat(e,o.numberFormats[e])),t}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(t={},o){const r=__VUE_I18N_LEGACY_API__&&isBoolean(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,e=isBoolean(t.globalInjection)?t.globalInjection:!0,n=__VUE_I18N_LEGACY_API__&&r?!!t.allowComposition:!0,a=new Map,[i,s]=createGlobal(t,r),l=makeSymbol("");function d(f){return a.get(f)||null}function c(f,m){a.set(f,m)}function u(f){a.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return n},async install(m,...b){if(m.__VUE_I18N__=f,m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,f),isPlainObject$3(b[0])){const S=b[0];f.__composerExtend=S.__composerExtend,f.__vueI18nExtend=S.__vueI18nExtend}let y=null;!r&&e&&(y=injectGlobalFields(m,f.global)),__VUE_I18N_FULL_INSTALL__&&apply$1(m,f,...b),__VUE_I18N_LEGACY_API__&&r&&m.mixin(defineMixin(s,s.__composer,f));const _=m.unmount;m.unmount=()=>{y&&y(),f.dispose(),_()};{if(!await enableDevTools(m,f))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const C=createEmitter();if(r){const T=s;T.__enableEmitter&&T.__enableEmitter(C)}else{const T=s;T[EnableEmitter]&&T[EnableEmitter](C)}C.on("*",addTimelineEvent)}},get global(){return s},dispose(){i.stop()},__instances:a,__getInstance:d,__setInstance:c,__deleteInstance:u};return f}}function useI18n(t={}){const o=getCurrentInstance();if(o==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!o.isCE&&o.appContext.app!=null&&!o.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const r=getI18nInstance(o),e=getGlobalComposer(r),n=getComponentOptions(o),a=getScope(t,n);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!t.__useComponent){if(!r.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(o,a,e,t)}if(a==="global")return adjustI18nResources(e,t,n),e;if(a==="parent"){let l=getComposer(r,o,t.__useComponent);return l==null&&(l=e),l}const i=r;let s=i.__getInstance(o);if(s==null){const l=assign$3({},t);"__i18n"in n&&(l.__i18n=n.__i18n),e&&(l.__root=e),s=createComposer(l),i.__composerExtend&&(s[DisposeSymbol]=i.__composerExtend(s)),setupLifeCycle(i,o,s),i.__setInstance(o,s)}return s}function createGlobal(t,o,r){const e=effectScope();{const n=__VUE_I18N_LEGACY_API__&&o?e.run(()=>createVueI18n(t)):e.run(()=>createComposer(t));if(n==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[e,n]}}function getI18nInstance(t){{const o=inject(t.isCE?I18nInjectionKey:t.appContext.app.__VUE_I18N_SYMBOL__);if(!o)throw createI18nError(t.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return o}}function getScope(t,o){return isEmptyObject$1(t)?"__i18n"in o?"local":"global":t.useScope?t.useScope:"local"}function getGlobalComposer(t){return t.mode==="composition"?t.global:t.global.__composer}function getComposer(t,o,r=!1){let e=null;const n=o.root;let a=getParentComponentInstance(o,r);for(;a!=null;){const i=t;if(t.mode==="composition")e=i.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(a);s!=null&&(e=s.__composer,r&&e&&!e[InejctWithOptionSymbol]&&(e=null))}if(e!=null||n===a)break;a=a.parent}return e}function getParentComponentInstance(t,o=!1){return t==null?null:o&&t.vnode.ctx||t.parent}function setupLifeCycle(t,o,r){let e=null;onMounted(()=>
75{if(o.vnode.el){o.vnode.el.__VUE_I18N__=r,e=createEmitter();const n=r;n[EnableEmitter]&&n[EnableEmitter](e),e.on("*",addTimelineEvent)}},o),onUnmounted(()=>{const n=r;o.vnode.el&&o.vnode.el.__VUE_I18N__&&(e&&e.off("*",addTimelineEvent),n[DisableEmitter]&&n[DisableEmitter](),delete o.vnode.el.__VUE_I18N__),t.__deleteInstance(o);const a=n[DisposeSymbol];a&&(a(),delete n[DisposeSymbol])},o)}function useI18nForLegacy(t,o,r,e={}){const n=o==="local",a=shallowRef(null);if(n&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=isBoolean(e.inheritLocale)?e.inheritLocale:!isString$4(e.locale),s=ref$1(!n||i?r.locale.value:isString$4(e.locale)?e.locale:DEFAULT_LOCALE),l=ref$1(!n||i?r.fallbackLocale.value:isString$4(e.fallbackLocale)||isArray$c(e.fallbackLocale)||isPlainObject$3(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),d=ref$1(getLocaleMessages(s.value,e)),c=ref$1(isPlainObject$3(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),u=ref$1(isPlainObject$3(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=n?r.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,m=n?r.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,b=n?r.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,_=isFunction$6(e.missing)?e.missing:null,S=isFunction$6(e.postTranslation)?e.postTranslation:null,C=n?r.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,x=n?r.modifiers:isPlainObject$3(e.modifiers)?e.modifiers:{},k=e.pluralRules||n&&r.pluralRules;function E(){return[s.value,l.value,d.value,c.value,u.value]}const w=computed({get:()=>a.value?a.value.locale.value:s.value,set:Y=>{a.value&&(a.value.locale.value=Y),s.value=Y}}),D=computed({get:()=>a.value?a.value.fallbackLocale.value:l.value,set:Y=>{a.value&&(a.value.fallbackLocale.value=Y),l.value=Y}}),N=computed(()=>a.value?a.value.messages.value:d.value),F=computed(()=>c.value),V=computed(()=>u.value);function A(){return a.value?a.value.getPostTranslationHandler():S}function M(Y){a.value&&a.value.setPostTranslationHandler(Y)}function O(){return a.value?a.value.getMissingHandler():_}function R(Y){a.value&&a.value.setMissingHandler(Y)}function I(Y){return E(),Y()}function j(...Y){return a.value?I(()=>Reflect.apply(a.value.t,null,[...Y])):I(()=>"")}function H(...Y){return a.value?Reflect.apply(a.value.rt,null,[...Y]):""}function U(...Y){return a.value?I(()=>Reflect.apply(a.value.d,null,[...Y])):I(()=>"")}function B(...Y){return a.value?I(()=>Reflect.apply(a.value.n,null,[...Y])):I(()=>"")}function L(Y){return a.value?a.value.tm(Y):{}}function z(Y,ne){return a.value?a.value.te(Y,ne):!1}function W(Y){return a.value?a.value.getLocaleMessage(Y):{}}function J(Y,ne){a.value&&(a.value.setLocaleMessage(Y,ne),d.value[Y]=ne)}function te(Y,ne){a.value&&a.value.mergeLocaleMessage(Y,ne)}function re(Y){return a.value?a.value.getDateTimeFormat(Y):{}}function oe(Y,ne){a.value&&(a.value.setDateTimeFormat(Y,ne),c.value[Y]=ne)}function X(Y,ne){a.value&&a.value.mergeDateTimeFormat(Y,ne)}function se(Y){return a.value?a.value.getNumberFormat(Y):{}}function le(Y,ne){a.value&&(a.value.setNumberFormat(Y,ne),u.value[Y]=ne)}function he(Y,ne){a.value&&a.value.mergeNumberFormat(Y,ne)}const ge={get id(){return a.value?a.value.id:-1},locale:w,fallbackLocale:D,messages:N,datetimeFormats:F,numberFormats:V,get inheritLocale(){return a.value?a.value.inheritLocale:i},set inheritLocale(Y){a.value&&(a.value.inheritLocale=Y)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(d.value)},get modifiers(){return a.value?a.value.modifiers:x},get pluralRules(){return a.value?a.value.pluralRules:k},get isGlobal(){return a.value?a.value.isGlobal:!1},get missingWarn(){return a.value?a.value.missingWarn:f},set missingWarn(Y){a.value&&(a.value.missingWarn=Y)},get fallbackWarn(){return a.value?a.value.fallbackWarn:m},set fallbackWarn(Y){a.value&&(a.value.missingWarn=Y)},get fallbackRoot(){return a.value?a.value.fallbackRoot:b}
75,set fallbackRoot(Y){a.value&&(a.value.fallbackRoot=Y)},get fallbackFormat(){return a.value?a.value.fallbackFormat:y},set fallbackFormat(Y){a.value&&(a.value.fallbackFormat=Y)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:C},set warnHtmlMessage(Y){a.value&&(a.value.warnHtmlMessage=Y)},get escapeParameter(){return a.value?a.value.escapeParameter:T},set escapeParameter(Y){a.value&&(a.value.escapeParameter=Y)},t:j,getPostTranslationHandler:A,setPostTranslationHandler:M,getMissingHandler:O,setMissingHandler:R,rt:H,d:U,n:B,tm:L,te:z,getLocaleMessage:W,setLocaleMessage:J,mergeLocaleMessage:te,getDateTimeFormat:re,setDateTimeFormat:oe,mergeDateTimeFormat:X,getNumberFormat:se,setNumberFormat:le,mergeNumberFormat:he};function Q(Y){Y.locale.value=s.value,Y.fallbackLocale.value=l.value,Object.keys(d.value).forEach(ne=>{Y.mergeLocaleMessage(ne,d.value[ne])}),Object.keys(c.value).forEach(ne=>{Y.mergeDateTimeFormat(ne,c.value[ne])}),Object.keys(u.value).forEach(ne=>{Y.mergeNumberFormat(ne,u.value[ne])}),Y.escapeParameter=T,Y.fallbackFormat=y,Y.fallbackRoot=b,Y.fallbackWarn=m,Y.missingWarn=f,Y.warnHtmlMessage=C}return onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Y=a.value=t.proxy.$i18n.__composer;o==="global"?(s.value=Y.locale.value,l.value=Y.fallbackLocale.value,d.value=Y.messages.value,c.value=Y.datetimeFormats.value,u.value=Y.numberFormats.value):n&&Q(Y)}),ge}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(t,o){const r=Object.create(null);return globalExportProps.forEach(n=>{const a=Object.getOwnPropertyDescriptor(o,n);if(!a)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=isRef(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,n,i)}),t.config.globalProperties.$i18n=r,globalExportMethods.forEach(n=>{const a=Object.getOwnPropertyDescriptor(o,n);if(!a||!a.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${n}`,a)}),()=>{delete t.config.globalProperties.$i18n,globalExportMethods.forEach(n=>{delete t.config.globalProperties[`$${n}`]})}}initFeatureFlags();__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile$1):registerMessageCompiler(compileToFunction);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);if(__INTLIFY_PROD_DEVTOOLS__){const t=getGlobalThis$1();t.__INTLIFY__=!0,setDevToolsHook(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const LOCALE_DEFAULT_MESSAGE={en:{"Main content":"Main content",New:"New",Search:"Search",Account:"Account",AskMH:"AskMH",Menu:"Menu","Image of banner":"Image of banner","Carousel pause button":"Carousel pause button","Carousel play button":"Carousel play button","Previous slide":"Previous slide","Next slide":"Next slide","Skip to main content":"Skip to main content","Last updated":"Last updated","Description of video":"Description of video","Audio toggle button":"Audio toggle button","Image of thumbnail":"Image of thumbnail",Back:"Back",Increase:"Increase",Decrease:"Decrease","Clear field":"Clear field","More info":"More info","Back to top":"Back to top","Value is {value}":"Value is {value}",More:"More",Done:"Done","Got it":"Got it",Remove:"Remove","Add another flight":"Add another flight","Search flight":"Search flight","Select destination":"Select destination",Save:"Save","Show more":"Show more",Completed:"Completed","Not Completed":"Not Completed",Optional:"Optional",Submit:"Submit","Load more":"Load more","Flag of {country}":"Flag of {country}","Dismiss notification":"Dismiss notification","Last {value} Months":"Last {value} Months","Malaysia Airlines mobile app icon":"Malaysia Airlines mobile app icon","Dismiss mobile download app banner":"Dismiss mobile download app banner","No results found":"No results found","Showing {start} to {end} of {total} results":"Showing {start} to {end} of {total} results","Up to":"Up to",each:"each","Thumbnail of video":"Thumbn
75ail of video","Decription of video":"Decription of video","Change month or year":"Change month or year","Change year":"Change year",Year:"Year",Reset:"Reset","One-way":"One-way","Select a date":"Select a date","Changes you made may not be saved":"Changes you made may not be saved",disabled:"disabled","This field is invalid":"This field is invalid","This field is required":"This field is required","Bonus Side Trip":"Bonus Side Trip",From:"From",To:"To","Continue your search":"Continue your search","Edit Search":"Edit Search",Redemption:"Redemption","Flight & Hotel Search":"Flight & Hotel Search","Flight Schedule":"Flight Schedule","Flight Search":"Flight Search","Umrah Packages":"Umrah Packages","Check In":"Check In","Flight Disruption":"Flight Disruption","Flight Status":"Flight Status","Manage Booking":"Manage Booking",MHupgrade:"MHupgrade","Neighbour Free Seat":"Neighbour Free Seat","MHE Flight Search":"MHE Flight Search","Airport Transfer":"Airport Transfer","Flight Hotel Search":"Flight Hotel Search","Hotel Search":"Hotel Search","Trips and Tours":"Trips and Tours","Swap locations":"Swap locations","Selected departure airport is {airport}":"Selected departure airport is {airport}","Selected arrival airport is {airport}":"Selected arrival airport is {airport}","Near You":"Near You","With Malaysia Airlines":"With Malaysia Airlines","With Codeshare and Partner Network":"With Codeshare and Partner Network",Depart:"Depart",Return:"Return","Popular Destinations":"Popular Destinations","Type the airport name or code":"Type the airport name or code","Airport of departure":"Airport of departure","Airport of arrival":"Airport of arrival","With Amal":"With Amal","Use arrow keys to navigate and enter key to select date":"Use arrow keys to navigate and enter key to select date","Currently displaying {monthFrom} {yearFrom} to {monthTo} {yearTo}":"Currently displaying {monthFrom} {yearFrom} to {monthTo} {yearTo}","Current selection is empty":"Current selection is empty","Current selection: {dateFrom}":"Current selection: {dateFrom}","Current selection: from {dateFrom} to {dateTo}. Navigate to the done button once you are done.":"Current selection: from {dateFrom} to {dateTo}. Navigate to the done button once you are done.","Now selecting one-way departure date":"Now selecting one-way departure date","Now selecting departure date":"Now selecting departure date","Now selecting return date":"Now selecting return date","{dateFrom} to {dateTo}":"{dateFrom} to {dateTo}","Fare based on <strong>{currency}</strong>":"Fare based on <strong>{currency}</strong>","Fare shown in {currency} per adult":"Fare shown in {currency} per adult","Trip from <strong>{sumPriceWithCurrency}</strong> per adult":"Trip from <strong>{sumPriceWithCurrency}</strong> per adult","Date selected should be the same or after the date of the previous configured row":"Date selected should be the same or after the date of the previous configured row","{date} is disabled":"{date} is disabled","The selected dates are no longer valid. Please reselect.":"The selected dates are no longer valid. Please reselect.","Passengers and cabin class":"Passengers and cabin class","{n} Passenger":"{n} Passengers | {n} Passenger | {n} Passengers","Selected cabin class":"Selected cabin class","Currently selected cabin class is {selectedCabinLabel}":"Currently selected cabin class is {selectedCabinLabel}",Economy:"Economy",Business:"Business","Business Suite":"Business Suite",Passengers:"Passengers",Adults:"Adults",Teenagers:"Teenagers",Children:"Children",Infants:"Infants","More than 9 passengers?":"More than 9 passengers?","Cabin Class":"Cabin Class","Ages 12 and above":"Ages 12 and above","Ages 13 to 26":"Ages 13 to 26","Ages 2 to 11":"Ages 2 to 11","Ages below 2 for the entire journey":"Ages below 2 for the entire journey","Ages 16 and above":"Ages 16 and above","Ages 12 to 15":"Ages 12 to 15","Travellers and rooms":"Travellers and rooms","{n} Traveller":"{n} Travellers | {n} Traveller | {n} Travellers","{n} Room":"{n} Rooms | {n} Room | {n} Rooms","Room {n}: number of adults":"Room {n}: number of adults","Room {n}: number of children":"Room {n}: number of children","Room {n}: number of infants":"Room {n}: number of infants","Room {n}: child {m} age":"Room {n}: child {m} age","Each infant should be accompanied by one adult":"Each infant should be accompanied by one adult","Ages 18 and above":"Ages 18 and above","Ages 2 to 17":"Ages 2 to 17","Child {m} age":"Child {m} age","Room {n}":"Room {n}","Add room":"Add room","Jump to":"Jump to","Promo code not found":"Promo code not found","Conditions not met for promo code to be applied: trip type":"Conditions not met for promo code to be applied: trip type","Conditions not met for promo code to be applied: origin flight":"Conditions not met for promo code to be applied: origin flight","Conditions not met for promo code to be applied: destination flight":"Conditions not met for promo code to be applied: destination flight","Conditions not met for promo code to be applied: selected dates":"Conditions not met for promo code to be applied: selected dates","Conditions not met for promo code to be applied: cabin class":"Conditions not met for promo code to be applied: cabin class","Conditions not met for promo code to be applied: passenger count not met":"Conditions not met for promo code to be applied: passenger count not met","Conditions not met for promo code to be applied: office id":"Conditions not met for promo code to be applied: office id","Conditions not met for promo code to be applied":"Conditions not met for promo code to be applied","Travel regulations and advisory":"Travel regulations and advisory","Book before":"Book before","Recommended For You":"Recommended For You",All:"All",Destination:"Destination",Guides:"Guides","Where do you want to travel":"Where do you want to travel","Pick-up time":"Pick-up time","Select date":"Select date","Book a holiday now!":"Book a holiday now!","Umrah Plus":"Umrah Plus",GiftCardFrom:"From",pts:"pts","{n} Dining Place":"{n} Dining Place | {n} Dining Place | {n} Dining Places","{n} Place":"{n} Place | {n} Place | {n} Places",Undo:"Undo","Removed from Favourites":"Removed from Favourites",Copy:"Copy","Copied!":"Copied!",Favourite:"Favourite",Choose:"Choose","Attach...":"Attach...","Not selected":"Not selected","Points value is required":"Points value is required","Minimum value is":"Minimum value is","Maximum value is":"Maximum value is","Please enter a whole number":"Please enter a whole number","Value must be in increments of":"Value must be in increments of"}},getAEMI18nObject=()=>{let t=null;if(!("i18n_strings"in window))console.warn('Global variable "i18n_strings" is not available');else if(window.i18n_strings==="")console.warn('Global variable "i18n_strings" is an empty string');else if(!window.i18n_strings)console.warn(`Global variable "i18n_strings" is ${window.i18n_strings}, which is not expected.`);else try{t=JSON.parse(window.i18n_strings)}catch{console.warn('Unable to parse "i18n_strings" as JSON.')}const o=lodashExports.merge({},LOCALE_DEFAULT_MESSAGE,t);return Object.fromEntries(Object.entries(o).reduce((e,n)=>{e.push(n);const a=n.at(0),i=n.at(1);if(a.includes("_")){const s=[a.replaceAll("_","-"),i];e.push(s)}return e},[]))},i18nMessages=getAEMI18nObject();console.log("i18nMessages = ",i18nMessages);var Mc;const i18n=createI18n({locale:((Mc=document==null?void 0:document.documentElement)==null?void 0:Mc.lang)??"en",fallbackLocale:"en",messages:i18nMessages,silentFallbackWarn:!0});window.i18n=i18n;const i18nGlobal=i18n.global;/*!
76  * vue-router v4.4.0
77  * (c) 2024 Eduardo San Martin Morote
78  * @license MIT
79  */const isBrowser=typeof document<"u";function isESModule(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const assign$1=Object.assign;function applyToParams(t,o){const r={};for(const e in o){const n=o[e];r[e]=isArray$a(n)?n.map(t):t(n)}return r}const noop$1=()=>{},isArray$a=Array.isArray,HASH_RE$1=/#/g,AMPERSAND_RE$1=/&/g,SLASH_RE=/\//g,EQUAL_RE$1=/=/g,IM_RE=/\?/g,PLUS_RE$1=/\+/g,ENC_BRACKET_OPEN_RE$1=/%5B/g,ENC_BRACKET_CLOSE_RE$1=/%5D/g,ENC_CARET_RE$1=/%5E/g,ENC_BACKTICK_RE$1=/%60/g,ENC_CURLY_OPEN_RE$1=/%7B/g,ENC_PIPE_RE$1=/%7C/g,ENC_CURLY_CLOSE_RE$1=/%7D/g,ENC_SPACE_RE$1=/%20/g;function commonEncode$1(t){return encodeURI(""+t).replace(ENC_PIPE_RE$1,"|").replace(ENC_BRACKET_OPEN_RE$1,"[").replace(ENC_BRACKET_CLOSE_RE$1,"]")}function encodeHash(t){return commonEncode$1(t).replace(ENC_CURLY_OPEN_RE$1,"{").replace(ENC_CURLY_CLOSE_RE$1,"}").replace(ENC_CARET_RE$1,"^")}function encodeQueryValue$1(t){return commonEncode$1(t).replace(PLUS_RE$1,"%2B").replace(ENC_SPACE_RE$1,"+").replace(HASH_RE$1,"%23").replace(AMPERSAND_RE$1,"%26").replace(ENC_BACKTICK_RE$1,"`").replace(ENC_CURLY_OPEN_RE$1,"{").replace(ENC_CURLY_CLOSE_RE$1,"}").replace(ENC_CARET_RE$1,"^")}function encodeQueryKey$1(t){return encodeQueryValue$1(t).replace(EQUAL_RE$1,"%3D")}function encodePath(t){return commonEncode$1(t).replace(HASH_RE$1,"%23").replace(IM_RE,"%3F")}function encodeParam(t){return t==null?"":encodePath(t).replace(SLASH_RE,"%2F")}function decode$2(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=t=>t.replace(TRAILING_SLASH_RE,"");function parseURL(t,o,r="/"){let e,n={},a="",i="";const s=o.indexOf("#");let l=o.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(e=o.slice(0,l),a=o.slice(l+1,s>-1?s:o.length),n=t(a)),s>-1&&(e=e||o.slice(0,s),i=o.slice(s,o.length)),e=resolveRelativePath(e??o,r),{fullPath:e+(a&&"?")+a+i,path:e,query:n,hash:decode$2(i)}}
vendor: 19,077 bytes, line 79
79function stringifyURL(t,o){const r=o.query?t(o.query):"";return o.path+(r&&"?")+r+(o.hash||"")}function stripBase(t,o){return!o||!t.toLowerCase().startsWith(o.toLowerCase())?t:t.slice(o.length)||"/"}function isSameRouteLocation(t,o,r){const e=o.matched.length-1,n=r.matched.length-1;return e>-1&&e===n&&isSameRouteRecord(o.matched[e],r.matched[n])&&isSameRouteLocationParams(o.params,r.params)&&t(o.query)===t(r.query)&&o.hash===r.hash}function isSameRouteRecord(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function isSameRouteLocationParams(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(const r in t)if(!isSameRouteLocationParamsValue(t[r],o[r]))return!1;return!0}function isSameRouteLocationParamsValue(t,o){return isArray$a(t)?isEquivalentArray(t,o):isArray$a(o)?isEquivalentArray(o,t):t===o}function isEquivalentArray(t,o){return isArray$a(o)?t.length===o.length&&t.every((r,e)=>r===o[e]):t.length===1&&t[0]===o}function resolveRelativePath(t,o){if(t.startsWith("/"))return t;if(!t)return o;const r=o.split("/"),e=t.split("/"),n=e[e.length-1];(n===".."||n===".")&&e.push("");let a=r.length-1,i,s;for(i=0;i<e.length;i++)if(s=e[i],s!==".")if(s==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+e.slice(i).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(t){t.pop="pop",t.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(t){t.back="back",t.forward="forward",t.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(t){if(!t)if(isBrowser){const o=document.querySelector("base");t=o&&o.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),removeTrailingSlash(t)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(t,o){return t.replace(BEFORE_HASH_RE,"#")+o}function getElementPosition(t,o){const r=document.documentElement.getBoundingClientRect(),e=t.getBoundingClientRect();return{behavior:o.behavior,left:e.left-r.left-(o.left||0),top:e.top-r.top-(o.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(t){let o;if("el"in t){const r=t.el,e=typeof r=="string"&&r.startsWith("#"),n=typeof r=="string"?e?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!n)return;o=getElementPosition(n,t)}else o=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(o):window.scrollTo(o.left!=null?o.left:window.scrollX,o.top!=null?o.top:window.scrollY)}function getScrollKey(t,o){return(history.state?history.state.position-o:-1)+t}const scrollPositions=new Map;function saveScrollPosition(t,o){scrollPositions.set(t,o)}function getSavedScrollPosition(t){const o=scrollPositions.get(t);return scrollPositions.delete(t),o}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(t,o){const{pathname:r,search:e,hash:n}=o,a=t.indexOf("#");if(a>-1){let s=n.includes(t.slice(a))?t.slice(a).length:1,l=n.slice(s);return l[0]!=="/"&&(l="/"+l),stripBase(l,"")}return stripBase(r,t)+e+n}function useHistoryListeners(t,o,r,e){let n=[],a=[],i=null;const s=({state:f})=>{const m=createCurrentLocation(t,location),b=r.value,y=o.value;let _=0;if(f){if(r.value=m,o.value=f,i&&i===b){i=null;return}_=y?f.position-y.position:0}else e(m);n.forEach(S=>{S(r.value,b,{delta:_,type:NavigationType.pop,direction:_?_>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function l(){i=r.value}function d(f){n.push(f);const m=()=>{const b=n.indexOf(f);b>-1&&n.splice(b,1)};return a.push(m),m}function c(){const{history:f}=window;f.state&&f.replaceState(assign$1({},f.state,{scroll:computeScrollPosition()}),"")}function u(){for(const f of a)f();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:d,destroy:u}}function buildState(t,o,r,e=!1,n=!1){return{back:t,current:o,forward:r,replaced:e,position:window.history.length,scroll:n?computeScrollPosition():null}}function useHistoryStateNavigation(t){const{history:o,location:r}=window,e={value:createCurrentLocation(t,r)},n={value:o.state};n.value||a(e.value,{back:null,current:e.value,forward:null,position:o.length-1,replaced:!0,scroll:null},!0);function a(l,d,c){const u=t.indexOf("#"),f=u>-1?(r.host&&document.querySelector("base")?t:t.slice(u))+l:createBaseLocation()+t+l;try{o[c?"replaceState":"pushState"](d,"",f),n.value=d}catch(m){console.error(m),r[c?"replace":"assign"](f)}}function i(l,d){const c=assign$1({},o.state,buildState(n.value.back,l,n.value.forward,!0),d,{position:n.value.position});a(l,c,!0),e.value=l}function s(l,d){const c=assign$1({},n.value,o.state,{forward:l,scroll:computeScrollPosition()});a(c.current,c,!0);const u=assign$1({},buildState(e.value,l,null),{position:c.position+1},d);a(l,u,!1),e.value=l}return{location:e,state:n,push:s,replace:i}}function createWebHistory(t){t=normalizeBase(t);const o=useHistoryStateNavigation(t),r=useHistoryListeners(t,o.state,o.location,o.replace);function e(a,i=!0){i||r.pauseListeners(),history.go(a)}const n=assign$1({location:"",base:t,go:e,createHref:createHref.bind(null,t)},o,r);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>o.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>o.state.value}),n}function isRouteLocation(t){return typeof t=="string"||t&&typeof t=="object"}function isRouteName(t){return typeof t=="string"||typeof t=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(t,o){return assign$1(new Error,{type:t,[NavigationFailureSymbol]:!0},o)}function isNavigationFailure(t,o){return t instanceof Error&&NavigationFailureSymbol in t&&(o==null||!!(t.type&o))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(t,o){const r=assign$1({},BASE_PATH_PARSER_OPTIONS,o),e=[];let n=r.start?"^":"";const a=[];for(const d of t){const c=d.length?[]:[90];r.strict&&!d.length&&(n+="/");for(let u=0;u<d.length;u++){const f=d[u];let m=40+(r.sensitive?.25:0);if(f.type===0)u||(n+="/"),n+=f.value.replace(REGEX_CHARS_RE,"\\$&"),m+=40;else if(f.type===1){const{value:b,repeatable:y,optional:_,regexp:S}=f;a.push({name:b,repeatable:y,optional:_});const C=S||BASE_PARAM_PATTERN;if(C!==BASE_PARAM_PATTERN){m+=10;try{new RegExp(`(${C})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${b}" (${C}): `+x.message)}}let T=y?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;u||(T=_&&d.length<2?`(?:/${T})`:"/"+T),_&&(T+="?"),n+=T,m+=20,_&&(m+=-8),y&&(m+=-20),C===".*"&&(m+=-50)}c.push(m)}e.push(c)}if(r.strict&&r.end){const d=e.length-1;e[d][e[d].length-1]+=.7000000000000001}r.strict||(n+="/?"),r.end?n+="$":r.strict&&(n+="(?:/|$)");const i=new RegExp(n,r.sensitive?"":"i");function s(d){const c=d.match(i),u={};if(!c)return null;for(let f=1;f<c.length;f++){const m=c[f]||"",b=a[f-1];u[b.name]=m&&b.repeatable?m.split("/"):m}return u}function l(d){let c="",u=!1;for(const f of t){(!u||!c.endsWith("/"))&&(c+="/"),u=!1;for(const m of f)if(m.type===0)c+=m.value;else if(m.type===1){const{value:b,repeatable:y,optional:_}=m,S=b in d?d[b]:"";if(isArray$a(S)&&!y)throw new Error(`Provided param "${b}" is an array but it is not repeatable (* or + modifiers)`);const C=isArray$a(S)?S.join("/"):S;if(!C)if(_)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):u=!0);else throw new Error(`Missing required param "${b}"`);c+=C}}return c||"/"}return{re:i,score:e,keys:a,parse:s,stringify:l}}function compareScoreArray(t,o){let r=0;for(;r<t.length&&r<o.length;){const e=o[r]-t[r];if(e)return e;r++}return t.length<o.length?t.length===1&&t[0]===80?-1:1:t.length>o.length?o.length===1&&o[0]===80?1:-1:0}function comparePathParserScore(t,o){let r=0;const e=t.score,n=o.score;for(;r<e.length&&r<n.length;){const a=compareScoreArray(e[r],n[r]);if(a)return a;r++}if(Math.abs(n.length-e.length)===1){if(isLastScoreNegative(e))return 1;if(isLastScoreNegative(n))return-1}return n.length-e.length}function isLastScoreNegative(t){const o=t[t.length-1];return t.length>0&&o[o.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(t){if(!t)return[[]];if(t==="/")return[[ROOT_TOKEN]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function o(m){throw new Error(`ERR (${r})/"${d}": ${m}`)}let r=0,e=r;const n=[];let a;function i(){a&&n.push(a),a=[]}let s=0,l,d="",c="";function u(){d&&(r===0?a.push({type:0,value:d}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&o(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:d,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):o("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;s<t.length;){if(l=t[s++],l==="\\"&&r!==2){e=r,r=4;continue}switch(r){case 0:l==="/"?(d&&u(),i()):l===":"?(u(),r=1):f();break;case 4:f(),r=e;break;case 1:l==="("?r=2:VALID_PARAM_RE.test(l)?f():(u(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:u(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:o("Unknown state");break}}return r===2&&o(`Unfinished custom RegExp for param "${d}"`),u(),i(),n}function createRouteRecordMatcher(t,o,r){const e=tokensToParser(tokenizePath(t.path),r),n=assign$1(e,{record:t,parent:o,children:[],alias:[]});return o&&!n.record.aliasOf==!o.record.aliasOf&&o.children.push(n),n}function createRouterMatcher(t,o){const r=[],e=new Map;o=mergeOptions({strict:!1,end:!0,sensitive:!1},o);function n(u){return e.get(u)}function a(u,f,m){const b=!m,y=normalizeRouteRecord(u);y.aliasOf=m&&m.record;const _=mergeOptions(o,u),S=[y];if("alias"in u){const x=typeof u.alias=="string"?[u.alias]:u.alias;for(const k of x)S.push(assign$1({},y,{components:m?m.record.components:y.components,path:k,aliasOf:m?m.record:y}))}let C,T;for(const x of S){const{path:k}=x;if(f&&k[0]!=="/"){const E=f.record.path,w=E[E.length-1]==="/"?"":"/";x.path=f.record.path+(k&&w+k)}if(C=createRouteRecordMatcher(x,f,_),m?m.alias.push(C):(T=T||C,T!==C&&T.alias.push(C),b&&u.name&&!isAliasRecord(C)&&i(u.name)),isMatchable(C)&&l(C),y.children){const E=y.children;for(let w=0;w<E.length;w++)a(E[w],C,m&&m.children[w])}m=m||C}return T?()=>{i(T)}:noop$1}function i(u){if(isRouteName(u)){const f=e.get(u);f&&(e.delete(u),r.splice(r.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=r.indexOf(u);f>-1&&(r.splice(f,1),u.record.name&&e.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function s(){return r}function l(u){const f=findInsertionIndex(u,r);r.splice(f,0,u),u.record.name&&!isAliasRecord(u)&&e.set(u.record.name,u)}function d(u,f){let m,b={},y,_;if("name"in u&&u.name){if(m=e.get(u.name),!m)throw createRouterError(1,{location:u});_=m.record.name,b=assign$1(paramsFromLocation(f.params,m.keys.filter(T=>!T.optional).concat(m.parent?m.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&paramsFromLocation(u.params,m.keys.map(T=>T.name))),y=m.stringify(b)}else if(u.path!=null)y=u.path,m=r.find(T=>T.re.test(y)),m&&(b=m.parse(y),_=m.record.name);else{if(m=f.name?e.get(f.name):r.find(T=>T.re.test(f.path)),!m)throw createRouterError(1,{location:u,currentLocation:f});_=m.record.name,b=assign$1({},f.params,u.params),y=m.stringify(b)}const S=[];let C=m;for(;C;)S.unshift(C.record),C=C.parent;return{name:_,path:y,params:b,matched:S,meta:mergeMetaFields(S)}}t.forEach(u=>a(u));function c(){r.length=0,e.clear()}return{addRoute:a,resolve:d,removeRoute:i,clearRoutes:c,getRoutes:s,getRecordMatcher:n}}function paramsFromLocation(t,o){const r={};for(const e of o)e in t&&(r[e]=t[e]);return r}function normalizeRouteRecord(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:normalizeRecordProps(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function normalizeRecordProps(t){const o={},r=t.props||!1;if("component"in t)o.default=r;else for(const e in t.components)o[e]=typeof r=="object"?r[e]:r;return o}function isAliasRecord(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mergeMetaFields(t){return t.reduce((o,r)=>assign$1(o,r.meta),{})}function mergeOptions(t,o){const r={};for(const e in t)r[e]=e in o?o[e]:t[e];return r}function findInsertionIndex(t,o){let r=0,e=o.length;for(;r!==e;){const a=r+e>>1;comparePathParserScore(t,o[a])<0?e=a:r=a+1}const n=getInsertionAncestor(t);return n&&(e=o.lastIndexOf(n,e-1)),e}function getInsertionAncestor(t){let o=t;for(;o=o.parent;)if(isMatchable(o)&&comparePathParserScore(t,o)===0)return o}function isMatchable({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function parseQuery$1(t){const o={};if(t===""||t==="?")return o;const e=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;n<e.length;++n){const a=e[n].replace(PLUS_RE$1," "),i=a.indexOf("="),s=decode$2(i<0?a:a.slice(0,i)),l=i<0?null:decode$2(a.slice(i+1));if(s in o){let d=o[s];isArray$a(d)||(d=o[s]=[d]),d.push(l)}else o[s]=l}return o}function stringifyQuery$1(t){let o="";for(let r in t){const e=t[r];if(r=encodeQueryKey$1(r),e==null){e!==void 0&&(o+=(o.length?"&":"")+r);continue}(isArray$a(e)?e.map(a=>a&&encodeQueryValue$1(a)):[e&&encodeQueryValue$1(e)]).forEach(a=>{a!==void 0&&(o+=(o.length?"&":"")+r,a!=null&&(o+="="+a))})}return o}function normalizeQuery(t){const o={};for(const r in t){const e=t[r];e!==void 0&&(o[r]=isArray$a(e)?e.map(n=>n==null?null:""+n):e==null?e:""+e)}return o}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let t=[];function o(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}}function r(){t=[]}return{add:o,list:()=>t.slice(),reset:r}}function guardToPromiseFn(t,o,r,e,n,a=i=>i()){const i=e&&(e.enterCallbacks[n]=e.enterCallbacks[n]||[]);return()=>new Promise((s,l)=>{const d=f=>{f===!1?l(createRouterError(4,{from:r,to:o})):f instanceof Error?l(f):isRouteLocation(f)?l(createRouterError(2,{from:o,to:f})):(i&&e.enterCallbacks[n]===i&&typeof f=="function"&&i.push(f),s())},c=a(()=>t.call(e&&e.instances[n],o,r,d));let u=Promise.resolve(c);t.length<3&&(u=u.then(d)),u.catch(f=>l(f))})}function extractComponentsGuards(t,o,r,e,n=a=>a()){const a=[];for(const i of t)for(const s in i.components){let l=i.components[s];if(!(o!=="beforeRouteEnter"&&!i.instances[s]))if(isRouteComponent(l)){const c=(l.__vccOpts||l)[o];c&&a.push(guardToPromiseFn(c,r,e,i,s,n))}else{let d=l();a.push(()=>d.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=isESModule(c)?c.default:c;i.components[s]=u;const m=(u.__vccOpts||u)[o];return m&&guardToPromiseFn(m,r,e,i,s,n)()}))}}return a}function isRouteComponent(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function useLink(t){const o=inject(routerKey),r=inject(routeLocationKey),e=computed(()=>{const l=unref(t.to);return o.resolve(l)}),n=computed(()=>{const{matched:l}=e.value,{length:d}=l,c=l[d-1],u=r.matched;if(!c||!u.length)return-1;const f=u.findIndex(isSameRouteRecord.bind(null,c));if(f>-1)return f;const m=getOriginalPath(l[d-2]);return d>1&&getOriginalPath(c)===m&&u[u.length-1].path!==m?u.findIndex(isSameRouteRecord.bind(null,l[d-2])):f}),a=computed(()=>n.value>-1&&includesParams(r.params,e.value.params)),i=computed(()=>n.value>-1&&n.value===r.matched.length-1&&isSameRouteLocationParams(r.params,e.value.params));function s(l={}){return guardEvent(l)?o[unref(t.replace)?"replace":"push"](unref(t.to)).catch(noop$1):Promise.resolve()}if(isBrowser){const l=getCurrentInstance();if(l){const d={route:e.value,isActive:a.value,isExactActive:i.value,error:null};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(d),watchEffect(()=>{d.route=e.value,d.isActive=a.value,d.isExactActive=i.value,d.error=isRouteLocation(unref(t.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:e,href:computed(()=>e.value.href),isActive:a,isExactActive:i,navigate:s}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(t,{slots:o}){const r=reactive(useLink(t)),{options:e}=inject(routerKey),n=computed(()=>({[getLinkClass(t.activeClass,e.linkActiveClass,"router-link-active")]:r.isActive,[getLinkClass(t.exactActiveClass,e.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=o.default&&o.default(r);return t.custom?a:h("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:n.value},a)}}}),RouterLink=RouterLinkImpl;function guardEvent(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const o=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(o))return}return t.preventDefault&&t.preventDefault(),!0}}function includesParams(t,o){for(const r in o){const e=o[r],n=t[r];if(typeof e=="string"){if(e!==n)return!1}else if(!isArray$a(n)||n.length!==e.length||e.some((a,i)=>a!==n[i]))return!1}return!0}function getOriginalPath(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const getLinkClass=(t,o,r)=>t??o??r,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:o,slots:r}){const e=inject(routerViewLocationKey),n=computed(()=>t.route||e.value),a=inject(viewDepthKey,0),i=computed(()=>{let d=unref(a);const{matched:c}=n.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),s=computed(()=>n.value.matched[i.value]);provide(viewDepthKey,computed(()=>i.value+1)),provide(matchedRouteKey,s),provide(routerViewLocationKey,n);const l=ref$1();return watch(()=>[l.value,s.value,t.name],([d,c,u],[f,m,b])=>{c&&(c.instances[u]=d,m&&m!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),d&&c&&(!m||!isSameRouteRecord(c,m)||!f)&&(c.enterCallbacks[u]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=n.value,c=t.name,u=s.value,f=u&&u.components[c];if(!f)return normalizeSlot(r.default,{Component:f,route:d});const m=u.props[c],b=m?m===!0?d.params:typeof m=="function"?m(d):m:null,_=h(f,assign$1({},b,o,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(u.instances[c]=null)},ref:l}));
vendor: 5,713 bytes, line 79
79if(isBrowser&&_.ref){const S={depth:i.value,name:u.name,path:u.path,meta:u.meta};(isArray$a(_.ref)?_.ref.map(T=>T.i):[_.ref.i]).forEach(T=>{T.__vrv_devtools=S})}return normalizeSlot(r.default,{Component:_,route:d})||_}}});function normalizeSlot(t,o){if(!t)return null;const r=t(o);return r.length===1?r[0]:r}const RouterView=RouterViewImpl;function formatRouteLocation(t,o){const r=assign$1({},t,{matched:t.matched.map(e=>omit$1(e,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:t.fullPath,tooltip:o,value:r}}}function formatDisplay(t){return{_custom:{display:t}}}let routerId=0;function addDevtools(t,o,r){if(o.__hasDevtools)return;o.__hasDevtools=!0;const e=routerId++;setupDevtoolsPlugin({id:"org.vuejs.router"+(e?"."+e:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:t},n=>{typeof n.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.on.inspectComponent((c,u)=>{c.instanceData&&c.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:formatRouteLocation(o.currentRoute.value,"Current Route")})}),n.on.visitComponentTree(({treeNode:c,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;c.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:PINK_500})}isArray$a(u.__vrl_devtools)&&(u.__devtoolsApi=n,u.__vrl_devtools.forEach(f=>{let m=f.route.path,b=ORANGE_400,y="",_=0;f.error?(m=f.error,b=RED_100,_=RED_700):f.isExactActive?(b=LIME_500,y="This is exactly active"):f.isActive&&(b=BLUE_600,y="This link is active"),c.tags.push({label:m,textColor:_,tooltip:y,backgroundColor:b})}))}),watch(o.currentRoute,()=>{l(),n.notifyComponentUpdate(),n.sendInspectorTree(s),n.sendInspectorState(s)});const a="router:navigations:"+e;n.addTimelineLayer({id:a,label:`Router${e?" "+e:""} Navigations`,color:4237508}),o.onError((c,u)=>{n.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:n.now(),data:{error:c},groupId:u.meta.__navigationId}})});let i=0;o.beforeEach((c,u)=>{const f={guard:formatDisplay("beforeEach"),from:formatRouteLocation(u,"Current Location during this navigation"),to:formatRouteLocation(c,"Target location")};Object.defineProperty(c.meta,"__navigationId",{value:i++}),n.addTimelineEvent({layerId:a,event:{time:n.now(),title:"Start of navigation",subtitle:c.fullPath,data:f,groupId:c.meta.__navigationId}})}),o.afterEach((c,u,f)=>{const m={guard:formatDisplay("afterEach")};f?(m.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},m.status=formatDisplay("❌")):m.status=formatDisplay("✅"),m.from=formatRouteLocation(u,"Current Location during this navigation"),m.to=formatRouteLocation(c,"Target location"),n.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:c.fullPath,time:n.now(),data:m,logType:f?"warning":"default",groupId:c.meta.__navigationId}})});const s="router-inspector:"+e;n.addInspector({id:s,label:"Routes"+(e?" "+e:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!d)return;const c=d;let u=r.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(resetMatchStateOnRouteRecord),c.filter&&(u=u.filter(f=>isRouteMatching(f,c.filter.toLowerCase()))),u.forEach(f=>markRouteRecordActive(f,o.currentRoute.value)),c.rootNodes=u.map(formatRouteRecordForInspector)}let d;n.on.getInspectorTree(c=>{d=c,c.app===t&&c.inspectorId===s&&l()}),n.on.getInspectorState(c=>{if(c.app===t&&c.inspectorId===s){const f=r.getRoutes().find(m=>m.record.__vd_id===c.nodeId);f&&(c.state={options:formatRouteRecordMatcherForStateInspector(f)})}}),n.sendInspectorTree(s),n.sendInspectorState(s)})}function modifierForKey(t){return t.optional?t.repeatable?"*":"?":t.repeatable?"+":""}function formatRouteRecordMatcherForStateInspector(t){const{record:o}=t,r=[{editable:!1,key:"path",value:o.path}];return o.name!=null&&r.push({editable:!1,key:"name",value:o.name}),r.push({editable:!1,key:"regexp",value:t.re}),t.keys.length&&r.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:t.keys.map(e=>`${e.name}${modifierForKey(e)}`).join(" "),tooltip:"Param keys",value:t.keys}}}),o.redirect!=null&&r.push({editable:!1,key:"redirect",value:o.redirect}),t.alias.length&&r.push({editable:!1,key:"aliases",value:t.alias.map(e=>e.record.path)}),Object.keys(t.record.meta).length&&r.push({editable:!1,key:"meta",value:t.record.meta}),r.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:t.score.map(e=>e.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:t.score}}}),r}const PINK_500=15485081,BLUE_600=2450411,LIME_500=8702998,CYAN_400=2282478,ORANGE_400=16486972,DARK=6710886,RED_100=16704226,RED_700=12131356;function formatRouteRecordForInspector(t){const o=[],{record:r}=t;r.name!=null&&o.push({label:String(r.name),textColor:0,backgroundColor:CYAN_400}),r.aliasOf&&o.push({label:"alias",textColor:0,backgroundColor:ORANGE_400}),t.__vd_match&&o.push({label:"matches",textColor:0,backgroundColor:PINK_500}),t.__vd_exactActive&&o.push({label:"exact",textColor:0,backgroundColor:LIME_500}),t.__vd_active&&o.push({label:"active",textColor:0,backgroundColor:BLUE_600}),r.redirect&&o.push({label:typeof r.redirect=="string"?`redirect: ${r.redirect}`:"redirects",textColor:16777215,backgroundColor:DARK});let e=r.__vd_id;
79return e==null&&(e=String(routeRecordId++),r.__vd_id=e),{id:e,label:r.path,tags:o,children:t.children.map(formatRouteRecordForInspector)}}let routeRecordId=0;const EXTRACT_REGEXP_RE=/^\/(.*)\/([a-z]*)$/;function markRouteRecordActive(t,o){const r=o.matched.length&&isSameRouteRecord(o.matched[o.matched.length-1],t.record);t.__vd_exactActive=t.__vd_active=r,r||(t.__vd_active=o.matched.some(e=>isSameRouteRecord(e,t.record))),t.children.forEach(e=>markRouteRecordActive(e,o))}function resetMatchStateOnRouteRecord(t){t.__vd_match=!1,t.children.forEach(resetMatchStateOnRouteRecord)}function isRouteMatching(t,o){const r=String(t.re).match(EXTRACT_REGEXP_RE);if(t.__vd_match=!1,!r||r.length<3)return!1;if(new RegExp(r[1].replace(/\$$/,""),r[2]).test(o))return t.children.forEach(i=>isRouteMatching(i,o)),t.record.path!=="/"||o==="/"?(t.__vd_match=t.re.test(o),!0):!1;const n=t.record.path.toLowerCase(),a=decode$2(n);return!o.startsWith("/")&&(a.includes(o)||n.includes(o))||a.startsWith(o)||n.startsWith(o)||t.record.name&&String(t.record.name).includes(o)?!0:t.children.some(i=>isRouteMatching(i,o))}function omit$1(t,o){const r={};for(const e in t)o.includes(e)||(r[e]=t[e]);return r}function createRouter(t){const o=createRouterMatcher(t.routes,t),r=t.parseQuery||parseQuery$1,e=t.stringifyQuery||stringifyQuery$1,n=t.history,a=useCallbacks(),i=useCallbacks(),s=useCallbacks(),l=shallowRef(START_LOCATION_NORMALIZED);let d=START_LOCATION_NORMALIZED;isBrowser&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=applyToParams.bind(null,oe=>""+oe),u=applyToParams.bind(null,encodeParam),f=applyToParams.bind(null,decode$2);function m(oe,X){let se,le;return isRouteName(oe)?(se=o.getRecordMatcher(oe),le=X):le=oe,o.addRoute(le,se)}function b(oe){const X=o.getRecordMatcher(oe);X&&o.removeRoute(X)}function y(){return o.getRoutes().map(oe=>oe.record)}function _(oe){return!!o.getRecordMatcher(oe)}function S(oe,X){if(X=assign$1({},X||l.value),typeof oe=="string"){const Y=parseURL(r,oe,X.path),ne=o.resolve({path:Y.path},X),Ce=n.createHref(Y.fullPath);return assign$1(Y,ne,{params:f(ne.params),hash:decode$2(Y.hash),redirectedFrom:void 0,href:Ce})}let se;if(oe.path!=null)se=assign$1({},oe,{path:parseURL(r,oe.path,X.path).path});else{const Y=assign$1({},oe.params);for(const ne in Y)Y[ne]==null&&delete Y[ne];se=assign$1({},oe,{params:u(Y)}),X.params=u(X.params)}const le=o.resolve(se,X),he=oe.hash||"";le.params=c(f(le.params));const ge=stringifyURL(e,assign$1({},oe,{hash:encodeHash(he),path:le.path})),Q=n.createHref(ge);return assign$1({fullPath:ge,hash:he,query:e===stringifyQuery$1?normalizeQuery(oe.query):oe.query||{}},le,{redirectedFrom:void 0,href:Q})}function C(oe){return typeof oe=="string"?parseURL(r,oe,l.value.path):assign$1({},oe)}function T(oe,X){if(d!==oe)return createRouterError(8,{from:X,to:oe})}function x(oe){return w(oe)}function k(oe){return x(assign$1(C(oe),{replace:!0}))}function E(oe){const X=oe.matched[oe.matched.length-1];if(X&&X.redirect){const{redirect:se}=X;let le=typeof se=="function"?se(oe):se;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=C(le):{path:le},le.params={}),assign$1({query:oe.query,hash:oe.hash,params:le.path!=null?{}:oe.params},le)}}function w(oe,X){const se=d=S(oe),le=l.value,he=oe.state,ge=oe.force,Q=oe.replace===!0,Y=E(se);if(Y)return w(assign$1(C(Y),{state:typeof Y=="object"?assign$1({},he,Y.state):he,force:ge,replace:Q}),X||se);const ne=se;ne.redirectedFrom=X;let Ce;return!ge&&isSameRouteLocation(e,le,se)&&(Ce=createRouterError(16,{to:ne,from:le}),L(le,le,!0,!1)),(Ce?Promise.resolve(Ce):F(ne,le)).catch(ae=>isNavigationFailure(ae)?isNavigationFailure(ae,2)?ae:B(ae):H(ae,ne,le)).then(ae=>{if(ae){if(isNavigationFailure(ae,2))return w(assign$1({replace:Q},C(ae.to),{state:typeof ae.to=="object"?assign$1({},he,ae.to.state):he,force:ge}),X||ne)}else ae=A(ne,le,!0,Q,he);return V(ne,le,ae),ae})}function D(oe,X){const se=T(oe,X);return se?Promise.reject(se):Promise.resolve()}function N(oe){const X=J.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(oe):oe()}function F(oe,X){let se;const[le,he,ge]=extractChangingRecords(oe,X);se=extractComponentsGuards(le.reverse(),"beforeRouteLeave",oe,X);for(const Y of le)Y.leaveGuards.forEach(ne=>{se.push(guardToPromiseFn(ne,oe,X))});const Q=D.bind(null,oe,X);
vendor: 4,522 bytes, line 79
79return se.push(Q),re(se).then(()=>{se=[];for(const Y of a.list())se.push(guardToPromiseFn(Y,oe,X));return se.push(Q),re(se)}).then(()=>{se=extractComponentsGuards(he,"beforeRouteUpdate",oe,X);for(const Y of he)Y.updateGuards.forEach(ne=>{se.push(guardToPromiseFn(ne,oe,X))});return se.push(Q),re(se)}).then(()=>{se=[];for(const Y of ge)if(Y.beforeEnter)if(isArray$a(Y.beforeEnter))for(const ne of Y.beforeEnter)se.push(guardToPromiseFn(ne,oe,X));else se.push(guardToPromiseFn(Y.beforeEnter,oe,X));return se.push(Q),re(se)}).then(()=>(oe.matched.forEach(Y=>Y.enterCallbacks={}),se=extractComponentsGuards(ge,"beforeRouteEnter",oe,X,N),se.push(Q),re(se))).then(()=>{se=[];for(const Y of i.list())se.push(guardToPromiseFn(Y,oe,X));return se.push(Q),re(se)}).catch(Y=>isNavigationFailure(Y,8)?Y:Promise.reject(Y))}function V(oe,X,se){s.list().forEach(le=>N(()=>le(oe,X,se)))}function A(oe,X,se,le,he){const ge=T(oe,X);if(ge)return ge;const Q=X===START_LOCATION_NORMALIZED,Y=isBrowser?history.state:{};se&&(le||Q?n.replace(oe.fullPath,assign$1({scroll:Q&&Y&&Y.scroll},he)):n.push(oe.fullPath,he)),l.value=oe,L(oe,X,se,Q),B()}let M;function O(){M||(M=n.listen((oe,X,se)=>{if(!te.listening)return;const le=S(oe),he=E(le);if(he){w(assign$1(he,{replace:!0}),le).catch(noop$1);return}d=le;const ge=l.value;isBrowser&&saveScrollPosition(getScrollKey(ge.fullPath,se.delta),computeScrollPosition()),F(le,ge).catch(Q=>isNavigationFailure(Q,12)?Q:isNavigationFailure(Q,2)?(w(Q.to,le).then(Y=>{isNavigationFailure(Y,20)&&!se.delta&&se.type===NavigationType.pop&&n.go(-1,!1)}).catch(noop$1),Promise.reject()):(se.delta&&n.go(-se.delta,!1),H(Q,le,ge))).then(Q=>{Q=Q||A(le,ge,!1),Q&&(se.delta&&!isNavigationFailure(Q,8)?n.go(-se.delta,!1):se.type===NavigationType.pop&&isNavigationFailure(Q,20)&&n.go(-1,!1)),V(le,ge,Q)}).catch(noop$1)}))}let R=useCallbacks(),I=useCallbacks(),j;function H(oe,X,se){B(oe);const le=I.list();return le.length?le.forEach(he=>he(oe,X,se)):console.error(oe),Promise.reject(oe)}function U(){return j&&l.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((oe,X)=>{R.add([oe,X])})}function B(oe){return j||(j=!oe,O(),R.list().forEach(([X,se])=>oe?se(oe):X()),R.reset()),oe}function L(oe,X,se,le){const{scrollBehavior:he}=t;if(!isBrowser||!he)return Promise.resolve();const ge=!se&&getSavedScrollPosition(getScrollKey(oe.fullPath,0))||(le||!se)&&history.state&&history.state.scroll||null;return nextTick$1().then(()=>he(oe,X,ge)).then(Q=>Q&&scrollToPosition(Q)).catch(Q=>H(Q,oe,X))}const z=oe=>n.go(oe);let W;const J=new Set,te={currentRoute:l,listening:!0,addRoute:m,removeRoute:b,clearRoutes:o.clearRoutes,hasRoute:_,getRoutes:y,resolve:S,options:t,push:x,replace:k,go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:a.add,beforeResolve:i.add,afterEach:s.add,onError:I.add,isReady:U,install(oe){const X=this;oe.component("RouterLink",RouterLink),oe.component("RouterView",RouterView),oe.config.globalProperties.$router=X,Object.defineProperty(oe.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(l)}),isBrowser&&!W&&l.value===START_LOCATION_NORMALIZED&&(W=!0,x(n.location).catch(he=>{}));const se={};for(const he in START_LOCATION_NORMALIZED)Object.defineProperty(se,he,{get:()=>l.value[he],enumerable:!0});oe.provide(routerKey,X),oe.provide(routeLocationKey,shallowReactive(se)),oe.provide(routerViewLocationKey,l);const le=oe.unmount;J.add(oe),oe.unmount=function(){J.delete(oe),J.size<1&&(d=START_LOCATION_NORMALIZED,M&&M(),M=null,l.value=START_LOCATION_NORMALIZED,W=!1,j=!1),le()},isBrowser&&addDevtools(oe,X,o)}};function re(oe){return oe.reduce((X,se)=>X.then(()=>N(se)),Promise.resolve())}return te}function extractChangingRecords(t,o){const r=[],e=[],n=[],a=Math.max(o.matched.length,t.matched.length);for(let i=0;i<a;i++){const s=o.matched[i];s&&(t.matched.find(d=>isSameRouteRecord(d,s))?e.push(s):r.push(s));const l=t.matched[i];l&&(o.matched.find(d=>isSameRouteRecord(d,l))||n.push(l))}return[r,e,n]}function useRouter$1(){return inject(routerKey)}function useRoute$1(t){return inject(routeLocationKey)}var aemSpaPageModelManager={exports:{}},clone$2={exports:{}},hasRequiredClone;function requireClone(){return hasRequiredClone||(hasRequiredClone=1,function(t){var o=function(){function r(f,m){return m!=null&&f instanceof m}var e;try{e=Map}catch{e=function(){}}var n;try{n=Set}catch{n=function(){}}var a;try{a=Promise}catch{a=function(){}}function i(f,m,b,y,_){typeof m=="object"&&(b=m.depth,y=m.prototype,_=m.includeNonEnumerable,m=m.circular);var S=[],C=[],T=typeof Buffer<"u";
79typeof m>"u"&&(m=!0),typeof b>"u"&&(b=1/0);function x(k,E){if(k===null)return null;if(E===0)return k;var w,D;if(typeof k!="object")return k;if(r(k,e))w=new e;else if(r(k,n))w=new n;else if(r(k,a))w=new a(function(j,H){k.then(function(U){j(x(U,E-1))},function(U){H(x(U,E-1))})});else if(i.__isArray(k))w=[];else if(i.__isRegExp(k))w=new RegExp(k.source,u(k)),k.lastIndex&&(w.lastIndex=k.lastIndex);else if(i.__isDate(k))w=new Date(k.getTime());else{if(T&&Buffer.isBuffer(k))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(k.length):w=new Buffer(k.length),k.copy(w),w;r(k,Error)?w=Object.create(k):typeof y>"u"?(D=Object.getPrototypeOf(k),w=Object.create(D)):(w=Object.create(y),D=y)}if(m){var N=S.indexOf(k);if(N!=-1)return C[N];S.push(k),C.push(w)}r(k,e)&&k.forEach(function(j,H){var U=x(H,E-1),B=x(j,E-1);w.set(U,B)}),r(k,n)&&k.forEach(function(j){var H=x(j,E-1);w.add(H)});for(var F in k){var V;D&&(V=Object.getOwnPropertyDescriptor(D,F)),!(V&&V.set==null)&&(w[F]=x(k[F],E-1))}if(Object.getOwnPropertySymbols)for(var A=Object.getOwnPropertySymbols(k),F=0;F<A.length;F++){var M=A[F],O=Object.getOwnPropertyDescriptor(k,M);O&&!O.enumerable&&!_||(w[M]=x(k[M],E-1),O.enumerable||Object.defineProperty(w,M,{enumerable:!1}))}if(_)for(var R=Object.getOwnPropertyNames(k),F=0;F<R.length;F++){var I=R[F],O=Object.getOwnPropertyDescriptor(k,I);O&&O.enumerable||(w[I]=x(k[I],E-1),Object.defineProperty(w,I,{enumerable:!1}))}return w}return x(f,b)}i.clonePrototype=function(m){if(m===null)return null;var b=function(){};return b.prototype=m,new b};function s(f){return Object.prototype.toString.call(f)}i.__objToStr=s;function l(f){return typeof f=="object"&&s(f)==="[object Date]"}i.__isDate=l;function d(f){return typeof f=="object"&&s(f)==="[object Array]"}i.__isArray=d;function c(f){return typeof f=="object"&&s(f)==="[object RegExp]"}i.__isRegExp=c;function u(f){var m="";return f.global&&(m+="g"),f.ignoreCase&&(m+="i"),f.multiline&&(m+="m"),m}return i.__getRegExpFlags=u,i}();t.exports&&(t.exports=o)}(clone$2)),clone$2.exports}var url$1={},punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;var hasRequiredPunycode;function requirePunycode(){return hasRequiredPunycode||(hasRequiredPunycode=1,function(t,o){(function(r){var e=o&&!o.nodeType&&o,n=t&&!t.nodeType&&t,a=typeof commonjsGlobal=="object"&&commonjsGlobal;(a.global===a||a.window===a||a.self===a)&&(r=a);var i,s=2147483647,l=36,d=1,c=26,u=38,f=700,m=72,b=128,y="-",_=/^xn--/,S=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-d,k=Math.floor,E=String.fromCharCode,w;function D(B){throw new RangeError(T[B])}function N(B,L){for(var z=B.length,W=[];z--;)W[z]=L(B[z]);return W}function F(B,L){var z=B.split("@"),W="";z.length>1&&(W=z[0]+"@",B=z[1]),B=B.replace(C,".");var J=B.split("."),te=N(J,L).join(".");return W+te}function V(B){for(var L=[],z=0,W=B.length,J,te;z<W;)J=B.charCodeAt(z++),J>=55296&&J<=56319&&z<W?(te=B.charCodeAt(z++),(te&64512)==56320?L.push(((J&1023)<<10)+(te&1023)+65536):(L.push(J),z--)):L.push(J);return L}function A(B){return N(B,function(L){var z="";return L>65535&&(L-=65536,z+=E(L>>>10&1023|55296),L=56320|L&1023),z+=E(L),z}).join("")}function M(B){return B-48<10?B-22:B-65<26?B-65:B-97<26?B-97:l}function O(B,L){return B+22+75*(B<26)-((L!=0)<<5)}function R(B,L,z){var W=0;for(B=z?k(B/f):B>>1,B+=k(B/L);B>x*c>>1;W+=l)B=k(B/x);return k(W+(x+1)*B/(B+u))}function I(B){var L=[],z=B.length,W,J=0,te=b,re=m,oe,X,se,le,he,ge,Q,Y,ne;for(oe=B.lastIndexOf(y),oe<0&&(oe=0),X=0;X<oe;++X)B.charCodeAt(X)>=128&&D("not-basic"),L.push(B.charCodeAt(X));for(se=oe>0?oe+1:0;se<z;){for(le=J,he=1,ge=l;se>=z&&D("invalid-input"),Q=M(B.charCodeAt(se++)),(Q>=l||Q>k((s-J)/he))&&D("overflow"),J+=Q*he,Y=ge<=re?d:ge>=re+c?c:ge-re,!(Q<Y);ge+=l)ne=l-Y,he>k(s/ne)&&D("overflow"),he*=ne;W=L.length+1,re=R(J-le,W,le==0),k(J/W)>s-te&&D("overflow"),te+=k(J/W),J%=W,L.splice(J++,0,te)}return A(L)}function j(B){var L,z,W,J,te,re,oe,X,se,le,he,ge=[],Q,Y,ne,Ce;for(B=V(B),Q=B.length,L=b,z=0,te=m,re=0;re<Q;++re)he=B[re],he<128&&ge.push(E(he));for(W=J=ge.length,J&&ge.push(y);W<Q;){for(oe=s,re=0;re<Q;++re)he=B[re],he>=L&&he<oe&&(oe=he);for(Y=W+1,oe-L>k((s-z)/Y)&&D("overflow"),z+=(oe-L)*Y,L=oe,re=0;re<Q;++re)if(he=B[re],he<L&&++z>s&&D("overflow"),he==L){for(X=z,se=l;le=se<=te?d:se>=te+c?c:se-te,!(X<le);se+=l)Ce=X-le,ne=l-le,ge.push(E(O(le+Ce%ne,0))),X=k(Ce/ne);ge.push(E(O(X,0))),te=R(z,Y,W==J),z=0,++W}++z,++L}return ge.join("")}function H(B){return F(B,function(L){return _.test(L)?I(L.slice(4).toLowerCase()):L})}function U(B){return F(B,function(L){return S.test(L)?"xn--"+j(L):L})}if(i={version:"1.4.1",ucs2:{decode:V,encode:A},decode:I,encode:j,toASCII:U,toUnicode:H},e&&n)if(t.exports==e)n.exports=i;else for(w in i)i.hasOwnProperty(w)&&(e[w]=i[w]);
vendor: 5,860 bytes, line 79
79else r.punycode=i})(commonjsGlobal)}(punycode$1,punycode$1.exports)),punycode$1.exports}var esErrors,hasRequiredEsErrors;function requireEsErrors(){return hasRequiredEsErrors||(hasRequiredEsErrors=1,esErrors=Error),esErrors}var _eval,hasRequired_eval;function require_eval(){return hasRequired_eval||(hasRequired_eval=1,_eval=EvalError),_eval}var range,hasRequiredRange;function requireRange(){return hasRequiredRange||(hasRequiredRange=1,range=RangeError),range}var ref,hasRequiredRef;function requireRef(){return hasRequiredRef||(hasRequiredRef=1,ref=ReferenceError),ref}var syntax,hasRequiredSyntax;function requireSyntax(){return hasRequiredSyntax||(hasRequiredSyntax=1,syntax=SyntaxError),syntax}var type$1,hasRequiredType;function requireType(){return hasRequiredType||(hasRequiredType=1,type$1=TypeError),type$1}var uri,hasRequiredUri;function requireUri(){return hasRequiredUri||(hasRequiredUri=1,uri=URIError),uri}var shams,hasRequiredShams;function requireShams(){return hasRequiredShams||(hasRequiredShams=1,shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},r=Symbol("test"),e=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(e)!=="[object Symbol]")return!1;var n=42;o[r]=n;for(r in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var a=Object.getOwnPropertySymbols(o);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(o,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(o,r);if(i.value!==n||i.enumerable!==!0)return!1}return!0}),shams}var hasSymbols,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var t=typeof Symbol<"u"&&Symbol,o=requireShams();return hasSymbols=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:o()},hasSymbols}var hasProto,hasRequiredHasProto;function requireHasProto(){if(hasRequiredHasProto)return hasProto;hasRequiredHasProto=1;var t={__proto__:null,foo:{}},o=Object;return hasProto=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof o)},hasProto}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var t="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,r=Math.max,e="[object Function]",n=function(l,d){for(var c=[],u=0;u<l.length;u+=1)c[u]=l[u];for(var f=0;f<d.length;f+=1)c[f+l.length]=d[f];return c},a=function(l,d){for(var c=[],u=d,f=0;u<l.length;u+=1,f+=1)c[f]=l[u];return c},i=function(s,l){for(var d="",c=0;c<s.length;c+=1)d+=s[c],c+1<s.length&&(d+=l);return d};return implementation=function(l){var d=this;if(typeof d!="function"||o.apply(d)!==e)throw new TypeError(t+d);for(var c=a(arguments,1),u,f=function(){if(this instanceof u){var S=d.apply(this,n(c,arguments));return Object(S)===S?S:this}return d.apply(l,n(c,arguments))},m=r(0,d.length-c.length),b=[],y=0;y<m;y++)b[y]="$"+y;if(u=Function("binder","return function ("+i(b,",")+"){ return binder.apply(this,arguments); }")(f),d.prototype){var _=function(){};_.prototype=d.prototype,u.prototype=new _,_.prototype=null}return u},implementation}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var t=requireImplementation();return functionBind=Function.prototype.bind||t,functionBind}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var t=Function.prototype.call,o=Object.prototype.hasOwnProperty,r=requireFunctionBind();return hasown=r.call(t,o),hasown}var getIntrinsic,hasRequiredGetIntrinsic;function requireGetIntrinsic(){if(hasRequiredGetIntrinsic)return getIntrinsic;hasRequiredGetIntrinsic=1;var t,o=requireEsErrors(),r=require_eval(),e=requireRange(),n=requireRef(),a=requireSyntax(),i=requireType(),s=requireUri(),l=Function,d=function(j){try{return l('"use strict"; return ('+j+").constructor;")()}catch{}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var u=function(){throw new i},f=c?function(){try{return arguments.callee,u}catch{try{return c(arguments,"callee").get}catch{return u}}}():u,m=requireHasSymbols()(),b=requireHasProto()(),y=Object.getPrototypeOf||(b?function(j){return j.__proto__}:null),_={},S=typeof Uint8Array>"u"||!y?t:y(Uint8Array),C={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":m&&y?y([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":_,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 42,669 bytes, lines 79-83
79"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&y?y(y([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!m||!y?t:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":e,"%ReferenceError%":n,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!m||!y?t:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&y?y(""[Symbol.iterator]()):t,"%Symbol%":m?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":f,"%TypedArray%":S,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":s,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(y)try{null.error}catch(j){var T=y(y(j));C["%Error.prototype%"]=T}var x=function j(H){var U;if(H==="%AsyncFunction%")U=d("async function () {}");else if(H==="%GeneratorFunction%")U=d("function* () {}");else if(H==="%AsyncGeneratorFunction%")U=d("async function* () {}");else if(H==="%AsyncGenerator%"){var B=j("%AsyncGeneratorFunction%");B&&(U=B.prototype)}else if(H==="%AsyncIteratorPrototype%"){var L=j("%AsyncGenerator%");L&&y&&(U=y(L.prototype))}return C[H]=U,U},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=requireFunctionBind(),w=requireHasown(),D=E.call(Function.call,Array.prototype.concat),N=E.call(Function.apply,Array.prototype.splice),F=E.call(Function.call,String.prototype.replace),V=E.call(Function.call,String.prototype.slice),A=E.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,R=function(H){var U=V(H,0,1),B=V(H,-1);if(U==="%"&&B!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(B==="%"&&U!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var L=[];return F(H,M,function(z,W,J,te){L[L.length]=J?F(te,O,"$1"):W||z}),L},I=function(H,U){var B=H,L;if(w(k,B)&&(L=k[B],B="%"+L[0]+"%"),w(C,B)){var z=C[B];if(z===_&&(z=x(B)),typeof z>"u"&&!U)throw new i("intrinsic "+H+" exists, but is not available. Please file an issue!");return{alias:L,name:B,value:z}}throw new a("intrinsic "+H+" does not exist!")};return getIntrinsic=function(H,U){if(typeof H!="string"||H.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof U!="boolean")throw new i('"allowMissing" argument must be a boolean');if(A(/^%?[^%]*%?$/,H)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=R(H),L=B.length>0?B[0]:"",z=I("%"+L+"%",U),W=z.name,J=z.value,te=!1,re=z.alias;re&&(L=re[0],N(B,D([0,1],re)));for(var oe=1,X=!0;oe<B.length;oe+=1){var se=B[oe],le=V(se,0,1),he=V(se,-1);if((le==='"'||le==="'"||le==="`"||he==='"'||he==="'"||he==="`")&&le!==he)throw new a("property names with quotes must have matching quotes");if((se==="constructor"||!X)&&(te=!0),L+="."+se,W="%"+L+"%",w(C,W))J=C[W];else if(J!=null){if(!(se in J)){if(!U)throw new i("base intrinsic for "+H+" exists, but the property is not available.");return}if(c&&oe+1>=B.length){var ge=c(J,se);X=!!ge,X&&"get"in ge&&!("originalValue"in ge.get)?J=ge.get:J=J[se]}else X=w(J,se),J=J[se];X&&!te&&(C[W]=J)}}return J},getIntrinsic}var callBind={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var t=requireGetIntrinsic(),o=t("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch{o=!1}return esDefineProperty=o,esDefineProperty}var gopd,hasRequiredGopd;function requireGopd(){if(hasRequiredGopd)return gopd;hasRequiredGopd=1;var t=requireGetIntrinsic(),o=t("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch{o=null}return gopd=o,gopd}var defineDataProperty,hasRequiredDefineDataProperty;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var t=requireEsDefineProperty(),o=requireSyntax(),r=requireType(),e=requireGopd();return defineDataProperty=function(a,i,s){if(!a||typeof a!="object"&&typeof a!="function")throw new r("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,f=!!e&&e(a,i);if(t)t(a,i,{configurable:c===null&&f?f.configurable:!c,enumerable:l===null&&f?f.enumerable:!l,value:s,writable:d===null&&f?f.writable:!d});else if(u||!l&&!d&&!c)a[i]=s;else throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},defineDataProperty}var hasPropertyDescriptors_1,hasRequiredHasPropertyDescriptors;function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var t=requireEsDefineProperty(),o=function(){return!!t};return o.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=o,hasPropertyDescriptors_1}var setFunctionLength,hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var t=requireGetIntrinsic(),o=requireDefineDataProperty(),r=requireHasPropertyDescriptors()(),e=requireGopd(),n=requireType(),a=t("%Math.floor%");return setFunctionLength=function(s,l){if(typeof s!="function")throw new n("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new n("`length` must be a positive 32-bit integer");var d=arguments.length>2&&!!arguments[2],c=!0,u=!0;if("length"in s&&e){var f=e(s,"length");f&&!f.configurable&&(c=!1),f&&!f.writable&&(u=!1)}return(c||u||!d)&&(r?o(s,"length",l,!0,!0):o(s,"length",l)),s},setFunctionLength}var hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(t){var o=requireFunctionBind(),r=requireGetIntrinsic(),e=requireSetFunctionLength(),n=requireType(),a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||o.call(i,a),l=requireEsDefineProperty(),d=r("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new n("a function is required");var m=s(o,i,arguments);return e(m,1+d(0,f.length-(arguments.length-1)),!0)};var c=function(){return s(o,a,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c}(callBind)),callBind.exports}var callBound,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var t=requireGetIntrinsic(),o=requireCallBind(),r=o(t("String.prototype.indexOf"));return callBound=function(n,a){var i=t(n,!!a);return typeof i=="function"&&r(n,".prototype.")>-1?o(i):i},callBound}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var objectInspect,hasRequiredObjectInspect;function requireObjectInspect(){if(hasRequiredObjectInspect)return objectInspect;hasRequiredObjectInspect=1;var t=typeof Map=="function"&&Map.prototype,o=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=t&&o&&typeof o.get=="function"?o.get:null,e=t&&Map.prototype.forEach,n=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=n&&a&&typeof a.get=="function"?a.get:null,s=n&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,d=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,u=c?WeakSet.prototype.has:null,f=typeof WeakRef=="function"&&WeakRef.prototype,m=f?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,y=Object.prototype.toString,_=Function.prototype.toString,S=String.prototype.match,C=String.prototype.slice,T=String.prototype.replace,x=String.prototype.toUpperCase,k=String.prototype.toLowerCase,E=RegExp.prototype.test,w=Array.prototype.concat,D=Array.prototype.join,N=Array.prototype.slice,F=Math.floor,V=typeof BigInt=="function"?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,O=typeof Symbol=="function"&&typeof Symbol.iterator=="object",R=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O||!0)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,j=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ue){return ue.__proto__}:null);function H(ue,ye){if(ue===1/0||ue===-1/0||ue!==ue||ue&&ue>-1e3&&ue<1e3||E.call(/e/,ye))return ye;var Xe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ue=="number"){var De=ue<0?-F(-ue):F(ue);if(De!==ue){var ke=String(De),ze=C.call(ye,ke.length+1);return T.call(ke,Xe,"$&_")+"."+T.call(T.call(ze,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(ye,Xe,"$&_")}var U=require$$0,B=U.custom,L=he(B)?B:null;objectInspect=function ue(ye,Xe,De,ke){var ze=Xe||{};if(Y(ze,"quoteStyle")&&ze.quoteStyle!=="single"&&ze.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(ze,"maxStringLength")&&(typeof ze.maxStringLength=="number"?ze.maxStringLength<0&&ze.maxStringLength!==1/0:ze.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var qe=Y(ze,"customInspect")?ze.customInspect:!0;if(typeof qe!="boolean"&&qe!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(ze,"indent")&&ze.indent!==null&&ze.indent!=="	"&&!(parseInt(ze.indent,10)===ze.indent&&ze.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(ze,"numericSeparator")&&typeof ze.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ht=ze.numericSeparator;if(typeof ye>"u")return"undefined";if(ye===null)return"null";if(typeof ye=="boolean")return ye?"true":"false";if(typeof ye=="string")return fe(ye,ze);if(typeof ye=="number"){if(ye===0)return 1/0/ye>0?"0":"-0";var pt=String(ye);return ht?H(ye,pt):pt}if(typeof ye=="bigint"){var Ne=String(ye)+"n";return ht?H(ye,Ne):Ne}var Je=typeof ze.depth>"u"?5:ze.depth;if(typeof De>"u"&&(De=0),De>=Je&&Je>0&&typeof ye=="object")return J(ye)?"[Array]":"[Object]";var $e=Te(ze,De);if(typeof ke>"u")ke=[];else if(ae(ke,ye)>=0)return"[Circular]";function st(Ie,Le,ct){if(Le&&(ke=N.call(ke),ke.push(Le)),ct){var We={depth:ze.depth};return Y(ze,"quoteStyle")&&(We.quoteStyle=ze.quoteStyle),ue(Ie,We,De+1,ke)}return ue(Ie,ze,De+1,ke)}if(typeof ye=="function"&&!re(ye)){var bt=Ce(ye),Bt=Ae(ye,st);return"[Function"+(bt?": "+bt:" (anonymous)")+"]"+(Bt.length>0?" { "+D.call(Bt,", ")+" }":"")}if(he(ye)){var rt=O?T.call(String(ye),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(ye);return typeof ye=="object"&&!O?pe(rt):rt}if(de(ye)){for(var Ze="<"+k.call(String(ye.nodeName)),dt=ye.attributes||[],Ye=0;Ye<dt.length;Ye++)Ze+=" "+dt[Ye].name+"="+z(W(dt[Ye].value),"double",ze);return Ze+=">",ye.childNodes&&ye.childNodes.length&&(Ze+="..."),Ze+="</"+k.call(String(ye.nodeName))+">",Ze}if(J(ye)){if(ye.length===0)return"[]";var lt=Ae(ye,st);return $e&&!Fe(lt)?"["+Se(lt,$e)+"]":"[ "+D.call(lt,", ")+" ]"}if(oe(ye)){var et=Ae(ye,st);return!("cause"in Error.prototype)&&"cause"in ye&&!I.call(ye,"cause")?"{ ["+String(ye)+"] "+D.call(w.call("[cause]: "+st(ye.cause),et),", ")+" }":et.length===0?"["+String(ye)+"]":"{ ["+String(ye)+"] "+D.call(et,", ")+" }"}if(typeof ye=="object"&&qe){if(L&&typeof ye[L]=="function"&&U)return U(ye,{depth:Je-De});if(qe!=="symbol"&&typeof ye.inspect=="function")return ye.inspect()}if(Be(ye)){var nt=[];return e&&e.call(ye,function(Ie,Le){nt.push(st(Le,ye,!0)+" => "+st(Ie,ye))}),Me("Map",r.call(ye),nt,$e)}if(q(ye)){var Pt=[];return s&&s.call(ye,function(Ie){Pt.push(st(Ie,ye))}),Me("Set",i.call(ye),Pt,$e)}if(me(ye))return ve("WeakMap");if(Z(ye))return ve("WeakSet");if(K(ye))return ve("WeakRef");if(se(ye))return pe(st(Number(ye)));if(ge(ye))return pe(st(V.call(ye)));if(le(ye))return pe(b.call(ye));if(X(ye))return pe(st(String(ye)));if(typeof window<"u"&&ye===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ye===globalThis||typeof commonjsGlobal<"u"&&ye===commonjsGlobal)return"{ [object globalThis] }";if(!te(ye)&&!re(ye)){var ft=Ae(ye,st),Nt=j?j(ye)===Object.prototype:ye instanceof Object||ye.constructor===Object,Ot=ye instanceof Object?"":"null prototype",yt=!Nt&&R&&Object(ye)===ye&&R in ye?C.call(ne(ye),8,-1):Ot?"Object":"",Dt=Nt||typeof ye.constructor!="function"?"":ye.constructor.name?ye.constructor.name+" ":"",_t=Dt+(yt||Ot?"["+D.call(w.call([],yt||[],Ot||[]),": ")+"] ":"");return ft.length===0?_t+"{}":$e?_t+"{"+Se(ft,$e)+"}":_t+"{ "+D.call(ft,", ")+" }"}return String(ye)};function z(ue,ye,Xe){var De=(Xe.quoteStyle||ye)==="double"?'"':"'";return De+ue+De}function W(ue){return T.call(String(ue),/"/g,"&quot;")}function J(ue){return ne(ue)==="[object Array]"&&(!R||!(typeof ue=="object"&&R in ue))}function te(ue){return ne(ue)==="[object Date]"&&(!R||!(typeof ue=="object"&&R in ue))}function re(ue){return ne(ue)==="[object RegExp]"&&(!R||!(typeof ue=="object"&&R in ue))}function oe(ue){return ne(ue)==="[object Error]"&&(!R||!(typeof ue=="object"&&R in ue))}function X(ue){return ne(ue)==="[object String]"&&(!R||!(typeof ue=="object"&&R in ue))}function se(ue){return ne(ue)==="[object Number]"&&(!R||!(typeof ue=="object"&&R in ue))}function le(ue){return ne(ue)==="[object Boolean]"&&(!R||!(typeof ue=="object"&&R in ue))}function he(ue){if(O)return ue&&typeof ue=="object"&&ue instanceof Symbol;if(typeof ue=="symbol")return!0;if(!ue||typeof ue!="object"||!M)return!1;try{return M.call(ue),!0}catch{}return!1}function ge(ue){if(!ue||typeof ue!="object"||!V)return!1;try{return V.call(ue),!0}catch{}return!1}var Q=Object.prototype.hasOwnProperty||function(ue){return ue in this};function Y(ue,ye){return Q.call(ue,ye)}function ne(ue){return y.call(ue)}function Ce(ue){if(ue.name)return ue.name;var ye=S.call(_.call(ue),/^function\s*([\w$]+)/);return ye?ye[1]:null}function ae(ue,ye){if(ue.indexOf)return ue.indexOf(ye);for(var Xe=0,De=ue.length;Xe<De;Xe++)if(ue[Xe]===ye)return Xe;return-1}function Be(ue){if(!r||!ue||typeof ue!="object")return!1;try{r.call(ue);try{i.call(ue)}catch{return!0}return ue instanceof Map}catch{}return!1}function me(ue){if(!d||!ue||typeof ue!="object")return!1;try{d.call(ue,d);try{u.call(ue,u)}catch{return!0}return ue instanceof WeakMap}catch{}return!1}function K(ue){if(!m||!ue||typeof ue!="object")return!1;try{return m.call(ue),!0}catch{}return!1}function q(ue){if(!i||!ue||typeof ue!="object")return!1;try{i.call(ue);try{r.call(ue)}catch{return!0}return ue instanceof Set}catch{}return!1}function Z(ue){if(!u||!ue||typeof ue!="object")return!1;try{u.call(ue,u);try{d.call(ue,d)}catch{return!0}return ue instanceof WeakSet}catch{}return!1}function de(ue){return!ue||typeof ue!="object"?!1:typeof HTMLElement<"u"&&ue instanceof HTMLElement?!0:typeof ue.nodeName=="string"&&typeof ue.getAttribute=="function"}function fe(ue,ye){if(ue.length>ye.maxStringLength){var Xe=ue.length-ye.maxStringLength,De="... "+Xe+" more character"+(Xe>1?"s":"");return fe(C.call(ue,0,ye.maxStringLength),ye)+De}var ke=T.call(T.call(ue,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,_e);return z(ke,"single",ye)}function _e(ue){var ye=ue.charCodeAt(0),Xe={8:"b",9:"t",10:"n",12:"f",13:"r"}[ye];return Xe?"\\"+Xe:"\\x"+(ye<16?"0":"")+x.call(ye.toString(16))}function pe(ue){return"Object("+ue+")"}function ve(ue){return ue+" { ? }"}function Me(ue,ye,Xe,De){var ke=De?Se(Xe,De):D.call(Xe,", ");return ue+" ("+ye+") {"+ke+"}"}function Fe(ue){for(var ye=0;ye<ue.length;ye++)if(ae(ue[ye],`
80`)>=0)return!1;return!0}function Te(ue,ye){var Xe;if(ue.indent==="	")Xe="	";else if(typeof ue.indent=="number"&&ue.indent>0)Xe=D.call(Array(ue.indent+1)," ");else return null;return{base:Xe,prev:D.call(Array(ye+1),Xe)}}function Se(ue,ye){if(ue.length===0)return"";var Xe=`
81`+ye.prev+ye.base;return Xe+D.call(ue,","+Xe)+`
82`+ye.prev}function Ae(ue,ye){var Xe=J(ue),De=[];if(Xe){De.length=ue.length;for(var ke=0;ke<ue.length;ke++)De[ke]=Y(ue,ke)?ye(ue[ke],ue):""}var ze=typeof A=="function"?A(ue):[],qe;if(O){qe={};for(var ht=0;ht<ze.length;ht++)qe["$"+ze[ht]]=ze[ht]}for(var pt in ue)Y(ue,pt)&&(Xe&&String(Number(pt))===pt&&pt<ue.length||O&&qe["$"+pt]instanceof Symbol||(E.call(/[^\w$]/,pt)?De.push(ye(pt,ue)+": "+ye(ue[pt],ue)):De.push(pt+": "+ye(ue[pt],ue))));if(typeof A=="function")for(var Ne=0;Ne<ze.length;Ne++)I.call(ue,ze[Ne])&&De.push("["+ye(ze[Ne])+"]: "+ye(ue[ze[Ne]],ue));return De}return objectInspect}var sideChannel,hasRequiredSideChannel;function requireSideChannel(){if(hasRequiredSideChannel)return sideChannel;hasRequiredSideChannel=1;var t=requireGetIntrinsic(),o=requireCallBound(),r=requireObjectInspect(),e=requireType(),n=t("%WeakMap%",!0),a=t("%Map%",!0),i=o("WeakMap.prototype.get",!0),s=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),c=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),f=function(_,S){for(var C=_,T;(T=C.next)!==null;C=T)if(T.key===S)return C.next=T.next,T.next=_.next,_.next=T,T},m=function(_,S){var C=f(_,S);return C&&C.value},b=function(_,S,C){var T=f(_,S);T?T.value=C:_.next={key:S,next:_.next,value:C}},y=function(_,S){return!!f(_,S)};return sideChannel=function(){var S,C,T,x={assert:function(k){if(!x.has(k))throw new e("Side channel does not contain "+r(k))},get:function(k){if(n&&k&&(typeof k=="object"||typeof k=="function")){if(S)return i(S,k)}else if(a){if(C)return d(C,k)}else if(T)return m(T,k)},has:function(k){if(n&&k&&(typeof k=="object"||typeof k=="function")){if(S)return l(S,k)}else if(a){if(C)return u(C,k)}else if(T)return y(T,k);return!1},set:function(k,E){n&&k&&(typeof k=="object"||typeof k=="function")?(S||(S=new n),s(S,k,E)):a?(C||(C=new a),c(C,k,E)):(T||(T={key:{},next:null}),b(T,k,E))}};return x},sideChannel}var formats,hasRequiredFormats;function requireFormats(){if(hasRequiredFormats)return formats;hasRequiredFormats=1;var t=String.prototype.replace,o=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return formats={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},formats}var utils$e,hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$e;hasRequiredUtils=1;var t=requireFormats(),o=Object.prototype.hasOwnProperty,r=Array.isArray,e=function(){for(var _=[],S=0;S<256;++S)_.push("%"+((S<16?"0":"")+S.toString(16)).toUpperCase());return _}(),n=function(S){for(;S.length>1;){var C=S.pop(),T=C.obj[C.prop];if(r(T)){for(var x=[],k=0;k<T.length;++k)typeof T[k]<"u"&&x.push(T[k]);C.obj[C.prop]=x}}},a=function(S,C){for(var T=C&&C.plainObjects?Object.create(null):{},x=0;x<S.length;++x)typeof S[x]<"u"&&(T[x]=S[x]);return T},i=function _(S,C,T){if(!C)return S;if(typeof C!="object"){if(r(S))S.push(C);else if(S&&typeof S=="object")(T&&(T.plainObjects||T.allowPrototypes)||!o.call(Object.prototype,C))&&(S[C]=!0);else return[S,C];return S}if(!S||typeof S!="object")return[S].concat(C);var x=S;return r(S)&&!r(C)&&(x=a(S,T)),r(S)&&r(C)?(C.forEach(function(k,E){if(o.call(S,E)){var w=S[E];w&&typeof w=="object"&&k&&typeof k=="object"?S[E]=_(w,k,T):S.push(k)}else S[E]=k}),S):Object.keys(C).reduce(function(k,E){var w=C[E];return o.call(k,E)?k[E]=_(k[E],w,T):k[E]=w,k},x)},s=function(S,C){return Object.keys(C).reduce(function(T,x){return T[x]=C[x],T},S)},l=function(_,S,C){var T=_.replace(/\+/g," ");if(C==="iso-8859-1")return T.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(T)}catch{return T}},d=1024,c=function(S,C,T,x,k){if(S.length===0)return S;var E=S;if(typeof S=="symbol"?E=Symbol.prototype.toString.call(S):typeof S!="string"&&(E=String(S)),T==="iso-8859-1")return escape(E).replace(/%u[0-9a-f]{4}/gi,function(M){return"%26%23"+parseInt(M.slice(2),16)+"%3B"});for(var w="",D=0;D<E.length;D+=d){for(var N=E.length>=d?E.slice(D,D+d):E,F=[],V=0;V<N.length;++V){var A=N.charCodeAt(V);if(A===45||A===46||A===95||A===126||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||k===t.RFC1738&&(A===40||A===41)){F[F.length]=N.charAt(V);continue}if(A<128){F[F.length]=e[A];continue}if(A<2048){F[F.length]=e[192|A>>6]+e[128|A&63];continue}if(A<55296||A>=57344){F[F.length]=e[224|A>>12]+e[128|A>>6&63]+e[128|A&63];continue}V+=1,A=65536+((A&1023)<<10|N.charCodeAt(V)&1023),F[F.length]=e[240|A>>18]+e[128|A>>12&63]+e[128|A>>6&63]+e[128|A&63]}w+=F.join("")}return w},u=function(S){for(var C=[{obj:{o:S},prop:"o"}],T=[],x=0;x<C.length;++x)for(var k=C[x],E=k.obj[k.prop],w=Object.keys(E),D=0;D<w.length;++D){var N=w[D],F=E[N];typeof F=="object"&&F!==null&&T.indexOf(F)===-1&&(C.push({obj:E,prop:N}),T.push(F))}return n(C),S},f=function(S){return Object.prototype.toString.call(S)==="[object RegExp]"},m=function(S){return!S||typeof S!="object"?!1:!!(S.constructor&&S.constructor.isBuffer&&S.constructor.isBuffer(S))},b=function(S,C){return[].concat(S,C)},y=function(S,C){if(r(S)){for(var T=[],x=0;x<S.length;x+=1)T.push(C(S[x]));return T}return C(S)};return utils$e={arrayToObject:a,assign:s,combine:b,compact:u,decode:l,encode:c,isBuffer:m,isRegExp:f,maybeMap:y,merge:i},utils$e}var stringify_1,hasRequiredStringify;function requireStringify(){if(hasRequiredStringify)return stringify_1;hasRequiredStringify=1;var t=requireSideChannel(),o=requireUtils(),r=requireFormats(),e=Object.prototype.hasOwnProperty,n={brackets:function(_){return _+"[]"},comma:"comma",indices:function(_,S){return _+"["+S+"]"},repeat:function(_){return _}},a=Array.isArray,i=Array.prototype.push,s=function(y,_){i.apply(y,a(_)?_:[_])},l=Date.prototype.toISOString,d=r.default,c={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:r.formatters[d],indices:!1,serializeDate:function(_){return l.call(_)},skipNulls:!1,strictNullHandling:!1},u=function(_){return typeof _=="string"||typeof _=="number"||typeof _=="boolean"||typeof _=="symbol"||typeof _=="bigint"},f={},m=function y(_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j){for(var H=_,U=j,B=0,L=!1;(U=U.get(f))!==void 0&&!L;){var z=U.get(_);if(B+=1,typeof z<"u"){if(z===B)throw new RangeError("Cyclic object value");L=!0}typeof U.get(f)>"u"&&(B=0)}if(typeof N=="function"?H=N(S,H):H instanceof Date?H=A(H):C==="comma"&&a(H)&&(H=o.maybeMap(H,function(ne){return ne instanceof Date?A(ne):ne})),H===null){if(k)return D&&!R?D(S,c.encoder,I,"key",M):S;H=""}if(u(H)||o.isBuffer(H)){if(D){var W=R?S:D(S,c.encoder,I,"key",M);return[O(W)+"="+O(D(H,c.encoder,I,"value",M))]}return[O(S)+"="+O(String(H))]}var J=[];if(typeof H>"u")return J;var te;if(C==="comma"&&a(H))R&&D&&(H=o.maybeMap(H,D)),te=[{value:H.length>0?H.join(",")||null:void 0}];else if(a(N))te=N;else{var re=Object.keys(H);te=F?re.sort(F):re}var oe=w?S.replace(/\./g,"%2E"):S,X=T&&a(H)&&H.length===1?oe+"[]":oe;if(x&&a(H)&&H.length===0)return X+"[]";for(var se=0;se<te.length;++se){var le=te[se],he=typeof le=="object"&&typeof le.value<"u"?le.value:H[le];if(!(E&&he===null)){var ge=V&&w?le.replace(/\./g,"%2E"):le,Q=a(H)?typeof C=="function"?C(X,ge):X:X+(V?"."+ge:"["+ge+"]");j.set(_,B);var Y=t();Y.set(f,j),s(J,y(he,Q,C,T,x,k,E,w,C==="comma"&&R&&a(H)?null:D,N,F,V,A,M,O,R,I,Y))}}return J},b=function(_){if(!_)return c;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.encodeDotInKeys<"u"&&typeof _.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(_.encoder!==null&&typeof _.encoder<"u"&&typeof _.encoder!="function")throw new TypeError("Encoder has to be a function.");var S=_.charset||c.charset;if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var C=r.default;if(typeof _.format<"u"){if(!e.call(r.formatters,_.format))throw new TypeError("Unknown format option provided.");C=_.format}var T=r.formatters[C],x=c.filter;(typeof _.filter=="function"||a(_.filter))&&(x=_.filter);var k;if(_.arrayFormat in n?k=_.arrayFormat:"indices"in _?k=_.indices?"indices":"repeat":k=c.arrayFormat,"commaRoundTrip"in _&&typeof _.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var E=typeof _.allowDots>"u"?_.encodeDotInKeys===!0?!0:c.allowDots:!!_.allowDots;return{addQueryPrefix:typeof _.addQueryPrefix=="boolean"?_.addQueryPrefix:c.addQueryPrefix,allowDots:E,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:k,charset:S,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:c.charsetSentinel,commaRoundTrip:_.commaRoundTrip,delimiter:typeof _.delimiter>"u"?c.delimiter:_.delimiter,encode:typeof _.encode=="boolean"?_.encode:c.encode,encodeDotInKeys:typeof _.encodeDotInKeys=="boolean"?_.encodeDotInKeys:c.encodeDotInKeys,encoder:typeof _.encoder=="function"?_.encoder:c.encoder,encodeValuesOnly:typeof _.encodeValuesOnly=="boolean"?_.encodeValuesOnly:c.encodeValuesOnly,filter:x,format:C,formatter:T,serializeDate:typeof _.serializeDate=="function"?_.serializeDate:c.serializeDate,skipNulls:typeof _.skipNulls=="boolean"?_.skipNulls:c.skipNulls,sort:typeof _.sort=="function"?_.sort:null,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:c.strictNullHandling}};return stringify_1=function(y,_){var S=y,C=b(_),T,x;typeof C.filter=="function"?(x=C.filter,S=x("",S)):a(C.filter)&&(x=C.filter,T=x);var k=[];if(typeof S!="object"||S===null)return"";var E=n[C.arrayFormat],w=E==="comma"&&C.commaRoundTrip;T||(T=Object.keys(S)),C.sort&&T.sort(C.sort);for(var D=t(),N=0;N<T.length;++N){var F=T[N];C.skipNulls&&S[F]===null||s(k,m(S[F],F,E,w,C.allowEmptyArrays,C.strictNullHandling,C.skipNulls,C.encodeDotInKeys,C.encode?C.encoder:null,C.filter,C.sort,C.allowDots,C.serializeDate,C.format,C.formatter,C.encodeValuesOnly,C.charset,D))}var V=k.join(C.delimiter),A=C.addQueryPrefix===!0?"?":"";return C.charsetSentinel&&(C.charset==="iso-8859-1"?A+="utf8=%26%2310003%3B&":A+="utf8=%E2%9C%93&"),V.length>0?A+V:""},stringify_1}var parse$1,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse$1;hasRequiredParse=1;var t=requireUtils(),o=Object.prototype.hasOwnProperty,r=Array.isArray,e={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},n=function(f){return f.replace(/&#(\d+);/g,function(m,b){return String.fromCharCode(parseInt(b,10))})},a=function(f,m){return f&&typeof f=="string"&&m.comma&&f.indexOf(",")>-1?f.split(","):f},i="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",l=function(m,b){var y={__proto__:null},_=b.ignoreQueryPrefix?m.replace(/^\?/,""):m;_=_.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var S=b.parameterLimit===1/0?void 0:b.parameterLimit,C=_.split(b.delimiter,S),T=-1,x,k=b.charset;if(b.charsetSentinel)for(x=0;x<C.length;++x)C[x].indexOf("utf8=")===0&&(C[x]===s?k="utf-8":C[x]===i&&(k="iso-8859-1"),T=x,x=C.length);for(x=0;x<C.length;++x)if(x!==T){var E=C[x],w=E.indexOf("]="),D=w===-1?E.indexOf("="):w+1,N,F;D===-1?(N=b.decoder(E,e.decoder,k,"key"),F=b.strictNullHandling?null:""):(N=b.decoder(E.slice(0,D),e.decoder,k,"key"),F=t.maybeMap(a(E.slice(D+1),b),function(A){return b.decoder(A,e.decoder,k,"value")})),F&&b.interpretNumericEntities&&k==="iso-8859-1"&&(F=n(F)),E.indexOf("[]=")>-1&&(F=r(F)?[F]:F);var V=o.call(y,N);V&&b.duplicates==="combine"?y[N]=t.combine(y[N],F):(!V||b.duplicates==="last")&&(y[N]=F)}return y},d=function(f,m,b,y){for(var _=y?m:a(m,b),S=f.length-1;S>=0;--S){var C,T=f[S];if(T==="[]"&&b.parseArrays)C=b.allowEmptyArrays&&(_===""||b.strictNullHandling&&_===null)?[]:[].concat(_);else{C=b.plainObjects?Object.create(null):{};var x=T.charAt(0)==="["&&T.charAt(T.length-1)==="]"?T.slice(1,-1):T,k=b.decodeDotInKeys?x.replace(/%2E/g,"."):x,E=parseInt(k,10);!b.parseArrays&&k===""?C={0:_}:!isNaN(E)&&T!==k&&String(E)===k&&E>=0&&b.parseArrays&&E<=b.arrayLimit?(C=[],C[E]=_):k!=="__proto__"&&(C[k]=_)}_=C}return _},c=function(m,b,y,_){if(m){var S=y.allowDots?m.replace(/\.([^.[]+)/g,"[$1]"):m,C=/(\[[^[\]]*])/,T=/(\[[^[\]]*])/g,x=y.depth>0&&C.exec(S),k=x?S.slice(0,x.index):S,E=[];if(k){if(!y.plainObjects&&o.call(Object.prototype,k)&&!y.allowPrototypes)return;E.push(k)}for(var w=0;y.depth>0&&(x=T.exec(S))!==null&&w<y.depth;){if(w+=1,!y.plainObjects&&o.call(Object.prototype,x[1].slice(1,-1))&&!y.allowPrototypes)return;E.push(x[1])}return x&&E.push("["+S.slice(x.index)+"]"),d(E,b,y,_)}},u=function(m){if(!m)return e;if(typeof m.allowEmptyArrays<"u"&&typeof m.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof m.decodeDotInKeys<"u"&&typeof m.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(m.decoder!==null&&typeof m.decoder<"u"&&typeof m.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof m.charset<"u"&&m.charset!=="utf-8"&&m.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var b=typeof m.charset>"u"?e.charset:m.charset,y=typeof m.duplicates>"u"?e.duplicates:m.duplicates;if(y!=="combine"&&y!=="first"&&y!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var _=typeof m.allowDots>"u"?m.decodeDotInKeys===!0?!0:e.allowDots:!!m.allowDots;return{allowDots:_,allowEmptyArrays:typeof m.allowEmptyArrays=="boolean"?!!m.allowEmptyArrays:e.allowEmptyArrays,allowPrototypes:typeof m.allowPrototypes=="boolean"?m.allowPrototypes:e.allowPrototypes,allowSparse:typeof m.allowSparse=="boolean"?m.allowSparse:e.allowSparse,arrayLimit:typeof m.arrayLimit=="number"?m.arrayLimit:e.arrayLimit,charset:b,charsetSentinel:typeof m.charsetSentinel=="boolean"?m.charsetSentinel:e.charsetSentinel,comma:typeof m.comma=="boolean"?m.comma:e.comma,decodeDotInKeys:typeof m.decodeDotInKeys=="boolean"?m.decodeDotInKeys:e.decodeDotInKeys,decoder:typeof m.decoder=="function"?m.decoder:e.decoder,delimiter:typeof m.delimiter=="string"||t.isRegExp(m.delimiter)?m.delimiter:e.delimiter,depth:typeof m.depth=="number"||m.depth===!1?+m.depth:e.depth,duplicates:y,ignoreQueryPrefix:m.ignoreQueryPrefix===!0,interpretNumericEntities:typeof m.interpretNumericEntities=="boolean"?m.interpretNumericEntities:e.interpretNumericEntities,parameterLimit:typeof m.parameterLimit=="number"?m.parameterLimit:e.parameterLimit,parseArrays:m.parseArrays!==!1,plainObjects:typeof m.plainObjects=="boolean"?m.plainObjects:e.plainObjects,strictNullHandling:typeof m.strictNullHandling=="boolean"?m.strictNullHandling:e.strictNullHandling}};return parse$1=function(f,m){var b=u(m);if(f===""||f===null||typeof f>"u")return b.plainObjects?Object.create(null):{};for(var y=typeof f=="string"?l(f,b):f,_=b.plainObjects?Object.create(null):{},S=Object.keys(y),C=0;C<S.length;++C){var T=S[C],x=c(T,y[T],b,typeof f=="string");_=t.merge(_,x,b)}return b.allowSparse===!0?_:t.compact(_)},parse$1}var lib$2,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$2;hasRequiredLib=1;var t=requireStringify(),o=requireParse(),r=requireFormats();return lib$2={formats:r,parse:o,stringify:t},lib$2}var hasRequiredUrl;function requireUrl(){if(hasRequiredUrl)return url$1;hasRequiredUrl=1;var t=requirePunycode();function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,e=/:[0-9]*$/,n=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r",`
83`,"	"],i=["{","}","|","\\","^","`"].concat(a),s=["'"].concat(i),l=["%","/","?",";","#"].concat(s),d=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=requireLib();function S(k,E,w){if(k&&typeof k=="object"&&k instanceof o)return k;var D=new o;return D.parse(k,E,w),D}o.prototype.parse=function(k,E,w){if(typeof k!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof k);var D=k.indexOf("?"),N=D!==-1&&D<k.indexOf("#")?"?":"#",F=k.split(N),V=/\\/g;F[0]=F[0].replace(V,"/"),k=F.join(N);var A=k;if(A=A.trim(),!w&&k.split("#").length===1){var M=n.exec(A);if(M)return this.path=A,this.href=A,this.pathname=M[1],M[2]?(this.search=M[2],E?this.query=_.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var O=r.exec(A);if(O){O=O[0];var R=O.toLowerCase();this.protocol=R,A=A.substr(O.length)}if(w||O||A.match(/^\/\/[^@/]+@[^@/]+/)){var I=A.substr(0,2)==="//";I&&!(O&&b[O])&&(A=A.substr(2),this.slashes=!0)}if(!b[O]&&(I||O&&!y[O])){for(var j=-1,H=0;H<d.length;H++){var U=A.indexOf(d[H]);U!==-1&&(j===-1||U<j)&&(j=U)}var B,L;j===-1?L=A.lastIndexOf("@"):L=A.lastIndexOf("@",j),L!==-1&&(B=A.slice(0,L),A=A.slice(L+1),this.auth=decodeURIComponent(B)),j=-1;for(var H=0;H<l.length;H++){var U=A.indexOf(l[H]);U!==-1&&(j===-1||U<j)&&(j=U)}j===-1&&(j=A.length),this.host=A.slice(0,j),A=A.slice(j),this.parseHost(),this.hostname=this.hostname||"";var z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!z)for(var W=this.hostname.split(/\./),H=0,J=W.length;H<J;H++){var te=W[H];if(te&&!te.match(u)){for(var re="",oe=0,X=te.length;oe<X;oe++)te.charCodeAt(oe)>127?re+="x":re+=te[oe];if(!re.match(u)){var se=W.slice(0,H),le=W.slice(H+1),he=te.match(f);he&&(se.push(he[1]),le.unshift(he[2])),le.length&&(A="/"+le.join(".")+A),this.hostname=se.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),z||(this.hostname=t.toASCII(this.hostname));var ge=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+ge,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),A[0]!=="/"&&(A="/"+A))}if(!m[R])for(var H=0,J=s.length;H<J;H++){var Y=s[H];if(A.indexOf(Y)!==-1){var ne=encodeURIComponent(Y);ne===Y&&(ne=escape(Y)),A=A.split(Y).join(ne)}}var Ce=A.indexOf("#");Ce!==-1&&(this.hash=A.substr(Ce),A=A.slice(0,Ce));var ae=A.indexOf("?");if(ae!==-1?(this.search=A.substr(ae),this.query=A.substr(ae+1),E&&(this.query=_.parse(this.query)),A=A.slice(0,ae)):E&&(this.search="",this.query={}),A&&(this.pathname=A),y[R]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ge=this.pathname||"",Be=this.search||"";this.path=ge+Be}return this.href=this.format(),this};function C(k){return typeof k=="string"&&(k=S(k)),k instanceof o?k.format():o.prototype.format.call(k)}o.prototype.format=function(){var k=this.auth||"";k&&(k=encodeURIComponent(k),k=k.replace(/%3A/i,":"),k+="@");var E=this.protocol||"",w=this.pathname||"",D=this.hash||"",N=!1,F="";this.host?N=k+this.host:this.hostname&&(N=k+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(F=_.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var V=this.search||F&&"?"+F||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||y[E])&&N!==!1?(N="//"+(N||""),w&&w.charAt(0)!=="/"&&(w="/"+w)):N||(N=""),D&&D.charAt(0)!=="#"&&(D="#"+D),V&&V.charAt(0)!=="?"&&(V="?"+V),w=w.replace(/[?#]/g,function(A){return encodeURIComponent(A)}),V=V.replace("#","%23"),E+N+w+V+D};function T(k,E){return S(k,!1,!0).resolve(E)}o.prototype.resolve=function(k){return this.resolveObject(S(k,!1,!0)).format()};function x(k,E){return k?S(k,!1,!0).resolveObject(E):E}return o.prototype.resolveObject=function(k){if(typeof k=="string"){var E=new o;E.parse(k,!1,!0),k=E}for(var w=new o,D=Object.keys(this),N=0;N<D.length;N++){var F=D[N];w[F]=this[F]}if(w.hash=k.hash,k.href==="")return w.href=w.format(),w;if(k.slashes&&!k.protocol){for(var V=Object.keys(k),A=0;A<V.length;A++){var M=V[A];M!=="protocol"&&(w[M]=k[M])}return y[w.protocol]&&w.hostname&&!w.pathname&&(w.pathname="/",w.path=w.pathname),w.href=w.format(),w}if(k.protocol&&k.protocol!==w.protocol){if(!y[k.protocol]){for(var O=Object.keys(k),R=0;R<O.length;R++){var I=O[R];w[I]=k[I]}return w.href=w.format(),w}if(w.protocol=k.protocol,!k.host&&!b[k.protocol]){for(var J=(k.pathname||"").split("/");J.length&&!(k.host=J.shift()););k.host||(k.host=""),k.hostname||(k.hostname=""),J[0]!==""&&J.unshift(""),J.length<2&&J.unshift(""),w.pathname=J.join("/")}else w.pathname=k.pathname;if(w.search=k.search,w.query=k.query,w.host=k.host||"",w.auth=k.auth,w.hostname=k.hostname||k.host,w.port=k.port,w.pathname||w.search){var j=w.pathname||"",H=w.search||"";w.path=j+H}return w.slashes=w.slashes||k.slashes,w.href=w.format(),w}var U=w.pathname&&w.pathname.charAt(0)==="/",B=k.host||k.pathname&&k.pathname.charAt(0)==="/",L=B||U||w.host&&k.pathname,z=L,W=w.pathname&&w.pathname.split("/")||[],J=k.pathname&&k.pathname.split("/")||[],te=w.protocol&&!y[w.protocol];if(te&&(w.hostname="",w.port=null,w.host&&(W[0]===""?W[0]=w.host:W.unshift(w.host)),w.host="",k.protocol&&(k.hostname=null,k.port=null,k.host&&(J[0]===""?J[0]=k.host:J.unshift(k.host)),k.host=null),L=L&&(J[0]===""||W[0]==="")),B)w.host=k.host||k.host===""?k.host:w.host,w.hostname=k.hostname||k.hostname===""?k.hostname:w.hostname,w.search=k.search,w.query=k.query,W=J;else if(J.length)W||(W=[]),W.pop(),W=W.concat(J),w.search=k.search,w.query=k.query;else if(k.search!=null){if(te){w.host=W.shift(),w.hostname=w.host;var re=w.host&&w.host.indexOf("@")>0?w.host.split("@"):!1;re&&(w.auth=re.shift(),w.hostname=re.shift(),w.host=w.hostname)}return w.search=k.search,w.query=k.query,(w.pathname!==null||w.search!==null)&&(w.path=(w.pathname?w.pathname:"")+(w.search?w.search:"")),w.href=w.format(),w}if(!W.length)return w.pathname=null,w.search?w.path="/"+w.search:w.path=null,w.href=w.format(),w;for(var oe=W.slice(-1)[0],X=(w.host||k.host||W.length>1)&&(oe==="."||oe==="..")||oe==="",se=0,le=W.length;le>=0;le--)oe=W[le],oe==="."?W.splice(le,1):oe===".."?(W.splice(le,1),se++):se&&(W.splice(le,1),se--);if(!L&&!z)for(;se--;se)W.unshift("..");L&&W[0]!==""&&(!W[0]||W[0].charAt(0)!=="/")&&W.unshift(""),X&&W.join("/").substr(-1)!=="/"&&W.pu
vendor: 4,753 bytes, line 83
83sh("");var he=W[0]===""||W[0]&&W[0].charAt(0)==="/";if(te){w.hostname=he?"":W.length?W.shift():"",w.host=w.hostname;var re=w.host&&w.host.indexOf("@")>0?w.host.split("@"):!1;re&&(w.auth=re.shift(),w.hostname=re.shift(),w.host=w.hostname)}return L=L||w.host&&W.length,L&&!he&&W.unshift(""),W.length>0?w.pathname=W.join("/"):(w.pathname=null,w.path=null),(w.pathname!==null||w.search!==null)&&(w.path=(w.pathname?w.pathname:"")+(w.search?w.search:"")),w.auth=k.auth||w.auth,w.slashes=w.slashes||k.slashes,w.href=w.format(),w},o.prototype.parseHost=function(){var k=this.host,E=e.exec(k);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),k=k.substr(0,k.length-E.length)),k&&(this.hostname=k)},url$1.parse=S,url$1.resolve=T,url$1.resolveObject=x,url$1.format=C,url$1.Url=o,url$1}(function(t,o){(function(r,e){t.exports=e()})(function(){try{return typeof self<"u"}catch{return!1}}()?self:commonjsGlobal,()=>(()=>{var r={5:i=>{function s(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function l(c,u){for(var f,m="",b=0,y=-1,_=0,S=0;S<=c.length;++S){if(S<c.length)f=c.charCodeAt(S);else{if(f===47)break;f=47}if(f===47){if(!(y===S-1||_===1))if(y!==S-1&&_===2){if(m.length<2||b!==2||m.charCodeAt(m.length-1)!==46||m.charCodeAt(m.length-2)!==46){if(m.length>2){var C=m.lastIndexOf("/");if(C!==m.length-1){C===-1?(m="",b=0):b=(m=m.slice(0,C)).length-1-m.lastIndexOf("/"),y=S,_=0;continue}}else if(m.length===2||m.length===1){m="",b=0,y=S,_=0;continue}}u&&(m.length>0?m+="/..":m="..",b=2)}else m.length>0?m+="/"+c.slice(y+1,S):m=c.slice(y+1,S),b=S-y-1;y=S,_=0}else f===46&&_!==-1?++_:_=-1}return m}var d={resolve:function(){for(var c,u="",f=!1,m=arguments.length-1;m>=-1&&!f;m--){var b;m>=0?b=arguments[m]:(c===void 0&&(c=process.cwd()),b=c),s(b),b.length!==0&&(u=b+"/"+u,f=b.charCodeAt(0)===47)}return u=l(u,!f),f?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(c){if(s(c),c.length===0)return".";var u=c.charCodeAt(0)===47,f=c.charCodeAt(c.length-1)===47;return(c=l(c,!u)).length!==0||u||(c="."),c.length>0&&f&&(c+="/"),u?"/"+c:c},isAbsolute:function(c){return s(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,u=0;u<arguments.length;++u){var f=arguments[u];s(f),f.length>0&&(c===void 0?c=f:c+="/"+f)}return c===void 0?".":d.normalize(c)},relative:function(c,u){if(s(c),s(u),c===u||(c=d.resolve(c))===(u=d.resolve(u)))return"";for(var f=1;f<c.length&&c.charCodeAt(f)===47;++f);for(var m=c.length,b=m-f,y=1;y<u.length&&u.charCodeAt(y)===47;++y);for(var _=u.length-y,S=b<_?b:_,C=-1,T=0;T<=S;++T){if(T===S){if(_>S){if(u.charCodeAt(y+T)===47)return u.slice(y+T+1);if(T===0)return u.slice(y+T)}else b>S&&(c.charCodeAt(f+T)===47?C=T:T===0&&(C=0));break}var x=c.charCodeAt(f+T);if(x!==u.charCodeAt(y+T))break;x===47&&(C=T)}var k="";for(T=f+C+1;T<=m;++T)T!==m&&c.charCodeAt(T)!==47||(k.length===0?k+="..":k+="/..");return k.length>0?k+u.slice(y+C):(y+=C,u.charCodeAt(y)===47&&++y,u.slice(y))},_makeLong:function(c){return c},dirname:function(c){if(s(c),c.length===0)return".";for(var u=c.charCodeAt(0),f=u===47,m=-1,b=!0,y=c.length-1;y>=1;--y)if((u=c.charCodeAt(y))===47){if(!b){m=y;break}}else b=!1;return m===-1?f?"/":".":f&&m===1?"//":c.slice(0,m)},basename:function(c,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');s(c);var f,m=0,b=-1,y=!0;if(u!==void 0&&u.length>0&&u.length<=c.length){if(u.length===c.length&&u===c)return"";var _=u.length-1,S=-1;for(f=c.length-1;f>=0;--f){var C=c.charCodeAt(f);if(C===47){if(!y){m=f+1;break}}else S===-1&&(y=!1,S=f+1),_>=0&&(C===u.charCodeAt(_)?--_==-1&&(b=f):(_=-1,b=S))}return m===b?b=S:b===-1&&(b=c.length),c.slice(m,b)}for(f=c.length-1;f>=0;--f)if(c.charCodeAt(f)===47){if(!y){m=f+1;break}}else b===-1&&(y=!1,b=f+1);return b===-1?"":c.slice(m,b)},extname:function(c){s(c);for(var u=-1,f=0,m=-1,b=!0,y=0,_=c.length-1;_>=0;--_){var S=c.charCodeAt(_);if(S!==47)m===-1&&(b=!1,m=_+1),S===46?u===-1?u=_:y!==1&&(y=1):u!==-1&&(y=-1);else if(!b){f=_+1;break}}return u===-1||m===-1||y===0||y===1&&u===m-1&&u===f+1?"":c.slice(u,m)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return function(u,f){var m=f.dir||f.root,b=f.base||(f.name||"")+(f.ext||"");return m?m===f.root?m+b:m+"/"+b:b}(0,c)},parse:function(c){s(c);var u={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return u;var f,m=c.charCodeAt(0),b=m===47;b?(u.root="/",f=1):f=0;for(var y=-1,_=0,S=-1,C=!0,T=c.length-1,x=0;T>=f;--T)if((m=c.charCodeAt(T))!==47)S===-1&&(C=!1,S=T+1),m===46?y===-1?y=T:x!==1&&(x=1):y!==-1&&(x=-1);else if(!C){_=T+1;break}return y===-1||S===-1||x===0||x===1&&y===S-1&&y===_+1?S!==-1&&(u.base
83=u.name=_===0&&b?c.slice(1,S):c.slice(_,S)):(_===0&&b?(u.name=c.slice(1,y),u.base=c.slice(1,S)):(u.name=c.slice(_,y),u.base=c.slice(_,S)),u.ext=c.slice(y,S)),_>0?u.dir=c.slice(0,_-1):b&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};d.posix=d,i.exports=d}},e={};function n(i){var s=e[i];if(s!==void 0)return s.exports;var l=e[i]={exports:{}};return r[i](l,l.exports,n),l.exports}n.n=i=>{var s=i&&i.__esModule?()=>i.default:()=>i;return n.d(s,{a:s}),s},n.d=(i,s)=>{for(var l in s)n.o(s,l)&&!n.o(i,l)&&Object.defineProperty(i,l,{enumerable:!0,get:s[l]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{AEM_MODE:()=>u,AuthoringUtils:()=>M,Constants:()=>m,ModelClient:()=>V,ModelManager:()=>O,ModelStore:()=>A,PathUtils:()=>D});class i{constructor(){}}i.PAGE_MODEL_INIT="cq-pagemodel-init",i.PAGE_MODEL_LOADED="cq-pagemodel-loaded",i.PAGE_MODEL_UPDATE="cq-pagemodel-update",i.PAGE_MODEL_ROUTE_CHANGED="cq-pagemodel-route-changed";const s=i;class l{constructor(){}}l.PAGE_MODEL_ROOT_URL="cq:pagemodel_root_url",l.PAGE_MODEL_ROUTE_FILTERS="cq:pagemodel_route_filters",l.PAGE_MODEL_ROUTER="cq:pagemodel_router",l.WCM_MODE="cq:wcmmode",l.WCM_DATA_TYPE="cq:datatype";const d=l;class c{constructor(){}}var u,f;c.TYPE_PROP=":type",c.ITEMS_PROP=":items",c.ITEMS_ORDER_PROP=":itemsOrder",c.PATH_PROP=":path",c.CHILDREN_PROP=":children",c.HIERARCHY_TYPE_PROP=":hierarchyType",c.JCR_CONTENT="jcr:content",function(U){U.EDIT="edit",U.PREVIEW="preview",U.DISABLED="disabled"}(u||(u={})),function(U){U.JS="script",U.STYLESHEET="stylesheet"}(f||(f={}));const m=c,b=requireClone();var y=n.n(b),_=n(5);const S=requireUrl();var C=n.n(S);class T{constructor(){}}T.DEFAULT_SLING_MODEL_SELECTOR="model",T.DEFAULT_MODEL_JSON_EXTENSION=`.${T.DEFAULT_SLING_MODEL_SELECTOR}.json`;const x=T,k=/(?:\/)(?:content|apps|libs|etc|etc.clientlibs|conf|mnt\/overlay)(?:\/)/,E=`(.+)/${m.JCR_CONTENT}/(.+)`,w="http://dummy";class D{static isBrowser(){return typeof window<"u"}static getContextPath(B){const L=B||this.getCurrentPathname();if(!L)return"";const z=L.match(k),W=z===null?-1:z.index||-1;return W>0?L.slice(0,W):""}static adaptPagePath(B,L){if(!B)return"";const z=D.internalize(B);return L&&z===D.sanitize(L)?"":z}static externalize(B){const L=this.getContextPath();return B.startsWith(L)?B:`${L}${B}`}static internalize(B){if(!B||typeof B!="string")return"";const L=this.getContextPath();return B.replace(new RegExp(`^${L}/`),"/")}static getMetaPropertyValue(B){let L=null;if(this.isBrowser()){const z=document.head.querySelector(`meta[property="${B}"]`);L=z?z.getAttribute("content"):null}return L}static convertToModelUrl(B){return B&&B.replace&&B.replace(/\.htm(l)?$/,x.DEFAULT_MODEL_JSON_EXTENSION)}static getCurrentPageModelUrl(){const B=this.getCurrentPathname();let L=null;return B&&(L=this.convertToModelUrl(B)||null),L}static getModelUrl(B){return B!=null&&B.replace?this.convertToModelUrl(B):this.getMetaPropertyValue(d.PAGE_MODEL_ROOT_URL)||this.getCurrentPageModelUrl()}static sanitize(B){if(!B||typeof B!="string")return null;let L=C().parse(B,!1,!0).pathname;if(L){L=this.internalize(L);const z=L.indexOf(".");z>-1&&(L=L.substr(0,z)),L=(0,_.normalize)(L)}return L}static addExtension(B,L){if(!L||L.length<1||(L.startsWith(".")||(L=`.${L}`),!B||B.length<1||B.indexOf(L)>-1))return B;let z=this.normalize(B);const W=new URL(z,w);let J=this.sanitize(W.pathname);J=W.origin===w?J:W.origin+J;let te=this._extractPathWithoutResource(W.pathname);return te=this._replaceExtension(te,L),z=(J+"."+te+W.search).replace(/\.\./g,"."),z}static _extractPathWithoutResource(B){const L=B.split(".");return L.shift(),L.join(".")}static _replaceExtension(B,L){if(B.length<1)return L;const z=B.split("/"),W=z[0].split(".");let J=W.pop();J=J?J.replace(/htm(l)?/,""):"";let te=W.join(".")+"."+J+L;return z.shift(),z.length>0&&(te+=z.join("/")),te}static addSelector(B,L){if(!L||L.length<1||(L.startsWith(".")||(L=`.${L}`),!B||B.length<1||B.indexOf(L)>-1))return B;const z=B.indexOf(".")||B.length;return z<0?B+L:B.slice(0,z)+L+B.slice(z,B.length)}static getCurrentPathname(){return this.isBrowser()?window.location.pathname:null}static getCurrentURL(){return this.isBrowser()?window.location.href:""}static dispatchGlobalCustomEvent(B,L){this.isBrowser()&&window.dispatchEvent(new CustomEvent(B,L))}static join(B){return B?this.normalize(B.filter(L=>L).join("/")):""}static normalize(B){return B?B.replace(/\/+/g,"/"):""}
83static makeAbsolute(B){return B&&typeof B=="string"?B.startsWith("/")?B:`/${B}`:""}static makeRelative(B){return B&&typeof B=="string"?B.startsWith("/")?B.slice(1):B:""}static getParentNodePath(B){if(B&&B.length>0){const L=B.lastIndexOf("/")+1;if(L<B.length)return B.substring(0,L-1)}return null}static isItem(B){return new RegExp(E).test(B)}static getNodeName(B){return(typeof B=="string"?B.replace(/\/+/g,"/").split(/\//).filter(Boolean):[]).pop()||null}static subpath(B,L){if(!B)return"";const z=D.makeRelative(B).split("/"),W=D.makeRelative(L).split("/");if(z.length<W.length)return B;let J;for(J=0;J<W.length&&z[J]===W[J];++J);return J===W.length?z.slice(J).join("/"):B}static splitByDelimitators(B,L){let z=[B];return L.forEach(W=>{let J=[];const te=D.normalize(D.makeAbsolute(W)+"/");z.forEach(re=>{if(J=J.concat(re.split(te)),re.endsWith(W)){const oe=J.splice(J.length-1,1)[0];oe!==W&&(J=J.concat(oe.split(D.makeAbsolute(W))))}J=J.filter(oe=>oe)}),z=J}),z}static _getJCRPath(B,L){return[B,m.JCR_CONTENT,L].join("/")}static splitPageContentPaths(B){if(!B&&typeof B!="string")return;const L=B.split(`/${m.JCR_CONTENT}/`),z={pagePath:L[0]};return L.length>1&&(z.itemPath=L[1]),z}static trimStrings(B,L){return L.forEach(z=>{for(;B.startsWith(z);)B=D.makeRelative(B.slice(z.length));for(;B.endsWith(z);)(B=B.slice(0,B.length-z.length)).endsWith("/")&&(B=B.slice(0,B.length-1))}),B}static _getStartStrings(B,L){let z="";return L.forEach(W=>{for(;B.startsWith(W);)B=D.makeRelative(B.slice(W.length)),z=`${z}/${W}`}),D.makeRelative(z)}static toAEMPath(B,L,z){if(this.isBrowser()&&window.location.origin===L){const W=`(/editor.html)?(/content/${z=z.replace(/^\/|\/$/g,"")})?`;if(B.indexOf(W)<0)return`${W}${B}(.html)?`}return B}}function N(U){D.dispatchGlobalCustomEvent(s.PAGE_MODEL_LOADED,{detail:{model:y()(U)}})}class F{constructor(B){this._modelManager=B,this._windowListener=L=>{L&&L.detail&&L.detail.msg?this._updateModel(L.detail.msg):console.error("EditorService.js","No message passed to cq-pagemodel-update",L)},D.isBrowser()&&window.addEventListener(s.PAGE_MODEL_UPDATE,this._windowListener)}_updateModel(B){if(!B||!B.cmd||!B.path)return void console.error("PageModelManager.js","Not enough data received to update the page model");const L=B.path,z=B.cmd,W=y()(B.data);let J,te,re;const oe=D.getParentNodePath(L);switch(z){case"replace":this._modelManager.modelStore.setData(L,W),this._modelManager._notifyListeners(L);break;case"delete":this._modelManager.modelStore.removeData(L),oe&&this._modelManager._notifyListeners(oe);break;case"insertBefore":re=!0;case"insertAfter":J=D.getNodeName(L),oe&&(te=oe+"/"+W.key,this._modelManager.modelStore.insertData(te,W.value,J,re),this._modelManager._notifyListeners(oe));break;default:console.log("EditorClient","unsupported command:",z)}N(this._modelManager.modelStore.dataMap)}destroy(){D.isBrowser()&&window.removeEventListener(s.PAGE_MODEL_UPDATE,this._windowListener)}}class V{constructor(B){this._apiHost=B||null}get apiHost(){return this._apiHost}fetch(B){if(!B){const z=`Fetching model rejected for path: ${B}`;return Promise.reject(new Error(z))}const L=this._apiHost||"";return fetch(`${L}${B}`,{credentials:"same-origin"}).then(z=>{if(z.status>=200&&z.status<300)return z.json();throw{response:z}}).catch(z=>Promise.reject(z))}destroy(){this._apiHost=null}}class A{constructor(B,L){this._data=null,this._rootPath=null,this._data={},B&&this.initialize(B,L||{}),this._pageContentDelimiter=[m.JCR_CONTENT]}initialize(B,L){L&&(this._data=L),this._rootPath=B}get rootPath(){return this._rootPath||""}get dataMap(){return this._data}setData(B,L={}){const z=D.getNodeName(B);if(z){const W=this.getData(D.getParentNodePath(B),!1);if(W&&W[m.ITEMS_PROP]){const J=y()(L),te=W[m.ITEMS_PROP]||{};te[z]=J.value,W[m.ITEMS_PROP]=te}}}getData(B,L=!0){if(!B&&typeof B!="string")return L?y()(this._data):this._data;if(B===this._rootPath||B===`${this._rootPath}/${m.JCR_CONTENT}`)return L?y()(this._data):this._data;const z=D.splitPageContentPaths(B);if(z){const W=this._getPageData(z.pagePath);if(!W||!z.itemPath)return L?y()(W):W;const J=this._findItemData(z.itemPath,W);
83if(J)return L?y()(J.data):J.data}}insertData(B,L,z,W=!1){if(L=y()(L),!B)return void console.warn(`No path provided for data: ${L}`);if(!D.isItem(B)&&this._data)return this._data[m.CHILDREN_PROP]||(this._data[m.CHILDREN_PROP]={}),void(this._data[m.CHILDREN_PROP][B]=L);const J=D.splitPageContentPaths(B);if(J&&J.itemPath){const te=this._getPageData(J.pagePath),re=this._findItemData(J.itemPath,te).parent||te||this._data,oe=D.getNodeName(J.itemPath);if(oe!=null&&re&&Object.prototype.hasOwnProperty.call(re,m.ITEMS_PROP)){const X=re[m.ITEMS_PROP];if(X){X[oe]=L;const se=re[m.ITEMS_ORDER_PROP];if(se!=null&&se.length>0&&z!=null){const le=se.indexOf(z);le>-1?se.splice(W?le:le+1,0,oe):se.push(oe)}}}}}removeData(B){if(!B)return null;if(!D.isItem(B)&&this._data&&this._data[m.CHILDREN_PROP])return delete this._data[m.CHILDREN_PROP][B],null;const L=D.splitPageContentPaths(B);if(L&&L.itemPath){const z=this._getPageData(L.pagePath),W=this._findItemData(L.itemPath,z);if(W.data&&W&&W.parent&&Object.prototype.hasOwnProperty.call(W.parent,m.ITEMS_PROP)){const{parent:J}=W,te=J[m.ITEMS_PROP],re=D.getNodeName(L.itemPath);if(re){te&&delete te[re],delete W.data,delete W.parent;const oe=J[m.ITEMS_ORDER_PROP];if(oe&&oe.length>0){const X=oe.indexOf(re);oe.splice(X,1)}return W.parentPath?W.parentPath:null}}}return console.warn(`Item for path ${B} was not found! Nothing to remove then.`),null}destroy(){this._data=null,this._rootPath=null,this._pageContentDelimiter=null}_findItemData(B,L=this._data,z=null,W=""){const J={parent:z,parentPath:W};if(!L)throw new Error("Assertion error: No data provided. This should never happen.");const te=L[m.ITEMS_PROP];if(!te)return J;for(const re in te){if(!Object.prototype.hasOwnProperty.call(te,re))continue;const oe=te[re];if(re===B)return J.data=te[re],J.key=re,J;{let X=D.subpath(B,re);if(!this._pageContentDelimiter)throw new Error("_pageContentDelimiter not set. this should never happen as its set in constructor.");{const se=D._getStartStrings(X,this._pageContentDelimiter),le=D.join([W,re,se]);if(X=D.trimStrings(X,this._pageContentDelimiter),X!==B){const he=this._findItemData(X,oe,oe,le);if(he)return he}}}}return J}_getPageData(B){if(!this._data)return;if(B===""||B===this._data[m.PATH_PROP]||B===this.rootPath)return this._data;const L=this._data[m.CHILDREN_PROP];return L&&L[B]}}class M{constructor(B){this._apiDomain=B}getApiDomain(){return this._apiDomain}getAemLibraries(){const B=document.createDocumentFragment();if(!M.isRemoteApp()||!M.isEditMode())return B;const L=this.prependDomain(M.AUTHORING_LIBRARIES.JS),z=this.prependDomain(M.AUTHORING_LIBRARIES.CSS),W=M.AUTHORING_LIBRARIES.META;return B.append(this.generateScriptElements(L)),B.append(this.generateLinkElements(z)),B.append(this.generateMetaElements(W)),B}setOnLoadCallback(B,L){const z=B.querySelectorAll("script");z.length?z[z.length-1].onload=()=>{L()}:L()}generateMetaElements(B){const L=document.createDocumentFragment();return Object.entries(B).forEach(z=>{const[W,J]=z,te=document.createElement("meta");te.setAttribute("property",W),te.content=J,L.appendChild(te)}),L}generateLinkElements(B){const L=document.createDocumentFragment();return B.forEach(z=>{const W=document.createElement("link");W.type="text/css",W.rel="stylesheet",W.href=z,L.appendChild(W)}),L}generateScriptElements(B){const L=document.createDocumentFragment();return B.forEach(z=>{const W=document.createElement("script");W.type="text/javascript",W.src=z,W.async=!1,L.appendChild(W)}),L}static isMode(B){const L=D.getMetaPropertyValue(d.WCM_MODE)===B,z=D.isBrowser()&&M.getWCMModeFromURL()===B;return L||z}static isEditMode(){return M.isMode(u.EDIT)}static isPreviewMode(){return M.isMode(u.PREVIEW)}static isRemoteApp(){try{return!!new URL(D.getCurrentURL()).searchParams.get(d.WCM_MODE)}catch{}return!1}static getWCMModeFromURL(){let B;try{return B=new URL(D.getCurrentURL()),B.searchParams.get(d.WCM_MODE)||""}catch{}return""}prependDomain(B){const L=[],z=this.getApiDomain();return B.forEach(W=>{L.push(`${z||""}${W}`)}),L}static isInEditor(){return M.isEditMode()||M.isPreviewMode()||M.isRemoteApp()}}
83M.EDITOR_CLIENTLIB_PATH="/etc.clientlibs/cq/gui/components/authoring/editors/clientlibs/",M.AUTHORING_LIBRARIES={JS:[M.EDITOR_CLIENTLIB_PATH+"internal/messaging.js",M.EDITOR_CLIENTLIB_PATH+"utils.js",M.EDITOR_CLIENTLIB_PATH+"internal/page.js",M.EDITOR_CLIENTLIB_PATH+"internal/pagemodel/messaging.js"],CSS:[M.EDITOR_CLIENTLIB_PATH+"internal/page.css"],META:{[d.WCM_DATA_TYPE]:"JSON"}};const O=new class{constructor(){this._listenersMap={},this._fetchPromises={},this._modelPaths={}}get modelClient(){if(!this._modelClient)throw new Error("ModelClient is undefined. Call initialize first!");return this._modelClient}get modelStore(){if(!this._modelStore)throw new Error("ModelStore is undefined. Call initialize first!");return this._modelStore}get clientlibUtil(){if(!this._clientlibUtil)throw new Error("AuthoringUtils is undefined. Call initialize first!");return this._clientlibUtil}initialize(U){this.initializeAsync(U);const{rootModelURL:B,rootModelPath:L}=this._modelPaths;if(!B)throw new Error("Provide root model url to initialize ModelManager.");if(!L)throw new Error("No root modelpath resolved! This should never happen.");return this._initPromise}initializeAsync(U){this.destroy();const B=this._toModelConfig(U),L=B&&B.model;this._initializeFields(B),this._initPromise=this._attachAEMLibraries();const{rootModelPath:z}=this._modelPaths;this._modelStore=new A(z,L),z&&this._setInitializationPromise(z),function(){if(j()&&D.isBrowser()){const W=window.history.pushState,J=window.history.replaceState;window.addEventListener("popstate",te=>{var re;const oe=te==null?void 0:te.target;H(((re=oe==null?void 0:oe.location)===null||re===void 0?void 0:re.pathname)||null)}),window.history.pushState=(te,re,oe)=>(H(oe),W.apply(history,[te,re,oe])),window.history.replaceState=(te,re,oe)=>(H(oe||null),J.apply(history,[te,re,oe]))}}()}_attachAEMLibraries(){if(!D.isBrowser())return Promise.resolve();const U=this.clientlibUtil.getAemLibraries();if(!U.hasChildNodes())return Promise.resolve();let B;const L=new Promise(z=>{B=z});return this.clientlibUtil.setOnLoadCallback(U,B),window.document.head.appendChild(U),L}_initializeFields(U){this._listenersMap={},this._fetchPromises={},this._initPromise=null,this._modelClient=U&&U.modelClient||new V,this._errorPageRoot=U&&U.errorPageRoot||void 0,this._editorClient=new F(this),this._clientlibUtil=new M(this.modelClient.apiHost),this._modelPaths=this._getPathsForModel(U)}_getPathsForModel(U){const B=U==null?void 0:U.path,L=D.getMetaPropertyValue(d.PAGE_MODEL_ROOT_URL),z=D.internalize(L),W=this._isRemoteApp()?"":D.getCurrentPathname(),J=W&&D.sanitize(W)||"",te=B||z||J;return{currentPathname:W,metaPropertyModelURL:z,rootModelURL:te,rootModelPath:D.sanitize(te)||""}}_fetchPageModelFromStore(){const U=this.modelStore.getData();return N(U),U}_setInitializationPromise(U){const{rootModelURL:B}=this._modelPaths;this._initPromise=this._initPromise.then(()=>this._checkDependencies()).then(()=>{const L=this.modelStore.getData(U);return L&&Object.keys(L).length>0?(N(L),L):B?this._fetchData(B).then(z=>{try{return this.modelStore.initialize(U,z),this._fetchActivePageModel(z)||this._fetchPageModelFromStore()}catch(W){console.error(`Error on initialization - ${W}`)}}):void 0})}_fetchActivePageModel(U){const{currentPathname:B,metaPropertyModelURL:L}=this._modelPaths,z=B&&D.sanitize(B)||"";if(B&&z&&!I(B)&&(J=L,(W=B)&&J&&D.sanitize(W)!==D.sanitize(J))&&!function(te,re){const oe=D.sanitize(re);return!!oe&&!!(te&&re&&te[m.CHILDREN_PROP]&&te[m.CHILDREN_PROP][oe])}(U,B))return this._fetchData(B).then(te=>(this.modelStore.insertData(z,te),this._fetchPageModelFromStore())).catch(te=>{console.warn("caught",te)});if(B&&I(B))return this._fetchPageModelFromStore();if(!D.isBrowser())throw new Error(`Attempting to retrieve model data from a non-browser.
84                Please provide the initial data with the property key model`);var W,J}get rootPath(){return this.modelStore.rootPath}getData(U){let B="",L=!1;return typeof U=="string"?B=U:U&&(B=U.path||"",L=!!U.forceReload),(this._initPromise||Promise.resolve()).then(()=>this._checkDependencies()).then(()=>
84{if(!L){const z=this.modelStore.getData(B);if(z)return Promise.resolve(z)}if(D.isItem(B)){const{pageData:z,pagePath:W}=this._getParentPage(B);if(!z)return this._fetchData(W).then(J=>(this._storeData(W,J),this.modelStore.getData(B)))}return this._fetchData(B).then(z=>this._storeData(B,z))})}_fetchData(U){if(Object.prototype.hasOwnProperty.call(this._fetchPromises,U))return this._fetchPromises[U];if(this.modelClient)return new Promise((B,L)=>{const z=this.modelClient.fetch(this._toModelPath(U));this._fetchPromises[U]=z,z.then(W=>{delete this._fetchPromises[U],this._isRemoteApp()&&N(W),B(W)}).catch(W=>{if(delete this._fetchPromises[U],this._errorPageRoot!==void 0){const J=typeof W!="string"&&W.response?W.response.status:"500",te=this._errorPageRoot+J+".model.json";U.indexOf(m.JCR_CONTENT)===-1&&U!==te?this._fetchData(te).then(re=>{re[m.PATH_PROP]=D.sanitize(U)||U,B(re)}).catch(L):L(W)}else L(W)})});throw new Error("ModelClient not initialized!")}_notifyListeners(U){if(U=D.adaptPagePath.call(this,U),!this._listenersMap)throw new Error("ListenersMap is undefined.");const B=this._listenersMap[U];B&&B.length&&B.forEach(L=>{try{L()}catch(z){console.error(`Error in listener ${B} at path ${U}: ${z}`)}})}addListener(U,B){var L;if(!U||typeof U!="string"||typeof B!="function")return;const z=D.adaptPagePath(U,(L=this.modelStore)===null||L===void 0?void 0:L.rootPath);this._listenersMap[z]=this._listenersMap[U]||[],this._listenersMap[z].push(B)}removeListener(U,B){var L;if(!U||typeof U!="string"||typeof B!="function")return;const z=D.adaptPagePath(U,(L=this.modelStore)===null||L===void 0?void 0:L.rootPath),W=this._listenersMap[z];if(W){const J=W.indexOf(B);J!==-1&&W.splice(J,1)}}destroy(){this._modelClient&&this._modelClient.destroy&&this._modelClient.destroy(),this._modelStore&&this._modelStore.destroy&&this._modelStore.destroy(),this._editorClient&&this._editorClient.destroy&&this._editorClient.destroy()}_storeData(U,B){let L=!1;return this._modelStore&&(L=D.isItem(U)),B&&Object.keys(B).length>0&&(this.modelStore.insertData(U,B),this._notifyListeners(U)),L||this._notifyListeners(""),B}_toModelPath(U){let B=D.addSelector(U,"model");return B=D.addExtension(B,"json"),B=D.externalize(B),D.makeAbsolute(B)}_toModelConfig(U){return U&&typeof U=="string"?{path:U}:U||{}}_checkDependencies(){return this.modelClient?this.modelStore?Promise.resolve():Promise.reject("No ModelManager registered."):Promise.reject("No ModelClient registered.")}_getParentPage(U){const B=D.splitPageContentPaths(U),L=(B==null?void 0:B.pagePath)||"";return{pageData:this.modelStore.getData(L),pagePath:L}}_isRemoteApp(){const U=this.modelClient.apiHost||"";return D.isBrowser()&&U.length>0&&D.getCurrentURL()!==U}};class R{constructor(){}}function I(U){const B=function(){const L=D.getMetaPropertyValue(d.PAGE_MODEL_ROUTE_FILTERS);return L?L.split(","):[]}();for(let L=0,z=B.length;L<z;L++)if(new RegExp(B[L]).test(U))return!0;return!1}function j(){if(!D.isBrowser())return!1;const U=D.getMetaPropertyValue(d.PAGE_MODEL_ROUTER);return!U||R.DISABLED!==U}function H(U){if(!j())return;const B=function(L){const z=L||D.isBrowser()&&window.location.pathname;return z?D.sanitize(z):null}(U);B&&B!=="/"&&!I(B)&&function(L){O.getData({path:L}).then(z=>{D.dispatchGlobalCustomEvent(s.PAGE_MODEL_ROUTE_CHANGED,{detail:{model:z}})})}(B)}R.DISABLED="disabled",R.CONTENT_PATH="path"})(),a})())})(aemSpaPageModelManager);var aemSpaPageModelManagerExports=aemSpaPageModelManager.exports;const patchRouter=t=>{const o=n=>[["%2F","/"],["//","/"]].reduce((a,i)=>a.replaceAll(i[0],i[1]),n||""),r=t.resolve.bind(t);t.resolve=(n,a)=>{var s;const i=r(n,a);return((s=i.meta)==null?void 0:s.patchCleanPath)!==!0?i:{...i,href:o(i.href),path:o(i.path),fullPath:o(i.fullPath)}};const e=n=>a=>{var s;const i=t.resolve(a);return((s=i.meta)==null?void 0:s.patchCleanPath)!==!0?n(a):n({path:o(i.fullPath),query:i.query,hash:i.hash})};return t.push=e(t.push.bind(t)),t.replace=e(t.replace.bind(t)),t};var define_process_env_default={};/**
85 * @license
86 * Copyright 2017 Google LLC
87 *
88 * Licensed under the Apache License, Version 2.0 (the "License");
89 * you may not use this file except in compliance with the License.
90 * You may obtain a copy of the License at
91 *
92 *   http://www.apache.org/licenses/LICENSE-2.0
93 *
94 * Unless required by applicable law or agreed to in writing, software
95 * distributed under the License is distributed on an "AS IS" BASIS,
96 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
97 * See the License for the specific language governing permissions and
98 * limitations under the License.
99 */const stringToByteArray$1=function(t){const o=[];let r=0;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);n<128?o[r++]=n:n<2048?(o[r++]=n>>6|192,o[r++]=n&63|128):(n&64512)===55296&&e+1<t.length&&(t.charCodeAt(e+1)&64512)===56320?(n=65536+((n&1023)<<10)+(t.charCodeAt(++e)&1023),o[r++]=n>>18|240,o[r++]=n>>12&63|128,o[r++]=n>>6&63|128,o[r++]=n&63|128):(o[r++]=n>>12|224,o[r++]=n>>6&63|128,o[r++]=n&63|128)}return o},byteArrayToString=function(t){const o=[];let r=0,e=0;for(;r<t.length;){const n=t[r++];if(n<128)o[e++]=String.fromCharCode(n);else if(n>191&&n<224){const a=t[r++];o[e++]=String.fromCharCode((n&31)<<6|a&63)}else if(n>239&&n<365){const a=t[r++],i=t[r++],s=t[r++],l=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536;o[e++]=String.fromCharCode(55296+(l>>10)),o[e++]=String.fromCharCode(56320+(l&1023))}else{const a=t[r++],i=t[r++];o[e++]=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63)}}return o.join("")},base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,o){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=o?this.byteToCharMapWebSafe_:this.byteToCharMap_,e=[];for(let n=0;n<t.length;n+=3){const a=t[n],i=n+1<t.length,s=i?t[n+1]:0,l=n+2<t.length,d=l?t[n+2]:0,c=a>>2,u=(a&3)<<4|s>>4;let f=(s&15)<<2|d>>6,m=d&63;l||(m=64,i||(f=64)),e.push(r[c],r[u],r[f],r[m])}return e.join("")},encodeString(t,o){return this.HAS_NATIVE_SUPPORT&&!o?btoa(t):this.encodeByteArray(stringToByteArray$1(t),o)},decodeString(t,o){return this.HAS_NATIVE_SUPPORT&&!o?atob(t):byteArrayToString(this.decodeStringToByteArray(t,o))},decodeStringToByteArray(t,o){this.init_();const r=o?this.charToByteMapWebSafe_:this.charToByteMap_,e=[];for(let n=0;n<t.length;){const a=r[t.charAt(n++)],s=n<t.length?r[t.charAt(n)]:0;++n;const d=n<t.length?r[t.charAt(n)]:64;++n;const u=n<t.length?r[t.charAt(n)]:64;if(++n,a==null||s==null||d==null||u==null)throw new DecodeBase64StringError;const f=a<<2|s>>4;if(e.push(f),d!==64){const m=s<<4&240|d>>2;if(e.push(m),u!==64){const b=d<<6&192|u;e.push(b)}}}return e},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64Encode=function(t){const o=stringToByteArray$1(t);return base64.encodeByteArray(o,!0)},base64urlEncodeWithoutPadding=function(t){return base64Encode(t).replace(/\./g,"")},base64Decode=function(t){try{return base64.decodeString(t,!0)}catch(o){console.error("base64Decode failed: ",o)}return null};/**
100 * @license
101 * Copyright 2022 Google LLC
102 *
103 * Licensed under the Apache License, Version 2.0 (the "License");
104 * you may not use this file except in compliance with the License.
105 * You may obtain a copy of the License at
106 *
107 *   http://www.apache.org/licenses/LICENSE-2.0
108 *
109 * Unless required by applicable law or agreed to in writing, softw
109are
110 * distributed under the License is distributed on an "AS IS" BASIS,
111 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112 * See the License for the specific language governing permissions and
113 * limitations under the License.
114 */function getGlobal$1(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
115 * @license
116 * Copyright 2022 Google LLC
117 *
118 * Licensed under the Apache License, Version 2.0 (the "License");
119 * you may not use this file except in compliance with the License.
120 * You may obtain a copy of the License at
121 *
122 *   http://www.apache.org/licenses/LICENSE-2.0
123 *
124 * Unless required by applicable law or agreed to in writing, software
125 * distributed under the License is distributed on an "AS IS" BASIS,
126 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127 * See the License for the specific language governing permissions and
128 * limitations under the License.
129 */const getDefaultsFromGlobal=()=>getGlobal$1().__FIREBASE_DEFAULTS__,getDefaultsFromEnvVariable=()=>{if(typeof process>"u"||typeof define_process_env_default>"u")return;const t=define_process_env_default.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},getDefaultsFromCookie=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const o=t&&base64Decode(t[1]);return o&&JSON.parse(o)},getDefaults=()=>{try{return getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},getDefaultAppConfig=()=>{var t;return(t=getDefaults())===null||t===void 0?void 0:t.config};/**
130 * @license
131 * Copyright 2017 Google LLC
132 *
133 * Licensed under the Apache License, Version 2.0 (the "License");
134 * you may not use this file except in compliance with the License.
135 * You may obtain a copy of the License at
136 *
137 *   http://www.apache.org/licenses/LICENSE-2.0
138 *
139 * Unless required by applicable law or agreed to in writing, software
140 * distributed under the License is distributed on an "AS IS" BASIS,
141 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
142 * See the License for the specific language governing permissions and
143 * limitations under the License.
144 */class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((o,r)=>{this.resolve=o,this.reject=r})}wrapCallback(o){return(r,e)=>{r?this.reject(r):this.resolve(e),typeof o=="function"&&(this.promise.catch(()=>{}),o.length===1?o(r):o(r,e))}}}function isIndexedDBAvailable(){try{return typeof indexedDB=="object"}catch{return!1}}function validateIndexedDBOpenable(){return new Promise((t,o)=>{try{let r=!0;const e="validate-browser-context-for-indexeddb-analytics-module",n=self.indexedDB.open(e);n.onsuccess=()=>{n.result.close(),r||self.indexedDB.deleteDatabase(e),t(!0)},n.onupgradeneeded=()=>{r=!1},n.onerror=()=>{var a;o(((a=n.error)===null||a===void 0?void 0:a.message)||"")}}catch(r){o(r)}})}function areCookiesEnabled(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
145 * @license
146 * Copyright 2017 Google LLC
147 *
148 * Licensed under the Apache License, Version 2.0 (the "License");
149 * you may not use this file except in compliance with the License.
150 * You may obtain a copy of the License at
151 *
152 *   http://www.apache.org/licenses/LICENSE-2.0
153 *
154 * Unless required by applicable law or agreed to in writing, software
155 * distributed under the License is distributed on an "AS IS" BASIS,
156 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
157 * See the License for the specific language governing permissions and
158 * limitations under the License.
159 */const ERROR_NAME="FirebaseError";class FirebaseError extends Error{constructor(o,r,e){super(r),this.code=o,this.customData=e,this.name=ERROR_NAME,Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(o,r,e){this.service=o,this.serviceName=r,this.errors=e}create(o,...r){const e=r[0]||{},n=`${this.service}/${o}`,a=this.errors[o],i=a?replaceTemplate(a,e):"Error",s=`${this.serviceName}: ${i} (${n}).`;return new FirebaseError(n,s,e)}}function replaceTemplate(t,o){return t.replace(PATTERN,(r,e)=>{const n=o[e];return n!=null?String(n):`<${e}?>`})}const PATTERN=/\{\$([^}]+)}/g;
159function deepEqual(t,o){if(t===o)return!0;const r=Object.keys(t),e=Object.keys(o);for(const n of r){if(!e.includes(n))return!1;const a=t[n],i=o[n];if(isObject$b(a)&&isObject$b(i)){if(!deepEqual(a,i))return!1}else if(a!==i)return!1}for(const n of e)if(!r.includes(n))return!1;return!0}function isObject$b(t){return t!==null&&typeof t=="object"}/**
160 * @license
161 * Copyright 2021 Google LLC
162 *
163 * Licensed under the Apache License, Version 2.0 (the "License");
164 * you may not use this file except in compliance with the License.
165 * You may obtain a copy of the License at
166 *
167 *   http://www.apache.org/licenses/LICENSE-2.0
168 *
169 * Unless required by applicable law or agreed to in writing, software
170 * distributed under the License is distributed on an "AS IS" BASIS,
171 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
172 * See the License for the specific language governing permissions and
173 * limitations under the License.
174 */function getModularInstance(t){return t&&t._delegate?t._delegate:t}class Component{constructor(o,r,e){this.name=o,this.instanceFactory=r,this.type=e,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(o){return this.instantiationMode=o,this}setMultipleInstances(o){return this.multipleInstances=o,this}setServiceProps(o){return this.serviceProps=o,this}setInstanceCreatedCallback(o){return this.onInstanceCreated=o,this}}/**
175 * @license
176 * Copyright 2019 Google LLC
177 *
178 * Licensed under the Apache License, Version 2.0 (the "License");
179 * you may not use this file except in compliance with the License.
180 * You may obtain a copy of the License at
181 *
182 *   http://www.apache.org/licenses/LICENSE-2.0
183 *
184 * Unless required by applicable law or agreed to in writing, software
185 * distributed under the License is distributed on an "AS IS" BASIS,
186 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
187 * See the License for the specific language governing permissions and
188 * limitations under the License.
189 */const DEFAULT_ENTRY_NAME$1="[DEFAULT]";/**
190 * @license
191 * Copyright 2019 Google LLC
192 *
193 * Licensed under the Apache License, Version 2.0 (the "License");
194 * you may not use this file except in compliance with the License.
195 * You may obtain a copy of the License at
196 *
197 *   http://www.apache.org/licenses/LICENSE-2.0
198 *
199 * Unless required by applicable law or agreed to in writing, software
200 * distributed under the License is distributed on an "AS IS" BASIS,
201 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202 * See the License for the specific language governing permissions and
203 * limitations under the License.
204 */class Provider{constructor(o,r){this.name=o,this.container=r,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(o){const r=this.normalizeInstanceIdentifier(o);if(!this.instancesDeferred.has(r)){const e=new Deferred;if(this.instancesDeferred.set(r,e),this.isInitialized(r)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:r});n&&e.resolve(n)}catch{}}return this.instancesDeferred.get(r).promise}getImmediate(o){var r;const e=this.normalizeInstanceIdentifier(o==null?void 0:o.identifier),n=(r=o==null?void 0:o.optional)!==null&&r!==void 0?r:!1;if(this.isInitialized(e)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:e})}catch(a){if(n)return null;throw a}else{if(n)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(o){if(o.name!==this.name)throw Error(`Mismatching Component ${o.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=o,!!this.shouldAutoInitialize()){if(isComponentEager(o))try{this.getOrInitializeService({instanceIdentifier:DEFAULT_ENTRY_NAME$1})}catch{}for(const[r,e]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(r);try{const a=this.getOrInitializeService({instanceIdentifier:n});e.resolve(a)}catch{}}}}clearInstance(o=DEFAULT_ENTRY_NAME$1){this.instancesDeferred.delete(o),this.instancesOptions.delete(o),this.instances.delete(o)}async delete(){const o=Array.from(this.instances.values());await Promise.all([...o.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...o.filter(r=>"_delete"in r).map(r=>r._delete())])}isComponentSet(){return this.component!=null}isInitialized(o=DEFAULT_ENTRY_NAME$1){return this.instances.has(o)}getOptions(o=DEFAULT_ENTRY_NAME$1){return this.instancesOptions.get(o)||{}}initialize(o={}){const{options:r={}}=o,e=this.normalizeInstanceIdentifier(o.instanceIdentifier);if(this.isInitialized(e))throw Error(`${this.name}(${e}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const n=this.getOrInitializeService({instanceIdentifier:e,options:r});for(const[a,i]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(a);e===s&&i.resolve(n)}return n}onInit(o,r){var e;const n=this.normalizeInstanceIdentifier(r),a=(e=this.onInitCallbacks.get(n))!==null&&e!==void 0?e:new Set;a.add(o),this.onInitCallbacks.set(n,a);const i=this.instances.get(n);return i&&o(i,n),()=>{a.delete(o)}}invokeOnInitCallbacks(o,r){const e=this.onInitCallbacks.get(r);if(e)for(const n of e)try{n(o,r)}catch{}}getOrInitializeService({instanceIdentifier:o,options:r={}}){let e=this.instances.get(o);if(!e&&this.component&&(e=this.component.instanceFactory(this.container,{instanceIdentifier:normalizeIdentifierForFactory(o),options:r}),this.instances.set(o,e),this.instancesOptions.set(o,r),this.invokeOnInitCallbacks(e,o),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,o,e)}catch{}return e||null}normalizeInstanceIdentifier(o=DEFAULT_ENTRY_NAME$1){return this.component?this.component.multipleInstances?o:DEFAULT_ENTRY_NAME$1:o}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function normalizeIdentifierForFactory(t){return t===DEFAULT_ENTRY_NAME$1?void 0:t}function isComponentEager(t){return t.instantiationMode==="EAGER"}/**
205 * @license
206 * Copyright 2019 Google LLC
207 *
208 * Licensed under the Apache License, Version 2.0 (the "License");
209 * you may not use this file except in compliance with the License.
210 * You may obtain a copy of the License at
211 *
212 *   http://www.apache.org/licenses/LICENSE-2.0
213 *
214 * Unless required by applicable law or agreed to in writing, software
215 * distributed under the License is distributed on an "AS IS" BASIS,
216 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
217 * See the License for the specific language governing permissions and
218 * limitations under the License.
219 */class ComponentContainer{constructor(o){this.name=o,this.providers=new Map}addComponent(o){const r=this.getProvider(o.name);if(r.isComponentSet())throw new Error(`Component ${o.name} has already been registered with ${this.name}`);r.setComponent(o)}addOrOverwriteComponent(o){this.getProvider(o.name).isComponentSet()&&this.providers.delete(o.name),this.addComponent(o)}getProvider(o){if(this.providers.has(o))return this.providers.get(o);const r=new Provider(o,this);return this.providers.set(o,r),r}getProviders(){return Array.from(this.providers.values())}}/**
220 * @license
221 * Copyright 2017 Google LLC
222 *
223 * Licensed under the Apache License, Version 2.0 (the "License");
224 * you may not use this file except in compliance with the License.
225 * You may obtain a copy of the License at
226 *
227 *   http://www.apache.org/licenses/LICENSE-2.0
228 *
229 * Unless required by applicable law or agreed to in writing, software
230 * distributed under the License is distributed on an "AS IS" BASIS,
231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
232 * See the License for the specific language governing permissions and
233 * limitations under the License.
234 */var LogLevel;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(LogLevel||(LogLevel={}));const levelStringToEnum={debug:LogLevel.DEBUG,verbose:LogLevel.VERBOSE,info:LogLevel.INFO,warn:LogLevel.WARN,error:LogLevel.ERROR,silent:LogLevel.SILENT},defaultLogLevel=LogLevel.INFO,ConsoleMethod={[LogLevel.DEBUG]:"log",[LogLevel.VERBOSE]:"log",[LogLevel.INFO]:"info",[LogLevel.WARN]:"warn",[LogLevel.ERROR]:"error"},defaultLogHandler=(t,o,...r)=>{if(o<t.logLevel)return;const e=new Date().toISOString(),n=ConsoleMethod[o];if(n)console[n](`[${e}]  ${t.name}:`,...r);else throw new Error(`Attempted to log a message with an invalid logType (value: ${o})`)};class Logger{constructor(o){this.name=o,this._logLevel=defaultLogLevel,this._logHandler=defaultLogHandler,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(o){if(!(o in LogLevel))throw new TypeError(`Invalid value "${o}" assigned to \`logLevel\``);this._logLevel=o}setLogLevel(o){this._logLevel=typeof o=="string"?levelStringToEnum[o]:o}get logHandler(){return this._logHandler}set logHandler(o){if(typeof o!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=o}get userLogHandler(){return this._userLogHandler}set userLogHandler(o){this._userLogHandler=o}debug(...o){this._userLogHandler&&this._userLogHandler(this,LogLevel.DEBUG,...o),this._logHandler(this,LogLevel.DEBUG,...o)}log(...o){this._userLogHandler&&this._userLogHandler(this,LogLevel.VERBOSE,...o),this._logHandler(this,LogLevel.VERBOSE,...o)}info(...o){this._userLogHandler&&this._userLogHandler(this,LogLevel.INFO,...o),this._logHandler(this,LogLevel.INFO,...o)}warn(...o){this._userLogHandler&&this._userLogHandler(this,LogLevel.WARN,...o),this._logHandler(this,LogLevel.WARN,...o)}error(...o){this._userLogHandler&&this._userLogHandler(this,LogLevel.ERROR,...o),this._logHandler(this,LogLevel.ERROR,...o)}}const instanceOfAny$1=(t,o)=>o.some(r=>t instanceof r);let idbProxyableTypes$1,cursorAdvanceMethods$1;function getIdbProxyableTypes$1(){return idbProxyableTypes$1||(idbProxyableTypes$1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods$1(){return cursorAdvanceMethods$1||(cursorAdvanceMethods$1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap$1=new WeakMap,transactionDoneMap$1=new WeakMap,transactionStoreNamesMap$1=new WeakMap,transformCache$1=new WeakMap,reverseTransformCache$1=new WeakMap;function promisifyRequest$1(t){const o=new Promise((r,e)=>{const n=()=>{t.removeEventListener("success",a),t.removeEventListener("error",i)},a=()=>{r(wrap$2(t.result)),n()},i=()=>{e(t.error),n()};t.addEventListener("success",a),t.addEventListener("error",i)});return o.then(r=>{r instanceof IDBCursor&&cursorRequestMap$1.set(r,t)}).catch(()=>{}),reverseTransformCache$1.set(o,t),o}function cacheDonePromiseForTransaction$1(t){if(transactionDoneMap$1.has(t))return;const o=new Promise((r,e)=>{const n=()=>{t.removeEventListener("complete",a),t.removeEventListener("error",i),t.removeEventListener("abort",i)},a=()=>{r(),n()},i=()=>{e(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",a),t.addEventListener("error",i),t.addEventListener("abort",i)});transactionDoneMap$1.set(t,o)}let idbProxyTraps$1={get(t,o,r){if(t instanceof IDBTransaction){if(o==="done")return transactionDoneMap$1.get(t);if(o==="objectStoreNames")return t.objectStoreNames||transactionStoreNamesMap$1.get(t);if(o==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wrap$2(t[o])},set(t,o,r){return t[o]=r,!0},has(t,o){return t instanceof IDBTransaction&&(o==="done"||o==="store")?!0:o in t}};function replaceTraps$1(t){idbProxyTraps$1=t(idbProxyTraps$1)}function wrapFunction$1(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(o,...r){const e=t.call(unwrap$1(this),o,...r);return transactionStoreNamesMap$1.set(e,o.sort?o.sort():[o]),wrap$2(e)}:getCursorAdvanceMethods$1().includes(t)?function(...o){return t.apply(unwrap$1(this),o),wrap$2(cursorRequestMap$1.get(this))}:function(...o){return wrap$2(t.apply(unwrap$1(this),o))}}function transformCachableValue$1(t){return typeof t=="function"?wrapFunction$1(t):(t instanceof IDBTransaction&&cacheDonePromiseForTransaction$1(t),instanceOfAny$1(t,getIdbProxyableTypes$1())?new Proxy(t,idbProxyTraps$1):t)}function wrap$2(t){if(t instanceof IDBRequest)return promisifyRequest$1(t);if(transformCache$1.has(t))return transformCache$1.get(t);const o=transformCachableValue$1(t);return o!==t&&(transformCache$1.set(t,o),reverseTransformCache$1.set(o,t)),o}const unwrap$1=t=>reverseTransformCache$1.get(t);function openDB$1(t,o,{blocked:r,upgrade:e,blocking:n,terminated:a}={}){const i=indexedDB.open(t,o),s=wrap$2(i);return e&&i.addEventListener("upgradeneeded",l=>{e(wrap$2(i.result),l.oldVersion,l.newVersion,wrap$2(i.transaction),l)}),r&&i.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),s.then(l=>{a&&l.addEventListener("close",()=>a()),n&&l.addEventListener("versionchange",d=>n(d.oldVersion,d.newVersion,d))}).catch(()=>{}),s}const readMethods$1=["get","getKey","getAll","getAllKeys","count"],writeMethods$1=["put","add","delete","clear"],cachedMethods$1=new Map;function getMethod$1(t,o){if(!(t instanceof IDBDatabase&&!(o in t)&&typeof o=="str
234ing"))return;if(cachedMethods$1.get(o))return cachedMethods$1.get(o);const r=o.replace(/FromIndex$/,""),e=o!==r,n=writeMethods$1.includes(r);if(!(r in(e?IDBIndex:IDBObjectStore).prototype)||!(n||readMethods$1.includes(r)))return;const a=async function(i,...s){const l=this.transaction(i,n?"readwrite":"readonly");let d=l.store;return e&&(d=d.index(s.shift())),(await Promise.all([d[r](...s),n&&l.done]))[0]};return cachedMethods$1.set(o,a),a}replaceTraps$1(t=>({...t,get:(o,r,e)=>getMethod$1(o,r)||t.get(o,r,e),has:(o,r)=>!!getMethod$1(o,r)||t.has(o,r)}));/**
235 * @license
236 * Copyright 2019 Google LLC
237 *
238 * Licensed under the Apache License, Version 2.0 (the "License");
239 * you may not use this file except in compliance with the License.
240 * You may obtain a copy of the License at
241 *
242 *   http://www.apache.org/licenses/LICENSE-2.0
243 *
244 * Unless required by applicable law or agreed to in writing, software
245 * distributed under the License is distributed on an "AS IS" BASIS,
246 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
247 * See the License for the specific language governing permissions and
248 * limitations under the License.
249 */class PlatformLoggerServiceImpl{constructor(o){this.container=o}getPlatformInfoString(){return this.container.getProviders().map(r=>{if(isVersionServiceProvider(r)){const e=r.getImmediate();return`${e.library}/${e.version}`}else return null}).filter(r=>r).join(" ")}}function isVersionServiceProvider(t){const o=t.getComponent();return(o==null?void 0:o.type)==="VERSION"}const name$o="@firebase/app",version$1$1="0.9.13";/**
250 * @license
251 * Copyright 2019 Google LLC
252 *
253 * Licensed under the Apache License, Version 2.0 (the "License");
254 * you may not use this file except in compliance with the License.
255 * You may obtain a copy of the License at
256 *
257 *   http://www.apache.org/licenses/LICENSE-2.0
258 *
259 * Unless required by applicable law or agreed to in writing, software
260 * distributed under the License is distributed on an "AS IS" BASIS,
261 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
262 * See the License for the specific language governing permissions and
263 * limitations under the License.
264 */const logger=new Logger("@firebase/app"),name$n="@firebase/app-compat",name$m="@firebase/analytics-compat",name$l="@firebase/analytics",name$k="@firebase/app-check-compat",name$j="@firebase/app-check",name$i="@firebase/auth",name$h="@firebase/auth-compat",name$g="@firebase/database",name$f="@firebase/database-compat",name$e="@firebase/functions",name$d="@firebase/functions-compat",name$c="@firebase/installations",name$b="@firebase/installations-compat",name$a="@firebase/messaging",name$9="@firebase/messaging-compat",name$8="@firebase/performance",name$7="@firebase/performance-compat",name$6="@firebase/remote-config",name$5="@firebase/remote-config-compat",name$4="@firebase/storage",name$3$1="@firebase/storage-compat",name$2$1="@firebase/firestore",name$1$1="@firebase/firestore-compat",name$p="firebase";/**
265 * @license
266 * Copyright 2019 Google LLC
267 *
268 * Licensed under the Apache License, Version 2.0 (the "License");
269 * you may not use this file except in compliance with the License.
270 * You may obtain a copy of the License at
271 *
272 *   http://www.apache.org/licenses/LICENSE-2.0
273 *
274 * Unless required by applicable law or agreed to in writing, software
275 * distributed under the License is distributed on an "AS IS" BASIS,
276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
277 * See the License for the specific language governing permissions and
278 * limitations under the License.
279 */const DEFAULT_ENTRY_NAME="[DEFAULT]",PLATFORM_LOG_STRING={[name$o]:"fire-core",[name$n]:"fire-core-compat",[name$l]:"fire-analytics",[name$m]:"fire-analytics-compat",[name$j]:"fire-app-check",[name$k]:"fire-app-check-compat",[name$i]:"fire-auth",[name$h]:"fire-auth-compat",[name$g]:"fire-rtdb",[name$f]:"fire-rtdb-compat",[name$e]:"fire-fn",[name$d]:"fire-fn-compat",[name$c]:"fire-iid",[name$b]:"fire-iid-compat",[name$a]:"fire-fcm",[name$9]:"fire-fcm-compat",[name$8]:"fire-perf",[name$7]:"fire-perf-compat",[name$6]:"fire-rc",[name$5]:"fire-rc-compat",[name$4]:"fire-g
279cs",[name$3$1]:"fire-gcs-compat",[name$2$1]:"fire-fst",[name$1$1]:"fire-fst-compat","fire-js":"fire-js",[name$p]:"fire-js-all"};/**
280 * @license
281 * Copyright 2019 Google LLC
282 *
283 * Licensed under the Apache License, Version 2.0 (the "License");
284 * you may not use this file except in compliance with the License.
285 * You may obtain a copy of the License at
286 *
287 *   http://www.apache.org/licenses/LICENSE-2.0
288 *
289 * Unless required by applicable law or agreed to in writing, software
290 * distributed under the License is distributed on an "AS IS" BASIS,
291 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
292 * See the License for the specific language governing permissions and
293 * limitations under the License.
294 */const _apps=new Map,_components=new Map;function _addComponent(t,o){try{t.container.addComponent(o)}catch(r){logger.debug(`Component ${o.name} failed to register with FirebaseApp ${t.name}`,r)}}function _registerComponent(t){const o=t.name;if(_components.has(o))return logger.debug(`There were multiple attempts to register component ${o}.`),!1;_components.set(o,t);for(const r of _apps.values())_addComponent(r,t);return!0}function _getProvider(t,o){const r=t.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),t.container.getProvider(o)}/**
295 * @license
296 * Copyright 2019 Google LLC
297 *
298 * Licensed under the Apache License, Version 2.0 (the "License");
299 * you may not use this file except in compliance with the License.
300 * You may obtain a copy of the License at
301 *
302 *   http://www.apache.org/licenses/LICENSE-2.0
303 *
304 * Unless required by applicable law or agreed to in writing, software
305 * distributed under the License is distributed on an "AS IS" BASIS,
306 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
307 * See the License for the specific language governing permissions and
308 * limitations under the License.
309 */const ERRORS={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
309d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},ERROR_FACTORY$2=new ErrorFactory("app","Firebase",ERRORS);/**
310 * @license
311 * Copyright 2019 Google LLC
312 *
313 * Licensed under the Apache License, Version 2.0 (the "License");
314 * you may not use this file except in compliance with the License.
315 * You may obtain a copy of the License at
316 *
317 *   http://www.apache.org/licenses/LICENSE-2.0
318 *
319 * Unless required by applicable law or agreed to in writing, software
320 * distributed under the License is distributed on an "AS IS" BASIS,
321 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
322 * See the License for the specific language governing permissions and
323 * limitations under the License.
324 */class FirebaseAppImpl{constructor(o,r,e){this._isDeleted=!1,this._options=Object.assign({},o),this._config=Object.assign({},r),this._name=r.name,this._automaticDataCollectionEnabled=r.automaticDataCollectionEnabled,this._container=e,this.container.addComponent(new Component("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(o){this.checkDestroyed(),this._automaticDataCollectionEnabled=o}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(o){this._isDeleted=o}checkDestroyed(){if(this.isDeleted)throw ERROR_FACTORY$2.create("app-deleted",{appName:this._name})}}function initializeApp(t,o={}){let r=t;typeof o!="object"&&(o={name:o});const e=Object.assign({name:DEFAULT_ENTRY_NAME,automaticDataCollectionEnabled:!1},o),n=e.name;if(typeof n!="string"||!n)throw ERROR_FACTORY$2.create("bad-app-name",{appName:String(n)});if(r||(r=getDefaultAppConfig()),!r)throw ERROR_FACTORY$2.create("no-options");const a=_apps.get(n);if(a){if(deepEqual(r,a.options)&&deepEqual(e,a.config))return a;throw ERROR_FACTORY$2.create("duplicate-app",{appName:n})}const i=new ComponentContainer(n);for(const l of _components.values())i.addComponent(l);const s=new FirebaseAppImpl(r,e,i);return _apps.set(n,s),s}function getApp(t=DEFAULT_ENTRY_NAME){const o=_apps.get(t);if(!o&&t===DEFAULT_ENTRY_NAME&&getDefaultAppConfig())return initializeApp();if(!o)throw ERROR_FACTORY$2.create("no-app",{appName:t});return o}function registerVersion(t,o,r){var e;let n=(e=PLATFORM_LOG_STRING[t])!==null&&e!==void 0?e:t;r&&(n+=`-${r}`);const a=n.match(/\s|\//),i=o.match(/\s|\//);if(a||i){const s=[`Unable to register library "${n}" with version "${o}":`];a&&s.push(`library name "${n}" contains illegal characters (whitespace or "/")`),a&&i&&s.push("and"),i&&s.push(`version name "${o}" contains illegal characters (whitespace or "/")`),logger.warn(s.join(" "));return}_registerComponent(new Component(`${n}-version`,()=>({library:n,version:o}),"VERSION"))}/**
325 * @license
326 * Copyright 2021 Google LLC
327 *
328 * Licensed under the Apache License, Version 2.0 (the "License");
329 * you may not use this file except in compliance with the License.
330 * You may obtain a copy of the License at
331 *
332 *   http://www.apache.org/licenses/LICENSE-2.0
333 *
334 * Unless required by applicable law or agreed to in writing, software
335 * distributed under the License is distributed on an "AS IS" BASIS,
336 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
337 * See the License for the specific language governing permissions and
338 * limitations under the License.
339 */const DB_NAME="firebase-heartbeat-database",DB_VERSION=1,STORE_NAME="firebase-heartbeat-store";let dbPromise$2=null;function getDbPromise$2(){return dbPromise$2||(dbPromise$2=openDB$1(DB_NAME,DB_VERSION,{upgrade:(t,o)=>{switch(o){case 0:t.createObjectStore(STORE_NAME)}}}).catch(t=>{throw ERROR_FACTORY$2.create("idb-open",{originalErrorMessage:t.message})})),dbPromise$2}async function readHeartbeatsFromIndexedDB(t){try{return await(await getDbPromise$2()).transaction(STORE_NAME).objectStore(STORE_NAME).get(computeKey(t))}catch(o){if(o instanceof FirebaseError)logger.warn(o.message);else{const r=ERROR_FACTORY$2.create("idb-get",{originalErrorMessage:o==null?void 0:o.message});logger.warn(r.message)}}}async function writeHeartbeatsToIndexedDB(t,o){try{const e=(await getDbPromise$2()).transaction(STORE_NAME,"readwrite");
339await e.objectStore(STORE_NAME).put(o,computeKey(t)),await e.done}catch(r){if(r instanceof FirebaseError)logger.warn(r.message);else{const e=ERROR_FACTORY$2.create("idb-set",{originalErrorMessage:r==null?void 0:r.message});logger.warn(e.message)}}}function computeKey(t){return`${t.name}!${t.options.appId}`}/**
340 * @license
341 * Copyright 2021 Google LLC
342 *
343 * Licensed under the Apache License, Version 2.0 (the "License");
344 * you may not use this file except in compliance with the License.
345 * You may obtain a copy of the License at
346 *
347 *   http://www.apache.org/licenses/LICENSE-2.0
348 *
349 * Unless required by applicable law or agreed to in writing, software
350 * distributed under the License is distributed on an "AS IS" BASIS,
351 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
352 * See the License for the specific language governing permissions and
353 * limitations under the License.
354 */const MAX_HEADER_BYTES=1024,STORED_HEARTBEAT_RETENTION_MAX_MILLIS=30*24*60*60*1e3;class HeartbeatServiceImpl{constructor(o){this.container=o,this._heartbeatsCache=null;const r=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(r),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){const r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),e=getUTCDateString();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===e||this._heartbeatsCache.heartbeats.some(n=>n.date===e)))return this._heartbeatsCache.heartbeats.push({date:e,agent:r}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(n=>{const a=new Date(n.date).valueOf();return Date.now()-a<=STORED_HEARTBEAT_RETENTION_MAX_MILLIS}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const o=getUTCDateString(),{heartbeatsToSend:r,unsentEntries:e}=extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats),n=base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=o,e.length>0?(this._heartbeatsCache.heartbeats=e,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}}function getUTCDateString(){return new Date().toISOString().substring(0,10)}function extractHeartbeatsForHeader(t,o=MAX_HEADER_BYTES){const r=[];let e=t.slice();for(const n of t){const a=r.find(i=>i.agent===n.agent);if(a){if(a.dates.push(n.date),countBytes(r)>o){a.dates.pop();break}}else if(r.push({agent:n.agent,dates:[n.date]}),countBytes(r)>o){r.pop();break}e=e.slice(1)}return{heartbeatsToSend:r,unsentEntries:e}}class HeartbeatStorageImpl{constructor(o){this.app=o,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return isIndexedDBAvailable()?validateIndexedDBOpenable().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await readHeartbeatsFromIndexedDB(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(o){var r;if(await this._canUseIndexedDBPromise){const n=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:(r=o.lastSentHeartbeatDate)!==null&&r!==void 0?r:n.lastSentHeartbeatDate,heartbeats:o.heartbeats})}else return}async add(o){var r;if(await this._canUseIndexedDBPromise){const n=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:(r=o.lastSentHeartbeatDate)!==null&&r!==void 0?r:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...o.heartbeats]})}else return}}function countBytes(t){return base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:t})).length}/**
355 * @license
356 * Copyright 2019 Google LLC
357 *
358 * Licensed under the Apache License, Version 2.0 (the "License");
359 * you may not use this file except in compliance with the License.
360 * You may obtain a copy of the License at
361 *
362 *   http://www.apache.org/licenses/LICENSE-2.0
363 *
364 * Unless required by applicable law or agreed to in writing, softw
364are
365 * distributed under the License is distributed on an "AS IS" BASIS,
366 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
367 * See the License for the specific language governing permissions and
368 * limitations under the License.
369 */function registerCoreComponents(t){_registerComponent(new Component("platform-logger",o=>new PlatformLoggerServiceImpl(o),"PRIVATE")),_registerComponent(new Component("heartbeat",o=>new HeartbeatServiceImpl(o),"PRIVATE")),registerVersion(name$o,version$1$1,t),registerVersion(name$o,version$1$1,"esm2017"),registerVersion("fire-js","")}registerCoreComponents("");var name$3="firebase",version$2="9.23.0";/**
370 * @license
371 * Copyright 2020 Google LLC
372 *
373 * Licensed under the Apache License, Version 2.0 (the "License");
374 * you may not use this file except in compliance with the License.
375 * You may obtain a copy of the License at
376 *
377 *   http://www.apache.org/licenses/LICENSE-2.0
378 *
379 * Unless required by applicable law or agreed to in writing, software
380 * distributed under the License is distributed on an "AS IS" BASIS,
381 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
382 * See the License for the specific language governing permissions and
383 * limitations under the License.
384 */registerVersion(name$3,version$2,"app");const instanceOfAny=(t,o)=>o.some(r=>t instanceof r);let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(t){const o=new Promise((r,e)=>{const n=()=>{t.removeEventListener("success",a),t.removeEventListener("error",i)},a=()=>{r(wrap$1(t.result)),n()},i=()=>{e(t.error),n()};t.addEventListener("success",a),t.addEventListener("error",i)});return o.then(r=>{r instanceof IDBCursor&&cursorRequestMap.set(r,t)}).catch(()=>{}),reverseTransformCache.set(o,t),o}function cacheDonePromiseForTransaction(t){if(transactionDoneMap.has(t))return;const o=new Promise((r,e)=>{const n=()=>{t.removeEventListener("complete",a),t.removeEventListener("error",i),t.removeEventListener("abort",i)},a=()=>{r(),n()},i=()=>{e(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",a),t.addEventListener("error",i),t.addEventListener("abort",i)});transactionDoneMap.set(t,o)}let idbProxyTraps={get(t,o,r){if(t instanceof IDBTransaction){if(o==="done")return transactionDoneMap.get(t);if(o==="objectStoreNames")return t.objectStoreNames||transactionStoreNamesMap.get(t);if(o==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wrap$1(t[o])},set(t,o,r){return t[o]=r,!0},has(t,o){return t instanceof IDBTransaction&&(o==="done"||o==="store")?!0:o in t}};function replaceTraps(t){idbProxyTraps=t(idbProxyTraps)}function wrapFunction(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(o,...r){const e=t.call(unwrap(this),o,...r);return transactionStoreNamesMap.set(e,o.sort?o.sort():[o]),wrap$1(e)}:getCursorAdvanceMethods().includes(t)?function(...o){return t.apply(unwrap(this),o),wrap$1(cursorRequestMap.get(this))}:function(...o){return wrap$1(t.apply(unwrap(this),o))}}function transformCachableValue(t){return typeof t=="function"?wrapFunction(t):(t instanceof IDBTransaction&&cacheDonePromiseForTransaction(t),instanceOfAny(t,getIdbProxyableTypes())?new Proxy(t,idbProxyTraps):t)}function wrap$1(t){if(t instanceof IDBRequest)return promisifyRequest(t);if(transformCache.has(t))return transformCache.get(t);const o=transformCachableValue(t);return o!==t&&(transformCache.set(t,o),reverseTransformCache.set(o,t)),o}const unwrap=t=>reverseTransformCache.get(t);function openDB(t,o,{blocked:r,upgrade:e,blocking:n,terminated:a}={}){const i=indexedDB.open(t,o),s=wrap$1(i);return e&&i.addEventListener("upgradeneeded",l=>{e(wrap$1(i.result),l.oldVersion,l.newVersion,wrap$1(i.transaction))}),r&&i.addEventListener("blocked",()=>r()),s.then(l=>{a&&l.addEventListener("close",()=>a()),n&&l.addEventListener("versionchange",()=>n())}).catch(()=>{}),s}function deleteDB(t,{blocked:o}={}){const r=indexedDB.deleteDatabase(t);return o&&r.addEventListener("blocked",()=>o()),wrap$1(r).then(()=>{})}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(t,o){if(!(t instanceof IDBDatabase&&!(o in t)&&typeof o=="str
384ing"))return;if(cachedMethods.get(o))return cachedMethods.get(o);const r=o.replace(/FromIndex$/,""),e=o!==r,n=writeMethods.includes(r);if(!(r in(e?IDBIndex:IDBObjectStore).prototype)||!(n||readMethods.includes(r)))return;const a=async function(i,...s){const l=this.transaction(i,n?"readwrite":"readonly");let d=l.store;return e&&(d=d.index(s.shift())),(await Promise.all([d[r](...s),n&&l.done]))[0]};return cachedMethods.set(o,a),a}replaceTraps(t=>({...t,get:(o,r,e)=>getMethod(o,r)||t.get(o,r,e),has:(o,r)=>!!getMethod(o,r)||t.has(o,r)}));const name$2="@firebase/installations",version$1="0.6.4";/**
385 * @license
386 * Copyright 2019 Google LLC
387 *
388 * Licensed under the Apache License, Version 2.0 (the "License");
389 * you may not use this file except in compliance with the License.
390 * You may obtain a copy of the License at
391 *
392 *   http://www.apache.org/licenses/LICENSE-2.0
393 *
394 * Unless required by applicable law or agreed to in writing, software
395 * distributed under the License is distributed on an "AS IS" BASIS,
396 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
397 * See the License for the specific language governing permissions and
398 * limitations under the License.
399 */const PENDING_TIMEOUT_MS=1e4,PACKAGE_VERSION=`w:${version$1}`,INTERNAL_AUTH_VERSION="FIS_v2",INSTALLATIONS_API_URL="https://firebaseinstallations.googleapis.com/v1",TOKEN_EXPIRATION_BUFFER=60*60*1e3,SERVICE="installations",SERVICE_NAME="Installations";/**
400 * @license
401 * Copyright 2019 Google LLC
402 *
403 * Licensed under the Apache License, Version 2.0 (the "License");
404 * you may not use this file except in compliance with the License.
405 * You may obtain a copy of the License at
406 *
407 *   http://www.apache.org/licenses/LICENSE-2.0
408 *
409 * Unless required by applicable law or agreed to in writing, software
410 * distributed under the License is distributed on an "AS IS" BASIS,
411 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
412 * See the License for the specific language governing permissions and
413 * limitations under the License.
414 */const ERROR_DESCRIPTION_MAP={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},ERROR_FACTORY$1=new ErrorFactory(SERVICE,SERVICE_NAME,ERROR_DESCRIPTION_MAP);function isServerError(t){return t instanceof FirebaseError&&t.code.includes("request-failed")}/**
415 * @license
416 * Copyright 2019 Google LLC
417 *
418 * Licensed under the Apache License, Version 2.0 (the "License");
419 * you may not use this file except in compliance with the License.
420 * You may obtain a copy of the License at
421 *
422 *   http://www.apache.org/licenses/LICENSE-2.0
423 *
424 * Unless required by applicable law or agreed to in writing, software
425 * distributed under the License is distributed on an "AS IS" BASIS,
426 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
427 * See the License for the specific language governing permissions and
428 * limitations under the License.
429 */function getInstallationsEndpoint({projectId:t}){return`${INSTALLATIONS_API_URL}/projects/${t}/installations`}
429function extractAuthTokenInfoFromResponse(t){return{token:t.token,requestStatus:2,expiresIn:getExpiresInFromResponseExpiresIn(t.expiresIn),creationTime:Date.now()}}async function getErrorFromResponse(t,o){const e=(await o.json()).error;return ERROR_FACTORY$1.create("request-failed",{requestName:t,serverCode:e.code,serverMessage:e.message,serverStatus:e.status})}function getHeaders$1({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function getHeadersWithAuth(t,{refreshToken:o}){const r=getHeaders$1(t);return r.append("Authorization",getAuthorizationHeader(o)),r}async function retryIfServerError(t){const o=await t();return o.status>=500&&o.status<600?t():o}function getExpiresInFromResponseExpiresIn(t){return Number(t.replace("s","000"))}function getAuthorizationHeader(t){return`${INTERNAL_AUTH_VERSION} ${t}`}/**
430 * @license
431 * Copyright 2019 Google LLC
432 *
433 * Licensed under the Apache License, Version 2.0 (the "License");
434 * you may not use this file except in compliance with the License.
435 * You may obtain a copy of the License at
436 *
437 *   http://www.apache.org/licenses/LICENSE-2.0
438 *
439 * Unless required by applicable law or agreed to in writing, software
440 * distributed under the License is distributed on an "AS IS" BASIS,
441 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
442 * See the License for the specific language governing permissions and
443 * limitations under the License.
444 */async function createInstallationRequest({appConfig:t,heartbeatServiceProvider:o},{fid:r}){const e=getInstallationsEndpoint(t),n=getHeaders$1(t),a=o.getImmediate({optional:!0});if(a){const d=await a.getHeartbeatsHeader();d&&n.append("x-firebase-client",d)}const i={fid:r,authVersion:INTERNAL_AUTH_VERSION,appId:t.appId,sdkVersion:PACKAGE_VERSION},s={method:"POST",headers:n,body:JSON.stringify(i)},l=await retryIfServerError(()=>fetch(e,s));if(l.ok){const d=await l.json();return{fid:d.fid||r,registrationStatus:2,refreshToken:d.refreshToken,authToken:extractAuthTokenInfoFromRe
444sponse(d.authToken)}}else throw await getErrorFromResponse("Create Installation",l)}/**
445 * @license
446 * Copyright 2019 Google LLC
447 *
448 * Licensed under the Apache License, Version 2.0 (the "License");
449 * you may not use this file except in compliance with the License.
450 * You may obtain a copy of the License at
451 *
452 *   http://www.apache.org/licenses/LICENSE-2.0
453 *
454 * Unless required by applicable law or agreed to in writing, software
455 * distributed under the License is distributed on an "AS IS" BASIS,
456 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
457 * See the License for the specific language governing permissions and
458 * limitations under the License.
459 */function sleep$1(t){return new Promise(o=>{setTimeout(o,t)})}/**
460 * @license
461 * Copyright 2019 Google LLC
462 *
463 * Licensed under the Apache License, Version 2.0 (the "License");
464 * you may not use this file except in compliance with the License.
465 * You may obtain a copy of the License at
466 *
467 *   http://www.apache.org/licenses/LICENSE-2.0
468 *
469 * Unless required by applicable law or agreed to in writing, software
470 * distributed under the License is distributed on an "AS IS" BASIS,
471 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
472 * See the License for the specific language governing permissions and
473 * limitations under the License.
474 */function bufferToBase64UrlSafe(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
475 * @license
476 * Copyright 2019 Google LLC
477 *
478 * Licensed under the Apache License, Version 2.0 (the "License");
479 * you may not use this file except in compliance with the License.
480 * You may obtain a copy of the License at
481 *
482 *   http://www.apache.org/licenses/LICENSE-2.0
483 *
484 * Unless required by applicable law or agreed to in writing, software
485 * distributed under the License is distributed on an "AS IS" BASIS,
486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
487 * See the License for the specific language governing permissions and
488 * limitations under the License.
489 */const VALID_FID_PATTERN=/^[cdef][\w-]{21}$/,INVALID_FID="";function generateFid(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const r=encode$3(t);return VALID_FID_PATTERN.test(r)?r:INVALID_FID}catch{return INVALID_FID}}function encode$3(t){return bufferToBase64UrlSafe(t).substr(0,22)}/**
490 * @license
491 * Copyright 2019 Google LLC
492 *
493 * Licensed under the Apache License, Version 2.0 (the "License");
494 * you may not use this file except in compliance with the License.
495 * You may obtain a copy of the License at
496 *
497 *   http://www.apache.org/licenses/LICENSE-2.0
498 *
499 * Unless required by applicable law or agreed to in writing, software
500 * distributed under the License is distributed on an "AS IS" BASIS,
501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
502 * See the License for the specific language governing permissions and
503 * limitations under the License.
504 */function getKey$1(t){return`${t.appName}!${t.appId}`}/**
505 * @license
506 * Copyright 2019 Google LLC
507 *
508 * Licensed under the Apache License, Version 2.0 (the "License");
509 * you may not use this file except in compliance with the License.
510 * You may obtain a copy of the License at
511 *
512 *   http://www.apache.org/licenses/LICENSE-2.0
513 *
514 * Unless required by applicable law or agreed to in writing, software
515 * distributed under the License is distributed on an "AS IS" BASIS,
516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
517 * See the License for the specific language governing permissions and
518 * limitations under the License.
519 */const fidChangeCallbacks=new Map;function fidChanged(t,o){const r=getKey$1(t);callFidChangeCallbacks(r,o),broadcastFidChange(r,o)}function callFidChangeCallbacks(t,o){const r=fidChangeCallbacks.get(t);if(r)for(const e of r)e(o)}function broadcastFidChange(t,o){const r=getBroadcastChannel();r&&r.postMessage({key:t,fid:o}),closeBroadcastChannel()}let broadcastChannel=null;function getBroadcastChannel(){return!broadcastChannel&&"BroadcastChannel"in self&&(broadcastChannel=new BroadcastChannel("[Firebase] FID Change"),broadcastChannel.onmessage=t=>{callFidChangeCallbacks(t.data.key,t.data.fid)}),broadcastChannel}function closeBroadcastChannel(){fidChangeCallbacks.size===0&&broadcastChannel&&(broadcastChannel.close(),broadcastChannel=null)}/**
520 * @license
521 * Copyright 2019 Google LLC
522 *
523 * Licensed under the Apache License, Version 2.0 (the "License");
524 * you may not use this file except in compliance with the License.
525 * You may obtain a copy of the License at
526 *
527 *   http://www.apache.org/licenses/LICENSE-2.0
528 *
529 * Unless required by applicable law or agreed to in writing, software
530 * distributed under the License is distributed on an "AS IS" BASIS,
531 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
532 * See the License for the specific language governing permissions and
533 * limitations under the License.
534 */const DATABASE_NAME$1="firebase-installations-database",DATABASE_VERSION$1=1,OBJECT_STORE_NAME$1="firebase-installations-store";let dbPromise$1=null;function getDbPromise$1(){return dbPromise$1||(dbPromise$1=openDB(DATABASE_NAME$1,DATABASE_VERSION$1,{upgrade:(t,o)=>{switch(o){case 0:t.createObjectStore(OBJECT_STORE_NAME$1)}}})),dbPromise$1}async function set$2(t,o){const r=getKey$1(t),n=(await getDbPromise$1()).transaction(OBJECT_STORE_NAME$1,"readwrite"),a=n.objectStore(OBJECT_STORE_NAME$1),i=await a.get(r);return await a.put(o,r),await n.done,(!i||i.fid!==o.fid)&&fidChanged(t,o.fid),o}async function remove$1(t){const o=getKey$1(t),e=(await getDbPromise$1()).transaction(OBJECT_STORE_NAME$1,"readwrite");await e.objectStore(OBJECT_STORE_NAME$1).delete(o),await e.done}async function update$1(t,o){const r=getKey$1(t),n=(await getDbPromise$1()).transaction(OBJECT_STORE_NAME$1,"readwrite"),a=n.objectStore(OBJECT_STORE_NAME$1),i=await a.get(r),s=o(i);return s===void 0?await a.delete(r):await a.put(s,r),await n.done,s&&(!i||i.fid!==s.fid)&&fidChanged(t,s.fid),s}/**
535 * @license
536 * Copyright 2019 Google LLC
537 *
538 * Licensed under the Apache License, Version 2.0 (the "License");
539 * you may not use this file except in compliance with the License.
540 * You may obtain a copy of the License at
541 *
542 *   http://www.apache.org/licenses/LICENSE-2.0
543 *
544 * Unless required by applicable law or agreed to in writing, software
545 * distributed under the License is distributed on an "AS IS" BASIS,
546 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
547 * See the License for the specific language governing permissions and
548 * limitations under the License.
549 */async function getInstallationEntry(t){let o;const r=await update$1(t.appConfig,e=>{const n=updateOrCreateInstallationEntry(e),a=triggerRegistrationIfNecessary(t,n);return o=a.registrationPromise,a.installationEntry});return r.fid===INVALID_FID?{installationEntry:await o}:{installationEntry:r,registrationPromise:o}}function updateOrCreateInstallationEntry(t){const o=t||{fid:generateFid(),registrationStatus:0};return clearTimedOutRequest(o)}function triggerRegistrationIfNecessary(t,o){if(o.registrationStatus===0){if(!navigator.onLine){const n=Promise.reject(ERROR_FACTORY$1.create("app-offline"));return{installationEntry:o,registrationPromise:n}}const r={fid:o.fid,registrationStatus:1,registrationTime:Date.now()},e=registerInstallation(t,r);return{installationEntry:r,registrationPromise:e}}else return o.registrationStatus===1?{installationEntry:o,registrationPromise:waitUntilFidRegistration(t)}:{installationEntry:o}}async function registerInstallation(t,o){try{const r=await createInstallationRequest(t,o);return set$2(t.appConfig,r)}catch(r){throw isServerError(r)&&r.customData.serverCode===409?await remove$1(t.appConfig):await set$2(t.appConfig,{fid:o.fid,registrationStatus:0}),r}}async function waitUntilFidRegistration(t){let o=await updateInstallationRequest(t.appConfig);for(;o.registrationStatus===1;)await sleep$1(100),o=await updateInstallationRequest(t.appConfig);if(o.registrationStatus===0){const{installationEntry:r,registrationPromise:e}=await getInstallationEntry(t);return e||r}return o}function updateInstallationRequest(t){return update$1(t,o=>{if(!o)throw ERROR_FACTORY$1.create("installation-not-found");return clearTimedOutRequest(o)})}function clearTimedOutRequest(t){return hasInstallationRequestTimedOut(t)?{fid:t.fid,registrationStatus:0}:t}function hasInstallationRequestTimedOut(t){return t.registrationStatus===1&&t.registrationTime+PENDING_TIMEOUT_MS<Date.now()}/**
550 * @license
551 * Copyright 2019 Google LLC
552 *
553 * Licensed under the Apache License, Version 2.0 (the "License");
554 * you may not use this file except in compliance with the License.
555 * You may obtain a copy of the License at
556 *
557 *   http://www.apache.org/licenses/LICENSE-2.0
558 *
559 * Unless required by applicable law or agreed to in writing, software
560 * distributed under the License is distributed on an "AS IS" BASIS,
561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
562 * See the License for the specific language governing permissions and
563 * limitations under the License.
564 */async function generateAuthTokenRequest({appConfig:t,heartbeatServiceProvider:o},r){const e=getGenerateAuthTokenEndpoint(t,r),n=getHeadersWithAuth(t,r),a=o.getImmediate({optional:!0});if(a){const d=await a.getHeartbeatsHeader();d&&n.append("x-firebase-client",d)}const i={installation:{sdkVersion:PACKAGE_VERSION,appId:t.appId}},s={method:"POST",headers:n,body:JSON.stringify(i)},l=await retryIfServerError(()=>fetch(e,s));if(l.ok){const d=await l.json();return extractAuthTokenInfoFromResponse(d)}else throw await getErrorFromResponse("Generate Auth Token",l)}function getGenerateAuthTokenEndpoint(t,{fid:o}){return`${getInstallationsEndpoint(t)}/${o}/authTokens:generate`}/**
565 * @license
566 * Copyright 2019 Google LLC
567 *
568 * Licensed under the Apache License, Version 2.0 (the "License");
569 * you may not use this file except in compliance with the License.
570 * You may obtain a copy of the License at
571 *
572 *   http://www.apache.org/licenses/LICENSE-2.0
573 *
574 * Unless required by applicable law or agreed to in writing, software
575 * distributed under the License is distributed on an "AS IS" BASIS,
576 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
577 * See the License for the specific language governing permissions and
578 * limitations under the License.
579 */async function refreshAuthToken(t,o=!1){let r;const e=await update$1(t.appConfig,a=>{if(!isEntryRegistered(a))throw ERROR_FACTORY$1.create("not-registered");const i=a.authToken;if(!o&&isAuthTokenValid(i))return a;if(i.requestStatus===1)return r=waitUntilAuthTokenRequest(t,o),a;{if(!navigator.onLine)throw ERROR_FACTORY$1.create("app-offline");const s=makeAuthTokenRequestInProgressEntry(a);return r=fetchAuthTokenFromServer(t,s),s}});return r?await r:e.authToken}async function waitUntilAuthTokenRequest(t,o){let r=await updateAuthTokenRequest(t.appConfig);for(;r.authToken.requestStatus===1;)await sleep$1(100),r=await updateAuthTokenRequest(t.appConfig);const e=r.authToken;return e.requestStatus===0?refreshAuthToken(t,o):e}function updateAuthTokenRequest(t){return update$1(t,o=>{if(!isEntryRegistered(o))throw ERROR_FACTORY$1.create("not-registered");const r=o.authToken;return hasAuthTokenRequestTimedOut(r)?Object.assign(Object.assign({},o),{authToken:{requestStatus:0}}):o})}async function fetchAuthTokenFromServer(t,o){try{const r=await generateAuthTokenRequest(t,o),e=Object.assign(Object.assign({},o),{authToken:r});return await set$2(t.appConfig,e),r}catch(r){if(isServerError(r)&&(r.customData.serverCode===401||r.customData.serverCode===404))await remove$1(t.appConfig);else{const e=Object.assign(Object.assign({},o),{authToken:{requestStatus:0}});await set$2(t.appConfig,e)}throw r}}function isEntryRegistered(t){return t!==void 0&&t.registrationStatus===2}function isAuthTokenValid(t){return t.requestStatus===2&&!isAuthTokenExpired(t)}function isAuthTokenExpired(t){const o=Date.now();return o<t.creationTime||t.creationTime+t.expiresIn<o+TOKEN_EXPIRATION_BUFFER}function makeAuthTokenRequestInProgressEntry(t){const o={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:o})}function hasAuthTokenRequestTimedOut(t){return t.requestStatus===1&&t.requestTime+PENDING_TIMEOUT_MS<Date.now()}/**
580 * @license
581 * Copyright 2019 Google LLC
582 *
583 * Licensed under the Apache License, Version 2.0 (the "License");
584 * you may not use this file except in compliance with the License.
585 * You may obtain a copy of the License at
586 *
587 *   http://www.apache.org/licenses/LICENSE-2.0
588 *
589 * Unless required by applicable law or agreed to in writing, software
590 * distributed under the License is distributed on an "AS IS" BASIS,
591 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
592 * See the License for the specific language governing permissions and
593 * limitations under the License.
594 */async function getId(t){const o=t,{installationEntry:r,registrationPromise:e}=await getInstallationEntry(o);return e?e.catch(console.error):refreshAuthToken(o).catch(console.error),r.fid}/**
595 * @license
596 * Copyright 2019 Google LLC
597 *
598 * Licensed under the Apache License, Version 2.0 (the "License");
599 * you may not use this file except in compliance with the License.
600 * You may obtain a copy of the License at
601 *
602 *   http://www.apache.org/licenses/LICENSE-2.0
603 *
604 * Unless required by applicable law or agreed to in writing, software
605 * distributed under the License is distributed on an "AS IS" BASIS,
606 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
607 * See the License for the specific language governing permissions and
608 * limitations under the License.
609 */async function getToken$2(t,o=!1){const r=t;return await completeInstallationRegistration(r),(await refreshAuthToken(r,o)).token}async function completeInstallationRegistration(t){const{registrationPromise:o}=await getInstallationEntry(t);o&&await o}/**
610 * @license
611 * Copyright 2019 Google LLC
612 *
613 * Licensed under the Apache License, Version 2.0 (the "License");
614 * you may not use this file except in compliance with the License.
615 * You may obtain a copy of the License at
616 *
617 *   http://www.apache.org/licenses/LICENSE-2.0
618 *
619 * Unless required by applicable law or agreed to in writing, software
620 * distributed under the License is distributed on an "AS IS" BASIS,
621 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
622 * See the License for the specific language governing permissions and
623 * limitations under the License.
624 */function extractAppConfig$1(t){if(!t||!t.options)throw getMissingValueError$1("App Configuration");if(!t.name)throw getMissingValueError$1("App Name");const o=["projectId","apiKey","appId"];for(const r of o)if(!t.options[r])throw getMissingValueError$1(r);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function getMissingValueError$1(t){return ERROR_FACTORY$1.create("missing-app-config-values",{valueName:t})}/**
625 * @license
626 * Copyright 2020 Google LLC
627 *
628 * Licensed under the Apache License, Version 2.0 (the "License");
629 * you may not use this file except in compliance with the License.
630 * You may obtain a copy of the License at
631 *
632 *   http://www.apache.org/licenses/LICENSE-2.0
633 *
634 * Unless required by applicable law or agreed to in writing, software
635 * distributed under the License is distributed on an "AS IS" BASIS,
636 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
637 * See the License for the specific language governing permissions and
638 * limitations under the License.
639 */const INSTALLATIONS_NAME="installations",INSTALLATIONS_NAME_INTERNAL="installations-internal",publicFactory=t=>{const o=t.getProvider("app").getImmediate(),r=extractAppConfig$1(o),e=_getProvider(o,"heartbeat");return{app:o,appConfig:r,heartbeatServiceProvider:e,_delete:()=>Promise.resolve()}},internalFactory=t=>{const o=t.getProvider("app").getImmediate(),r=_getProvider(o,INSTALLATIONS_NAME).getImmediate();return{getId:()=>getId(r),getToken:n=>getToken$2(r,n)}};function registerInstallations(){_registerComponent(new Component(INSTALLATIONS_NAME,publicFactory,"PUBLIC")),_registerComponent(new Component(INSTALLATIONS_NAME_INTERNAL,internalFactory,"PRIVATE"))}registerInstallations();registerVersion(name$2,version$1);registerVersion(name$2,version$1,"esm2017");/**
640 * @license
641 * Copyright 2019 Google LLC
642 *
643 * Licensed under the Apache License, Version 2.0 (the "License");
644 * you may not use this file except in compliance with the License.
645 * You may obtain a copy of the License at
646 *
647 *   http://www.apache.org/licenses/LICENSE-2.0
648 *
649 * Unless required by applicable law or agreed to in writing, software
650 * distributed under the License is distributed on an "AS IS" BASIS,
651 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
652 * See the License for the specific language governing permissions and
653 * limitations under the License.
654 */const DEFAULT_SW_PATH="/firebase-messaging-sw.js",DEFAULT_SW_SCOPE="/firebase-cloud-messaging-push-scope",DEFAULT_VAPID_KEY="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ENDPOINT="https://fcmregistrations.googleapis.com/v1",CONSOLE_CAMPAIGN_ID="google.c.a.c_id",CONSOLE_CAMPAIGN_NAME="google.c.a.c_l",CONSOLE_CAMPAIGN_TIME="google.c.a.ts",CONSOLE_CAMPAIGN_ANALYTICS_ENABLED="google.c.a.e";var MessageType$1;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(MessageType$1||(MessageType$1={}));/**
655 * @license
656 * Copyright 2018 Google LLC
657 *
658 * Licensed under the Apache License, Version 2.0 (the "License");
658 you may not use this file except
659 * in compliance with the License. You may obtain a copy of the License at
660 *
661 * http://www.apache.org/licenses/LICENSE-2.0
662 *
663 * Unless required by applicable law or agreed to in writing, software distributed under the License
664 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
665 * or implied. See the License for the specific language governing permissions and limitations under
666 * the License.
667 */var MessageType;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(MessageType||(MessageType={}));/**
668 * @license
669 * Copyright 2017 Google LLC
670 *
671 * Licensed under the Apache License, Version 2.0 (the "License");
672 * you may not use this file except in compliance with the License.
673 * You may obtain a copy of the License at
674 *
675 *   http://www.apache.org/licenses/LICENSE-2.0
676 *
677 * Unless required by applicable law or agreed to in writing, software
678 * distributed under the License is distributed on an "AS IS" BASIS,
679 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
680 * See the License for the specific language governing permissions and
681 * limitations under the License.
682 */function arrayToBase64(t){const o=new Uint8Array(t);return btoa(String.fromCharCode(...o)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function base64ToArray(t){const o="=".repeat((4-t.length%4)%4),r=(t+o).replace(/\-/g,"+").replace(/_/g,"/"),e=atob(r),n=new Uint8Array(e.length);for(let a=0;a<e.length;++a)n[a]=e.charCodeAt(a);return n}/**
683 * @license
684 * Copyright 2019 Google LLC
685 *
686 * Licensed under the Apache License, Version 2.0 (the "License");
687 * you may not use this file except in compliance with the License.
688 * You may obtain a copy of the License at
689 *
690 *   http://www.apache.org/licenses/LICENSE-2.0
691 *
692 * Unless required by applicable law or agreed to in writing, software
693 * distributed under the License is distributed on an "AS IS" BASIS,
694 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
695 * See the License for the specific language governing permissions and
696 * limitations under the License.
697 */const OLD_DB_NAME="fcm_token_details_db",OLD_DB_VERSION=5,OLD_OBJECT_STORE_NAME="fcm_token_object_Store";async function migrateOldDatabase(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(a=>a.name).includes(OLD_DB_NAME))return null;let o=null;return(await openDB(OLD_DB_NAME,OLD_DB_VERSION,{upgrade:async(e,n,a,i)=>{var s;if(n<2||!e.objectStoreNames.contains(OLD_OBJECT_STORE_NAME))return;const l=i.objectStore(OLD_OBJECT_STORE_NAME),d=await l.index("fcmSenderId").get(t);if(await l.clear(),!!d){if(n===2){const c=d;if(!c.auth||!c.p256dh||!c.endpoint)return;o={token:c.fcmToken,createTime:(s=c.createTime)!==null&&s!==void 0?s:Date.now(),subscriptionOptions:{auth:c.auth,p256dh:c.p256dh,endpoint:c.endpoint,swScope:c.swScope,vapidKey:typeof c.vapidKey=="string"?c.vapidKey:arrayToBase64(c.vapidKey)}}}else if(n===3){const c=d;o={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:arrayToBase64(c.auth),p256dh:arrayToBase64(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:arrayToBase64(c.vapidKey)}}}else if(n===4){const c=d;o={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:arrayToBase64(c.auth),p256dh:arrayToBase64(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:arrayToBase64(c.vapidKey)}}}}}})).close(),await deleteDB(OLD_DB_NAME),await deleteDB("fcm_vapid_details_db"),await deleteDB("undefined"),checkTokenDetails(o)?o:null}function checkTokenDetails(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:o}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof o.auth=="string"&&o.auth.length>0&&typeof o.p256dh=="string"&&o.p256dh.length>0&&typeof o.endpoint=="string"&&o.endpoint.length>0&&typeof o.swScope=="string"&&o.swScope.length>0&&typeof o.vapidKey=="string"&&o.vapidKey.length>0}/**
698 * @license
699 * Copyright 2019 Google LLC
700 *
701 * Licensed under the Apache License, Version 2.0 (the "License");
702 * you may not use this file except in compliance with the License.
703 * You may obtain a copy of the License at
704 *
705 *   http://www.apache.org/licenses/LICENSE-2.0
706 *
707 * Unless required by applicable law or agreed to in writing, software
708 * distributed under the License is distributed on an "AS IS" BASIS,
709 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
710 * See the License for the specific language governing permissions and
711 * limitations under the License.
712 */const DATABASE_NAME="firebase-messaging-database",DATABASE_VERSION=1,OBJECT_STORE_NAME="firebase-messaging-store";let dbPromise=null;function getDbPromise(){return dbPromise||(dbPromise=openDB(DATABASE_NAME,DATABASE_VERSION,{upgrade:(t,o)=>{switch(o){case 0:t.createObjectStore(OBJECT_STORE_NAME)}}})),dbPromise}async function dbGet(t){const o=getKey(t),e=await(await getDbPromise()).transaction(OBJECT_STORE_NAME).objectStore(OBJECT_STORE_NAME).get(o);if(e)return e;{const n=await migrateOldDatabase(t.appConfig.senderId);if(n)return await dbSet(t,n),n}}async function dbSet(t,o){const r=getKey(t),n=(await getDbPromise()).transaction(OBJECT_STORE_NAME,"readwrite");return await n.objectStore(OBJECT_STORE_NAME).put(o,r),await n.done,o}async function dbRemove(t){const o=getKey(t),e=(await getDbPromise()).transaction(OBJECT_STORE_NAME,"readwrite");await e.objectStore(OBJECT_STORE_NAME).delete(o),await e.done}function getKey({appConfig:t}){return t.appId}/**
713 * @license
714 * Copyright 2017 Google LLC
715 *
716 * Licensed under the Apache License, Version 2.0 (the "License");
717 * you may not use this file except in compliance with the License.
718 * You may obtain a copy of the License at
719 *
720 *   http://www.apache.org/licenses/LICENSE-2.0
721 *
722 * Unless required by applicable law or agreed to in writing, software
723 * distributed under the License is distributed on an "AS IS" BASIS,
724 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
725 * See the License for the specific language governing permissions and
726 * limitations under the License.
727 */const ERROR_MAP={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},ERROR_FACTORY=new ErrorFactory("messaging","Messaging",ERROR_MAP);/**
728 * @license
729 * Copyright 2019 Google LLC
730 *
731 * Licensed under the Apache License, Version 2.0 (the "License");
732 * you may not use this file except in compliance with the License.
733 * You may obtain a copy of the License at
734 *
735 *   http://www.apache.org/licenses/LICENSE-2.0
736 *
737 * Unless required by applicable law or agreed to in writing, softw
737are
738 * distributed under the License is distributed on an "AS IS" BASIS,
739 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
740 * See the License for the specific language governing permissions and
741 * limitations under the License.
742 */async function requestGetToken(t,o){const r=await getHeaders(t),e=getBody(o),n={method:"POST",headers:r,body:JSON.stringify(e)};let a;try{a=await(await fetch(getEndpoint(t.appConfig),n)).json()}catch(i){throw ERROR_FACTORY.create("token-subscribe-failed",{errorInfo:i==null?void 0:i.toString()})}if(a.error){const i=a.error.message;throw ERROR_FACTORY.create("token-subscribe-failed",{errorInfo:i})}if(!a.token)throw ERROR_FACTORY.create("token-subscribe-no-token");return a.token}async function requestUpdateToken(t,o){const r=await getHeaders(t),e=getBody(o.subscriptionOptions),n={method:"PATCH",headers:r,body:JSON.stringify(e)};let a;try{a=await(await fetch(`${getEndpoint(t.appConfig)}/${o.token}`,n)).json()}catch(i){throw ERROR_FACTORY.create("token-update-failed",{errorInfo:i==null?void 0:i.toString()})}if(a.error){const i=a.error.message;throw ERROR_FACTORY.create("token-update-failed",{errorInfo:i})}if(!a.token)throw ERROR_FACTORY.create("token-update-no-token");return a.token}async function requestDeleteToken(t,o){const e={method:"DELETE",headers:await getHeaders(t)};try{const a=await(await fetch(`${getEndpoint(t.appConfig)}/${o}`,e)).json();if(a.error){const i=a.error.message;throw ERROR_FACTORY.create("token-unsubscribe-failed",{errorInfo:i})}}catch(n){throw ERROR_FACTORY.create("token-unsubscribe-failed",{errorInfo:n==null?void 0:n.toString()})}}function getEndpoint({projectId:t}){return`${ENDPOINT}/projects/${t}/registrations`}async function getHeaders({appConfig:t,installations:o}){const r=await o.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${r}`})}function getBody({p256dh:t,auth:o,endpoint:r,vapidKey:e}){const n={web:{endpoint:r,auth:o,p256dh:t}};return e!==DEFAULT_VAPID_KEY&&(n.web.applicationPubKey=e),n}/**
743 * @license
744 * Copyright 2019 Google LLC
745 *
746 * Licensed under the Apache License, Version 2.0 (the "License");
747 * you may not use this file except in compliance with the License.
748 * You may obtain a copy of the License at
749 *
750 *   http://www.apache.org/licenses/LICENSE-2.0
751 *
752 * Unless required by applicable law or agreed to in writing, software
753 * distributed under the License is distributed on an "AS IS" BASIS,
754 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
755 * See the License for the specific language governing permissions and
756 * limitations under the License.
757 */const TOKEN_EXPIRATION_MS=7*24*60*60*1e3;async function getTokenInternal(t){const o=await getPushSubscription(t.swRegistration,t.vapidKey),r={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:o.endpoint,auth:arrayToBase64(o.getKey("auth")),p256dh:arrayToBase64(o.getKey("p256dh"))},e=await dbGet(t.firebaseDependencies);if(e){if(isTokenValid(e.subscriptionOptions,r))return Date.now()>=e.createTime+TOKEN_EXPIRATION_MS?updateToken(t,{token:e.token,createTime:Date.now(),subscriptionOptions:r}):e.token;try{await requestDeleteToken(t.firebaseDependencies,e.token)}catch(n){console.warn(n)}return getNewToken(t.firebaseDependencies,r)}else return getNewToken(t.firebaseDependencies,r)}async function deleteTokenInternal(t){const o=await dbGet(t.firebaseDependencies);o&&(await requestDeleteToken(t.firebaseDependencies,o.token),await dbRemove(t.firebaseDependencies));const r=await t.swRegistration.pushManager.getSubscription();return r?r.unsubscribe():!0}async function updateToken(t,o){try{const r=await requestUpdateToken(t.firebaseDependencies,o),e=Object.assign(Object.assign({},o),{token:r,createTime:Date.now()});return await dbSet(t.firebaseDependencies,e),r}catch(r){throw await deleteTokenInternal(t),r}}async function getNewToken(t,o){const e={token:await requestGetToken(t,o),createTime:Date.now(),subscriptionOptions:o};return await dbSet(t,e),e.token}async function getPushSubscription(t,o){const r=await t.pushManager.getSubscription();return r||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:base64ToArray(o)})}function isTokenValid(t,o){const r=o.vapidKey===t.vapidKey,e=o.endpoint===t.endpoint,n=o.auth===t.auth,a=o.p256dh===t.p256dh;return r&&e&&n&&a}/**
758 * @license
759 * Copyright 2020 Google LLC
760 *
761 * Licensed under the Apache License, Version 2.0 (the "License");
762 * you may not use this file except in compliance with the License.
763 * You may obtain a copy of the License at
764 *
765 *   http://www.apache.org/licenses/LICENSE-2.0
766 *
767 * Unless required by applicable law or agreed to in writing, software
768 * distributed under the License is distributed on an "AS IS" BASIS,
769 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
770 * See the License for the specific language governing permissions and
771 * limitations under the License.
772 */function externalizePayload(t){const o={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return propagateNotificationPayload(o,t),propagateDataPayload(o,t),propagateFcmOptions(o,t),o}function propagateNotificationPayload(t,o){if(!o.notification)return;t.notification={};const r=o.notification.title;r&&(t.notification.title=r);const e=o.notification.body;e&&(t.notification.body=e);const n=o.notification.image;n&&(t.notification.image=n);const a=o.notification.icon;a&&(t.notification.icon=a)}function propagateDataPayload(t,o){o.data&&(t.data=o.data)}function propagateFcmOptions(t,o){var r,e,n,a,i;if(!o.fcmOptions&&!(!((r=o.notification)===null||r===void 0)&&r.click_action))return;t.fcmOptions={};const s=(n=(e=o.fcmOptions)===null||e===void 0?void 0:e.link)!==null&&n!==void 0?n:(a=o.notification)===null||a===void 0?void 0:a.click_action;s&&(t.fcmOptions.link=s);const l=(i=o.fcmOptions)===null||i===void 0?void 0:i.analytics_label;l&&(t.fcmOptions.analyticsLabel=l)}/**
773 * @license
774 * Copyright 2019 Google LLC
775 *
776 * Licensed under the Apache License, Version 2.0 (the "License");
777 * you may not use this file except in compliance with the License.
778 * You may obtain a copy of the License at
779 *
780 *   http://www.apache.org/licenses/LICENSE-2.0
781 *
782 * Unless required by applicable law or agreed to in writing, software
783 * distributed under the License is distributed on an "AS IS" BASIS,
784 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
785 * See the License for the specific language governing permissions and
786 * limitations under the License.
787 */function isConsoleMessage(t){return typeof t=="object"&&!!t&&CONSOLE_CAMPAIGN_ID in t}/**
788 * @license
789 * Copyright 2019 Google LLC
790 *
791 * Licensed under the Apache License, Version 2.0 (the "License");
792 * you may not use this file except in compliance with the License.
793 * You may obtain a copy of the License at
794 *
795 *   http://www.apache.org/licenses/LICENSE-2.0
796 *
797 * Unless required by applicable law or agreed to in writing, software
798 * distributed under the License is distributed on an "AS IS" BASIS,
799 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
800 * See the License for the specific language governing permissions and
801 * limitations under the License.
802 */_mergeStrings("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");_mergeStrings("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function _mergeStrings(t,o){const r=[];for(let e=0;e<t.length;e++)r.push(t.charAt(e)),e<o.length&&r.push(o.charAt(e));return r.join("")}/**
803 * @license
804 * Copyright 2019 Google LLC
805 *
806 * Licensed under the Apache License, Version 2.0 (the "License");
807 * you may not use this file except in compliance with the License.
808 * You may obtain a copy of the License at
809 *
810 *   http://www.apache.org/licenses/LICENSE-2.0
811 *
812 * Unless required by applicable law or agreed to in writing, software
813 * distributed under the License is distributed on an "AS IS" BASIS,
814 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
815 * See the License for the specific language governing permissions and
816 * limitations under the License.
817 */function extractAppConfig(t){if(!t||!t.options)throw getMissingValueError("App Configuration Object");if(!t.name)throw getMissingValueError("App Name");const o=["projectId","apiKey","appId","messagingSenderId"],{options:r}=t;for(const e of o)if(!r[e])throw getMissingValueError(e);return{appName:t.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}function getMissingValueError(t){return ERROR_FACTORY.create("missing-app-config-values",{valueName:t})}/**
818 * @license
819 * Copyright 2020 Google LLC
820 *
821 * Licensed under the Apache License, Version 2.0 (the "License");
822 * you may not use this file except in compliance with the License.
823 * You may obtain a copy of the License at
824 *
825 *   http://www.apache.org/licenses/LICENSE-2.0
826 *
827 * Unless required by applicable law or agreed to in writing, software
828 * distributed under the License is distributed on an "AS IS" BASIS,
829 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
830 * See the License for the specific language governing permissions and
831 * limitations under the License.
832 */class MessagingService{constructor(o,r,e){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const n=extractAppConfig(o);this.firebaseDependencies={app:o,appConfig:n,installations:r,analyticsProvider:e}}_delete(){return Promise.resolve()}}/**
833 * @license
834 * Copyright 2020 Google LLC
835 *
836 * Licensed under the Apache License, Version 2.0 (the "License");
837 * you may not use this file except in compliance with the License.
838 * You may obtain a copy of the License at
839 *
840 *   http://www.apache.org/licenses/LICENSE-2.0
841 *
842 * Unless required by applicable law or agreed to in writing, software
843 * distributed under the License is distributed on an "AS IS" BASIS,
844 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
845 * See the License for the specific language governing permissions and
846 * limitations under the License.
847 */async function registerDefaultSw(t){try{t.swRegistration=await navigator.serviceWorker.register(DEFAULT_SW_PATH,{scope:DEFAULT_SW_SCOPE}),t.swRegistration.update().catch(()=>{})}catch(o){throw ERROR_FACTORY.create("failed-service-worker-registration",{browserErrorMessage:o==null?void 0:o.message})}}/**
848 * @license
849 * Copyright 2020 Google LLC
850 *
851 * Licensed under the Apache License, Version 2.0 (the "License");
852 * you may not use this file except in compliance with the License.
853 * You may obtain a copy of the License at
854 *
855 *   http://www.apache.org/licenses/LICENSE-2.0
856 *
857 * Unless required by applicable law or agreed to in writing, software
858 * distributed under the License is distributed on an "AS IS" BASIS,
859 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
860 * See the License for the specific language governing permissions and
861 * limitations under the License.
862 */async function updateSwReg(t,o){if(!o&&!t.swRegistration&&await registerDefaultSw(t),!(!o&&t.swRegistration)){if(!(o instanceof ServiceWorkerRegistration))throw ERROR_FACTORY.create("invalid-sw-registration");t.swRegistration=o}}/**
863 * @license
864 * Copyright 2020 Google LLC
865 *
866 * Licensed under the Apache License, Version 2.0 (the "License");
867 * you may not use this file except in compliance with the License.
868 * You may obtain a copy of the License at
869 *
870 *   http://www.apache.org/licenses/LICENSE-2.0
871 *
872 * Unless required by applicable law or agreed to in writing, software
873 * distributed under the License is distributed on an "AS IS" BASIS,
874 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
875 * See the License for the specific language governing permissions and
876 * limitations under the License.
877 */async function updateVapidKey(t,o){o?t.vapidKey=o:t.vapidKey||(t.vapidKey=DEFAULT_VAPID_KEY)}/**
878 * @license
879 * Copyright 2020 Google LLC
880 *
881 * Licensed under the Apache License, Version 2.0 (the "License");
882 * you may not use this file except in compliance with the License.
883 * You may obtain a copy of the License at
884 *
885 *   http://www.apache.org/licenses/LICENSE-2.0
886 *
887 * Unless required by applicable law or agreed to in writing, software
888 * distributed under the License is distributed on an "AS IS" BASIS,
889 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
890 * See the License for the specific language governing permissions and
891 * limitations under the License.
892 */async function getToken$1(t,o){if(!navigator)throw ERROR_FACTORY.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw ERROR_FACTORY.create("permission-blocked");
892return await updateVapidKey(t,o==null?void 0:o.vapidKey),await updateSwReg(t,o==null?void 0:o.serviceWorkerRegistration),getTokenInternal(t)}/**
893 * @license
894 * Copyright 2019 Google LLC
895 *
896 * Licensed under the Apache License, Version 2.0 (the "License");
897 * you may not use this file except in compliance with the License.
898 * You may obtain a copy of the License at
899 *
900 *   http://www.apache.org/licenses/LICENSE-2.0
901 *
902 * Unless required by applicable law or agreed to in writing, software
903 * distributed under the License is distributed on an "AS IS" BASIS,
904 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
905 * See the License for the specific language governing permissions and
906 * limitations under the License.
907 */async function logToScion(t,o,r){const e=getEventType(o);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(e,{message_id:r[CONSOLE_CAMPAIGN_ID],message_name:r[CONSOLE_CAMPAIGN_NAME],message_time:r[CONSOLE_CAMPAIGN_TIME],message_device_time:Math.floor(Date.now()/1e3)})}function getEventType(t){switch(t){case MessageType.NOTIFICATION_CLICKED:return"notification_open";case MessageType.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
908 * @license
909 * Copyright 2017 Google LLC
910 *
911 * Licensed under the Apache License, Version 2.0 (the "License");
912 * you may not use this file except in compliance with the License.
913 * You may obtain a copy of the License at
914 *
915 *   http://www.apache.org/licenses/LICENSE-2.0
916 *
917 * Unless required by applicable law or agreed to in writing, software
918 * distributed under the License is distributed on an "AS IS" BASIS,
919 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
920 * See the License for the specific language governing permissions and
921 * limitations under the License.
922 */async function messageEventListener(t,o){const r=o.data;if(!r.isFirebaseMessaging)return;t.onMessageHandler&&r.messageType===MessageType.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(externalizePayload(r)):t.onMessageHandler.next(externalizePayload(r)));const e=r.data;isConsoleMessage(e)&&e[CONSOLE_CAMPAIGN_ANALYTICS_ENABLED]==="1"&&await logToScion(t,r.messageType,e)}const name$1="@firebase/messaging",version="0.12.4";/**
923 * @license
924 * Copyright 2020 Google LLC
925 *
926 * Licensed under the Apache License, Version 2.0 (the "License");
927 * you may not use this file except in compliance with the License.
928 * You may obtain a copy of the License at
929 *
930 *   http://www.apache.org/licenses/LICENSE-2.0
931 *
932 * Unless required by applicable law or agreed to in writing, software
933 * distributed under the License is distributed on an "AS IS" BASIS,
934 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
935 * See the License for the specific language governing permissions and
936 * limitations under the License.
937 */const WindowMessagingFactory=t=>{const o=new MessagingService(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",r=>messageEventListener(o,r)),o},WindowMessagingInternalFactory=t=>{const o=t.getProvider("messaging").getImmediate();return{getToken:e=>getToken$1(o,e)}};function registerMessagingInWindow(){_registerComponent(new Component("messaging",WindowMessagingFactory,"PUBLIC")),_registerComponent(new Component("messaging-internal",WindowMessagingInternalFactory,"PRIVATE")),registerVersion(name$1,version),registerVersion(name$1,version,"esm2017")}/**
938 * @license
939 * Copyright 2020 Google LLC
940 *
941 * Licensed under the Apache License, Version 2.0 (the "License");
942 * you may not use this file except in compliance with the License.
943 * You may obtain a copy of the License at
944 *
945 *   http://www.apache.org/licenses/LICENSE-2.0
946 *
947 * Unless required by applicable law or agreed to in writing, software
948 * distributed under the License is distributed on an "AS IS" BASIS,
949 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
950 * See the License for the specific language governing permissions and
951 * limitations under the License.
952 */async function isWindowSupported(){try{await validateIndexedDBOpenable()}catch{return!1}return typeof window<"u"&&isIndexedDBAvailable()&&areCookiesEnabled()&&"serviceWorker"
952in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
953 * @license
954 * Copyright 2020 Google LLC
955 *
956 * Licensed under the Apache License, Version 2.0 (the "License");
957 * you may not use this file except in compliance with the License.
958 * You may obtain a copy of the License at
959 *
960 *   http://www.apache.org/licenses/LICENSE-2.0
961 *
962 * Unless required by applicable law or agreed to in writing, software
963 * distributed under the License is distributed on an "AS IS" BASIS,
964 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
965 * See the License for the specific language governing permissions and
966 * limitations under the License.
967 */function onMessage$1(t,o){if(!navigator)throw ERROR_FACTORY.create("only-available-in-window");return t.onMessageHandler=o,()=>{t.onMessageHandler=null}}/**
968 * @license
969 * Copyright 2017 Google LLC
970 *
971 * Licensed under the Apache License, Version 2.0 (the "License");
972 * you may not use this file except in compliance with the License.
973 * You may obtain a copy of the License at
974 *
975 *   http://www.apache.org/licenses/LICENSE-2.0
976 *
977 * Unless required by applicable law or agreed to in writing, software
978 * distributed under the License is distributed on an "AS IS" BASIS,
979 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
980 * See the License for the specific language governing permissions and
981 * limitations under the License.
982 */function getMessagingInWindow(t=getApp()){return isWindowSupported().then(o=>{if(!o)throw ERROR_FACTORY.create("unsupported-browser")},o=>{throw ERROR_FACTORY.create("indexed-db-unsupported")}),_getProvider(getModularInstance(t),"messaging").getImmediate()}async function getToken(t,o){return t=getModularInstance(t),getToken$1(t,o)}function onMessage(t,o){return t=getModularInstance(t),onMessage$1(t,o)}registerMessagingInWindow();var _a;const isClient$1=typeof window<"u",isFunction$4=t=>typeof t=="function",isString$1=t=>typeof t=="string",clamp$2=(t,o,r)=>Math.min(r,Math.max(o,t)),noop=()=>{},isIOS=isClient$1&&((_a=window==null?void 0:window.navigator)==null?void 0:_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(t){return typeof t=="function"?t():unref(t)}function createFilterWrapper(t,o){function r(...e){return new Promise((n,a)=>{Promise.resolve(t(()=>o.apply(this,e),{fn:o,thisArg:this,args:e})).then(n).catch(a)})}return r}const bypassFilter=t=>t();function pausableFilter(t=bypassFilter){const o=ref$1(!0);function r(){o.value=!1}function e(){o.value=!0}const n=(...a)=>{o.value&&t(...a)};return{isActive:readonly(o),pause:r,resume:e,eventFilter:n}}function identity$2(t){return t}function increaseWithUnit(t,o){var r;if(typeof t=="number")return t+o;const e=((r=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:r[0])||"",n=t.slice(e.length),a=parseFloat(e)+o;return Number.isNaN(a)?t:a+n}function computedWithControl(t,o){let r,e,n;const a=ref$1(!0),i=()=>{a.value=!0,n()};watch(t,i,{flush:"sync"});const s=isFunction$4(o)?o:o.get,l=isFunction$4(o)?void 0:o.set,d=customRef((c,u)=>(e=c,n=u,{get(){return a.value&&(r=s(),a.value=!1),e(),r},set(f){l==null||l(f)}}));return Object.isExtensible(d)&&(d.trigger=i),d}function tryOnScopeDispose(t){return getCurrentScope()?(onScopeDispose(t),!0):!1}function createGlobalState(t){let o=!1,r;const e=effectScope(!0);return()=>(o||(r=e.run(t),o=!0),r)}function resolveRef(t){return typeof t=="function"?computed(t):ref$1(t)}function syncRef(t,o,r={}){var e,n;const{flush:a="sync",deep:i=!1,immediate:s=!0,direction:l="both",transform:d={}}=r;let c,u;const f=(e=d.ltr)!=null?e:b=>b,m=(n=d.rtl)!=null?n:b=>b;return(l==="both"||l==="ltr")&&(c=watch(t,b=>o.value=f(b),{flush:a,deep:i,immediate:s})),(l==="both"||l==="rtl")&&(u=watch(o,b=>t.value=m(b),{flush:a,deep:i,immediate:s})),()=>{c==null||c(),u==null||u()}}function tryOnMounted(t,o=!0){getCurrentInstance()?onMounted(t):o?t():nextTick$1(t)}var __getOwnPropSymbols$6=Object.getOwnPropertySymbols,__hasOwnProp$6=Object.prototype.hasOwnProperty,__propIsEnum$6=Object.prototype.propertyIsEnumerable,__objRest$5=(t,o)=>{var r={};for(var e in t)__hasOwnProp$6.call(t,e)&&o.indexOf(e)<0&&(r[e]=t[e]);if(t!=null&&__getOwnPropSymbols$6)for(var e of __getOwnPropSymbols$6(t))o.indexOf(e)<0&&__propIsEnum$6.call(t,e)&&(r[e]=t[e]);return r};function watchWithFilter(t,o,r={}){const e=r,{eventFilter:n=bypassFilter}=e,a=__objRest$5(e,["eventFilter"]);return watch(t,createFilterWrapper(n,o),a)}var __defProp$2$1=Object.defineProperty,__defProps$2$1=Object.defineProperties,__getOwnPropDescs$2$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2$1=Object.getOwnPropertySymbols,__hasOwnProp$2$1=Object.prototype.hasOwnProperty,__propIsEnum$2$1=Object.prototype.propertyIsEnumerable,__defNormalProp$2$1=(t,o,r)=>o in t?__defProp$2$1(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,__spreadValues$2$1=(t,o)=>{for(var r in o||(o={}))__hasOwnProp$2$1.call(o,r)&&__defNormalProp$2$1(t,r,o[r]);if(__getOwnPropSymbols$2$1)for(var r of __getOwnPropSymbols$2$1(o))__propIsEnum$2$1.call(o,r)&&__defNormalProp$2$1(t,r,o[r]);return t},__spreadProps$2$1=(t,o)=>__defProps$2$1(t,__getOwnPropDescs$2$1(o)),__objRest$1=(t,o)=>{var r={};for(var e in t)__hasOwnProp$2$1.call(t,e)&&o.indexOf(e)<0&&(r[e]=t[e]);if(t!=null&&__getOwnPropSymbols$2$1)for(var e of __getOwnPropSymbols$2$1(t))o.indexOf(e)<0&&__propIsEnum$2$1.call(t,e)&&(r[e]=t[e]);return r};function watchPausable(t,o,r={}){const e=r,{eventFilter:n}
982=e,a=__objRest$1(e,["eventFilter"]),{eventFilter:i,pause:s,resume:l,isActive:d}=pausableFilter(n);return{stop:watchWithFilter(t,o,__spreadProps$2$1(__spreadValues$2$1({},a),{eventFilter:i})),pause:s,resume:l,isActive:d}}function computedAsync(t,o,r){let e;isRef(r)?e={evaluating:r}:e={};const{lazy:n=!1,evaluating:a=void 0,shallow:i=!1,onError:s=noop}=e,l=ref$1(!n),d=i?shallowRef(o):ref$1(o);let c=0;return watchEffect(async u=>{if(!l.value)return;c++;const f=c;let m=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const b=await t(y=>{u(()=>{a&&(a.value=!1),m||y()})});f===c&&(d.value=b)}catch(b){s(b)}finally{a&&f===c&&(a.value=!1),m=!0}}),n?computed(()=>(l.value=!0,d.value)):d}function unrefElement(t){var o;const r=resolveUnref(t);return(o=r==null?void 0:r.$el)!=null?o:r}const defaultWindow=isClient$1?window:void 0,defaultNavigator=isClient$1?window.navigator:void 0;function useEventListener(...t){let o,r,e,n;if(isString$1(t[0])||Array.isArray(t[0])?([r,e,n]=t,o=defaultWindow):[o,r,e,n]=t,!o)return noop;Array.isArray(r)||(r=[r]),Array.isArray(e)||(e=[e]);const a=[],i=()=>{a.forEach(c=>c()),a.length=0},s=(c,u,f,m)=>(c.addEventListener(u,f,m),()=>c.removeEventListener(u,f,m)),l=watch(()=>[unrefElement(o),resolveUnref(n)],([c,u])=>{i(),c&&a.push(...r.flatMap(f=>e.map(m=>s(c,f,m,u))))},{immediate:!0,flush:"post"}),d=()=>{l(),i()};return tryOnScopeDispose(d),d}let _iOSWorkaround=!1;function onClickOutside(t,o,r={}){const{window:e=defaultWindow,ignore:n=[],capture:a=!0,detectIframe:i=!1}=r;if(!e)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(e.document.body.children).forEach(f=>f.addEventListener("click",noop)));let s=!0;const l=f=>n.some(m=>{if(typeof m=="string")return Array.from(e.document.querySelectorAll(m)).some(b=>b===f.target||f.composedPath().includes(b));{const b=unrefElement(m);return b&&(f.target===b||f.composedPath().includes(b))}}),c=[useEventListener(e,"click",f=>{const m=unrefElement(t);if(!(!m||m===f.target||f.composedPath().includes(m))){if(f.detail===0&&(s=!l(f)),!s){s=!0;return}o(f)}},{passive:!0,capture:a}),useEventListener(e,"pointerdown",f=>{const m=unrefElement(t);m&&(s=!f.composedPath().includes(m)&&!l(f))},{passive:!0}),i&&useEventListener(e,"blur",f=>{var m;const b=unrefElement(t);((m=e.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(b!=null&&b.contains(e.document.activeElement))&&o(f)})].filter(Boolean);return()=>c.forEach(f=>f())}function useActiveElement(t={}){var o;const{window:r=defaultWindow}=t,e=(o=t.document)!=null?o:r==null?void 0:r.document,n=computedWithControl(()=>null,()=>e==null?void 0:e.activeElement);return r&&(useEventListener(r,"blur",a=>{a.relatedTarget===null&&n.trigger()},!0),useEventListener(r,"focus",n.trigger,!0)),n}function useSupported(t,o=!1){const r=ref$1(),e=()=>r.value=!!t();return e(),tryOnMounted(e,o),r}function useMediaQuery(t,o={}){const{window:r=defaultWindow}=o,e=useSupported(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let n;const a=ref$1(!1),i=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",s):n.removeListener(s))},s=()=>{e.value&&(i(),n=r.matchMedia(resolveRef(t).value),a.value=n.matches,"addEventListener"in n?n.addEventListener("change",s):n.addListener(s))};return watchEffect(s),tryOnScopeDispose(()=>i()),a}var __defProp$m=Object.defineProperty,__getOwnPropSymbols$o=Object.getOwnPropertySymbols,__hasOwnProp$o=Object.prototype.hasOwnProperty,__propIsEnum$o=Object.prototype.propertyIsEnumerable,__defNormalProp$m=(t,o,r)=>o in t?__defProp$m(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,__spreadValues$m=(t,o)=>{for(var r in o||(o={}))__hasOwnProp$o.call(o,r)&&__defNormalProp$m(t,r,o[r]);if(__getOwnPropSymbols$o)for(var r of __getOwnPropSymbols$o(o))__propIsEnum$o.call(o,r)&&__defNormalProp$m(t,r,o[r]);return t};function useBreakpoints(t,o={}){function r(s,l){let d=t[s];return l!=null&&(d=increaseWithUnit(d,l)),typeof d=="number"&&(d=`${d}px`),d}const{window:e=defaultWindow}=o;function n(s){return e?e.matchMedia(s).matches:!1}const a=s=>useMediaQuery(`(min-width: ${r(s)})`,o),i=Object.keys(t).reduce((s,l)=>(Object.defineProperty(s,l,{get:()=>a(l),enumerable:!0,configurable:!0}),s),{});return __spreadValues$m({greater(s){return useMediaQuery(`(min-width: ${r(s,.1)})`,o)},greaterOrEqual:a,smaller(s){return useMediaQuery(`(max-width: ${r(s,-.1)})`,o)},smallerOrEqual(s){return useMediaQuery(`(max-width: ${r(s)})`,o)},between(s,l){return useMediaQuery(`(min-width: ${r(s)}) and (max-width: ${r(l,-.1)})`,o)},isGreater(s){return n(`(min-width: ${r(s,.1)})`)},isGreaterOrEqual(s){return n(`(min-width: ${r(s)})`)},isSmaller(s){return n(`(max-width: ${r(s,-.1)})`)},isSmallerOrEqual(s){return n(`(max-width: ${r(s)})`)},isInBetween(s,l){return n(`(min-width: ${r(s)}) and (max-width: ${r(l,-.1)})`)}},i)}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};const events$2=new Map;function useEventBus(t){const o=getCurrentScope();function r(s){var l;const d=events$2.get(t)||[];d.push(s),events$2.set(t,d);const c=()=>n(s);return(l=o==null?void 0:o.cleanups)==null||l.push(c),c}function e(s){function l(...d){n(l),s(...d)}return r(l)}function n(s){const l=events$2.get(t);if(!l)return;const d=l.indexOf(s);d>-1&&l.splice(d,1),l.length||events$2.delete(t)}function a(){events$2.delete(t)}function i(s,l){var d;(d=events$2.get(t))==null||d.forEach(c=>c(s,l))}return{on:r,once:e,off:n,emit:i,reset:a}}function useGeolocation(t={}){const{enableHighAccuracy:o=!0,maximumAge:r=3e4,timeout:e=27e3,navigator:n=defaultNavigator,immediate:a=!0}=t,i=useSupported(()=>n&&"geolocation"in n),s=ref$1(null),l=ref$1(null),d=ref$1({accuracy:0,latitude:1/0,longitude:1/0,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function c(b){s.value=b.timestamp,d.value=b.coords,l.value=null}let u;function f(){i.value&&(u=n.geolocation.watchPosition(c,b=>l.value=b,{enableHighAccuracy:o,maximumAge:r,timeout:e}))}a&&f();function m(){u&&n&&n.geolocation.clearWatch(u)}return tryOnScopeDispose(()=>{m()}),{isSupported:i,coords:d,locatedAt:s,error:l,resume:f,pause:m}}function useClamp(t,o,r){if(isFunction$4(t)||isReadonly(t))return computed(()=>clamp$2(resolveUnref(t),resolveUnref(o),resolveUnref(r)));const e=ref$1(t);return computed({get(){return e.value=clamp$2(e.value,resolveUnref(o),resolveUnref(r))},set(n){e.value=clamp$2(n,resolveUnref(o),resolveUnref(r))}})}function useOffsetPagination(t){const{total:o=1/0,pageSize:r=10,page:e=1,onPageChange:n=noop,onPageSizeChange:a=noop,onPageCountChange:i=noop}=t,s=useClamp(r,1,1/0),l=computed(()=>Math.max(1,Math.ceil(unref(o)/unref(s)))),d=useClamp(e,1,l),c=computed(()=>d.value===1),u=computed(()=>d.value===l.value);isRef(e)&&syncRef(e,d),isRef(r)&&syncRef(r,s);function f(){d.value--}function m(){d.value++}const b={currentPage:d,currentPageSize:s,pageCount:l,isFirstPage:c,isLastPage:u,prev:f,next:m};return watch(d,()=>{n(reactive(b))}),watch(s,()=>{a(reactive(b))}),watch(l,()=>{i(reactive(b))}),b}var SwipeDirection;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));var __defProp$3=Object.defineProperty,__getOwnPropSymbols$3=Object.getOwnPropertySymbols,__hasOwnProp$3=Object.prototype.hasOwnProperty,__propIsEnum$3=Object.prototype.propertyIsEnumerable,__defNormalProp$3=(t,o,r)=>o in t?__defProp$3(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,__spreadValues$3=(t,o)=>{for(var r in o||(o={}))__hasOwnProp$3.call(o,r)&&__defNormalProp$3(t,r,o[r]);if(__getOwnPropSymbols$3)for(var r of __getOwnPropSymbols$3(o))__propIsEnum$3.call(o,r)&&__defNormalProp$3(t,r,o[r]);return t};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues$3({linear:identity$2},_TransitionPresets);function useUrlSearchParams(t="history",o={}){const{initialValue:r={},removeNullishValues:e=!0,removeFalsyValues:n=!1,write:a=!0,window:i=defaultWindow}=o;if(!i)return reactive(r);const s=reactive({});function l(){if(t==="history")return i.location.search||"";if(t==="hash"){const S=i.location.hash||"",C=S.indexOf("?");return C>0?S.slice(C):""}else return(i.location.hash||"").replace(/^#/,"")}function d(S){const C=S.toString();if(t==="history")return`${C?`?${C}`:""}${i.location.hash||""}`;if(t==="hash-params")return`${i.location.search||""}${C?`#${C}`:""}`;const T=i.location.hash||"#",x=T.indexOf("?");return x>0?`${T.slice(0,x)}${C?`?${C}`:""}`:`${T}${C?`?${C}`:""}`}function c(){return new URLSearchParams(l())}function u(S){const C=new Set(Object.keys(s));for(const T of S.keys()){const x=S.getAll(T);s[T]=x.length>1?x:S.get(T)||"",C.delete(T)}
982Array.from(C).forEach(T=>delete s[T])}const{pause:f,resume:m}=watchPausable(s,()=>{const S=new URLSearchParams("");Object.keys(s).forEach(C=>{const T=s[C];Array.isArray(T)?T.forEach(x=>S.append(C,x)):e&&T==null||n&&!T?S.delete(C):S.set(C,T)}),b(S)},{deep:!0});function b(S,C){f(),C&&u(S),i.history.replaceState(i.history.state,i.document.title,i.location.pathname+d(S)),m()}function y(){a&&b(c(),!0)}useEventListener(i,"popstate",y,!1),t!=="history"&&useEventListener(i,"hashchange",y,!1);const _=c();return _.keys().next().value?u(_):Object.assign(s,r),s}function useWindowScroll({window:t=defaultWindow}={}){if(!t)return{x:ref$1(0),y:ref$1(0)};const o=ref$1(t.scrollX),r=ref$1(t.scrollY);return useEventListener(t,"scroll",()=>{o.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:o,y:r}}const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(t){throw new RangeError(errors[t])}function map$1(t,o){const r=[];let e=t.length;for(;e--;)r[e]=o(t[e]);return r}function mapDomain(t,o){const r=t.split("@");let e="";r.length>1&&(e=r[0]+"@",t=r[1]),t=t.replace(regexSeparators,".");const n=t.split("."),a=map$1(n,o).join(".");return e+a}function ucs2decode(t){const o=[];let r=0;const e=t.length;for(;r<e;){const n=t.charCodeAt(r++);if(n>=55296&&n<=56319&&r<e){const a=t.charCodeAt(r++);(a&64512)==56320?o.push(((n&1023)<<10)+(a&1023)+65536):(o.push(n),r--)}else o.push(n)}return o}const ucs2encode=t=>String.fromCodePoint(...t),basicToDigit=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:base},digitToBasic=function(t,o){return t+22+75*(t<26)-((o!=0)<<5)},adapt=function(t,o,r){let e=0;for(t=r?floor(t/damp):t>>1,t+=floor(t/o);t>baseMinusTMin*tMax>>1;e+=base)t=floor(t/baseMinusTMin);return floor(e+(baseMinusTMin+1)*t/(t+skew))},decode$1=function(t){const o=[],r=t.length;let e=0,n=initialN,a=initialBias,i=t.lastIndexOf(delimiter);i<0&&(i=0);for(let s=0;s<i;++s)t.charCodeAt(s)>=128&&error("not-basic"),o.push(t.charCodeAt(s));for(let s=i>0?i+1:0;s<r;){const l=e;for(let c=1,u=base;;u+=base){s>=r&&error("invalid-input");const f=basicToDigit(t.charCodeAt(s++));f>=base&&error("invalid-input"),f>floor((maxInt-e)/c)&&error("overflow"),e+=f*c;const m=u<=a?tMin:u>=a+tMax?tMax:u-a;if(f<m)break;const b=base-m;c>floor(maxInt/b)&&error("overflow"),c*=b}const d=o.length+1;a=adapt(e-l,d,l==0),floor(e/d)>maxInt-n&&error("overflow"),n+=floor(e/d),e%=d,o.splice(e++,0,n)}return String.fromCodePoint(...o)},encode$2=function(t){const o=[];t=ucs2decode(t);const r=t.length;let e=initialN,n=0,a=initialBias;for(const l of t)l<128&&o.push(stringFromCharCode(l));const i=o.length;let s=i;for(i&&o.push(delimiter);s<r;){let l=maxInt;for(const c of t)c>=e&&c<l&&(l=c);const d=s+1;l-e>floor((maxInt-n)/d)&&error("overflow"),n+=(l-e)*d,e=l;for(const c of t)if(c<e&&++n>maxInt&&error("overflow"),c===e){let u=n;for(let f=base;;f+=base){const m=f<=a?tMin:f>=a+tMax?tMax:f-a;if(u<m)break;const b=u-m,y=base-m;o.push(stringFromCharCode(digitToBasic(m+b%y,0))),u=floor(b/y)}o.push(stringFromCharCode(digitToBasic(u,0))),a=adapt(n,d,s===i),n=0,++s}++n,++e}return o.join("")},toUnicode=function(t){return mapDomain(t,function(o){return regexPunycode.test(o)?decode$1(o.slice(4).toLowerCase()):o})},toASCII=function(t){return mapDomain(t,function(o){return regexNonASCII.test(o)?"xn--"+encode$2(o):o})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode$1,encode:encode$2,toASCII,toUnicode},[h2,h3,h4,h5]=[128,192,224,240],[t6,t5,t4,t3]=[63,31,15,7],utf8={encode(t){if(t<128)return[t];if(t<2048){const[o,r]=[t>>6,t&t6];return[h3|t5&o,h2|t6&r]}else if(t<65536){const[o,r,e]=[t>>12,t>>6,t&t6];return[h4|t4&o,h2|t6&r,h2|t6&e]}else{const[o,r,e,n]=[t>>18,t>>12,t>>6,t&t6];return[h5|t3&o,h2|t6&r,h2|t6&e,h2|t6&n]}},decode(t){const o=[];let r=0,e=0,n=!1;for(let a=0,i=t.length;a<i;a++){const s=t[a];if([n,r,e]=s>=248?[1,0,0]:s>=240?[r,3,s&7]:s>=224?[r,2,s&15]:s>=192?[r,1,s&31]:s>=128?[!r,r-1,e<<6|s&63]:[r,0,s],n)throw new Error(`Invalid UTF8, at index ${a}`);r===0&&(o[o.length]=e)}if(r)throw new Error("Incomplete UTF8 byte sequence");return o}},pct={encode(t,o,{ascii:r=!0,incremental:e=!0}={}){let n="";for(let a of t){let i=a.codePointAt(0);(55296<=i&&i<=56319||56320<=i&&i<=57343)&&(i=65533);const s=r&&(i<32||i>126);if(!e&&i===37||s||lookup(i)&o)for(let d of utf8.encode(i)){let c=d>>4,u=d&15;
982c=(c<10?48:55)+c,u=(u<10?48:55)+u,n+=String.fromCharCode(37,c,u)}else n+=a}return n},decode(t){return t.replace(_pcts,_decode$1)}},_pcts=/(%[0-9A-Fa-f]{2})+/g,_decode$1=t=>{const o=[];for(let r=0,e=t.length;r<e;r+=3)o[o.length]=parseInt(t.substr(r+1,2),16);return String.fromCodePoint(...utf8.decode(o))};let lookup,getProfile;{const c=[999,0,871,1022,0,512,0,2],u=[504],f=[384,256,999,256,999,504,384],m=[896,944,896,896,0,865],b=[864,768,864,0];lookup=w=>w<=31||127<=w&&w<160?-1:32<=w&&w<=39?c[w-32]:w===47?u[w-47]:58<=w&&w<=64?f[w-58]:91<=w&&w<=96?m[w-91]:123<=w&&w<=126?b[w-123]:55296<=w&&w<=57343||64976<=w&&w<=65007||(w>>1&32767)===32767?-1:0;const[y,_,S,C]=[256,256,256,64],T={url:512,user:256,pass:_,username:y,password:S,host:128,dir:64,file:C,query:4,hash:1},x={...T,dir:8,file:8},k={...T,dir:32,file:32,query:2},E={...T,dir:16,file:16,query:2};getProfile=({minimal:w=!1,special:D=!1})=>w&&D?E:D?k:w?x:T}console.log.bind(console);const _nonhost=/[\x00\x09\x0A\x0D\x20#%/:<>?@[\\\]^|]/g;function parseHost(t,o,r=!0){if(t){if(t[0]==="[")t=t.substr(1,t.length-2),t=`[${ipv6.normalise(t)}]`;else if(o&3){let e=r?pct.decode(t):t;e=nameprep(e),e=punycode.toUnicode(e);const n=ipv4.parse(e);if(n!=null)return ipv4.print(n);if(!e.length||(_nonhost.lastIndex=0,_nonhost.test(e)))throw new Error(`Host parser: Invalid domain: ${JSON.stringify(e)}`);return e}}return t}const tableB1=/[\u00AD\u034F\u1806\uFEFF\u2060\u180B-\u180D\u200B-\u200D\uFE00-\uFE0F]/g,tableC6=/[\uFFF9-\uFFFD]/g;function nameprep(t){tableC6.lastIndex=tableB1.lastIndex=0,t=t.replace(tableB1,"").normalize("NFKC").toLowerCase();for(let o of t)if(o=o.codePointAt(0),64976<=o&&o<=65007||o<=1114111&&(o>>1&32767)===32767)throw new Error("Nameprep: Invalid code point");if(tableC6.test(t))throw new Error("Nameprep: Invalid code point");return t}const _ip4num=/(?:0[xX]([0-9A-Fa-f]*)|(0[0-7]*)|([1-9][0-9]*))([.]?)/y,ipv4={parse(t){_ip4num.lastIndex=0;let o=0,r=0,e,n=!1;for(;e=_ip4num.exec(t);){r++;const a=e[1]!=null?parseInt(e[1]||"0",16):e[2]?parseInt(e[2],8):parseInt(e[3],10);if(_ip4num.lastIndex===t.length){const i=5-r;if(n||a>=256**i)throw new RangeError(`Invalid IPv4 address: <${t}>`);return(o<<8*i)+a}else{if(r===4||!e[4])return null;n=n||a>255,o=(o<<8)+a}}return null},print(t){let o="";for(let r=3;r;r--)o+=(t>>8*r&255)+".";return o+(t&255)},normalise(t){return ipv4.print(ipv4.parse(t))}},_start=/([0-9]+)([.])|([0-9A-Fa-f]+)(:?)|(::)/y,_hex=/([0-9]+)([.])|([0-9A-Fa-f]+)(:?)|(:)/y,_dec=/([0-9]+)([.])?/y,ipv6={parse(t){const o=[],r=[];let e,n=null,a=_start,i=a.lastIndex=0;for(;e=a.exec(t);){if(i=a.lastIndex,e[1]){if(r.push(+e[1]),!e[2])break;a=_dec}else if(e[3]){if(o.push(parseInt(e[3],16)),!e[4])break;a=_hex}else if(e[5]){if(n==null)n=o.length;else throw new SyntaxError(`Invalid IPv6 address: [${t}]`);a=_hex}a.lastIndex=i}if(i!==t.length||r.length&&r.length!==4)throw new SyntaxError(`Invalid IPv6 address: [${t}]`);if(r.length){const[d,c,u,f]=r;o.push(256*d+c,256*u+f)}if(n==null&&o.length!==8)throw new SyntaxError(`Invalid IPv6 address: [${t}]`);
982const s=[],l=8-o.length;for(let d=0;d<l;d++)s.push(0);return o.splice(n,0,...s),o},print(t){let[o,r]=[0,0],[e,n]=[0,0];for(let i=0,s=t.length;i<s;i++){let l=t[i];for(l===0&&([e,n]=[i,0]);l===0&&i<s;)[i,n,l]=[i+1,n+1,t[i+1]];n>r&&([o,r]=[e,n])}t=t.map(i=>i.toString(16));let a=o>0&&o+r<8?"":o===0&&r===8?"::":":";return r>1&&t.splice(o,r,a),t.join(":")},normalise(t){return ipv6.print(ipv6.parse(t))}},{setPrototypeOf:setProto$1,assign}=Object,ords={scheme:1,auth:2,drive:3,root:4,dir:5,file:6,query:7,hash:8},modes={generic:0,web:1,file:2,special:3},specials={http:1,https:1,ws:1,wss:1,ftp:1,file:2},modeFor=({scheme:t},o=modes.generic)=>specials[low(t)]||o,isFragment=t=>t.hash!=null&&ord(t)===ords.hash,low=t=>t&&t.toLowerCase(),tags={scheme:1,user:2,pass:2,host:2,port:2,drive:3,root:4,dirs:5,file:6,query:7,hash:8},ord=t=>{for(const o in tags)if(t[o]!=null)return tags[o];return ords.hash},upto=(t,o)=>{const r={};for(const e in tags)t[e]!=null&&(tags[e]<o?r[e]=t[e]:tags[e]===o&&e==="dirs"&&(r[e]=t[e].slice(0)));return r},goto=(t,o)=>{const r=upto(t,ord(o));for(const e in tags)o[e]!=null&&(e==="dirs"?r.dirs=[...r.dirs||[],...o.dirs]:r[e]=o[e]);return(r.host!=null||r.drive)&&(r.dirs||r.file)&&(r.root="/"),r},isBase=({scheme:t,host:o,drive:r,root:e})=>{const n=specials[low(t)]||modes.generic;return t&&(n&modes.file?o!=null&&(r||e):n&modes.web?o&&e:o!=null||e)};class ForceError extends TypeError{constructor(o){super(`Cannot coerce ${print(o)} to a base-URL`)}}const forceAsFileUrl=t=>(t=assign({},t),t.host==null&&(t.host=""),t.drive==null&&(t.root="/"),t),forceAsWebUrl=t=>{if(t=assign({},t),!t.host){let o=t.host;const r=t.dirs?t.dirs.slice():[];for(;!o&&r.length;)o=r.shift();if(o||(o=t.file,delete t.file),o){try{assign(t,parseAuth(o,modes.web))}catch{throw new ForceError(t)}r.length?t.dirs=r:delete t.dirs}else throw new ForceError(t)}return t.root="/",t},force=t=>{const o=specials[low(t.scheme)]||modes.generic;if(o===modes.file)return forceAsFileUrl(t);if(o===modes.web)return forceAsWebUrl(t);if(t.scheme)return t;throw new ForceError(t)};class ResolveError extends TypeError{constructor(o,r){super(`Cannot resolve <${print(o)}> against <${print(r)}>`)}}const genericResolve=(t,o)=>{if(t.scheme||o.scheme)return goto(o,t);throw new ResolveError(t,o)},legacyResolve=(t,o)=>(t.scheme&&low(t.scheme)===low(o.scheme)&&(o=setProto$1({scheme:t.scheme},o),t=setProto$1({scheme:null},t)),genericResolve(t,o)),WHATWGResolve=(t,o)=>{if((t.scheme?modeFor(t):modeFor(o))&modes.special)return force(legacyResolve(t,o));if(isBase(o))return genericResolve(t,o);if(o.scheme&&(t.scheme||isFragment(t)))return goto(o,t);throw new ResolveError(t,o)},normalise=(t,o=!0)=>{const r=assign({},t),e=low(r.scheme);if(r.scheme=e,r.pass===""&&delete r.pass,!r.pass&&r.user===""&&delete r.user,r.port===""&&delete r.port,!isBase(t)&&t.dirs)r.dirs=r.dirs.slice();else{const n=[];for(const a of r.dirs||[]){const i=dots(a,o);i===2?n.pop():i||n.push(a)}if(r.file){const a=dots(r.file,o);a===2&&n.pop(),a&&delete r.file}n.length?r.dirs=n:delete r.dirs}r.drive&&(r.drive=r.drive[0]+":"),e==="file"&&r.host==="localhost"?r.host="":(t.port===80&&(e==="http"||e==="ws")||t.port===443&&(e==="https"||e==="wss")||t.port===21&&e==="ftp")&&delete r.port;for(const n in tags)r[n]==null&&delete r[n];return r},dots=(t,o=!0)=>t.length<=3&&(t==="."||o&&low(t)==="%2e")?1:t.length<=6&&(t===".."||o&&low(t)===".%2e"||o&&low(t)==="%2e."||o&&low(t)==="%2e%2e")?2:0,percentEncode=(t,o={ascii:!0})=>{const r={},e=profileFor(t);for(const n in tags)if(t[n]!=null){const a=t[n];if(n==="dirs"){const i=r.dirs=[];for(const s of a)i.push(pct.encode(s,e.dir,o))}else n==="host"?_isIp6(a)?r[n]=a:modeFor(t)&modes.special?r[n]=o.ascii?punycode.toASCII(a):a:r[n]=pct.encode(a,e[n],o):r[n]=n in e?pct.encode(a,e[n],o):a}return r},_decode=getProfile({}),percentDecode=t=>{const o={};for(let r in tags)t[r]!=null&&(o[r]=r==="dirs"?t[r].map(pct.decode):r in _decode?pct.decode(t[r]):t[r]);return o},_isIp6=t=>t!=null&&t[0]==="["&&t[t.length-1]==="]",profileFor=(t,o)=>{const r=modeFor(t,o)&modes.special,e=r?!1:!isBase(t);return getProfile({minimal:e,special:r})},print=t=>{const o=!t.drive&&t.host==null,r=t.dirs&&t.dirs[0]==="";return(o&&t.root&&r||!t.root&&r)&&(t=setProto$1({dirs:["."].concat(t.dirs)},t)),_print(t)},_print=t=>{let o="";const r=t.user!=null;for(const e in tags)if(t[e]!=null){const n=t[e];o+=e==="scheme"?n+":":e==="user"?"//"+n:e==="pass"?":"+n:e==="host"?(r?"@":"//")+n:e==="port"?":"+n:e==="drive"?"/"+n:e==="root"?"/":e==="dirs"?n.join("/")+"/":e==="file"?n:e==="query"?"?"+n:e==="hash"?"#"+n:""}return o};function*flags(t=0,o=30){for(;t<=o;)yield 1<<t++}const[START,SCHEME,SS,AUTH,PATH,QUERY,FRAG]=flags(),[CR,LF,TAB,SP,QUE,HASH,COL,PLUS,MIN,DOT,SL,SL2,BAR]=[...`\r
983	 ?#:+-./\\|`].map(t=>t.charCodeAt(0)),isAlpha=t=>65<=t&&t<=90||97<=t&&t<=122;function parse(t,o=modes.web){const r={};let e=START|SCHEME,n=0,a=!1,i=!1,s="",l=0;
983for(let d=0,c=t.length;d<=c;d++){const u=t.charCodeAt(d);if(u===CR||u===LF||u===TAB||e&START&&u<=SP)continue;isNaN(u)&&(s=s.substr(0,l));const f=u===SL||o&modes.special&&u===SL2;if(f&&e&(START|SS)){e=++n===2?AUTH:SS;continue}if(e===SCHEME&&u===COL||e<QUERY&&(f||u===QUE)||e<FRAG&&u===HASH||isNaN(u)){e===SCHEME&&u===COL?(r.scheme=s,o=modeFor(r)):e===SS?(f||n)&&(r.root="/"):i?(e&AUTH&&(r.host=""),r.drive=s,delete r.root,f&&(r.root="/")):e&AUTH?(assign(r,parseAuth(s,o,!0)),f&&(r.root="/")):e===QUERY?r.query=s:e===FRAG?r.hash=s:f?(r.dirs=r.dirs||[]).push(s):s&&(r.file=s),e=u===COL?SS:u===QUE?QUERY:u===HASH?FRAG:PATH,a=i=!1,[s,l]=["",0];continue}e&SCHEME&&isAlpha(u)?e=SCHEME:e===SCHEME&&u!==PLUS&&u!==MIN&&u!==DOT&&(u<48||57<u)?e=PATH:e&(START|SS)&&(n&&(r.root="/"),e=PATH),o&modes.file&&!r.drive&&!r.dirs&&e<QUERY?(i=a&&(u===BAR||e&~SCHEME&&u===COL),a=!s&&isAlpha(u)):i=!1,s+=t[d],u>SP&&(l=s.length)}return r}const raw=String.raw,opt=t=>"(?:"+t+")?",Rexp=t=>new RegExp("^"+t+"$"),port="[:]([0-9]*)",user="([^:]*)",pass="[:](.*)",host=raw`(\[[^\]]*\]|[^\0\t\n\r #/:<>?@[\\\]^|]*)`,creds=user+opt(pass)+"[@]",authExp=Rexp(opt(creds)+host+opt(port));function parseAuth(t,o,r=!0){let e,n,a,i,s,l;if(t.length===0)i="";else if(e=authExp.exec(t)){if([l,n,a,i,s]=e,s!=null&&s.length&&(s=+s,s>=2**16))throw new Error("ERR_INVALID_PORT")}else throw new Error("ERR_INVALID_AUTH");if((n!=null||s!=null)&&!i)throw new Error;if(o===modes.file&&(n!=null||s!=null))throw new Error;i=parseHost(i,o,r);const d={user:n,pass:a,host:i,port:s};for(const c in d)d[c]==null&&delete d[c];return d}console.log.bind(console);const{setPrototypeOf:setProto,freeze:freeze$1}=Object;class Url{constructor(o={},{parser:r="http"}={}){const e=prepare(o,this,r);return e instanceof Url?e:url({},this).set(e)}get href(){return this.toString({ascii:!0})}get percentCoded(){return!1}goto(o){return o=prepare(o,this,this.scheme),url(goto(this,o),this)}isBase(){return isBase(this)}forceAsFileUrl(){const o=forceAsFileUrl(this);return o===this?this:url(o,this)}forceAsWebUrl(){const o=forceAsWebUrl(this);return o===this?this:url(o,this)}force(){const o=force(this);return o===this?this:url(o,this)}genericResolve(o){return o=prepare(o,this),url(genericResolve(this,o),this)}legacyResolve(o){return o=prepare(o,this),url(legacyResolve(this,o),this)}WHATWGResolve(o){return o=prepare(o,this),url(WHATWGResolve(this,o),this)}resolve(o){return o=prepare(o,this),url(WHATWGResolve(this,o),this)}normalise(){return url(normalise(this),this)}normalize(){return url(normalise(this),this)}percentEncode({ascii:o=!0}={}){const r={ascii:o,incremental:this.percentCoded};return url(percentEncode(this,r),{percentCoded:!0})}percentDecode(){return this}toString({ascii:o=!1}={}){const r={ascii:o,incremental:this.percentCoded};return print(percentEncode(this,r))}toURI(){if(!isBase(this))throw new TypeError(`Cannot convert <${this}> to an URI because it has no scheme`);return this.toString({ascii:!0})}toASCII(){return this.toString({ascii:!0})}toJSON(){return this.toString({ascii:!0})}set(o){if("host"in o){const{user:i=null,pass:s=null,port:l=null}=o;o=setProto({user:i,pass:s,port:l},o)}else"user"in o&&!("pass"in o)&&(o=setProto({pass:null},o));const{percentCoded:r=this.percentCoded}=o;r!==this.percentCoded&&(o=r?percentDecode(o):percentEncode(o,{incremental:!1}));const e={};let n=[];const a=settersFor(e,n,this.percentCoded);for(let i in a)i in o?o[i]!=null&&a[i](o[i]):i in this&&(e[i]=i==="dirs"?[...this.dirs]:this[i]);if(n.length)throw new TypeError(`Invalid patch:
984	- ${n.join(`
985	- `)}
986`);if(!e.root)if((e.host!=null||e.drive)&&(e.dirs||e.file)){if(e.root===null)throw new Error("Cannot unset path-root");e.root="/"}else delete e.root;if(n=structErrors(e),n.length)throw new TypeError(`	- ${n.join(`
987	- `)}
988`);return url(e,{percentCoded:this.percentCoded})}}class RawUrl extends Url{get percentCoded(){return!0}percentDecode(){return url(percentDecode(this),{percentCoded:!1})}}function url(t,{percentCoded:o=!1}={}){return t.dirs&&freeze$1(t.dirs),freeze$1(setProto(t,(o?RawUrl:Url).prototype))}function prepare(t,{percentCoded:o=!1}={},r="http"){return typeof t=="string"?(t=parse(t,modeFor({scheme:r})),o?t:percentDecode(t)):t&&typeof t=="object"?(t=t instanceof Url?t:Url.prototype.set.call({},t),t.percentCoded===o?t:o?percentEncode(t,{incremental:!1}):percentDecode(t)):{}}const settersFor=(t,o,r)=>({scheme:e=>{(e=String(e))&&/^[a-zA-Z][a-zA-Z0-9.+-]*$/.test(e)?t.scheme=e:o.push("Invalid scheme string")},user:e=>t.user=String(e),pass:e=>t.pass=String(e),host:e=>t.host=parseHost(String(e),modeFor(t),r),port:e=>{e===""||(e=+e)<2**16?t.port=e:o.push("Invalid port")},drive:e=>{(e=String(e))&&/^[a-zA-Z][|:]?$/.test(e)?t.drive=e.length>1?e:e+":":o.push("Invalid drive string")},root:e=>t.root=e?"/":null,dirs:e=>{if(e&&typeof e=="object"&&Symbol.iterator in e){const n=[];for(let a of e)n[n.length]=String(a);n.length&&(t.dirs=n)}else o.push("Invalid dirs array")},file:e=>{(e=String(e))?t.file=e:o.push("Invalid file string")},query:e=>t.query=String(e),hash:e=>t.hash=String(e)}),structErrors=t=>{const o=[],r=!t.scheme&&t.drive||t.scheme&&modeFor(t)===modes.file;return(t.host==null||r)&&(t.user!=null||t.pass!=null||t.port!=null)?o.push(r?"A file-URL cannot have credentials or a port":"A host-less URL cannot have credentials or a port"):t.pass!=null&&t.user==null&&o.push("A URL without username cannot have a password"),!r&&t.drive&&o.push("A non-file URL cannot have a drive"),o},HASH_RE=/#/g,AMPERSAND_RE=/&/g,EQUAL_RE=/[=]/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(t){return encodeURI(`${t}`).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeQueryValue(t){return commonEncode(t).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(t){return encodeQueryValue(t).replace(EQUAL_RE,"%3D")}function decode(t){try{return window.decodeURIComponent(t)}catch{console.warn(`Error decoding "${t}". Leaving it intact.`)}return t}function parseQuery(t,o=!1){const r={};let e=t.trim().replace(/^(\?|#|&)/,"");return e&&e.split("&").forEach(n=>{const a=n.replace(/\+/g," ").split("="),i=o?decode(a.at(0)):a.at(0);a.shift();const s=a.length>0?o?decode(a.join("=")):a.join("="):null;r[i]===void 0?r[i]=s:Array.isArray(r[i])?r[i].push(s):r[i]=[r[i],s]}),r}function stringifyQuery(t,o=!1){let r="";for(let e in t){const n=t[e];if(o&&(e=encodeQueryKey(e)),n===null){n!==void 0&&(r+=(r.length?"&":"")+e);continue}(o?Array.isArray(n)?n.map(i=>
988i&&encodeQueryValue(i)):[n&&encodeQueryValue(n)]:[n]).forEach(i=>{i!==void 0&&(r+=(r.length?"&":"")+e,i!==null&&(r+=`=${i}`))})}return r}const wrapQueryWithHTML=(t,{query:o="",tag:r="mark",className:e="",regexOptions:n="gi"})=>{if(!o)return t;const a=o.replace(/[-\\/\\^$*+?.()|[\]{}]/g,"\\$&");return t.replace(new RegExp(a,n),i=>`<${r} ${e?`class="${e}"`:""}>${i}</${r}>`)},ensureHtmlExtension=t=>{if(!t)return"";let o=new RawUrl(t);return o.file?o.file.endsWith(".html")||o.file.includes(".")?t:(o=o.set({file:`${o.file}.html`}),o.toString().replaceAll("%20","+")):t},isUrlMatchCurrentHostname=t=>{if(!t)return!1;let o=t;if(o.startsWith("//")&&(o=`${window.location.protocol}${o}`),o.startsWith("/"))return!0;if(o.startsWith("http")||o.startsWith("https"))try{return new URL(o).hostname===window.location.hostname}catch{return!1}return!o.startsWith("file")},addRetainingQueryToUrl=t=>{const o=["wcmmode","vite","empty","id"],r=window.router.currentRoute.value.query,e={};for(const l of o)l in r&&(e[l]=r[l]);const n=new RawUrl(t),a=n.query?parseQuery(n.query):null,i={...e,...a};let s=n;return Object.keys(i).length>0&&(s=n.set({query:stringifyQuery(i)})),s.toString().replaceAll("%20","+")},formatNumberWithAbbreviation=(t,o)=>{if(!t)return"";const r=t.toString();return o&&r.length<=o?r:t>=1e12?formatNumber(t,1e12,"t"):t>=1e9?formatNumber(t,1e9,"b"):t>=1e6?formatNumber(t,1e6,"m"):t>=1e3?formatNumber(t,1e3,"k"):Math.round(parseFloat(t)).toString()},formatNumber=(t,o,r)=>{const e=(t/o).toFixed(2);return e.endsWith(".00")?`${e.slice(0,-3)}${r}`:`${e}${r}`},formatNumberWithComma=t=>{if(!t)return"";const r=t.toString().split(".");return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),r.join(".")},lowFarePriceNumberFormat=t=>{if(!t)return"";if(t>=1e12)return formatNumber(t,1e12,"t");if(t>=1e9)return formatNumber(t,1e9,"b");if(t>=1e6)return formatNumber(t,1e6,"m");if(t>=1e4&&t>=1e5)return`${Math.floor(t/1e3)}k`;if(t>=1e3){let o=Math.round(t.endsWith(".00")?`${t.slice(0,-3)}`:`${t}`);return formatNumberWithComma(o)}return Math.round(parseFloat(t)).toString()},formatNumberFloorToTwoDecimals=t=>(Math.floor(t*100)/100).toFixed(2),lowPriceNumFormatForKorean=t=>{if(!t)return"";let o=Math.round(t);const r=Number(o);return o<1e4?o:(r/1e4).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})+"만"},formatRoundedIntegerWithCommas=t=>{if(t==null)return"";const o=Number(String(t).trim());if(Number.isNaN(o))return"";const r=Math.round(o),n=Math.abs(r).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return r<0?`-${n}`:n},_transformStringToCQPrefix=t=>{if(!t.startsWith(":"))return t;const o=t.substr(1);return`cq${o.substr(0,1).toUpperCase()}${o.substr(1)}`},transformObjKeyToCq=t=>Object.fromEntries(Object.entries(t).map(([o,r])=>[_transformStringToCQPrefix(o),r])),useGlobalAEMState$1=createGlobalState(()=>{const t=ref$1(null),o=computed(()=>{var i;return(i=t.value)==null?void 0:i.cqPath}),r=computed(()=>{var i;return((i=t.value)==null?void 0:i.isEditorMode)??!1}),e=ref$1(null),n=computed(()=>{var s,l,d,c;return e.value?(c=(d=(l=(s=e.value)==null?void 0:s.cqItems)==null?void 0:l.root[":items"])==null?void 0:d.page_properties)==null?void 0:c.pageProperties:null}),a=ref$1(null);return{rootPageModel:t,rootPath:o,pageProperties:n,pageModel:e,isEditorMode:r,bookingWidgetSubTab:a}});window.useGlobalAEMState=useGlobalAEMState$1;const getBrowserOsInfo={options:[],header:[navigator.platform,navigator.userAgent,navigator.appVersion,navigator.vendor,window.opera],dataos:[{name:"Windows Phone",value:"Windows Phone",version:"OS"},{name:"Windows",value:"Win",version:"NT"},{name:"iPhone",value:"iPhone",version:"OS"},{name:"iPad",value:"iPad",version:"OS"},{name:"Kindle",value:"Silk",version:"Silk"},{name:"Android",value:"Android",version:"Android"},{name:"PlayBook",value:"PlayBook",version:"OS"},{name:"BlackBerry",value:"BlackBerry",version:"/"},{name:"Macintosh",value:"Mac",version:"OS X"},{name:"Linux",value:"Linux",version:"rv"},{name:"Palm",value:"Palm",version:"PalmOS"}],databrowser:[{name:"Chrome",value:"Chrome",version:"Chrome"},{name:"Firefox",value:"Firefox",version:"Firefox"},{name:"Safari",value:"Safari",version:"Version"},{name:"Internet Explorer",value:"MSIE",version:"MSIE"},{name:"Opera",value:"Opera",version:"Opera"},{name:"BlackBerry",value:"CLDC",version:"CLDC"},{name:"Mozilla",value:"Mozilla",version:"Mozilla"}],init:function(){var t=this.header.join(" "),o=this.matchItem(t,this.dataos),r=this.matchItem(t,this.databrowser);return{os:o,browser:r,language:navigator.language,userAgent:navigator.userAgent}},matchItem:function(t,o){var r=0,e=0,n,a,i,s,l;for(r=0;r<o.length;r+=1)if(n=new RegExp(o[r].value,"i"),i=n.test(t),i){if(a=new RegExp(`${o[r].version}[- /:;]([\\d._]+)`,"i"),s=t.match(a),l="",s&&s[1]&&(s=s[1]),s)for(s=s.split(/[._]+/),e=0;e<s.length;e+=1)e===0?l+=`${s[e]}.`:l+=s[e];else l="0";return{name:o[r].name,version:parseFloat(l)}}return{name:"unknown",version:0}}},sendClientToken=({clientToken:t,baseUrl:o,acui:r,userKey:e,mcid:n,gaid:a,language:i,osName:s,osVer:l,browserName:d,browserVer:c,siteName:u="MH",country:f,newLanguage:m})=>
988{var b={acui:r,ukey:e,ctok:t,os:s,osv:l,osl:i,manf:d,manfv:c,ecid:n,country:f,language:m},_={url:`${o}${u==="firefly"?"/mab/webregisterAndroidFireFly.jssp":"/mab/webregisterAndroid.jssp"}`,method:"POST",data:b};return new Promise(function(S,C){var T=new XMLHttpRequest;T.open(_.method,_.url),T.setRequestHeader("Content-Type","text/plain"),T.send(JSON.stringify(_.data)),T.onload=function(){S(T.responseText)},T.onerror=function(){C(T.statusText)}})},getECID=()=>{var t,o;return((o=(t=window._satellite)==null?void 0:t.getVisitorId())==null?void 0:o.getMarketingCloudVisitorID())??""},isTokenSentToServer=()=>window.localStorage.getItem("sentToServer")==="1",setTokenSentToServer=t=>{window.localStorage.setItem("sentToServer",t?"1":"0")},isUserInfoSentToServer=()=>window.localStorage.getItem("sentUserInfoToServer")==="1",setUserInfoSentToServer=t=>{window.localStorage.setItem("sentUserInfoToServer","1")},setEnrichIdSentToServer=t=>{window.localStorage.setItem("enrichIdSentToServer","0")},isSameToken=t=>window.localStorage.getItem("tokenFCM")===t,setTokenFCM=t=>{window.localStorage.setItem("tokenFCM",t)},parseJwt=t=>{try{var o=t.split(".")[1],r=decodeURIComponent(atob(o).split("").map(function(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}).join(""));return JSON.parse(r)}catch{return null}},isUserLoggedIn=()=>{var t=document.cookie.match("(^|;)\\s*sapphire\\s*=\\s*([^;]+)"),o=!1;return t!==null&&(o=!0),o},isHexDecimal=t=>parseInt(t>>>0).toString(16).toLowerCase()==="0",decimalToHexDecimal=t=>parseInt(t>>>0).toString(16).toLowerCase(),sendAdobeCampaignTrack=({accBaseUrl:t,mId:o,dId:r,tcode:e})=>{const n=isHexDecimal(o)?o:decimalToHexDecimal(o),a=isHexDecimal(r)?r:decimalToHexDecimal(r),i=`${t}/r/?id=h${n},${a},${e}`;fetch(i).then(function(s){if(s.status!==200){console.log(`sendAdobeCampaignTrack: ${s.status}`);return}}).catch(function(s){console.log(`sendAdobeCampaignTrack outer catch: ${s}`)})},showMessageNotification=({payload:t,receiveNotificationCallback:o,clickNotificationCallback:r})=>{if(t.data){var e=t.data._mId||"",n=t.data._dId||"";console.log(`IDS: ${e}---${n}`);const a=t.data.title,i={body:t.data._msg,icon:t.data.icon,image:t.data.image,badge:t.data.badge,data:{click_action:t.data.click_action,_mid:e,_did:n}},s=new Notification(a,i);o(e,n),s.onclick=l=>{l.preventDefault(),r(e,n),window.open(t.data.click_action,"_blank"),s.close()}}},getCookie=t=>{let o=`${t}=`,r=document.cookie.split(";");for(let e=0;e<r.length;e++){let n=r[e];for(;n.charAt(0)==" ";)n=n.substring(1);if(n.indexOf(o)==0)return n.substring(o.length,n.length)}return""},setCookie=(t,o,r,e="/",n="",a="")=>{if(a!==""){const i=a?`domain=${a}`:"";document.cookie=`${t}=${o};expires=${r};${i};path=${e}${n}`}else document.cookie=`${t}=${o};expires=${r};path=${e}${n}`},deleteCookie=(t,o="")=>{document.cookie=`${t}=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;`,t==="sapphire"&&(document.cookie=`${t}=${getCookie(t)};domain=.malaysiaairlines.com;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;`),t==="sapphire-amal"&&(document.cookie=`${t}=;Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT${o}`)},IR_COOKIE_NAME="irclickid",getQueryParam=t=>new URLSearchParams(window.location.search).get(t),handleImpactIrClickId=()=>{const t=getQueryParam(IR_COOKIE_NAME);if(!t)return;const o=new Date;o.setDate(o.getDate()+7),setCookie(IR_COOKIE_NAME,t,o.toUTCString(),"/","",".malaysiaairlines.com")},sleep=t=>new Promise(o=>setTimeout(o,t)),waitFor=(t,o=400,r=1/0)=>{let e=-99,n=0;const a=(l,d)=>{if(n>=r){d("waitFor(): Maximum attempt reached");return}t()?l():e=setTimeout(()=>a(l,d),o),n++};return{start:()=>new Promise(a),cancel:()=>{clearTimeout(e)}}},getRandomInt=(t,o)=>{const r=Math.ceil(t),e=Math.floor(o);return Math.floor(Math.random()*(e-r+1))+r},getHashId=function(){var t={},o="23456789abdegjkmnpqrvwxyz",r=o.length,e=9;t.generate=function(){for(var i="",s=0;s<e;s++)i+=o.charAt(Math.floor(Math.random()*r));return i};var n=[],a=9999;return t.generateUnique=function(){for(var i=0,s;!s&&i<a;)s=t.generate(),n.indexOf(s)!==-1&&(s=null,i++);return n.push(s),s},t.generateUnique}();function toKebabCase(t){if(!t)return"";let o=t.toLowerCase();o=o.replace(/\s*([^\w\s])\s*/g,"$1");let r=o.match(/[\w]+|[^\w\s]/g),e=[];for(let n=0;n<r.length;n++)/^[^\w\s]$/.test(r[n])||n>0&&!/^[^\w\s]$/.test(r[n-1])&&e.push("-"),e.push(r[n]);return e.join("")}const setupFirebaseCloudMessaging=()=>{const t=useGlobalAEMState$1(),o=t.pageProperties.value.siteName,r=t.pageProperties.value.environment;let e=t.pageProperties.value.firebaseMH.apiKey,n=t.pageProperties.value.firebaseMH.authDomain,a=t.pageProperties.value.firebaseMH.databaseURL,i=t.pageProperties.value.firebaseMH.projectId,s=t.pageProperties.value.firebaseMH.storageBucket,l=t.pageProperties.value.firebaseMH.messagingSenderId,d=t.pageProperties.value.firebaseMH.appId,c=t.pageProperties.value.firebaseMH.measurementId,u=t.pageProperties.value.firebaseMH.vapidKey,f=t.pageProperties.value.firebaseMH.swFilePath,m=t.pageProperties.value.campaign.integrationKey,b=t.pageProperties.value.campaign.trackingEndpointURL;const y=t.pageProperties.value.campaign.tokenEndpointURL;o==="firefly"&&(e=t.pageProperties.value.firebaseFirefly.apiKey,n=t.pageProperties.value.firebaseFirefly.authDomain,i=t.pageProperties.value.firebaseFirefly.projectId,s=t.pageProperties.value.firebaseFirefly.storageBucket,l=t.pageProperties.value.firebaseFirefly.messagingSenderId,d=t.pageProperties.value.firebaseFirefly.appId,u=t.pageProperties.value.firebaseFirefly.vapidKey,f=t.pageProperties.value.firebaseFirefly.swFilePath,m=t.pageProperties.value.campaign.integrationKeyFirefly,r==="production"&&(b=t.pageProperties.value.campaign.fireflyTrackingURL));const _={apiKey:e,authDomain:n,projectId:i,storageBucket:s,messagingSenderId:l,appId:d,...o!=="firefly"?{databaseURL:a}:null,...o!=="firefly"?{measurementId:c}:null},S=initializeApp(_),C=getMessagingInWindow(S);function T(){Notification.requestPermission().then(async w=>
988{w==="granted"?"serviceWorker"in navigator?navigator.serviceWorker.register(f).then(D=>{console.log(`Service Worker Registration (Scope: ${D.scope})`),getToken(C,{vapidKey:u,serviceWorkerRegistration:D}).then(N=>{N?(console.log("currentToken:",N),k(N)):setTokenSentToServer(!1)}).catch(N=>{console.log("An error occurred while retrieving token. ",N),setTokenFCM(""),setTokenSentToServer(!1),setEnrichIdSentToServer()})}).catch(D=>{const N=`Service Worker Error (${D})`;console.error(N)}):console.warn("Service Worker not available"):console.log("Permission not granted")})}function x(){const w=parseJwt(getCookie("sapphire"));return(w==null?void 0:w.extension_flyerid)??""}function k(w){!isTokenSentToServer()||!isSameToken(w)||!isUserInfoSentToServer()&&x()!==""&&x()!==null?(console.log("Sending token to server..."),E(w)):console.log("Token already sent to server so won't send it again unless it changes")}function E(w){const D=getBrowserOsInfo.init(),N=t.pageProperties.value.rootCountry??window.location.pathname.split("/")[1],F=t.pageProperties.value.rootLanguage??window.location.pathname.split("/")[2];waitFor(()=>window._satellite).start().then(()=>{isUserLoggedIn()?(sendClientToken({clientToken:w,baseUrl:y,acui:m,userKey:x(),mcid:getECID(),language:D.language,osName:D.os.name,osVer:D.os.version,browserName:D.browser.name,browserVer:D.browser.version,siteName:o,country:N,newLanguage:F}).then(A=>{setTokenFCM(w)}).catch(A=>{setTokenFCM("")}),setTokenSentToServer(!0),x()!==""&&x()!==null&&setUserInfoSentToServer()):(sendClientToken({clientToken:w,baseUrl:y,acui:m,userKey:"",mcid:getECID(),language:D.language,osName:D.os.name,osVer:D.os.version,browserName:D.browser.name,browserVer:D.browser.version,siteName:o,country:N,newLanguage:F}).then(A=>{setTokenFCM(w)}).catch(A=>{setTokenFCM("")}),setTokenSentToServer(!0))})}T(),onMessage(C,w=>{console.log("Foreground message received. ",w),showMessageNotification({payload:w,receiveNotificationCallback:(D,N)=>{sendAdobeCampaignTrack({accBaseUrl:b,mId:D,dId:N,tcode:1})},clickNotificationCallback:(D,N)=>{sendAdobeCampaignTrack({accBaseUrl:b,mId:D,dId:N,tcode:2})}})})};function _getOneYearFromNow(){let t=new Date,o=t.getTime();return o+=365*24*3600*1e3,t.setTime(o),t}const setCountryAndLocaleCookie=({country:t,language:o}={})=>{const{pageProperties:r}=useGlobalAEMState$1(),e=t??unref(r).rootCountry,n=o??unref(r).rootLanguage,a=_getOneYearFromNow();setCookie("session-selected-country",e,a.toUTCString()),setCookie("session-selected-language",n,a.toUTCString()),window.siteName==="firefly"&&setCookie("langPref",n,a.toUTCString())},_hoisted_1$3b={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$S(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$3b,o[0]||(o[0]=[createBaseVNode("path",{d:"M280 80C266.7 80 256 69.25 256 56C256 42.75 266.7 32 280 32H424C437.3 32 448 42.75 448 56V200C448 213.3 437.3 224 424 224C410.7 224 400 213.3 400 200V113.9L200.1 312.1C191.6 322.3 176.4 322.3 167 312.1C157.7 303.6 157.7 288.4 167 279L366.1 80H280zM0 120C0 89.07 25.07 64 56 64H168C181.3 64 192 74.75 192 88C192 101.3 181.3 112 168 112H56C51.58 112 48 115.6 48 120V424C48 428.4 51.58 432 56 432H360C364.4 432 368 428.4 368 424V312C368 298.7 378.7 288 392 288C405.3 288 416 298.7 416 312V424C416 454.9 390.9 480 360 480H56C25.07 480 0 454.9 0 424V120z"},null,-1)]))}const __unplugin_components_1$e=markRaw({name:"far-arrow-up-right-from-square",render:render$S}),_export_sfc=(t,o)=>{const r=t.__vccOpts||t;for(const[e,n]of o)r[e]=n;return r},__default__$2p={name:"AppHyperlink"},_sfc_main$2r=Object.assign(__default__$2p,{props:{href:{type:String,default:""},forceATag:{type:Boolean,default:!0},forceRouterTag:{type:Boolean,default:!1},forceDivTag:{type:Boolean,default:!1},autoHtmlExtension:{type:Boolean,default:!0},addHtmlExtension:{type:Boolean,default:null},externalLinkIcon:{type:[String,Object],default:__unplugin_components_1$e},autoExternalLinkIcon:{type:Boolean,default:!1},showExternalLinkIcon:{type:Boolean,default:null}},setup(t,{expose:o}){o();const r=useRouter$1(),e=t,n=computed(()=>
988{if(!e.href||!e.href.startsWith("http"))return!0;try{return new URL(e.href).origin===window.location.origin}catch{return!0}}),a=computed(()=>{var u,f;const c=addRetainingQueryToUrl(e.href);if(typeof e.addHtmlExtension=="boolean")return e.addHtmlExtension?ensureHtmlExtension(c):c;if(e.autoHtmlExtension&&n.value){if(window.siteName==="firefly"){let m=new RawUrl(c);if((f=(u=m==null?void 0:m.dirs)==null?void 0:u.join("/"))!=null&&f.startsWith("flights/en"))return c}return ensureHtmlExtension(c)}return c}),i=computed(()=>(n.value,typeof e.showExternalLinkIcon=="boolean"?e.showExternalLinkIcon:e.autoExternalLinkIcon?!n.value:!1)),s=computed(()=>e.forceDivTag?"div":e.forceATag?"a":e.forceRouterTag?"router-link":a.value.startsWith("/content/mas")?"a":n.value?"router-link":"a"),l=computed(()=>({[s.value==="router-link"?"to":"href"]:a.value})),d={router:r,props:e,isOriginMatchCurrentLocation:n,computedLink:a,isExternalLinkIconVisible:i,computedTag:s,componentProps:l,get ArrowUpRightFromSquare(){return __unplugin_components_1$e},get ensureHtmlExtension(){return ensureHtmlExtension},get addRetainingQueryToUrl(){return addRetainingQueryToUrl},get ReURL(){return Url},get ReRawURL(){return RawUrl},get useRouter(){return useRouter$1}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}});function _sfc_render$2r(t,o,r,e,n,a){const i=resolveDirective("tw-merge");return withDirectives((openBlock(),createBlock(resolveDynamicComponent(e.computedTag),mergeProps({class:"AppHyperlink inline-flex items-center flex-wrap"},e.componentProps,{rel:"noopener noreferrer"}),{default:withCtx(()=>[renderSlot(t.$slots,"default",{},void 0,!0),e.isExternalLinkIconVisible?(openBlock(),createBlock(resolveDynamicComponent(e.props.externalLinkIcon),{key:0,class:"ml-2 rtl:mr-2 rtl:ml-0 fill-current"})):createCommentVNode("",!0)]),_:3},16)),[[i]])}const AppHyperlink=_export_sfc(_sfc_main$2r,[["render",_sfc_render$2r],["__scopeId","data-v-9aa8818a"],["__file","AppHyperlink.vue"]]);/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create:create$5}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(o){return o});seal||(seal=function(o){return o});apply||(apply=function(o,r,e){return o.apply(r,e)});construct||(construct=function(o,r){return new o(...r)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush$2=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unappl
vendor: 4,845 bytes, line 988
988y(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(t){return function(o){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return apply(t,o,e)}}function unconstruct(t){return function(){for(var o=arguments.length,r=new Array(o),e=0;e<o;e++)r[e]=arguments[e];return construct(t,r)}}function addToSet(t,o){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(t,null);let e=o.length;for(;e--;){let n=o[e];if(typeof n=="string"){const a=r(n);a!==n&&(isFrozen(o)||(o[e]=a),n=a)}t[n]=!0}return t}function cleanArray(t){for(let o=0;o<t.length;o++)objectHasOwnProperty(t,o)||(t[o]=null);return t}function clone$1(t){const o=create$5(null);for(const[r,e]of entries(t))objectHasOwnProperty(t,r)&&(Array.isArray(e)?o[r]=cleanArray(e):e&&typeof e=="object"&&e.constructor===Object?o[r]=clone$1(e):o[r]=e);return o}function lookupGetter(t,o){for(;t!==null;){const e=getOwnPropertyDescriptor(t,o);if(e){if(e.get)return unapply(e.get);if(typeof e.value=="function")return unapply(e.value)}t=getPrototypeOf(t)}function r(){return null}return r}const html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text$1=freeze(["#text"]),html$2=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
988spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME,CUSTOM_ELEMENT});const NODE_TYPE={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(o,r){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let e=null;
vendor: 9,282 bytes, line 988
988const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(e=r.getAttribute(n));const a="dompurify"+(e?"#"+e:"");try{return o.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function createDOMPurify(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const o=We=>createDOMPurify(We);if(o.version="3.1.6",o.removed=[],!t||!t.document||t.document.nodeType!==NODE_TYPE.document)return o.isSupported=!1,o;let{document:r}=t;const e=r,n=e.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:s,Element:l,NodeFilter:d,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:f,trustedTypes:m}=t,b=l.prototype,y=lookupGetter(b,"cloneNode"),_=lookupGetter(b,"remove"),S=lookupGetter(b,"nextSibling"),C=lookupGetter(b,"childNodes"),T=lookupGetter(b,"parentNode");if(typeof i=="function"){const We=r.createElement("template");We.content&&We.content.ownerDocument&&(r=We.content.ownerDocument)}let x,k="";const{implementation:E,createNodeIterator:w,createDocumentFragment:D,getElementsByTagName:N}=r,{importNode:F}=e;let V={};o.isSupported=typeof entries=="function"&&typeof T=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:M,TMPLIT_EXPR:O,DATA_ATTR:R,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:U}=EXPRESSIONS;let{IS_ALLOWED_URI:B}=EXPRESSIONS,L=null;const z=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text$1]);let W=null;const J=addToSet({},[...html$2,...svg,...mathMl,...xml]);let te=Object.seal(create$5(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,oe=null,X=!0,se=!0,le=!1,he=!0,ge=!1,Q=!0,Y=!1,ne=!1,Ce=!1,ae=!1,Be=!1,me=!1,K=!0,q=!1;const Z="user-content-";let de=!0,fe=!1,_e={},pe=null;const ve=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Me=null;const Fe=addToSet({},["audio","video","img","source","image","track"]);let Te=null;const Se=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ae="http://www.w3.org/1998/Math/MathML",ue="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let Xe=ye,De=!1,ke=null;const ze=addToSet({},[Ae,ue,ye],stringToString);let qe=null;const ht=["application/xhtml+xml","text/html"],pt="text/html";let Ne=null,Je=null;const $e=r.createElement("form"),st=function(we){return we instanceof RegExp||we instanceof Function},bt=function(){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Je&&Je===we)){if((!we||typeof we!="object")&&(we={}),we=clone$1(we),qe=ht.indexOf(we.PARSER_MEDIA_TYPE)===-1?pt:we.PARSER_MEDIA_TYPE,Ne=qe==="application/xhtml+xml"?stringToString:stringToLowerCase,L=objectHasOwnProperty(we,"ALLOWED_TAGS")?addToSet({},we.ALLOWED_TAGS,Ne):z,W=objectHasOwnProperty(we,"ALLOWED_ATTR")?addToSet({},we.ALLOWED_ATTR,Ne):J,ke=objectHasOwnProperty(we,"ALLOWED_NAMESPACES")?addToSet({},we.ALLOWED_NAMESPACES,stringToString):ze,Te=objectHasOwnProperty(we,"ADD_URI_SAFE_ATTR")?addToSet(clone$1(Se),we.ADD_URI_SAFE_ATTR,Ne):Se,Me=objectHasOwnProperty(we,"ADD_DATA_URI_TAGS")?addToSet(clone$1(Fe),we.ADD_DATA_URI_TAGS,Ne):Fe,pe=objectHasOwnProperty(we,"FORBID_CONTENTS")?addToSet({},we.FORBID_CONTENTS,Ne):ve,re=objectHasOwnProperty(we,"FORBID_TAGS")?addToSet({},we.FORBID_TAGS,Ne):{},oe=objectHasOwnProperty(we,"FORBID_ATTR")?addToSet({},we.FORBID_ATTR,Ne):{},_e=objectHasOwnProperty(we,"USE_PROFILES")?we.USE_PROFILES:!1,X=we.ALLOW_ARIA_ATTR!==!1,se=we.ALLOW_DATA_ATTR!==!1,le=we.ALLOW_UNKNOWN_PROTOCOLS||!1,he=we.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=we.SAFE_FOR_TEMPLATES||!1,Q=we.SAFE_FOR_XML!==!1,Y=we.WHOLE_DOCUMENT||!1,ae=we.RETURN_DOM||!1,Be=we.RETURN_DOM_FRAGMENT||!1,me=we.RETURN_TRUSTED_TYPE||!1,Ce=we.FORCE_BODY||!1,K=we.SANITIZE_DOM!==!1,q=we.SANITIZE_NAMED_PROPS||!1,de=we.KEEP_CONTENT!==!1,fe=we.IN_PLACE||!1,B=we.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Xe=we.NAMESPACE||ye,te=we.CUSTOM_ELEMENT_HANDLING||{},we.CUSTOM_ELEMENT_HANDLING&&st(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(te.tagNameCheck=we.CUSTOM_ELEMENT_HANDLING.tagNameCheck),we.CUSTOM_ELEMENT_HANDLING&&st(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(te.attributeNameCheck=we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),we.CUSTOM_ELEMENT_HANDLING&&typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(se=!1),Be&&(ae=!0),_e&&(L=addToSet({},text$1),W=[],_e.html===!0&&(addToSet(L,html$1),addToSet(W,html$2)),_e.svg===!0&&(addToSet(L,svg$1),addToSet(W,svg),addToSet(W,xml)),_e.svgFilters===!0&&(addToSet(L,svgFilters),addToSet(W,svg),addToSet(W,xml)),_e.mathMl===!0&&(addToSet(L,mathMl$1),addToSet(W,mathMl),addToSet(W,xml))),we.ADD_TAGS&&(L===z&&(L=clone$1(L)),addToSet(L,we.ADD_TAGS,Ne)),we.ADD_ATTR&&(W===J&&(W=clone$1(W)),addToSet(W,we.ADD_ATTR,Ne)),we.ADD_URI_SAFE_ATTR&&addToSet(Te,we.ADD_URI_SAFE_ATTR,Ne),we.FORBID_CONTENTS&&(pe===ve&&(pe=clone$1(pe)),addToSet(pe,we.FORBID_CONTENTS,Ne)),de&&(L["#text"]=!0),Y&&addToSet(L,["html","head","body"]),L.table&&(addToSet(L,["tbody"]),delete re.tbody),we.TRUSTED_TYPES_POLICY){if(typeof we.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof we.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=we.TRUSTED_TYPES_POLICY,k=x.createHTML("")}else x===void 0&&(x=_createTrustedTypesPolicy(m,n)),x!==null&&typeof k=="string"&&(k=x.createHTML(""));freeze&&freeze(we),Je=we}},Bt=addToSet({},["mi","mo","mn","ms","mtext"]),rt=addToSet({},["foreignobject","annotation-xml"]),Ze=addToSet({},["title","style","font","a","script"]),dt=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Ye=addToSet({},[...mathMl$1,...mathMlDisallowed]),lt=function(we){let He=T(we);(!He||!He.tagName)&&(He={namespaceURI:Xe,tagName:"template"});const ot=stringToLowerCase(we.tagName),kt=stringToLowerCase(He.tagName);return ke[we.namespaceURI]?we.namespaceURI===ue?He.namespaceURI===ye?ot==="svg":He.namespaceURI===Ae?ot==="svg"&&(kt==="annotation-xml"||Bt[kt]):!!dt[ot]:we.namespaceURI===Ae?He.namespaceURI===ye?ot==="math":He.namespaceURI===ue?ot==="math"&&rt[kt]:!!Ye[ot]:we.namespaceURI===ye?He.namespaceURI===ue&&!rt[kt]||He.namespaceURI===Ae&&!Bt[kt]?!1:!Ye[ot]&&(Ze[ot]||!dt[ot]):!!(qe==="application/xhtml+xml"&&ke[we.namespaceURI]):!1},et=function(we){arrayPush$2(o.removed,{element:we});try{T(we).removeChild(we)}catch{_(we)}},nt=function(we,He){try{arrayPush$2(o.removed,{attribute:He.getAttributeNode(we),from:He})}catch{arrayPush$2(o.removed,{attribute:null,from:He})}if(He.removeAttribute(we),we==="is"&&!W[we])if(ae||Be)try{et(He)}catch{}else try{He.setAttribute(we,"")}catch{}},Pt=function(we){let He=null,ot=null;if(Ce)we="<remove></remove>"+we;else{const wt=stringMatch(we,/^[\r\n\t ]+/);ot=wt&&wt[0]}qe==="application/xhtml+xml"&&Xe===ye&&(we='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+we+"</body></html>");const kt=x?x.createHTML(we):we;if(Xe===ye)try{He=new f().parseFromString(kt,qe)}catch{}if(!He||!He.documentElement){He=E.createDocument(Xe,"template",null);try{He.documentElement.innerHTML=De?k:kt}catch{}}const Yt=He.body||He.documentElement;return we&&ot&&Yt.insertBefore(r.createTextNode(ot),Yt.childNodes[0]||null),Xe===ye?N.call(He,Y?"html":"body")[0]:Y?He.documentElement:Yt},ft=function(we){return w.call(we.ownerDocument||we,we,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Nt=function(we){return we instanceof u&&(typeof we.nodeName!="string"||typeof we.textContent!="string"||typeof we.removeChild!="function"||!(we.attributes instanceof c)||typeof we.removeAttribute!="function"||typeof we.setAttribute!="function"||typeof we.namespaceURI!="string"||typeof we.insertBefore!="function"||typeof we.hasChildNodes!="function")},Ot=function(we){return typeof s=="function"&&we instanceof s},yt=function(we,He,ot){V[we]&&arrayForEach(V[we],kt=>{kt.call(o,He,ot,Je)})},Dt=function(we){let He=null;if(yt("beforeSanitizeElements",we,null),Nt(we))return et(we),!0;const ot=Ne(we.nodeName);if(yt("uponSanitizeElement",we,{tagName:ot,allowedTags:L}),we.hasChildNodes()&&!Ot(we.firstElementChild)&&regExpTest(/<[/\w]/g,we.innerHTML)&&regExpTest(/<[/\w]/g,we.textContent)||we.nodeType===NODE_TYPE.progressingInstruction||Q&&we.nodeType===NODE_TYPE.comment&&regExpTest(/<[/\w]/g,we.data))return et(we),!0;if(!L[ot]||re[ot]){if(!re[ot]&&Ie(ot)&&(te.tagNameCheck instanceof RegExp&&regExpTest(te.tagNameCheck,ot)||te.tagNameCheck instanceof Function&&te.tagNameCheck(ot)))return!1;if(de&&!pe[ot]){const kt=T(we)||we.parentNode,Yt=C(we)||we.childNodes;if(Yt&&kt){const wt=Yt.length;for(let Vt=wt-1;Vt>=0;
988--Vt){const zt=y(Yt[Vt],!0);zt.__removalCount=(we.__removalCount||0)+1,kt.insertBefore(zt,S(we))}}}return et(we),!0}return we instanceof l&&!lt(we)||(ot==="noscript"||ot==="noembed"||ot==="noframes")&&regExpTest(/<\/no(script|embed|frames)/i,we.innerHTML)?(et(we),!0):(ge&&we.nodeType===NODE_TYPE.text&&(He=we.textContent,arrayForEach([A,M,O],kt=>{He=stringReplace(He,kt," ")}),we.textContent!==He&&(arrayPush$2(o.removed,{element:we.cloneNode()}),we.textContent=He)),yt("afterSanitizeElements",we,null),!1)},_t=function(we,He,ot){if(K&&(He==="id"||He==="name")&&(ot in r||ot in $e))return!1;if(!(se&&!oe[He]&&regExpTest(R,He))){if(!(X&&regExpTest(I,He))){if(!W[He]||oe[He]){if(!(Ie(we)&&(te.tagNameCheck instanceof RegExp&&regExpTest(te.tagNameCheck,we)||te.tagNameCheck instanceof Function&&te.tagNameCheck(we))&&(te.attributeNameCheck instanceof RegExp&&regExpTest(te.attributeNameCheck,He)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(He))||He==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&regExpTest(te.tagNameCheck,ot)||te.tagNameCheck instanceof Function&&te.tagNameCheck(ot))))return!1}else if(!Te[He]){if(!regExpTest(B,stringReplace(ot,H,""))){if(!((He==="src"||He==="xlink:href"||He==="href")&&we!=="script"&&stringIndexOf(ot,"data:")===0&&Me[we])){if(!(le&&!regExpTest(j,stringReplace(ot,H,"")))){if(ot)return!1}}}}}}return!0},Ie=function(we){return we!=="annotation-xml"&&stringMatch(we,U)},Le=function(we){yt("beforeSanitizeAttributes",we,null);const{attributes:He}=we;if(!He)return;const ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};let kt=He.length;for(;kt--;){const Yt=He[kt],{name:wt,namespaceURI:Vt,value:zt}=Yt,_o=Ne(wt);let xe=wt==="value"?zt:stringTrim(zt);if(ot.attrName=_o,ot.attrValue=xe,ot.keepAttr=!0,ot.forceKeepAttr=void 0,yt("uponSanitizeAttribute",we,ot),xe=ot.attrValue,Q&&regExpTest(/((--!?|])>)|<\/(style|title)/i,xe)){nt(wt,we);continue}if(ot.forceKeepAttr||(nt(wt,we),!ot.keepAttr))continue;if(!he&&regExpTest(/\/>/i,xe)){nt(wt,we);continue}ge&&arrayForEach([A,M,O],Ge=>{xe=stringReplace(xe,Ge," ")});const Ke=Ne(we.nodeName);if(_t(Ke,_o,xe)){if(q&&(_o==="id"||_o==="name")&&(nt(wt,we),xe=Z+xe),x&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Vt)switch(m.getAttributeType(Ke,_o)){case"TrustedHTML":{xe=x.createHTML(xe);break}case"TrustedScriptURL":{xe=x.createScriptURL(xe);break}}try{Vt?we.setAttributeNS(Vt,wt,xe):we.setAttribute(wt,xe),Nt(we)?et(we):arrayPop(o.removed)}catch{}}}yt("afterSanitizeAttributes",we,null)},ct=function We(we){let He=null;const ot=ft(we);for(yt("beforeSanitizeShadowDOM",we,null);He=ot.nextNode();)yt("uponSanitizeShadowNode",He,null),!Dt(He)&&(He.content instanceof a&&We(He.content),Le(He));yt("afterSanitizeShadowDOM",we,null)};return o.sanitize=function(We){let we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=null,ot=null,kt=null,Yt=null;if(De=!We,De&&(We="<!-->"),typeof We!="string"&&!Ot(We))if(typeof We.toString=="function"){if(We=We.toString(),typeof We!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!o.isSupported)return We;if(ne||bt(we),o.removed=[],typeof We=="string"&&(fe=!1),fe){if(We.nodeName){const zt=Ne(We.nodeName);if(!L[zt]||re[zt])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(We instanceof s)He=Pt("<!---->"),ot=He.ownerDocument.importNode(We,!0),ot.nodeType===NODE_TYPE.element&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?He=ot:He.appendChild(ot);else{if(!ae&&!ge&&!Y&&We.indexOf("<")===-1)return x&&me?x.createHTML(We):We;if(He=Pt(We),!He)return ae?null:me?k:""}He&&Ce&&et(He.firstChild);const wt=ft(fe?We:He);for(;kt=wt.nextNode();)Dt(kt)||(kt.content instanceof a&&ct(kt.content),Le(kt));if(fe)return We;if(ae){if(Be)for(Yt=D.call(He.ownerDocument);He.firstChild;)Yt.appendChild(He.firstChild);else Yt=He;return(W.shadowroot||W.shadowrootmode)&&(Yt=F.call(e,Yt,!0)),Yt}let Vt=Y?He.outerHTML:He.innerHTML;return Y&&L["!doctype"]&&He.ownerDocument&&He.ownerDocument.doctype&&He.ownerDocument.doctype.name&&regExpTest(DOCTYPE_NAME,He.ownerDocument.doctype.name)&&(Vt="<!DOCTYPE "+He.ownerDocument.doctype.name+`>
989`+Vt),ge&&arrayForEach([A,M,O],zt=>{Vt=stringReplace(Vt,zt," ")}),x&&me?x.createHTML(Vt):Vt},o.setConfig=function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bt(We),ne=!0},o.clearConfig=function(){Je=null,ne=!1},o.isValidAttribute=function(We,we,He){Je||bt({});const ot=Ne(We),kt=Ne(we);return _t(ot,kt,He)},o.addHook=function(We,we){typeof we=="function"&&(V[We]=V[We]||[],arrayPush$2(V[We],we))},o.removeHook=function(We){if(V[We])return arrayPop(V[We])},o.removeHooks=function(We){V[We]&&(V[We]=[])},o.removeAllHooks=function(){V={}},o}var purify=createDOMPurify();const TEMPORARY_ATTRIBUTE="data-temp-href-target";purify.addHook("beforeSanitizeAttributes",function(t){t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(TEMPORARY_ATTRIBUTE,t.getAttribute("target"))});purify.addHook("afterSanitizeAttributes",function(t){t.tagName==="A"&&t.hasAttribute(TEMPORARY_ATTRIBUTE)&&(t.setAttribute("target",t.getAttribute(TEMPORARY_ATTRIBUTE)),t.removeAttribute(TEMPORARY_ATTRIBUTE),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener noreferrer"))});function useFocusWithin(t,o={}){const r=useActiveElement(o),e=computed(()=>unrefElement(t));return{focused:computedAsync(async()=>(e.value,r.value,await sleep(15),e.value&&r.value?e.value.contains(r.value):!1),!1),activeElement:r}}var dayjs_min={exports:{}};(function(t,o){(function(r,e){t.exports=e()})(commonjsGlobal,function(){var r=1e3,e=6e4,n=36e5,a="millisecond",i="second",s="minute",l="hour",d="day",c="week",u="month",f="quarter",m="year",b="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,145 bytes, line 989
989|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var R=["th","st","nd","rd"],I=O%100;return"["+O+(R[(I-20)%10]||R[I]||R[0])+"]"}},T=function(O,R,I){var j=String(O);return!j||j.length>=R?O:""+Array(R+1-j.length).join(I)+O},x={s:T,z:function(O){var R=-O.utcOffset(),I=Math.abs(R),j=Math.floor(I/60),H=I%60;return(R<=0?"+":"-")+T(j,2,"0")+":"+T(H,2,"0")},m:function O(R,I){if(R.date()<I.date())return-O(I,R);var j=12*(I.year()-R.year())+(I.month()-R.month()),H=R.clone().add(j,u),U=I-H<0,B=R.clone().add(j+(U?-1:1),u);return+(-(j+(I-H)/(U?H-B:B-H))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:u,y:m,w:c,d,D:b,h:l,m:s,s:i,ms:a,Q:f}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},k="en",E={};E[k]=C;var w="$isDayjsObject",D=function(O){return O instanceof A||!(!O||!O[w])},N=function O(R,I,j){var H;if(!R)return k;if(typeof R=="string"){var U=R.toLowerCase();E[U]&&(H=U),I&&(E[U]=I,H=U);var B=R.split("-");if(!H&&B.length>1)return O(B[0])}else{var L=R.name;E[L]=R,H=L}return!j&&H&&(k=H),H||!j&&k},F=function(O,R){if(D(O))return O.clone();var I=typeof R=="object"?R:{};return I.date=O,I.args=arguments,new A(I)},V=x;V.l=N,V.i=D,V.w=function(O,R){return F(O,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var A=function(){function O(I){this.$L=N(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[w]=!0}var R=O.prototype;return R.parse=function(I){this.$d=function(j){var H=j.date,U=j.utc;if(H===null)return new Date(NaN);if(V.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var B=H.match(_);if(B){var L=B[2]-1||0,z=(B[7]||"0").substring(0,3);return U?new Date(Date.UTC(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)):new Date(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)}}return new Date(H)}(I),this.init()},R.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},R.$utils=function(){return V},R.isValid=function(){return this.$d.toString()!==y},R.isSame=function(I,j){var H=F(I);return this.startOf(j)<=H&&H<=this.endOf(j)},R.isAfter=function(I,j){return F(I)<this.startOf(j)},R.isBefore=function(I,j){return this.endOf(j)<F(I)},R.$g=function(I,j,H){return V.u(I)?this[j]:this.set(H,I)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(I,j){var H=this,U=!!V.u(j)||j,B=V.p(I),L=function(se,le){var he=V.w(H.$u?Date.UTC(H.$y,le,se):new Date(H.$y,le,se),H);return U?he:he.endOf(d)},z=function(se,le){return V.w(H.toDate()[se].apply(H.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(le)),H)},W=this.$W,J=this.$M,te=this.$D,re="set"+(this.$u?"UTC":"");switch(B){case m:return U?L(1,0):L(31,11);case u:return U?L(1,J):L(0,J+1);case c:var oe=this.$locale().weekStart||0,X=(W<oe?W+7:W)-oe;return L(U?te-X:te+(6-X),J);case d:case b:return z(re+"Hours",0);case l:return z(re+"Minutes",1);case s:return z(re+"Seconds",2);case i:return z(re+"Milliseconds",3);default:return this.clone()}},R.endOf=function(I){return this.startOf(I,!1)},R.$set=function(I,j){var H,U=V.p(I),B="set"+(this.$u?"UTC":""),L=(H={},H[d]=B+"Date",H[b]=B+"Date",H[u]=B+"Month",H[m]=B+"FullYear",H[l]=B+"Hours",H[s]=B+"Minutes",H[i]=B+"Seconds",H[a]=B+"Milliseconds",H)[U],z=U===d?this.$D+(j-this.$W):j;if(U===u||U===m){var W=this.clone().set(b,1);W.$d[L](z),W.init(),this.$d=W.set(b,Math.min(this.$D,W.daysInMonth())).$d}else L&&this.$d[L](z);return this.init(),this},R.set=function(I,j){return this.clone().$set(I,j)},R.get=function(I){return this[V.p(I)]()},R.add=function(I,j){var H,U=this;I=Number(I);var B=V.p(j),L=function(J){var te=F(U);return V.w(te.date(te.date()+Math.round(J*I)),U)};if(B===u)return this.set(u,this.$M+I);if(B===m)return this.set(m,this.$y+I);if(B===d)return L(1);if(B===c)return L(7);var z=(H={}
989,H[s]=e,H[l]=n,H[i]=r,H)[B]||1,W=this.$d.getTime()+I*z;return V.w(W,this)},R.subtract=function(I,j){return this.add(-1*I,j)},R.format=function(I){var j=this,H=this.$locale();if(!this.isValid())return H.invalidDate||y;var U=I||"YYYY-MM-DDTHH:mm:ssZ",B=V.z(this),L=this.$H,z=this.$m,W=this.$M,J=H.weekdays,te=H.months,re=H.meridiem,oe=function(le,he,ge,Q){return le&&(le[he]||le(j,U))||ge[he].slice(0,Q)},X=function(le){return V.s(L%12||12,le,"0")},se=re||function(le,he,ge){var Q=le<12?"AM":"PM";return ge?Q.toLowerCase():Q};return U.replace(S,function(le,he){return he||function(ge){switch(ge){case"YY":return String(j.$y).slice(-2);case"YYYY":return V.s(j.$y,4,"0");case"M":return W+1;case"MM":return V.s(W+1,2,"0");case"MMM":return oe(H.monthsShort,W,te,3);case"MMMM":return oe(te,W);case"D":return j.$D;case"DD":return V.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return oe(H.weekdaysMin,j.$W,J,2);case"ddd":return oe(H.weekdaysShort,j.$W,J,3);case"dddd":return J[j.$W];case"H":return String(L);case"HH":return V.s(L,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return se(L,z,!0);case"A":return se(L,z,!1);case"m":return String(z);case"mm":return V.s(z,2,"0");case"s":return String(j.$s);case"ss":return V.s(j.$s,2,"0");case"SSS":return V.s(j.$ms,3,"0");case"Z":return B}return null}(le)||B.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(I,j,H){var U,B=this,L=V.p(j),z=F(I),W=(z.utcOffset()-this.utcOffset())*e,J=this-z,te=function(){return V.m(B,z)};switch(L){case m:U=te()/12;break;case u:U=te();break;case f:U=te()/3;break;case c:U=(J-W)/6048e5;break;case d:U=(J-W)/864e5;break;case l:U=J/n;break;case s:U=J/e;break;case i:U=J/r;break;default:U=J}return H?U:V.a(U)},R.daysInMonth=function(){return this.endOf(u).$D},R.$locale=function(){return E[this.$L]},R.locale=function(I,j){if(!I)return this.$L;var H=this.clone(),U=N(I,j,!0);return U&&(H.$L=U),H},R.clone=function(){return V.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},O}(),M=A.prototype;return F.prototype=M,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",d],["$M",u],["$y",m],["$D",b]].forEach(function(O){M[O[1]]=function(R){return this.$g(R,O[0],O[1])}}),F.extend=function(O,R){return O.$i||(O(R,A,F),O.$i=!0),F},F.locale=N,F.isDayjs=D,F.unix=function(O){return F(1e3*O)},F.en=E[k],F.Ls=E,F.p={},F})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports),_retrieveLocalStorageByKey=t=>()=>{const o=window.localStorage.getItem(t);if(!o)return null;let r=null;try{r=JSON.parse(o)}catch{return window.localStorage.removeItem(t),null}if(!r.expiresOn)return null;const e=dayjs(parseInt(r.expiresOn,10));return!e.isValid()||dayjs().isAfter(e)?(window.localStorage.removeItem(t),null):r.data},_writeLocalStorage=(t,o)=>(r,e="merge")=>{const n=o.expiryDuration,a=dayjs(),i=dayjs(a.add(n,"ms")),s=_retrieveLocalStorageByKey(t);let l=null;switch(e){case"replace":{l=r;break}default:case"merge":{l=lodashExports.merge({},s,r);break}}window.localStorage.setItem(t,JSON.stringify({expiresOn:+i,data:l}))},_deleteLocalStorage=(t,o)=>()=>{window.localStorage.removeItem(t)};function usePersistencyWithExpiry(t,o){const r=t,e={expiryDuration:6048e5,autoRestore:!0,autoWrite:!0,refs:{},...o},n=_retrieveLocalStorageByKey(r),a=_writeLocalStorage(r,e),i=_deleteLocalStorage(r);if(e.autoRestore){const s=n()??{};Object.entries(e.refs).forEach(([l,d])=>{s[l]&&(d.value=s[l])})}return e.autoWrite&&watch(()=>Object.fromEntries(Object.entries(e.refs).map(([s,l])=>[s,l.value])),s=>{a(s)}),{retrieveLocalStorage:n,writeLocalStorage:a,deleteLocalStorage:i}}const useGlobalCookieSettings=createGlobalState(()=>{const t=ref$1(null),o=ref$1(null),r=ref$1(null),e=new Set,n=ref$1("");let a=!1;const i=m=>{const b=m||n.value,y=document.createElement("script");y.setAttribute("data-is-aa-script","true"),y.setAttribute("src",b),document.body.appendChild(y)},s=()=>{a||(a=!0,i(),window.router.afterEach((m,b)=>{sendPageView()}))},l=computed({get(){return t.value},set(m){const b=t.value;if(!m&&b===null)for(const y of e)deleteCookie(y);t.value=m}}),d=computed({get(){return o.value},set(m){const b=o.value;!m&&b||m&&!b&&n.value&&s(),o.value=m}}),c=computed({get(){return r.value},set(m){r.value,r.value=m}}
989),u=usePersistencyWithExpiry("cookies-notification:cookie-settings",{expiryDuration:7776e6,autoWrite:!1,refs:{isEnabledCookiePreferences:l,isEnabledCookieStatistics:d,isEnabledCookieMarketing:c}});return{adobeAnalyticJsUrl:n,persistency:u,isEnabledCookiePreferences:l,isEnabledCookieStatistics:d,isEnabledCookieMarketing:c,registerPreferenceCookie:m=>{e.add(m)},injectAdobeAnalyticScript:i,initAdobeAnalytic:s}});window.useGlobalCookieSettings=useGlobalCookieSettings;const scrollToElement=(t,o={})=>{if(!(typeof t=="string"?document.querySelector(t):t))return!1;const e=o.topOffset??0;window.scrollTo({behavior:"smooth",top:t.getBoundingClientRect().top-document.body.getBoundingClientRect().top-e})},getStickyElementsHeight=()=>{let t=0;const o=window.getComputedStyle(document.documentElement);return document.querySelectorAll("[data-is-sticky]").forEach(r=>{const e=r.getAttribute("data-height-var"),n=o.getPropertyValue(e),a=parseFloat(n)||0;t+=a}),t},MHScrollToElement=(t,o={})=>{let r=getStickyElementsHeight();scrollToElement(t,{topOffset:r+(o.additionalTopOffset??0),...o})},isElOutOfViewport=function(t){const o=t.getBoundingClientRect();let r={};return r.top=o.top<0,r.left=o.left<0,r.bottom=o.bottom>(window.innerHeight||document.documentElement.clientHeight),r.right=o.right>(window.innerWidth||document.documentElement.clientWidth),r.any=r.top||r.left||r.bottom||r.right,r.all=r.top&&r.left&&r.bottom&&r.right,r},getAncestorBySelector=(t,o)=>{const r=[];let e=t;for(;e&&e!==document;)(!o||e.matches(o))&&r.unshift(e),e=e.parentNode;return r},waitForDocumentReadyState=(t="complete")=>new Promise((o,r)=>{switch(t){case"complete":{if(document.readyState==="complete"){o();return}break}case"interactive":{if(document.readyState==="interactive"||document.readyState==="complete"){o();return}break}case"loading":{if(document.readyState==="loading"||document.readyState==="interactive"||document.readyState==="complete"){o();return}break}default:{console.warn(`waitForDocumentReadyState(). Unknown state "${t}".`),r(new Error(`waitForDocumentReadyState(). Unknown state "${t}".`));return}}const e=n=>{document.readyState===t&&(o(),document.removeEventListener("readystatechange",e))};document.addEventListener("readystatechange",e)}),getElDimensions=t=>{if(!t)return null;const o=getComputedStyle(t),r=t.clientWidth,e=t.clientHeight,n=e-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)),a=r-(parseFloat(o.paddingLeft)+parseFloat(o.paddingRight));return{width:r,height:e,heightWithoutPadding:n,widthWithoutPadding:a}};var axios$3={exports:{}},bind$2=function(o,r){return function(){return o.apply(r,arguments)}},bind$1=bind$2,toString$7=Object.prototype.toString,kindOf=function(t){return function(o){var r=toString$7.call(o);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(t){return t=t.toLowerCase(),function(r){return kindOf(r)===t}}function isArray$9(t){return Array.isArray(t)}function isUndefined(t){return typeof t>"u"}function isBuffer$3(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(t){var o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&isArrayBuffer(t.buffer),o}function isString(t){return typeof t=="string"}function isNumber$1(t){return typeof t=="number"}function isObject$a(t){return t!==null&&typeof t=="object"}function isPlainObject$1(t){if(kindOf(t)!=="object")return!1;var o=Object.getPrototypeOf(t);return o===null||o===Object.prototype}function isEmptyObject(t){return t&&Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}var isDate$1=kindOfTest("Date"),isFile$1=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList");function isFunction$3(t){return toString$7.call(t)==="[object Function]"}function isStream(t){return isObject$a(t)&&isFunction$3(t.pipe)}function isFormData(t){var o="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||toString$7.call(t)===o||isFunction$3(t.toString)&&t.toString()===o)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim$1(t){return t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function isStandardBrowserEnv(){var t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach$1(t,o){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),isArray$9(t))for(var r=0,e=t.length;r<e;r++)o.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.call(null,t[n],n,t)}function merge$1(){var t={};function o(n,a){isPlainObject$1(t[a])&&isPlainObject$1(n)?t[a]=merge$1(t[a],n):isPlainObject$1(n)?t[a]=merge$1({},n):isArray$9(n)?t[a]=n.slice():t[a]=n}for(var r=0,e=arguments.length;r<e;
989r++)forEach$1(arguments[r],o);return t}function extend$3(t,o,r){return forEach$1(o,function(n,a){r&&typeof n=="function"?t[a]=bind$1(n,r):t[a]=n}),t}function stripBOM(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}function inherits(t,o,r,e){t.prototype=Object.create(o.prototype,e),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)}function toFlatObject(t,o,r,e){var n,a,i,s={};if(o=o||{},t==null)return o;do{for(n=Object.getOwnPropertyNames(t),a=n.length;a-- >0;)i=n[a],(!e||e(i,t,o))&&!s[i]&&(o[i]=t[i],s[i]=!0);t=r!==!1&&Object.getPrototypeOf(t)}while(t&&(!r||r(t,o))&&t!==Object.prototype);return o}function endsWith(t,o,r){t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=o.length;var e=t.indexOf(o,r);return e!==-1&&e===r}function toArray$3(t){if(!t)return null;if(isArray$9(t))return t;var o=t.length;if(!isNumber$1(o))return null;for(var r=new Array(o);o-- >0;)r[o]=t[o];return r}var isTypedArray$3=function(t){return function(o){return t&&o instanceof t}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));function forEachEntry(t,o){for(var r=t&&t[Symbol.iterator],e=r.call(t),n;(n=e.next())&&!n.done;){var a=n.value;o.call(t,a[0],a[1])}}function matchAll(t,o){for(var r,e=[];(r=t.exec(o))!==null;)e.push(r);return e}var isHTMLForm=kindOfTest("HTMLFormElement"),hasOwnProperty$b=function(o){return function(r,e){return o.call(r,e)}}(Object.prototype.hasOwnProperty),utils$d={isArray:isArray$9,isArrayBuffer,isBuffer:isBuffer$3,isFormData,isArrayBufferView,isString,isNumber:isNumber$1,isObject:isObject$a,isPlainObject:isPlainObject$1,isEmptyObject,isUndefined,isDate:isDate$1,isFile:isFile$1,isBlob,isFunction:isFunction$3,isStream,isURLSearchParams,isStandardBrowserEnv,forEach:forEach$1,merge:merge$1,extend:extend$3,trim:trim$1,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$3,isTypedArray:isTypedArray$3,isFileList,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$b},utils$c=utils$d;function AxiosError$3(t,o,r,e,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),r&&(this.config=r),e&&(this.request=e),n&&(this.response=n)}utils$c.inherits(AxiosError$3,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var prototype$1=AxiosError$3.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(t){descriptors[t]={value:t}});Object.defineProperties(AxiosError$3,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$3.from=function(t,o,r,e,n,a){var i=Object.create(prototype$1);return utils$c.toFlatObject(t,i,function(l){return l!==Error.prototype}),AxiosError$3.call(i,t.message,o,r,e,n),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};var AxiosError_1=AxiosError$3,browser$2=typeof self=="object"?self.FormData:window.FormData,FormData$1=browser$2,utils$b=utils$d,AxiosError$2=AxiosError_1,envFormData=FormData$1;function isVisitable(t){return utils$b.isPlainObject(t)||utils$b.isArray(t)}function removeBrackets(t){return utils$b.endsWith(t,"[]")?t.slice(0,-2):t}function renderKey(t,o,r){return t?t.concat(o).map(function(n,a){return n=removeBrackets(n),!r&&a?"["+n+"]":n}).join(r?".":""):o}function isFlatArray(t){return utils$b.isArray(t)&&!t.some(isVisitable)}var predicates=utils$b.toFlatObject(utils$b,{},null,function(o){return/^is[A-Z]/.test(o)});function isSpecCompliant(t){return t&&utils$b.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function toFormData$3(t,o,r){if(!utils$b.isObject(t))throw new TypeError("target must be an object");o=o||new(envFormData||FormData),r=utils$b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,_){return!utils$b.isUndefined(_[y])});var e=r.metaTokens,n=r.visitor||c,a=r.dots,i=r.indexes,s=r.Blob||typeof Blob<"u"&&Blob,l=s&&isSpecCompliant(o);if(!utils$b.isFunction(n))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(utils$b.isDate(b))return b.toISOString();if(!l&&utils$b.isBlob(b))throw new AxiosError$2("Blob is not supported. Use a Buffer instead.");return utils$b.isArrayBuffer(b)||utils$b.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,y,_){var S=b;if(b&&!_&&typeof b=="object"){if(utils$b.endsWith(y,"{}"))y=e?y:y.slice(0,-2),b=JSON.stringify(b);else if(utils$b.isArray(b)&&isFlatArray(b)||utils$b.isFileList(b)||utils$b.endsWith(y,"[]")&&(S=ut
989ils$b.toArray(b)))return y=removeBrackets(y),S.forEach(function(T,x){!utils$b.isUndefined(T)&&o.append(i===!0?renderKey([y],x,a):i===null?y:y+"[]",d(T))}),!1}return isVisitable(b)?!0:(o.append(renderKey(_,y,a),d(b)),!1)}var u=[],f=Object.assign(predicates,{defaultVisitor:c,convertValue:d,isVisitable});function m(b,y){if(!utils$b.isUndefined(b)){if(u.indexOf(b)!==-1)throw Error("Circular reference detected in "+y.join("."));u.push(b),utils$b.forEach(b,function(S,C){var T=!utils$b.isUndefined(S)&&n.call(o,S,utils$b.isString(C)?C.trim():C,y,f);T===!0&&m(S,y?y.concat(C):[C])}),u.pop()}}if(!utils$b.isObject(t))throw new TypeError("data must be an object");return m(t),o}var toFormData_1=toFormData$3,toFormData$2=toFormData_1;function encode$1(t){var o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,function(e){return o[e]})}function AxiosURLSearchParams$2(t,o){this._pairs=[],t&&toFormData$2(t,this,o)}var prototype=AxiosURLSearchParams$2.prototype;prototype.append=function(o,r){this._pairs.push([o,r])};prototype.toString=function(o){var r=o?function(e){return o.call(this,e,encode$1)}:encode$1;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};var AxiosURLSearchParams_1=AxiosURLSearchParams$2,utils$a=utils$d,AxiosURLSearchParams$1=AxiosURLSearchParams_1;function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(o,r,e){if(!r)return o;var n=o.indexOf("#");n!==-1&&(o=o.slice(0,n));var a=e&&e.encode||encode,i=e&&e.serialize,s;return i?s=i(r,e):s=utils$a.isURLSearchParams(r)?r.toString():new AxiosURLSearchParams$1(r,e).toString(a),s&&(o+=(o.indexOf("?")===-1?"?":"&")+s),o},utils$9=utils$d;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(o,r,e){return this.handlers.push({fulfilled:o,rejected:r,synchronous:e?e.synchronous:!1,runWhen:e?e.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(o){this.handlers[o]&&(this.handlers[o]=null)};InterceptorManager$1.prototype.clear=function(){this.handlers&&(this.handlers=[])};InterceptorManager$1.prototype.forEach=function(o){utils$9.forEach(this.handlers,function(e){e!==null&&o(e)})};var InterceptorManager_1=InterceptorManager$1,utils$8=utils$d,normalizeHeaderName$2=function(o,r){utils$8.forEach(o,function(n,a){a!==r&&a.toUpperCase()===r.toUpperCase()&&(o[r]=n,delete o[a])})},transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AxiosURLSearchParams=AxiosURLSearchParams_1,URLSearchParams_1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData_1=FormData,browser$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_1,FormData:FormData_1,Blob},protocols:["http","https","file","blob","url","data"]},platform$2=browser$1,utils$7=utils$d,toFormData$1=toFormData_1,platform$1=platform$2,toURLEncodedForm$1=function(o,r){return toFormData$1(o,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(e,n,a,i){return platform$1.isNode&&utils$7.isBuffer(e)?(this.append(n,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))},utils$6=utils$d;function parsePropPath(t){return utils$6.matchAll(/\w+|\[(\w*)]/g,t).map(function(o){return o[0]==="[]"?"":o[1]||o[0]})}function arrayToObject(t){var o={},r=Object.keys(t),e,n=r.length,a;for(e=0;e<n;e++)a=r[e],o[a]=t[a];return o}function formDataToJSON$2(t){function o(e,n,a,i){var s=e[i++],l=Number.isFinite(+s),d=i>=e.length;if(s=!s&&utils$6.isArray(a)?a.length:s,d)return utils$6.hasOwnProperty(a,s)?a[s]=[a[s],n]:a[s]=n,!l;
989(!a[s]||!utils$6.isObject(a[s]))&&(a[s]=[]);var c=o(e,n,a[s],i);return c&&utils$6.isArray(a[s])&&(a[s]=arrayToObject(a[s])),!l}if(utils$6.isFormData(t)&&utils$6.isFunction(t.entries)){var r={};return utils$6.forEachEntry(t,function(e,n){o(parsePropPath(e),n,r,0)}),r}return null}var formDataToJSON_1=formDataToJSON$2,settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var t=AxiosError_1;return settle=function(r,e,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?r(n):e(new t("Request failed with status code "+n.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var t=utils$d;return cookies=t.isStandardBrowserEnv()?function(){return{write:function(e,n,a,i,s,l){var d=[];d.push(e+"="+encodeURIComponent(n)),t.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),t.isString(i)&&d.push("path="+i),t.isString(s)&&d.push("domain="+s),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL$1=function(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)},combineURLs$1=function(o,r){return r?o.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):o},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function(o,r){return o&&!isAbsoluteURL(r)?combineURLs(o,r):r},parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var t=utils$d,o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(e){var n={},a,i,s;return e&&t.forEach(e.split(`
990`),function(d){if(s=d.indexOf(":"),a=t.trim(d.slice(0,s)).toLowerCase(),i=t.trim(d.slice(s+1)),a){if(n[a]&&o.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([i]):n[a]=n[a]?n[a]+", "+i:i}}),n},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var t=utils$d;return isURLSameOrigin=t.isStandardBrowserEnv()?function(){var r=
990/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a"),n;function a(i){var s=i;return r&&(e.setAttribute("href",s),s=e.href),e.setAttribute("href",s),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=a(window.location.href),function(s){var l=t.isString(s)?a(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var CanceledError_1,hasRequiredCanceledError;function requireCanceledError(){if(hasRequiredCanceledError)return CanceledError_1;hasRequiredCanceledError=1;var t=AxiosError_1,o=utils$d;function r(e,n,a){t.call(this,e??"canceled",t.ERR_CANCELED,n,a),this.name="CanceledError"}return o.inherits(r,t,{__CANCEL__:!0}),CanceledError_1=r,CanceledError_1}var parseProtocol,hasRequiredParseProtocol;function requireParseProtocol(){return hasRequiredParseProtocol||(hasRequiredParseProtocol=1,parseProtocol=function(o){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return r&&r[1]||""}),parseProtocol}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var t=utils$d,o=requireSettle(),r=requireCookies(),e=buildURL$1,n=buildFullPath$1,a=requireParseHeaders(),i=requireIsURLSameOrigin(),s=transitional,l=AxiosError_1,d=requireCanceledError(),c=requireParseProtocol(),u=platform$2;return xhr=function(m){return new Promise(function(y,_){var S=m.data,C=m.headers,T=m.responseType,x=m.withXSRFToken,k;function E(){m.cancelToken&&m.cancelToken.unsubscribe(k),m.signal&&m.signal.removeEventListener("abort",k)}t.isFormData(S)&&t.isStandardBrowserEnv()&&delete C["Content-Type"];var w=new XMLHttpRequest;if(m.auth){var D=m.auth.username||"",N=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";C.Authorization="Basic "+btoa(D+":"+N)}var F=n(m.baseURL,m.url);w.open(m.method.toUpperCase(),e(F,m.params,m.paramsSerializer),!0),w.timeout=m.timeout;function V(){if(w){var O="getAllResponseHeaders"in w?a(w.getAllResponseHeaders()):null,R=!T||T==="text"||T==="json"?w.responseText:w.response,I={data:R,status:w.status,statusText:w.statusText,headers:O,config:m,request:w};o(function(H){y(H),E()},function(H){_(H),E()},I),w=null}}if("onloadend"in w?w.onloadend=V:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(V)},w.onabort=function(){w&&(_(new l("Request aborted",l.ECONNABORTED,m,w)),w=null)},w.onerror=function(){_(new l("Network Error",l.ERR_NETWORK,m,w)),w=null},w.ontimeout=function(){var R=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",I=m.transitional||s;m.timeoutErrorMessage&&(R=m.timeoutErrorMessage),_(new l(R,I.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,m,w)),w=null},t.isStandardBrowserEnv()&&(x&&t.isFunction(x)&&(x=x(m)),x||x!==!1&&i(F))){var A=m.xsrfHeaderName&&m.xsrfCookieName&&r.read(m.xsrfCookieName);A&&(C[m.xsrfHeaderName]=A)}"setRequestHeader"in w&&t.forEach(C,function(R,I){typeof S>"u"&&I.toLowerCase()==="content-type"?delete C[I]:w.setRequestHeader(I,R)}),t.isUndefined(m.withCredentials)||(w.withCredentials=!!m.withCredentials),T&&T!=="json"&&(w.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&w.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(k=function(O){w&&(_(!O||O.type?new d(null,m,w):O),w.abort(),w=null)},m.cancelToken&&m.cancelToken.subscribe(k),m.signal&&(m.signal.aborted?k():m.signal.addEventListener("abort",k))),!S&&S!==!1&&S!==0&&S!==""&&(S=null);var M=c(F);if(M&&u.protocols.indexOf(M)===-1){_(new l("Unsupported protocol "+M+":",l.ERR_BAD_REQUEST,m));return}w.send(S)})},xhr}var utils$5=utils$d,normalizeHeaderName$1=normalizeHeaderName$2,AxiosError$1=AxiosError_1,transitionalDefaults=transitional,toFormData=toFormData_1,toURLEncodedForm=toURLEncodedForm$1,platform=platform$2,formDataToJSON$1=formDataToJSON_1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,o){!utils$5.isUndefined(t)&&utils$5.isUndefined(t["Content-Type"])&&(t["Content-Type"]=o)}function getDefaultAdapter(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=requireXhr()),t}function stringifySafely(t,o,r){if(utils$5.isString(t))try{return(o||JSON.parse)(t),utils$5.trim(t)}catch(e){if(e.name!=="SyntaxError")throw e}return(0,JSON.stringify)(t)}var defaults$4={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function(o,r){n
990ormalizeHeaderName$1(r,"Accept"),normalizeHeaderName$1(r,"Content-Type");var e=r&&r["Content-Type"]||"",n=e.indexOf("application/json")>-1,a=utils$5.isObject(o);a&&utils$5.isHTMLForm(o)&&(o=new FormData(o));var i=utils$5.isFormData(o);if(i)return n?JSON.stringify(formDataToJSON$1(o)):o;if(utils$5.isArrayBuffer(o)||utils$5.isBuffer(o)||utils$5.isStream(o)||utils$5.isFile(o)||utils$5.isBlob(o))return o;if(utils$5.isArrayBufferView(o))return o.buffer;if(utils$5.isURLSearchParams(o))return setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8"),o.toString();var s;if(a){if(e.indexOf("application/x-www-form-urlencoded")!==-1)return toURLEncodedForm(o,this.formSerializer).toString();if((s=utils$5.isFileList(o))||e.indexOf("multipart/form-data")>-1){var l=this.env&&this.env.FormData;return toFormData(s?{"files[]":o}:o,l&&new l,this.formSerializer)}}return a||n?(setContentTypeIfUnset(r,"application/json"),stringifySafely(o)):o}],transformResponse:[function(o){var r=this.transitional||defaults$4.transitional,e=r&&r.forcedJSONParsing,n=this.responseType==="json";if(o&&utils$5.isString(o)&&(e&&!this.responseType||n)){var a=r&&r.silentJSONParsing,i=!a&&n;try{return JSON.parse(o)}catch(s){if(i)throw s.name==="SyntaxError"?AxiosError$1.from(s,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):s}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$5.forEach(["delete","get","head"],function(o){defaults$4.headers[o]={}});utils$5.forEach(["post","put","patch"],function(o){defaults$4.headers[o]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$4,utils$4=utils$d,defaults$3=defaults_1,transformData$1=function(o,r,e,n){var a=this||defaults$3;return utils$4.forEach(n,function(s){o=s.call(a,o,r,e)}),o},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(o){return!!(o&&o.__CANCEL__)}),isCancel$1}var utils$3=utils$d,transformData=transformData$1,isCancel=requireIsCancel(),defaults$2=defaults_1,CanceledError=requireCanceledError(),normalizeHeaderName=normalizeHeaderName$2;function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError}var dispatchRequest$1=function(o){throwIfCancellationRequested(o),o.headers=o.headers||{},o.data=transformData.call(o,o.data,o.headers,null,o.transformRequest),normalizeHeaderName(o.headers,"Accept"),normalizeHeaderName(o.headers,"Content-Type"),o.headers=utils$3.merge(o.headers.common||{},o.headers[o.method]||{},o.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(n){delete o.headers[n]});var r=o.adapter||defaults$2.adapter;return r(o).then(function(n){return throwIfCancellationRequested(o),n.data=transformData.call(o,n.data,n.headers,n.status,o.transformResponse),n},function(n){return isCancel(n)||(throwIfCancellationRequested(o),n&&n.response&&(n.response.data=transformData.call(o,n.response.data,n.response.headers,n.response.status,o.transformResponse))),Promise.reject(n)})},utils$2=utils$d,mergeConfig$2=function(o,r){r=r||{};var e={};function n(c,u){return utils$2.isPlainObject(c)&&utils$2.isPlainObject(u)?utils$2.merge(c,u):utils$2.isEmptyObject(u)?utils$2.merge({},c):utils$2.isPlainObject(u)?utils$2.merge({},u):utils$2.isArray(u)?u.slice():u}function a(c){if(utils$2.isUndefined(r[c])){if(!utils$2.isUndefined(o[c]))return n(void 0,o[c])}else return n(o[c],r[c])}function i(c){if(!utils$2.isUndefined(r[c]))return n(void 0,r[c])}function s(c){if(utils$2.isUndefined(r[c])){if(!utils$2.isUndefined(o[c]))return n(void 0,o[c])}else return n(void 0,r[c])}function l(c){if(c in r)return n(o[c],r[c]);if(c in o)return n(void 0,o[c])}var d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return utils$2.forEach(Object.keys(o).concat(Object.keys(r)),function(u){var f=d[u]||a,m=f(u);utils$2.isUndefined(m)&&f!==l||(e[u]=m)}),e},data,hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,data={version:"0.28.1"}),data}var VERSION=requireData().version,AxiosError=AxiosError_1,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(t,o){validators$1[t]=function(e){return typeof e===t||"a"+(o<1?"n ":" ")+t}});var deprecatedWarnings={};validators$1.transitional=function(o,r,e){function n(a,i){return"[Axios v"+VERSION+"] Transitional option '"+a+"'"+i+(e?". "+e:"")}return function(a,i,s){if(o===!1)throw new AxiosError(n(i," has been removed"+(r?" in "+r:"")),AxiosError.ERR_DEPRECATED);return r&&!deprecatedWarnings[i]&&(deprecatedWarnings[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),o?o(a,i,s):!0}};function assertOptions(t,o,r){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var e=Object.keys(t),n=e.length;n-- >0;){var a=e[n],i=o[a];if(i){var s=t[a],l=s===void 0||i(s,a,t);if(l!==!0)throw new AxiosError("option "+a+" must be "+l,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new AxiosError("Unknown option "+a,AxiosError.ERR_BAD_OPTION)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$d,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,buildFullPath=buildFullPath$1,validator=validator$1,validators=validator.validators;function Axios$1(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}
990Axios$1.prototype.request=function(o,r){typeof o=="string"?(r=r||{},r.url=o):r=o||{},r=mergeConfig$1(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var e=r.transitional;e!==void 0&&validator.assertOptions(e,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var n=r.paramsSerializer;n!==void 0&&validator.assertOptions(n,{encode:validators.function,serialize:validators.function},!0),utils$1.isFunction(n)&&(r.paramsSerializer={serialize:n});var a=[],i=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(i=i&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});var s=[];this.interceptors.response.forEach(function(b){s.push(b.fulfilled,b.rejected)});var l;if(!i){var d=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(d,a),d=d.concat(s),l=Promise.resolve(r);d.length;)l=l.then(d.shift(),d.shift());return l}for(var c=r;a.length;){var u=a.shift(),f=a.shift();try{c=u(c)}catch(m){f(m);break}}try{l=dispatchRequest(c)}catch(m){return Promise.reject(m)}for(;s.length;)l=l.then(s.shift(),s.shift());return l};Axios$1.prototype.getUri=function(o){o=mergeConfig$1(this.defaults,o);var r=buildFullPath(o.baseURL,o.url);return buildURL(r,o.params,o.paramsSerializer)};utils$1.forEach(["delete","get","head","options"],function(o){Axios$1.prototype[o]=function(r,e){return this.request(mergeConfig$1(e||{},{method:o,url:r,data:(e||{}).data}))}});utils$1.forEach(["post","put","patch"],function(o){function r(e){return function(a,i,s){return this.request(mergeConfig$1(s||{},{method:o,headers:e?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Axios$1.prototype[o]=r(),Axios$1.prototype[o+"Form"]=r(!0)});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var t=requireCanceledError();function o(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var n=this;this.promise.then(function(a){if(n._listeners){for(var i=n._listeners.length;i-- >0;)n._listeners[i](a);n._listeners=null}}),this.promise.then=function(a){var i,s=new Promise(function(l){n.subscribe(l),i=l}).then(a);return s.cancel=function(){n.unsubscribe(i)},s},r(function(i,s,l){n.reason||(n.reason=new t(i,s,l),e(n.reason))})}return o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}},o.source=function(){var e,n=new o(function(i){e=i});return{token:n,cancel:e}},CancelToken_1=o,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(o){return function(e){return o.apply(null,e)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){if(hasRequiredIsAxiosError)return isAxiosError;hasRequiredIsAxiosError=1;var t=utils$d;return isAxiosError=function(r){return t.isObject(r)&&r.isAxiosError===!0},isAxiosError}var utils=utils$d,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$1=defaults_1,formDataToJSON=formDataToJSON_1;function createInstance(t){var o=new Axios(t),r=bind(Axios.prototype.request,o);return utils.extend(r,Axios.prototype,o),utils.extend(r,o),r.create=function(n){return createInstance(mergeConfig(t,n))},r}var axios$2=createInstance(defaults$1);axios$2.Axios=Axios;axios$2.CanceledError=requireCanceledError();axios$2.CancelToken=requireCancelToken();axios$2.isCancel=requireIsCancel();axios$2.VERSION=requireData().version;axios$2.toFormData=toFormData_1;axios$2.AxiosError=AxiosError_1;axios$2.Cancel=axios$2.CanceledError;axios$2.all=function(o){return Promise.all(o)};axios$2.spread=requireSpread();axios$2.isAxiosError=requireIsAxiosError();axios$2.formToJSON=function(t){return formDataToJSON(utils.isHTMLForm(t)?new FormData(t):t)};axios$3.exports=axios$2;axios$3.exports.default=axios$2;var axiosExports=axios$3.exports,axios=axiosExports;const axios$1=getDefaultExportFromCjs(axios);function useEnrichSummaryHttpCache(){const t=new Set(["enrichSummaryStore","membershipStore"]),o=s=>usePersistencyWithExpiry(s,{expiryDuration:6048e5,autoRestore:!0,autoWrite:!1,refs:{}}),{updateEnrichMembership:r,updateEnrichSummary:e}=useAuthStore(),n=(s,l)=>{s==="membershipStore"&&r(l),s==="enrichSummaryStore"&&e(l)};return{getRequest:async(s,l)=>{try{const d=t.has(s),{retrieveLocalStorage:c,writeLocalStorage:u}=o(s);if(d){const b=c();if(b)return n(s,b),b}const f=await axios$1.get(l),m=(f==null?void 0:f.data)??null;return d&&m&&(n(s,m),u(m)),m}catch(d){console.error("getRequest error:",d)}finally{}},clearCache:s=>{const{deleteLocalStorage:l}=o(s);l()}}}const SAPPHIRE_COOKIE$1="sapphire",PHANTOM_COOKIE="phantom",USERNAME_COOKIE="userName",MILESCOUNT_COOKIE="milesCount",FLYERID_COOKIE="flyerID",MEMBERSTATUS_COOKIE="memberStatus",JADE_COOKIE="jade";usePersistencyWithExpiry("userInfo",{});const useAuthStore=createGlobalState(()=>{const t=ref$1(null),o=ref$1(null),r=ref$1(null);ref$1(null);const e=()=>
990getCookie(SAPPHIRE_COOKIE$1)&&t.value,n=ref$1(e()),a=ref$1(!1),i=ref$1(!1),s=()=>getCookie(SAPPHIRE_COOKIE$1),l=async b=>{t.value=b,c()},d=()=>{const{clearCache:b}=useEnrichSummaryHttpCache();deleteCookie(SAPPHIRE_COOKIE$1),deleteCookie(PHANTOM_COOKIE),deleteCookie(USERNAME_COOKIE),deleteCookie(MILESCOUNT_COOKIE),deleteCookie(FLYERID_COOKIE),deleteCookie(MEMBERSTATUS_COOKIE),deleteCookie(JADE_COOKIE),t.value=null,o.value=null,r.value=null,b("enrichSummaryStore"),b("membershipStore"),c()},c=()=>{n.value=e()};return{isLoggedIn:n,userInfo:t,isAuthStateReady:a,isSummaryPageLoaded:i,enrichSummaryInfo:o,enrichMembershipInfo:r,login:l,logout:d,refreshAuthStatus:c,isSapphireCookiePresent:s,updateEnrichSummary:b=>{o.value=b},updateEnrichMembership:b=>{r.value=b},redirectToAfterLogin:async(b,y)=>{var C,T;const _=encodeURIComponent(window.location.href),S=`${y}?redirectURL=${_}`;try{const x=await axios$1.get(S);if(((C=x.data)==null?void 0:C.code)==="Success"){const k=(T=x.data)==null?void 0:T.details;if(!k)throw new Error("No details found in API response");const E=new URL(b);E.searchParams.set("state",k),window.location.href=E.toString()}else window.location.href=b}catch(x){console.error("Failed to fetch dynamic state, redirecting to login URL:",x),window.location.href=b}}}}),SHADOW_FY_COOKIE="shadow-fy",useFireflyAuthStore=createGlobalState(()=>{const t=ref$1(null),o=()=>getCookie(SHADOW_FY_COOKIE)&&t.value,r=ref$1(o()),e=ref$1(!1),n=()=>getCookie(SHADOW_FY_COOKIE),a=l=>{const d=getCookie(SHADOW_FY_COOKIE);if(!d){console.log("Attempting to login but login cookie not present");return}const c=d.split("|");t.value={accountNumber:c.at(0),userId:c.at(1),username:c.at(2)},s()},i=()=>{deleteCookie(SHADOW_FY_COOKIE),t.value=null,s()},s=()=>{r.value=o()};return{isLoggedIn:r,userInfo:t,isAuthStateReady:e,login:a,logout:i,refreshAuthStatus:s,isFYCookiePresent:n}});window.useFireflyAuthStore=useFireflyAuthStore;const SAPPHIRE_COOKIE="sapphire-amal",cookieConfigs=`;domain=${window.location.hostname.replace("www","")};secure;SameSite=Lax`,useAmalAuthStore=createGlobalState(()=>{const t=ref$1(null),o=()=>getCookie(SAPPHIRE_COOKIE)&&t.value,r=ref$1(o()),e=ref$1(!1),n=d=>{const c=new Date,u=1/24/2;c.setTime(c.getTime()+u*24*60*60*1e3);const f=c.toUTCString();setCookie(SAPPHIRE_COOKIE,d,f,void 0,cookieConfigs)},a=()=>getCookie(SAPPHIRE_COOKIE),i=async d=>{t.value=d,l()},s=()=>{deleteCookie(SAPPHIRE_COOKIE,cookieConfigs),t.value=null,l()},l=()=>{r.value=o()};return{isLoggedIn:r,userInfo:t,isAuthStateReady:e,saveLoginState:n,login:i,logout:s,refreshAuthStatus:l,isSapphireCookiePresent:a}}),isPromise=t=>typeof t=="object"&&typeof t.then=="function";class FuncQueue{constructor(o=[]){this._queueList=o.map(({func:r,thenFunc:e,catchFunc:n,finallyFunc:a})=>({func:r,symbol:Symbol(),thenFunc:e,catchFunc:n,finallyFunc:a})),this._isBusy=!1,this._currentlyProcessing=null,this.processQueue()}processQueue(){const o=this._queueList.at(0);if(!o){this._isBusy=!1,this._currentlyProcessing=null;return}if(this._isBusy)return;this._isBusy=!0;const r=o.func();this._currentlyProcessing=r,isPromise(r)?(typeof o.thenFunc=="function"&&r.then(o.thenFunc),typeof o.catchFunc=="function"&&r.catch(o.catchFunc),typeof o.finallyFunc=="function"&&r.finally(o.finallyFunc),r.finally(()=>{this._isBusy=!1,this.dequeue(),this.processQueue()})):(this._isBusy=!1,this.dequeue(),this.processQueue())}enqueue({func:o,thenFunc:r,catchFunc:e,finallyFunc:n}){if(typeof o!="function")throw new Error("Argument is not a function");this._queueList.push({func:o,symbol:Symbol(),thenFunc:r,catchFunc:e,finallyFunc:n}),this.processQueue()}dequeue(o){const r=o?this._queueList.findIndex(e=>e.symbol===o):0;this._queueList.splice(r,1)}get queueList(){return this._queueList}get isBusy(){return this._isBusy}get currentlyProcessing(){return this._currentlyProcessing}}window.adobeDataLayer=window.adobeDataLayer||[];window.location.hostname==="localhost"&&(window.logAAPayload=!0);const siteKey=window.siteName==="MAG"?"_magcorporate":"_malaysiaairlines",siteName$2=window.siteName==="MH"?"mh":window.siteName,isAmal=siteName$2==="amal",isMaskargo=window.siteName==="MAS-KARGO-LOGISTICS"||window.siteName==="maskargo",ADS_SITES=["ADS","MABA","MABES","MABES-TRAINING","MHH"],isAdsMabaMabes=ADS_SITES.includes(window.siteName),isMH=window.siteName==="MH",isMHH=window.siteName==="MHH",isEnrichPortal=siteName$2==="enrich-portal",siteID={"enrich-portal":"mh:enrich:member"},getAuthenticatedState=t=>t!=null&&t.value?"authenticated":"ambiguous",isTemplate404=t=>t==="spa-404-page-template"||t==="mag-spa-404-page-template"||t==="mhh-spa-404-page-template"||t==="firefly-spa-404-page-template"||t==="amal-spa-404-page-template"||t==="enrich-portal-404-page-template",pushToAdobeDataLayer=async(t,o={})=>{var T,x,k,E,w,D,N,F,V,A,M,O,R;useGlobalCookieSettings();const{rootPath:r,pageProperties:e,pageModel:n}=useGlobalAEMState$1(),a=unref(e).rootCountry,i=unref(e).rootLanguage,l=window.router.currentRoute.value.path.replace(new RegExp(`^${r.value}
990`),"").replace(/\.html$/,"").split("/").filter(Boolean),d=l.at(-1),c=()=>isEnrichPortal?`${siteID["enrich-portal"]}:${d}`:`${siteName$2}:${d}`,u=window.ecid,{isLoggedIn:f,userInfo:m,isAuthStateReady:b}=siteName$2==="firefly"?useFireflyAuthStore():useAuthStore();b.value||await waitFor(()=>!!b.value,400,120).start();const y=window.siteName!=="firefly"?(T=m.value)==null?void 0:T.userId:(x=m.value)==null?void 0:x.accountNumber;let _=null;window.siteName==="enrich-portal"||isMaskargo||isAdsMabaMabes?_={ecid:u,enrichID:y,authenticatedState:getAuthenticatedState(f),...f.value&&window.site==="MH"?{enrichMemberTier:(k=m.value)==null?void 0:k.userTierLevel}:null}:_={userID:y||"",status:f.value?"Authenticated":"notAuthenticated",...f.value&&window.site==="MH"?{membershipTier:(E=m.value)==null?void 0:E.userTierLevel}:null};let S=u?{marketing:{trackingCode:u}}:null,C=null;window.siteName==="enrich-portal"||isMaskargo||isAdsMabaMabes?C=lodashExports.merge({event:t??"",[siteKey]:{pageInfo:{pageName:isAdsMabaMabes?`mag:${(w=c())==null?void 0:w.toLowerCase()}`:(D=c())==null?void 0:D.toLowerCase(),pageURL:window.location.href,siteSection:isAdsMabaMabes?`mag:${(N=l.at(0))==null?void 0:N.toLowerCase()}`:(F=l.at(0))==null?void 0:F.toLowerCase(),language:i??l.at(0),sessionID:getCookie("sapphire"),pageID:"",...window.siteName!=="MAG"?{market:a}:null},...window.siteName==="MH"||window.siteName==="firefly"?{userInfo:_}:null},web:{webPageDetails:{URL:window.location.href,name:isAdsMabaMabes?`mag:${(V=c())==null?void 0:V.toLowerCase()}`:(A=c())==null?void 0:A.toLowerCase(),server:document.location.hostname,siteSection:isAdsMabaMabes?`mag:${(M=l.at(0))==null?void 0:M.toLowerCase()}`:(O=l.at(0))==null?void 0:O.toLowerCase(),pageViews:{value:1},...isTemplate404(n.value.templateName)?{isErrorPage:"y"}:null}}},o):C=lodashExports.merge({event:t??"",[siteKey]:{pageName:d,pageURL:window.location.href,siteSection:l.at(0),siteSubSection:l.at(1)||"",pageType:((R=e.value)==null?void 0:R.pageTypeAA)||"others",siteName:`${window.siteName} Revamp`,language:i,...window.siteName!=="MAG"?{market:a}:null,...window.siteName==="MH"||window.siteName==="firefly"?{userInfo:_}:null},...S,web:{webPageDetails:{URL:window.location.href,name:d,server:document.location.hostname,siteSection:l.at(0),pageViews:{value:1},...isTemplate404(n.value.templateName)?{isErrorPage:"y"}:null}}},o),window.logAAPayload&&console.log("pushToAdobeDataLayer() payload = ",C);try{return t=="userEvent"&&delete C.web,window.adobeDataLayer.push(C),!0}catch(I){console.group("AA pushToAdobeDataLayer() failed"),console.log("dataToMerge = ",o),console.log("payload = ",C),console.log("err = ",I),console.groupEnd()}},pushToAdobeDataLayerGlobal=async(t,o={})=>{var D,N,F,V,A,M,O,R,I,j,H;const{rootPath:r,pageProperties:e,pageModel:n}=useGlobalAEMState$1(),a=unref(e).rootCountry,i=unref(e).rootLanguage,d=window.router.currentRoute.value.path.replace(new RegExp(`^${r.value}`),"").replace(/\.html$/,"").split("/").filter(Boolean).at(-1),c=window.ecid,{isLoggedIn:u,userInfo:f,isAuthStateReady:m,enrichSummaryInfo:b,enrichMembershipInfo:y}=siteName$2==="firefly"?useFireflyAuthStore():siteName$2==="amal"?useAmalAuthStore():useAuthStore();m.value||await waitFor(()=>!!m.value,400,120).start();const S={enrichID:(window.siteName!=="firefly"?(D=f.value)==null?void 0:D.userId:(N=f.value)==null?void 0:N.accountNumber)||"",authenticatedState:getAuthenticatedState(u),...c?{ecid:c}:null,enrichMemberTier:toKebabCase(((F=f.value)==null?void 0:F.userTierLevel)||""),...u.value&&isEnrichPortal?{enrichPointsBalance:((V=y.value)==null?void 0:V.amount)||"0",cardExpiry:((A=y.value)==null?void 0:A.validityEndDate)||"",profileCompletion:`${((M=y.value)==null?void 0:M.percentage)||"0"}%`,elitePointsYearToDate:((O=b.value)==null?void 0:O.actualElitePoints)||"0",tierCarryForward:((R=b.value)==null?void 0:R.carryFwdAmount)||"0",totalOfTierPointsAndTierCarryForward:((I=b.value)==null?void 0:I.elitePoints)||"0",activeCoBrandCard:[{enrichMoney:((j=b.value)==null?void 0:j.isEnrichMoneyHolder)==="true"?"Yes":"No"},{amBankEnrich:((H=b.value)==null?void 0:H.isAmBankEnrichVisaHolder)==="true"?"Yes":"No"}],countryCode:a}:null},C=()=>isEnrichPortal?siteID["enrich-portal"]:siteName$2,T=()=>{var U;return isAdsMabaMabes&&!isMHH?`mag:${(U=C())==null?void 0:U.toLowerCase()}`:isMHH?"mh:holidays":C()},x=()=>{var U;return isAdsMabaMabes&&!isMHH?`mag:${(U=k())==null?void 0:U.toLowerCase()}`:isMHH?`mh:holidays:${d}`:k()},k=()=>isEnrichPortal?`${siteID["enrich-portal"]}:${d}`:`${siteName$2}:${d}`,E=getCookie("sapphire"),w=lodashExports.merge({event:t??"",[siteKey]:{pageInfo:{...window.siteName==="enrich-portal"?{sessionID:E}:null,pageName:x(),pageURL:window.location.href,siteSection:T(),language:i,market:a},...window.siteName==="MH"||window.siteName==="firefly"||isAmal||isEnrichPortal||isMaskargo||isAdsMabaMabes?{userInfo:S}:null}
990,web:{webPageDetails:{URL:window.location.href,name:x(),server:document.location.hostname,siteSection:T(),pageViews:{value:1},...!isEnrichPortal&&isTemplate404(n.value.templateName)?{isErrorPage:!0}:null,...isEnrichPortal&&isTemplate404(n.value.templateName)?{isErrorPage:!0}:{isErrorPage:!1}}}},o);window.logAAPayload&&console.log("pushToAdobeDataLayer() payload = ",w);try{return t==="userEvent"&&delete w.web,window.adobeDataLayer.push(w),!0}catch(U){console.group("AA pushToAdobeDataLayer() failed"),console.log("dataToMerge = ",o),console.log("payload = ",w),console.log("err = ",U),console.groupEnd()}},pushAA_search=([t={},o={},r={}]=[])=>pushToAdobeDataLayer("search",lodashExports.merge({[siteKey]:{searchInfo:{...t}},web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...o}}},r)),pushAA_filterApplied=([t={},o={},r={}]=[])=>pushToAdobeDataLayer("filterApplied",lodashExports.merge({[siteKey]:{searchInfo:{...t}},web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...o}}},r)),pushAA_flightSearchStart=(t="",o={})=>{if(isAmal||isEnrichPortal||isMaskargo||isMH){let r=toKebabCase(t);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightSearch",type:`analytics:${r}`,status:"started"}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}}},o))}return pushToAdobeDataLayer("flightSearchStart",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o))},pushAA_flightSearchEnd=(t="",o={})=>{if(isAmal||isEnrichPortal||isMaskargo||isMH){let r=toKebabCase(t);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightSearch",type:`analytics:${r}`,status:"completed",attributes:o}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}}}))}return pushToAdobeDataLayer("flightSearchEnd",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o))},pushAA_flightPlusHotelStart=(t="",o={})=>{if(isAmal){let r=toKebabCase(t);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightPlusHotel",type:`analytics:${r}`,status:"started"}},web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}},o))}if(isEnrichPortal||isMaskargo||isMH){let r=toKebabCase(t);return pushToAdobeDataLayer("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightPlusHotel",type:`analytics:${r}`,status:"started"}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}}},o))}return pushToAdobeDataLayer("flightPlusHotelStart",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o))},pushAA_flightPlusHotelEnd=(t="",o={})=>{if(isAmal){let r=toKebabCase(t);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightPlusHotel",type:`analytics:${r}`,status:"completed"}},web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}},o))}if(isEnrichPortal||isMaskargo||isMH){let r=toKebabCase(t);return pushToAdobeDataLayer("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightPlusHotel",type:`analytics:${r}`,status:"completed"}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}}},o))}return pushToAdobeDataLayer("flightPlusHotelEnd",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o))},pushAA_flightStatusStart=(t="",o={})=>{if(isAmal){let r=toKebabCase(t);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightStatus",type:`analytics:${r}`,status:"started"}},web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}},o))}if(isEnrichPortal||isMaskargo||isMH){let r=toKebabCase(t);return pushToAdobeDataLayer("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightStatus",type:`analytics:${r}`,status:"started"}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}}},o))}return pushToAdobeDataLayer("flightStatusStart",lodashExports.merge({web:{webInteractions:{linkCl
990icks:{value:1},name:t,type:"other"}}},o))},pushAA_flightStatusEnd=(t={},o={},r={})=>{if(isAmal){let e=toKebabCase(o);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightStatus",type:`analytics:${e}`,status:"completed"}},web:{webInteractions:{linkClicks:{value:1},name:e,type:"other"}}},r))}if(isEnrichPortal||isMaskargo||isMH){let e=toKebabCase(o);return pushToAdobeDataLayer("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightStatus",type:`analytics:${e}`,status:"completed"}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:e,type:"other"}}}},r))}return pushToAdobeDataLayer("flightStatusEnd",lodashExports.merge({[siteKey]:{flightSelections:{...t}},web:{webInteractions:{linkClicks:{value:1},name:o,type:"other"}}},r))},pushAA_generalApiError=([t={},o={},r={}]=[])=>pushToAdobeDataLayerGlobal("error",lodashExports.merge({[siteKey]:{errorInfo:{...t}}},r)),pushAA_searchError=([t={},o={},r={}]=[])=>isAmal?pushToAdobeDataLayerGlobal("error",lodashExports.merge({[siteKey]:{errorInfo:{...t}},web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...o}}},r)):pushToAdobeDataLayer("error",lodashExports.merge({[siteKey]:{errorInfo:{...t,attributes:[]}},web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...o}}},r)),pushAA_MHHFlightPlusHotelStart=(t="",o={})=>pushToAdobeDataLayer("flightPlusHotelStart",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_MHHFlightPlusHotelEnd=(t="",o={},r={})=>pushToAdobeDataLayer("flightPlusHotelEnd",lodashExports.merge({_malaysiaairlines:{holidayBookingInfo:{flight:{...r}}},web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_MHHHotelStart=(t="",o={})=>pushToAdobeDataLayer("hotelStart",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_MHHHotelEnd=(t="",o={},r={})=>pushToAdobeDataLayer("hotelEnd",lodashExports.merge({_malaysiaairlines:{holidayBookingInfo:{hotel:{...r}}},web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_tripsAndToursStart=(t="",o={})=>pushToAdobeDataLayer("tripsAndToursStart",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_tripsAndToursEnd=(t={},o={},r={})=>pushToAdobeDataLayer("tripsAndToursEnd",lodashExports.merge({_malaysiaairlines:{holidayBookingInfo:{tripsAndTours:{...t}}},web:{webInteractions:{linkClicks:{value:1},name:o,type:"other"}}},r)),pushAA_fireflyBookAirCargoSearchStart=(t="",o={})=>pushToAdobeDataLayer("bookAirCargoStart",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_fireflyBookAirCargoSearchEnd=(t={},o="",r={})=>pushToAdobeDataLayer("bookAirCargoEnd",lodashExports.merge({_malaysiaairlines:{flightSelections:{...t}},web:{webInteractions:{linkClicks:{value:1},name:o,type:"other"}}},r)),pushAA_fireflyBookAirCargoSearchError=([t={},o={},r={}]=[])=>pushToAdobeDataLayer("error",lodashExports.merge({[siteKey]:{errorInfo:{...t}},web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...o}}},r)),pushAA_clickFilter=({clickName:t="",componentID:o="",componentName:r="",webInteractionName:e=""}={},n={})=>pushToAdobeDataLayer("clickFilter",lodashExports.merge({_malaysiaairlines:{clickInfo:{clickName:t,clickComponentType:"button",componentName:r,componentID:o}},web:{webInteractions:{linkClicks:{value:1},name:e,type:"other"}}},n)),pushAA_formStart=([{formName:t=""},o={},r={}])=>pushToAdobeDataLayer("formStart",lodashExports.merge({[siteKey]:{form:{formName:t}},web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...o}}},r)),pushAA_formComplete=([{formName:t=""},o={},r={}])=>pushToAdobeDataLayer("formComplete",lodashExports.merge({[siteKey]:{form:{formName:t}},web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...o}}},r)),pushAA_formError=([{formName:t="",errorName:o=""},r={},e={}])=>pushToAdobeDataLayer("error",lodashExports.merge({[siteKey]:{errorInfo:{errorName:o},form:{formName:t}}
990,web:{webInteractions:{linkClicks:{value:1},name:"",type:"other",...r}}},e)),pushAA_subscribe=(t="",o={})=>pushToAdobeDataLayer("subscribeClick",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_manageProfile=(t="",o={})=>pushToAdobeDataLayer("manageProfile",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o)),pushAA_flightDisruptionStart=(t="",o={})=>{if(isAmal){let r=toKebabCase(t);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightDisruption",type:`analytics:${r}`,status:"started"}},web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}},o))}if(isEnrichPortal||isMaskargo||isMH){let r=toKebabCase(t);return pushToAdobeDataLayer("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightDisruption",type:`analytics:${r}`,status:"started"}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:r,type:"other"}}}},o))}return pushToAdobeDataLayer("flightDisruptionStart",lodashExports.merge({web:{webInteractions:{linkClicks:{value:1},name:t,type:"other"}}},o))},pushAA_flightDisruptionEnd=(t={},o={},r={})=>{if(isAmal){let e=toKebabCase(o);return pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightDisruption",type:`analytics:${e}`,status:"completed"}},web:{webInteractions:{linkClicks:{value:1},name:e,type:"other"}}},r))}if(isEnrichPortal||isMaskargo||isMH){let e=toKebabCase(o);return pushToAdobeDataLayer("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{name:"flightDisruption",type:`analytics:${e}`,status:"started"}},...siteKey!=="mh"&&{web:{webInteractions:{linkClicks:{value:1},name:e,type:"other"}}}},r))}return pushToAdobeDataLayer("flightDisruptionEnd",lodashExports.merge({[siteKey]:{flightSelections:{...t}},web:{webInteractions:{linkClicks:{value:1},name:o,type:"other"}}},r))},pushAA_click=([t={},o={},r={},e={}]=[])=>{let n={};if(isEnrichPortal||isMaskargo||isAdsMabaMabes||isMH||isAmal){const a=t.clickName.toLowerCase().trim().replaceAll(" ","-"),i=toKebabCase(t.clickComponentType||"button");let s={...t,componentType:i,clickName:`interaction:click:element:${i}:name:${a}`};return delete s.clickComponentType,t!=null&&t.isUserLogout&&(n.authenticatedState="loggedOut",delete s.isUserLogout),o.name=s.clickName,pushToAdobeDataLayerGlobal("userInteraction",lodashExports.merge({[siteKey]:{clickInfo:{...s},userInfo:{...n},...Object.keys(e).length>0&&{eventInfo:{...e}}},web:{webInteraction:{linkClicks:{value:1},...o}}},r))}return t!=null&&t.isUserLogout&&(n.status="loggedOut",delete cInfo.isUserLogout),pushToAdobeDataLayer("Click",lodashExports.merge({[siteKey]:{clickInfo:{...t},userInfo:{...n}},web:{webInteractions:{linkClicks:{value:1},...o}}},r))},pushAA_event=([t={},o={},r={},e={}]=[])=>{let n={};return isEnrichPortal||isMaskargo||isAdsMabaMabes||isMH||isAmal?pushToAdobeDataLayerGlobal("userInteraction",lodashExports.merge({[siteKey]:{userInfo:{...n},...Object.keys(e).length>0&&{eventInfo:{...e}}},web:{webInteraction:{linkClicks:{value:1},...o}}},r)):pushToAdobeDataLayer("Click",lodashExports.merge({[siteKey]:{clickInfo:{...t},userInfo:{...n}},web:{webInteractions:{linkClicks:{value:1},...o}}},r))},pushAA_userEvent=([t={},o={},r={}]=[])=>pushToAdobeDataLayerGlobal("userEvent",lodashExports.merge({[siteKey]:{eventInfo:{...t}}},r)),pageViewQueue=new FuncQueue,sentPageViews=[],actualSendPageView=()=>{console.log("Firing actualSendPageView(). sentPageViews = ",sentPageViews);const t=window.location.pathname;if(sentPageViews.includes(t))return;const{isEnabledCookiePreferences:o,isEnabledCookieStatistics:r,isEnabledCookieMarketing:e}=useGlobalCookieSettings();return isAmal||isEnrichPortal||isMaskargo||isAdsMabaMabes||isMH?pushToAdobeDataLayerGlobal("pageLoaded",{[siteKey]:{consent:{c_preference:String(o.value),c_statistics:String(r.value),c_marketing:String(e.value)}}}):pushToAdobeDataLayer("pageLoaded",{[siteKey]:{consent:{c_preference:String(o.value),c_statistics:String(r.value),c_marketing:String(e.value)}}})},sendPageView=()=>{pageViewQueue.enqueue({func:actualSendPageView,thenFunc:t=>{t?(console.log(`Success actualSendPageView(). Adding ${window.location.pathname} to sentPageViews Array.`),sentPageViews.push(window.location.pathname)):console.log("Failed actualSendPageView()")}})};(async()=>{await waitFor(()=>!!window.router,400,120).start(),await waitForDocumentReadyState("interactive");const{isAuthStateReady:o}=siteName$2==="firefly"?useFireflyAuthStore():siteName$2==="amal"?useAmalAuthStore():useAuthStore(),{isSummaryPageLoaded:r}=useAuthStore(),e=document.querySelector(".EnrichMembershipSummary");await waitFor(()=>e?!!o.value&&!!r.value:!!o.value).start(),sendPageView()})();const installDirectiveAA=t=>{t.directive("aa",{mounted(o,r,e,n){const a=Object.keys(r.modifiers);a.length===0&&a.push("click"),o.__aa_events=a,o.__aa_disabled=r.arg==="disabled",o.__aa_value=r.value,o.__aa_target=
vendor: 10,267 bytes, line 990
990o.querySelector("[data-aa-target]")||o,o.__aa_listener=i=>{o.__aa_disabled||o.__aa_value===null||o.__aa_value===void 0||pushAA_click(o.__aa_value)},o.__aa_events.forEach(i=>{o.__aa_target.addEventListener(i,o.__aa_listener,{capture:!0})})},updated(o,r,e,n){o.__aa_disabled=r.arg==="disabled",o.__aa_value=r.value},unmounted(o,r,e,n){o.__aa_target&&o.__aa_events.forEach(a=>{o.__aa_target.removeEventListener(a,o.__aa_listener,{capture:!0})})}})},CLASS_PART_SEPARATOR="-",createClassGroupUtils=t=>{const o=createClassMap(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:e}=t;return{getClassGroupId:i=>{const s=i.split(CLASS_PART_SEPARATOR);return s[0]===""&&s.length!==1&&s.shift(),getGroupRecursive(s,o)||getGroupIdForArbitraryProperty(i)},getConflictingClassGroupIds:(i,s)=>{const l=r[i]||[];return s&&e[i]?[...l,...e[i]]:l}}},getGroupRecursive=(t,o)=>{var i;if(t.length===0)return o.classGroupId;const r=t[0],e=o.nextPart.get(r),n=e?getGroupRecursive(t.slice(1),e):void 0;if(n)return n;if(o.validators.length===0)return;const a=t.join(CLASS_PART_SEPARATOR);return(i=o.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=t=>{if(arbitraryPropertyRegex.test(t)){const o=arbitraryPropertyRegex.exec(t)[1],r=o==null?void 0:o.substring(0,o.indexOf(":"));if(r)return"arbitrary.."+r}},createClassMap=t=>{const{theme:o,prefix:r}=t,e={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(t.classGroups),r).forEach(([a,i])=>{processClassesRecursively(i,e,a,o)}),e},processClassesRecursively=(t,o,r,e)=>{t.forEach(n=>{if(typeof n=="string"){const a=n===""?o:getPart(o,n);a.classGroupId=r;return}if(typeof n=="function"){if(isThemeGetter(n)){processClassesRecursively(n(e),o,r,e);return}o.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{processClassesRecursively(i,getPart(o,a),r,e)})})},getPart=(t,o)=>{let r=t;return o.split(CLASS_PART_SEPARATOR).forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},isThemeGetter=t=>t.isThemeGetter,getPrefixedClassGroupEntries=(t,o)=>o?t.map(([r,e])=>{const n=e.map(a=>typeof a=="string"?o+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[o+i,s])):a);return[r,n]}):t,createLruCache=t=>{if(t<1)return{get:()=>{},set:()=>{}};let o=0,r=new Map,e=new Map;const n=(a,i)=>{r.set(a,i),o++,o>t&&(o=0,e=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=e.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},IMPORTANT_MODIFIER="!",createParseClassName=t=>{const{separator:o,experimentalParseClassName:r}=t,e=o.length===1,n=o[0],a=o.length,i=s=>{const l=[];let d=0,c=0,u;for(let _=0;_<s.length;_++){let S=s[_];if(d===0){if(S===n&&(e||s.slice(_,_+a)===o)){l.push(s.slice(c,_)),c=_+a;continue}if(S==="/"){u=_;continue}}S==="["?d++:S==="]"&&d--}const f=l.length===0?s:s.substring(c),m=f.startsWith(IMPORTANT_MODIFIER),b=m?f.substring(1):f,y=u&&u>c?u-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:y}};return r?s=>r({className:s,parseClassName:i}):i},sortModifiers=t=>{if(t.length<=1)return t;const o=[];let r=[];return t.forEach(e=>{e[0]==="["?(o.push(...r.sort(),e),r=[]):r.push(e)}),o.push(...r.sort()),o},createConfigUtils=t=>({cache:createLruCache(t.cacheSize),parseClassName:createParseClassName(t),...createClassGroupUtils(t)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(t,o)=>{const{parseClassName:r,getClassGroupId:e,getConflictingClassGroupIds:n}=o,a=[],i=t.trim().split(SPLIT_CLASSES_REGEX);let s="";for(let l=i.length-1;l>=0;l-=1){const d=i[l],{modifiers:c,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:m}=r(d);let b=!!m,y=e(b?f.substring(0,m):f);if(!y){if(!b){s=d+(s.length>0?" "+s:s);continue}if(y=e(f),!y){s=d+(s.length>0?" "+s:s);continue}b=!1}const _=sortModifiers(c).join(":"),S=u?_+IMPORTANT_MODIFIER:_,C=S+y;if(a.includes(C))continue;a.push(C);const T=n(y,b);for(let x=0;x<T.length;++x){const k=T[x];a.push(S+k)}s=d+(s.length>0?" "+s:s)}return s};function twJoin(){let t=0,o,r,e="";for(;t<arguments.length;)(o=arguments[t++])&&(r=toValue(o))&&(e&&(e+=" "),e+=r);return e}const toValue=t=>{if(typeof t=="string")return t;let o,r="";for(let e=0;e<t.length;e++)t[e]&&(o=toValue(t[e]))&&(r&&(r+=" "),r+=o);return r};function createTailwindMerge(t,...o){let r,e,n,a=i;function i(l){const d=o.reduce((c,u)=>u(c),t());return r=createConfigUtils(d),e=r.cache.get,n=r.cache.set,a=s,s(l)}function s(l){const d=e(l);if(d)return d;const c=mergeClassList(l,r);return n(l,c),c}return function(){return a(twJoin.apply(null,arguments))}}const fromTheme=t=>{const o=r=>r[t]||[];return o.isThemeGetter=!0,o},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength$4=t=>isNumber(t)||stringLengths.has(t)||fractionRegex.test(t),isArbitraryLength=t=>getIsArbitraryValue(t,"length",isLengthOnly),isNumber=t=>!!t&&!Number.isNaN(Number(t)),isArbitraryNumber=t=>getIsArbitraryValue(t,"number",isNumber),isInteger=t=>!!t&&Number.isInteger(Number(t)),isPercent=t=>t.endsWith("%")&&isNumber(t.slice(0,-1)),isArbitraryValue=t=>arbitraryValueRegex.test(t),isTshirtSize=t=>tshirtUnitRegex.test(t),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=t=>getIsArbitraryValue(t,sizeLabels,isNever),isArbitraryPosition=t=>getIsArbitraryValue(t,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=t=>getIsArbitraryValue(t,imageLabels,isImage),isArbitraryShadow=t=>getIsArbitraryValue(t,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(t,o,r)=>{const e=arbitraryValueRegex.exec(t);return e?e[1]?typeof o=="string"?e[1]===o:o.has(e[1]):r(e[2]):!1},isLengthOnly=t=>lengthUnitRegex.test(t)&&!colorFunctionRegex.test(t),isNever=()=>!1,isShadow=t=>shadowRegex.test(t),isImage=t=>imageRegex.test(t),getDefaultConfig=()=>{const t=fromTheme("colors"),o=fromTheme("spacing"),r=fromTheme("blur"),e=fromTheme("brightness"),n=fromTheme("borderColor"),a=fromTheme("borderRadius"),i=fromTheme("borderSpacing"),s=fromTheme("borderWidth"),l=fromTheme("contrast"),d=fromTheme("grayscale"),c=fromTheme("hueRotate"),u=fromTheme("invert"),f=fromTheme("gap"),m=fromTheme("gradientColorStops"),b=fromTheme("gradientColorStopPositions"),y=fromTheme("inset"),_=fromTheme("margin"),S=fromTheme("opacity"),C=fromTheme("padding"),T=fromTheme("saturate"),x=fromTheme("scale"),k=fromTheme("sepia"),E=fromTheme("skew"),w=fromTheme("space"),D=fromTheme("translate"),N=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",isArbitraryValue,o],A=()=>[isArbitraryValue,o],M=()=>["",isLength$4,isArbitraryLength],O=()=>["auto",isNumber,isArbitraryValue],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",isArbitraryValue],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength$4,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:L(),borderColor:[t],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:A(),borderWidth:M(),contrast:L(),grayscale:U(),hueRotate:L(),invert:U(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:V(),margin:V(),opacity:L(),padding:A(),saturate:L(),scale:L(),sepia:U(),skew:L(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),isArbitraryValue]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":O()}
vendor: 10,060 bytes, line 990
990],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,o]}],"min-w":[{"min-w":[isArbitraryValue,o,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,o,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,o,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength$4,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength$4,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength$4,isArbitraryValue]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:I()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[isLength$4,isArbitraryValue]}],"outline-w":[{outline:[isLength$4,isArbitraryLength]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[isLength$4,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[e]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[T]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[e]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
990],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[isLength$4,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig),customDirectives={install(t,o){t.directive("focus-within",{mounted(e,n,a,i){const{focused:s,activeElement:l}=useFocusWithin(e);watch(s,d=>{d?e.dispatchEvent(new CustomEvent("focus-within",{detail:{activeElement:l}})):e.dispatchEvent(new CustomEvent("blur-within",{detail:{activeElement:l}}))})}}),t.directive("button-press",{mounted(e,n,a,i){const s="is-mouse-down",l=ref$1(!1),d=()=>{l.value=!0},c=()=>{l.value=!1};e.addEventListener("mousedown",d),e.addEventListener("mouseup",c),e.addEventListener("keydown",f=>{["Enter","Space"].includes(f.code)&&d()}),e.addEventListener("keyup",f=>{["Enter","Space"].includes(f.code)&&c()});const u=watch(l,f=>{f?e.classList.add(s):e.classList.remove(s)});e.__button_setIsMouseDownTrue=d,e.__button_setIsMouseDownFalse=c,e.__button_unwatch=u},unmounted(e){e.removeEventListener("mousedown",e.__button_setIsMouseDownTrue),e.removeEventListener("mouseup",e.__button_setIsMouseDownFalse),e.removeEventListener("keydown",e.__button_setIsMouseDownTrue),e.removeEventListener("keyup",e.__button_setIsMouseDownFalse),e.__button_unwatch()}}),t.directive("visible",(e,n,a,i)=>{n.value?e.style.visibility="visible":e.style.visibility="hidden"}),t.directive("html-sanitize",(e,n,a,i)=>{const s=n.modifiers.allowStyle?[]:["style"];n.value!==n.oldValue&&(e.innerHTML=purify.sanitize(n.value,{FORBID_TAGS:s}))}),t.directive("alphabets-strict",{mounted(e,n,a,i){const s=l=>{/[a-zA-Z\s\b]/.test(l.key)||l.preventDefault()};e.addEventListener("keydown",s),e.__restrictToAlphabets=s},unmounted(e){e.removeEventListener("keydown",e.__restrictToAlphabets)}}),t.directive("roman-only",{mounted(e){const n=e.tagName==="INPUT"?e:e.querySelector("input");if(!n)return;let a=!1;const i=/[^A-Za-z\s'-]/g,s=()=>{const u=n.value.replace(i,"");u!==n.value&&(n.value=u,n.dispatchEvent(new Event("input",{bubbles:!0})))},l=()=>{a||s()},d=()=>{a=!0},c=()=>{a=!1,s()};n.addEventListener("input",l),n.addEventListener("compositionstart",d),n.addEventListener("compositionend",c),e.__romanOnly={input:n,handleInput:l,handleCompositionStart:d,handleCompositionEnd:c}
990},unmounted(e){const n=e.__romanOnly;n&&(n.input.removeEventListener("input",n.handleInput),n.input.removeEventListener("compositionstart",n.handleCompositionStart),n.input.removeEventListener("compositionend",n.handleCompositionEnd))}});const r=(e,n,a)=>{var l;const i=e.classList.value,s=(l=a==null?void 0:a.ctx)==null?void 0:l.attrs;!i||!s||(e.classList.value=twMerge(i,s))};t.directive("tw-merge",{beforeMount:r,updated:r}),installDirectiveAA(t)}},mappingData=[{componentPath:"aem-components/NewsletterSignUp.vue",resourceType:"mh/components/newsletter-sign-up",editConfig:{emptyLabel:"Newsletter Sign Up",isEmpty(t){return!0}}},{componentPath:"aem-components/DestinationWindow.vue",resourceType:"mh/components/destination-window",editConfig:{emptyLabel:"Destination Window",isEmpty(t){return t.windowList.length===0}}},{componentPath:"aem-components/USP.vue",resourceType:"mh/components/usp",editConfig:{emptyLabel:"USP",isEmpty(t){return t.uspList.length===0}}},{componentPath:"aem-components/PlanYourTripTiles.vue",resourceType:"mh/components/plan-your-trip-tiles",editConfig:{emptyLabel:"Plan Your Trip Tiles",isEmpty(t){return!t.tilesMultiList.length}}},{componentPath:"aem-components/DestinationEssentialDetails.vue",resourceType:"mh/components/destination-essential-details",editConfig:{emptyLabel:"Destination Essential Details",isEmpty(t){return t.destinationEssentialList.length===0}}},{componentPath:"aem-components/NavigationTiles.vue",resourceType:"mh/components/navigation-tiles",editConfig:{emptyLabel:"Navigation Tiles",isEmpty(t){return t.imageMultiList.length===0&&t.ctaMultiList.length===0}}},{componentPath:"aem-components/HtmlComponent.vue",resourceType:"mh/components/html-component",editConfig:{emptyLabel:"Html Component",isEmpty(t){return!0}}},{componentPath:"aem-components/SwitchTab.vue",resourceType:"mh/components/switch-tab",editConfig:{emptyLabel:"Switch Tab",isEmpty(t){return t.tabList.length===0}}},{componentPath:"aem-components/DestinationsListing.vue",resourceType:"mh/components/destinations-listing",editConfig:{emptyLabel:"Destinations Listing",isEmpty(t){return t.pageListing.length===0}}},{componentPath:"aem-components/TravelRegulationsOrAdvisory.vue",resourceType:"mh/components/travel-regulations-or-advisory",editConfig:{emptyLabel:"Travel Regulations Or Advisory",isEmpty(t){return!1}}},{componentPath:"aem-components/CrossSellTiles.vue",resourceType:"mh/components/cross-sell-tiles",editConfig:{emptyLabel:"Cross Sell Tiles",isEmpty(t){switch(t.tileType){case"manual":return t.manualMultilist.length===0;case"content":return t.contentMultilist.length===0;case"article":return t.articleMultilist.length===0}}}},{componentPath:"aem-components/ShowMore.vue",resourceType:"mh/components/show-more",editConfig:{emptyLabel:"Show More",isEmpty(t){return!1}}},{componentPath:"aem-components/SearchResults.vue",resourceType:"mh/components/search-results",editConfig:{emptyLabel:"Search Results",isEmpty(t){return!1}}},{componentPath:"aem-components/AnchorTag.vue",resourceType:"mh/components/anchor-tag",editConfig:{emptyLabel:"Anchor Tag",isEmpty(t){return!1}}},{componentPath:"aem-components/booking/FlightSearch.vue",resourceType:"mh/components/booking/flight-search",editConfig:{emptyLabel:"Flight Search",isEmpty(t){return!1}}},{componentPath:"aem-components/booking/FlightHotelSearch.vue",resourceType:"mh/components/booking/flight-hotel-search",editConfig:{emptyLabel:"Flight Hotel Search",isEmpty(t){return!1}}},{componentPath:"aem-components/booking/ManageBooking.vue",resourceType:"mh/components/booking/manage-booking",editConfig:{emptyLabel:"Manage Booking",isEmpty(t){return!1}}},{componentPath:"aem-components/booking/CheckIn.vue",resourceType:"mh/components/booking/check-in",editConfig:{emptyLabel:"Check In",isEmpty(t){return!1}}},{componentPath:"aem-components/booking/FlightStatus.vue",resourceType:"mh/components/booking/flight-status",editConfig:{emptyLabel:"Flight Status",isEmpty(t){return!1}}},{componentPath:"aem-components/booking/FlightSchedule.vue",resourceType:"mh/components/booking/flight-schedule",editConfig:{emptyLabel:"Flight Schedule",isEmpty(t){return!1}}},{componentPath:"aem-components/booking/MHupgrade.vue",resourceType:"mh/components/booking/mh-upgrade",editConfig:{emptyLabel:"MHupgrade",isEmpty(t){return!1}}},{componentPath:"aem-components/Accordion.vue",resourceType:"mh/components/
990accordion",editConfig:{emptyLabel:"Accordion",isEmpty(t){return!(t.type==="parent"&&t.children.length||t.type==="single"&&t.accordionTitle)}}},{componentPath:"aem-components/PageProperties.vue",resourceType:"mh/components/page-properties",editConfig:{emptyLabel:"Page Properties",isEmpty(t){return!0}}},{componentPath:"aem-components/JalDataFeed.vue",resourceType:"mh/components/jal-data-feed",editConfig:{emptyLabel:"Jal Data Feed",isEmpty(t){return!0}}},{componentPath:"aem-components/MHVideo.vue",resourceType:"mh/components/mh-video",editConfig:{emptyLabel:"MH Video",isEmpty(t){return!(t.videoPath||t.youtubeID)}}},{componentPath:"aem-components/MHBreadcrumb.vue",resourceType:"mh/components/mh-breadcrumb",editConfig:{emptyLabel:"MH Breadcrumb",isEmpty(t){return!1}}},{componentPath:"aem-components/InflightMenu.vue",resourceType:"mh/components/inflight-menu",editConfig:{emptyLabel:"In-Flight Menu",isEmpty(t){return t.destination.cabinClass===void 0&&t.destination.dataField===void 0&&t.destination.from===void 0&&t.destination.to===void 0||t.flightNumber.cabinClass===void 0&&t.flightNumber.dateField===void 0&&t.flightNumber.flight===void 0}}},{componentPath:"aem-components/AnchorNavigation.vue",resourceType:"mh/components/anchor-navigation",editConfig:{emptyLabel:"Anchor Navigation",isEmpty(t){return!t.anchorNavigationMultilistPojo.length}}},{componentPath:"aem-components/Steps.vue",resourceType:"mh/components/steps",editConfig:{emptyLabel:"Steps Component",isEmpty(t){return!0}}},{componentPath:"aem-components/MediaCentreListing.vue",resourceType:"mh/components/media-centre-listing",editConfig:{emptyLabel:"Media Centre Listing",isEmpty(t){return!0}}},{componentPath:"aem-components/MediaCentreSearch.vue",resourceType:"mh/components/media-centre-search",editConfig:{emptyLabel:"Media Centre Search",isEmpty(t){return!t.searchPagePath}}},{componentPath:"aem-components/MovieReelsAndSearch.vue",resourceType:"mh/components/movie-reels-and-search",editConfig:{emptyLabel:"Movie Reels And Search",isEmpty(t){return Object.keys(t.general).length===0||Object.keys(t.label).length===0}}},{componentPath:"aem-components/VoucherTile.vue",resourceType:"mh/components/voucher-tile",editConfig:{emptyLabel:"Voucher Tile",isEmpty(t){return t.manualMultilist.length===0&&t.contentPropAndList.length===0}}},{componentPath:"aem-components/MovieSearchResults.vue",resourceType:"mh/components/movie-search-results",editConfig:{emptyLabel:"Movie Search Results",isEmpty(t){return Object.keys(t.general).length===0||Object.keys(t.labels).length===0}}},{componentPath:"aem-components/form/FormContainer.vue",resourceType:"mh/components/form/form-container",editConfig:{emptyLabel:"Form Container",isEmpty(t){return!1}}},{componentPath:"aem-components/form/FileUpload.vue",resourceType:"mh/components/form/file-upload",editConfig:{emptyLabel:"File Upload",isEmpty(t){return!0}}},{componentPath:"aem-components/PromoListing.vue",resourceType:"mh/components/promo-listing",editConfig:{emptyLabel:"Promo Listing",isEmpty(t){return!(t.promoChildPageProperties.length>0)}}},{componentPath:"aem-components/CountdownTimer.vue",resourceType:"mh/components/countdown-timer",editConfig:{emptyLabel:"Countdown Timer",isEmpty(t){return!0}}},{componentPath:"aem-components/form/DatePicker.vue",resourceType:"mh/components/form/date-picker",editConfig:{emptyLabel:"Date Picker",isEmpty(t){var o;return!((o=t.general)!=null&&o.label)}}},{componentPath:"aem-components/form/MobilePhoneInput.vue",resourceType:"mh/components/form/mobile-phone-input",editConfig:{emptyLabel:"Mobile Phone Input",isEmpty(t){return!0}}},{componentPath:"aem-components/form/RadioButton.vue",resourceType:"mh/components/form/radio-button",editConfig:{emptyLabel:"Radio Button",isEmpty(t){return!0}}},{componentPath:"aem-components/form/Dropdown.vue",resourceType:"mh/components/form/dropdown",editConfig:{emptyLabel:"Dropdown",isEmpty(t){return Object.keys(t.dropdown).length===0||Object.keys(t.general).length===0}}},{componentPath:"aem-components/form/TextArea.vue",resourceType:"mh/components/form/text-area",editConfig:{emptyLabel:"Text Area",isEmpty(t){return!0}}},{componentPath:"aem-components/form/RatingSlider.vue",resourceType:"mh/components/form/rating-slider",editConfig:{emptyLabel:"Rating Slider",isEmpty(t){return!0}}},{componentPath:"aem-components/form/Checkbox.vue",resourceType:"mh/components/form/checkbox",editConfig:{emptyLabel:"Checkbox",isEmpty(t){return!0}}},{componentPath:"aem-components/form/DynamicDropdown.vue",resourceType:"mh/components/form/dynamic-dropdown",editConfig:{emptyLabel:"Dynamic Dropdown",isEmpty(t){return(t==null?void 0:t.dynamicDropdown)===void 0||(t==null?void 0:t.general)===void 0}}},{componentPath:"aem-components/MHTable.vue",resourceType:"mh/components/mh-table",editConfig:{emptyLabel:"Table Component",isEmpty(t){return!t.tableData}}},{componentPath:"aem-components/form/NumberPicker.vue",resourceType:"mh/components/form/number-picker",editConfig:{emptyLabel:"Number Picker",isEmpty(t){return!0}}},{componentPath:"aem-components/form/TextField.vue",resourceType:"mh/components/form/text-field",editConfig:{emptyLabel:"Text Field",isEmpty(t){return!0}}},{componentPath:"aem-components/BookingWidgetUrlQueryGenerator.vue",resourceType:"mh/components/booking-widget-url-query-generator",editConfig:{emptyLabel:"Booking Widget Url Query Generator",isEmpty(t){return!0}}},{componentPath:"aem-components/mhe/SignUpForm.vue",resourceType:"mh/components/mhexplorer/signup-form",editConfig:{emptyLabel:"MHExplorer SignUp Form",isEmpty(t){return!0}}},{componentPath:"aem-components/ContactUs/ContactUs.vue",resourceType:"mh/components/contact-us-form",editConfig:{emptyLabel:"Contact Us Form",isEmpty(t){return!0}}},{componentPath:"aem-components/ScriptExecutor.vue",resourceType:"mh/components/script-executor",editConfig:{emptyLabel:"Script Executor",isEmpty(t){return!0}}},{componentPath:"aem-components/matta/Matta2024.vue",resourceType:"mh/components/matta-2024",editConfig:{emptyLabel:"matta 2024",isEmpty(t){return!0}}},{componentPath:"aem-components/MAGHeader.vue",resourceType:"mh/components/mag-header",editConfig:{emptyLabel:"Mag Header",isEmpty(t){return!0}}},{componentPath:"aem-components/MAGFooter.vue",resourceType:"mh/components/mag-footer",editConfig:{emptyLabel:"Mag Footer",isEmpty(t){return!0}}},{componentPath:"aem-components/MAGBrandsCarousel.vue",resourceType:"mh/components/mag-brands-carousel",editConfig:{emptyLabel:"Mag Brands Carousel",isEmpty(t){return!0}}},{componentPath:"aem-components/MAGDownloadTiles.vue",resourceType:"mh/components/mag-download-tiles",editConfig:{emptyLabel:"Mag Download Tiles",isEmpty(t){return t.multiList.length===0}}},{componentPath:"aem-components/mhh/MHHHeader.vue",resourceType:"mh/components/mhh/mhh-header",editConfig:{emptyLabel:"MHH Header",isEmpty(t){return!0}}},{componentPath:"aem-components/mhh/MHHFooter.vue",resourceType:"mh/components/mhh/mhh-footer",editConfig:{emptyLabel:"MHH Footer",isEmpty(t){return!0}}},{componentPath:"aem-components/mhh/booking/MHHBookingWidget.vue",resourceType:"mh/components/mhh/booking/mhh-booking-widget",editConfig:{emptyLabel:"MHH Booking Widget",isEmpty(t){return!1}}},{componentPath:"aem-components/mhh/MHHHeaderDeals.vue",resourceType:"mh/components/mhh/mhh-header-deals",editConfig:{emptyLabel:"MHH Header Deals",isEmpty(t){return!0}}},{componentPath:"aem-components/mhh/booking/MHHFlightHotelSearch.vue",resourceType:"mh/components/mhh/booking/mhh-flight-hotel-search",editConfig:{emptyLabel:"MHH Flight Hotel Search",isEmpty(t){return!1}}},{componentPath:"aem-components/mhh/booking/MHHHotelSearch.vue",resourceType:"mh/components/mhh/booking/mhh-hotel-search",editConfig:{emptyLabel:"MHH Hotel Search",isEmpty(t){return!1}}},{componentPath:"aem-components/mhh/booking/MHHTripsAndTours.vue",resourceType:"mh/components/mhh/booking/mhh-trips-and-tours",editConfig:{emptyLabel:"MHH Trips And Tours",isEmpty(t){return!1}}},{componentPath:"aem-components/mhh/booking/MHHAirportTransfer.vue",resourceType:"mh/components/mhh/booking/mhh-airport-transfer",editConfig:{emptyLabel:"MHH Airport Transfer",isEmpty(t){return(t==null?void 0:t.airportTransfer)===void 0}}},{componentPath:"aem-components/mhh/MHHPromotionPopUp.vue",resourceType:"mh/components/mhh/mhh-promotion-pop-up",editConfig:{emptyLabel:"MHH Promotion Pop Up",isEmpty(t){return!0}}},{componentPath:"aem-components/mhh/MHHDestinationAndTourDeals.vue",resourceType:"mh/components/mhh/mhh-destination-and-tour-deals",editConfig:{emptyLabel:"MHH Destination And Tour Deals",isEmpty(t){return!0}}},{componentPath:"aem-components/mhh/MHHHotelDealsTiles.vue",resourceType:"mh/components/mhh/mhh-hotel-deals-tiles",editConfig:{emptyLabel:"MHH Hotel Deals Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/mhh/MHHTripspirationCards.vue",resourceType:"mh/components/mhh/mhh-tripspiration-cards",editConfig:{emptyLabel:"MHH Tripspiration Cards",isEmpty(t){return t.contentType===void 0||t.contentType==="parent-page"&&t.listOfChildPropfromParent.length===0||t.contentType==="child-page"&&t.childPageProperties.length===0}}},{componentPath:"aem-components/mhh/MHHUSPIcon.vue",resourceType:"mh/components/mhh/mhh-usp-icon",editConfig:{emptyLabel:"MHH USP Icon",isEmpty(t){return t.uspTextIconList.length===0}}},{componentPath:"aem-components/mhh/MHHBookingWidgetUrlQueryGenerator.vue",resourceType:"mh/components/mhh/mhh-booking-widget-url-query-generator",editConfig:{emptyLabel:"MHH Booking Widget Url Query Generator",isEmpty(t){return!0}}},{componentPath:"aem-components/maba/MABAHeader.vue",resourceType:"mh/components/maba/maba-header",editConfig:{emptyLabel:"Maba Header",isEmpty(t){return!0}}},{componentPath:"aem-components/maba/MABAFooter.vue",resourceType:"mh/components/maba/maba-footer",editConfig:{emptyLabel:"Maba Footer",isEmpty(t){return!0}}},{componentPath:"aem-components/maba/MABAImageOverflowTile.vue",resourceType:"mh/components/maba/maba-image-overflow-tile",editConfig:{emptyLabel:"MABA Image Overflow Tile",isEmpty(t){return!0}}}
990,{componentPath:"aem-components/amal/AmalFooter.vue",resourceType:"mh/components/amal/amal-footer",editConfig:{emptyLabel:"Amal Footer",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/AmalHeader.vue",resourceType:"mh/components/amal/amal-header",editConfig:{emptyLabel:"Amal Header",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/booking/AmalBookingWidget.vue",resourceType:"mh/components/amal/booking/amal-booking-widget",editConfig:{emptyLabel:"Amal Booking Widget",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/booking/AmalFlightSearch.vue",resourceType:"mh/components/amal/booking/amal-flight-search",editConfig:{emptyLabel:"Amal Flight Search",isEmpty(t){return t.bookFlight===null||t.multiCity===null||t.bonusSideTrip===null}}},{componentPath:"aem-components/amal/AmalMallTiles.vue",resourceType:"mh/components/amal/amal-mall-tiles",editConfig:{emptyLabel:"Amal Mall Tiles",isEmpty(t){return t.amalMallTilesMultilist.length<1}}},{componentPath:"aem-components/amal/booking/AmalFlightSchedule.vue",resourceType:"mh/components/amal/booking/amal-flight-schedule",editConfig:{emptyLabel:"Amal Flight Schedule",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/booking/AmalUmrahPackages.vue",resourceType:"mh/components/amal/booking/amal-umrah-packages",editConfig:{emptyLabel:"Amal Umrah Packages",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/booking/AmalFlightHotelSearch.vue",resourceType:"mh/components/amal/booking/amal-flight-hotel-search",editConfig:{emptyLabel:"Amal Flight Hotel Search",isEmpty(t){var o,r;return((o=t.flightHotelSearch)==null?void 0:o.titleLabel)===void 0&&((r=t.hoteltab)==null?void 0:r.titleLabel)===void 0}}},{componentPath:"aem-components/amal/booking/AmalFlightStatus.vue",resourceType:"mh/components/amal/booking/amal-flight-status",editConfig:{emptyLabel:"Amal Flight Status",isEmpty(t){return!1}}},{componentPath:"aem-components/firefly/FireflyHeader.vue",resourceType:"mh/components/firefly/firefly-header",editConfig:{emptyLabel:"Firefly Header",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/FireflyFooter.vue",resourceType:"mh/components/firefly/firefly-footer",editConfig:{emptyLabel:"Firefly Footer",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/FireflyInformationTiles.vue",resourceType:"mh/components/firefly/firefly-information-tiles",editConfig:{emptyLabel:"Firefly Information Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/booking/FireflyBookingWidget.vue",resourceType:"mh/components/firefly/booking/firefly-booking-widget",editConfig:{emptyLabel:"Firefly Booking Widget",isEmpty(t){return t.desktopProperties.length===0}}},{componentPath:"aem-components/firefly/FireflyDealsTiles.vue",resourceType:"mh/components/firefly/firefly-deals-tiles",editConfig:{emptyLabel:"Firefly Deals Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/FireflyTravelInfoTiles.vue",resourceType:"mh/components/firefly/firefly-travel-info-tiles",editConfig:{emptyLabel:"Firefly Travel Info Tiles",isEmpty(t){return!t.label&&!t.description&&t.travelInfoTiles.length===0}}},{componentPath:"aem-components/firefly/booking/FireflyFlightSearch.vue",resourceType:"mh/components/firefly/booking/firefly-flight-search",editConfig:{emptyLabel:"Firefly Flight Search",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/booking/FireflyAirCargo.vue",resourceType:"mh/components/firefly/booking/firefly-air-cargo",editConfig:{emptyLabel:"Firefly Air Cargo",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/booking/FireflyManageBooking.vue",resourceType:"mh/components/firefly/booking/firefly-manage-booking",editConfig:{emptyLabel:"Firefly Manage Booking",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/booking/FireflyNeighbourFreeSeat.vue",resourceType:"mh/components/firefly/booking/firefly-neighbour-free-seat",editConfig:{emptyLabel:"Firefly Neighbour Free Seat",isEmpty(t){return!0}}},{componentPath:"aem-components/firefly/booking/FireflyCheckIn.vue",resourceType:"mh/components/firefly/booking/firefly-check-in",editConfig:{emptyLabel:"Firefly Check In",isEmpty(t){return!0}}},{componentPath:"aem-components/FlysiswaForm.vue",resourceType:"mh/components/flysiswa/flysiswa-form",editConfig:{emptyLabel:"Flysiswa Form Sign Up",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichHeader.vue",resourceType:"mh/components/enrich-portal/enrich-header",editConfig:{emptyLabel:"Enrich Header",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichMembershipSummary.vue",resourceType:"mh/components/enrich-portal/enrich-membership-summary",editConfig:{emptyLabel:"Enrich Membership Summary",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichFlyPass.vue",resourceType:"mh/components/enrich-portal/enrich-fly-pass",editConfig:{emptyLabel:"Enrich Fly Pass",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichPointsActivity.vue",resourceType:"mh/components/enrich-portal/enrich-points-activity",editConfig:{emptyLabel:"Enrich Points Activity",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichUpcomingTrips.vue",resourceType:"mh/components/enrich-portal/enrich-upcoming-trips",editConfig:{emptyLabel:"Enrich Upcoming Trips",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichCrossSellTiles.vue",resourceType:"mh/components/enrich-portal/enrich-cross-sell-tiles",editConfig:{emptyLabel:"Enrich Cross Sell Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichCarouselTiles.vue",resourceType:"mh/components/enrich-portal/enrich-carousel-tiles",editConfig:{emptyLabel:"Enrich Carousel Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichNavigationBar.vue",resourceType:"mh/components/enrich-portal/enrich-navigation-bar",editConfig:{emptyLabel:"Enrich Navigation Bar",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichMidTierBooster.vue",resourceType:"mh/components/enrich-portal/enrich-mid-tier-booster",editConfig:{emptyLabel:"Enrich Mid-Tier Booster",isEmpty(t){return!0}}},{componentPath:"aem-components/mhe/PostLoginHandler.vue",resourceType:"mh/components/mhexplorer/mhexplorer-student-login",editConfig:{emptyLabel:"MHE post login handler",isEmpty(t){return!0}}},{componentPath:"aem-components/mhe/StudentInfoCard.vue",resourceType:"mh/components/mhexplorer/mhexplorer-card-detail
990s",editConfig:{emptyLabel:"MHE Student Card Details",isEmpty(t){return!0}}},{componentPath:"aem-components/mhe/BookingWidget/MHEFlightSearch.vue",resourceType:"mh/components/mhexplorer/booking/mhe-flight-search",editConfig:{emptyLabel:"MHE Flight Search",isEmpty(t){return!1}}},{componentPath:"aem-components/TravelConfirmationLetter.vue",resourceType:"mh/components/travel-confirmation-letter",editConfig:{emptyLabel:"Travel Confirmation Letter",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichStatusBenefits.vue",resourceType:"mh/components/enrich-portal/enrich-status-benefits",editConfig:{emptyLabel:"Enrich Status Benefits",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichNotifications.vue",resourceType:"mh/components/enrich-portal/enrich-notifications",editConfig:{emptyLabel:"Enrich Notifications",isEmpty(t){return!0}}},{componentPath:"aem-components/booking/FlightDisruption.vue",resourceType:"mh/components/booking/flight-disruption",editConfig:{emptyLabel:"Flight Disruption",isEmpty(t){return!1}}},{componentPath:"aem-components/ads/ADSHeader.vue",resourceType:"mh/components/ads/ads-header",editConfig:{emptyLabel:"ADS Header",isEmpty(t){return!0}}},{componentPath:"aem-components/ads/ADSFooter.vue",resourceType:"mh/components/ads/ads-footer",editConfig:{emptyLabel:"ADS Footer",isEmpty(t){return!0}}},{componentPath:"aem-components/LowFareDestinationTiles.vue",resourceType:"mh/components/low-fare-destination-tiles",editConfig:{emptyLabel:"Low Fare Destination Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/PeekFunction.vue",resourceType:"mh/components/peek-function",editConfig:{emptyLabel:"Peek Function",isEmpty(t){return!0}}},{componentPath:"aem-components/external-flight/ExternalFlightSearch.vue",resourceType:"mh/components/external-flight-search",editConfig:{emptyLabel:"External Flight Search",isEmpty(t){return!0}}},{componentPath:"aem-components/MAG-business-cards/BusinessCard.vue",resourceType:"mh/components/business-card",editConfig:{emptyLabel:"Business Card",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichCoBrandCardWidget.vue",resourceType:"mh/components/enrich-portal/enrich-co-brand-card-widget",editConfig:{emptyLabel:"Enrich Co Brand Card Widget",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichCoBrandCard.vue",resourceType:"mh/components/enrich-portal/enrich-co-brand-card",editConfig:{emptyLabel:"Enrich Co Brand Card",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichGiftCardQuickRedemptionOverlay.vue",resourceType:"mh/components/enrich-portal/enrich-gift-card-quick-redemption-overlay",editConfig:{emptyLabel:"Enrich Gift Card Quick Redemption Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichGiftCardProductDetailsSelection.vue",resourceType:"mh/components/enrich-portal/enrich-gift-card-product-details-selection",editConfig:{emptyLabel:"Enrich Gift Card Product Details Selection",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichGiftCardListing.vue",resourceType:"mh/components/enrich-portal/enrich-gift-card-listing",editConfig:{emptyLabel:"Enrich Gift Card Listing",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichGiftCardsFeatureTiles.vue",resourceType:"mh/components/enrich-portal/enrich-gift-cards-feature-tiles",editConfig:{emptyLabel:"Enrich Gift Cards Feature Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichTrackClaimStatus.vue",resourceType:"mh/components/enrich-portal/enrich-track-claim-status",editConfig:{emptyLabel:"Enrich Track Claim Status",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichClaimMissingPoints.vue",resourceType:"mh/components/enrich-portal/enrich-claim-missing-points",editConfig:{emptyLabel:"Enrich Claim Missing Points",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichTransactionHistory.vue",resourceType:"mh/components/enrich-portal/enrich-transaction-history",editConfig:{emptyLabel:"Enrich Transaction History",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichBreadcrumb.vue",resourceType:"mh/components/enrich-portal/enrich-breadcrumb",editConfig:{emptyLabel:"Enrich Breadcrumb",isEmpty(t){return!0}}},{componentPath:"aem-components/Campaigns/TourismCampaign.vue",resourceType:"mh/components/campaigns/sarawak-tourism",editConfig:{emptyLabel:"Tourism Campaign",isEmpty(t){return!0}}}
990,{componentPath:"aem-components/amal/AmalCategoryTiles.vue",resourceType:"mh/components/amal/amal-category-tiles",editConfig:{emptyLabel:"Amal Category Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/AmalPrayersListing.vue",resourceType:"mh/components/amal/amal-prayers-listing",editConfig:{emptyLabel:"Amal Prayers Listing",isEmpty(t){return Object.entries(t.searchTab).length===0&&Object.entries(t.generalTab).length}}},{componentPath:"aem-components/amal/AmalPrayerTile.vue",resourceType:"mh/components/amal/amal-prayer-tile",editConfig:{emptyLabel:"Amal Prayer Tile",isEmpty(t){return!Object.hasOwn(t,"prayerId")}}},{componentPath:"aem-components/amal/AmalFavourite.vue",resourceType:"mh/components/amal/amal-favourite",editConfig:{emptyLabel:"Amal Favourite",isEmpty(t){return Object.entries(t.generalTab).length===0&&Object.entries(t.noFavouritesTab).length&&Object.entries(t.preLoginTab).length}}},{componentPath:"aem-components/amal/AmalOrganizationEduIslamTiles.vue",resourceType:"mh/components/amal/amal-organization-edu-islam-tiles",editConfig:{emptyLabel:"Amal Organization Edu Islam Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/AmalUspIcon.vue",resourceType:"mh/components/amal/amal-usp-icon",editConfig:{emptyLabel:"Amal Usp Icon",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/AmalQuote.vue",resourceType:"mh/components/amal/amal-quote",editConfig:{emptyLabel:"Amal Quote",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/AmalSavedList.vue",resourceType:"mh/components/amal/amal-saved-list",editConfig:{emptyLabel:"Amal Saved List",isEmpty(t){return Object.entries(t.dropdownOverlayTab).length===0&&Object.entries(t.popupOverlaySnackBarTab).length===0}}},{componentPath:"aem-components/amal/AmalLocationListing.vue",resourceType:"mh/components/amal/amal-location-listing",editConfig:{emptyLabel:"Amal Location Listing",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/AmalEduIslamTab.vue",resourceType:"mh/components/amal/amal-edu-islam-tab",editConfig:{emptyLabel:"Amal Edu Islam Tab",isEmpty(t){return Object.entries(t.peekFunctionTab).length===0}}},{componentPath:"aem-components/amal/AmalLocationTiles.vue",resourceType:"mh/components/amal/amal-location-tiles",editConfig:{emptyLabel:"Amal Location Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/amal/AmalLocationFeatureTiles.vue",resourceType:"mh/components/amal/amal-location-feature-tiles",editConfig:{emptyLabel:"Amal Location Feature Tiles",isEmpty(t){return!0}}},{componentPath:"aem-components/AdminDashboard.vue",resourceType:"mh/components/mhexplorer/admin-dashboard",editConfig:{emptyLabel:"Admin Dashboard",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichMhFlypass.vue",resourceType:"mh/components/enrich-portal/enrich-mh-flypass",editConfig:{emptyLabel:"Enrich Mh Flypass",isEmpty(t){return!0}}},{componentPath:"aem-components/booking/EnrichFlypassFlightSearch.vue",resourceType:"mh/components/booking/enrich-flypass-flight-search",editConfig:{emptyLabel:"Enrich Flypass Flight Search",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichPointsExchangeForm.vue",resourceType:"mh/components/enrich-portal/enrich-points-exchange-form",editConfig:{emptyLabel:"Enrich Points Exchange Form",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichPointsExchangeConfirmationOverlay.vue",resourceType:"mh/components/enrich-portal/enrich-points-exchange-confirmation-overlay",editConfig:{emptyLabel:"Enrich Points Exchange Confirmation Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/MasKargoHeader.vue",resourceType:"mh/components/maskargo/header",editConfig:{emptyLabel:"MasKargo Header",isEmpty(t){return!0}}},{componentPath:"aem-components/FloatingExpandableSidebar.vue",resourceType:"mh/components/floating-expandable-sidebar",editConfig:{emptyLabel:"Floating Expandable Sidebar",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/booking/MaskargoBookingWidget.vue",resourceType:"mh/components/maskargo/booking/maskargo-booking-widget",editConfig:{emptyLabel:"MasKargo Booking Widget",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichMyTrips.vue",resourceType:"mh/components/enrich-portal/enrich-my-trips",editConfig:{emptyLabel:"Enrich My Trips",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/MasKargoFooter.vue",resourceType:"mh/components/maskargo/footer",editConfig:{emptyLabel:"MasKargo Footer",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/MasKargoLocateOurOffice.vue",resourceType:"mh/components/maskargo/booking/locate-our-office",editConfig:{emptyLabel:"MasKargo Locate Our Office",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/booking/FlightSchedule.vue",resourceType:"mh/components/maskargo/booking/flight-schedule",editConfig:{emptyLabel:"MasKargo Flight Schedule",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/booking/BookingInquiry.vue",resourceType:"mh/components/maskargo/booking/booking-inquiry",editConfig:{emptyLabel:"MasKargo Booking Inquiry",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/booking/MasKargoIframe.vue",resourceType:"mh/components/maskargo/booking/booking-iframes",editConfig:{emptyLabel:"MasKargo Booking Iframes",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichInfoMessageOverlay.vue",resourceType:"mh/components/enrich-portal/enrich-info-message-overlay",editConfig:{emptyLabel:"Enrich Info Message Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/maskargo/booking/MaskargoShipmentTracking.vue",resourceType:"mh/components/maskargo/booking/maskargo-shipment-tracking",editConfig:{emptyLabel:"MasKargo Shipment Tracking",isEmpty(t){return!0}}},{componentPath:"aem-components/Flysiswa/FlysiswaFormV3.vue",resourceType:"mh/components/flysiswa/flysiswa-form-V3",editConfig:{emptyLabel:"Flysiswa Campaign V3",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichProfile.vue",resourceType:"mh/components/enrich-portal/enrich-profile",editConfig:{emptyLabel:"Enrich Profile",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichMyTravellersForm.vue",resourceType:"mh/components/enrich-portal/enrich-my-travellers-form",editConfig:{emptyLabel:"Enrich My Travellers Form",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichTravellerOverlay.vue",resourceType:"mh/components/enrich-portal/enrich-traveller-overlay",editConfig:{emptyLabel:"Enrich Traveller Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichSupplementaryMembers.vue",resourceType:"mh/components/enrich-portal/enrich-supplementary-members",editConfig:{emptyLabel:"Enrich Nominees",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichFamilyPool.vue",resourceType:"mh/components/enrich-portal/enrich-family-pool",editConfig:{emptyLabel:"Enrich Pool Circle",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichSupplementaryMembersAddMember.vue",resourceType:"mh/components/enrich-portal/enrich-supplementary-members-add-member",editConfig:{emptyLabel:"Enrich Add Nominee Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichSupplementaryMembersReplacement.vue",resourceType:"mh/components/enrich-portal/enrich-supplementary-members-replacement",editConfig:{emptyLabel:"Enrich Replace Nominees Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichSetAsFamilyPoolContributor.vue",resourceType:"mh/components/enrich-portal/enrich-set-as-family-pool-contributor",editConfig:{emptyLabel:"Enrich Set as Contributor Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichCompanion.vue",resourceType:"mh/components/enrich-portal/enrich-companion",editConfig:{emptyLabel:"Enrich Companion",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichSavedCards.vue",resourceType:"mh/components/enrich-portal/enrich-saved-cards",editConfig:{emptyLabel:"Enrich Saved Cards",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichSavedCardsAddCard.vue",resourceType:"mh/components/enrich-portal/enrich-saved-cards-add-card",editConfig:{emptyLabel:"Enrich Saved Cards Add Card",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichCard.vue",resourceType:"mh/components/enrich-portal/enrich-card",editConfig:{emptyLabel:"Enrich Card",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichInviteAndEarn.vue",resourceType:"mh/components/enrich-portal/enrich-invite-and-earn",editConfig:{emptyLabel:"Enrich Invite And Earn",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichContactUs.vue",resourceType:"mh/components/enrich-portal/enrich-contact-us",editConfig:{emptyLabel:"Enrich Contact Us",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichAccountSettings.vue",resourceType:"mh/components/enrich-portal/enrich-account-settings",editConfig:{emptyLabel:"Enrich Account Settings",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichPointServices.vue",resourceType:"mh/components/enrich-portal/enrich-point-services",editConfig:{emptyLabel:"Enrich Point Services",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichBuyEnrichPointsFormOverlay.vue",resourceType:"mh/components/enrich-portal/enrich-buy-enrich-points-form-overlay",editConfig:{emptyLabel:"Enrich Buy Enrich Points Form Overlay",isEmpty(t){return!0}}},{componentPath:"aem-components/enrich-portal/EnrichPointServicesPayment.vue",resourceType:"mh/components/enrich-portal/enrich-point-services-payment",editConfig:{emptyLabel:"Enrich Point Services Payment",isEmpty(t){return!0}}},{componentPath:"aem-components/ComplainDashboard.vue",resourceType:"mh/components/complain-dashboard",editConfig:{emptyLabel:"Complain Dashboard",isEmpty(t){return!0}}},{componentPath:"aem-components/mhe/ReferralLink.vue",resourceType:"mh/components/mhexplorer/referral-link",editConfig:{emptyLabel:"Referral Link",isEmpty(t){return!0}}},{componentPath:"aem-components/fare-histogram/FareHistogram.vue",resourceType:"mh/components/booking/lowfare-histogram-flight-search",editConfig:{emptyLabel:"Fare Histogram",isEmpty(t){return!1}}}],invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,urlSchemeRegex=/^([^:]+):/gm,relativeFirstCharacters=[".","/"];function _isRelativeUrlWithoutProtocol(t){return relativeFirstCharacters.indexOf(t[0])>-1}function _decodeHtmlCharacters(t){return t.replace(htmlEntitiesRegex,(o,r)=>String.fromCharCode(r))}function sanitizeUrl(t){const o=_decodeHtmlCharacters(t||"").replace(ctrlCharactersRegex,"").trim();if(!o)return"about:blank";if(_isRelativeUrlWithoutProtocol(o))return o;const r=o.match(urlSchemeRegex);if(!r)return o;const e=r[0];return invalidProtocolRegex.test(e)?"about:blank":o}const Utils={modelToProps(t){function o(n){const a=n.substr(1);return`cq${a.substr(0,1).toUpperCase()}${a.substr(1)}`}const r=Object.getOwnPropertyNames(t),e={};return r.forEach(n=>{let a=n;a.startsWith(":")&&(a=o(a)),e[a]=t[n]}),{...e}},getCQPath(t){const{pagePath:o="",itemPath:r="",cqPath:e=""}=t;return o&&!e?sanitizeUrl(r?`${o}/jcr:content/${r}`:o).replace(/\/+/g,"/").replace(/\/$/,""):e}},Constants={DATA_PATH_ATTR:"data-cq-data-path",DATA_CQ_RESOURCE_TYPE_ATTR:"data-cq-resource-type",NEW_SECTION_CLASS_NAMES:"new section",APPLIED_CLASS_NAMES:"appliedCssClassNames",_CONTAINER_CLASS_NAMES:"aem-container",_PLACEHOLDER_CLASS_NAMES:"cq-placeholder",_PAGE_CLASS_NAMES:"aem-page",_RESPONSIVE_GRID_PLACEHOLDER_CLASS_NAMES:"aem-Grid-newComponent",ASYNC_CONTENT_LOADED_EVENT:"cq-async-content-loaded",PAGE_MODEL_INIT:"cq-pagemodel-init",PAGE_MODEL_LOADED:"cq-pagemodel-loaded",PAGE_MODEL_UPDATE:"cq-pagemodel-update",_WCM_MODE_META_SELECTOR:'meta[property="cq:wcmmode"]',TYPE_PROP:aemSpaPageModelManagerExports.Constants.TYPE_PROP,ITEMS_PROP:aemSpaPageModelManagerExports.Constants.ITEMS_PROP,ITEMS_ORDER_PROP:aemSpaPageModelManagerExports.Constants.ITEMS_ORDER_PROP,PATH_PROP:aemSpaPageModelManagerExports.Constants.PATH_PROP,CHILDREN_PROP:aemSpaPageModelManagerExports.Constants.CHILDREN_PROP,HIERARCHY_TYPE_PROP:aemSpaPageModelManagerExports.Constants.HIERARCHY_TYPE_PROP,JCR_CONTENT:aemSpaPageModelManagerExports.Constants.JCR_CONTENT},KNOWN_KEYS_OF_AEM_PROPERTIES=["appliedCssClassNames","containerClass","cqForceReload","cqItems","cqItemsOrder","cqPath","cqType","hasEditableCapability","htmlId","injectPropsOnInit","itemPath","pagePath"],modelProvider=({props:t,context:o})=>{const r=ref$1({...t,...o.attrs,...o.attrs.aemProperties}),e=computed(()=>{const{cqPath:u,pagePath:f,itemPath:m,injectPropsOnInit:b}=r.value;return Utils.getCQPath({cqPath:u,pagePath:f,itemPath:m,injectPropsOnInit:b})}),n=u=>{r.value={...r.value,...u}},a=u=>{const{pagePath:f,itemPath:m,injectPropsOnInit:b,cqForceReload:y}=r.value,_=u||r.value.cqPath||f&&Utils.getCQPath({pagePath:f,itemPath:m,injectPropsOnInit:b});_&&aemSpaPageModelManagerExports.ModelManager.getData({path:_,forceReload:y}).then(S=>{!S||Object.keys(S).length===0||(console.log(`${e.value} | data = `,S),n(Utils.modelToProps(S)),b&&aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&aemSpaPageModelManagerExports.PathUtils.dispatchGlobalCustomEvent(Constants.ASYNC_CONTENT_LOADED_EVENT,{}))}).catch(S=>{console.log("An error with ModelManager.getData(). Unable to update component with new props, please refresh the page manually."),console.error(S)})},i=()=>{aemSpaPageModelManagerExports.ModelManager.addListener(e.value,a)};onUnmounted(()=>{aemSpaPageModelManagerExports.ModelManager.removeListener(e.value,a)}),n(Utils.modelToProps(t)),t.hasEditableCapability&&i();const l=computed(()=>`${r.value.cqPath}`),d=computed(()=>{const u=[...KNOWN_KEYS_OF_AEM_PROPERTIES],f=Object.fromEntries(u.filter(Boolean).map(m=>[m,r.value[m]]));return f.htmlId=f.cqPath.split("jcr:content/")[1],f}),c=computed(()=>{const u=Object.keys(r.value);for(const[f]of Object.entries(d.value))u[u.indexOf(f)]=null;return Object.fromEntries(u.filter(Boolean).map(f=>[f,r.value[f]]))});return{computedCqPath:readonly(e),childProperties:readonly(c),mergedProperties:readonly(r),aemProperties:readonly(d),componentId:readonly(l)}},DefaultEditConfig={isEmpty:()=>!0,isApplyStyleSystemClassesOnWrapperDiv:!0},editableProvider=({aemProperties:t,computedCqPath:o,props:r,context:e,childProperties:n,editConfig:a={}})=>{const i=computed(()=>({...DefaultEditConfig,...a})),s=computed(()=>{var u;return aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()===!1||r.hasEditableCapability===!1?{}:{"data-cq-data-path":(r==null?void 0:r.cqPath)||o.value||null,"data-cq-resource-type":((u=i.value)==null?void 0:u.resourceType)??r.cqType??""}}),l=computed(()=>{const u=(r==null?void 0:r.cssClassNames)??"",f=(r==null?void 0:r.containerClass)??"";return`${u} ${f}`}),d=computed(()=>{var u;return aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&((u=i.value)==null?void 0:u.isEmpty({...r,...e.attrs,...n==null?void 0:n.value}))}),c=computed(()=>d.value===!1?null:h("div",{class:Constants._PLACEHOLDER_CLASS_NAMES,"data-emptytext":i.value.emptyLabel}));return{wrapperHtmlAttributes:s,wrapperHtmlClass:l,emptyPlaceholderDiv:c,editConfig:i}},_refreshAEMEditableOverlays=()=>{const t=window.parent.Granite.author.ContentFrame.loadEditables();window.parent.Granite.author.overlayManager.recreateAll({editables:t})},refreshAEMEditableOverlays=lodashExports.debounce(_refreshAEMEditableOverlays,500),WithModelAndEditable=(t,o={},r={})=>{const e={injectPropsOnInit:!0,forceReload:!1,...r};return defineComponent({name:"WithModelAndEditable",inheritAttrs:!1,props:{cqPath:{type:String,default:""},pagePath:{type:String,default:""},itemPath:{type:String,default:""},cqForceReload:{type:Boolean,default:()=>e.forceReload??!1},injectPropsOnInit:{type:Boolean,default:()=>e.injectPropsOnInit??!0},containerClass:{type:String,default:""},cqType:{type:String,default:""},appliedCssClassNames:{type:String,default:""},cqItems:{type:Object,default:null},cqItemsOrder:{type:Array,default:null},hasEditableCapability:{type:Boolean,default:!0}},setup(n,a){var C;const s=(C=getCurrentInstance().type)==null?
990void 0:C.editConfig,l={...o,...s},{componentId:d,aemProperties:c,childProperties:u}=modelProvider({props:n,context:a}),{wrapperHtmlAttributes:f,wrapperHtmlClass:m,emptyPlaceholderDiv:b,editConfig:y}=editableProvider({props:n,context:a,editConfig:l,childProperties:u}),_=computed(()=>y.value.isApplyStyleSystemClassesOnWrapperDiv?`${m.value} ${c.value[Constants.APPLIED_CLASS_NAMES]}`:`${m.value}`),S=()=>{aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&refreshAEMEditableOverlays()};return{componentId:d,aemProperties:c,childProperties:u,wrapperHtmlAttributes:f,emptyPlaceholderDiv:b,mergedWrapperClass:_,ChildComponent:markRaw(t),onChildMounted:S}},render(){const n=this.ChildComponent;return createVNode("div",mergeProps(this.wrapperHtmlAttributes,{class:this.mergedWrapperClass,"data-component":(n==null?void 0:n.name)??"",key:this.componentId}),[createVNode(n,mergeProps({aemProperties:this.aemProperties},this.childProperties,{onVnodeMounted:this.onChildMounted}),null),this.emptyPlaceholderDiv])}})},mapped=new Map,setMapping=(t,o)=>{mapped.set(t,{component:o})},getMappedComponent=t=>{const o=mapped.get(t);return o==null?void 0:o.component},AEMContainer=defineComponent({name:"AEMContainer",props:{allowedComponents:{type:Object,default:()=>({})},cqType:{type:String,default:""},cqItems:{type:Object,default:()=>({})},cqItemsOrder:{type:Array,default:()=>[]},columnCount:{type:Number,default:12},gridClassNames:{type:String,default:""},columnClassNames:{type:Object,default:()=>({})}},setup(t,o){getCurrentInstance();const r=(n,a,i)=>{const{cqPath:s,columnClassNames:l}=t,d=s?`${s}/${i}`:i,c=`${(a==null?void 0:a.className)??""} ${(l==null?void 0:l[i])??""}`;return createVNode(n,mergeProps(a,{cqPath:d,containerClass:c,key:i,hasEditableCapability:!1},o.attrs),null)};return{childComponents:computed(()=>{const{cqItems:n,cqItemsOrder:a}=t;return!n||!a?[]:a.map(i=>{const s=Utils.modelToProps(n[i]);if(!s)return null;const l=getMappedComponent(s.cqType);return l?r(l,s,i):null})})}},render(){return createVNode("div",{class:`AEMContainer ${this.gridClassNames}`,"data-component":"AEMContainer"},[this.childComponents])}}),AEMPage=defineComponent({name:"AEMPage",editConfig:{resourceType:"mh/components/page",isEmpty(t){return!1}},inheritAttrs:!1,props:{cqChildren:{type:Object,default:()=>({})},cqForceReload:{type:Boolean,default:!1},cqPath:{type:String,default:""},cqItems:{type:Object,default:()=>({})},cqItemsOrder:{type:Array,default:()=>[]},cqType:{type:String,default:""},cqHierarchyType:{type:String,default:""},title:{type:String,default:""},language:{type:String,default:""},cssClassNames:{type:String,default:""},designPath:{type:String,default:""},lastModifiedDate:{type:Number,default:0},templateName:{type:String,default:""},injectPropsOnInit:{type:Boolean,default:!0},containerClass:{type:String,default:""},hasEditableCapability:{type:Boolean,default:!0}},setup(t,o){const e=getCurrentInstance().type.editConfig,{aemProperties:n,componentId:a}=modelProvider({props:t,context:o}),{wrapperHtmlAttributes:i,wrapperHtmlClass:s}=editableProvider({props:t,context:o,editConfig:e}),l=(u,f,m)=>{const{cqPath:b,cqItems:y}=n.value,_=b?`${b}/${Constants.JCR_CONTENT}/${m}`:m;return createVNode(u,mergeProps(f,{cqPath:_,key:m}),null)},d=computed(()=>{const{cqItems:u,cqItemsOrder:f}=n.value;return!u||!f?[]:f.map(m=>{const b=Utils.modelToProps(u[m]);if(!b)return null;const y=getMappedComponent(b.cqType);return y?l(y,b,m):null})}),c=computed(()=>{const{cqItems:u,cqItemsOrder:f,cqChildren:m}=n.value;return!m||Object.keys(m).length===0?[]:Object.keys(m).map(b=>{const y=Utils.modelToProps(m[b]),_=getMappedComponent(y.cqType);return _?createVNode(_,{cqPath:y.cqPath,isInEditor:aemSpaPageModelManagerExports.AuthoringUtils.isInEditor(),props:y},null):null})});return document.title=t.title??document.title,console.log("Model data for this page: ",JSON.parse(JSON.stringify(toRaw(n.value),(u,f)=>f===void 0?null:f))),{aemProperties:n,componentId:a,wrapperHtmlAttributes:i,wrapperHtmlClass:s,childComponents:d,childPages:c}},render(){const t={class:Constants._PAGE_CLASS_NAMES,...aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()?{"data-cq-data-path":this.aemProperties.cqPath}:null};return createVNode("div",mergeProps(this.wrapperHtmlAttributes,{class:this.wrapperHtmlClass,key:this.componentId,"data-component":"AEMPage"}),[createVNode("div",t,[this.childComponents,this.childPages])])}}),AllowedComponentsPlaceholder=defineComponent({name:"AllowedComponentsPlaceholder",props:{emptyLabel:{type:String,default:""},path:{type:String,default:""}},render(){return createVNode("div",{class:`aem-AllowedComponent--component ${Constants._PLACEHOLDER_CLASS_NAMES} placeholder`,"data-cq-data-path":this.path,"data-emptytext":this.emptyLabel},null)}}),AllowedComponentsPlaceholderList=defineComponent({name:"AllowedComponentsPlaceholderList",props:{emptyLabel:{type:String,default:"No allowed components"},placeholderClass:{type:String,default:""},components:{type:Array,default:()=>[]},title:{type:String,default:""},cqPath:{type:String,default:""}},render(){const{components:t,placeholderClass:o,title:r,emptyLabel:e}=this,n=t&&t.length>0?r:e;return createVNode("div",{class:`aem-AllowedComponent--list ${o??""}`},[createVNode("div",{class:"aem-AllowedComponent--title","data-text":n},null),t.map(a=>createVNode(AllowedComponentsPlaceholder,{path:a.path,emptyLabel:a.title},null))])}}),ResponsiveGrid=defineComponent({name:"ResponsiveGrid",editConfig:{resourceType:"wcm/foundation/components/responsivegrid",isEmpty(t){return t.cqItemsOrder&&t.cqItemsOrder.length>0}},components:{AllowedComponentsPlaceholderList},inheritAttrs:!1,props:{columnClassNames:{type:Object,default:()=>({})},gridClassNames:{type:String,default:""},_AllowedComponentsPlaceholderListEmptyLabel:{type:String,default:"No allowed components"},allowedComponents:{type:Object,default:()=>({})},title:{type:String,default:""},cqForceReload:{type:Boolean,default:!1},cqPath:{type:String,default:""},cqItems:{type:Object,default:()=>({})},cqItemsOrder:{type:Array,default:()=>[]},columnCount:{type:Number,default:12},cqType:{type:String,default:""},appliedCssClassNames:{type:String,default:""},containerClass:{type:String,default:""},pagePath:{type:String,default:""},itemPath:{type:String,default:""},hasEditableCapability:{type:Boolean,default:!0}},setup(t,o){const e=getCurrentInstance().type.editConfig,{aemProperties:n,componentId:a,computedCqPath:i}=modelProvider({props:t,context:o}),{wrapperHtmlAttributes:s,wrapperHtmlClass:l,emptyPlaceholderDiv:d}=editableProvider({aemProperties:n,computedCqPath:i,props:t,context:o,editConfig:e}),c=(y,_,S)=>{const{cqPath:C,columnClassNames:T}=n.value,x=C?`${C}/${S}`:S,k=`${(_==null?void 0:_.className)??""} ${(T==null?void 0:T[S])??""}`;return createVNode(y,mergeProps(_,{cqPath:x,containerClass:k,key:S}),null)},u=computed(()=>{const{cqItems:y,cqItemsOrder:_}=n.value;return!y||!_?[]:_.map(S=>{const C=Utils.modelToProps(y[S]);if(!C)return null;const T=getMappedComponent(C.cqType);return T?c(T,C,S):null})}),f=computed(()=>(n.value,{class:`${Constants.NEW_SECTION_CLASS_NAMES} ${Constants._RESPONSIVE_GRID_PLACEHOLDER_CLASS_NAMES}`,"data-cq-data-path":`${i.value}/*`})),m=computed(()=>aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()?createVNode("div",f.value,null):null),b=computed(()=>`${l.value} ${n.value.appliedCssClassNames}`);return onMounted(()=>{setTimeout(()=>{aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&refreshAEMEditableOverlays()},2e3)}),{aemProperties:n,componentId:a,computedCqPath:i,wrapperHtmlAttributes:s,wrapperHtmlClass:l,mergedWrapperClass:b,emptyPlaceholderDiv:d,childComponents:u,placeholderProps:f,placeholderComponent:m}},render(){var e;const{_AllowedComponentsPlaceholderListEmptyLabel:t}=this;if(aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&((e
990=this.allowedComponents)==null?void 0:e.applicable)&&t)return createVNode("div",mergeProps(this.wrapperHtmlAttributes,{class:this.mergedWrapperClass,key:this.componentId,"data-component":"ResponsiveGrid"}),[createVNode(AllowedComponentsPlaceholderList,{title:this.title,emptyLabel:t,components:this.allowedComponents.components,placeholderClass:this.placeholderProps.class,cqPath:this.cqPath},null)]);const r={class:`${Constants._CONTAINER_CLASS_NAMES} ${this.aemProperties.gridClassNames}`,...aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()?{"data-cq-data-path":this.computedCqPath}:null};return createVNode("div",mergeProps(this.wrapperHtmlAttributes,{class:this.mergedWrapperClass,key:this.componentId,"data-component":"ResponsiveGrid"}),[createVNode("div",r,[this.childComponents,this.placeholderComponent]),aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()?createVNode("div",{class:Constants._PLACEHOLDER_CLASS_NAMES},null):null])}});setMapping("wcm/foundation/components/responsivegrid",ResponsiveGrid);var md5$1={exports:{}};/**
991 * [js-md5]{@link https://github.com/emn178/js-md5}
992 *
993 * @namespace md5
994 * @version 0.7.3
995 * @author Chen, Yi-Cyuan [[email protected]]
996 * @copyright Chen, Yi-Cyuan 2014-2017
997 * @license MIT
998 */(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return typeof t=="object"&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(o){return new Md5(!0).update(o)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var o=0;o<OUTPUT_TYPES.length;++o){var r=OUTPUT_TYPES[o];t[r]=createOutputMethod(r)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if(typeof t=="string")return crypto.createHash("md5").update(t,"utf8").digest("hex");if(t==null)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var o=new ArrayBuffer(68);this.buffer8=new Uint8Array(o),this.blocks=new Uint32Array(o)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var o,r=typeof t;if(r!=="string"){if(r==="object"){if(t===null)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw E
998RROR}else throw ERROR;o=!0}for(var e,n=0,a,i=t.length,s=this.blocks,l=this.buffer8;n<i;){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),o)if(ARRAY_BUFFER)for(a=this.start;n<i&&a<64;++n)l[a++]=t[n];else for(a=this.start;n<i&&a<64;++n)s[a>>2]|=t[n]<<SHIFT[a++&3];else if(ARRAY_BUFFER)for(a=this.start;n<i&&a<64;++n)e=t.charCodeAt(n),e<128?l[a++]=e:e<2048?(l[a++]=192|e>>6,l[a++]=128|e&63):e<55296||e>=57344?(l[a++]=224|e>>12,l[a++]=128|e>>6&63,l[a++]=128|e&63):(e=65536+((e&1023)<<10|t.charCodeAt(++n)&1023),l[a++]=240|e>>18,l[a++]=128|e>>12&63,l[a++]=128|e>>6&63,l[a++]=128|e&63);else for(a=this.start;n<i&&a<64;++n)e=t.charCodeAt(n),e<128?s[a>>2]|=e<<SHIFT[a++&3]:e<2048?(s[a>>2]|=(192|e>>6)<<SHIFT[a++&3],s[a>>2]|=(128|e&63)<<SHIFT[a++&3]):e<55296||e>=57344?(s[a>>2]|=(224|e>>12)<<SHIFT[a++&3],s[a>>2]|=(128|e>>6&63)<<SHIFT[a++&3],s[a>>2]|=(128|e&63)<<SHIFT[a++&3]):(e=65536+((e&1023)<<10|t.charCodeAt(++n)&1023),s[a>>2]|=(240|e>>18)<<SHIFT[a++&3],s[a>>2]|=(128|e>>12&63)<<SHIFT[a++&3],s[a>>2]|=(128|e>>6&63)<<SHIFT[a++&3],s[a>>2]|=(128|e&63)<<SHIFT[a++&3]);this.lastByteIndex=a,this.bytes+=a-this.start,a>=64?(this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,o=this.lastByteIndex;t[o>>2]|=EXTRA[o&3],o>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,o,r,e,n,a,i=this.blocks;this.first?(t=i[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,e=(-1732584194^t&2004318071)+i[1]-117830708,e=(e<<12|e>>>20)+t<<0,r=(-271733879^e&(t^-271733879))+i[2]-1126478375,r=(r<<17|r>>>15)+e<<0,o=(t^r&(e^t))+i[3]-1316259209,o=(o<<22|o>>>10)+r<<0):(t=this.h0,o=this.h1,r=this.h2,e=this.h3,t+=(e^o&(r^e))+i[0]-680876936,t=(t<<7|t>>>25)+o<<0,e+=(r^t&(o^r))+i[1]-389564586,e=(e<<12|e>>>20)+t<<0,r+=(o^e&(t^o))+i[2]+606105819,r=(r<<17|r>>>15)+e<<0,o+=(t^r&(e^t))+i[3]-1044525330,o=(o<<22|o>>>10)+r<<0),t+=(e^o&(r^e))+i[4]-176418897,t=(t<<7|t>>>25)+o<<0,e+=(r^t&(o^r))+i[5]+1200080426,e=(e<<12|e>>>20)+t<<0,r+=(o^e&(t^o))+i[6]-1473231341,r=(r<<17|r>>>15)+e<<0,o+=(t^r&(e^t))+i[7]-45705983,o=(o<<22|o>>>10)+r<<0,t+=(e^o&(r^e))+i[8]+1770035416,t=(t<<7|t>>>25)+o<<0,e+=(r^t&(o^r))+i[9]-1958414417,e=(e<<12|e>>>20)+t<<0,r+=(o^e&(t^o))+i[10]-42063,r=(r<<17|r>>>15)+e<<0,o+=(t^r&(e^t))+i[11]-1990404162,o=(o<<22|o>>>10)+r<<0,t+=(e^o&(r^e))+i[12]+1804603682,t=(t<<7|t>>>25)+o<<0,e+=(r^t&(o^r))+i[13]-40341101,e=(e<<12|e>>>20)+t<<0,r+=(o^e&(t^o))+i[14]-1502002290,r=(r<<17|r>>>15)+e<<0,o+=(t^r&(e^t))+i[15]+1236535329,o=(o<<22|o>>>10)+r<<0,t+=(r^e&(o^r))+i[1]-165796510,t=(t<<5|t>>>27)+o<<0,e+=(o^r&(t^o))+i[6]-1069501632,e=(e<<9|e>>>23)+t<<0,r+=(t^o&(e^t))+i[11]+643717713,r=(r<<14|r>>>18)+e<<0,o+=(e^t&(r^e))+i[0]-373897302,o=(o<<20|o>>>12)+r<<0,t+=(r^e&(o^r))+i[5]-701558691,t=(t<<5|t>>>27)+o<<0,e+=(o^r&(t^o))+i[10]+38016083,e=(e<<9|e>>>23)+t<<0,r+=(t^o&(e^t))+i[15]-660478335,r=(r<<14|r>>>18)+e<<0,o+=(e^t&(r^e))+i[4]-405537848,o=(o<<20|o>>>12)+r<<0,t+=(r^e&(o^r))+i[9]+568446438,t=(t<<5|t>>>27)+o<<0,e+=(o^r&(t^o))+i[14]-1019803690,e=(e<<9|e>>>23)+t<<0,r+=(t^o&(e^t))+i[3]-187363961,r=(r<<14|r>>>18)+e<<0,o+=(e^t&(r^e))+i[8]+1163531501,o=(o<<20|o>>>12)+r<<0,t+=(r^e&(o^r))+i[13]-1444681467,t=(t<<5|t>>>27)+o<<0,e+=(o^r&(t^o))+i[2]-51403784,e=(e<<9|e>>>23)+t<<0,r+=(t^o&(e^t))+i[7]+1735328473,r=(r<<14|r>>>18)+e<<0,o+=(e^t&(r^e))+i[12]-1926607734,o=(o<<20|o>>>12)+r<<0,n=o^r,t+=(n^e)+i[5]-378558,t=(t<<4|t>>>28)+o<<0,e+=(n^t)+i[8]-2022574463,e=(e<<11|e>>>21)+t<<0,a=e^t,r+=(a^o)+i[11]+1839030562,r=(r<<16|r>>>16)+e<<0,o+=(a^r)+i[14]-35309556,o=(o<<23|o>>>9)+r<<0,n=o^r,t+=(n^e)+i[1]-1530992060,t=(t<<4|t>>>28)+o<<0,e+=(n^t)+i[4]+1272893353,e=(e<<11|e>>>21)+t<<0,a=e^t,r+=(a^o)+i[7]-155497632,r=(r<<16|r>>>16)+e<<0,o+=(a^r)+i[10]-1094730640,o=(o<<23|o>>>9)+r<<0,n=o^r,t+=(n^e)+i[13]+681279174,t=(t<<4|t>>>28)+o<<0,e+=(n^t)+i[0]-358537222,e=(e<<11|e>>>21)+t<<0,a=e^t,r+=(a^o)+i[3]-722521979,r=(r<<16|r>>>16)+e<<0,o+=(a^r)+i[6]+76029189,o=(o<<23|o>>>9)+r<<0,n=o^r,t+=(n^e)+i[9]-640364487,t=(t<<4|t>>>28)+o<<0,e+=(n^t)+i[12]-421815835,e=(e<<11|e>>>21)+t<<0,a=e^t,r+=(a^o)+i[15]+530742520,r=(r<<16|r>>>16)+e<<0,o+=(a^r)+i[2]-995338651,o=(o<<23|o>>>9)+r<<0,t+=(r^(o|~e))+i[0]-198630844,t=(t<<6|t>>>26)+o<<0,e+=(o^(t|~r))+i[7]+1126891415,e=(e<<10|e>>>22)+t<<0,r+=(t^(e|~o))+i[14]-1416354905,r=(r<<15|r>>>17)+e<<0,o+=(e^(r|~t))+i[5]-57434055,o=(o<<21|o>>>11)+r<<0,t+=(r^(o|~e))+i[12]+1700485571,t=(t<<6|t>>>26)+o<<0,e+=(o^(t|~r))+i[3]-1894986606,e=(e<<10|e>>>22)+t<<0,r+=(t^(e|~o))+i[10]-1051523,r=(r<<15|r>>>17)+e<<0,o+=(e^(r|~t))+i[1]-2054922799,o=(o<<21|o>>>
99811)+r<<0,t+=(r^(o|~e))+i[8]+1873313359,t=(t<<6|t>>>26)+o<<0,e+=(o^(t|~r))+i[15]-30611744,e=(e<<10|e>>>22)+t<<0,r+=(t^(e|~o))+i[6]-1560198380,r=(r<<15|r>>>17)+e<<0,o+=(e^(r|~t))+i[13]+1309151649,o=(o<<21|o>>>11)+r<<0,t+=(r^(o|~e))+i[4]-145523070,t=(t<<6|t>>>26)+o<<0,e+=(o^(t|~r))+i[11]-1120210379,e=(e<<10|e>>>22)+t<<0,r+=(t^(e|~o))+i[2]+718787259,r=(r<<15|r>>>17)+e<<0,o+=(e^(r|~t))+i[9]-343485551,o=(o<<21|o>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=o-271733879<<0,this.h2=r-1732584194<<0,this.h3=e+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+e<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,e=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,e=this.h3;return[t&255,t>>8&255,t>>16&255,t>>24&255,o&255,o>>8&255,o>>16&255,o>>24&255,r&255,r>>8&255,r>>16&255,r>>24&255,e&255,e>>8&255,e>>16&255,e>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),o=new Uint32Array(t);return o[0]=this.h0,o[1]=this.h1,o[2]=this.h2,o[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,o,r,e="",n=this.array(),a=0;a<15;)t=n[a++],o=n[a++],r=n[a++],e+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[(t<<4|o>>>4)&63]+BASE64_ENCODE_CHAR[(o<<2|r>>>6)&63]+BASE64_ENCODE_CHAR[r&63];return t=n[a],e+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"==",e};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5$1);var md5Exports=md5$1.exports,sha1$1={exports:{}};/*
999 * [js-sha1]{@link https://github.com/emn178/js-sha1}
1000 *
1001 * @version 0.6.0
1002 * @author Chen, Yi-Cyuan [[email protected]]
1003 * @copyright Chen, Yi-Cyuan 2014-2017
1004 * @license MIT
1005 */(function(module){(function(){var root=typeof window=="object"?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS&&(root=commonjsGlobal);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&!0&&module.exports,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(t){return function(o){return new Sha1(!0).update(o)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Sha1},t.update=function(e){return t.create().update(e)};for(var o=0;o<OUTPUT_TYPES.length;++o){var r=OUTPUT_TYPES[o];t[r]=createOutputMethod(r)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if(typeof t=="string")return crypto.createHash("sha1").update(t,"utf8").digest("hex");if(t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(t.length===void 0)return method(t);return crypto.createHash("sha1").update(new Buffer(t)).digest("hex")};return nodeMethod};function Sha1(t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(t){if(!this.finalized){var o=typeof t!="string";o&&t.constructor===root.ArrayBuffer&&(t=new Uint8Array(t));for(var r,e=0,n,a=t.length||0,i=this.blocks;e<a;){if(this.hashed&&(this.hashed=!1,i[0]=this.block,i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),o)for(n=this.start;e<a&&n<64;++e)i[n>>2]|=t[e]<<SHIFT[n++&3];else for(n=this.start;e<a&&n<64;++e)r=t.charCodeAt(e),r<128?i[n>>2]|=r<<SHIFT[n++&3]:r<2048?(i[n>>2]|=(192|r>>6)<<SHIFT[n++&3],i[n>>2]|=(128|r&63)<<SHIFT[n++&3]):r<55296||r>=57344?(i[n>>2]|=(224|r>>12)<<SHIFT[n++&3],i[n>>2]|=(128|r>>6&63)<<SHIFT[n++&3],i[n>>2]|=(128|r&63)<<SHIFT[n++&3]):(r=65536+((r&1023)<<10|t.charCodeAt(++e)&1023),i[n>>2]|=(240|r>>18)<<SHIFT[n++&3],i[n>>2]|=(128|r>>12&63)<<SHIFT[n++&3],i[n>>2]|=(128|r>>6&63)<<SHIFT[n++&3],i[n>>2]|=(128|r&63)<<SHIFT[n++&3]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=i[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,o=this.lastByteIndex;t[16]=this.block,t[o>>2]|=EXTRA[o&3],this.block=t[16],o>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var t=this.h0,o=this.h1,r=this.h2,e=this.h3,n=this.h4,a,i,s,l=this.blocks;for(i=16;i<80;++i)s=l[i-3]^l[i-8]^l[i-14]^l[i-16],l[i]=s<<1|s>>>31;for(i=0;i<20;i+=5)a=o&r|~o&e,s=t<<5|t>>>27,n=s+a+n+1518500249+l[i]<<0,o=o<<30|o>>>2,a=t&o|~t&r,s=n<<5|n>>>27,e=s+a+e+1518500249+l[i+1]<<0,t=t<<30|t>>>2,a=n&t|~n&o,s=e<<5|e>>>27,r=s+a+r+1518500249+l[i+2]<<0,n=n<<30|n>>>2,a=e&n|~e&t,s=r<<5|r>>>27,o=s+a+o+1518500249+l[i+3]<<0,e=e<<30|e>>>2,a=r&e|~r&n,s=o<<5|o>>>27,t=s+a+t+1518500249+l[i+4]<<0,r=r<<30|r>>>2;for(;i<40;
1005i+=5)a=o^r^e,s=t<<5|t>>>27,n=s+a+n+1859775393+l[i]<<0,o=o<<30|o>>>2,a=t^o^r,s=n<<5|n>>>27,e=s+a+e+1859775393+l[i+1]<<0,t=t<<30|t>>>2,a=n^t^o,s=e<<5|e>>>27,r=s+a+r+1859775393+l[i+2]<<0,n=n<<30|n>>>2,a=e^n^t,s=r<<5|r>>>27,o=s+a+o+1859775393+l[i+3]<<0,e=e<<30|e>>>2,a=r^e^n,s=o<<5|o>>>27,t=s+a+t+1859775393+l[i+4]<<0,r=r<<30|r>>>2;for(;i<60;i+=5)a=o&r|o&e|r&e,s=t<<5|t>>>27,n=s+a+n-1894007588+l[i]<<0,o=o<<30|o>>>2,a=t&o|t&r|o&r,s=n<<5|n>>>27,e=s+a+e-1894007588+l[i+1]<<0,t=t<<30|t>>>2,a=n&t|n&o|t&o,s=e<<5|e>>>27,r=s+a+r-1894007588+l[i+2]<<0,n=n<<30|n>>>2,a=e&n|e&t|n&t,s=r<<5|r>>>27,o=s+a+o-1894007588+l[i+3]<<0,e=e<<30|e>>>2,a=r&e|r&n|e&n,s=o<<5|o>>>27,t=s+a+t-1894007588+l[i+4]<<0,r=r<<30|r>>>2;for(;i<80;i+=5)a=o^r^e,s=t<<5|t>>>27,n=s+a+n-899497514+l[i]<<0,o=o<<30|o>>>2,a=t^o^r,s=n<<5|n>>>27,e=s+a+e-899497514+l[i+1]<<0,t=t<<30|t>>>2,a=n^t^o,s=e<<5|e>>>27,r=s+a+r-899497514+l[i+2]<<0,n=n<<30|n>>>2,a=e^n^t,s=r<<5|r>>>27,o=s+a+o-899497514+l[i+3]<<0,e=e<<30|e>>>2,a=r^e^n,s=o<<5|o>>>27,t=s+a+t-899497514+l[i+4]<<0,r=r<<30|r>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+e<<0,this.h4=this.h4+n<<0},Sha1.prototype.hex=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,e=this.h3,n=this.h4;return HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var t=this.h0,o=this.h1,r=this.h2,e=this.h3,n=this.h4;return[t>>24&255,t>>16&255,t>>8&255,t&255,o>>24&255,o>>16&255,o>>8&255,o&255,r>>24&255,r>>16&255,r>>8&255,r&255,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24&255,n>>16&255,n>>8&255,n&255]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),o=new DataView(t);return o.setUint32(0,this.h0),o.setUint32(4,this.h1),o.setUint32(8,this.h2),o.setUint32(12,this.h3),o.setUint32(16,this.h4),t};var exports=createMethod();COMMON_JS?module.exports=exports:root.sha1=exports})()})(sha1$1);var sha1Exports=sha1$1.exports,md5=md5Exports,sha1=sha1Exports,HEX_DIGITS="0123456789abcdef".split(""),UUID_LENGTH=36,UUID_REGEXP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i,HEX_TO_BYTE_MAP=function(){for(var t={},o=0;o<256;o++){var r=o.toString(16);t[r.length===1?"0"+r:r]=o}return t}(),uint8ToHex=function(t){var o=t>>4,r=t-(o<<4);return HEX_DIGITS[o]+HEX_DIGITS[r]},uint8ArrayToHex=function(t){for(var o="",r=0;r<t.length;r++)o+=uint8ToHex(t[r]);return o},stringToCharBuffer=function(t){for(var o=unescape(encodeURIComponent(t)),r=new Uint8Array(o.length),e=0;e<o.length;e++)r[e]=o[e].charCodeAt(0);return r},md5Hash=function(t){return new Uint8Array(md5.arrayBuffer(t))},sha1Hash=function(t){return new Uint8Array(sha1.arrayBuffer(t))},concatBuffers=function(t,o){var r=new Uint8Array(t.length+o.length);return r.set(new Uint8Array(t),0),r.set(new Uint8Array(o),t.byteLength),r},validateUuid=function(t){return typeof t=="string"&&t.length===UUID_LENGTH&&UUID_REGEXP.test(t)},parseUuid=function(t){if(!validateUuid(t))throw TypeError("Invalid UUID");for(var o=new Uint8Array(16),r=0,e=0;r<t.length;){if(t[r]==="-"){r++;continue}var n=(t[r]+t[r+1]).toLowerCase();o[e]=HEX_TO_BYTE_MAP[n],e++,r+=2}return o},hashToUuid=function(t,o){return uint8ArrayToHex(t.slice(0,4))+"-"+uint8ArrayToHex(t.slice(4,6))+"-"+uint8ToHex(t[6]&15|parseInt(o*10,16))+uint8ToHex(t[7])+"-"+uint8ToHex(t[8]&63|128)+uint8ToHex(t[9])+"-"+uint8ArrayToHex(t.slice(10,16))},lib$1={uint8ToHex,uint8ArrayToHex,stringToCharBuffer,md5Hash,sha1Hash,concatBuffers,validateUuid,parseUuid,hashToUu
vendor: 7,856 bytes, lines 1005-1013
1005id},lib=lib$1,EMPTY_UINT8_ARRAY=new Uint8Array(0);function generateUuid(t,o,r){if(typeof t!="string")throw TypeError("Value must be string");if(typeof o=="number")return generateUuid(t,void 0,o);if(r==null)return generateUuid(t,o,5);if(r!==3&&r!==5)throw TypeError("Version of UUID can be only 3 or 5");var e=lib.stringToCharBuffer(t),n=typeof o=="string"?lib.parseUuid(o):EMPTY_UINT8_ARRAY,a=lib.concatBuffers(n,e),i=r===3?lib.md5Hash(a):lib.sha1Hash(a);return lib.hashToUuid(i,r)}var src=generateUuid;const getUuid=getDefaultExportFromCjs(src),isNonAsciiString=t=>typeof t!="string"?!1:new RegExp(/[^\x\00-\x7F]+/g).test(t),getCompositeComponent=t=>{var i;if(!t.type)throw new Error("parsysConfig.type is mandatory.");if(!t.componentKey)throw new Error("parsysConfig.componentKey is mandatory.");const o=getCurrentInstance(),{aemProperties:r}=o.attrs,e=getMappedComponent(t.type),n=isNonAsciiString(t.componentKey)?getUuid(t.componentKey):t.componentKey,a={...Utils.modelToProps(((i=r.cqItems)==null?void 0:i[n])??{}),cqPath:t.cqPath||`${r.cqPath}/${n}`,cqType:t.type};return{vNode:e,vNodeProps:a}};function _assertThisInitialized(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o}/*!
1006 * GSAP 3.12.5
1007 * https://gsap.com
1008 *
1009 * @license Copyright 2008-2024, GreenSock. All rights reserved.
1010 * Subject to the terms at https://gsap.com/standard-license or for
1011 * Club GSAP members, the agreement issued with that membership.
1012 * @author: Jack Doyle, [email protected]
1013*/var _config={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_defaults$1={duration:.5,overwrite:!1,delay:0},_suppressOverwrites$1,_reverting$2,_context$2,_bigNum$1=1e8,_tinyNum=1/_bigNum$1,_2PI=Math.PI*2,_HALF_PI=_2PI/4,_gsID=0,_sqrt$1=Math.sqrt,_cos$1=Math.cos,_sin$1=Math.sin,_isString$2=function t(o){return typeof o=="string"},_isFunction$1=function t(o){return typeof o=="function"},_isNumber$2=function t(o){return typeof o=="number"},_isUndefined$1=function t(o){return typeof o>"u"},_isObject$1=function t(o){return typeof o=="object"},_isNotFalse=function t(o){return o!==!1},_windowExists$2=function t(){return typeof window<"u"},_isFuncOrString=function t(o){return _isFunction$1(o)||_isString$2(o)},_isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},_isArray=Array.isArray,_strictNumExp=/(?:-?\.?\d|\.)+/gi,_numExp$1=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_numWithUnitExp=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_complexStringNumExp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_relExp=/[+-]=-?[.\d]+/,_delimitedValueExp=/[^,'"\[\]\s]+/gi,_unitExp=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_globalTimeline,_win$4,_coreInitted$2,_doc$4,_globals={},_installScope={},_coreReady,_install=function t(o){return(_installScope=_merge(o,_globals))&&gsap$3},_missingPlugin=function t(o,r){return console.warn("Invalid property",o,"set to",r,"Missing plugin? gsap.registerPlugin()")},_warn=function t(o,r){return!r&&console.warn(o)},_addGlobal=function t(o,r){return o&&(_globals[o]=r)&&_installScope&&(_installScope[o]=r)||_globals},_emptyFunc$1=function t(){return 0},_startAtRevertConfig={suppressEvents:!0,isStart:!0,kill:!1},_revertConfigNoKill={suppressEvents:!0,kill:!1},_revertConfig={suppressEvents:!0},_reservedProps={},_lazyTweens=[],_lazyLookup={},_lastRenderedFrame,_plugins={},_effects={},_nextGCFrame=30,_harnessPlugins=[],_callbackNames="",_harness=function t(o){var r=o[0],e,n;if(_isObject$1(r)||_isFunction$1(r)||(o=[o]),!(e=(r._gsap||{}).harness)){for(n=_harnessPlugins.length;n--&&!_harnessPlugins[n].targetTest(r););e=_harnessPlugins[n]}for(n=o.length;n--;)o[n]&&(o[n]._gsap||(o[n]._gsap=new GSCache(o[n],e)))||o.splice(n,1);return o},_getCache=function t(o){return o._gsap||_harness(toArray$2(o))[0]._gsap},_getProperty=function t(o,r,e){return(e=o[r])&&_isFunction$1(e)?o[r]():_isUndefined$1(e)&&o.getAttribute&&o.getAttribute(r)||e},_forEachName=function t(o,r){return(o=o.split(",")).forEach(r)||o},_round$2=function t(o){return Math.round(o*1e5)/1e5||0},_roundPrecise$1=function t(o){return Math.round(o*1e7)/1e7||0},_parseRelative=function t(o,r){var e=r.charAt(0),n=parseFloat(r.substr(2));return o=parseFloat(o),e==="+"?o+n:e==="-"?o-n:e==="*"?o*n:o/n},_arrayContainsAny=function t(o,r){for(var e=r.length,n=0;o.indexOf(r[n])<0&&++n<e;);return n<e},_lazyRender=function t(){var o=_lazyTweens.length,r=_lazyTweens.slice(0),e,n;for(_lazyLookup={},_lazyTweens.length=0,e=0;e<o;e++)n=r[e],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},_lazySafeRender=function t(o,r,e,n){_lazyTweens.length&&!_reverting$2&&_lazyRender(),o.render(r,e,_reverting$2&&r<0&&(o._initted||o._startAt)),_lazyTweens.length&&!_reverting$2&&_lazyRender()},_numericIfPossible=function t(o){var r=parseFloat(o);return(r||r===0)&&(o+"").match(_delimitedValueExp).length<2?r:_isString$2(o)?o.trim():o},_passThrough$1=function t(o){return o},_setDefaults$1=function t(o,r){for(var e in r)e in o||(o[e]=r[e]);return o},_setKeyframeDefaults=function t(o){return function(r,e){for(var n in e)n in r||n==="duration"&&o||n==="ease"||(r[n]=e[n])}},_merge=function t(o,r){for(var e in r)o[e]=r[e];return o},_mergeDeep=function t(o,r){for(var e in r)e!=="__proto__"&&e!=="constructor"&&e!=="prototype"&&(o[e]=_isObject$1(r[e])?t(o[e]||(o[e]={}),r[e]):r[e]);return o},_copyExcluding=function t(o,r){var e={},n;for(n in o)n in r||(e[n]=o[n]);return e},_inheritDefaults=function t(o){var r=o.parent||_globalTimeline,e=o.keyframes?_setKeyframeDefaults(_isArray(o.keyframes)):_setDefaults$1;if(_isNotFalse(o.inherit))for(;r;)e(o,r.vars.defaults),r=r.parent||r._dp;return o},_arraysMatch=function t(o,r){for(var e=o.length,n=e===r.length;n&&e--&&o[e]===r[e];);return e<0},_addLinkedListItem=function t(o,r,e,n,a){var i=o[n],s;if(a)for(s=r[a];i&&i[a]>s;)i=i._prev;return i?(r._next=i._next,i._next=r):(r._next=o[e],o[e]=r),r._next?r._next._prev=r:o[n]=r,r._prev=i,r.parent=r._dp=o,r},_removeLinkedListItem=function t(o,r,e,n){e===void 0&&(e="_first"),n===void 0&&(n="_last");var a=r._prev,i=r._next;a?a._next=i:o[e]===r&&(o[e]=i),i?i._prev=a:o[n]===r&&(o[n]=a),r._next=r._prev=r.parent=null},_removeFromParent=function t(o,r){o.parent&&(!r||o.parent.autoRemoveChildren)&&o.parent.remove&&o.parent.remove(o),o._act=0},_uncache=function t(o,r){if(o&&(!r||r._end>o._dur||r._start<0))for(var e=o;e;)e._dirty=1,e=e.parent;return o},_recacheAncestors=function t(o){for(var r=o.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return o},_rewindStartAt=function t(o,r,e,n){return o._startAt&&(_reverting$2?o._startAt.revert(_revertConfigNoKill):o.vars.immediateRender&&!o.vars.autoRevert||o._startAt.render(r,!0,n))},_hasNoPausedAncestors=function t(o){return!o||o._ts&&t(o.parent)},_elapsedCycleDuration=function t(o){return o._repeat?_animationCycle(o._tTime,o=o.duration()+o._rDelay)*o:0},_animationCycle=function t(o,r){var e=Math.floor(o/=r);return o&&e===o?e-1:e},_parentToChildTotalTime=function t(o,r){return(o-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},_setEnd=function t(o){return o._end=_roundPrecise$1(o._start+(o._tDur/Math.abs(o._ts||o._rts||_tinyNum)||0))},_alignPlayhead=function t(o,r){var e=o._dp;return e&&e.smoothChildTiming&&o._ts&&(o._start=_roundPrecise$1(e._time-(o._ts>0?r/o._ts:((o._dirty?o.totalDuration():o._tDur)-r)/-o._ts)),_setEnd(o),e._dirty||_uncache(e,o)),o},_postAddChecks=function t(o,r){var e;if((r._time||!r._dur&&r._initted||r._start<o._time&&(r._dur||!r.add))&&(e=_parentToChildTotalTime(o.rawTime(),r),(!r._dur||_clamp$1(0,r.totalDuration(),e)-r._tTime>_tinyNum)&&r.render(e,!0)),_uncache(o,r)._dp&&o._initted&&o._time>=o._dur&&o._ts){if(o._dur<o.duration())for(e=o;e._dp;)e.rawTime()>=0&&e.totalTime(e._tTime),e=e._dp;o._zTime=-_tinyNum}}
vendor: 78,478 bytes, lines 1013-1021
1013,_addToTimeline=function t(o,r,e,n){return r.parent&&_removeFromParent(r),r._start=_roundPrecise$1((_isNumber$2(e)?e:e||o!==_globalTimeline?_parsePosition$1(o,e,r):o._time)+r._delay),r._end=_roundPrecise$1(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),_addLinkedListItem(o,r,"_first","_last",o._sort?"_start":0),_isFromOrFromStart(r)||(o._recent=r),n||_postAddChecks(o,r),o._ts<0&&_alignPlayhead(o,o._tTime),o},_scrollTrigger=function t(o,r){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",r))&&_globals.ScrollTrigger.create(r,o)},_attemptInitTween=function t(o,r,e,n,a){if(_initTween(o,r,a),!o._initted)return 1;if(!e&&o._pt&&!_reverting$2&&(o._dur&&o.vars.lazy!==!1||!o._dur&&o.vars.lazy)&&_lastRenderedFrame!==_ticker.frame)return _lazyTweens.push(o),o._lazy=[a,n],1},_parentPlayheadIsBeforeStart=function t(o){var r=o.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},_isFromOrFromStart=function t(o){var r=o.data;return r==="isFromStart"||r==="isStart"},_renderZeroDurationTween=function t(o,r,e,n){var a=o.ratio,i=r<0||!r&&(!o._start&&_parentPlayheadIsBeforeStart(o)&&!(!o._initted&&_isFromOrFromStart(o))||(o._ts<0||o._dp._ts<0)&&!_isFromOrFromStart(o))?0:1,s=o._rDelay,l=0,d,c,u;if(s&&o._repeat&&(l=_clamp$1(0,o._tDur,r),c=_animationCycle(l,s),o._yoyo&&c&1&&(i=1-i),c!==_animationCycle(o._tTime,s)&&(a=1-i,o.vars.repeatRefresh&&o._initted&&o.invalidate())),i!==a||_reverting$2||n||o._zTime===_tinyNum||!r&&o._zTime){if(!o._initted&&_attemptInitTween(o,r,n,e,l))return;for(u=o._zTime,o._zTime=r||(e?_tinyNum:0),e||(e=r&&!u),o.ratio=i,o._from&&(i=1-i),o._time=0,o._tTime=l,d=o._pt;d;)d.r(i,d.d),d=d._next;r<0&&_rewindStartAt(o,r,e,!0),o._onUpdate&&!e&&_callback$1(o,"onUpdate"),l&&o._repeat&&!e&&o.parent&&_callback$1(o,"onRepeat"),(r>=o._tDur||r<0)&&o.ratio===i&&(i&&_removeFromParent(o,1),!e&&!_reverting$2&&(_callback$1(o,i?"onComplete":"onReverseComplete",!0),o._prom&&o._prom()))}else o._zTime||(o._zTime=r)},_findNextPauseTween=function t(o,r,e){var n;if(e>r)for(n=o._first;n&&n._start<=e;){if(n.data==="isPause"&&n._start>r)return n;n=n._next}else for(n=o._last;n&&n._start>=e;){if(n.data==="isPause"&&n._start<r)return n;n=n._prev}},_setDuration=function t(o,r,e,n){var a=o._repeat,i=_roundPrecise$1(r)||0,s=o._tTime/o._tDur;return s&&!n&&(o._time*=i/o._dur),o._dur=i,o._tDur=a?a<0?1e10:_roundPrecise$1(i*(a+1)+o._rDelay*a):i,s>0&&!n&&_alignPlayhead(o,o._tTime=o._tDur*s),o.parent&&_setEnd(o),e||_uncache(o.parent,o),o},_onUpdateTotalDuration=function t(o){return o instanceof Timeline?_uncache(o):_setDuration(o,o._dur)},_zeroPosition={_start:0,endTime:_emptyFunc$1,totalDuration:_emptyFunc$1},_parsePosition$1=function t(o,r,e){var n=o.labels,a=o._recent||_zeroPosition,i=o.duration()>=_bigNum$1?a.endTime(!1):o._dur,s,l,d;return _isString$2(r)&&(isNaN(r)||r in n)?(l=r.charAt(0),d=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(d?(s<0?a:e).totalDuration()/100:1)):s<0?(r in n||(n[r]=i),n[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),d&&e&&(l=l/100*(_isArray(e)?e[0]:e).totalDuration()),s>1?t(o,r.substr(0,s-1),e)+l:i+l)):r==null?i:+r},_createTweenType=function t(o,r,e){var n=_isNumber$2(r[1]),a=(n?2:1)+(o<2?0:1),i=r[a],s,l;if(n&&(i.duration=r[1]),i.parent=e,o){for(s=i,l=e;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=_isNotFalse(l.vars.inherit)&&l.parent;i.immediateRender=_isNotFalse(s.immediateRender),o<2?i.runBackwards=1:i.startAt=r[a-1]}return new Tween(r[0],i,r[a+1])},_conditionalReturn=function t(o,r){return o||o===0?r(o):r},_clamp$1=function t(o,r,e){return e<o?o:e>r?r:e},getUnit=function t(o,r){return!_isString$2(o)||!(r=_unitExp.exec(o))?"":r[1]},clamp$1=function t(o,r,e){return _conditionalReturn(e,function(n){return _clamp$1(o,r,n)})},_slice=[].slice,_isArrayLike=function t(o,r){return o&&_isObject$1(o)&&"length"in o&&(!r&&!o.length||o.length-1 in o&&_isObject$1(o[0]))&&!o.nodeType&&o!==_win$4},_flatten=function t(o,r,e){return e===void 0&&(e=[]),o.forEach(function(n){var a;return _isString$2(n)&&!r||_isArrayLike(n,1)?(a=e).push.apply(a,toArray$2(n)):e.push(n)})||e},toArray$2=function t(o,r,e){return _context$2&&!r&&_context$2.selector?_context$2.selector(o):_isString$2(o)&&!e&&(_coreInitted$2||!_wake())?_slice.call((r||_doc$4).querySelectorAll(o),0):_isArray(o)?_flatten(o,e):_isArrayLike(o)?_slice.call(o,0):o?[o]:[]},selector=function t(o){return o=toArray$2(o)[0]||_warn("Invalid scope")||{},function(r){var e=o.current||o.nativeElement||o;return toArray$2(r,e.querySelectorAll?e:e===o?_warn("Invalid scope")||_doc$4.createElement("div"):o)}},shuffle=function t(o){return o.sort(function(){return .5-Math.random()})},distribute=function t(o){if(_isFunction$1(o))return o;var r=_isObject$1(o)?o:{each:o},e=_parseEase(r.ease),n=r.from||0,a=parseFloat(r.base)||0,i={},s=n>0&&n<1,l=isNaN(n)||s,d=r.axis,c=n,u=n;return _isString$2(n)?c=u={center:.5,edges:.5,end:1}[n]||0:!s&&l&&(c=n[0],u=n[1]),function(f,m,b){var y=(b||r).length,_=i[y],S,C,T,x,k,E,w,D,N;if(!_){if(N=r.grid==="auto"?0:(r.grid||[1,_bigNum$1])[1],!N){for(w=-_bigNum$1;w<(w=b[N++].getBoundingClientRect().left)&&N<y;);N<y&&N--}for(_=i[y]=[],S=l?Math.min(N,y)*c-.5:n%N,C=N===_bigNum$1?0:l?y*u/N-.5:n/N|0,w=0,D=_bigNum$1,E=0;E<y;E++)T=E%N-S,x=C-(E/N|0),_[E]=k=d?Math.abs(d==="y"?x:T):_sqrt$1(T*T+x*x),k>w&&(w=k),k<D&&(D=k);n==="random"&&shuffle(_),_.max=w-D,_.min=D,_.v=y=(parseFloat(r.amount)||parseFloat(r.each)*(N>y?y-1:d?d==="y"?y/N:N:Math.max(N,y/N))||0)*(n==="edges"?-1:1),_.b=y<0?a-y:a,_.u=getUnit(r.amount||r.each)||0,e=e&&y<0?_invertEase(e):e}return y=(_[f]-_.min)/_.max||0,_roundPrecise$1(_.b+(e?e(y):y)*_.v)+_.u}},_roundModifier=function t(o){var r=Math.pow(10,((o+"").split(".")[1]||"").length);return function(e){var n=_roundPrecise$1(Math.round(parseFloat(e)/o)*o*r);return(n-n%1)/r+(_isNumber$2(e)?0:getUnit(e))}},snap=function t(o,r){var e=_isArray(o),n,a;return!e&&_isObject$1(o)&&(n=e=o.radius||_bigNum$1,o.values?(o=toArray$2(o.values),(a=!_isNumber$2(o[0]))&&(n*=n)):o=_roundModifier(o.increment)),_conditionalReturn(r,e?_isFunction$1(o)?function(i){return a=o(i),Math.abs(a-i)<=n?a:i}:function(i){for(var s=parseFloat(a?i.x:i),l=parseFloat(a?i.y:0),d=_bigNum$1,c=0,u=o.length,f,m;u--;)a?(f=o[u].x-s,m=o[u].y-l,f=f*f+m*m):f=Math.abs(o[u]-s),f<d&&(d=f,c=u);return c=!n||d<=n?o[c]:i,a||c===i||_isNumber$2(i)?c:c+getUnit(i)}:_roundModifier(o))},random=function t(o,r,e,n){return _conditionalReturn(_isArray(o)?!r:e===!0?!!(e=0):!n,function(){return _isArray(o)?o[~~(Math.random()*o.length)]:(e=e||1e-5)&&(n=e<1?Math.pow(10,(e+"").length-2):1)&&Math.floor(Math.round((o-e/2+Math.random()*(r-o+e*.99))/e)*e*n)/n})},pipe=function t(){for(var o=arguments.length,r=new Array(o),e=0;e<o;e++)r[e]=arguments[e];return function(n){return r.reduce(function(a,i){return i(a)},n)}},unitize=function t(o,r){return function(e){return o(parseFloat(e))+(r||getUnit(e))}},normalize$1=function t(o,r,e){return mapRange(o,r,0,1,e)},_wrapArray=function t(o,r,e){return _conditionalReturn(e,function(n){return o[~~r(n)]})},wrap=function t(o,r,e){var n=r-o;return _isArray(o)?_wrapArray(o,t(0,o.length),r):_conditionalReturn(e,function(a){return(n+(a-o)%n)%n+o})},wrapYoyo=function t(o,r,e){var n=r-o,a=n*2;return _isArray(o)?_wrapArray(o,t(0,o.length-1),r):_conditionalReturn(e,function(i){return i=(a+(i-o)%a)%a||0,o+(i>n?a-i:i)})},_replaceRandom=function t(o){for(var r=0,e="",n,a,i,s;~(n=o.indexOf("random(",r));)i=o.indexOf(")",n),s=o.charAt(n+7)==="[",a=o.substr(n+7,i-n-7).match(s?_delimitedValueExp:_strictNumExp),e+=o.substr(r,n-r)+random(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=i+1;return e+o.substr(r,o.length-r)},mapRange=function t(o,r,e,n,a){var i=r-o,s=n-e;return _conditionalReturn(a,function(l){return e+((l-o)/i*s||0)})},interpolate=function t(o,r,e,n){var a=isNaN(o+r)?0:function(m){return(1-m)*o+m*r};if(!a){var i=_isString$2(o),s={},l,d,c,u,f;if(e===!0&&(n=1)&&(e=null),i)o={p:o},r={p:r};else if(_isArray(o)&&!_isArray(r)){for(c=[],u=o.length,f=u-2,d=1;d<u;d++)c.push(t(o[d-1],o[d]));u--,a=function(b){b*=u;var y=Math.min(f,~~b);return c[y](b-y)},e=r}else n||(o=_merge(_isArray(o)?[]:{},o));if(!c){for(l in r)_addPropTween.call(s,o,l,"get",r[l]);a=function(b){return _renderPropTweens(b,s)||(i?o.p:o)}}}return _conditionalReturn(e,a)},_getLabelInDirection=function t(o,r,e){var n=o.labels,a=_bigNum$1,i,s,l;for(i in n)s=n[i]-r,s<0==!!e&&s&&a>(s=Math.abs(s))&&(l=i,a=s);return l},_callback$1=function t(o,r,e){var n=o.vars,a=n[r],i=_context$2,s=o._ctx,l,d,c;if(a)return l=n[r+"Params"],d=n.callbackScope||o,e&&_lazyTweens.length&&_lazyRender(),s&&(_context$2=s),c=l?a.apply(d,l):a.call(d),_context$2=i,c},_interrupt=function t(o){return _removeFromParent(o),o.scrollTrigger&&o.scrollTrigger.kill(!!_reverting$2),o.progress()<1&&_callback$1(o,"onInterrupt"),o},_quickTween,_registerPluginQueue=[],_createPlugin=function t(o){if(o)if(o=!o.name&&o.default||o,_windowExists$2()||o.headless){var r=o.name,e=_isFunction$1(o),n=r&&!e&&o.init?function(){this._props=[]}:o,a={init:_emptyFunc$1,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},i={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),o!==n){if(_plugins[r])return;_setDefaults$1(n,_setDefaults$1(_copyExcluding(o,a),i)),_merge(n.prototype,_merge(a,_copyExcluding(o,i))),_plugins[n.prop=r]=n,o.targetTest&&(_harnessPlugins.push(n),_reservedProps[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}_addGlobal(r,n),o.register&&o.register(gsap$3,n,PropTween$1)}else _registerPluginQueue.push(o)},_255=255,_colorLookup={aqua:[0,_255,_255],lime:[0,_255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_255],navy:[0,0,128],white:[_255,_255,_255],olive:[128,128,0],yellow:[_255,_255,0],orange:[_255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_255,0,0],pink:[_255,192,203],cyan:[0,_255,_255],transparent:[_255,_255,_255,0]},_hue=function t(o,r,e){return o+=o<0?1:o>1?-1:0,(o*6<1?r+(e-r)*o*6:o<.5?e:o*3<2?r+(e-r)*(2/3-o)*6:r)*_255+.5|0},splitColor=function t(o,r,e){var n=o?_isNumber$2(o)?[o>>16,o>>8&_255,o&_255]:0:_colorLookup.black,a,i,s,l,d,c,u,f,m,b;if(!n){if(o.substr(-1)===","&&(o=o.substr(0,o.length-1)),_colorLookup[o])n=_colorLookup[o];else if(o.charAt(0)==="#"){if(o.length<6&&(a=o.charAt(1),i=o.charAt(2),s=o.charAt(3),o="#"+a+a+i+i+s+s+(o.length===5?o.charAt(4)+o.charAt(4):"")),o.length===9)return n=parseInt(o.substr(1,6),16),[n>>16,n>>8&_255,n&_255,parseInt(o.substr(7),16)/255];o=parseInt(o.substr(1),16),n=[o>>16,o>>8&_255,o&_255]}else if(o.substr(0,3)==="hsl"){if(n=b=o.match(_strictNumExp),!r)l=+n[0]%360/360,d=+n[1]/100,c=+n[2]/100,i=c<=.5?c*(d+1):c+d-c*d,a=c*2-i,n.length>3&&(n[3]*=1),n[0]=_hue(l+1/3,a,i),n[1]=_hue(l,a,i),n[2]=_hue(l-1/3,a,i);else if(~o.indexOf("="))return n=o.match(_numExp$1),e&&n.length<4&&(n[3]=1),n}else n=o.match(_strictNumExp)||_colorLookup.transparent;n=n.map(Number)}return r&&!b&&(a=n[0]/_255,i=n[1]/_255,s=n[2]/_255,u=Math.max(a,i,s),f=Math.min(a,i,s),c=(u+f)/2,u===f?l=d=0:(m=u-f,d=c>.5?m/(2-u-f):m/(u+f),l=u===a?(i-s)/m+(i<s?6:0):u===i?(s-a)/m+2:(a-i)/m+4,l*=60),n[0]=~~(l+.5),n[1]=~~(d*100+.5),n[2]=~~(c*100+.5)),e&&n.length<4&&(n[3]=1),n},_colorOrderData=function t(o){var r=[],e=[],n=-1;return o.split(_colorExp).forEach(function(a){var i=a.match(_numWithUnitExp)||[];r.push.apply(r,i),e.push(n+=i.length+1)}),r.c=e,r},_formatColors=function t(o,r,e){var n="",a=(o+n).match(_colorExp),i=r?"hsla(":"rgba(",s=0,l,d,c,u;if(!a)return o;if(a=a.map(function(f){return(f=splitColor(f,r,1))&&i+(r?f[0]+","+f[1]+"%,"+f[2]+"%,"+f[3]:f.join(","))+")"}),e&&(c=_colorOrderData(o),l=e.c,l.join(n)!==c.c.join(n)))for(d=o.replace(_colorExp,"1").split(_numWithUnitExp),u=d.length-1;s<u;s++)n+=d[s]+(~l.indexOf(s)?a.shift()||i+"0,0,0,0)":(c.length?c:a.length?a:e).shift());if(!d)for(d=o.split(_colorExp),u=d.length-1;s<u;s++)n+=d[s]+a[s];return n+d[u]},_colorExp=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",o;for(o in _colorLookup)t+="|"+o+"\\b";return new RegExp(t+")","gi")}(),_hslExp=/hsl[a]?\(/,_colorStringFilter=function t(o){var r=o.join(" "),e;if(_colorExp.lastIndex=0,_colorExp.test(r))return e=_hslExp.test(r),o[1]=_formatColors(o[1],e),o[0]=_formatColors(o[0],e,_colorOrderData(o[1])),!0},_tickerActive,_ticker=function(){var t=Date.now,o=500,r=33,e=t(),n=e,a=1e3/240,i=a,s=[],l,d,c,u,f,m,b=function y(_){var S=t()-n,C=_===!0,T,x,k,E;if((S>o||S<0)&&(e+=S-r),n+=S,k=n-e,T=k-i,(T>0||C)&&(E=++u.frame,f=k-u.time*1e3,u.time=k=k/1e3,i+=T+(T>=a?4:a-T),x=1),C||(l=d(y)),x)for(m=0;m<s.length;m++)s[m](k,f,E,_)};return u={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(_){return f/(1e3/(_||60))},wake:function(){_coreReady&&(!_coreInitted$2&&_windowExists$2()&&(_win$4=_coreInitted$2=window,_doc$4=_win$4.document||{},_globals.gsap=gsap$3,(_win$4.gsapVersions||(_win$4.gsapVersions=[])).push(gsap$3.version),_install(_installScope||_win$4.GreenSockGlobals||!_win$4.gsap&&_win$4||{}),_registerPluginQueue.forEach(_createPlugin)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&u.sleep(),d=c||function(_){return setTimeout(_,i-u.time*1e3+1|0)},_tickerActive=1,b(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),_tickerActive=0,d=_emptyFunc$1},lagSmoothing:function(_,S){o=_||1/0,r=Math.min(S||33,o)},fps:function(_){a=1e3/(_||240),i=u.time*1e3+a},add:function(_,S,C){var T=S?function(x,k,E,w){_(x,k,E,w),u.remove(T)}:_;return u.remove(_),s[C?"unshift":"push"](T),_wake(),T},remove:function(_,S){~(S=s.indexOf(_))&&s.splice(S,1)&&m>=S&&m--},_listeners:s},u}(),_wake=function t(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function t(o){for(var r={},e=o.substr(1,o.length-3).split(":"),n=e[0],a=1,i=e.length,s,l,d;a<i;a++)l=e[a],s=a!==i-1?l.lastIndexOf(","):l.length,d=l.substr(0,s),r[n]=isNaN(d)?d.replace(_quotesExp,"").trim():+d,n=l.substr(s+1).trim();return r},_valueInParentheses=function t(o){var r=o.indexOf("(")+1,e=o.indexOf(")"),n=o.indexOf("(",r);return o.substring(r,~n&&n<e?o.indexOf(")",e+1):e)},_configEaseFromString=function t(o){var r=(o+"").split("("),e=_easeMap[r[0]];return e&&r.length>1&&e.config?e.config.apply(null,~o.indexOf("{")?[_parseObjectInString(r[1])]:_valueInParentheses(o).split(",").map(_numericIfPossible)):_easeMap._CE&&_customEaseExp.test(o)?_easeMap._CE("",o):e},_invertEase=function t(o){return function(r){return 1-o(1-r)}},_propagateYoyoEase=function t(o,r){for(var e=o._first,n;e;)e instanceof Timeline?t(e,r):e.vars.yoyoEase&&(!e._yoyo||!e._repeat)&&e._yoyo!==r&&(e.timeline?t(e.timeline,r):(n=e._ease,e._ease=e._yEase,e._yEase=n,e._yoyo=r)),e=e._next},_parseEase=function t(o,r){return o&&(_isFunction$1(o)?o:_easeMap[o]||_configEaseFromString(o))||r},_insertEase=function t(o,r,e,n){e===void 0&&(e=function(l){return 1-r(1-l)}),n===void 0&&(n=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var a={easeIn:r,easeOut:e,easeInOut:n},i;return _forEachName(o,function(s){_easeMap[s]=_globals[s]=a,_easeMap[i=s.toLowerCase()]=e;for(var l in a)_easeMap[i+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=_easeMap[s+"."+l]=a[l]}),a},_easeInOutFromOut=function t(o){return function(r){return r<.5?(1-o(1-r*2))/2:.5+o((r-.5)*2)/2}},_configElastic=function t(o,r,e){var n=r>=1?r:1,a=(e||(o?.3:.45))/(r<1?r:1),i=a/_2PI*(Math.asin(1/n)||0),s=function(c){return c===1?1:n*Math.pow(2,-10*c)*_sin$1((c-i)*a)+1},l=o==="out"?s:o==="in"?function(d){return 1-s(1-d)}:_easeInOutFromOut(s);return a=_2PI/a,l.config=function(d,c){return t(o,d,c)},l},_configBack=function t(o,r){r===void 0&&(r=1.70158);var e=function(i){return i?--i*i*((r+1)*i+r)+1:0},n=o==="out"?e:o==="in"?function(a){return 1-e(1-a)}:_easeInOutFromOut(e);return n.config=function(a){return t(o,a)},n};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,o){var r=o<5?o+1:o;_insertEase(t+",Power"+(r-1),o?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(e*2,r)/2:1-Math.pow((1-e)*2,r)/2})});_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn;_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic());(function(t,o){var r=1/o,e=2*r,n=2.5*r,a=function(s){return s<r?t*s*s:s<e?t*Math.pow(s-1.5/o,2)+.75:s<n?t*(s-=2.25/o)*s+.9375:t*Math.pow(s-2.625/o,2)+.984375};_insertEase("Bounce",function(i){return 1-a(1-i)},a)})(7.5625,2.75);_insertEase("Expo",function(t){return t?Math.pow(2,10*(t-1)):0});_insertEase("Circ",function(t){return-(_sqrt$1(1-t*t)-1)});_insertEase("Sine",function(t){return t===1?1:-_cos$1(t*_HALF_PI)+1});_insertEase("Back",_configBack("in"),_configBack("out"),_configBack());_easeMap.SteppedEase=_easeMap.steps=_globals.SteppedEase={config:function t(o,r){o===void 0&&(o=1);var e=1/o,n=o+(r?0:1),a=r?1:0,i=1-_tinyNum;return function(s){return((n*_clamp$1(0,i,s)|0)+a)*e}}};_defaults$1.ease=_easeMap["quad.out"];_forEachName("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return _callbackNames+=t+","+t+"Params,"});var GSCache=function t(o,r){this.id=_gsID++,o._gsap=this,this.target=o,this.harness=r,this.get=r?r.get:_getProperty,this.set=r?r.getSetter:_getSetter},Animation=function(){function t(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,_setDuration(this,+r.duration,1,1),this.data=r.data,_context$2&&(this._ctx=_context$2,_context$2.data.push(this)),_tickerActive||_ticker.wake()}var o=t.prototype;return o.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},o.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},o.totalDuration=function(e){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},o.totalTime=function(e,n){if(_wake(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(_alignPlayhead(this,e),!a._dp||a.parent||_postAddChecks(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===_tinyNum||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),_lazySafeRender(this,e,n)),this},o.time=function(e,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(e?this._dur:0),n):this._time},o.totalProgress=function(e,n){return arguments.length?this.totalTime(this.totalDuration()*e,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},o.progress=function(e,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+_elapsedCycleDuration(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},o.iteration=function(e,n){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*a,n):this._repeat?_animationCycle(this._tTime,a)+1:1},o.timeScale=function(e,n){if(!arguments.length)return this._rts===-_tinyNum?0:this._rts;if(this._rts===e)return this;var a=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-_tinyNum?0:this._rts,this.totalTime(_clamp$1(-Math.abs(this._delay),this._tDur,a),n!==!1),_setEnd(this),_recacheAncestors(this)},o.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_tinyNum&&(this._tTime-=_tinyNum)))),this):this._ps},o.startTime=function(e){if(arguments.length){this._start=e;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&_addToTimeline(n,this,e-this._delay),this}return this._start},o.endTime=function(e){return this._start+(_isNotFalse(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},o.rawTime=function(e){var n=this.parent||this._dp;return n?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(n.rawTime(e),this):this._tTime:this._tTime},o.revert=function(e){e===void 0&&(e=_revertConfig);var n=_reverting$2;return _reverting$2=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!=="nested"&&e.kill!==!1&&this.kill(),_reverting$2=n,this},o.globalTime=function(e){for(var n=this,a=arguments.length?e:n.rawTime();n;)a=n._start+a/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(e):a},o.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,_onUpdateTotalDuration(this)):this._repeat===-2?1/0:this._repeat},o.repeatDelay=function(e){if(arguments.length){var n=this._time;return this._rDelay=e,_onUpdateTotalDuration(this),n?this.time(n):this}return this._rDelay},o.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},o.seek=function(e,n){return this.totalTime(_parsePosition$1(this,e),_isNotFalse(n))},o.restart=function(e,n){return this.play().totalTime(e?-this._delay:0,_isNotFalse(n))},o.play=function(e,n){return e!=null&&this.seek(e,n),this.reversed(!1).paused(!1)},o.reverse=function(e,n){return e!=null&&this.seek(e||this.totalDuration(),n),this.reversed(!0).paused(!1)},o.pause=function(e,n){return e!=null&&this.seek(e,n),this.paused(!0)},o.resume=function(){return this.paused(!1)},o.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-_tinyNum:0)),this):this._rts<0},o.invalidate=function(){return this._initted=this._act=0,this._zTime=-_tinyNum,this},o.isActive=function(){var e=this.parent||this._dp,n=this._start,a;return!!(!e||this._ts&&this._initted&&e.isActive()&&(a=e.rawTime(!0))>=n&&a<this.endTime(!0)-_tinyNum)},o.eventCallback=function(e,n,a){var i=this.vars;return arguments.length>1?(n?(i[e]=n,a&&(i[e+"Params"]=a),e==="onUpdate"&&(this._onUpdate=n)):delete i[e],this):i[e]},o.then=function(e){var n=this;return new Promise(function(a){var i=_isFunction$1(e)?e:_passThrough$1,s=function(){var d=n.then;n.then=null,_isFunction$1(i)&&(i=i(n))&&(i.then||i===n)&&(n.then=d),a(i),n.then=d};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?s():n._prom=s})},o.kill=function(){_interrupt(this)},t}();_setDefaults$1(Animation.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_tinyNum,_prom:0,_ps:!1,_rts:1});var Timeline=function(t){_inheritsLoose(o,t);function o(e,n){var a;return e===void 0&&(e={}),a=t.call(this,e)||this,a.labels={},a.smoothChildTiming=!!e.smoothChildTiming,a.autoRemoveChildren=!!e.autoRemoveChildren,a._sort=_isNotFalse(e.sortChildren),_globalTimeline&&_addToTimeline(e.parent||_globalTimeline,_assertThisInitialized(a),n),e.reversed&&a.reverse(),e.paused&&a.paused(!0),e.scrollTrigger&&_scrollTrigger(_assertThisInitialized(a),e.scrollTrigger),a}var r=o.prototype;return r.to=function(n,a,i){return _createTweenType(0,arguments,this),this},r.from=function(n,a,i){return _createTweenType(1,arguments,this),this},r.fromTo=function(n,a,i,s){return _createTweenType(2,arguments,this),this},r.set=function(n,a,i){return a.duration=0,a.parent=this,_inheritDefaults(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new Tween(n,a,_parsePosition$1(this,i),1),this},r.call=function(n,a,i){return _addToTimeline(this,Tween.delayedCall(0,n,a),i)},r.staggerTo=function(n,a,i,s,l,d,c){return i.duration=a,i.stagger=i.stagger||s,i.onComplete=d,i.onCompleteParams=c,i.parent=this,new Tween(n,i,_parsePosition$1(this,l)),this},r.staggerFrom=function(n,a,i,s,l,d,c){return i.runBackwards=1,_inheritDefaults(i).immediateRender=_isNotFalse(i.immediateRender),this.staggerTo(n,a,i,s,l,d,c)},r.staggerFromTo=function(n,a,i,s,l,d,c,u){return s.startAt=i,_inheritDefaults(s).immediateRender=_isNotFalse(s.immediateRender),this.staggerTo(n,a,s,l,d,c,u)},r.render=function(n,a,i){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,d=this._dur,c=n<=0?0:_roundPrecise$1(n),u=this._zTime<0!=n<0&&(this._initted||!d),f,m,b,y,_,S,C,T,x,k,E,w;if(this!==_globalTimeline&&c>l&&n>=0&&(c=l),c!==this._tTime||i||u){if(s!==this._time&&d&&(c+=this._time-s,n+=this._time-s),f=c,x=this._start,T=this._ts,S=!T,u&&(d||(s=this._zTime),(n||!a)&&(this._zTime=n)),this._repeat){if(E=this._yoyo,_=d+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(_*100+n,a,i);if(f=_roundPrecise$1(c%_),c===l?(y=this._repeat,f=d):(y=~~(c/_),y&&y===c/_&&(f=d,y--),f>d&&(f=d)),k=_animationCycle(this._tTime,_),!s&&this._tTime&&k!==y&&this._tTime-k*_-this._dur<=0&&(k=y),E&&y&1&&(f=d-f,w=1),y!==k&&!this._lock){var D=E&&k&1,N=D===(E&&y&1);if(y<k&&(D=!D),s=D?0:c%d?d:c,this._lock=1,this.render(s||(w?0:_roundPrecise$1(y*_)),a,!d)._lock=0,this._tTime=c,!a&&this.parent&&_callback$1(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1),s&&s!==this._time||S!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(d=this._dur,l=this._tDur,N&&(this._lock=2,s=D?d:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!S)return this;_propagateYoyoEase(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(C=_findNextPauseTween(this,_roundPrecise$1(s),_roundPrecise$1(f)),C&&(c-=f-(f=C._start))),this._tTime=c,this._time=f,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,s=0),!s&&f&&!a&&!y&&(_callback$1(this,"onStart"),this._tTime!==c))return this;if(f>=s&&n>=0)for(m=this._first;m;){if(b=m._next,(m._act||f>=m._start)&&m._ts&&C!==m){if(m.parent!==this)return this.render(n,a,i);if(m.render(m._ts>0?(f-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(f-m._start)*m._ts,a,i),f!==this._time||!this._ts&&!S){C=0,b&&(c+=this._zTime=-_tinyNum);break}}m=b}else{m=this._last;for(var F=n<0?n:f;m;){if(b=m._prev,(m._act||F<=m._end)&&m._ts&&C!==m){if(m.parent!==this)return this.render(n,a,i);if(m.render(m._ts>0?(F-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(F-m._start)*m._ts,a,i||_reverting$2&&(m._initted||m._startAt)),f!==this._time||!this._ts&&!S){C=0,b&&(c+=this._zTime=F?-_tinyNum:_tinyNum);break}}m=b}}if(C&&!a&&(this.pause(),C.render(f>=s?0:-_tinyNum)._zTime=f>=s?1:-1,this._ts))return this._start=x,_setEnd(this),this.render(n,a,i);this._onUpdate&&!a&&_callback$1(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(x===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((n||!d)&&(c===l&&this._ts>0||!c&&this._ts<0)&&_removeFromParent(this,1),!a&&!(n<0&&!s)&&(c||s||!l)&&(_callback$1(this,c===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(n,a){var i=this;if(_isNumber$2(a)||(a=_parsePosition$1(this,a,n)),!(n instanceof Animation)){if(_isArray(n))return n.forEach(function(s){return i.add(s,a)}),this;if(_isString$2(n))return this.addLabel(n,a);if(_isFunction$1(n))n=Tween.delayedCall(0,n);else return this}return this!==n?_addToTimeline(this,n,a):this},r.getChildren=function(n,a,i,s){n===void 0&&(n=!0),a===void 0&&(a=!0),i===void 0&&(i=!0),s===void 0&&(s=-_bigNum$1);for(var l=[],d=this._first;d;)d._start>=s&&(d instanceof Tween?a&&l.push(d):(i&&l.push(d),n&&l.push.apply(l,d.getChildren(!0,a,i)))),d=d._next;return l},r.getById=function(n){for(var a=this.getChildren(1,1,1),i=a.length;i--;)if(a[i].vars.id===n)return a[i]},r.remove=function(n){return _isString$2(n)?this.removeLabel(n):_isFunction$1(n)?this.killTweensOf(n):(_removeLinkedListItem(this,n),n===this._recent&&(this._recent=this._last),_uncache(this))},r.totalTime=function(n,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise$1(_ticker.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),t.prototype.totalTime.call(this,n,a),this._forcing=0,this):this._tTime},r.addLabel=function(n,a){return this.labels[n]=_parsePosition$1(this,a),this},r.removeLabel=function(n){return delete this.labels[n],this},r.addPause=function(n,a,i){var s=Tween.delayedCall(0,a||_emptyFunc$1,i);return s.data="isPause",this._hasPause=1,_addToTimeline(this,s,_parsePosition$1(this,n))},r.removePause=function(n){var a=this._first;for(n=_parsePosition$1(this,n);a;)a._start===n&&a.data==="isPause"&&_removeFromParent(a),a=a._next},r.killTweensOf=function(n,a,i){for(var s=this.getTweensOf(n,i),l=s.length;l--;)_overwritingTween!==s[l]&&s[l].kill(n,a);return this},r.getTweensOf=function(n,a){for(var i=[],s=toArray$2(n),l=this._first,d=_isNumber$2(a),c;l;)l instanceof Tween?_arrayContainsAny(l._targets,s)&&(d?(!_overwritingTween||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&i.push(l):(c=l.getTweensOf(s,a)).length&&i.push.apply(i,c),l=l._next;return i},r.tweenTo=function(n,a){a=a||{};var i=this,s=_parsePosition$1(i,n),l=a,d=l.startAt,c=l.onStart,u=l.onStartParams,f=l.immediateRender,m,b=Tween.to(i,_setDefaults$1({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(d&&"time"in d?d.time:i._time))/i.timeScale())||_tinyNum,onStart:function(){if(i.pause(),!m){var _=a.duration||Math.abs((s-(d&&"time"in d?d.time:i._time))/i.timeScale());b._dur!==_&&_setDuration(b,_,0,1).render(b._time,!0,!0),m=1}c&&c.apply(b,u||[])}},a));return f?b.render(0):b},r.tweenFromTo=function(n,a,i){return this.tweenTo(a,_setDefaults$1({startAt:{time:_parsePosition$1(this,n)}},i))},r.recent=function(){return this._recent},r.nextLabel=function(n){return n===void 0&&(n=this._time),_getLabelInDirection(this,_parsePosition$1(this,n))},r.previousLabel=function(n){return n===void 0&&(n=this._time),_getLabelInDirection(this,_parsePosition$1(this,n),1)},r.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+_tinyNum)},r.shiftChildren=function(n,a,i){i===void 0&&(i=0);for(var s=this._first,l=this.labels,d;s;)s._start>=i&&(s._start+=n,s._end+=n),s=s._next;if(a)for(d in l)l[d]>=i&&(l[d]+=n);return _uncache(this)},r.invalidate=function(n){var a=this._first;for(this._lock=0;a;)a.invalidate(n),a=a._next;return t.prototype.invalidate.call(this,n)},r.clear=function(n){n===void 0&&(n=!0);for(var a=this._first,i;a;)i=a._next,this.remove(a),a=i;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),_uncache(this)},r.totalDuration=function(n){var a=0,i=this,s=i._last,l=_bigNum$1,d,c,u;if(arguments.length)return i.timeScale((i._repeat<0?i.duration():i.totalDuration())/(i.reversed()?-n:n));if(i._dirty){for(u=i.parent;s;)d=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&i._sort&&s._ts&&!i._lock?(i._lock=1,_addToTimeline(i,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(a-=c,(!u&&!i._dp||u&&u.smoothChildTiming)&&(i._start+=c/i._ts,i._time-=c,i._tTime-=c),i.shiftChildren(-c,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=d;_setDuration(i,i===_globalTimeline&&i._time>a?i._time:a,1,1),i._dirty=0}return i._tDur},o.updateRoot=function(n){if(_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(n,_globalTimeline)),_lastRenderedFrame=_ticker.frame),_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config.autoSleep||120;var a=_globalTimeline._first;if((!a||!a._ts)&&_config.autoSleep&&_ticker._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||_ticker.sleep()}}},o}(Animation);_setDefaults$1(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _addComplexStringPropTween=function t(o,r,e,n,a,i,s){var l=new PropTween$1(this._pt,o,r,0,1,_renderComplexString,null,a),d=0,c=0,u,f,m,b,y,_,S,C;for(l.b=e,l.e=n,e+="",n+="",(S=~n.indexOf("random("))&&(n=_replaceRandom(n)),i&&(C=[e,n],i(C,o,r),e=C[0],n=C[1]),f=e.match(_complexStringNumExp)||[];u=_complexStringNumExp.exec(n);)b=u[0],y=n.substring(d,u.index),m?m=(m+1)%5:y.substr(-5)==="rgba("&&(m=1),b!==f[c++]&&(_=parseFloat(f[c-1])||0,l._pt={_next:l._pt,p:y||c===1?y:",",s:_,c:b.charAt(1)==="="?_parseRelative(_,b)-_:parseFloat(b)-_,m:m&&m<4?Math.round:0},d=_complexStringNumExp.lastIndex);return l.c=d<n.length?n.substring(d,n.length):"",l.fp=s,(_relExp.test(n)||S)&&(l.e=0),this._pt=l,l},_addPropTween=function t(o,r,e,n,a,i,s,l,d,c){_isFunction$1(n)&&(n=n(a||0,o,i));var u=o[r],f=e!=="get"?e:_isFunction$1(u)?d?o[r.indexOf("set")||!_isFunction$1(o["get"+r.substr(3)])?r:"get"+r.substr(3)](d):o[r]():u,m=_isFunction$1(u)?d?_setterFuncWithParam:_setterFunc:_setterPlain,b;if(_isString$2(n)&&(~n.indexOf("random(")&&(n=_replaceRandom(n)),n.charAt(1)==="="&&(b=_parseRelative(f,n)+(getUnit(f)||0),(b||b===0)&&(n=b))),!c||f!==n||_forceAllPropTweens)return!isNaN(f*n)&&n!==""?(b=new PropTween$1(this._pt,o,r,+f||0,n-(f||0),typeof u=="boolean"?_renderBoolean:_renderPlain,0,m),d&&(b.fp=d),s&&b.modifier(s,this,o),this._pt=b):(!u&&!(r in o)&&_missingPlugin(r,n),_addComplexStringPropTween.call(this,o,r,f,n,m,l||_config.stringFilter,d))},_processVars=function t(o,r,e,n,a){if(_isFunction$1(o)&&(o=_parseFuncOrString(o,a,r,e,n)),!_isObject$1(o)||o.style&&o.nodeType||_isArray(o)||_isTypedArray(o))return _isString$2(o)?_parseFuncOrString(o,a,r,e,n):o;var i={},s;for(s in o)i[s]=_parseFuncOrString(o[s],a,r,e,n);return i},_checkPlugin=function t(o,r,e,n,a,i){var s,l,d,c;if(_plugins[o]&&(s=new _plugins[o]).init(a,s.rawVars?r[o]:_processVars(r[o],n,a,i,e),e,n,i)!==!1&&(e._pt=l=new PropTween$1(e._pt,a,o,0,1,s.render,s,0,s.priority),e!==_quickTween))for(d=e._ptLookup[e._targets.indexOf(a)],c=s._props.length;c--;)d[s._props[c]]=l;return s},_overwritingTween,_forceAllPropTweens,_initTween=function t(o,r,e){var n=o.vars,a=n.ease,i=n.startAt,s=n.immediateRender,l=n.lazy,d=n.onUpdate,c=n.runBackwards,u=n.yoyoEase,f=n.keyframes,m=n.autoRevert,b=o._dur,y=o._startAt,_=o._targets,S=o.parent,C=S&&S.data==="nested"?S.vars.targets:_,T=o._overwrite==="auto"&&!_suppressOverwrites$1,x=o.timeline,k,E,w,D,N,F,V,A,M,O,R,I,j;if(x&&(!f||!a)&&(a="none"),o._ease=_parseEase(a,_defaults$1.ease),o._yEase=u?_invertEase(_parseEase(u===!0?a:u,_defaults$1.ease)):0,u&&o._yoyo&&!o._repeat&&(u=o._yEase,o._yEase=o._ease,o._ease=u),o._from=!x&&!!n.runBackwards,!x||f&&!n.stagger){if(A=_[0]?_getCache(_[0]).harness:0,I=A&&n[A.prop],k=_copyExcluding(n,_reservedProps),y&&(y._zTime<0&&y.progress(1),r<0&&c&&s&&!m?y.render(-1,!0):y.revert(c&&b?_revertConfigNoKill:_startAtRevertConfig),y._lazy=0),i){if(_removeFromParent(o._startAt=Tween.set(_,_setDefaults$1({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:!y&&_isNotFalse(l),startAt:null,delay:0,onUpdate:d&&function(){return _callback$1(o,"onUpdate")},stagger:0},i))),o._startAt._dp=0,o._startAt._sat=o,r<0&&(_reverting$2||!s&&!m)&&o._startAt.revert(_revertConfigNoKill),s&&b&&r<=0&&e<=0){r&&(o._zTime=r);return}}else if(c&&b&&!y){if(r&&(s=!1),w=_setDefaults$1({overwrite:!1,data:"isFromStart",lazy:s&&!y&&_isNotFalse(l),immediateRender:s,stagger:0,parent:S},k),I&&(w[A.prop]=I),_removeFromParent(o._startAt=Tween.set(_,w)),o._startAt._dp=0,o._startAt._sat=o,r<0&&(_reverting$2?o._startAt.revert(_revertConfigNoKill):o._startAt.render(-1,!0)),o._zTime=r,!s)t(o._startAt,_tinyNum,_tinyNum);else if(!r)return}for(o._pt=o._ptCache=0,l=b&&_isNotFalse(l)||l&&!b,E=0;E<_.length;E++){if(N=_[E],V=N._gsap||_harness(_)[E]._gsap,o._ptLookup[E]=O={},_lazyLookup[V.id]&&_lazyTweens.length&&_lazyRender(),R=C===_?E:C.indexOf(N),A&&(M=new A).init(N,I||k,o,R,C)!==!1&&(o._pt=D=new PropTween$1(o._pt,N,M.name,0,1,M.render,M,0,M.priority),M._props.forEach(function(H){O[H]=D}),M.priority&&(F=1)),!A||I)for(w in k)_plugins[w]&&(M=_checkPlugin(w,k,o,R,N,C))?M.priority&&(F=1):O[w]=D=_addPropTween.call(o,N,w,"get",k[w],R,C,0,n.stringFilter);o._op&&o._op[E]&&o.kill(N,o._op[E]),T&&o._pt&&(_overwritingTween=o,_globalTimeline.killTweensOf(N,O,o.globalTime(r)),j=!o.parent,_overwritingTween=0),o._pt&&l&&(_lazyLookup[V.id]=1)}F&&_sortPropTweensByPriority(o),o._onInit&&o._onInit(o)}o._onUpdate=d,o._initted=(!o._op||o._pt)&&!j,f&&r<=0&&x.render(_bigNum$1,!0,!0)},_updatePropTweens=function t(o,r,e,n,a,i,s,l){var d=(o._pt&&o._ptCache||(o._ptCache={}))[r],c,u,f,m;if(!d)for(d=o._ptCache[r]=[],f=o._ptLookup,m=o._targets.length;m--;){if(c=f[m][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return _forceAllPropTweens=1,o.vars[r]="+=0",_initTween(o,s),_forceAllPropTweens=0,l?_warn(r+" not eligible for reset"):1;d.push(c)}for(m=d.length;m--;)u=d[m],c=u._pt||u,c.s=(n||n===0)&&!a?n:c.s+(n||0)+i*c.c,c.c=e-c.s,u.e&&(u.e=_round$2(e)+getUnit(u.e)),u.b&&(u.b=c.s+getUnit(u.b))},_addAliasesToVars=function t(o,r){var e=o[0]?_getCache(o[0]).harness:0,n=e&&e.aliases,a,i,s,l;if(!n)return r;a=_merge({},r);for(i in n)if(i in a)for(l=n[i].split(","),s=l.length;s--;)a[l[s]]=a[i];return a},_parseKeyframe=function t(o,r,e,n){var a=r.ease||n||"power1.inOut",i,s;if(_isArray(r))s=e[o]||(e[o]=[]),r.forEach(function(l,d){return s.push({t:d/(r.length-1)*100,v:l,e:a})});else for(i in r)s=e[i]||(e[i]=[]),i==="ease"||s.push({t:parseFloat(o),v:r[i],e:a})},_parseFuncOrString=function t(o,r,e,n,a){return _isFunction$1(o)?o.call(r,e,n,a):_isString$2(o)&&~o.indexOf("random(")?_replaceRandom(o):o},_staggerTweenProps=_callbackNames+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",_staggerPropsToSkip={};_forEachName(_staggerTweenProps+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return _staggerPropsToSkip[t]=1});var Tween=function(t){_inheritsLoose(o,t);function o(e,n,a,i){var s;typeof n=="number"&&(a.duration=n,n=a,a=null),s=t.call(this,i?n:_inheritDefaults(n))||this;var l=s.vars,d=l.duration,c=l.delay,u=l.immediateRender,f=l.stagger,m=l.overwrite,b=l.keyframes,y=l.defaults,_=l.scrollTrigger,S=l.yoyoEase,C=n.parent||_globalTimeline,T=(_isArray(e)||_isTypedArray(e)?_isNumber$2(e[0]):"length"in n)?[e]:toArray$2(e),x,k,E,w,D,N,F,V;if(s._targets=T.length?_harness(T):_warn("GSAP target "+e+" not found. https://gsap.com",!_config.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=m,b||f||_isFuncOrString(d)||_isFuncOrString(c)){if(n=s.vars,x=s.timeline=new Timeline({data:"nested",defaults:y||{},targets:C&&C.data==="nested"?C.vars.targets:T}),x.kill(),x.parent=x._dp=_assertThisInitialized(s),x._start=0,f||_isFuncOrString(d)||_isFuncOrString(c)){if(w=T.length,F=f&&distribute(f),_isObject$1(f))for(D in f)~_staggerTweenProps.indexOf(D)&&(V||(V={}),V[D]=f[D]);for(k=0;k<w;k++)E=_copyExcluding(n,_staggerPropsToSkip),E.stagger=0,S&&(E.yoyoEase=S),V&&_merge(E,V),N=T[k],E.duration=+_parseFuncOrString(d,_assertThisInitialized(s),k,N,T),E.delay=(+_parseFuncOrString(c,_assertThisInitialized(s),k,N,T)||0)-s._delay,!f&&w===1&&E.delay&&(s._delay=c=E.delay,s._start+=c,E.delay=0),x.to(N,E,F?F(k,N,T):0),x._ease=_easeMap.none;x.duration()?d=c=0:s.timeline=0}else if(b){_inheritDefaults(_setDefaults$1(x.vars.defaults,{ease:"none"})),x._ease=_parseEase(b.ease||n.ease||"none");var A=0,M,O,R;if(_isArray(b))b.forEach(function(I){return x.to(T,I,">")}),x.duration();else{E={};for(D in b)D==="ease"||D==="easeEach"||_parseKeyframe(D,b[D],E,b.easeEach);for(D in E)for(M=E[D].sort(function(I,j){return I.t-j.t}),A=0,k=0;k<M.length;k++)O=M[k],R={ease:O.e,duration:(O.t-(k?M[k-1].t:0))/100*d},R[D]=O.v,x.to(T,R,A),A+=R.duration;x.duration()<d&&x.to({},{duration:d-x.duration()})}}d||s.duration(d=x.duration())}else s.timeline=0;return m===!0&&!_suppressOverwrites$1&&(_overwritingTween=_assertThisInitialized(s),_globalTimeline.killTweensOf(T),_overwritingTween=0),_addToTimeline(C,_assertThisInitialized(s),a),n.reversed&&s.reverse(),n.paused&&s.paused(!0),(u||!d&&!b&&s._start===_roundPrecise$1(C._time)&&_isNotFalse(u)&&_hasNoPausedAncestors(_assertThisInitialized(s))&&C.data!=="nested")&&(s._tTime=-_tinyNum,s.render(Math.max(0,-c)||0)),_&&_scrollTrigger(_assertThisInitialized(s),_),s}var r=o.prototype;return r.render=function(n,a,i){var s=this._time,l=this._tDur,d=this._dur,c=n<0,u=n>l-_tinyNum&&!c?l:n<_tinyNum?0:n,f,m,b,y,_,S,C,T,x;if(!d)_renderZeroDurationTween(this,n,a,i);else if(u!==this._tTime||!n||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c){if(f=u,T=this.timeline,this._repeat){if(y=d+this._rDelay,this._repeat<-1&&c)return this.totalTime(y*100+n,a,i);if(f=_roundPrecise$1(u%y),u===l?(b=this._repeat,f=d):(b=~~(u/y),b&&b===_roundPrecise$1(u/y)&&(f=d,b--),f>d&&(f=d)),S=this._yoyo&&b&1,S&&(x=this._yEase,f=d-f),_=_animationCycle(this._tTime,y),f===s&&!i&&this._initted&&b===_)return this._tTime=u,this;b!==_&&(T&&this._yEase&&_propagateYoyoEase(T,S),this.vars.repeatRefresh&&!S&&!this._lock&&this._time!==y&&this._initted&&(this._lock=i=1,this.render(_roundPrecise$1(y*b),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,c?n:f,i,a,u))return this._tTime=0,this;if(s!==this._time&&!(i&&this.vars.repeatRefresh&&b!==_))return this;if(d!==this._dur)return this.render(n,a,i)}if(this._tTime=u,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=C=(x||this._ease)(f/d),this._from&&(this.ratio=C=1-C),f&&!s&&!a&&!b&&(_callback$1(this,"onStart"),this._tTime!==u))return this;for(m=this._pt;m;)m.r(C,m.d),m=m._next;T&&T.render(n<0?n:T._dur*T._ease(f/this._dur),a,i)||this._startAt&&(this._zTime=n),this._onUpdate&&!a&&(c&&_rewindStartAt(this,n,a,i),_callback$1(this,"onUpdate")),this._repeat&&b!==_&&this.vars.onRepeat&&!a&&this.parent&&_callback$1(this,"onRepeat"),(u===this._tDur||!u)&&this._tTime===u&&(c&&!this._onUpdate&&_rewindStartAt(this,n,!0,!0),(n||!d)&&(u===this._tDur&&this._ts>0||!u&&this._ts<0)&&_removeFromParent(this,1),!a&&!(c&&!s)&&(u||s||S)&&(_callback$1(this,u===l?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),t.prototype.invalidate.call(this,n)},r.resetTo=function(n,a,i,s,l){_tickerActive||_ticker.wake(),this._ts||this.play();var d=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||_initTween(this,d),c=this._ease(d/this._dur),_updatePropTweens(this,n,a,i,s,c,d,l)?this.resetTo(n,a,i,s,1):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(n,a){if(a===void 0&&(a="all"),!n&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?_interrupt(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(n,a,_overwritingTween&&_overwritingTween.vars.overwrite!==!0)._first||_interrupt(this),this.parent&&i!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/i,0,1),this}var s=this._targets,l=n?toArray$2(n):s,d=this._ptLookup,c=this._pt,u,f,m,b,y,_,S;if((!a||a==="all")&&_arraysMatch(s,l))return a==="all"&&(this._pt=0),_interrupt(this);for(u=this._op=this._op||[],a!=="all"&&(_isString$2(a)&&(y={},_forEachName(a,function(C){return y[C]=1}),a=y),a=_addAliasesToVars(s,a)),S=s.length;S--;)if(~l.indexOf(s[S])){f=d[S],a==="all"?(u[S]=a,b=f,m={}):(m=u[S]=u[S]||{},b=a);for(y in b)_=f&&f[y],_&&((!("kill"in _.d)||_.d.kill(y)===!0)&&_removeLinkedListItem(this,_,"_pt"),delete f[y]),m!=="all"&&(m[y]=1)}return this._initted&&!this._pt&&c&&_interrupt(this),this},o.to=function(n,a){return new o(n,a,arguments[2])},o.from=function(n,a){return _createTweenType(1,arguments)},o.delayedCall=function(n,a,i,s){return new o(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:a,onReverseComplete:a,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:s})},o.fromTo=function(n,a,i){return _createTweenType(2,arguments)},o.set=function(n,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new o(n,a)},o.killTweensOf=function(n,a,i){return _globalTimeline.killTweensOf(n,a,i)},o}(Animation);_setDefaults$1(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_forEachName("staggerTo,staggerFrom,staggerFromTo",function(t){Tween[t]=function(){var o=new Timeline,r=_slice.call(arguments,0);return r.splice(t==="staggerFromTo"?5:4,0,0),o[t].apply(o,r)}});var _setterPlain=function t(o,r,e){return o[r]=e},_setterFunc=function t(o,r,e){return o[r](e)},_setterFuncWithParam=function t(o,r,e,n){return o[r](n.fp,e)},_setterAttribute=function t(o,r,e){return o.setAttribute(r,e)},_getSetter=function t(o,r){return _isFunction$1(o[r])?_setterFunc:_isUndefined$1(o[r])&&o.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function t(o,r){return r.set(r.t,r.p,Math.round((r.s+r.c*o)*1e6)/1e6,r)},_renderBoolean=function t(o,r){return r.set(r.t,r.p,!!(r.s+r.c*o),r)},_renderComplexString=function t(o,r){var e=r._pt,n="";if(!o&&r.b)n=r.b;else if(o===1&&r.e)n=r.e;else{for(;e;)n=e.p+(e.m?e.m(e.s+e.c*o):Math.round((e.s+e.c*o)*1e4)/1e4)+n,e=e._next;n+=r.c}r.set(r.t,r.p,n,r)},_renderPropTweens=function t(o,r){for(var e=r._pt;e;)e.r(o,e.d),e=e._next},_addPluginModifier=function t(o,r,e,n){for(var a=this._pt,i;a;)i=a._next,a.p===n&&a.modifier(o,r,e),a=i},_killPropTweensOf=function t(o){for(var r=this._pt,e,n;r;)n=r._next,r.p===o&&!r.op||r.op===o?_removeLinkedListItem(this,r,"_pt"):r.dep||(e=1),r=n;return!e},_setterWithModifier=function t(o,r,e,n){n.mSet(o,r,n.m.call(n.tween,e,n.mt),n)},_sortPropTweensByPriority=function t(o){for(var r=o._pt,e,n,a,i;r;){for(e=r._next,n=a;n&&n.pr>r.pr;)n=n._next;(r._prev=n?n._prev:i)?r._prev._next=r:a=r,(r._next=n)?n._prev=r:i=r,r=e}o._pt=a},PropTween$1=function(){function t(r,e,n,a,i,s,l,d,c){this.t=e,this.s=a,this.c=i,this.p=n,this.r=s||_renderPlain,this.d=l||this,this.set=d||_setterPlain,this.pr=c||0,this._next=r,r&&(r._prev=this)}var o=t.prototype;return o.modifier=function(e,n,a){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=e,this.mt=a,this.tween=n},t}();_forEachName(_callbackNames+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return _reservedProps[t]=1});_globals.TweenMax=_globals.TweenLite=Tween;_globals.TimelineLite=_globals.TimelineMax=Timeline;_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults$1,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});_config.stringFilter=_colorStringFilter;var _media=[],_listeners$1={},_emptyArray$1=[],_lastMediaTime=0,_contextID=0,_dispatch$1=function t(o){return(_listeners$1[o]||_emptyArray$1).map(function(r){return r()})},_onMediaChange=function t(){var o=Date.now(),r=[];o-_lastMediaTime>2&&(_dispatch$1("matchMediaInit"),_media.forEach(function(e){var n=e.queries,a=e.conditions,i,s,l,d;for(s in n)i=_win$4.matchMedia(n[s]).matches,i&&(l=1),i!==a[s]&&(a[s]=i,d=1);d&&(e.revert(),l&&r.push(e))}),_dispatch$1("matchMediaRevert"),r.forEach(function(e){return e.onMatch(e,function(n){return e.add(null,n)})}),_lastMediaTime=o,_dispatch$1("matchMedia"))},Context=function(){function t(r,e){this.selector=e&&selector(e),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,r&&this.add(r)}var o=t.prototype;return o.add=function(e,n,a){_isFunction$1(e)&&(a=n,n=e,e=_isFunction$1);var i=this,s=function(){var d=_context$2,c=i.selector,u;return d&&d!==i&&d.data.push(i),a&&(i.selector=selector(a)),_context$2=i,u=n.apply(i,arguments),_isFunction$1(u)&&i._r.push(u),_context$2=d,i.selector=c,i.isReverted=!1,u};return i.last=s,e===_isFunction$1?s(i,function(l){return i.add(null,l)}):e?i[e]=s:s},o.ignore=function(e){var n=_context$2;_context$2=null,e(this),_context$2=n},o.getTweens=function(){var e=[];return this.data.forEach(function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof Tween&&!(n.parent&&n.parent.data==="nested")&&e.push(n)}),e},o.clear=function(){this._r.length=this.data.length=0},o.kill=function(e,n){var a=this;if(e?function(){for(var s=a.getTweens(),l=a.data.length,d;l--;)d=a.data[l],d.data==="isFlip"&&(d.revert(),d.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,u){return u.g-c.g||-1/0}).forEach(function(c){return c.t.revert(e)}),l=a.data.length;l--;)d=a.data[l],d instanceof Timeline?d.data!=="nested"&&(d.scrollTrigger&&d.scrollTrigger.revert(),d.kill()):!(d instanceof Tween)&&d.revert&&d.revert(e);a._r.forEach(function(c){return c(e,a)}),a.isReverted=!0}():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),n)for(var i=_media.length;i--;)_media[i].id===this.id&&_media.splice(i,1)},o.revert=function(e){this.kill(e||{})},t}(),MatchMedia=function(){function t(r){this.contexts=[],this.scope=r,_context$2&&_context$2.data.push(this)}var o=t.prototype;return o.add=function(e,n,a){_isObject$1(e)||(e={matches:e});var i=new Context(0,a||this.scope),s=i.conditions={},l,d,c;_context$2&&!i.selector&&(i.selector=_context$2.selector),this.contexts.push(i),n=i.add("onMatch",n),i.queries=e;for(d in e)d==="all"?c=1:(l=_win$4.matchMedia(e[d]),l&&(_media.indexOf(i)<0&&_media.push(i),(s[d]=l.matches)&&(c=1),l.addListener?l.addListener(_onMediaChange):l.addEventListener("change",_onMediaChange)));return c&&n(i,function(u){return i.add(null,u)}),this},o.revert=function(e){this.kill(e||{})},o.kill=function(e){this.contexts.forEach(function(n){return n.kill(e,!0)})},t}(),_gsap={registerPlugin:function t(){for(var o=arguments.length,r=new Array(o),e=0;e<o;e++)r[e]=arguments[e];r.forEach(function(n){return _createPlugin(n)})},timeline:function t(o){return new Timeline(o)},getTweensOf:function t(o,r){return _globalTimeline.getTweensOf(o,r)},getProperty:function t(o,r,e,n){_isString$2(o)&&(o=toArray$2(o)[0]);var a=_getCache(o||{}).get,i=e?_passThrough$1:_numericIfPossible;return e==="native"&&(e=""),o&&(r?i((_plugins[r]&&_plugins[r].get||a)(o,r,e,n)):function(s,l,d){return i((_plugins[s]&&_plugins[s].get||a)(o,s,l,d))})},quickSetter:function t(o,r,e){if(o=toArray$2(o),o.length>1){var n=o.map(function(c){return gsap$3.quickSetter(c,r,e)}),a=n.length;return function(c){for(var u=a;u--;)n[u](c)}}o=o[0]||{};var i=_plugins[r],s=_getCache(o),l=s.harness&&(s.harness.aliases||{})[r]||r,d=i?function(c){var u=new i;_quickTween._pt=0,u.init(o,e?c+e:c,_quickTween,0,[o]),u.render(1,u),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:s.set(o,l);return i?d:function(c){return d(o,l,e?c+e:c,s,1)}},quickTo:function t(o,r,e){var n,a=gsap$3.to(o,_merge((n={},n[r]="+=0.1",n.paused=!0,n),e||{})),i=function(l,d,c){return a.resetTo(r,l,d,c)};return i.tween=a,i},isTweening:function t(o){return _globalTimeline.getTweensOf(o,!0).length>0},defaults:function t(o){return o&&o.ease&&(o.ease=_parseEase(o.ease,_defaults$1.ease)),_mergeDeep(_defaults$1,o||{})},config:function t(o){return _mergeDeep(_config,o||{})},registerEffect:function t(o){var r=o.name,e=o.effect,n=o.plugins,a=o.defaults,i=o.extendTimeline;(n||"").split(",").forEach(function(s){return s&&!_plugins[s]&&!_globals[s]&&_warn(r+" effect requires "+s+" plugin.")}),_effects[r]=function(s,l,d){return e(toArray$2(s),_setDefaults$1(l||{},a),d)},i&&(Timeline.prototype[r]=function(s,l,d){return this.add(_effects[r](s,_isObject$1(l)?l:(d=l)&&{},this),d)})},registerEase:function t(o,r){_easeMap[o]=_parseEase(r)},parseEase:function t(o,r){return arguments.length?_parseEase(o,r):_easeMap},getById:function t(o){return _globalTimeline.getById(o)},exportRoot:function t(o,r){o===void 0&&(o={});var e=new Timeline(o),n,a;for(e.smoothChildTiming=_isNotFalse(o.smoothChildTiming),_globalTimeline.remove(e),e._dp=0,e._time=e._tTime=_globalTimeline._time,n=_globalTimeline._first;n;)a=n._next,(r||!(!n._dur&&n instanceof Tween&&n.vars.onComplete===n._targets[0]))&&_addToTimeline(e,n,n._start-n._delay),n=a;return _addToTimeline(_globalTimeline,e,0),e},context:function t(o,r){return o?new Context(o,r):_context$2},matchMedia:function t(o){return new MatchMedia(o)},matchMediaRefresh:function t(){return _media.forEach(function(o){var r=o.conditions,e,n;for(n in r)r[n]&&(r[n]=!1,e=1);e&&o.revert()})||_onMediaChange()},addEventListener:function t(o,r){var e=_listeners$1[o]||(_listeners$1[o]=[]);~e.indexOf(r)||e.push(r)},removeEventListener:function t(o,r){var e=_listeners$1[o],n=e&&e.indexOf(r);n>=0&&e.splice(n,1)},utils:{wrap,wrapYoyo,distribute,random,snap,normalize:normalize$1,getUnit,clamp:clamp$1,splitColor,toArray:toArray$2,selector,mapRange,pipe,unitize,interpolate,shuffle},install:_install,effects:_effects,ticker:_ticker,updateRoot:Timeline.updateRoot,plugins:_plugins,globalTimeline:_globalTimeline,core:{PropTween:PropTween$1,globals:_addGlobal,Tween,Timeline,Animation,getCache:_getCache,_removeLinkedListItem,reverting:function t(){return _reverting$2},context:function t(o){return o&&_context$2&&(_context$2.data.push(o),o._ctx=_context$2),_context$2},suppressOverwrites:function t(o){return _suppressOverwrites$1=o}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return _gsap[t]=Tween[t]});_ticker.add(Timeline.updateRoot);_quickTween=_gsap.to({},{duration:0});var _getPluginPropTween=function t(o,r){for(var e=o._pt;e&&e.p!==r&&e.op!==r&&e.fp!==r;)e=e._next;return e},_addModifiers=function t(o,r){var e=o._targets,n,a,i;for(n in r)for(a=e.length;a--;)i=o._ptLookup[a][n],i&&(i=i.d)&&(i._pt&&(i=_getPluginPropTween(i,n)),i&&i.modifier&&i.modifier(r[n],o,e[a],n))},_buildModifierPlugin=function t(o,r){return{name:o,rawVars:1,init:function(n,a,i){i._onInit=function(s){var l,d;if(_isString$2(a)&&(l={},_forEachName(a,function(c){return l[c]=1}),a=l),r){l={};for(d in a)l[d]=r(a[d]);a=l}_addModifiers(s,a)}}}},gsap$3=_gsap.registerPlugin({name:"attr",init:function t(o,r,e,n,a){var i,s,l;this.tween=e;for(i in r)l=o.getAttribute(i)||"",s=this.add(o,"setAttribute",(l||0)+"",r[i],n,a,0,0,i),s.op=i,s.b=l,this._props.push(i)},render:function t(o,r){for(var e=r._pt;e;)_reverting$2?e.set(e.t,e.p,e.b,e):e.r(o,e.d),e=e._next}},{name:"endArray",init:function t(o,r){for(var e=r.length;e--;)this.add(o,e,o[e]||0,r[e],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||_gsap;Tween.version=Timeline.version=gsap$3.version="3.12.5";_coreReady=1;_windowExists$2()&&_wake();_easeMap.Power0;_easeMap.Power1;_easeMap.Power2;_easeMap.Power3;_easeMap.Power4;_easeMap.Linear;_easeMap.Quad;_easeMap.Cubic;_easeMap.Quart;_easeMap.Quint;_easeMap.Strong;_easeMap.Elastic;_easeMap.Back;_easeMap.SteppedEase;_easeMap.Bounce;_easeMap.Sine;_easeMap.Expo;_easeMap.Circ;/*!
1014 * CSSPlugin 3.12.5
1015 * https://gsap.com
1016 *
1017 * Copyright 2008-2024, GreenSock. All rights reserved.
1018 * Subject to the terms at https://gsap.com/standard-license or for
1019 * Club GSAP members, the agreement issued with that membership.
1020 * @author: Jack Doyle, [email protected]
1021*/var _win$3,_doc$3,_docElement$1,_pluginInitted,_tempDiv,_recentSetterPlugin,_reverting$1,_windowExists$1=function t(){return typeof window<"u"},_transformProps={},_RAD2DEG$1=180/Math.PI,_DEG2RAD$2=Math.PI/180,_atan2$1=Math.atan2,_bigNum=1e8,_capsExp$1=/([A-Z])/g,_horizontalExp=/(left|right|width|margin|padding|x)/i,_complexExp=/[\s,\(]\S/,_propertyAliases={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function t(o,r){return r.set(r.t,r.p,Math.round((r.s+r.c*o)*1e4)/1e4+r.u,r)},_renderPropWithEnd=function t(o,r){return r.set(r.t,r.p,o===1?r.e:Math.round((r.s+r.c*o)*1e4)/1e4+r.u,r)},_renderCSSPropWithBeginning=function t(o,r){return r.set(r.t,r.p,o?Math.round((r.s+r.c*o)*1e4)/1e4+r.u:r.b,r)},_renderRoundedCSSProp=function t(o,r){var e=r.s+r.c*o;r.set(r.t,r.p,~~(e+(e<0?-.5:.5))+r.u,r)},_renderNonTweeningValue=function t(o,r){return r.set(r.t,r.p,o?r.e:r.b,r)},_renderNonTweeningValueOnlyAtEnd=function t(o,r){return r.set(r.t,r.p,o!==1?r.b:r.e,r)},_setterCSSStyle=function t(o,r,e){return o.style[r]=e},_setterCSSProp=function t(o,r,e){return o.style.setProperty(r,e)},_setterTransform=function t(o,r,e){return o._gsap[r]=e},_setterScale=function t(o,r,e){return o._gsap.scaleX=o._gsap.scaleY=e},_setterScaleWithRender=function t(o,r,e,n,a){var i=o._gsap;i.scaleX=i.scaleY=e,i.renderTransform(a,i)},_setterTransformWithRender=function t(o,r,e,n,a){var i=o._gsap;i[r]=e,i.renderTransform(a,i)},_transformProp$2="transform",_transformOriginProp$1=_transformProp$2+"Origin",_saveStyle=function t(o,r){var e=this,n=this.target,a=n.style,i=n._gsap;if(o in _transformProps&&a){if(this.tfm=this.tfm||{},o!=="transform")o=_propertyAliases[o]||o,~o.indexOf(",")?o.split(",").forEach(function(s){return e.tfm[s]=_get(n,s)}):this.tfm[o]=i.x?i[o]:_get(n,o),o===_transformOriginProp$1&&(this.tfm.zOrigin=i.zOrigin);else return _propertyAliases.transform.split(",").forEach(function(s){return t.call(e,s,r)});if(this.props.indexOf(_transformProp$2)>=0)return;i.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp$1,r,"")),o=_transformProp$2}(a||r)&&this.props.push(o,r,a[o])},_removeIndependentTransforms=function t(o){o.translate&&(o.removeProperty("translate"),o.removeProperty("scale"),o.removeProperty("rotate"))},_revertStyle=function t(){var o=this.props,r=this.target,e=r.style,n=r._gsap,a,i;for(a=0;a<o.length;a+=3)o[a+1]?r[o[a]]=o[a+2]:o[a+2]?e[o[a]]=o[a+2]:e.removeProperty(o[a].substr(0,2)==="--"?o[a]:o[a].replace(_capsExp$1,"-$1").toLowerCase());if(this.tfm){for(i in this.tfm)n[i]=this.tfm[i];n.svg&&(n.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=_reverting$1(),(!a||!a.isStart)&&!e[_transformProp$2]&&(_removeIndependentTransforms(e),n.zOrigin&&e[_transformOriginProp$1]&&(e[_transformOriginProp$1]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},_getStyleSaver$1=function t(o,r){var e={target:o,props:[],revert:_revertStyle,save:_saveStyle};return o._gsap||gsap$3.core.getCache(o),r&&r.split(",").forEach(function(n){return e.save(n)}),e},_supports3D,_createElement=function t(o,r){var e=_doc$3.createElementNS?_doc$3.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),o):_doc$3.createElement(o);return e&&e.style?e:_doc$3.createElement(o)},_getComputedProperty=function t(o,r,e){var n=getComputedStyle(o);return n[r]||n.getPropertyValue(r.replace(_capsExp$1,"-$1").toLowerCase())||n.getPropertyValue(r)||!e&&t(o,_checkPropPrefix(r)||r,1)||""},_prefixes="O,Moz,ms,Ms,Webkit".split(","),_checkPropPrefix=function t(o,r,e){var n=r||_tempDiv,a=n.style,i=5;if(o in a&&!e)return o;for(o=o.charAt(0).toUpperCase()+o.substr(1);i--&&!(_prefixes[i]+o in a););return i<0?null:(i===3?"ms":i>=0?_prefixes[i]:"")+o},_initCore$1=function t(){_windowExists$1()&&window.document&&(_win$3=window,_doc$3=_win$3.document,_docElement$1=_doc$3.documentElement,_tempDiv=_createElement("div")||{style:{}},_createElement("div"),_transformProp$2=_checkPropPrefix(_transformProp$2),_transformOriginProp$1=_transformProp$2+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),_reverting$1=gsap$3.core.reverting,_pluginInitted=1)},_getBBoxHack=function t(o){var r=_createElement("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),e=this.parentNode,n=this.nextSibling,a=this.style.cssText,i;if(_docElement$1.appendChild(r),r.appendChild(this),this.style.display="block",o)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(i=this._gsapBBox());return e&&(n?e.insertBefore(this,n):e.appendChild(this)),_docElement$1.removeChild(r),this.style.cssText=a,i},_getAttributeFallbacks=function t(o,r){for(var e=r.length;e--;)if(o.hasAttribute(r[e]))return o.getAttribute(r[e])},_getBBox=function t(o){var r;try{r=o.getBBox()}catch{r=_getBBoxHack.call(o,!0)}return r&&(r.width||r.height)||o.getBBox===_getBBoxHack||(r=_getBBoxHack.call(o,!0)),r&&!r.width&&!r.x&&!r.y?{x:+_getAttributeFallbacks(o,["x","cx","x1"])||0,y:+_getAttributeFallbacks(o,["y","cy","y1"])||0,width:0,height:0}:r},_isSVG=function t(o){return!!(o.getCTM&&(!o.parentNode||o.ownerSVGElement)&&_getBBox(o))},_removeProperty=function t(o,r){if(r){var e=o.style,n;r in _transformProps&&r!==_transformOriginProp$1&&(r=_transformProp$2),e.removeProperty?(n=r.substr(0,2),(n==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),e.removeProperty(n==="--"?r:r.replace(_capsExp$1,"-$1").toLowerCase())):e.removeAttribute(r)}},_addNonTweeningPT=function t(o,r,e,n,a,i){var s=new PropTween$1(o._pt,r,e,0,1,i?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return o._pt=s,s.b=n,s.e=a,o._props.push(e),s},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function t(o,r,e,n){var a=parseFloat(e)||0,i=(e+"").trim().substr((a+"").length)||"px",s=_tempDiv.style,l=_horizontalExp.test(r),d=o.tagName.toLowerCase()==="svg",c=(d?"client":"offset")+(l?"Width":"Height"),u=100,f=n==="px",m=n==="%",b,y,_,S;if(n===i||!a||_nonConvertibleUnits[n]||_nonConvertibleUnits[i])return a;if(i!=="px"&&!f&&(a=t(o,r,e,"px")),S=o.getCTM&&_isSVG(o),(m||i==="%")&&(_transformProps[r]||~r.indexOf("adius")))return b=S?o.getBBox()[l?"width":"height"]:o[c],_round$2(m?a/b*u:a/100*b);if(s[l?"width":"height"]=u+(f?i:n),y=~r.indexOf("adius")||n==="em"&&o.appendChild&&!d?o:o.parentNode,S&&(y=(o.ownerSVGElement||{}).parentNode),(!y||y===_doc$3||!y.appendChild)&&(y=_doc$3.body),_=y._gsap,_&&m&&_.width&&l&&_.time===_ticker.time&&!_.uncache)return _round$2(a/_.width*u);if(m&&(r==="height"||r==="width")){var C=o.style[r];o.style[r]=u+n,b=o[c],C?o.style[r]=C:_removeProperty(o,r)}else(m||i==="%")&&!_nonStandardLayouts[_getComputedProperty(y,"display")]&&(s.position=_getComputedProperty(o,"position")),y===o&&(s.position="static"),y.appendChild(_tempDiv),b=_tempDiv[c],y.removeChild(_tempDiv),s.position="absolute";return l&&m&&(_=_getCache(y),_.time=_ticker.time,_.width=y[c]),_round$2(f?b*a/u:b&&a?u/b*a:0)},_get=function t(o,r,e,n){var a;return _pluginInitted||_initCore$1(),r in _propertyAliases&&r!=="transform"&&(r=_propertyAliases[r],~r.indexOf(",")&&(r=r.split(",")[0])),_transformProps[r]&&r!=="transform"?(a=_parseTransform(o,n),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:_firstTwoOnly(_getComputedProperty(o,_transformOriginProp$1))+" "+a.zOrigin+"px"):(a=o.style[r],(!a||a==="auto"||n||~(a+"").indexOf("calc("))&&(a=_specialProps[r]&&_specialProps[r](o,r,e)||_getComputedProperty(o,r)||_getProperty(o,r)||(r==="opacity"?1:0))),e&&!~(a+"").trim().indexOf(" ")?_convertToUnit(o,r,a,e)+e:a},_tweenComplexCSSString=function t(o,r,e,n){if(!e||e==="none"){var a=_checkPropPrefix(r,o,1),i=a&&_getComputedProperty(o,a,1);i&&i!==e?(r=a,e=i):r==="borderColor"&&(e=_getComputedProperty(o,"borderTopColor"))}var s=new PropTween$1(this._pt,o.style,r,0,1,_renderComplexString),l=0,d=0,c,u,f,m,b,y,_,S,C,T,x,k;if(s.b=e,s.e=n,e+="",n+="",n==="auto"&&(y=o.style[r],o.style[r]=n,n=_getComputedProperty(o,r)||n,y?o.style[r]=y:_removeProperty(o,r)),c=[e,n],_colorStringFilter(c),e=c[0],n=c[1],f=e.match(_numWithUnitExp)||[],k=n.match(_numWithUnitExp)||[],k.length){for(;u=_numWithUnitExp.exec(n);)_=u[0],C=n.substring(l,u.index),b?b=(b+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(b=1),_!==(y=f[d++]||"")&&(m=parseFloat(y)||0,x=y.substr((m+"").length),_.charAt(1)==="="&&(_=_parseRelative(m,_)+x),S=parseFloat(_),T=_.substr((S+"").length),l=_numWithUnitExp.lastIndex-T.length,T||(T=T||_config.units[r]||x,l===n.length&&(n+=T,s.e+=T)),x!==T&&(m=_convertToUnit(o,r,y,T)||0),s._pt={_next:s._pt,p:C||d===1?C:",",s:m,c:S-m,m:b&&b<4||r==="zIndex"?Math.round:0});s.c=l<n.length?n.substring(l,n.length):""}else s.r=r==="display"&&n==="none"?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue;return _relExp.test(n)&&(s.e=0),this._pt=s,s},_keywordToPercent={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_convertKeywordsToPercentages=function t(o){var r=o.split(" "),e=r[0],n=r[1]||"50%";return(e==="top"||e==="bottom"||n==="left"||n==="right")&&(o=e,e=n,n=o),r[0]=_keywordToPercent[e]||e,r[1]=_keywordToPercent[n]||n,r.join(" ")},_renderClearProps=function t(o,r){if(r.tween&&r.tween._time===r.tween._dur){var e=r.t,n=e.style,a=r.u,i=e._gsap,s,l,d;if(a==="all"||a===!0)n.cssText="",l=1;else for(a=a.split(","),d=a.length;--d>-1;)s=a[d],_transformProps[s]&&(l=1,s=s==="transformOrigin"?_transformOriginProp$1:_transformProp$2),_removeProperty(e,s);l&&(_removeProperty(e,_transformProp$2),i&&(i.svg&&e.removeAttribute("transform"),_parseTransform(e,1),i.uncache=1,_removeIndependentTransforms(n)))}},_specialProps={clearProps:function t(o,r,e,n,a){if(a.data!=="isFromStart"){var i=o._pt=new PropTween$1(o._pt,r,e,0,0,_renderClearProps);return i.u=n,i.pr=-10,i.tween=a,o._props.push(e),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function t(o){return o==="matrix(1, 0, 0, 1, 0, 0)"||o==="none"||!o},_getComputedTransformMatrixAsArray=function t(o){var r=_getComputedProperty(o,_transformProp$2);return _isNullTransform(r)?_identity2DMatrix:r.substr(7).match(_numExp$1).map(_round$2)},_getMatrix=function t(o,r){var e=o._gsap||_getCache(o),n=o.style,a=_getComputedTransformMatrixAsArray(o),i,s,l,d;return e.svg&&o.getAttribute("transform")?(l=o.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?_identity2DMatrix:a):(a===_identity2DMatrix&&!o.offsetParent&&o!==_docElement$1&&!e.svg&&(l=n.display,n.display="block",i=o.parentNode,(!i||!o.offsetParent)&&(d=1,s=o.nextElementSibling,_docElement$1.appendChild(o)),a=_getComputedTransformMatrixAsArray(o),l?n.display=l:_removeProperty(o,"display"),d&&(s?i.insertBefore(o,s):i?i.appendChild(o):_docElement$1.removeChild(o))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},_applySVGOrigin=function t(o,r,e,n,a,i){var s=o._gsap,l=a||_getMatrix(o,!0),d=s.xOrigin||0,c=s.yOrigin||0,u=s.xOffset||0,f=s.yOffset||0,m=l[0],b=l[1],y=l[2],_=l[3],S=l[4],C=l[5],T=r.split(" "),x=parseFloat(T[0])||0,k=parseFloat(T[1])||0,E,w,D,N;e?l!==_identity2DMatrix&&(w=m*_-b*y)&&(D=x*(_/w)+k*(-y/w)+(y*C-_*S)/w,N=x*(-b/w)+k*(m/w)-(m*C-b*S)/w,x=D,k=N):(E=_getBBox(o),x=E.x+(~T[0].indexOf("%")?x/100*E.width:x),k=E.y+(~(T[1]||T[0]).indexOf("%")?k/100*E.height:k)),n||n!==!1&&s.smooth?(S=x-d,C=k-c,s.xOffset=u+(S*m+C*y)-S,s.yOffset=f+(S*b+C*_)-C):s.xOffset=s.yOffset=0,s.xOrigin=x,s.yOrigin=k,s.smooth=!!n,s.origin=r,s.originIsAbsolute=!!e,o.style[_transformOriginProp$1]="0px 0px",i&&(_addNonTweeningPT(i,s,"xOrigin",d,x),_addNonTweeningPT(i,s,"yOrigin",c,k),_addNonTweeningPT(i,s,"xOffset",u,s.xOffset),_addNonTweeningPT(i,s,"yOffset",f,s.yOffset)),o.setAttribute("data-svg-origin",x+" "+k)},_parseTransform=function t(o,r){var e=o._gsap||new GSCache(o);if("x"in e&&!r&&!e.uncache)return e;var n=o.style,a=e.scaleX<0,i="px",s="deg",l=getComputedStyle(o),d=_getComputedProperty(o,_transformOriginProp$1)||"0",c,u,f,m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J,te;return c=u=f=y=_=S=C=T=x=0,m=b=1,e.svg=!!(o.getCTM&&_isSVG(o)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[_transformProp$2]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[_transformProp$2]!=="none"?l[_transformProp$2]:"")),n.scale=n.rotate=n.translate="none"),w=_getMatrix(o,e.svg),e.svg&&(e.uncache?(H=o.getBBox(),d=e.xOrigin-H.x+"px "+(e.yOrigin-H.y)+"px",j=""):j=!r&&o.getAttribute("data-svg-origin"),_applySVGOrigin(o,j||d,!!j||e.originIsAbsolute,e.smooth!==!1,w)),k=e.xOrigin||0,E=e.yOrigin||0,w!==_identity2DMatrix&&(V=w[0],A=w[1],M=w[2],O=w[3],c=R=w[4],u=I=w[5],w.length===6?(m=Math.sqrt(V*V+A*A),b=Math.sqrt(O*O+M*M),y=V||A?_atan2$1(A,V)*_RAD2DEG$1:0,C=M||O?_atan2$1(M,O)*_RAD2DEG$1+y:0,C&&(b*=Math.abs(Math.cos(C*_DEG2RAD$2))),e.svg&&(c-=k-(k*V+E*M),u-=E-(k*A+E*O))):(te=w[6],W=w[7],B=w[8],L=w[9],z=w[10],J=w[11],c=w[12],u=w[13],f=w[14],D=_atan2$1(te,z),_=D*_RAD2DEG$1,D&&(N=Math.cos(-D),F=Math.sin(-D),j=R*N+B*F,H=I*N+L*F,U=te*N+z*F,B=R*-F+B*N,L=I*-F+L*N,z=te*-F+z*N,J=W*-F+J*N,R=j,I=H,te=U),D=_atan2$1(-M,z),S=D*_RAD2DEG$1,D&&(N=Math.cos(-D),F=Math.sin(-D),j=V*N-B*F,H=A*N-L*F,U=M*N-z*F,J=O*F+J*N,V=j,A=H,M=U),D=_atan2$1(A,V),y=D*_RAD2DEG$1,D&&(N=Math.cos(D),F=Math.sin(D),j=V*N+A*F,H=R*N+I*F,A=A*N-V*F,I=I*N-R*F,V=j,R=H),_&&Math.abs(_)+Math.abs(y)>359.9&&(_=y=0,S=180-S),m=_round$2(Math.sqrt(V*V+A*A+M*M)),b=_round$2(Math.sqrt(I*I+te*te)),D=_atan2$1(R,I),C=Math.abs(D)>2e-4?D*_RAD2DEG$1:0,x=J?1/(J<0?-J:J):0),e.svg&&(j=o.getAttribute("transform"),e.forceCSS=o.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(o,_transformProp$2)),j&&o.setAttribute("transform",j))),Math.abs(C)>90&&Math.abs(C)<270&&(a?(m*=-1,C+=y<=0?180:-180,y+=y<=0?180:-180):(b*=-1,C+=C<=0?180:-180)),r=r||e.uncache,e.x=c-((e.xPercent=c&&(!r&&e.xPercent||(Math.round(o.offsetWidth/2)===Math.round(-c)?-50:0)))?o.offsetWidth*e.xPercent/100:0)+i,e.y=u-((e.yPercent=u&&(!r&&e.yPercent||(Math.round(o.offsetHeight/2)===Math.round(-u)?-50:0)))?o.offsetHeight*e.yPercent/100:0)+i,e.z=f+i,e.scaleX=_round$2(m),e.scaleY=_round$2(b),e.rotation=_round$2(y)+s,e.rotationX=_round$2(_)+s,e.rotationY=_round$2(S)+s,e.skewX=C+s,e.skewY=T+s,e.transformPerspective=x+i,(e.zOrigin=parseFloat(d.split(" ")[2])||!r&&e.zOrigin||0)&&(n[_transformOriginProp$1]=_firstTwoOnly(d)),e.xOffset=e.yOffset=0,e.force3D=_config.force3D,e.renderTransform=e.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,e.uncache=0,e},_firstTwoOnly=function t(o){return(o=o.split(" "))[0]+" "+o[1]},_addPxTranslate=function t(o,r,e){var n=getUnit(r);return _round$2(parseFloat(r)+parseFloat(_convertToUnit(o,"x",e+"px",n)))+n},_renderNon3DTransforms=function t(o,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,_renderCSSTransforms(o,r)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function t(o,r){var e=r||this,n=e.xPercent,a=e.yPercent,i=e.x,s=e.y,l=e.z,d=e.rotation,c=e.rotationY,u=e.rotationX,f=e.skewX,m=e.skewY,b=e.scaleX,y=e.scaleY,_=e.transformPerspective,S=e.force3D,C=e.target,T=e.zOrigin,x="",k=S==="auto"&&o&&o!==1||S===!0;if(T&&(u!==_zeroDeg||c!==_zeroDeg)){var E=parseFloat(c)*_DEG2RAD$2,w=Math.sin(E),D=Math.cos(E),N;E=parseFloat(u)*_DEG2RAD$2,N=Math.cos(E),i=_addPxTranslate(C,i,w*N*-T),s=_addPxTranslate(C,s,-Math.sin(E)*-T),l=_addPxTranslate(C,l,D*N*-T+T)}_!==_zeroPx&&(x+="perspective("+_+_endParenthesis),(n||a)&&(x+="translate("+n+"%, "+a+"%) "),(k||i!==_zeroPx||s!==_zeroPx||l!==_zeroPx)&&(x+=l!==_zeroPx||k?"translate3d("+i+", "+s+", "+l+") ":"translate("+i+", "+s+_endParenthesis),d!==_zeroDeg&&(x+="rotate("+d+_endParenthesis),c!==_zeroDeg&&(x+="rotateY("+c+_endParenthesis),u!==_zeroDeg&&(x+="rotateX("+u+_endParenthesis),(f!==_zeroDeg||m!==_zeroDeg)&&(x+="skew("+f+", "+m+_endParenthesis),(b!==1||y!==1)&&(x+="scale("+b+", "+y+_endParenthesis),C.style[_transformProp$2]=x||"translate(0, 0)"},_renderSVGTransforms=function t(o,r){var e=r||this,n=e.xPercent,a=e.yPercent,i=e.x,s=e.y,l=e.rotation,d=e.skewX,c=e.skewY,u=e.scaleX,f=e.scaleY,m=e.target,b=e.xOrigin,y=e.yOrigin,_=e.xOffset,S=e.yOffset,C=e.forceCSS,T=parseFloat(i),x=parseFloat(s),k,E,w,D,N;l=parseFloat(l),d=parseFloat(d),c=parseFloat(c),c&&(c=parseFloat(c),d+=c,l+=c),l||d?(l*=_DEG2RAD$2,d*=_DEG2RAD$2,k=Math.cos(l)*u,E=Math.sin(l)*u,w=Math.sin(l-d)*-f,D=Math.cos(l-d)*f,d&&(c*=_DEG2RAD$2,N=Math.tan(d-c),N=Math.sqrt(1+N*N),w*=N,D*=N,c&&(N=Math.tan(c),N=Math.sqrt(1+N*N),k*=N,E*=N)),k=_round$2(k),E=_round$2(E),w=_round$2(w),D=_round$2(D)):(k=u,D=f,E=w=0),(T&&!~(i+"").indexOf("px")||x&&!~(s+"").indexOf("px"))&&(T=_convertToUnit(m,"x",i,"px"),x=_convertToUnit(m,"y",s,"px")),(b||y||_||S)&&(T=_round$2(T+b-(b*k+y*w)+_),x=_round$2(x+y-(b*E+y*D)+S)),(n||a)&&(N=m.getBBox(),T=_round$2(T+n/100*N.width),x=_round$2(x+a/100*N.height)),N="matrix("+k+","+E+","+w+","+D+","+T+","+x+")",m.setAttribute("transform",N),C&&(m.style[_transformProp$2]=N)},_addRotationalPropTween=function t(o,r,e,n,a){var i=360,s=_isString$2(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?_RAD2DEG$1:1),d=l-n,c=n+d+"deg",u,f;return s&&(u=a.split("_")[1],u==="short"&&(d%=i,d!==d%(i/2)&&(d+=d<0?i:-i)),u==="cw"&&d<0?d=(d+i*_bigNum)%i-~~(d/i)*i:u==="ccw"&&d>0&&(d=(d-i*_bigNum)%i-~~(d/i)*i)),o._pt=f=new PropTween$1(o._pt,r,e,n,d,_renderPropWithEnd),f.e=c,f.u="deg",o._props.push(e),f},_assign=function t(o,r){for(var e in r)o[e]=r[e];return o},_addRawTransformPTs=function t(o,r,e){var n=_assign({},e._gsap),a="perspective,force3D,transformOrigin,svgOrigin",i=e.style,s,l,d,c,u,f,m,b;n.svg?(d=e.getAttribute("transform"),e.setAttribute("transform",""),i[_transformProp$2]=r,s=_parseTransform(e,1),_removeProperty(e,_transformProp$2),e.setAttribute("transform",d)):(d=getComputedStyle(e)[_transformProp$2],i[_transformProp$2]=r,s=_parseTransform(e,1),i[_transformProp$2]=d);for(l in _transformProps)d=n[l],c=s[l],d!==c&&a.indexOf(l)<0&&(m=getUnit(d),b=getUnit(c),u=m!==b?_convertToUnit(e,l,d,b):parseFloat(d),f=parseFloat(c),o._pt=new PropTween$1(o._pt,s,l,u,f-u,_renderCSSProp),o._pt.u=b||0,o._props.push(l));_assign(s,n)};_forEachName("padding,margin,Width,Radius",function(t,o){var r="Top",e="Right",n="Bottom",a="Left",i=(o<3?[r,e,n,a]:[r+a,r+e,n+e,n+a]).map(function(s){return o<2?t+s:"border"+s+t});_specialProps[o>1?"border"+t:t]=function(s,l,d,c,u){var f,m;if(arguments.length<4)return f=i.map(function(b){return _get(s,b,d)}),m=f.join(" "),m.split(f[0]).length===5?f[0]:m;f=(c+"").split(" "),m={},i.forEach(function(b,y){return m[b]=f[y]=f[y]||f[(y-1)/2|0]}),s.init(l,m,u)}});var CSSPlugin={name:"css",register:_initCore$1,targetTest:function t(o){return o.style&&o.nodeType},init:function t(o,r,e,n,a){var i=this._props,s=o.style,l=e.vars.startAt,d,c,u,f,m,b,y,_,S,C,T,x,k,E,w,D;_pluginInitted||_initCore$1(),this.styles=this.styles||_getStyleSaver$1(o),D=this.styles.props,this.tween=e;for(y in r)if(y!=="autoRound"&&(c=r[y],!(_plugins[y]&&_checkPlugin(y,r,e,n,o,a)))){if(m=typeof c,b=_specialProps[y],m==="function"&&(c=c.call(e,n,o,a),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=_replaceRandom(c)),b)b(this,o,y,c,e)&&(w=1);else if(y.substr(0,2)==="--")d=(getComputedStyle(o).getPropertyValue(y)+"").trim(),c+="",_colorExp.lastIndex=0,_colorExp.test(d)||(_=getUnit(d),S=getUnit(c)),S?_!==S&&(d=_convertToUnit(o,y,d,S)+S):_&&(c+=_),this.add(s,"setProperty",d,c,n,a,0,0,y),i.push(y),D.push(y,0,s[y]);else if(m!=="undefined"){if(l&&y in l?(d=typeof l[y]=="function"?l[y].call(e,n,o,a):l[y],_isString$2(d)&&~d.indexOf("random(")&&(d=_replaceRandom(d)),getUnit(d+"")||d==="auto"||(d+=_config.units[y]||getUnit(_get(o,y))||""),(d+"").charAt(1)==="="&&(d=_get(o,y))):d=_get(o,y),f=parseFloat(d),C=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),C&&(c=c.substr(2)),u=parseFloat(c),y in _propertyAliases&&(y==="autoAlpha"&&(f===1&&_get(o,"visibility")==="hidden"&&u&&(f=0),D.push("visibility",0,s.visibility),_addNonTweeningPT(this,s,"visibility",f?"inherit":"hidden",u?"inherit":"hidden",!u)),y!=="scale"&&y!=="transform"&&(y=_propertyAliases[y],~y.indexOf(",")&&(y=y.split(",")[0]))),T=y in _transformProps,T){if(this.styles.save(y),x||(k=o._gsap,k.renderTransform&&!r.parseTransform||_parseTransform(o,r.parseTransform),E=r.smoothOrigin!==!1&&k.smooth,x=this._pt=new PropTween$1(this._pt,s,_transformProp$2,0,1,k.renderTransform,k,0,-1),x.dep=1),y==="scale")this._pt=new PropTween$1(this._pt,k,"scaleY",k.scaleY,(C?_parseRelative(k.scaleY,C+u):u)-k.scaleY||0,_renderCSSProp),this._pt.u=0,i.push("scaleY",y),y+="X";else if(y==="transformOrigin"){D.push(_transformOriginProp$1,0,s[_transformOriginProp$1]),c=_convertKeywordsToPercentages(c),k.svg?_applySVGOrigin(o,c,0,E,0,this):(S=parseFloat(c.split(" ")[2])||0,S!==k.zOrigin&&_addNonTweeningPT(this,k,"zOrigin",k.zOrigin,S),_addNonTweeningPT(this,s,y,_firstTwoOnly(d),_firstTwoOnly(c)));continue}else if(y==="svgOrigin"){_applySVGOrigin(o,c,1,E,0,this);continue}else if(y in _rotationalProperties){_addRotationalPropTween(this,k,y,f,C?_parseRelative(f,C+c):c);continue}else if(y==="smoothOrigin"){_addNonTweeningPT(this,k,"smooth",k.smooth,c);continue}else if(y==="force3D"){k[y]=c;continue}else if(y==="transform"){_addRawTransformPTs(this,c,o);continue}}else y in s||(y=_checkPropPrefix(y)||y);if(T||(u||u===0)&&(f||f===0)&&!_complexExp.test(c)&&y in s)_=(d+"").substr((f+"").length),u||(u=0),S=getUnit(c)||(y in _config.units?_config.units[y]:_),_!==S&&(f=_convertToUnit(o,y,d,S)),this._pt=new PropTween$1(this._pt,T?k:s,y,f,(C?_parseRelative(f,C+u):u)-f,!T&&(S==="px"||y==="zIndex")&&r.autoRound!==!1?_renderRoundedCSSProp:_renderCSSProp),this._pt.u=S||0,_!==S&&S!=="%"&&(this._pt.b=d,this._pt.r=_renderCSSPropWithBeginning);else if(y in s)_tweenComplexCSSString.call(this,o,y,d,C?C+c:c);else if(y in o)this.add(o,y,d||o[y],C?C+c:c,n,a);else if(y!=="parseTransform"){_missingPlugin(y,c);continue}T||(y in s?D.push(y,0,s[y]):D.push(y,1,d||o[y])),i.push(y)}}w&&_sortPropTweensByPriority(this)},render:function t(o,r){if(r.tween._time||!_reverting$1())for(var e=r._pt;e;)e.r(o,e.d),e=e._next;else r.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function t(o,r,e){var n=_propertyAliases[r];return n&&n.indexOf(",")<0&&(r=n),r in _transformProps&&r!==_transformOriginProp$1&&(o._gsap.x||_get(o,"x"))?e&&_recentSetterPlugin===e?r==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=e||{})&&(r==="scale"?_setterScaleWithRender:_setterTransformWithRender):o.style&&!_isUndefined$1(o.style[r])?_setterCSSStyle:~r.indexOf("-")?_setterCSSProp:_getSetter(o,r)},core:{_removeProperty,_getMatrix}};gsap$3.utils.checkPrefix=_checkPropPrefix;gsap$3.core.getStyleSaver=_getStyleSaver$1;(function(t,o,r,e){var n=_forEachName(t+","+o+","+r,function(a){_transformProps[a]=1});_forEachName(o,function(a){_config.units[a]="deg",_rotationalProperties[a]=1}
vendor: 14,300 bytes, lines 1021-1037
1021),_propertyAliases[n[13]]=t+","+o,_forEachName(e,function(a){var i=a.split(":");_propertyAliases[i[1]]=n[i[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){_config.units[t]="px"});gsap$3.registerPlugin(CSSPlugin);var gsapWithCSS=gsap$3.registerPlugin(CSSPlugin)||gsap$3;gsapWithCSS.core.Tween;/*!
1022 * paths 3.12.5
1023 * https://gsap.com
1024 *
1025 * Copyright 2008-2024, GreenSock. All rights reserved.
1026 * Subject to the terms at https://gsap.com/standard-license or for
1027 * Club GSAP members, the agreement issued with that membership.
1028 * @author: Jack Doyle, [email protected]
1029*/var _svgPathExp=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,_numbersExp=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,_scientific=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,_selectorExp=/(^[#\.][a-z]|[a-y][a-z])/i,_DEG2RAD$1=Math.PI/180,_RAD2DEG=180/Math.PI,_sin=Math.sin,_cos=Math.cos,_abs$1=Math.abs,_sqrt=Math.sqrt,_atan2=Math.atan2,_largeNum=1e8,_isString$1=function t(o){return typeof o=="string"},_isNumber$1=function t(o){return typeof o=="number"},_isUndefined=function t(o){return typeof o>"u"},_temp={},_temp2={},_roundingNum=1e5,_wrapProgress=function t(o){return Math.round((o+_largeNum)%1*_roundingNum)/_roundingNum||(o<0?0:1)},_round$1=function t(o){return Math.round(o*_roundingNum)/_roundingNum||0},_roundPrecise=function t(o){return Math.round(o*1e10)/1e10||0},_splitSegment=function t(o,r,e,n){var a=o[r],i=n===1?6:subdivideSegment(a,e,n);if((i||!n)&&i+e+2<a.length)return o.splice(r,0,a.slice(0,e+i+2)),a.splice(0,e+i),1},_getSampleIndex=function t(o,r,e){var n=o.length,a=~~(e*n);if(o[a]>r){for(;--a&&o[a]>r;);a<0&&(a=0)}else for(;o[++a]<r&&a<n;);return a<n?a:n-1},_reverseRawPath=function t(o,r){var e=o.length;for(o.reverse();e--;)o[e].reversed||reverseSegment(o[e])},_copyMetaData=function t(o,r){return r.totalLength=o.totalLength,o.samples?(r.samples=o.samples.slice(0),r.lookup=o.lookup.slice(0),r.minLength=o.minLength,r.resolution=o.resolution):o.totalPoints&&(r.totalPoints=o.totalPoints),r},_appendOrMerge=function t(o,r){var e=o.length,n=o[e-1]||[],a=n.length;e&&r[0]===n[a-2]&&r[1]===n[a-1]&&(r=n.concat(r.slice(2)),e--),o[e]=r};function getRawPath(t){t=_isString$1(t)&&_selectorExp.test(t)&&document.querySelector(t)||t;var o=t.getAttribute?t:0,r;return o&&(t=t.getAttribute("d"))?(o._gsPath||(o._gsPath={}),r=o._gsPath[t],r&&!r._dirty?r:o._gsPath[t]=stringToRawPath(t)):t?_isString$1(t)?stringToRawPath(t):_isNumber$1(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function copyRawPath(t){for(var o=[],r=0;r<t.length;r++)o[r]=_copyMetaData(t[r],t[r].slice(0));return _copyMetaData(t,o)}function reverseSegment(t){var o=0,r;for(t.reverse();o<t.length;o+=2)r=t[o],t[o]=t[o+1],t[o+1]=r;t.reversed=!t.reversed}var _createPath=function t(o,r){var e=document.createElementNS("http://www.w3.org/2000/svg","path"),n=[].slice.call(o.attributes),a=n.length,i;for(r=","+r+",";--a>-1;)i=n[a].nodeName.toLowerCase(),r.indexOf(","+i+",")<0&&e.setAttributeNS(null,i,n[a].nodeValue);return e},_typeAttrs={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},_attrToObj=function t(o,r){for(var e=r?r.split(","):[],n={},a=e.length;--a>-1;)n[e[a]]=+o.getAttribute(e[a])||0;return n};function convertToPath(t,o){var r=t.tagName.toLowerCase(),e=.552284749831,n,a,i,s,l,d,c,u,f,m,b,y,_,S,C,T,x,k,E,w,D,N;return r==="path"||!t.getBBox?t:(d=_createPath(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),N=_attrToObj(t,_typeAttrs[r]),r==="rect"?(s=N.rx,l=N.ry||s,a=N.x,i=N.y,m=N.width-s*2,b=N.height-l*2,s||l?(y=a+s*(1-e),_=a+s,S=_+m,C=S+s*e,T=S+s,x=i+l*(1-e),k=i+l,E=k+b,w=E+l*e,D=E+l,n="M"+T+","+k+" V"+E+" C"+[T,w,C,D,S,D,S-(S-_)/3,D,_+(S-_)/3,D,_,D,y,D,a,w,a,E,a,E-(E-k)/3,a,k+(E-k)/3,a,k,a,x,y,i,_,i,_+(S-_)/3,i,S-(S-_)/3,i,S,i,C,i,T,x,T,k].join(",")+"z"):n="M"+(a+m)+","+i+" v"+b+" h"+-m+" v"+-b+" h"+m+"z"):r==="circle"||r==="ellipse"?(r==="circle"?(s=l=N.r,u=s*e):(s=N.rx,l=N.ry,u=l*e),a=N.cx,i=N.cy,c=s*e,n="M"+(a+s)+","+i+" C"+[a+s,i+u,a+c,i+l,a,i+l,a-c,i+l,a-s,i+u,a-s,i,a-s,i-u,a-c,i-l,a,i-l,a+c,i-l,a+s,i-u,a+s,i].join(",")+"z"):r==="line"?n="M"+N.x1+","+N.y1+" L"+N.x2+","+N.y2:(r==="polyline"||r==="polygon")&&(f=(t.getAttribute("points")+"").match(_numbersExp)||[],a=f.shift(),i=f.shift(),n="M"+a+","+i+" L"+f.join(","),r==="polygon"&&(n+=","+a+","+i+"z")),d.setAttribute("d",rawPathToString(d._gsRawPath=stringToRawPath(n))),o&&t.parentNode&&(t.parentNode.insertBefore(d,t),t.parentNode.removeChild(t)),d)}function getRotationAtBezierT(t,o,r){var e=t[o],n=t[o+2],a=t[o+4],i;return e+=(n-e)*r,n+=(a-n)*r,e+=(n-e)*r,i=n+(a+(t[o+6]-a)*r-n)*r-e,e=t[o+1],n=t[o+3],a=t[o+5],e+=(n-e)*r,n+=(a-n)*r,e+=(n-e)*r,_round$1(_atan2(n+(a+(t[o+7]-a)*r-n)*r-e,i)*_RAD2DEG)}function sliceRawPath(t,o,r){r=_isUndefined(r)?1:_roundPrecise(r)||0,o=_roundPrecise(o)||0;var e=Math.max(0,~~(_abs$1(r-o)-1e-8)),n=copyRawPath(t);if(o>r&&(o=1-o,r=1-r,_reverseRawPath(n),n.totalLength=0),o<0||r<0){var a=Math.abs(~~Math.min(o,r))+1;o+=a,r+=a}n.totalLength||cacheRawPathMeasurements(n);var i=r>1,s=getProgressData(n,o,_temp,!0),l=getProgressData(n,r,_temp2),d=l.segment,c=s.segment,u=l.segIndex,f=s.segIndex,m=l.i,b=s.i,y=f===u,_=m===b&&y,S,C,T,x,k,E,w,D;if(i||e){for(S=u<f||y&&m<b||_&&l.t<s.t,_splitSegment(n,f,b,s.t)&&(f++,S||(u++,_?(l.t=(l.t-s.t)/(1-s.t),m=0):y&&(m-=b))),Math.abs(1-(r-o))<1e-5?u=f-1:!l.t&&u?u--:_splitSegment(n,u,m,l.t)&&S&&f++,s.t===1&&(f=(f+1)%n.length),k=[],E=n.length,w=1+E*e,D=f,w+=(E-f+u)%E,x=0;x<w;x++)_appendOrMerge(k,n[D++%E]);n=k}else if(T=l.t===1?6:subdivideSegment(d,m,l.t),o!==r)for(C=subdivideSegment(c,b,_?s.t/l.t:s.t),y&&(T+=C),d.splice(m+T+2),(C||b)&&c.splice(0,b+C),x=n.length;x--;)(x<f||x>u)&&n.splice(x,1);else d.angle=getRotationAtBezierT(d,m+T,0),m+=T,s=d[m],l=d[m+1],d.length=d.totalLength=0,d.totalPoints=n.totalPoints=8,d.push(s,l,s,l,s,l,s,l);return n.totalLength=0,n}function measureSegment(t,o,r){o=o||0,t.samples||(t.samples=[],t.lookup=[]);var e=~~t.resolution||12,n=1/e,a=t.length,i=t[o],s=t[o+1],l=o?o/6*e:0,d=t.samples,c=t.lookup,u=(o?t.minLength:_largeNum)||_largeNum,f=d[l+r*e-1],m=o?d[l-1]:0,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O;for(d.length=c.length=0,y=o+2;y<a;y+=6){if(_=t[y+4]-i,S=t[y+2]-i,C=t[y]-i,k=t[y+5]-s,E=t[y+3]-s,w=t[y+1]-s,T=x=D=N=0,_abs$1(_)<.01&&_abs$1(k)<.01&&_abs$1(C)+_abs$1(w)<.01)t.length>8&&(t.splice(y,6),y-=6,a-=6);else for(b=1;b<=e;b++)V=n*b,F=1-V,T=x-(x=(V*V*_+3*F*(V*S+F*C))*V),D=N-(N=(V*V*k+3*F*(V*E+F*w))*V),M=_sqrt(D*D+T*T),M<u&&(u=M),m+=M,d[l++]=m;i+=_,s+=k}if(f)for(f-=m;l<d.length;l++)d[l]+=f;if(d.length&&u){if(t.totalLength=O=d[d.length-1]||0,t.minLength=u,O/u<9999)for(M=A=0,b=0;b<O;b+=u)c[M++]=d[A]<b?++A:A}else t.totalLength=d[0]=0;return o?m-d[o/2-1]:m}function cacheRawPathMeasurements(t,o){var r,e,n;for(n=r=e=0;n<t.length;n++)t[n].resolution=~~o||12,e+=t[n].length,r+=measureSegment(t[n]);return t.totalPoints=e,t.totalLength=r,t}function subdivideSegment(t,o,r){if(r<=0||r>=1)return 0;var e=t[o],n=t[o+1],a=t[o+2],i=t[o+3],s=t[o+4],l=t[o+5],d=t[o+6],c=t[o+7],u=e+(a-e)*r,f=a+(s-a)*r,m=n+(i-n)*r,b=i+(l-i)*r,y=u+(f-u)*r,_=m+(b-m)*r,S=s+(d-s)*r,C=l+(c-l)*r;return f+=(S-f)*r,b+=(C-b)*r,t.splice(o+2,4,_round$1(u),_round$1(m),_round$1(y),_round$1(_),_round$1(y+(f-y)*r),_round$1(_+(b-_)*r),_round$1(f),_round$1(b),_round$1(S),_round$1(C)),t.samples&&t.samples.splice(o/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,o,r,e){r=r||{},t.totalLength||cacheRawPathMeasurements(t),(o<0||o>1)&&(o=_wrapProgress(o));var n=0,a=t[0],i,s,l,d,c,u,f;if(!o)f=u=n=0,a=t[0];else if(o===1)f=1,n=t.length-1,a=t[n],u=a.length-8;else{if(t.length>1){for(l=t.totalLength*o,c=u=0;(c+=t[u++].totalLength)<l;)n=u;a=t[n],d=c-a.totalLength,o=(l-d)/(c-d)||0}i=a.samples,s=a.resolution,l=a.totalLength*o,u=a.lookup.length?a.lookup[~~(l/a.minLength)]||0:_getSampleIndex(i,l,o),d=u?i[u-1]:0,c=i[u],c<l&&(d=c,c=i[++u]),f=1/s*((l-d)/(c-d)+u%s),u=~~(u/s)*6,e&&f===1&&(u+6<a.length?(u+=6,f=0):n+1<t.length&&(u=f=0,a=t[++n]))}return r.t=f,r.i=u,r.path=t,r.segment=a,r.segIndex=n,r}function getPositionOnPath(t,o,r,e){var n=t[0],a=e||{},i,s,l,d,c,u,f,m,b;if((o<0||o>1)&&(o=_wrapProgress(o)),n.lookup||cacheRawPathMeasurements(t),t.length>1){for(l=t.totalLength*o,c=u=0;(c+=t[u++].totalLength)<l;)n=t[u];d=c-n.totalLength,o=(l-d)/(c-d)||0}return i=n.samples,s=n.resolution,l=n.totalLength*o,u=n.lookup.length?n.lookup[o<1?~~(l/n.minLength):n.lookup.length-1]||0:_getSampleIndex(i,l,o),d=u?i[u-1]:0,c=i[u],c<l&&(d=c,c=i[++u]),f=1/s*((l-d)/(c-d)+u%s)||0,b=1-f,u=~~(u/s)*6,m=n[u],a.x=_round$1((f*f*(n[u+6]-m)+3*b*(f*(n[u+4]-m)+b*(n[u+2]-m)))*f+m),a.y=_round$1((f*f*(n[u+7]-(m=n[u+1]))+3*b*(f*(n[u+5]-m)+b*(n[u+3]-m)))*f+m),r&&(a.angle=n.totalLength?getRotationAtBezierT(n,u,f>=1?1-1e-9:f||1e-9):n.angle||0),a}function transformRawPath(t,o,r,e,n,a,i){for(var s=t.length,l,d,c,u,f;--s>-1;)for(l=t[s],d=l.length,c=0;c<d;c+=2)u=l[c],f=l[c+1],l[c]=u*o+f*e+a,l[c+1]=u*r+f*n+i;return t._dirty=1,t}function arcToSegment(t,o,r,e,n,a,i,s,l){if(!(t===s&&o===l)){r=_abs$1(r),e=_abs$1(e);var d=n%360*_DEG2RAD$1,c=_cos(d),u=_sin(d),f=Math.PI,m=f*2,b=(t-s)/2,y=(o-l)/2,_=c*b+u*y,S=-u*b+c*y,C=_*_,T=S*S,x=C/(r*r)+T/(e*e);x>1&&(r=_sqrt(x)*r,e=_sqrt(x)*e);var k=r*r,E=e*e,w=(k*E-k*T-E*C)/(k*T+E*C);w<0&&(w=0);var D=(a===i?-1:1)*_sqrt(w),N=D*(r*S/e),F=D*-(e*_/r),V=(t+s)/2,A=(o+l)/2,M=V+(c*N-u*F),O=A+(u*N+c*F),R=(_-N)/r,I=(S-F)/e,j=(-_-N)/r,H=(-S-F)/e,U=R*R+I*I,B=(I<0?-1:1)*Math.acos(R/_sqrt(U)),L=(R*H-I*j<0?-1:1)*Math.acos((R*j+I*H)/_sqrt(U*(j*j+H*H)));isNaN(L)&&(L=f),!i&&L>0?L-=m:i&&L<0&&(L+=m),B%=m,L%=m;var z=Math.ceil(_abs$1(L)/(m/4)),W=[],J=L/z,te=4/3*_sin(J/2)/(1+_cos(J/2)),re=c*r,oe=u*r,X=u*-e,se=c*e,le;for(le=0;le<z;le++)n=B+le*J,_=_cos(n),S=_sin(n),R=_cos(n+=J),I=_sin(n),W.push(_-te*S,S+te*_,R+te*I,I-te*R,R,I);for(le=0;le<W.length;le+=2)_=W[le],S=W[le+1],W[le]=_*re+S*X+M,W[le+1]=_*oe+S*se+O;return W[le-2]=s,W[le-1]=l,W}}function stringToRawPath(t){var o=(t+"").replace(_scientific,function(N){var F=+N;return F<1e-4&&F>-1e-4?0:F}).match(_svgPathExp)||[],r=[],e=0,n=0,a=2/3,i=o.length,s=0,l="ERROR: malformed path: "+t,d,c,u,f,m,b,y,_,S,C,T,x,k,E,w,D=function(F,V,A,M){C=(A-F)/3,T=(M-V)/3,y.push(F+C,V+T,A-C,M-T,A,M)};if(!t||!isNaN(o[0])||isNaN(o[1]))return console.log(l),r;for(d=0;d<i;d++)if(k=m,isNaN(o[d])?(m=o[d].toUpperCase(),b=m!==o[d]):d--,u=+o[d+1],f=+o[d+2],b&&(u+=e,f+=n),d||(_=u,S=f),m==="M")y&&(y.length<8?r.length-=1:s+=y.length),e=_=u,n=S=f,y=[u,f],r.push(y),d+=2,m="L";else if(m==="C")y||(y=[0,0]),b||(e=n=0),y.push(u,f,e+o[d+3]*1,n+o[d+4]*1,e+=o[d+5]*1,n+=o[d+6]*1),d+=6;else if(m==="S")C=e,T=n,(k==="C"||k==="S")&&(C+=e-y[y.length-4],T+=n-y[y.length-3]),b||(e=n=0),y.push(C,T,u,f,e+=o[d+3]*1,n+=o[d+4]*1),d+=4;else if(m==="Q")C=e+(u-e)*a,T=n+(f-n)*a,b||(e=n=0),e+=o[d+3]*1,n+=o[d+4]*1,y.push(C,T,e+(u-e)*a,n+(f-n)*a,e,n),d+=4;else if(m==="T")C=e-y[y.length-4],T=n-y[y.length-3],y.push(e+C,n+T,u+(e+C*1.5-u)*a,f+(n+T*1.5-f)*a,e=u,n=f),d+=2;else if(m==="H")D(e,n,e=u,n),d+=1;else if(m==="V")D(e,n,e,n=u+(b?n-e:0)),d+=1;else if(m==="L"||m==="Z")m==="Z"&&(u=_,f=S,y.closed=!0),(m==="L"||_abs$1(e-u)>.5||_abs$1(n-f)>.5)&&(D(e,n,u,f),m==="L"&&(d+=2)),e=u,n=f;else if(m==="A"){if(E=o[d+4],w=o[d+5],C=o[d+6],T=o[d+7],c=7,E.length>1&&(E.length<3?(T=C,C=w,c--):(T=w,C=E.substr(2),c-=2),w=E.charAt(1),E=E.charAt(0)),x=arcToSegment(e,n,+o[d+1],+o[d+2],+o[d+3],+E,+w,(b?e:0)+C*1,(b?n:0)+T*1),d+=c,x)for(c=0;c<x.length;c++)y.push(x[c]);e=y[y.length-2],n=y[y.length-1]}else console.log(l);return d=y.length,d<6?(r.pop(),d=0):y[0]===y[d-2]&&y[1]===y[d-1]&&(y.closed=!0),r.totalPoints=s+d,r}function flatPointsToSegment(t,o){o===void 0&&(o=1);for(var r=t[0],e=0,n=[r,e],a=2;a<t.length;a+=2)n.push(r,e,t[a],e=(t[a]-r)*o/2,r=t[a],-e);return n}function pointsToSegment(t,o){_abs$1(t[0]-t[2])<1e-4&&_abs$1(t[1]-t[3])<1e-4&&(t=t.slice(2));var r=t.length-2,e=+t[0],n=+t[1],a=+t[2],i=+t[3],s=[e,n,e,n],l=a-e,d=i-n,c=Math.abs(t[r]-e)<.001&&Math.abs(t[r+1]-n)<.001,u,f,m,b,y,_,S,C,T,x,k,E,w,D,N;for(c&&(t.push(a,i),a=e,i=n,e=t[r-2],n=t[r-1],t.unshift(e,n),r+=4),o=o||o===0?+o:1,m=2;m<r;m+=2)u=e,f=n,e=a,n=i,a=+t[m+2],i=+t[m+3],!(e===a&&n===i)&&(b=l,y=d,l=a-e,d=i-n,_=_sqrt(b*b+y*y),S=_sqrt(l*l+d*d),C=_sqrt(Math.pow(l/S+b/_,2)+Math.pow(d/S+y/_,2)),T=(_+S)*o*.25/C,x=e-(e-u)*(_?T/_:0),k=e+(a-e)*(S?T/S:0),E=e-(x+((k-x)*(_*3/(_+S)+.5)/4||0)),w=n-(n-f)*(_?T/_:0),D=n+(i-n)*(S?T/S:0),N=n-(w+((D-w)*(_*3/(_+S)+.5)/4||0)),(e!==u||n!==f)&&s.push(_round$1(x+E),_round$1(w+N),_round$1(e),_round$1(n),_round$1(k+E),_round$1(D+N)));return e!==a||n!==i||s.length<4?s.push(_round$1(a),_round$1(i),_round$1(a),_round$1(i)):s.length-=2,s.length===2?s.push(e,n,e,n,e,n):c&&(s.splice(0,6),s.length=s.length-6),s}function rawPathToString(t){_isNumber$1(t[0])&&(t=[t]);var o="",r=t.length,e,n,a,i;for(n=0;n<r;n++){for(i=t[n],o+="M"+_round$1(i[0])+","+_round$1(i[1])+" C",e=i.length,a=2;a<e;a++)o+=_round$1(i[a++])+","+_round$1(i[a++])+" "+_round$1(i[a++])+","+_round$1(i[a++])+" "+_round$1(i[a++])+","+_round$1(i[a])+" ";i.closed&&(o+="z")}return o}/*!
1030 * matrix 3.12.5
1031 * https://gsap.com
1032 *
1033 * Copyright 2008-2024, GreenSock. All rights reserved.
1034 * Subject to the terms at https://gsap.com/standard-license or for
1035 * Club GSAP members, the agreement issued with that membership.
1036 * @author: Jack Doyle, [email protected]
1037*/var _doc$2,_win$2,_docElement,_body$2,_divContainer,_svgContainer,_identityMatrix,_gEl,_transformProp$1="transform",_transformOriginProp=_transformProp$1+"Origin",_hasOffsetBug,_setDoc=function t(o){var r=o.ownerDocument||o;for(!(_transformProp$1 in o.style)&&("msTransform"in o.style)&&(_transformProp$1="msTransform",_transformOriginProp=_transformProp$1+"Origin");r.parentNode&&(r=r.parentNode););if(_win$2=window,_identityMatrix=new Matrix2D,r){_doc$2=r,_docElement=r.documentElement,_body$2=r.body,_gEl=_doc$2.createElementNS("http://www.w3.org/2000/svg","g"),_gEl.style.transform="none";var e=r.createElement("div"),n=r.createElement("div"),a=r&&(r.body||r.firstElementChild);a&&a.appendChild&&(a.appendChild(e),e.appendChild(n),e.setAttribute("style","position:static;
1037transform:translate3d(0,0,1px)"),_hasOffsetBug=n.offsetParent!==e,a.removeChild(e))}return r},_forceNonZeroScale=function t(o){for(var r,e;o&&o!==_body$2;)e=o._gsap,e&&e.uncache&&e.get(o,"x"),e&&!e.scaleX&&!e.scaleY&&e.renderTransform&&(e.scaleX=e.scaleY=1e-4,e.renderTransform(1,e),r?r.push(e):r=[e]),o=o.parentNode;return r},_svgTemps=[],_divTemps=[],_getDocScrollTop=function t(){return _win$2.pageYOffset||_doc$2.scrollTop||_docElement.scrollTop||_body$2.scrollTop||0},_getDocScrollLeft=function t(){return _win$2.pageXOffset||_doc$2.scrollLeft||_docElement.scrollLeft||_body$2.scrollLeft||0},_svgOwner=function t(o){return o.ownerSVGElement||((o.tagName+"").toLowerCase()==="svg"?o:null)},_isFixed=function t(o){if(_win$2.getComputedStyle(o).position==="fixed")return!0;if(o=o.parentNode,o&&o.nodeType===1)return t(o)},_createSibling=function t(o,r){if(o.parentNode&&(_doc$2||_setDoc(o))){var e=_svgOwner(o),n=e?e.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=e?r?"rect":"g":"div",i=r!==2?0:100,s=r===3?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",d=_doc$2.createElementNS?_doc$2.createElementNS(n.replace(/^https/,"http"),a):_doc$2.createElement(a);return r&&(e?(_svgContainer||(_svgContainer=t(o)),d.setAttribute("width",.01),d.setAttribute("height",.01),d.setAttribute("transform","translate("+i+","+s+")"),_svgContainer.appendChild(d)):(_divContainer||(_divContainer=t(o),_divContainer.style.cssText=l),d.style.cssText=l+"width:0.1px;height:0.1px;top:"+s+"px;left:"+i+"px",_divContainer.appendChild(d))),d}throw"Need document and parent."},_consolidate=function t(o){for(var r=new Matrix2D,e=0;e<o.numberOfItems;e++)r.multiply(o.getItem(e).matrix);return r},_getCTM=function t(o){var r=o.getCTM(),e;return r||(e=o.style[_transformProp$1],o.style[_transformProp$1]="none",o.appendChild(_gEl),r=_gEl.getCTM(),o.removeChild(_gEl),e?o.style[_transformProp$1]=e:o.style.removeProperty(_transformProp$1.replace(/([A-Z])/g,"-$1").toLowerCase())),r||_identityMatrix.clone()},_placeSiblings=function t(o,r){var e=_svgOwner(o),n=o===e,a=e?_svgTemps:_divTemps,i=o.parentNode,s,l,d,c,u,f;if(o===_win$2)return o;if(a.length||a.push(_createSibling(o,1),_createSibling(o,2),_createSibling(o,3)),s=e?_svgContainer:_divContainer,e)n?(d=_getCTM(o),c=-d.e/d.a,u=-d.f/d.d,l=_identityMatrix):o.getBBox?(d=o.getBBox(),l=o.transform?o.transform.baseVal:{},l=l.numberOfItems?l.numberOfItems>1?_consolidate(l):l.getItem(0).matrix:_identityMatrix,c=l.a*d.x+l.c*d.y,u=l.b*d.x+l.d*d.y):(l=new Matrix2D,c=u=0),r&&o.tagName.toLowerCase()==="g"&&(c=u=0),(n?e:i).appendChild(s),s.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+c)+","+(l.f+u)+")");else{if(c=u=0,_hasOffsetBug)for(l=o.offsetParent,d=o;d&&(d=d.parentNode)&&d!==l&&d.parentNode;)(_win$2.getComputedStyle(d)[_transformProp$1]+"").length>4&&(c=d.offsetLeft,u=d.offsetTop,d=0);if(f=_win$2.getComputedStyle(o),f.position!=="absolute"&&f.position!=="fixed")for(l=o.offsetParent;i&&i!==l;)c+=i.scrollLeft||0,u+=i.scrollTop||0,i=i.parentNode;d=s.style,d.top=o.offsetTop-u+"px",d.left=o.offsetLeft-c+"px",d[_transformProp$1]=f[_transformProp$1],d[_transformOriginProp]=f[_transformOriginProp],d.position=f.position==="fixed"?"fixed":"absolute",o.parentNode.appendChild(s)}return s},_setMatrix=function t(o,r,e,n,a,i,s){return o.a=r,o.b=e,o.c=n,o.d=a,o.e=i,o.f=s,o},Matrix2D=function(){function t(r,e,n,a,i,s){r===void 0&&(r=1),e===void 0&&(e=0),n===void 0&&(n=0),a===void 0&&(a=1),i===void 0&&(i=0),s===void 0&&(s=0),_setMatrix(this,r,e,n,a,i,s)}var o=t.prototype;return o.inverse=function(){var e=this.a,n=this.b,a=this.c,i=this.d,s=this.e,l=this.f,d=e*i-n*a||1e-10;return _setMatrix(this,i/d,-n/d,-a/d,e/d,(a*l-i*s)/d,-(e*l-n*s)/d)},o.multiply=function(e){var n=this.a,a=this.b,i=this.c,s=this.d,l=this.e,d=this.f,c=e.a,u=e.c,f=e.b,m=e.d,b=e.e,y=e.f;return _setMatrix(this,c*n+f*i,c*a+f*s,u*n+m*i,u*a+m*s,l+b*n+y*i,d+b*a+y*s)},o.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},o.equals=function(e){var n=this.a,a=this.b,i=this.c,s=this.d,l=this.e,d=this.f;return n===e.a&&a===e.b&&i===e.c&&s===e.d&&l===e.e&&d===e.f}
vendor: 4,631 bytes, lines 1037-1045
1037,o.apply=function(e,n){n===void 0&&(n={});var a=e.x,i=e.y,s=this.a,l=this.b,d=this.c,c=this.d,u=this.e,f=this.f;return n.x=a*s+i*d+u||0,n.y=a*l+i*c+f||0,n},t}();function getGlobalMatrix(t,o,r,e){if(!t||!t.parentNode||(_doc$2||_setDoc(t)).documentElement===t)return new Matrix2D;var n=_forceNonZeroScale(t),a=_svgOwner(t),i=a?_svgTemps:_divTemps,s=_placeSiblings(t,r),l=i[0].getBoundingClientRect(),d=i[1].getBoundingClientRect(),c=i[2].getBoundingClientRect(),u=s.parentNode,f=!e&&_isFixed(t),m=new Matrix2D((d.left-l.left)/100,(d.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(f?0:_getDocScrollLeft()),l.top+(f?0:_getDocScrollTop()));if(u.removeChild(s),n)for(l=n.length;l--;)d=n[l],d.scaleX=d.scaleY=0,d.renderTransform(1,d);return o?m.inverse():m}/*!
1038 * MotionPathPlugin 3.12.5
1039 * https://gsap.com
1040 *
1041 * @license Copyright 2008-2024, GreenSock. All rights reserved.
1042 * Subject to the terms at https://gsap.com/standard-license or for
1043 * Club GSAP members, the agreement issued with that membership.
1044 * @author: Jack Doyle, [email protected]
1045*/var _xProps="x,translateX,left,marginLeft,xPercent".split(","),_yProps="y,translateY,top,marginTop,yPercent".split(","),_DEG2RAD=Math.PI/180,gsap$2,PropTween,_getUnit,_toArray$1,_getStyleSaver,_reverting,_getGSAP$2=function t(){return gsap$2||typeof window<"u"&&(gsap$2=window.gsap)&&gsap$2.registerPlugin&&gsap$2},_populateSegmentFromArray=function t(o,r,e,n){for(var a=r.length,i=n===2?0:n,s=0;s<a;s++)o[i]=parseFloat(r[s][e]),n===2&&(o[i+1]=0),i+=2;return o},_getPropNum=function t(o,r,e){return parseFloat(o._gsap.get(o,r,e||"px"))||0},_relativize=function t(o){var r=o[0],e=o[1],n;for(n=2;n<o.length;n+=2)r=o[n]+=r,e=o[n+1]+=e},_segmentToRawPath=function t(o,r,e,n,a,i,s,l,d){if(s.type==="cubic")r=[r];else{s.fromCurrent!==!1&&r.unshift(_getPropNum(e,n,l),a?_getPropNum(e,a,d):0),s.relative&&_relativize(r);var c=a?pointsToSegment:flatPointsToSegment;r=[c(r,s.curviness)]}return r=i(_align(r,e,s)),_addDimensionalPropTween(o,e,n,r,"x",l),a&&_addDimensionalPropTween(o,e,a,r,"y",d),cacheRawPathMeasurements(r,s.resolution||(s.curviness===0?20:12))},_emptyFunc=function t(o){return o},_numExp=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,_originToPoint=function t(o,r,e){var n=getGlobalMatrix(o),a=0,i=0,s;return(o.tagName+"").toLowerCase()==="svg"?(s=o.viewBox.baseVal,s.width||(s={width:+o.getAttribute("width"),height:+o.getAttribute("height")})):s=r&&o.getBBox&&o.getBBox(),r&&r!=="auto"&&(a=r.push?r[0]*(s?s.width:o.offsetWidth||0):r.x,i=r.push?r[1]*(s?s.height:o.offsetHeight||0):r.y),e.apply(a||i?n.apply({x:a,y:i}):{x:n.e,y:n.f})},_getAlignMatrix=function t(o,r,e,n){var a=getGlobalMatrix(o.parentNode,!0,!0),i=a.clone().multiply(getGlobalMatrix(r)),s=_originToPoint(o,e,a),l=_originToPoint(r,n,a),d=l.x,c=l.y,u;return i.e=i.f=0,n==="auto"&&r.getTotalLength&&r.tagName.toLowerCase()==="path"&&(u=r.getAttribute("d").match(_numExp)||[],u=i.apply({x:+u[0],y:+u[1]}),d+=u.x,c+=u.y),u&&(u=i.apply(r.getBBox()),d-=u.x,c-=u.y),i.e=d-s.x,i.f=c-s.y,i},_align=function t(o,r,e){var n=e.align,a=e.matrix,i=e.offsetX,s=e.offsetY,l=e.alignOrigin,d=o[0][0],c=o[0][1],u=_getPropNum(r,"x"),f=_getPropNum(r,"y"),m,b,y;return!o||!o.length?getRawPath("M0,0L0,0"):(n&&(n==="self"||(m=_toArray$1(n)[0]||r)===r?transformRawPath(o,1,0,0,1,u-d,f-c):(l&&l[2]!==!1?gsap$2.set(r,{transformOrigin:l[0]*100+"% "+l[1]*100+"%"}):l=[_getPropNum(r,"xPercent")/-100,_getPropNum(r,"yPercent")/-100],b=_getAlignMatrix(r,m,l,"auto"),y=b.apply({x:d,y:c}),transformRawPath(o,b.a,b.b,b.c,b.d,u+b.e-(y.x-b.e),f+b.f-(y.y-b.f)))),a?transformRawPath(o,a.a,a.b,a.c,a.d,a.e,a.f):(i||s)&&transformRawPath(o,1,0,0,1,i||0,s||0),o)},_addDimensionalPropTween=function t(o,r,e,n,a,i){var s=r._gsap,l=s.harness,d=l&&l.aliases&&l.aliases[e],c=d&&d.indexOf(",")<0?d:e,u=o._pt=new PropTween(o._pt,r,c,0,0,_emptyFunc,0,s.set(r,c,o));u.u=_getUnit(s.get(r,c,i))||0,u.path=n,u.pp=a,o._props.push(c)},_sliceModifier=function t(o,r){return function(e){return o||r!==1?sliceRawPath(e,o,r):e}},MotionPathPlugin={version:"3.12.5",name:"motionPath",register:function t(o,r,e){gsap$2=o,_getUnit=gsap$2.utils.getUnit,_toArray$1=gsap$2.utils.toArray,_getStyleSaver=gsap$2.core.getStyleSaver,_reverting=gsap$2.core.reverting||function(){},PropTween=e},init:function t(o,r,e){if(!gsap$2)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(!(typeof r=="object"&&!r.style)||!r.path)&&(r={path:r});var n=[],a=r,i=a.path,s=a.autoRotate,l=a.unitX,d=a.unitY,c=a.x,u=a.y,f=i[0],m=_sliceModifier(r.start,"end"in r?r.end:1),b,y;if(this.rawPaths=n,this.target=o,this.tween=e,this.styles=_getStyleSaver&&_getStyleSaver(o,"transform"),
1045(this.rotate=s||s===0)&&(this.rOffset=parseFloat(s)||0,this.radians=!!r.useRadians,this.rProp=r.rotation||"rotation",this.rSet=o._gsap.set(o,this.rProp,this),this.ru=_getUnit(o._gsap.get(o,this.rProp))||0),Array.isArray(i)&&!("closed"in i)&&typeof f!="number"){for(y in f)!c&&~_xProps.indexOf(y)?c=y:!u&&~_yProps.indexOf(y)&&(u=y);c&&u?n.push(_segmentToRawPath(this,_populateSegmentFromArray(_populateSegmentFromArray([],i,c,0),i,u,1),o,c,u,m,r,l||_getUnit(i[0][c]),d||_getUnit(i[0][u]))):c=u=0;for(y in f)y!==c&&y!==u&&n.push(_segmentToRawPath(this,_populateSegmentFromArray([],i,y,2),o,y,0,m,r,_getUnit(i[0][y])))}else b=m(_align(getRawPath(r.path),o,r)),cacheRawPathMeasurements(b,r.resolution),n.push(b),_addDimensionalPropTween(this,o,r.x||"x",b,"x",r.unitX||"px"),_addDimensionalPropTween(this,o,r.y||"y",b,"y",r.unitY||"px")},render:function t(o,r){var e=r.rawPaths,n=e.length,a=r._pt;if(r.tween._time||!_reverting()){for(o>1?o=1:o<0&&(o=0);n--;)getPositionOnPath(e[n],o,!n&&r.rotate,e[n]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,o),a=a._next;r.rotate&&r.rSet(r.target,r.rProp,e[0].angle*(r.radians?_DEG2RAD:1)+r.rOffset+r.ru,r,o)}else r.styles.revert()},getLength:function t(o){return cacheRawPathMeasurements(getRawPath(o)).totalLength},sliceRawPath,getRawPath,pointsToSegment,stringToRawPath,rawPathToString,transformRawPath,getGlobalMatrix,getPositionOnPath,cacheRawPathMeasurements,convertToPath:function t(o,r){return _toArray$1(o).map(function(e){return convertToPath(e,r!==!1)})},convertCoordinates:function t(o,r,e){var n=getGlobalMatrix(r,!0,!0).multiply(getGlobalMatrix(o));return e?n.apply(e):n},getAlignMatrix:_getAlignMatrix,getRelativePosition:function t(o,r,e,n){var a=_getAlignMatrix(o,r,e,n);return{x:a.e,y:a.f}},arrayToRawPath:function t(o,r){r=r||{};var e=_populateSegmentFromArray(_populateSegmentFromArray([],o,r.x||"x",0),o,r.y||"y",1);return r.relative&&_relativize(e),[r.type==="cubic"?e:pointsToSegment(e,r.curviness)]}};_getGSAP$2()&&gsap$2.registerPlugin(MotionPathPlugin);const __default__$2o={name:"AppSpinner",expose:[]},_sfc_main$2q=Object.assign(__default__$2o,{props:{size:{type:Number,default:80}},setup(t,{expose:o}){gsapWithCSS.registerPlugin(MotionPathPlugin);const r=t,e=ref$1(null),n=ref$1(null);let a=[];const i=window.siteName,s=()=>{n.value.innerHTML=`
1046		<circle
1047			class="mainCircle"
1048			fill="none"
1049			stroke="none"
1050			stroke-width="2"
1051			stroke-miterlimit="10"
1052			cx="88"
1053			cy="88"
1054			r="70"
1055		/>
1056		
1057		<!--
1058		<circle
1059			class="planeCirclePath"
1060			fill="none"
1061			stroke="none"
1062			stroke-width="2"
1063			stroke-miterlimit="10"
1064			cx="88"
1065			cy="88"
1066			r="70"
1067		/>
1068		-->
1069		
1070		<path
1071			class="planeCirclePath"
1072			stroke-miterlimit="10"
1073			stroke-width="2"
1074			stroke="none"
1075			fill="none"
1076			d="M158,88 C158,126.65993 126.65993,158 88,158 49.34007,158 18,126.65993 18,88 18,49.34007 49.34007,18 88,18 126.65993,18 158,49.34007 158,88 z"
1077		/>
1078		
1079		<g class="mainContainer">
1080			<g class="plane">
1081				<svg width="2.5em" height="2.5em" viewBox="0 0 576 512" class="" fill="currentColor"><path d="M482.3 192C516.5 192 576 221 576 256C576 292 516.5 320 482.3 320H365.7L265.2 495.9C259.5 505.8 248.9 512 237.4 512H181.2C170.6 512 162.9 501.8 165.8 491.6L214.9 320H112L68.8 377.6C65.78 381.6 61.04 384 56 384H14.03C6.284 384 0 377.7 0 369.1C0 368.7 .1818 367.4 .5398 366.1L32 256L.5398 145.9C.1818 144.6 0 143.3 0 142C0 134.3 6.284 128 14.03 128H56C61.04 128 65.78 130.4 68.8 134.4L112 192H214.9L165.8 20.4C162.9 10.17 170.6 0 181.2 0H237.4C248.9 0 259.5 6.153 265.2 16.12L365.7 192H482.3z" /></svg>
1082			</g>
1083			<circle class="dot" cx="158" cy="88" r="5" fill="currentColor" />
1084			<circle class="dot" cx="156.875071" cy="100.498983" r="5" fill="currentColor" />
1085			<circle class="dot" cx="153.536441" cy="112.596238" r="5" fill="currentColor" />
1086			<circle class="dot" cx="148.091416" cy="123.902949" r="5" fill="currentColor" />
1087			<circle class="dot" cx="140.715003" cy="134.055711" r="5" fill="currentColor" />
1088			<circle class="dot" cx="131.644286" cy="142.728204" r="5" fill="currentColor" />
1089			<circle class="dot" cx="121.170806" cy="149.641687" r="5" fill="currentColor" />
1090			<circle class="dot" cx="109.63119" cy="154.573956" r="5" fill="currentColor" />
1091			<circle class="dot" cx="97.396329" cy="157.366483" r="5" fill="currentColor" />
1092			<circle class="dot" cx="84.859462" cy="157.929515" r="5" fill="currentColor" />
1093			<circle class="dot" cx="72.423535" cy="156.244954" r="5" fill="currentColor" />
1094			<circle class="dot" cx="60.488248" cy="152.366944" r="5" fill="currentColor" />
1095			<circle class="dot" cx="49.437211" cy="146.420128" r="5" fill="currentColor" />
1096			<circle class="dot" cx="39.625615" cy="138.59564" r="5" fill="currentColor" />
1097			<circle class="dot" cx="31.36881" cy="129.144968" r="5" fill="currentColor" />
1098			<circle class="dot" cx="24.932179" cy="118.371862" r="5" fill="currentColor" />
1099			<circle class="dot" cx="20.5226" cy="106.622579" r="5" fill="currentColor" />
1100			<circle class="dot" cx="18.281799" cy="94.274752" r="5" fill="currentColor" />
1101			<circle class="dot" cx="18.281799" cy="81.725248" r="5" fill="currentColor" />
1102			<circle class="dot" cx="20.5226" cy="69.377421" r="5" fill="currentColor" />
1103			<circle class="dot" cx="24.932179" cy="57.628138" r="5" fill="currentColor" />
1104			<circle class="dot" cx="31.36881" cy="46.855032" r="5" fill="currentColor" />
1105			<circle class="dot" cx="39.625615" cy="37.40436" r="5" fill="currentColor" />
1106			<circle class="dot" cx="49.437211" cy="29.579872" r="5" fill="currentColor" />
1107			<circle class="dot" cx="60.488248" cy="23.633056" r="5" fill="currentColor" />
1108			<circle class="dot" cx="72.423535" cy="19.755046" r="5" fill="currentColor" />
1109			<circle class="dot" cx="84.859462" cy="18.070485" r="5" fill="currentColor" />
1110			<circle class="dot" cx="97.396329" cy="18.633517" r="5" fill="currentColor" />
1111			<circle class="dot" cx="109.63119" cy="21.426044" r="5" fill="currentColor" />
1112			<circle class="dot" cx="121.170806" cy="26.358313" r="5" fill="currentColor" />
1113			<circle class="dot" cx="131.644286" cy="33.271796" r="5" fill="currentColor" />
1114			<circle class="dot" cx="140.715003" cy="41.944289" r="5" fill="currentColor" />
1115			<circle class="dot" cx="148.091416" cy="52.097051" r="5" fill="currentColor" />
1116			<circle class="dot" cx="153.536441" cy="63.403762" r="5" fill="currentColor" />
1117			<circle class="dot" cx="156.875071" cy="75.501017" r="5" fill="currentColor" />
1118		</g>
1119	`},l=()=>{const b=gsapWithCSS.timeline(),y=n.value,_=[],S=y.querySelectorAll(".dot"),C=S.length;S.forEach((D,N)=>{const F=gsapWithCSS.timeline({repeat:-1});F.from(D,{duration:.2,attr:{r:0},ease:"power2.easeIn"}).to(D,{duration:1.8,attr:{r:0},ease:"power2.easeOut"}),b.add(F,N/(C/F.duration())),_.push(F)});const T=y.querySelector(".plane"),x=y.querySelector(".planeCirclePath"),k=gsapWithCSS.timeline({repeat:-1});k.to(T,{duration:2,motionPath:{type:"cubic",path:x,align:x,autoRotate:!0,alignOrigin:[.5,.5]},ease:"none"}),b.add(k,.05),b.time(20),b.timeScale(1.2);const E=y.querySelector(".mainContainer"),w=gsapWithCSS.to(E,{duration:30,rotation:-360,transformOrigin:"50% 50%",repeat:-1,ease:"none"});return[..._,k,b,w]},d=()=>{a.forEach(b=>{var y;return(y=b.revert)==null?void 0:y.call(b)}),a=[],n.value&&(n.value.innerHTML="")},c=()=>{new ResizeObserver(y=>{y.at(0).contentRect.width===0?d():u()}).observe(e.value)};onMounted(async()=>{s(),c(),await nextTick$1(),a=l()}),onBeforeUnmount(d);const u=async()=>{d(),await nextTick$1(),s(),await nextTick$1(),a=l()},f=window.AEM_MHH_THEME_SWITCH;o({refreshAnimation:u});const m={props:r,rootEl:e,rootSvgEl:n,get animationStorage(){return a},set animationStorage(b){a=b},siteName:i,resetContainerDOM:s,startAnimation:l,destroyAnimation:d,setupVisibilityObserver:c,refreshAnimation:u,mhhNewTheme:f,get gsap(){return gsapWithCSS},get MotionPathPlugin(){return MotionPathPlugin}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),_hoisted_1$3a=["data-use-theme"],_hoisted_2$28={ref:"rootSvgEl",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function _sfc_render$2q(t,o,r,e,n,a){return openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["AppSpinner select-none text-primary-blue-base",{"mhh-new-theme":e.mhhNewTheme}]),style:normalizeStyle({width:`${e.props.size}px`,height:`${e.props.size}px`}),"aria-busy":"true","aria-live":"polite","aria-label":"Loading","data-use-theme":e.siteName},[(openBlock(),createElementBlock("svg",_hoisted_2$28,null,512))],14,_hoisted_1$3a)}
1119const AppSpinner=_export_sfc(_sfc_main$2q,[["render",_sfc_render$2q],["__scopeId","data-v-482edd61"],["__file","AppSpinner.vue"]]),__default__$2n={name:"ContainerBatikPattern"},_sfc_main$2p=Object.assign(__default__$2n,{props:{topEmptySpaceBgColor:{type:String,default:"#FFF"},btmEmptySpaceBgColor:{type:String,default:"#FFF"},containerBgColor:{type:String,default:"#1F4074"},contentBgColor:{type:String,default:"transparent"},backgroundImageUrl:{type:String,default:""},useBatikPattern:{type:Boolean,default:!0},useBatikBlueMag:{type:Boolean,default:!1},useBrighterBatikBlueMag:{type:Boolean,default:!1},useBatikTealMag:{type:Boolean,default:!1},useBrighterBatikTealMag:{type:Boolean,default:!1},useBottomRoundedCorner:{type:Boolean,default:!0},useCornerBand:{type:Boolean,default:!1},useBrighterBatik:{type:Boolean,default:!1},useFloralPattern:{type:Boolean,default:!1},applyShadow:{type:Boolean,default:!1},topCurveStyle:{type:String,default:""},bottomCurveStyle:{type:String,default:""},useGreyHibiscusPattern:{type:Boolean,default:!1},useOrangeHibiscusPattern:{type:Boolean,default:!1},useBlueIslamicPattern:{type:Boolean,default:!1},useTealIslamicPattern:{type:Boolean,default:!1},useAmalWhiteIslamicPattern:{type:Boolean,default:!1},useBlueIslamicPatternV2:{type:Boolean,default:!1},useUserDefinedPattern:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=computed(()=>e.topEmptySpaceBgColor),i=computed(()=>e.btmEmptySpaceBgColor),s=computed(()=>e.containerBgColor),l=computed(()=>e.contentBgColor),d={props:e,emit:n,computedTopEmptySpaceBgColor:a,computedBtmEmptySpaceBgColor:i,computedContainerBgColor:s,computedContentBgColor:l};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),_hoisted_1$39={class:"generic-container"},_hoisted_2$27={key:0,class:"corner-band pointer-events-none","aria-hidden":"true"},_hoisted_3$1F={key:0,class:"shadow-layer z-10"},_hoisted_4$1v={key:1,class:"shadow-masking-layer z-20"};function _sfc_render$2p(t,o,r,e,n,a){return openBlock(),createElementBlock("div",{class:normalizeClass(["ContainerBatikPattern",{"pb-8":e.props.applyShadow}]),style:normalizeStyle({"--btmEmptySpaceColor":e.computedBtmEmptySpaceBgColor})},[createBaseVNode("div",{class:normalizeClass(["container-inner z-30",[{"use-batik-pattern":e.props.useBatikPattern,"use-batik-songket-blue-mag":e.props.useBatikBlueMag,"use-brighter-batik-songket-blue-mag":e.props.useBrighterBatikBlueMag,"use-batik-songket-teal-mag":e.props.useBatikTealMag,"use-brighter-batik-songket-teal-mag":e.props.useBrighterBatikTealMag,"use-corner-band":e.props.useCornerBand,"use-brighter-batik":e.props.useBrighterBatik,"use-floral-pattern":e.props.useFloralPattern,"use-hibiscus-pattern use-grey-hibiscus-pattern":e.props.useGreyHibiscusPattern,"use-hibiscus-pattern use-orange-hibiscus-pattern":e.props.useOrangeHibiscusPattern,"use-blue-islamic-pattern":e.props.useBlueIslamicPattern,"use-teal-islamic-pattern":e.props.useTealIslamicPattern,"use-Amal-white-islamic-pattern":e.props.useAmalWhiteIslamicPattern,"use-blue-islamic-pattern-v2":e.props.useBlueIslamicPatternV2,"use-user-defined-pattern":e.props.useUserDefinedPattern},`use-curve-style-top--${e.props.topCurveStyle}`,`use-curve-style-bottom--${e.props.bottomCurveStyle}`]]),style:normalizeStyle({"background-color":e.computedContainerBgColor,"--batik-pattern-img":`url(${e.props.backgroundImageUrl})`,"--topEmptySpaceColor":e.computedTopEmptySpaceBgColor})},[o[0]||(o[0]=createBaseVNode("div",{class:"section-breaker pointer-events-none","aria-hidden":"true"},[createBaseVNode("div",{class:"left"}),createBaseVNode("div",{class:"right"})],-1)),createBaseVNode("div",{class:"container-content z-30 h-full",style:normalizeStyle({"background-color":e.computedContentBgColor})},[createBaseVNode("div",_hoisted_1$39,[renderSlot(t.$slots,"default",{},void 0,!0)])],4),e.props.useCornerBand?(openBlock(),createElementBlock("div",_hoisted_2$27)):createCommentVNode("",!0)],6),e.props.applyShadow?(openBlock(),createElementBlock("div",_hoisted_3$1F)):createCommentVNode("",!0),e.props.applyShadow?(openBlock(),createElementBlock("div",_hoisted_4$1v)):createCommentVNode("",!0)],6)}const ContainerBatikPattern=_export_sfc(_sfc_main$2p,[["render",_sfc_render$2p],["__scopeId","data-v-d8222aca"],["__file","ContainerBatikPattern.vue"]]);/**
1120  * vee-validate v4.9.6
1121  * (c) 2023 Abdelrahman Awad
1122  * @license MIT
1123  */function isCallable(t){return typeof t=="function"}function isNullOrUndefined(t){return t==null}const isObject$9=t=>t!==null&&!!t&&typeof t=="object"&&!Array.isArray(t);function isIndex$3(t){return Number(t)>=0}function toNumber(t){const o=parseFloat(t);return isNaN(o)?t:o}function isObjectLike$6(t){return typeof t=="object"&&t!==null}
1123function getTag$2(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function isPlainObject(t){if(!isObjectLike$6(t)||getTag$2(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let o=t;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}function merge(t,o){return Object.keys(o).forEach(r=>{if(isPlainObject(o[r])){t[r]||(t[r]={}),merge(t[r],o[r]);return}t[r]=o[r]}),t}const RULES={};function resolveRule(t){return RULES[t]}const FormContextKey=Symbol("vee-validate-form"),FieldContextKey=Symbol("vee-validate-field-instance"),IS_ABSENT=Symbol("Default empty value"),isClient=typeof window<"u";function isLocator(t){return isCallable(t)&&!!t.__locatorRef}function isTypedSchema(t){return!!t&&isCallable(t.parse)&&t.__type==="VVTypedSchema"}function isYupValidator(t){return!!t&&isCallable(t.validate)}function hasCheckedAttr(t){return t==="checkbox"||t==="radio"}function isContainerValue(t){return isObject$9(t)||Array.isArray(t)}function isEmptyContainer(t){return Array.isArray(t)?t.length===0:isObject$9(t)&&Object.keys(t).length===0}function isNotNestedPath(t){return/^\[.+\]$/i.test(t)}function isNativeMultiSelect(t){return isNativeSelect(t)&&t.multiple}function isNativeSelect(t){return t.tagName==="SELECT"}function isFormSubmitEvent(t){return isEvent(t)&&t.target&&"submit"in t.target}function isEvent(t){return t?!!(typeof Event<"u"&&isCallable(Event)&&t instanceof Event||t&&t.srcElement):!1}function isEqual(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var r,e,n;if(Array.isArray(t)){if(r=t.length,r!=o.length)return!1;for(e=r;e--!==0;)if(!isEqual(t[e],o[e]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(e of t.entries())if(!o.has(e[0]))return!1;for(e of t.entries())if(!isEqual(e[1],o.get(e[0])))return!1;return!0}if(isFile(t)&&isFile(o))return!(t.size!==o.size||t.name!==o.name||t.lastModified!==o.lastModified||t.type!==o.type);if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(e of t.entries())if(!o.has(e[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if(r=t.length,r!=o.length)return!1;for(e=r;e--!==0;)if(t[e]!==o[e])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(n=Object.keys(t),r=n.length,r!==Object.keys(o).length)return!1;for(e=r;e--!==0;)if(!Object.prototype.hasOwnProperty.call(o,n[e]))return!1;for(e=r;e--!==0;){var a=n[e];if(!isEqual(t[a],o[a]))return!1}return!0}return t!==t&&o!==o}function isFile(t){return isClient?t instanceof File:!1}function set$1(t,o,r){typeof r.value=="object"&&(r.value=klona(r.value)),!r.enumerable||r.get||r.set||!r.configurable||!r.writable||o==="__proto__"?Object.defineProperty(t,o,r):t[o]=r.value}function klona(t){if(typeof t!="object")return t;var o=0,r,e,n,a=Object.prototype.toString.call(t);if(a==="[object Object]"?n=Object.create(t.__proto__||null):a==="[object Array]"?n=Array(t.length):a==="[object Set]"?(n=new Set,t.forEach(function(i){n.add(klona(i))})):a==="[object Map]"?(n=new Map,t.forEach(function(i,s){n.set(klona(s),klona(i))})):a==="[object Date]"?n=new Date(+t):a==="[object RegExp]"?n=new RegExp(t.source,t.flags):a==="[object DataView]"?n=new t.constructor(klona(t.buffer)):a==="[object ArrayBuffer]"?n=t.slice(0):a.slice(-6)==="Array]"&&(n=new t.constructor(t)),n){for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)set$1(n,e[o],Object.getOwnPropertyDescriptor(t,e[o]));for(o=0,e=Object.getOwnPropertyNames(t);o<e.length;o++)Object.hasOwnProperty.call(n,r=e[o])&&n[r]===t[r]||set$1(n,r,Object.getOwnPropertyDescriptor(t,r))}return n||t}function cleanupNonNestedPath(t){return isNotNestedPath(t)?t.replace(/\[|\]/gi,""):t}function getFromPath(t,o,r){return t?isNotNestedPath(o)?t[cleanupNonNestedPath(o)]:(o||"").split(/\.|\[(\d+)\]/).filter(
1123Boolean).reduce((n,a)=>isContainerValue(n)&&a in n?n[a]:r,t):r}function setInPath(t,o,r){if(isNotNestedPath(o)){t[cleanupNonNestedPath(o)]=r;return}const e=o.split(/\.|\[(\d+)\]/).filter(Boolean);let n=t;for(let a=0;a<e.length;a++){if(a===e.length-1){n[e[a]]=r;return}(!(e[a]in n)||isNullOrUndefined(n[e[a]]))&&(n[e[a]]=isIndex$3(e[a+1])?[]:{}),n=n[e[a]]}}function unset(t,o){if(Array.isArray(t)&&isIndex$3(o)){t.splice(Number(o),1);return}isObject$9(t)&&delete t[o]}function unsetPath(t,o){if(isNotNestedPath(o)){delete t[cleanupNonNestedPath(o)];return}const r=o.split(/\.|\[(\d+)\]/).filter(Boolean);let e=t;for(let a=0;a<r.length;a++){if(a===r.length-1){unset(e,r[a]);break}if(!(r[a]in e)||isNullOrUndefined(e[r[a]]))break;e=e[r[a]]}const n=r.map((a,i)=>getFromPath(t,r.slice(0,i).join(".")));for(let a=n.length-1;a>=0;a--)if(isEmptyContainer(n[a])){if(a===0){unset(t,r[0]);continue}unset(n[a-1],r[a-1])}}function keysOf(t){return Object.keys(t)}function injectWithSelf(t,o=void 0){const r=getCurrentInstance();return(r==null?void 0:r.provides[t])||inject(t,o)}function resolveNextCheckboxValue(t,o,r){if(Array.isArray(t)){const e=[...t],n=e.findIndex(a=>isEqual(a,o));return n>=0?e.splice(n,1):e.push(o),e}return isEqual(t,o)?r:o}function debounceAsync(t,o=0){let r=null,e=[];return function(...n){return r&&window.clearTimeout(r),r=window.setTimeout(()=>{const a=t(...n);e.forEach(i=>i(a)),e=[]},o),new Promise(a=>e.push(a))}}function applyModelModifiers(t,o){return isObject$9(o)&&o.number?toNumber(t):t}function withLatest(t,o){let r;return async function(...n){const a=t(...n);r=a;const i=await a;return a!==r||(r=void 0,o(i,n)),i}}function unravel(t){return isCallable(t)?t():unref(t)}function lazyToRef(t){return computed(()=>unravel(t))}function normalizeErrorItem(t){return Array.isArray(t)?t:t?[t]:[]}function omit(t,o){const r={};for(const e in t)o.includes(e)||(r[e]=t[e]);return r}function getBoundValue(t){if(hasValueBinding(t))return t._value}function hasValueBinding(t){return"_value"in t}function normalizeEventValue(t){if(!isEvent(t))return t;const o=t.target;if(hasCheckedAttr(o.type)&&hasValueBinding(o))return getBoundValue(o);if(o.type==="file"&&o.files){const r=Array.from(o.files);return o.multiple?r:r[0]}if(isNativeMultiSelect(o))return Array.from(o.options).filter(r=>r.selected&&!r.disabled).map(getBoundValue);if(isNativeSelect(o)){const r=Array.from(o.options).find(e=>e.selected);return r?getBoundValue(r):o.value}return o.value}function normalizeRules(t){const o={};return Object.defineProperty(o,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),t?isObject$9(t)&&t._$$isNormalized?t:isObject$9(t)?Object.keys(t).reduce((r,e)=>{const n=normalizeParams(t[e]);return t[e]!==!1&&(r[e]=buildParams(n)),r},o):typeof t!="string"?o:t.split("|").reduce((r,e)=>{const n=parseRule(e);return n.name&&(r[n.name]=buildParams(n.params)),r},o):o}function normalizeParams(t){return t===!0?[]:Array.isArray(t)||isObject$9(t)?t:[t]}function buildParams(t){const o=r=>typeof r=="string"&&r[0]==="@"?createLocator(r.slice(1)):r;return Array.isArray(t)?t.map(o):t instanceof RegExp?[t]:Object.keys(t).reduce((r,e)=>(r[e]=o(t[e]),r),{})}const parseRule=t=>{let o=[];const r=t.split(":")[0];return t.includes(":")&&(o=t.split(":").slice(1).join(":").split(",")),{name:r,params:o}};function createLocator(t){const o=r=>getFromPath(r,t)||r[t];return o.__locatorRef=t,o}function extractLocators(t){return Array.isArray(t)?t.filter(isLocator):keysOf(t).filter(o=>isLocator(t[o])).map(o=>t[o])}const DEFAULT_CONFIG={generateMessage:({field:t})=>`${t} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let currentConfig=Object.assign({},DEFAULT_CONFIG);const getConfig=()=>currentConfig;async function validate(t,o,r={}
1123){const e=r==null?void 0:r.bails,n={name:(r==null?void 0:r.name)||"{field}",rules:o,label:r==null?void 0:r.label,bails:e??!0,formData:(r==null?void 0:r.values)||{}},i=(await _validate(n,t)).errors;return{errors:i,valid:!i.length}}async function _validate(t,o){if(isTypedSchema(t.rules)||isYupValidator(t.rules))return validateFieldWithTypedSchema(o,t.rules);if(isCallable(t.rules)||Array.isArray(t.rules)){const i={field:t.label||t.name,name:t.name,label:t.label,form:t.formData,value:o},s=Array.isArray(t.rules)?t.rules:[t.rules],l=s.length,d=[];for(let c=0;c<l;c++){const u=s[c],f=await u(o,i);if(typeof f!="string"&&f)continue;const b=typeof f=="string"?f:_generateFieldError(i);if(d.push(b),t.bails)return{errors:d}}return{errors:d}}const r=Object.assign(Object.assign({},t),{rules:normalizeRules(t.rules)}),e=[],n=Object.keys(r.rules),a=n.length;for(let i=0;i<a;i++){const s=n[i],l=await _test(r,o,{name:s,params:r.rules[s]});if(l.error&&(e.push(l.error),t.bails))return{errors:e}}return{errors:e}}function isYupError(t){return!!t&&t.name==="ValidationError"}function yupToTypedSchema(t){return{__type:"VVTypedSchema",async parse(r){var e;try{return{output:await t.validate(r,{abortEarly:!1}),errors:[]}}catch(n){if(!isYupError(n))throw n;if(!(!((e=n.inner)===null||e===void 0)&&e.length)&&n.errors.length)return{errors:[{path:n.path,errors:n.errors}]};const a=n.inner.reduce((i,s)=>{const l=s.path||"";return i[l]||(i[l]={errors:[],path:l}),i[l].errors.push(...s.errors),i},{});return{errors:Object.values(a)}}}}}async function validateFieldWithTypedSchema(t,o){const e=await(isTypedSchema(o)?o:yupToTypedSchema(o)).parse(t),n=[];for(const a of e.errors)a.errors.length&&n.push(...a.errors);return{errors:n}}async function _test(t,o,r){const e=resolveRule(r.name);if(!e)throw new Error(`No such validator '${r.name}' exists.`);const n=fillTargetValues(r.params,t.formData),a={field:t.label||t.name,name:t.name,label:t.label,value:o,form:t.formData,rule:Object.assign(Object.assign({},r),{params:n})},i=await e(o,n,a);return typeof i=="string"?{error:i}:{error:i?void 0:_generateFieldError(a)}}function _generateFieldError(t){const o=getConfig().generateMessage;return o?o(t):"Field is invalid"}function fillTargetValues(t,o){const r=e=>isLocator(e)?e(o):e;return Array.isArray(t)?t.map(r):Object.keys(t).reduce((e,n)=>(e[n]=r(t[n]),e),{})}async function validateTypedSchema(t,o){const e=await(isTypedSchema(t)?t:yupToTypedSchema(t)).parse(o),n={},a={};for(const i of e.errors){const s=i.errors,l=(i.path||"").replace(/\["(\d+)"\]/g,(d,c)=>`[${c}]`);n[l]={valid:!s.length,errors:s},s.length&&(a[l]=s[0])}return{valid:!e.errors.length,results:n,errors:a,values:e.value}}async function validateObjectSchema(t,o,r){const n=keysOf(t).map(async d=>{var c,u,f;const m=(c=r==null?void 0:r.names)===null||c===void 0?void 0:c[d],b=await validate(getFromPath(o,d),t[d],{name:(m==null?void 0:m.name)||d,label:m==null?void 0:m.label,values:o,bails:(f=(u=r==null?void 0:r.bail
1123sMap)===null||u===void 0?void 0:u[d])!==null&&f!==void 0?f:!0});return Object.assign(Object.assign({},b),{path:d})});let a=!0;const i=await Promise.all(n),s={},l={};for(const d of i)s[d.path]={valid:d.valid,errors:d.errors},d.valid||(a=!1,l[d.path]=d.errors[0]);return{valid:a,results:s,errors:l}}let ID_COUNTER=0;function useFieldState(t,o){const{value:r,initialValue:e,setInitialValue:n}=_useFieldValue(t,o.modelValue,o.form);if(!o.form){let l=function(m){var b;"value"in m&&(r.value=m.value),"errors"in m&&c(m.errors),"touched"in m&&(f.touched=(b=m.touched)!==null&&b!==void 0?b:f.touched),"initialValue"in m&&n(m.initialValue)};const{errors:d,setErrors:c}=createFieldErrors(),u=ID_COUNTER>=Number.MAX_SAFE_INTEGER?0:++ID_COUNTER,f=createFieldMeta(r,e,d);return{id:u,path:t,value:r,initialValue:e,meta:f,flags:{pendingUnmount:{[u]:!1}},errors:d,setState:l}}const a=o.form.createPathState(t,{bails:o.bails,label:o.label,type:o.type,validate:o.validate}),i=computed(()=>a.errors);function s(l){var d,c,u;"value"in l&&(r.value=l.value),"errors"in l&&((d=o.form)===null||d===void 0||d.setFieldError(unref(t),l.errors)),"touched"in l&&((c=o.form)===null||c===void 0||c.setFieldTouched(unref(t),(u=l.touched)!==null&&u!==void 0?u:!1)),"initialValue"in l&&n(l.initialValue)}return{id:Array.isArray(a.id)?a.id[a.id.length-1]:a.id,path:t,value:r,errors:i,meta:a,initialValue:e,flags:a.__flags,setState:s}}function _useFieldValue(t,o,r){const e=ref$1(unref(o));function n(){return r?getFromPath(r.initialValues.value,unref(t),unref(e)):unref(e)}function a(d){if(!r){e.value=d;return}r.stageInitialValue(unref(t),d,!0)}const i=computed(n);if(!r)return{value:ref$1(n()),initialValue:i,setInitialValue:a};const s=resolveModelValue(o,r,i,t);return r.stageInitialValue(unref(t),s,!0),{value:computed({get(){return getFromPath(r.values,unref(t))},set(d){r.setFieldValue(unref(t),d)}}),initialValue:i,setInitialValue:a}}function resolveModelValue(t,o,r,e){return isRef(t)?unref(t):t!==void 0?t:getFromPath(o.values,unref(e),unref(r))}function createFieldMeta(t,o,r){const e=reactive({touched:!1,pending:!1,valid:!0,validated:!!unref(r).length,initialValue:computed(()=>unref(o)),dirty:computed(()=>!isEqual(unref(t),unref(o)))});return watch(r,n=>{e.valid=!n.length},{immediate:!0,flush:"sync"}),e}function createFieldErrors(){const t=ref$1([]);return{errors:t,setErrors:o=>{t.value=normalizeErrorItem(o)}}}function useField(t,o,r){return hasCheckedAttr(r==null?void 0:r.type)?useFieldWithChecked(t,o,r):_useField(t,o,r)}function _useField(t,o,r){const{initialValue:e,validateOnMount:n,bails:a,type:i,checkedValue:s,label:l,validateOnValueUpdate:d,uncheckedValue:c,controlled:u,keepValueOnUnmount:f,modelPropName:m,syncVModel:b,form:y}=normalizeOptions(r),_=u?injectWithSelf(FormContextKey):void 0,S=y||_,C=lazyToRef(t),T=computed(()=>{if(unref(S==null?void 0:S.schema))return;const re=unref(o);return isYupValidator(re)||isTypedSchema(re)||isCallable(re)||Array.isArray(re)?re:normalizeRules(re)}),{id:x,value:k,initialValue:E,meta:w,setState:D,errors:N,flags:F}=useFieldState(C,{modelValue:e,form:S,bails:a,label:l,type:i,validate:T.value?I:void 0}),V=computed(()=>N.value[0]);b&&useVModel({value:k,prop:m,handleChange:j});const A=()=>{w.touched=!0};async function M(te){var re,oe;return S!=null&&S.validateSchema?(re=(await S.validateSchema(te)).results[unref(C)])!==null&&re!==void 0?re:{valid:!0,errors:[]}:T.value?validate(k.value,T.value,{name:unref(C),label:unref(l),values:(oe=S==null?void 0:S.values)!==null&&oe!==void 0?oe:{},bails:a}):{valid:!0,errors:[]}}const O=withLatest(async()=>(w.pending=!0,w.validated=!0,M("validated-only")),te=>{if(!F.pendingUnmount[W.id])return D({errors:te.errors}),w.pending=!1,w.valid=te.valid,te}),R=withLatest(async()=>M("silent"),te=>(w.valid=te.valid,te));function I(te){return(te==null?void 0:te.mode)==="silent"?R():O()}function j(te,re=!0){const oe=normalizeEventValue(te);B(oe,re)}onMounted(()=>{if(n)return O();(!S||!S.validateSchema)&&R()});function H(te){w.touched=te}function U(te){var re;const oe=te&&"value"in te?te.value:E.value;D({value:klona(oe),initialValue:klona(oe),touched:(re=te==null?void 0:te.touched)!==null&&re!==void 0?re:!1,errors:(te==null?void 0:te.errors)||[]}),w.pending=!1,w.validated=!1,R()}function B(te,re=!0){if(k.value=te,!re){R();return}(re?O:R)()}function L(te){D({errors:Array.isArray(te)?te:[te]})}const z=computed({get(){return k.value},set(te){B(te,d)}}),W={id:x,name:C,label:l,value:z,meta:w,errors:N,errorMessage:V,type:i,checkedValue:s,uncheckedValue:c,bails:a,keepValueOnUnmount:f,resetField:U,handleReset:()=>U(),validate:I,handleChange:j,handleBlur:A,setState:D,setTouched:H,setErrors:L,setValue:B};if(provide(FieldContextKey,W),isRef(o)&&typeof unref(o)!="function"&&watch(o,(te,re)=>{isEqual(te,re)||(w.validated?O():R())},{deep:!0}),!S)return W;const J=computed(()=>{const te=T.value;return!te||isCallable(te)||isYupValidator(te)||isTypedSchema(te)||Array.isArray(te)?{}:Object.keys(te).reduce((re,oe)=>{const X=extractLocators(te[oe]).map(se=>se.__locatorRef).reduce((se,le)=>{const he=getFromPath(S.values,le)||S.values[le];return he!==void 0&&(se[le]=he),se},{});return Object.assign(re,X),re},{})});return watch(J,(te,re)=>{if(!Object.keys(te).length)return;!isEqual(te,re)&&(w.validated?O():R())}),onBeforeUnmount(()=>{var te;const re=(te=unref(W.keepValueOnUnmount))!==null&&te!==void 0?te:unref(S.keepValuesOnUnmount),oe=unravel(C);if(re||!S||F.pendingUnmount[W.id]){S==null||S.removePathState(oe,x);return}F.pendingUnmount[W.id]=!0;const X=S.getPathState(oe);
1123if(Array.isArray(X==null?void 0:X.id)&&(X!=null&&X.multiple)?X!=null&&X.id.includes(W.id):(X==null?void 0:X.id)===W.id){if(X!=null&&X.multiple&&Array.isArray(X.value)){const le=X.value.findIndex(he=>isEqual(he,unref(W.checkedValue)));if(le>-1){const he=[...X.value];he.splice(le,1),S.setFieldValue(oe,he)}Array.isArray(X.id)&&X.id.splice(X.id.indexOf(W.id),1)}else S.unsetPathValue(unravel(C));S.removePathState(oe,x)}}),W}function normalizeOptions(t){var o;const r=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,modelPropName:"modelValue",syncVModel:!0,controlled:!0}),n=((o=t==null?void 0:t.syncVModel)!==null&&o!==void 0?o:!0)&&!("initialValue"in(t||{}))?getCurrentModelValue(getCurrentInstance(),(t==null?void 0:t.modelPropName)||"modelValue"):t==null?void 0:t.initialValue;if(!t)return Object.assign(Object.assign({},r()),{initialValue:n});const a="valueProp"in t?t.valueProp:t.checkedValue,i="standalone"in t?!t.standalone:t.controlled;return Object.assign(Object.assign(Object.assign({},r()),t||{}),{initialValue:n,controlled:i??!0,checkedValue:a})}function useFieldWithChecked(t,o,r){const e=r!=null&&r.standalone?void 0:injectWithSelf(FormContextKey),n=r==null?void 0:r.checkedValue,a=r==null?void 0:r.uncheckedValue;function i(s){const l=s.handleChange,d=computed(()=>{const u=unref(s.value),f=unref(n);return Array.isArray(u)?u.findIndex(m=>isEqual(m,f))>=0:isEqual(f,u)});function c(u,f=!0){var m;if(d.value===((m=u==null?void 0:u.target)===null||m===void 0?void 0:m.checked)){f&&s.validate();return}const b=unravel(t),y=e==null?void 0:e.getPathState(b),_=normalizeEventValue(u);let S;e&&(y!=null&&y.multiple)&&y.type==="checkbox"?S=resolveNextCheckboxValue(getFromPath(e.values,b)||[],_,void 0):S=resolveNextCheckboxValue(unref(s.value),unref(n),unref(a)),l(S,f)}return Object.assign(Object.assign({},s),{checked:d,checkedValue:n,uncheckedValue:a,handleChange:c})}return i(_useField(t,o,r))}function useVModel({prop:t,value:o,handleChange:r}){const e=getCurrentInstance();if(!e)return;const n=t||"modelValue",a=`update:${n}`;n in e.props&&(watch(o,i=>{isEqual(i,getCurrentModelValue(e,n))||e.emit(a,i)}),watch(()=>getCurrentModelValue(e,n),i=>{if(i===IS_ABSENT&&o.value===void 0)return;const s=i===IS_ABSENT?void 0:i;isEqual(s,applyModelModifiers(o.value,e.props.modelModifiers))||r(s)}))}function getCurrentModelValue(t,o){if(t)return t.props[o]}let FORM_COUNTER=0;const PRIVATE_PATH_STATE_KEYS=["bails","fieldsCount","id","multiple","type","validate"];function resolveInitialValues(t){const o=unref(t==null?void 0:t.initialValues)||{},r=unref(t==null?void 0:t.validationSchema);return r&&isTypedSchema(r)&&isCallable(r.cast)?klona(r.cast(o)||{}):klona(o)}function useForm(t){var o;const r=FORM_COUNTER++;let e=0;const n=ref$1(!1),a=ref$1(!1),i=ref$1(0),s=[],l=reactive(resolveInitialValues(t)),d=ref$1([]),c=ref$1({});function u(Z,de){const fe=O(Z);if(!fe){typeof Z=="string"&&(c.value[Z]=normalizeErrorItem(de));return}fe.errors=normalizeErrorItem(de),fe.valid=!fe.errors.length}function f(Z){keysOf(Z).forEach(de=>{u(de,Z[de])})}t!=null&&t.initialErrors&&f(t.initialErrors);const m=computed(()=>{const Z=d.value.reduce((de,fe)=>(fe.errors.length&&(de[fe.path]=fe.errors),de),{});return Object.assign(Object.assign({},c.value),Z)}),b=computed(()=>keysOf(m.value).reduce((Z,de)=>{const fe=m.value[de];return fe!=null&&fe.length&&(Z[de]=fe[0]),Z},{})),y=computed(()=>d.value.reduce((Z,de)=>(Z[de.path]={name:de.path||"",label:de.label||""},Z),{})),_=computed(()=>d.value.reduce((Z,de)=>{var fe;return Z[de.path]=(fe=de.bails)!==null&&fe!==void 0?fe:!0,Z},{})),S=Object.assign({},(t==null?void 0:t.initialErrors)||{}),C=(o=t==null?void 0:t.keepValuesOnUnmount)!==null&&o!==void 0?o:!1,{initialValues:T,originalInitialValues:x,setInitialValues:k}=useFormInitialValues(d,l,t),E=useFormMeta(d,l,x,b),w=computed(()=>d.value.reduce((Z,de)=>{const fe=getFromPath(l,de.path);return setInPath(Z,de.path,fe),Z},{})),D=t==null?void 0:t.validationSchema;function N(Z,de){var fe,_e;const pe=computed(()=>getFromPath(T.value,unravel(Z))),ve=d.value.find(Ae=>Ae.path===unref(Z));if(ve){((de==null?void 0:de.type)==="checkbox"||(de==null?void 0:de.type)==="radio")&&(ve.multiple=!0);const Ae=e++;return Array.isArray(ve.id)?ve.id.push(Ae):ve.id=[ve.id,Ae],ve.fieldsCount++,ve.__flags.pendingUnmount[Ae]=!1,ve}const Me=computed(()=>getFromPath(l,unravel(Z))),Fe=unravel(Z),Te=e++,Se=reactive({id:Te,path:Z,touched:!1,pending:!1,valid:!0,validated:!!(!((fe=S[Fe])===null||fe===void 0)&&fe.length),initialValue:pe,errors:shallowRef([]),bails:(_e=de==null?void 0:de.bails)!==null&&_e!==void 0?_e:!1,label:de==null?void 0:de.label,type:(de==null?void 0:de.type)||"default",value:Me,multiple:!1,__flags:{pendingUnmount:{[Te]:!1}},fieldsCount:1,validate:de==null?void 0:de.validate,dirty:computed(()=>!isEqual(unref(Me),unref(pe)))});return d.value.push(Se),b.value[Fe]&&!S[Fe]&&nextTick$1(()=>{Y(Fe)}),isRef(Z)&&watch(Z,Ae=>{const ue=klona(Me.value);nextTick$1(()=>{setInPath(l,Ae,ue)})}),Se}const F=debounceAsync(Be,5),V=debounceAsync(Be,5),A=withLatest(async Z=>await Z==="silent"?F():V(),(Z,[de])=>{const fe=keysOf(J.errorBag.value);return[...new Set([...keysOf(Z.results),...d.value.map(pe=>pe.path),...fe])].sort().reduce((pe,ve)=>{const Me=ve,Fe=O(Me)||R(Me),Te=(Z.results[Me]||{errors:[]}).errors,Se={errors:Te,valid:!Te.length};return pe.results[Me]=Se,Se.valid||(pe.errors[Me]=Se.errors[0]),Fe&&c.value[Me]&&delete c.value[Me],Fe?(Fe.valid=Se.valid,de==="silent"||de==="validated-only"&&!Fe.validated||u(Fe,Se.errors),pe):(u(Me,Te),pe)},{valid:Z.valid,results:{},errors:{}})});function M(Z){d.value.forEach(Z)}function O(Z){return typeof Z=="string"?d.value.find(fe=>fe.path===Z):Z}function R(Z){return d.value.filter(fe=>Z.startsWith(fe.path)).reduce((fe,_e)=>fe?_e.path.length>fe.path.length?_e:fe:_e,void 0)}let I=[],j;function H(Z){return I.push(Z),j||(j=nextTick$1(()=>
1123{[...I].sort().reverse().forEach(fe=>{unsetPath(l,fe)}),I=[],j=null})),j}function U(Z){return function(fe,_e){return function(ve){return ve instanceof Event&&(ve.preventDefault(),ve.stopPropagation()),M(Me=>Me.touched=!0),n.value=!0,i.value++,Q().then(Me=>{const Fe=klona(l);if(Me.valid&&typeof fe=="function"){const Te=klona(w.value);let Se=Z?Te:Fe;return Me.values&&(Se=Me.values),fe(Se,{evt:ve,controlledValues:Te,setErrors:f,setFieldError:u,setTouched:le,setFieldTouched:se,setValues:re,setFieldValue:te,resetForm:ge,resetField:he})}!Me.valid&&typeof _e=="function"&&_e({values:Fe,evt:ve,errors:Me.errors,results:Me.results})}).then(Me=>(n.value=!1,Me),Me=>{throw n.value=!1,Me})}}}const L=U(!1);L.withControlled=U(!0);function z(Z,de){const fe=d.value.findIndex(pe=>pe.path===Z),_e=d.value[fe];if(!(fe===-1||!_e)){if(_e.multiple&&_e.fieldsCount&&_e.fieldsCount--,Array.isArray(_e.id)){const pe=_e.id.indexOf(de);pe>=0&&_e.id.splice(pe,1),delete _e.__flags.pendingUnmount[de]}(!_e.multiple||_e.fieldsCount<=0)&&(d.value.splice(fe,1),ne(Z))}}function W(Z){return M(de=>{de.path.startsWith(Z)&&keysOf(de.__flags.pendingUnmount).forEach(fe=>{de.__flags.pendingUnmount[fe]=!0})})}const J={formId:r,values:l,controlledValues:w,errorBag:m,errors:b,schema:D,submitCount:i,meta:E,isSubmitting:n,isValidating:a,fieldArrays:s,keepValuesOnUnmount:C,validateSchema:unref(D)?A:void 0,validate:Q,setFieldError:u,validateField:Y,setFieldValue:te,setValues:re,setErrors:f,setFieldTouched:se,setTouched:le,resetForm:ge,resetField:he,handleSubmit:L,stageInitialValue:Ce,unsetInitialValue:ne,setFieldInitialValue:ae,useFieldModel:X,createPathState:N,getPathState:O,unsetPathValue:H,removePathState:z,initialValues:T,getAllPathStates:()=>d.value,markForUnmount:W};function te(Z,de){const fe=klona(de),_e=typeof Z=="string"?Z:Z.path;O(_e)||N(_e),setInPath(l,_e,fe)}function re(Z){merge(l,Z),s.forEach(de=>de&&de.reset())}function oe(Z){const de=O(unref(Z))||N(Z);return computed({get(){return de.value},set(fe){const _e=unref(Z);te(_e,fe),de.validated=!0,de.pending=!0,Y(_e).then(()=>{de.pending=!1})}})}function X(Z){return Array.isArray(Z)?Z.map(oe):oe(Z)}function se(Z,de){const fe=O(Z);fe&&(fe.touched=de)}function le(Z){keysOf(Z).forEach(de=>{se(de,!!Z[de])})}function he(Z,de){var fe;const _e=de&&"value"in de?de.value:getFromPath(T.value,Z);ae(Z,klona(_e)),te(Z,_e),se(Z,(fe=de==null?void 0:de.touched)!==null&&fe!==void 0?fe:!1),u(Z,(de==null?void 0:de.errors)||[])}function ge(Z){const de=Z!=null&&Z.values?Z.values:x.value;k(de),re(de),M(fe=>{var _e;fe.validated=!1,fe.touched=((_e=Z==null?void 0:Z.touched)===null||_e===void 0?void 0:_e[fe.path])||!1,te(fe.path,getFromPath(de,fe.path)),u(fe.path,void 0)}),f((Z==null?void 0:Z.errors)||{}),i.value=(Z==null?void 0:Z.submitCount)||0,nextTick$1(()=>{Q({mode:"silent"})})}async function Q(Z){const de=(Z==null?void 0:Z.mode)||"force";if(de==="force"&&M(ve=>ve.validated=!0),J.validateSchema)return J.validateSchema(de);a.value=!0;const fe=await Promise.all(d.value.map(ve=>ve.validate?ve.validate(Z).then(Me=>({key:ve.path,valid:Me.valid,errors:Me.errors})):Promise.resolve({key:ve.path,valid:!0,errors:[]})));a.value=!1;const _e={},pe={};for(const ve of fe)_e[ve.key]={valid:ve.valid,errors:ve.errors},ve.errors.length&&(pe[ve.key]=ve.errors[0]);return{valid:fe.every(ve=>ve.valid),results:_e,errors:pe}}async function Y(Z){const de=O(Z);if(de&&(de.validated=!0),D){const{results:fe}=await A("validated-only");return fe[Z]||{errors:[],valid:!0}}return de!=null&&de.validate?de.validate():Promise.resolve({errors:[],valid:!0})}function ne(Z){unsetPath(T.value,Z)}function Ce(Z,de,fe=!1){ae(Z,de),setInPath(l,Z,de),fe&&!(t!=null&&t.initialValues)&&setInPath(x.value,Z,klona(de))}function ae(Z,de){setInPath(T.value,Z,klona(de))}async function Be(){const Z=unref(D);if(!Z)return{valid:!0,results:{},errors:{}};a.value=!0;const de=isYupValidator(Z)||isTypedSchema(Z)?await validateTypedSchema(Z,l):await validateObjectSchema(Z,l,{names:y.value,bailsMap:_.value});return a.value=!1,de}const me=L((Z,{evt:de})=>{isFormSubmitEvent(de)&&de.target.submit()});onMounted(()=>
1123{if(t!=null&&t.initialErrors&&f(t.initialErrors),t!=null&&t.initialTouched&&le(t.initialTouched),t!=null&&t.validateOnMount){Q();return}J.validateSchema&&J.validateSchema("silent")}),isRef(D)&&watch(D,()=>{var Z;(Z=J.validateSchema)===null||Z===void 0||Z.call(J,"validated-only")}),provide(FormContextKey,J);function K(Z,de){const fe=O(unravel(Z))||N(Z),_e=()=>isCallable(de)?de(omit(fe,PRIVATE_PATH_STATE_KEYS)):de||{};function pe(){var Fe;fe.touched=!0,((Fe=_e().validateOnBlur)!==null&&Fe!==void 0?Fe:getConfig().validateOnBlur)&&Y(fe.path)}function ve(Fe){var Te;te(fe.path,Fe),((Te=_e().validateOnModelUpdate)!==null&&Te!==void 0?Te:getConfig().validateOnModelUpdate)&&Y(fe.path)}return computed(()=>{const Fe={modelValue:fe.value,"onUpdate:modelValue":ve,onBlur:pe};return isCallable(de)?Object.assign(Object.assign({},Fe),de(fe).props||{}):de!=null&&de.mapProps?Object.assign(Object.assign({},Fe),de.mapProps(omit(fe,PRIVATE_PATH_STATE_KEYS))):Fe})}function q(Z,de){const fe=O(unravel(Z))||N(Z),_e=()=>isCallable(de)?de(omit(fe,PRIVATE_PATH_STATE_KEYS)):de||{};function pe(){var Te;fe.touched=!0,((Te=_e().validateOnBlur)!==null&&Te!==void 0?Te:getConfig().validateOnBlur)&&Y(fe.path)}function ve(Te){var Se;const Ae=normalizeEventValue(Te);te(fe.path,Ae),((Se=_e().validateOnInput)!==null&&Se!==void 0?Se:getConfig().validateOnInput)&&Y(fe.path)}function Me(Te){var Se;const Ae=normalizeEventValue(Te);te(fe.path,Ae),((Se=_e().validateOnChange)!==null&&Se!==void 0?Se:getConfig().validateOnChange)&&Y(fe.path)}return computed(()=>{const Te={value:fe.value,onChange:Me,onInput:ve,onBlur:pe};return isCallable(de)?Object.assign(Object.assign({},Te),de(omit(fe,PRIVATE_PATH_STATE_KEYS)).attrs||{}):de!=null&&de.mapAttrs?Object.assign(Object.assign({},Te),de.mapAttrs(omit(fe,PRIVATE_PATH_STATE_KEYS))):Te})}return Object.assign(Object.assign({},J),{handleReset:()=>ge(),submitForm:me,defineComponentBinds:K,defineInputBinds:q})}function useFormMeta(t,o,r,e){const n={touched:"some",pending:"some",valid:"every"},a=computed(()=>!isEqual(o,unref(r)));function i(){const l=t.value;return keysOf(n).reduce((d,c)=>{const u=n[c];return d[c]=l[u](f=>f[c]),d},{})}const s=reactive(i());return watchEffect(()=>{const l=i();s.touched=l.touched,s.valid=l.valid,s.pending=l.pending}),computed(()=>Object.assign(Object.assign({initialValues:unref(r)},s),{valid:s.valid&&!keysOf(e.value).length,dirty:a.value}))}function useFormInitialValues(t,o,r){const e=resolveInitialValues(r),n=r==null?void 0:r.initialValues,a=ref$1(e),i=ref$1(klona(e));function s(l,d=!1){a.value=klona(l),i.value=klona(l),d&&t.value.forEach(c=>{if(c.touched)return;const f=getFromPath(a.value,c.path);setInPath(o,c.path,klona(f))})}return isRef(n)&&watch(n,l=>{l&&s(l,!0)},{deep:!0}),{initialValues:a,originalInitialValues:i,setInitialValues:s}}const __default__$2m={name:"FormWrapper"},_sfc_main$2o=Object.assign(__default__$2m,{props:{focusFirstErrorElOnInvalidSubmit:{type:Boolean,default:!1}},emits:["submit-valid","submit-invalid"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=useForm(),{errors:i,isSubmitting:s,submitCount:l,meta:d,values:c,setFieldError:u,setErrors:f,setFieldValue:m,setValues:b,validate:y,validateField:_,handleSubmit:S,submitForm:C,handleReset:T,resetForm:x}=a,k=ref$1(null),E=S((...D)=>{n("submit-valid",...D)},(...D)=>{if(e.focusFirstErrorElOnInvalidSubmit){const N=k.value.querySelector('[aria-invalid="true"]');N&&(N._mh_invalidFocus?N._mh_invalidFocus(N):(MHScrollToElement(N,{additionalTopOffset:60}),N.focus({preventScroll:!0,focusVisible:!0})))}n("submit-invalid",...D)});o({errors:i,isSubmitting:s,submitCount:l,meta:d,values:c,setFieldError:u,setErrors:f,setFieldValue:m,setValues:b,validate:y,validateField:_,handleSubmit:S,submitForm:C,handleReset:T,resetForm:x,rootEl:k}
1123);const w={props:e,emit:n,form:a,errors:i,isSubmitting:s,submitCount:l,meta:d,values:c,setFieldError:u,setErrors:f,setFieldValue:m,setValues:b,validate:y,validateField:_,handleSubmit:S,submitForm:C,handleReset:T,resetForm:x,rootEl:k,onSubmit:E,get useForm(){return useForm},get MHScrollToElement(){return MHScrollToElement}};return Object.defineProperty(w,"__isScriptSetup",{enumerable:!1,value:!0}),w}});function _sfc_render$2o(t,o,r,e,n,a){return openBlock(),createElementBlock("form",{ref:"rootEl",class:"FormWrapper",novalidate:"",onSubmit:o[0]||(o[0]=(...i)=>e.onSubmit&&e.onSubmit(...i))},[renderSlot(t.$slots,"default",normalizeProps(guardReactiveProps({errors:e.errors,isSubmitting:e.isSubmitting,submitCount:e.submitCount,meta:e.meta,values:e.values,setFieldError:e.setFieldError,setErrors:e.setErrors,setFieldValue:e.setFieldValue,setValues:e.setValues,validate:e.validate,validateField:e.validateField,handleSubmit:e.handleSubmit,submitForm:e.submitForm,handleReset:e.handleReset,resetForm:e.resetForm,rootEl:e.rootEl})),void 0,!0)],544)}const FormWrapper=_export_sfc(_sfc_main$2o,[["render",_sfc_render$2o],["__scopeId","data-v-3f385369"],["__file","FormWrapper.vue"]]),_hoisted_1$38={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$R(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$38,o[0]||(o[0]=[createBaseVNode("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"},null,-1)]))}const __unplugin_components_0$n=markRaw({name:"fas-circle-question",render:render$R}),_hoisted_1$37={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$Q(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$37,o[0]||(o[0]=[createBaseVNode("path",{d:"M224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80V144C80 64.47 144.5 0 224 0zM224 64C179.8 64 144 99.82 144 144V192H304V144C304 99.82 268.2 64 224 64zM256 320C256 302.3 241.7 288 224 288C206.3 288 192 302.3 192 320V384C192 401.7 206.3 416 224 416C241.7 416 256 401.7 256 384V320z"},null,-1)]))}const __unplugin_components_0$m=markRaw({name:"fas-lock-keyhole",render:render$Q}),_hoisted_1$36={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$P(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$36,o[0]||(o[0]=[createBaseVNode("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"},null,-1)]))}const __unplugin_components_2$6=markRaw({name:"fas-circle-xmark",render:render$P});var map;try{map=Map}catch(t){}var set;try{set=Set}catch(t){}function baseClone(t,o,r){if(!t||typeof t!="object"||typeof t=="function")return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(clone);if(map&&t instanceof map)return new Map(Array.from(t.entries()));if(set&&t instanceof set)return new Set(Array.from(t.values()));if(t instanceof Object){o.push(t);var e=Object.create(t);r.push(e);for(var n in t){var a=o.findIndex(function(i){return i===t[n]});e[n]=a>-1?r[a]:baseClone(t[n],o,r)}return e}return t}function clone(t){return baseClone(t,[],[])}const toString$6=Object.prototype.toString,errorToString=Error.prototype.toString,regExpToString=RegExp.prototype.toString,symbolToString$1=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;function printNumber(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function printSimpleValue(t,o=!1){if(t==null||t===!0||t===!1)return""+t;const r=typeof t;if(r==="number")return printNumber(t);if(r==="string")return o?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return symbolToString$1.call(t).replace(SYMBOL_REGEXP,"Symbol($1)");const e=toString$6.call(t).slice(8,-1);return e==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):e==="Error"||t instanceof Error?"["+errorToString.call(t)+"]":e==="RegExp"?regExpToString.call(t):null}function printValue(t,o){let r=printSimpleValue(t,o);return r!==null?r:JSON.stringify(t,function(e,n){let a=printSimpleValue(this[e],o);return a!==null?a:n},2)}let mixed={default:"${path}
1123 is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:o,value:r,originalValue:e})=>{let n=e!=null&&e!==r,a=`${t} must be a \`${o}\` type, but the final value was: \`${printValue(r,!0)}\``+(n?` (cast from the value \`${printValue(e,!0)}\`).`:".");return r===null&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},string={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},number={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},boolean={isValue:"${path} field must be ${value}"},object={noUnknown:"${path} field has unspecified keys: ${unknown}"},array={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed,string,number,date,object,array,boolean});var objectProto$c=Object.prototype,hasOwnProperty$a=objectProto$c.hasOwnProperty;function baseHas$1(t,o){return t!=null&&hasOwnProperty$a.call(t,o)}var _baseHas=baseHas$1,isArray$8=Array.isArray,isArray_1=isArray$8,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root$2=root$8,root$7=_root$2,Symbol$5=root$7.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(t){var o=hasOwnProperty$9.call(t,symToStringTag$1),r=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var e=!0}catch{}var n=nativeObjectToString$1.call(t);return e&&(o?t[symToStringTag$1]=r:delete t[symToStringTag$1]),n}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(t){return nativeObjectToString.call(t)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(t){return t==null?t===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(t){return t!=null&&typeof t=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$3(t){return typeof t=="symbol"||isObjectLike$4(t)&&baseGetTag$4(t)==symbolTag$1}var isSymbol_1=isSymbol$3,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(t,o){if(isArray$7(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||isSymbol$2(t)?!0:reIsPlainProp.test(t)||!reIsDeepProp.test(t)||o!=null&&t in Object(o)}var _isKey=isKey$3;function isObject$8(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}var isObject_1=isObject$8,baseGetTag$3=_baseGetTag,isObject$7=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(t){if(!isObject$7(t))return!1;var o=baseGetTag$3(t);return o==funcTag$1||o==genTag||o==asyncTag||o==proxyTag}var isFunction_1=isFunction$2,root$6=_root$2,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var t=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");
vendor: 4,290 bytes, line 1123
1123return t?"Symbol(src)_1."+t:""}();function isMasked$1(t){return!!maskSrcKey&&maskSrcKey in t}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(t){if(t!=null){try{return funcToString$1.call(t)}catch{}try{return t+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$6=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(t){if(!isObject$6(t)||isMasked(t))return!1;var o=isFunction$1(t)?reIsNative:reIsHostCtor;return o.test(toSource$1(t))}var _baseIsNative=baseIsNative$1;function getValue$1(t,o){return t==null?void 0:t[o]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(t,o){var r=getValue(t,o);return baseIsNative(r)?r:void 0}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(t){var o=this.__data__;if(nativeCreate$2){var r=o[t];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$7.call(o,t)?o[t]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(t){var o=this.__data__;return nativeCreate$1?o[t]!==void 0:hasOwnProperty$6.call(o,t)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(t,o){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=nativeCreate&&o===void 0?HASH_UNDEFINED$1:o,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(t){var o=-1,r=t==null?0:t.length;for(this.clear();++o<r;){var e=t[o];this.set(e[0],e[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$3(t,o){return t===o||t!==t&&o!==o}var eq_1=eq$3,eq$2=eq_1;function assocIndexOf$4(t,o){for(var r=t.length;r--;)if(eq$2(t[r][0],o))return r;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(t){var o=this.__data__,r=assocIndexOf$3(o,t);if(r<0)return!1;var e=o.length-1;return r==e?o.pop():splice.call(o,r,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(t){var o=this.__data__,r=assocIndexOf$2(o,t);return r<0?void 0:o[r][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(t){return assocIndexOf$1(this.__data__,t)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(t,o){var r=this.__data__,e=assocIndexOf(r,t);return e<0?(++this.size,r.push([t,o])):r[e][1]=o,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(t){var o=-1,r=t==null?0:t.length;for(this.clear();++o<r;){var e=t[o];this.set(e[0],e[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root$2,Map$4=get
vendor: 4,416 bytes, line 1123
1123Native$5(root$5,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(t){var o=typeof t;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?t!=="__proto__":t===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(t,o){var r=t.__data__;return isKeyable(o)?r[typeof o=="string"?"string":"hash"]:r.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(t){var o=getMapData$3(this,t).delete(t);return this.size-=o?1:0,o}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(t){return getMapData$2(this,t).get(t)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(t){return getMapData$1(this,t).has(t)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(t,o){var r=getMapData(this,t),e=r.size;return r.set(t,o),this.size+=r.size==e?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(t){var o=-1,r=t==null?0:t.length;for(this.clear();++o<r;){var e=t[o];this.set(e[0],e[1])}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype.delete=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(t,o){if(typeof t!="function"||o!=null&&typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT);var r=function(){var e=arguments,n=o?o.apply(this,e):e[0],a=r.cache;if(a.has(n))return a.get(n);var i=t.apply(this,e);return r.cache=a.set(n,i)||a,i};return r.cache=new(memoize$1.Cache||MapCache$2),r}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(t){var o=memoize(t,function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e}),r=o.cache;return o}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(t){var o=[];return t.charCodeAt(0)===46&&o.push(""),t.replace(rePropName,function(r,e,n,a){o.push(n?a.replace(reEscapeChar,"$1"):e||r)}),o}),_stringToPath=stringToPath$1;function arrayMap$1(t,o){for(var r=-1,e=t==null?0:t.length,n=Array(e);++r<e;)n[r]=o(t[r],r,t);return n}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(t){if(typeof t=="string")return t;if(isArray$6(t))return arrayMap(t,baseToString$1)+"";if(isSymbol$1(t))return symbolToString?symbolToString.call(t):"";var o=t+"";return o=="0"&&1/t==-INFINITY$1?"-0":o}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$5(t){return t==null?"":baseToString(t)}var toString_1=toString$5,isArray$5=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$4=toString_1;function castPath$2(t,o){return isArray$5(t)?t:isKey$2(t,o)?[t]:stringToPath(toString$4(t))}var _castPath=castPath$2,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(t){return isObjectLike$3(t)&&baseGetTag$2(t)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(t){return isObjectLike$2(t)&&hasOwnProperty$5.call(t,"callee")&&!propertyIsEnumerable$1.call(t,"callee")},isArguments_1=isArguments$2,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(t,o){var r=typeof t;return o=o??MAX_SAFE_INTEGER$1,!!o&&(r=="number"||r!="symbol"&&reIsUint.test(t))&&t>-1&&t%1==0&&t<o}var _isIndex=isIndex$2,MAX_SAFE_INTEGER=9007199254740991;function isLength$3(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=MAX_SAFE_INTEGER}
1123var isLength_1=isLength$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$4(t){if(typeof t=="string"||isSymbol(t))return t;var o=t+"";return o=="0"&&1/t==-INFINITY?"-0":o}var _toKey=toKey$4,castPath$1=_castPath,isArguments$1=isArguments_1,isArray$4=isArray_1,isIndex$1=_isIndex,isLength$2=isLength_1,toKey$3=_toKey;function hasPath$2(t,o,r){o=castPath$1(o,t);for(var e=-1,n=o.length,a=!1;++e<n;){var i=toKey$3(o[e]);if(!(a=t!=null&&r(t,i)))break;t=t[i]}return a||++e!=n?a:(n=t==null?0:t.length,!!n&&isLength$2(n)&&isIndex$1(i,n)&&(isArray$4(t)||isArguments$1(t)))}var _hasPath=hasPath$2,baseHas=_baseHas,hasPath$1=_hasPath;function has(t,o){return t!=null&&hasPath$1(t,o,baseHas)}var has_1=has;const has$1=getDefaultExportFromCjs(has_1),isSchema=t=>t&&t.__isYupSchema__;class Condition{constructor(o,r){if(this.fn=void 0,this.refs=o,this.refs=o,typeof r=="function"){this.fn=r;return}if(!has$1(r,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:e,then:n,otherwise:a}=r,i=typeof e=="function"?e:(...s)=>s.every(l=>l===e);this.fn=function(...s){let l=s.pop(),d=s.pop(),c=i(...s)?n:a;if(c)return typeof c=="function"?c(d):d.concat(c.resolve(l))}}resolve(o,r){let e=this.refs.map(a=>a.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),n=this.fn.apply(o,e.concat(o,r));if(n===void 0||n===o)return o;if(!isSchema(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}}function toArray$1(t){return t==null?[]:[].concat(t)}function _extends$4(){return _extends$4=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},_extends$4.apply(this,arguments)}let strReg=/\$\{\s*(\w+)\s*\}/g;class ValidationError extends Error{static formatError(o,r){const e=r.label||r.path||"this";return e!==r.path&&(r=_extends$4({},r,{path:e})),typeof o=="string"?o.replace(strReg,(n,a)=>printValue(r[a])):typeof o=="function"?o(r):o}static isError(o){return o&&o.name==="ValidationError"}constructor(o,r,e,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=r,this.path=e,this.type=n,this.errors=[],this.inner=[],toArray$1(o).forEach(a=>{ValidationError.isError(a)?(this.errors.push(...a.errors),this.inner=this.inner.concat(a.inner.length?a.inner:a)):this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}}const once=t=>{let o=!1;return(...r)=>{o||(o=!0,t(...r))}};function runTests(t,o){let{endEarly:r,tests:e,args:n,value:a,errors:i,sort:s,path:l}=t,d=once(o),c=e.length;const u=[];if(i=i||[],!c)return i.length?d(new ValidationError(i,a,l)):d(null,a);for(let f=0;f<e.length;f++){const m=e[f];m(n,function(y){if(y){if(!ValidationError.isError(y))return d(y,a);if(r)return y.value=a,d(y,a);u.push(y)}if(--c<=0){if(u.length&&(s&&u.sort(s),i.length&&u.push(...i),i=u),i.length){d(new ValidationError(i,a,l),a);return}d(null,a)}})}}var getNative$4=_getNative,defineProperty$1=function(){try{var t=getNative$4(Object,"defineProperty");return t({},"",{}),t}catch{}}(),_defineProperty$1=defineProperty$1,defineProperty=_defineProperty$1;function baseAssignValue$2(t,o,r){o=="__proto__"&&defineProperty?defineProperty(t,o,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[o]=r}var _baseAssignValue=baseAssignValue$2;function createBaseFor$1(t){return function(o,r,e){for(var n=-1,a=Object(o),i=e(o),s=i.length;s--;){var l=i[t?s:++n];if(r(a[l],l,a)===!1)break}return o}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1;function baseTimes$1(t,o){for(var r=-1,e=Array(t);++r<t;)e[r]=o(r);return e}var _baseTimes=baseTimes$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(t,o){var r=_root$2,e=stubFalse_1,n=o&&!o.nodeType&&o,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,d=l||e;t.exports=d})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$2
vendor: 8,582 bytes, line 1123
1123="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(t){return isObjectLike$1(t)&&isLength$1(t.length)&&!!typedArrayTags[baseGetTag$1(t)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(t){return function(o){return t(o)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(t,o){var r=_freeGlobal,e=o&&!o.nodeType&&o,n=e&&!0&&t&&!t.nodeType&&t,a=n&&n.exports===e,i=a&&r.process,s=function(){try{var l=n&&n.require&&n.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$3=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function arrayLikeKeys$1(t,o){var r=isArray$3(t),e=!r&&isArguments(t),n=!r&&!e&&isBuffer$1(t),a=!r&&!e&&!n&&isTypedArray$1(t),i=r||e||n||a,s=i?baseTimes(t.length,String):[],l=s.length;for(var d in t)(o||hasOwnProperty$4.call(t,d))&&!(i&&(d=="length"||n&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||isIndex(d,l)))&&s.push(d);return s}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$4=Object.prototype;function isPrototype$1(t){var o=t&&t.constructor,r=typeof o=="function"&&o.prototype||objectProto$4;return t===r}var _isPrototype=isPrototype$1;function overArg$1(t,o){return function(r){return t(o(r))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function baseKeys$1(t){if(!isPrototype(t))return nativeKeys(t);var o=[];for(var r in Object(t))hasOwnProperty$3.call(t,r)&&r!="constructor"&&o.push(r);return o}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(t){return t!=null&&isLength(t.length)&&!isFunction(t)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$3(t){return isArrayLike(t)?arrayLikeKeys(t):baseKeys(t)}var keys_1=keys$3,baseFor=_baseFor,keys$2=keys_1;function baseForOwn$2(t,o){return t&&baseFor(t,o,keys$2)}var _baseForOwn=baseForOwn$2,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(t){var o=this.__data__,r=o.delete(t);return this.size=o.size,r}var _stackDelete=stackDelete$1;function stackGet$1(t){return this.__data__.get(t)}var _stackGet=stackGet$1;function stackHas$1(t){return this.__data__.has(t)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(t,o){var r=this.__data__;if(r instanceof ListCache$1){var e=r.__data__;if(!Map$2||e.length<LARGE_ARRAY_SIZE-1)return e.push([t,o]),this.size=++r.size,this;r=this.__data__=new MapCache$1(e)}return r.set(t,o),this.size=r.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(t){var o=this.__data__=new ListCache(t);this.size=o.size}Stack$2.prototype.clear=stackClear;Stack$2.prototype.delete=stackDelete;Stack$2.prototype.get=stackGet;Stack$2.prototype.has=stackHas;Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(t){return this.__data__.set(t,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(t){return this.__data__.has(t)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(t){var o=-1,r=t==null?0:t.length;for(this.__data__=new MapCache;++o<r;)this.add(t[o])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(t,o){for(var r=-1,e=t==null?0:t.length;++r<e;)if(o(t[r],r,t))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(t,o){return t.has(o)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(t,o,r,e,n,a){var i=r&COMPARE_PARTIAL_FLAG$5,s=t.length,l=o.length;if(s!=l&&!(i&&l>s))return!1;var d=a.get(t),c=a.get(o);if(d&&c)return d==o&&c==t;var u=-1,f=!0,m=r&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(a.set(t,o),a.set(o,t);++u<s;){var b=t[u],y=o[u];if(e)var _=i?e(y,b,u,o,t,a):e(b,y,u,t,o,a);if(_!==void 0){if(_)continue;f=!1;break}if(m){if(!arraySome(o,function(S,C){if(!cacheHas(m,C)&&(b===S||n(b,S,r,e,a)))return m.push(C)})){f=!1;break}}else if(!(b===y||n(b,y,r,e,a))){f=!1;break}}return a.delete(t),a.delete(o),f}var _equalArrays=equalArrays$2,root$4=_root$2,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(t){var o=-1,r=Array(t.size);return t.forEach(function(e,n){r[++o]=[n,e]}),r}var _mapToArray=mapToArray$1;function setToArray$1(t){var o=-1,r=Array(t.size);return t.forEach(function(e){r[++o]=e}),r}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$1="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(t,o,r,e,n,a,i){switch(r){case dataViewTag$1:if(t.byteLength!=o.byteLength||t.byteOffset!=o.byteOffset)return!1;t=t.buffer,o=o.buffer;case arrayBufferTag:return!(t.byteLength!=o.byteLength||!a(new Uint8Array$1(t),new Uint8Array$1(o)));case boolTag:case dateTag:case numberTag:return eq$1(+t,+o);case errorTag:return t.name==o.name&&t.message==o.message;case regexpTag:case stringTag:return t==o+"";case mapTag$1:var s=mapToArray;case setTag$1:var l=e&COMPARE_PARTIAL_FLAG$4;if(s||(s=setToArray),t.size!=o.size&&!l)return!1;var d=i.get(t);if(d)return d==o;e|=COMPARE_UNORDERED_FLAG$2,i.set(t,o);var c=equalArrays$1(s(t),s(o),e,n,a,i);return i.delete(t),c;case symbolTag:if(symbolValueOf)return symbolValueOf.call(t)==symbolValueOf.call(o)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(t,o){for(var r=-1,e=o.length,n=t.length;++r<e;)t[n+r]=o[r];return t}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(t,o,r){var e=o(t);return isArray$2(t)?e:arrayPush(e,r(t))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$2(t,o){for(var r=-1,e=t==null?0:t.length,n=0,a=[];++r<e;){var i=t[r];o(i,r,t)&&(a[n++]=i)}return a}var _arrayFilter=arrayFilter$2;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter$1=_arrayFilter,stubArray=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$
vendor: 3,476 bytes, line 1123
11231=nativeGetSymbols?function(t){return t==null?[]:(t=Object(t),arrayFilter$1(nativeGetSymbols(t),function(o){return propertyIsEnumerable.call(t,o)}))}:stubArray,_getSymbols=getSymbols$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$1=keys_1;function getAllKeys$1(t){return baseGetAllKeys(t,keys$1,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(t,o,r,e,n,a){var i=r&COMPARE_PARTIAL_FLAG$3,s=getAllKeys(t),l=s.length,d=getAllKeys(o),c=d.length;if(l!=c&&!i)return!1;for(var u=l;u--;){var f=s[u];if(!(i?f in o:hasOwnProperty$2.call(o,f)))return!1}var m=a.get(t),b=a.get(o);if(m&&b)return m==o&&b==t;var y=!0;a.set(t,o),a.set(o,t);for(var _=i;++u<l;){f=s[u];var S=t[f],C=o[f];if(e)var T=i?e(C,S,f,o,t,a):e(S,C,f,t,o,a);if(!(T===void 0?S===C||n(S,C,r,e,a):T)){y=!1;break}_||(_=f=="constructor")}if(y&&!_){var x=t.constructor,k=o.constructor;x!=k&&"constructor"in t&&"constructor"in o&&!(typeof x=="function"&&x instanceof x&&typeof k=="function"&&k instanceof k)&&(y=!1)}return a.delete(t),a.delete(o),y}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root$2,DataView$2=getNative$3(root$3,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$2=_root$2,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root$2,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root$2,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView$1&&getTag$1(new DataView$1(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(t){var o=baseGetTag(t),r=o==objectTag$1?t.constructor:void 0,e=r?toSource(r):"";if(e)switch(e){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return o});var _getTag=getTag$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$1=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(t,o,r,e,n,a){var i=isArray$1(t),s=isArray$1(o),l=i?arrayTag:getTag(t),d=s?arrayTag:getTag(o);l=l==argsTag?objectTag:l,d=d==argsTag?objectTag:d;var c=l==objectTag,u=d==objectTag,f=l==d;if(f&&isBuffer(t)){if(!isBuffer(o))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Stack$1),i||isTypedArray(t)?equalArrays(t,o,r,e,n,a):equalByTag(t,o,l,r,e,n,a);if(!(r&COMPARE_PARTIAL_FLAG$2)){var m=c&&hasOwnProperty$1.call(t,"__wrapped__"),b=u&&hasOwnProperty$1.call(o,"__wrapped__");
1123if(m||b){var y=m?t.value():t,_=b?o.value():o;return a||(a=new Stack$1),n(y,_,r,e,a)}}return f?(a||(a=new Stack$1),equalObjects(t,o,r,e,n,a)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$2(t,o,r,e,n){return t===o?!0:t==null||o==null||!isObjectLike(t)&&!isObjectLike(o)?t!==t&&o!==o:baseIsEqualDeep(t,o,r,e,baseIsEqual$2,n)}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(t,o,r,e){var n=r.length,a=n,i=!e;if(t==null)return!a;for(t=Object(t);n--;){var s=r[n];if(i&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++n<a;){s=r[n];var l=s[0],d=t[l],c=s[1];if(i&&s[2]){if(d===void 0&&!(l in t))return!1}else{var u=new Stack;if(e)var f=e(d,c,l,t,o,u);if(!(f===void 0?baseIsEqual$1(c,d,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,e,u):f))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$5=isObject_1;function isStrictComparable$2(t){return t===t&&!isObject$5(t)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys=keys_1;function getMatchData$1(t){for(var o=keys(t),r=o.length;r--;){var e=o[r],n=t[e];o[r]=[e,n,isStrictComparable$1(n)]}return o}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(t,o){return function(r){return r==null?!1:r[t]===o&&(o!==void 0||t in Object(r))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(t){var o=getMatchData(t);return o.length==1&&o[0][2]?matchesStrictComparable$1(o[0][0],o[0][1]):function(r){return r===t||baseIsMatch(r,t,o)}}var _baseMatches=baseMatches$1,castPath=_castPath,toKey$2=_toKey;function baseGet$2(t,o){o=castPath(o,t);for(var r=0,e=o.length;t!=null&&r<e;)t=t[toKey$2(o[r++])];return r&&r==e?t:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(t,o,r){var e=t==null?void 0:baseGet$1(t,o);return e===void 0?r:e}var get_1=get$1;function baseHasIn$1(t,o){return t!=null&&o in Object(t)}var _baseHasIn=baseHasIn$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(t,o){return t!=null&&hasPath(t,o,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(t,o){return isKey$1(t)&&isStrictComparable(o)?matchesStrictComparable(toKey$1(t),o):function(r){var e=get(r,t);return e===void 0&&e===o?hasIn(r,t):baseIsEqual(o,e,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(t){return t}var identity_1=identity$1;function baseProperty$1(t){return function(o){return o==null?void 0:o[t]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(t){return function(o){return baseGet(o,t)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(t){return isKey(t)?baseProperty(toKey(t)):basePropertyDeep(t)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray=isArray_1,property=property_1;function baseIteratee$2(t){return typeof t=="function"?t:t==null?identity:typeof t=="object"?isArray(t)?baseMatchesProperty(t[0],t[1]):baseMatches(t):property(t)}var _baseIteratee=baseIteratee$2,baseAssignValue$1=_baseAssignValue,baseForOwn$1=_baseForOwn,baseIteratee$1=_baseIteratee;function mapValues(t,o){var r={};return o=baseIteratee$1(o),baseForOwn$1(t,function(e,n,a){baseAssignValue$1(r,n,o(e,n,a))}),r}var mapValues_1=mapValues;const mapValues$1=getDefaultExportFromCjs(mapValues_1);function Cache(t){this._maxSize=t,this.clear()}Cache.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Cache.prototype.get=function(t){return this._values[t]};Cache.prototype.set=function(t,o){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=o};var SPLIT_REGEX=/[^.^\]^[]+|(?=\[\]|\.\.)/g,DIGIT_REGEX=/^\d+$/,LEAD_DIGIT_REGEX=/^\d/,SPEC_CHAR_REGEX=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,CLEAN_QUOTES_REGEX=/^\s*(['"]?)(.*?)(\1)\s*$/,MAX_CACHE_SIZE=512,pathCache=new Cache(MAX_CACHE_SIZE),setCache=new Cache(MAX_CACHE_SIZE),getCache=new Cache(MAX_CACHE_SIZE),propertyExpr={Cache,split,normalizePath,setter:function(t){var o=normalizePath(t);return setCache.get(t)||setCache.set(t,function(e,n){for(var a=0,i=o.length,s=e;a<i-1;){var l=o[a];if(l==="__proto__"||l==="constructor"||l==="prototype")return e;s=s[o[a++]]}s[o[a]]=n})},getter:function(t,o){var r=normalizePath(t);return getCache.get(t)||getCache.set(t,function(n){for(var a=0,i=r.length;a<i;)if(n!=null||!o)n=n[r[a++]];else return;return n})},join:function(t){return t.reduce(function(o,r){return o+(isQuoted(r)||DIGIT_REGEX.test(r)?"["+r+"]":(o?".":"")+r)},"")}
1123,forEach:function(t,o,r){forEach(Array.isArray(t)?t:split(t),o,r)}};function normalizePath(t){return pathCache.get(t)||pathCache.set(t,split(t).map(function(o){return o.replace(CLEAN_QUOTES_REGEX,"$2")}))}function split(t){return t.match(SPLIT_REGEX)||[""]}function forEach(t,o,r){var e=t.length,n,a,i,s;for(a=0;a<e;a++)n=t[a],n&&(shouldBeQuoted(n)&&(n='"'+n+'"'),s=isQuoted(n),i=!s&&/^\d+$/.test(n),o.call(r,n,s,i,a,t))}function isQuoted(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function hasLeadingNumber(t){return t.match(LEAD_DIGIT_REGEX)&&!t.match(DIGIT_REGEX)}function hasSpecialChars(t){return SPEC_CHAR_REGEX.test(t)}function shouldBeQuoted(t){return!isQuoted(t)&&(hasLeadingNumber(t)||hasSpecialChars(t))}const prefixes={context:"$",value:"."};class Reference{constructor(o,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof o!="string")throw new TypeError("ref must be a string, got: "+o);if(this.key=o.trim(),o==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===prefixes.context,this.isValue=this.key[0]===prefixes.value,this.isSibling=!this.isContext&&!this.isValue;let e=this.isContext?prefixes.context:this.isValue?prefixes.value:"";this.path=this.key.slice(e.length),this.getter=this.path&&propertyExpr.getter(this.path,!0),this.map=r.map}getValue(o,r,e){let n=this.isContext?e:this.isValue?o:r;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(o,r){return this.getValue(o,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(o){return o&&o.__isYupRef}}Reference.prototype.__isYupRef=!0;function _extends$3(){return _extends$3=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},_extends$3.apply(this,arguments)}function _objectWithoutPropertiesLoose(t,o){if(t==null)return{};var r={},e=Object.keys(t),n,a;for(a=0;a<e.length;a++)n=e[a],!(o.indexOf(n)>=0)&&(r[n]=t[n]);return r}function createValidation(t){function o(r,e){let{value:n,path:a="",label:i,options:s,originalValue:l,sync:d}=r,c=_objectWithoutPropertiesLoose(r,["value","path","label","options","originalValue","sync"]);const{name:u,test:f,params:m,message:b}=t;let{parent:y,context:_}=s;function S(E){return Reference.isRef(E)?E.getValue(n,y,_):E}function C(E={}){const w=mapValues$1(_extends$3({value:n,originalValue:l,label:i,path:E.path||a},m,E.params),S),D=new ValidationError(ValidationError.formatError(E.message||b,w),n,w.path,E.type||u);return D.params=w,D}let T=_extends$3({path:a,parent:y,type:u,createError:C,resolve:S,options:s,originalValue:l},c);if(!d){try{Promise.resolve(f.call(T,n,T)).then(E=>{ValidationError.isError(E)?e(E):E?e(null,E):e(C())}).catch(e)}catch(E){e(E)}return}let x;try{var k;if(x=f.call(T,n,T),typeof((k=x)==null?void 0:k.then)=="function")throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(E){e(E);return}ValidationError.isError(x)?e(x):x?e(null,x):e(C())}return o.OPTIONS=t,o}let trim=t=>t.substr(0,t.length-1).substr(1);function getIn(t,o,r,e=r){let n,a,i;return o?(propertyExpr.forEach(o,(s,l,d)=>{let c=l?trim(s):s;if(t=t.resolve({context:e,parent:n,value:r}),t.innerType){let u=d?parseInt(c,10):0;if(r&&u>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${o}. because there is no value at that index. `);n=r,r=r&&r[u],t=t.innerType}if(!d){if(!t.fields||!t.fields[c])throw new Error(`The schema does not contain the path: ${o}. (failed at: ${i} which is a type: "${t._type}")`);n=r,r=r&&r[c],t=t.fields[c]}a=c,i=l?"["+s+"]":"."+s}),{schema:t,parent:n,parentPath:a}):{parent:n,parentPath:o,schema:t}}class ReferenceSet{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const o=[];for(const r of this.list)o.push(r);for(const[,r]of this.refs)o.push(r.describe());return o}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values())
1123)}resolveAll(o){return this.toArray().reduce((r,e)=>r.concat(Reference.isRef(e)?o(e):e),[])}add(o){Reference.isRef(o)?this.refs.set(o.key,o):this.list.add(o)}delete(o){Reference.isRef(o)?this.refs.delete(o.key):this.list.delete(o)}clone(){const o=new ReferenceSet;return o.list=new Set(this.list),o.refs=new Map(this.refs),o}merge(o,r){const e=this.clone();return o.list.forEach(n=>e.add(n)),o.refs.forEach(n=>e.add(n)),r.list.forEach(n=>e.delete(n)),r.refs.forEach(n=>e.delete(n)),e}}function _extends$2(){return _extends$2=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},_extends$2.apply(this,arguments)}class BaseSchema{constructor(o){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new ReferenceSet,this._blacklist=new ReferenceSet,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(mixed.notType)}),this.type=(o==null?void 0:o.type)||"mixed",this.spec=_extends$2({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},o==null?void 0:o.spec)}get _type(){return this.type}_typeCheck(o){return!0}clone(o){if(this._mutate)return o&&Object.assign(this.spec,o),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeError=this._typeError,r._whitelistError=this._whitelistError,r._blacklistError=this._blacklistError,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.exclusiveTests=_extends$2({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=clone(_extends$2({},this.spec,o)),r}label(o){let r=this.clone();return r.spec.label=o,r}meta(...o){if(o.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},o[0]),r}withMutation(o){let r=this._mutate;this._mutate=!0;let e=o(this);return this._mutate=r,e}concat(o){if(!o||o===this)return this;if(o.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${o.type}`);let r=this,e=o.clone();const n=_extends$2({},r.spec,e.spec);return e.spec=n,e._typeError||(e._typeError=r._typeError),e._whitelistError||(e._whitelistError=r._whitelistError),e._blacklistError||(e._blacklistError=r._blacklistError),e._whitelist=r._whitelist.merge(o._whitelist,o._blacklist),e._blacklist=r._blacklist.merge(o._blacklist,o._whitelist),e.tests=r.tests,e.exclusiveTests=r.exclusiveTests,e.withMutation(a=>{o.tests.forEach(i=>{a.test(i.OPTIONS)})}),e.transforms=[...r.transforms,...e.transforms],e}isType(o){return this.spec.nullable&&o===null?!0:this._typeCheck(o)}resolve(o){let r=this;if(r.conditions.length){let e=r.conditions;r=r.clone(),r.conditions=[],r=e.reduce((n,a)=>a.resolve(n,o),r),r=r.resolve(o)}return r}cast(o,r={}){let e=this.resolve(_extends$2({value:o},r)),n=e._cast(o,r);if(o!==void 0&&r.assert!==!1&&e.isType(n)!==!0){let a=printValue(o),i=printValue(n);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${e._type}". 
1124
1125attempted value: ${a} 
1126`+(i!==a?`result of cast: ${i}`:""))}return n}_cast(o,r){let e=o===void 0?o:this.transforms.reduce((n,a)=>a.call(this,n,o,this),o);return e===void 0&&(e=this.getDefault()),e}_validate(o,r={},e){let{sync:n,path:a,from:i=[],originalValue:s=o,strict:l=this.spec.strict,abortEarly:d=this.spec.abortEarly}=r,c=o;l||(c=this._cast(c,_extends$2({assert:!1},r)));let u={value:c,path:a,options:r,originalValue:s,schema:this,label:this.spec.label,sync:n,from:i},f=[];this._typeError&&f.push(this._typeError);let m=[];this._whitelistError&&m.push(this._whitelistError),this._blacklistError&&m.push(this._blacklistError),runTests({args:u,value:c,path:a,sync:n,tests:f,endEarly:d},b=>{if(b)return void e(b,c);runTests({tests:this.tests.concat(m),args:u,path:a,sync:n,value:c,endEarly:d},e)})}validate(o,r,e){let n=this.resolve(_extends$2({},r,{value:o}));return typeof e=="function"?n._validate(o,r,e):new Promise((a,i)=>n._validate(o,r,(s,l)=>{s?i(s):a(l)}))}validateSync(o,r){let e=this.resolve(_extends$2({},r,{value:o})),n;return e._validate(o,_extends$2({},r,{sync:!0}),(a,i)=>{if(a)throw a;n=i}
1126),n}isValid(o,r){return this.validate(o,r).then(()=>!0,e=>{if(ValidationError.isError(e))return!1;throw e})}isValidSync(o,r){try{return this.validateSync(o,r),!0}catch(e){if(ValidationError.isError(e))return!1;throw e}}_getDefault(){let o=this.spec.default;return o==null?o:typeof o=="function"?o.call(this):clone(o)}getDefault(o){return this.resolve(o||{})._getDefault()}default(o){return arguments.length===0?this._getDefault():this.clone({default:o})}strict(o=!0){let r=this.clone();return r.spec.strict=o,r}_isPresent(o){return o!=null}defined(o=mixed.defined){return this.test({message:o,name:"defined",exclusive:!0,test(r){return r!==void 0}})}required(o=mixed.required){return this.clone({presence:"required"}).withMutation(r=>r.test({message:o,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let o=this.clone({presence:"optional"});return o.tests=o.tests.filter(r=>r.OPTIONS.name!=="required"),o}nullable(o=!0){return this.clone({nullable:o!==!1})}transform(o){let r=this.clone();return r.transforms.push(o),r}test(...o){let r;if(o.length===1?typeof o[0]=="function"?r={test:o[0]}:r=o[0]:o.length===2?r={name:o[0],test:o[1]}:r={name:o[0],message:o[1],test:o[2]},r.message===void 0&&(r.message=mixed.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let e=this.clone(),n=createValidation(r),a=r.exclusive||r.name&&e.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(e.exclusiveTests[r.name]=!!r.exclusive),e.tests=e.tests.filter(i=>!(i.OPTIONS.name===r.name&&(a||i.OPTIONS.test===n.OPTIONS.test))),e.tests.push(n),e}when(o,r){!Array.isArray(o)&&typeof o!="string"&&(r=o,o=".");let e=this.clone(),n=toArray$1(o).map(a=>new Reference(a));return n.forEach(a=>{a.isSibling&&e.deps.push(a.key)}),e.conditions.push(new Condition(n,r)),e}typeError(o){let r=this.clone();return r._typeError=createValidation({message:o,name:"typeError",test(e){return e!==void 0&&!this.schema.isType(e)?this.createError({params:{type:this.schema._type}}):!0}}),r}oneOf(o,r=mixed.oneOf){let e=this.clone();return o.forEach(n=>{e._whitelist.add(n),e._blacklist.delete(n)}),e._whitelistError=createValidation({message:r,name:"oneOf",test(n){if(n===void 0)return!0;let a=this.schema._whitelist,i=a.resolveAll(this.resolve);return i.includes(n)?!0:this.createError({params:{values:a.toArray().join(", "),resolved:i}})}}),e}notOneOf(o,r=mixed.notOneOf){let e=this.clone();return o.forEach(n=>{e._blacklist.add(n),e._whitelist.delete(n)}),e._blacklistError=createValidation({message:r,name:"notOneOf",test(n){let a=this.schema._blacklist,i=a.resolveAll(this.resolve);return i.includes(n)?this.createError({params:{values:a.toArray().join(", "),resolved:i}}):!0}}),e}strip(o=!0){let r=this.clone();return r.spec.strip=o,r}describe(){const o=this.clone(),{label:r,meta:e}=o.spec;return{meta:e,label:r,type:o.type,oneOf:o._whitelist.describe(),notOneOf:o._blacklist.describe(),tests:o.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,i,s)=>s.findIndex(l=>l.name===a.name)===i)}}}BaseSchema.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])BaseSchema.prototype[`${t}At`]=function(o,r,e={}){const{parent:n,parentPath:a,schema:i}=getIn(this,o,r,e.context);return i[t](n&&n[a],_extends$2({},e,{parent:n,path:o}))};for(const t of["equals","is"])BaseSchema.prototype[t]=BaseSchema.prototype.oneOf;for(const t of["not","nope"])BaseSchema.prototype[t]=BaseSchema.prototype.notOneOf;BaseSchema.prototype.optional=BaseSchema.prototype.notRequired;const Mixed=BaseSchema;Mixed.prototype;const isAbsent=t=>t==null;function create$4(){return new BooleanSchema}class BooleanSchema extends BaseSchema{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(o){if(!this.isType(o)){if(/^(true|1)$/i.test(String(o)))return!0;if(/^(false|0)$/i.test(String(o)))return!1}return o})})}_typeCheck(o){return o instanceof Boolean&&(o=o.valueOf()),typeof o=="boolean"}isTrue(o=boolean.isValue){return this.test({message:o,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return isAbsent(r)||r===!0}})}isFalse(o=boolean.isValue){return this.test({message:o,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return isAbsent(r)||r===!1}})}}create$4.prototype=BooleanSchema.prototype;let rEmail=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,rUrl=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rUUID=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,isTrimmed=t=>isAbsent(t)||t===t.trim(),objStringTag={}.toString();function create$3(){return new StringSchema}class StringSchema extends BaseSchema{constructor(){super({type:"string"}),this.withMutation(()=>
1126{this.transform(function(o){if(this.isType(o)||Array.isArray(o))return o;const r=o!=null&&o.toString?o.toString():o;return r===objStringTag?o:r})})}_typeCheck(o){return o instanceof String&&(o=o.valueOf()),typeof o=="string"}_isPresent(o){return super._isPresent(o)&&!!o.length}length(o,r=string.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:o},test(e){return isAbsent(e)||e.length===this.resolve(o)}})}min(o,r=string.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:o},test(e){return isAbsent(e)||e.length>=this.resolve(o)}})}max(o,r=string.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:o},test(e){return isAbsent(e)||e.length<=this.resolve(o)}})}matches(o,r){let e=!1,n,a;return r&&(typeof r=="object"?{excludeEmptyString:e=!1,message:n,name:a}=r:n=r),this.test({name:a||"matches",message:n||string.matches,params:{regex:o},test:i=>isAbsent(i)||i===""&&e||i.search(o)!==-1})}email(o=string.email){return this.matches(rEmail,{name:"email",message:o,excludeEmptyString:!0})}url(o=string.url){return this.matches(rUrl,{name:"url",message:o,excludeEmptyString:!0})}uuid(o=string.uuid){return this.matches(rUUID,{name:"uuid",message:o,excludeEmptyString:!1})}ensure(){return this.default("").transform(o=>o===null?"":o)}trim(o=string.trim){return this.transform(r=>r!=null?r.trim():r).test({message:o,name:"trim",test:isTrimmed})}lowercase(o=string.lowercase){return this.transform(r=>isAbsent(r)?r:r.toLowerCase()).test({message:o,name:"string_case",exclusive:!0,test:r=>isAbsent(r)||r===r.toLowerCase()})}uppercase(o=string.uppercase){return this.transform(r=>isAbsent(r)?r:r.toUpperCase()).test({message:o,name:"string_case",exclusive:!0,test:r=>isAbsent(r)||r===r.toUpperCase()})}}create$3.prototype=StringSchema.prototype;let isNaN$1=t=>t!=+t;function create$2(){return new NumberSchema}class NumberSchema extends BaseSchema{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(o){let r=o;if(typeof r=="string"){if(r=r.replace(/\s/g,""),r==="")return NaN;r=+r}return this.isType(r)?r:parseFloat(r)})})}_typeCheck(o){return o instanceof Number&&(o=o.valueOf()),typeof o=="number"&&!isNaN$1(o)}min(o,r=number.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:o},test(e){return isAbsent(e)||e>=this.resolve(o)}})}max(o,r=number.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:o},test(e){return isAbsent(e)||e<=this.resolve(o)}})}lessThan(o,r=number.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:o},test(e){return isAbsent(e)||e<this.resolve(o)}})}moreThan(o,r=number.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:o},test(e){return isAbsent(e)||e>this.resolve(o)}})}positive(o=number.positive){return this.moreThan(0,o)}negative(o=number.negative){return this.lessThan(0,o)}integer(o=number.integer){return this.test({name:"integer",message:o,test:r=>isAbsent(r)||Number.isInteger(r)})}truncate(){return this.transform(o=>isAbsent(o)?o:o|0)}round(o){var r;let e=["ceil","floor","round","trunc"];if(o=((r=o)==null?void 0:r.toLowerCase())||"round",o==="trunc")return this.truncate();if(e.indexOf(o.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+e.join(", "));return this.transform(n=>isAbsent(n)?n:Math[o](n))}}create$2.prototype=NumberSchema.prototype;var isoReg=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function parseIsoDate(t){var o=[1,4,5,6,7,10,11],r=0,e,n;if(n=isoReg.exec(t)){for(var a=0,i;i=o[a];++a)n[i]=+n[i]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(n[8]===void 0||n[8]==="")&&(n[9]===void 0||n[9]==="")?e=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):(n[8]!=="Z"&&n[9]!==void 0&&(r=n[10]*60+n[11],n[9]==="+"&&(r=0-r)),e=Date.UTC(n[1],n[2],n[3],n[4],n[5]+r,n[6],n[7]))}else e=Date.parse?Date.parse(t):NaN;return e}let invalidDate=new Date(""),isDate=t=>Object.prototype.toString.call(t)==="[object Date]";class DateSchema extends BaseSchema{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(o){return this.isType(o)?o:(o=parseIsoDate(o),isNaN(o)?invalidDate:new Date(o))})})}_typeCheck(o){return isDate(o)&&!isNaN(o.getTime())}prepareParam(o,r){let e;if(Reference.isRef(o))e=o;else{let n=this.cast(o);if(!this._typeCheck(n))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);e=n}return e}min(o,r=date.min){let e=this.prepareParam(o,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:o},test(n){return isAbsent(n)||n>=this.resolve(e)}})}max(o,r=date.max){let e=this.prepareParam(o,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:o},test(n){return isAbsent(n)||n<=this.resolve(e)}})}}DateSchema.INVALID_DATE=invalidDate;DateSchema.prototype;function arrayReduce$1(t,o,r,e){var n=-1,a=t==null?0:t.length;for(e&&a&&(r=t[++n]);++n<a;)r=o(r,t[n],n,t);return r}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(t){return function(o){return t==null?void 0:t[o]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$3=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,187 bytes, line 1126
11267f]/g,rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsCombo$2="["+rsComboRange$3+"]",reComboMark=RegExp(rsCombo$2,"g");function deburr$1(t){return t=toString$3(t),t&&t.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(t){return t.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(t){return reHasUnicodeWord.test(t)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange$2="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo$1="["+rsComboRange$2+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange$2+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$1+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$2+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ$2="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$2+"]?",rsOptJoin$1="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsEmoji="(?:"+[rsDingbat,rsRegional$1,rsSurrPair$1].join("|")+")"+rsSeq$1,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(t){return t.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$2=toString_1,unicodeWords=_unicodeWords;function words$1(t,o,r){return t=toString$2(t),o=r?void 0:o,o===void 0?hasUnicodeWord(t)?unicodeWords(t):asciiWords(t):t.match(o)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$2(t){return function(o){return arrayReduce(words(deburr(o).replace(reApos,"")),t,"")}}var _createCompounder=createCompounder$2,createCompounder$1=_createCompounder,snakeCase=createCompounder$1(function(t,o,r){return t+(r?"_":"")+o.toLowerCase()}),snakeCase_1=snakeCase;const snakeCase$1=getDefaultExportFromCjs(snakeCase_1);function baseSlice$1(t,o,r){var e=-1,n=t.length;o<0&&(o=-o>n?0:n+o),r=r>n?n:r,r<0&&(r+=n),n=o>r?0:r-o>>>0,o>>>=0;for(var a=Array(n);++e<n;)a[e]=t[e+o];return a}var _baseSlice=baseSlice$1,baseSlice=_baseSlice;function castSlice$1(t,o,r){var e=t.length;return r=r===void 0?e:r,!o&&r>=e?t:baseSlice(t,o,r)}var _castSlice=castSlice$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbol
1126sRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f",rsZWJ$1="\\u200d",reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1+rsVarRange$1+"]");function hasUnicode$2(t){return reHasUnicode.test(t)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(t){return t.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray$1(t){return t.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(t){return hasUnicode$1(t)?unicodeToArray(t):asciiToArray(t)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$1=toString_1;function createCaseFirst$1(t){return function(o){o=toString$1(o);var r=hasUnicode(o)?stringToArray(o):void 0,e=r?r[0]:o.charAt(0),n=r?castSlice(r,1).join(""):o.slice(1);return e[t]()+n}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString=toString_1,upperFirst=upperFirst_1;function capitalize$1(t){return upperFirst(toString(t).toLowerCase())}var capitalize_1=capitalize$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(t,o,r){return o=o.toLowerCase(),t+(r?capitalize(o):o)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs(camelCase_1);var baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee=_baseIteratee;function mapKeys(t,o){var r={};return o=baseIteratee(o),baseForOwn(t,function(e,n,a){baseAssignValue(r,o(e,n,a),e)}),r}var mapKeys_1=mapKeys;const mapKeys$1=getDefaultExportFromCjs(mapKeys_1);var toposort$2={exports:{}};toposort$2.exports=function(t){return toposort(uniqueNodes(t),t)};toposort$2.exports.array=toposort;function toposort(t,o){var r=t.length,e=new Array(r),n={},a=r,i=makeOutgoingEdges(o),s=makeNodesHash(t);for(o.forEach(function(d){if(!s.has(d[0])||!s.has(d[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)n[a]||l(t[a],a,new Set);return e;function l(d,c,u){if(u.has(d)){var f;try{f=", node was:"+JSON.stringify(d)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!s.has(d))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(d));if(!n[c]){n[c]=!0;var m=i.get(d)||new Set;if(m=Array.from(m),c=m.length){u.add(d);do{var b=m[--c];l(b,s.get(b),u)}while(c);u.delete(d)}e[--r]=d}}}function uniqueNodes(t){for(var o=new Set,r=0,e=t.length;r<e;r++){var n=t[r];o.add(n[0]),o.add(n[1])}return Array.from(o)}function makeOutgoingEdges(t){for(var o=new Map,r=0,e=t.length;r<e;r++){var n=t[r];o.has(n[0])||o.set(n[0],new Set),o.has(n[1])||o.set(n[1],new Set),o.get(n[0]).add(n[1])}return o}function makeNodesHash(t){for(var o=new Map,r=0,e=t.length;r<e;r++)o.set(t[r],r);return o}var toposortExports=toposort$2.exports;const toposort$1=getDefaultExportFromCjs(toposortExports);function sortFields(t,o=[]){let r=[],e=new Set,n=new Set(o.map(([i,s])=>`${i}-${s}`));function a(i,s){let l=propertyExpr.split(i)[0];e.add(l),n.has(`${s}-${l}`)||r.push([s,l])}for(const i in t)if(has$1(t,i)){let s=t[i];e.add(i),Reference.isRef(s)&&s.isSibling?a(s.path,i):isSchema(s)&&"deps"in s&&s.deps.forEach(l=>a(l,i))}return toposort$1.array(Array.from(e),r).reverse()}function findIndex$1(t,o){let r=1/0;return t.some((e,n)=>{var a;if(((a=o.path)==null?void 0:a.indexOf(e))!==-1)return r=n,!0}),r}function sortByKeyOrder(t){return(o,r)=>findIndex$1(t,o)-findIndex$1(t,r)}function _extends$1(){return _extends$1=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},_extends$1.apply(this,arguments)}let isObject$4=t=>Object.prototype.toString.call(t)==="[object Object]";function unknown(t,o){let r=Object.keys(t.fields);return Object.keys(o).filter(e=>r.indexOf(e)===-1)}const defaultSort=sortByKeyOrder([]);class ObjectSchema extends BaseSchema{constructor(o){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=defaultSort,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{e=null}return this.isType(e)?e:null}),o&&this.shape(o)})}_typeCheck(o){return isObject$4(o)||typeof o=="function"}_cast(o,r={}){var e;let n=super._cast(o,r);if(n===void 0)return this.getDefault();if(!this._typeCheck(n))return n;let a=this.fields,i=(e=r.stripUnknown)!=null?e:this.spec.noUnknown,s=this._nodes.concat(Object.keys(n).filter(u=>this._nodes.indexOf(u)===-1)),l={},d=_extends$1({}
1126,r,{parent:l,__validating:r.__validating||!1}),c=!1;for(const u of s){let f=a[u],m=has$1(n,u);if(f){let b,y=n[u];d.path=(r.path?`${r.path}.`:"")+u,f=f.resolve({value:y,context:r.context,parent:l});let _="spec"in f?f.spec:void 0,S=_==null?void 0:_.strict;if(_!=null&&_.strip){c=c||u in n;continue}b=!r.__validating||!S?f.cast(n[u],d):n[u],b!==void 0&&(l[u]=b)}else m&&!i&&(l[u]=n[u]);l[u]!==n[u]&&(c=!0)}return c?l:n}_validate(o,r={},e){let n=[],{sync:a,from:i=[],originalValue:s=o,abortEarly:l=this.spec.abortEarly,recursive:d=this.spec.recursive}=r;i=[{schema:this,value:s},...i],r.__validating=!0,r.originalValue=s,r.from=i,super._validate(o,r,(c,u)=>{if(c){if(!ValidationError.isError(c)||l)return void e(c,u);n.push(c)}if(!d||!isObject$4(u)){e(n[0]||null,u);return}s=s||u;let f=this._nodes.map(m=>(b,y)=>{let _=m.indexOf(".")===-1?(r.path?`${r.path}.`:"")+m:`${r.path||""}["${m}"]`,S=this.fields[m];if(S&&"validate"in S){S.validate(u[m],_extends$1({},r,{path:_,from:i,strict:!0,parent:u,originalValue:s[m]}),y);return}y(null)});runTests({sync:a,tests:f,value:u,errors:n,endEarly:l,sort:this._sortErrors,path:r.path},e)})}clone(o){const r=super.clone(o);return r.fields=_extends$1({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(o){let r=super.concat(o),e=r.fields;for(let[n,a]of Object.entries(this.fields)){const i=e[n];i===void 0?e[n]=a:i instanceof BaseSchema&&a instanceof BaseSchema&&(e[n]=a.concat(i))}return r.withMutation(()=>r.shape(e,this._excludedEdges))}getDefaultFromShape(){let o={};return this._nodes.forEach(r=>{const e=this.fields[r];o[r]="default"in e?e.getDefault():void 0}),o}_getDefault(){if("default"in this.spec)return super._getDefault();if(this._nodes.length)return this.getDefaultFromShape()}shape(o,r=[]){let e=this.clone(),n=Object.assign(e.fields,o);return e.fields=n,e._sortErrors=sortByKeyOrder(Object.keys(n)),r.length&&(Array.isArray(r[0])||(r=[r]),e._excludedEdges=[...e._excludedEdges,...r]),e._nodes=sortFields(n,e._excludedEdges),e}pick(o){const r={};for(const e of o)this.fields[e]&&(r[e]=this.fields[e]);return this.clone().withMutation(e=>(e.fields={},e.shape(r)))}omit(o){const r=this.clone(),e=r.fields;r.fields={};for(const n of o)delete e[n];return r.withMutation(()=>r.shape(e))}from(o,r,e){let n=propertyExpr.getter(o,!0);return this.transform(a=>{if(a==null)return a;let i=a;return has$1(a,o)&&(i=_extends$1({},a),e||delete i[o],i[r]=n(a)),i})}noUnknown(o=!0,r=object.noUnknown){typeof o=="string"&&(r=o,o=!0);let e=this.test({name:"noUnknown",exclusive:!0,message:r,test(n){if(n==null)return!0;const a=unknown(this.schema,n);return!o||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return e.spec.noUnknown=o,e}unknown(o=!0,r=object.noUnknown){return this.noUnknown(!o,r)}transformKeys(o){return this.transform(r=>r&&mapKeys$1(r,(e,n)=>o(n)))}camelCase(){return this.transformKeys(camelCase$1)}snakeCase(){return this.transformKeys(snakeCase$1)}constantCase(){return this.transformKeys(o=>snakeCase$1(o).toUpperCase())}describe(){let o=super.describe();return o.fields=mapValues$1(this.fields,r=>r.describe()),o}}function create$1(t){return new ObjectSchema(t)}create$1.prototype=ObjectSchema.prototype;function _extends(){return _extends=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},_extends.apply(this,arguments)}function create(t){return new ArraySchema(t)}class ArraySchema extends BaseSchema{constructor(o){super({type:"array"}),this.innerType=void 0,this.innerType=o,this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null})})}_typeCheck(o){return Array.isArray(o)}get _subType(){return this.innerType}_cast(o,r){const e=super._cast(o,r);if(!this._typeCheck(e)||!this.innerType)return e;let n=!1;const a=e.map((i,s)=>{const l=this.innerType.cast(i,_extends({},r,{path:`${r.path||""}[${s}]`}));return l!==i&&(n=!0),l});return n?a:e}_validate(o,r={},e){var n,a;let i=[],s=r.sync,l=r.path,d=this.innerType,c=(n=r.abortEarly)!=null?n:this.spec.abortEarly,u=(a=r.recursive)!=null?a:this.spec.recursive,f=r.originalValue!=null?r.originalValue:o;super._validate(o,r,(m,b)=>{if(m){if(!ValidationError.isError(m)||c)return void e(m,b);i.push(m)}if(!u||!d||!this._typeCheck(b)){e(i[0]||null,b);return}f=f||b;let y=new Array(b.length);for(let _=0;_<b.length;_++){let S=b[_],C=`${r.path||""}[${_}]`,T=_extends({},r,{path:C,strict:!0,parent:b,index:_,originalValue:f[_]});y[_]=(x,k)=>d.validate(S,T,k)}runTests({sync:s,path:l,value:b,errors:i,endEarly:c,tests:y},e)})}clone(o){const r=super.clone(o);return r.innerType=this.innerType,r}concat(o){let r=super.concat(o);return r.innerType=this.innerType,o.innerType&&(r.innerType=r.innerType?r.innerType.concat(o.innerType):o.innerType),r}of(o){let r=this.clone();if(!isSchema(o))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+printValue(o));return r.innerType=o,r}length(o,r=array.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:o},test(e){return isAbsent(e)||e.length===this.resolve(o)}})}min(o,r){return r=r||array.min,this.test({message:r,name:"min",exclusive:!0,params:{min:o},test(e){return isAbsent(e)||e.length>=this.resolve(o)}})}max(o,r){return r=r||array.max,this.test({message:r,name:"max",exclusive:!0,params:{max:o},test(e){return isAbsent(e)||e.length<=this.resolve(o)}})}ensure(){return this.default(()=>[]).transform((o,r)=>this._typeCheck(o)?o:r==null?[]:[].concat(r))}compact(o){let r=o?(e,n,a)=>!o(e,n,a):e=>!!e;return this.transform(e=>e!=null?e.filter(r):e)}describe(){let o=super.describe();return this.innerType&&(o.innerType=this.innerType.describe()),o}nullable(o=!0){return super.nullable(o)}defined(){return super.defined()}required(o){return super.required(o)}}create.prototype=ArraySchema.prototype;
1126const yup={object:create$1,string:create$3,number:create$2,array:create,boolean:create$4,BaseSchema},_hoisted_1$35={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function render$O(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$35,o[0]||(o[0]=[createBaseVNode("path",{d:"M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"},null,-1)]))}const __unplugin_components_1$d=markRaw({name:"far-chevron-right",render:render$O}),_hoisted_1$34={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$N(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$34,o[0]||(o[0]=[createBaseVNode("path",{d:"M264.6 70.63l176 168c4.75 4.531 7.438 10.81 7.438 17.38s-2.688 12.84-7.438 17.38l-176 168c-9.594 9.125-24.78 8.781-33.94-.8125c-9.156-9.5-8.812-24.75 .8125-33.94l132.7-126.6H24.01c-13.25 0-24.01-10.76-24.01-24.01s10.76-23.99 24.01-23.99h340.1l-132.7-126.6C221.8 96.23 221.5 80.98 230.6 71.45C239.8 61.85 254.1 61.51 264.6 70.63z"},null,-1)]))}const __unplugin_components_0$l=markRaw({name:"far-arrow-right",render:render$N}),_hoisted_1$33={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function render$M(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$33,o[0]||(o[0]=[createBaseVNode("path",{d:"M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"},null,-1)]))}const __unplugin_components_0$k=markRaw({name:"far-chevron-left",render:render$M}),planeUp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M256 .0003C304.1 .0003 336 73.89 336 111.8V153.8L496 253.6C506 259.6 512 269.6 512 281.6V346.5C512 356.5 508 366.5 500 372.5C492 378.4 480.1 380.4 471 377.4L336 334.5V359.5L388 398.4C396 404.4 400 413.4 400 423.4V480.3C400 489.3 396 499.3 388 505.3C380 511.3 370 513.2 360 510.3L256 480.3L152 511.3C143 513.2 133 511.3 125 505.3C117 499.3 112 489.3 112 480.3V423.4C112 413.4 117 404.4 125 398.4L176 359.5V334.5L41 377.4C32 380.4 21 378.4 13 372.5C5 366.5 0 356.5 0 346.5V281.6C0 270.6 7 258.6 16 254.6L176 154.8V112.8C176 73.89 208 0 256 0V.0003zM256 48.93C246 50.93 224 86.87 224 112.8V180.7L48 290.6V324.5L224 269.6V383.4L160 431.4V458.3L256 430.4L352 458.3V431.4L288 383.4V269.6L464 324.5V290.6L288 180.7V112.8C288 85.87 267 49.93 256 48.93V48.93z"/></svg>',plane='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M576 256C576 305 502.1 336 464.2 336H382.2L282.4 496C276.4 506 266.4 512 254.4 512H189.5C179.5 512 169.5 508 163.5 500C157.6 492 155.6 480.1 158.6 471L201.5 336H152.5L113.6 388C107.6 396 98.61 400 88.62 400H31.7C22.72 400 12.73 396 6.74 388C.7485 380-1.248 370 1.747 360L31.7 256L.7488 152C-1.248 143 .7488 133 6.74 125C12.73 117 22.72 112 31.7 112H88.62C98.61 112 107.6 117 113.6 125L152.5 176H201.5L158.6 41C155.6 32 157.6 21 163.5 13C169.5 5 179.5 0 189.5 0H254.4C265.4 0 277.4 7 281.4 16L381.2 176H463.2C502.1 176 576 208 576 256H576zM527.1 256C525.1 246 489.1 224 463.2 224H355.3L245.4 48H211.5L266.4 224H128.6L80.63 160H53.67L81.63 256L53.67 352H80.63L128.6 288H266.4L211.5 464H245.4L355.3 288H463.2C490.1 288 526.1 267 527.1 256V256z"/></svg>',hotel='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M176 96C184.8 96 192 103.2 192 112V144C192 152.8 184.8 160 176 160H144C135.2 160 128 152.8 128 144V112C128 103.2 135.2 96 144 96H176zM224 112C224 103.2 231.2 96 240 96H272C280.8 96 288 103.2 288 112V144C288 152.8 280.8 160 272 160H240C231.2 160 224 152.8 224 144V112zM368 96C376.8 96 384 103.2 384 112V144C384 152.8 376.8 160 368 160H336C327.2 160 320 152.8 320 144V112C320 103.2 327.2 96 336 96H368zM128 208C128 199.2 135.2 192 144 192H176C184.8 192 192 199.2 192 208V240C192 248.8 184.8 256 176 256H144C135.2 256 128 248.8 128 240V208zM272 192C280.8 192 288 199.2 288 208V240C288 248.8 280.8 256 272 256H240C231.2 256 224 248.8 224 240V208C224 199.2 231.2 192 240 192H272zM320 208C320 199.2 327.2 192 336 192H368C376.8 192 384 199.2 384 208V240C384 248.8 376.8 256 368 256H336C327.2 256 320 248.8 320 240V208zM488 0C501.3 0 512 10.75 512 24C512 37.25 501.3 48 488 48H480V464H488C501.3 464 512 474.7 512 488C512 501.3 501.3 512 488 512H24C10.75 512 0 501.3 0 488C0 474.7 10.75 464 24 464H32V48H24C10.75 48 0 37.25 0 24C0 10.75 10.75 0 24 0H488zM80 48V464H208V384H176C167.2 384 159.9 376.8 161.3 368.1C168.9 322.6 208.4 288 256 288C303.6 288 343.1 322.6 350.7 368.1C352.1 376.8 344.8 384 336 384H304V464H432V48H80z"/></svg>',ticketAirline='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M416 160C416 151.2 423.2 144 432 144C440.8 144 448 151.2 448 160C448 168.8 440.8 176 432 176C423.2 176 416 168.8 416 160zM416 224C416 215.2 423.2 208 432 208C440.8 208 448 215.2 448 224C448 232.8 440.8 240 432 240C423.2 240 416 232.8 416 224zM448 288C448 296.8 440.8 304 432 304C423.2 304 416 296.8 416 288C416 279.2 423.2 272 432 272C440.8 272 448 279.2 448 288zM416 352C416 343.2 423.2 336 432 336C440.8 336 448 343.2 448 352C448 360.8 440.8 368 432 368C423.2 368 416 360.8 416 352zM186.7 224L163.5 154.5C161.8 149.3 165.6 144 171.1 144H202.2C210.8 144 218.6 148.5 222.9 155.9L262.7 224H302.9C318.1 224 334.4 230.4 345.7 241.7C353.6 249.6 353.6 262.4 345.7 270.3C334.4 281.6 318.1 288 302.9 288H262.7L222.9 356.1C218.6 363.5 210.8 368 202.2 368H171.1C165.6 368 161.8 362.6 163.5 357.5L186.7 288H143.1L124.8 313.6C121.8 317.6 117 320 111.1 320H98.25C93.04 320 89.22 315.1 90.48 310.1L103 259.9C103.7 257.3 103.7 254.7 103 252.1L90.48 201.9C89.22 196.9 93.04 192 98.25 192H111.1C117 192 121.8 194.4 124.8 198.4L143.1 224L186.7 224zM0 128C0 92.65 28.65 64 64 64H576C611.3 64 640 92.65 640 128V189.3C640 200.5 627.2 208 616 208C589.5 208 568 229.5 568 256C568 282.5 589.5 304 616 304C627.2 304 640 311.5 640 322.7V384C640 419.3 611.3 448 576 448H64C28.65 448 0 419.3 0 384V128zM64 112
1126C55.16 112 48 119.2 48 128V384C48 392.8 55.16 400 64 400H576C584.8 400 592 392.8 592 384V348.1C550.6 338.3 520 300.7 520 256C520 211.3 550.6 173.7 592 163V128C592 119.2 584.8 112 576 112H64z"/></svg>',passport='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M384 0H64C28.65 0 0 28.65 0 64v384c0 35.34 28.65 64 64 64h320c35.2 0 64-28.8 64-64V64C448 28.8 419.2 0 384 0zM400 448c0 8.836-7.164 16-16 16H64c-8.836 0-16-7.164-16-16V64c0-8.836 7.164-16 16-16h320c8.836 0 16 7.164 16 16V448zM336 384h-224C103.3 384 96 391.3 96 400S103.3 416 112 416h224c8.75 0 16-7.25 16-16S344.8 384 336 384zM224 328c66.25 0 120-53.75 120-120S290.3 88 224 88S104 141.8 104 208S157.8 328 224 328zM310.4 192h-34.63c-1.375-23.62-5.751-45-12.25-62.25C287.6 142 305.4 164.6 310.4 192zM275.8 224h34.63c-5 27.38-22.88 50-46.88 62.25C269.1 269 274.4 247.6 275.8 224zM224 122.3C230.9 130.6 241.5 154.6 244 192h-40C206.5 154.6 217.1 130.6 224 122.3zM244 224C241.5 261.4 230.9 285.4 224 293.8C217.1 285.4 206.5 261.4 204 224H244zM184.5 129.8C177.1 147 173.6 168.4 172.3 192H137.6C142.6 164.6 160.4 142 184.5 129.8zM172.3 224C173.6 247.6 177.1 269 184.5 286.3C160.5 274 142.6 251.4 137.6 224H172.3z"/></svg>',calendar='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"/></svg>',ticket='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M128 192C128 174.3 142.3 160 160 160H416C433.7 160 448 174.3 448 192V320C448 337.7 433.7 352 416 352H160C142.3 352 128 337.7 128 320V192zM400 208H176V304H400V208zM576 128V208C549.5 208 528 229.5 528 256C528 282.5 549.5 304 576 304V384C576 419.3 547.3 448 512 448H64C28.65 448 0 419.3 0 384V304C26.51 304 48 282.5 48 256C48 229.5 26.51 208 0 208V128C0 92.65 28.65 64 64 64H512C547.3 64 576 92.65 576 128zM48 172.8C76.69 189.4 96 220.5 96 256C96 291.5 76.69 322.6 48 339.2V384C48 392.8 55.16 400 64 400H512C520.8 400 528 392.8 528 384V339.2C499.3 322.6 480 291.5 480 256C480 220.5 499.3 189.4 528 172.8V128C528 119.2 520.8 112 512 112H64C55.16 112 48 119.2 48 128V172.8z"/></svg>',fileCircleCheck='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M63.1 464H284.5C296.5 482.4 311.9 498.5 329.7 511.3C326.6 511.7 323.3 512 320 512H64C28.65 512 0 483.3 0 448V64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V198.6C366.8 203.5 350.6 210.9 336 220.5V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H63.1zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM476.7 324.7L416 385.4L387.3 356.7C381.1 350.4 370.9 350.4 364.7 356.7C358.4 362.9 358.4 373.1 364.7 379.3L404.7 419.3C410.9 425.6 421.1 425.6 427.3 419.3L499.3 347.3C505.6 341.1 505.6 330.9 499.3 324.7C493.1 318.4 482.9 318.4 476.7 324.7H476.7z"/></svg>',bagShopping='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
1126<path d="M112 160V112C112 50.14 162.1 0 224 0C285.9 0 336 50.14 336 112V160H400C426.5 160 448 181.5 448 208V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V208C0 181.5 21.49 160 48 160H112zM160 160H288V112C288 76.65 259.3 48 224 48C188.7 48 160 76.65 160 112V160zM48 208V416C48 442.5 69.49 464 96 464H352C378.5 464 400 442.5 400 416V208H336V264C336 277.3 325.3 288 312 288C298.7 288 288 277.3 288 264V208H160V264C160 277.3 149.3 288 136 288C122.7 288 112 277.3 112 264V208H48z"/></svg>',circleUser='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M256 112c-48.6 0-88 39.4-88 88C168 248.6 207.4 288 256 288s88-39.4 88-88C344 151.4 304.6 112 256 112zM256 240c-22.06 0-40-17.95-40-40C216 177.9 233.9 160 256 160s40 17.94 40 40C296 222.1 278.1 240 256 240zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-46.73 0-89.76-15.68-124.5-41.79C148.8 389 182.4 368 220.2 368h71.69c37.75 0 71.31 21.01 88.68 54.21C345.8 448.3 302.7 464 256 464zM416.2 388.5C389.2 346.3 343.2 320 291.8 320H220.2c-51.36 0-97.35 26.25-124.4 68.48C65.96 352.5 48 306.3 48 256c0-114.7 93.31-208 208-208s208 93.31 208 208C464 306.3 446 352.5 416.2 388.5z"/></svg>',circlePlus='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 368C269.3 368 280 357.3 280 344V280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H280V168C280 154.7 269.3 144 256 144C242.7 144 232 154.7 232 168V232H168C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H232V344C232 357.3 242.7 368 256 368z"/></svg>',tiktok='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"/></svg>',youtube='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/></svg>',facebook='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"/></svg>',twitter='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg>',weibo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M407 177.6c7.6-24-13.4-46.8-37.4-41.7-22 4.8-28.8-28.1-7.1-32.8 50.1-10.9 92.3 37.1 76.5 84.8-6.8 21.2-38.8 10.8-32-10.3zM214.8 446.7C108.5 446.7 0 395.3 0 310.4c0-44.3 28-95.4 76.3-143.7C176 67 279.5 65.8 249.9 161c-4 13.1 12.3 5.7 12.3 6 79.5-33.6 140.5-16.8 114 51.4-3.7 9.4 1.1 10.9 8.3 13.1 135.7 42.3 34.8 215.2-169.7 215.2zm143.7-146.3c-5.4-55.7-78.5-94-163.4-85.7-84.8 8.6-148.8 60.3-143.4 116s78.5 94 163.4 85.7c84.8-8.6 148.8-60.3 143.4-116zM347.9 35.1c-25.9 5.6-16.8 43.7 8.3 38.3 72.3-15.2 
1126134.8 52.8 111.7 124-7.4 24.2 29.1 37 37.4 12 31.9-99.8-55.1-195.9-157.4-174.3zm-78.5 311c-17.1 38.8-66.8 60-109.1 46.3-40.8-13.1-58-53.4-40.3-89.7 17.7-35.4 63.1-55.4 103.4-45.1 42 10.8 63.1 50.2 46 88.5zm-86.3-30c-12.9-5.4-30 .3-38 12.9-8.3 12.9-4.3 28 8.6 34 13.1 6 30.8.3 39.1-12.9 8-13.1 3.7-28.3-9.7-34zm32.6-13.4c-5.1-1.7-11.4.6-14.3 5.4-2.9 5.1-1.4 10.6 3.7 12.9 5.1 2 11.7-.3 14.6-5.4 2.8-5.2 1.1-10.9-4-12.9z"/></svg>',instagram='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg>',shieldCheck='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M466.5 83.71l-192-80c-5.875-2.5-12.16-3.703-18.44-3.703S243.5 1.203 237.6 3.703L45.61 83.71C27.73 91.08 16 108.6 16 127.1C16 385.4 205.4 512 255.9 512C305.2 512 496 387.3 496 127.1C496 108.6 484.3 91.08 466.5 83.71zM256 464C158.5 423.4 64 297.3 64 128l192-80L448 128C448 301.8 349.6 425 256 464zM200.1 247C196.3 242.3 190.1 239.1 184 239.1c-13.71 0-24 11.21-24 24C160 270.1 162.3 276.3 167 280.1l48 48C219.5 333.5 225.7 335.1 232 335.1c2.595 0 11.46-.4962 18.22-8.375l96-112c3.881-4.528 5.781-10.09 5.781-15.62c0-7.405-5.79-23.99-23.98-23.99c-6.756 0-13.48 2.831-18.24 8.362L230.7 276.7L200.1 247z"/></svg>',suitcase='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M128 96V56C128 25.07 153.1 0 184 0H328C358.9 0 384 25.07 384 56V96H448C483.3 96 512 124.7 512 160V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V160C0 124.7 28.65 96 64 96H128zM176 96H336V56C336 51.58 332.4 48 328 48H184C179.6 48 176 51.58 176 56V96zM144 144V432H368V144H144zM48 160V416C48 424.8 55.16 432 64 432H96V144H64C55.16 144 48 151.2 48 160zM464 416V160C464 151.2 456.8 144 448 144H416V432H448C456.8 432 464 424.8 464 416z"/></svg>',ICON_ID_PREFIX="/etc.clientlibs/mh/clientlibs/clientlib-site//resources/font-awesome-svg",useFontAwesomeLazyStore=createGlobalState(()=>({[`${ICON_ID_PREFIX}/regular/@@_EMPTY_VALUE.svg`]:Promise.resolve({data:"<!-- Empty iconId -->"}),[`${ICON_ID_PREFIX}/regular/plane-up.svg`]:Promise.resolve({data:planeUp}),[`${ICON_ID_PREFIX}/regular/plane.svg`]:Promise.resolve({data:plane}),[`${ICON_ID_PREFIX}/regular/hotel.svg`]:Promise.resolve({data:hotel}),[`${ICON_ID_PREFIX}/regular/ticket-airline.svg`]:Promise.resolve({data:ticketAirline}),[`${ICON_ID_PREFIX}/regular/passport.svg`]:Promise.resolve({data:passport}),[`${ICON_ID_PREFIX}/regular/calendar.svg`]:Promise.resolve({data:calendar}),[`${ICON_ID_PREFIX}/regular/ticket.svg`]:Promise.resolve({data:ticket}),[`${ICON_ID_PREFIX}/regular/file-circle-check.svg`]:Promise.resolve({data:fileCircleCheck}),[`${ICON_ID_PREFIX}/regular/bag-shopping.svg`]:Promise.resolve({data:bagShopping}),[`${ICON_ID_PREFIX}/regular/circle-user.svg`]:Promise.resolve({data:circleUser}),[`${ICON_ID_PREFIX}/solid/circle-plus.svg`]:Promise.resolve({data:circlePlus}),[`${ICON_ID_PREFIX}/regular/tiktok.svg`]:Promise.resolve({data:tiktok}),[`${ICON_ID_PREFIX}/regular/youtube.svg`]:Promise.resolve({data:youtube}),[`${ICON_ID_PREFIX}/regular/facebook.svg`]:Promise.resolve({data:facebook}),[`${ICON_ID_PREFIX}/regular/twitter.svg`]:Promise.resolve({data:twitter}),[`${ICON_ID_PREFIX}/regular/weibo.svg`]:Promise.resolve({data:weibo}),[`${ICON_ID_PREFIX}/regular/instagram.svg`]:Promise.resolve({data:instagram}),[`${ICON_ID_PREFIX}/regular/shield-check.svg`]:Promise.resolve({data:shieldCheck}),[`${ICON_ID_PREFIX}/regular/suitcase.svg`]:Promise.resolve({data:suitcase})})),__default__$2l={name:"FontAwesomeLazy",inheritAttrs:!1},_sfc_main$2n=Object.assign(__default__$2l,{props:{iconId:{type:String,default:"@@_EMPTY_VALUE"},iconStyle:{type:String,default:"regular"},useImgTag:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=computed(()=>`/etc.clientlibs/mh/clientlibs/clientlib-site//resources/font-awesome-svg/${e.iconStyle}/${e.iconId}.svg`);watch(()=>[e.iconId,e.iconStyle],()=>{if(!e.iconId)return;const l=useFontAwesomeLazyStore();l[i.value]||(l[i.value]=axios$1.get(i.value)),l[i.value].then(({data:d})=>{a.value=d}).catch(d=>{console.log("Unable to fetch font-awesome svg. iconId = ",e.iconId),console.log(d),a.value="<!-- Fetch svg error -->"})},{immediate:!0});const s={props:e,emit:n,svgContent:a,svgPath:i,get useFontAwesomeLazyStore(){return useFontAwesomeLazyStore}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$32=["src"];function _sfc_render$2n(t,o,r,e,n,a){const i=resolveDirective("html-sanitize");return r.useImgTag?(openBlock(),createElementBlock("img",mergeProps({key:0,class:"FontAwesomeLazy",src:e.svgPath},t.$attrs),null,16,_hoisted_1$32)):withDirectives((openBlock(),createElementBlock("div",mergeProps({key:1,class:"FontAwesomeLazy"},t.$attrs),null,16)),[[i,e.svgContent]])}const FontAwesomeLazy=_export_sfc(_sfc_main$2n,[["render",_sfc_render$2n],["__scopeId","data-v-4a23cbb4"],["__file","FontAwesomeLazy.vue"]]),__default__$2k={n
1126ame:"CTAButton",editConfig:{emptyLabel:"CTA Button",isEmpty(t){return!t.ctaText}},inheritAttrs:!1},_sfc_main$2m=Object.assign(__default__$2k,{props:{href:{type:String,default:""},ctaLinkType:{type:String,default:""},ctaText:{type:String,default:""},styleType:{type:String,default:"primary"},sizeType:{type:String,default:"small"},aemProperties:{type:Object,default:null},isExternalLink:{type:Boolean,default:!1},ctaSizing:{type:String,default:"auto"},alignmentDesktop:{type:String,default:"center"},alignmentMobile:{type:String,default:"center"},iconType:{type:String,default:"icon-font-awesome-id"},iconIdLeft:{type:String,default:""},iconIdRight:{type:String,default:""},iconStyleLeft:{type:String,default:"regular"},iconStyleRight:{type:String,default:"regular"},iconImageLeft:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},isSubmit:{type:Boolean,default:!1},containerStyle:{type:[String,Object,Array],default:""},containerClass:{type:[String,Object,Array],default:""},componentIdAA:{type:String,default:""},supplementaryHiddenText:{type:String,default:""},verticalSpacing:{type:Number,default:0},enableGlassDesign:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const{isEditorMode:e}=useGlobalAEMState$1(),n=t,a=useAttrs(),i=window.siteName,s=r,l=ref$1(!1),d=window.AEM_MHH_THEME_SWITCH,c=computed(()=>[`${n.href?"inline-flex":"flex"}`,"rounded-5xl justify-center gap-2",`styleType-${n.styleType}`,`sizeType-${u.value}`,n.ctaSizing==="fluid"?"w-full":"w-auto",l.value?"is-mouse-down":"",{"mx-auto":n.alignmentDesktop==="center","mr-auto ml-0":n.alignmentDesktop==="left","ml-auto mr-0":n.alignmentDesktop==="right"},{"md:mx-auto":n.alignmentMobile==="center","md:mr-auto md:ml-0":n.alignmentMobile==="left","md:ml-auto md:mr-0":n.alignmentMobile==="right"}]),u=computed(()=>n.styleType.includes("text")&&n.sizeType==="extra-small"?"small":n.styleType.includes("text")&&n.sizeType==="small"?"medium":n.styleType.includes("text")&&n.sizeType==="medium"?"large":n.styleType.includes("arrow-cta")&&n.sizeType==="small"?"medium":n.sizeType),f=computed(()=>n.href?{href:T.value,...n.ctaLinkType==="download"?{download:""}:null,...n.ctaLinkType==="blank"?{target:"_blank"}:null,...a,class:[c.value,a.class],showExternalLinkIcon:!1}:{type:_.value?"submit":"button",...a,class:[c.value,a.class]}),m=computed(()=>n.styleType==="primary"||n.styleType==="secondary"),b=computed(()=>n.iconType==="icon-image"&&n.iconImageLeft),y=computed(()=>n.iconType==="icon-font-awesome-id"&&n.iconIdLeft),_=computed(()=>n.isSubmit&&m.value),S=computed(()=>{let N=/^\+?\d+(-\d+)*$/;return n.href&&N.test(n.href)}),C=computed(()=>{let N=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/;return n.href&&N.test(n.href)}),T=computed(()=>S.value?`tel:${n.href}`:C.value?`mailto:${n.href}`:n.href),x=computed(()=>`mt-${n.verticalSpacing}`),k=ref$1(null);function E(N){if("__aa_listener"in k.value)return!0;const F=!!N.target.closest(".Banner");pushAA_click([{clickName:n.ctaText,clickComponentType:F?"Banner":n.href?"URL":"Button",componentName:F?"Banner":"CTAButton",componentID:n.componentIdAA},{name:n.ctaText,type:n.href?isUrlMatchCurrentHostname(n.href)?"other":"exit":"other"}])}const w=computed(()=>n.href?n.ctaLinkType==="download"?"a":AppHyperlink:"button"),D={isEditorMode:e,props:n,attrs:a,siteName:i,emit:s,isPressed:l,mhhNewTheme:d,wrapperClass:c,computedStyleSize:u,wrapperAttrs:f,isPrimarySecondaryButton:m,isIconImage:b,isIconID:y,isSubmitButton:_,isTel:S,isEmail:C,computedHref:T,verticalSpacingClass:x,rootEl:k,handleAATrigger:E,computedCTATag:w,computed,get useGlobalAEMState(){return useGlobalAEMState$1},FontAwesomeLazy,AppHyperlink,get pushAA_click(){return pushAA_click},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname}};return Object.defineProperty(D,"__isScriptSetup",{enumerable:!1,value:!0}),D}}),_hoisted_1$31={key:0,class:"generic-container py-10 text-center"},_hoisted_2$26={key:0},_hoisted_3$1E={key:1},_hoisted_4$1u=["data-use-theme"],_hoisted_5$1n={key:0,class:"icon-image mt-0.5"},_hoisted_6$1j=["src"],_hoisted_7$1h={key:3,class:"label basis-0 flex-grow"},_hoisted_8$1b={key:8,class:"sr-only"};function _sfc_render$2m(t,o,r,e,n,a){const i=__unplugin_components_0$k,s=__unplugin_components_0$l,l=__unplugin_components_1$d;return e.isEditorMode&&r.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_1$31,[createBaseVNode("p",null,[o[5]||(o[5]=createTextVNode("Hidden in: ")),r.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_2$26,"Desktop")):createCommentVNode("",!0),o[6]||(o[6]=createTextVNode()),r.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_3$1E,", Mobile")):createCommentVNode("",!0)])])):(openBlock(),createElementBlock("div",{key:1,ref:"rootEl","data-use-theme":e.siteName,class:normalizeClass([{">md:hidden":r.isHideInDesktop,"hidden >md:block":r.isHideInMobile,"text-right":e.props.href&&e.props.alignmentDesktop==="right","text-left":e.props.href&&e.props.alignmentDesktop==="left","text-center":e.props.href&&e.props.alignmentDesktop==="center","md:text-right":e.props.href&&e.props.alignmentMobile==="right","md:text-left":e.props.href&&e.props.alignmentMobile==="left","md:text-center":e.props.href&&e.props.alignmentMobile==="center","mhh-new-theme":e.mhhNewTheme},e.props.containerClass,e.verticalSpacingClass]),style:normalizeStyle(e.props.containerStyle)},[(openBlock(),createBlock(resolveDynamicComponent(e.computedCTATag),mergeProps({class:["CTAButton",{"sizeType-text-primary":e.props.styleType.includes("text-primary"),"sizeType-text-white":e.props.styleType.includes("text-white"),"sizeType-arrow-cta-left":e.props.styleType.includes("arrow-cta-left"),"sizeType-arrow-cta-right":e.props.styleType.includes("arrow-cta-right")}]},e.wrapperAttrs,{"data-aa-target":"",onClick:e.handleAATrigger,onMousedown:o[0]||(o[0]=d=>e.isPressed=!0),onKeydown:o[1]||(o[1]=withKeys(d=>e.isPressed=!0,["enter","space"])),onMouseup:o[2]||(o[2]=d=>e.isPressed=!1),onKeyup:o[3]||(o[3]=withKeys(d=>e.isPressed=!1,["enter","space"])),onMouseout:o[4]||(o[4]=d=>e.isPressed=!1)}),{default:withCtx(()=>[e.isIconImage?(openBlock(),createElementBlock("span",_hoisted_5$1n,[createBaseVNode("img",{src:r.iconImageLeft,alt:""},null,8,_hoisted_6$1j)])):e.isIconID?(openBlock(),createBlock(e.FontAwesomeLazy,{key:1,class:"icon fill-current mt-0.5",iconId:r.iconIdLeft,iconStyle:r.iconStyleLeft},null,8,["iconId","iconStyle"])):createCommentVNode("",!0),e.props.styleType.includes("arrow-cta-left")&&!r.isExternalLink&&r.ctaLinkType!=="download"?(openBlock(),createBlock(i,{key:2,class:"icon icon-chevron-left inline-block"})):createCommentVNode("",!0),e.props.ctaText?(openBlock(),createElementBlock("span",_hoisted_7$1h,toDisplayString(e.props.ctaText),1)):createCommentVNode("",!0),renderSlot(t.$slots,"default",{},void 0,!0),r.isExternalLink?(openBlock(),createBlock(e.FontAwesomeLazy,{key:4,class:"icon fill-current mt-0.5",iconId:"arrow-up-right-from-square",iconStyle:r.iconStyleRight},null,8,["iconStyle"])):createCommentVNode("",!0),r.iconIdRight?(openBlock(),createBlock(e.FontAwesomeLazy,{key:5,class:"icon fill-current mt-0.5",iconId:r.iconIdRight,iconStyle:r.iconStyleRight},null,8,["iconId","iconStyle"])):createCommentVNode("",!0),e.props.styleType.includes("text")&&!r.isExternalLink&&r.ctaLinkType!=="download"?(openBlock(),createBlock(s,{key:6,class:"icon icon-arrow-right inline-block"})):createCommentVNode("",!0),e.props.styleType.includes("arrow-cta-right")&&!r.isExternalLink&&r.ctaLinkType!=="download"?(openBlock(),createBlock(l,{key:7,class:"icon icon-chevron-right inline-block"})):createCommentVNode("",!0),e.props.supplementaryHiddenText?(openBlock(),createElementBlock("span",_hoisted_8$1b," "+toDisplayString(e.props.supplementaryHiddenText),1)):createCommentVNode("",!0)]),_:3},16,["class"]))],14,_hoisted_4$1u))}const CTAButton=_export_sfc(_sfc_main$2m,[["render",_sfc_render$2m],["__scopeId","data-v-9360579c"],["__file","CTAButton.vue"]]),CTAButton$1=Object.freeze(Object.defineProperty({__proto__:null,default:CTAButton},Symbol.toStringTag,{value:"Module"})),isScrollbarVisible=t=>t.scrollHeight>t.clientHeight&&!t.getAttribute("data-overflow-y-value"),disableScroll=()=>{const t=document.documentElement;if(!isScrollbarVisible(t))return;const o=t.scrollTop;window.ignoreNextScrollEvent=!0,t.classList.add("no-scroll"),t.style.top=`-${o}px`,t.setAttribute("data-scroll-top",o)},enableScroll=()=>{const t=document.documentElement;t.classList.contains("no-scroll")&&(window.getComputedStyle(t).getPropertyValue("top"),t.classList.remove("no-scroll"),t.style.top="auto",t.scrollTop=parseFloat(t.getAttribute("data-scroll-top"))||0,t.removeAttribute("data-scroll-top"))},clearOverflowStyling=()=>{const t=document.documentElement;t.style.overflowY=t.getAttribute("data-overflow-y-value"),t.removeAttribute("data-overflow-y-value")},setOverflowHiddenStyling=()=>{const t=document.documentElement;t.getAttribute("data-overflow-y-value")||t.setAttribute("data-overflow-y-value",window.getComputedStyle(t).getPropertyValue("overflow-y")),t.style.overflowY="hidden"};function useDisableScroll(t,{useOverflowHiddenMethod:o=!1}={}){getCurrentInstance()&&onUnmounted(()=>{o?clearOverflowStyling():enableScroll()}),watch(t,e=>{e===!1?o?clearOverflowStyling():enableScroll():o?setOverflowHiddenStyling():disableScroll()},{immediate:!0})}/*!
1127* tabbable 6.2.0
1128* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1129*/var candidateSelectors=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
1129(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],candidateSelector=candidateSelectors.join(","),NoElement=typeof Element>"u",matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(t){var o;return t==null||(o=t.getRootNode)===null||o===void 0?void 0:o.call(t)}:function(t){return t==null?void 0:t.ownerDocument},isInert=function t(o,r){var e;r===void 0&&(r=!0);var n=o==null||(e=o.getAttribute)===null||e===void 0?void 0:e.call(o,"inert"),a=n===""||n==="true",i=a||r&&o&&t(o.parentNode);return i},isContentEditable=function t(o){var r,e=o==null||(r=o.getAttribute)===null||r===void 0?void 0:r.call(o,"contenteditable");return e===""||e==="true"},getCandidates=function t(o,r,e){if(isInert(o))return[];var n=Array.prototype.slice.apply(o.querySelectorAll(candidateSelector));return r&&matches.call(o,candidateSelector)&&n.unshift(o),n=n.filter(e),n},getCandidatesIteratively=function t(o,r,e){for(var n=[],a=Array.from(o);a.length;){var i=a.shift();if(!isInert(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,d=t(l,!0,e);e.flatten?n.push.apply(n,d):n.push({scopeParent:i,candidates:d})}else{var c=matches.call(i,candidateSelector);c&&e.filter(i)&&(r||!o.includes(i))&&n.push(i);var u=i.shadowRoot||typeof e.getShadowRoot=="function"&&e.getShadowRoot(i),f=!isInert(u,!1)&&(!e.shadowRootFilter||e.shadowRootFilter(i));if(u&&f){var m=t(u===!0?i.children:u.children,!0,e);e.flatten?n.push.apply(n,m):n.push({scopeParent:i,candidates:m})}else a.unshift.apply(a,i.children)}}return n},hasTabIndex=function t(o){return!isNaN(parseInt(o.getAttribute("tabindex"),10))},getTabIndex=function t(o){if(!o)throw new Error("No node provided");return o.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(o.tagName)||isContentEditable(o))&&!hasTabIndex(o)?0:o.tabIndex},getSortOrderTabIndex=function t(o,r){var e=getTabIndex(o);return e<0&&r&&!hasTabIndex(o)?0:e},sortOrderedTabbables=function t(o,r){return o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex},isInput=function t(o){return o.tagName==="INPUT"},isHiddenInput=function t(o){return isInput(o)&&o.type==="hidden"},isDetailsWithSummary=function t(o){var r=o.tagName==="DETAILS"&&Array.prototype.slice.apply(o.children).some(function(e){return e.tagName==="SUMMARY"});return r},getCheckedRadio=function t(o,r){for(var e=0;e<o.length;e++)if(o[e].checked&&o[e].form===r)return o[e]},isTabbableRadio=function t(o){if(!o.name)return!0;var r=o.form||getRootNode(o),e=function(s){return r.querySelectorAll('input[type="radio"][name="'+s+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=e(window.CSS.escape(o.name));else try{n=e(o.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var a=getCheckedRadio(n,o.form);return!a||a===o},isRadio=function t(o){return isInput(o)&&o.type==="radio"},isNonTabbableRadio=function t(o){return isRadio(o)&&!isTabbableRadio(o)},isNodeAttached=function t(o){var r,e=o&&getRootNode(o),n=(r=e)===null||r===void 0?void 0:r.host,a=!1;if(e&&e!==o){var i,s,l;for(a=!!((i=n)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(n)||o!=null&&(l=o.ownerDocument)!==null&&l!==void 0&&l.contains(o));!a&&n;){var d,c,u;e=getRootNode(n),n=(d=e)===null||d===void 0?void 0:d.host,a=!!((c=n)!==null&&c!==void 0&&(u=c.ownerDocument)!==null&&u!==void 0&&u.contains(n))}}return a},isZeroArea=function t(o){var r=o.getBoundingClientRect(),e=r.width,n=r.height;return e===0&&n===0},isHidden=function t(o,r){var e=r.displayCheck,n=r.getShadowRoot;if(getComputedStyle(o).visibility==="hidden")return!0;var a=matches.call(o,"details>summary:first-of-type"),i=a?o.parentElement:o;if(matches.call(i,"details:not([open]) *"))return!0;
vendor: 4,444 bytes, lines 1129-1132
1129if(!e||e==="full"||e==="legacy-full"){if(typeof n=="function"){for(var s=o;o;){var l=o.parentElement,d=getRootNode(o);if(l&&!l.shadowRoot&&n(l)===!0)return isZeroArea(o);o.assignedSlot?o=o.assignedSlot:!l&&d!==o.ownerDocument?o=d.host:o=l}o=s}if(isNodeAttached(o))return!o.getClientRects().length;if(e!=="legacy-full")return!0}else if(e==="non-zero-area")return isZeroArea(o);return!1},isDisabledFromFieldset=function t(o){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(o.tagName))for(var r=o.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var e=0;e<r.children.length;e++){var n=r.children.item(e);if(n.tagName==="LEGEND")return matches.call(r,"fieldset[disabled] *")?!0:!n.contains(o)}return!0}r=r.parentElement}return!1},isNodeMatchingSelectorFocusable=function t(o,r){return!(r.disabled||isInert(r)||isHiddenInput(r)||isHidden(r,o)||isDetailsWithSummary(r)||isDisabledFromFieldset(r))},isNodeMatchingSelectorTabbable=function t(o,r){return!(isNonTabbableRadio(r)||getTabIndex(r)<0||!isNodeMatchingSelectorFocusable(o,r))},isValidShadowRootTabbable=function t(o){var r=parseInt(o.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},sortByOrder=function t(o){var r=[],e=[];return o.forEach(function(n,a){var i=!!n.scopeParent,s=i?n.scopeParent:n,l=getSortOrderTabIndex(s,i),d=i?t(n.candidates):s;l===0?i?r.push.apply(r,d):r.push(s):e.push({documentOrder:a,tabIndex:l,item:n,isScope:i,content:d})}),e.sort(sortOrderedTabbables).reduce(function(n,a){return a.isScope?n.push.apply(n,a.content):n.push(a.content),n},[]).concat(r)},tabbable=function t(o,r){r=r||{};var e;return r.getShadowRoot?e=getCandidatesIteratively([o],r.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):e=getCandidates(o,r.includeContainer,isNodeMatchingSelectorTabbable.bind(null,r)),sortByOrder(e)},focusable=function t(o,r){r=r||{};var e;return r.getShadowRoot?e=getCandidatesIteratively([o],r.includeContainer,{filter:isNodeMatchingSelectorFocusable.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):e=getCandidates(o,r.includeContainer,isNodeMatchingSelectorFocusable.bind(null,r)),e},isTabbable=function t(o,r){if(r=r||{},!o)throw new Error("No node provided");return matches.call(o,candidateSelector)===!1?!1:isNodeMatchingSelectorTabbable(r,o)},focusableCandidateSelector=candidateSelectors.concat("iframe").join(","),isFocusable=function t(o,r){if(r=r||{},!o)throw new Error("No node provided");return matches.call(o,focusableCandidateSelector)===!1?!1:isNodeMatchingSelectorFocusable(r,o)};/*!
1130* focus-trap 7.5.4
1131* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
1132*/function ownKeys(t,o){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);o&&(e=e.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,e)}return r}function _objectSpread2(t){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(t,o,r){return o=_toPropertyKey(o),o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function _toPrimitive(t,o){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var e=r.call(t,o||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function _toPropertyKey(t){var o=_toPrimitive(t,"string");return typeof o=="symbol"?o:String(o)}var activeFocusTraps={activateTrap:function t(o,r){if(o.length>0){var e=o[o.length-1];e!==r&&e.pause()}var n=o.indexOf(r);n===-1||o.splice(n,1),o.push(r)},deactivateTrap:function t(o,r){var e=o.indexOf(r);e!==-1&&o.splice(e,1),o.length>0&&o[o.length-1].unpause()}},isSelectableInput=function t(o){return o.tagName&&o.tagName.toLowerCase()==="input"&&typeof o.select=="function"},isEscapeEvent=function t(o){return(o==null?void 0:o.key)==="Escape"||(o==null?void 0:o.key)==="Esc"||(o==null?void 0:o.keyCode)===27},isTabEvent=function t(o){return(o==null?void 0:o.key)==="Tab"||(o==null?void 0:o.keyCode)===9}
1132,isKeyForward=function t(o){return isTabEvent(o)&&!o.shiftKey},isKeyBackward=function t(o){return isTabEvent(o)&&o.shiftKey},delay=function t(o){return setTimeout(o,0)},findIndex=function t(o,r){var e=-1;return o.every(function(n,a){return r(n)?(e=a,!1):!0}),e},valueOrHandler=function t(o){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return typeof o=="function"?o.apply(void 0,e):o},getActualTarget=function t(o){return o.target.shadowRoot&&typeof o.composedPath=="function"?o.composedPath()[0]:o.target},internalTrapStack=[],createFocusTrap=function t(o,r){var e=(r==null?void 0:r.document)||document,n=(r==null?void 0:r.trapStack)||internalTrapStack,a=_objectSpread2({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward,isKeyBackward},r),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,l=function(A,M,O){return A&&A[M]!==void 0?A[M]:a[O||M]},d=function(A,M){var O=typeof(M==null?void 0:M.composedPath)=="function"?M.composedPath():void 0;return i.containerGroups.findIndex(function(R){var I=R.container,j=R.tabbableNodes;return I.contains(A)||(O==null?void 0:O.includes(I))||j.find(function(H){return H===A})})},c=function(A){var M=a[A];if(typeof M=="function"){for(var O=arguments.length,R=new Array(O>1?O-1:0),I=1;I<O;I++)R[I-1]=arguments[I];M=M.apply(void 0,R)}if(M===!0&&(M=void 0),!M){if(M===void 0||M===!1)return M;throw new Error("`".concat(A,"` was specified but was not a node, or did not return a node"))}var j=M;if(typeof M=="string"&&(j=e.querySelector(M),!j))throw new Error("`".concat(A,"` as selector refers to no known node"));return j},u=function(){var A=c("initialFocus");if(A===!1)return!1;if(A===void 0||!isFocusable(A,a.tabbableOptions))if(d(e.activeElement)>=0)A=e.activeElement;else{var M=i.tabbableGroups[0],O=M&&M.firstTabbableNode;A=O||c("fallbackFocus")}if(!A)throw new Error("Your focus-trap needs to have at least one focusable element");return A},f=function(){if(i.containerGroups=i.containers.map(function(A){var M=tabbable(A,a.tabbableOptions),O=focusable(A,a.tabbableOptions),R=M.length>0?M[0]:void 0,I=M.length>0?M[M.length-1]:void 0,j=O.find(function(B){return isTabbable(B)}),H=O.slice().reverse().find(function(B){return isTabbable(B)}),U=!!M.find(function(B){return getTabIndex(B)>0});return{container:A,tabbableNodes:M,focusableNodes:O,posTabIndexesFound:U,firstTabbableNode:R,lastTabbableNode:I,firstDomTabbableNode:j,lastDomTabbableNode:H,nextTabbableNode:function(L){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,W=M.indexOf(L);return W<0?z?O.slice(O.indexOf(L)+1).find(function(J){return isTabbable(J)}):O.slice(0,O.indexOf(L)).reverse().find(function(J){return isTabbable(J)}):M[W+(z?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(A){return A.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(A){return A.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function V(A){var M=A.activeElement;if(M)return M.shadowRoot&&M.shadowRoot.activeElement!==null?V(M.shadowRoot):M},b=function V(A){if(A!==!1&&A!==m(document)){if(!A||!A.focus){V(u());return}A.focus({preventScroll:!!a.preventScroll}),i.mostRecentlyFocusedNode=A,isSelectableInput(A)&&A.select()}},y=function(A){var M=c("setReturnFocus",A);return M||(M===!1?!1:A)},_=function(A){var M=A.target,O=A.event,R=A.isBackward,I=R===void 0?!1:R;M=M||getActualTarget(O),f();var j=null;if(i.tabbableGroups.length>0){var H=d(M,O),U=H>=0?i.containerGroups[H]:void 0;if(H<0)I?j=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:j=i.tabbableGroups[0].firstTabbableNode;else if(I){var B=findIndex(i.tabbableGroups,function(re){var oe=re.firstTabbableNode;return M===oe});if(B<0&&(U.container===M||isFocusable(M,a.tabbableOptions)&&!isTabbable(M,a.tabbableOptions)&&!U.nextTabbableNode(M,!1))&&(B=H),B>=0){var L=B===0?i.tabbableGroups.length-1:B-1,z=i.tabbableGroups[L];j=getTabIndex(M)>=0?z.lastTabbableNode:z.lastDomTabbableNode}else isTabEvent(O)||(j=U.nextTabbableNode(M,!1))}else{var W=findIndex(i.tabbableGroups,function(re){var oe=re.lastTabbableNode;return M===oe});if(W<0&&(U.container===M||isFocusable(M,a.tabbableOptions)&&!isTabbable(M,a.tabbableOptions)&&!U.nextTabbableNode(M))&&(W=H),W>=0){var J=W===i.tabbableGroups.length-1?0:W+1,te=i.tabbableGroups[J];j=getTabIndex(M)>=0?te.firstTabbableNode:te.firstDomTabbableNode}else isTabEvent(O)||(j=U.nextTabbableNode(M))}}else j=c("fallbackFocus");return j},S=function(A){var M=getActualTarget(A);if(!(d(M,A)>
1132=0)){if(valueOrHandler(a.clickOutsideDeactivates,A)){s.deactivate({returnFocus:a.returnFocusOnDeactivate});return}valueOrHandler(a.allowOutsideClick,A)||A.preventDefault()}},C=function(A){var M=getActualTarget(A),O=d(M,A)>=0;if(O||M instanceof Document)O&&(i.mostRecentlyFocusedNode=M);else{A.stopImmediatePropagation();var R,I=!0;if(i.mostRecentlyFocusedNode)if(getTabIndex(i.mostRecentlyFocusedNode)>0){var j=d(i.mostRecentlyFocusedNode),H=i.containerGroups[j].tabbableNodes;if(H.length>0){var U=H.findIndex(function(B){return B===i.mostRecentlyFocusedNode});U>=0&&(a.isKeyForward(i.recentNavEvent)?U+1<H.length&&(R=H[U+1],I=!1):U-1>=0&&(R=H[U-1],I=!1))}}else i.containerGroups.some(function(B){return B.tabbableNodes.some(function(L){return getTabIndex(L)>0})})||(I=!1);else I=!1;I&&(R=_({target:i.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(i.recentNavEvent)})),b(R||i.mostRecentlyFocusedNode||u())}i.recentNavEvent=void 0},T=function(A){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=A;var O=_({event:A,isBackward:M});O&&(isTabEvent(A)&&A.preventDefault(),b(O))},x=function(A){if(isEscapeEvent(A)&&valueOrHandler(a.escapeDeactivates,A)!==!1){A.preventDefault(),s.deactivate();return}(a.isKeyForward(A)||a.isKeyBackward(A))&&T(A,a.isKeyBackward(A))},k=function(A){var M=getActualTarget(A);d(M,A)>=0||valueOrHandler(a.clickOutsideDeactivates,A)||valueOrHandler(a.allowOutsideClick,A)||(A.preventDefault(),A.stopImmediatePropagation())},E=function(){if(i.active)return activeFocusTraps.activateTrap(n,s),i.delayInitialFocusTimer=a.delayInitialFocus?delay(function(){b(u())}):b(u()),e.addEventListener("focusin",C,!0),e.addEventListener("mousedown",S,{capture:!0,passive:!1}),e.addEventListener("touchstart",S,{capture:!0,passive:!1}),e.addEventListener("click",k,{capture:!0,passive:!1}),e.addEventListener("keydown",x,{capture:!0,passive:!1}),s},w=function(){if(i.active)return e.removeEventListener("focusin",C,!0),e.removeEventListener("mousedown",S,!0),e.removeEventListener("touchstart",S,!0),e.removeEventListener("click",k,!0),e.removeEventListener("keydown",x,!0),s},D=function(A){var M=A.some(function(O){var R=Array.from(O.removedNodes);return R.some(function(I){return I===i.mostRecentlyFocusedNode})});M&&b(u())},N=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(D):void 0,F=function(){N&&(N.disconnect(),i.active&&!i.paused&&i.containers.map(function(A){N.observe(A,{subtree:!0,childList:!0})}))};return s={get active(){return i.active},get paused(){return i.paused},activate:function(A){if(i.active)return this;var M=l(A,"onActivate"),O=l(A,"onPostActivate"),R=l(A,"checkCanFocusTrap");R||f(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=e.activeElement,M==null||M();var I=function(){R&&f(),E(),F(),O==null||O()};return R?(R(i.containers.concat()).then(I,I),this):(I(),this)},deactivate:function(A){if(!i.active)return this;var M=_objectSpread2({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},A);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,w(),i.active=!1,i.paused=!1,F(),activeFocusTraps.deactivateTrap(n,s);var O=l(M,"onDeactivate"),R=l(M,"onPostDeactivate"),I=l(M,"checkCanReturnFocus"),j=l(M,"returnFocus","returnFocusOnDeactivate");O==null||O();var H=function(){delay(function(){j&&b(y(i.nodeFocusedBeforeActivation)),R==null||R()})};return j&&I?(I(y(i.nodeFocusedBeforeActivation)).then(H,H),this):(H(),this)},pause:function(A){if(i.paused||!i.active)return this;var M=l(A,"onPause"),O=l(A,"onPostPause");return i.paused=!0,M==null||M(),w(),F(),O==null||O(),this},unpause:function(A){if(!i.paused||!i.active)return this;var M=l(A,"onUnpause"),O=l(A,"onPostUnpause");return i.paused=!1,M==null||M(),f(),E(),F(),O==null||O(),this},updateContainerElements:function(A){var M=[].concat(A).filter(Boolean);return i.containers=M.map(function(O){return typeof O=="string"?e.querySelector(O):O}),i.active&&f(),F(),this}},s.updateContainerElements(o),s},__defProp$1=Object.defineProperty,__defProps$1=Object.defineProperties,__getOwnPropDescs$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$1=(t,o,r)=>o in t?__defProp$1(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,__spreadValues$1=(t,o)=>{for(var r in o||(o={}))__hasOwnProp$1.call(o,r)&&__defNormalProp$1(t,r,o[r]);if(__getOwnPropSymbols$1)for(var r of __getOwnPropSymbols$1(o))__propIsEnum$1.call(o,r)&&__defNormalProp$1(t,r,o[r]);return t},__spreadProps$1=(t,o)=>__defProps$1(t,__getOwnPropDescs$1(o)),__objRest=(t,o)=>{var r={};for(var e in t)__hasOwnProp$1.call(t,e)&&o.indexOf(e)<0&&(r[e]=t[e]);if(t!=null&&__getOwnPropSymbols$1)for(var e of __getOwnPropSymbols$1(t))o.indexOf(e)<0&&__propIsEnum$1.call(t,e)&&(r[e]=t[e]);return r};function useFocusTrap(t,o={}){let r;const e=o,{immediate:n}=e,a=__objRest(e,["immediate"]),i=ref$1(!1),s=ref$1(!1),l=f=>r&&r.activate(f),d=f=>r&&r.deactivate(f),c=()=>{r&&(r.pause(),s.value=!0)},u=()=>{r&&(r.unpause(),s.value=!1)};return watch(()=>unrefElement(t),f=>{f&&(r=createFocusTrap(f,__spreadProps$1(__spreadValues$1({},a),{onActivate(){i.value=!0,o.onActivate&&o.onActivate()},onDeactivate(){i.value=!1,o.onDeactivate&&o.onDeactivate()}})),n&&l())},{flush:"post"}
1132),tryOnScopeDispose(()=>d()),{hasFocus:i,isPaused:s,activate:l,deactivate:d,pause:c,unpause:u}}const __default__$2j={name:"OverlayBtmSticky",inheritAttrs:!1},_sfc_main$2l=Object.assign(__default__$2j,{props:{isVisible:{type:Boolean,default:!1},backdropClosable:{type:Boolean,default:!0},overlayContainerAttrs:{type:Object,default:()=>({})},overlayWrapperAttrs:{type:Object,default:()=>({})},overlayContentAttrs:{type:Object,default:()=>({})},enableFocusTrap:{type:Boolean,default:!0},disableCalendarPickerAnimation:{type:Boolean,default:!1}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(e.isVisible);useDisableScroll(i),watch(()=>e.isVisible,y=>{i.value=y}),watch(i,y=>{n("update:isVisible",y)});const s=y=>{e.backdropClosable&&l()},l=()=>{i.value=!1},{activate:d,deactivate:c}=useFocusTrap(a),u=async()=>{var y;e.enableFocusTrap&&((y=a.value)==null||y.focus(),await nextTick$1(),d())},f=()=>{e.enableFocusTrap&&c()},m=window.siteName,b={props:e,emit:n,rootEl:a,internalVisible:i,handleBackdropClick:s,hideOverlay:l,activeFocusTrap:d,deactivateFocusTrap:c,handleRootElOnMounted:u,handleRootElBeforeUnmount:f,siteName:m,get useDisableScroll(){return useDisableScroll},get useFocusTrap(){return useFocusTrap},Transition};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),_hoisted_1$30=["data-use-theme"],_hoisted_2$25={class:"overlay-footer empty:hidden"};function _sfc_render$2l(t,o,r,e,n,a){return openBlock(),createBlock(Teleport,{to:"body"},[(openBlock(),createBlock(resolveDynamicComponent(e.props.disableCalendarPickerAnimation?"div":e.Transition),{name:"overlay-bottom",appear:""},{default:withCtx(()=>[r.isVisible?(openBlock(),createElementBlock("div",mergeProps({key:0,ref:"rootEl",tabindex:"-1",class:"OverlayBtmSticky backdrop","data-use-theme":e.siteName},t.$attrs,{onKeydownCapture:withKeys(e.hideOverlay,["esc"]),onVnodeMounted:e.handleRootElOnMounted,onVnodeBeforeUnmount:e.handleRootElBeforeUnmount,onClick:withModifiers(e.handleBackdropClick,["self"])}),[createBaseVNode("div",mergeProps({class:"overlay-container"},e.props.overlayContainerAttrs),[createBaseVNode("div",mergeProps({class:"overlay-wrapper"},e.props.overlayWrapperAttrs),[createBaseVNode("div",{class:normalizeClass(["overlay-line",{"opacity-0":!e.props.backdropClosable}]),onClick:o[0]||(o[0]=i=>e.props.backdropClosable?e.hideOverlay():null)},null,2),createBaseVNode("div",mergeProps({class:"overlay-content flex-grow overflow-y-auto styled-scrollbar mr-2 mb-2"},e.props.overlayContentAttrs),[renderSlot(t.$slots,"default",{},void 0,!0)],16),createBaseVNode("footer",_hoisted_2$25,[renderSlot(t.$slots,"footer",{},void 0,!0)])],16)],16)],16,_hoisted_1$30)):createCommentVNode("",!0)]),_:3}))])}const OverlayBtmSticky=_export_sfc(_sfc_main$2l,[["render",_sfc_render$2l],["__scopeId","data-v-ad047887"],["__file","OverlayBtmSticky.vue"]]),BREAKPOINTS={xs:480,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};let breakpoints$1=ref$1(null);ref$1(null);ref$1(null);ref$1(null);let isLG=ref$1(null),isXL=ref$1(null),isXXL=ref$1(null),isXXXL=ref$1(null),isMobileViewport=ref$1(null);const init$2=()=>{breakpoints$1=useBreakpoints(BREAKPOINTS),isMobileViewport=breakpoints$1.smaller("md"),breakpoints$1.smaller("xs"),breakpoints$1.between("xs","sm"),breakpoints$1.between("sm","md"),isLG=breakpoints$1.between("md","lg"),isXL=breakpoints$1.between("lg","xl"),isXXL=breakpoints$1.between("xl","2xl"),isXXXL=breakpoints$1.greaterOrEqual("2xl")},__default__$2i={name:"Tooltip"},_sfc_main$2k=Object.assign(__default__$2i,{props:{ariaLabel:{type:String,default:null},renderInvisibleTrigger:{type:Boolean,default:!0},triangleAlignment:{type:String,default:"left"},isDisabled:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){const e=t,n=r,a=window.siteName,i=ref$1(!1),s=ref$1(null),l=ref$1(null),d=ref$1("0"),c=ref$1("0"),u=async()=>{l.value&&clearTimeout(l.value),i.value=!0,d.value="0",await nextTick$1(),isElOutOfViewport(s.value).right&&(d.value="calc(-100% + 30px)")},f=()=>{l.value=setTimeout(()=>{i.value=!1},200)},m=ref$1(!1),b=S=>{isMobileViewport.value&&(m.value=!0)},y=S=>{f()};o({showTooltip:u,hideTooltip:f,tooltipPositionX:d,tooltipPositionY:c});const _={props:e,emit:n,siteName:a,isTooltipVisible:i,tooltipEl:s,tooltipTimer:l,tooltipPositionX:d,tooltipPositionY:c,showTooltip:u,hideTooltip:f,isMobileOverlayVisible:m,handleTriggerClick:b,handleEscKey:y,get isElOutOfViewport(){return isElOutOfViewport},CTAButton,OverlayBtmSticky,get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}
1132),_hoisted_1$2$=["data-use-theme"],_hoisted_2$24=["aria-label"],_hoisted_3$1D={class:"tooltip-triangle"},_hoisted_4$1t={class:"px-5 pb-4 sticky top-0 bg-white z-1000"},_hoisted_5$1m={class:"font-bold"},_hoisted_6$1i={class:"px-5 mr-2",role:"tooltip"},_hoisted_7$1g={class:"px-5 pt-4 pb-4 sticky bottom-0 bg-white z-1000"};function _sfc_render$2k(t,o,r,e,n,a){return openBlock(),createElementBlock("div",{class:normalizeClass(["Tooltip",{"render-invisible-trigger":e.props.renderInvisibleTrigger,[`triangle-alignment-${e.props.triangleAlignment||"left"}`]:!0}]),"data-use-theme":e.siteName},[createBaseVNode("button",{class:"btn-tooltip-trigger",type:"button","aria-label":e.props.ariaLabel||t.$t("More info"),onMouseenter:o[0]||(o[0]=i=>e.isMobileViewport||e.props.isDisabled?null:e.showTooltip()),onMouseleave:o[1]||(o[1]=i=>e.isMobileViewport||e.props.isDisabled?null:e.hideTooltip()),onClick:o[2]||(o[2]=i=>e.props.isDisabled?null:e.handleTriggerClick()),onKeydown:o[3]||(o[3]=withKeys(withModifiers(i=>e.props.isDisabled?null:e.handleEscKey,["prevent"]),["esc"]))},[renderSlot(t.$slots,"default",{},void 0,!0)],40,_hoisted_2$24),withDirectives(createBaseVNode("div",{ref:"tooltipEl",class:"floating-tooltip px-3 py-2 typo-body-text-2",style:normalizeStyle({transform:`translate(${e.tooltipPositionX}, ${e.tooltipPositionY})`}),role:"tooltip",onMouseenter:o[4]||(o[4]=i=>e.isMobileViewport||e.props.isDisabled?null:e.showTooltip()),onMouseleave:o[5]||(o[5]=i=>e.isMobileViewport||e.props.isDisabled?null:e.hideTooltip())},[renderSlot(t.$slots,"tooltip-content",{},void 0,!0)],36),[[vShow,e.isTooltipVisible]]),withDirectives(createBaseVNode("span",_hoisted_3$1D,null,512),[[vShow,e.isTooltipVisible]]),createVNode(e.OverlayBtmSticky,{isVisible:e.isMobileOverlayVisible&&e.isMobileViewport,"onUpdate:isVisible":o[7]||(o[7]=i=>e.isMobileOverlayVisible=i)},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_7$1g,[createVNode(e.CTAButton,{ctaSizing:"fluid",onClick:o[6]||(o[6]=i=>{e.isMobileOverlayVisible=!1})},{default:withCtx(()=>[renderSlot(t.$slots,"mobile-cta-label",{},()=>[createTextVNode(toDisplayString(t.$t("Got it")),1)],!0)]),_:3})])]),default:withCtx(()=>[createBaseVNode("header",_hoisted_4$1t,[createBaseVNode("h5",_hoisted_5$1m,[renderSlot(t.$slots,"mobile-title",{},void 0,!0)])]),createBaseVNode("div",_hoisted_6$1i,[renderSlot(t.$slots,"tooltip-content",{},void 0,!0)])]),_:3},8,["isVisible"])],10,_hoisted_1$2$)}const Tooltip=_export_sfc(_sfc_main$2k,[["render",_sfc_render$2k],["__scopeId","data-v-24d55bb2"],["__file","Tooltip.vue"]]);function useOptionalProp(t="modelValue",o={}){const r=getCurrentInstance(),e={eventName:`update:${t}`,defaultValue:void 0,...o},n=r.emit,a=r.props;if(!(t in a))throw new Error(`useOptionalProp: Prop '${t}' does not exist`);const i=ref$1(e.defaultValue);return computed({get(){return a[t]??i.value},set(l){a[t]===void 0||a[t]===null?i.value=l:n(e.eventName,l)}})}function useFieldValidation(t,o={}){const r=getCurrentInstance(),{name:e,validation:n,modelValue:a,valueTransform:i=k=>k}=t,s={bails:!1,initialValue:a.value,...o},{meta:l,errors:d,value:c,setTouched:u,handleChange:f,validate:m,setErrors:b,resetField:y}=useField(e,typeof n=="function"?n:n.value,s);watch(a,k=>{i(k)!==c.value&&f(i(k))});const _=computed(()=>d.value.length>0),S=computed(()=>{var k,E;return((E=(k=n.value)==null?void 0:k.spec)==null?void 0:E.presence)==="required"}),C=k=>{const E=i(k.target.value);unref(e)?(f(E),u(!0)):r.emit("update:modelValue",E)},T=k=>{const E=i(k.target.checked);f(E),u(!0)};s.initialValue!==c.value&&f(s.initialValue);const x=computed({get(){return c.value,r.props.modelValue,unref(e)?c.value:r.props.modelValue},set(k){const E=i(k);unref(e)?(f(E),u(!0)):r.emit("update:modelValue",E)}});return{onInput:C,onCheckboxChange:T,isRequired:S,hasValidationError:_,meta:l,errors:d,setTouched:u,validate:m,setErrors:b,resetField:y,internalValue:x}}function useKeyInputRestriction(t){const{allowedKeys:o,disallowedKeys:r}=t,e=computed(()=>{if(o.value===null)return null;if(o.value instanceof RegExp)return o.value;if(typeof o.value=="string")return new RegExp(`[${o.value}
1132]`,"i");if(Array.isArray(o.value))return new RegExp(`[${o.value.join("")}]`,"i")}),n=computed(()=>{if(r.value===null)return null;if(r.value instanceof RegExp)return r.value;if(typeof r.value=="string")return new RegExp(`[${r.value}]`,"i");if(Array.isArray(r.value))return new RegExp(`[${r.value.join("")}]`,"i")}),a=l=>e.value!==null?e.value.test(l):n.value!==null?!n.value.test(l):!0;return{checkIsKeyValid:a,onKeypress:l=>{a(l.key)||l.preventDefault()},onPaste:l=>{const d=l.clipboardData.getData("text/plain");a(d)||l.preventDefault()}}}function useGenerateIdentifier(t,o={}){const r={appendRandomHash:!0,...o},e=getHashId();return{errorMsgId:computed(()=>`${unref(t)}-err-msg-container-${r.appendRandomHash?e:""}`),labelledbyId:computed(()=>`${unref(t)}-labelledby-${r.appendRandomHash?e:""}`),describedbyId:computed(()=>`${unref(t)}-describedby-${r.appendRandomHash?e:""}`),detailsId:computed(()=>`${unref(t)}-details-${r.appendRandomHash?e:""}`)}}function useFormAccordionStatus(t,{required:o,value:r,error:e}){let n=null;function a(){n.__vueParentComponent.exposed.setInputFieldStatus(t,s())}function i(){var c;const l=getCurrentInstance(),d=l.vnode.el instanceof Text?l.vnode.el.nextElementSibling:l.vnode.el;return(c=d==null?void 0:d.closest)==null?void 0:c.call(d,".FormAccordion")}function s(){return unref(o)?!(!unref(r)||unref(e)):(console.log("before",unref(o)),null)}return onMounted(()=>{n=i(),n&&(watch([r,e],()=>{a()}),a())}),{}}const __default__$2h={name:"TextField",inheritAttrs:!1},_sfc_main$2j=Object.assign(__default__$2h,{props:{name:{type:String,default:""},ariaLabel:{type:String,default:""},modelValue:{type:[String,Number],default:null},placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},prefix:{type:String,default:null},showBtnClear:{type:Boolean,default:!1},variant:{type:String,default:""},rootAttrs:{type:Object,default:()=>({})},isFocused:{type:Boolean,default:null},highlightField:{type:Boolean,default:!1},disallowedKeys:{type:[String,Array,RegExp],default:null},allowedKeys:{type:[String,Array,RegExp],default:null},validation:{type:[Object,Function],default:null,validator:t=>t===null||t instanceof yup.BaseSchema||t instanceof Function},isValidationOnBlur:{type:Boolean,default:!1},autoTransformToUppercase:{type:Boolean,default:!1},autoTransformToTitlecase:{type:Boolean,default:!1},showAsteriskSymbol:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1},enableGlassDesignVariant:{type:Boolean,default:!1},departYear:{type:String,default:""},returnYear:{type:String,default:""},isDatePicker:{type:Boolean,default:!1},showLockIconWhenDisabled:{type:Boolean,default:!1},suffixClass:{type:String,default:""}},emits:["update:modelValue","update:isFocused","update:on-blur","update-on-clear"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(null),i=useOptionalProp("isFocused",{defaultValue:!1}),s=()=>{var A;(A=a.value)==null||A.focus()},l=window.siteName,d=computed(()=>e.validation instanceof yup.BaseSchema?e.validation.nullable().transform(A=>A||null):e.validation),{onInput:c,meta:u,errors:f,setTouched:m,isRequired:b,hasValidationError:y,internalValue:_,validate:S,setErrors:C,resetField:T}=useFieldValidation({name:toRef(e,"name"),validation:d,modelValue:toRef(e,"modelValue"),...e.autoTransformToUppercase?{valueTransform:A=>{var M;return((M=A==null?void 0:A.toUpperCase)==null?void 0:M.call(A))??A}}:null,...e.autoTransformToTitlecase?{valueTransform:A=>(A==null?void 0:A.replace(/\w\S*/g,M=>M.charAt(0).toUpperCase()+M.substr(1).toLowerCase()))??A}:null}),{onKeypress:x,onPaste:k}=useKeyInputRestriction({allowedKeys:toRef(e,"allowedKeys"),disallowedKeys:toRef(e,"disallowedKeys")}),E=e.name??Math.random()*10,{errorMsgId:w,describedbyId:D,detailsId:N}=useGenerateIdentifier(E);useFormAccordionStatus(e.name,{required:e.validation instanceof Function?e.validation()!==!0:!1,value:computed(()=>_.value),error:computed(()=>y.value)});const F=()=>{e.isValidationOnBlur?(S(),m(!0),i.value=!1):(m(!0),i.value=!1),n("update:on-blur",_.value)};o({inputEl:a,focus:s,hasValidationError:y,errors:f,meta:u,validate:S,setTouched:m,setErrors:C,resetField:T});const V={props:e,emit:n,inputEl:a,internalIsFocused:i,focus:s,siteName:l,computedValidation:d,onInput:c,meta:u,errors:f,setTouched:m,isRequired:b,hasValidationError:y,internalValue:_,validate:S,setErrors:C,resetField:T,onKeypress:x,onPaste:k,componentIdentifier:E,errorMsgId:w,describedbyId:D,detailsId:N,handleBlur:F,get yup(){return yup},Tooltip,get useOptionalProp(){return useOptionalProp},get useFieldValidation(){return useFieldValidation},get useKeyInputRestriction(){return useKeyInputRestriction},get useGenerateIdentifier(){return useGenerateIdentifier},get useFormAccordionStatus(){return useFormAccordionStatus}};return Object.defineProperty(V,"__isScriptSetup",{enumerable:!1,value:!0}),V}}),_hoisted_1$2_=["data-use-theme","data-variant"],_hoisted_2$23={class:"inner-grand-container flex"},_hoisted_3$1C={class:"inner-container flex flex-grow h-full"},_hoisted_4$1s={class:"inner-wrapper flex-grow relative flex px-5 pt-5.5 pb-2.5"},_hoisted_5$1l={class:"prefix-icon-wrapper empty:hidden"},_hoisted_6$1h={key:0,class:"glass-label text-neutral-grey-dark font-bold text-xs"},_hoisted_7$1f=["value","name","placeholder","disabled","readonly","tabindex","aria-label","aria-placeholder","aria-invalid","aria-errormessage","aria-describedby","aria-details","aria-hidden","required"],_hoisted_8$1a={class:"flex"},_hoisted_9$14={key:0,class:"year-text"},_hoisted_10$W={key:1,class:"sr-only"},_hoisted_11$S={key:2,class:"text-label"},_hoisted_12$Q={key:0,class:"required-asterisk"},_hoisted_13$M={key:3,class:"text-placeholder","aria-hidden":"true"},_hoisted_14$K=["aria-label"],_hoisted_15$I={key:1,class:"flex items-center pr-3","aria-hidden":"true"},_hoisted_16$E={key:0,class:"tooltip-content-wrapper flex items-center ml-2"},_hoisted_17$z=["id"],_hoisted_18$w=["id"],_hoisted_19$t=["id"];function _sfc_render$2j(t,o,r,e,n,a){var c,u;const i=__unplugin_components_2$6,s=__unplugin_components_0$m,l=__unplugin_components_0$n,d=resolveDirective("html-sanitize");return openBlock(),createElementBlock("div",mergeProps({class:["TextField flex flex-col",{"is-disabled":e.props.disabled,"is-readonly":e.props.readonly,"is-focused":e.internalIsFocused,"has-validation-error":e.hasValidationError&&e.meta.touched,"highlight-field":e.props.highlightField,"glass-design":e.props.enableGlassDesign,"glass-design-variant":e.props.enableGlassDesignVariant}],"data-use-theme":e.siteName,"data-variant":e.props.variant},e.props.rootAttrs),[createBaseVNode("div",_hoisted_2$23,[createBaseVNode("div",_hoisted_3$1C,[createBaseVNode("label",_hoisted_4$1s,[e.props.prefix?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(["value-prefix leading-none relative mr-1 rtl:mr-0 rtl:ml-1",{"is-visible":e.internalIsFocused||e.internalValue}])},toDisplayString(e.props.prefix),3)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$1l,[render
1132Slot(t.$slots,"prefix-icon",{},void 0,!0)]),createBaseVNode("div",{class:normalizeClass(["flex-grow flex",{"flex-col":e.props.enableGlassDesign}])},[e.props.enableGlassDesign?(openBlock(),createElementBlock("span",_hoisted_6$1h,toDisplayString(e.props.ariaLabel),1)):createCommentVNode("",!0),createBaseVNode("input",mergeProps({ref:"inputEl",value:e.internalValue,name:e.props.name||null,class:["input w-full",{"is-focus":e.internalIsFocused}],type:"text",placeholder:e.props.enableGlassDesign||e.props.enableGlassDesignVariant?e.props.placeholder:"",disabled:e.props.disabled,readonly:e.props.readonly,tabindex:(c=e.props.variant)!=null&&c.includes("input-hidden")?-1:null,"aria-label":e.props.ariaLabel,"aria-placeholder":e.props.placeholder,"aria-invalid":e.hasValidationError?"true":null,"aria-errormessage":e.errorMsgId,"aria-describedby":t.$slots["short-description"]?e.describedbyId:null,"aria-details":t.$slots["tooltip-content"]?e.detailsId:null,"aria-hidden":(u=e.props.variant)!=null&&u.includes("input-hidden")?"true":null,required:e.isRequired},t.$attrs,{onKeypress:o[0]||(o[0]=(...f)=>e.onKeypress&&e.onKeypress(...f)),onPaste:o[1]||(o[1]=(...f)=>e.onPaste&&e.onPaste(...f)),onInput:o[2]||(o[2]=(...f)=>e.onInput&&e.onInput(...f)),onFocus:o[3]||(o[3]=f=>e.internalIsFocused=!0),onBlur:o[4]||(o[4]=f=>{e.handleBlur()})}),null,16,_hoisted_7$1f),createBaseVNode("div",_hoisted_8$1a,[e.props.enableGlassDesign&&e.props.isDatePicker?(openBlock(),createElementBlock("span",_hoisted_9$14,toDisplayString(e.props.departYear),1)):createCommentVNode("",!0),e.props.enableGlassDesign&&e.props.isDatePicker?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(["year-text",{"ml-5":t.isMobileViewport,"ml-10":!t.isMobileViewport}])},toDisplayString(e.props.returnYear),3)):createCommentVNode("",!0)]),e.hasValidationError?(openBlock(),createElementBlock("div",_hoisted_10$W,toDisplayString(t.$t("This field is invalid")),1)):createCommentVNode("",!0),e.props.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$S,[renderSlot(t.$slots,"default",{},()=>[createTextVNode(toDisplayString(e.props.ariaLabel),1)],!0),e.props.showAsteriskSymbol?(openBlock(),createElementBlock("span",_hoisted_12$Q,"*")):createCommentVNode("",!0)])),!e.props.enableGlassDesign&&!e.props.enableGlassDesignVariant?(openBlock(),createElementBlock("div",_hoisted_13$M,[renderSlot(t.$slots,"placeholder",{},()=>[createTextVNode(toDisplayString(e.props.placeholder),1)],!0)])):createCommentVNode("",!0)],2),withDirectives(createBaseVNode("button",{type:"button",class:"btn-clear rounded-full py-2 m-auto","aria-label":t.$t("Clear field"),onClick:o[5]||(o[5]=f=>{e.internalValue="",e.inputEl.focus(),t.$emit("update-on-clear")})},[createVNode(i,{class:"","aria-hidden":"true"})],8,_hoisted_14$K),[[vShow,e.internalValue&&e.props.showBtnClear]])]),t.$slots.suffix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["suffix-wrapper empty:hidden",r.suffixClass])},[renderSlot(t.$slots,"suffix",{},void 0,!0)],2)):r.disabled&&r.showLockIconWhenDisabled?(openBlock(),createElementBlock("div",_hoisted_15$I,[createVNode(s,{class:"fill-neutral-grey-dark"})])):createCommentVNode("",!0)]),t.$slots["tooltip-content"]?(openBlock(),createElementBlock("div",_hoisted_16$E,[createVNode(e.Tooltip,null,{default:withCtx(()=>[createVNode(l,{class:"fill-primary-blue-base"})]),"mobile-title":withCtx(()=>[renderSlot(t.$slots,"default",{},()=>[createTextVNode(toDisplayString(e.props.ariaLabel),1)],!0)]),"tooltip-content":withCtx(()=>[createBaseVNode("div",{id:e.detailsId},[renderSlot(t.$slots,"tooltip-content",{},void 0,!0)],8,_hoisted_17$z)]),_:3})])):createCommentVNode("",!0)]),createBaseVNode("div",{id:e.describedbyId,class:"short-description-wrapper w-full text-sm empty:hidden"},[renderSlot(t.$slots,"short-description",{},void 0,!0)],8,_hoisted_18$w),createBaseVNode("div",{id:e.errorMsgId,class:"error-msg-container leading-tight text-semantic-red-base text-sm w-full mt-1 empty:hidden"},[e.hasValidationError&&e.meta.touched?renderSlot(t.$slots,"error-messages",normalizeProps(mergeProps({key:0},{meta:e.meta,errors:e.errors,internalValue:e.internalValue})),()=>[withDirectives(createBaseVNode("span",null,null,512),[[d,e.errors[0]]])],!0):createCommentVNode("",!0)],8,_hoisted_19$t)],16,_hoisted_1$2_)}const TextField=_export_sfc(_sfc_main$2j,[["render",_sfc_render$2j],["__scopeId","data-v-6f89d9ee"],["__file","TextField.vue"]]),__default__$2g={name:"RecaptchaGoogle"},_sfc_main$2i=Object.assign(__default__$2g,{props:{siteKey:{type:String,required:!0}},emits:[],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(!1);onMounted(()=>{const d=document.createElement("script");d.setAttribute("src",`https://www.recaptcha.net/recaptcha/api.js?render=${e.siteKey}`),document.head.appendChild(d),s()});const i=async()=>(a.value||await waitFor(()=>a.value===!0).start(),await grecaptcha.execute(e.siteKey,{action:"submit"}));function s(){typeof window.grecaptcha>"u"?setTimeout(s,100):window.grecaptcha.ready(function(){a.value=!0})}o({isReady:a,getRecaptchaToken:i});const l={props:e,emit:n,isReady:a,getRecaptchaToken:i,checkRecaptchaLoaded:s,get waitFor(){return waitFor}};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),_hoisted_1$2Z={class:"RecaptchaGoogle"};function _sfc_render$2i(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$2Z)}const RecaptchaGoogle=_export_sfc(_sfc_main$2i,[["render",_sfc_render$2i],["__file","RecaptchaGoogle.vue"]]),__default__$2f={
1132name:"RecaptchaMT"},_sfc_main$2h=Object.assign(__default__$2f,{props:{siteKey:{type:String,required:!0}},emits:[],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(!1),i=getRandomInt(0,9999),s={MH:"MTPublic-Boqth9xEn",firefly:"MTPublic-77FVOz99s"};onMounted(()=>{c(),window.mtcaptchaConfig.renderQueue.push(`mtcaptcha-${i}`)});function l(){console.log("mtcaptcha is Loaded"),a.value=!0}const d=()=>{var f;if(a.value)return((f=document.querySelector('[name="mtcaptcha-verifiedtoken"]'))==null?void 0:f.value)??null};function c(){if(!window.mtcaptchaConfig){window.mtcaptchaConfig={sitekey:s[window.siteName],widgetSize:"mini",theme:"overcast",render:"explicit",renderQueue:[],"jsloaded-callback":l};const f=document.createElement("script");f.async=!0,f.src="https://service.mtcaptcha.com/mtcv1/client/mtcaptcha.min.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(f);const m=document.createElement("script");m.async=!0,m.src="https://service2.mtcaptcha.com/mtcv1/client/mtcaptcha2.min.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(m)}}o({isReady:a,getRecaptchaToken:d});const u={props:e,emit:n,isReady:a,id:i,SITE_KEY:s,mtcaptchaLoaded:l,getRecaptchaToken:d,loadLib:c,get getRandomInt(){return getRandomInt}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$2Y={class:"RecaptchaMT"},_hoisted_2$22=["id"];function _sfc_render$2h(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$2Y,[createBaseVNode("div",{id:`mtcaptcha-${e.id}`},null,8,_hoisted_2$22)])}const RecaptchaMT=_export_sfc(_sfc_main$2h,[["render",_sfc_render$2h],["__scopeId","data-v-4080f461"],["__file","RecaptchaMT.vue"]]),MHLayoutContainer=defineComponent({name:"MHLayoutContainer",editConfig:{resourceType:"mh/components/mh-layout-container",isEmpty(t){return t.cqItemsOrder&&t.cqItemsOrder.length>0}},components:{AllowedComponentsPlaceholderList,ContainerBatikPattern},inheritAttrs:!1,props:{columnClassNames:{type:Object,default:()=>({})},gridClassNames:{type:String,default:"aem-Grid aem-Grid--12 aem-Grid--default--12"},_AllowedComponentsPlaceholderListEmptyLabel:{type:String,default:"No allowed components"},allowedComponents:{type:Object,default:()=>({})},title:{type:String,default:""},cqForceReload:{type:Boolean,default:!1},cqPath:{type:String,default:""},cqItems:{type:Object,default:()=>({})},cqItemsOrder:{type:Array,default:()=>[]},columnCount:{type:Number,default:12},cqType:{type:String,default:""},appliedCssClassNames:{type:String,default:""},containerClass:{type:String,default:""},pagePath:{type:String,default:""},itemPath:{type:String,default:""},hasEditableCapability:{type:Boolean,default:!0},layoutType:{type:String,default:""},backgroundColor:{type:String,default:void 0},svgURL:{type:String,default:""},bottomRoundedSpaceColor:{type:String,default:void 0},topSpaceColor:{type:String,default:void 0},bottomSpaceColor:{type:String,default:void 0},batikTopSpaceColor:{type:String,default:void 0},batikBottomSpaceColor:{type:String,default:void 0},magTopSpaceColor:{type:String,default:void 0},magBottomSpaceColor:{type:String,default:void 0},roundedCornerTopSpaceColor:{type:String,default:void 0},roundedCornerBottomSpaceColor:{type:String,default:void 0},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},desktopPaddingLeft:{type:Number,default:void 0},desktopPaddingRight:{type:Number,default:void 0},mobilePaddingLeft:{type:Number,default:void 0},mobilePaddingRight:{type:Number,default:void 0},topSectionCurve:{type:String,default:void 0},bottomSectionCurve:{type:String,default:void 0},topSectionCurveBatik:{type:String,default:void 0},bottomSectionCurveBatik:{type:String,default:void 0},mhhTopSectionCurve:{type:String,default:void 0},mhhBottomSectionCurve:{type:String,default:void 0},mhhTopSpaceColor:{type:String,default:void 0},mhhBottomSpaceColor:{type:String,default:void 0},amalTopSectionCurve:{type:String,default:void 0},amalBottomSectionCurve:{type:String,default:void 0},amalTopSpaceColor:{type:String,default:void 0},amalBottomSpaceColor:{type:String,default:void 0},fireflyTopSpaceColor:{type:String,default:void 0},fireflyBottomSpaceColor:{type:String,default:void 0},userGroup:{type:String,default:""},isEnable:{type:Boolean,default:!1},recaptchaType:{type:String,default:"MT Recaptcha"},loginBtnText:{type:String,default:"Login"}},setup(t,o){const e=getCurrentInstance().type.editConfig,{isEditorMode:n}=useGlobalAEMState$1(),{aemProperties:a,componentId:i,computedCqPath:s}=modelProvider({props:t,context:o}),{wrapperHtmlAttributes:l,wrapperHtmlClass:d,emptyPlaceholderDiv:c}=editableProvider({aemProperties:a,computedCqPath:s,props:t,context:o,editConfig:e}),u=ref$1(!1),f=ref$1(!1),m=ref$1(""),b=ref$1(""),y=ref$1(""),_=ref$1(null),S=ref$1(null),C=(O,R,I)=>{const{cqPath:j,columnClassNames:H}=a.value,U=j?`${j}/${I}`:I,B=`${(R==null?void 0:R.className)??""} ${(H==null?void 0:H[I])??""}`;return createVNode(O,mergeProps(R,{cqPath:U,containerClass:B,key:I}),null)},T=computed(()=>{const{cqItems:O,cqItemsOrder:R}=a.value;return!O||!R?[]:R.map(I=>{const j=Utils.modelToProps(O[I]);if(!j)return null;const H=getMappedComponent(j.cqType);return H?C(H,j,I):null})}),x=computed(()=>(a.value,{class:`${Constants.NEW_SECTION_CLASS_NAMES} ${Constants._RESPONSIVE_GRID_PLACEHOLDER_CLASS_NAMES}`,"data-cq-data-path":`${s.value}/*`})),k=computed(()=>aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()?createVNode("div",x.value,
1132null):null),E=computed(()=>aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()?"":`${t.isHideInDesktop?">md:hidden":""} ${t.isHideInMobile?"md:hidden":""}`),w=computed(()=>`${d.value} ${a.value.appliedCssClassNames}`),D=t.recaptchaType==="google-recaptcha"?"6LdhpyklAAAAAOkdkdtcREPPMjxdRuZJcldEK_y9":"MTPublic-77FVOz99s";async function N(){var R;let O=null;return(R=S.value)!=null&&R.isReady&&(O=S.value.getRecaptchaToken()),O}const F=async()=>{if(y.value="",!await N()){y.value="Please fill the recaptha";return}f.value=!0;const R=new FormData;R.append("userName",m.value),R.append("password",b.value),R.append("userGroup",t.userGroup),axios$1.post("/bin/mh/revamp/mhsports/jdtportalauthentication",R).then(I=>{f.value=!1,I.data.code==="JDTPS"&&(u.value=!0)}).catch(I=>{y.value=I.response.data.message,f.value=!1})};onMounted(()=>{setTimeout(()=>{aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&refreshAEMEditableOverlays()},2e3),getCookie("jdt_loggedinuser")&&(u.value=!0)});const V=computed(()=>{var O;return{class:`inner-container ${E.value} ${(Constants==null?void 0:Constants._CONTAINER_CLASS_NAMES)||""} ${((O=a.value)==null?void 0:O.gridClassNames)||""}`,...aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()?{"data-cq-data-path":s.value}:null}}),A=computed(()=>{const O=`${t.desktopPaddingLeft!==void 0||t.desktopPaddingLeft!==0?`padding-left: ${t.desktopPaddingLeft}px;`:null}`,R=`${t.desktopPaddingRight!==void 0||t.desktopPaddingRight!==0?`padding-right: ${t.desktopPaddingRight}px;`:null}`,I=`${t.mobilePaddingLeft!==void 0||t.mobilePaddingLeft!==0?`padding-left: ${t.mobilePaddingLeft}px;`:null}`,j=`${t.mobilePaddingRight!==void 0||t.mobilePaddingRight!==0?`padding-right: ${t.mobilePaddingRight}px;`:null}`;return isMobileViewport.value?`${I} ${j}`:`${O} ${R}`});return{aemProperties:a,componentId:i,computedCqPath:s,wrapperHtmlAttributes:l,wrapperHtmlClass:d,mergedWrapperClass:w,emptyPlaceholderDiv:c,childComponents:T,placeholderProps:x,placeholderComponent:k,getMainContent:()=>{if(!t.layoutType||t.layoutType==="none")return createVNode("div",{style:`background-color: ${t.backgroundColor}; ${A.value}`},[T.value,k.value]);if(t.layoutType==="batik-1")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.topSpaceColor,btmEmptySpaceBgColor:t.bottomSpaceColor,useBatikPattern:!1,useCornerBand:!0,containerBgColor:t.backgroundColor||"#1F4074",topCurveStyle:"movingForward"},{default:()=>[T.value,k.value]});if(t.layoutType==="batik-2")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.batikTopSpaceColor,btmEmptySpaceBgColor:t.batikBottomSpaceColor,useBrighterBatik:!0,containerBgColor:t.backgroundColor||"#1F4074",contentBgColor:t.backgroundColor||"#1F4074",topCurveStyle:t.topSectionCurveBatik||"movingForward",bottomCurveStyle:t.bottomSectionCurveBatik||"bothRoundedDown"},{default:()=>[T.value,k.value]});if(t.layoutType==="batik-3")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.batikTopSpaceColor,btmEmptySpaceBgColor:t.batikBottomSpaceColor,containerBgColor:t.backgroundColor||"#00818d",topCurveStyle:t.topSectionCurveBatik||"movingForward",bottomCurveStyle:t.bottomSectionCurveBatik||"bothRoundedDown"},{default:()=>[T.value,k.value]});if(t.layoutType==="batik-4")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.batikTopSpaceColor,btmEmptySpaceBgColor:t.batikBottomSpaceColor,containerBgColor:t.backgroundColor||"#1F4074",contentBgColor:t.backgroundColor||"#1F4074",topCurveStyle:t.topSectionCurveBatik||"movingForward",bottomCurveStyle:t.bottomSectionCurveBatik||"bothRoundedDown",useFloralPattern:!0},{default:()=>[T.value,k.value]});if(t.layoutType==="batik-5")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.batikTopSpaceColor,btmEmptySpaceBgColor:t.batikBottomSpaceColor,containerBgColor:t.backgroundColor||"#00818d",contentBgColor:t.backgroundColor||"#00818d",topCurveStyle:t.topSectionCurveBatik||"movingForward",bottomCurveStyle:t.bottomSectionCurveBatik||"bothRoundedDown",useFloralPattern:!0},{default:()=>[T.value,k.value]});if(t.layoutType==="mag-songket-blue")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.magTopSpaceColor,btmEmptySp
1132aceBgColor:t.magBottomSpaceColor,useBatikBlueMag:!0,containerBgColor:t.backgroundColor||"#00425F",contentBgColor:t.backgroundColor||"#00425F",topCurveStyle:t.topSectionCurve||"bothRoundedUp",bottomCurveStyle:t.bottomSectionCurve||"bothRoundedDown"},{default:()=>[T.value,k.value]});if(t.layoutType==="mag-songket-blue-background")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.magTopSpaceColor,btmEmptySpaceBgColor:t.magBottomSpaceColor,useBrighterBatikBlueMag:!0,containerBgColor:t.backgroundColor||"#00425F",topCurveStyle:t.topSectionCurve||"bothRoundedUp",bottomCurveStyle:t.bottomSectionCurve||"bothRoundedDown"},{default:()=>[T.value,k.value]});if(t.layoutType==="mag-songket-teal")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.magTopSpaceColor,btmEmptySpaceBgColor:t.magBottomSpaceColor,useBatikTealMag:!0,containerBgColor:t.backgroundColor||"#00818D",contentBgColor:t.backgroundColor||"#00818D",topCurveStyle:t.topSectionCurve||"bothRoundedUp",bottomCurveStyle:t.bottomSectionCurve||"bothRoundedDown"},{default:()=>[T.value,k.value]});if(t.layoutType==="mag-songket-teal-background")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.magTopSpaceColor,btmEmptySpaceBgColor:t.magBottomSpaceColor,useBrighterBatikTealMag:!0,containerBgColor:t.backgroundColor||"#00818D",topCurveStyle:t.topSectionCurve||"bothRoundedUp",bottomCurveStyle:t.bottomSectionCurve||"bothRoundedDown"},{default:()=>[T.value,k.value]});if(t.layoutType==="mhh-grey-hibiscus")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.mhhTopSpaceColor,btmEmptySpaceBgColor:t.mhhBottomSpaceColor,useGreyHibiscusPattern:!0,containerBgColor:"#F0F3F5",contentBgColor:t.backgroundColor||"transparent",topCurveStyle:t.mhhTopSectionCurve||"bothRoundedUp",bottomCurveStyle:t.mhhBottomSectionCurve||"bothRoundedDown",useBatikPattern:!1},{default:()=>[T.value,k.value]});if(t.layoutType==="mhh-orange-hibiscus")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.mhhTopSpaceColor,btmEmptySpaceBgColor:t.mhhBottomSpaceColor,useOrangeHibiscusPattern:!0,containerBgColor:"#FFF9F0",contentBgColor:t.backgroundColor||"transparent",topCurveStyle:t.mhhTopSectionCurve||"bothRoundedUp",bottomCurveStyle:t.mhhBottomSectionCurve||"bothRoundedDown",useBatikPattern:!1},{default:()=>[T.value,k.value]});if(t.layoutType==="amal-blue")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.amalTopSpaceColor,btmEmptySpaceBgColor:t.amalBottomSpaceColor,useBlueIslamicPattern:!0,containerBgColor:"#0F5CA2",contentBgColor:t.backgroundColor||"transparent",topCurveStyle:t.amalTopSectionCurve||"bothRoundedUp",bottomCurveStyle:t.amalBottomSectionCurve||"bothRoundedDown",useBatikPattern:!1},{default:()=>[T.value,k.value]});if(t.layoutType==="amal-teal-ultralight")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.amalTopSpaceColor,btmEmptySpaceBgColor:t.amalBottomSpaceColor,useTealIslamicPattern:!0,containerBgColor:"#EAF8F8",contentBgColor:t.backgroundColor||"transparent",topCurveStyle:t.amalTopSectionCurve||"bothRoundedUp",bottomCurveStyle:t.amalBottomSectionCurve||"bothRoundedDown",useBatikPattern:!1},{default:()=>[T.value,k.value]});if(t.layoutType==="amal-white")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.amalTopSpaceColor,btmEmptySpaceBgColor:t.amalBottomSpaceColor,useAmalWhiteIslamicPattern:!0,containerBgColor:"#FFFFFF",contentBgColor:t.backgroundColor||"transparent",topCurveStyle:t.amalTopSectionCurve||"bothRoundedUp",bottomCurveStyle:t.amalBottomSectionCurve||"bothRoundedDown",useBatikPattern:!1},{default:()=>[T.value,k.value]});if(t.layoutType==="amal-blue-v2")return createVNode(ContainerBatikPattern,{topEmptySpaceBgColor:t.amalTopSpaceColor,btmEmptySpaceBgColor:t.amalBottomSpaceColor,useBlueIslamicPatternV2:!0,containerBgColor:"#0F5CA2",contentBgColor:t.backgroundColor||"transparent",topCurveStyle:t.amalTopSectionCurve||"bothRoundedUp",bottomCurveStyle:t.amalBottomSectionCurve||"bothRoundedDown",useBatikPattern:!1},{default:()=>[T.value,k.value]});if(t.layoutType==="semi-transparent-with-gold-outline")return createVNode("div",{class:`semi-transparent-with-gold-outline relative h-full ${n.value?"":"equal-height"}`},[createVNode("div",{class:"rounded-[20px] overflow-hidden relative z-10 border-1 h-full",style:`background-color: ${t.backgroundColor}; border-color: #CEAF87`},[createVNode("div",{class:"rounded-[20px] h-full",style:"backdrop-filter: blur(42px);"},[createVNode("div",{class:"min-h-full",style:"background: linear-gradient(153deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%); padding: 1px;"},[createVNode("div",{style:`${A.value};`},[T.value,k.value])])])]),createVNode("div",{class:"backdrop-container md:hidden absolute w-full h-full top-0 left-0"},[createVNode("div",{class:"backdrop backdrop-top h-[50%]",style:`background-color: ${t.topSpaceColor}`}
1132,null),createVNode("div",{class:"backdrop backdrop-btm h-[50%]",style:`background-color: ${t.bottomSpaceColor}`},null)])]);if(t.layoutType==="rounded-corner-rectangle")return createVNode("div",{class:"relative"},[createVNode("div",{class:"rounded-3xl overflow-hidden relative z-10",style:`background-color: ${t.backgroundColor}; ${A.value}`},[T.value,k.value]),createVNode("div",{class:"backdrop-container md:hidden absolute w-full h-full top-0 left-0"},[createVNode("div",{class:"backdrop backdrop-top h-[50%]",style:`background-color: ${t.roundedCornerTopSpaceColor}`},null),createVNode("div",{class:"backdrop backdrop-btm h-[50%]",style:`background-color: ${t.roundedCornerBottomSpaceColor}`},null)])]);if(t.layoutType==="bottom-rounded-corner-with-shadow")return createVNode("div",{style:`background-color: ${t.bottomRoundedSpaceColor||"transparent"};`},[createVNode("div",{class:"rounded-b-9xl md:rounded-b-5xl shadow-type-a",style:`background-color: ${t.backgroundColor};  ${A.value}`},[T.value,k.value])]);if(t.layoutType==="grey-rounded-border")return createVNode("div",{class:"relative"},[createVNode("div",{class:"rounded-3xl overflow-hidden relative z-10 border-1",style:`background-color: ${t.backgroundColor}; ${A.value}`},[T.value,k.value]),createVNode("div",{class:"backdrop-container md:hidden absolute w-full h-full top-0 left-0"},[createVNode("div",{class:"backdrop backdrop-top h-[50%]",style:`background-color: ${t.topSpaceColor}`},null),createVNode("div",{class:"backdrop backdrop-btm h-[50%]",style:`background-color: ${t.bottomSpaceColor}`},null)])]);if(t.layoutType==="firefly-style1")return createVNode("div",{class:"relative"},[createVNode("div",{class:"rounded-10xl md:rounded-5xl rounded-tl-15xl md:rounded-tl-[60px] !rounded-br-none overflow-hidden relative z-10",style:`background-color: ${t.backgroundColor};`},[T.value,k.value]),createVNode("div",{class:"backdrop-container md:hidden absolute w-full h-full top-0 left-0"},[createVNode("div",{class:"backdrop backdrop-top h-[50%]",style:`background-color: ${t.fireflyTopSpaceColor}`},null),createVNode("div",{class:"backdrop backdrop-btm h-[50%]",style:`background-color: ${t.fireflyBottomSpaceColor}`},null)])]);if(t.layoutType==="firefly-style2")return createVNode("div",{class:"relative"},[createVNode("div",{class:"rounded-tr-15xl rounded-br-15xl md:rounded-tr-[60px] md:rounded-br-[60px] overflow-hidden relative z-10",style:`background-color: ${t.backgroundColor};`},[T.value,k.value]),createVNode("div",{class:"backdrop-container md:hidden absolute w-full h-full top-0 left-0"},[createVNode("div",{class:"backdrop backdrop-top h-[50%]",style:`background-color: ${t.fireflyTopSpaceColor}`},null),createVNode("div",{class:"backdrop backdrop-btm h-[50%]",style:`background-color: ${t.fireflyBottomSpaceColor}`},null)])]);if(t.layoutType==="user-defined-style")return createVNode(ContainerBatikPattern,{useUserDefinedPattern:!0,backgroundImageUrl:t.svgURL},{default:()=>[T.value,k.value]})},props:t,innerContainerWrapperAttrs:V,hideInDesktopOrMobileClassname:E,isLoggedIn:u,isLoading:f,userName:m,password:b,loginErrorMsg:y,siteKey:D,recaptchaGoogleEl:_,recaptchaMTEl:S,submitForm:F,isEditorMode:n}},render(){var r;const{_AllowedComponentsPlaceholderListEmptyLabel:t}=this;return aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&((r=this.allowedComponents)==null?void 0:r.applicable)&&t?createVNode("div",mergeProps(this.wrapperHtmlAttributes,{class:this.mergedWrapperClass,key:this.componentId,"data-component":"MHLayoutContainer","data-use-theme":siteName}),[createVNode(AllowedComponentsPlaceholderList,{title:this.title,emptyLabel:t,components:this.allowedComponents.components,placeholderClass:this.placeholderProps.class,cqPath:this.cqPath},null)]):this.props.isEnable&&!this.isLoggedIn&&!this.isEditorMode?createVNode("div",{class:"form-wrapper-container w-full flex justify-center flex-col items-center text-center m-auto >lg:w-1/2 p-4"},[createVNode(FormWrapper,{ref:"formRef",class:"form-wrapper w-full",focusFirstErrorElOnInvalidSubmit:!0,onSubmitValid:this.submitForm},{default:()=>[createVNode(TextField,{modelValue:this.userName,"onUpdate:modelValue":e=>this.userName=e,class:"form-element mb-2",validation:yup.string().required(),rootAttrs:{class:"mb-5"},ariaLabel:"user name",name:"username",autocomplete:"off"}
1132,null),createVNode(TextField,{modelValue:this.password,"onUpdate:modelValue":e=>this.password=e,class:"form-element",validation:yup.string().required(),rootAttrs:{class:"mb-5"},ariaLabel:"password",name:"password",autocomplete:"off"},null),this.props.recaptchaType==="google-recaptcha"?createVNode(RecaptchaGoogle,{ref:"recaptchaGoogleEl",siteKey:this.siteKey},null):createVNode(RecaptchaMT,{ref:"recaptchaMTEl",siteKey:this.siteKey},null),this.isLoading?createVNode(AppSpinner,{class:"mx-auto my-auto"},null):createVNode(CTAButton,{type:"submit"},{default:()=>[this.props.loginBtnText]}),createVNode("div",{class:"errorMessage-container text-semantic-red-base mb-3"},[withDirectives(createVNode("p",{class:"error-msg-wrap leading-tight text-md w-full mt-1 empty:hidden"},null),[[resolveDirective("html-sanitize"),this.loginErrorMsg]])])]})]):createVNode("div",mergeProps(this.wrapperHtmlAttributes,this.$attrs,{class:this.mergedWrapperClass,key:this.componentId,"data-component":"MHLayoutContainer","data-use-theme":siteName}),[createVNode("div",this.innerContainerWrapperAttrs,[aemSpaPageModelManagerExports.AuthoringUtils.isInEditor()&&(this.props.isHideInDesktop||this.props.isHideInMobile)?createVNode("div",{class:"py-2 px-4 bg-secondary-purple-light text-white"},[createVNode("h5",null,[createTextVNode("This Layout Container is set to be hidden in"),createVNode("span",{class:"ml-1.5"},[this.props.isHideInDesktop&&this.props.isHideInMobile?"Desktop and Mobile":this.props.isHideInMobile?"Mobile":"Desktop"])])]):null,this.getMainContent()]),createVNode("div",{class:Constants._PLACEHOLDER_CLASS_NAMES},null)])}}),useExperienceFragmentContent=createGlobalState(()=>({})),__default__$2e={name:"ExperienceFragment",editConfig:{emptyLabel:"Experience Fragment",resourceType:"mh/components/experience-fragment",isEmpty(t){return!0}},expose:[],inheritAttrs:!1},_sfc_main$2g=Object.assign(__default__$2e,{props:{xfPath:{type:String,default:""},showSpinner:{type:Boolean,default:!1}},setup(t,{expose:o}){o();const r=t,e=ref$1(null),n=ref$1(""),{pageProperties:a,isEditorMode:i}=useGlobalAEMState$1(),s=computed(()=>{const u=a.value.rootCountry??"my",f=a.value.rootLanguage??"en";return r.xfPath.includes("$country")||r.xfPath.includes("$lang")?r.xfPath.replaceAll("$country",u).replaceAll("$lang",f):r.xfPath});watch(()=>r.xfPath,()=>{if(!r.xfPath)return;n.value="";const u=useExperienceFragmentContent();u[s.value]||(u[s.value]=axios$1.get(`${s.value}/jcr:content/root/responsivegrid.model.json`)),u[s.value].then(({data:f})=>{e.value=f}).catch(f=>{console.log("Unable to fetch ExperienceFragment content. xfPathComputed = ",s.value),n.value=f})},{immediate:!0});const l=computed(()=>e.value?Utils.modelToProps(e.value):null),d=computed(()=>r.xfPath&&e.value===null),c={props:r,fragmentContent:e,errorMsg:n,pageProperties:a,isEditorMode:i,xfPathComputed:s,aemContainerProps:l,isLoading:d,get AEMContainer(){return AEMContainer},get Utils(){return Utils},AppSpinner,get axios(){return axios$1},get useExperienceFragmentContent(){return useExperienceFragmentContent},get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),_hoisted_1$2X={key:0},_hoisted_2$21={key:0,class:"text-red-500"},_hoisted_3$1B={key:1,class:"text-red-500"};function _sfc_render$2g(t,o,r,e,n,a){return openBlock(),createElementBlock(Fragment,null,[e.isEditorMode?(openBlock(),createElementBlock("div",_hoisted_1$2X,[e.props.xfPath?e.errorMsg?(openBlock(),createElementBlock("p",_hoisted_3$1B,'❗ Unable to retrieve Experience Fragment from "'+toDisplayString(e.xfPathComputed)+'"',1)):createCommentVNode("",!0):(openBlock(),createElementBlock("p",_hoisted_2$21,"❗ Please specify the Experience Fragment path"))])):e.props.showSpinner&&e.isLoading?(openBlock(),createBlock(e.AppSpinner,{key:1,class:"mx-auto my-2"})):createCommentVNode("",!0),e.isLoading?createCommentVNode("",!0):(openBlock(),createBlock(e.AEMContainer,mergeProps({key:2,class:"experience-fragment"},{...t.$attrs,...e.aemContainerProps}),null,16))],64)}const ExperienceFragment=_export_sfc(_sfc_main$2g,[["render",_sfc_render$2g],["__scopeId","data-v-9c21f925"],["__file","ExperienceFragment.vue"]]),ExperienceFragment$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExperienceFragment},Symbol.toStringTag,{value:"Module"})),__default__$2d={name:"PageProperties",inheritAttrs:!1},_sfc_main$2f=Object.assign(__default__$2d,{props:{pageProperties:{type:[String,Object],default:null}},emits:[],setup(t,{expose:o,emit:r}){o();const a={props:t,emit:r};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),_hoisted_1$2W={class:"PageProperties"};function _sfc_render$2f(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$2W)}const PageProperties=_export_sfc(_sfc_main$2f,[["render",_sfc_render$2f],["__scopeId","data-v-5ebdf37b"],["__file","PageProperties.vue"]]),PageProperties$1=Object.freeze(Object.defineProperty({__proto__:null,default:PageProperties},Symbol.toStringTag,{value:"Module"})),_hoisted_1$2V={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function render$L(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2V,o[0]||(o[0]=[createBaseVNode("path",{d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"},null,-1)]))}const __unplugin_components_2$5=markRaw({name:"fas-xmark",render:render$L}),__default__$2c={name:"MobileDownloadAppNotification",inheritAttrs:!1,editConfig:{emptyLabel:"Mobile Download App Notification",resourceType:"mh/components/mobile-download-app-notification",isEmpty(t){return!0}}},_sfc_main$2e=Object.assign(__default__$2c,{props:{downloadLogoPath:{type:String,default:""},downloadTitle:{type:String,default:""},downloadText:{type:String,default:""},ctaText:{type:String,default:""},appleCtaURL:{type:String,default:""},androidCtaURL:{type:String,default:""},huaweiCtaURL:{type:String,default:""},fallbackURL:{type:String,default:""},disableBox:{type:Boolean,default:!1}},setup(t,{expose:o}){o();const r=t,e=ref$1(!0),n="DL_APP_NOTIFICATION_VISIBLE",{isEnabledCookiePreferences:a,registerPreferenceCookie:i}=useGlobalCookieSettings();i(n);const s=()=>{e.value=!1,d();const f=new Date;f.setTime(f.getTime()+30*24*60*60*1e3);const m=f.toUTCString();a.value&&setCookie(n,"hidden",m)},l=computed(()=>{var f=navigator.userAgent||navigator.vendor||window.opera;return/huawei/i.test(f)?r.huaweiCtaURL:/android/i.test(f)?r.androidCtaURL:/iPad|iPhone|iPod/.test(f)&&!window.MSStream?r.appleCtaURL:r.fallbackURL}),d=()=>{document.documentElement.style.setProperty("--mobileDlAppNotificationHeight","0px")};(getCookie(n)||r.disableBox)&&(e.value=!1,d());const c=window.siteName,u={props:r,isVisible:e,COOKIE_ID:n,isEnabledCookiePreferences:a,registerPreferenceCookie:i,dismissBanner:s,getAppStoreUrl:l,setCSSCustomPropertyToZero:d,siteName:c,get getCookie(){return getCookie},get setCookie(){return setCookie},get useGlobalCookieSettings(){return useGlobalCookieSettings}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$2U=["data-use-theme"],_hoisted_2$20={class:"flex items-center justify-between generic-container h-full items-center"},_hoisted_3$1A={class:"flex flex-grow"},_hoisted_4$1r={class:"mr-3 h-8 w-8 flex-shrink-0 flex justify-content items-center rtl:mr-0 rtl:ml-3"},_hoisted_5$1k=["src","alt"],_hoisted_6$1g={key:0,class:"MobileDownloadAppNotificationText"},_hoisted_7$1e={class:"flex flex-shrink-0"},_hoisted_8$19={class:"text-center line-clamp-2 break-words"},_hoisted_9$13=["aria-label"],_hoisted_10$V={class:"w-6 h-6 flex items-center justify-center"};function _sfc_render$2e(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink"),s=__unplugin_components_2$5;return e.isVisible&&!e.props.disableBox?(openBlock(),createElementBlock("div",{key:0,class:"MobileDownloadAppNotification bg-neutral-grey-extralight","data-is-sticky":"","data-height-var":"--mobileDlAppNotificationHeight","data-use-theme":e.siteName},[createBaseVNode("div",_hoisted_2$20,[createBaseVNode("div",_hoisted_3$1A,[createBaseVNode("div",_hoisted_4$1r,[createBaseVNode("img",{class:"logo-img",src:e.props.downloadLogoPath,alt:t.$t("Malaysia Airlines mobile app icon")},null,8,_hoisted_5$1k)]),createBaseVNode("div",{class:normalizeClass(["flex-grow",{"flex items-center":!e.props.downloadText}])},[createBaseVNode("h4",{class:normalizeClass(["notification-title font-semibold text-xs mb-1 line-clamp-1",{"mb-0":!e.props.downloadText}])},toDisplayString(e.props.downloadTitle),3),e.props.downloadText?(openBlock(),createElementBlock("p",_hoisted_6$1g,toDisplayString(e.props.downloadText),1)):createCommentVNode("",!0)],2)]),createBaseVNode("div",_hoisted_7$1e,[createVNode(i,{href:e.getAppStoreUrl,class:"MobileDownloadAppNotificationCtaButton",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("span",_hoisted_8$19,toDisplayString(e.props.ctaText),1)]),_:1},8,["href"]),createBaseVNode("button",{class:"ml-5 p-0 rtl:ml-0 rtl:mr-5",type:"button","aria-label":t.$t("Dismiss mobile download app banner"),onClick:e.dismissBanner},[createBaseVNode("div",_hoisted_10$V,[createVNode(s,{class:"w-2.5 fill-primary-black-base"})])],8,_hoisted_9$13)])])],8,_hoisted_1$2U)):createCommentVNode("",!0)}const MobileDownloadAppNotification=_export_sfc(_sfc_main$2e,[["render",_sfc_render$2e],["__scopeId","data-v-01531fb8"],["__file","MobileDownloadAppNotification.vue"]]),MobileDownloadAppNotification$1=Object.freeze(Object.defineProperty({__proto__:null,default:MobileDownloadAppNotification},Symbol.toStringTag,{value:"Module"})),_hoisted_1$2T={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$K(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2T,o[0]||(o[0]=[createBaseVNode("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"},null,-1)]))}const __unplugin_components_1$c=markRaw({name:"fas-circle-info",render:render$K});function isObject$3(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function extend$2(t={},o={}
1132){Object.keys(o).forEach(r=>{typeof t[r]>"u"?t[r]=o[r]:isObject$3(o[r])&&isObject$3(t[r])&&Object.keys(o[r]).length>0&&extend$2(t[r],o[r])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const t=typeof document<"u"?document:{};return extend$2(t,ssrDocument),t}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function t(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function getWindow(){const t=typeof window<"u"?window:{};return extend$2(t,ssrWindow),t}function makeReactive(t){const o=t.__proto__;Object.defineProperty(t,"__proto__",{get(){return o},set(r){o.__proto__=r}})}class Dom7 extends Array{constructor(o){typeof o=="number"?super(o):(super(...o||[]),makeReactive(this))}}function arrayFlat(t=[]){const o=[];return t.forEach(r=>{Array.isArray(r)?o.push(...arrayFlat(r)):o.push(r)}),o}function arrayFilter(t,o){return Array.prototype.filter.call(t,o)}function arrayUnique(t){const o=[];for(let r=0;r<t.length;r+=1)o.indexOf(t[r])===-1&&o.push(t[r]);return o}function qsa(t,o){if(typeof t!="string")return[t];const r=[],e=o.querySelectorAll(t);for(let n=0;n<e.length;n+=1)r.push(e[n]);return r}function $(t,o){const r=getWindow(),e=getDocument();let n=[];if(!o&&t instanceof Dom7)return t;if(!t)return new Dom7(n);if(typeof t=="string"){const a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let i="div";a.indexOf("<li")===0&&(i="ul"),a.indexOf("<tr")===0&&(i="tbody"),(a.indexOf("<td")===0||a.indexOf("<th")===0)&&(i="tr"),a.indexOf("<tbody")===0&&(i="table"),a.indexOf("<option")===0&&(i="select");const s=e.createElement(i);s.innerHTML=a;for(let l=0;l<s.childNodes.length;l+=1)n.push(s.childNodes[l])}else n=qsa(t.trim(),o||e)}else if(t.nodeType||t===r||t===e)n.push(t);else if(Array.isArray(t)){if(t instanceof Dom7)return t;n=t}return new Dom7(arrayUnique(n))}$.fn=Dom7.prototype;function addClass(...t){const o=arrayFlat(t.map(r=>r.split(" ")));return this.forEach(r=>{r.classList.add(...o)}),this}function removeClass(...t){const o=arrayFlat(t.map(r=>r.split(" ")));return this.forEach(r=>{r.classList.remove(...o)}),this}function toggleClass(...t){const o=arrayFlat(t.map(r=>r.split(" ")));this.forEach(r=>{o.forEach(e=>{r.classList.toggle(e)})})}function hasClass(...t){const o=arrayFlat(t.map(r=>r.split(" ")));return arrayFilter(this,r=>o.filter(e=>r.classList.contains(e)).length>0).length>0}function attr(t,o){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(let r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(t,o);else for(const e in t)this[r][e]=t[e],this[r].setAttribute(e,t[e]);return this}function removeAttr(t){for(let o=0;o<this.length;o+=1)this[o].removeAttribute(t);return this}function transform(t){for(let o=0;o<this.length;o+=1)this[o].style.transform=t;return this}function transition$1(t){for(let o=0;o<this.length;o+=1)this[o].style.transitionDuration=typeof t!="string"?`${t}ms`:t;return this}function on(...t){let[o,r,e,n]=t;typeof t[1]=="function"&&([o,e,n]=t,r=void 0),n||(n=!1);function a(d){const c=d.target;if(!c)return;const u=d.target.dom7EventData||[];if(u.indexOf(d)<0&&u.unshift(d),$(c).is(r))e.apply(c,u);else{const f=$(c).parents();for(let m=0;m<f.length;m+=1)$(f[m]).is(r)&&e.apply(f[m],u)}}function i(d){const c=d&&d.target?d.target.dom7EventData||[]:[];c.indexOf(d)<0&&c.unshift(d),e.apply(this,c)}const s=o.split(" ");let l;for(let d=0;d<this.length;d+=1){const c=this[d];if(r)for(l=0;l<s.length;l+=1){const u=s[l];c.dom7LiveListeners||(c.dom7LiveListeners={}),c.dom7LiveListeners[u]||(c.dom7LiveListeners[u]=[]),c.dom7LiveListeners[u].push({listener:e,proxyListener:a}),c.addEventListener(u,a,n)}else for(l=0;l<s.length;l+=1){const u=s[l];c.dom7Listeners||(c.dom7Listeners={}),c.dom7Listeners[u]||(c.dom7Listeners[u]=[]),c.dom7Listeners[u].push({listener:e,proxyListener:i}),c.addEventListener(u,i,n)}}return this}function off(...t){let[o,r,e,n]=t;typeof t[1]=="function"&&([o,e,n]=t,r=void 0),n||(n=!1);const a=o.split(" ");for(let i=0;i<a.length;i+=1){const s=a[i];for(let l=0;l<this.length;l+=1){const d=this[l];let c;if(!r&&d.dom7Listeners?c=d.dom7Listeners[s]:r&&d.dom7LiveListeners&&(c=d.dom7LiveListeners[s]),c&&c.length)for(let u=c.length-1;u>=0;u-=1){const f=c[u];e&&f.listener===e||e&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===e?(d.removeEventListener(s,f.proxyListener,n),c.splice(u,1)):e||(d.removeEventListener(s,f.proxyListener,n),c.splice(u,1))}}}return this}function trigger(...t){const o=getWindow(),r=t[0].split(" "),e=t[1];for(let n=0;n<r.length;n+=1){const a=r[n];for(let i=0;i<this.length;i+=1){const s=this[i];if(o.CustomEvent){const l=new o.CustomEvent(a,{detail:e,bubbles:!0,cancelable:!0});s.dom7EventData=t.filter((d,c)=>c>0),s.dispatchEvent(l),s.dom7EventData=[],delete s.dom7EventData}}}return this}function transitionEnd$1(t){const o=this;function r(e){e.target===this&&(t.call(this,e),o.off("transitionend",r))}return t&&o.on("transitionend",r),this}function outerWidth(t){if(this.length>0){if(t){const o=this.styles();return this[0].offsetWidth+parseFloat(o.getPropertyValue("margin-right"))+
1132parseFloat(o.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function outerHeight(t){if(this.length>0){if(t){const o=this.styles();return this[0].offsetHeight+parseFloat(o.getPropertyValue("margin-top"))+parseFloat(o.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function offset(){if(this.length>0){const t=getWindow(),o=getDocument(),r=this[0],e=r.getBoundingClientRect(),n=o.body,a=r.clientTop||n.clientTop||0,i=r.clientLeft||n.clientLeft||0,s=r===t?t.scrollY:r.scrollTop,l=r===t?t.scrollX:r.scrollLeft;return{top:e.top+s-a,left:e.left+l-i}}return null}function styles(){const t=getWindow();return this[0]?t.getComputedStyle(this[0],null):{}}function css(t,o){const r=getWindow();let e;if(arguments.length===1)if(typeof t=="string"){if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}else{for(e=0;e<this.length;e+=1)for(const n in t)this[e].style[n]=t[n];return this}if(arguments.length===2&&typeof t=="string"){for(e=0;e<this.length;e+=1)this[e].style[t]=o;return this}return this}function each(t){return t?(this.forEach((o,r)=>{t.apply(o,[o,r])}),this):this}function filter(t){const o=arrayFilter(this,t);return $(o)}function html(t){if(typeof t>"u")return this[0]?this[0].innerHTML:null;for(let o=0;o<this.length;o+=1)this[o].innerHTML=t;return this}function text(t){if(typeof t>"u")return this[0]?this[0].textContent.trim():null;for(let o=0;o<this.length;o+=1)this[o].textContent=t;return this}function is(t){const o=getWindow(),r=getDocument(),e=this[0];let n,a;if(!e||typeof t>"u")return!1;if(typeof t=="string"){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(n=$(t),a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}if(t===r)return e===r;if(t===o)return e===o;if(t.nodeType||t instanceof Dom7){for(n=t.nodeType?[t]:t,a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}return!1}function index(){let t=this[0],o;if(t){for(o=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(o+=1);return o}}function eq(t){if(typeof t>"u")return this;const o=this.length;if(t>o-1)return $([]);if(t<0){const r=o+t;return r<0?$([]):$([this[r]])}return $([this[t]])}function append(...t){let o;const r=getDocument();for(let e=0;e<t.length;e+=1){o=t[e];for(let n=0;n<this.length;n+=1)if(typeof o=="string"){const a=r.createElement("div");for(a.innerHTML=o;a.firstChild;)this[n].appendChild(a.firstChild)}else if(o instanceof Dom7)for(let a=0;a<o.length;a+=1)this[n].appendChild(o[a]);else this[n].appendChild(o)}return this}function prepend(t){const o=getDocument();let r,e;for(r=0;r<this.length;r+=1)if(typeof t=="string"){const n=o.createElement("div");for(n.innerHTML=t,e=n.childNodes.length-1;e>=0;e-=1)this[r].insertBefore(n.childNodes[e],this[r].childNodes[0])}else if(t instanceof Dom7)for(e=0;e<t.length;e+=1)this[r].insertBefore(t[e],this[r].childNodes[0]);else this[r].insertBefore(t,this[r].childNodes[0]);return this}function next(t){return this.length>0?t?this[0].nextElementSibling&&$(this[0].nextElementSibling).is(t)?$([this[0].nextElementSibling]):$([]):this[0].nextElementSibling?$([this[0].nextElementSibling]):$([]):$([])}function nextAll(t){const o=[];let r=this[0];if(!r)return $([]);for(;r.nextElementSibling;){const e=r.nextElementSibling;t?$(e).is(t)&&o.push(e):o.push(e),r=e}return $(o)}function prev(t){if(this.length>0){const o=this[0];return t?o.previousElementSibling&&$(o.previousElementSibling).is(t)?$([o.previousElementSibling]):$([]):o.previousElementSibling?$([o.previousElementSibling]):$([])}return $([])}function prevAll(t){const o=[];let r=this[0];if(!r)return $([]);for(;r.previousElementSibling;){const e=r.previousElementSibling;t?$(e).is(t)&&o.push(e):o.push(e),r=e}return $(o)}function parent(t){const o=[];for(let r=0;r<this.length;r+=1)this[r].parentNode!==null&&(t?$(this[r].parentNode).is(t)&&o.push(this[r].parentNode):o.push(this[r].parentNode));return $(o)}function parents(t){const o=[];for(let r=0;r<this.length;r+=1){let e=this[r].parentNode;for(;e;)t?$(e).is(t)&&o.push(e):o.push(e),e=e.parentNode}return $(o)}function closest(t){let o=this;return typeof t>"u"?$([]):(o.is(t)||(o=o.parents(t).eq(0)),o)}function find(t){const o=[];for(let r=0;r<this.length;r+=1){const e=this[r].querySelectorAll(t);for(let n=0;n<e.length;n+=1)o.push(e[n])}return $(o)}function children(t){const o=[];for(let r=0;r<this.length;r+=1){const e=this[r].children;for(let n=0;n<e.length;n+=1)(!t||$(e[n]).is(t))&&o.push(e[n])}return $(o)}function remove(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}const Methods={addClass,removeClass,hasClass,toggleClass,attr,removeAttr,transform,transition:transition$1,on,off,trigger,transitionEnd:transitionEnd$1,outerWidth,outerHeight,styles,offset,css,each,html,text,is,index,eq,append,prepend,next,nextAll,prev,prevAll,parent,parents,closest,find,children,filter,remove};
vendor: 4,169 bytes, line 1132
1132Object.keys(Methods).forEach(t=>{Object.defineProperty($.fn,t,{value:Methods[t],writable:!0})});function deleteProps(t){const o=t;Object.keys(o).forEach(r=>{try{o[r]=null}catch{}try{delete o[r]}catch{}})}function nextTick(t,o=0){return setTimeout(t,o)}function now(){return Date.now()}function getComputedStyle$1(t){const o=getWindow();let r;return o.getComputedStyle&&(r=o.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function getTranslate(t,o="x"){const r=getWindow();let e,n,a;const i=getComputedStyle$1(t);return r.WebKitCSSMatrix?(n=i.transform||i.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(s=>s.replace(",",".")).join(", ")),a=new r.WebKitCSSMatrix(n==="none"?"":n)):(a=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),e=a.toString().split(",")),o==="x"&&(r.WebKitCSSMatrix?n=a.m41:e.length===16?n=parseFloat(e[12]):n=parseFloat(e[4])),o==="y"&&(r.WebKitCSSMatrix?n=a.m42:e.length===16?n=parseFloat(e[13]):n=parseFloat(e[5])),n||0}function isObject$2(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function isNode(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function extend$1(...t){const o=Object(t[0]),r=["__proto__","constructor","prototype"];for(let e=1;e<t.length;e+=1){const n=t[e];if(n!=null&&!isNode(n)){const a=Object.keys(Object(n)).filter(i=>r.indexOf(i)<0);for(let i=0,s=a.length;i<s;i+=1){const l=a[i],d=Object.getOwnPropertyDescriptor(n,l);d!==void 0&&d.enumerable&&(isObject$2(o[l])&&isObject$2(n[l])?n[l].__swiper__?o[l]=n[l]:extend$1(o[l],n[l]):!isObject$2(o[l])&&isObject$2(n[l])?(o[l]={},n[l].__swiper__?o[l]=n[l]:extend$1(o[l],n[l])):o[l]=n[l])}}}return o}function setCSSProperty(t,o,r){t.style.setProperty(o,r)}function animateCSSModeScroll({swiper:t,targetPosition:o,side:r}){const e=getWindow(),n=-t.translate;let a=null,i;const s=t.params.speed;t.wrapperEl.style.scrollSnapType="none",e.cancelAnimationFrame(t.cssModeFrameID);const l=o>n?"next":"prev",d=(u,f)=>l==="next"&&u>=f||l==="prev"&&u<=f,c=()=>{i=new Date().getTime(),a===null&&(a=i);const u=Math.max(Math.min((i-a)/s,1),0),f=.5-Math.cos(u*Math.PI)/2;let m=n+f*(o-n);if(d(m,o)&&(m=o),t.wrapperEl.scrollTo({[r]:m}),d(m,o)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:m})}),e.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=e.requestAnimationFrame(c)};c()}let support;function calcSupport(){const t=getWindow(),o=getDocument();return{smoothScroll:o.documentElement&&"scrollBehavior"in o.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&o instanceof t.DocumentTouch),passiveListener:function(){let e=!1;try{const n=Object.defineProperty({},"passive",{get(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch{}return e}(),gestures:function(){return"ongesturestart"in t}()}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice({userAgent:t}={}){const o=getSupport(),r=getWindow(),e=r.navigator.platform,n=t||r.navigator.userAgent,a={ios:!1,android:!1},i=r.screen.width,s=r.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let d=n.match(/(iPad).*OS\s([\d_]+)/);const c=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=e==="Win32";let m=e==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&o.touch&&b.indexOf(`${i}x${s}`)>=0&&(d=n.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),l&&!f&&(a.os="android",a.android=!0),(d||u||c)&&(a.os="ios",a.ios=!0),a}function getDevice(t={}){return deviceCached||(deviceCached=calcDevice(t)),deviceCached}let browser;function calcBrowser(){const t=getWindow();function o(){const r=t.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}
vendor: 3,507 bytes, line 1132
1132return{isSafari:o(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize({swiper:t,on:o,emit:r}){const e=getWindow();let n=null,a=null;const i=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},s=()=>{!t||t.destroyed||!t.initialized||(n=new ResizeObserver(c=>{a=e.requestAnimationFrame(()=>{const{width:u,height:f}=t;let m=u,b=f;c.forEach(({contentBoxSize:y,contentRect:_,target:S})=>{S&&S!==t.el||(m=_?_.width:(y[0]||y).inlineSize,b=_?_.height:(y[0]||y).blockSize)}),(m!==u||b!==f)&&i()})}),n.observe(t.el))},l=()=>{a&&e.cancelAnimationFrame(a),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null)},d=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};o("init",()=>{if(t.params.resizeObserver&&typeof e.ResizeObserver<"u"){s();return}e.addEventListener("resize",i),e.addEventListener("orientationchange",d)}),o("destroy",()=>{l(),e.removeEventListener("resize",i),e.removeEventListener("orientationchange",d)})}function Observer$1({swiper:t,extendParams:o,on:r,emit:e}){const n=[],a=getWindow(),i=(d,c={})=>{const u=a.MutationObserver||a.WebkitMutationObserver,f=new u(m=>{if(m.length===1){e("observerUpdate",m[0]);return}const b=function(){e("observerUpdate",m[0])};a.requestAnimationFrame?a.requestAnimationFrame(b):a.setTimeout(b,0)});f.observe(d,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),n.push(f)},s=()=>{if(t.params.observer){if(t.params.observeParents){const d=t.$el.parents();for(let c=0;c<d.length;c+=1)i(d[c])}i(t.$el[0],{childList:t.params.observeSlideChildren}),i(t.$wrapperEl[0],{attributes:!1})}},l=()=>{n.forEach(d=>{d.disconnect()}),n.splice(0,n.length)};o({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",s),r("destroy",l)}const eventsEmitter={on(t,o,r){const e=this;if(!e.eventsListeners||e.destroyed||typeof o!="function")return e;const n=r?"unshift":"push";return t.split(" ").forEach(a=>{e.eventsListeners[a]||(e.eventsListeners[a]=[]),e.eventsListeners[a][n](o)}),e},once(t,o,r){const e=this;if(!e.eventsListeners||e.destroyed||typeof o!="function")return e;function n(...a){e.off(t,n),n.__emitterProxy&&delete n.__emitterProxy,o.apply(e,a)}return n.__emitterProxy=o,e.on(t,n,r)},onAny(t,o){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const e=o?"unshift":"push";return r.eventsAnyListeners.indexOf(t)<0&&r.eventsAnyListeners[e](t),r},offAny(t){const o=this;if(!o.eventsListeners||o.destroyed||!o.eventsAnyListeners)return o;const r=o.eventsAnyListeners.indexOf(t);return r>=0&&o.eventsAnyListeners.splice(r,1),o},off(t,o){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||t.split(" ").forEach(e=>{typeof o>"u"?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach((n,a)=>{(n===o||n.__emitterProxy&&n.__emitterProxy===o)&&r.eventsListeners[e].splice(a,1)})}),r},emit(...t){const o=this;if(!o.eventsListeners||o.destroyed||!o.eventsListeners)return o;let r,e,n;return typeof t[0]=="string"||Array.isArray(t[0])?(r=t[0],e=t.slice(1,t.length),n=o):(r=t[0].events,e=t[0].data,n=t[0].context||o),e.unshift(n),(Array.isArray(r)?r:r.split(" ")).forEach(i=>{o.eventsAnyListeners&&o.eventsAnyListeners.length&&o.eventsAnyListeners.forEach(s=>{s.apply(n,[i,...e])}),o.eventsListeners&&o.eventsListeners[i]&&o.eventsListeners[i].forEac
1132h(s=>{s.apply(n,e)})}),o}};function updateSize(){const t=this;let o,r;const e=t.$el;typeof t.params.width<"u"&&t.params.width!==null?o=t.params.width:o=e[0].clientWidth,typeof t.params.height<"u"&&t.params.height!==null?r=t.params.height:r=e[0].clientHeight,!(o===0&&t.isHorizontal()||r===0&&t.isVertical())&&(o=o-parseInt(e.css("padding-left")||0,10)-parseInt(e.css("padding-right")||0,10),r=r-parseInt(e.css("padding-top")||0,10)-parseInt(e.css("padding-bottom")||0,10),Number.isNaN(o)&&(o=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:o,height:r,size:t.isHorizontal()?o:r}))}function updateSlides(){const t=this;function o(F){return t.isHorizontal()?F:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[F]}function r(F,V){return parseFloat(F.getPropertyValue(o(V))||0)}const e=t.params,{$wrapperEl:n,size:a,rtlTranslate:i,wrongRTL:s}=t,l=t.virtual&&e.virtual.enabled,d=l?t.virtual.slides.length:t.slides.length,c=n.children(`.${t.params.slideClass}`),u=l?t.virtual.slides.length:c.length;let f=[];const m=[],b=[];let y=e.slidesOffsetBefore;typeof y=="function"&&(y=e.slidesOffsetBefore.call(t));let _=e.slidesOffsetAfter;typeof _=="function"&&(_=e.slidesOffsetAfter.call(t));const S=t.snapGrid.length,C=t.slidesGrid.length;let T=e.spaceBetween,x=-y,k=0,E=0;if(typeof a>"u")return;typeof T=="string"&&T.indexOf("%")>=0&&(T=parseFloat(T.replace("%",""))/100*a),t.virtualSize=-T,i?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),e.centeredSlides&&e.cssMode&&(setCSSProperty(t.wrapperEl,"--swiper-centered-offset-before",""),setCSSProperty(t.wrapperEl,"--swiper-centered-offset-after",""));const w=e.grid&&e.grid.rows>1&&t.grid;w&&t.grid.initSlides(u);let D;const N=e.slidesPerView==="auto"&&e.breakpoints&&Object.keys(e.breakpoints).filter(F=>typeof e.breakpoints[F].slidesPerView<"u").length>0;for(let F=0;F<u;F+=1){D=0;const V=c.eq(F);if(w&&t.grid.updateSlide(F,V,u,o),V.css("display")!=="none"){if(e.slidesPerView==="auto"){N&&(c[F].style[o("width")]="");const A=getComputedStyle(V[0]),M=V[0].style.transform,O=V[0].style.webkitTransform;if(M&&(V[0].style.transform="none"),O&&(V[0].style.webkitTransform="none"),e.roundLengths)D=t.isHorizontal()?V.outerWidth(!0):V.outerHeight(!0);else{const R=r(A,"width"),I=r(A,"padding-left"),j=r(A,"padding-right"),H=r(A,"margin-left"),U=r(A,"margin-right"),B=A.getPropertyValue("box-sizing");if(B&&B==="border-box")D=R+H+U;else{const{clientWidth:L,offsetWidth:z}=V[0];D=R+I+j+H+U+(z-L)}}M&&(V[0].style.transform=M),O&&(V[0].style.webkitTransform=O),e.roundLengths&&(D=Math.floor(D))}else D=(a-(e.slidesPerView-1)*T)/e.slidesPerView,e.roundLengths&&(D=Math.floor(D)),c[F]&&(c[F].style[o("width")]=`${D}px`);c[F]&&(c[F].swiperSlideSize=D),b.push(D),e.centeredSlides?(x=x+D/2+k/2+T,k===0&&F!==0&&(x=x-a/2-T),F===0&&(x=x-a/2-T),Math.abs(x)<1/1e3&&(x=0),e.roundLengths&&(x=Math.floor(x)),E%e.slidesPerGroup===0&&f.push(x),m.push(x)):(e.roundLengths&&(x=Math.floor(x)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup===0&&f.push(x),m.push(x),x=x+D+T),t.virtualSize+=D+T,k=D,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,a)+_,i&&s&&(e.effect==="slide"||e.effect==="coverflow")&&n.css({width:`${t.virtualSize+e.spaceBetween}px`}),e.setWrapperSize&&n.css({[o("width")]:`${t.virtualSize+e.spaceBetween}px`}),w&&t.grid.updateWrapperSize(D,f,o),!e.centeredSlides){const F=[];for(let V=0;V<f.length;V+=1){let A=f[V];e.roundLengths&&(A=Math.floor(A)),f[V]<=t.virtualSize-a&&F.push(A)}f=F,Math.floor(t.virtualSize-a)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-a)}if(f.length===0&&(f=[0]),e.spaceBetween!==0){const F=t.isHorizontal()&&i?"marginLeft":o("marginRight");c.filter((V,A)=>e.cssMode?A!==c.length-1:!0).css({[F]:`${T}px`})}if(e.centeredSlides&&e.centeredSlidesBounds){let F=0;b.forEach(A=>{F+=A+(e.spaceBetween?e.spaceBetween:0)}),F-=e.spaceBetween;const V=F-a;f=f.map(A=>A<0?-y:A>V?V+_:A)}if(e.centerInsufficientSlides){let F=0;if(b.forEach(V=>{F+=V+(e.spaceBetween?e.spaceBetween:0)}),F-=e.spaceBetween,F<a){const V=(a-F)/2;f.forEach((A,M)=>{f[M]=A-V}),m.forEach((A,M)=>{m[M]=A+V})}}if(Object.assign(t,{slides:c,snapGrid:f,slidesGrid:m,slidesSizesGrid:b}
1132),e.centeredSlides&&e.cssMode&&!e.centeredSlidesBounds){setCSSProperty(t.wrapperEl,"--swiper-centered-offset-before",`${-f[0]}px`),setCSSProperty(t.wrapperEl,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const F=-t.snapGrid[0],V=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(A=>A+F),t.slidesGrid=t.slidesGrid.map(A=>A+V)}if(u!==d&&t.emit("slidesLengthChange"),f.length!==S&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==C&&t.emit("slidesGridLengthChange"),e.watchSlidesProgress&&t.updateSlidesOffset(),!l&&!e.cssMode&&(e.effect==="slide"||e.effect==="fade")){const F=`${e.containerModifierClass}backface-hidden`,V=t.$el.hasClass(F);u<=e.maxBackfaceHiddenSlides?V||t.$el.addClass(F):V&&t.$el.removeClass(F)}}function updateAutoHeight(t){const o=this,r=[],e=o.virtual&&o.params.virtual.enabled;let n=0,a;typeof t=="number"?o.setTransition(t):t===!0&&o.setTransition(o.params.speed);const i=s=>e?o.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===s)[0]:o.slides.eq(s)[0];if(o.params.slidesPerView!=="auto"&&o.params.slidesPerView>1)if(o.params.centeredSlides)(o.visibleSlides||$([])).each(s=>{r.push(s)});else for(a=0;a<Math.ceil(o.params.slidesPerView);a+=1){const s=o.activeIndex+a;if(s>o.slides.length&&!e)break;r.push(i(s))}else r.push(i(o.activeIndex));for(a=0;a<r.length;a+=1)if(typeof r[a]<"u"){const s=r[a].offsetHeight;n=s>n?s:n}(n||n===0)&&o.$wrapperEl.css("height",`${n}px`)}function updateSlidesOffset(){const t=this,o=t.slides;for(let r=0;r<o.length;r+=1)o[r].swiperSlideOffset=t.isHorizontal()?o[r].offsetLeft:o[r].offsetTop}function updateSlidesProgress(t=this&&this.translate||0){const o=this,r=o.params,{slides:e,rtlTranslate:n,snapGrid:a}=o;if(e.length===0)return;typeof e[0].swiperSlideOffset>"u"&&o.updateSlidesOffset();let i=-t;n&&(i=t),e.removeClass(r.slideVisibleClass),o.visibleSlidesIndexes=[],o.visibleSlides=[];for(let s=0;s<e.length;s+=1){const l=e[s];let d=l.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(d-=e[0].swiperSlideOffset);const c=(i+(r.centeredSlides?o.minTranslate():0)-d)/(l.swiperSlideSize+r.spaceBetween),u=(i-a[0]+(r.centeredSlides?o.minTranslate():0)-d)/(l.swiperSlideSize+r.spaceBetween),f=-(i-d),m=f+o.slidesSizesGrid[s];(f>=0&&f<o.size-1||m>1&&m<=o.size||f<=0&&m>=o.size)&&(o.visibleSlides.push(l),o.visibleSlidesIndexes.push(s),e.eq(s).addClass(r.slideVisibleClass)),l.progress=n?-c:c,l.originalProgress=n?-u:u}o.visibleSlides=$(o.visibleSlides)}function updateProgress(t){const o=this;if(typeof t>"u"){const d=o.rtlTranslate?-1:1;t=o&&o.translate&&o.translate*d||0}const r=o.params,e=o.maxTranslate()-o.minTranslate();let{progress:n,isBeginning:a,isEnd:i}=o;const s=a,l=i;e===0?(n=0,a=!0,i=!0):(n=(t-o.minTranslate())/e,a=n<=0,i=n>=1),Object.assign(o,{progress:n,isBeginning:a,isEnd:i}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&o.updateSlidesProgress(t),a&&!s&&o.emit("reachBeginning toEdge"),i&&!l&&o.emit("reachEnd toEdge"),(s&&!a||l&&!i)&&o.emit("fromEdge"),o.emit("progress",n)}function updateSlidesClasses(){const t=this,{slides:o,params:r,$wrapperEl:e,activeIndex:n,realIndex:a}=t,i=t.virtual&&r.virtual.enabled;o.removeClass(`${r.slideActiveClass} ${r.slideNextClass} ${r.slidePrevClass} ${r.slideDuplicateActiveClass} ${r.slideDuplicateNextClass} ${r.slideDuplicatePrevClass}`);let s;i?s=t.$wrapperEl.find(`.${r.slideClass}[data-swiper-slide-index="${n}"]`):s=o.eq(n),s.addClass(r.slideActiveClass),r.loop&&(s.hasClass(r.slideDuplicateClass)?e.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${a}"]`).addClass(r.slideDuplicateActiveClass):e.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${a}"]`).addClass(r.slideDuplicateActiveClass));let l=s.nextAll(`.${r.slideClass}`).eq(0).addClass(r.slideNextClass);r.loop&&l.length===0&&(l=o.eq(0),l.addClass(r.slideNextClass));let d=s.prevAll(`.${r.slideClass}`).eq(0).addClass(r.slidePrevClass);r.loop&&d.length===0&&(d=o.eq(-1),d.addClass(r.slidePrevClass)),r.loop&&(l.hasClass(r.slideDuplicateClass)?e.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass):e.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass),d.hasClass(r.slideDuplicateClass)?e.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass):e.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()}function updateActiveIndex(t){const o=this,r=o.rtlTranslate?o.translate:-o.translate,{slidesGrid:e,snapGrid:n,params:a,activeIndex:i,realIndex:s,snapIndex:l}=o;let d=t,c;if(typeof d>"u"){for(let f=0;f<e.length;f+=1)typeof e[f+1]<"u"?r>=e[f]&&r<e[f+1]-(e[f+1]-e[f])/2?d=f:r>=e[f]&&r<e[f+1]&&(d=f+1):r>=e[f]&&(d=f);a.normalizeSlideIndex&&(d<0||typeof d>"u")&&(d=0)}if(n.indexOf(r)>=0)c=n.indexOf(r);else{const f=Math.min(a.slidesPerGroupSkip,d);c=f+Math.floor((d-f)/a.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),d===i){c!==l&&(o.snapIndex=c,o.emit("snapIndexChange"));return}const u=parseInt(o.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(o,{snapIndex:c,realIndex:u,previousIndex:i,activeIndex:d}),o.emit("activeIndexChange"),o.emit("snapIndexChange"),s!==u&&o.emit("realIndexChange"),(o.initialized||o.params.runCallbacksOnInit)&&o.emit("slideChange")}function updateClickedSlide(t){const o=this,r=o.params,e=$(t).closest(`.${r.slideClass}`)[0];let n=!1,a;if(e){for(let i=0;i<o.slides.length;i+=1)if(o.slides[i]===e){n=!0,a=i;break}}if(e&&n)o.clickedSlide=e,o.virtual&&o.params.virtual.enabled?o.clickedIndex=parseInt($(e).attr("data-swiper-slide-index"),10):o.clickedIndex=a;else{o.clickedSlide=void 0,o.clickedIndex=void 0;return}r.slideToClickedSlide&&o.clickedIndex!==void 0&&o.clickedIndex!==o.activeIndex&&o.slideToClickedSlide()}const update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(t=this.isHorizontal()?"x":"y"){const o=this,{params:r,rtlTranslate:e,translate:n,$wrapperEl:a}=o;if(r.virtualTranslate)return e?-n:n;if(r.cssMode)return n;let i=getTranslate(a[0],t);return e&&(i=-i),i||0}function setTranslate(t,o){const r=this,{rtlTranslate:e,params:n,$wrapperEl:a,wrapperEl:i,progress:s}=r;let l=0,d=0;const c=0;r.isHorizontal()?l=e?-t:t:d=t,n.roundLengths&&(l=Math.floor(l),d=Math.floor(d)),n.cssMode?i[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-l:-d:n.virtualTranslate||a.transform(`translate3d(${l}px, ${d}px, ${c}
1132px)`),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?l:d;let u;const f=r.maxTranslate()-r.minTranslate();f===0?u=0:u=(t-r.minTranslate())/f,u!==s&&r.updateProgress(t),r.emit("setTranslate",r.translate,o)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(t=0,o=this.params.speed,r=!0,e=!0,n){const a=this,{params:i,wrapperEl:s}=a;if(a.animating&&i.preventInteractionOnTransition)return!1;const l=a.minTranslate(),d=a.maxTranslate();let c;if(e&&t>l?c=l:e&&t<d?c=d:c=t,a.updateProgress(c),i.cssMode){const u=a.isHorizontal();if(o===0)s[u?"scrollLeft":"scrollTop"]=-c;else{if(!a.support.smoothScroll)return animateCSSModeScroll({swiper:a,targetPosition:-c,side:u?"left":"top"}),!0;s.scrollTo({[u?"left":"top"]:-c,behavior:"smooth"})}return!0}return o===0?(a.setTransition(0),a.setTranslate(c),r&&(a.emit("beforeTransitionStart",o,n),a.emit("transitionEnd"))):(a.setTransition(o),a.setTranslate(c),r&&(a.emit("beforeTransitionStart",o,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(f){!a||a.destroyed||f.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,r&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}const translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(t,o){const r=this;r.params.cssMode||r.$wrapperEl.transition(t),r.emit("setTransition",t,o)}function transitionEmit({swiper:t,runCallbacks:o,direction:r,step:e}){const{activeIndex:n,previousIndex:a}=t;let i=r;if(i||(n>a?i="next":n<a?i="prev":i="reset"),t.emit(`transition${e}`),o&&n!==a){if(i==="reset"){t.emit(`slideResetTransition${e}`);return}t.emit(`slideChangeTransition${e}`),i==="next"?t.emit(`slideNextTransition${e}`):t.emit(`slidePrevTransition${e}`)}}function transitionStart(t=!0,o){const r=this,{params:e}=r;e.cssMode||(e.autoHeight&&r.updateAutoHeight(),transitionEmit({swiper:r,runCallbacks:t,direction:o,step:"Start"}))}function transitionEnd(t=!0,o){const r=this,{params:e}=r;r.animating=!1,!e.cssMode&&(r.setTransition(0),transitionEmit({swiper:r,runCallbacks:t,direction:o,step:"End"}))}const transition={setTransition,transitionStart,transitionEnd};function slideTo(t=0,o=this.params.speed,r=!0,e,n){if(typeof t!="number"&&typeof t!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);if(typeof t=="string"){const T=parseInt(t,10);if(!isFinite(T))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=T}const a=this;let i=t;i<0&&(i=0);const{params:s,snapGrid:l,slidesGrid:d,previousIndex:c,activeIndex:u,rtlTranslate:f,wrapperEl:m,enabled:b}=a;if(a.animating&&s.preventInteractionOnTransition||!b&&!e&&!n)return!1;const y=Math.min(a.params.slidesPerGroupSkip,i);let _=y+Math.floor((i-y)/a.params.slidesPerGroup);_>=l.length&&(_=l.length-1);const S=-l[_];if(s.normalizeSlideIndex)for(let T=0;T<d.length;T+=1){const x=-Math.floor(S*100),k=Math.floor(d[T]*100),E=Math.floor(d[T+1]*100);typeof d[T+1]<"u"?x>=k&&x<E-(E-k)/2?i=T:x>=k&&x<E&&(i=T+1):x>=k&&(i=T)}if(a.initialized&&i!==u&&(!a.allowSlideNext&&S<a.translate&&S<a.minTranslate()||!a.allowSlidePrev&&S>a.translate&&S>a.maxTranslate()&&(u||0)!==i))return!1;i!==(c||0)&&r&&a.emit("beforeSlideChangeStart"),a.updateProgress(S);let C;if(i>u?C="next":i<u?C="prev":C="reset",f&&-S===a.translate||!f&&S===a.translate)return a.updateActiveIndex(i),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!=="slide"&&a.setTranslate(S),C!=="reset"&&(a.transitionStart(r,C),a.transitionEnd(r,C)),!1;if(s.cssMode){const T=a.isHorizontal(),x=f?S:-S;if(o===0){const k=a.virtual&&a.params.virtual.enabled;k&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),m[T?"scrollLeft":"scrollTop"]=x,k&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._swiperImmediateVirtual=!1})}else{if(!a.support.smoothScroll)return animateCSSModeScroll({swiper:a,targetPosition:x,side:T?"left"
1132:"top"}),!0;m.scrollTo({[T?"left":"top"]:x,behavior:"smooth"})}return!0}return a.setTransition(o),a.setTranslate(S),a.updateActiveIndex(i),a.updateSlidesClasses(),a.emit("beforeTransitionStart",o,e),a.transitionStart(r,C),o===0?a.transitionEnd(r,C):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(x){!a||a.destroyed||x.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(r,C))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(t=0,o=this.params.speed,r=!0,e){if(typeof t=="string"){const i=parseInt(t,10);if(!isFinite(i))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=i}const n=this;let a=t;return n.params.loop&&(a+=n.loopedSlides),n.slideTo(a,o,r,e)}function slideNext(t=this.params.speed,o=!0,r){const e=this,{animating:n,enabled:a,params:i}=e;if(!a)return e;let s=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(s=Math.max(e.slidesPerViewDynamic("current",!0),1));const l=e.activeIndex<i.slidesPerGroupSkip?1:s;if(i.loop){if(n&&i.loopPreventsSlide)return!1;e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft}return i.rewind&&e.isEnd?e.slideTo(0,t,o,r):e.slideTo(e.activeIndex+l,t,o,r)}function slidePrev(t=this.params.speed,o=!0,r){const e=this,{params:n,animating:a,snapGrid:i,slidesGrid:s,rtlTranslate:l,enabled:d}=e;if(!d)return e;if(n.loop){if(a&&n.loopPreventsSlide)return!1;e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft}const c=l?e.translate:-e.translate;function u(_){return _<0?-Math.floor(Math.abs(_)):Math.floor(_)}const f=u(c),m=i.map(_=>u(_));let b=i[m.indexOf(f)-1];if(typeof b>"u"&&n.cssMode){let _;i.forEach((S,C)=>{f>=S&&(_=C)}),typeof _<"u"&&(b=i[_>0?_-1:_])}let y=0;if(typeof b<"u"&&(y=s.indexOf(b),y<0&&(y=e.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(y=y-e.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),n.rewind&&e.isBeginning){const _=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1;return e.slideTo(_,t,o,r)}return e.slideTo(y,t,o,r)}function slideReset(t=this.params.speed,o=!0,r){const e=this;return e.slideTo(e.activeIndex,t,o,r)}function slideToClosest(t=this.params.speed,o=!0,r,e=.5){const n=this;let a=n.activeIndex;const i=Math.min(n.params.slidesPerGroupSkip,a),s=i+Math.floor((a-i)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[s]){const d=n.snapGrid[s],c=n.snapGrid[s+1];l-d>(c-d)*e&&(a+=n.params.slidesPerGroup)}else{const d=n.snapGrid[s-1],c=n.snapGrid[s];l-d<=(c-d)*e&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,t,o,r)}function slideToClickedSlide(){const t=this,{params:o,$wrapperEl:r}=t,e=o.slidesPerView==="auto"?t.slidesPerViewDynamic():o.slidesPerView;let n=t.clickedIndex,a;if(o.loop){if(t.animating)return;a=parseInt($(t.clickedSlide).attr("data-swiper-slide-index"),10),o.centeredSlides?n<t.loopedSlides-e/2||n>t.slides.length-t.loopedSlides+e/2?(t.loopFix(),n=r.children(`.${o.slideClass}[data-swiper-slide-index="${a}"]:not(.${o.slideDuplicateClass})`).eq(0).index(),nextTick(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-e?(t.loopFix(),n=r.children(`.${o.slideClass}[data-swiper-slide-index="${a}"]:not(.${o.slideDuplicateClass})`).eq(0).index(),nextTick(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}const slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(){const t=this,o=getDocument(),{params:r,$wrapperEl:e}=t,n=e.children().length>0?$(e.children()[0].parentNode):e;n.children(`.${r.slideClass}.${r.slideDuplicateClass}`).remove();let a=n.children(`.${r.slideClass}`);
1132if(r.loopFillGroupWithBlank){const l=r.slidesPerGroup-a.length%r.slidesPerGroup;if(l!==r.slidesPerGroup){for(let d=0;d<l;d+=1){const c=$(o.createElement("div")).addClass(`${r.slideClass} ${r.slideBlankClass}`);n.append(c)}a=n.children(`.${r.slideClass}`)}}r.slidesPerView==="auto"&&!r.loopedSlides&&(r.loopedSlides=a.length),t.loopedSlides=Math.ceil(parseFloat(r.loopedSlides||r.slidesPerView,10)),t.loopedSlides+=r.loopAdditionalSlides,t.loopedSlides>a.length&&t.params.loopedSlidesLimit&&(t.loopedSlides=a.length);const i=[],s=[];a.each((l,d)=>{$(l).attr("data-swiper-slide-index",d)});for(let l=0;l<t.loopedSlides;l+=1){const d=l-Math.floor(l/a.length)*a.length;s.push(a.eq(d)[0]),i.unshift(a.eq(a.length-d-1)[0])}for(let l=0;l<s.length;l+=1)n.append($(s[l].cloneNode(!0)).addClass(r.slideDuplicateClass));for(let l=i.length-1;l>=0;l-=1)n.prepend($(i[l].cloneNode(!0)).addClass(r.slideDuplicateClass))}function loopFix(){const t=this;t.emit("beforeLoopFix");const{activeIndex:o,slides:r,loopedSlides:e,allowSlidePrev:n,allowSlideNext:a,snapGrid:i,rtlTranslate:s}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const c=-i[o]-t.getTranslate();o<e?(l=r.length-e*3+o,l+=e,t.slideTo(l,0,!1,!0)&&c!==0&&t.setTranslate((s?-t.translate:t.translate)-c)):o>=r.length-e&&(l=-r.length+o+e,l+=e,t.slideTo(l,0,!1,!0)&&c!==0&&t.setTranslate((s?-t.translate:t.translate)-c)),t.allowSlidePrev=n,t.allowSlideNext=a,t.emit("loopFix")}function loopDestroy(){const t=this,{$wrapperEl:o,params:r,slides:e}=t;o.children(`.${r.slideClass}.${r.slideDuplicateClass},.${r.slideClass}.${r.slideBlankClass}`).remove(),e.removeAttr("data-swiper-slide-index")}const loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(t){const o=this;if(o.support.touch||!o.params.simulateTouch||o.params.watchOverflow&&o.isLocked||o.params.cssMode)return;const r=o.params.touchEventsTarget==="container"?o.el:o.wrapperEl;r.style.cursor="move",r.style.cursor=t?"grabbing":"grab"}function unsetGrabCursor(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(t,o=this){function r(e){if(!e||e===getDocument()||e===getWindow())return null;e.assignedSlot&&(e=e.assignedSlot);const n=e.closest(t);return!n&&!e.getRootNode?null:n||r(e.getRootNode().host)}return r(o)}function onTouchStart(t){const o=this,r=getDocument(),e=getWindow(),n=o.touchEventsData,{params:a,touches:i,enabled:s}=o;if(!s||o.animating&&a.preventInteractionOnTransition)return;!o.animating&&a.cssMode&&a.loop&&o.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let d=$(l.target);if(a.touchEventsTarget==="wrapper"&&!d.closest(o.wrapperEl).length||(n.isTouchEvent=l.type==="touchstart",!n.isTouchEvent&&"which"in l&&l.which===3)||!n.isTouchEvent&&"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;const c=!!a.noSwipingClass&&a.noSwipingClass!=="",u=t.composedPath?t.composedPath():t.path;c&&l.target&&l.target.shadowRoot&&u&&(d=$(u[0]));const f=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(a.noSwiping&&(m?closestElement(f,d[0]):d.closest(f)[0])){o.allowClick=!0;return}if(a.swipeHandler&&!d.closest(a.swipeHandler)[0])return;i.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,i.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const b=i.currentX,y=i.currentY,_=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,S=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(_&&(b<=S||b>=e.innerWidth-S))if(_==="prevent")t.preventDefault();else return;if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=b,i.startY=y,n.touchStartTime=now(),o.allowClick=!0,o.updateSize(),o.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),l.type!=="touchstart"){let C=!0;d.is(n.focusableElements)&&(C=!1,d[0].nodeName==="SELECT"&&(n.isTouched=!1)),r.activeElement&&$(r.activeElement).is(n.focusableElements)&&r.activeElement!==d[0]&&r.activeElement.blur();const T=C&&o.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||T)&&!d[0].isContentEditable&&l.preventDefault()}o.params.freeMode&&o.params.freeMode.enabled&&o.freeMode&&o.animating&&!a.cssMode&&o.freeMode.onTouchStart(),o.emit("touchStart",l)}function onTouchMove(t){const o=getDocument(),r=this,e=r.touchEventsData,{params:n,touches:a,rtlTranslate:i,enabled:s}=r;if(!s)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!e.isTouched){e.startMoving&&e.isScrolling&&r.emit("touchMoveOpposite",l);return}if(e.isTouchEvent&&l.type!=="touchmove")return;const d=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),c=l.type==="touchmove"?d.pageX:l.pageX,u=l.type==="touchmove"?d.pageY:l.pageY;if(l.preventedByNestedSwiper){a.startX=c,a.startY=u;return}if(!r.allowTouchMove){$(l.target).is(e.focusableElements)||(r.allowClick=!1),e.isTouched&&(Object.assign(a,{startX:c,startY:u,currentX:c,currentY:u}),e.touchStartTime=now());return}if(e.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop){if(r.isVertical()){if(u<a.startY&&r.translate<=r.maxTranslate()||u>a.startY&&r.translate>=r.minTranslate()){e.isTouched=!1,e.isMoved=!1;return}}else if(c<a.startX&&r.translate<=r.maxTranslate()||c>a.startX&&r.translate>=r.minTranslate())return}if(e.isTouchEvent&&o.activeElement&&l.target===o.activeElement&&$(l.target).is(e.focusableElements)){e.isMoved=!0,r.allowClick=!1;return}if(e.allowTouchCallbacks&&r.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;a.currentX=c,a.currentY=u;const f=a.currentX-a.startX,m=a.currentY-a.startY;if(r.params.threshold&&Math.sqrt(f**2+m**2)<r.params.threshold)return;if(typeof e.isScrolling>"u"){let S;r.isHorizontal()&&a.currentY===a.startY||r.isVertical()&&a.currentX===a.startX?e.isScrolling=!1:f*f+m*m>=25&&(S=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,e.isScrolling=r.isH
1132orizontal()?S>n.touchAngle:90-S>n.touchAngle)}if(e.isScrolling&&r.emit("touchMoveOpposite",l),typeof e.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(e.startMoving=!0),e.isScrolling){e.isTouched=!1;return}if(!e.startMoving)return;r.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation(),e.isMoved||(n.loop&&!n.cssMode&&r.loopFix(),e.startTranslate=r.getTranslate(),r.setTransition(0),r.animating&&r.$wrapperEl.trigger("webkitTransitionEnd transitionend"),e.allowMomentumBounce=!1,n.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)),r.emit("sliderMove",l),e.isMoved=!0;let b=r.isHorizontal()?f:m;a.diff=b,b*=n.touchRatio,i&&(b=-b),r.swipeDirection=b>0?"prev":"next",e.currentTranslate=b+e.startTranslate;let y=!0,_=n.resistanceRatio;if(n.touchReleaseOnEdges&&(_=0),b>0&&e.currentTranslate>r.minTranslate()?(y=!1,n.resistance&&(e.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+e.startTranslate+b)**_)):b<0&&e.currentTranslate<r.maxTranslate()&&(y=!1,n.resistance&&(e.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-e.startTranslate-b)**_)),y&&(l.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&e.currentTranslate<e.startTranslate&&(e.currentTranslate=e.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&e.currentTranslate>e.startTranslate&&(e.currentTranslate=e.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(e.currentTranslate=e.startTranslate),n.threshold>0)if(Math.abs(b)>n.threshold||e.allowThresholdMove){if(!e.allowThresholdMove){e.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,e.currentTranslate=e.startTranslate,a.diff=r.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{e.currentTranslate=e.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&r.freeMode||n.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),r.params.freeMode&&n.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(e.currentTranslate),r.setTranslate(e.currentTranslate))}function onTouchEnd(t){const o=this,r=o.touchEventsData,{params:e,touches:n,rtlTranslate:a,slidesGrid:i,enabled:s}=o;if(!s)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),r.allowTouchCallbacks&&o.emit("touchEnd",l),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&e.grabCursor&&o.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}e.grabCursor&&r.isMoved&&r.isTouched&&(o.allowSlideNext===!0||o.allowSlidePrev===!0)&&o.setGrabCursor(!1);const d=now(),c=d-r.touchStartTime;if(o.allowClick){const C=l.path||l.composedPath&&l.composedPath();o.updateClickedSlide(C&&C[0]||l.target),o.emit("tap click",l),c<300&&d-r.lastClickTime<300&&o.emit("doubleTap doubleClick",l)}if(r.lastClickTime=now(),nextTick(()=>{o.destroyed||(o.allowClick=!0)}),!r.isTouched||!r.isMoved||!o.swipeDirection||n.diff===0||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let u;if(e.followFinger?u=a?o.translate:-o.translate:u=-r.currentTranslate,e.cssMode)return;if(o.params.freeMode&&e.freeMode.enabled){o.freeMode.onTouchEnd({currentPos:u});return}let f=0,m=o.slidesSizesGrid[0];for(let C=0;C<i.length;C+=C<e.slidesPerGroupSkip?1:e.slidesPerGroup){const T=C<e.slidesPerGroupSkip-1?1:e.slidesPerGroup;typeof i[C+T]<"u"?u>=i[C]&&u<i[C+T]&&(f=C,m=i[C+T]-i[C]):u>=i[C]&&(f=C,m=i[i.length-1]-i[i.length-2])}let b=null,y=null;e.rewind&&(o.isBeginning?y=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1:o.isEnd&&(b=0));const _=(u-i[f])/m,S=f<e.slidesPerGroupSkip-1?1:e.slidesPerGroup;if(c>e.longSwipesMs){if(!e.longSwipes){o.slideTo(o.activeIndex);return}o.swipeDirection==="next"&&(_>=e.longSwipesRatio?o.slideTo(e.rewind&&o.isEnd?b:f+S):o.slideTo(f)),o.swipeDirection==="prev"&&(_>1-e.longSwipesRatio?o.slideTo(f+S):y!==null&&_<0&&Math.abs(_)>e.longSwipesRatio?o.slideTo(y):o.slideTo(f))}else{if(!e.shortSwipes){o.slideTo(o.activeIndex);return}o.navigation&&(l.target===o.navigation.nextEl||l.target===o.navigation.prevEl)?l.target===o.navigation.nextEl?o.slideTo(f+S):o.slideTo(f):(o.swipeDirection==="next"&&o.slideTo(b!==null?b:f+S),o.swipeDirection==="prev"&&o.slideTo(y!==null?y:f))}}function onResize(){const t=this,{params:o,el:r}=t;if(r&&r.offsetWidth===0)return;o.breakpoints&&t.setBreakpoint();const{allowSlideNext:e,allowSlidePrev:n,snapGrid:a}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),(o.slidesPerView==="auto"||o.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=n,t.allowSlideNext=e,t.params.watchOverflow&&a!==t.snapGrid&&t.checkOverflow()}function onClick(t){const o=this;o.enabled&&(o.allowClick||(o.params.preventClicks&&t.preventDefault(),o.params.preventClicksPropagation&&o.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function onScroll(){const t=this,{wrapperEl:o,rtlTranslate:r,enabled:e}=t;if(!e)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-o.scrollLeft:t.translate=-o.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const a=t.maxTranslate()-t.minTranslate();a===0?n=0:n=(t.translate-t.minTranslate())/a,n!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let dummyEventAttached=!1;function dummyEventListener(){}const events=(t,o)=>{const r=getDocument(),{params:e,touchEvents:n,el:a,wrapperEl:i,device:s,support:l}=t,d=!!e.nested,c=o==="on"?"addEventListener":"removeEventListener",u=o;if(!l.touch)a[c](n.start,t.onTouchStart,!1),r[c](n.move,t.onTouchMove,d),r[c](n.end,t.onTouchEnd,!1);else{const f=n.start==="touchstart"&&l.passiveListener&&e.passiveListeners?{passive:!0,capture:!1}:!1;a[c](n.start,t.onTouchStart,f),a[c](n.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:d}:d),a[c](n.end,t.onTouchEnd,f),n.cancel&&a[c](n.cancel,t.onTouchEnd,f)}(e.preventClicks||e.preventClicksPropagation)&&a[c]("click",t.onClick,!0),e.cssMode&&i[c]("scroll",t.onScroll),e.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):t[u]("observerUpdate",onResize,!0)};function attachEvents(){const t=this,o=getDocument(),{params:r,support:e}=t;
1132t.onTouchStart=onTouchStart.bind(t),t.onTouchMove=onTouchMove.bind(t),t.onTouchEnd=onTouchEnd.bind(t),r.cssMode&&(t.onScroll=onScroll.bind(t)),t.onClick=onClick.bind(t),e.touch&&!dummyEventAttached&&(o.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(t,"on")}function detachEvents(){events(this,"off")}const events$1={attachEvents,detachEvents},isGridEnabled=(t,o)=>t.grid&&o.grid&&o.grid.rows>1;function setBreakpoint(){const t=this,{activeIndex:o,initialized:r,loopedSlides:e=0,params:n,$el:a}=t,i=n.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=t.getBreakpoint(i,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const d=(s in i?i[s]:void 0)||t.originalParams,c=isGridEnabled(t,n),u=isGridEnabled(t,d),f=n.enabled;c&&!u?(a.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&u&&(a.addClass(`${n.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&n.grid.fill==="column")&&a.addClass(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(_=>{const S=n[_]&&n[_].enabled,C=d[_]&&d[_].enabled;S&&!C&&t[_].disable(),!S&&C&&t[_].enable()});const m=d.direction&&d.direction!==n.direction,b=n.loop&&(d.slidesPerView!==n.slidesPerView||m);m&&r&&t.changeDirection(),extend$1(t.params,d);const y=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!y?t.disable():!f&&y&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",d),b&&r&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(o-e+t.loopedSlides,0,!1)),t.emit("breakpoint",d)}function getBreakpoint(t,o="window",r){if(!t||o==="container"&&!r)return;let e=!1;const n=getWindow(),a=o==="window"?n.innerHeight:r.clientHeight,i=Object.keys(t).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:a*l,point:s}}return{value:s,point:s}});i.sort((s,l)=>
1132parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s<i.length;s+=1){const{point:l,value:d}=i[s];o==="window"?n.matchMedia(`(min-width: ${d}px)`).matches&&(e=l):d<=r.clientWidth&&(e=l)}return e||"max"}const breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(t,o){const r=[];return t.forEach(e=>{typeof e=="object"?Object.keys(e).forEach(n=>{e[n]&&r.push(o+n)}):typeof e=="string"&&r.push(o+e)}),r}function addClasses(){const t=this,{classNames:o,params:r,rtl:e,$el:n,device:a,support:i}=t,s=prepareClasses(["initialized",r.direction,{"pointer-events":!i.touch},{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:e},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);o.push(...s),n.addClass([...o].join(" ")),t.emitContainerClasses()}function removeClasses(){const t=this,{$el:o,classNames:r}=t;o.removeClass(r.join(" ")),t.emitContainerClasses()}const classes={addClasses,removeClasses};function loadImage(t,o,r,e,n,a){const i=getWindow();let s;function l(){a&&a()}!$(t).parent("picture")[0]&&(!t.complete||!n)&&o?(s=new i.Image,s.onload=l,s.onerror=l,e&&(s.sizes=e),r&&(s.srcset=r),o&&(s.src=o)):l()}function preloadImages(){const t=this;t.imagesToLoad=t.$el.find("img");function o(){typeof t>"u"||t===null||!t||t.destroyed||(t.imagesLoaded!==void 0&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}for(let r=0;r<t.imagesToLoad.length;r+=1){const e=t.imagesToLoad[r];t.loadImage(e,e.currentSrc||e.getAttribute("src"),e.srcset||e.getAttribute("srcset"),e.sizes||e.getAttribute("sizes"),!0,o)}}const images={loadImage,preloadImages};function checkOverflow(){const t=this,{isLocked:o,params:r}=t,{slidesOffsetBefore:e}=r;if(e){const n=t.slides.length-1,a=t.slidesGrid[n]+t.slidesSizesGrid[n]+e*2;t.isLocked=t.size>a}else t.isLocked=t.snapGrid.length===1;r.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),r.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),o&&o!==t.isLocked&&(t.isEnd=!1),o!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}const checkOverflow$1={checkOverflow},defaults={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(t,o){return function(e={}){const n=Object.keys(e)[0],a=e[n];if(typeof a!="object"||a===null){extend$1(o,e);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&t[n]===!0&&(t[n]={auto:!0}),!(n in t&&"enabled"in a)){extend$1(o,e);return}t[n]===!0&&(t[n]={enabled:!0}),typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),extend$1(o,e)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes,images},extendedDefaults={};let Swiper$1=class mn{constructor(...o){let r,e;if(o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?e=o[0]:[r,e]=o,e||(e={}),e=extend$1({},e),r&&!e.el&&(e.el=r),e.el&&$(e.el).length>1){const s=[];return $(e.el).each(l=>{const d=extend$1({},e,{el:l});s.push(new mn(d))}),s}const n=this;n.__swiper__=!0,n.support=getSupport(),n.device=getDevice({userAgent:e.userAgent}),n.browser=getBrowser(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],e.modules&&Array.isArray(e.modules)&&n.modules.push(...e.modules);const a={};
1132n.modules.forEach(s=>{s({swiper:n,extendParams:moduleExtendParams(e,a),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const i=extend$1({},defaults,a);return n.params=extend$1({},i,extendedDefaults,e),n.originalParams=extend$1({},n.params),n.passedParams=extend$1({},e),n.params&&n.params.on&&Object.keys(n.params.on).forEach(s=>{n.on(s,n.params.on[s])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=$,Object.assign(n,{enabled:n.params.enabled,el:r,classNames:[],slides:$(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],d=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},n.touchEventsDesktop={start:d[0],move:d[1],end:d[2]},n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){const o=this;o.enabled||(o.enabled=!0,o.params.grabCursor&&o.setGrabCursor(),o.emit("enable"))}disable(){const o=this;o.enabled&&(o.enabled=!1,o.params.grabCursor&&o.unsetGrabCursor(),o.emit("disable"))}setProgress(o,r){const e=this;o=Math.min(Math.max(o,0),1);const n=e.minTranslate(),i=(e.maxTranslate()-n)*o+n;e.translateTo(i,typeof r>"u"?0:r),e.updateActiveIndex(),e.updateSlidesClasses()}emitContainerClasses(){const o=this;if(!o.params._emitClasses||!o.el)return;const r=o.el.className.split(" ").filter(e=>e.indexOf("swiper")===0||e.indexOf(o.params.containerModifierClass)===0);o.emit("_containerClasses",r.join(" "))}getSlideClasses(o){const r=this;return r.destroyed?"":o.className.split(" ").filter(e=>e.indexOf("swiper-slide")===0||e.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const o=this;if(!o.params._emitClasses||!o.el)return;const r=[];o.slides.each(e=>{const n=o.getSlideClasses(e);r.push({slideEl:e,classNames:n}),o.emit("_slideClass",e,n)}),o.emit("_slideClasses",r)}slidesPerViewDynamic(o="current",r=!1){const e=this,{params:n,slides:a,slidesGrid:i,slidesSizesGrid:s,size:l,activeIndex:d}=e;let c=1;if(n.centeredSlides){let u=a[d].swiperSlideSize,f;for(let m=d+1;m<a.length;m+=1)a[m]&&!f&&(u+=a[m].swiperSlideSize,c+=1,u>l&&(f=!0));for(let m=d-1;m>=0;m-=1)a[m]&&!f&&(u+=a[m].swiperSlideSize,c+=1,u>l&&(f=!0))}else if(o==="current")for(let u=d+1;u<a.length;u+=1)(r?i[u]+s[u]-i[d]<l:i[u]-i[d]<l)&&(c+=1);else for(let u=d-1;u>=0;u-=1)i[d]-i[u]<l&&(c+=1);return c}update(){const o=this;if(!o||o.destroyed)return;const{snapGrid:r,params:e}=o;e.breakpoints&&o.setBreakpoint(),o.updateSize(),o.updateSlides(),o.updateProgress(),o.updateSlidesClasses();function n(){const i=o.rtlTranslate?o.translate*-1:o.translate,s=Math.min(Math.max(i,o.maxTranslate()),o.minTranslate());o.setTranslate(s),o.updateActiveIndex(),o.updateSlidesClasses()}let a;o.params.freeMode&&o.params.freeMode.enabled?(n(),o.params.autoHeight&&o.updateAutoHeight()):((o.params.slidesPerView==="auto"||o.params.slidesPerView>1)&&o.isEnd&&!o.params.centeredSlides?a=o.slideTo(o.slides.length-1,0,!1,!0):a=o.slideTo(o.activeIndex,0,!1,!0),a||n()),e.watchOverflow&&r!==o.snapGrid&&o.checkOverflow(),o.emit("update")}changeDirection(o,r=!0){const e=this,n=e.params.direction;return o||(o=n==="horizontal"?"vertical":"horizontal"),o===n||o!=="horizontal"&&o!=="vertical"||(e.$el.removeClass(`${e.params.containerModifierClass}${n}`).addClass(`${e.params.containerModifierClass}${o}`),e.emitContainerClasses(),e.params.direction=o,e.slides.each(a=>{o==="vertical"?a.style.width="":a.style.height=""}
1132),e.emit("changeDirection"),r&&e.update()),e}changeLanguageDirection(o){const r=this;r.rtl&&o==="rtl"||!r.rtl&&o==="ltr"||(r.rtl=o==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.$el.addClass(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.$el.removeClass(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(o){const r=this;if(r.mounted)return!0;const e=$(o||r.params.el);if(o=e[0],!o)return!1;o.swiper=r;const n=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(o&&o.shadowRoot&&o.shadowRoot.querySelector){const s=$(o.shadowRoot.querySelector(n()));return s.children=l=>e.children(l),s}return e.children?e.children(n()):$(e).children(n())})();if(i.length===0&&r.params.createElements){const l=getDocument().createElement("div");i=$(l),l.className=r.params.wrapperClass,e.append(l),e.children(`.${r.params.slideClass}`).each(d=>{i.append(d)})}return Object.assign(r,{$el:e,el:o,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||e.css("direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||e.css("direction")==="rtl"),wrongRTL:i.css("display")==="-webkit-box"}),!0}init(o){const r=this;return r.initialized||r.mount(o)===!1||(r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.params.loop&&r.loopCreate(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.preloadImages&&r.preloadImages(),r.params.loop?r.slideTo(r.params.initialSlide+r.loopedSlides,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.attachEvents(),r.initialized=!0,r.emit("init"),r.emit("afterInit")),r}destroy(o=!0,r=!0){const e=this,{params:n,$el:a,$wrapperEl:i,slides:s}=e;return typeof e.params>"u"||e.destroyed||(e.emit("beforeDestroy"),e.initialized=!1,e.detachEvents(),n.loop&&e.loopDestroy(),r&&(e.removeClasses(),a.removeAttr("style"),i.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),e.emit("destroy"),Object.keys(e.eventsListeners).forEach(l=>{e.off(l)}),o!==!1&&(e.$el[0].swiper=null,deleteProps(e)),e.destroyed=!0),null}static extendDefaults(o){extend$1(extendedDefaults,o)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(o){mn.prototype.__modules__||(mn.prototype.__modules__=[]);const r=mn.prototype.__modules__;typeof o=="function"&&r.indexOf(o)<0&&r.push(o)}static use(o){return Array.isArray(o)?(o.forEach(r=>mn.installModule(r)),mn):(mn.installModule(o),mn)}};Object.keys(prototypes).forEach(t=>{Object.keys(prototypes[t]).forEach(o=>{Swiper$1.prototype[o]=prototypes[t][o]})});Swiper$1.use([Resize,Observer$1]);function Keyboard({swiper:t,extendParams:o,on:r,emit:e}){const n=getDocument(),a=getWindow();t.keyboard={enabled:!1},o({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function i(d){if(!t.enabled)return;const{rtlTranslate:c}=t;let u=d;u.originalEvent&&(u=u.originalEvent);const f=u.keyCode||u.charCode,m=t.params.keyboard.pageUpDown,b=m&&f===33,y=m&&f===34,_=f===37,S=f===39,C=f===38,T=f===40;if(!t.allowSlideNext&&(t.isHorizontal()&&S||t.isVertical()&&T||y)||!t.allowSlidePrev&&(t.isHorizontal()&&_||t.isVertical()&&C||b))return!1;if(!(u.shiftKey||u.altKey||u.ctrlKey||u.metaKey)&&!(n.activeElement&&n.activeElement.nodeName&&(n.activeElement.nodeName.toLowerCase()==="input"||n.activeElement.nodeName.toLowerCase()==="textarea"))){if(t.params.keyboard.onlyInViewport&&(b||y||_||S||C||T)){let x=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&t.$el.parents(`.${t.params.slideActiveClass}`).length===0)return;const k=t.$el,E=k[0].clientWidth,w=k[0].clientHeight,D=a.innerWidth,N=a.innerHeight,F=t.$el.offset();c&&(F.left-=t.$el[0].scrollLeft);const V=[[F.left,F.top],[F.left+E,F.top],[F.left,F.top+w],[F.left+E,F.top+w]];for(let A=0;A<V.length;A+=1){const M=V[A];if(M[0]>=0&&M[0]<=D&&M[1]>=0&&M[1]<=N){if(M[0]===0&&M[1]===0)continue;x=!0}}if(!x)return}t.isHorizontal()?((b||y||_||S)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),((y||S)&&!c||(b||_)&&c)&&t.slideNext(),((b||_)&&!c||(y||S)&&c)&&t.slidePrev()):((b||y||C||T)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),(y||T)&&t.slideNext(),(b||C)&&t.slidePrev()),e("keyPress",f)}}function s(){t.keyboard.enabled||($(n).on("keydown",i),t.keyboard.enabled=!0)}function l(){t.keyboard.enabled&&($(n).off("keydown",i),t.keyboard.enabled=!1)}r("init",()=>{t.params.keyboard.enabled&&s()}),r("destroy",()=>{t.keyboard.enabled&&l()}),Object.assign(t.keyboard,{enable:s,disable:l})}function Mousewheel({swiper:t,extendParams:o,on:r,emit:e}){const n=getWindow();o({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let a,i=now(),s;const l=[];function d(C){let E=0,w=0,D=0,N=0;return"detail"in C&&(w=C.detail),"wheelDelta"in C&&(w=-C.wheelDelta/120),"wheelDeltaY"in C&&(w=-C.wheelDeltaY/120
vendor: 5,693 bytes, line 1132
1132),"wheelDeltaX"in C&&(E=-C.wheelDeltaX/120),"axis"in C&&C.axis===C.HORIZONTAL_AXIS&&(E=w,w=0),D=E*10,N=w*10,"deltaY"in C&&(N=C.deltaY),"deltaX"in C&&(D=C.deltaX),C.shiftKey&&!D&&(D=N,N=0),(D||N)&&C.deltaMode&&(C.deltaMode===1?(D*=40,N*=40):(D*=800,N*=800)),D&&!E&&(E=D<1?-1:1),N&&!w&&(w=N<1?-1:1),{spinX:E,spinY:w,pixelX:D,pixelY:N}}function c(){t.enabled&&(t.mouseEntered=!0)}function u(){t.enabled&&(t.mouseEntered=!1)}function f(C){return t.params.mousewheel.thresholdDelta&&C.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&now()-i<t.params.mousewheel.thresholdTime?!1:C.delta>=6&&now()-i<60?!0:(C.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),e("scroll",C.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),e("scroll",C.raw)),i=new n.Date().getTime(),!1)}function m(C){const T=t.params.mousewheel;if(C.direction<0){if(t.isEnd&&!t.params.loop&&T.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&T.releaseOnEdges)return!0;return!1}function b(C){let T=C,x=!0;if(!t.enabled)return;const k=t.params.mousewheel;t.params.cssMode&&T.preventDefault();let E=t.$el;if(t.params.mousewheel.eventsTarget!=="container"&&(E=$(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!E[0].contains(T.target)&&!k.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let w=0;const D=t.rtlTranslate?-1:1,N=d(T);if(k.forceToAxis)if(t.isHorizontal())if(Math.abs(N.pixelX)>Math.abs(N.pixelY))w=-N.pixelX*D;else return!0;else if(Math.abs(N.pixelY)>Math.abs(N.pixelX))w=-N.pixelY;else return!0;else w=Math.abs(N.pixelX)>Math.abs(N.pixelY)?-N.pixelX*D:-N.pixelY;if(w===0)return!0;k.invert&&(w=-w);let F=t.getTranslate()+w*k.sensitivity;if(F>=t.minTranslate()&&(F=t.minTranslate()),F<=t.maxTranslate()&&(F=t.maxTranslate()),x=t.params.loop?!0:!(F===t.minTranslate()||F===t.maxTranslate()),x&&t.params.nested&&T.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){const V={time:now(),delta:Math.abs(w),direction:Math.sign(w),raw:C};l.length>=2&&l.shift();const A=l.length?l[l.length-1]:void 0;if(l.push(V),A?(V.direction!==A.direction||V.delta>A.delta||V.time>A.time+150)&&f(V):f(V),m(V))return!0}else{const V={time:now(),delta:Math.abs(w),direction:Math.sign(w)},A=s&&V.time<s.time+500&&V.delta<=s.delta&&V.direction===s.direction;if(!A){s=void 0,t.params.loop&&t.loopFix();let M=t.getTranslate()+w*k.sensitivity;const O=t.isBeginning,R=t.isEnd;if(M>=t.minTranslate()&&(M=t.minTranslate()),M<=t.maxTranslate()&&(M=t.maxTranslate()),t.setTransition(0),t.setTranslate(M),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!O&&t.isBeginning||!R&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(a),a=void 0,l.length>=15&&l.shift();const I=l.length?l[l.length-1]:void 0,j=l[0];if(l.push(V),I&&(V.delta>I.delta||V.direction!==I.direction))l.splice(0);else if(l.length>=15&&V.time-j.time<500&&j.delta-V.delta>=1&&V.delta<=6){const H=w>0?.8:.2;s=V,l.splice(0),a=nextTick(()=>{t.slideToClosest(t.params.speed,!0,void 0,H)},0)}a||(a=nextTick(()=>{s=V,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(A||e("scroll",T),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),M===t.minTranslate()||M===t.maxTranslate())return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function y(C){let T=t.$el;t.params.mousewheel.eventsTarget!=="container"&&(T=$(t.params.mousewheel.eventsTarget)),T[C]("mouseenter",c),T[C]("mouseleave",u),T[C]("wheel",b)}function _(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",b),!0):t.mousewheel.enabled?!1:(y("on"),t.mousewheel.enabled=!0,!0)}function S(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,b),!0):t.mousewheel.enabled?(y("off"),t.mousewheel.enabled=!1,!0):!1}r("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&S(),t.params.mousewheel.enabled&&_()}),r("destroy",()=>{t.params.cssMode&&_(),t.mousewheel.enabled&&S()}),Object.assign(t.mousewheel,{enable:_,disable:S})}function createElementIfNotDefined(t,o,r,e){const n=getDocument();return t.params.createElements&&Object.keys(e).forEach(a=>{if(!r[a]&&r.auto===!0){let i=t.$el.children(`.${e[a]}`)[0];i||(i=n.createElement("div"),i.className=e[a],t.$el.append(i)),r[a]=i,o[a]=i}}),r}function Navigation({swiper:t,extendParams:o,on:r,emit:e}){o({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function n(m){let b;return m&&(b=$(m),t.params.uniqueNavElements&&typeof m=="string"&&b.length>1&&t.$el.find(m).length===1&&(b=t.$el.find(m))),b}function a(m,b){const y=t.params.navigation;m&&m.length>0&&(m[b?"addClass":"removeClass"](y.disabledClass),m[0]&&m[0].tagName==="BUTTON"&&(m[0].disabled=b),t.params.watchOverflow&&t.enabled&&m[t.isLocked?"addClass":"removeClass"](y.lockClass))}function i(){if(t.params.loop)return;const{$nextEl:m,$prevEl:b}=t.navigation;a(b,t.isBeginning&&!t.params.rewind),a(m,t.isEnd&&!t.params.rewind)}function s(m){m.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),e("navigationPrev"))}function l(m){m.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),e("navigationNext"))}function d(){const m=t.params.navigation;if(t.params.navigation=createElementIfNotDefined(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;const b=n(m.nextEl),y=n(m.prevEl);b&&b.length>0&&b.on("click",l),y&&y.length>
11320&&y.on("click",s),Object.assign(t.navigation,{$nextEl:b,nextEl:b&&b[0],$prevEl:y,prevEl:y&&y[0]}),t.enabled||(b&&b.addClass(m.lockClass),y&&y.addClass(m.lockClass))}function c(){const{$nextEl:m,$prevEl:b}=t.navigation;m&&m.length&&(m.off("click",l),m.removeClass(t.params.navigation.disabledClass)),b&&b.length&&(b.off("click",s),b.removeClass(t.params.navigation.disabledClass))}r("init",()=>{t.params.navigation.enabled===!1?f():(d(),i())}),r("toEdge fromEdge lock unlock",()=>{i()}),r("destroy",()=>{c()}),r("enable disable",()=>{const{$nextEl:m,$prevEl:b}=t.navigation;m&&m[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),b&&b[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)}),r("click",(m,b)=>{const{$nextEl:y,$prevEl:_}=t.navigation,S=b.target;if(t.params.navigation.hideOnClick&&!$(S).is(_)&&!$(S).is(y)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===S||t.pagination.el.contains(S)))return;let C;y?C=y.hasClass(t.params.navigation.hiddenClass):_&&(C=_.hasClass(t.params.navigation.hiddenClass)),e(C===!0?"navigationShow":"navigationHide"),y&&y.toggleClass(t.params.navigation.hiddenClass),_&&_.toggleClass(t.params.navigation.hiddenClass)}});const u=()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),d(),i()},f=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),c()};Object.assign(t.navigation,{enable:u,disable:f,update:i,init:d,destroy:c})}function classesToSelector(t=""){return`.${t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination({swiper:t,extendParams:o,on:r,emit:e}){const n="swiper-pagination";o({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:y=>y,formatFractionTotal:y=>y,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let a,i=0;function s(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0}function l(y,_){const{bulletActiveClass:S}=t.params.pagination;y[_]().addClass(`${S}-${_}`)[_]().addClass(`${S}-${_}-${_}`)}function d(){const y=t.rtl,_=t.params.pagination;if(s())return;const S=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,C=t.pagination.$el;let T;const x=t.params.loop?Math.ceil((S-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(T=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),T>S-1-t.loopedSlides*2&&(T-=S-t.loopedSlides*2),T>x-1&&(T-=x),T<0&&t.params.paginationType!=="bullets"&&(T=x+T)):typeof t.snapIndex<"u"?T=t.snapIndex:T=t.activeIndex||0,_.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const k=t.pagination.bullets;let E,w,D;if(_.dynamicBullets&&(a=k.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),C.css(t.isHorizontal()?"width":"height",`${a*(_.dynamicMainBullets+4)}px`),_.dynamicMainBullets>1&&t.previousIndex!==void 0&&(i+=T-(t.previousIndex-t.loopedSlides||0),i>_.dynamicMainBullets-1?i=_.dynamicMainBullets-1:i<0&&(i=0)),E=Math.max(T-i,0),w=E+(Math.min(k.length,_.dynamicMainBullets)-1),D=(w+E)/2),k.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${_.bulletActiveClass}${N}`).join(" ")),C.length>1)k.each(N=>{const F=$(N),V=F.index();V===T&&F.addClass(_.bulletActiveClass),_.dynamicBullets&&(V>=E&&V<=w&&F.addClass(`${_.bulletActiveClass}-main`),V===E&&l(F,"prev"),V===w&&l(F,"next"))});else{const N=k.eq(T),F=N.index();if(N.addClass(_.bulletActiveClass),_.dynamicBullets){const V=k.eq(E),A=k.eq(w);for(let M=E;M<=w;M+=1)k.eq(M).addClass(`${_.bulletActiveClass}-main`);if(t.params.loop)if(F>=k.length){for(let M=_.dynamicMainBullets;M>=0;M-=1)k.eq(k.length-M).addClass(`${_.bulletActiveClass}-main`);k.eq(k.length-_.dynamicMainBullets-1).addClass(`${_.bulletActiveClass}-prev`)}else l(V,"prev"),l(A,"next");else l(V,"prev"),l(A,"next")}}if(_.dynamicBullets){const N=Math.min(k.length,_.dynamicMainBullets+4),F=(a*N-a)/2-D*a,V=y?"right":"left";k.css(t.isHorizontal()?V:"top",`${F}px`)}}if(_.type==="fraction"&&(C.find(classesToSelector(_.currentClass)).text(_.formatFractionCurrent(T+1)),C.find(classesToSelector(_.totalClass)).text(_.formatFractionTotal(x))),_.type==="progressbar"){let k;
1132_.progressbarOpposite?k=t.isHorizontal()?"vertical":"horizontal":k=t.isHorizontal()?"horizontal":"vertical";const E=(T+1)/x;let w=1,D=1;k==="horizontal"?w=E:D=E,C.find(classesToSelector(_.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${w}) scaleY(${D})`).transition(t.params.speed)}_.type==="custom"&&_.renderCustom?(C.html(_.renderCustom(t,T+1,x)),e("paginationRender",C[0])):e("paginationUpdate",C[0]),t.params.watchOverflow&&t.enabled&&C[t.isLocked?"addClass":"removeClass"](_.lockClass)}function c(){const y=t.params.pagination;if(s())return;const _=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,S=t.pagination.$el;let C="";if(y.type==="bullets"){let T=t.params.loop?Math.ceil((_-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&T>_&&(T=_);for(let x=0;x<T;x+=1)y.renderBullet?C+=y.renderBullet.call(t,x,y.bulletClass):C+=`<${y.bulletElement} class="${y.bulletClass}"></${y.bulletElement}>`;S.html(C),t.pagination.bullets=S.find(classesToSelector(y.bulletClass))}y.type==="fraction"&&(y.renderFraction?C=y.renderFraction.call(t,y.currentClass,y.totalClass):C=`<span class="${y.currentClass}"></span> / <span class="${y.totalClass}"></span>`,S.html(C)),y.type==="progressbar"&&(y.renderProgressbar?C=y.renderProgressbar.call(t,y.progressbarFillClass):C=`<span class="${y.progressbarFillClass}"></span>`,S.html(C)),y.type!=="custom"&&e("paginationRender",t.pagination.$el[0])}function u(){t.params.pagination=createElementIfNotDefined(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const y=t.params.pagination;if(!y.el)return;let _=$(y.el);_.length!==0&&(t.params.uniqueNavElements&&typeof y.el=="string"&&_.length>1&&(_=t.$el.find(y.el),_.length>1&&(_=_.filter(S=>$(S).parents(".swiper")[0]===t.el))),y.type==="bullets"&&y.clickable&&_.addClass(y.clickableClass),_.addClass(y.modifierClass+y.type),_.addClass(t.isHorizontal()?y.horizontalClass:y.verticalClass),y.type==="bullets"&&y.dynamicBullets&&(_.addClass(`${y.modifierClass}${y.type}-dynamic`),i=0,y.dynamicMainBullets<1&&(y.dynamicMainBullets=1)),y.type==="progressbar"&&y.progressbarOpposite&&_.addClass(y.progressbarOppositeClass),y.clickable&&_.on("click",classesToSelector(y.bulletClass),function(C){C.preventDefault();let T=$(this).index()*t.params.slidesPerGroup;t.params.loop&&(T+=t.loopedSlides),t.slideTo(T)}),Object.assign(t.pagination,{$el:_,el:_[0]}),t.enabled||_.addClass(y.lockClass))}function f(){const y=t.params.pagination;if(s())return;const _=t.pagination.$el;_.removeClass(y.hiddenClass),_.removeClass(y.modifierClass+y.type),_.removeClass(t.isHorizontal()?y.horizontalClass:y.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(y.bulletActiveClass),y.clickable&&_.off("click",classesToSelector(y.bulletClass))}r("init",()=>{t.params.pagination.enabled===!1?b():(u(),c(),d())}),r("activeIndexChange",()=>{(t.params.loop||typeof t.snapIndex>"u")&&d()}),r("snapIndexChange",()=>{t.params.loop||d()}),r("slidesLengthChange",()=>{t.params.loop&&(c(),d())}),r("snapGridLengthChange",()=>{t.params.loop||(c(),d())}),r("destroy",()=>{f()}),r("enable disable",()=>{const{$el:y}=t.pagination;y&&y[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)}),r("lock unlock",()=>{d()}),r("click",(y,_)=>{const S=_.target,{$el:C}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&C&&C.length>0&&!$(S).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&S===t.navigation.nextEl||t.navigation.prevEl&&S===t.navigation.prevEl))return;const T=C.hasClass(t.params.pagination.hiddenClass);e(T===!0?"paginationShow":"paginationHide"),C.toggleClass(t.params.pagination.hiddenClass)}});const m=()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),u(),c(),d()},b=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),f()};Object.assign(t.pagination,{enable:m,disable:b,render:c,update:d,init:u,destroy:f})}function Scrollbar({swiper:t,extendParams:o,on:r,emit:e}){const n=getDocument();let a=!1,i=null,s=null,l,d,c,u;o({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null};function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:V,rtlTranslate:A,progress:M}=t,{$dragEl:O,$el:R}=V,I=t.params.scrollbar;let j=d,H=(c-d)*M;A?(H=-H,H>0?(j=d-H,H=0):-H+d>c&&(j=c+H)):H<0?(j=d+H,H=0):H+d>c&&(j=c-H),t.isHorizontal()?(O.transform(`translate3d(${H}px, 0, 0)`),O[0].style.width=`${j}px`):(O.transform(`translate3d(0px, ${H}px, 0)`),O[0].style.height=`${j}px`),I.hide&&(clearTimeout(i),R[0].style.opacity=1,i=setTimeout(()=>{R[0].style.opacity=0,R.transition(400)},1e3))}function m(V){!t.params.scrollbar.el||!t.scrollbar.el||t.scrollbar.$dragEl.transition(V)}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:V}=t,{$dragEl:A,$el:M}=V;A[0].style.width="",A[0].style.height="",c=t.isHorizontal()?M[0].offsetWidth:M[0].offsetHeight,u=t.
1132size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?d=c*u:d=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?A[0].style.width=`${d}px`:A[0].style.height=`${d}px`,u>=1?M[0].style.display="none":M[0].style.display="",t.params.scrollbar.hide&&(M[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&V.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function y(V){return t.isHorizontal()?V.type==="touchstart"||V.type==="touchmove"?V.targetTouches[0].clientX:V.clientX:V.type==="touchstart"||V.type==="touchmove"?V.targetTouches[0].clientY:V.clientY}function _(V){const{scrollbar:A,rtlTranslate:M}=t,{$el:O}=A;let R;R=(y(V)-O.offset()[t.isHorizontal()?"left":"top"]-(l!==null?l:d/2))/(c-d),R=Math.max(Math.min(R,1),0),M&&(R=1-R);const I=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*R;t.updateProgress(I),t.setTranslate(I),t.updateActiveIndex(),t.updateSlidesClasses()}function S(V){const A=t.params.scrollbar,{scrollbar:M,$wrapperEl:O}=t,{$el:R,$dragEl:I}=M;a=!0,l=V.target===I[0]||V.target===I?y(V)-V.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,V.preventDefault(),V.stopPropagation(),O.transition(100),I.transition(100),_(V),clearTimeout(s),R.transition(0),A.hide&&R.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),e("scrollbarDragStart",V)}function C(V){const{scrollbar:A,$wrapperEl:M}=t,{$el:O,$dragEl:R}=A;a&&(V.preventDefault?V.preventDefault():V.returnValue=!1,_(V),M.transition(0),O.transition(0),R.transition(0),e("scrollbarDragMove",V))}function T(V){const A=t.params.scrollbar,{scrollbar:M,$wrapperEl:O}=t,{$el:R}=M;a&&(a=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),O.transition("")),A.hide&&(clearTimeout(s),s=nextTick(()=>{R.css("opacity",0),R.transition(400)},1e3)),e("scrollbarDragEnd",V),A.snapOnRelease&&t.slideToClosest())}function x(V){const{scrollbar:A,touchEventsTouch:M,touchEventsDesktop:O,params:R,support:I}=t,j=A.$el;if(!j)return;const H=j[0],U=I.passiveListener&&R.passiveListeners?{passive:!1,capture:!1}:!1,B=I.passiveListener&&R.passiveListeners?{passive:!0,capture:!1}:!1;if(!H)return;const L=V==="on"?"addEventListener":"removeEventListener";I.touch?(H[L](M.start,S,U),H[L](M.move,C,U),H[L](M.end,T,B)):(H[L](O.start,S,U),n[L](O.move,C,U),n[L](O.end,T,B))}function k(){!t.params.scrollbar.el||!t.scrollbar.el||x("on")}function E(){!t.params.scrollbar.el||!t.scrollbar.el||x("off")}function w(){const{scrollbar:V,$el:A}=t;t.params.scrollbar=createElementIfNotDefined(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const M=t.params.scrollbar;if(!M.el)return;let O=$(M.el);t.params.uniqueNavElements&&typeof M.el=="string"&&O.length>1&&A.find(M.el).length===1&&(O=A.find(M.el)),O.addClass(t.isHorizontal()?M.horizontalClass:M.verticalClass);let R=O.find(`.${t.params.scrollbar.dragClass}`);R.length===0&&(R=$(`<div class="${t.params.scrollbar.dragClass}"></div>`),O.append(R)),Object.assign(V,{$el:O,el:O[0],$dragEl:R,dragEl:R[0]}),M.draggable&&k(),O&&O[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function D(){const V=t.params.scrollbar,A=t.scrollbar.$el;A&&A.removeClass(t.isHorizontal()?V.horizontalClass:V.verticalClass),E()}r("init",()=>{t.params.scrollbar.enabled===!1?F():(w(),b(),f())}),r("update resize observerUpdate lock unlock",()=>{b()}),r("setTranslate",()=>{f()}),r("setTransition",(V,A)=>{m(A)}),r("enable disable",()=>{const{$el:V}=t.scrollbar;V&&V[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}),r("destroy",()=>{D()});const N=()=>{t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),w(),b(),f()},F=()=>{t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),D()};Object.assign(t.scrollbar,{enable:N,disable:F,updateSize:b,setTranslate:f,init:w,destroy:D})}function Lazy({swiper:t,extendParams:o,on:r,emit:e}){o({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let n=!1,a=!1;function i(d,c=!0){const u=t.params.lazy;if(typeof d>"u"||t.slides.length===0)return;const m=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${d}"]`):t.slides.eq(d),b=m.find(`.${u.elementClass}:not(.${u.loadedClass}):not(.${u.loadingClass})`);m.hasClass(u.elementClass)&&!m.hasClass(u.loadedClass)&&!m.hasClass(u.loadingClass)&&b.push(m[0]),b.length!==0&&b.each(y=>{const _=$(y);_.addClass(u.loadingClass);const S=_.attr("data-background"),C=_.attr("data-src"),T=_.attr("data-srcset"),x=_.attr("data-sizes"),k=_.parent("picture");t.loadImage(_[0],C||S,T,x,!1,()=>{if(!(typeof t>"u"||t===null||!t||t&&!t.params||t.destroyed)){if(S?(_.css("background-image",`url("${S}")`),_.removeAttr("data-background")):(T&&(_.attr("srcset",T),_.removeAttr("data-srcset")),x&&(_.attr("sizes",x),_.removeAttr("data-sizes")),k.length&&k.children("source").each(E=>{const w=$(E);w.attr("data-srcset")&&(w.attr("srcset",w.attr("data-srcset")),w.removeAttr("data-srcset"))}),C&&(_.attr("src",C),_.removeAttr("data-src"))),_.addClass(u.loadedClass).removeClass(u.loadingClass),m.find(`.${u.preloaderClass}`).remove(),t.params.loop&&c){const E=m.attr("data-swiper-slide-index");if(m.hasClass(t.params.slideDuplicateClass)){const w=t.$wrapperEl.children(`[data-swiper-slide-index="${E}"]:not(.${t.params.slideDuplicateClass})`);i(w.index(),!1)}else{const w=t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${E}"]`);i(w.index(),!1)}}e("lazyImageReady",m[0],_[0]),t.params.autoHeight&&t.updateAutoHeight()}}),e("lazyImageLoad",m[0],_[0])})}function s(){const{$wrapperEl:d,params:c,slides:u,activeIndex:f}=t,m=t.virtual&&c.virtual.enabled,b=c.lazy;let y=c.slidesPerView;y==="auto"&&(y=0);function _(C){if(m){if(d.children(`.${c.slideClass}[data-swiper-slide-index="${C}"]`).length)return!0}else if(u[C])return!0;return!1}function S(C){return m?$(C).attr("data-swiper-slide-index"):$(C).index()}if(a||(a=!0),t.params.watchSlidesProgress)d.children(`.${c.slideVisibleClass}`).each(C=>{const T=m?$(C).attr("data-swiper-slide-index"):$(C).index();i(T)});else if(y>1)for(let C=f;C<f+y;C+=1)_(C)&&i(C);else i(f);if(b.loadPrevNext)if(y>1||b.loadPrevNextAmount&&b.loadPrevNextAmount>1){const C=b.loadPrevNextAmount,T=Math.ceil(y),x=Math.min(f+T+Math.max(C,T),u.length),k=Math.max(f-Math.max(T,C),0);for(let E=f+T;E<x;E+=1)_(E)&&i(E);for(let E=k;E<f;E+=1)_(E)&&i(E)}else{const C=d.children(`.${c.slideNextClass}`);C.length>0&&i(S(C));const T=d.children(`.${c.slidePrevClass}`);T.length>0&&i(S(T))}}function l(){const d=getWindow();if(!t||t.destroyed)return;const c=t.params.lazy.scrollingElement?$(t.params.lazy.scrollingElement):$(d),u=c[0]===d,f=u?d.innerWidth:c[0].offsetWidth,m=u?d.innerHeight:c[0].offsetHeight,b=t.$el.offset(),{rtlTranslate:y}=t;let _=!1;y&&(b.left-=t.$el[0].scrollLeft);const S=[[b.left,b.top],[b.left+t.width,b.top],[b.left,b.top+t.height],[b.left+t.width,b.top+t.height]];for(let T=0;T<S.length;T+=1){const x=S[T];if(x[0]>=0&&x[0]<=f&&x[1]>=0&&x[1]<=m){if(x[0]===0&&x[1]===0)continue;_=!0}}const C=t.touchEvents.start==="touchstart"&&t.support.passiveListener&&t.params.passiveListeners?{passive:!0,capture:!1}:!1;_?(s(),c.off("scroll",l,C)):n||(n=!0,c.on("scroll",l,C))}r("beforeInit",()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)}),r("init",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?l():s())}),r("scroll",()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&s()}),r("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?l():s())}),r("transitionStart",()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!a)&&(t.params.lazy.checkInView?l():s())}),r("transitionEnd",()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?l():s())}),r("slideChange",()=>{const{lazy:d,cssMode:c,watchSlidesProgress:u,touchReleaseOnEdges:f,resistanceRatio:m}=t.params;d.enabled&&(c||u&&(f||m===0))&&s()}),r("destroy",()=>{t.$el&&t.$el.find(`.${t.params.lazy.loadingClass}`).removeClass(t.params.lazy.loadingClass)}),Object.assign(t.lazy,{load:s,loadInSlide:i})}function A11y({swiper:t,extendParams:o,on:r}){o({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let e=null;function n(A){const M=e;M.length!==0&&(M.html(""),M.html(A))}function a(A=16){const M=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(A).replace(/x/g,M)}function i(A){A.attr("tabIndex","0")}function s(A){A.attr("tabIndex","-1")}function l(A,M){A.attr("role",M)}function d(A,M){A.attr("aria-roledescription",M)}function c(A,M){A.attr("aria-controls",M)}function u(A,M){A.attr("aria-label",M)}function f(A,M){A.attr("id",M)}function m(A,M){A.attr("aria-live",M)}function b(A){A.attr("aria-disabled",!0)}function y(A){A.attr("aria-disabled",!1)}function _(A){if(A.keyCode!==13&&A.keyCode!==32)return;const M=t.params.a11y,O=$(A.target);t.navigation&&t.navigation.$nextEl&&O.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?n(M.lastSlideMessage):n(M.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&O.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?n(M.firstSlideMessage):n(M.prevSlideMessage)),t.pagination&&O.is(classe
1132sToSelector(t.params.pagination.bulletClass))&&O[0].click()}function S(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:A,$prevEl:M}=t.navigation;M&&M.length>0&&(t.isBeginning?(b(M),s(M)):(y(M),i(M))),A&&A.length>0&&(t.isEnd?(b(A),s(A)):(y(A),i(A)))}function C(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function T(){return C()&&t.params.pagination.clickable}function x(){const A=t.params.a11y;C()&&t.pagination.bullets.each(M=>{const O=$(M);t.params.pagination.clickable&&(i(O),t.params.pagination.renderBullet||(l(O,"button"),u(O,A.paginationBulletMessage.replace(/\{\{index\}\}/,O.index()+1)))),O.is(`.${t.params.pagination.bulletActiveClass}`)?O.attr("aria-current","true"):O.removeAttr("aria-current")})}const k=(A,M,O)=>{i(A),A[0].tagName!=="BUTTON"&&(l(A,"button"),A.on("keydown",_)),u(A,O),c(A,M)},E=()=>{t.a11y.clicked=!0},w=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},D=A=>{if(t.a11y.clicked)return;const M=A.target.closest(`.${t.params.slideClass}`);if(!M||!t.slides.includes(M))return;const O=t.slides.indexOf(M)===t.activeIndex,R=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(M);O||R||A.sourceCapabilities&&A.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(M),0))},N=()=>{const A=t.params.a11y;A.itemRoleDescriptionMessage&&d($(t.slides),A.itemRoleDescriptionMessage),A.slideRole&&l($(t.slides),A.slideRole);const M=t.params.loop?t.slides.filter(O=>!O.classList.contains(t.params.slideDuplicateClass)).length:t.slides.length;A.slideLabelMessage&&t.slides.each((O,R)=>{const I=$(O),j=t.params.loop?parseInt(I.attr("data-swiper-slide-index"),10):R,H=A.slideLabelMessage.replace(/\{\{index\}\}/,j+1).replace(/\{\{slidesLength\}\}/,M);u(I,H)})},F=()=>{const A=t.params.a11y;t.$el.append(e);const M=t.$el;A.containerRoleDescriptionMessage&&d(M,A.containerRoleDescriptionMessage),A.containerMessage&&u(M,A.containerMessage);const O=t.$wrapperEl,R=A.id||O.attr("id")||`swiper-wrapper-${a(16)}`,I=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";f(O,R),m(O,I),N();let j,H;t.navigation&&t.navigation.$nextEl&&(j=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(H=t.navigation.$prevEl),j&&j.length&&k(j,R,A.nextSlideMessage),H&&H.length&&k(H,R,A.prevSlideMessage),T()&&t.pagination.$el.on("keydown",classesToSelector(t.params.pagination.bulletClass),_),t.$el.on("focus",D,!0),t.$el.on("pointerdown",E,!0),t.$el.on("pointerup",w,!0)};function V(){e&&e.length>0&&e.remove();let A,M;t.navigation&&t.navigation.$nextEl&&(A=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(M=t.navigation.$prevEl),A&&A.off("keydown",_),M&&M.off("keydown",_),T()&&t.pagination.$el.off("keydown",classesToSelector(t.params.pagination.bulletClass),_),t.$el.off("focus",D,!0),t.$el.off("pointerdown",E,!0),t.$el.off("pointerup",w,!0)}r("beforeInit",()=>{e=$(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}),r("afterInit",()=>{t.params.a11y.enabled&&F()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&N()}),r("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&S()}),r("paginationUpdate",()=>{t.params.a11y.enabled&&x()}),r("destroy",()=>{t.params.a11y.enabled&&V()})}function Autoplay({swiper:t,extendParams:o,on:r,emit:e}){let n;t.autoplay={running:!1,paused:!1},o({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function a(){if(!t.size){t.autoplay.running=!1,t.autoplay.paused=!1;return}const y=t.slides.eq(t.activeIndex);let _=t.params.autoplay.delay;y.attr("data-swiper-autoplay")&&(_=y.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(n),n=nextTick(()=>{let S;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),S=t.slidePrev(t.params.speed,!0,!0),e("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?s():(S=t.slideTo(t.slides.length-1,t.params.speed,!0,
1132!0),e("autoplay")):(S=t.slidePrev(t.params.speed,!0,!0),e("autoplay")):t.params.loop?(t.loopFix(),S=t.slideNext(t.params.speed,!0,!0),e("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?s():(S=t.slideTo(0,t.params.speed,!0,!0),e("autoplay")):(S=t.slideNext(t.params.speed,!0,!0),e("autoplay")),(t.params.cssMode&&t.autoplay.running||S===!1)&&a()},_)}function i(){return typeof n<"u"||t.autoplay.running?!1:(t.autoplay.running=!0,e("autoplayStart"),a(),!0)}function s(){return!t.autoplay.running||typeof n>"u"?!1:(n&&(clearTimeout(n),n=void 0),t.autoplay.running=!1,e("autoplayStop"),!0)}function l(y){t.autoplay.running&&(t.autoplay.paused||(n&&clearTimeout(n),t.autoplay.paused=!0,y===0||!t.params.autoplay.waitForTransition?(t.autoplay.paused=!1,a()):["transitionend","webkitTransitionEnd"].forEach(_=>{t.$wrapperEl[0].addEventListener(_,c)})))}function d(){const y=getDocument();y.visibilityState==="hidden"&&t.autoplay.running&&l(),y.visibilityState==="visible"&&t.autoplay.paused&&(a(),t.autoplay.paused=!1)}function c(y){!t||t.destroyed||!t.$wrapperEl||y.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(_=>{t.$wrapperEl[0].removeEventListener(_,c)}),t.autoplay.paused=!1,t.autoplay.running?a():s())}function u(){t.params.autoplay.disableOnInteraction?s():(e("autoplayPause"),l()),["transitionend","webkitTransitionEnd"].forEach(y=>{t.$wrapperEl[0].removeEventListener(y,c)})}function f(){t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,e("autoplayResume"),a())}function m(){t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",u),t.$el.on("mouseleave",f))}function b(){t.$el.off("mouseenter",u),t.$el.off("mouseleave",f)}r("init",()=>{t.params.autoplay.enabled&&(i(),getDocument().addEventListener("visibilitychange",d),m())}),r("beforeTransitionStart",(y,_,S)=>{t.autoplay.running&&(S||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(_):s())}),r("sliderFirstMove",()=>{t.autoplay.running&&(t.params.autoplay.disableOnInteraction?s():l())}),r("touchEnd",()=>{t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&a()}),r("destroy",()=>{b(),t.autoplay.running&&s(),getDocument().removeEventListener("visibilitychange",d)}),Object.assign(t.autoplay,{pause:l,run:a,start:i,stop:s})}function Grid({swiper:t,extendParams:o}){o({grid:{rows:1,fill:"column"}});let r,e,n;const a=l=>{const{slidesPerView:d}=t.params,{rows:c,fill:u}=t.params.grid;e=r/c,n=Math.floor(l/c),Math.floor(l/c)===l/c?r=l:r=Math.ceil(l/c)*c,d!=="auto"&&u==="row"&&(r=Math.max(r,d*c))},i=(l,d,c,u)=>{const{slidesPerGroup:f,spaceBetween:m}=t.params,{rows:b,fill:y}=t.params.grid;let _,S,C;if(y==="row"&&f>1){const T=Math.floor(l/(f*b)),x=l-b*f*T,k=T===0?f:Math.min(Math.ceil((c-T*b*f)/b),f);C=Math.floor(x/k),S=x-C*k+T*f,_=S+C*r/b,d.css({"-webkit-order":_,order:_})}else y==="column"?(S=Math.floor(l/b),C=l-S*b,(S>n||S===n&&C===b-1)&&(C+=1,C>=b&&(C=0,S+=1))):(C=Math.floor(l/e),S=l-C*e);d.css(u("margin-top"),C!==0?m&&`${m}px`:"")},s=(l,d,c)=>{const{spaceBetween:u,centeredSlides:f,roundLengths:m}=t.params,{rows:b}=t.params.grid;if(t.virtualSize=(l+u)*r,t.virtualSize=Math.ceil(t.virtualSize/b)-u,t.$wrapperEl.css({[c("width")]:`${t.virtualSize+u}px`}),f){d.splice(0,d.length);const y=[];for(let _=0;_<d.length;_+=1){let S=d[_];m&&(S=Math.floor(S)),d[_]<t.virtualSize+d[0]&&y.push(S)}d.push(...y)}};t.grid={initSlides:a,updateSlide:i,updateWrapperSize:s}}function appendSlide(t){const o=this,{$wrapperEl:r,params:e}=o;if(e.loop&&o.loopDestroy(),typeof t=="object"&&"length"in t)for(let n=0;n<t.length;n+=1)t[n]&&r.append(t[n]);else r.append(t);e.loop&&o.loopCreate(),e.observer||o.update()}function prependSlide(t){const o=this,{params:r,$wrapperEl:e,activeIndex:n}=o;r.loop&&o.loopDestroy();let a=n+1;if(typeof t=="object"&&"length"in t){for(let i=0;i<t.length;i+=1)t[i]&&e.prepend(t[i]);a=n+t.length}else e.prepend(t);r.loop&&o.loopCreate(),r.observer||o.update(),o.slideTo(a,0,!1)}function addSlide(t,o){const r=this,{$wrapperEl:e,params:n,activeIndex:a}=r;let i=a;n.loop&&(i-=r.loopedSlides,r.loopDestroy(),r.slides=e.children(`.${n.slideClass}`));const s=r.slides.length;if(t<=0){r.prependSlide(o);return}if(t>=s){r.appendSlide(o);return}let l=i>t?i+1:i;const d=[];for(let c=s-1;c>=t;c-=1){const u=r.slides.eq(c);u.remove(),d.unshift(u)}if(typeof o=="object"&&"length"in o){for(let c=0;c<o.length;c+=1)o[c]&&e.append(o[c]);l=i>t?i+o.length:i}
1132else e.append(o);for(let c=0;c<d.length;c+=1)e.append(d[c]);n.loop&&r.loopCreate(),n.observer||r.update(),n.loop?r.slideTo(l+r.loopedSlides,0,!1):r.slideTo(l,0,!1)}function removeSlide(t){const o=this,{params:r,$wrapperEl:e,activeIndex:n}=o;let a=n;r.loop&&(a-=o.loopedSlides,o.loopDestroy(),o.slides=e.children(`.${r.slideClass}`));let i=a,s;if(typeof t=="object"&&"length"in t){for(let l=0;l<t.length;l+=1)s=t[l],o.slides[s]&&o.slides.eq(s).remove(),s<i&&(i-=1);i=Math.max(i,0)}else s=t,o.slides[s]&&o.slides.eq(s).remove(),s<i&&(i-=1),i=Math.max(i,0);r.loop&&o.loopCreate(),r.observer||o.update(),r.loop?o.slideTo(i+o.loopedSlides,0,!1):o.slideTo(i,0,!1)}function removeAllSlides(){const t=this,o=[];for(let r=0;r<t.slides.length;r+=1)o.push(r);t.removeSlide(o)}function Manipulation({swiper:t}){Object.assign(t,{appendSlide:appendSlide.bind(t),prependSlide:prependSlide.bind(t),addSlide:addSlide.bind(t),removeSlide:removeSlide.bind(t),removeAllSlides:removeAllSlides.bind(t)})}function isObject$1(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function extend(t,o){const r=["__proto__","constructor","prototype"];Object.keys(o).filter(e=>r.indexOf(e)<0).forEach(e=>{typeof t[e]>"u"?t[e]=o[e]:isObject$1(o[e])&&isObject$1(t[e])&&Object.keys(o[e]).length>0?o[e].__swiper__?t[e]=o[e]:extend(t[e],o[e]):t[e]=o[e]})}function needsNavigation(t={}){return t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function needsPagination(t={}){return t.pagination&&typeof t.pagination.el>"u"}function needsScrollbar(t={}){return t.scrollbar&&typeof t.scrollbar.el>"u"}function uniqueClasses(t=""){const o=t.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return o.forEach(e=>{r.indexOf(e)<0&&r.push(e)}),r.join(" ")}const paramsList=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function getParams(t={},o=!0){const r={on:{}},e={},n={};extend(r,Swiper$1.defaults),extend(r,Swiper$1.extendedDefaults),r._emitClasses=!0,r.init=!1;const a={},i=paramsList.map(l=>l.replace(/_/,"")),s=Object.assign({},t);return Object.keys(s).forEach(l=>{typeof t[l]>"u"||(i.indexOf(l)>=0?isObject$1(t[l])?(r[l]={},n[l]={},extend(r[l],t[l]),extend(n[l],t[l])):(r[l]=t[l],n[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?o?e[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:r.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:a[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{r[l]===!0&&(r[l]={}),r[l]===!1&&delete r[l]}),{params:r,passedParams:n,rest:a,events:e}}function mountSwiper({el:t,nextEl:o,prevEl:r,paginationEl:e,scrollbarEl:n,swiper:a},i){needsNavigation(i)&&o&&r&&(a.params.navigation.nextEl=o,a.originalParams.navigation.nextEl=o,a.params.navigation.prevEl=r,a.originalParams.navigation.prevEl=r),needsPagination(i)&&e&&(a.params.pagination.el=e,a.originalParams.pagination.el=e),needsScrollbar(i)&&n&&(a.params.scrollbar.el=n,a.originalParams.scrollbar.el=n),a.init(t)}const calcLoopedSlides=(t,o)=>{let r=o.slidesPerView;
1132if(o.breakpoints){const n=Swiper$1.prototype.getBreakpoint(o.breakpoints),a=n in o.breakpoints?o.breakpoints[n]:void 0;a&&a.slidesPerView&&(r=a.slidesPerView)}let e=Math.ceil(parseFloat(o.loopedSlides||r,10));return e+=o.loopAdditionalSlides,e>t.length&&o.loopedSlidesLimit&&(e=t.length),e};function renderLoop(t,o,r){const e=o.map((l,d)=>(l.props||(l.props={}),l.props.swiperRef=t,l.props["data-swiper-slide-index"]=d,l));function n(l,d,c){return l.props||(l.props={}),h(l.type,{...l.props,key:`${l.key}-duplicate-${d}-${c}`,class:`${l.props.className||""} ${r.slideDuplicateClass} ${l.props.class||""}`},l.children)}if(r.loopFillGroupWithBlank){const l=r.slidesPerGroup-e.length%r.slidesPerGroup;if(l!==r.slidesPerGroup)for(let d=0;d<l;d+=1){const c=h("div",{class:`${r.slideClass} ${r.slideBlankClass}`});e.push(c)}}r.slidesPerView==="auto"&&!r.loopedSlides&&(r.loopedSlides=e.length);const a=calcLoopedSlides(e,r),i=[],s=[];for(let l=0;l<a;l+=1){const d=l-Math.floor(l/e.length)*e.length;s.push(n(e[d],l,"append")),i.unshift(n(e[e.length-d-1],l,"prepend"))}return t.value&&(t.value.loopedSlides=a),[...i,...e,...s]}function getChangedParams(t,o,r,e,n){const a=[];if(!o)return a;const i=l=>{a.indexOf(l)<0&&a.push(l)};if(r&&e){const l=e.map(n),d=r.map(n);l.join("")!==d.join("")&&i("children"),e.length!==r.length&&i("children")}return paramsList.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in t&&l in o)if(isObject$1(t[l])&&isObject$1(o[l])){const d=Object.keys(t[l]),c=Object.keys(o[l]);d.length!==c.length?i(l):(d.forEach(u=>{t[l][u]!==o[l][u]&&i(l)}),c.forEach(u=>{t[l][u]!==o[l][u]&&i(l)}))}else t[l]!==o[l]&&i(l)}),a}function getChildren(t,o,r){t===void 0&&(t={});const e=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},a=(i,s)=>{Array.isArray(i)&&i.forEach(l=>{const d=typeof l.type=="symbol";s==="default"&&(s="container-end"),d&&l.children?a(l.children,"default"):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")?e.push(l):n[s]&&n[s].push(l)})};return Object.keys(t).forEach(i=>{if(typeof t[i]!="function")return;const s=t[i]();a(s,i)}),r.value=o.value,o.value=e,{slides:e,slots:n}}function updateSwiper({swiper:t,slides:o,passedParams:r,changedParams:e,nextEl:n,prevEl:a,scrollbarEl:i,paginationEl:s}){const l=e.filter(k=>k!=="children"&&k!=="direction"),{params:d,pagination:c,navigation:u,scrollbar:f,virtual:m,thumbs:b}=t;let y,_,S,C,T;e.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(y=!0),e.includes("controller")&&r.controller&&r.controller.control&&d.controller&&!d.controller.control&&(_=!0),e.includes("pagination")&&r.pagination&&(r.pagination.el||s)&&(d.pagination||d.pagination===!1)&&c&&!c.el&&(S=!0),e.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||i)&&(d.scrollbar||d.scrollbar===!1)&&f&&!f.el&&(C=!0),e.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||n)&&(d.navigation||d.navigation===!1)&&u&&!u.prevEl&&!u.nextEl&&(T=!0);const x=k=>{t[k]&&(t[k].destroy(),k==="navigation"?(d[k].prevEl=void 0,d[k].nextEl=void 0,t[k].prevEl=void 0,t[k].nextEl=void 0):(d[k].el=void 0,t[k].el=void 0))};l.forEach(k=>{if(isObject$1(d[k])&&isObject$1(r[k]))extend(d[k],r[k]);else{const E=r[k];(E===!0||E===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?E===!1&&x(k):d[k]=r[k]}}),l.includes("controller")&&!_&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),e.includes("children")&&o&&m&&d.virtual.enabled?(m.slides=o,m.update(!0)):e.includes("children")&&t.lazy&&t.params.lazy.enabled&&t.lazy.load(),y&&b.init()&&b.update(!0),_&&(t.controller.control=d.controller.control),S&&(s&&(d.pagination.el=s),c.init(),c.render(),c.update()),C&&(i&&(d.scrollbar.el=i),f.init(),f.updateSize(),f.setTranslate()),T&&(n&&(d.navigation.nextEl=n),a&&(d.navigation.prevEl=a),u.init(),u.update()),e.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),e.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),e.includes("direction")&&t.changeDirection(r.direction,!1),t.update(
1132)}function renderVirtual(t,o,r){if(!r)return null;const e=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`};return o.filter((n,a)=>a>=r.from&&a<=r.to).map(n=>(n.props||(n.props={}),n.props.style||(n.props.style={}),n.props.swiperRef=t,n.props.style=e,h(n.type,{...n.props},n.children)))}const updateOnVirtualData=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())},Swiper={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:Number,default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},preloadImages:{type:Boolean,default:void 0},updateOnImagesReady:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopedSlides:{type:Number,default:void 0},loopedSlidesLimit:{type:Boolean,default:!0},loopFillGroupWithBlank:{type:Boolean,default:void 0},loopPreventsSlide:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideDuplicateActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideDuplicateClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slideDuplicateNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},slideDuplicatePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},lazy:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","auto
1132playPause","autoplayResume","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","imagesReady","init","keyPress","lazyImageLoad","lazyImageReady","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(t,o){let{slots:r,emit:e}=o;const{tag:n,wrapperTag:a}=t,i=ref$1("swiper"),s=ref$1(null),l=ref$1(!1),d=ref$1(!1),c=ref$1(null),u=ref$1(null),f=ref$1(null),m={value:[]},b={value:[]},y=ref$1(null),_=ref$1(null),S=ref$1(null),C=ref$1(null),{params:T,passedParams:x}=getParams(t,!1);getChildren(r,m,b),f.value=x,b.value=m.value;const k=()=>{getChildren(r,m,b),l.value=!0};if(T.onAny=function(w){for(var D=arguments.length,N=new Array(D>1?D-1:0),F=1;F<D;F++)N[F-1]=arguments[F];e(w,...N)},Object.assign(T.on,{_beforeBreakpoint:k,_containerClasses(w,D){i.value=D}}),u.value=new Swiper$1(T),u.value.loopCreate=()=>{},u.value.loopDestroy=()=>{},T.loop&&(u.value.loopedSlides=calcLoopedSlides(m.value,T)),u.value.virtual&&u.value.params.virtual.enabled){u.value.virtual.slides=m.value;const w={cache:!1,slides:m.value,renderExternal:D=>{s.value=D},renderExternalUpdate:!1};extend(u.value.params.virtual,w),extend(u.value.originalParams.virtual,w)}onUpdated(()=>{!d.value&&u.value&&(u.value.emitSlidesClasses(),d.value=!0);const{passedParams:w}=getParams(t,!1),D=getChangedParams(w,f.value,m.value,b.value,N=>N.props&&N.props.key);f.value=w,(D.length||l.value)&&u.value&&!u.value.destroyed&&updateSwiper({swiper:u.value,slides:m.value,passedParams:w,changedParams:D,nextEl:y.value,prevEl:_.value,scrollbarEl:C.value,paginationEl:S.value}),l.value=!1}),provide("swiper",u),watch(s,()=>{nextTick$1(()=>{updateOnVirtualData(u.value)})}),onMounted(()=>{c.value&&(mountSwiper({el:c.value,nextEl:y.value,prevEl:_.value,paginationEl:S.value,scrollbarEl:C.value,swiper:u.value},T),e("swiper",u.value))}),onBeforeUnmount(()=>{u.value&&!u.value.destroyed&&u.value.destroy(!0,!1)});function E(w){return T.virtual?renderVirtual(u,w,s.value):!T.loop||u.value&&u.value.destroyed?(w.forEach(D=>{D.props||(D.props={}),D.props.swiperRef=u}),w):renderLoop(u,w,T)}return()=>{const{slides:w,slots:D}=getChildren(r,m,b);return h(n,{ref:c,class:uniqueClasses(i.value)},[D["container-start"],h(a,{class:"swiper-wrapper"},[D["wrapper-start"],E(w),D["wrapper-end"]]),needsNavigation(t)&&[h("div",{ref:_,class:"swiper-button-prev"}),h("div",{ref:y,class:"swiper-button-next"})],needsScrollbar(t)&&h("div",{ref:C,class:"swiper-scrollbar"}),needsPagination(t)&&h("div",{ref:S,class:"swiper-pagination"}),D["container-end"]])}}},SwiperSlide={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},zoom:{type:Boolean,default:void 0},virtualIndex:{type:[String,Number],default:void 0}},setup(t,o){let{slots:r}=o,e=!1;const{swiperRef:n}=t,a=ref$1(null),i=ref$1("swiper-slide");function s(d,c,u){c===a.value&&(i.value=u)}onMounted(()=>{!n||!n.value||(n.value.on("_slideClass",s),e=!0)}),onBeforeUpdate(()=>{e||!n||!n.value||(n.value.on("_slideClass",s),e=!0)}),onUpdated(()=>{!a.value||!n||!n.value||n.value.destroyed&&i.value!=="swiper-slide"&&(i.value="swiper-slide")}),onBeforeUnmount(()=>{!n||!n.value||n.value.off("_slideClass",s)});const l=computed(()=>({isActive:i.value.indexOf("swiper-slide-active")>=0||i.value.indexOf("swiper-slide-duplicate-active")>=0,isVisible:i.value.indexOf("swiper-slide-visible")>=0,isDuplicate:i.value.indexOf("swiper-slide-duplicate")>=0,isPrev:i.value.indexOf("swiper-slide-prev")>=0||i.value.indexOf("swiper-slide-duplicate-prev")>=0,isNext:i.value.indexOf("swiper-slide-next")>=0||i.value.indexOf("swiper-slide-duplicate-next")>=0}));return provide("swiperSlide",l),()=>h(t.tag,{class:uniqueClasses(`${i.value}`),ref:a,"data-swiper-slide-index":t.virtualIndex},t.zoom?h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},r.default&&r.default(l.value)):r.default&&r.default(l.value))}},WrapVNodes=t=>(Array.isArray(t.nodes)?t.nodes:[t.nodes]).map(r=>
1132h(r,{...t.nodesProps}));WrapVNodes.props={tag:{type:String,default:"div"},nodesProps:{type:Object,default:()=>({})},nodes:{type:[Array,Function,Object],default:null}};const _sfc_main$2d={__name:"VueSwiper",props:{variant:{type:String,default:""},enabled:{type:Boolean,default:!0},dormantMode:{type:Boolean,default:!1},dormantModeEnableGridLayout:{type:Boolean,default:!1},handleTabIndex:{type:Boolean,default:!1},isTabRole:{type:Boolean,default:!1}},setup(t,{expose:o}){const r=t,e=r.dormantMode,n=[Autoplay,Navigation,Pagination,Mousewheel,Lazy,Keyboard,A11y,Scrollbar,Grid,Manipulation],a=(f=[])=>f.filter(m=>typeof m.type=="symbol"&&m.type===Comment?!1:typeof m.type=="symbol"&&m.type===Text$1?(console.warn("VueSwiper.vue: Encountered a text node as slot, ignored. Make sure all children of <VueSwiper> are wrapped with a HTML element."),!1):!0).map((m,b)=>typeof m.type=="symbol"&&m.type===Fragment?m.children.map(y=>y):m).flat(),i=ref$1(null);let s=null;onMounted(()=>{s=watch(()=>r.enabled,f=>{var m,b;f?(m=i.value)==null||m.enable():(b=i.value)==null||b.disable()},{immediate:!0})}),onBeforeUnmount(()=>{s()});const l=f=>{var m;i.value=f,f.el.querySelector('.SwitchTabHeaderItem[aria-label="Companion"]')&&(window.swiperWithEnrichCompanion=f),(m=i.value.keyboard)==null||m.disable()},d=()=>{var f,m;(m=(f=i.value)==null?void 0:f.keyboard)==null||m.enable()},c=()=>{var f,m;(m=(f=i.value)==null?void 0:f.keyboard)==null||m.disable()};o({swiperInstance:i});const u={props:r,isDormantMode:e,modules:n,normalizeSlot:a,swiperInstance:i,get enabledUnwatcher(){return s},set enabledUnwatcher(f){s=f},handleInit:l,handleRootFocusedWithin:d,handleRootBlurredWithin:c,Comment,Fragment,Text:Text$1,get Autoplay(){return Autoplay},get Navigation(){return Navigation},get Pagination(){return Pagination},get Mousewheel(){return Mousewheel},get Lazy(){return Lazy},get Keyboard(){return Keyboard},get A11y(){return A11y},get Scrollbar(){return Scrollbar},get Grid(){return Grid},get Manipulation(){return Manipulation},get Swiper(){return Swiper},get SwiperSlide(){return SwiperSlide},get WrapVNodes(){return WrapVNodes}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}};function _sfc_render$2d(t,o,r,e,n,a){const i=resolveDirective("focus-within");return withDirectives((openBlock(),createBlock(resolveDynamicComponent(e.isDormantMode?"div":e.Swiper),{class:"VueSwiper",modules:e.isDormantMode?null:e.modules,"data-variant":e.props.variant,keyboard:e.isDormantMode?null:!0,a11y:e.isDormantMode?null:{prevSlideMessage:t.$t("Previous slide"),nextSlideMessage:t.$t("Next slide"),slideRole:r.isTabRole?"tab":"group"},tabindex:e.isDormantMode?null:"-1","data-is-dormant":e.isDormantMode?!0:null,"data-grid-layout":e.isDormantMode&&e.props.dormantModeEnableGridLayout?!0:null,onAfterInit:e.handleInit,onFocusWithin:e.handleRootFocusedWithin,onBlurWithin:e.handleRootBlurredWithin},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.normalizeSlot(t.$slots.default()),(s,l)=>{var d,c,u,f;return openBlock(),createBlock(e.SwiperSlide,{key:l,"aria-selected":r.isTabRole?(c=(d=s.children[0])==null?void 0:d.props)==null?void 0:c.ariaSelectedVal:null,"aria-controls":r.isTabRole?(f=(u=s.children[0])==null?void 0:u.props)==null?void 0:f.ariaControlsVal:null},{default:withCtx(({isActive:m})=>[createVNode(e.WrapVNodes,{nodes:s,nodesProps:{tabindex:e.props.handleTabIndex?m?0:-1:null}},null,8,["nodes","nodesProps"])]),_:2},1032,["aria-selected","aria-controls"])}),128))]),_:1},40,["modules","data-variant","keyboard","a11y","tabindex","data-is-dormant","data-grid-layout"])),[[i]])}const VueSwiper=_export_sfc(_sfc_main$2d,[["render",_sfc_render$2d],["__scopeId","data-v-4cfc7bce"],["__file","VueSwiper.vue"]]),__default__$2b={name:"HeaderNotification",inheritAttrs:!1},_sfc_main$2c=Object.assign(__default__$2b,{props:{autoRotationTimer:{type:Number,default:3},children:{type:Array,default:()=>[]},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},referencePath:{type:String,default:""},ctaTextLabel:{type:String,default:"Find out more"}},setup(t,{expose:o}){var T;o();const r=t,{isEditorMode:e}=useGlobalAEMState$1(),n=ref$1(!0),a="HEADER_NOTIFICATION_VISIBLE",{isEnabledCookiePreferences:i,registerPreferenceCookie:s}=useGlobalCookieSettings();s(a);let l=!1,d=!1;const c=()=>{n.value=!1,_();const x=new Date,k=24*60*60*1e3-(x.getHours()*60*60*1e3+x.getMinutes()*60*1e3+x.getSeconds()*1e3+x.getMilliseconds());x.setTime(x.getTime()+k);let E=x.toUTCString();i.value&&setCookie(a,"hidden",E)},u=ref$1(null),f=()=>{var x,k,E,w,D;(k=(x=u.value)==null?void 0:x.swiperInstance)==null||k.autoplay.stop(),(D=(w=(E=u.value)==null?void 0:E.swiperInstance)==null?void 0:w.keyboard)==null||D.enable()},m=()=>{var x,k,E,w,D;(k=(x=u.value)==null?void 0:x.swiperInstance)==null||k.autoplay.start(),(D=(w=(E=u.value)==null?void 0:E.swiperInstance)==null?void 0:w.keyboard)==null||D.disable()},b=ref$1((T=r.children.at(0))==null?void 0:T.pageUrl),y=x=>{var k;b.value=(k=r.children[x.realIndex])==null?void 0:k.pageUrl},_=()=>{document.documentElement.style.setProperty("--headerNotificationHeight","0px")};r.children.length>1?(l={delay:r.autoRotationTimer*1e3,disableOnInteraction:!1},d=!0):r.children.length===0&&(n.value=!1,_()),getCookie(a)&&(n.value=!1,_()),(isMobileViewport.value&&r.isHideInMobile||!isMobileViewport.value&&r.isHideInDesktop)&&_();const S=window.siteName,C={props:r,isEditorMode:e,isVisible:n,COOKIE_ID:a,isEnabledCookiePreferences:i,registerPreferenceCookie:s,get isAutoplay(){return l},set isAutoplay(x){l=x},get isLoop(){return d},set isLoop(x){d=x}
1132,dismissNotification:c,swiperEl:u,handleRootFocusedWithin:f,handleRootBlurredWithin:m,currentSlideLink:b,handleSwiperIndexChange:y,setCSSCustomPropertyToZero:_,siteName:S,get getCookie(){return getCookie},get setCookie(){return setCookie},VueSwiper,get useGlobalCookieSettings(){return useGlobalCookieSettings},get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}}),_hoisted_1$2S={key:0,class:"generic-container py-10 text-center"},_hoisted_2$1$={key:0},_hoisted_3$1z={key:1},_hoisted_4$1q=["data-use-theme"],_hoisted_5$1j={class:"main-wrapper generic-container"},_hoisted_6$1f={class:"flex flex-grow"},_hoisted_7$1d={class:"mr-3 flex-shrink-0 rtl:mr-0 rtl:ml-3"},_hoisted_8$18={class:"line-clamp-1 md:line-clamp-2"},_hoisted_9$12={class:"notification-text-content"},_hoisted_10$U={class:"flex flex-shrink-0"},_hoisted_11$R={class:"text-center line-clamp-2 break-words"},_hoisted_12$P=["aria-label"],_hoisted_13$L={class:"w-6 h-6 flex items-center justify-center"};function _sfc_render$2c(t,o,r,e,n,a){const i=__unplugin_components_1$c,s=resolveComponent("AppHyperlink"),l=__unplugin_components_2$5,d=resolveDirective("focus-within");return e.isEditorMode&&e.props.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_1$2S,[createBaseVNode("p",null,[o[0]||(o[0]=createTextVNode("Hidden in: ")),e.props.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_2$1$,"Desktop")):createCommentVNode("",!0),o[1]||(o[1]=createTextVNode()),e.props.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_3$1z,", Mobile")):createCommentVNode("",!0)])])):(openBlock(),createElementBlock(Fragment,{key:1},[(e.isMobileViewport&&!e.props.isHideInMobile||!e.isMobileViewport&&!e.props.isHideInDesktop)&&e.isVisible?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"HeaderNotification bg-semantic-orange-extralight border-t-4 border-semantic-orange-base py-2","data-is-sticky":"","data-height-var":"--headerNotificationHeight","data-use-theme":e.siteName,onFocusWithin:e.handleRootFocusedWithin,onBlurWithin:e.handleRootBlurredWithin},[createBaseVNode("div",_hoisted_5$1j,[createBaseVNode("div",_hoisted_6$1f,[createBaseVNode("div",_hoisted_7$1d,[createVNode(s,{href:e.props.referencePath,class:"relative h-8 w-8"},{default:withCtx(()=>[createVNode(i,{class:"h-4.5 fill-primary-blue-base absolute bottom-1 left-1"})]),_:1},8,["href"])]),createVNode(s,{class:"notification-link",href:e.currentSlideLink},{default:withCtx(()=>[createVNode(e.VueSwiper,{ref:"swiperEl",direction:"vertical",slidesPerView:1,autoplay:e.isAutoplay,loop:e.isLoop,simulateTouch:!1,onActiveIndexChange:e.handleSwiperIndexChange},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.children,(c,u)=>(openBlock(),createElementBlock("div",{key:u,class:"notification-title font-demibold text-xs flex items-center h-full"},[createBaseVNode("p",_hoisted_8$18,[o[2]||(o[2]=createBaseVNode("span",{class:"md:hidden"},"Important News: ",-1)),createBaseVNode("span",_hoisted_9$12,toDisplayString(c.pageTitle),1)])]))),128))]),_:1},8,["autoplay","loop"])]),_:1},8,["href"])]),createBaseVNode("div",_hoisted_10$U,[createVNode(s,{href:e.props.referencePath,class:"HeaderNotificationCtaButton"},{default:withCtx(()=>{var c;return[createBaseVNode("span",_hoisted_11$R,toDisplayString(((c=e.props)==null?void 0:c.ctaTextLabel)??"Find out more"),1)]}),_:1},8,["href"]),createBaseVNode("button",{class:"p-0 ml-10 md:ml-5 rtl:ml-0 rtl:mr-10 rtl:md:mr-5",type:"button","aria-label":t.$t("Dismiss notification"),onClick:e.dismissNotification},[createBaseVNode("div",_hoisted_13$L,[createVNode(l,{class:"w-2.5 fill-primary-black-base"})])],8,_hoisted_12$P)])])],40,_hoisted_4$1q)),[[d]]):createCommentVNode("",!0)],64))}const HeaderNotification=_export_sfc(_sfc_main$2c,[["render",_sfc_render$2c],["__scopeId","data-v-9954cf30"],["__file","HeaderNotification.vue"]]),HeaderNotification$1=Object.freeze(Object.defineProperty({__proto__:null,default:HeaderNotification},Symbol.toStringTag,{value:"Module"})),_hoisted_1$2R={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$J(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2R,o[0]||(o[0]=[createBaseVNode("path",{d:"M0 88C0 74.75 10.75 64 24 64H424C437.3 64 448 74.75 448 88C448 101.3 437.3 112 424 112H24C10.75 112 0 101.3 0 88zM0 248C0 234.7 10.75 224 24 224H424C437.3 224 448 234.7 448 248C448 261.3 437.3 272 424 272H24C10.75 272 0 261.3 0 248zM424 432H24C10.75 432 0 421.3 0 408C0 394.7 10.75 384 24 384H424C437.3 384 448 394.7 448 408C448 421.3 437.3 432 424 432z"},null,-1)]))}const __unplugin_components_0$j=markRaw({name:"far-bars",render:render$J}),_hoisted_1$2Q={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$I(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2Q,o[0]||(o[0]=[createBaseVNode("path",{d:"M272 304h-96C78.8 304 0 382.8 0 480c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32C448 382.8 369.2 304 272 304zM48.99 464C56.89 400.9 110.8 352 176 352h96c65.16 0 119.1 48.95 127 112H48.99zM224 256c70.69 0 128-57.31 128-128c0-70.69-57.31-128-128-128S96 57.31 96 128C96 198.7 153.3 256 224 256zM224 48c44.11 0 80 35.89 80 80c0 44.11-35.89 80-80 80S144 172.1 144 128C144 83.89 179.9 48 224 48z"},null,-1)]))}const __unplugin_components_4$1=markRaw({name:"far-user",render:render$I}),_hoisted_1$2P={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$H(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2P,o[0]||(o[0]=[createBaseVNode("path",{d:"M504.1 471l-134-134C399.1 301.5 415.1 256.8 415.1 208c0-114.9-93.13-208-208-208S-.0002 93.13-.0002 208S93.12 416 207.1 416c48.79 0 93.55-16.91 129-45.04l134 134C475.7 509.7 481.9 512 488 512s12.28-2.344 16.97-7.031C514.3 495.6 514.3 480.4 504.1 471zM48 208c0-88.22 71.78-160 160-160s160 71.78 160 160s-71.78 160-160 160S48 296.2 48 208z"},null,-1)]))}const __unplugin_components_2$4=markRaw({name:"far-magnifying-glass",render:render$H}),_hoisted_1$2O={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$G(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2O,o[0]||(o[0]=[createBaseVNode("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S14
11321.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 336c-18 0-32 14-32 32s13.1 32 32 32c17.1 0 32-14 32-32S273.1 336 256 336zM289.1 128h-51.1C199 128 168 159 168 198c0 13 11 24 24 24s24-11 24-24C216 186 225.1 176 237.1 176h51.1C301.1 176 312 186 312 198c0 8-4 14.1-11 18.1L244 251C236 256 232 264 232 272V288c0 13 11 24 24 24S280 301 280 288V286l45.1-28c21-13 34-36 34-60C360 159 329 128 289.1 128z"},null,-1)]))}const __unplugin_components_2$3=markRaw({name:"far-circle-question",render:render$G});function _defineProperties(t,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function _createClass(t,o,r){return o&&_defineProperties(t.prototype,o),t}/*!
1133 * Observer 3.12.5
1134 * https://gsap.com
1135 *
1136 * @license Copyright 2008-2024, GreenSock. All rights reserved.
1137 * Subject to the terms at https://gsap.com/standard-license or for
1138 * Club GSAP members, the agreement issued with that membership.
1139 * @author: Jack Doyle, [email protected]
1140*/var gsap$1,_coreInitted$1,_win$1,_doc$1,_docEl$1,_body$1,_isTouch,_pointerType,ScrollTrigger$1,_root$1,_normalizer$1,_eventTypes,_context$1,_getGSAP$1=function t(){return gsap$1||typeof window<"u"&&(gsap$1=window.gsap)&&gsap$1.registerPlugin&&gsap$1},_startup$1=1,_observers=[],_scrollers=[],_proxies=[],_getTime$1=Date.now,_bridge=function t(o,r){return r},_integrate=function t(){var o=ScrollTrigger$1.core,r=o.bridge||{},e=o._scrollers,n=o._proxies;e.push.apply(e,_scrollers),n.push.apply(n,_proxies),_scrollers=e,_proxies=n,_bridge=function(i,s){return r[i](s)}},_getProxyProp=function t(o,r){return~_proxies.indexOf(o)&&_proxies[_proxies.indexOf(o)+1][r]},_isViewport$1=function t(o){return!!~_root$1.indexOf(o)},_addListener$1=function t(o,r,e,n,a){return o.addEventListener(r,e,{passive:n!==!1,capture:!!a})},_removeListener$1=function t(o,r,e,n){return o.removeEventListener(r,e,!!n)},_scrollLeft="scrollLeft",_scrollTop="scrollTop",_onScroll$1=function t(){return _normalizer$1&&_normalizer$1.isPressed||_scrollers.cache++},_scrollCacheFunc=function t(o,r){var e=function n(a){if(a||a===0){_startup$1&&(_win$1.history.scrollRestoration="manual");var i=_normalizer$1&&_normalizer$1.isPressed;a=n.v=Math.round(a)||(_normalizer$1&&_normalizer$1.iOS?1:0),o(a),n.cacheID=_scrollers.cache,i&&_bridge("ss",a)}else(r||_scrollers.cache!==n.cacheID||_bridge("ref"))&&(n.cacheID=_scrollers.cache,n.v=o());return n.v+n.offset};return e.offset=0,o&&e},_horizontal={s:_scrollLeft,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:_scrollCacheFunc(function(t){return arguments.length?_win$1.scrollTo(t,_vertical.sc()):_win$1.pageXOffset||_doc$1[_scrollLeft]||_docEl$1[_scrollLeft]||_body$1[_scrollLeft]||0})},_vertical={s:_scrollTop,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:_horizontal,sc:_scrollCacheFunc(function(t){return arguments.length?_win$1.scrollTo(_horizontal.sc(),t):_win$1.pageYOffset||_doc$1[_scrollTop]||_docEl$1[_scrollTop]||_body$1[_scrollTop]||0})},_getTarget=function t(o,r){return(r&&r._ctx&&r._ctx.selector||gsap$1.utils.toArray)(o)[0]||(typeof o=="string"&&gsap$1.config().nullTargetWarn!==!1?console.warn("Element not found:",o):null)},_getScrollFunc=function t(o,r){var e=r.s,n=r.sc;_isViewport$1(o)&&(o=_doc$1.scrollingElement||_docEl$1);var a=_scrollers.indexOf(o),i=n===_vertical.sc?1:2;!~a&&(a=_scrollers.push(o)-1),_scrollers[a+i]||_addListener$1(o,"scroll",_onScroll$1);var s=_scrollers[a+i],l=s||(_scrollers[a+i]=_scrollCacheFunc(_getProxyProp(o,e),!0)||(_isViewport$1(o)?n:_scrollCacheFunc(function(d){return arguments.length?o[e]=d:o[e]})));return l.target=o,s||(l.smooth=gsap$1.getProperty(o,"scrollBehavior")==="smooth"),l},_getVelocityProp=function t(o,r,e){var n=o,a=o,i=_getTime$1(),s=i,l=r||50,d=Math.max(500,l*3),c=function(b,y){var _=_getTime$1();y||_-i>l?(a=n,n=b,s=i,i=_):e?n+=b:n=a+(b-a)/(_-s)*(i-s)},u=function(){a=n=e?0:n,s=i=0},f=function(b){var y=s,_=a,S=_getTime$1();return(b||b===0)&&b!==n&&c(b),i===s||S-s>d?0:(n+(e?_:-_))/((e?S:i)-y)*1e3};return{update:c,reset:u,getVelocity:f}},_getEvent=function t(o,r){return r&&!o._gsapAllow&&o.preventDefault(),o.changedTouches?o.changedTouches[0]:o},_getAbsoluteMax=function t(o){var r=Math.max.apply(Math,o),e=Math.min.apply(Math,o);return Math.abs(r)>=Math.abs(e)?r:e},_setScrollTrigger=function t(){ScrollTrigger$1=gsap$1.core.globals().ScrollTrigger,ScrollTrigger$1&&ScrollTrigger$1.core&&_integrate()},_initCore=function t(o){return gsap$1=o||_getGSAP$1(),!_coreInitted$1&&gsap$1&&typeof document<"u"&&document.body&&(_win$1=window,_doc$1=document,_docEl$1=_doc$1.documentElement,_body$1=_doc$1.body,_root$1=[_win$1,_doc$1,_docEl$1,_body$1],gsap$1.utils.clamp,_context$1=gsap$1.core.context||function(){},_pointerType="onpointerenter"in _body$1?"pointer":"mouse",_isTouch=Observer.isTouch=_win$1.matchMedia&&_win$1.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in _win$1||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,_eventTypes=Observer.eventTypes=("ontouchstart"in _docEl$1?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in _docEl$1?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return _startup$1=0},500),_setScrollTrigger(),_coreInitted$1=1),_coreInitted$1};_horizontal.op=_vertical;_scrollers.cache=0;var Observer=function(){function t(r){this.init(r)}var o=t.prototype;return o.init=function(e){_coreInitted$1||_initCore(gsap$1)||console.warn("Please gsap.registerPlugin(Observer)"),ScrollTrigger$1||_setScrollTrigger();var n=e.tolerance,a=e.dragMinimum,i=e.type,s=e.target,l=e.lineHeight,d=e.debounce,c=e.preventDefault,u=e.onStop,f=e.onStopDelay,m=e.ignore,b=e.wheelSpeed,y=e.event,_=e.onDragStart,S=e.onDragEnd,C=e.onDrag,T=e.onPress,x=e.onRelease,k=e.onRight,E=e.onLeft,w=e.onUp,D=e.onDown,N=e.onCh
vendor: 8,673 bytes, lines 1140-1148
1140angeX,F=e.onChangeY,V=e.onChange,A=e.onToggleX,M=e.onToggleY,O=e.onHover,R=e.onHoverEnd,I=e.onMove,j=e.ignoreCheck,H=e.isNormalizer,U=e.onGestureStart,B=e.onGestureEnd,L=e.onWheel,z=e.onEnable,W=e.onDisable,J=e.onClick,te=e.scrollSpeed,re=e.capture,oe=e.allowClicks,X=e.lockAxis,se=e.onLockAxis;this.target=s=_getTarget(s)||_docEl$1,this.vars=e,m&&(m=gsap$1.utils.toArray(m)),n=n||1e-9,a=a||0,b=b||1,te=te||1,i=i||"wheel,touch,pointer",d=d!==!1,l||(l=parseFloat(_win$1.getComputedStyle(_body$1).lineHeight)||22);var le,he,ge,Q,Y,ne,Ce,ae=this,Be=0,me=0,K=e.passive||!c,q=_getScrollFunc(s,_horizontal),Z=_getScrollFunc(s,_vertical),de=q(),fe=Z(),_e=~i.indexOf("touch")&&!~i.indexOf("pointer")&&_eventTypes[0]==="pointerdown",pe=_isViewport$1(s),ve=s.ownerDocument||_doc$1,Me=[0,0,0],Fe=[0,0,0],Te=0,Se=function(){return Te=_getTime$1()},Ae=function(Ze,dt){return(ae.event=Ze)&&m&&~m.indexOf(Ze.target)||dt&&_e&&Ze.pointerType!=="touch"||j&&j(Ze,dt)},ue=function(){ae._vx.reset(),ae._vy.reset(),he.pause(),u&&u(ae)},ye=function(){var Ze=ae.deltaX=_getAbsoluteMax(Me),dt=ae.deltaY=_getAbsoluteMax(Fe),Ye=Math.abs(Ze)>=n,lt=Math.abs(dt)>=n;V&&(Ye||lt)&&V(ae,Ze,dt,Me,Fe),Ye&&(k&&ae.deltaX>0&&k(ae),E&&ae.deltaX<0&&E(ae),N&&N(ae),A&&ae.deltaX<0!=Be<0&&A(ae),Be=ae.deltaX,Me[0]=Me[1]=Me[2]=0),lt&&(D&&ae.deltaY>0&&D(ae),w&&ae.deltaY<0&&w(ae),F&&F(ae),M&&ae.deltaY<0!=me<0&&M(ae),me=ae.deltaY,Fe[0]=Fe[1]=Fe[2]=0),(Q||ge)&&(I&&I(ae),ge&&(C(ae),ge=!1),Q=!1),ne&&!(ne=!1)&&se&&se(ae),Y&&(L(ae),Y=!1),le=0},Xe=function(Ze,dt,Ye){Me[Ye]+=Ze,Fe[Ye]+=dt,ae._vx.update(Ze),ae._vy.update(dt),d?le||(le=requestAnimationFrame(ye)):ye()},De=function(Ze,dt){X&&!Ce&&(ae.axis=Ce=Math.abs(Ze)>Math.abs(dt)?"x":"y",ne=!0),Ce!=="y"&&(Me[2]+=Ze,ae._vx.update(Ze,!0)),Ce!=="x"&&(Fe[2]+=dt,ae._vy.update(dt,!0)),d?le||(le=requestAnimationFrame(ye)):ye()},ke=function(Ze){if(!Ae(Ze,1)){Ze=_getEvent(Ze,c);var dt=Ze.clientX,Ye=Ze.clientY,lt=dt-ae.x,et=Ye-ae.y,nt=ae.isDragging;ae.x=dt,ae.y=Ye,(nt||Math.abs(ae.startX-dt)>=a||Math.abs(ae.startY-Ye)>=a)&&(C&&(ge=!0),nt||(ae.isDragging=!0),De(lt,et),nt||_&&_(ae))}},ze=ae.onPress=function(rt){Ae(rt,1)||rt&&rt.button||(ae.axis=Ce=null,he.pause(),ae.isPressed=!0,rt=_getEvent(rt),Be=me=0,ae.startX=ae.x=rt.clientX,ae.startY=ae.y=rt.clientY,ae._vx.reset(),ae._vy.reset(),_addListener$1(H?s:ve,_eventTypes[1],ke,K,!0),ae.deltaX=ae.deltaY=0,T&&T(ae))},qe=ae.onRelease=function(rt){if(!Ae(rt,1)){_removeListener$1(H?s:ve,_eventTypes[1],ke,!0);var Ze=!isNaN(ae.y-ae.startY),dt=ae.isDragging,Ye=dt&&(Math.abs(ae.x-ae.startX)>3||Math.abs(ae.y-ae.startY)>3),lt=_getEvent(rt);!Ye&&Ze&&(ae._vx.reset(),ae._vy.reset(),c&&oe&&gsap$1.delayedCall(.08,function(){if(_getTime$1()-Te>300&&!rt.defaultPrevented){if(rt.target.click)rt.target.click();else if(ve.createEvent){var et=ve.createEvent("MouseEvents");et.initMouseEvent("click",!0,!0,_win$1,1,lt.screenX,lt.screenY,lt.clientX,lt.clientY,!1,!1,!1,!1,0,null),rt.target.dispatchEvent(et)}}})),ae.isDragging=ae.isGesturing=ae.isPressed=!1,u&&dt&&!H&&he.restart(!0),S&&dt&&S(ae),x&&x(ae,Ye)}},ht=function(Ze){return Ze.touches&&Ze.touches.length>1&&(ae.isGesturing=!0)&&U(Ze,ae.isDragging)},pt=function(){return(ae.isGesturing=!1)||B(ae)},Ne=function(Ze){if(!Ae(Ze)){var dt=q(),Ye=Z();Xe((dt-de)*te,(Ye-fe)*te,1),de=dt,fe=Ye,u&&he.restart(!0)}},Je=function(Ze){if(!Ae(Ze)){Ze=_getEvent(Ze,c),L&&(Y=!0);var dt=(Ze.deltaMode===1?l:Ze.deltaMode===2?_win$1.innerHeight:1)*b;Xe(Ze.deltaX*dt,Ze.deltaY*dt,0),u&&!H&&he.restart(!0)}},$e=function(Ze){if(!Ae(Ze)){var dt=Ze.clientX,Ye=Ze.clientY,lt=dt-ae.x,et=Ye-ae.y;ae.x=dt,ae.y=Ye,Q=!0,u&&he.restart(!0),(lt||et)&&De(lt,et)}},st=function(Ze){ae.event=Ze,O(ae)},bt=function(Ze){ae.event=Ze,R(ae)},Bt=function(Ze){return Ae(Ze)||_getEvent(Ze,c)&&J(ae)};he=ae._dc=gsap$1.delayedCall(f||.25,ue).pause(),ae.deltaX=ae.deltaY=0,ae._vx=_getVelocityProp(0,50,!0),ae._vy=_getVelocityProp(0,50,!0),ae.scrollX=q,ae.scrollY=Z,ae.isDragging=ae.isGesturing=ae.isPressed=!1,_context$1(this),ae.enable=function(rt){return ae.isEnabled||(_addListener$1(pe?ve:s,"scroll",_onScroll$1),i.indexOf("scroll")>=0&&_addListener$1(pe?ve:s,"scroll",Ne,K,re),i.indexOf("wheel")>=0&&_addListener$1(s,"wheel",Je,K,re),(i.indexOf("touch")>=0&&_isTouch||i.indexOf("pointer")>=0)&&(_addListener$1(s,_eventTypes[0],ze,K,re),_addListener$1(ve,_eventTypes[2],qe),_addListener$1(ve,_eventTypes[3],qe),oe&&_addListener$1(s,"click",Se,!0,!0),J&&_addListener$1(s,"click",Bt),U&&_addListener$1(ve,"gesturestart",ht),B&&_addListener$1(ve,"gestureend",pt),O&&_addListener$1(s,_pointerType+"enter",st),R&&_addListener$1(s,_pointerType+"leave",bt),I&&_addListener$1(s,_pointerType+"move",$e)),ae.isEnabled=!0,rt&&rt.type&&ze(rt),z&&z(ae)),ae},ae.disable=function(){ae.isEnabled&&(_observers.filter(function(rt){return rt!==ae&&_isViewport$1(rt.target)}).length||_removeListener$1(pe?ve:s,"scroll",_onScroll$1),ae.isPressed&&(ae._vx.reset(),ae._vy.reset(),_removeListener$1(H?s:ve,_eventTypes[1],ke,!0)),_removeListener$1(pe?ve:s,"scroll",Ne,re),_removeListener$1(s,"wheel",Je,re),_removeListener$1(s,_eventTypes[0],ze,re),_removeListener$1(ve,_eventTypes[2],qe),_removeListener$1(ve,_eventTypes[3],qe),_removeListener$1(s,"click",Se,!0),_removeListener$1(s,"click",Bt),_removeListener$1(ve,"gesturestart",ht),_removeListener$1(ve,"gestureend",pt),_removeListener$1(s,_pointerType+"enter",st),_removeListener$1(s,_pointerType+"leave",bt),_removeListener$1(s,_pointerType+"move",$e),ae.isEnabled=ae.isPressed=ae.isDragging=!1,W&&W(ae))},ae.kill=ae.revert=function(){ae.disable();var rt=_observers.indexOf(ae);rt>=0&&_observers.splice(rt,1),_normalizer$1===ae&&(_normalizer$1=0)},_observers.push(ae),H&&_isViewport$1(s)&&(_normalizer$1=ae),ae.enable(y)},_createClass(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();Observer.version="3.12.5";Observer.create=function(t){return new Observer(t)};Observer.register=_initCore;Observer.getAll=function(){return _observers.slice()};Observer.getById=function(t){return _observers.filter(function(o){return o.vars.id===t})[0]};_getGSAP$1()&&gsap$1.registerPlugin(Observer);/*!
1141 * ScrollTrigger 3.12.5
1142 * https://gsap.com
1143 *
1144 * @license Copyright 2008-2024, GreenSock. All rights reserved.
1145 * Subject to the terms at https://gsap.com/standard-license or for
1146 * Club GSAP members, the agreement issued with that membership.
1147 * @author: Jack Doyle, [email protected]
1148*/var gsap,_coreInitted,_win,_doc,_docEl,_body,_root,_resizeDelay,_toArray,_clamp,_time2,_syncInterval,_refreshing,_pointerIsDown,_transformProp,_i,_prevWidth,_prevHeight,_autoRefresh,_sort,_suppressOverwrites,_ignoreResize,_normalizer,_ignoreMobileResize,_baseScreenHeight,_baseScreenWidth,_fixIOSBug,_context,_scrollRestoration,_div100vh,_100vh,_isReverted,_clampingMax,_limitCallbacks,_startup=1,_getTime=Date.now,_time1=_getTime(),_lastScrollTime=0,_enabled=0,_parseClamp=function t(o,r,e){var n=_isString(o)&&(o.substr(0,6)==="clamp("||o.indexOf("max")>-1);return e["_"+r+"Clamp"]=n,n?o.substr(6,o.length-7):o},_keepClamp=function t(o,r){return r&&(!_isString(o)||o.substr(0,6)!=="clamp(")?"clamp("+o+")":o},_rafBugFix=function t(){return _enabled&&requestAnimationFrame(t)},_pointerDownHandler=function t(){return _pointerIsDown=1},_pointerUpHandler=function t(){return _pointerIsDown=0},_passThrough=function t(o){return o},_round=function t(o){return Math.round(o*1e5)/1e5||0},_windowExists=function t(){return typeof window<"u"},_getGSAP=function t(){return gsap||_windowExists()&&(gsap=window.gsap)&&gsap.registerPlugin&&gsap},_isViewport=function t(o){return!!~_root.indexOf(o)},_getViewportDimension=function t(o){return(o==="Height"?_100vh:_win["inner"+o])||_docEl["client"+o]||_body["client"+o]},_getBoundsFunc=function t(o){return _getProxyProp(o,"getBoundingClientRect")||(_isViewport(o)?function(){return _winOffsets.width=_win.innerWidth,_winOffsets.height=_100vh,_winOffsets}:function(){return _getBounds(o)})},_getSizeFunc=function t(o,r,e){var n=e.d,a=e.d2,i=e.a;return(i=_getProxyProp(o,"getBoundingClientRect"))?function(){return i()[n]}:function(){return(r?_getViewportDimension(a):o["client"+a])||0}},_getOffsetsFunc=function t(o,r){return!r||~_proxies.indexOf(o)?_getBoundsFunc(o):function(){return _winOffsets}},_maxScroll=function t(o,r){var e=r.s,n=r.d2,a=r.d,i=r.a;return Math.max(0,(e="scroll"+n)&&(i=_getProxyProp(o,e))?i()-_getBoundsFunc(o)()[a]:_isViewport(o)?(_docEl[e]||_body[e])-_getViewportDimension(n):o[e]-o["offset"+n])},_iterateAutoRefresh=function t(o,r){for(var e=0;e<_autoRefresh.length;e+=3)(!r||~r.indexOf(_autoRefresh[e+1]))&&o(_autoRefresh[e],_autoRefresh[e+1],_autoRefresh[e+2])}
vendor: 32,157 bytes, line 1148
1148,_isString=function t(o){return typeof o=="string"},_isFunction=function t(o){return typeof o=="function"},_isNumber=function t(o){return typeof o=="number"},_isObject=function t(o){return typeof o=="object"},_endAnimation=function t(o,r,e){return o&&o.progress(r?0:1)&&e&&o.pause()},_callback=function t(o,r){if(o.enabled){var e=o._ctx?o._ctx.add(function(){return r(o)}):r(o);e&&e.totalTime&&(o.callbackAnimation=e)}},_abs=Math.abs,_left="left",_top="top",_right="right",_bottom="bottom",_width="width",_height="height",_Right="Right",_Left="Left",_Top="Top",_Bottom="Bottom",_padding="padding",_margin="margin",_Width="Width",_Height="Height",_px="px",_getComputedStyle=function t(o){return _win.getComputedStyle(o)},_makePositionable=function t(o){var r=_getComputedStyle(o).position;o.style.position=r==="absolute"||r==="fixed"?r:"relative"},_setDefaults=function t(o,r){for(var e in r)e in o||(o[e]=r[e]);return o},_getBounds=function t(o,r){var e=r&&_getComputedStyle(o)[_transformProp]!=="matrix(1, 0, 0, 1, 0, 0)"&&gsap.to(o,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=o.getBoundingClientRect();return e&&e.progress(0).kill(),n},_getSize=function t(o,r){var e=r.d2;return o["offset"+e]||o["client"+e]||0},_getLabelRatioArray=function t(o){var r=[],e=o.labels,n=o.duration(),a;for(a in e)r.push(e[a]/n);return r},_getClosestLabel=function t(o){return function(r){return gsap.utils.snap(_getLabelRatioArray(o),r)}},_snapDirectional=function t(o){var r=gsap.utils.snap(o),e=Array.isArray(o)&&o.slice(0).sort(function(n,a){return n-a});return e?function(n,a,i){i===void 0&&(i=.001);var s;if(!a)return r(n);if(a>0){for(n-=i,s=0;s<e.length;s++)if(e[s]>=n)return e[s];return e[s-1]}else for(s=e.length,n+=i;s--;)if(e[s]<=n)return e[s];return e[0]}:function(n,a,i){i===void 0&&(i=.001);var s=r(n);return!a||Math.abs(s-n)<i||s-n<0==a<0?s:r(a<0?n-o:n+o)}},_getLabelAtDirection=function t(o){return function(r,e){return _snapDirectional(_getLabelRatioArray(o))(r,e.direction)}},_multiListener=function t(o,r,e,n){return e.split(",").forEach(function(a){return o(r,a,n)})},_addListener=function t(o,r,e,n,a){return o.addEventListener(r,e,{passive:!n,capture:!!a})},_removeListener=function t(o,r,e,n){return o.removeEventListener(r,e,!!n)},_wheelListener=function t(o,r,e){e=e&&e.wheelHandler,e&&(o(r,"wheel",e),o(r,"touchmove",e))},_markerDefaults={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_defaults={toggleActions:"play",anticipatePin:0},_keywords={top:0,left:0,center:.5,bottom:1,right:1},_offsetToPx=function t(o,r){if(_isString(o)){var e=o.indexOf("="),n=~e?+(o.charAt(e-1)+1)*parseFloat(o.substr(e+1)):0;~e&&(o.indexOf("%")>e&&(n*=r/100),o=o.substr(0,e-1)),o=n+(o in _keywords?_keywords[o]*r:~o.indexOf("%")?parseFloat(o)*r/100:parseFloat(o)||0)}return o},_createMarker=function t(o,r,e,n,a,i,s,l){var d=a.startColor,c=a.endColor,u=a.fontSize,f=a.indent,m=a.fontWeight,b=_doc.createElement("div"),y=_isViewport(e)||_getProxyProp(e,"pinType")==="fixed",_=o.indexOf("scroller")!==-1,S=y?_body:e,C=o.indexOf("start")!==-1,T=C?d:c,x="border-color:"+T+";font-size:"+u+";color:"+T+";font-weight:"+m+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((_||l)&&y?"fixed;":"absolute;"),(_||l||!y)&&(x+=(n===_vertical?_right:_bottom)+":"+(i+parseFloat(f))+"px;"),s&&(x+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),b._isStart=C,b.setAttribute("class","gsap-marker-"+o+(r?" marker-"+r:"")),b.style.cssText=x,b.innerText=r||r===0?o+"-"+r:o,S.children[0]?S.insertBefore(b,S.children[0]):S.appendChild(b),b._offset=b["offset"+n.op.d2],_positionMarker(b,0,n,C),b},_positionMarker=function t(o,r,e,n){var a={display:"block"},i=e[n?"os2":"p2"],s=e[n?"p2":"os2"];o._isFlipped=n,a[e.a+"Percent"]=n?-100:0,a[e.a]=n?"1px":0,a["border"+i+_Width]=1,a["border"+s+_Width]=0,a[e.p]=r+"px",gsap.set(o,a)},_triggers=[],_ids={},_rafID,_sync=function t(){return _getTime()-_lastScrollTime>34&&(_rafID||(_rafID=requestAnimationFrame(_updateAll)))},_onScroll=function t(){(!_normalizer||!_normalizer.isPressed||_normalizer.startX>_body.clientWidth)&&(_scrollers.cache++,_normalizer?_rafID||(_rafID=requestAnimationFrame(_updateAll)):_updateAll(),_lastScrollTime||_dispatch("scrollStart"),_lastScrollTime=_getTime())},_setBaseDimensions=function t(){_baseScreenWidth=_win.innerWidth,_baseScreenHeight=_win.innerHeight},_onResize=function t(){_scrollers.cache++,!_refreshing&&!_ignoreResize&&!_doc.fullscreenElement&&!_doc.webkitFullscreenElement&&(!_ignoreMobileResize||_baseScreenWidth!==_win.innerWidth||Math.abs(_win.innerHeight-_baseScreenHeight)>_win.innerHeight*.25)&&_resizeDelay.restart(!0)},_listeners={},_emptyArray=[],_softRefresh=function t(){return _removeListener(ScrollTrigger,"scrollEnd",t)||_refreshAll(!0)},_dispatch=function t(o){return _listeners[o]&&_listeners[o].map(function(r){return r()})||_emptyArray},_savedStyles=[],_revertRecorded=function t(o){for(var r=0;r<_savedStyles.length;r+=5)(!o||_savedStyles[r+4]&&_savedStyles[r+4].query===o)&&(_savedStyles[r].style.cssText=_savedStyles[r+1],_savedStyles[r].getBBox&&_savedStyles[r].setAttribute("transform",_savedStyles[r+2]||""),_savedStyles[r+3].uncache=1)},_revertAll=function t(o,r){var e;for(_i=0;_i<_triggers.length;_i++)e=_triggers[_i],e&&(!r||e._ctx===r)&&(o?e.kill(1):e.revert(!0,!0));_isReverted=!0,r&&_revertRecorded(r),r||_dispatch("revert")},_clearScrollMemory=function t(o,r){_scrollers.cache++,(r||!_refreshingAll)&&_scrollers.forEach(function(e){return _isFunction(e)&&e.cacheID++&&(e.rec=0)}),_isString(o)&&(_win.history.scrollRestoration=_scrollRestoration=o)},_refreshingAll,_refreshID=0,_queueRefreshID,_queueRefreshAll=function t(){if(_queueRefreshID!==_refreshID){var o=_queueRefreshID=_refreshID;requestAnimationFrame(function(){return o===_refreshID&&_refreshAll(!0)})}},_refresh100vh=function t(){_body.appendChild(_div100vh),_100vh=!_normalizer&&_div100vh.offsetHeight||_win.innerHeight,_body.removeChild(_div100vh)},_hideAllMarkers=function t(o){return _toArray(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(r){return r.style.display=o?"none":"block"})},_refreshAll=function t(o,r){if(_lastScrollTime&&!o&&!_isReverted){_addListener(ScrollTrigger,"scrollEnd",_softRefresh);return}_refresh100vh(),_refreshingAll=ScrollTrigger.isRefreshing=!0,_scrollers.forEach(function(n){return _isFunction(n)&&++n.cacheID&&(n.rec=n())});var e=_dispatch("refreshInit");_sort&&ScrollTrigger.sort(),r||_revertAll(),_scrollers.forEach(function(n){_isFunction(n)&&(n.smooth&&(n.target.style.scrollBehavior="auto"),n(0))}),_triggers.slice(0).forEach(function(n){return n.refresh()}),_isReverted=!1,_triggers.forEach(function(n){if(n._subPinOffset&&n.pin){var a=n.vars.horizontal?"offsetWidth":"offsetHeight",i=n.pin[a];n.revert(!0,1),n.adjustPinSpacing(n.pin[a]-i),n.refresh()}}),_clampingMax=1,_hideAllMarkers(!0),_triggers.forEach(function(n){var a=_maxScroll(n.scroller,n._dir),i=n.vars.end==="max"||n._endClamp&&n.end>a,s=n._startClamp&&n.start>=a;(i||s)&&n.setPositions(s?a-1:n.start,i?Math.max(s?a:n.start+1,a):n.end,!0)}),_hideAllMarkers(!1),_clampingMax=0,e.forEach(function(n){return n&&n.render&&n.render(-1)}),_scrollers.forEach(function(n){_isFunction(n)&&(n.smooth&&requestAnimationFrame(function(){return n.target.style.scrollBehavior="smooth"}),n.rec&&n(n.rec))}),_clearScrollMemory(_scrollRestoration,1),_resizeDelay.pause(),_refreshID++,_refreshingAll=2,_updateAll(2),_triggers.forEach(function(n){return _isFunction(n.vars.onRefresh)&&n.vars.onRefresh(n)}),_refreshingAll=ScrollTrigger.isRefreshing=!1,_dispatch("refresh")},_lastScroll=0,_direction=1,_primary,_updateAll=function t(o){if(o===2||!_refreshingAll&&!_isReverted){ScrollTrigger.isUpdating=!0,_primary&&_primary.update(0);var r=_triggers.length,e=_getTime(),n=e-_time1>=50,a=r&&_triggers[0].scroll();if(_direction=_lastScroll>a?-1:1,_refreshingAll||(_lastScroll=a),n&&(_lastScrollTime&&!_pointerIsDown&&e-_lastScrollTime>200&&(_lastScrollTime=0,_dispatch("scrollEnd")),_time2=_time1,_time1=e),_direction<0){for(_i=r;_i-- >0;)_triggers[_i]&&_triggers[_i].update(0,n);_direction=1}else for(_i=0;_i<r;_i++)_triggers[_i]&&_triggers[_i].update(0,n);ScrollTrigger.isUpdating=!1}_rafID=0},_propNamesToCopy=[_left,_top,_bottom,_right,_margin+_Bottom,_margin+_Right,_margin+_Top,_margin+_Left,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],_stateProps=_propNamesToCopy.concat([_width,_height,"boxSizing","max"+_Width,"max"+_Height,"position",_margin,_padding,_padding+_Top,_padding+_Right,_padding+_Bottom,_padding+_Left]),_swapPinOut=function t(o,r,e){_setState(e);var n=o._gsap;if(n.spacerIsNative)_setState(n.spacerState);else if(o._gsap.swappedIn){var a=r.parentNode;a&&(a.insertBefore(o,r),a.removeChild(r))}o._gsap.swappedIn=!1},_swapPinIn=function t(o,r,e,n){if(!o._gsap.swappedIn){for(var a=_propNamesToCopy.length,i=r.style,s=o.style,l;a--;)l=_propNamesToCopy[a],i[l]=e[l];i.position=e.position==="absolute"?"absolute":"relative",e.display==="inline"&&(i.display="inline-block"),s[_bottom]=s[_right]="auto",i.flexBasis=e.flexBasis||"auto",i.overflow="visible",i.boxSizing="border-box",i[_width]=_getSize(o,_horizontal)+_px,i[_height]=_getSize(o,_vertical)+_px,i[_padding]=s[_margin]=s[_top]=s[_left]="0",_setState(n),s[_width]=s["max"+_Width]=e[_width],s[_height]=s["max"+_Height]=e[_height],s[_padding]=e[_padding],o.parentNode!==r&&(o.parentNode.insertBefore(r,o),r.appendChild(o)),o._gsap.swappedIn=!0}},_capsExp=/([A-Z])/g,_setState=function t(o){if(o){var r=o.t.style,e=o.length,n=0,a,i;for((o.t._gsap||gsap.core.getCache(o.t)).uncache=1;n<e;n+=2)i=o[n+1],a=o[n],i?r[a]=i:r[a]&&r.removeProperty(a.replace(_capsExp,"-$1").toLowerCase())}},_getState=function t(o){for(var r=_stateProps.length,e=o.style,n=[],a=0;a<r;a++)n.push(_stateProps[a],e[_stateProps[a]]);return n.t=o,n},_copyState=function t(o,r,e){for(var n=[],a=o.length,i=e?8:0,s;i<a;i+=2)s=o[i],n.push(s,s in r?r[s]:o[i+1]);return n.t=o.t,n},_winOffsets={left:0,top:0},_parsePosition=function t(o,r,e,n,a,i,s,l,d,c,u,f,m,b){_isFunction(o)&&(o=o(l)),_isString(o)&&o.substr(0,3)==="max"&&(o=f+(o.charAt(4)==="="?_offsetToPx("0"+o.substr(3),e):0));var y=m?m.time():0,_,S,C;if(m&&m.seek(0),isNaN(o)||(o=+o),_isNumber(o))m&&(o=gsap.utils.mapRange(m.scrollTrigger.start,m.scrollTrigger.end,0,f,o)),s&&_positionMarker(s,e,n,!0);else{_isFunction(r)&&(r=r(l));var T=(o||"0").split(" "),x,k,E,w;C=_getTarget(r,l)||_body,x=_getBounds(C)||{},(!x||!x.left&&!x.top)&&_getComputedStyle(C).display==="none"&&(w=C.style.display,C.style.display="block",x=_getBounds(C),w?C.style.display=w:C.style.removeProperty("display")),k=_offsetToPx(T[0],x[n.d]),E=_offsetToPx(T[1]||"0",e),o=x[n.p]-d[n.p]-c+k+a-E,s&&_positionMarker(s,E,n,e-E<20||s._isStart&&E>20),e-=e-E}if(b&&(l[b]=o||-.001,o<0&&(o=0)),i){var D=o+e,N=i._isStart;_="scroll"+n.d2,_positionMarker(i,D,n,N&&D>20||!N&&(u?Math.max(_body[_],_docEl[_]):i.parentNode[_])<=D+1),u&&(d=_getBounds(s),u&&(i.style[n.op.p]=d[n.op.p]-n.op.m-i._offset+_px))}return m&&C&&(_=_getBounds(C),m.seek(f),S=_getBounds(C),m._caScrollDist=_[n.p]-S[n.p],o=o/m._caScrollDist*f),m&&m.seek(y),m?o:Math.round(o)},_prefixExp=/(webkit|moz|length|cssText|inset)/i,_reparent=function t(o,r,e,n){if(o.parentNode!==r){var a=o.style,i,s;if(r===_body){o._stOrig=a.cssText,s=_getComputedStyle(o);for(i in s)!+i&&!_prefixExp.test(i)&&s[i]&&typeof a[i]=="string"&&i!=="0"&&(a[i]=s[i]);a.top=e,a.left=n}else a.cssText=o._stOrig;gsap.core.getCache(o).uncache=1,r.appendChild(o)}},_interruptionTracker=function t(o,r,e){var n=r,a=n;return function(i){var s=Math.round(o());return s!==n&&s!==a&&Math.abs(s-n)>3&&Math.abs(s-a)>3&&(i=s,e&&e()),a=n,n=i,i}},_shiftMarker=function t(o,r,e){var n={};n[r.p]="+="+e,gsap.set(o,n)},_getTweenCreator=function t(o,r){var e=_getScrollFunc(o,r),n="_scroll"+r.p2,a=function i(s,l,d,c,u){var f=i.tween,m=l.onComplete,b={};d=d||e();var y=_interruptionTracker(e,d,function(){f.kill(),i.tween=0});return u=c&&u||0,c=c||s-d,f&&f.kill(),l[n]=s,l.inherit=!1,l.modifiers=b,b[n]=function(){return y(d+c*f.ratio+u*f.ratio*f.ratio)},l.onUpdate=function(){_scrollers.cache++,i.tween&&_updateAll()},l.onComplete=function(){i.tween=0,m&&m.call(f)},f=i.tween=gsap.to(o,l),f};return o[n]=e,e.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},_addListener(o,"wheel",e.wheelHandler),ScrollTrigger.isTouch&&_addListener(o,"touchmove",e.wheelHandler),a},ScrollTrigger=function(){function t(r,e){_coreInitted||t.register(gsap)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),_context(this),this.init(r,e)}var o=t.prototype;return o.init=function(e,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!_enabled){this.update=this.refresh=this.kill=_passThrough;return}e=_setDefaults(_isString(e)||_isNumber(e)||e.nodeType?{trigger:e}:e,_defaults);var a=e,i=a.onUpdate,s=a.toggleClass,l=a.id,d=a.onToggle,c=a.onRefresh,u=a.scrub,f=a.trigger,m=a.pin,b=a.pinSpacing,y=a.invalidateOnRefresh,_=a.anticipatePin,S=a.onScrubComplete,C=a.onSnapComplete,T=a.once,x=a.snap,k=a.pinReparent,E=a.pinSpacer,w=a.containerAnimation,D=a.fastScrollEnd,N=a.preventOverlaps,F=e.horizontal||e.containerAnimation&&e.horizontal!==!1?_horizontal:_vertical,V=!u&&u!==0,A=_getTarget(e.scroller||_win),M=gsap.core.getCache(A),O=_isViewport(A),R=("pinType"in e?e.pinType:_getProxyProp(A,"pinType")||O&&"fixed")==="fixed",I=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],j=V&&e.toggleActions.split(" "),H="markers"in e?e.markers:_defaults.markers,U=O?0:parseFloat(_getComputedStyle(A)["border"+F.p2+_Width])||0,B=this,L=e.onRefreshInit&&function(){return e.onRefreshInit(B)},z=_getSizeFunc(A,O,F),W=_getOffsetsFunc(A,O),J=0,te=0,re=0,oe=_getScrollFunc(A,F),X,se,le,he,ge,Q,Y,ne,Ce,ae,Be,me,K,q,Z,de,fe,_e,pe,ve,Me,Fe,Te,Se,Ae,ue,ye,Xe,De,ke,ze,qe,ht,pt,Ne,Je,$e,st,bt;if(B._startClamp=B._endClamp=!1,B._dir=F,_*=45,B.scroller=A,B.scroll=w?w.time.bind(w):oe,he=oe(),B.vars=e,n=n||e.animation,"refreshPriority"in e&&(_sort=1,e.refreshPriority===-9999&&(_primary=B)),M.tweenScroll=M.tweenScroll||{top:_getTweenCreator(A,_vertical),left:_getTweenCreator(A,_horizontal)},B.tweenTo=X=M.tweenScroll[F.p],B.scrubDuration=function(Ye){ht=_isNumber(Ye)&&Ye,ht?qe?qe.duration(Ye):qe=gsap.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:ht,paused:!0,onComplete:function(){return S&&S(B)}}):(qe&&qe.progress(1).kill(),qe=0)},n&&(n.vars.lazy=!1,n._initted&&!B.isReverted||n.vars.immediateRender!==!1&&e.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),B.animation=n.pause(),n.scrollTrigger=B,B.scrubDuration(u),ke=0,l||(l=n.vars.id)),x&&((!_isObject(x)||x.push)&&(x={snapTo:x}),"scrollBehavior"in _body.style&&gsap.set(O?[_body,_docEl]:A,{scrollBehavior:"auto"}),_scrollers.forEach(function(Ye){return _isFunction(Ye)&&Ye.target===(O?_doc.scrollingElement||_docEl:A)&&(Ye.smooth=!1)}),le=_isFunction(x.snapTo)?x.snapTo:x.snapTo==="labels"?_getClosestLabel(n):x.snapTo==="labelsDirectional"?_getLabelAtDirection(n):x.directional!==!1?function(Ye,lt){return _snapDirectional(x.snapTo)(Ye,_getTime()-te<500?0:lt.direction)}:gsap.utils.snap(x.snapTo),pt=x.duration||{min:.1,max:2},pt=_isObject(pt)?_clamp(pt.min,pt.max):_clamp(pt,pt),Ne=gsap.delayedCall(x.delay||ht/2||.1,function(){var Ye=oe(),lt=_getTime()-te<500,et=X.tween;if((lt||Math.abs(B.getVelocity())<10)&&!et&&!_pointerIsDown&&J!==Ye){var nt=(Ye-Q)/q,Pt=n&&!V?n.totalProgress():nt,ft=lt?0:(Pt-ze)/(_getTime()-_time2)*1e3||0,Nt=gsap.utils.clamp(-nt,1-nt,_abs(ft/2)*ft/.185),Ot=nt+(x.inertia===!1?0:Nt),yt,Dt,_t=x,Ie=_t.onStart,Le=_t.onInterrupt,ct=_t.onComplete;if(yt=le(Ot,B),_isNumber(yt)||(yt=Ot),Dt=Math.round(Q+yt*q),Ye<=Y&&Ye>=Q&&Dt!==Ye){if(et&&!et._initted&&et.data<=_abs(Dt-Ye))return;x.inertia===!1&&(Nt=yt-nt),X(Dt,{duration:pt(_abs(Math.max(_abs(Ot-Pt),_abs(yt-Pt))*.185/ft/.05||0)),ease:x.ease||"power3",data:_abs(Dt-Ye),onInterrupt:function(){return Ne.restart(!0)&&Le&&Le(B)},onComplete:function(){B.update(),J=oe(),n&&(qe?qe.resetTo("totalProgress",yt,n._tTime/n._tDur):n.progress(yt)),ke=ze=n&&!V?n.totalProgress():B.progress,C&&C(B),ct&&ct(B)}},Ye,Nt*q,Dt-Ye-Nt*q),Ie&&Ie(B,X.tween)}}else B.isActive&&J!==Ye&&Ne.restart(!0)}).pause()),l&&(_ids[l]=B),f=B.trigger=_getTarget(f||m!==!0&&m),bt=f&&f._gsap&&f._gsap.stRevert,bt&&(bt=bt(B)),m=m===!0?f:_getTarget(m),_isString(s)&&(s={targets:f,className:s}),m&&(b===!1||b===_margin||(b=!b&&m.parentNode&&m.parentNode.style&&_getComputedStyle(m.parentNode).display==="flex"?!1:_padding),B.pin=m,se=gsap.core.getCache(m),se.spacer?Z=se.pinState:(E&&(E=_getTarget(E),E&&!E.nodeType&&(E=E.current||E.nativeElement),se.spacerIsNative=!!E,E&&(se.spacerState=_getState(E))),se.spacer=_e=E||_doc.createElement("div"),_e.classList.add("pin-spacer"),l&&_e.classList.add("pin-spacer-"+l),se.pinState=Z=_getState(m)),e.force3D!==!1&&gsap.set(m,{force3D:!0}),B.spacer=_e=se.spacer,De=_getComputedStyle(m),Se=De[b+F.os2],ve=gsap.getProperty(m),Me=gsap.quickSetter(m,F.a,_px),_swapPinIn(m,_e,De),fe=_getState(m)),H){me=_isObject(H)?_setDefaults(H,_markerDefaults):_markerDefaults,ae=_createMarker("scroller-start",l,A,F,me,0),Be=_createMarker("scroller-end",l,A,F,me,0,ae),pe=ae["offset"+F.op.d2];var Bt=_getTarget(_getProxyProp(A,"content")||A);ne=this.markerStart=_createMarker("start",l,Bt,F,me,pe,0,w),Ce=this.markerEnd=_createMarker("end",l,Bt,F,me,pe,0,w),w&&(st=gsap.quickSetter([ne,Ce],F.a,_px)),!R&&!(_proxies.length&&_getProxyProp(A,"fixedMarkers")===!0)&&(_makePositionable(O?_body:A),gsap.set([ae,Be],{force3D:!0}),ue=gsap.quickSetter(ae,F.a,_px),Xe=gsap.quickSetter(Be,F.a,_px))}if(w){var rt=w.vars.onUpdate,Ze=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){B.update(0,0,1),rt&&rt.apply(w,Ze||[])})}if(B.previous=function(){return _triggers[_triggers.indexOf(B)-1]},B.next=function(){return _triggers[_triggers.indexOf(B)+1]},B.revert=function(Ye,lt){if(!lt)return B.kill(!0);var et=Ye!==!1||!B.enabled,nt=_refreshing;et!==B.isReverted&&(et&&(Je=Math.max(oe(),B.scroll.rec||0),re=B.progress,$e=n&&n.progress()),ne&&[ne,Ce,ae,Be].forEach(function(Pt){return Pt.style.display=et?"none":"block"}),et&&(_refreshing=B,B.update(et)),m&&(!k||!B.isActive)&&(et?_swapPinOut(m,_e,Z):_swapPinIn(m,_e,_getComputedStyle(m),Ae)),et||B.update(et),_refreshing=nt,B.isReverted=et)},B.refresh=function(Ye,lt,et,nt){if(!((_refreshing||!B.enabled)&&!lt)){if(m&&Ye&&_lastScrollTime){_addListener(t,"scrollEnd",_softRefresh);return}!_refreshingAll&&L&&L(B),_refreshing=B,X.tween&&!et&&(X.tween.kill(),X.tween=0),qe&&qe.pause(),y&&n&&n.revert({kill:!1}).invalidate(),B.isReverted||B.revert(!0,!0),B._subPinOffset=!1;var Pt=z(),ft=W(),Nt=w?w.duration():_maxScroll(A,F),Ot=q<=.01,yt=0,Dt=nt||0,_t=_isObject(et)?et.end:e.end,Ie=e.endTrigger||f,Le=_isObject(et)?et.start:e.start||(e.start===0||!f?0:m?"0 0":"0 100%"),ct=B.pinnedContainer=e.pinnedContainer&&_getTarget(e.pinnedContainer,B),We=f&&Math.max(0,_triggers.indexOf(B))||0,we=We,He,ot,kt,Yt,wt,Vt,zt,_o,xe,Ke,Ge,ut,Et;for(H&&_isObject(et)&&(ut=gsap.getProperty(ae,F.p),Et=gsap.getProperty(Be,F.p));we--;)Vt=_triggers[we],Vt.end||Vt.refresh(0,1)||(_refreshing=B),zt=Vt.pin,zt&&(zt===f||zt===m||zt===ct)&&!Vt.isReverted&&(Ke||(Ke=[]),Ke.unshift(Vt),Vt.revert(!0,!0)),Vt!==_triggers[we]&&(We--,we--);for(_isFunction(Le)&&(Le=Le(B)),Le=_parseClamp(Le,"start",B),Q=_parsePosition(Le,f,Pt,F,oe(),ne,ae,B,ft,U,R,Nt,w,B._startClamp&&"_startClamp")||(m?-.001:0),_isFunction(_t)&&(_t=_t(B)),_isString(_t)&&!_t.indexOf("+=")&&(~_t.indexOf(" ")?_t=(_isString(Le)?Le.split(" ")[0]:"")+_t:(yt=_offsetToPx(_t.substr(2),Pt),_t=_isString(Le)?Le:(w?gsap.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,Q):Q)+yt,Ie=f)),_t=_parseClamp(_t,"end",B),Y=Math.max(Q,_parsePosition(_t||(Ie?"100% 0":Nt),Ie,Pt,F,oe()+yt,Ce,Be,B,ft,U,R,Nt,w,B._endClamp&&"_endClamp"))||-.001,yt=0,we=We;we--;)Vt=_triggers[we],zt=Vt.pin,zt&&Vt.start-Vt._pinPush<=Q&&!w&&Vt.end>0&&(He=Vt.end-(B._startClamp?Math.max(0,Vt.start):Vt.start),(zt===f&&Vt.start-Vt._pinPush<Q||zt===ct)&&isNaN(Le)&&(yt+=He*(1-Vt.progress)),zt===m&&(Dt+=He));if(Q+=yt,Y+=yt,B._startClamp&&(B._startClamp+=yt),B._endClamp&&!_refreshingAll&&(B._endClamp=Y||-.001,Y=Math.min(Y,_maxScroll(A,F))),q=Y-Q||(Q-=.01)&&.001,Ot&&(re=gsap.utils.clamp(0,1,gsap.utils.normalize(Q,Y,Je))),B._pinPush=Dt,ne&&yt&&(He={},He[F.a]="+="+yt,ct&&(He[F.p]="-="+oe()),gsap.set([ne,Ce],He)),m&&!(_clampingMax&&B.end>=_maxScroll(A,F)))He=_getComputedStyle(m),Yt=F===_vertical,kt=oe(),Fe=parseFloat(ve(F.a))+Dt,!Nt&&Y>1&&(Ge=(O?_doc.scrollingElement||_docEl:A).style,Ge={style:Ge,value:Ge["overflow"+F.a.toUpperCase()]},O&&_getComputedStyle(_body)["overflow"+F.a.toUpperCase()]!=="scroll"&&(Ge.style["overflow"+F.a.toUpperCase()]="scroll")),_swapPinIn(m,_e,He),fe=_getState(m),ot=_getBounds(m,!0),_o=R&&_getScrollFunc(A,Yt?_horizontal:_vertical)(),b?(Ae=[b+F.os2,q+Dt+_px],Ae.t=_e,we=b===_padding?_getSize(m,F)+q+Dt:0,we&&(Ae.push(F.d,we+_px),_e.style.flexBasis!=="auto"&&(_e.style.flexBasis=we+_px)),_setState(Ae),ct&&_triggers.forEach(function(Ft){Ft.pin===ct&&Ft.vars.pinSpacing!==!1&&(Ft._subPinOffset=!0)}),R&&oe(Je)):(we=_getSize(m,F),we&&_e.style.flexBasis!=="auto"&&(_e.style.flexBasis=we+_px)),R&&(wt={top:ot.top+(Yt?kt-Q:_o)+_px,left:ot.left+(Yt?_o:kt-Q)+_px,boxSizing:"border-box",position:"fixed"},wt[_width]=wt["max"+_Width]=Math.ceil(ot.width)+_px,wt[_height]=wt["max"+_Height]=Math.ceil(ot.height)+_px,wt[_margin]=wt[_margin+_Top]=wt[_margin+_Right]=wt[_margin+_Bottom]=wt[_margin+_Left]="0",wt[_padding]=He[_padding],wt[_padding+_Top]=He[_padding+_Top],wt[_padding+_Right]=He[_padding+_Right],wt[_padding+_Bottom]=He[_padding+_Bottom],wt[_padding+_Left]=He[_padding+_Left],de=_copyState(Z,wt,k),_refreshingAll&&oe(0)),n?(xe=n._initted,_suppressOverwrites(1),n.render(n.duration(),!0,!0),Te=ve(F.a)-Fe+q+Dt,ye=Math.abs(q-Te)>1,R&&ye&&de.splice(de.length-2,2),n.render(0,!0,!0),xe||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),_suppressOverwrites(0)):Te=q,Ge&&(Ge.value?Ge.style["overflow"+F.a.toUpperCase()]=Ge.value:Ge.style.removeProperty("overflow-"+F.a));else if(f&&oe()&&!w)for(ot=f.parentNode;ot&&ot!==_body;)ot._pinOffset&&(Q-=ot._pinOffset,Y-=ot._pinOffset),ot=ot.parentNode;Ke&&Ke.forEach(function(Ft){return Ft.revert(!1,!0)}),B.start=Q,B.end=Y,he=ge=_refreshingAll?Je:oe(),!w&&!_refreshingAll&&(he<Je&&oe(Je),B.scroll.rec=0),B.revert(!1,!0),te=_getTime(),Ne&&(J=-1,Ne.restart(!0)),_refreshing=0,n&&V&&(n._initted||$e)&&n.progress()!==$e&&n.progress($e||0,!0).render(n.time(),!0,!0),(Ot||re!==B.progress||w||y)&&(n&&!V&&n.totalProgress(w&&Q<-.001&&!re?gsap.utils.normalize(Q,Y,0):re,!0),B.progress=Ot||(he-Q)/q===re?0:re),m&&b&&(_e._pinOffset=Math.round(B.progress*Te)),qe&&qe.invalidate(),isNaN(ut)||(ut-=gsap.getProperty(ae,F.p),Et-=gsap.getProperty(Be,F.p),_shiftMarker(ae,F,ut),_shiftMarker(ne,F,ut-(nt||0)),_shiftMarker(Be,F,Et),_shiftMarker(Ce,F,Et-(nt||0))),Ot&&!_refreshingAll&&B.update(),c&&!_refreshingAll&&!K&&(K=!0,c(B),K=!1)}},B.getVelocity=function(){return(oe()-ge)/(_getTime()-_time2)*1e3||0},B.endAnimation=function(){_endAnimation(B.callbackAnimation),n&&(qe?qe.progress(1):n.paused()?V||_endAnimation(n,B.direction<0,1):_endAnimation(n,n.reversed()))},B.labelToScroll=function(Ye){return n&&n.labels&&(Q||B.refresh()||Q)+n.labels[Ye]/n.duration()*q||0},B.getTrailing=function(Ye){var lt=_triggers.indexOf(B),et=B.direction>0?_triggers.slice(0,lt).reverse():_triggers.slice(lt+1);return(_isString(Ye)?et.filter(function(nt){return nt.vars.preventOverlaps===Ye}):et).filter(function(nt){return B.direction>0?nt.end<=Q:nt.start>=Y})},B.update=function(Ye,lt,et){if(!(w&&!et&&!Ye)){var nt=_refreshingAll===!0?Je:B.scroll(),Pt=Ye?0:(nt-Q)/q,ft=Pt<0?0:Pt>1?1:Pt||0,Nt=B.progress,Ot,yt,Dt,_t,Ie,Le,ct,We;if(lt&&(ge=he,he=w?oe():nt,x&&(ze=ke,ke=n&&!V?n.totalProgress():ft)),_&&m&&!_refreshing&&!_startup&&_lastScrollTime&&(!ft&&Q<nt+(nt-ge)/(_getTime()-_time2)*_?ft=1e-4:ft===1&&Y>nt+(nt-ge)/(_getTime()-_time2)*_&&(ft=.9999)),ft!==Nt&&B.enabled){if(Ot=B.isActive=!!ft&&ft<1,yt=!!Nt&&Nt<1,Le=Ot!==yt,Ie=Le||!!ft!=!!Nt,B.direction=ft>Nt?1:-1,B.progress=ft,Ie&&!_refreshing&&(Dt=ft&&!Nt?0:ft===1?1:Nt===1?2:3,V&&(_t=!Le&&j[Dt+1]!=="none"&&j[Dt+1]||j[Dt],We=n&&(_t==="complete"||_t==="reset"||_t in n))),N&&(Le||We)&&(We||u||!n)&&(_isFunction(N)?N(B):B.getTrailing(N).forEach(function(kt){return kt.endAnimation()})),V||(qe&&!_refreshing&&!_startup?(qe._dp._time-qe._start!==qe._time&&qe.render(qe._dp._time-qe._start),qe.resetTo?qe.resetTo("totalProgress",ft,n._tTime/n._tDur):(qe.vars.totalProgress=ft,qe.invalidate().restart())):n&&n.totalProgress(ft,!!(_refreshing&&(te||Ye)))),m){if(Ye&&b&&(_e.style[b+F.os2]=Se),!R)Me(_round(Fe+Te*ft));else if(Ie){if(ct=!Ye&&ft>Nt&&Y+1>nt&&nt+1>=_maxScroll(A,F),k)if(!Ye&&(Ot||ct)){var we=_getBounds(m,!0),He=nt-Q;_reparent(m,_body,we.top+(F===_vertical?He:0)+_px,we.left+(F===_vertical?0:He)+_px)}else _reparent(m,_e);_setState(Ot||ct?de:fe),ye&&ft<1&&Ot||Me(Fe+(ft===1&&!ct?Te:0))}}x&&!X.tween&&!_refreshing&&!_startup&&Ne.restart(!0),s&&(Le||T&&ft&&(ft<1||!_limitCallbacks))&&_toArray(s.targets).forEach(function(kt){return kt.classList[Ot||T?"add":"remove"](s.className)}),i&&!V&&!Ye&&i(B),Ie&&!_refreshing?(V&&(We&&(_t==="complete"?n.pause().totalProgress(1):_t==="reset"?n.restart(!0).pause():_t==="restart"?n.restart(!0):n[_t]()),i&&i(B)),(Le||!_limitCallbacks)&&(d&&Le&&_callback(B,d),I[Dt]&&_callback(B,I[Dt]),T&&(ft===1?B.kill(!1,1):I[Dt]=0),Le||(Dt=ft===1?1:3,I[Dt]&&_callback(B,I[Dt]))),D&&!Ot&&Math.abs(B.getVelocity())>(_isNumber(D)?D:2500)&&(_endAnimation(B.callbackAnimation),qe?qe.progress(1):_endAnimation(n,_t==="reverse"?1:!ft,1))):V&&i&&!_refreshing&&i(B)}if(Xe){var ot=w?nt/w.duration()*(w._caScrollDist||0):nt;ue(ot+(ae._isFlipped?1:0)),Xe(ot)}st&&st(-nt/w.duration()*(w._caScrollDist||0))}},B.enable=function(Ye,lt){B.enabled||(B.enabled=!0,_addListener(A,"resize",_onResize),O||_addListener(A,"scroll",_onScroll),L&&_addListener(t,"refreshInit",L),Ye!==!1&&(B.progress=re=0,he=ge=J=oe()),lt!==!1&&B.refresh())},B.getTween=function(Ye){return Ye&&X?X.tween:qe},B.setPositions=function(Ye,lt,et,nt){if(w){var Pt=w.scrollTrigger,ft=w.duration(),Nt=Pt.end-Pt.start;Ye=Pt.start+Nt*Ye/ft,lt=Pt.start+Nt*lt/ft}B.refresh(!1,!1,{start:_keepClamp(Ye,et&&!!B._startClamp),end:_keepClamp(lt,et&&!!B._endClamp)},nt),B.update()},B.adjustPinSpacing=function(Ye){if(Ae&&Ye){var lt=Ae.indexOf(F.d)+1;Ae[lt]=parseFloat(Ae[lt])+Ye+_px,Ae[1]=parseFloat(Ae[1])+Ye+_px,_setState(Ae)}},B.disable=function(Ye,lt){if(B.enabled&&(Ye!==!1&&B.revert(!0,!0),B.enabled=B.isActive=!1,lt||qe&&qe.pause(),Je=0,se&&(se.uncache=1),L&&_removeListener(t,"refreshInit",L),Ne&&(Ne.pause(),X.tween&&X.tween.kill()&&(X.tween=0)),!O)){for(var et=_triggers.length;et--;)if(_triggers[et].scroller===A&&_triggers[et]!==B)return;_removeListener(A,"resize",_onResize),O||_removeListener(A,"scroll",_onScroll)}},B.kill=function(Ye,lt){B.disable(Ye,lt),qe&&!lt&&qe.kill(),l&&delete _ids[l];var et=_triggers.indexOf(B);et>=0&&_triggers.splice(et,1),et===_i&&_direction>0&&_i--,et=0,_triggers.forEach(function(nt){return nt.scroller===B.scroller&&(et=1)}),et||_refreshingAll||(B.scroll.rec=0),n&&(n.scrollTrigger=null,Ye&&n.revert({kill:!1}),lt||n.kill()),ne&&[ne,Ce,ae,Be].forEach(function(nt){return nt.parentNode&&nt.parentNode.removeChild(nt)}),_primary===B&&(_primary=0),m&&(se&&(se.uncache=1),et=0,_triggers.forEach(function(nt){return nt.pin===m&&et++}),et||(se.spacer=0)),e.onKill&&e.onKill(B)},_triggers.push(B),B.enable(!1,!1),bt&&bt(B),n&&n.add&&!q){var dt=B.update;B.update=function(){B.update=dt,Q||Y||B.refresh()},gsap.delayedCall(.01,B.update),q=.01,Q=Y=0}else B.refresh();m&&_queueRefreshAll()},t.register=function(e){return _coreInitted||(gsap=e||_getGSAP(),_windowExists()&&window.document&&t.enable(),_coreInitted=_enabled),_coreInitted},t.defaults=function(e){if(e)for(var n in e)_defaults[n]=e[n];return _defaults},t.disable=function(e,n){_enabled=0,_triggers.forEach(function(i){return i[n?"kill":"disable"](e)}),_removeListener(_win,"wheel",_onScroll),_removeListener(_doc,"scroll",_onScroll),clearInterval(_syncInterval),_removeListener(_doc,"touchcancel",_passThrough),_removeListener(_body,"touchstart",_passThrough),_multiListener(_removeListener,_doc,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_removeListener,_doc,"pointerup,touchend,mouseup",_pointerUpHandler),_resizeDelay.kill(),_iterateAutoRefresh(_removeListener);for(var a=0;a<_scrollers.length;a+=3)_wheelListener(_removeListener,_scrollers[a],_scrollers[a+1]),_wheelListener(_removeListener,_scrollers[a],_scrollers[a+2])},t.enable=function(){if(_win=window,_doc=document,_docEl=_doc.documentElement,_body=_doc.body,gsap&&(_toArray=gsap.utils.toArray,_clamp=gsap.utils.clamp,_context=gsap.core.context||_passThrough,_suppressOverwrites=gsap.core.suppressOverwrites||_passThrough,_scrollRestoration=_win.history.scrollRestoration||"auto",_lastScroll=_win.pageYOffset,gsap.core.globals("ScrollTrigger",t),_body)){_enabled=1,_div100vh=document.createElement("div"),_div100vh.style.height="100vh",_div100vh.style.position="absolute",_refresh100vh(),_rafBugFix(),Observer.register(gsap),t.isTouch=Observer.isTouch,_fixIOSBug=Observer.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),_ignoreMobileResize=Observer.isTouch===1,_addListener(_win,"wheel",_onScroll),_root=[_win,_doc,_docEl,_body],gsap.matchMedia?(t.matchMedia=function(l){var d=gsap.matchMedia(),c;for(c in l)d.add(c,l[c]);return d},gsap.addEventListener("matchMediaInit",function(){return _revertAll()}),gsap.addEventListener("matchMediaRevert",function(){return _revertRecorded()}),gsap.addEventListener("matchMedia",function(){_refreshAll(0,1),_dispatch("matchMedia")}),gsap.matchMedia("(orientation: portrait)",function(){return _setBaseDimensions(),_setBaseDimensions})):console.warn("Requires GSAP 3.11.0 or later"),_setBaseDimensions(),_addListener(_doc,"scroll",_onScroll);var e=_body.style,n=e.borderTopStyle,a=gsap.core.Animation.prototype,i,s;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),e.borderTopStyle="solid",i=_getBounds(_body),_vertical.m=Math.round(i.top+_vertical.sc())||0,_horizontal.m=Math.round(i.left+_horizontal.sc())||0,n?e.borderTopStyle=n:e.removeProperty("border-top-style"),_syncInterval=setInterval(_sync,250),gsap.delayedCall(.5,function(){return _startup=0}),_addListener(_doc,"touchcancel",_passThrough),_addListener(_body,"touchstart",_passThrough),_multiListener(_addListener,_doc,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_addListener,_doc,"pointerup,touchend,mouseup",_pointerUpHandler),_transformProp=gsap.utils.checkPrefix("transform"),_stateProps.push(_transformProp),_coreInitted=_getTime(),_resizeDelay=gsap.delayedCall(.2,_refreshAll).pause(),_autoRefresh=[_doc,"visibilitychange",function(){var l=_win.innerWidth,d=_win.innerHeight;_doc.hidden?(_prevWidth=l,_prevHeight=d):(_prevWidth!==l||_prevHeight!==d)&&_onResize()},_doc,"DOMContentLoaded",_refreshAll,_win,"load",_refreshAll,_win,"resize",_onResize],_iterateAutoRefresh(_addListener),_triggers.forEach(function(l){return l.enable(0,1)}),s=0;s<_scrollers.length;s+=3)_wheelListener(_removeListener,_scrollers[s],_scrollers[s+1]),_wheelListener(_removeListener,_scrollers[s],_scrollers[s+2])}},t.config=function(e){"limitCallbacks"in e&&(_limitCallbacks=!!e.limitCallbacks);var n=e.syncInterval;n&&clearInterval(_syncInterval)||(_syncInterval=n)&&setInterval(_sync,n),"ignoreMobileResize"in e&&(_ignoreMobileResize=t.isTouch===1&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(_iterateAutoRefresh(_removeListener)||_iterateAutoRefresh(_addListener,e.autoRefreshEvents||"none"),_ignoreResize=(e.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(e,n){var a=_getTarget(e),i=_scrollers.indexOf(a),s=_isViewport(a);~i&&_scrollers.splice(i,s?6:2),n&&(s?_proxies.unshift(_win,n,_body,n,_docEl,n):_proxies.unshift(a,n))}
vendor: 4,553 bytes, line 1148
1148,t.clearMatchMedia=function(e){_triggers.forEach(function(n){return n._ctx&&n._ctx.query===e&&n._ctx.kill(!0,!0)})},t.isInViewport=function(e,n,a){var i=(_isString(e)?_getTarget(e):e).getBoundingClientRect(),s=i[a?_width:_height]*n||0;return a?i.right-s>0&&i.left+s<_win.innerWidth:i.bottom-s>0&&i.top+s<_win.innerHeight},t.positionInViewport=function(e,n,a){_isString(e)&&(e=_getTarget(e));var i=e.getBoundingClientRect(),s=i[a?_width:_height],l=n==null?s/2:n in _keywords?_keywords[n]*s:~n.indexOf("%")?parseFloat(n)*s/100:parseFloat(n)||0;return a?(i.left+l)/_win.innerWidth:(i.top+l)/_win.innerHeight},t.killAll=function(e){if(_triggers.slice(0).forEach(function(a){return a.vars.id!=="ScrollSmoother"&&a.kill()}),e!==!0){var n=_listeners.killAll||[];_listeners={},n.forEach(function(a){return a()})}},t}();ScrollTrigger.version="3.12.5";ScrollTrigger.saveStyles=function(t){return t?_toArray(t).forEach(function(o){if(o&&o.style){var r=_savedStyles.indexOf(o);r>=0&&_savedStyles.splice(r,5),_savedStyles.push(o,o.style.cssText,o.getBBox&&o.getAttribute("transform"),gsap.core.getCache(o),_context())}}):_savedStyles};ScrollTrigger.revert=function(t,o){return _revertAll(!t,o)};ScrollTrigger.create=function(t,o){return new ScrollTrigger(t,o)};ScrollTrigger.refresh=function(t){return t?_onResize():(_coreInitted||ScrollTrigger.register())&&_refreshAll(!0)};ScrollTrigger.update=function(t){return++_scrollers.cache&&_updateAll(t===!0?2:0)};ScrollTrigger.clearScrollMemory=_clearScrollMemory;ScrollTrigger.maxScroll=function(t,o){return _maxScroll(t,o?_horizontal:_vertical)};ScrollTrigger.getScrollFunc=function(t,o){return _getScrollFunc(_getTarget(t),o?_horizontal:_vertical)};ScrollTrigger.getById=function(t){return _ids[t]};ScrollTrigger.getAll=function(){return _triggers.filter(function(t){return t.vars.id!=="ScrollSmoother"})};ScrollTrigger.isScrolling=function(){return!!_lastScrollTime};ScrollTrigger.snapDirectional=_snapDirectional;ScrollTrigger.addEventListener=function(t,o){var r=_listeners[t]||(_listeners[t]=[]);~r.indexOf(o)||r.push(o)};ScrollTrigger.removeEventListener=function(t,o){var r=_listeners[t],e=r&&r.indexOf(o);e>=0&&r.splice(e,1)};ScrollTrigger.batch=function(t,o){var r=[],e={},n=o.interval||.016,a=o.batchMax||1e9,i=function(d,c){var u=[],f=[],m=gsap.delayedCall(n,function(){c(u,f),u=[],f=[]}).pause();return function(b){u.length||m.restart(!0),u.push(b.trigger),f.push(b),a<=u.length&&m.progress(1)}},s;for(s in o)e[s]=s.substr(0,2)==="on"&&_isFunction(o[s])&&s!=="onRefreshInit"?i(s,o[s]):o[s];return _isFunction(a)&&(a=a(),_addListener(ScrollTrigger,"refresh",function(){return a=o.batchMax()})),_toArray(t).forEach(function(l){var d={};for(s in e)d[s]=e[s];d.trigger=l,r.push(ScrollTrigger.create(d))}),r};var _clampScrollAndGetDurationMultiplier=function t(o,r,e,n){return r>n?o(n):r<0&&o(0),e>n?(n-r)/(e-r):e<0?r/(r-e):1},_allowNativePanning=function t(o,r){r===!0?o.style.removeProperty("touch-action"):o.style.touchAction=r===!0?"auto":r?"pan-"+r+(Observer.isTouch?" pinch-zoom":""):"none",o===_docEl&&t(_body,r)},_overflow={auto:1,scroll:1},_nestedScroll=function t(o){var r=o.event,e=o.target,n=o.axis,a=(r.changedTouches?r.changedTouches[0]:r).target,i=a._gsap||gsap.core.getCache(a),s=_getTime(),l;if(!i._isScrollT||s-i._isScrollT>2e3){for(;a&&a!==_body&&(a.scrollHeight<=a.clientHeight&&a.scrollWidth<=a.clientWidth||!(_overflow[(l=_getComputedStyle(a)).overflowY]||_overflow[l.overflowX]));)a=a.parentNode;i._isScroll=a&&a!==e&&!_isViewport(a)&&(_overflow[(l=_getComputedStyle(a)).overflowY]||_overflow[l.overflowX]),i._isScrollT=s}(i._isScroll||n==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},_inputObserver=function t(o,r,e,n){return Observer.create({target:o,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:n=n&&_nestedScroll,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return e&&_addListener(_doc,Observer.eventTypes[0],_captureInputs,!1,!0)},onDisable:function(){return _removeListener(_doc,Observer.eventTypes[0],_captureInputs,!0)}})},_inputExp=/(input|label|select|textarea)/i,_inputIsFocused,_captureInputs=function t(o){var r=_inputExp.test(o.target.tagName);(r||_inputIsFocused)&&(o._gsapAllow=!0,_inputIsFocused=r)},_getScrollNormalizer=function t(o){_isObject(o)||(o={}),o.preventDefault=o.isNormalizer=o.allowClicks=!0,o.type||(o.type="wheel,touch"),o.debounce=!!o.debounce,o.id=o.id||"normalizer";var r=o,e=r.normalizeScrollX,n=r.momentum,a=r.allowNestedScroll,i=r.onRelease,s,l,d=_getTarget(o.target)||_docEl,c=gsap.core.globals().ScrollSmoother,u=c&&c.get(),f=_fixIOSBug&&(
1148o.content&&_getTarget(o.content)||u&&o.content!==!1&&!u.smooth()&&u.content()),m=_getScrollFunc(d,_vertical),b=_getScrollFunc(d,_horizontal),y=1,_=(Observer.isTouch&&_win.visualViewport?_win.visualViewport.scale*_win.visualViewport.width:_win.outerWidth)/_win.innerWidth,S=0,C=_isFunction(n)?function(){return n(s)}:function(){return n||2.8},T,x,k=_inputObserver(d,o.type,!0,a),E=function(){return x=!1},w=_passThrough,D=_passThrough,N=function(){l=_maxScroll(d,_vertical),D=_clamp(_fixIOSBug?1:0,l),e&&(w=_clamp(0,_maxScroll(d,_horizontal))),T=_refreshID},F=function(){f._gsap.y=_round(parseFloat(f._gsap.y)+m.offset)+"px",f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(f._gsap.y)+", 0, 1)",m.offset=m.cacheID=0},V=function(){if(x){requestAnimationFrame(E);var H=_round(s.deltaY/2),U=D(m.v-H);if(f&&U!==m.v+m.offset){m.offset=U-m.v;var B=_round((parseFloat(f&&f._gsap.y)||0)-m.offset);f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+B+", 0, 1)",f._gsap.y=B+"px",m.cacheID=_scrollers.cache,_updateAll()}return!0}m.offset&&F(),x=!0},A,M,O,R,I=function(){N(),A.isActive()&&A.vars.scrollY>l&&(m()>l?A.progress(1)&&m(l):A.resetTo("scrollY",l))};return f&&gsap.set(f,{y:"+=0"}),o.ignoreCheck=function(j){return _fixIOSBug&&j.type==="touchmove"&&V()||y>1.05&&j.type!=="touchstart"||s.isGesturing||j.touches&&j.touches.length>1},o.onPress=function(){x=!1;var j=y;y=_round((_win.visualViewport&&_win.visualViewport.scale||1)/_),A.pause(),j!==y&&_allowNativePanning(d,y>1.01?!0:e?!1:"x"),M=b(),O=m(),N(),T=_refreshID},o.onRelease=o.onGestureStart=function(j,H){if(m.offset&&F(),!H)R.restart(!0);else{_scrollers.cache++;var U=C(),B,L;e&&(B=b(),L=B+U*.05*-j.velocityX/.227,U*=_clampScrollAndGetDurationMultiplier(b,B,L,_maxScroll(d,_horizontal)),A.vars.scrollX=w(L)),B=m(),L=B+U*.05*-j.velocityY/.227,U*=_clampScrollAndGetDurationMultiplier(m,B,L,_maxScroll(d,_vertical)),A.vars.scrollY=D(L),A.invalidate().duration(U).play(.01),(_fixIOSBug&&A.vars.scrollY>=l||B>=l-1)&&gsap.to({},{onUpdate:I,duration:U})}i&&i(j)},o.onWheel=function(){A._ts&&A.pause(),_getTime()-S>1e3&&(T=0,S=_getTime())},o.onChange=function(j,H,U,B,L){if(_refreshID!==T&&N(),H&&e&&b(w(B[2]===H?M+(j.startX-j.x):b()+H-B[1])),U){m.offset&&F();var z=L[2]===U,W=z?O+j.startY-j.y:m()+U-L[1],J=D(W);z&&W!==J&&(O+=J-W),m(J)}(U||H)&&_updateAll()},o.onEnable=function(){_allowNativePanning(d,e?!1:"x"),ScrollTrigger.addEventListener("refresh",I),_addListener(_win,"resize",I),m.smooth&&(m.target.style.scrollBehavior="auto",m.smooth=b.smooth=!1),k.enable()},o.onDisable=function(){_allowNativePanning(d,!0),_removeListener(_win,"resize",I),ScrollTrigger.removeEventListener("refresh",I),k.kill()},o.lockAxis=o.lockAxis!==!1,s=new Observer(o),s.iOS=_fixIOSBug,_fixIOSBug&&!m()&&m(1),_fixIOSBug&&gsap.ticker.add(_passThrough),R=s._dc,A=gsap.to(s,{ease:"power4",paused:!0,inherit:!1,scrollX:e?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:_interruptionTracker(m,m(),function(){return A.pause()})},onUpdate:_updateAll,onComplete:R.vars.onComplete}),s};ScrollTrigger.sort=function(t){return _triggers.sort(t||function(o,r){return(o.vars.refreshPriority||0)*-1e6+o.start-(r.start+(r.vars.refreshPriority||0)*-1e6)})};ScrollTrigger.observe=function(t){return new Observer(t)};ScrollTrigger.normalizeScroll=function(t){if(typeof t>"u")return _normalizer;if(t===!0&&_normalizer)return _normalizer.enable();if(t===!1){_normalizer&&_normalizer.kill(),_normalizer=t;return}var o=t instanceof Observer?t:_getScrollNormalizer(t);return _normalizer&&_normalizer.target===o.target&&_normalizer.kill(),_isViewport(o.target)&&(_normalizer=o),o};ScrollTrigger.core={_getVelocityProp,_inputObserver,_scrollers,_proxies,bridge:{ss:function t(){_lastScrollTime||_dispatch("scrollStart"),_lastScrollTime=_getTime()},ref:function t(){return _refreshing}}};_getGSAP()&&gsap.registerPlugin(ScrollTrigger);const _hoisted_1$2N={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function render$F(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2N,o[0]||(o[0]=[createBaseVNode("path",{d:"M312.1 375c9.369 9.369 9.369 24.57 0 33.94s-24.57 9.369-33.94 0L160 289.9l-119 119c-9.369 9.369-24.57 9.369-33.94 0s-9.369-24.57 0-33.94L126.1 256L7.027 136.1c-9.369-9.369-9.369-24.57 0-33.94s24.57-9.369 33.94 0L160 222.1l119-119c9.369-9.369 24.57-9.369 33.94 0s9.369 24.57 0 33.94L193.9 256L312.1 375z"},null,-1)]))}const __unplugin_components_0$i=markRaw({name:"far-xmark",render:render$F}),isRTL=()=>document.dir==="rtl",useIsRTL=()=>({isRTL:computed(()=>isRTL())}),__default__$2a={name:"OverlayDrawer",inheritAttrs:!1},_sfc_main$2b=Object.assign(__default__$2a,{props:{isVisible:{type:Boolean,default:!1},backdropClosable:{type:Boolean,default:!0},isEnrichNavbarOverlay:{type:Boolean,default:!1}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const{isRTL:e}=useIsRTL(),n=t,a=r,i=ref$1(null),s=ref$1(n.isVisible);useDisableScroll(s),watch(()=>n.isVisible,_=>{s.value=_}),watch(s,async _=>{a("update:isVisible",_)});const l=_=>{n.backdropClosable&&d()},d=()=>{s.value=!1},{hasFocus:c,activate:u,deactivate:f}=useFocusTrap(i),y={isRTL:e,props:n,emit:a,rootEl:i,internalVisible:s,handleBackdropClick:l,hideOverlay:d,hasFocus:c,activeFocusTrap:u,deactivateFocusTrap:f,handleRootElOnMounted:async()=>{var _;(_=i.value)==null||_.focus(),await nextTick$1(),u()},handleRootElBeforeUnmount:()=>{f()},get useDisableScroll(){return useDisableScroll},get useFocusTrap(){return useFocusTrap},get useIsRTL(){return useIsRTL}};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),_hoisted_1$2M={class:"overlay-wrapper"};function _sfc_render$2b(t,o,r,e,n,a){return openBlock(),createBlock(Teleport,{to:"body"},[createVNode(Transition,{name:e.props.isEnrichNavbarOverlay?"":e.isRTL?"overlay-drawer-left":"overlay-drawer-right",appear:""},{default:withCtx(()=>[r.isVisible?(openBlock(),createElementBlock("div",mergeProps({key:0,ref:"rootEl",class:"OverlayDrawer backdrop"},t.$attrs,{tabindex:"-1",onKeydownCapture:withKeys(e.hideOverlay,["esc"]),onVnodeMounted:e.handleRootElOnMounted,onVnodeBeforeUnmount:e.handleRootElBeforeUnmount,onClick:withModifiers(e.handleBackdropClick,["self"])}),[createBaseVNode("div",{class:normalizeClass(["overlay-container",{enrichNavbarOverlay:e.props.isEnrichNavbarOverlay}])},[createBaseVNode("div",_hoisted_1$2M,[renderSlot(t.$slots,"default",{},void 0,!0)])],2)],16)):createCommentVNode("",!0)]),_:3},8,["name"])])}
1148const OverlayDrawer=_export_sfc(_sfc_main$2b,[["render",_sfc_render$2b],["__scopeId","data-v-5917d275"],["__file","OverlayDrawer.vue"]]),defaultLogoImg="/etc.clientlibs/mh/clientlibs/clientlib-vue/resources/assets/logo-mh-white-BcAE6hjH.svg",__default__$29={name:"MobileDrawerHeader"},_sfc_main$2a=Object.assign(__default__$29,{props:{logoImgSrc:{type:String,default:defaultLogoImg},logoImgSrcBlue:{type:String,default:""},logoImgAlt:{type:String,default:"Malaysia Airlines Logo"},logoOpenInNewTab:{type:Boolean,default:!1},logoIsHideMobileLogoImg:{type:Boolean,default:!1},drawerIsHideMobileSearch:{type:Boolean,default:!1},drawerIsHideAccountIcon:{type:Boolean,default:!1},componentIdAA:{type:String,default:""},enableHeaderRafiGlassDesign:{type:Boolean,default:!1}},emits:["click:header-x"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=useEventBus("main-global-header"),s={props:e,emit:n,globalHeaderBus:a,dispatchHeaderEvent:l=>{a.emit(l,!0)},get useEventBus(){return useEventBus},get defaultLogoImg(){return defaultLogoImg},get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$2L={class:"MobileDrawerHeader border-b px-6 py-3 flex"},_hoisted_2$1_={key:0,class:"logo-container flex items-center"},_hoisted_3$1y=["src","alt","target"],_hoisted_4$1p=["src","alt","target"],_hoisted_5$1i={class:"ml-auto rtl:ml-0 rtl:mr-auto flex gap-x-3"},_hoisted_6$1e=["aria-label"],_hoisted_7$1c=["aria-label"];function _sfc_render$2a(t,o,r,e,n,a){const i=__unplugin_components_2$4,s=__unplugin_components_4$1,l=__unplugin_components_0$i,d=resolveDirective("aa");return openBlock(),createElementBlock("div",_hoisted_1$2L,[e.props.logoIsHideMobileLogoImg?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_2$1_,[e.props.enableHeaderRafiGlassDesign?(openBlock(),createElementBlock("img",{key:0,class:"logo-primary-img h-auto min-h-[22px] w-[98px]",src:e.props.logoImgSrcBlue,alt:e.props.logoImgAlt,target:e.props.logoOpenInNewTab?"_blank":null},null,8,_hoisted_3$1y)):(openBlock(),createElementBlock("img",{key:1,class:"logo-primary-img h-auto min-h-[22px] w-[98px]",src:e.props.logoImgSrc?e.props.logoImgSrc:e.defaultLogoImg,alt:e.props.logoImgAlt,target:e.props.logoOpenInNewTab?"_blank":null},null,8,_hoisted_4$1p))])),createBaseVNode("div",_hoisted_5$1i,[e.isMobileViewport&&!e.props.drawerIsHideMobileSearch?withDirectives((openBlock(),createElementBlock("button",{key:0,class:"btn-side-interaction",type:"button",style:{"--focus-visible-outline-offset":"-2px"},"aria-label":t.$t("Search"),onClick:o[0]||(o[0]=c=>{e.dispatchHeaderEvent("trigger-search"),t.$emit("click:header-x")})},[createVNode(i,{class:"fill-current"})],8,_hoisted_6$1e)),[[d,[{clickName:t.$t("Search"),clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:t.$t("Search"),type:"other"}]]]):createCommentVNode("",!0),e.isMobileViewport&&!e.props.drawerIsHideAccountIcon?withDirectives((openBlock(),createElementBlock("button",{key:1,class:"btn-side-interaction",type:"button",style:{"--focus-visible-outline-offset":"-2px"},"aria-label":t.$t("Account"),onClick:o[1]||(o[1]=c=>{e.dispatchHeaderEvent("trigger-login"),t.$emit("click:header-x")})},[createVNode(s,{class:"fill-current"})],8,_hoisted_7$1c)),[[d,[{clickName:t.$t("Account"),clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:t.$t("Account"),type:"other"}]]]):createCommentVNode("",!0),createBaseVNode("button",{class:"h-full",type:"button",onClick:o[2]||(o[2]=c=>t.$emit("click:header-x"))},[createVNode(l,{class:"fill-current"})])])])}const MobileDrawerHeader=_export_sfc(_sfc_main$2a,[["render",_sfc_render$2a],["__scopeId","data-v-4c42eb97"],["__file","MobileDrawerHeader.vue"]]);var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(t,o,r)=>o in t?__defProp$2(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,__spreadValues$2=(t,o)=>{for(var r in o||(o={}))__hasOwnProp$2.call(o,r)&&__defNormalProp$2(t,r,o[r]);if(__getOwnPropSymbols$2)for(var r of __getOwnPropSymbols$2(o))__propIsEnum$2.call(o,r)&&__defNormalProp$2(t,r,o[r]);return t},__spreadProps$2=(t,o)=>__defProps$2(t,__getOwnPropDescs$2(o));function useRouteHash$1(t,{mode:o="replace",route:r=useRoute$1(),router:e=useRouter$1()}={}){return computed({get(){var n;return(n=r.hash)!=null?n:t},set(n){nextTick$1(()=>{e[unref(o)](__spreadProps$2(__spreadValues$2({},r),{hash:n}))})}})}var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,o,r)=>o in t?__defProp(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,__spreadValues=(t,o)=>{for(var r in o||(o={}))__hasOwnProp.call(o,r)&&__defNormalProp(t,r,o[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(o))__propIsEnum.call(o,r)&&__defNormalProp(t,r,o[r]);return t},__spreadProps=(t,o)=>__defProps(t,__getOwnPropDescs(o));let queue={};function useRouteQuery(t,o,{mode:r="replace",route:e=useRoute$1(),router:n=useRouter$1()}={}){return computed({get(){const a=e.query[t];
1148return a==null?o??null:Array.isArray(a)?a.filter(Boolean):a},set(a){queue[t]=a===o||a===null?void 0:a,nextTick$1(()=>{n[unref(r)](__spreadProps(__spreadValues({},e),{query:__spreadValues(__spreadValues({},e.query),queue)})),nextTick$1(()=>queue={})})}})}const __default__$28={name:"AppHeaderSearch",inheritAttrs:!1},_sfc_main$29=Object.assign(__default__$28,{props:{isVisible:{type:Boolean,default:!1},searchPageUrl:{type:String,default:""},searchSuggestionUrl:{type:String,default:""},searchInputPlaceholderText:{type:String,default:""},searchButtonLabelText:{type:String,default:""},quickLinks:{type:Array,default:()=>[]},quickLinksLabelText:{type:String,default:""},suggestedSearchesLabelText:{type:String,default:""},isHideAccountIcon:{type:Boolean,default:!1},mobileLogoImgSrc:{type:String,default:null},mobileLogoImgAlt:{type:String,default:null},mobileLogoOpenInNewTab:{type:Boolean,default:!1},closeMenuCTALabel:{type:String,default:""},enableHeaderRafiGlassDesign:{type:Boolean,default:!1},logoImgSrcBlue:{type:String,default:""}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(e.isVisible);watch(()=>e.isVisible,O=>{a.value=O}),watch(a,O=>{n("update:isVisible",O)}),useDisableScroll(a);const i=()=>{a.value=!1},s="q",l=ref$1(null),d=ref$1(null),c=()=>{var O;(O=d.value)==null||O.focus()},u=()=>{var O;(O=d.value)==null||O.select()},f=O=>{a.value=!1};onClickOutside(l,O=>{a.value=!1});const m=useRouteQuery(s),b=ref$1(""),y=useRouter$1(),_=computed(()=>ensureHtmlExtension(e.searchPageUrl??"")),S=computed(()=>y.currentRoute.value.path===_.value),C=()=>{if(!(b.value.length<N.value))if(a.value=!1,!S.value&&e.searchPageUrl){const O=ensureHtmlExtension(addRetainingQueryToUrl(_.value)),R=encodeURIComponent(b.value),I=new RawUrl(O),j=stringifyQuery({...parseQuery(I.query||""),[s]:R}),U=I.set({query:j}).toString().replaceAll("%20","+");window.location=U}else y.replace({query:{[s]:b.value}})},T=ref$1(!1),x=ref$1(""),k=ref$1(null),E=computed(()=>`${e.searchSuggestionUrl}?keyword=${b.value}`),w=async()=>{let O=null;T.value=!0,x.value="";try{O=await axios$1.get(E.value),k.value=O.data}catch{x.value="Unable to fetch search suggestions"}T.value=!1},D=computed(()=>{let O=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/;return b.value.length&&O.test(b.value)}),N=computed(()=>b.value.length&&D.value?2:3),F=lodashExports.debounce(()=>{if(b.value.length<N.value){k.value=null;return}w()},1e3),V=computed(()=>{var O;return((O=k.value)==null?void 0:O.pages)??[]});watch(m,O=>{b.value=O?decodeURIComponent(O):"",F()},{immediate:!0});const A=window.siteName,M={props:e,emit:n,internalVisible:a,hideOverlay:i,QUERY_URL_KEY:s,rootEl:l,searchInputEl:d,focusSearchInput:c,selectAllTextSearchInput:u,handleRootBlurredWithin:f,keywordUrlQuery:m,searchInputVal:b,router:y,searchPageUrlWithExtension:_,isInSearchPage:S,handleSearchSubmit:C,isLoading:T,apiErrorMsg:x,apiResponse:k,apiPath:E,fetchSearchSuggestion:w,searchInputHasCnJnKrChar:D,minSearchTextLength:N,handleOnInput:F,suggestions:V,siteName:A,OverlayDrawer,CTAButton,AppSpinner,MobileDrawerHeader,get useDisableScroll(){return useDisableScroll},get onClickOutside(){return onClickOutside},get isMobileViewport(){return isMobileViewport},get useRouter(){return useRouter$1},get useRouteQuery(){return useRouteQuery},get ensureHtmlExtension(){return ensureHtmlExtension},get wrapQueryWithHTML(){return wrapQueryWithHTML},get addRetainingQueryToUrl(){return addRetainingQueryToUrl},get _debounce(){return lodashExports.debounce},get ReURL(){return Url},get ReRawURL(){return RawUrl},get stringifyQuery(){return stringifyQuery},get parseQuery(){return parseQuery}};return Object.defineProperty(M,"__isScriptSetup",{enumerable:!1,value:!0}),M}}),_hoisted_1$2K=["data-use-theme"],_hoisted_2$1Z={class:"inner-wrapper px-6 pt-4 pb-6"},_hoisted_3$1x=["placeholder"],_hoisted_4$1o={key:0,class:"flex items-center justify-center h-[200px]"},_hoisted_5$1h={key:1,class:"pt-8"},_hoisted_6$1d={key:0,class:"mb-8"},_hoisted_7$1b={class:"text-red-400"},_hoisted_8$17={class:"typo-category-title mt-8"},_hoisted_9$11={class:"suggestion-list mt-4 flex flex-col text-neutral-grey-dark"},_hoisted_10$T={class:"typo-category-title mt-8"},_hoisted_11$Q={class:"mt-4 flex flex-col"},_hoisted_12$O=["data-use-theme"],_hoisted_13$K={class:"generic-container pt-8 relative"},_hoisted_14$J={class:"font-semibold pr-2"},_hoisted_15$H={class:"w-full max-w-8/12 mx-auto my-22"},_hoisted_16$D={class:"flex-grow relative"},_hoisted_17$y=["placeholder"],_hoisted_18$v={class:"flex-0 max-w-[134px]"},_hoisted_19$s={key:0,class:"flex items-center justify-center h-[200px]"},_hoisted_20$q={key:1,class:"pt-8"},_hoisted_21$q={key:0,class:"mb-8"},_hoisted_22$p={class:"text-red-400"},_hoisted_23$m={class:"suggestion-list mt-4 flex flex-col text-neutral-grey-extradark"},_hoisted_24$l={class:"typo-category-title mt-8"},_hoisted_25$k={class:"mt-4 flex flex-col"};function _sfc_render$29(t,o,r,e,n,a){const i=__unplugin_components_2$4,s=resolveComponent("AppHyperlink"),l=__unplugin_components_0$i,d=resolveDirective("html-sanitize"),c=resolveDirective("focus-within");return e.isMobileViewport?(openBlock(),createBlock(e.OverlayDrawer,{key:0,class:normalizeClass(e.props.enableHeaderRafiGlassDesign?"overlayDrawerNew":""),isVisible:e.props.isVisible,style:normalizeStyle({"--overlay-container-bg-color":e.props.enableHeaderRafiGlassDesign?"#FAFBFC":e.siteName==="firefly"?"var(--neutral-firefly-white-base)":"var(--secondary-blue-extradark)"}),"onUpdate:isVisible":o[4]||(o[4]=u=>t.$emit("update:isVisible",u)),onVnodeMounted:o[5]||(o[5]=u=>{e.focusSearchInput(),e.selectAllTextSearchInput()})},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["text-white","overflow-y-auto","max-h-screen",e.props.enableHeaderRafiGlassDesign?"Search-mobile-new":"Search-mobile"]),"data-use-theme":e.siteName},[createVNode(e.MobileDrawerHeader,{class:"sticky top-0 bg-secondary-blue-extradark",logoImgSrc:e.props.mobileLogoImgSrc,logoImgAlt:e.props.mobileLogoImgAlt,logoImgSrcBlue:e.props.logoImgSrcBlue,logoOpenInNewTab:e.props.mobileLogoOpenInNewTab,drawerIsHideAccountIcon:e.props.isHideAccountIcon,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,"onClick:headerX":o[0]||(o[0]=u=>e.internalVisible=!1)},null,8,["logoImgSrc","logoImgAlt","logoImgSrcBlue","logoOpenInNewTab","drawerIsHideAccountIcon","enableHeaderRafiGlassDesign"]),createBaseVNode("div",_hoisted_2$1Z,[createBaseVNode("form",{class:"flex-grow relative",onSubmit:withModifiers(e.handleSearchSubmit,["prevent"])},[withDirectives(createBaseVNode("input",{ref:"searchInputEl","onUpdate:modelValue":o[1]||(o[1]=u=>e.searchInputVal=u),class:"input-search w-full h-full pl-12 rtl:pl-3 rtl:pr-12 py-4 bg-transparent border-neutral-grey-extradark",type:"search",placeholder:e.props.searchInputPlaceholderText,onInput:o[2]||(o[2]=(...u)=>e.handleOnInput&&e.handleOnInput(...u))},null,40,_hoisted_3$1x),[[vModelText,e.searchInputVal]]),createVNode(i,{class:"fill-neutral-grey-extradark absolute my-auto inset-y-0 left-4 rtl:right-4"})],32),e.isLoading?(openBlock(),createElementBlock("div",_hoisted_4$1o,[createVNode(e.AppSpinner,{class:"!text-white"})])):(openBlock(),createElementBlock("div",_hoisted_5$1h,[e.apiErrorMsg?(openBlock(),createElementBlock("div",_hoisted_6$1d,[createBaseVNode("p",_hoisted_7$1b,toDisplayString(e.apiErrorMsg),
11481)])):createCommentVNode("",!0),e.apiResponse!==null&&!e.apiErrorMsg?(openBlock(),createElementBlock(Fragment,{key:1},[e.suggestions.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",_hoisted_8$17,toDisplayString(e.props.suggestedSearchesLabelText),1),createBaseVNode("ul",_hoisted_9$11,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.suggestions.slice(0,5),u=>(openBlock(),createElementBlock("li",{key:u.path,class:"suggestion-list-item"},[createVNode(s,{class:"search-link",href:`${e.searchPageUrlWithExtension}?q=${u.title}`,onClick:o[3]||(o[3]=f=>e.internalVisible=!1)},{default:withCtx(()=>[withDirectives(createBaseVNode("span",null,null,512),[[d,e.wrapQueryWithHTML(u.title,{query:e.searchInputVal,className:"mark"})]])]),_:2},1032,["href"])]))),128))])],64)):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",_hoisted_10$T,toDisplayString(e.props.quickLinksLabelText),1),createBaseVNode("ul",_hoisted_11$Q,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.quickLinks,u=>(openBlock(),createElementBlock("li",{key:u.path},[e.siteName!=="enrich-portal"?(openBlock(),createBlock(s,{key:0,href:u.path,class:"search-link"},{default:withCtx(()=>[createTextVNode(toDisplayString(u.title),1)]),_:2},1032,["href"])):(openBlock(),createBlock(s,{key:1,href:u.resolvedPath,class:"search-link"},{default:withCtx(()=>[createTextVNode(toDisplayString(u.title),1)]),_:2},1032,["href"]))]))),128))])],64))]))])],10,_hoisted_1$2K)]),_:1},8,["class","isVisible","style"])):(openBlock(),createElementBlock(Fragment,{key:1},[(openBlock(),createBlock(Teleport,{to:"body"},[o[11]||(o[11]=createBaseVNode("div",{class:"generic-backdrop"},null,-1))])),r.isVisible?withDirectives((openBlock(),createElementBlock("div",mergeProps({key:0,ref:"rootEl",class:"Search-desktop bg-white overflow-hidden transform"},t.$attrs,{tabindex:"-1","data-use-theme":e.siteName,onKeydownCapture:withKeys(e.hideOverlay,["esc"]),onBlurWithin:e.handleRootBlurredWithin,onVnodeMounted:o[10]||(o[10]=u=>{e.focusSearchInput(),e.selectAllTextSearchInput()})}),[createBaseVNode("div",_hoisted_13$K,[e.props.closeMenuCTALabel?(openBlock(),createBlock(s,{key:0,href:"#",class:"absolute right-4",onClick:e.hideOverlay},{default:withCtx(()=>[createBaseVNode("span",_hoisted_14$J,toDisplayString(e.props.closeMenuCTALabel),1),createVNode(l,{class:"w-2.5 inline-block fill-current mt-[3px]"})]),_:1})):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_15$H,[createBaseVNode("form",{class:"flex gap-x-6",onSubmit:withModifiers(e.handleSearchSubmit,["prevent"])},[createBaseVNode("div",_hoisted_16$D,[withDirectives(createBaseVNode("input",{ref:"searchInputEl","onUpdate:modelValue":o[6]||(o[6]=u=>e.searchInputVal=u),class:"input-search w-full h-full pl-12 rtl:pl-3 rtl:pr-12",type:"search",placeholder:e.props.searchInputPlaceholderText,onInput:o[7]||(o[7]=(...u)=>e.handleOnInput&&e.handleOnInput(...u))},null,40,_hoisted_17$y),[[vModelText,e.searchInputVal]]),createVNode(i,{class:"fill-primary-blue-base absolute my-auto inset-y-0 left-4 rtl:right-4"})]),createBaseVNode("div",_hoisted_18$v,[createVNode(e.CTAButton,{ctaText:e.props.searchButtonLabelText,sizeType:"medium",isSubmit:!0,disabled:e.searchInputVal.length<e.minSearchTextLength},null,8,["ctaText","disabled"])])],32),e.isLoading?(openBlock(),createElementBlock("div",_hoisted_19$s,[createVNode(e.AppSpinner)])):(openBlock(),createElementBlock("div",_hoisted_20$q,[e.apiErrorMsg?(openBlock(),createElementBlock("div",_hoisted_21$q,[createBaseVNode("p",_hoisted_22$p,toDisplayString(e.apiErrorMsg),1)])):createCommentVNode("",!0),e.apiResponse!==null&&!e.apiErrorMsg?(openBlock(),createElementBlock(Fragment,{key:1},[e.suggestions.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[o[12]||(o[12]=createBaseVNode("div",{class:"typo-category-title mt-8"},"Suggested Searches",-1)),createBaseVNode("ul",_hoisted_23$m,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.suggestions.slice(0,5),u=>(openBlock(),createElementBlock("li",{key:u.path,class:"suggestion-list-item"},[createVNode(s,{class:"search-link",href:`${e.searchPageUrlWithExtension}?q=${u.title}`},{default:withCtx(()=>[withDirectives(createBaseVNode("span",null,null,512),[[d,e.wrapQueryWithHTML(u.title,{query:e.searchInputVal,className:"mark"})]])]),_:2},1032,["href"])]))),128))])],64)):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",_hoisted_24$l,toDisplayString(e.props.quickLinksLabelText),1),createBaseVNode("ul",_hoisted_25$k,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.quickLinks,u=>(openBlock(),createElementBlock("li",{key:u.path},[e.siteName!=="enrich-portal"?(openBlock(),createBlock(s,{key:0,href:u.path,class:"search-link",onClick:o[8]||(o[8]=f=>e.internalVisible=!1)},{default:withCtx(()=>
1148[createTextVNode(toDisplayString(u.title),1)]),_:2},1032,["href"])):(openBlock(),createBlock(s,{key:1,href:u.resolvedPath,class:"search-link",onClick:o[9]||(o[9]=f=>e.internalVisible=!1)},{default:withCtx(()=>[createTextVNode(toDisplayString(u.title),1)]),_:2},1032,["href"]))]))),128))])],64))]))])],16,_hoisted_12$O)),[[c]]):createCommentVNode("",!0)],64))}const Search=_export_sfc(_sfc_main$29,[["render",_sfc_render$29],["__scopeId","data-v-ce527428"],["__file","Search.vue"]]),__default__$27={name:"MobileCountrySelector"},_sfc_main$28=Object.assign(__default__$27,{props:{isVisible:{type:Boolean,default:!1},mobileSelectedCountryLabelSelector:{type:String,default:""},mobileSelectedLanguageLabelSelector:{type:String,default:""},mobileAllCountriesLabelSelector:{type:String,default:""},mobileAllCountriesAndLanguages:{type:Array,default:()=>[]},mobileSelectedCountryAndLanguage:{type:Object,default:()=>({})},countryLanguageRedirectBaseUrl:{type:String,default:""},headerIsHideMobileSearch:{type:Boolean,default:!1},headerIsHideAccountIcon:{type:Boolean,default:!1},headerLogoImgSrc:{type:String,default:""},headerLogoImgAlt:{type:String,default:""},headerLogoOpenInNewTab:{type:Boolean,default:!1},headerLogoIsHideMobileLogoImg:{type:Boolean,default:!1},mobileAvailableLanguagesSelector:{type:Array,default:()=>[]}},emits:["update:isVisible","click:btn-back","click:header-x"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=(d,c)=>{setCountryAndLocaleCookie({country:d,language:c})},i=({country:d,lang:c}={})=>{const u=window.location.pathname;return`${e.countryLanguageRedirectBaseUrl}?country=${d}&lang=${c}&path=${u}`},s=window.siteName,l={props:e,emit:n,handleLanguageLinkClick:a,getRedirectLink:i,siteName:s,OverlayDrawer,MobileDrawerHeader,get setCountryAndLocaleCookie(){return setCountryAndLocaleCookie}};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),_hoisted_1$2J={class:"MobileCountrySelector overflow-y-auto text-white"},_hoisted_2$1Y={class:"btn-back-container w-full sticky top-[52px] px-6 bg-$overlay-container-bg-color z-10"},_hoisted_3$1w={class:""},_hoisted_4$1n={class:"listing-container px-6 mt-4"},_hoisted_5$1g={key:0,class:"typo-category-title mb-4"},_hoisted_6$1c={key:1,class:"typo-category-title mb-4"},_hoisted_7$1a={key:2,"aria-label":"Selected Country/Language"},_hoisted_8$16={class:"mb-3 label-country"},_hoisted_9$10={class:"flex items-start"},_hoisted_10$S={key:0,class:"dot mx-2"},_hoisted_11$P={key:3,"aria-label":"Selected Language"},_hoisted_12$N={class:"flex items-start"},_hoisted_13$J={key:0,class:"dot mx-2"},_hoisted_14$I={key:4,class:"separator my-6"},_hoisted_15$G={key:5,class:"typo-category-title mb-4"},_hoisted_16$C=["aria-label"],_hoisted_17$x={class:"text-base leading-5 pb-3 label-country",style:{}},_hoisted_18$u={class:"flex items-start"},_hoisted_19$r={key:0,class:"dot mx-2"};function _sfc_render$28(t,o,r,e,n,a){const i=__unplugin_components_0$k,s=resolveComponent("AppHyperlink");return openBlock(),createBlock(e.OverlayDrawer,{isVisible:e.props.isVisible,class:"text-white",style:normalizeStyle({"--overlay-container-bg-color":e.siteName==="firefly"?"var(--neutral-firefly-white-base)":"var(--secondary-blue-extradark)"}),"data-use-theme":e.siteName,"onUpdate:isVisible":o[2]||(o[2]=l=>t.$emit("update:isVisible",l))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$2J,[createVNode(e.MobileDrawerHeader,{class:"sticky top-0 bg-$overlay-container-bg-color z-10",drawerIsHideMobileSearch:e.props.headerIsHideMobileSearch,drawerIsHideAccountIcon:e.props.headerIsHideAccountIcon,logoImgSrc:e.props.headerLogoImgSrc,logoImgAlt:e.props.headerLogoImgAlt,logoOpenInNewTab:e.props.headerLogoOpenInNewTab,logoIsHideMobileLogoImg:e.props.headerLogoIsHideMobileLogoImg,"onClick:headerX":o[0]||(o[0]=l=>t.$emit("click:header-x",!1))},null,8,["drawerIsHideMobileSearch","drawerIsHideAccountIcon","logoImgSrc","logoImgAlt","logoOpenInNewTab","logoIsHideMobileLogoImg"]),createBaseVNode("div",_hoisted_2$1Y,[createBaseVNode("button",{type:"button",class:"flex items-center py-3 px-0",onClick:o[1]||(o[1]=l=>t.$emit("click:btn-back"))},[createVNode(i,{class:"fill-current mr-3.5 rtl:mr-0 rtl:ml-3.5 transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_3$1w,toDisplayString(t.$t("Back")),1)])]),createBaseVNode("div",_hoisted_4$1n,[e.siteName!=="amal"&&e.siteName!=="enrich-portal"?(openBlock(),createElementBlock("div",_hoisted_5$1g,toDisplayString(e.props.mobileSelectedCountryLabelSelector),1)):createCommentVNode("",!0),e.siteName=="enrich-portal"?(openBlock(),createElementBlock("div",_hoisted_6$1c,toDisplayString(e.props.mobileSelectedLanguageLabelSelector),1)):createCommentVNode("",!0),e.siteName!=="amal"&&e.siteName!=="enrich-portal"?(openBlock(),createElementBlock("nav",_hoisted_7$1a,[createBaseVNode("div",_hoisted_8$16,toDisplayString(e.props.mobileSelectedCountryAndLanguage.country),1),createBaseVNode("div",_hoisted_9$10,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mobileSelectedCountryAndLanguage.languages,(l,d)=>(openBlock(),createElementBlock(Fragment,{key:d},[createVNode(s,{href:e.getRedirectLink({country:l.countryCode,lang:l.language}),class:"link","aria-label":`${e.props.mobileSelectedCountryAndLanguage.country} ${l.languageTitle}`,forceATag:!0,addHtmlExtension:!1,onClick:c=>e.handleLanguageLinkClick(l.countryCode,l.language)},{default:withCtx(()=>[createTextVNode(toDisplayString(l.languageTitle),1)]),_:2},1032,["href","aria-label","onClick"]),e.props.mobileSelectedCountryAndLanguage.languages.length-1!==d?(openBlock(),createElementBlock("span",_hoisted_10$S,"•")):createCommentVNode("",!0)],64))),128))])])):createCommentVNode("",!0),e.siteName==="enrich-portal"?(openBlock(),createElementBlock("nav",_hoisted_11$P,[createBaseVNode("div",_hoisted_12$N,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mobileAvailableLanguagesSelector,(l,d)=>(openBlock(),createElementBlock(Fragment,{key:d},[createVNode(s,{href:l.path,class:"link","aria-label":`${l.languageTitle}`,forceATag:!0,addHtmlExtension:!1,onClick:c=>e.handleLanguageLinkClick(l.countryCode,l.language)},{default:withCtx(()=>[createTextVNode(toDisplayString(l.languageTitle),1)]),_:2},1032,["href","aria-label","onClick"]),e.props.mobileAvailableLanguagesSelector.length-1!==d?(openBlock(),createElementBlock("span",_hoisted_13$J,"•")):createCommentVNode("",!0)],64))),128))])])):createCommentVNode("",!0),e.props.mobileSelectedCountryLabelSelector&&e.props.mobileSelectedCountryAndLanguage&&e.props.mobileSelectedCountryAndLanguage.country?(openBlock(),createElementBlock("hr",_hoisted_14$I)):createCommentVNode("",!0),e.props.mobileAllCountriesLabelSelector?(openBlock(),createElementBlock("div",_hoisted_15$G,toDisplayString(e.props.mobileAllCountriesLabelSelector),1)):createCommentVNode("",!0),e.siteName!=="enrich-portal"?(openBlock(),createElementBlock("nav",{key:6,class:"country-language-list-wrapper","aria-label":e.props.mobileAllCountriesLabelSelector},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mobileAllCountriesAndLanguages,(l,d)=>(openBlock(),createElementBlock("div",{key:d,class:"grid row-span-2 rows-subgrid pb-8"},[createBaseVNode("div",_hoisted_17$x,toDisplayString(l.pageTitle),1),createBaseVNode("div",_hoisted_18$u,[(openBlock(!0),createElementBlock(Fragment,null,renderList(l.languages,(c,u)=>(openBlock(),createElementBlock(Fragment,{key:u},[createVNode(s,{href:c.path,class:"link","aria-label":`${l.pageTitle} ${c.languageTitle}`,forceATag:!0,addHtmlExtension:!1,onClick:f=>e.handleLanguageLinkClick(c.countryCode,c.language)},{default:withCtx(()=>[createTextVNode(toDisplayString(c.languageTitle),1)]),_:2},1032,["href","aria-label","onClick"]),l.languages.length-1!==u?(openBlock(),createElementBlock("span",_hoisted_19$r,"•")):createCommentVNode("",!0)],64))),128))])]))),128))],8,_hoisted_16$C)):createCommentVNode("",!0)])])]),_:1},8,["isVisible","style","data-use-theme"])}const MobileCountrySelector=_export_sfc(_sfc_main$28,[["render",_sfc_render$28],["__scopeId","data-v-ae3b8eb6"],["__file","MobileCountrySelector.vue"]]),__default__$26={name:"TransitionSimpleSlideDown"},_sfc_main$27=Object.assign(__default__$26,{props:{observedRefs:{type:Array,default:()=>[]}},emits:[],setup(t,{expose:o,emit:r}){const e=t,n=r;let a=null;const i=b=>{const y=Array.from(b.querySelectorAll("img")||[]),_=new Map;
1148y.forEach(S=>{_.set(S.src,S)}),_.size!==0&&b.addEventListener("load",S=>{const C=S.target;C.tagName=="IMG"&&_.delete(C.src),_.size===0&&l(b)},!0)},s=b=>{a=b,i(b),b.style.height="0"},l=b=>{b.style.height=`${b.scrollHeight}px`},d=b=>{b.style.height=`${b.scrollHeight}px`},c=b=>{b.style.height="0"},u=async()=>{a&&(a.style.height="",await nextTick$1(),l(a))},f=b=>{const y=b.target;y.style.height=""};o({recalculate:u});const m={props:e,emit:n,get _slotRootEl(){return a},set _slotRootEl(b){a=b},handleNestedImgsLoad:i,beforeEnter:s,enter:l,beforeLeave:d,leave:c,recalculate:u,onTransitionEnd:f};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}});function _sfc_render$27(t,o,r,e,n,a){return openBlock(),createBlock(Transition,{name:"simple-slide-down",onBeforeEnter:e.beforeEnter,onEnter:e.enter,onBeforeLeave:e.beforeLeave,onLeave:e.leave,onTransitionend:e.onTransitionEnd},{default:withCtx(()=>[renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})}const TransitionSimpleSlideDown=_export_sfc(_sfc_main$27,[["render",_sfc_render$27],["__scopeId","data-v-5c3a775e"],["__file","TransitionSimpleSlideDown.vue"]]),_hoisted_1$2I={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$E(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2I,o[0]||(o[0]=[createBaseVNode("path",{d:"M432 256C432 269.3 421.3 280 408 280h-160v160c0 13.25-10.75 24.01-24 24.01S200 453.3 200 440v-160h-160c-13.25 0-24-10.74-24-23.99C16 242.8 26.75 232 40 232h160v-160c0-13.25 10.75-23.99 24-23.99S248 58.75 248 72v160h160C421.3 232 432 242.8 432 256z"},null,-1)]))}const iconPlus=markRaw({name:"far-plus",render:render$E}),_hoisted_1$2H={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$D(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2H,o[0]||(o[0]=[createBaseVNode("path",{d:"M432 256C432 269.3 421.3 280 408 280H40c-13.25 0-24-10.74-24-23.99C16 242.8 26.75 232 40 232h368C421.3 232 432 242.8 432 256z"},null,-1)]))}const iconMinus=markRaw({name:"far-minus",render:render$D}),_hoisted_1$2G={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$C(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2G,o[0]||(o[0]=[createBaseVNode("path",{d:"M360.5 217.5l-152 143.1C203.9 365.8 197.9 368 192 368s-11.88-2.188-16.5-6.562L23.5 217.5C13.87 208.3 13.47 193.1 22.56 183.5C31.69 173.8 46.94 173.5 56.5 182.6L192 310.9l135.5-128.4c9.562-9.094 24.75-8.75 33.94 .9375C370.5 193.1 370.1 208.3 360.5 217.5z"},null,-1)]))}const __unplugin_components_0$h=markRaw({name:"far-angle-down",render:render$C}),_hoisted_1$2F={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$B(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2F,o[0]||(o[0]=[createBaseVNode("path",{d:"M23.5 294.5l152-143.1C180.1 146.2 186.1 144 192 144s11.88 2.188 16.5 6.562l152 143.1c9.625 9.125 10.03 24.31 .9375 33.93c-9.125 9.688-24.38 10.03-33.94 .9375l-135.5-128.4l-135.5 128.4c-9.562 9.094-24.75 8.75-33.94-.9375C13.47 318.9 13.87 303.7 23.5 294.5z"},null,-1)]))}const iconCollapse=markRaw({name:"far-angle-up",render:render$B}),_hoisted_1$2E={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$A(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2E,o[0]||(o[0]=[createBaseVNode("path",{d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"},null,-1)]))}const __unplugin_components_1$b=markRaw({name:"fas-plus",render:render$A}),_hoisted_1$2D={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$z(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2D,o[0]||(o[0]=[createBaseVNode("path",{d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"},null,-1)]))}const __unplugin_components_1$a=markRaw({name:"fas-chevron-down",render:render$z}),_hoisted_1$2C={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$y(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2C,o[0]||(o[0]=[createBaseVNode("path",{d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"},null,-1)]))}const __unplugin_components_0$g=markRaw({name:"fas-minus",render:render$y}),_hoisted_1$2B={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$x(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2B,o[0]||(o[0]=[createBaseVNode("path",{d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"},null,-1)]))}const __unplugin_components_0$f=markRaw({name:"fas-chevron-up",render:render$x}),__default__$25={name:"AppFooterAccordion",expose:[],inheritAttrs:!1},_sfc_main$26=Object.assign(__default__$25,{props:{items:{type:Array,default:()=>[]},index:{type:Number,default:0},componentIdAA:{type:String,default:""},componentNameAA:{type:String,default:"AppFooter"},enableHeaderRafiGlassDesign:{type:Boolean,default:!1},currentActiveAccordionFooter:{type:String,default:""}},emits:["update:currentActiveAccordion"],setup(t,{expose:o,emit:r}){const e=breakpoints$1.smaller("lg"),n=t,a=r;console.log(n.enableHeaderRafiGlassDesign),watch(()=>n.currentActiveAccordionFooter,u=>{u&&(i.value=u)});const i=ref$1(null),s=ref$1(!1),l=u=>{u.titleLabel===i.value?s.value=!s.value:s.value=!0,i.value=u.titleLabel,a("update:currentActiveAccordion",u.titleLabel)},d=u=>{i.value=u};o({setCurrentAccordion:d});const c={isMobileAndTabletViewport:e,props:n,emit:a,currentActiveAccordion:i,isExpanded:s,toggleAccordion:l,setCurrentAccordion:d,TransitionSimpleSlideDown,get breakpoints(){return breakpoints$1},get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),_hoisted_1$2A={class:"accordion flex lg:flex-col >lg:w-4/5 gap-6"},_hoisted_2$1X=["name"],_hoisted_3$1v=["onClick"],_hoisted_4$1m={class:"font-semibold lg:flex lg:justify-between lg:items-center"},_hoisted_5$1f={class:""},_hoisted_6$1b={key:1,class:"accordion-title desktop lg:py-5 lg:border-b border-neutral-grey-base/20"},_hoisted_7$19={class:"text-base font-semibold footer-top-link-text"},_hoisted_8$15={key:0,class:"accordion-body overflow-hidden"},_hoisted_9$$={class:"accordion-content"},_hoisted_10$R={class:"footer-top-link-text"},_hoisted_11$O={class:"footer-top-link-text"},_hoisted_12$M=["href"],_hoisted_13$I={class:""},_hoisted_14$H={class:"sr-only"},_hoisted_15$F={class:"text-sm footer-top-link-text"},_hoisted_16$B={class:"text-sm footer-top-link-text"};function _sfc_render$26(t,o,r,e,n,a){const i=__unplugin_components_0$f,s=__unplugin_components_0$g,l=__unplugin_components_1$a,d=__unplugin_components_1$b,c=__unplugin_components_1$e,u=resolveComponent("AppHyperlink"),f=__unplugin_components_0$l,m=resolveDirective("aa");return openBlock(),createElementBlock("div",_hoisted_1$2A,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.items,b=>(openBlock(),createElementBlock("div",{key:b.titleCTALabel,class:">lg:w-1/4 flex flex-col gap-2",name:b.titleLabel,role:"group"},[e.isMobileViewport&&!b.isHideInHamburgerMenu||!e.isMobileViewport?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["wrapper md:px-2 rounded-lg",{"lg:bg-primary-blue-extralight/16":e.isExpanded&&e.currentActiveAccordion===b.titleLabel,"bg-primary-blue-extralightNew":e.isExpanded&&e.currentActiveAccordion===b.titleLabel&&e.props.enableHeaderRafiGlassDesign}])},[e.isMobileAndTabletViewport&&b.navigationMenuLevel2.length?withDirectives((openBlock(),createElementBlock("button",{key:0,t
1148ype:"button",class:normalizeClass(["accordion-title mobile lg:py-5 px-0 lg:border-b w-full rounded-none",e.props.enableHeaderRafiGlassDesign?"border-neutral-grey-baseNew":"border-neutral-grey-base/20"]),onClick:withModifiers(y=>e.toggleAccordion(b),["prevent"])},[createBaseVNode("p",_hoisted_4$1m,[createBaseVNode("span",_hoisted_5$1f,toDisplayString(b.titleLabel),1),e.isExpanded&&e.currentActiveAccordion===b.titleLabel?(openBlock(),createElementBlock(Fragment,{key:0},[e.props.enableHeaderRafiGlassDesign?(openBlock(),createBlock(i,{key:0,class:"icon-plus-minus fill-white fill-whiteNew inline-block >lg:hidden"})):(openBlock(),createBlock(s,{key:1,class:"icon-plus-minus fill-white inline-block >lg:hidden"}))],64)):(openBlock(),createElementBlock(Fragment,{key:1},[e.props.enableHeaderRafiGlassDesign?(openBlock(),createBlock(l,{key:0,class:"icon-plus-minus fill-white fill-whiteNew inline-block >lg:hidden"})):(openBlock(),createBlock(d,{key:1,class:"icon-plus-minus fill-white inline-block >lg:hidden"}))],64))])],10,_hoisted_3$1v)),[[m,[{clickName:b.titleLabel,clickComponentType:"Button",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:b.titleLabel,type:"other"}]]]):(openBlock(),createElementBlock("div",_hoisted_6$1b,[withDirectives((openBlock(),createBlock(u,{class:"footer-top-link font-semibold lg:flex lg:justify-between",href:b.titlePagePath,target:b.isOpenNewTab?"_blank":"_self",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("span",_hoisted_7$19,toDisplayString(b.titleLabel),1),b.isExternalLink?(openBlock(),createBlock(c,{key:0,class:"external-link-icon fill-white inline-block ml-3 rtl:mr-3 text-base"})):createCommentVNode("",!0)]),_:2},1032,["href","target"])),[[m,[{clickName:b.titleLabel,clickComponentType:"URL",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:b.titleLabel,type:b.isExternalLink?"exit":"other"}]]])])),e.isMobileAndTabletViewport?(openBlock(),createBlock(e.TransitionSimpleSlideDown,{key:2},{default:withCtx(()=>[e.isExpanded&&e.currentActiveAccordion===b.titleLabel&&b.navigationMenuLevel2.length?(openBlock(),createElementBlock("div",_hoisted_8$15,[createBaseVNode("div",_hoisted_9$$,[b.titleCTALabel?withDirectives((openBlock(),createBlock(u,{key:0,class:normalizeClass(["lg:py-[15px]","lg:px-4",e.props.enableHeaderRafiGlassDesign?"footer-top-linkNew":"footer-top-link"]),href:b.titlePagePath,showExternalLinkIcon:!!e.props.enableHeaderRafiGlassDesign},{default:withCtx(()=>[createBaseVNode("span",_hoisted_10$R,toDisplayString(b.titleCTALabel),1),e.props.enableHeaderRafiGlassDesign?createCommentVNode("",!0):(openBlock(),createBlock(f,{key:0,class:"external-link-icon fill-white inline-block >md:hidden ml-3 rtl:mr-3 transform rtl:-rotate-180 text-base"}))]),_:2},1032,["class","href","showExternalLinkIcon"])),[[m,[{clickName:b.titleCTALabel,clickComponentType:"URL",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:b.titleCTALabel,type:"other"}]]]):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(b.navigationMenuLevel2,(y,_)=>withDirectives((openBlock(),createBlock(u,{key:_,class:normalizeClass(["lg:py-[15px]","lg:px-4 >md:hover:underline",e.props.enableHeaderRafiGlassDesign?"footer-top-linkNew":"footer-top-link"]),href:y.titlePagePath,target:y.isOpenNewTab?"_blank":"_self",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("span",_hoisted_11$O,toDisplayString(y.titleLabel),1),y.isExternalLink?(openBlock(),createBlock(c,{key:0,class:"external-link-icon fill-white inline-block ml-3 rtl:mr-3 text-base"})):createCommentVNode("",!0)]),_:2},1032,["class","href","target"])),[[m,[{clickName:y.titleLabel,clickComponentType:"URL",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:y.titleLabel,type:y.isExternalLink?"exit":"other"}]]])),128)),b.isHasMore&&b.navigationMenuLevel2.length?withDirectives((openBlock(),createElementBlock("a",{key:1,class:normalizeClass(["lg:py-[15px]","lg:px-4",e.props.enableHeaderRafiGlassDesign?"footer-top-linkNew":"footer-top-link"]),href:b.titlePagePath},[createBaseVNode("span",_hoisted_13$I,toDisplayString(t.$t("More")),1),createBaseVNode("span",_hoisted_14$H,toDisplayString(b.titleLabel),
11481)],10,_hoisted_12$M)),[[m,[{clickName:t.$t("More"),clickComponentType:"URL",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:t.$t("More"),type:"other"}]]]):createCommentVNode("",!0)])])):createCommentVNode("",!0)]),_:2},1024)):(openBlock(),createElementBlock(Fragment,{key:3},[(openBlock(!0),createElementBlock(Fragment,null,renderList(b.navigationMenuLevel2,y=>withDirectives((openBlock(),createBlock(u,{key:y.titleLabel,class:"footer-top-link",href:y.titlePagePath,target:y.isOpenNewTab?"_blank":"_self",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("div",_hoisted_15$F,[createBaseVNode("span",null,toDisplayString(y.titleLabel),1),y.isExternalLink?(openBlock(),createBlock(c,{key:0,class:"external-link-icon fill-white inline-block ml-3 rtl:mr-3 text-base"})):createCommentVNode("",!0)])]),_:2},1032,["href","target"])),[[m,[{clickName:y.titleLabel,clickComponentType:"URL",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:y.titleLabel,type:y.isExternalLink?"exit":"other"}]]])),128)),b.isHasMore&&b.navigationMenuLevel2.length?withDirectives((openBlock(),createBlock(u,{key:0,class:"footer-top-link",href:b.titlePagePath,showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("span",_hoisted_16$B,toDisplayString(t.$t("More")),1)]),_:2},1032,["href"])),[[m,[{clickName:t.$t("More"),clickComponentType:"URL",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:t.$t("More"),type:"other"}]]]):createCommentVNode("",!0)],64))],2)):createCommentVNode("",!0)],8,_hoisted_2$1X))),128))])}const AppFooterAccordion=_export_sfc(_sfc_main$26,[["render",_sfc_render$26],["__scopeId","data-v-34698442"],["__file","AppFooterAccordion.vue"]]),_imports_1="/etc.clientlibs/mh/clientlibs/clientlib-vue/resources/assets/logo-mh-COj1dhen.svg",__default__$24={name:"MobileMainMenuFooter",expose:[],inheritAttrs:!1},_sfc_main$25=Object.assign(__default__$24,{props:{generalTab:{type:Object,default:()=>({})},exerciseYourRightsTab:{type:Object,default:()=>({})},subsidiaryTab:{type:Object,default:()=>({})},socialMediaTab:{type:Object,default:()=>({})},tncTab:{type:Object,default:()=>({})},copyrightTab:{type:Object,default:()=>({})},componentIdAA:{type:String,default:""},newsletterTab:{type:Object,default:()=>({})},enableHeaderRafiGlassDesign:{type:Boolean,default:!1}},emits:["update:currentActiveAccordion"],setup(t,{expose:o,emit:r}){const{isEditorMode:e}=useGlobalAEMState$1(),n=t,a=useRouter$1(),i=useRoute$1(),s=ref$1(!1),l=r,d=ref$1(null),c=()=>{const _=Object.keys(n.exerciseYourRightsTab).length===0,S=Object.keys(n.subsidiaryTab).length===0,C=Object.keys(n.socialMediaTab).length===0,T=Object.keys(n.tncTab).length===0,x=Object.keys(n.copyrightTab).length===0;return _&&S&&C&&T&&x},u=_=>{var S;(S=d.value)==null||S.setCurrentAccordion(_)};o({setFooterCurrentAccordion:u});const f=()=>{s.value=!0,m.value=!0,a.replace({query:{...i.query,acemail:void 0,id:void 0}})},m=ref$1(window.location.hash=="#manage-subscription"),y={isEditorMode:e,props:n,router:a,route:i,showNewsLetter:s,emit:l,footerAccordionRef:d,isPropsDataEmpty:c,setFooterCurrentAccordion:u,openNewsletterOverlay:f,showOverlay:m,resetOverlayValues:()=>{m.value=!1,s.value=!1},FontAwesomeLazy,AppFooterAccordion,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},OverlayDrawer,get useRouter(){return useRouter$1},get useRoute(){return useRoute$1},CTAButton,ExperienceFragment};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),_hoisted_1$2z={key:0,class:"text-center"},_hoisted_2$1W={key:0,class:"MobileMainMenuFooter"},_hoisted_3$1u={class:"footer-inner-wrapper gap-x-4 pb-6 >md:pt-16 >md:pb-12 text-white"},_hoisted_4$1l={class:"font-semibold"},_hoisted_5$1e={class:"mt-2"},_hoisted_6$1a={class:"footer-bottom"},_hoisted_7$18={class:">lg:w-5/12 flex items-end"},_hoisted_8$14={class:"bottom-left-col"},_hoisted_9$_={key:0,class:"rights-logo-wrapper flex gap-x-6 gap-y-2.5"},_hoisted_10$Q=["src","alt"],_hoisted_11$N=["src","alt"],_hoisted_12$L={class:"partner-logo-wrapper"},_hoisted_13$H=["src","alt"],_hoisted_14$G={class:"copyright-text text-neutral-grey-extradark text-xs font-bold >lg:hidden >md:w-11/12 lg:w-full mx-auto mt-8"},_hoisted_15$E={class:">lg:w-7/12 >lg:flex flex-col items-end justify-end"},_hoisted_16$A={class:"bottom-right-col"},_hoisted_17$w={class:"social-icons-wrapper"},_hoisted_18$t={class:"social-icons-list >lg:text-right >lg:flex >lg:items-center"},_hoisted_19$q=["src","alt"],_hoisted_20$p={class:"sr-only"},_hoisted_21$p={class:"copyright-wrapper"},_hoisted_22$o={class:"copyright-list"},_hoisted_23$l={class:"mb-4 md:mb-1 lg:flex lg:flex-col"},_hoisted_24$k={class:"copyright-link-text"},_hoisted_25$j={class:"copyright-text text-neutral-grey-extradark text-xs font-bold lg:hidden"},_hoisted_26$i={class:"h-full"}
1148,_hoisted_27$h={class:"drawer-header"};function _sfc_render$25(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink"),s=__unplugin_components_0$i,l=resolveDirective("aa"),d=resolveDirective("html-sanitize");return openBlock(),createElementBlock(Fragment,null,[e.isPropsDataEmpty()?(openBlock(),createElementBlock(Fragment,{key:0},[e.isEditorMode?(openBlock(),createElementBlock("p",_hoisted_1$2z,"🔧 Please click here to configure footer")):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[e.isMobileViewport&&!e.props.generalTab.isHideInMobile?(openBlock(),createElementBlock("footer",_hoisted_2$1W,[createBaseVNode("div",{class:normalizeClass(["footer-inner-container bg-$overlay-container-bg-color",{">md:rounded-t-7xl":e.props.generalTab.isCurvedCorners}])},[createBaseVNode("div",_hoisted_3$1u,[createBaseVNode("div",{class:normalizeClass(e.props.enableHeaderRafiGlassDesign?"footer-topNew":"footer-top")},[e.props.enableHeaderRafiGlassDesign?createCommentVNode("",!0):(openBlock(),createBlock(e.AppFooterAccordion,{key:0,ref:"footerAccordionRef",items:e.props.generalTab.navigationMenu,"onUpdate:currentActiveAccordion":o[0]||(o[0]=c=>t.$emit("update:currentActiveAccordion",c))},null,8,["items"])),createBaseVNode("div",{class:normalizeClass([{hidden:e.props.newsletterTab.isHideInMobile},"footer-newsletter-container mt-5"])},[createBaseVNode("p",_hoisted_4$1l,toDisplayString(e.props.newsletterTab.text),1),createBaseVNode("div",_hoisted_5$1e,[e.props.newsletterTab.subscribeNowButtonLabel?(openBlock(),createBlock(e.CTAButton,{key:0,onClick:e.openNewsletterOverlay,ctaText:e.props.newsletterTab.subscribeNowButtonLabel,alignmentDesktop:"left",alignmentMobile:"left",styleType:"secondary"},null,8,["ctaText"])):createCommentVNode("",!0)])],2)],2),createBaseVNode("div",_hoisted_6$1a,[createBaseVNode("div",_hoisted_7$18,[createBaseVNode("div",_hoisted_8$14,[Object.entries(e.props.exerciseYourRightsTab).length>0?(openBlock(),createElementBlock("div",_hoisted_9$_,[withDirectives((openBlock(),createBlock(i,{href:e.props.exerciseYourRightsTab.image1.url,target:e.props.exerciseYourRightsTab.image1.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",class:"rights-logo-anchor",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("img",{src:e.props.exerciseYourRightsTab.image1.path,class:"rights-logo inline-block",alt:e.props.exerciseYourRightsTab.image1.altText},null,8,_hoisted_10$Q)]),_:1},8,["href","target"])),[[l,[{clickName:e.props.exerciseYourRightsTab.image1.altText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:e.props.exerciseYourRightsTab.image1.altText,type:e.isUrlMatchCurrentHostname(e.props.exerciseYourRightsTab.image1.url)?"other":"exit"}]]]),withDirectives((openBlock(),createBlock(i,{href:e.props.exerciseYourRightsTab.image2.url,target:e.props.exerciseYourRightsTab.image2.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",class:"rights-logo-anchor",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("img",{src:e.props.exerciseYourRightsTab.image2.path,class:"rights-logo inline-block",alt:e.props.exerciseYourRightsTab.image2.altText},null,8,_hoisted_11$N)]),_:1},8,["href","target"])),[[l,[{clickName:e.props.exerciseYourRightsTab.image2.altText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:e.props.exerciseYourRightsTab.image2.altText,type:e.isUrlMatchCurrentHostname(e.props.exerciseYourRightsTab.image2.url)?"other":"exit"}]]])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_12$L,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.subsidiaryTab.subsidiaryList,c=>withDirectives((openBlock(),createBlock(i,{key:c.imageAltText,href:c.imageUrl,target:c.isOpenNewTab?"_blank":"_self",class:normalizeClass(["partner-logo inline-block",{hidden:e.isMobileViewport&&c.isHideInMobile||!e.isMobileViewport&&c.isHideInDesktop}]),showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("img",{src:c.image,class:"h-[40px] w-auto inline-block",alt:c.imageAltText},null,8,_hoisted_13$H)]),_:2},1032,["href","target","class"])),[[l,[{clickName:c.imageAltText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:c.imageAltText,type:e.isUrlMatchCurrentHostname(c.imageUrl)?"other":"exit"}]]])),128))]),withDirectives(createBaseVNode("p",_hoisted_14$G,null,512),[[d,e.props.copyrightTab.text]])])]),createBaseVNode("div",_hoisted_15$E,[createBaseVNode("div",_hoisted_16$A,[createBaseVNode("div",_hoisted_17$w,[createBaseVNode("p",{class:normalizeClass(["text-xs","font-bold","mb-4","lg:mt-10",e.props.enableHeaderRafiGlassDesign?"text-neutral-grey-extradarkNew":"text-neutral-grey-extradark"])},toDisplayString(e.props.socialMediaTab.label),3),createBaseVNode("ul",_hoisted_18$t,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.socialMediaTab.socialMediaList,c=>(openBlock(),createElementBlock("li",{key:c.iconImage,class:"social-icons-list-item inline-block w-8 h-8"},[withDirectives((openBlock(),createBlock(i,{class:normalizeClass(["social-icons-anchor",{"align-middle":c.iconType!=="icon-font-awesome-id"}]),href:c.iconUrl,target:c.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",showExternalLinkIcon:!1},{default:withCtx(()=>[c.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,class:normalizeClass(["social-icon-logo hover:fill-primary-blue-extralight mx-auto",[e.props.enableHeaderRafiGlassDesign?"fill-neutral-white-baseNew":"fill-neutral-white-base"]]),iconId:c.iconId,role:"presentation"},null,8,["class","iconId"])):(openBlock(),createElementBlock("img",{key:1,src:c.iconImage,class:"social-icons-image w-8 h-8 hover:opacity-50",alt:c.iconAltText,role:"presentation"},null,8,_hoisted_19$q)),createBaseVNode("span",_hoisted_20$p,toDisplayString(c.iconAltText),1)]),_:2},1032,["class","href","target"])),[[l,[{clickName:c.iconAltText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:c.iconAltText,type:"other"}]]])]))),128))])]),createBaseVNode("div",_hoisted_21$p,[createBaseVNode("div",_hoisted_22$o,[createBaseVNode("ul",_hoisted_23$l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.tncTab.tncList,(c,u)=>(openBlock(),createElementBlock("li",{key:`${c.title}-${u}`,class:"copyright-list inline-block"},[withDirectives((openBlock(),createBlock(i,{class:normalizeClass(["copyright-link text-neutral-white-base hover:text-primary-blue-extralight",[e.props.enableHeaderRafiGlassDesign?"text-neutral-white-baseNew":"text-neutral-white-base"]]),href:c.titleUrl,target:c.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("span",_hoisted_24$k,toDisplayString(c.title),1)]),_:2},1032,["class","href","target"])),[[l,[{clickName:c.title,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:c.title,type:"other"}]]])]))),128))]),withDirectives(createBaseVNode("p",_hoisted_25$j,null,512),[[d,e.props.copyrightTab.text]])])])])])])])],2)])):createCommentVNode("",!0)],64)),createVNode(e.OverlayDrawer,{isVisible:e.showOverlay,"onUpdate:isVisible":o[1]||(o[1]=c=>{e.showOverlay=c,t.showFloatingActionList=c})},{default:withCtx(()=>[createBaseVNode("div",_hoisted_26$i,[createBaseVNode("div",_hoisted_27$h,[o[2]||(o[2]=createBaseVNode("img",{src:_imports_1,class:"h-6 >md:hidden"},null,-1)),createBaseVNode("button",{type:"button",class:"w-8 h-8 my-6 p-0 md:h-6 md:w-6 md:my-4 flex items-center justify-center",onClick:e.resetOverlayValues},[createVNode(s,{class:"w-2.5"})])]),createVNode(e.ExperienceFragment,{class:"flex-grow",xfPath:e.props.newsletterTab.newsletterXfPath},null,8,["xfPath"])])]),_:1},8,["isVisible"])],64)}const MobileMainMenuFooter=_export_sfc(_sfc_main$25,[["render",_sfc_render$25],["__scopeId","data-v-27d9cb44"],["__file","MobileMainMenuFooter.vue"]]),__default__$23={name:"MobileMainMenu",inheritAttrs:!1},_sfc_main$24=Object.assign(__default__$23,{props:{isVisible:{type:Boolean,default:!1},mobileNavigationList:{type:Array,default:()=>[]},headerNavigationList:{type:Array,default:()=>[]},mobileSelectedCountryLabel:{type:String,default:""},mobileAllCountriesLabel:{type:String,default:""},mobileSearchInputPlaceholder:{type:String,default:""},mobileLogo1LightSrc:{type:String,default:""},mobileLogo1DarkSrc:{type:String,default:""},mobileLogo1LightAltText:{type:String,default:""},mobileIsOpenInNewTabLogo1:{type:Boolean,default:!1},mobileIsHideLogo1:{type:Boolean,default:!1},mobileCountryLanguageItems:{type:Object,default:()=>({})},mobileFooter:{type:Object,default:()=>({})},isHideMobileSearch:{type:Boolean,default:!1},isHideAccountIcon:{type:Boolean,default:!1},componentIdAA:{type:String,default:""},countryLanguageRedirectBaseUrl:{type:String,default:""},enableHeaderRafiGlassDesign:{type:Boolean,default:!1}},emits:["update:isVisible","update:currentActiveAccordion"],setup(t,{expose:o,emit:r}){o();const{pageProperties:e}=useGlobalAEMState$1(),n=t,a=r,i=ref$1(!1),s=ref$1(""),l=ref$1(null),d=useEventBus("booking-widget"),c=_=>{s.value===_?s.value="":s.value=_,l.value.setFooterCurrentAccordion(_)},u=ref$1(null),f=computed(()=>{const _=n.mobileCountryLanguageItems.allCountriesAndLanguages||{},S=Object.keys(_).filter(C=>C!==n.mobileCountryLanguageItems.currentCountry);return Object.keys(_).length!==0?S.map(C=>n.mobileCountryLanguageItems.allCountriesAndLanguages[C]):null}),m=computed(()=>{const _=n.mobileCountryLanguageItems.currentCountry,S=n.mobileCountryLanguageItems.allCountriesAndLanguages;return S?Array.isArray(S)?S.find(C=>C.countryCode===_)??null:Object.keys(S).length!==0?{country:S[_].pageTitle,languages:S[_].languages}:null:null}),y={pageProperties:e,props:n,emit:a,showMobileCountrySelector:i,expandedLevelTwo:s,mobileFooterRef:l,bookingWidgetBus:d,toggleAccordion:c,footerAccordionRef:u,mobileAllCountriesAndLanguagesTransform:f,selectedCountryAndLanguageTransform:m,handleNavigationItemClick:_=>{a("update:isVisible",!1)},OverlayDrawer,MobileDrawerHeader,MobileCountrySelector,TransitionSimpleSlideDown,get iconPlus(){return iconPlus},get iconMinus(){return iconMinus},get iconExpand(){return __unplugin_components_0$h},get iconCollapse(){return iconCollapse},MobileMainMenuFooter,get useGlobalAEMState(){return useGlobalAEMState$1},AppFooterAccordion,get useEventBus(){return useEventBus}};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),_hoisted_1$2y={class:"px-6 mt-4 xs:pb-20"},_hoisted_2$1V={class:"menu-list"},_hoisted_3$1t=["onClick"],_hoisted_4$1k={class:"font-semibold"}
1148,_hoisted_5$1d={key:0,class:"level1-badge-mobile ml-2 rounded border border-current font-bold py-1 px-2 uppercase"},_hoisted_6$19={key:0,class:"overflow-hidden"},_hoisted_7$17={class:"px-4"},_hoisted_8$13={key:1,class:"menu-item"},_hoisted_9$Z={class:"level-1-title-label font-semibold"},_hoisted_10$P={key:0,class:"level1-badge-mobile ml-2 rounded border border-current font-bold py-1 px-2 uppercase"},_hoisted_11$M=["onClick"],_hoisted_12$K={class:"font-semibold"},_hoisted_13$G={key:0,class:"level1-badge-mobile ml-2 rounded border border-current font-bold py-1 px-2 uppercase"},_hoisted_14$F={key:0,class:"overflow-hidden"},_hoisted_15$D={key:0,class:"separator"},_hoisted_16$z={class:"px-4"},_hoisted_17$v={key:0},_hoisted_18$s={class:"footer-top-link-text"},_hoisted_19$p={key:1,class:"menu-item"},_hoisted_20$o={class:"level-1-title-label font-semibold"},_hoisted_21$o={key:0,class:"level1-badge-mobile ml-2 rounded border border-current font-bold py-1 px-2 uppercase"},_hoisted_22$n={class:"btm-sticky min-h-18 bg-$overlay-container-bg-color px-6 z-10"},_hoisted_23$k={class:"flex items-center gap-2"},_hoisted_24$j=["src"],_hoisted_25$i={class:"text-sm font-semibold uppercase"};function _sfc_render$24(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink"),s=__unplugin_components_0$l,l=__unplugin_components_1$d,d=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[createVNode(e.OverlayDrawer,mergeProps({isVisible:e.props.isVisible,class:"text-white",style:{"--overlay-container-bg-color":e.props.enableHeaderRafiGlassDesign?"#FAFBFC":"var(--secondary-blue-extradark)"}},t.$attrs,{"onUpdate:isVisible":o[4]||(o[4]=c=>t.$emit("update:isVisible",c))}),{default:withCtx(()=>{var c;return[createBaseVNode("div",{class:normalizeClass(["overflow-y-auto",e.props.enableHeaderRafiGlassDesign?"MobileMainMenuNew":"MobileMainMenu"])},[createVNode(e.MobileDrawerHeader,{class:"sticky top-0 bg-$overlay-container-bg-color z-10",logoImgSrc:e.props.mobileLogo1LightSrc,logoImgSrcBlue:e.props.mobileLogo1DarkSrc,logoImgAlt:e.props.mobileLogo1LightAltText,logoOpenInNewTab:e.props.mobileIsOpenInNewTabLogo1,logoIsHideMobileLogoImg:e.props.mobileIsHideLogo1,drawerIsHideMobileSearch:e.props.isHideMobileSearch,drawerIsHideAccountIcon:e.props.isHideAccountIcon,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,componentIdAA:e.props.componentIdAA,"onClick:headerX":o[0]||(o[0]=u=>t.$emit("update:isVisible",!1))},null,8,["logoImgSrc","logoImgSrcBlue","logoImgAlt","logoOpenInNewTab","logoIsHideMobileLogoImg","drawerIsHideMobileSearch","drawerIsHideAccountIcon","enableHeaderRafiGlassDesign","componentIdAA"]),createBaseVNode("div",_hoisted_1$2y,[createBaseVNode("nav",null,[createBaseVNode("ul",_hoisted_2$1V,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mobileNavigationList,(u,f)=>(openBlock(),createElementBlock(Fragment,{key:f},[u.hamburgerL2Menu&&u.hamburgerL2Menu.length?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass(["menu-item",{"is-expanded":e.expandedLevelTwo===`${u.l1TitleLabel} ${f}`}])},[withDirectives((openBlock(),createElementBlock("button",{type:"button",class:"w-full text-left px-0 py-4 flex items-center",onClick:m=>e.toggleAccordion(`${u.l1TitleLabel} ${f}`)},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_4$1k,toDisplayString(u.l1TitleLabel),1),u.newLabel?(openBlock(),createElementBlock("span",_hoisted_5$1d,toDisplayString(t.$t("New")),1)):createCommentVNode("",!0)]),(openBlock(),createBlock(resolveDynamicComponent(e.expandedLevelTwo===`${u.l1TitleLabel} ${f}`?e.iconMinus:e.iconPlus),{class:"ml-auto fill-current mr-1 rtl:ml-0 rtl:mr-auto"}))],8,_hoisted_3$1t)),[[d,[{clickName:u.l1TitleLabel,clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:u.l1TitleLabel,type:"other"}]]]),createVNode(e.TransitionSimpleSlideDown,null,{default:withCtx(()=>[e.expandedLevelTwo===`${u.l1TitleLabel} ${f}`?(openBlock(),createElementBlock("div",_hoisted_6$19,[o[8]||(o[8]=createBaseVNode("hr",{class:"separator"},null,-1)),createBaseVNode("div",_hoisted_7$17,[createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.hamburgerL2Menu,(m,b)=>(openBlock(),createElementBlock("li",{key:b},[withDirectives((openBlock(),createBlock(i,{href:m.l2TitlePagePath,class:normalizeClass(["block","lg:py-[15px]",e.props.enableHeaderRafiGlassDesign?"text-neutral-white-baseNew":"text-neutral-white-base"]),showExternalLinkIcon:m.externalLink,onClick:y=>e.handleNavigationItemClick(u)},{default:withCtx(()=>
1148[createTextVNode(toDisplayString(m.l2TitleLabel),1)]),_:2},1032,["href","class","showExternalLinkIcon","onClick"])),[[d,[{clickName:m.l2TitleLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:m.l2TitleLabel,type:"other"}]]])]))),128))])])])):createCommentVNode("",!0)]),_:2},1024)],2)):(openBlock(),createElementBlock("li",_hoisted_8$13,[withDirectives((openBlock(),createBlock(i,{class:normalizeClass(["w-full text-left px-0 py-4 flex items-center hover:text-neutral-white-base menu-item-without-child",e.props.enableHeaderRafiGlassDesign?"text-neutral-white-baseNew":"text-neutral-white-base"]),href:u.l1TitlePagePath,target:u.openInNewTab?"_blank":"_self",onClick:m=>e.handleNavigationItemClick(u)},{default:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_9$Z,toDisplayString(u.l1TitleLabel),1),u.newLabel?(openBlock(),createElementBlock("span",_hoisted_10$P,toDisplayString(t.$t("New")),1)):createCommentVNode("",!0)])]),_:2},1032,["class","href","target","onClick"])),[[d,[{clickName:u.l1TitleLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:u.l1TitleLabel,type:"other"}]]])]))],64))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.headerNavigationList,(u,f)=>(openBlock(),createElementBlock(Fragment,{key:f},[u.hideInMobHamMenu?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:0},[u.headerL2Navigation&&u.headerL2Navigation.length?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass(["menu-item",e.props.enableHeaderRafiGlassDesign?{"is-expandedNew":e.expandedLevelTwo===`${u.l1TitleLabel} ${f}`}:{"is-expanded":e.expandedLevelTwo===`${u.l1TitleLabel} ${f}`}])},[withDirectives((openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["w-full text-left px-0 py-4 flex items-center",[e.props.enableHeaderRafiGlassDesign?"menu-borderNew":""]]),onClick:m=>e.toggleAccordion(`${u.l1TitleLabel} ${f}`)},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_12$K,toDisplayString(u.l1TitleLabel),1),u.newLabel?(openBlock(),createElementBlock("span",_hoisted_13$G,toDisplayString(t.$t("New")),1)):createCommentVNode("",!0)]),(openBlock(),createBlock(resolveDynamicComponent(e.expandedLevelTwo===`${u.l1TitleLabel} ${f}`?e.props.enableHeaderRafiGlassDesign?e.iconCollapse:e.iconMinus:e.props.enableHeaderRafiGlassDesign?e.iconExpand:e.iconPlus),{class:"ml-auto fill-current mr-1 rtl:ml-0 rtl:mr-auto"}))],10,_hoisted_11$M)),[[d,[{clickName:u.l1TitleLabel,clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:u.l1TitleLabel,type:"other"}]]]),createVNode(e.TransitionSimpleSlideDown,null,{default:withCtx(()=>[e.expandedLevelTwo===`${u.l1TitleLabel} ${f}`?(openBlock(),createElementBlock("div",_hoisted_14$F,[e.props.enableHeaderRafiGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("hr",_hoisted_15$D)),createBaseVNode("div",_hoisted_16$z,[createBaseVNode("ul",null,[u.l1TitleCtaLabel?(openBlock(),createElementBlock("li",_hoisted_17$v,[withDirectives((openBlock(),createBlock(i,{class:normalizeClass(["block lg:py-[15px] hover:text-neutral-white-base",e.props.enableHeaderRafiGlassDesign?"text-neutral-white-baseNew":"text-neutral-white-base"]),href:u.l1TitlePagePath,showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("span",_hoisted_18$s,toDisplayString(u.l1TitleCtaLabel),1),createVNode(s,{class:"external-link-icon fill-white inline-block >md:hidden ml-3 rtl:mr-3 text-base transform rtl:-rotate-180"})]),_:2},1032,["class","href"])),[[d,[{clickName:u.l1TitleCtaLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:u.l1TitleCtaLabel,type:"other"}]]])])):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.headerL2Navigation,(m,b)=>(openBlock(),createElementBlock("li",{key:b},[withDirectives((openBlock(),createBlock(i,{href:m.l2TitlePagePath,class:normalizeClass(["block py-[15px] text-neutral-white-base hover:text-neutral-white-base",e.props.enableHeaderRafiGlassDesign?"text-neutral-white-baseNew":"text-neutral-white-base"]),showExternalLinkIcon:m.externalLink},{default:withCtx(()=>
1148[createTextVNode(toDisplayString(m.l2TitleLabel),1)]),_:2},1032,["href","class","showExternalLinkIcon"])),[[d,[{clickName:m.l2TitleLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:m.l2TitleLabel,type:"other"}]]])]))),128))])])])):createCommentVNode("",!0)]),_:2},1024)],2)):(openBlock(),createElementBlock("li",_hoisted_19$p,[withDirectives((openBlock(),createBlock(i,{class:normalizeClass(["w-full text-left px-0 py-4 flex items-center hover:text-neutral-white-base menu-item-without-child",e.props.enableHeaderRafiGlassDesign?"text-neutral-white-baseNew":"text-neutral-white-base"]),href:u.l1TitlePagePath,target:u.openInNewTab?"_blank":"_self"},{default:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_20$o,toDisplayString(u.l1TitleLabel),1),u.newLabel?(openBlock(),createElementBlock("span",_hoisted_21$o,toDisplayString(t.$t("New")),1)):createCommentVNode("",!0)])]),_:2},1032,["class","href","target"])),[[d,[{clickName:u.l1TitleLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:u.l1TitleLabel,type:"other"}]]])]))],64))],64))),128)),e.props.enableHeaderRafiGlassDesign?(openBlock(),createBlock(e.AppFooterAccordion,{key:0,ref:"footerAccordionRef",items:(c=e.props.mobileFooter)==null?void 0:c.generalTab.navigationMenu,currentActiveAccordionFooter:e.expandedLevelTwo,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,"onUpdate:currentActiveAccordion":o[1]||(o[1]=()=>e.toggleAccordion(t.$event))},null,8,["items","currentActiveAccordionFooter","enableHeaderRafiGlassDesign"])):createCommentVNode("",!0)])]),createBaseVNode("footer",null,[createVNode(e.MobileMainMenuFooter,{ref:"mobileFooterRef",currentActiveAccordion:e.expandedLevelTwo,"onUpdate:currentActiveAccordion":o[2]||(o[2]=u=>e.expandedLevelTwo=u),generalTab:e.props.mobileFooter.generalTab,exerciseYourRightsTab:e.props.mobileFooter.exerciseYourRightsTab,subsidiaryTab:e.props.mobileFooter.subsidiaryTab,socialMediaTab:e.props.mobileFooter.socialMediaTab,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,tncTab:e.props.mobileFooter.tncTab,copyrightTab:e.props.mobileFooter.copyrightTab,newsletterTab:e.props.mobileFooter.newsletterTab,componentIdAA:e.props.componentIdAA},null,8,["currentActiveAccordion","generalTab","exerciseYourRightsTab","subsidiaryTab","socialMediaTab","enableHeaderRafiGlassDesign","tncTab","copyrightTab","newsletterTab","componentIdAA"])])]),createBaseVNode("div",_hoisted_22$n,[withDirectives((openBlock(),createElementBlock("button",{type:"button",class:"px-0 flex items-center w-full px-0",onClick:o[3]||(o[3]=u=>e.showMobileCountrySelector=!0)},[createBaseVNode("div",_hoisted_23$k,[createBaseVNode("img",{src:e.pageProperties.countryFlag,width:"24",height:"24"},null,8,_hoisted_24$j),createBaseVNode("span",_hoisted_25$i,toDisplayString(e.props.mobileCountryLanguageItems.currentLanguage),1)]),createVNode(l,{class:"ml-auto: rtl:ml-0 transform rtl:-rotate-180 fill-current"})])),[[d,[{clickName:e.props.mobileCountryLanguageItems.currentLanguage,clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:e.props.mobileCountryLanguageItems.currentLanguage,type:"other"}]]])])],2)]}),_:1},16,["isVisible","style"]),e.mobileAllCountriesAndLanguagesTransform?(openBlock(),createBlock(e.MobileCountrySelector,{key:0,class:"mobile-country-selector-backdrop",isVisible:e.showMobileCountrySelector,mobileSelectedCountryLabelSelector:e.props.mobileSelectedCountryLabel,mobileAllCountriesLabelSelector:e.props.mobileAllCountriesLabel,mobileCountryLanguage:e.props.mobileCountryLanguageItems,mobileAllCountriesAndLanguages:e.mobileAllCountriesAndLanguagesTransform,mobileSelectedCountryAndLanguage:e.selectedCountryAndLanguageTransform,countryLanguageRedirectBaseUrl:e.props.countryLanguageRedirectBaseUrl,headerIsHideMobileSearch:e.props.isHideMobileSearch,headerIsHideAccountIcon:e.props.isHideAccountIcon,headerLogoImgSrc:e.props.mobileLogo1LightSrc,headerLogoImgAlt:e.props.mobileLogo1LightAltText,headerLogoOpenInNewTab:e.props.mobileIsOpenInNewTabLogo1,headerLogoIsHideMobileLogoImg:e.props.mobileIsHideLogo1,"onUpdate:isVisible":o[5]||(o[5]=c=>e.showMobileCountrySelector=c),"onClick:headerX":o[6]||(o[6]=c=>{e.showMobileCountrySelector=!1,t.$emit("update:isVisible",!1)}),"onClick:btnBack":o[7]||(o[7]=c=>e.showMobileCountrySelector=!1)},null,8,["isVisible","mobileSelectedCountryLabelSelector","mobileAllCountriesLabelSelector","mobileCountryLanguage","mobileAllCountriesAndLanguages","mobileSelectedCountryAndLanguage","countryLanguageRedirectBaseUrl","headerIsHideMobileSearch","headerIsHideAccountIcon","headerLogoImgSrc","headerLogoImgAlt","headerLogoOpenInNewTab","headerLogoIsHideMobileLogoImg"])):createCommentVNode("",!0)],64)}const MobileMainMenu=_export_sfc(_sfc_main$24,[["render",_sfc_render$24],["__scopeId","data-v-d0601426"],["__file","MobileMainMenu.vue"]]),__default__$22={name:"IconCustom",inheritAttrs:!1},_sfc_main$23=Object.assign(__default__$22,{props:{iconId:{type:String,default:"",validator:t=>["youku","tiktok","travel-info"].includes(t)},size:{type:Number,default:24}},setup(t,{expose:o}){o();const e={props:t};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}});function _sfc_render$23(t,o,r,e,n,a){return openBlock(),createElementBlock(Fragment,null,[e.props.iconId==="youku"?(openBlock(),createElementBlock("svg",mergeProps({key:0,xmlns:"http://www.w3.org/2000/svg",style:{width:`${e.props.size}px`,height:`${e.props.size}px`},viewBox:"0 0 24 24"},t.$attrs),o[0]||(o[0]=[createBaseVNode("g",{fill:"currentColor"},[createBaseVNode("path",{d:"M10.5 9.002a.533.533 0 0 0-.571.523l.011 2.4a2.207 2.207 0 0 0 2.3 2.261 2.228 2.228 0 0 0 2.313-2.242l.011-2.416a.531.531 0 0 0-.578-.523.522.522 0 0 0-.573.512v2.424a1.074 1.074 0 0 1-1.168 1.11
11487 1.125 1.125 0 0 1-1.182-1.141l.011-2.386a.54.54 0 0 0-.574-.526Zm-3.2.008h-.013a2.361 2.361 0 0 0-.609.087 2.267 2.267 0 0 0-1.035.6 2.336 2.336 0 0 0-.688 1.791 2.681 2.681 0 0 0 .346 1.576 2.4 2.4 0 0 0 1.852 1.123H7.45a2.4 2.4 0 0 0 1.852-1.121 2.71 2.71 0 0 0 .346-1.576 2.349 2.349 0 0 0-.688-1.791 2.267 2.267 0 0 0-1.035-.6 2.367 2.367 0 0 0-.612-.089h-.011Zm-6.7 0a.615.615 0 0 0-.567.383.628.628 0 0 0 .179.659c.552.561 1.126 1.106 1.67 1.674l.008 1.871a.583.583 0 0 0 .593.6.593.593 0 0 0 .6-.595l.011-1.924 1.686-1.676a.58.58 0 0 0-.791-.848c-.008.011-1.495 1.481-1.495 1.481L.913 9.117A.506.506 0 0 0 .6 9.01Zm6.7 1.151a1 1 0 0 1 .316.049 1.2 1.2 0 0 1 .726.61 2.956 2.956 0 0 1 .1 1.1 1.139 1.139 0 0 1-1.145 1.11 1.165 1.165 0 0 1-.437-.083 1.151 1.151 0 0 1-.707-1.025 3.073 3.073 0 0 1 .106-1.1 1.181 1.181 0 0 1 .723-.61 1.04 1.04 0 0 1 .319-.049ZM18.531 9.009a.469.469 0 0 0-.335.148c-.7.648-1.358 1.333-2.039 1.992a.85.85 0 0 0-.194.3V9.57a.611.611 0 0 0-1.217 0v4.117a.531.531 0 0 0 .6.5.539.539 0 0 0 .6-.5s.027-1.894.015-1.894a1.625 1.625 0 0 0 .346.394c.517.508 1.027 1.023 1.544 1.526
1148a2.4 2.4 0 0 0 .464.413.577.577 0 0 0 .822-.572c0-.261-.228-.424-.4-.591-.441-.439-.894-.875-1.335-1.322v-.102q.753-.739 1.5-1.481a.561.561 0 0 0 .245-.464.584.584 0 0 0-.616-.587Zm1.4.011a.533.533 0 0 0-.571.523l.011 2.394a2.308 2.308 0 0 0 4.614.019L24 9.543a.53.53 0 0 0-.582-.519.522.522 0 0 0-.57.515v2.413a1.079 1.079 0 0 1-1.171 1.113 1.116 1.116 0 0 1-1.18-1.136l.01-2.386a.534.534 0 0 0-.574-.523Z"})],-1)]),16)):createCommentVNode("",!0),e.props.iconId==="tiktok"?(openBlock(),createElementBlock("svg",mergeProps({key:1,xmlns:"http://www.w3.org/2000/svg",style:{width:`${e.props.size}px`,height:`${e.props.size}px`},viewBox:"0 0 24 24"},t.$attrs),o[1]||(o[1]=[createBaseVNode("defs",null,[createBaseVNode("clipPath",{id:"a"},[createBaseVNode("path",{fill:"currentColor",d:"M0 0h14.04v18H0z"})])],-1),createBaseVNode("g",null,[createBaseVNode("g",{"clip-path":"url(#a)",transform:"translate(5 3)"},[createBaseVNode("path",{fill:"currentColor",d:"M13.95 2.07a.169.169 0 0 0-.27 0 1.932 1.932 0 0 1-2.25-.54 1.571 1.571 0 0 1-.36-1.08.331.331 0 0 0-.09-.27C10.89 0 10.801 0 10.71 0H7.201a.239.239 0 0 0-.27.27v12.06a1.174 1.174 0 0 1-1.17 1.08 1.191 1.191 0 0 1-1.17-1.17 1.174 1.174 0 0 1 1.08-1.17c.18 0 .27-.18.27-.36V6.84c0-.18-.09-.36-.27-.36h-.18a5.75 5.75 0 0 0-5.49 6.03A5.665 5.665 0 0 0 5.94 18a5.724 5.724 0 0 0 5.49-5.22V6.12a6.906 6.906 0 0 0 2.34.09c.18 0 .27-.18.27-.36v-3.6c0-.09 0-.18-.09-.18"})])],-1)]),16)):createCommentVNode("",!0),e.props.iconId==="travel-info"?(openBlock(),createElementBlock("svg",mergeProps({key:2,xmlns:"http://www.w3.org/2000/svg",style:{width:`${e.props.size}px`,height:`${e.props.size}px`},viewBox:"0 0 24 24"},t.$attrs),o[2]||(o[2]=[createBaseVNode("g",{fill:"currentColor"},[createBaseVNode("path",{d:"M17.492 6.523h-1.376V3.091a2.06 2.06 0 0 0-2.059-2.06H9.942a2.06 2.06 0 0 0-2.06 2.06v3.433H6.508a2.746 2.746 0 0 0-2.746 2.745v9.612a2.743 2.743 0 0 0 2.743 2.75 1.373 1.373 0 0 0 2.747 0h5.49a1.373 1.373 0 1 0 2.746 0 2.748 2.748 0 0 0 2.754-2.75V9.269a2.747 2.747 0 0 0-2.75-2.746Zm-7.734-3.6h4.584v3.6h-4.58Zm8.744 16.183a.687.687 0 0 1-.687.687H6.198a.687.687 0 0 1-.687-.687V9.075a.687.687 0 0 1 .687-.687h11.618a.687.687 0 0 1 .687.687Z"}),createBaseVNode("path",{stroke:"currentColor","stroke-width":".5",d:"M13.123 16.338h-.449v-2.47a.674.674 0 0 0-.674-.674h-.9a.676.676 0 0 0-.674.674.676.676 0 0 0 .674.674h.225v1.8h-.449a.676.676 0 0 0-.674.674.676.676 0 0 0 .674.674h2.246a.674.674 0 0 0 .674-.674.673.673 0 0 0-.673-.678ZM12 12.296a.9.9 0 0 0 .9-.9.9.9 0 0 0-.9-.9.9.9 0 0 0-.9.9.9.9 0 0 0 .9.9Z","data-name":"Path 126998"})],-1)]),16)):createCommentVNode("",!0)],64)}const IconCustom=_export_sfc(_sfc_main$23,[["render",_sfc_render$23],["__scopeId","data-v-504b5b08"],["__file","IconCustom.vue"]]),__default__$21={name:"MobileBtmBar",inheritAttrs:!1},_sfc_main$22=Object.assign(__default__$21,{props:{mobileBottomNavigationItems:{type:Array,default:()=>[]},enableGlassDesign:{type:Boolean,default:!1}},setup(t,{expose:o}){o(),gsapWithCSS.registerPlugin(ScrollTrigger);const r=t,e=ref$1(!1),n=window.siteName,a=useEventBus("booking-widget"),i=async()=>{try{let d=".BookingWidget";n==="firefly"&&(d=".FireflyBookingWidget .inner-container"),await waitFor(()=>document.querySelector(d)!==null,400,120).start();const u=document.querySelector(d),f=document.querySelector("#booking-subpage-container");u!==null&&(ScrollTrigger.isInViewport(u)||f!==null&&ScrollTrigger.isInViewport(f))?e.value=!0:e.value=!1,u!==null&&u.getBoundingClientRect().y===0&&(e.value=!0)}catch{e.value=!1}},s=d=>{console.log(d)};onMounted(()=>{i(),document.addEventListener("scroll",i,{passive:!0})}),onUnmounted(()=>{document.removeEventListener("scroll",i)});const l={props:r,isMobileBottomHidden:e,siteName:n,bookingWidgetBus:a,updateBookingWidgetInViewport:i,handleMobileMenuCLick:s,IconCustom,FontAwesomeLazy,get waitFor(){return waitFor},get gsap(){return gsapWithCSS},get ScrollTrigger(){return ScrollTrigger},get useEventBus(){return useEventBus}};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),_hoisted_1$2x={key:0,class:"wrapper flex justify-around h-full"},_hoisted_2$1U={class:"mobile-bottom-bar-label"},_hoisted_3$1s={key:1,class:"wrapper flex justify-around h-full"},_hoisted_4$1j={class:"mobile-bottom-bar-label"};function _sfc_render$22(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink");return openBlock(),createBlock(Teleport,{to:"body"},[createBaseVNode("div",{class:normalizeClass(["mobile-btm-bar-spacer",{"transform-y":e.isMobileBottomHidden}])},null,2),createBaseVNode("div",mergeProps({class:["MobileBtmBar",{"transform-y":e.isMobileBottomHidden}]},t.$attrs),[e.props.enableGlassDesign?(openBlock(),createElementBlock("div",_hoisted_3$1s,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mobileBottomNavigationItems,(s,l)=>(openBlock(),createBlock(i,{key:l,href:s.urlPath,onClick:o[0]||(o[0]=d=>e.handleMobileMenuCLick(d)),class:"flex flex-col items-center justify-center typo-body-text-3 font-semibold text-primary-black-base hover:text-primary-black-base hover:no-underline"},{default:withCtx(()=>[s.iconFontAwesomeId!=="travel-info"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,iconId:s.iconFontAwesomeId,iconStyle:"regular",class:"mobile-bottom-bar-icon fill-current w-full h-6"}
1148,null,8,["iconId"])):(openBlock(),createBlock(e.IconCustom,{key:1,iconId:"travel-info",size:24})),createBaseVNode("span",_hoisted_4$1j,toDisplayString(s.label),1)]),_:2},1032,["href"]))),128))])):(openBlock(),createElementBlock("div",_hoisted_1$2x,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mobileBottomNavigationItems,(s,l)=>(openBlock(),createBlock(i,{key:l,href:s.urlPath,class:"flex flex-col items-center justify-center typo-body-text-3 font-semibold text-primary-black-base hover:text-primary-black-base hover:no-underline"},{default:withCtx(()=>[s.iconFontAwesomeId!=="travel-info"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,iconId:s.iconFontAwesomeId,iconStyle:"regular",class:"mobile-bottom-bar-icon fill-current w-full h-6"},null,8,["iconId"])):(openBlock(),createBlock(e.IconCustom,{key:1,iconId:"travel-info",size:24})),createBaseVNode("span",_hoisted_2$1U,toDisplayString(s.label),1)]),_:2},1032,["href"]))),128))]))],16)])}const MobileBtmBar=_export_sfc(_sfc_main$22,[["render",_sfc_render$22],["__scopeId","data-v-e43447fa"],["__file","MobileBtmBar.vue"]]);/*! *****************************************************************************
1149Copyright (c) Microsoft Corporation.
1150
1151Permission to use, copy, modify, and/or distribute this software for any
1152purpose with or without fee is hereby granted.
1153
1154THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1155REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1156AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1157INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1158LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1159OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1160PERFORMANCE OF THIS SOFTWARE.
1161***************************************************************************** */var extendStatics=function(t,o){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])},extendStatics(t,o)};function __extends(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");extendStatics(t,o);function r(){this.constructor=t}t.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}function __spreadArray(t,o,r){if(r||arguments.length===2)for(var e=0,n=o.length,a;e<n;e++)(a||!(e in o))&&(a||(a=Array.prototype.slice.call(o,0,e)),a[e]=o[e]);return t.concat(a||Array.prototype.slice.call(o))}function toArray(t){return Array.isArray(t)?t:[t]}function type(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}function indent(t,o){o===void 0&&(o=2);var r=Array(o).fill(" ").join("");return t.split(`
1162`).map(function(e){return r+e}).join(`
1163`)}function wrapit(t,o,r,e,n){return o===void 0&&(o="{"),r===void 0&&(r="}"),e===void 0&&(e=2),n===void 0&&(n=!1),n?"".concat(o).concat(t).concat(r):"".concat(o,`
1164`).concat(indent(t,e),`
1165`).concat(r)}function camelToDash(t){return t.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function searchFrom(t,o,r,e){r===void 0&&(r=0);var n=t.substring(r,e),a=n.search(o);return a===-1?-1:r+a}function connectList(t,o,r){return r===void 0&&(r=!0),r?__spreadArray(__spreadArray([],t??[],!0),o??[],!0):__spreadArray(__spreadArray([],o??[],!0),t??[],!0)}function deepCopy(t){return Array.isArray(t)?t.map(function(o){return deepCopy(o)}):t instanceof Date?new Date(t.getTime()):t&&typeof t=="object"?Object.getOwnPropertyNames(t).reduce(function(o,r){var e=Object.getOwnPropertyDescriptor(t,r);return e&&(Object.defineProperty(o,r,e),t&&typeof t=="object"&&(o[r]=deepCopy(t[r]))),o},Object.create(Object.getPrototypeOf(t))):t}function isTagName(t){return["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embd","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"].includes(t)}function searchPropEnd(t,o){o===void 0&&(o=0);for(var r=o,e=-1,n=!1,a=!1,i=!1,s=!1;r<t.length;){switch(t.charAt(r)){case"\\":s=!s;break;case"'":!a&&!i&&!s&&(n=!n),s=!1;break;case'"':!n&&!i&&!s&&(a=!a),s=!1;break;case"(":!i&&!n&&!a&&!s&&(i=!0),s=!1;break;case")":i&&!s&&(i=!1),s=!1;break;case";":!s&&!n&&!a&&!i&&(e=r),s=!1;break;default:s=!1;break}if(e!==-1)break;r++}return e}var Property=function(){function t(o,r,e,n){n===void 0&&(n=!1),this.meta={type:"utilities",group:"plugin",order:0,offset:0,corePlugin:!1},this.name=o,this.value=r,this.comment=e,this.important=n}
1165return t._singleParse=function(o){if(o=o.trim(),!!o){if(o.charAt(0)==="@")return InlineAtRule.parse(o);var r=o.search(":"),e=searchPropEnd(o);if(r!==-1){var n=!1,a=o.substring(r+1,e===-1?void 0:e).trim();return/!important;?$/.test(a)&&(n=!0,a=a.replace(/!important/,"").trimRight()),new t(o.substring(0,r).trim(),a,void 0,n)}}},t.parse=function(o){/;\s*$/.test(o)||(o+=";");for(var r=[],e=0,n=searchPropEnd(o,e);n!==-1;){var a=this._singleParse(o.substring(searchFrom(o,/\S/,e),n+1));a&&r.push(a),e=n+1,n=searchPropEnd(o,e)}var i=r.length;if(i>1)return r;if(i===1)return r[0]},t.prototype.clone=function(){return deepCopy(this)},t.prototype.toStyle=function(o){var r=new Style(o,this,this.important);return r.meta=this.meta,r},t.prototype.build=function(o){var r=this;o===void 0&&(o=!1);var e=function(n,a){if(o)return"".concat(n,":").concat(a).concat(r.important?"!important":"",";");var i="".concat(n,": ").concat(a).concat(r.important?" !important":"",";");return r.comment?i+" /* ".concat(r.comment," */"):i};return this.value?typeof this.name=="string"?e(this.name,this.value):this.name.map(function(n){return e(n,r.value)}).join(o?"":`
1166`):""},t.prototype.updateMeta=function(o,r,e,n,a){return n===void 0&&(n=0),a===void 0&&(a=!1),this.meta={type:o,group:r,order:e,offset:n,corePlugin:a},this},t}(),InlineAtRule=function(t){__extends(o,t);function o(r,e,n){n===void 0&&(n=!1);var a=t.call(this,r,e,void 0,n)||this;return a.name=r,a}return o.parse=function(r){var e,n=r.match(/@[^\s;{}]+/);if(n){var a=n[0].substring(1),i=!1,s=n.index!==void 0?(e=r.substring(n.index+a.length+1).match(/(?:(['"]).*?\1|[^;])*/))===null||e===void 0?void 0:e[0].trim():void 0;return s&&/!important;?$/.test(s)&&(i=!0,s=s.replace(/!important/,"").trimRight()),new o(a,s===""?void 0:s,i)}},o.prototype.build=function(){return this.value?"@".concat(this.name," ").concat(this.value).concat(this.important?" !important":"",";"):"@".concat(this.name).concat(this.important?" !important":"",";")},o}(Property),Style=function(){function t(o,r,e){e===void 0&&(e=!1),this.meta={type:"components",group:"plugin",order:0,offset:0,corePlugin:!1},this.selector=o,this.important=e,this.property=toArray(r||[])}return Object.defineProperty(t.prototype,"rule",{get:function(){var o=this,r,e,n,a=((r=this.selector)!==null&&r!==void 0?r:"").trim().split(/\s*,\s*/g);return this._parentSelectors&&(a=a.map(function(i){var s;return"".concat((s=o._parentSelectors)===null||s===void 0?void 0:s.join(" ")," ").concat(i)}
1166)),((e=this._wrapSelectors)!==null&&e!==void 0?e:[]).forEach(function(i){return a=a.map(function(s){return i(s)})}),this._pseudoClasses&&(a=a.map(function(i){var s;return i+":".concat((s=o._pseudoClasses)===null||s===void 0?void 0:s.join(":"))})),this._pseudoElements&&(a=a.map(function(i){var s;return i+"::".concat((s=o._pseudoElements)===null||s===void 0?void 0:s.join("::"))})),this._brotherSelectors&&(a=a.map(function(i){var s;return i+".".concat((s=o._brotherSelectors)===null||s===void 0?void 0:s.join("."))})),this._childSelectors&&(a=a.map(function(i){var s;return i+" ".concat((s=o._childSelectors)===null||s===void 0?void 0:s.join(" "))})),((n=this._wrapRules)!==null&&n!==void 0?n:[]).forEach(function(i){return a=a.map(function(s){return i(s)})}),a.join(", ")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pseudoClasses",{get:function(){return this._pseudoClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pseudoElements",{get:function(){return this._pseudoElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentSelectors",{get:function(){return this._parentSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childSelectors",{get:function(){return this._childSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"brotherSelectors",{get:function(){return this._brotherSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapProperties",{get:function(){return this._wrapProperties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapSelectors",{get:function(){return this._wrapSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapRules",{get:function(){return this._wrapRules},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"simple",{get:function(){return!(this.atRules||this._pseudoClasses||this._pseudoElements||this._parentSelectors||this._childSelectors||this._brotherSelectors||this._wrapProperties||this._wrapSelectors||this._wrapRules)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAtrule",{get:function(){return!(this.atRules===void 0||this.atRules.length===0)},enumerable:!1,configurable:!0}),t.generate=function(o,r,e){e||(e=o!=null&&o.startsWith("@")?new t().atRule(o):new t(o));for(var n=[],a=function(u,f){var m=f;if(Array.isArray(m)&&m.every(function(S){return typeof S=="object"})&&(m=Object.assign.apply(Object,__spreadArray([{}],m,!1))),typeof m=="string")e.add(new Property(camelToDash(u),m));else if(Array.isArray(m))m.map(function(S){return e==null?void 0:e.add(new Property(camelToDash(u),S))});else{var b=deepCopy(e);b.property=[];var y=void 0;if(u.startsWith("@"))y=b.atRule(u,!1);else if(b.selector===void 0)b.selector=u,y=b;else if(/^[a-z]+$/.test(u)&&!isTagName(u))b.wrapProperty(function(S){return"".concat(u,"-").concat(S)}),y=b;else{var _=function(S,C){return(/&/.test(C)?C:"& ".concat(C)).replace("&",S)};b.wrapSelector(function(S){return S.trim().split(/\s*,\s*/g).map(function(C){return u.split(/\s*,\s*/g).map(function(T){return _(C,T)}).join(", ")}).join(", ")}),y=b}n=n.concat(t.generate(u.startsWith("@")?void 0:u,m,y))}},i=0,s=Object.entries(r??{});i<s.length;i++){var l=s[i],d=l[0],c=l[1];a(d,c)}return e.property.length>0&&n.unshift(e),n},t.prototype.atRule=function(o,r){return r===void 0&&(r=!0),o?(this.atRules?r?this.atRules.push(o):this.atRules.unshift(o):this.atRules=[o],this):this},t.prototype.pseudoClass=function(o){return this._pseudoClasses?this._pseudoClasses.push(o):this._pseudoClasses=[o],this},t.prototype.pseudoElement=function(o){return this._pseudoElements?this._pseudoElements.push(o):this._pseudoElements=[o],this},t.prototype.brother=function(o){return this._brotherSelectors?this._brotherSelectors.push(o):this._brotherSelectors=[o],this},t.prototype.parent=function(o){return this._parentSelectors?this._parentSelectors.push(o):this._parentSelectors=[o],this},t.prototype.child=function(o){return this._childSelectors?this._childSelectors.push(o):this._childSelectors=[o],this},t.prototype.wrapProperty=function(o){return this._wrapProperties?this._wrapProperties.push(o):this._wrapProperties=[o],this},t.prototype.wrapSelector=function(o){return this._wrapSelectors?this._wrapSelectors.push(o):this._wrapSelectors=[o],this},t.prototype.wrapRule=function(o){return this._wrapRules?this._wrapRules.push(o):this._wrapRules=[o],this},t.prototype.add=function(o){return o=toArray(o),this.important&&o.forEach(function(r){return r.important=!0}),this.property=__spreadArray(__spreadArray([],this.property,!0),o,!0),this},t.prototype.extend=function(o,r,e){if(r===void 0&&(r=!1),e===void 0&&(e=!0),!o)return this;if(o.wrapProperties){var n=[];
1166o.property.forEach(function(a){var i,s=new Property(a.name,a.value,a.comment);(i=o.wrapProperties)===null||i===void 0||i.forEach(function(l){s.name=Array.isArray(s.name)?s.name.map(function(d){return l(d)}):l(s.name)}),o.important&&(s.important=!0),n.push(s)}),this.property=connectList(this.property,n,e)}else o.important&&o.property.forEach(function(a){return a.important=!0}),this.property=connectList(this.property,o.property,e);return r?this:(o.selector&&(this.selector=o.selector),this.meta=o.meta,o.atRules&&(this.atRules=connectList(o.atRules,this.atRules,e)),o._brotherSelectors&&(this._brotherSelectors=connectList(this._brotherSelectors,o._brotherSelectors,e)),o._childSelectors&&(this._childSelectors=connectList(this._childSelectors,o._childSelectors,e)),o._parentSelectors&&(this._parentSelectors=connectList(this._parentSelectors,o._parentSelectors,e)),o._pseudoClasses&&(this._pseudoClasses=connectList(this._pseudoClasses,o._pseudoClasses,e)),o._pseudoElements&&(this._pseudoElements=connectList(this._pseudoElements,o._pseudoElements,e)),o._wrapRules&&(this._wrapRules=connectList(this._wrapRules,o._wrapRules,e)),o._wrapSelectors&&(this._wrapSelectors=connectList(this._wrapSelectors,o._wrapSelectors,e)),this)},t.prototype.clean=function(){var o=[],r=[];return this.property.forEach(function(e){var n=e.build();r.includes(n)||(r.push(n),o.push(e))}),this.property=o,this},t.prototype.flat=function(){var o=[];return this.property.forEach(function(r){Array.isArray(r.name)?r.name.forEach(function(e){o.push(new Property(e,r.value,r.comment))}):o.push(r)}),this.property=o,this},t.prototype.clone=function(o,r){var e=deepCopy(this);return o&&(e.selector=o),r&&(e.property=Array.isArray(r)?r:[r]),e},t.prototype.sort=function(){return this.property=this.property.sort(function(o,r){return"".concat(o.name).substring(0,2)>"".concat(r.name).substring(0,2)?1:-1}),this},t.prototype.build=function(o,r){var e=this;o===void 0&&(o=!1),r===void 0&&(r=!0);var n=this.property;r||(n=n.filter(function(d){return d.value&&/-(webkit|ms|moz|o)-/.test(d.value)?!1:Array.isArray(d.name)?(d.name=d.name.filter(function(c){return!/^-(webkit|ms|moz|o)-/.test(c)}),!0):!/^-(webkit|ms|moz|o)-/.test(d.name)}));var a=n.map(function(d){if(e._wrapProperties){var c=d.name;return e._wrapProperties.forEach(function(u){return c=Array.isArray(c)?c.map(function(f){return u(f)}):u(c)}),new Property(c,d.value,d.comment,e.important?!0:d.important).build(o)}return e.important?new Property(d.name,d.value,d.comment,!0).build(o):d.build(o)}).join(o?"":`
1167`);if(!this.selector&&!this.atRules)return a.replace(/;}/g,"}");if(this.selector&&(a=(o?this.rule.replace(/,\s/g,","):this.rule+" ")+wrapit(a,void 0,void 0,void 0,a!==""?o:!0)),this.atRules)for(var i=0,s=this.atRules;i<s.length;i++){var l=s[i];a=o?"".concat(l.replace(/\s/g,"")).concat(wrapit(a,void 0,void 0,void 0,o)):"".concat(l," ").concat(wrapit(a,void 0,void 0,void 0,a!==""?o:!0))}return o?a.replace(/;}/g,"}"):a},t.prototype.updateMeta=function(o,r,e,n,a,i){return n===void 0&&(n=0),a===void 0&&(a=!1),i===void 0&&(i=!1),this.meta={type:o,group:r,order:e,offset:n,corePlugin:a,respectSelector:i},this},t}();(function(t){__extends(o,t);function o(r,e,n){return t.call(this,r,e,n)||this}return o})(Style);(function(t){__extends(o,t);function o(r,e,n){return t.call(this,r,e,n)||this}return o.generate=function(r,e,n,a){a===void 0&&(a=!0);for(var i=[],s=[],l=0,d=Object.entries(e);l<d.length;l++){for(var c=d[l],u=c[0],f=c[1],m=new o(u).atRule("@keyframes ".concat(r)),b=new o(u).atRule("@-webkit-keyframes ".concat(r)),y=0,_=Object.entries(f);y<_.length;y++){var S=_[y],C=S[0],T=S[1],x=C;C==="transform"?x=a?["-webkit-transform","transform"]:"transform":["animationTimingFunction","animation-timing-function"].includes(C)&&(x=a?["-webkit-animation-timing-function","animation-timing-function"]:"animation-timing-function"),m.add(new Property(x,T)),b.add(new Property(x,T))}i.push(m),a&&s.push(b)}return __spreadArray(__spreadArray([],i,!0),s,!0)},o})(Style);(function(t){__extends(o,t);function o(r,e,n){return t.call(this,r,e,n)||this}return o})(Style);var colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
1167ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},simpleSwizzle={exports:{}},isArrayish$1=function t(o){return!o||typeof o=="string"?!1:o instanceof Array||Array.isArray(o)||o.length>=0&&(o.splice instanceof Function||Object.getOwnPropertyDescriptor(o,o.length-1)&&o.constructor.name!=="String")},isArrayish=isArrayish$1,concat=Array.prototype.concat,slice=Array.prototype.slice,swizzle$1=simpleSwizzle.exports=function t(o){for(var r=[],e=0,n=o.length;e<n;e++){var a=o[e];isArrayish(a)?r=concat.call(r,slice.call(a)):r.push(a)}return r};swizzle$1.wrap=function(t){return function(){return t(swizzle$1(arguments))}};var colorNames=colorName,swizzle=simpleSwizzle.exports,hasOwnProperty=Object.hasOwnProperty,reverseNames={};for(var name in colorNames)hasOwnProperty.call(colorNames,name)&&(reverseNames[colorNames[name]]=name);var cs={to:{},get:{}};cs.get=function(t){var o=t.substring(0,3).toLowerCase(),r,e;switch(o){case"hsl":r=cs.get.hsl(t),e="hsl";break;case"hwb":r=cs.get.hwb(t),e="hwb";break;default:r=cs.get.rgb(t),e="rgb";break}return r?{model:e,value:r}:null};cs.get.rgb=function(t){if(!t)return null;var o=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,e=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,n=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,i=[0,0,0,1],s,l,d;if(s=t.match(r)){for(d=s[2],s=s[1],l=0;l<3;l++){var c=l*2;i[l]=parseInt(s.slice(c,c+2),16)}d&&(i[3]=parseInt(d,16)/255)}else if(s=t.match(o)){for(s=s[1],d=s[3],l=0;l<3;l++)i[l]=parseInt(s[l]+s[l],16);d&&(i[3]=parseInt(d+d,16)/255)}else if(s=t.match(e)){for(l=0;l<3;
1167l++)i[l]=parseInt(s[l+1],0);s[4]&&(s[5]?i[3]=parseFloat(s[4])*.01:i[3]=parseFloat(s[4]))}else if(s=t.match(n)){for(l=0;l<3;l++)i[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?i[3]=parseFloat(s[4])*.01:i[3]=parseFloat(s[4]))}else return(s=t.match(a))?s[1]==="transparent"?[0,0,0,0]:hasOwnProperty.call(colorNames,s[1])?(i=colorNames[s[1]],i[3]=1,i):null:null;for(l=0;l<3;l++)i[l]=clamp(i[l],0,255);return i[3]=clamp(i[3],0,1),i};cs.get.hsl=function(t){if(!t)return null;var o=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(o);if(r){var e=parseFloat(r[4]),n=(parseFloat(r[1])%360+360)%360,a=clamp(parseFloat(r[2]),0,100),i=clamp(parseFloat(r[3]),0,100),s=clamp(isNaN(e)?1:e,0,1);return[n,a,i,s]}return null};cs.get.hwb=function(t){if(!t)return null;var o=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(o);if(r){var e=parseFloat(r[4]),n=(parseFloat(r[1])%360+360)%360,a=clamp(parseFloat(r[2]),0,100),i=clamp(parseFloat(r[3]),0,100),s=clamp(isNaN(e)?1:e,0,1);return[n,a,i,s]}return null};cs.to.hex=function(){var t=swizzle(arguments);return"#"+hexDouble(t[0])+hexDouble(t[1])+hexDouble(t[2])+(t[3]<1?hexDouble(Math.round(t[3]*255)):"")};cs.to.rgb=function(){var t=swizzle(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};cs.to.rgb.percent=function(){var t=swizzle(arguments),o=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),e=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+o+"%, "+r+"%, "+e+"%)":"rgba("+o+"%, "+r+"%, "+e+"%, "+t[3]+")"};cs.to.hsl=function(){var t=swizzle(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};cs.to.hwb=function(){var t=swizzle(arguments),o="";return t.length>=4&&t[3]!==1&&(o=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+o+")"};cs.to.keyword=function(t){return reverseNames[t.slice(0,3)]};function clamp(t,o,r){return Math.min(Math.max(o,t),r)}function hexDouble(t){var o=Math.round(t).toString(16).toUpperCase();return o.length<2?"0"+o:o}const __default__$20={name:"DesktopLevelTwo",inheritAttrs:!1},_sfc_main$21=Object.assign(__default__$20,{props:{isVisible:{type:Boolean,default:!1},closeMenuCTALabel:{type:String,default:""}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(e.isVisible);watch(()=>e.isVisible,c=>{a.value=c}),watch(a,c=>{n("update:isVisible",c)}),useDisableScroll(a);const i=()=>{a.value=!1},s=c=>{a.value=!1},l=ref$1(null);onClickOutside(l,c=>{a.value=!1});const d={props:e,emit:n,internalVisible:a,hideOverlay:i,handleRootBlurredWithin:s,rootEl:l,get useDisableScroll(){return useDisableScroll},get onClickOutside(){return onClickOutside},get isMobileViewport(){return isMobileViewport},get type(){return type}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),_hoisted_1$2w={class:"generic-container py-10 relative"},_hoisted_2$1T={class:"font-semibold pr-2"};function _sfc_render$21(t,o,r,e,n,a){const i=__unplugin_components_0$i,s=resolveComponent("AppHyperlink"),l=resolveDirective("focus-within");return openBlock(),createElementBlock(Fragment,null,[(openBlock(),createBlock(Teleport,{to:"body"},[o[1]||(o[1]=createBaseVNode("div",{class:"generic-backdrop"},null,-1))])),r.isVisible?withDirectives((openBlock(),createElementBlock("div",mergeProps({key:0,ref:"rootEl",class:["DesktopLevelTwo overflow-hidden",e.props.isVisible?"bg-whiteNew":"bg-white"]},t.$attrs,{tabindex:"-1",onKeydownCapture:withKeys(e.hideOverlay,["esc"]),onBlurWithin:e.handleRootBlurredWithin,onVnodeMounted:o[0]||(o[0]=(...d)=>t.handleRootMounted&&t.handleRootMounted(...d))}),[createBaseVNode("div",_hoisted_1$2w,[e.props.closeMenuCTALabel?(openBlock(),createBlock(s,{key:0,href:"#",class:"absolute right-4",onClick:e.hideOverlay},{default:withCtx(()=>[createBaseVNode("span",_hoisted_2$1T,toDisplayString(e.props.closeMenuCTALabel),
11671),createVNode(i,{class:"w-2.5 inline-block fill-current mt-[3px]"})]),_:1})):createCommentVNode("",!0),renderSlot(t.$slots,"default",{},void 0,!0)])],16)),[[l]]):createCommentVNode("",!0)],64)}const DesktopLevelTwo=_export_sfc(_sfc_main$21,[["render",_sfc_render$21],["__scopeId","data-v-9df1bf22"],["__file","DesktopLevelTwo.vue"]]),__default__$1$={name:"DesktopCountrySelector",inheritAttrs:!1},_sfc_main$20=Object.assign(__default__$1$,{props:{isVisible:{type:Boolean,default:!1},selectedCountryLabelDesktop:{type:String,default:""},allCountriesLabelDesktop:{type:String,default:""},allCountriesAndLanguages:{type:Array,default:()=>[]},selectedCountryAndLanguage:{type:Object,default:()=>({})},countryLanguageRedirectBaseUrl:{type:String,default:""},closeMenuCTALabel:{type:String,default:""}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(e.isVisible);watch(()=>e.isVisible,m=>{a.value=m}),watch(a,m=>{n("update:isVisible",m)}),useDisableScroll(a);const i=()=>{a.value=!1},s=ref$1(null),l=m=>{a.value=!1},d=(m,b)=>{setCountryAndLocaleCookie({country:m,language:b})};onClickOutside(s,m=>{a.value=!1});const c=({country:m,lang:b}={})=>{const y=window.location.pathname;return`${e.countryLanguageRedirectBaseUrl}?country=${m}&lang=${b}&path=${y}`},u=window.siteName,f={props:e,emit:n,internalVisible:a,hideOverlay:i,rootEl:s,handleRootBlurredWithin:l,handleLanguageLinkClick:d,getRedirectLink:c,siteName:u,get useDisableScroll(){return useDisableScroll},get onClickOutside(){return onClickOutside},get setCountryAndLocaleCookie(){return setCountryAndLocaleCookie}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),_hoisted_1$2v=["data-use-theme"],_hoisted_2$1S={class:"generic-container py-8 relative"},_hoisted_3$1r={class:"font-semibold pr-2"},_hoisted_4$1i={class:"grid grid-cols-5 auto-rows-min items-start gap-x-4 xl:gap-x-1 gap-y-8 font-semibold leading-5"},_hoisted_5$1c={class:"grid items-start row-span-2 gap-y-6 rows-subgrid"},_hoisted_6$18={class:"typo-category-title"},_hoisted_7$16={class:"grid grid-rows-2 gap-3 font-normal"},_hoisted_8$12={class:"text-base leading-5"},_hoisted_9$Y={class:"flex items-start"},_hoisted_10$O={key:0,class:"dot mx-2"},_hoisted_11$L={class:"col-span-4 grid items-start row-span-2 gap-y-6 rows-subgrid"},_hoisted_12$J={class:"typo-category-title"},_hoisted_13$F={class:"grid grid-cols-4 gap-x-8 lg:gap-x-4 font-normal"},_hoisted_14$E={class:"text-base leading-5 pb-3",style:{}},_hoisted_15$C={class:"flex items-start"},_hoisted_16$y={key:0,class:"dot mx-2"};function _sfc_render$20(t,o,r,e,n,a){const i=__unplugin_components_0$i,s=resolveComponent("AppHyperlink"),l=resolveDirective("focus-within");return openBlock(),createElementBlock(Fragment,null,[o[1]||(o[1]=createBaseVNode("div",{class:"DesktopCountrySelector"},null,-1)),(openBlock(),createBlock(Teleport,{to:"body"},[o[0]||(o[0]=createBaseVNode("div",{class:"generic-backdrop"},null,-1))])),r.isVisible?withDirectives((openBlock(),createElementBlock("div",mergeProps({key:0,ref:"rootEl",class:"DesktopCountrySelector bg-white overflow-hidden transform"},t.$attrs,{tabindex:"-1","data-use-theme":e.siteName,onKeydownCapture:withKeys(e.hideOverlay,["esc"]),onBlurWithin:e.handleRootBlurredWithin}),[createBaseVNode("div",_hoisted_2$1S,[e.props.closeMenuCTALabel?(openBlock(),createBlock(s,{key:0,href:"#",class:"absolute right-4",onClick:e.hideOverlay},{default:withCtx(()=>[createBaseVNode("span",_hoisted_3$1r,toDisplayString(e.props.closeMenuCTALabel),1),createVNode(i,{class:"w-2.5 inline-block fill-current mt-[3px]"})]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$1i,[createBaseVNode("div",_hoisted_5$1c,[createBaseVNode("div",_hoisted_6$18,toDisplayString(e.props.selectedCountryLabelDesktop),1),createBaseVNode("div",_hoisted_7$16,[createBaseVNode("div",_hoisted_8$12,toDisplayString(e.props.selectedCountryAndLanguage.country),1),createBaseVNode("div",_hoisted_9$Y,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.selectedCountryAndLanguage.languages,(d,c)=>(openBlock(),createElementBlock(Fragment,{key:c},[createVNode(s,{href:e.getRedirectLink({country:d.countryCode,lang:d.language}),class:"link","aria-label":`${e.props.selectedCountryAndLanguage.country} ${d.languageTitle}`,forceATag:!0,addHtmlExtension:!1,onClick:u=>e.handleLanguageLinkClick(d.countryCode,d.language)},{default:withCtx(()=>[createTextVNode(toDisplayString(d.languageTitle),1)]),_:2},1032,["href","aria-label","onClick"]),e.props.selectedCountryAndLanguage.languages.length-1!==c?(openBlock(),createElementBlock("span",_hoisted_10$O,"•")):createCommentVNode("",!0)],64))),128))])])]),createBaseVNode("div",_hoisted_11$L,[createBaseVNode("div",_hoisted_12$J,toDisplayString(e.props.allC
1167ountriesLabelDesktop),1),createBaseVNode("div",_hoisted_13$F,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.allCountriesAndLanguages,(d,c)=>(openBlock(),createElementBlock("div",{key:c,class:"grid row-span-2 rows-subgrid pb-8"},[createBaseVNode("div",_hoisted_14$E,toDisplayString(d.pageTitle),1),createBaseVNode("div",_hoisted_15$C,[(openBlock(!0),createElementBlock(Fragment,null,renderList(d.languages,(u,f)=>(openBlock(),createElementBlock(Fragment,{key:f},[createVNode(s,{href:u.path,class:"link","aria-label":`${d.pageTitle} ${u.languageTitle}`,forceATag:!0,addHtmlExtension:!1,onClick:m=>e.handleLanguageLinkClick(u.countryCode,u.language)},{default:withCtx(()=>[createTextVNode(toDisplayString(u.languageTitle),1)]),_:2},1032,["href","aria-label","onClick"]),d.languages.length-1!==f?(openBlock(),createElementBlock("span",_hoisted_16$y,"•")):createCommentVNode("",!0)],64))),128))])]))),128))])])])])],16,_hoisted_1$2v)),[[l]]):createCommentVNode("",!0)],64)}const DesktopCountrySelector=_export_sfc(_sfc_main$20,[["render",_sfc_render$20],["__scopeId","data-v-a1167265"],["__file","DesktopCountrySelector.vue"]]),__default__$1_={name:"LoginMenu",inheritAttrs:!1},_sfc_main$1$=Object.assign(__default__$1_,{props:{isVisible:{type:Boolean,default:!1},preLoginItems:{type:Array,default:()=>[]},alternateRedirectLoginUrl:{type:String,default:""},preLoginMenuLabel:{type:String,default:"Log in/Sign up with"},isHideMobileSearch:{type:Boolean,default:!1},myAccountLabel:{type:String,default:""},myAccount:{type:Array,default:()=>[]},mhExplorerLabel:{type:String,default:""},mhExplorerPreloginUrl:{type:String,default:""},mhExplorerPostloginUrl:{type:String,default:""},mhExplorerExternalIcon:{type:Boolean,default:!1},mhExplorerOpenInNewTab:{type:Boolean,default:!1},mhbizProLabel:{type:String,default:""},mhbizProUrl:{type:String,default:""},mhbizProExternalIcon:{type:Boolean,default:!1},mhbizProOpenInNewTab:{type:Boolean,default:!1},enrichBizConnectLabel:{type:String,default:""},enrichBizConnectUrl:{type:String,default:""},enrichBizConnectExternalIcon:{type:Boolean,default:!1},enrichBizConnectOpenInNewTab:{type:Boolean,default:!1},logOutLabel:{type:String,default:"Logout"},exploreMoreLabel:{type:String,default:"EXPLORE MORE"},componentIdAA:{type:String,default:""},isSsoVerificationDone:{type:Boolean,default:!1},logoImgSrcBlue:{type:String,default:""},enableHeaderRafiGlassDesign:{type:Boolean,default:!1}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const{isRTL:e}=useIsRTL(),n=t,a=r,{deleteLocalStorage:i}=usePersistencyWithExpiry("userInfo",{}),s=ref$1(n.isVisible);watch(()=>n.isVisible,x=>{s.value=x}),watch(s,x=>{a("update:isVisible",x)}),useDisableScroll(s);const l=()=>{s.value=!1},d=x=>{s.value=!1},c=ref$1(null);onClickOutside(c,x=>{s.value=!1});const{isLoggedIn:u,userInfo:f,logout:m}=useAuthStore(),b=useEventBus("booking-widget:enrich-points-toggle-switch"),y=useEventBus("booking-widget:mhe-flight-search"),_=useEventBus("clearCrossDomainCookies"),S=x=>{m(),i("userInfo"),b.emit("update-toggle-switch","logout"),y.emit("user-logout-action","logout"),_.emit("user-logout-action-sso"),a("update:isVisible",!1)},C=window.siteName,T={isRTL:e,props:n,emit:a,deleteLocalStorage:i,internalVisible:s,hideOverlay:l,handleRootBlurredWithin:d,rootEl:c,isLoggedIn:u,userInfo:f,logout:m,globalBookFlightBus:b,MHEFlightSearchBus:y,crossDomainBus:_,handleLogout:S,siteName:C,OverlayDrawer,MobileDrawerHeader,get useDisableScroll(){return useDisableScroll},get onClickOutside(){return onClickOutside},get useEventBus(){return useEventBus},get isMobileViewport(){return isMobileViewport},CTAButton,FontAwesomeLazy,AppHyperlink,get useAuthStore(){return useAuthStore},get useIsRTL(){return useIsRTL},get usePersistencyWithExpiry(){return usePersistencyWithExpiry}};return Object.defineProperty(T,"__isScriptSetup",{enumerable:!1,value:!0}),T}}),_hoisted_1$2u={key:0,class:"px-6 pt-4 pb-6"},_hoisted_2$1R={class:"typo-category-title"},_hoisted_3$1q={class:"flex mt-4 gap-y-4 flex-col"},_hoisted_4$1h={class:"menu-item-title flex gap-3 pb-2"},_hoisted_5$1b={class:"menu-item-description typo-body-text-2 basis-full"},_hoisted_6$17={class:"login-grid items-center mb-8"},_hoisted_7$15={class:"login-avatar bg-neutral-grey-ultradark text-neutral-grey-base"}
1167,_hoisted_8$11={class:"login-details mb-2 font-bold"},_hoisted_9$X={class:"login-details mb-2 text-sm"},_hoisted_10$N={class:"login-details"},_hoisted_11$K={class:"font-bold test-bold"},_hoisted_12$I={class:"login-my-account mb-6"},_hoisted_13$E={class:"mb-5 text-xs font-bold text-neutral-grey-extradark"},_hoisted_14$D={class:"mt-6 flex flex-col"},_hoisted_15$B={class:"mb-6 text-xs font-bold text-neutral-grey-extradark"},_hoisted_16$x=["data-use-theme"],_hoisted_17$u={class:"login-dropdown-container p-8"},_hoisted_18$r={key:0},_hoisted_19$o={class:"typo-category-title"},_hoisted_20$n={class:"menu-item-title flex gap-3 pb-2"},_hoisted_21$n={class:"menu-item-description typo-body-text-2 basis-full"},_hoisted_22$m={key:1},_hoisted_23$j={class:"login-grid items-center mb-8"},_hoisted_24$i={class:"login-avatar bg-secondary-blue-ultralight text-primary-blue-dark"},_hoisted_25$h={class:"login-details mb-2 font-bold"},_hoisted_26$h={class:"login-details mb-2 text-sm"},_hoisted_27$g={class:"login-details"},_hoisted_28$f={class:"font-bold"},_hoisted_29$f={class:"login-my-account mb-6"},_hoisted_30$f={class:"mb-5 text-xs font-bold text-neutral-grey-extradark"},_hoisted_31$f={class:"mt-6 flex flex-col"},_hoisted_32$f={class:"mb-6 text-xs font-bold text-neutral-grey-extradark"};function _sfc_render$1$(t,o,r,e,n,a){var c,u,f;const i=__unplugin_components_1$e,s=__unplugin_components_0$l,l=resolveDirective("aa"),d=resolveDirective("focus-within");return e.isMobileViewport?(openBlock(),createBlock(e.OverlayDrawer,{key:0,isVisible:e.props.isVisible,class:"text-white",style:normalizeStyle(`--overlay-container-bg-color: ${e.props.enableHeaderRafiGlassDesign?"#FAFBFC":"var(--secondary-blue-extradark)"};`),"data-use-theme":e.siteName,"onUpdate:isVisible":o[1]||(o[1]=m=>t.$emit("update:isVisible",m))},{default:withCtx(()=>{var m,b,y;return[createBaseVNode("div",{class:normalizeClass(["overflow-y-auto","max-h-screen",e.props.enableHeaderRafiGlassDesign?"loginPageNew":""])},[createVNode(e.MobileDrawerHeader,{logoImgSrcBlue:e.props.logoImgSrcBlue,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,drawerIsHideMobileSearch:e.props.isHideMobileSearch,class:"sticky top-0 bg-secondary-blue-extradark","onClick:headerX":o[0]||(o[0]=_=>e.internalVisible=!1)},null,8,["logoImgSrcBlue","enableHeaderRafiGlassDesign","drawerIsHideMobileSearch"]),e.isLoggedIn?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["px-6","pt-4","pb-6",e.props.enableHeaderRafiGlassDesign?"login-gridNew":""])},[createBaseVNode("div",_hoisted_6$17,[createBaseVNode("div",_hoisted_7$15,toDisplayString((m=e.userInfo.lastName)==null?void 0:m.charAt(0))+toDisplayString((b=e.userInfo.firstName)==null?void 0:b.charAt(0)),1),createBaseVNode("div",_hoisted_8$11,toDisplayString(e.userInfo.lastName)+" "+toDisplayString(e.userInfo.firstName),1),createBaseVNode("div",_hoisted_9$X,toDisplayString(e.userInfo.userTierLabel),1),createBaseVNode("div",_hoisted_10$N,[createBaseVNode("span",_hoisted_11$K,toDisplayString((y=e.userInfo.freqMilesPoint)==null?void 0:y.replace(/\B(?=(\d{3})+(?!\d))/g,",")),1),o[2]||(o[2]=createTextVNode()),o[3]||(o[3]=createBaseVNode("span",{class:"text-sm"},"Enrich Points",-1))])]),createBaseVNode("div",_hoisted_12$I,[createBaseVNode("div",_hoisted_13$E,toDisplayString(e.props.myAccountLabel),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.myAccount,(_,S)=>(openBlock(),createElementBlock("div",{key:S,class:"mb-4 flex items-center"},[withDirectives((openBlock(),createBlock(e.AppHyperlink,{style:{"--a-tag-color-hover":"var(--primary-blue-light)"},class:"text-neutral-white-base flex items-center",href:_.ctaUrl},{default:withCtx(()=>[createVNode(e.FontAwesomeLazy,{iconId:_.iconFontAwesomeId,iconStyle:"regular",class:"account-icon w-6 h-6 mr-2 rtl:ml-2 rtl:mr-0 fill-current"},null,8,["iconId"]),createBaseVNode("span",{class:normalizeClass(e.props.enableHeaderRafiGlassDesign?"itemctaText":"")},toDisplayString(_.ctaText),3),e.props.enableHeaderRafiGlassDesign?(openBlock(),createBlock(s,{key:0,class:"ml-2 rtl:mr-2 fill-current hover:fill-current transition-transform ease-in-out transform rtl:-rotate-180 group-hover:-translate-x-0.5"})):createCommentVNode("",!0)]),_:2},1032,["href"])),[[l,[{clickName:_.ctaText,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:_.ctaText,type:"other"}]]])]))),128)),withDirectives(createVNode(e.CTAButton,{ctaText:e.props.logOutLabel,styleType:"secondary",sizeType:"small",iconType:"icon-font-awesome-id",iconIdLeft:"arrow-right-from-bracket",iconStyleLeft:"regular",alignmentMobile:e.isRTL?"right":"left",onClick:e.handleLogout},null,8,["ctaText","alignmentMobile"]),[[l,[{clickName:e.props.logOutLabel,clickComponentType:"Button",componentName:"LoginMenu",componentID:e.props.componentIdAA,isUserLogout:!0},{name:e.props.logOutLabel,type:"other"}]]])]),!e.props.enableHeaderRafiGlassDesign&&(e.props.mhExplorerPostloginUrl||e.props.enrichBizConnectUrl||e.props.mhbizProUrl)?(openBlock(),createElementBlock(Fragment,{key:0},[o[4]||(o[4]=createBaseVNode("hr",{class:"bg-neutral-grey-ultradark"},null,-1)),createBaseVNode("div",_hoisted_14$D,[createBaseVNode("div",_hoisted_15$B,toDisplayString(e.props.exploreMoreLabel),
11671),e.props.mhExplorerPostloginUrl?withDirectives((openBlock(),createBlock(e.AppHyperlink,{key:0,class:"mb-5",style:{"--a-tag-color":"var(--neutral-white-base)"},href:e.props.mhExplorerPostloginUrl,target:e.props.mhExplorerOpenInNewTab?"_blank":"_self",showExternalLinkIcon:e.props.mhExplorerExternalIcon},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.mhExplorerLabel),1)]),_:1},8,["href","target","showExternalLinkIcon"])),[[l,[{clickName:e.props.mhExplorerLabel,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:e.props.mhExplorerLabel,type:e.props.mhExplorerExternalIcon?"exit":"other"}]]]):createCommentVNode("",!0),e.props.enrichBizConnectUrl?withDirectives((openBlock(),createBlock(e.AppHyperlink,{key:1,class:"mb-5",style:{"--a-tag-color":"var(--neutral-white-base)"},href:e.props.enrichBizConnectUrl,target:e.props.enrichBizConnectOpenInNewTab?"_blank":"_self",showExternalLinkIcon:e.props.enrichBizConnectExternalIcon},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.enrichBizConnectLabel),1)]),_:1},8,["href","target","showExternalLinkIcon"])),[[l,[{clickName:e.props.enrichBizConnectLabel,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:e.props.enrichBizConnectLabel,type:e.props.enrichBizConnectExternalIcon?"exit":"other"}]]]):createCommentVNode("",!0),e.props.mhbizProUrl?withDirectives((openBlock(),createBlock(e.AppHyperlink,{key:2,class:"mb-5",style:{"--a-tag-color":"var(--neutral-white-base)"},href:e.props.mhbizProUrl,target:e.props.mhbizProOpenInNewTab?"_blank":"_self",showExternalLinkIcon:e.props.mhbizProExternalIcon},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.mhbizProLabel),1)]),_:1},8,["href","target","showExternalLinkIcon"])),[[l,[{clickName:e.props.mhbizProLabel,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:e.props.mhbizProLabel,type:e.props.mhbizProExternalIcon?"exit":"other"}]]]):createCommentVNode("",!0)])],64)):createCommentVNode("",!0)],2)):(openBlock(),createElementBlock("div",_hoisted_1$2u,[createBaseVNode("div",_hoisted_2$1R,toDisplayString(e.props.preLoginMenuLabel),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.preLoginItems,(_,S)=>(openBlock(),createElementBlock("div",{key:`prelogin-mobile-${S}`,class:normalizeClass([(_.loginOptionTitle==="Enrich"||_.loginOptionTitle==="MHexplorer")&&!e.props.isSsoVerificationDone?"partial-skeleton-loader border-2 border-neutral-grey-light rounded-xl":""])},[createBaseVNode("div",_hoisted_3$1q,[withDirectives((openBlock(),createBlock(e.AppHyperlink,{class:normalizeClass(["block","border-2","border-neutral-grey-light","rounded-xl","p-4","bg-primary-blue-dark","text-neutral-white-base",e.props.enableHeaderRafiGlassDesign?"text-neutral-white-baseNew":""]),style:{"--a-tag-color-hover":"var(--neutral-white-base)"},href:S===0&&e.props.alternateRedirectLoginUrl?e.props.alternateRedirectLoginUrl:_.loginOptionUrl,target:_.openInNewTabLogin?"_blank":"_self",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("h6",_hoisted_4$1h,[createTextVNode(toDisplayString(_.loginOptionTitle)+" ",1),!e.props.enableHeaderRafiGlassDesign&&!0?(openBlock(),createBlock(i,{key:0,class:"fill-current"})):createCommentVNode("",!0)]),createBaseVNode("p",_hoisted_5$1b,[createBaseVNode("span",null,toDisplayString(_.loginOptionDescription),1),_.loginOptionExternalLink&&e.props.enableHeaderRafiGlassDesign?(openBlock(),createBlock(s,{key:0,class:"fill-current"})):createCommentVNode("",!0)])]),_:2},1032,["class","href","target"])),[[l,[{clickName:_.loginOptionTitle,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:_.loginOptionTitle,type:_.loginOptionExternalLink?"exit":"other"}]]])])],2))),128))]))],2)]}),_:1},8,["isVisible","style","data-use-theme"])):(openBlock(),createElementBlock(Fragment,{key:1},[(openBlock(),createBlock(Teleport,{to:"body"},[o[5]||(o[5]=createBaseVNode("div",{class:"generic-backdrop"},null,-1))])),r.isVisible?withDirectives((openBlock(),createElementBlock("div",mergeProps({key:0,ref:"rootEl",class:"LoginMenu bg-white overflow-hidden transform"},t.$attrs,{tabindex:"-1","data-use-theme":e.siteName,onKeydownCapture:withKeys(e.hideOverlay,["esc"]),onBlurWithin:e.handleRootBlurredWithin}),[createBaseVNode("div",_hoisted_17$u,[e.isLoggedIn?(openBlock(),createElementBlock("div",_hoisted_22$m,[createBaseVNode("div",_hoisted_23$j,[createBaseVNode("div",_hoisted_24$i,toDisplayString((c=e.userInfo.lastName)==null?void 0:c.charAt(0))+toDisplayString((u=e.userInfo.firstName)==null?void 0:u.charAt(0)),1),createBaseVNode("div",_hoisted_25$h,toDisplayString(e.userInfo.lastName)+" "+toDisplayString(e.userInfo.firstName),1),createBaseVNode("div",_hoisted_26$h,toDisplayString(e.userInfo.userTierLabel),1),createBaseVNode("div",_hoisted_27$g,[createBaseVNode("span",_hoisted_28$f,toDisplayString((f=e.userInfo.freqMilesPoint)==null?void 0:f.replace(/\B(?=(\d{3})+(?!\d))/g,",")),1),o[6]||(o[6]=createTextVNode()),o[7]||(o[7]=createBaseVNode("span",{class:"text-sm"},"Enrich Points",-1))])]),createBaseVNode("div",_hoisted_29$f,[createBaseVNode("div",_hoisted_30$f,toDisplayString(e.props.myAccountLabel),
11671),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.myAccount,(m,b)=>(openBlock(),createElementBlock("div",{key:b,class:"mb-4 flex items-center"},[withDirectives((openBlock(),createBlock(e.AppHyperlink,{style:{"--a-tag-color-hover":"var(--primary-blue-light)"},href:m.ctaUrl},{default:withCtx(()=>[createVNode(e.FontAwesomeLazy,{iconId:m.iconFontAwesomeId,iconStyle:"regular",class:"account-icon w-6 h-6 mr-2 rtl:ml-2 rtl:mr-0 fill-current"},null,8,["iconId"]),createBaseVNode("span",null,toDisplayString(m.ctaText),1)]),_:2},1032,["href"])),[[l,[{clickName:m.ctaText,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:m.ctaText,type:"other"}]]])]))),128)),withDirectives(createVNode(e.CTAButton,{ctaText:e.props.logOutLabel,styleType:"secondary",sizeType:"small",iconType:"icon-font-awesome-id",iconIdLeft:"arrow-right-from-bracket",iconStyleLeft:"regular",alignmentDesktop:e.isRTL?"right":"left",onClick:e.handleLogout},null,8,["ctaText","alignmentDesktop"]),[[l,[{clickName:e.props.logOutLabel,clickComponentType:"Button",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:e.props.logOutLabel,type:"other"}]]])]),e.props.mhExplorerPostloginUrl||e.props.enrichBizConnectUrl||e.props.mhbizProUrl?(openBlock(),createElementBlock(Fragment,{key:0},[o[8]||(o[8]=createBaseVNode("hr",null,null,-1)),createBaseVNode("div",_hoisted_31$f,[createBaseVNode("div",_hoisted_32$f,toDisplayString(e.props.exploreMoreLabel),1),e.props.mhExplorerPostloginUrl?withDirectives((openBlock(),createBlock(e.AppHyperlink,{key:0,class:"mb-5",style:{"--a-tag-color-hover":"var(--primary-blue-light)"},href:e.props.mhExplorerPostloginUrl,target:e.props.mhExplorerOpenInNewTab?"_blank":"_self",showExternalLinkIcon:e.props.mhExplorerExternalIcon},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.mhExplorerLabel),1)]),_:1},8,["href","target","showExternalLinkIcon"])),[[l,[{clickName:e.props.mhExplorerLabel,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:e.props.mhExplorerLabel,type:e.props.mhExplorerExternalIcon?"exit":"other"}]]]):createCommentVNode("",!0),e.props.enrichBizConnectUrl?withDirectives((openBlock(),createBlock(e.AppHyperlink,{key:1,class:"mb-5",style:{"--a-tag-color-hover":"var(--primary-blue-light)"},href:e.props.enrichBizConnectUrl,target:e.props.enrichBizConnectOpenInNewTab?"_blank":"_self",showExternalLinkIcon:e.props.enrichBizConnectExternalIcon},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.enrichBizConnectLabel),1)]),_:1},8,["href","target","showExternalLinkIcon"])),[[l,[{clickName:e.props.enrichBizConnectLabel,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:e.props.enrichBizConnectLabel,type:e.props.enrichBizConnectExternalIcon?"exit":"other"}]]]):createCommentVNode("",!0),e.props.mhbizProUrl?withDirectives((openBlock(),createBlock(e.AppHyperlink,{key:2,class:"mb-5",style:{"--a-tag-color-hover":"var(--primary-blue-light)"},href:e.props.mhbizProUrl,target:e.props.mhbizProOpenInNewTab?"_blank":"_self",showExternalLinkIcon:e.props.mhbizProExternalIcon},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.mhbizProLabel),1)]),_:1},8,["href","target","showExternalLinkIcon"])),[[l,[{clickName:e.props.mhbizProLabel,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:e.props.mhbizProLabel,type:e.props.mhbizProExternalIcon?"exit":"other"}]]]):createCommentVNode("",!0)])],64)):createCommentVNode("",!0)])):(openBlock(),createElementBlock("div",_hoisted_18$r,[createBaseVNode("div",_hoisted_19$o,toDisplayString(e.props.preLoginMenuLabel),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.preLoginItems,(m,b)=>(openBlock(),createElementBlock("div",{key:`prelogin-desktop-${b}`,class:normalizeClass([(m.loginOptionTitle==="Enrich"||m.loginOptionTitle==="MHexplorer")&&!e.props.isSsoVerificationDone?"partial-skeleton-loader border-2 border-neutral-grey-light rounded-xl":""])},[createBaseVNode("div",{class:normalizeClass([[(m.loginOptionTitle==="Enrich"||m.loginOptionTitle==="MHexplorer")&&!e.props.isSsoVerificationDone?"hidden":""],"flex mt-4 gap-y-4 flex-col"])},[withDirectives((openBlock(),createBlock(e.AppHyperlink,{class:"block border-2 border-neutral-grey-light rounded-xl p-4 bg-neutral-grey-ultralight",style:{"--a-tag-color-hover":"var(--primary-blue-light)"},href:b===0&&e.props.alternateRedirectLoginUrl?e.props.alternateRedirectLoginUrl:m.loginOptionUrl,target:m.openInNewTabLogin?"_blank":"_self",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("h6",_hoisted_20$n,[createTextVNode(toDisplayString(m.loginOptionTitle)+" ",1),m.loginOptionExternalLink?(openBlock(),createBlock(i,{key:0,class:"fill-current"})):createCommentVNode("",!0)]),createBaseVNode("p",_hoisted_21$n,toDisplayString(m.loginOptionDescription),1)]),_:2},1032,["href","target"])),[[l,[{clickName:m.loginOptionTitle,clickComponentType:"URL",componentName:"LoginMenu",componentID:e.props.componentIdAA},{name:m.loginOptionTitle,type:"other"}]]])],2)],2))),128))]))])],16,_hoisted_16$x)),[[d]]):createCommentVNode("",!0)],64))}const LoginMenu=_export_sfc(_sfc_main$1$,[["render",_sfc_render$1$],["__scopeId","data-v-ea017aaf"],["__file","LoginMenu.vue"]]),paused=ref$1(!1);let hasInit=!1;const MIN_TRIGGER_THRESHOLD=100,setupScrollMechanism=()=>{const{y:t}=useWindowScroll(),o=a=>{a==="up"?(document.documentElement.style.setProperty("--headerTranslateY","0%"),document.documentElement.style.setProperty("--headerNotificationTranslateY","0%"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","0%"),document.documentElement.classList.remove("scroll-dir-down"),document.documentElement.classList.add("scroll-dir-up")):(document.documentElement.style.setProperty("--headerTranslateY","calc( (100% + (var
1167(--mobileDlAppNotificationHeight) + var(--headerNotificationHeight)) ) * -1 )"),document.documentElement.style.setProperty("--headerNotificationTranslateY","calc( (100% + var(--mobileDlAppNotificationHeight) ) * -1 )"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","-100%"),document.documentElement.classList.remove("scroll-dir-up"),document.documentElement.classList.add("scroll-dir-down"))},r=lodashExports.debounce(o,100,{leading:!0});let e="",n=0;watch(t,a=>{if(window.ignoreNextScrollEvent){window.ignoreNextScrollEvent=!1;return}if(paused.value||n===a)return;const i=n>a?"up":"down";i==="down"&&t.value<=MIN_TRIGGER_THRESHOLD||(e!==i&&r(i),n=a,e=i)})};function useHeaderScroll(){return hasInit||(setupScrollMechanism(),hasInit=!0),{paused}}const useHeaderFooterStore=createGlobalState(()=>reactive({header:{logo1Dark:null,logo1DarkUrl:null,openInNewTabLogo1Dark:null,hideInMobileLogo1:null,logo1DarkAtlText:null,logo2Dark:null,logo2DarkUrl:null,openInNewTabLogo2Dark:null,hideInMobileLogo2:null,logo2DarkAtlText:null},footer:{subsidiaryTab:null,tncTab:null,copyrightTab:null}})),__default__$1Z={name:"SsoCrossDomain",inheritAttrs:!1},_sfc_main$1_=Object.assign(__default__$1Z,{props:{isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},yesBtnLabel:{type:String,default:"Yes"},noBtnLabel:{type:String,default:"No"},iframeSrc:{type:String,default:""},stateParams:{type:String,default:""},iframeTitle:{type:String,default:"sandbox-login"},sureText:{type:String,default:"Are You Sure"},confirmationText:{type:String,default:"Please Confirm"},timerText:{type:String,default:"60"},logoutUrl:{type:String,default:""},logoutStateParams:{type:String,default:""},postLogoutUrl:{type:String,default:""}},emits:["session-event"],setup(t,{expose:o,emit:r}){const e=t,n=r,{isEditorMode:a}=useGlobalAEMState$1(),{deleteLocalStorage:i}=usePersistencyWithExpiry("userInfo",{}),s=ref$1(null),l=ref$1(0),d=ref$1(null),c=ref$1(null),u=ref$1(!1),f=ref$1(!1),m=window.siteName,b="ssoCrossDomain",y="id_token",_="policyCode",S="sapphire",C=()=>{var M,O;if(!e.iframeSrc||!e.stateParams){n("session-event",{type:"noLoginRequired",isFallbackTriggered:!1});return}if((M=s.value)!=null&&M.querySelector(`iframe[title="${e.iframeTitle}"]`))return;const A=document.createElement("iframe");A.src=e.iframeSrc.replace("{state}",e.stateParams),A.title=e.iframeTitle,A.className="hidden",(O=s.value)==null||O.appendChild(A)},T=A=>{var O,R,I,j,H,U,B,L,z,W,J,te,re;if(A.origin!==window.location.origin||f.value||((O=A.data)==null?void 0:O.type)!=="SSO_CALLBACK_PARAMS")return;if(f.value=!0,clearTimeout(F.value),!A&&!(A!=null&&A.data)||(I=(R=A.data)==null?void 0:R.data)!=null&&I.error)return n("session-event",{type:"noLoginRequired",isFallbackTriggered:!1}),!0;c.value=`${(H=(j=A.data)==null?void 0:j.data)==null?void 0:H.firstName} ${(B=(U=A.data)==null?void 0:U.data)==null?void 0:B.lastName}`,u.value=!0;const M=new Date;M.setTime(M.getTime()+30*60*1e3),setCookie(b,"true",M.toUTCString()),setCookie(S,(z=(L=A.data)==null?void 0:L.data)==null?void 0:z.access_token,M.toUTCString()),setCookie(_,(J=(W=A.data)==null?void 0:W.data)==null?void 0:J.policy_code,M.toUTCString()),setCookie(y,(re=(te=A.data)==null?void 0:te.data)==null?void 0:re.id_token,M.toUTCString()),l.value=parseInt(e.timerText,10),d.value=setInterval(()=>{l.value>0?l.value--:(clearInterval(d.value),n("session-event",{type:"continue"}),u.value=!1)},1e3)},x=()=>{C(),window.addEventListener("message",T)},k=()=>{deleteCookie(_),deleteCookie(y),deleteCookie(b)},E=A=>{A==="continue"&&n("session-event",{type:"continue"}),A==="abort"&&(deleteCookie(S),i("userInfo"),n("session-event",{type:"abort"}),N()),u.value=!1},w=computed(()=>{var A;return(A=e.sureText)!=null&&A.trim().endsWith("?")?e.sureText:`${e.sureText}?`}),D=useEventBus("clearCrossDomainCookies");D.on((A,M)=>{A==="user-logout-action-sso"&&N(M)});const N=A=>{if(isMobileViewport.value?!e.isHideInMobile:!e.isHideInDesktop){const O=getCookie(y),R=e.logoutUrl&&e.logoutStateParams&&e.postLogoutUrl;k(),O&&R&&(window.location.href=`${e.logoutUrl}?id_token_hint=${O}&state=${e.logoutStateParams}&post_logout_redirect_uri=${e.postLogoutUrl}`)}else m=="enrich-portal"&&(window.location.href=A==null?void 0:A.logoutUrl)},F=ref$1(null);onMounted(()=>{(isMobileViewport.value?!e.isHideInMobile:!e.isHideInDesktop)&&!getCookie(b)&&!getCookie(S)?(x(),F.value=setTimeout(()=>{console.warn("[SSO] iframe did not respond in time — possible mixed content or JS failure."),n("session-event",{type:"noLoginRequired",isFallbackTriggered:!0})},8e3)):n("session-event",{type:"noLoginRequired",isFallbackTriggered:!1})}),onBeforeUnmount(()=>
1167{clearInterval(d.value),clearTimeout(F),window.removeEventListener("message",T)}),o({clearSsoSessionOnLogout:N});const V={props:e,emit:n,isEditorMode:a,deleteLocalStorage:i,iframeContainer:s,countdown:l,intervalId:d,userName:c,isPopUpVisible:u,hasHandledSSO:f,siteName:m,SSO_CROSS_DOMAIN:b,ID_TOKEN:y,POLICY_CODE:_,SAPPHIRE:S,createIframeIfNotExists:C,handlePostSsoLogin:T,callSandBoxApiAndLoadIframe:x,deleteCrossDomainCookies:k,notifyUserSession:E,sureTextWithQuestion:w,crossDomainBus:D,clearSsoSessionOnLogout:N,iframeTimeout:F,Teleport,CTAButton,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},get getCookie(){return getCookie},get setCookie(){return setCookie},get deleteCookie(){return deleteCookie},get useEventBus(){return useEventBus},get usePersistencyWithExpiry(){return usePersistencyWithExpiry}};return Object.defineProperty(V,"__isScriptSetup",{enumerable:!1,value:!0}),V}}),_hoisted_1$2t={ref:"iframeContainer",class:"iframe-body"},_hoisted_2$1Q={key:0,class:"SsoCrossDomain backdrop"},_hoisted_3$1p={class:"overlay-container"},_hoisted_4$1g={class:"overlay-body px-6 mt-4"},_hoisted_5$1a={class:"author-html-container line-clamp-5"},_hoisted_6$16={class:"mt-2"},_hoisted_7$14={class:"overlay-footer px-6 mt-6 mb-10"},_hoisted_8$10={class:"flex-grow basis-0"},_hoisted_9$W={class:"flex-grow basis-0"};function _sfc_render$1_(t,o,r,e,n,a){const i=resolveDirective("html-sanitize");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$2t,null,512),(openBlock(),createBlock(resolveDynamicComponent(e.isEditorMode?"div":e.Teleport),{to:"body"},{default:withCtx(()=>[createVNode(Transition,{name:"overlay-fade-and-zoom",appear:""},{default:withCtx(()=>[e.isPopUpVisible?(openBlock(),createElementBlock("div",_hoisted_2$1Q,[createBaseVNode("div",_hoisted_3$1p,[createBaseVNode("div",_hoisted_4$1g,[withDirectives(createBaseVNode("div",_hoisted_5$1a,null,512),[[i,e.sureTextWithQuestion]]),createBaseVNode("div",null,toDisplayString(e.userName)+" ?",1),withDirectives(createBaseVNode("div",_hoisted_6$16,null,512),[[i,e.props.confirmationText]])]),createBaseVNode("div",_hoisted_7$14,[createBaseVNode("div",_hoisted_8$10,[createVNode(e.CTAButton,{ctaText:e.props.noBtnLabel,sizeType:"small",ctaSizing:"fluid",styleType:"secondary",containerClass:"flex-grow basis-0",onClick:o[0]||(o[0]=s=>e.notifyUserSession("abort"))},null,8,["ctaText"])]),createBaseVNode("div",_hoisted_9$W,[createVNode(e.CTAButton,{ctaText:`${e.props.yesBtnLabel} (${e.countdown})`,sizeType:"small",ctaSizing:"fluid",styleType:"primary",containerClass:"w-full",tabindex:"-1",onClick:o[1]||(o[1]=s=>e.notifyUserSession("continue"))},null,8,["ctaText"])])])])])):createCommentVNode("",!0)]),_:1})]),_:1}))],64)}const SsoCrossDomain=_export_sfc(_sfc_main$1_,[["render",_sfc_render$1_],["__scopeId","data-v-2df5889d"],["__file","SsoCrossDomain.vue"]]),__default__$1Y={name:"AppHeader",editConfig:{emptyLabel:"Header",resourceType:"mh/components/header",isEmpty(t){return!0}},expose:[],inheritAttrs:!1},_sfc_main$1Z=Object.assign(__default__$1Y,{props:{headerSearchSuggestionUrl:{type:String,default:""},label:{type:String,default:""},searchResultPagePath:{type:String,default:""},disableMobileBottomNavigation:{type:Boolean,default:!1},enrichBizConnectLabel:{type:String,default:""},enrichBizConnectUrl:{type:String,default:""},enrichBizConnectExternalIcon:{type:Boolean,default:!1},enrichBizConnectOpenInNewTab:{type:Boolean,default:!1},hamburgerL1Menu:{type:Array,default:()=>[]},headerCampaignNavigation:{type:Array,default:()=>[]},headerL1Navigation:{type:Array,default:()=>[]},hideInDesktop:{type:Boolean,default:!1},enableHeaderRafiGlassDesign:{type:Boolean,default:!1},hideInDesktopSearch:{type:Boolean,default:!1},hideInMobile:{type:Boolean,default:!1},hideInMobileSearch:{type:Boolean,default:!1},headerBehavior:{type:String,default:"header-blend-into-banner"},logo1DarkAtlText:{type:String,default:""},logo1Dark:{type:String,default:""},logo1Light:{type:String,default:""},logo1DarkUrl:{type:String,default:""},logo1LightAtlText:{type:String,default:""},logo1LightUrl:{type:String,default:""},hideInDesktopLogo1:{type:Boolean,default:!1},hideInMobileLogo1:{type:Boolean,default:!1},openInNewTabLogo1:{type:Boolean,default:!1},openInNewTabLogo1Dark:{type:Boolean,default:!1},logo2Dark:{type:String,default:""},logo2DarkAtlText:{type:String,default:""},logo2DarkUrl:{type:String,default:""},logo2Light:{type:String,default:""},logo2LightAtlText:{type:String,default:""},logo2LightUrl:{type:String,default:""},hideInDesktopLogo2:{type:Boolean,default:!1},hideInMobileLogo2:{type:Boolean,default:!1},openInNewTabLogo2:{type:Boolean,default:!1},openInNewTabLogo2Dark:{type:Boolean,default:!1},selectedCountryLabel:{type:String,default:""},allCountriesLabel:{type:String,default:""},mhExplorerLabel:{type:String,default:""},mhExplorerPreloginUrl:{type:String,default:""},mhExplorerPostloginUrl:{type:String,default:""},mhExplorerExternalIcon:{type:Boolean,default:!1},mhExplorerOpenInNewTab:{type:Boolean,default:!1},mhbizProLabel:{type:String,default:""},mhbizProUrl:{type:String,default:""},mhbizProExternalIcon:{type:Boolean,default:!1},mhbizProOpenInNewTab:{type:Boolean,default:!1},mobileBottomNavigation:{type:Array,default:()=>[]},myAccountLabel:{type:String,default:"MY ACCOUNT"},myAccount:{type:Array,default:()=>[]},prelogin:{type:Array,default:()=>[]},preLoginMenuLabel:{type:String,default:""},quickLinksLabel:{type:String,default:""},quickLinks:{type:Array,default:()=>[]},askMhUrl:{type:String,default:""},openInNewTabAskMH:{type:Boolean,default:!1},hideInDesktopAskMH:{type:Boolean,default:!1},hideInMobileAskMH:{type:Boolean,default:!1},searchButtonLabel:{type:String,default:""},searchBarPlaceholderText:{type:String,default:""},suggestedSearchesLabel:{type:String,default:""},headerPostLoginUrl:{type:String,default:""},countryLanguage:{type:Object,default:()=>({})},disableTransparency:{type:Boolean,default:!1},footerModel:{type:Object,default:()=>({})},logOutLabel:{type:String,default:"Logout"},exploreMoreLabel:{type:String,default:"EXPLORE MORE"},componentIdAA:{type:String,default:""},headerCountryLanguageUrl:{type:String,default:""},closeMenuCTALabel:{type:String,default:""},ssoTab:{type:Object,default:()=>({})}},setup(t,{expose:o}){o();const r=t,e=ref$1(null),n=ref$1(!1);gsapWithCSS.registerPlugin(ScrollTrigger);
1167const{isLoggedIn:a,userInfo:i,login:s,isSapphireCookiePresent:l,isAuthStateReady:d}=useAuthStore(),{clearCache:c}=useEnrichSummaryHttpCache();onMounted(()=>{var U;ScrollTrigger.create({id:"AppHeader",trigger:document.body,start:"10px top",end:"+=90000% top",toggleClass:{targets:e.value,className:"sticked"},onToggle:({isActive:B})=>{var z;const L=(z=e.value.parentElement)==null?void 0:z.parentElement;r.headerBehavior==="header-sit-outside-banner"&&(B||N.value===""&&b.value===!1&&y.value===!1&&_.value===!1)&&L.classList.toggle("fixed",B)},endTrigger:document.body,pin:!1}),r.headerBehavior!=="header-sit-outside-banner"&&((U=e.value.parentElement)==null?void 0:U.parentElement).classList.add("fixed")});const u=async()=>{if(l())try{await f()}catch{}else c("enrichSummaryStore"),c("membershipStore");d.value=!0},f=async()=>{let U=null;try{U=await axios$1.get(r.headerPostLoginUrl),s(U.data)}catch{}},m=async U=>{U.type==="continue"&&(await u(),n.value=!0),U.type==="abort"&&(n.value=!0),U.type==="noLoginRequired"&&(U.isFallbackTriggered?setTimeout(async()=>{n.value=!0,await u(),console.log("[SSO] Final fallback executed.")},3e3):(n.value=!0,await u()))},b=ref$1(!1),y=ref$1(!1),_=ref$1(!1),S=ref$1(!1),{isEditorMode:C}=useGlobalAEMState$1(),{pageProperties:T}=useGlobalAEMState$1(),x=useEventBus("main-global-header"),k=(U,B)=>{switch(U){case"trigger-search":{b.value=B??!0;break}case"trigger-login":{_.value=B??!0;break}case"trigger-country-selector":{y.value=B??!0;break}default:{console.log(`Unknown event: "${U}". Ignoring it.`);break}}};x.on(k);const E=ref$1(new Set),w=async U=>{E.value.add(U),await sleep(500),E.value.delete(U)},D=computed(()=>r.disableTransparency||C.value||b.value||_.value||y.value||N.value||S.value||r.headerBehavior==="header-sit-outside-banner"),N=ref$1(""),F=U=>{N.value=U},{paused:V}=useHeaderScroll();watch([b,_,y,N,S],()=>{b.value||_.value||y.value||N.value||S.value?V.value=!0:V.value=!1});const A=computed(()=>Object.keys(r.countryLanguage.allCountriesAndLanguages).filter(B=>B!==r.countryLanguage.currentCountry).map(B=>r.countryLanguage.allCountriesAndLanguages[B])),M=computed(()=>{const U=r.countryLanguage.currentCountry;return{country:r.countryLanguage.allCountriesAndLanguages[U].pageTitle,languages:r.countryLanguage.allCountriesAndLanguages[U].languages}}),O=U=>Array.isArray(U)?Math.abs(U.length%4-3):0,{header:R}=useHeaderFooterStore();R.logo1Dark=r.logo1Dark,R.logo1DarkUrl=r.logo1DarkUrl,R.logo1DarkAtlText=r.logo1DarkAtlText,R.openInNewTabLogo1Dark=r.openInNewTabLogo1Dark,R.hideInMobileLogo1=r.hideInMobileLogo1,R.logo2Dark=r.logo2Dark,R.logo2DarkUrl=r.logo2DarkUrl,R.logo2DarkAtlText=r.logo2DarkAtlText,R.openInNewTabLogo2Dark=r.openInNewTabLogo2Dark,R.hideInMobileLogo2=r.hideInMobileLogo2;const I=U=>{N.value=""},j=computed(()=>r.headerL1Navigation.filter(U=>U.newLabel).length>0),H={props:r,rootEl:e,isSsoVerificationDone:n,isLoggedIn:a,userInfo:i,login:s,isSapphireCookiePresent:l,isAuthStateReady:d,clearCache:c,checkIfLoggedIn:u,triggerPostLoginUrl:f,handleSessionEvent:m,showHeaderSearch:b,showCountrySelector:y,showHeaderLogin:_,showMobileMainMenu:S,isEditorMode:C,pageProperties:T,globalHeaderBus:x,listener:k,disabledInteractions:E,disableInteractionBriefly:w,shouldHeaderBeOpaque:D,levelTwoActive:N,setLevelTwoMenu:F,pausedHeaderScroll:V,allCountriesAndLanguagesTransform:A,selectedCountryAndLanguageTransform:M,calcCampaignGrid:O,headerStore:R,closeHeaderDesktopLevelTwo:I,isAnyMenuL1NavHasNewLabel:j,get gsap(){return gsapWithCSS},get ScrollTrigger(){return ScrollTrigger},Search,MobileMainMenu,MobileBtmBar,DesktopLevelTwo,DesktopCountrySelector,LoginMenu,get isMobileViewport(){return isMobileViewport},get useEventBus(){return useEventBus},get sleep(){return sleep},get useHeaderScroll(){return useHeaderScroll},get useGlobalAEMState(){return useGlobalAEMState$1},get getCookie(){return getCookie},get deleteCookie(){return deleteCookie},get useAuthStore(){return useAuthStore},get useHeaderFooterStore(){return useHeaderFooterStore},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},get _isEmpty(){return lodashExports.isEmpty},SsoCrossDomain,get useEnrichSummaryHttpCache(){return useEnrichSummaryHttpCache}};return Object.defineProperty(H,"__isScriptSetup",{enumerable:!1,value:!0}),H}}),_hoisted_1$2s=["data-is-opaque"],_hoisted_2$1P={class:"logo-container flex items-center xl:gap-4 gap-8 py-2"},_hoisted_3$1o={key:0},_hoisted_4$1f=["src","alt"],_hoisted_5$19=["src","alt"],_hoisted_6$15={key:1},_hoisted_7$13=["src","alt"],_hoisted_8$$=["src","alt"],_hoisted_9$V={class:"flex gap-x-1.5 font-semibold text-base h-full"},_hoisted_10$M=["data-menu-name"],_hoisted_11$J=["onClick"],_hoisted_12$H={class:""},_hoisted_13$D={class:"grid grid-cols-4 gap-x-4 gap-y-8 mt-8 font-light leading-none"},_hoisted_14$C={key:0,class:"flex flex-col gap-4"},_hoisted_15$A={class:"level3-navigation-list-item"},_hoisted_16$w={class:"level3-navigation-item"},_hoisted_17$t={key:0,class:"level3-badge rounded border border-primary-blue-dark text-primary-blue-dark font-bold py-1 px-2 w-auto ml-2 rtl:mr-2"},_hoisted_18$q={key:0},_hoisted_19$n={key:1},_hoisted_20$m={class:"flex flex-col"},_hoisted_21$m=["src"],_hoisted_22$l={class:"font-semibold"},_hoisted_23$i={class:"xl:ml-auto xl:rtl:ml-0 xl:rtl:mr-auto h-full"},_hoisted_24$h={class:"flex gap-x-4 xl:gap-x-3 h-full"},_hoisted_25$g=["aria-label"],_hoisted_26$g=["src","alt"],_hoisted_27$f={class:"text-sm font-semibold uppercase"},_hoisted_28$e={class:"flex items-center"},_hoisted_29$e={class:"text-sm ml-1"},_hoisted_30$e=["aria-label"],_hoisted_31$e={class:"flex items-center"},_hoisted_32$e={class:"text-sm ml-1 xl:hidden"},_hoisted_33$a=["aria-label"],_hoisted_34$a={key:1,class:"login-avatar bg-secondary-blue-ultralight text-primary-blue-dark"},_hoisted_35$a=["aria-label"];function _sfc_render$1Z(t,o,r,e,n,a){var b,y,_;const i=resolveComponent("AppHyperlink"),s=__unplugin_components_0$l,l=__unplugin_components_1$e,d=__unplugin_components_2$3,c=__unplugin_components_2$4,u=__unplugin_components_4$1,f=__unplugin_components_0$j,m=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[e.isMobileViewport&&!e.props.hideInMobile||!e.isMobileViewport&&!e.props.hideInDesktop?(openBlock(),createElementBlock("header",{key:0,ref:"rootEl",class:"AppHeader","data-is-opaque":e.shouldHeaderBeOpaque?"true":"false","data-is-sticky":"","data-height-var":"--headerHeight"},[createBaseVNode("div",{class:normalizeClass(["flex items-center h-full",e.props.enableHeaderRafiGlassDesign?"generic-containerNew":"generic-container"])},[createBaseVNode("div",_hoisted_2$1P,[e.isMobileViewport&&!e.props.hideInMobileLogo1||!e.isMobileViewport&&!e.props.hideInDesktopLogo1?(openBlock(),createElementBlock("div",_hoisted_3$1o,[withDirectives((openBlock(),createBlock(i,{href:e.props.logo1DarkUrl,target:e.props.openInNewTabLogo1Dark?"_blank":"_self",showExternalLinkIcon:!1,rel:"noopener noreferrer",class:"is-dark-variant rounded-md"},{default:withCtx(()=>[createBaseVNode("img",{class:"logo-primary-img",src:e.props.logo1Dark,alt:e.props.logo1DarkAtlText},null,8,_hoisted_4$1f)]),_:1},8,["href","target"])),[[m,[{clickName:e.props.logo1DarkAtlText,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:e.props.logo1DarkAtlText,type:"other"}]]]),withDirectives((openBlock(),createBlock(i,{href:e.props.logo1LightUrl,target:e.props.openInNewTabLogo1?"_blank":"_self",showExternalLinkIcon:!1,rel:"noopener noreferrer",class:"is-light-variant rounded-md"},{default:withCtx(()=>[createBaseVNode("img",{class:"logo-primary-img",src:e.props.logo1Light,alt:e.props.logo1LightAtlText},null,8,_hoisted_5$19)]),_:1},8,["href","target"])),[[m,[{clickName:e.props.logo1LightAtlText,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:e.props.logo1LightAtlText,type:"other"}]]])])):createCommentVNode("",!0),e.isMobileViewport&&!e.props.hideInMobileLogo2||!e.isMobileViewport&&!e.props.hideInDesktopLogo2?(openBlock(),createElementBlock("div",_hoisted_6$15,[withDirectives((openBlock(),createBlock(i,{href:e.props.logo2DarkUrl,target:e.props.openInNewTabLogo2Dark?"_blank":"_self",showExternalLinkIcon:!1,rel:"noopener noreferrer",class:"is-dark-variant xl:hidden rounded-md"},{default:withCtx(()=>[createBaseVNode("img",{class:"logo-secondary-img",src:e.props.logo2Dark,alt:e.props.logo2DarkAtlText},null,8,_hoisted_7$13)]),_:1},8,["href","target"])),[[m,[{clickName:e.props.logo2DarkAtlText,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:e.props.logo2DarkAtlText,type:"other"}]]]),withDirectives((openBlock(),createBlock(i,{href:e.props.logo2LightUrl,target:e.props.openInNewTabLogo2?"_blank":"_self",showExternalLinkIcon:!1,rel:"noopener noreferrer",class:"is-light-variant xl:hidden rounded-md"},{default:withCtx(()=>[createBaseVNode("img",{class:"logo-secondary-img",src:e.props.logo2Light,alt:e.props.logo2LightAtlText},null,8,_hoisted_8$$)]),_:1},8,["href","target"])),[[m,[{clickName:e.props.logo2LightAtlText,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:e.props.logo2LightAtlText,type:"other"}]]])])):createCommentVNode("",!0)]),createBaseVNode("div",{class:"mx-auto xl:hidden h-full",style:normalizeStyle({"--newLabel":t.$t("New")})},[createBaseVNode("nav",_hoisted_9$V,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.headerL1Navigation,(S,C)=>(openBlock(),createElementBlock("div",{key:C,class:normalizeClass(["lvl-1-nav flex flex-col justify-center",{"is-active":e.levelTwoActive===S.l1TitleLabel}]),"data-menu-name":S.l1TitleLabel},[createBaseVNode("div",{class:normalizeClass(["level1-badge mt-2.5 ml-2 rtl:mr-2 rounded border border-current font-bold py-1 px-2 uppercase",[S.newLabel?"visible":`hidden ${e.isAnyMenuL1NavHasNewLabel&&">xl:block >xl:invisible"}`]])},toDisplayString(t.$t("New")),3),S.headerL2Navigation?withDirectives((openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["relative rounded-md text-sm max-w-[150px] text-left",[S.newLabel?"truncate":"line-clamp-2"]]),type:"button",style:{"--focus-visible-outline-offset":"-2px"},onClick:T=>e.setLevelTwoMenu(S.l1TitleLabel),onKeydown:o[0]||(o[0]=withKeys(T=>e.setLevelTwoMenu(""),["esc"]))}
1167,[createTextVNode(toDisplayString(S.l1TitleLabel),1)],42,_hoisted_11$J)),[[m,[{clickName:S.l1TitleLabel,clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:S.l1TitleLabel,type:"other"}]]]):S.l1TitleLabel?withDirectives((openBlock(),createBlock(i,{key:1,class:"relative text-current px-2 py-1 hover:text-current hover:no-underline rounded-md text-sm text-left",style:{"--focus-visible-outline-offset":"-2px"},href:S.l1TitlePagePath,target:S.openInNewTab?"_blank":"_self",showExternalLinkIcon:!1},{default:withCtx(()=>[createTextVNode(toDisplayString(S.l1TitleLabel),1)]),_:2},1032,["href","target"])),[[m,[{clickName:S.l1TitleLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:S.l1TitleLabel,type:"other"}]]]):createCommentVNode("",!0)],10,_hoisted_10$M))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.headerL1Navigation,(S,C)=>(openBlock(),createElementBlock(Fragment,{key:C},[e.levelTwoActive===S.l1TitleLabel?(openBlock(),createBlock(Teleport,{key:0,to:`.AppHeader [data-menu-name='${e.levelTwoActive}']`},[createVNode(e.DesktopLevelTwo,{isVisible:!0,closeMenuCTALabel:e.props.closeMenuCTALabel,"onUpdate:isVisible":o[1]||(o[1]=T=>{T===!1&&(e.setLevelTwoMenu(""),e.disableInteractionBriefly("level-2"))})},{default:withCtx(()=>[createBaseVNode("div",_hoisted_12$H,[withDirectives((openBlock(),createBlock(i,{class:"inline-flex items-center text-primary-blue-base hover:text-primary-blue-light text-base font-semibold group",href:S.l1TitlePagePath,showExternalLinkIcon:!1,onClick:e.closeHeaderDesktopLevelTwo},{default:withCtx(()=>[createTextVNode(toDisplayString(S.l1TitleCtaLabel)+" ",1),createVNode(s,{class:"ml-2 rtl:mr-2 fill-current hover:fill-current transition-transform ease-in-out transform rtl:-rotate-180 group-hover:-translate-x-0.5"})]),_:2},1032,["href"])),[[m,[{clickName:S.l1TitleCtaLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:S.l1TitleCtaLabel,type:"other"}]]])]),createBaseVNode("div",_hoisted_13$D,[(openBlock(!0),createElementBlock(Fragment,null,renderList(S.headerL2Navigation,(T,x)=>(openBlock(),createElementBlock("nav",{key:x},[S.headerL2Navigation?(openBlock(),createElementBlock("ul",_hoisted_14$C,[createBaseVNode("li",null,[withDirectives((openBlock(),createBlock(i,{href:T.l2TitlePagePath,target:T.openInNewTab?"_blank":"_self",class:"text-base text-primary-blue-base hover:text-primary-blue-light font-semibold block",showExternalLinkIcon:!1,onClick:e.closeHeaderDesktopLevelTwo},{default:withCtx(()=>[createTextVNode(toDisplayString(T.l2TitleLabel)+" ",1),T.externalLink?(openBlock(),createBlock(l,{key:0,class:"fill-current inline-block ml-3 rtl:mr-3 text-base"})):createCommentVNode("",!0)]),_:2},1032,["href","target"])),[[m,[{clickName:T.l2TitleLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:T.l2TitleLabel,type:T.externalLink?"exit":"other"}]]])]),(openBlock(!0),createElementBlock(Fragment,null,renderList(T.headerL3Navigation,(k,E)=>(openBlock(),createElementBlock(Fragment,{key:E},[createBaseVNode("li",_hoisted_15$A,[withDirectives((openBlock(),createBlock(i,{href:k.l3TitlePagePath,target:k.openInNewTab?"_blank":"_self",class:"text-primary-black-base hover:text-primary-black-base",onClick:e.closeHeaderDesktopLevelTwo},{default:withCtx(()=>[createBaseVNode("div",_hoisted_16$w,[createBaseVNode("span",null,toDisplayString(k.l3TitleLabel),1),k.l3TagTitle?(openBlock(),createElementBlock("span",_hoisted_17$t,toDisplayString(k.l3TagTitle),1)):createCommentVNode("",!0)]),k.externalLink?(openBlock(),createBlock(l,{key:0,class:"fill-current inline-block ml-3 rtl:mr-3 text-base"})):createCommentVNode("",!0)]),_:2},1032,["href","target"])),[[m,[{clickName:k.l3TitleLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:k.l3TitleLabel,type:k.externalLink?"exit":"other"}]]])]),k.more?(openBlock(),createElementBlock("li",_hoisted_18$q,[withDirectives((openBlock(),createBlock(i,{class:"text-primary-black-base hover:text-primary-black-base",href:T.l2TitlePagePath},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("More")),1)]),_:2},1032,["href"])),[[m,[{clickName:t.$t("More"),clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:t.$t("More"),type:"other"}]]])])):createCommentVNode("",!0)],64))),128))])):createCommentVNode("",!0)]))),128)),e.props.headerCampaignNavigation[C]?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.calcCampaignGrid(S.headerL2Navigation),(T,x)=>(openBlock(),createElementBlock("nav",{key:x}))),128)):createCommentVNode("",!0),e.props.headerCampaignNavigation[C]?(openBlock(),createElementBlock("nav",_hoisted_19$n,[createBaseVNode("div",_hoisted_20$m,[withDirectives((openBlock(),createBlock(i,{href:e.props.headerCampaignNavigation[C].imagePagePath,target:e.props.headerCampaignNavigation[C].openInNewTabImage?"_blank":null,class:"campaign-thumbn
1167ail rounded-lg"},{default:withCtx(()=>[createBaseVNode("img",{src:e.props.headerCampaignNavigation[C].image,alt:"campaign",class:"campaign-thumbnail-image"},null,8,_hoisted_21$m)]),_:2},1032,["href","target"])),[[m,[{clickName:"campaign",clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:"campaign",type:"other"}]]]),withDirectives((openBlock(),createBlock(i,{href:e.props.headerCampaignNavigation[C].ctaPagePath,target:e.props.headerCampaignNavigation[C].openInNewTabCta?"_blank":null,class:"mt-3"},{default:withCtx(()=>[createBaseVNode("span",_hoisted_22$l,toDisplayString(e.props.headerCampaignNavigation[C].ctaLabel),1)]),_:2},1032,["href","target"])),[[m,[{clickName:e.props.headerCampaignNavigation[C].ctaLabel,clickComponentType:"URL",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:e.props.headerCampaignNavigation[C].ctaLabel,type:e.isUrlMatchCurrentHostname(e.props.headerCampaignNavigation[C].ctaPagePath)?"other":"exit"}]]])])])):createCommentVNode("",!0)])]),_:2},1032,["closeMenuCTALabel"])],8,["to"])):createCommentVNode("",!0)],64))),128))],4),createBaseVNode("div",_hoisted_23$i,[createBaseVNode("nav",_hoisted_24$h,[e.props.countryLanguage.allCountriesAndLanguages?withDirectives((openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["btn-side-interaction flex items-center gap-2 xl:hidden",{"is-active":e.showCountrySelector}]),type:"button",style:{"--focus-visible-outline-offset":"-2px"},"aria-label":`${r.countryLanguage.currentCountryTitle} ${r.countryLanguage.currentLanguageTitle}`,onKeydown:o[2]||(o[2]=withKeys(S=>e.showCountrySelector=!1,["esc"])),onClick:o[3]||(o[3]=S=>e.disabledInteractions.has("country")?null:e.showCountrySelector=!0)},[createBaseVNode("img",{src:(b=e.pageProperties)==null?void 0:b.countryFlag,width:"24",height:"24",alt:t.$t("Flag of {country}",{country:r.countryLanguage.currentCountryTitle})},null,8,_hoisted_26$g),createBaseVNode("span",_hoisted_27$f,toDisplayString(r.countryLanguage.currentLanguage),1)],42,_hoisted_25$g)),[[m,[{clickName:r.countryLanguage.currentLanguage,clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:r.countryLanguage.currentLanguage,type:"other"}]]]):createCommentVNode("",!0),e.showCountrySelector?(openBlock(),createBlock(e.DesktopCountrySelector,{key:1,isVisible:e.showCountrySelector,selectedCountryLabelDesktop:e.props.selectedCountryLabel,allCountriesLabelDesktop:e.props.allCountriesLabel,countryLanguageItems:e.props.countryLanguage,allCountriesAndLanguages:e.allCountriesAndLanguagesTransform,selectedCountryAndLanguage:e.selectedCountryAndLanguageTransform,countryLanguageRedirectBaseUrl:e.props.headerCountryLanguageUrl,closeMenuCTALabel:e.props.closeMenuCTALabel,"onUpdate:isVisible":o[4]||(o[4]=S=>{e.showCountrySelector=S,S===!1&&e.disableInteractionBriefly("country")})},null,8,["isVisible","selectedCountryLabelDesktop","allCountriesLabelDesktop","countryLanguageItems","allCountriesAndLanguages","selectedCountryAndLanguage","countryLanguageRedirectBaseUrl","closeMenuCTALabel"])):createCommentVNode("",!0),e.isMobileViewport&&!e.props.hideInMobileAskMH||!e.isMobileViewport&&!e.props.hideInDesktopAskMH?withDirectives((openBlock(),createBlock(i,{key:2,href:e.props.askMhUrl,target:e.props.openInNewTabAskMH?"_blank":"_self",class:"btn-side-interaction text-current hover:text-current xl:hidden",style:{"--focus-visible-outline-offset":"-2px"},"aria-label":t.$t("AskMH"),showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("div",_hoisted_28$e,[createVNode(d,{class:"fill-current"}),createBaseVNode("span",_hoisted_29$e,toDisplayString(t.$t("AskMH")),1)])]),_:1},8,["href","target","aria-label"])),[[m,[{clickName:t.$t("AskMH"),clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:t.$t("AskMH"),type:"other"}]]]):createCommentVNode("",!0),e.isMobileViewport&&!e.props.hideInMobileSearch||!e.isMobileViewport&&!e.props.hideInDesktopSearch?withDirectives((openBlock(),createElementBlock("button",{key:3,class:normalizeClass(["btn-side-interaction",{"is-active":e.showHeaderSearch}]),type:"button",style:{"--focus-visible-outline-offset":"-2px"},"aria-label":t.$t("Search"),onClick:o[5]||(o[5]=S=>
1167e.disabledInteractions.has("search")?null:e.showHeaderSearch=!0)},[createBaseVNode("div",_hoisted_31$e,[createVNode(c,{class:"fill-current"}),createBaseVNode("span",_hoisted_32$e,toDisplayString(t.$t("Search")),1)])],10,_hoisted_30$e)),[[m,[{clickName:t.$t("Search"),clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:t.$t("Search"),type:"other"}]]]):createCommentVNode("",!0),e.showHeaderSearch?(openBlock(),createBlock(e.Search,{key:4,isVisible:e.showHeaderSearch,searchPageUrl:e.props.searchResultPagePath,searchInputPlaceholderText:e.props.searchBarPlaceholderText,searchButtonLabelText:e.props.searchButtonLabel,quickLinksLabelText:e.props.quickLinksLabel,quickLinks:e.props.quickLinks,suggestedSearchesLabel:e.props.suggestedSearchesLabel,searchSuggestionUrl:e.props.headerSearchSuggestionUrl,logoImgSrcBlue:e.props.logo1Dark,closeMenuCTALabel:e.props.closeMenuCTALabel,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,"onUpdate:isVisible":o[6]||(o[6]=S=>{e.showHeaderSearch=S,S===!1&&e.disableInteractionBriefly("search")})},null,8,["isVisible","searchPageUrl","searchInputPlaceholderText","searchButtonLabelText","quickLinksLabelText","quickLinks","suggestedSearchesLabel","searchSuggestionUrl","logoImgSrcBlue","closeMenuCTALabel","enableHeaderRafiGlassDesign"])):createCommentVNode("",!0),withDirectives((openBlock(),createElementBlock("button",{class:normalizeClass(["btn-side-interaction",{"is-active":e.showHeaderLogin}]),style:{"--focus-visible-outline-offset":"-2px"},type:"button","aria-label":t.$t("Account"),onClick:o[7]||(o[7]=S=>e.disabledInteractions.has("login")?null:e.showHeaderLogin=!0),onKeydown:o[8]||(o[8]=withKeys(S=>e.showHeaderLogin=!1,["esc"]))},[e.isLoggedIn?(openBlock(),createElementBlock("div",_hoisted_34$a,toDisplayString((y=e.userInfo.lastName)==null?void 0:y.charAt(0))+toDisplayString((_=e.userInfo.firstName)==null?void 0:_.charAt(0)),1)):(openBlock(),createBlock(u,{key:0,class:"fill-current"}))],42,_hoisted_33$a)),[[m,[{clickName:t.$t("Account"),clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:t.$t("Account"),type:"other"}]]]),e.showHeaderLogin?(openBlock(),createBlock(e.LoginMenu,{key:5,isVisible:e.showHeaderLogin,preLoginItems:e.props.prelogin,preLoginMenuLabel:e.props.preLoginMenuLabel,myAccountLabel:e.props.myAccountLabel,myAccount:e.props.myAccount,enrichBizConnectLabel:e.props.enrichBizConnectLabel,enrichBizConnectUrl:e.props.enrichBizConnectUrl,enrichBizConnectExternalIcon:e.props.enrichBizConnectExternalIcon,enrichBizConnectOpenInNewTab:e.props.enrichBizConnectOpenInNewTab,mhExplorerLabel:e.props.mhExplorerLabel,mhExplorerPreloginUrl:e.props.mhExplorerPreloginUrl,mhExplorerPostloginUrl:e.props.mhExplorerPostloginUrl,mhExplorerExternalIcon:e.props.mhExplorerExternalIcon,mhExplorerOpenInNewTab:e.props.mhExplorerOpenInNewTab,mhbizProLabel:e.props.mhbizProLabel,mhbizProUrl:e.props.mhbizProUrl,mhbizProExternalIcon:e.props.mhbizProExternalIcon,mhbizProOpenInNewTab:e.props.mhbizProOpenInNewTab,logOutLabel:e.props.logOutLabel,exploreMoreLabel:e.props.exploreMoreLabel,componentIdAA:e.props.componentIdAA,logoImgSrcBlue:e.props.logo1Dark,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,isSsoVerificationDone:e.isSsoVerificationDone,"onUpdate:isVisible":o[9]||(o[9]=S=>{e.showHeaderLogin=S,S===!1&&e.disableInteractionBriefly("login")})},null,8,["isVisible","preLoginItems","preLoginMenuLabel","myAccountLabel","myAccount","enrichBizConnectLabel","enrichBizConnectUrl","enrichBizConnectExternalIcon","enrichBizConnectOpenInNewTab","mhExplorerLabel","mhExplorerPreloginUrl","mhExplorerPostloginUrl","mhExplorerExternalIcon","mhExplorerOpenInNewTab","mhbizProLabel","mhbizProUrl","mhbizProExternalIcon","mhbizProOpenInNewTab","logOutLabel","exploreMoreLabel","componentIdAA","logoImgSrcBlue","enableHeaderRafiGlassDesign","isSsoVerificationDone"])):createCommentVNode("",!0),withDirectives((openBlock(),createElementBlock("button",{class:"btn-side-interaction >xl:hidden",style:{"--focus-visible-outline-offset":"-2px"},type:"button","aria-label":t.$t("Menu"),onClick:o[10]||(o[10]=S=>e.showMobileMainMenu=!e.showMobileMainMenu)},[createVNode(f,{class:"fill-current"})],8,_hoisted_35$a)),[[m,[{clickName:t.$t("Menu"),clickComponentType:"Button",componentName:"AppHeader",componentID:e.props.componentIdAA},{name:t.$t("Menu"),type:"other"}]]])])])],2)],8,_hoisted_1$2s)):createCommentVNode("",!0),createVNode(e.MobileMainMenu,{isVisible:e.showMobileMainMenu,mobileNavigationList:e.props.hamburgerL1Menu,headerNavigationList:e.props.headerL1Navigation,mobileSelectedCountryLabel:e.props.selectedCountryLabel,mobileAllCountriesLabel:e.props.allC
1167ountriesLabel,mobileLogo1LightSrc:e.props.logo1Light,mobileLogo1DarkSrc:e.props.logo1Dark,enableHeaderRafiGlassDesign:e.props.enableHeaderRafiGlassDesign,mobileIsOpenInNewTabLogo1:e.props.openInNewTabLogo1,mobileIsHideLogo1:e.props.hideInMobileLogo1,mobileCountryLanguageItems:e.props.countryLanguage,mobileFooter:e.props.footerModel,isHideMobileSearch:e.props.hideInMobileSearch,componentIdAA:e.props.componentIdAA,countryLanguageRedirectBaseUrl:e.props.headerCountryLanguageUrl,"onUpdate:isVisible":o[11]||(o[11]=S=>e.showMobileMainMenu=S)},null,8,["isVisible","mobileNavigationList","headerNavigationList","mobileSelectedCountryLabel","mobileAllCountriesLabel","mobileLogo1LightSrc","mobileLogo1DarkSrc","enableHeaderRafiGlassDesign","mobileIsOpenInNewTabLogo1","mobileIsHideLogo1","mobileCountryLanguageItems","mobileFooter","isHideMobileSearch","componentIdAA","countryLanguageRedirectBaseUrl"]),e.isMobileViewport&&!e.props.disableMobileBottomNavigation?(openBlock(),createBlock(e.MobileBtmBar,{key:1,mobileBottomNavigationItems:e.props.mobileBottomNavigation,enableGlassDesign:e.props.enableHeaderRafiGlassDesign},null,8,["mobileBottomNavigationItems","enableGlassDesign"])):createCommentVNode("",!0),createVNode(e.SsoCrossDomain,{isHideInDesktop:e.props.ssoTab.isHideInDesktop,isHideInMobile:e.props.ssoTab.isHideInMobile,yesBtnLabel:e.props.ssoTab.yesBtnLabel,noBtnLabel:e.props.ssoTab.noBtnLabel,iframeSrc:e.props.ssoTab.iframeSrc,stateParams:e.props.ssoTab.stateParams,iframeTitle:e.props.ssoTab.iframeTitle,sureText:e.props.ssoTab.sureText,confirmationText:e.props.ssoTab.confirmationText,timerText:e.props.ssoTab.timerText,logoutUrl:e.props.ssoTab.logoutUrl,logoutStateParams:e.props.ssoTab.logoutStateParams,postLogoutUrl:e.props.ssoTab.postLogoutUrl,onSessionEvent:e.handleSessionEvent},null,8,["isHideInDesktop","isHideInMobile","yesBtnLabel","noBtnLabel","iframeSrc","stateParams","iframeTitle","sureText","confirmationText","timerText","logoutUrl","logoutStateParams","postLogoutUrl"])],64)}const AppHeader=_export_sfc(_sfc_main$1Z,[["render",_sfc_render$1Z],["__scopeId","data-v-9edc0736"],["__file","AppHeader.vue"]]),AppHeader$1=Object.freeze(Object.defineProperty({__proto__:null,default:AppHeader},Symbol.toStringTag,{value:"Module"})),__default__$1X={name:"AppFooter",editConfig:{emptyLabel:"Footer",isEmpty(t){return!0}},expose:[],inheritAttrs:!1},_sfc_main$1Y=Object.assign(__default__$1X,{props:{generalTab:{type:Object,default:()=>({})},exerciseYourRightsTab:{type:Object,default:()=>({})},subsidiaryTab:{type:Object,default:()=>({})},socialMediaTab:{type:Object,default:()=>({})},tncTab:{type:Object,default:()=>({})},copyrightTab:{type:Object,default:()=>({})},componentIdAA:{type:String,default:""},newsletterTab:{type:Object,default:()=>({})},enableGlassDesign:{type:Boolean,default:!1}},setup(t,{expose:o}){o();const{isEditorMode:r}=useGlobalAEMState$1(),e=t,n=useRouter$1(),a=useRoute$1(),i=ref$1(!1),s=()=>{const m=Object.keys(e.exerciseYourRightsTab).length===0,b=Object.keys(e.subsidiaryTab).length===0,y=Object.keys(e.socialMediaTab).length===0,_=Object.keys(e.tncTab).length===0,S=Object.keys(e.copyrightTab).length===0;return m&&b&&y&&_&&S},{footer:l}=useHeaderFooterStore();l.subsidiaryTab=e.subsidiaryTab,l.tncTab=e.tncTab,l.copyrightTab=e.copyrightTab;const d=()=>{i.value=!0,c.value=!0,n.replace({query:{...a.query,acemail:void 0,id:void 0}})},c=ref$1(window.location.hash=="#manage-subscription"),f={isEditorMode:r,props:e,router:n,route:a,showNewsLetter:i,isPropsDataEmpty:s,footerStore:l,openNewsletterOverlay:d,showOverlay:c,resetOverlayValues:()=>{c.value=!1,i.value=!1},FontAwesomeLazy,AppFooterAccordion,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},get useHeaderFooterStore(){return useHeaderFooterStore},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},OverlayDrawer,get useRouter(){return useRouter$1},get useRoute(){return useRoute$1},CTAButton,ExperienceFragment};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),_hoisted_1$2r={key:0,class:"text-center"},_hoisted_2$1O={key:0,class:"AppFooter md:hidden"},_hoisted_3$1n={class:"generic-container gap-x-4 py-4 >md:pt-16 >md:pb-12 text-white"},_hoisted_4$1e={class:"footer-top flex flex-col >lg:flex-row gap-6"},_hoisted_5$18={key:0},_hoisted_6$14={class:"footer-social-container >lg:w-1/5 whitespace-nowrap"},_hoisted_7$12={class:"text-neutral-white text-xs font-bold mb-4 lg:mt-10"},_hoisted_8$_={class:"social-icons-list whitespace-nowrap"},_hoisted_9$U=["src","alt"],_hoisted_10$L={class:"sr-only"},_hoisted_11$I={class:"font-semibold font-semiboldNew"},_hoisted_12$G={class:"mt-2"},_hoisted_13$C={key:1},_hoisted_14$B={class:"font-semibold"},_hoisted_15$z={class:"mt-2"},_hoisted_16$v={class:"footer-social-container >lg:w-1/5 whitespace-nowrap"},_hoisted_17$s={class:"text-neutral-white text-xs font-bold mb-4 lg:mt-10"},_hoisted_18$p={class:"social-icons-list"},_hoisted_19$m=["src","alt"],_hoisted_20$l={class:"sr-only"},_hoisted_21$l={class:"footer-bottom"},_hoisted_22$k={class:">lg:w-5/12 flex items-start"},_hoisted_23$h={class:"bottom-left-col"},_hoisted_24$g={class:"rights-logo-wrapper flex gap-x-6"},_hoisted_25$f=["src","alt"],_hoisted_26$f=["src","alt"],_hoisted_27$e={class:"partner-logo-wrapper"},_hoisted_28$d=["src","alt"],_hoisted_29$d={class:"copyright-text text-neutral-grey-extradark text-xs font-bold >lg:hidden >md:w-11/12 lg:w-full mx-auto mt-8"},_hoisted_30$d={class:">lg:w-7/12 >lg:flex flex-col items-end justify-end"},_hoisted_31$d={class:"bottom-right-col"},_hoisted_32$d={class:"copyright-wrapper"},_hoisted_33$9={class:"copyright-list"},_hoisted_34$9={class:"mb-4 md:mb-10 lg:flex lg:flex-col"},_hoisted_35$9={class:"copyright-link-text"},_hoisted_36$8={class:"copyright-text text-neutral-grey-extradark text-xs font-bold lg:hidden"},_hoisted_37$8={key:1,class:"generic-container py-10 text-center"},_hoisted_38$8={key:0},_hoisted_39$6={key:1},_hoisted_40$6={class:"h-full"}
1167,_hoisted_41$6={class:"drawer-header"};function _sfc_render$1Y(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink"),s=__unplugin_components_0$i,l=resolveDirective("aa"),d=resolveDirective("html-sanitize");return openBlock(),createElementBlock(Fragment,null,[e.isPropsDataEmpty()?(openBlock(),createElementBlock(Fragment,{key:0},[e.isEditorMode?(openBlock(),createElementBlock("p",_hoisted_1$2r,"🔧 Please click here to configure footer")):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[e.isMobileViewport&&!e.props.generalTab.isHideInMobile||!e.isMobileViewport&&!e.props.generalTab.isHideInDesktop?(openBlock(),createElementBlock("footer",_hoisted_2$1O,[createBaseVNode("div",{class:normalizeClass(["footer-inner-container bg-secondary-blue-extradark",{">md:rounded-t-7xl":e.props.generalTab.isCurvedCorners}])},[createBaseVNode("div",_hoisted_3$1n,[createBaseVNode("div",_hoisted_4$1e,[createVNode(e.AppFooterAccordion,{items:e.props.generalTab.navigationMenu},null,8,["items"]),e.props.generalTab.enableGlassDesign?(openBlock(),createElementBlock("div",_hoisted_5$18,[createBaseVNode("div",_hoisted_6$14,[createBaseVNode("div",{class:normalizeClass(["social-icons-wrapper social-icons-wrapperNew",{"mt-6":!e.props.newsletterTab.isHideInDesktop,"mt-1":e.props.newsletterTab.isHideInDesktop}])},[createBaseVNode("p",_hoisted_7$12,toDisplayString(e.props.socialMediaTab.label),1),createBaseVNode("ul",_hoisted_8$_,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.socialMediaTab.socialMediaList,c=>(openBlock(),createElementBlock("li",{key:c.iconImage,class:"social-icons-list-item inline-block w-8 h-8 mr-3"},[withDirectives((openBlock(),createBlock(i,{class:normalizeClass(["social-icons-anchor",{"align-middle":c.iconType!=="icon-font-awesome-id"}]),href:c.iconUrl,target:c.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",showExternalLinkIcon:!1},{default:withCtx(()=>[c.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,class:"social-icon-logo fill-neutral-white-base hover:fill-primary-blue-extralight mx-auto",iconId:c.iconId,role:"presentation"},null,8,["iconId"])):(openBlock(),createElementBlock("img",{key:1,src:c.iconImage,class:"social-icons-image w-8 h-8 hover:opacity-50",loading:"lazy",alt:c.iconAltText,role:"presentation"},null,8,_hoisted_9$U)),createBaseVNode("span",_hoisted_10$L,toDisplayString(c.iconAltText),1)]),_:2},1032,["class","href","target"])),[[l,[{clickName:c.iconAltText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:c.iconAltText,type:e.isUrlMatchCurrentHostname(c.iconUrl)?"other":"exit"}]]])]))),128))])],2)]),createBaseVNode("div",{class:normalizeClass(["footer-newsletter-container >lg:w-1/5 whitespace-nowrap",{hidden:e.props.newsletterTab.isHideInDesktop}])},[createBaseVNode("p",_hoisted_11$I,toDisplayString(e.props.newsletterTab.text),1),createBaseVNode("div",_hoisted_12$G,[e.props.newsletterTab.subscribeNowButtonLabel?(openBlock(),createBlock(e.CTAButton,{key:0,onClick:e.openNewsletterOverlay,ctaText:e.props.newsletterTab.subscribeNowButtonLabel,sizeType:"small",alignmentDesktop:"left",alignmentMobile:"left",styleType:"secondary"},null,8,["ctaText"])):createCommentVNode("",!0)])],2)])):(openBlock(),createElementBlock("div",_hoisted_13$C,[createBaseVNode("div",{class:normalizeClass(["footer-newsletter-container >lg:w-1/5 whitespace-nowrap",{hidden:e.props.newsletterTab.isHideInDesktop}])},[createBaseVNode("p",_hoisted_14$B,toDisplayString(e.props.newsletterTab.text),1),createBaseVNode("div",_hoisted_15$z,[e.props.newsletterTab.subscribeNowButtonLabel?(openBlock(),createBlock(e.CTAButton,{key:0,onClick:e.openNewsletterOverlay,ctaText:e.props.newsletterTab.subscribeNowButtonLabel,sizeType:"small",alignmentDesktop:"left",alignmentMobile:"left",styleType:"secondary"},null,8,["ctaText"])):createCommentVNode("",!0)])],2),createBaseVNode("div",_hoisted_16$v,[createBaseVNode("div",{class:normalizeClass(["social-icons-wrapper",{"mt-6":!e.props.newsletterTab.isHideInDesktop,"mt-1":e.props.newsletterTab.isHideInDesktop}])},[createBaseVNode("p",_hoisted_17$s,toDisplayString(e.props.socialMediaTab.label),1),createBaseVNode("ul",_hoisted_18$p,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.socialMediaTab.socialMediaList,c=>(openBlock(),createElementBlock("li",{key:c.iconImage,class:"social-icons-list-item inline-block w-8 h-8 mr-3"},[withDirectives((openBlock(),createBlock(i,{class:normalizeClass(["social-icons-anchor",{"align-middle":c.iconType!=="icon-font-awesome-id"}]),href:c.iconUrl,target:c.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",showExternalLinkIcon:!1},{default:withCtx(()=>[c.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,class:"social-icon-logo fill-neutral-white-base hover:fill-primary-blue-extralight mx-auto",iconId:c.iconId,role:"presentation"},null,8,["iconId"])):(openBlock(),createElementBlock("img",{key:1,src:c.iconImage,class:"social-icons-image w-8 h-8 hover:opacity-50",loading:"lazy",alt:c.iconAltText,role:"presentation"},null,8,_hoisted_19$m)),createBaseVNode("span",_hoisted_20$l,toDisplayString(c.iconAltText),1)]),_:2},1032,["class","href","target"])),[[l,[{clickName:c.iconAltText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:c.iconAltText,type:e.isUrlMatchCurrentHostname(c.iconUrl)?"other":"exit"}]]])]))),128))])],2)])]))]),createBaseVNode("div",_hoisted_21$l,[createBaseVNode("div",_hoisted_22$k,[createBaseVNode("div",_hoisted_23$h,[createBaseVNode("div",_hoisted_24$g,[e.props.exerciseYourRightsTab.
1167image1.path?withDirectives((openBlock(),createBlock(i,{key:0,href:e.props.exerciseYourRightsTab.image1.url,target:e.props.exerciseYourRightsTab.image1.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",class:"rights-logo-anchor",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("img",{src:e.props.exerciseYourRightsTab.image1.path,class:"rights-logo h-20 w-auto inline-block",loading:"lazy",alt:e.props.exerciseYourRightsTab.image1.altText},null,8,_hoisted_25$f)]),_:1},8,["href","target"])),[[l,[{clickName:e.props.exerciseYourRightsTab.image1.altText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:e.props.exerciseYourRightsTab.image1.altText,type:e.isUrlMatchCurrentHostname(e.props.exerciseYourRightsTab.image1.url)?"other":"exit"}]]]):createCommentVNode("",!0),e.props.exerciseYourRightsTab.image2.path?withDirectives((openBlock(),createBlock(i,{key:1,href:e.props.exerciseYourRightsTab.image2.url,target:e.props.exerciseYourRightsTab.image2.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",class:"rights-logo-anchor",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("img",{src:e.props.exerciseYourRightsTab.image2.path,class:"rights-logo h-20 w-auto inline-block",loading:"lazy",alt:e.props.exerciseYourRightsTab.image2.altText},null,8,_hoisted_26$f)]),_:1},8,["href","target"])),[[l,[{clickName:e.props.exerciseYourRightsTab.image2.altText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:e.props.exerciseYourRightsTab.image2.altText,type:e.isUrlMatchCurrentHostname(e.props.exerciseYourRightsTab.image2.url)?"other":"exit"}]]]):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_27$e,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.subsidiaryTab.subsidiaryList,c=>withDirectives((openBlock(),createBlock(i,{key:c.imageAltText,href:c.imageUrl,target:c.isOpenNewTab?"_blank":"_self",class:normalizeClass(["partner-logo inline-block",{hidden:e.isMobileViewport&&c.isHideInMobile||!e.isMobileViewport&&c.isHideInDesktop}]),showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("img",{src:c.image,class:"h-[40px] w-auto inline-block",loading:"lazy",alt:c.imageAltText},null,8,_hoisted_28$d)]),_:2},1032,["href","target","class"])),[[l,[{clickName:c.imageAltText,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:c.imageAltText,type:e.isUrlMatchCurrentHostname(c.imageUrl)?"other":"exit"}]]])),128))]),withDirectives(createBaseVNode("p",_hoisted_29$d,null,512),[[d,e.props.copyrightTab.text]])])]),createBaseVNode("div",_hoisted_30$d,[createBaseVNode("div",_hoisted_31$d,[createBaseVNode("div",_hoisted_32$d,[createBaseVNode("div",_hoisted_33$9,[createBaseVNode("ul",_hoisted_34$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.tncTab.tncList,(c,u)=>(openBlock(),createElementBlock("li",{key:`${c.title}-${u}`,class:"copyright-list inline-block"},[withDirectives((openBlock(),createBlock(i,{class:"copyright-link text-neutral-white-base hover:text-primary-blue-extralight",href:c.titleUrl,target:c.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("span",_hoisted_35$9,toDisplayString(c.title),1)]),_:2},1032,["href","target"])),[[l,[{clickName:c.title,clickComponentType:"URL",componentName:"AppFooter",componentID:e.props.componentIdAA},{name:c.title,type:e.isUrlMatchCurrentHostname(c.titleUrl)?"other":"exit"}]]])]))),128))]),withDirectives(createBaseVNode("p",_hoisted_36$8,null,512),[[d,e.props.copyrightTab.text]])])])])])])])],2)])):createCommentVNode("",!0),e.isEditorMode&&e.props.generalTab.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_37$8,[createBaseVNode("p",null,[o[1]||(o[1]=createTextVNode("Hidden in: ")),e.props.generalTab.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_38$8,"Desktop")):createCommentVNode("",!0),o[2]||(o[2]=createTextVNode()),e.props.generalTab.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_39$6,", Mobile")):createCommentVNode("",!0)])])):createCommentVNode("",!0)],64)),createVNode(e.OverlayDrawer,{isVisible:e.showOverlay,"onUpdate:isVisible":o[0]||(o[0]=c=>{e.showOverlay=c,t.showFloatingActionList=c})},{default:withCtx(()=>[createBaseVNode("div",_hoisted_40$6,[createBaseVNode("div",_hoisted_41$
11676,[o[3]||(o[3]=createBaseVNode("img",{src:_imports_1,class:"h-6 >md:hidden"},null,-1)),createBaseVNode("button",{type:"button",class:"w-8 h-8 my-6 p-0 md:h-6 md:w-6 md:my-4 flex items-center justify-center",onClick:e.resetOverlayValues},[createVNode(s,{class:"w-2.5"})])]),createVNode(e.ExperienceFragment,{class:"flex-grow",xfPath:e.props.newsletterTab.newsletterXfPath},null,8,["xfPath"])])]),_:1},8,["isVisible"])],64)}const AppFooter=_export_sfc(_sfc_main$1Y,[["render",_sfc_render$1Y],["__scopeId","data-v-d394586e"],["__file","AppFooter.vue"]]),AppFooter$1=Object.freeze(Object.defineProperty({__proto__:null,default:AppFooter},Symbol.toStringTag,{value:"Module"})),__default__$1W={name:"HtmlComponent",inheritAttrs:!1},_sfc_main$1X=Object.assign(__default__$1W,{props:{componentLabel:{type:String,default:""},htmlAndCSS:{type:String,default:""},javascript:{type:String,default:""},externalScript:{type:[Array,String],default:""},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null);onMounted(()=>{if(!a.value)return;(Array.isArray(e.externalScript)?e.externalScript:e.externalScript.split(/[\r?\n,]/).filter(Boolean).map(c=>c.trim())).forEach(c=>{const u=document.createElement("script");u.setAttribute("src",c.trim()),a.value.appendChild(u)});const d=document.createElement("script");d.innerHTML=e.javascript,a.value.appendChild(d)});const{isEditorMode:i}=useGlobalAEMState$1(),s={props:e,emit:n,rootEl:a,isEditorMode:i,get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$2q={key:0,class:"generic-container"},_hoisted_2$1N={key:0,class:"p-2 rounded bg-secondary-teal-dark text-white"},_hoisted_3$1m={key:1,class:"py-5 text-center"},_hoisted_4$1d={key:0},_hoisted_5$17={key:1},_hoisted_6$13=["innerHTML"];function _sfc_render$1X(t,o,r,e,n,a){return openBlock(),createElementBlock(Fragment,null,[e.isEditorMode?(openBlock(),createElementBlock("div",_hoisted_1$2q,[e.props.componentLabel?(openBlock(),createElementBlock("h4",_hoisted_2$1N," HTML Component: "+toDisplayString(e.props.componentLabel),1)):createCommentVNode("",!0),e.isEditorMode&&e.props.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_3$1m,[createBaseVNode("p",null,[o[0]||(o[0]=createTextVNode("Hidden in: ")),e.props.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_4$1d,"Desktop")):createCommentVNode("",!0),o[1]||(o[1]=createTextVNode()),e.props.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_5$17,", Mobile")):createCommentVNode("",!0)])])):createCommentVNode("",!0)])):createCommentVNode("",!0),e.isMobileViewport&&!e.props.isHideInMobile||!e.isMobileViewport&&!e.props.isHideInDesktop?(openBlock(),createElementBlock("div",mergeProps({key:1,ref:"rootEl",class:"HtmlComponent"},t.$attrs),[createBaseVNode("div",{class:"inner-content",innerHTML:r.htmlAndCSS},null,8,_hoisted_6$13)],16)):createCommentVNode("",!0)],64)}const HtmlComponent=_export_sfc(_sfc_main$1X,[["render",_sfc_render$1X],["__scopeId","data-v-696677e3"],["__file","HtmlComponent.vue"]]),HtmlComponent$1=Object.freeze(Object.defineProperty({__proto__:null,default:HtmlComponent},Symbol.toStringTag,{value:"Module"})),__default__$1V={name:"ChatBot"},_sfc_main$1W=Object.assign(__default__$1V,{props:{urlCss:{type:String,default:"https://www.malaysiaairlines.com/content/dam/mas/chatbot/prod/main.css"},urlJs:{type:String,default:"https://www.malaysiaairlines.com/content/dam/mas/chatbot/prod/main.js"}},emits:["on-chatbot-close"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=s=>{s.target.classList.contains("close-icon")&&n("on-chatbot-close",!1)};onMounted(()=>{if(document.querySelector('[href="https://www.malaysiaairlines.com/content/dam/mas/chatbot/prod/main.css"]'))return;const s=document.getElementsByTagName("head")[0],l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.href=e.urlCss,s.appendChild(l)});const i={props:e,emit:n,onChatBotRootClick:a,HtmlComponent};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}});function _sfc_render$1W(t,o,r,e,n,a){return openBlock(),createElementBlock("div",{id:"mag-bot",onClick:e.onChatBotRootClick},[createVNode(e.HtmlComponent,{externalScript:[e.props.urlJs]},null,8,["externalScript"])])}const ChatBot=_export_sfc(_sfc_main$1W,[["render",_sfc_render$1W],["__scopeId","data-v-4ae9bb87"],["__file","ChatBot.vue"]]),__default__$1U={name:"ScriptExecutor",inheritAttrs:!1},_sfc_main$1V=Object.assign(__default__$1U,{props:{description:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1}},setup(t,{expose:o}){o();const r=ref$1(null),e=[],n=[],a=t;onMounted(()=>
1167{if(!(!r.value||!document.querySelector(".script-executor-container"))&&a.description.trim())try{const l=new DOMParser().parseFromString(a.description,"text/html");Array.from(l.body.childNodes).forEach(d=>{r.value.appendChild(d.cloneNode(!0))}),l.querySelectorAll("style").forEach(d=>{const c=document.createElement("style");c.textContent=d.textContent,document.body.appendChild(c),e.push(c)}),l.querySelectorAll("script").forEach(d=>{const c=document.createElement("script");d.src?c.src=d.src:c.textContent=d.textContent,document.body.appendChild(c),n.push(c)})}catch(s){console.error("Error while injecting HTML:",s)}}),onUnmounted(()=>{e.forEach(s=>s.remove()),n.forEach(s=>s.remove())});const i={containerRef:r,styles:e,scripts:n,props:a,get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$2p={key:0,ref:"containerRef",class:"script-executor-container"};function _sfc_render$1V(t,o,r,e,n,a){return e.isMobileViewport&&!r.isHideInMobile||!e.isMobileViewport&&!r.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_1$2p,null,512)):createCommentVNode("",!0)}const ScriptExecutor=_export_sfc(_sfc_main$1V,[["render",_sfc_render$1V],["__file","ScriptExecutor.vue"]]),ScriptExecutor$1=Object.freeze(Object.defineProperty({__proto__:null,default:ScriptExecutor},Symbol.toStringTag,{value:"Module"})),__default__$1T={name:"FloatingWidget",inheritAttrs:!1,editConfig:{emptyLabel:"Floating Widget",resourceType:"mh/components/floating-widget",isEmpty(t){return!0}}},_sfc_main$1U=Object.assign(__default__$1T,{props:{newsletterXfPath:{type:String,default:""},infoLabel:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},widgetList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,e=useRouter$1(),n=useRoute$1(),a=ref$1(window.location.hash=="#manage-subscription"),i=ref$1(!1),s=ref$1(!1),l=ref$1(!1),d=ref$1(!1),c=ref$1(!1),u=ref$1(),f=ref$1(!1),m=ref$1(),b=()=>{i.value=!i.value,s.value=!1},y=()=>{i.value&&(s.value=!1),i.value||(s.value=!0)},_=()=>{s.value=!1},S=()=>{l.value=!0,a.value=!0,e.replace({query:{...n.query,acemail:void 0,id:void 0}})},C=()=>{d.value=!0,a.value=!0,e.replace({query:{...n.query,acemail:void 0,id:void 0}})};useDisableScroll(i,{useOverflowHiddenMethod:!0});const T=N=>{i.value=N},x=()=>{a.value=!1,i.value=!1,l.value=!1,d.value=!1},k=()=>{x();const N=r.widgetList,F=window.location.href;N.find(A=>A.function==="free-component"&&A.componentIdAA&&F.includes(A.componentIdAA))?(a.value=!0,d.value=!0):window.location.hash=="#newsletter-sign-up"&&(a.value=!0,l.value=!0)},E=()=>{if(r.widgetList.length===0)return;const N=r.widgetList.find(F=>F.function==="free-component");if(N){const{experienceFragmentPath:F}=N;u.value=F}},w=N=>{c.value=!0,a.value=!1,i.value=!1,m.value=N,window.adaEmbed.toggle()};onMounted(()=>{k(),E(),f.value=r.widgetList.some(N=>N.function==="chatbotNew"),m.value=r.widgetList.find(N=>N.function==="chatbotNew")?r.widgetList.find(N=>N.function==="chatbotNew").scriptChatBot:""});const D={props:r,router:e,route:n,showOverlay:a,showFloatingActionList:i,showMainLabel:s,showNewsLetter:l,showFreeComponent:d,showChatBot:c,experienceFragmentPath:u,insertChatBotScript:f,chatBotScript:m,onClickButton:b,onHoverInMainBtn:y,onHoverOutMainBtn:_,openNewsletterOverlay:S,openFreeComponentOverlay:C,handleFloatingWidgetVisiblity:T,resetOverlayValues:x,activateWidgetSelectedInUrl:k,getExperienceFragmentPathForFreeComponent:E,handleChatBot:w,get useDisableScroll(){return useDisableScroll},get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,OverlayDrawer,FontAwesomeLazy,get useRouter(){return useRouter$1},get useRoute(){return useRoute$1},ChatBot,ScriptExecutor};return Object.defineProperty(D,"__isScriptSetup",{enumerable:!1,value:!0}),D}}),_hoisted_1$2o={key:0,class:"FloatingActionList"},_hoisted_2$1M={key:0,class:"FloatingActionLabel","aria-hidden":"true"},_hoisted_3$1l=["aria-label"],_hoisted_4$1c=["src"],_hoisted_5$16=["aria-label"],_hoisted_6$12=["src"],_hoisted_7$11=["aria-label","onClick"],_hoisted_8$Z=["src"],_hoisted_9$T=["src"],_hoisted_10$K={class:"FloatingActionButton main flex"},_hoisted_11$H={key:0,class:"FloatingActionLabel","aria-hidden":"true"},_hoisted_12$F=["aria-label"],_hoisted_13$B={key:1,class:"floating-widget-backdrop fixed inset-0 bg-neutral-white-base bg-opacity-90"},_hoisted_14$A={class:"h-full"}
1167,_hoisted_15$y={class:"drawer-header"};function _sfc_render$1U(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink"),s=__unplugin_components_2$6,l=__unplugin_components_1$c,d=__unplugin_components_0$i,c=resolveDirective("aa"),u=resolveDirective("button-press");return openBlock(),createElementBlock(Fragment,null,[!e.props.isHideInDesktop&&!e.isMobileViewport||!e.props.isHideInMobile&&e.isMobileViewport?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["FloatingWidget",{listActive:e.showFloatingActionList}])},[e.insertChatBotScript?(openBlock(),createBlock(e.ScriptExecutor,{key:0,description:e.chatBotScript},null,8,["description"])):createCommentVNode("",!0),createVNode(Transition,{name:"floating-widget",appear:""},{default:withCtx(()=>[e.showFloatingActionList?(openBlock(),createElementBlock("div",_hoisted_1$2o,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.widgetList,(f,m)=>(openBlock(),createElementBlock("div",{key:m,class:"FloatingActionButton item"},[f.buttonLabel?(openBlock(),createElementBlock("p",_hoisted_2$1M,toDisplayString(f.buttonLabel),1)):createCommentVNode("",!0),createBaseVNode("div",null,[f.function==="free-component"?withDirectives((openBlock(),createElementBlock("button",{key:0,class:"btn-generic icon-wrapper",type:"button","aria-label":f.buttonLabel,onClick:e.openFreeComponentOverlay},[f.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,iconId:f.iconId,class:"icon","aria-hidden":"true"},null,8,["iconId"])):(openBlock(),createElementBlock("img",{key:1,src:f.iconImage,class:"social-icons-image w-4.5 h-4.5","aria-hidden":"true"},null,8,_hoisted_4$1c))],8,_hoisted_3$1l)),[[c,[{clickName:f.buttonLabel,clickComponentType:"Button",componentName:"FloatingWidget",componentID:e.props.componentIdAA},{name:f.buttonLabel,type:"other"}]],[u]]):createCommentVNode("",!0)]),f.function==="newsletter"?withDirectives((openBlock(),createElementBlock("button",{key:1,class:"btn-generic icon-wrapper",type:"button","aria-label":f.buttonLabel,onClick:e.openNewsletterOverlay},[f.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,iconId:f.iconId,class:"icon","aria-hidden":"true"},null,8,["iconId"])):(openBlock(),createElementBlock("img",{key:1,src:f.iconImage,class:"social-icons-image w-4.5 h-4.5","aria-hidden":"true"},null,8,_hoisted_6$12))],8,_hoisted_5$16)),[[c,[{clickName:f.buttonLabel,clickComponentType:"Button",componentName:"FloatingWidget",componentID:e.props.componentIdAA},{name:f.buttonLabel,type:"other"}]],[u]]):f.function==="chatbot"?(openBlock(),createBlock(e.ChatBot,{key:2,urlJs:f.urlJs,urlCss:f.urlCss,onOnChatbotClose:e.handleFloatingWidgetVisiblity},null,8,["urlJs","urlCss"])):f.function==="chatbotNew"?withDirectives((openBlock(),createElementBlock("div",{key:3,class:"cursor-pointer",type:"button","aria-label":f.buttonLabel,onClick:b=>e.handleChatBot(f.scriptChatBot)},[f.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,iconId:f.iconId,class:"icon","aria-hidden":"true"},null,8,["iconId"])):(openBlock(),createElementBlock("img",{key:1,src:f.iconImage,class:"mavis-icon","aria-hidden":"true"},null,8,_hoisted_8$Z))],8,_hoisted_7$11)),[[u]]):f.function==="link-to-url"?(openBlock(),createBlock(i,{key:4,href:f.url,target:f.openInNewTab==="true"?"_blank":"_self",class:normalizeClass([{"disable-widget":f.url===void 0},"btn-generic icon-wrapper"]),rel:"noopener noreferrer","aria-label":f.buttonLabel,showExternalIcon:!1},{default:withCtx(()=>[f.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,iconId:f.iconId,class:"icon","aria-hidden":"true"},null,8,["iconId"])):(openBlock(),createElementBlock("img",{key:1,src:f.iconImage,class:"social-icons-image w-4.5 h-4.5","aria-hidden":"true"},null,8,_hoisted_9$T))]),_:2},1032,["href","target","class","aria-label"])):createCommentVNode("",!0)]))),128))])):createCommentVNode("",!0)]),_:1}),createBaseVNode("div",_hoisted_10$K,[createVNode(Transition,{name:"floating-widget",appear:""},{default:withCtx(()=>[e.showMainLabel&&!e.isMobileViewport&&e.props.infoLabel?(openBlock(),createElementBlock("p",_hoisted_11$H,toDisplayString(e.props.infoLabel),1)):createCommentVNode("",!0)]),_:1}),withDirectives((openBlock(),createElementBlock("button",{type:"button",class:"icon-wrapper","aria-label":e.props.infoLabel,onClick:e.onClickButton,onMouseenter:e.onHoverInMainBtn,onMouseleave:e.onHoverOutMainBtn},[e.showFloatingActionList?(openBlock(),createBlock(s,{key:0,class:"icon","aria-hidden":"true"})):(openBlock(),createBlock(l,{key:1,class:"icon","aria-hidden":"true"}))],40,_hoisted_12$F)),[[c,[{clickName:e.props.infoLabel,clickComponentType:"Button",componentName:"FloatingWidget",componentID:e.props.componentIdAA},{name:e.props.infoLabel,type:"other"}]]])])],2)):createCommentVNode("",!0),e.showFloatingActionList?(openBlock(),createElementBlock("div",_hoisted_13$B)):createCommentVNode("",!0),createVNode(e.OverlayDrawer,{isVisible:e.showOverlay,"onUpdate:isVisible":o[0]||(o[0]=f=>{e.showOverlay=f,e.showFloatingActionList=f})},{default:withCtx(()=>[createBaseVNode("div",_hoisted_14$A,[createBaseVNode("div",_hoisted_15$y,[o[1]||(o[1]=createBaseVNode("img",{src:_imports_1,class:"h-6 >md:hidden"},null,-1)),createBaseVNode("button",{type:"button",class:"w-8 h-8 my-6 p-0 md:h-6 md:w-6 md:my-4 flex items-center justify-center",onClick:e.resetOverlayValues},[createVNode(d,{class:"w-2.5"})])]),e.showNewsLetter?(openBlock(),createBlock(e.ExperienceFragment,{key:0,class:"flex-grow",xfPath:e.props.newsletterXfPath},null,8,["xfPath"])):createCommentVNode("",!0),e.showFreeComponent?(openBlock(),createBlock(e.ExperienceFragment,{key:1,class:"flex-grow ul-align-center",xfPath:e.experienceFragmentPath},null,8,["xfPath"])):createCommentVNode("",!0)])]),_:1},8,["isVisible"])],64)}
1167const FloatingWidget=_export_sfc(_sfc_main$1U,[["render",_sfc_render$1U],["__scopeId","data-v-051aa21f"],["__file","FloatingWidget.vue"]]),FloatingWidget$1=Object.freeze(Object.defineProperty({__proto__:null,default:FloatingWidget},Symbol.toStringTag,{value:"Module"})),_hoisted_1$2n={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$w(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2n,o[0]||(o[0]=[createBaseVNode("path",{d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM176 168V344C176 352.7 180.7 360.7 188.3 364.9C195.8 369.2 205.1 369 212.5 364.5L356.5 276.5C363.6 272.1 368 264.4 368 256C368 247.6 363.6 239.9 356.5 235.5L212.5 147.5C205.1 142.1 195.8 142.8 188.3 147.1C180.7 151.3 176 159.3 176 168V168z"},null,-1)]))}const __unplugin_components_1$9=markRaw({name:"fas-circle-play",render:render$w}),_hoisted_1$2m={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$v(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2m,o[0]||(o[0]=[createBaseVNode("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM224 191.1v128C224 337.7 209.7 352 192 352S160 337.7 160 320V191.1C160 174.3 174.3 160 191.1 160S224 174.3 224 191.1zM352 191.1v128C352 337.7 337.7 352 320 352S288 337.7 288 320V191.1C288 174.3 302.3 160 319.1 160S352 174.3 352 191.1z"},null,-1)]))}const __unplugin_components_0$e=markRaw({name:"fas-circle-pause",render:render$v}),_hoisted_1$2l={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$u(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2l,o[0]||(o[0]=[createBaseVNode("path",{d:"M6.625 215.5l168-176C179.2 34.7 185.4 32.02 192 32.02s12.84 2.688 17.38 7.438l168 176c9.125 9.594 8.781 24.78-.8125 33.94c-9.5 9.156-24.75 8.812-33.94-.8125L216 115.9V456c0 13.25-10.75 23.1-23.1 23.1S168 469.3 168 456V115.9l-126.6 132.7C32.22 258.2 16.97 258.5 7.438 249.4C-2.156 240.2-2.5 225 6.625 215.5z"},null,-1)]))}const __unplugin_components_1$8=markRaw({name:"far-arrow-up",render:render$u}),_hoisted_1$2k={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$t(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2k,o[0]||(o[0]=[createBaseVNode("path",{d:"M377.4 296.6l-168 176C204.8 477.3 198.6 480 192 480s-12.84-2.688-17.38-7.438l-168-176C-2.5 286.1-2.156 271.8 7.438 262.6c9.5-9.156 24.75-8.812 33.94 .8125L168 396.1V56.02c0-13.25 10.75-24.01 23.1-24.01S216 42.77 216 56.02v340.1l126.6-132.7c9.156-9.625 24.41-9.969 33.94-.8125C386.2 271.8 386.5 286.1 377.4 296.6z"},null,-1)]))}const __unplugin_components_0$d=markRaw({name:"far-arrow-down",render:render$t}),__default__$1S={name:"Parsys",inheritAttrs:!1},_sfc_main$1T=Object.assign(__default__$1S,{props:{component:{type:Object,required:!0},label:{type:String,default:""},visible:{type:Boolean,default:!0},forceVisibleInEditor:{type:Boolean,default:!0},index:{type:Number,default:null},themeColor:{type:String,default:null},renderIndicator:{type:Boolean,default:!0}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,{isEditorMode:a}=useGlobalAEMState$1(),i={props:e,emit:n,isEditorMode:a,get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$2j=["data-index","data-theme-color"],_hoisted_2$1L={class:"label flex items-center"},_hoisted_3$1k=["data-index","data-theme-color"],_hoisted_4$1b={class:"label flex items-center"};function _sfc_render$1T(t,o,r,e,n,a){const i=__unplugin_components_0$d,s=__unplugin_components_1$8;return openBlock(),createElementBlock(Fragment,null,[e.isEditorMode&&e.props.label&&e.props.renderIndicator?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"parsys-section-indicator mt-4","data-index":r.index,"data-theme-color":r.themeColor},[createBaseVNode("span",_hoisted_2$1L,[createVNode(i,{class:"mr-1.5 fill-current"}),createBaseVNode("span",null,toDisplayString(e.props.label),1),createVNode(i,{class:"ml-1.5 fill-current"})])],8,_hoisted_1$2j)),[[vShow,e.props.visible||(e.props.forceVisibleInEditor?e.isEditorMode:!1)]]):createCommentVNode("",!0),withDirectives((openBlock(),createBlock(resolveDynamicComponent(e.props.component.vNode),normalizeProps(guardReactiveProps({...e.props.component.vNodeProps,...t.$attrs})),null,16)),[[vShow,e.props.visible||(e.props.forceVisibleInEditor?e.isEditorMode:!1)]]),e.isEditorMode&&e.props.label&&e.props.renderIndicator?withDirectives((openBlock(),createElementBlock("div",{key:1,class:"parsys-section-indicator mb-4","data-index":r.index,"data-theme-color":r.themeColor},[createBaseVNode("span",_hoisted_4$1b,[createVNode(s,{class:"mr-1.5 fill-current"}),createBaseVNode("span",null,toDisplayString(e.props.label),1),createVNode(s,{class:"ml-1.5 fill-current"})])],8,_hoisted_3$1k)),[[vShow,e.props.visible||(e.props.forceVisibleInEditor?e.isEditorMode:!1)]]):createCommentVNode("",!0)],64)}const Parsys=_export_sfc(_sfc_main$1T,[["render",_sfc_render$1T],["__file","Parsys.vue"]]),__default__$1R={name:"Carousel",editConfig:{emptyLabel:"Carousel",isEmpty(t){switch(t.carouselType){case"carousel-banner":return t.totalNumOfPhBanner===0;case"standard-carousel":return t.totalNumOfPhStandard===0}return!0}},inheritAttrs:!1},_sfc_main$1S=Object.assign(__default__$1R,{props:{carouselType:{type:String,default:""},isHideInMobile:{type:Boolean,default:!1},isHideInDesktop:{type:Boolean,default:!1},totalNumOfPhBanner:{type:Number,default:0},totalNumOfPhStandard:{type:Number,default:0},numberOfPhStandard:{type:Number,default:0},carouselTimer:{type:Number,default:1},enableAutoplay:{type:Boolean,default:!1},enablePauseButton:{type:Boolean,default:!1}},setup(t,{expose:o}){o();const r=t,{isEditorMode:e}=useGlobalAEMState$1(),n=ref$1(null),a=ref$1(null),i=window.siteName,s=ref$1(!1),l=ref$1(null),d=ref$1(null),c=ref$1(!1);r.enableAutoplay&&(c.value={delay:r.carouselTimer*1e3,disableOnInteraction:!1});const u=ref$1({clickable:!0,renderBullet:function(_,S){return`<span class="${S}"></span>`},bulletClass:`swiper-pagination-bullet ${r.carouselType!=="carousel-banner"?"standard-pagination-carousel":"banner-paginaton-carousel"}`,clickableClass:`swiper-pagination-clickable ${r.carouselType!=="carousel-banner"?"standard-swiper-pagination-wrapper":"banner-swiper-pagination-wrapper"}`}),f=computed(()=>{const _=S=>{var x;const C=(x=S==null?void 0:S.component)==null?void 0:x.vNodeProps,T={generalHeroBanner:"sortingOrder",videoBanner:"vSortingOrder"};
1167return Number(C==null?void 0:C[T[C==null?void 0:C.type]])??0};return e.value?lodashExports.orderBy(Array(r.totalNumOfPhBanner).fill().map((S,C)=>({component:getCompositeComponent({type:"mh/components/banner",componentKey:`banner-parsys-${C}`})})),_,["asc"]):lodashExports.orderBy(Array(r.totalNumOfPhBanner).fill().map((S,C)=>({component:getCompositeComponent({type:"mh/components/banner",componentKey:`banner-parsys-${C}`})})).filter(S=>!S.component.vNodeProps.isDisableBanner),_,["asc"])}),m=computed(()=>Array(r.totalNumOfPhStandard).fill().map((_,S)=>({component:getCompositeComponent({type:"mh/components/mh-layout-container",componentKey:`mh-layout-container-parsys-${S}`})}))),b=_=>{var S,C,T,x,k,E,w,D,N,F,V,A;s.value=_,c.value={delay:r.carouselTimer*1e3,disableOnInteraction:!1},_?r.carouselType==="carousel-banner"?(T=(C=(S=l.value)==null?void 0:S.swiperInstance)==null?void 0:C.autoplay)==null||T.start():r.carouselType==="standard-carousel"&&((E=(k=(x=d.value)==null?void 0:x.swiperInstance)==null?void 0:k.autoplay)==null||E.start()):r.carouselType==="carousel-banner"?(N=(D=(w=l.value)==null?void 0:w.swiperInstance)==null?void 0:D.autoplay)==null||N.stop():r.carouselType==="standard-carousel"&&((A=(V=(F=d.value)==null?void 0:F.swiperInstance)==null?void 0:V.autoplay)==null||A.stop())};f.value,m.value,onMounted(()=>{r.enableAutoplay&&r.enablePauseButton?s.value=!0:(!r.enableAutoplay&&r.enablePauseButton||!r.enableAutoplay&&!r.enablePauseButton)&&(s.value=!1)});const y={props:r,isEditorMode:e,swiperBtnPrevEl:n,swiperBtnNextEl:a,siteName:i,showPlayPauseButton:s,carouselBanner:l,carouselStandard:d,autoplay:c,pagination:u,bannerParsys:f,standardParsys:m,handleAutoplayEvent:b,get getCompositeComponent(){return getCompositeComponent},Parsys,VueSwiper,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},get _orderBy(){return lodashExports.orderBy}};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),_hoisted_1$2i={key:0,class:"generic-container py-10 text-center"},_hoisted_2$1K={key:0},_hoisted_3$1j={key:1},_hoisted_4$1a=["data-use-theme"],_hoisted_5$15={key:0},_hoisted_6$11=["aria-label"],_hoisted_7$10=["aria-label"],_hoisted_8$Y={key:3,class:"custom-navigation-container generic-container"},_hoisted_9$S=["aria-label"],_hoisted_10$J=["aria-label"];function _sfc_render$1S(t,o,r,e,n,a){const i=__unplugin_components_0$e,s=__unplugin_components_1$9,l=resolveDirective("button-press");return e.isEditorMode&&e.props.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_1$2i,[createBaseVNode("p",null,[o[2]||(o[2]=createTextVNode("Hidden in: ")),e.props.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_2$1K,"Desktop")):createCommentVNode("",!0),o[3]||(o[3]=createTextVNode()),e.props.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_3$1j,", Mobile")):createCommentVNode("",!0)])])):(openBlock(),createElementBlock(Fragment,{key:1},[e.isMobileViewport&&!e.props.isHideInMobile||!e.isMobileViewport&&!e.props.isHideInDesktop?(openBlock(),createElementBlock("div",{key:0,class:"Carousel relative","data-use-theme":e.siteName},[e.props.enablePauseButton?(openBlock(),createElementBlock("div",_hoisted_5$15,[e.showPlayPauseButton?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"button icon-wrapper","aria-label":t.$t("Carousel pause button"),onClick:o[0]||(o[0]=d=>e.handleAutoplayEvent(!1))},[createVNode(i,{class:"fill-white","aria-hidden":"true",title:"Pause"})],8,_hoisted_6$11)):createCommentVNode("",!0),e.showPlayPauseButton?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,type:"button",class:"button icon-wrapper","aria-label":t.$t("Carousel play button"),onClick:o[1]||(o[1]=d=>e.handleAutoplayEvent(!0))},[createVNode(s,{class:"fill-white","aria-hidden":"true",title:"Play"})],8,_hoisted_7$10))])):createCommentVNode("",!0),e.props.carouselType==="carousel-banner"?(openBlock(),createBlock(e.VueSwiper,{key:1,ref:"carouselBanner",dormantMode:e.isEditorMode||e.bannerParsys.length==1,slidesPerView:1,pagination:e.pagination,navigation:{nextEl:e.swiperBtnNextEl,prevEl:e.swiperBtnPrevEl},loop:!0,autoplay:e.autoplay,class:"banner-carousel-swiper"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.bannerParsys,(d,c)=>(openBlock(),createElementBlock("div",{key:`banner-carousel-${c}`,class:"banner-carousel-parsys-wrapper"},[(openBlock(),createBlock(e.Parsys,{key:c,index:c,component:d.component,label:`Carousel Content ${c}`},null,8,["index","component","label"]))]))),128))]),_:1},8,["dormantMode","pagination","navigation","autoplay"])):(openBlock(),createBlock(e.VueSwiper,{key:2,ref:"carouselStandard",dormantMode:e.isEditorMode||e.standardParsys.length===1,slidesPerView:1.1,spaceBetween:16,pagination:e.pagination,navigation:!e.isMobileViewport,loop:!0,breakpoints:{1024:{slidesPerView:e.props.numberOfPhStandard===1?1:e.props.numberOfPhStandard+.2,slidesPerGroup:e.props.numberOfPhStandard===3?3:e.props.numberOfPhStandard===2?2:1}},autoplay:e.autoplay,class:"standard-carousel-swiper"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.standardParsys,(d,c)=>(openBlock(),createElementBlock("div",{key:`standard-carousel-${c}`,class:"standard-carousel-parsys-wrapper"},[(openBlock(),createBlock(e.Parsys,{key:c,index:c,component:d.component,label:`Carousel Content ${c}`},null,8,["index","component","label"]))]))),128))]),_:1}
1167,8,["dormantMode","pagination","navigation","breakpoints","autoplay"])),e.props.carouselType==="carousel-banner"&&e.bannerParsys.length>1?(openBlock(),createElementBlock("div",_hoisted_8$Y,[withDirectives(createBaseVNode("button",{ref:"swiperBtnPrevEl",type:"button",class:"swiper-button-prev","aria-label":t.$t("Previous slide")},null,8,_hoisted_9$S),[[l]]),withDirectives(createBaseVNode("button",{ref:"swiperBtnNextEl",type:"button",class:"swiper-button-next","aria-label":t.$t("Next slide")},null,8,_hoisted_10$J),[[l]])])):createCommentVNode("",!0)],8,_hoisted_4$1a)):createCommentVNode("",!0)],64))}const Carousel=_export_sfc(_sfc_main$1S,[["render",_sfc_render$1S],["__scopeId","data-v-fb134810"],["__file","Carousel.vue"]]),Carousel$1=Object.freeze(Object.defineProperty({__proto__:null,default:Carousel},Symbol.toStringTag,{value:"Module"})),__default__$1Q={name:"HeroBanner",inheritAttrs:!1},_sfc_main$1R=Object.assign(__default__$1Q,{props:{desktopImgSrc:{type:String,default:""},mobileImgSrc:{type:String,default:""},desktopImageAltText:{type:String,default:""},mobileImageAltText:{type:String,default:""},bgColor:{type:String,default:""},bgStyle:{type:String,default:""},desktopImgHeight:{type:String,default:"medium"},mobileImgHeight:{type:String,default:"medium"},placeholderHorizontalAlignment:{type:String,default:"center"},placeholderVerticalAlignment:{type:String,default:"middle"},useOverlay:{type:String,default:""},overlayOpacityLevel:{type:String,default:"70"},useTagTheme:{type:String,default:"white-text-blue-background"},bottomCurve:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""},tagList:{type:Array,default:()=>[]},url:{type:String,default:""},openNewTab:{type:Boolean,default:!1},imgSize:{type:String,default:""},mhhTagMultiList:{type:Array,default:()=>[]},mhhTagPlaceholderPosition:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,e={small:"408",medium:"550",large:"768"},n={small:"274",medium:"338",large:"736"},a={left:"w-10/12 >md:justify-start",center:"placeholder-wide >md:justify-center",right:"w-10/12 >md:justify-end"},i={top:">md:items-start",middle:">md:items-center",bottom:">md:items-end"},s=computed(()=>isMobileViewport.value&&r.mobileImgSrc?r.mobileImgSrc:r.desktopImgSrc),l=computed(()=>r.bgStyle==="mag-midnightgreen-dark"?"var(--primary-midnightgreen-dark)":r.bgStyle==="blue"?"var(--primary-blue-base)":r.bgStyle==="teal"?"var(--secondary-teal-base)":"transparent"),d=computed(()=>r.tagList.filter(f=>f.ghTagName!==null)),c=computed(()=>r.url?{is:AppHyperlink,href:r.url,target:r.openNewTab?"_blank":"_self"}:{is:"div"}),u={props:r,bannerSizeDesktopMap:e,bannerSizeMobileMap:n,placeholderHorizontalAlignmentMap:a,placeholderVerticalAlignmentMap:i,computedImgSrcBg:s,computedBgStyle:l,computedTagList:d,wrapperAttrs:c,CTAButton,get isMobileViewport(){return isMobileViewport},AppHyperlink};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$2h=["src","alt"],_hoisted_2$1J={key:0,class:"sr-only"},_hoisted_3$1i={key:0,class:"md:hidden"},_hoisted_4$19={key:1,class:">md:hidden"},_hoisted_5$14={key:0,class:"tag-group"},_hoisted_6$10={key:1,class:"mhh-pink-tag-wrapper"},_hoisted_7$$={key:2,class:"mhh-pink-tag-wrapper"},_hoisted_8$X={key:0,class:"curvy-section-breaker flex items-center z-20"};function _sfc_render$1R(t,o,r,e,n,a){const i=resolveDirective("html-sanitize");return openBlock(),createBlock(resolveDynamicComponent(e.props.url?e.AppHyperlink:"div"),mergeProps(e.wrapperAttrs,{class:["HeroBanner w-full",{"use-overlay":r.useOverlay,"overlay-opacity-50":r.overlayOpacityLevel==="50","overlay-opacity-30":r.overlayOpacityLevel==="30","overlay-type-full":r.useOverlay==="full","overlay-type-top-bottom-only":r.useOverlay==="top-bottom-only","use-theme-light":r.useTagTheme==="white-text-blue-background","use-theme-dark":r.useTagTheme==="blue-text-white-background","use-bottom-curve":r.bottomCurve,"use-batik-pattern":r.bgStyle,"use-brighter-batik-songket-blue-mag":e.props.bgStyle==="mag-midnightgreen-dark"}],style:{"--batik-bg-colour":r.bgStyle?e.computedBgStyle:"var(--primary-midnightgreen-dark)","background-color":r.bgColor},title:e.isMobileViewport?r.mobileImageAltText:r.desktopImageAltText}),{default:withCtx(()=>{var s;return[createBaseVNode("div",{class:normalizeClass(["HeroBanner-inner bg-center bg-cover relative",{"bg-size-contain":e.props.imgSize==="contain"}]),style:normalizeStyle({"background-image":e.props.imgSize==="contain"?"none":`url(${e.computedImgSrcBg})`,"--BannerSizeDesktop":`${e.bannerSizeDesktopMap[r.desktopImgHeight]}px`,"--BannerSizeMobile":`${e.bannerSizeMobileMap[r.mobileImgHeight]}px`})},[e.props.imgSize==="contain"?(openBlock(),createElementBlock("img",{key:0,src:e.computedImgSrcBg,class:"w-full",alt:e.isMobileViewport?r.mobileImageAltText:r.desktopImageAltText},null,8,_hoisted_1$2h)):createCommentVNode("",!0),createBaseVNode("div",{class:"generic-container",style:normalizeStyle({...e.props.imgSize==="contain"?{left:"50%"}:null,...e.props.imgSize==="contain"?{transform:"translateX(-50%)"}:null})},[createBaseVNode("div",{class:normalizeClass(["mx-auto h-full flex justify-center items-center",`${e.placeholderHorizontalAlignmentMap[r.placeholderHorizontalAlignment]} ${e.placeholderVerticalAlignmentMap[r.placeholderVerticalAlignment]}`])},[r.desktopImageAltText||r.mobileImageAltText?(openBlock(),createElementBlock("span",_hoisted_2$1J,[createTextVNode(toDisplayString(t.$t("Image of banner"))+": ",1),r.desktopImageAltText?(openBlock(),createElementBlock("span",_hoisted_3$1i,toDisplayString(r.desktopImageAltText),1)):createCommentVNode("",!0),o[0]||(o[0]=createTextVNode()),r.mobileImageAltText?(openBlock(),createElementBlock("span",_hoisted_4$19,toDisplayString(r.mobileImageAltText),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",{class:"banner-content-placeholder text-center",style:normalizeStyle({"text-align":!e.isMobileViewport&&r.placeholderHorizontalAlignment})},[(s=e.computedTagList)!=null&&s.length?(openBlock(),createElementBlock("div",_hoisted_5$14,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.computedTagList,(l,d)=>(openBlock(),createElementBlock("span",{key:`tagList-${d}`,class:"tag"},toDisplayString(l.ghTagName),1))),128))])):createCommentVNode("",!0),e.props.useTagTheme==="mhh-white-text-pink-background"&&e.props.mhhTagPlaceholderPosition==="above-component-placeholder"?(openBlock(),createElementBlock("div",_hoisted_6$10,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mhhTagMultiList,(l,d)=>withDirectives((openBlock(),createElementBlock("div",{key:d,class:"mhh-pink-tag"})),[[i,l.ghTagName]])),128))])):createCommentVNode("",!0),renderSlot(t.$slots,"default",{},void 0,!0),e.props.useTagTheme==="mhh-white-text-pink-background"&&e.props.mhhTagPlaceholderPosition==="below-component-placeholder"?(openBlock(),createElementBlock("div",_hoisted_7$$,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mhhTagMultiList,(l,d)=>withDirectives((openBlock(),createElementBlock("div",{key:d,class:"mhh-pink-tag"})),[[i,l.ghTagName]])),128))])):createCommentVNode("",!0)],4)],2)],4)],6),r.bottomCurve?(openBlock(),createElementBlock("div",_hoisted_8$X,o[1]||(o[1]=[createBaseVNode("div",{class:"generic-container"},null,-1)]))):createCommentVNode("",!0)]}),_:3},16,["class","style","title"])}
1167const HeroBanner=_export_sfc(_sfc_main$1R,[["render",_sfc_render$1R],["__scopeId","data-v-a65a5ceb"],["__file","HeroBanner.vue"]]),__default__$1P={name:"CrossSellBanner",inheritAttrs:!1},_sfc_main$1Q=Object.assign(__default__$1P,{props:{desktopImgSrc:{type:String,default:""},mobileImgSrc:{type:String,default:""},desktopImageAltText:{type:String,default:""},mobileImageAltText:{type:String,default:""},desktopBannerHeight:{type:String,default:""},mobileBannerHeight:{type:String,default:""},bgStyle:{type:String,default:""},keyVisualSrc:{type:String,default:""},keyVisualAlignment:{type:String,default:"left"},keyVisualAlt:{type:String,default:""},gradientValue:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},url:{type:String,default:""},openNewTab:{type:Boolean,default:!1},componentIdAA:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,{isEditorMode:e}=useGlobalAEMState$1(),n=computed(()=>isMobileViewport.value?"to bottom, rgba(0, 94, 103, 0) 0%, rgba(0, 94, 103, 90) 40%, rgba(0, 94, 103, 100) 100%":`to ${r.keyVisualAlignment==="left"?"right":"left"}, rgba(0, 94, 103, 0) 0%, rgba(0, 94, 103, 90) 40%, rgba(0, 94, 103, 100) 100%`),a={small:"250",large:"382"},i={small:"382",large:"569"},s=computed(()=>isMobileViewport.value&&r.mobileImgSrc?r.mobileImgSrc:r.desktopImgSrc),l=computed(()=>r.bgStyle==="teal"?"var(--secondary-teal-base)":"var(--primary-midnightgreen-dark)"),d=computed(()=>r.url?"enabled":"disabled"),c=computed(()=>r.url?{is:"a",href:r.url,target:r.openNewTab?"_blank":"_self"}:{is:"div"}),u={props:r,isEditorMode:e,computedGradientValue:n,bannerSizeDesktopMap:a,bannerSizeMobileMap:i,computedImgSrcBg:s,computedBgStyle:l,aaFlag:d,wrapperAttrs:c,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$2g={class:"img-key-visual relative z-30 mx-10 >md:mb-6"},_hoisted_2$1I=["src","alt"],_hoisted_3$1h={class:"absolute z-10 rounded-3xl overflow-hidden w-full h-full"},_hoisted_4$18=["title"],_hoisted_5$13={key:0,class:"sr-only"},_hoisted_6$$={key:0,class:"md:hidden"},_hoisted_7$_={key:1,class:">md:hidden"};function _sfc_render$1Q(t,o,r,e,n,a){const i=resolveDirective("aa");return withDirectives((openBlock(),createBlock(resolveDynamicComponent(e.props.url?"a":"div"),mergeProps(e.wrapperAttrs,{class:["CrossSellBanner generic-container pt-6",{"use-gradient-overlay-full-image":e.props.gradientValue}],style:{"--BannerSizeDesktop":`${e.bannerSizeDesktopMap[e.props.desktopBannerHeight]}px`,"--BannerSizeMobile":`${e.bannerSizeMobileMap[e.props.mobileBannerHeight]}px`,"--batik-bg-colour":r.bgStyle?e.computedBgStyle:"var(--primary-midnightgreen-dark)"}}),{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["CrossSellBanner-inner",{"flex-row-reverse":e.props.keyVisualAlignment==="right","!h-auto":e.isEditorMode}]),style:normalizeStyle({"flex-direction":e.props.keyVisualAlignment==="right"?"row-reverse":""})},[createBaseVNode("div",_hoisted_1$2g,[r.keyVisualSrc?(openBlock(),createElementBlock("img",{key:0,src:r.keyVisualSrc,alt:r.keyVisualAlt},null,8,_hoisted_2$1I)):createCommentVNode("",!0)]),createBaseVNode("div",{class:normalizeClass(["banner-text-placeholder",[e.props.keyVisualAlignment==="right"?"ml-10":"mr-10"]])},[renderSlot(t.$slots,"default",{},void 0,!0)],2),createBaseVNode("div",_hoisted_3$1h,[r.gradientValue?(openBlock(),createElementBlock("div",{key:0,class:"absolute top-0 left-0 z-20 w-full h-full",style:normalizeStyle({backgroundImage:`linear-gradient(${e.computedGradientValue})`})},null,4)):createCommentVNode("",!0),r.gradientValue?(openBlock(),createElementBlock("div",{key:1,class:"banner-background",style:normalizeStyle({transform:`${e.props.keyVisualAlignment==="right"?"scaleX(-1)":""}`,...e.computedImgSrcBg?{"background-image":`url(${e.computedImgSrcBg})`}:{}}),title:e.isMobileViewport?r.mobileImageAltText:r.desktopImageAltText},[r.desktopImageAltText||r.mobileImageAltText?(openBlock(),createElementBlock("span",_hoisted_5$13,[createTextVNode(toDisplayString(t.$t("Image of banner"))+": ",1),r.desktopImageAltText?(openBlock(),createElementBlock("span",_hoisted_6$$,toDisplayString(r.desktopImageAltText),1)):createCommentVNode("",!0),o[0]||(o[0]=createTextVNode()),r.mobileImageAltText?(openBlock(),createElementBlock("span",_hoisted_7$_,toDisplayString(r.mobileImageAltText),1)):createCommentVNode("",!0)])):createCommentVNode("",!0)],12,_hoisted_4$18)):createCommentVNode("",!0),r.bgStyle?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["absolute top-0 left-0 z-10 w-full h-full",[r.bgStyle==="blue"?"use-batik-pattern use-theme-blue":"use-batik-pattern use-theme-teal"]])},null,2)):createCommentVNode("",!0)])],6)]),_:3},16,["class","style"])),[[i,[{clickName:r.keyVisualAlt,clickComponentType:"URL",componentName:"Banner",componentID:e.props.componentIdAA},{name:r.keyVisualAlt,type:e.isUrlMatchCurrentHostname(e.props.url)?"other":"exit"}],e.aaFlag]])}
1167const CrossSellBanner=_export_sfc(_sfc_main$1Q,[["render",_sfc_render$1Q],["__scopeId","data-v-2b5db74c"],["__file","CrossSellBanner.vue"]]),__default__$1O={name:"ImageTileBanner",inheritAttrs:!1},_sfc_main$1P=Object.assign(__default__$1O,{props:{desktopImgSrc:{type:String,default:""},mobileImgSrc:{type:String,default:""},desktopImageAltText:{type:String,default:""},mobileImageAltText:{type:String,default:""},desktopBannerHeight:{type:String,default:"small"},mobileBannerHeight:{type:String,default:"large"},keyVisualSrc:{type:String,default:""},keyVisualAlignment:{type:String,default:"left"},title:{type:String,default:""},description:{type:String,default:""},url:{type:String,default:""},openNewTab:{type:Boolean,default:!1}},setup(t,{expose:o}){o();const r=t,e=computed(()=>isMobileViewport.value?"to bottom, rgba(31, 64, 116, 0) 0%, rgba(31, 64, 116, 90) 40%, rgba(31, 64, 116, 100) 100%":`to ${r.keyVisualAlignment==="left"?"right":"left"}, rgba(31, 64, 116, 0) 0%, rgba(31, 64, 116, 90) 40%, rgba(31, 64, 116, 100) 100%`),n={small:"250"},a={small:"382",large:"569"},i=computed(()=>isMobileViewport.value&&r.mobileImgSrc?r.mobileImgSrc:r.desktopImgSrc),s=computed(()=>r.url?"enabled":"disabled"),l=computed(()=>r.url?{is:AppHyperlink,href:r.url,target:r.openNewTab?"_blank":"_self"}:{is:"div"}),d={props:r,computedGradientValue:e,bannerSizeDesktopMap:n,bannerSizeMobileMap:a,computedImgSrcBg:i,aaFlag:s,wrapperAttrs:l,get isMobileViewport(){return isMobileViewport},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},AppHyperlink};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),_hoisted_1$2f={class:"ImageTileBanner-image"},_hoisted_2$1H=["src","alt"],_hoisted_3$1g={class:"ImageTileBanner-text-placeholder"};function _sfc_render$1P(t,o,r,e,n,a){const i=resolveDirective("aa");return openBlock(),createBlock(resolveDynamicComponent(e.props.url?e.AppHyperlink:"div"),mergeProps(e.wrapperAttrs,{class:"ImageTileBanner",style:{"--BannerSizeDesktop":`${e.bannerSizeDesktopMap[e.props.desktopBannerHeight]}px`,"--BannerSizeMobile":`${e.bannerSizeMobileMap[e.props.mobileBannerHeight]}px`}}),{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(["ImageTileBanner-inner",[e.props.keyVisualAlignment==="right"?"flex-row-reverse":"flex-row"]])},[createBaseVNode("div",_hoisted_1$2f,[createBaseVNode("img",{class:"object-cover object-center",src:e.computedImgSrcBg,alt:e.isMobileViewport?r.mobileImageAltText:r.desktopImageAltText},null,8,_hoisted_2$1H)]),createBaseVNode("div",_hoisted_3$1g,[render
1167Slot(t.$slots,"default",{},void 0,!0)])],2)),[[i,[{clickName:e.isMobileViewport?r.mobileImageAltText:r.desktopImageAltText,clickComponentType:"URL",componentName:"Banner",componentID:e.props.componentIdAA},{name:e.isMobileViewport?r.mobileImageAltText:r.desktopImageAltText,type:e.isUrlMatchCurrentHostname(e.props.url)?"other":"exit"}],e.aaFlag]])]),_:3},16,["style"])}const ImageTileBanner=_export_sfc(_sfc_main$1P,[["render",_sfc_render$1P],["__scopeId","data-v-754230eb"],["__file","ImageTileBanner.vue"]]),_hoisted_1$2e={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"};function render$s(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2e,o[0]||(o[0]=[createBaseVNode("path",{d:"M630.8 469.1l-88.78-69.59C583.9 362.8 608 310.9 608 256c0-57.12-25.84-111.1-70.88-147.1c-10.22-8.344-25.34-6.906-33.78 3.344c-8.406 10.25-6.906 25.38 3.344 33.78C540.6 172.9 560 213.3 560 256c0 42.69-19.44 83.09-53.31 110.9c-1.045 .8574-1.599 2.029-2.46 3.013l-44.33-34.74c.5039 .0313 .9713 .3249 1.477 .3249c5.344 0 10.75-1.781 15.19-5.406C499.1 311.6 512 284.7 512 256c0-28.65-12.91-55.62-35.44-74.06c-10.28-8.344-25.41-6.875-33.75 3.406c-8.406 10.25-6.906 25.38 3.375 33.78C457.5 228.4 464 241.8 464 256s-6.5 27.62-17.81 36.88c-7.719 6.311-10.48 16.41-7.824 25.39L384 275.7V64c0-12.59-7.337-24.01-18.84-29.16c-11.5-5.188-25.01-3.116-34.43 5.259L214.9 143.1L38.81 5.111C34.41 1.673 29.19 0 24.03 0C16.91 0 9.839 3.158 5.12 9.189c-8.188 10.44-6.37 25.53 4.068 33.7l591.1 463.1c10.5 8.203 25.57 6.328 33.69-4.078C643.1 492.4 641.2 477.3 630.8 469.1zM64 208V304c0 26.51 21.49 47.1 48 47.1h83.84l134.9 119.9C336.7 477.2 344.3 480 352 480c4.438 0 8.959-.9312 13.16-2.837C376.7 472 384 460.6 384 448v-50.34L88.75 166.3C74.05 174.5 64 189.1 64 208z"},null,-1)]))}const __unplugin_components_1$7=markRaw({name:"fas-volume-slash",render:render$s}),_hoisted_1$2d={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"};function render$r(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2d,o[0]||(o[0]=[createBaseVNode("path",{d:"M444.6 181.9c-10.28-8.344-25.41-6.875-33.75 3.406c-8.406 10.25-6.906 25.37 3.375 33.78C425.5 228.4 432 241.8 432 256c0 14.19-6.5 27.62-17.81 36.87c-10.28 8.406-11.78 23.53-3.375 33.78c4.719 5.812 11.62 8.812 18.56 8.812c5.344 0 10.75-1.781 15.19-5.406C467.1 311.6 480 284.7 480 256S467.1 200.4 444.6 181.9zM505.1 108c-10.22-8.344-25.34-6.906-33.78 3.344c-8.406 10.25-6.906 25.37 3.344 33.78C508.6 172.9 528 213.3 528 256s-19.44 83.09-53.31 110.9c-10.25 8.406-11.75 23.53-3.344 33.78c4.75 5.781 11.62 8.781 18.56 8.781c5.375 0 10.75-1.781 15.22-5.437C550.2 367.1 576 313.1 576 256S550.2 144.9 505.1 108zM333.2 34.84c-11.5-5.187-25.01-3.116-34.43 5.259L163.8 160H80c-26.51 0-48 21.49-48 47.1v95.1c0 26.51 21.49 47.1 48 47.1h83.84l134.9 119.9C304.7 477.2 312.3 480 320 480c4.438 0 8.959-.9313 13.16-2.837C344.7 472 352 460.6 352 448V64C352 51.41 344.7 39.1 333.2 34.84z"},null,-1)]))}const __unplugin_components_0$c=markRaw({name:"fas-volume",render:render$r}),__default__$1N={name:"VideoBanner",inheritAttrs:!1},_sfc_main$1O=Object.assign(__default__$1N,{props:{desktopVideoSrc:{type:String,default:""},mobileVideoSrc:{type:String,default:""},desktopImgSrc:{type:String,default:""},mobileImgSrc:{type:String,default:""},desktopAltText:{type:String,default:""},mobileAltText:{type:String,default:""},desktopBannerHeight:{type:String,default:"medium"},mobileBannerHeight:{type:String,default:"medium"},placeholderHorizontalAlignment:{type:String,default:"center"},placeholderVerticalAlignment:{type:String,default:"middle"},useOverlay:{type:String,default:""},overlayOpacityLevel:{type:String,default:"70"},useTagTheme:{type:String,default:"white-text-blue-background"},bottomCurve:{type:Boolean,default:!0},tagList:{type:Array,default:()=>[]},disableAudio:{type:Boolean,default:!1},videoSize:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,e=ref$1(!0),n=ref$1(null),a={small:"408",medium:"550",large:"768"},i={small:"274",medium:"338",large:"688",extraLarge:"736"},s={left:">md:justify-start",center:">md:justify-center",right:">md:justify-end"},l={top:">md:items-start",middle:">md:items-center",bottom:">md:items-end"},d=computed(()=>
1167isMobileViewport.value&&r.mobileImgSrc?r.mobileImgSrc:r.desktopImgSrc),c=computed(()=>r.tagList.filter(_=>_.vTagName!==null)),u=computed(()=>isMobileViewport.value&&r.mobileVideoSrc?r.mobileVideoSrc:r.desktopVideoSrc),f=computed(()=>{switch(u.value.split(".").at(-1)){case"mp4":return"video/mp4";case"webm":return"video/webm";case"m4v":return"video/x-m4v";case"qt":case"mov":return"video/quicktime";default:return""}}),m=computed(()=>isMobileViewport.value&&r.mobileAltText?r.mobileAltText:r.desktopAltText),b=()=>{const _=n.value;e.value=!e.value,_&&(_.muted=e.value)};watch(()=>r.videoSize,_=>{console.log("videoSize changed to:",_)},{immediate:!0});const y={props:r,isVideoMuted:e,videoControls:n,bannerSizeDesktopMap:a,bannerSizeMobileMap:i,placeholderHorizontalAlignmentMap:s,placeholderVerticalAlignmentMap:l,computedImgSrcBg:d,computedTagList:c,computedVideoSrc:u,computedVideoMimeType:f,computedAltText:m,handleAutoplayEvent:b,CTAButton,get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),_hoisted_1$2c=["title"],_hoisted_2$1G={class:"generic-container"},_hoisted_3$1f={key:0,class:"sr-only"},_hoisted_4$17={key:0,class:"md:hidden"},_hoisted_5$12={key:1,class:">md:hidden"},_hoisted_6$_={key:0,class:"tag-group"},_hoisted_7$Z={ref:"videoControls",class:"bg-video",loop:"",muted:"",autoplay:"",playsinline:""},_hoisted_8$W=["src","type"],_hoisted_9$R=["src","alt"],_hoisted_10$I={key:0,class:"curvy-section-breaker flex items-center z-20"},_hoisted_11$G={key:0},_hoisted_12$E=["aria-label"];function _sfc_render$1O(t,o,r,e,n,a){var l;const i=__unplugin_components_0$c,s=__unplugin_components_1$7;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{class:normalizeClass(["VideoBanner w-full",{"use-overlay":r.useOverlay,"overlay-opacity-50":r.overlayOpacityLevel==="50","overlay-opacity-30":r.overlayOpacityLevel==="30","overlay-type-full":r.useOverlay==="full","overlay-type-top-bottom-only":r.useOverlay==="top-bottom-only","use-theme-light":r.useTagTheme==="white-text-blue-background","use-theme-dark":r.useTagTheme==="blue-text-white-background","use-bottom-curve":r.bottomCurve}]),title:e.isMobileViewport?r.mobileAltText:r.desktopAltText},[createBaseVNode("div",{class:normalizeClass(["VideoBanner-inner bg-center bg-cover",{"bg-size-contain":e.props.videoSize==="contain"}]),style:normalizeStyle({"background-image":`url(${e.computedImgSrcBg})`,"--BannerSizeDesktop":`${e.bannerSizeDesktopMap[r.desktopBannerHeight]}px`,"--BannerSizeMobile":`${e.bannerSizeMobileMap[r.mobileBannerHeight]}px`})},[createBaseVNode("div",_hoisted_2$1G,[createBaseVNode("div",{class:normalizeClass(["mx-auto w-10/12 h-full flex justify-center items-center",`${e.placeholderHorizontalAlignmentMap[r.placeholderHorizontalAlignment]} ${e.placeholderVerticalAlignmentMap[r.placeholderVerticalAlignment]}`])},[r.desktopAltText||r.mobileAltText?(openBlock(),createElementBlock("span",_hoisted_3$1f,[createTextVNode(toDisplayString(t.$t("Image of banner"))+": ",1),r.desktopAltText?(openBlock(),createElementBlock("span",_hoisted_4$17,toDisplayString(r.desktopAltText),1)):createCommentVNode("",!0),o[0]||(o[0]=createTextVNode()),r.mobileAltText?(openBlock(),createElementBlock("span",_hoisted_5$12,toDisplayString(r.mobileAltText),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",{class:"banner-content-placeholder text-center",style:normalizeStyle({"text-align":!e.isMobileViewport&&r.placeholderHorizontalAlignment})},[(l=e.computedTagList)!=null&&l.length?(openBlock(),createElementBlock("div",_hoisted_6$_,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.computedTagList,(d,c)=>(openBlock(),createElementBlock("span",{key:`tagList-${c}`,class:"tag"},toDisplayString(d.vTagName),1))),128))])):createCommentVNode("",!0),renderSlot(t.$slots,"default",{},void 0,!0)],4)],2)]),createBaseVNode("video",_hoisted_7$Z,[createBaseVNode("source",{src:e.computedVideoSrc,type:e.computedVideoMimeType},null,8,_hoisted_8$W),createBaseVNode("img",{src:e.computedImgSrcBg,alt:e.computedAltText}
1167,null,8,_hoisted_9$R)],512)],6),r.bottomCurve?(openBlock(),createElementBlock("div",_hoisted_10$I,o[1]||(o[1]=[createBaseVNode("div",{class:"generic-container"},null,-1)]))):createCommentVNode("",!0)],10,_hoisted_1$2c),r.disableAudio?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$G,[createBaseVNode("button",{type:"button",class:"button audio-icon-wrapper","aria-label":t.$t("Audio toggle button"),onClick:e.handleAutoplayEvent},[e.isVideoMuted?(openBlock(),createBlock(s,{key:1,class:"fill-white","aria-hidden":"true",title:"mute"})):(openBlock(),createBlock(i,{key:0,class:"fill-white","aria-hidden":"true",title:"unmute"}))],8,_hoisted_12$E)]))],64)}const VideoBanner=_export_sfc(_sfc_main$1O,[["render",_sfc_render$1O],["__scopeId","data-v-baab23ad"],["__file","VideoBanner.vue"]]),__default__$1M={name:"ImageBanner",inheritAttrs:!1},_sfc_main$1N=Object.assign(__default__$1M,{props:{desktopImgSrc:{type:String,default:""},mobileImgSrc:{type:String,default:""},desktopBannerHeight:{type:String,default:"small"},mobileBannerHeight:{type:String,default:"small"},desktopPlaceholderHorizontalAlignment:{type:String,default:"center"},mobilePlaceholderHorizontalAlignment:{type:String,default:"left"},title:{type:String,default:""},description:{type:String,default:""},url:{type:String,default:""},gradientOverlay:{type:String,default:"none"},gradientOverlayOpacity:{type:String,default:"70"}},setup(t,{expose:o}){o();const r=t,e=computed(()=>isMobileViewport.value?"to bottom, rgba(31, 64, 116, 0) 0%, rgba(31, 64, 116, 90) 40%, rgba(31, 64, 116, 100) 100%":`to ${r.keyVisualAlignment==="left"?"right":"left"}, rgba(31, 64, 116, 0) 0%, rgba(31, 64, 116, 90) 40%, rgba(31, 64, 116, 100) 100%`),n={small:"328"},a={small:"160",large:"180"},i={left:">md:justify-start",center:">md:justify-center",right:">md:justify-end"},s={left:"md:justify-start",center:"md:justify-center",right:"md:justify-end"},l=computed(()=>isMobileViewport.value&&r.mobileImgSrc?r.mobileImgSrc:r.desktopImgSrc),d=computed(()=>r.url?"enabled":"disabled"),c=computed(()=>r.url?{is:AppHyperlink,href:r.url,target:"_blank"}:{is:"div"}),u={props:r,computedGradientValue:e,bannerSizeDesktopMap:n,bannerSizeMobileMap:a,desktopPlaceholderHorizontalAlignmentMap:i,mobilePlaceholderHorizontalAlignmentMap:s,computedImgSrcBg:l,aaFlag:d,wrapperAttrs:c,get isMobileViewport(){return isMobileViewport},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},AppHyperlink};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$2b={class:"ImageBanner-text-placeholder"};function _sfc_render$1N(t,o,r,e,n,a){return openBlock(),createBlock(resolveDynamicComponent(e.props.url?e.AppHyperlink:"div"),mergeProps(e.wrapperAttrs,{class:["ImageBanner w-full",{"ib-use-overlay ib-overlay-full":r.gradientOverlay==="full","ib-overlay-opacity-50":r.gradientOverlayOpacity==="50","ib-overlay-opacity-30":r.gradientOverlayOpacity==="30"}]}),{default:withCtx(()=>[createBaseVNode("div",{class:"ImageBanner-inner bg-center bg-cover relative",style:normalizeStyle({"background-image":`url(${e.computedImgSrcBg})`,"--BannerSizeDesktop":`${e.bannerSizeDesktopMap[r.desktopBannerHeight]}px`,"--BannerSizeMobile":`${e.bannerSizeMobileMap[r.mobileBannerHeight]}px`})},[createBaseVNode("div",{class:normalizeClass(["w-full h-full flex justify-center items-center",`${e.desktopPlaceholderHorizontalAlignmentMap[r.desktopPlaceholderHorizontalAlignment]} ${e.mobilePlaceholderHorizontalAlignmentMap[r.mobilePlaceholderHorizontalAlignment]}`])},[createBaseVNode("div",_hoisted_1$2b,[renderSlot(t.$slots,"default",{},void 0,!0)])],2)],4)]),_:3},16,["class"])}
1167const ImageBanner=_export_sfc(_sfc_main$1N,[["render",_sfc_render$1N],["__scopeId","data-v-f300b811"],["__file","ImageBanner.vue"]]),__default__$1L={name:"Banner",editConfig:{emptyLabel:"Banner",isEmpty(t){switch(t.type){case"generalHeroBanner":return!(t.ghDesktopImage||t.ghBackgroundStyle||t.ghGradientOverlay||t.ghBottomCurve);case"crossSellBanner":return!(t.csDesktopBackgroundImage||t.csKeyVisualImage||t.csBackgroundStyle||t.csGradientOverlay);case"imageTileBanner":return!t.itDesktopBackgroundImage;case"videoBanner":return!t.vDesktopVideo;default:return!0}}},inheritAttrs:!1},_sfc_main$1M=Object.assign(__default__$1L,{props:{type:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},ghDesktopImage:{type:String,default:""},ghMobileImage:{type:String,default:""},ghDesktopPlaceholderHorizontalAlignment:{type:String,default:""},ghDesktopPlaceholderVerticalAlignment:{type:String,default:""},ghBackgroundStyle:{type:String,default:""},ghTagMultiList:{type:Array,default:()=>[]},ghDesktopBannerHeight:{type:String,default:""},ghMobileBannerHeight:{type:String,default:""},ghGradientOverlay:{type:String,default:""},ghGradientOverlayOpacity:{type:String,default:""},ghBottomCurve:{type:Boolean,default:!0},ghTagStyle:{type:String,default:""},ghMhhTagMultiList:{type:Array,default:()=>[]},ghTagPlaceholderPosition:{type:String,default:""},isDisableBanner:{type:Boolean,default:!1},desktopImageAltText:{type:String,default:""},mobileImageAltText:{type:String,default:""},ghBackgroundColour:{type:String,default:""},ghBannerUrl:{type:String,default:""},ghOpenInNewTab:{type:Boolean,default:!1},ghCoverOrContain:{type:String,default:""},sortingOrder:{type:String,default:"0"},csDesktopBackgroundImage:{type:String,default:""},csMobileBackgroundImage:{type:String,default:""},csKeyVisualImage:{type:String,default:""},csImagePosition:{type:String,default:""},csBackgroundStyle:{type:String,default:""},csDesktopBannerHeight:{type:String,default:""},csMobileBannerHeight:{type:String,default:""},csGradientOverlay:{type:String,default:""},csBannerUrl:{type:String,default:""},csOpenInNewTab:{type:Boolean,default:!1},itDesktopBackgroundImage:{type:String,default:""},itMobileBackgroundImage:{type:String,default:""},itDesktopBannerHeight:{type:String,default:""},itMobileBannerHeight:{type:String,default:""},itImagePosition:{type:String,default:"left"},itBannerUrl:{type:String,default:""},itOpenInNewTab:{type:Boolean,default:!1},vDesktopVideo:{type:String,default:""},vMobileVideo:{type:String,default:""},vDesktopImage:{type:String,default:""},vMobileImage:{type:String,default:""},vDesktopAltText:{type:String,default:""},vMobileAltText:{type:String,default:""},vDesktopBannerHeight:{type:String,default:""},vMobileBannerHeight:{type:String,default:""},vDesktopPlaceholderHorizontalAlignment:{type:String,default:""},vDesktopPlaceholderVerticalAlignment:{type:String,default:""},vGradientOverlay:{type:String,default:""},vGradientOverlayOpacity:{type:String,default:""},vBottomCurve:{type:Boolean,default:!0},vTagMultiList:{type:Array,default:()=>[]},vTagStyle:{type:String,default:""},vDisableAudio:{type:Boolean,default:!1},vSortingOrder:{type:String,default:"0"},ibBannerUrl:{type:String,default:""},ibDesktopImage:{type:String,default:""},ibDesktopBannerHeight:{type:String,default:""},ibDesktopPlaceholderHorizontalAlignment:{type:String,default:""},ibMobileImage:{type:String,default:""},ibMobileBannerHeight:{type:String,default:""},ibMobilePlaceholderHorizontalAlignment:{type:String,default:""},ibGradientOverlay:{type:String,default:""},ibGradientOverlayOpacity:{type:String,default:""},componentIdAA:{type:String,default:""},vcoverOrContain:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,{isEditorMode:e}=useGlobalAEMState$1(),n=window.siteName,a=getCompositeComponent({type:"mh/components/mh-layout-container",componentKey:"banner-parsys"}),i=ref$1(null),s={props:r,isEditorMode:e,siteName:n,bannerParsys:a,root:i,HeroBanner,CrossSellBanner,ImageTileBanner,VideoBanner,ImageBanner,get getCompositeComponent(){return getCompositeComponent},Parsys,get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$2a=["data-use-theme"],_hoisted_2$1F={key:0,class:"generic-container py-10 text-center"},_hoisted_3$1e={key:0},_hoisted_4$16={key:1};function _sfc_render$1M(t,o,r,e,n,a){return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"root",class:normalizeClass(["Banner",{">md:hidden":r.isHideInDesktop,"hidden >md:block":r.isHideInMobile}]),"data-use-theme":e.siteName},[r.type==="generalHeroBanner"?(openBlock(),createBlock(e.HeroBanner,{key:0,desktopImgSrc:r.ghDesktopImage,mobileImgSrc:r.ghMobileImage,desktopImageAltText:r.desktopImageAltText,mobileImageAltText:r.mobileImageAltText,imgSize:e.props.ghCoverOrContain,bgStyle:r.ghBackgroun
1167dStyle,desktopImgHeight:r.ghDesktopBannerHeight,mobileImgHeight:r.ghMobileBannerHeight,placeholderHorizontalAlignment:r.ghDesktopPlaceholderHorizontalAlignment,placeholderVerticalAlignment:r.ghDesktopPlaceholderVerticalAlignment,useOverlay:r.ghGradientOverlay,overlayOpacityLevel:r.ghGradientOverlayOpacity,bottomCurve:r.ghBottomCurve,tagList:r.ghTagMultiList,useTagTheme:r.ghTagStyle,bgColor:r.ghBackgroundColour,mhhTagMultiList:e.props.ghMhhTagMultiList,mhhTagPlaceholderPosition:e.props.ghTagPlaceholderPosition,url:e.props.ghBannerUrl,openNewTab:e.props.ghOpenInNewTab},{default:withCtx(()=>[createVNode(e.Parsys,{component:e.bannerParsys,label:"Hero Banner Content"},null,8,["component"])]),_:1},8,["desktopImgSrc","mobileImgSrc","desktopImageAltText","mobileImageAltText","imgSize","bgStyle","desktopImgHeight","mobileImgHeight","placeholderHorizontalAlignment","placeholderVerticalAlignment","useOverlay","overlayOpacityLevel","bottomCurve","tagList","useTagTheme","bgColor","mhhTagMultiList","mhhTagPlaceholderPosition","url","openNewTab"])):createCommentVNode("",!0),r.type==="crossSellBanner"?(openBlock(),createBlock(e.CrossSellBanner,{key:1,desktopImgSrc:r.csDesktopBackgroundImage,mobileImgSrc:r.csMobileBackgroundImage,desktopImageAltText:r.desktopImageAltText,mobileImageAltText:r.mobileImageAltText,keyVisualSrc:r.csKeyVisualImage,bgStyle:r.csBackgroundStyle,keyVisualAlignment:r.csImagePosition,desktopBannerHeight:r.csDesktopBannerHeight,mobileBannerHeight:r.csMobileBannerHeight,gradientValue:r.csGradientOverlay,url:r.csBannerUrl,openNewTab:r.csOpenInNewTab},{default:withCtx(()=>[createVNode(e.Parsys,{component:e.bannerParsys,label:"CrossSell Banner Content"},null,8,["component"])]),_:1},8,["desktopImgSrc","mobileImgSrc","desktopImageAltText","mobileImageAltText","keyVisualSrc","bgStyle","keyVisualAlignment","desktopBannerHeight","mobileBannerHeight","gradientValue","url","openNewTab"])):createCommentVNode("",!0),r.type==="imageTileBanner"?(openBlock(),createBlock(e.ImageTileBanner,{key:2,desktopImgSrc:r.itDesktopBackgroundImage,mobileImgSrc:r.itMobileBackgroundImage,desktopImageAltText:r.desktopImageAltText,mobileImageAltText:r.mobileImageAltText,keyVisualAlignment:r.itImagePosition,desktopBannerHeight:r.itDesktopBannerHeight,mobileBannerHeight:r.itMobileBannerHeight,url:r.itBannerUrl,openNewTab:r.itOpenInNewTab},{default:withCtx(()=>[createVNode(e.Parsys,{component:e.bannerParsys,label:"Image Tile Banner Content"},null,8,["component"])]),_:1},8,["desktopImgSrc","mobileImgSrc","desktopImageAltText","mobileImageAltText","keyVisualAlignment","desktopBannerHeight","mobileBannerHeight","url","openNewTab"])):createCommentVNode("",!0),r.type==="videoBanner"?(openBlock(),createBlock(e.VideoBanner,{key:3,desktopVideoSrc:r.vDesktopVideo,mobileVideoSrc:r.vMobileVideo,desktopImgSrc:r.vDesktopImage,mobileImgSrc:r.vMobileImage,desktopAltText:r.vDesktopAltText,mobileAltText:r.vMobileAltText,desktopBannerHeight:r.vDesktopBannerHeight,mobileBannerHeight:r.vMobileBannerHeight,placeholderHorizontalAlignment:r.vDesktopPlaceholderHorizontalAlignment,placeholderVerticalAlignment:r.vDesktopPlaceholderVerticalAlignment,useOverlay:r.vGradientOverlay,overlayOpacityLevel:r.vGradientOverlayOpacity,bottomCurve:r.vBottomCurve,tagList:r.vTagMultiList,useTagTheme:r.vTagStyle,disableAudio:r.vDisableAudio,videoSize:r.vcoverOrContain},{default:withCtx(()=>[createVNode(e.Parsys,{component:e.bannerParsys,label:"Video Banner Content"},null,8,["component"])]),_:1},8,["desktopVideoSrc","mobileVideoSrc","desktopImgSrc","mobileImgSrc","desktopAltText","mobileAltText","desktopBannerHeight","mobileBannerHeight","placeholderHorizontalAlignment","placeholderVerticalAlignment","useOverlay","overlayOpacityLevel","bottomCurve","tagList","useTagTheme","disableAudio","videoSize"])):createCommentVNode("",!0),r.type==="imageBanner"?(openBlock(),createBlock(e.ImageBanner,{key:4,desktopImgSrc:r.ibDesktopImage,mobileImgSrc:r.ibMobileImage,desktopBannerHeight:r.ibDesktopBannerHeight,mobileBannerHeight:r.ibMobileBannerHeight,desktopPlaceholderHorizontalAlignment:r.ibDesktopPlaceholderHorizontalAlignment,mobilePlaceholderHorizontalAlignment:r.ibMobilePlaceholderHorizontalAlignment,url:r.ibBannerUrl,gradientOverlay:r.ibGradientOverlay,gradientOverlayOpacity:r.ibGradientOverlayOpacity},{default:withCtx(()=>[createVNode(e.Parsys,{component:e.bannerParsys,label:"Image Banner Content"},null,8,["component"])]),_:1}
1167,8,["desktopImgSrc","mobileImgSrc","desktopBannerHeight","mobileBannerHeight","desktopPlaceholderHorizontalAlignment","mobilePlaceholderHorizontalAlignment","url","gradientOverlay","gradientOverlayOpacity"])):createCommentVNode("",!0)],10,_hoisted_1$2a),e.isEditorMode&&r.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_2$1F,[createBaseVNode("p",null,[o[0]||(o[0]=createTextVNode("Hidden in: ")),r.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_3$1e,"Desktop")):createCommentVNode("",!0),o[1]||(o[1]=createTextVNode()),r.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_4$16,", Mobile")):createCommentVNode("",!0)])])):createCommentVNode("",!0)],64)}const Banner=_export_sfc(_sfc_main$1M,[["render",_sfc_render$1M],["__scopeId","data-v-119290e6"],["__file","Banner.vue"]]),Banner$1=Object.freeze(Object.defineProperty({__proto__:null,default:Banner},Symbol.toStringTag,{value:"Module"})),_hoisted_1$29={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512"};function render$q(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$29,o[0]||(o[0]=[createBaseVNode("path",{d:"M166.5 424.5l-143.1-152c-4.375-4.625-6.562-10.56-6.562-16.5c0-5.938 2.188-11.88 6.562-16.5l143.1-152c9.125-9.625 24.31-10.03 33.93-.9375c9.688 9.125 10.03 24.38 .9375 33.94l-128.4 135.5l128.4 135.5c9.094 9.562 8.75 24.75-.9375 33.94C190.9 434.5 175.7 434.1 166.5 424.5z"},null,-1)]))}const __unplugin_components_1$6=markRaw({name:"far-angle-left",render:render$q}),_hoisted_1$28={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512"};function render$p(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$28,o[0]||(o[0]=[createBaseVNode("path",{d:"M89.45 87.5l143.1 152c4.375 4.625 6.562 10.56 6.562 16.5c0 5.937-2.188 11.87-6.562 16.5l-143.1 152C80.33 434.1 65.14 434.5 55.52 425.4c-9.688-9.125-10.03-24.38-.9375-33.94l128.4-135.5l-128.4-135.5C45.49 110.9 45.83 95.75 55.52 86.56C65.14 77.47 80.33 77.87 89.45 87.5z"},null,-1)]))}const __unplugin_components_0$b=markRaw({name:"far-angle-right",render:render$p}),_hoisted_1$27={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$o(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$27,o[0]||(o[0]=[createBaseVNode("path",{d:"M432.6 209.3l-191.1 183.1C235.1 397.8 229.1 400 224 400s-11.97-2.219-16.59-6.688L15.41 209.3C5.814 200.2 5.502 184.1 14.69 175.4c9.125-9.625 24.38-9.938 33.91-.7187L224 342.8l175.4-168c9.5-9.219 24.78-8.906 33.91 .7187C442.5 184.1 442.2 200.2 432.6 209.3z"},null,-1)]))}const __unplugin_components_0$a=markRaw({name:"far-chevron-down",render:render$o});function isNullish(t){return[null,void 0].indexOf(t)!==-1}function useData(t,o,r){const{object:e,valueProp:n,mode:a}=toRefs(t),i=getCurrentInstance().proxy,s=r.iv,l=u=>{s.value=c(u);const f=d(u);o.emit("change",f,i),o.emit("input",f),o.emit("update:modelValue",f)},d=u=>e.value||isNullish(u)?u:Array.isArray(u)?u.map(f=>f[n.value]):u[n.value],c=u=>isNullish(u)?a.value==="single"?{}:[]:u;return{update:l}}function useValue(t,o){const{value:r,modelValue:e,mode:n,valueProp:a}=toRefs(t),i=ref$1(n.value!=="single"?[]:{}),s=e.value&&e.value!==void 0?e:r,l=computed(()=>n.value==="single"?i.value[a.value]:i.value.map(c=>c[a.value])),d=computed(()=>n.value!=="single"?i.value.map(c=>c[a.value]).join(","):i.value[a.value]);return{iv:i,internalValue:i,ev:s,externalValue:s,textValue:d,plainValue:l}}function useSearch(t,o,r){const{regex:e}=toRefs(t),n=getCurrentInstance().proxy,a=r.isOpen,i=r.open,s=ref$1(null),l=ref$1(null),d=()=>{s.value=""},c=m=>{s.value=m.target.value},u=m=>{if(e.value&&e.value){let b=e.value;typeof b=="string"&&(b=new RegExp(b)),m.key.match(b)||m.preventDefault()}},f=m=>{if(e.value&&e.value){let y=(m.clipboardData||window.clipboardData).getData("Text"),_=e.value;typeof _=="string"&&(_=new RegExp(_)),y.split("").every(S=>!!S.match(_))||m.preventDefault()}o.emit("paste",m,n)};return watch(s,m=>{!a.value&&m&&i(),o.emit("search-change",m,n)}),{search:s,input:l,clearSearch:d,handleSearchInput:c,handleKeypress:u,handlePaste:f}}function usePointer$1(t,o,r){const{groupSelect:e,mode:n,groups:a,disabledProp:i}=toRefs(t),s=ref$1(null),l=c=>{c===void 0||c!==null&&c[i.value]||a.value&&c&&c.group&&(n.value==="single"||!e.value)||(s.value=c)};return{pointer:s,setPointer:l,clearPointer:()=>{l(null)}}}function normalize(t,o=!0){return o?String(t).toLowerCase().trim():String(t).normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().trim()}function isObject(t){return Object.prototype.toString.call(t)==="[object Object]"}function arraysEqual(t,o){const r=o.slice().sort();return t.length===o.length&&t.slice().sort().every(function(e,n){return e===r[n]})}function useOptions(t,o,r){const{options:e,mode:n,trackBy:a,limit:i,hideSelected:s,createTag:l,createOption:d,label:c,appendNewTag:u,appendNewOption:f,multipleLabel:m,object:b,loading:y,delay:_,resolveOnLoad:S,minChars:C,filterResults:T,clearOnSearch:x,clearOnSelect:k,valueProp:E,canDeselect:w,max:D,strict:N,closeOnSelect:F,groups:V,reverse:A,infinite:M,groupOptions:O,groupHideEmpty:R,groupSelect:I,onCreate:j,disabledProp:H,searchStart:U}=toRefs(t),B=getCurrentInstance().proxy,L=r.iv,z=r.ev,W=r.search,J=r.clearSearch,te=r.update,re=r.pointer,oe=r.clearPointer,X=r.focus;r.activate;const se=r.deactivate,le=r.close;r.multiselect;const he=r.input,ge=r.focusRootWithoutOpen,Q=r.focusInputWithoutOpen,Y=ref$1([]),ne=ref$1([]),Ce=ref$1(!1),ae=ref$1(null),Be=ref$1(M.value&&i.value===-1?10:i.value),me=computed(()=>l.value||d.value||!1),K=computed(()=>u.value!==void 0?u.value:f.value!==void 0?f.value:!0),q=computed(()=>
1167{if(V.value){let Ie=ne.value||[],Le=[];return Ie.forEach(ct=>{Pt(ct[O.value]).forEach(We=>{Le.push({...We,...ct[H.value]?{[H.value]:!0}:{}})})}),Le}else{let Ie=Pt(ne.value||[]);return Y.value.length&&(Ie=Ie.concat(Y.value)),Ie}}),Z=computed(()=>V.value?et((ne.value||[]).map((Ie,Le)=>{const ct=Pt(Ie[O.value]);return{...Ie,index:Le,group:!0,[O.value]:nt(ct,!1).map(We=>({...We,...Ie[H.value]?{[H.value]:!0}:{}})),__VISIBLE__:nt(ct).map(We=>({...We,...Ie[H.value]?{[H.value]:!0}:{}}))}})):[]),de=computed(()=>{let Ie=q.value;return A.value&&(Ie=Ie.reverse()),Fe.value.length&&(Ie=Fe.value.concat(Ie)),nt(Ie)}),fe=computed(()=>{let Ie=de.value;return Be.value>0&&(Ie=Ie.slice(0,Be.value)),Ie}),_e=computed(()=>{switch(n.value){case"single":return!isNullish(L.value[E.value]);case"multiple":case"tags":return!isNullish(L.value)&&L.value.length>0}return!1}),pe=computed(()=>m.value!==void 0&&m.value!==void 0?m.value(L.value,B):L.value&&L.value.length>1?`${L.value.length} options selected`:"1 option selected"),ve=computed(()=>!q.value.length&&!Ce.value&&!Fe.value.length),Me=computed(()=>q.value.length>0&&fe.value.length==0&&(W.value&&V.value||!V.value)),Fe=computed(()=>me.value===!1||!W.value?[]:dt(W.value)!==-1?[]:[{[E.value]:W.value,[c.value]:W.value,[Te.value]:W.value,__CREATE__:!0}]),Te=computed(()=>a.value||c.value),Se=computed(()=>{switch(n.value){case"single":return null;case"multiple":case"tags":return[]}}),Ae=computed(()=>y.value||Ce.value),ue=Ie=>{let Le=Ie;switch(typeof Le!="object"&&(Le=Ze(Le)),n.value){case"single":te(Le);break;case"multiple":case"tags":te(L.value.concat(Le));break}o.emit("select",Xe(Le),Le,B)},ye=Ie=>{let Le=Ie;switch(typeof Le!="object"&&(Le=Ze(Le)),n.value){case"single":ze();break;case"tags":case"multiple":te(Array.isArray(Le)?L.value.filter(ct=>Le.map(We=>We[E.value]).indexOf(ct[E.value])===-1):L.value.filter(ct=>ct[E.value]!=Le[E.value]));break}o.emit("deselect",Xe(Le),Le,B)},Xe=Ie=>b.value?Ie:Ie[E.value],De=Ie=>{ye(Ie)},ke=(Ie,Le)=>{if(Le.button!==0){Le.preventDefault();return}De(Ie)},ze=()=>{o.emit("clear",B),te(Se.value)},qe=Ie=>{if(Ie.group!==void 0)return n.value==="single"?!1:rt(Ie[O.value])&&Ie[O.value].length;switch(n.value){case"single":return!isNullish(L.value)&&L.value[E.value]==Ie[E.value];case"tags":case"multiple":return!isNullish(L.value)&&L.value.map(Le=>Le[E.value]).indexOf(Ie[E.value])!==-1}},ht=Ie=>Ie[H.value]===!0,pt=()=>D.value===void 0||D.value===-1||!_e.value&&D.value>0?!1:L.value.length>=D.value,Ne=Ie=>{let Le=Ie;if(!ht(Le)){if(j.value&&j.value&&!qe(Le)&&Le.__CREATE__&&(Le={...Le},delete Le.__CREATE__,Le=j.value(Le,B),Le instanceof Promise)){Ce.value=!0,Le.then(ct=>{Ce.value=!1,Je(ct)});return}Je(Le),he.value?Q():ge()}},Je=Ie=>{let Le=Ie;switch(Le.__CREATE__&&(Le={...Le},delete Le.__CREATE__),n.value){case"single":if(Le&&qe(Le)){w.value&&ye(Le);return}Le&&st(Le),k.value&&J(),F.value&&(oe(),le()),Le&&ue(Le);break;case"multiple":if(Le&&qe(Le)){ye(Le);return}if(pt())return;Le&&(st(Le),ue(Le)),k.value&&J(),s.value&&oe(),F.value&&le();break;case"tags":if(Le&&qe(Le)){ye(Le);return}if(pt())return;Le&&st(Le),k.value&&J(),Le&&ue(Le),s.value&&oe(),F.value&&le();break}F.value||X()},$e=Ie=>{if(!(ht(Ie)||n.value==="single"||!I.value)){switch(n.value){case"multiple":case"tags":Bt(Ie[O.value])?ye(Ie[O.value]):ue(Ie[O.value].filter(Le=>L.value.map(ct=>ct[E.value]).indexOf(Le[E.value])===-1).filter(Le=>!Le[H.value]).filter((Le,ct)=>L.value.length+1+ct<=D.value||D.value===-1));break}F.value&&se()}},st=Ie=>{Ze(Ie[E.value])===void 0&&me.value&&(o.emit("tag",Ie[E.value],B),o.emit("option",Ie[E.value],B),K.value&&lt(Ie),J())},bt=()=>{n.value!=="single"&&ue(fe.value)},Bt=Ie=>Ie.find(Le=>!qe(Le)&&!Le[H.value])===void 0,rt=Ie=>Ie.find(Le=>!qe(Le))===void 0,Ze=Ie=>q.value[q.value.map(Le=>String(Le[E.value])).indexOf(String(Ie))],dt=(Ie,Le=!0)=>q.value.map(ct=>parseInt(ct[Te.value])==ct[Te.value]?parseInt(ct[Te.value]):ct[Te.value]).indexOf(parseInt(Ie)==Ie?parseInt(Ie):Ie),Ye=
1167Ie=>["tags","multiple"].indexOf(n.value)!==-1&&s.value&&qe(Ie),lt=Ie=>{Y.value.push(Ie)},et=Ie=>R.value?Ie.filter(Le=>W.value?Le.__VISIBLE__.length:Le[O.value].length):Ie.filter(Le=>W.value?Le.__VISIBLE__.length:!0),nt=(Ie,Le=!0)=>{let ct=Ie;return W.value&&T.value&&(ct=ct.filter(We=>U.value?normalize(We[Te.value],N.value).startsWith(normalize(W.value,N.value)):normalize(We[Te.value],N.value).indexOf(normalize(W.value,N.value))!==-1)),s.value&&Le&&(ct=ct.filter(We=>!Ye(We))),ct},Pt=Ie=>{let Le=Ie;return isObject(Le)&&(Le=Object.keys(Le).map(ct=>{let We=Le[ct];return{[E.value]:ct,[Te.value]:We,[c.value]:We}})),Le=Le.map(ct=>typeof ct=="object"?ct:{[E.value]:ct,[Te.value]:ct,[c.value]:ct}),Le},ft=()=>{isNullish(z.value)||(L.value=Dt(z.value))},Nt=Ie=>(Ce.value=!0,new Promise((Le,ct)=>{e.value(W.value,B).then(We=>{ne.value=We||[],typeof Ie=="function"&&Ie(We),Ce.value=!1}).catch(We=>{console.error(We),ne.value=[],Ce.value=!1}).finally(()=>{Le()})})),Ot=()=>{if(_e.value)if(n.value==="single"){let Ie=Ze(L.value[E.value]);if(Ie!==void 0){let Le=Ie[c.value];L.value[c.value]=Le,b.value&&z.value&&(z.value[c.value]=Le)}}else L.value.forEach((Ie,Le)=>{let ct=Ze(L.value[Le][E.value]);if(ct!==void 0){let We=ct[c.value];L.value[Le][c.value]=We,b.value&&(z.value[Le][c.value]=We)}})},yt=Ie=>{Nt(Ie)},Dt=Ie=>isNullish(Ie)?n.value==="single"?{}:[]:b.value?Ie:n.value==="single"?Ze(Ie)||{}:Ie.filter(Le=>!!Ze(Le)).map(Le=>Ze(Le)),_t=()=>{ae.value=watch(W,Ie=>{Ie.length<C.value||!Ie&&C.value!==0||(Ce.value=!0,x.value&&(ne.value=[]),setTimeout(()=>{Ie==W.value&&e.value(W.value,B).then(Le=>{(Ie==W.value||!W.value)&&(ne.value=Le,re.value=fe.value.filter(ct=>ct[H.value]!==!0)[0]||null,Ce.value=!1)}).catch(Le=>{console.error(Le)})},_.value))},{flush:"sync"})};if(n.value!=="single"&&!isNullish(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${n.value}" mode`);return e.value&&typeof e.value=="function"?S.value?Nt(ft):b.value==!0&&ft():(ne.value=e.value,ft()),_.value>-1&&_t(),watch(_,(Ie,Le)=>{ae.value&&ae.value(),Ie>=0&&_t()}),watch(z,Ie=>{if(isNullish(Ie)){L.value=Dt(Ie);return}switch(n.value){case"single":(b.value?Ie[E.value]!=L.value[E.value]:Ie!=L.value[E.value])&&(L.value=Dt(Ie));break;case"multiple":case"tags":arraysEqual(b.value?Ie.map(Le=>Le[E.value]):Ie,L.value.map(Le=>Le[E.value]))||(L.value=Dt(Ie));break}},{deep:!0}),watch(e,(Ie,Le)=>{typeof t.options=="function"?S.value&&(!Le||Ie&&Ie.toString()!==Le.toString())&&Nt():(ne.value=t.options,Object.keys(L.value).length||ft(),Ot())}),watch(c,Ot),{pfo:de,fo:fe,filteredOptions:fe,hasSelected:_e,multipleLabelText:pe,eo:q,extendedOptions:q,fg:Z,filteredGroups:Z,noOptions:ve,noResults:Me,resolving:Ce,busy:Ae,offset:Be,select:ue,deselect:ye,remove:De,selectAll:bt,clear:ze,isSelected:qe,isDisabled:ht,isMax:pt,getOption:Ze,handleOptionClick:Ne,handleGroupClick:$e,handleTagRemove:ke,refreshOptions:yt,resolveOptions:Nt,refreshLabels:Ot}}function usePointer(t,o,r){const{valueProp:e,showOptions:n,searchable:a,groupLabel:i,groups:s,mode:l,groupSelect:d,disabledProp:c}=toRefs(t),u=r.fo,f=r.fg,m=r.handleOptionClick,b=r.handleGroupClick,y=r.search,_=r.pointer,S=r.setPointer,C=r.clearPointer,T=r.multiselect,x=r.isOpen,k=r.dropdownEl,E=computed(()=>u.value.filter(X=>!X[c.value])),w=computed(()=>f.value.filter(X=>!X[c.value])),D=computed(()=>l.value!=="single"&&d.value),N=computed(()=>_.value&&_.value.group),F=computed(()=>J(_.value)),V=computed(()=>{const X=N.value?_.value:J(_.value),se=w.value.map(he=>he[i.value]).indexOf(X[i.value]);let le=w.value[se-1];return le===void 0&&(le=M.value),le}),A=computed(()=>{let X=w.value.map(se=>se.label).indexOf(N.value?_.value[i.value]:J(_.value)[i.value])+1;return w.value.length<=X&&(X=0),w.value[X]}),M=computed(()=>[...w.value].slice(-1)[0]),O=computed(()=>_.value.__VISIBLE__.filter(X=>!X[c.value])[0]),R=computed(()=>{const X=F.value.__VISIBLE__.filter(se=>!se[c.value]);return X[X.map(se=>se[e.value]).indexOf(_.value[e.value])-1]}),I=computed(()=>{const X=J(_.value).__VISIBLE__.filter(se=>!se[c.value]);return X[X.map(se=>se[e.value]).indexOf(_.value[e.value])+1]}),j=computed(()=>[...V.value.__VISIBLE__.filter(X=>!X[c.value])].slice(-1)[0]),H=computed(()=>[...M.value.__VISIBLE__.filter(X=>!X[c.value])].slice(-1)[0]),U=X=>_.value&&(!X.group&&_.value[e.value]==X[e.value]||X.group!==void 0&&_.value[i.value]==X[i.value])?!0:void 0,B=()=>{S(E.value[0]||null)},L=()=>{!_.value||_.value[c.value]===!0||(N.value?b(_.value):m(_.value))},z=()=>{if(_.value===null)S((s.value&&D.value?w.value[0]:E.value[0])||null);else if(s.value&&D.value){let X=N.value?O.value:I.value;X===void 0&&(X=A.value),S(X||null)}else{let X=E.value.map(se=>se[e.value]).indexOf(_.value[e.value])+1;E.value.length<=X&&(X=0),S(E.value[X]||null)}nextTick$1(()=>{te()})},W=()=>{if(_.value===null){let X=E.value[E.value.length-1];s.value&&D.value&&(X=H.value,X===void 0&&(X=M.value)),S(X||null)}else if(s.value&&D.value){let X=N.value?j.value:R.value;X===void 0&&(X=N.value?V.value:F.value),S(X||null)}else{let X=E.value.map(se=>se[e.value]).indexOf(_.value[e.value])-1;X<0&&(X=E.value.length-1),S(E.value[X]||null)}nextTick$1(()=>{te()})},J=X=>w.value.find(se=>se.__VISIBLE__.map(le=>le[e.value]).indexOf(X[e.value])!==-1),te=()=>{let X=T.value.querySelector("[data-pointed]");if(!X)return;let se=X.parentElement.parentElement;s.value&&(se=N.value?X.parentElement.parentElement.parentElement:X.parentElement.parentElement.parentElement.parentElement),X.offsetTop+X.offsetHeight>se.clientHeight+se.scrollTop&&(se.scrollTop=X.offsetTop+X.offsetHeight-se.clientHeight),X.offsetTop<se.scrollTop&&(se.scrollTop=X.offsetTop)};watch(y,X=>{a.value&&(X.length&&n.value?B():C())}),watch(x,X=>{if(X){let se=T.value.querySelectorAll("[data-selected]")[0];if(!se)return;let le=se.parentElement.parentElement;nextTick$1(()=>{le.scrollTop>0||(le.scrollTop=se.offsetTop)})}});const re=()=>{const X=k.value.querySelector(`.multiselect-option[data-value="${_.value[e.value]}"]`);oe(X)},oe=X=>{const se=k.value.querySelector(".multiselect-options"),le=X.offsetTop,he=X.clientHeight,ge=se.clientHeight,Q=le-ge/2+he/2;Q<0?se.scrollTop=0:Q>se.scrollHeight?se.scrollTop=se.scrollHeight:se.scrollTop=Q};return{pointer:_,canPointGroups:D,isPointed:U,setPointerFirst:B,selectPointer:L,forwardPointer:z,backwardPointer:W,scrollToPointer:re}}function useDropdown(t,o,r){const{disabled:e}=toRefs(t),n=getCurrentInstance().proxy,a=ref$1(!1);return{isOpen:a,open:()=>{a.value||e.value||(a.value=!0,o.emit("open",n))},close:()=>
1167{a.value&&(a.value=!1,o.emit("close",n))}}}function useMultiselect(t,o,r){const{searchable:e,disabled:n,clearOnBlur:a}=toRefs(t),i=r.input,s=r.open,l=r.close,d=r.clearSearch,c=r.isOpen,u=ref$1(null),f=ref$1(null),m=ref$1(null),b=ref$1(!1),y=ref$1(!1);let _=!1;const S=computed(()=>e.value||n.value?-1:0),C=()=>{e.value&&i.value.blur(),u.value.blur()},T=()=>{e.value&&!n.value&&i.value.focus()},x=(M=!0)=>{n.value||(b.value=!0,M&&s())},k=()=>{b.value=!1,setTimeout(()=>{b.value||(l(),a.value&&d())},1)};return{multiselect:u,dropdownEl:f,tags:m,tabindex:S,isActive:b,mouseClicked:y,blur:C,focus:T,activate:x,deactivate:k,handleFocusIn:()=>{if(_)_=!1,x(!1);else{const M=i.value?y.value:!0;x(M)}},handleFocusOut:()=>{k()},handleCaretClick:()=>{k(),C()},handleMousedown:M=>{y.value=!0,c.value&&(M.target.isEqualNode(u.value)||M.target.isEqualNode(m.value))?setTimeout(()=>{k()},0):document.activeElement.isEqualNode(u.value)&&!c.value&&x(),setTimeout(()=>{y.value=!1},0)},handleInputMousedown:M=>{y.value=!0,c.value?setTimeout(()=>{k()},0):c.value||x(),setTimeout(()=>{y.value=!1},0)},focusRootWithoutOpen:()=>{var M;_=!0,(M=u.value)==null||M.focus()},focusInputWithoutOpen:()=>{var M;_=!0,(M=i.value)==null||M.focus()}}}function useKeyboard(t,o,r){const{mode:e,addTagOn:n,openDirection:a,searchable:i,showOptions:s,valueProp:l,groups:d,addOptionOn:c,createTag:u,createOption:f,reverse:m}=toRefs(t),b=getCurrentInstance().proxy,y=r.iv,_=r.update,S=r.search,C=r.setPointer,T=r.selectPointer,x=r.backwardPointer,k=r.forwardPointer,E=r.scrollToPointer,w=r.multiselect,D=r.tags,N=r.isOpen,F=r.open,V=r.blur,A=r.fo,M=r.noOptions,O=computed(()=>u.value||f.value||!1),R=computed(()=>n.value!==void 0?n.value:c.value!==void 0?c.value:["enter"]),I=()=>{e.value==="tags"&&!s.value&&O.value&&i.value&&!d.value&&C(A.value[A.value.map(U=>U[l.value]).indexOf(S.value)])};return{handleKeydown:U=>{o.emit("keydown",U,b);let B,L;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(U.key)!==-1&&e.value==="tags"&&(B=[...w.value.querySelectorAll("[data-tags] > *")].filter(z=>z!==D.value),L=B.findIndex(z=>z===document.activeElement)),U.key){case"Backspace":if(e.value==="single"||i.value&&[null,""].indexOf(S.value)===-1||y.value.length===0)return;_([...y.value].slice(0,-1));break;case"Enter":if(M.value||U.preventDefault(),L!==-1&&L!==void 0){_([...y.value].filter((z,W)=>W!==L)),L===B.length-1&&(B.length-1?B[B.length-2].focus():i.value?D.value.querySelector("input").focus():w.value.focus());return}if(R.value.indexOf("enter")===-1&&O.value)return;I(),T();break;case" ":if(!O.value&&!i.value){M.value||U.preventDefault(),I(),T();return}if(!O.value)return!1;if(R.value.indexOf("space")===-1&&O.value)return;U.preventDefault(),I(),T();break;case"Tab":case";":case",":if(R.value.indexOf(U.key.toLowerCase())===-1||!O.value)return;I(),T(),U.preventDefault();break;case"Escape":V();break;case"ArrowUp":if(U.preventDefault(),!s.value)return;N.value||F(),x(),E();break;case"ArrowDown":if(U.preventDefault(),!s.value)return;N.value||F(),k(),E();break;case"ArrowLeft":if(i.value&&D.value.querySelector("input").selectionStart||U.shiftKey||e.value!=="tags"||!y.value||!y.value.length)return;U.preventDefault(),L===-1?B[B.length-1].focus():L>0&&B[L-1].focus();break;case"ArrowRight":if(L===-1||U.shiftKey||e.value!=="tags"||!y.value||!y.value.length)return;U.preventDefault(),B.length>L+1?B[L+1].focus():i.value?D.value.querySelector("input").focus():i.value||w.value.focus();break}},handleKeyup:U=>{o.emit("keyup",U,b)},preparePointer:I}}function useClasses(t,o,r){const{classes:e,disabled:n,openDirection:a,showOptions:i}=toRefs(t),s=r.isOpen,l=r.isPointed,d=r.isSelected,c=r.isDisabled,u=r.isActive,f=r.canPointGroups,m=r.resolving,b=r.fo,y=computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWra
1167pper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",spacer:"multiselect-spacer",...e.value})),_=computed(()=>!!(s.value&&i.value&&(!m.value||m.value&&b.value.length)));return{classList:computed(()=>{const C=y.value;return{container:[C.container].concat(n.value?C.containerDisabled:[]).concat(_.value&&a.value==="top"?C.containerOpenTop:[]).concat(_.value&&a.value!=="top"?C.containerOpen:[]).concat(u.value?C.containerActive:[]),spacer:C.spacer,singleLabel:C.singleLabel,singleLabelText:C.singleLabelText,multipleLabel:C.multipleLabel,search:C.search,tags:C.tags,tag:[C.tag].concat(n.value?C.tagDisabled:[]),tagRemove:C.tagRemove,tagRemoveIcon:C.tagRemoveIcon,tagsSearchWrapper:C.tagsSearchWrapper,tagsSearch:C.tagsSearch,tagsSearchCopy:C.tagsSearchCopy,placeholder:C.placeholder,caret:[C.caret].concat(s.value?C.caretOpen:[]),clear:C.clear,clearIcon:C.clearIcon,spinner:C.spinner,inifinite:C.inifinite,inifiniteSpinner:C.inifiniteSpinner,dropdown:[C.dropdown].concat(a.value==="top"?C.dropdownTop:[]).concat(!s.value||!i.value||!_.value?C.dropdownHidden:[]),options:[C.options].concat(a.value==="top"?C.optionsTop:[]),group:C.group,groupLabel:T=>{let x=[C.groupLabel];return l(T)?x.push(d(T)?C.groupLabelSelectedPointed:C.groupLabelPointed):d(T)&&f.value?x.push(c(T)?C.groupLabelSelectedDisabled:C.groupLabelSelected):c(T)&&x.push(C.groupLabelDisabled),f.value&&x.push(C.groupLabelPointable),x},groupOptions:C.groupOptions,option:(T,x)=>{let k=[C.option];return l(T)?k.push(d(T)?C.optionSelectedPointed:C.optionPointed):d(T)?k.push(c(T)?C.optionSelectedDisabled:C.optionSelected):(c(T)||x&&c(x))&&k.push(C.optionDisabled),k},noOptions:C.noOptions,noResults:C.noResults,fakeInput:C.fakeInput}}),showDropdown:_}}function useScroll$1(t,o,r){const{limit:e,infinite:n}=toRefs(t),a=r.isOpen,i=r.offset,s=r.search,l=r.pfo,d=r.eo,c=ref$1(null),u=ref$1(null),f=computed(()=>i.value<l.value.length),m=y=>{const{isIntersecting:_,target:S}=y[0];if(_){const C=S.offsetParent,T=C.scrollTop;i.value+=e.value==-1?10:e.value,nextTick$1(()=>{C.scrollTop=T})}},b=()=>{a.value&&i.value<l.value.length?c.value.observe(u.value):!a.value&&c.value&&c.value.disconnect()};return watch(a,()=>{n.value&&b()}),watch(s,()=>{n.value&&(i.value=e.value,b())},{flush:"post"}),watch(d,()=>{n.value&&b()},{immediate:!1,flush:"post"}),onMounted(()=>{window&&window.IntersectionObserver&&(c.value=new IntersectionObserver(m))}),{hasMore:f,infiniteLoader:u}}function useScroll(t,o,r){const{placeholder:e,id:n,valueProp:a,label:i,mode:s,groupLabel:l}=toRefs(t),d=r.pointer;r.iv,r.hasSelected,r.multipleLabelText,r.isOpen;const c=ref$1(null),u=Math.round(Math.random()*1e8),f=computed(()=>{let k=[];return n.value&&n.value?k.push(n.value):k.push(String(u)),k.push("multiselect-options"),k.join("-")}),m=computed(()=>{let k=[];if(n.value&&n.value&&k.push(n.value),d.value)return k.push(d.value.group?"multiselect-group":"multiselect-option"),k.push(d.value.group?d.value.index:d.value[a.value]),k.join("-")}),b=computed(()=>e.value),y=computed(()=>s.value!=="single"),_=k=>{let E=[];return n.value&&n.value&&E.push(n.value),E.push("multiselect-option"),E.push(k[a.value]),E.join("-")},S=k=>{let E=[];return n.value&&n.value&&E.push(n.value),E.push("multiselect-group"),E.push(k.index),E.join("-")},C=k=>{let E=[];return E.push(k[i.value]),E.join(" ")},T=k=>{let E=[];return E.push(k[l.value]),E.join(" ")},x=k=>`${k} ❎`;return onMounted(()=>
1167{if(n.value&&n.value&&document&&document.querySelector){let k=document.querySelector(`[for="${n.value}"]`);c.value=k?k.innerText:null}}),{ariaOwns:f,ariaPlaceholder:b,ariaMultiselectable:y,ariaActiveDescendant:m,ariaOptionId:_,ariaOptionLabel:C,ariaGroupId:S,ariaGroupLabel:T,ariaTagLabel:x}}const getComputedSizeToPixel=({cssValue:t="1em",parent:o=document.body,axis:r="y"}={})=>{const e=document.createElement("div");e.style.visibility="hidden",e.style.boxSize="content-box",e.style.position="absolute",e.style.maxHeight="none",e.style.maxWidth="none",r==="x"?e.style.width=t:r==="y"&&(e.style.height=t),o.appendChild(e);let n;return r==="x"?n=e.clientWidth:r==="y"&&(n=e.clientHeight),e.remove(),n},getElOffset=(t,o={})=>{const r=t.getBoundingClientRect(),e=r.left+window.pageXOffset-document.documentElement.clientLeft,n=r.top+window.pageYOffset-document.documentElement.clientTop,a=getComputedSizeToPixel({cssValue:o.x??"0",parent:o.el||t,axis:"x"}),i=getComputedSizeToPixel({cssValue:o.y??"0",parent:o.el||t,axis:"y"}),s=e+a,l=n+i;return{x:s,y:l}};function useTeleport(t,o,r){r.input;const e=r.multiselect;return r.dropdownEl,{getTeleportElStyle:()=>{console.warn("Note: Mouse interaction when `props.useTeleport` is true is broken. Do not use.");const a=e.value;if(!a)return{};const i=getElOffset(a,{y:"calc(100% - 8px)"});return{transform:`translate(${i.x}px, ${i.y}px)`,width:`${a.offsetWidth??0}px`,...Object.fromEntries(["--ms-dropdown-border-color","--ms-dropdown-border-width","--ms-dropdown-radius","--ms-option-bg-pointed","--ms-option-color-pointed","--ms-option-bg-selected","--ms-option-bg-selected-pointed"].map(s=>[s,window.getComputedStyle(a).getPropertyValue(s)]))}}}}function resolveDeps(t,o,r,e={}){return r.forEach(n=>{n&&(e={...e,...n(t,o,e)})}),e}var script={name:"Multiselect",components:{Teleport},props:{value:{type:[String,Object,Array],required:!1,default:null},modelValue:{type:[String,Object,Array],required:!1,default:null},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:null},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:String,required:!1,default:"The list is empty"},noResultsText:{type:String,required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:null},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},autocomplete:{type:String,required:!1,default:null},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:null},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},useTeleport:{required:!1,type:Boolean,default:!1},clearOnBlur:{required:!1,type:Boolean,default:!0}},emits:["paste","open","close","select","deselect","input","search-ch
1167ange","tag","option","update:modelValue","change","clear","keydown","keyup"],setup(t,o){return{...resolveDeps(t,o,[useValue,usePointer$1,useDropdown,useSearch,useData,useMultiselect,useOptions,useScroll$1,usePointer,useKeyboard,useClasses,useScroll,useTeleport])}}};const _hoisted_1$26=["id","tabindex","dir","aria-owns","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],_hoisted_2$1E={class:"multiselect-search-wrapper flex items-center absolute w-full h-full"},_hoisted_3$1d=["id","type","modelValue","value","autocomplete","aria-owns","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],_hoisted_4$15=["aria-label","onKeyup"],_hoisted_5$11=["onClick"],_hoisted_6$Z=["id","type","modelValue","value","autocomplete","aria-owns","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],_hoisted_7$Y=["id"],_hoisted_8$V=["id","aria-label","aria-selected"],_hoisted_9$Q=["data-pointed","onMouseenter","onClick"],_hoisted_10$H=["aria-label"],_hoisted_11$F=["id","data-pointed","data-selected","aria-selected","aria-label","data-value","onMouseenter","onClick"],_hoisted_12$D=["id","data-pointed","data-selected","aria-selected","aria-label","data-value","onMouseenter","onClick"],_hoisted_13$A=["value"],_hoisted_14$z=["name","value"],_hoisted_15$x=["name","value"];function render$n(t,o,r,e,n,a){const i=resolveDirective("html-sanitize");return openBlock(),createElementBlock(Fragment,null,[createCommentVNode(" eslint-disable "),createBaseVNode("div",mergeProps({id:r.searchable?void 0:r.id,ref:"multiselect",tabindex:t.tabindex,class:t.classList.container,dir:r.rtl?"rtl":void 0,"aria-owns":r.searchable?void 0:t.ariaOwns,"aria-expanded":r.searchable?void 0:t.isOpen,"aria-activedescendant":r.searchable?void 0:t.ariaActiveDescendant,role:r.searchable?void 0:"combobox"},{...r.searchable?{}:r.aria,...t.$attrs},{onFocusin:o[10]||(o[10]=(...s)=>t.handleFocusIn&&t.handleFocusIn(...s)),onFocusout:o[11]||(o[11]=(...s)=>t.handleFocusOut&&t.handleFocusOut(...s)),onKeydown:o[12]||(o[12]=(...s)=>t.handleKeydown&&t.handleKeydown(...s)),onKeyup:o[13]||(o[13]=(...s)=>t.handleKeyup&&t.handleKeyup(...s)),onMousedown:o[14]||(o[14]=(...s)=>t.handleMousedown&&t.handleMousedown(...s))}),[createCommentVNode(" Search "),createBaseVNode("div",_hoisted_2$1E,[r.mode!=="tags"&&r.searchable&&!r.disabled?(openBlock(),createElementBlock("input",mergeProps({key:0,id:r.searchable?r.id:void 0,ref:"input",type:r.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:r.autocomplete,"aria-owns":t.ariaOwns,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,role:"combobox"},{...r.attrs,...r.aria},{onInput:o[0]||(o[0]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onMousedown:o[1]||(o[1]=withModifiers((...s)=>t.handleInputMousedown&&t.handleInputMousedown(...s),["stop"])),onKeypress:o[2]||(o[2]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:o[3]||(o[3]=withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"]))}),null,16,_hoisted_3$1d)):createCommentVNode("v-if",!0),createCommentVNode(" Tags (with search) "),r.mode=="tags"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.classList.tags),"data-tags":""},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.iv,(s,l,d)=>renderSlot(t.$slots,"tag",{option:s,handleTagRemove:t.handleTagRemove,disabled:r.disabled},()=>[(openBlock(),createElementBlock("span",{key:d,class:normalizeClass(t.classList.tag),tabindex:"-1","aria-label":t.ariaTagLabel(s[r.label]),onKeyup:withKeys(c=>t.handleTagRemove(s,c),["enter"])},[createTextVNode(toDisplayString(s[r.label])+" ",1),r.disabled?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(t.classList.tagRemove),onClick:c=>t.handleTagRemove(s,c)},[createBaseVNode("span",{class:normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,_hoisted_5$11))],42,_hoisted_4$15))])),256)),createBaseVNode("div",{ref:"tags",class:normalizeClass(t.classList.tagsSearchWrapper)},[createCommentVNode(" Used for measuring search width "),createBaseVNode("span",{class:normalizeClass(t.classList.tagsSearchCopy)},toDisplayString(t.search),3),createCommentVNode(" Actual search input "),r.searchable&&!r.disabled?(openBlock(),createElementBlock("input",mergeProps({key:0,id:r.searchable?r.id:void 0,ref:"input",type:r.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,autocomplete:r.autocomplete,"aria-owns":t.ariaOwns,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,role:"combobox"},{...r.attrs,...r.aria},{onInput:o[4]||(o[4]=(...s)=>t.handleSearchInput&&t.handleSearchInput(...s)),onKeypress:o[5]||(o[5]=(...s)=>t.handleKeypress&&t.handleKeypress(...s)),onPaste:o[6]||(o[6]=withModifiers((...s)=>t.handlePaste&&t.handlePaste(...s),["stop"]))}),null,16,_hoisted_6$Z)):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createCommentVNode(" Single label "),r.mode=="single"&&t.hasSelected&&!t.search&&t.iv?renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[createBaseVNode("div",{class:normalizeClass(t.classList.singleLabel),"aria-hidden":"true"},[withDirectives(createBaseVNode("span",{class:normalizeClass(t.classList.singleLabelText)},null,2),[[i,t.iv[r.label]]])],2)]):createCommentVNode("v-if",!0),createCommentVNode(" Multiple label "),r.mode=="multiple"&&t.hasSelected&&!t.search?renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[withDirectives(createBaseVNode("div",{class:normalizeClass(t.classList.multipleLabel),"aria-hidden":"true"},null,2),[[i,t.multipleLabelText]])]):createCommentVNode("v-if",!0),createCommentVNode(" Placeholder "),r.placeholder&&!t.hasSelected&&!t.search?renderSlot(t.$slots,"placeholder",{key:4},()=>[createBaseVNode("div",{class:normalizeClass(t.classList.placeholder),"aria-hidden":"true"},toDisplayString(r.placeholder),3)]):createCommentVNode("v-if",!0),createCommentVNode(" Spinner "),r.loading||t.resolving?renderSlot(t.$slots,"spinner",{key:5},()=>[createBaseVNode("span",{class:normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):createCommentVNode("v-if",!0),createCommentVNode(" Clear "),t.hasSelected&&!r.disabled&&r.canClear&&!t.busy?render
1167Slot(t.$slots,"clear",{key:6,clear:t.clear},()=>[createBaseVNode("span",{tabindex:"0",role:"button","aria-label":"❎",class:normalizeClass(t.classList.clear),onClick:o[7]||(o[7]=(...s)=>t.clear&&t.clear(...s)),onKeyup:o[8]||(o[8]=withKeys((...s)=>t.clear&&t.clear(...s),["enter"]))},[createBaseVNode("span",{class:normalizeClass(t.classList.clearIcon)},null,2)],34)]):createCommentVNode("v-if",!0),createCommentVNode(" Caret "),r.caret&&r.showOptions?renderSlot(t.$slots,"caret",{key:7},()=>[createBaseVNode("span",{class:normalizeClass(t.classList.caret),"aria-hidden":"true",onClick:o[9]||(o[9]=(...s)=>t.handleCaretClick&&t.handleCaretClick(...s))},null,2)]):createCommentVNode("v-if",!0)]),createCommentVNode(" Options "),(openBlock(),createBlock(Teleport,{to:"body",disabled:!r.useTeleport},[createBaseVNode("div",{ref:"dropdownEl",class:normalizeClass([...t.classList.dropdown,{"is-teleported":r.useTeleport,"is-no-options":t.noOptions}]),style:normalizeStyle(r.useTeleport?t.getTeleportElStyle():null),tabindex:"-1"},[renderSlot(t.$slots,"beforelist",{options:t.fo}),createBaseVNode("ul",{id:t.ariaOwns,class:normalizeClass(t.classList.options)},[renderSlot(t.$slots,"prependToList"),r.groups?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(t.fg,(s,l,d)=>(openBlock(),createElementBlock("li",{id:t.ariaGroupId(s),key:d,class:normalizeClass(t.classList.group),"aria-label":t.ariaGroupLabel(s),"aria-selected":t.isSelected(s),role:"option"},[createBaseVNode("div",{class:normalizeClass(t.classList.groupLabel(s)),"data-pointed":t.isPointed(s),onMouseenter:c=>t.setPointer(s,l),onClick:c=>t.handleGroupClick(s)},[renderSlot(t.$slots,"grouplabel",{group:s,isSelected:t.isSelected,isPointed:t.isPointed},()=>[withDirectives(createBaseVNode("span",null,null,512),[[i,s[r.groupLabel]]])])],42,_hoisted_9$Q),createBaseVNode("ul",{class:normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(s),role:"group"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.__VISIBLE__,(c,u,f)=>(openBlock(),createElementBlock("li",{id:t.ariaOptionId(c),key:f,class:normalizeClass(t.classList.option(c,s)),"data-pointed":t.isPointed(c),"data-selected":t.isSelected(c)||void 0,"aria-selected":t.isSelected(c),"aria-label":t.ariaOptionLabel(c),"data-value":c[r.valueProp],role:"option",onMouseenter:m=>t.setPointer(c),onClick:m=>t.handleOptionClick(c)},[renderSlot(t.$slots,"option",{option:c,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[withDirectives(createBaseVNode("span",null,null,512),[[i,c[r.label]]])])],42,_hoisted_11$F))),128))],10,_hoisted_10$H)],10,_hoisted_8$V))),128)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(t.fo,(s,l,d)=>(openBlock(),createElementBlock("li",{id:t.ariaOptionId(s),key:d,class:normalizeClass(t.classList.option(s)),"data-pointed":t.isPointed(s),"data-selected":t.isSelected(s)||void 0,"aria-selected":t.isSelected(s),"aria-label":t.ariaOptionLabel(s),"data-value":s[r.valueProp],role:"option",onMouseenter:c=>t.setPointer(s),onClick:c=>t.handleOptionClick(s)},[renderSlot(t.$slots,"option",{option:s,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[withDirectives(createBaseVNode("span",null,null,512),[[i,s[r.label]]])])],42,_hoisted_12$D))),128)),renderSlot(t.$slots,"appendToList")],10,_hoisted_7$Y),t.noOptions?renderSlot(t.$slots,"nooptions",{key:0},()=>[withDirectives(createBaseVNode("div",{class:normalizeClass(t.classList.noOptions)},null,2),[[i,r.noOptionsText]])]):createCommentVNode("v-if",!0),t.noResults?renderSlot(t.$slots,"noresults",{key:1},()=>[withDirectives(createBaseVNode("div",{class:normalizeClass(t.classList.noResults)},null,2),[[i,r.noResultsText]])]):createCommentVNode("v-if",!0),r.infinite&&t.hasMore?(openBlock(),createElementBlock("div",{key:2,ref:"infiniteLoader",class:normalizeClass(t.classList.inifinite)},[renderSlot(t.$slots,"infinite",{},()=>[createBaseVNode("span",{class:normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):createCommentVNode("v-if",!0),renderSlot(t.$slots,"afterlist",{options:t.fo})],6)],8,["disabled"])),createCommentVNode(" Hacky input element to show HTML5 required warning "),r.required?(openBlock(),createElementBlock("input",{key:0,class:normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,_hoisted_13$A)):createCommentVNode("v-if",!0),createCommentVNode(" Native input support "),r.nativeSupport?(openBlock(),createElementBlock(Fragment,{key:1},[r.mode=="single"?(openBlock(),createElementBlock("input",{key:0,t
1167ype:"hidden",name:r.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,_hoisted_14$z)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(t.plainValue,(s,l)=>(openBlock(),createElementBlock("input",{key:l,type:"hidden",name:`${r.name}[]`,value:s},null,8,_hoisted_15$x))),128))],64)):createCommentVNode("v-if",!0),createCommentVNode(" Create height for empty input "),createBaseVNode("div",{class:normalizeClass(t.classList.spacer)},null,2)],16,_hoisted_1$26)],2112)}script.render=render$n;script.__file="src/Multiselect.vue";function useInternalValue(t="modelValue",o={}){var u;const r=getCurrentInstance(),e={eventName:`update:${t}`,defaultValue:null,valueWatchCallback:null,propValueWatchCallback:null,beforeEmitTransform:f=>f,propReceivedTransform:f=>f,...o},n=r.emit,a=r.props;if(!(t in a))throw new Error(`useInternalValue: Prop '${t}' does not exist`);const i=ref$1(e.defaultValue),s=f=>{i.value!==f&&(i.value=f);const m=e.beforeEmitTransform(f);m!==a[t]&&n(e.eventName,m)},l=watch(i,(f,m)=>{var b;s(f),(b=e.valueWatchCallback)==null||b.call(e,f,m)}),d=watch(()=>a[t],(f,m)=>{var y;const b=e.propReceivedTransform(f);i.value!==b&&(i.value=b,(y=e.propValueWatchCallback)==null||y.call(e,b,m))});if(a[t]!==void 0&&a[t]!==null){const f=e.propReceivedTransform(a[t]);if(i.value===f)return;const m=i.value;i.value=f,(u=e.propValueWatchCallback)==null||u.call(e,f,m)}const c=()=>{l(),d()};return onUnmounted(()=>{c()}),i}const __default__$1K={name:"Dropdown",inheritAttrs:!1},_sfc_main$1L=Object.assign(__default__$1K,{props:{name:{type:String,default:""},options:{type:Array,default:()=>[]},modelValue:{type:String,default:null},defaultValue:{type:[String,Object],default:null},desktopVariant:{type:String,default:""},mobileVariant:{type:String,default:""},placeholderText:{type:String,default:"‎ "},labelText:{type:String,default:""},overlayAttrs:{type:Object,default:()=>({})},rootAttrs:{type:Object,default:()=>({})},validation:{type:[Object,Function],default:null,validator:t=>t===null||t instanceof yup.BaseSchema||t instanceof Function},required:{type:Boolean,default:!1},requiredErrorMsg:{type:String,default:i18nGlobal.t("This field is required")},isSearchable:{type:Boolean,default:!1},isExcludeFromEmail:{type:Boolean,default:!1},isClickDropdownMenuToCloseOverlay:{type:Boolean,default:!1},isValidationOnBlur:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1}},emits:["update:modelValue","mobile-overlay-closed"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(!1),i=useEventBus("dropdown-events"),s=j=>{e.desktopVariant!=="switch-tab-variant"&&isMobileViewport.value&&(a.value=!0)},l=j=>{a.value=!1},d=()=>{a.value=!1},c=useInternalValue("modelValue",{defaultValue:e.defaultValue});watch(c,()=>{var j,H,U;c.value?(j=m.value)==null||j.select(c.value):(H=m.value)==null||H.clear(),(U=b.value)==null||U.select(c.value)});const u=ref$1(null),f=ref$1(null),m=ref$1(null),b=ref$1(null),y=ref$1(null),_=computed(()=>{var j;return c.value?typeof c.value=="string"?c.value:((j=c.value)==null?void 0:j.value)??c.value:""}),S=computed(()=>e.validation?e.validation:e.required?yup.string().required(e.requiredErrorMsg).nullable():null),C=()=>{},T=computed(()=>{var H;const j=(H=e.options)==null?void 0:H[0];return j?!!(j.label&&j.options):!1}),x=()=>{var j;(j=y.value)==null||j.setTouched(!0)},k=()=>{f.value.focus()},E=ref$1(!1),w=()=>{if(e.isClickDropdownMenuToCloseOverlay){if(E.value){E.value=!1,f.value.focus();return}E.value=!0}},D=()=>{isMobileViewport&&(a.value=!1,E.value=!1),m==null||m.value.close()};onMounted(()=>{var j,H,U,B;e.isClickDropdownMenuToCloseOverlay&&((B=(U=(H=(j=m.value)==null?void 0:j.dropdownEl)==null?void 0:H.parentElement)==null?void 0:U.querySelector(".multiselect-search-wrapper"))==null||B.addEventListener("click",w))}),onUnmounted(()=>{var j,H,U,B;e.isClickDropdownMenuToCloseOverlay&&((B=(U=(H=(j=m.value)==null?void 0:j.dropdownEl)==null?void 0:H.parentElement)==null?void 0:U.querySelector(".multiselect-search-wrapper"))==null||B.removeEventListener("click",w))});const N=computed(()=>e.validation instanceof yup.BaseSchema?e.validation.nullable().transform(j=>j||null):e.validation),{setErrors:F,validate:V}=useFieldValidation({name:toRef(e,"name"),validation:N,modelValue:toRef(e,"modelValue"),...e.autoTransformToUppercase?{valueTransform:j=>{var H;return((H=j==null?void 0:j.toUpperCase)==null?void 0:H.call(j))??j}}:null,...e.autoTransformToTitlecase?{valueTransform:j=>(j==null?void 0:j.replace(/\w\S*/g,H=>H.charAt(0).toUpperCase()+H.substr(1).toLowerCase()))??j}:null}),A=()=>{e.isValidationOnBlur&&V()},M=()=>{var j;if(isMobileViewport.value){a.value=!0,i.emit({type:"mobile-overlay-closed"});return}(j=m==null?void 0:m.value)==null||j.open(),w()};o({hiddenTextField:y,setErrors:F,validate:V,handleOpen:M,closeOverlay:D});const O=window.siteName,R=window.AEM_MHH_THEME_SWITCH,I={props:e,emit:n,isPickerVisible:a,globalDropDownBus:i,handleOnOpen:s,handleMobileChange:l,hideMobileOverlay:d,internalValue:c,rootEl:u,focusDummy:f,multiselectMain:m,multiselectInOverlay:b,hiddenTextField:y,htmlValue:_,validation:S,hiddenTextFieldMounted:C,isGroups:T,handleOnInputBlur:x,handleOverlayHidden:k,isDropdownOverlayOpened:E,handleOnClickDropdownMenu:w,closeOverlay:D,computedValidation:N,setErrors:F,validate:V,handleBlur:A,handleOpen:M,siteName:O,mhhNewTheme:R,get yup(){return yup},get Multiselect(){return script},get isMobileViewport(){return isMobileViewport},OverlayBtmSticky,get useInternalValue(){return useInternalValue},TextField,get MHScrollToElement(){return MHScrollToElement},get i18nGlobal(){return i18nGlobal},get wrapQueryWithHTML(){return wrapQueryWithHTML},get useFieldValidation(){return useFieldValidation},get useEventBus(){return useEventBus}};return Object.defineProperty(I,"__isScriptSetup",{enumerable:!1,value:!0}),I}}),_hoisted_1$25=["data-use-theme"],_hoisted_2$1D={class:"placeholder-wrapper relative flex-grow mr-2 leading-none"},_hoisted_3$1c={class:"text-label absolute font-semibold"},_hoisted_4$14={class:"text-placeholder text-neutral-grey-ultradark relative"},_hoisted_5$10={class:"value-wrapper multiselect-single-label flex-grow mr-2 rtl:ml-2 leading-normal"},_hoisted_6$Y={class:"text-label absolute font-semibold"},_hoisted_7$X={class:"text-value relative flex items-center"},_hoisted_8$U={class:""},_hoisted_9$P={class:"auxiliary-label-wrapper multiselect-single-label -order-1 flex-grow mr-2 leading-none"},_hoisted_10$G={class:"text-label absolute font-semibold"},_hoisted_11$E={ref:"focusDummy",class:"focusable-dummy",tabindex:"-1","aria-hidden":"true"},_hoisted_12$C={class:"pl-5 sticky top-0 bg-white z-1000 pb-3 w-full h-$overlayTitleHeight"},_hoisted_13$z={class:"font-bold line-clamp-1"},_hoisted_14$y=["data-use-theme"],_hoisted_15$w={class:"placeholder-wrapper relative flex-grow mr-2 leading-none"},_hoisted_16$u={class:"text-label absolute font-semibold"},_hoisted_17$r={class:"text-placeholder text-neutral-grey-ultradark relative"},_hoisted_18$o={class:""},_hoisted_19$l={class:"value-wrapper multiselect-single-label flex-grow mr-2 leading-none"},_hoisted_20$k={class:"text-label absolute font-semibold"},_hoisted_21$k={class:"text-value relative flex items-center"},_hoisted_22$j={class:"pr-2"};function _sfc_render$1L(t,o,r,e,n,a){var l,d;const i=__unplugin_components_0$a,s=resolveDirective("html-sanitize");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",mergeProps({ref:"rootEl",class:["Dropdown",{"has-validation-error":((l=e.hiddenTextField)==null?void 0:l.hasValidationError)&&((d=e.hiddenTextField)==null?void 0:d.meta.touched),"glass-design":e.props.enableGlassDesign,"mhh-new-theme":e.mhhNewTheme}]},e.props.rootAttrs,{"data-use-theme":e.siteName}),[createVNode(e.Multiselect,mergeProps({ref:"multiselectMain",modelValue:e.internalValue,"onUpdate:modelValue":o[0]||(o[0]=c=>e.internalValue=c),options:e.props.options,canClear:!1,canDeselect:!1,groups:e.isGroups,classes:{dropdown:"multiselect-dropdown shadow-type-a mt-4 py-2 pr-2 md:hidden",options:"multiselect-options flex flex-col py-0 px-2 m-0 list-none styled-scrollbar"},attrs:{onBlur:e.handleOnInputBlur,name:e.props.isSearchable?"":e.props.name,...t.$attrs},"data-variant":e.props.desktopVariant},t.$attrs,{class:["multiselect-main",[t.$attrs.class]],placeholder:e.props.labelText,searchable:e.props.isSearchable,onOpen:o[1]||(o[1]=c=>e.handleOnOpen(c)),onClose:o[2]||(o[2]=c=>{e.handleBlur()}),onFocusout:o[3]||(o[3]=c=>{e.handleBlur()})}),createSlots({placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_2$1D,[createBaseVNode("span",_hoisted_3$1c,toDisplayString(e.props.labelText),1),createBaseVNode("span",_hoisted_4$14,toDisplayString(e.props.placeholderText),1)])]),singlelabel:withCtx(({value:c})=>[createBaseVNode("div",_hoisted_5$10,[createBaseVNode("span",_hoisted_6$Y,toDisplayString(e.props.labelText),1),createBaseVNode("span",_hoisted_7$X,toDisplayString(c.label),1)])]),option:withCtx(({option:c,search:u})=>[withDirectives(createBaseVNode("span",_hoisted_8$U,null,512),[[s,e.wrapQueryWithHTML(c.label,{query:u,className:"search-keyword-highlight"})]])]),caret:withCtx(()=>[createBaseVNode("div",_hoisted_9$P,[createBaseVNode("span",_hoisted_10$G,toDisplayString(e.props.labelText),1)]),createBaseVNode("span",null,[createVNode(i,{class:"dropdown-caret mr-7 2xl:mr-3 rtl:ml-7 md:mr-3 md:rtl:ml-3 z-50 relative transition-transform duration-200 fill-primary-blue-base"})])]),_:2},[renderList(t.$slots,(c,u)=>({name:u,fn:withCtx(f=>[renderSlot(t.$slots,u,normalizeProps(guardReactiveProps({...f,hideMobileOverlay:e.hideMobileOverlay})),void 0,!0)])}))]),1040,["modelValue","options","groups","attrs","data-variant","class","placeholder","searchable"]),createVNode(e.TextField,{ref:"hiddenTextField",class:"",modelValue:e.htmlValue,name:e.props.name,ariaLabel:e.props.labelText,validation:e.validation,variant:"input-hidden",isExcludeFromEmail:e.props.isExcludeFromEmail,onVnodeMounted:e.hiddenTextFieldMounted},null,8,["modelValue","name","ariaLabel","validation","isExcludeFromEmail"]),createBaseVNode("div",_hoisted_11$E,null,512)],16,_hoisted_1$25),createVNode(e.OverlayBtmSticky,mergeProps({class:"Dropdown-overlay",isVisible:e.isPickerVisible&&e.isMobileViewport,style:{"--overlayTitleHeight":"36px"}},e.props.overlayAttrs,{overlayContentAttrs:{class:"!mb-0"},class:{"Dropdown-overlay-non-searchable":!e.props.isSearchable},"onUpdate:isVisible":o[5]||(o[5]=c=>{e.isPickerVisible=c,e.handleOverlayHidden()})}),{default:withCtx(()=>[createBaseVNode("div",_hoisted_12$C,[createBaseVNode("h6",_hoisted_13$z,[render
1167Slot(t.$slots,"mobile-title",{},()=>[createTextVNode(toDisplayString(e.props.labelText),1)],!0)])]),createBaseVNode("div",{ref:"rootEl",class:"Dropdown","data-use-theme":e.siteName},[createVNode(e.Multiselect,mergeProps({ref:"multiselectInOverlay",modelValue:e.internalValue,"onUpdate:modelValue":o[4]||(o[4]=c=>e.internalValue=c),options:e.props.options,placeholder:e.props.placeholderText,canClear:!1,canDeselect:!1,classes:{dropdown:"multiselect-dropdown md:hidden mt-0 !flex",options:"multiselect-options flex flex-col py-0 m-0 list-none styled-scrollbar empty:hidden"},"data-variant":`in-mobile-overlay ${e.props.mobileVariant}`,groups:e.isGroups},t.$attrs,{class:["multiselect-main",[t.$attrs.class,{"non-searchable":!e.props.isSearchable}]],searchable:e.props.isSearchable,onSelect:e.handleMobileChange}),createSlots({placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_15$w,[createBaseVNode("span",_hoisted_16$u,toDisplayString(e.props.labelText),1),createBaseVNode("span",_hoisted_17$r,toDisplayString(e.props.placeholderText),1)])]),option:withCtx(({option:c,search:u})=>[withDirectives(createBaseVNode("span",_hoisted_18$o,null,512),[[s,e.wrapQueryWithHTML(c.label,{query:u,className:"search-keyword-highlight"})]])]),singlelabel:withCtx(({value:c})=>[createBaseVNode("div",_hoisted_19$l,[createBaseVNode("span",_hoisted_20$k,toDisplayString(e.props.labelText),1),createBaseVNode("div",_hoisted_21$k,[o[6]||(o[6]=createBaseVNode("div",{class:"sr-only"},"Value is ",-1)),createBaseVNode("span",_hoisted_22$j,toDisplayString(c.displayValue??c.label),1),renderSlot(t.$slots,"extra-text",{},void 0,!0)])])]),_:2},[renderList(t.$slots,(c,u)=>({name:u,fn:withCtx(f=>[renderSlot(t.$slots,u,normalizeProps(guardReactiveProps({...f,hideMobileOverlay:e.hideMobileOverlay})),void 0,!0)])}))]),1040,["modelValue","options","placeholder","data-variant","groups","class","searchable"])],8,_hoisted_14$y)]),_:3},16,["isVisible","class"])],64)}const Dropdown=_export_sfc(_sfc_main$1L,[["render",_sfc_render$1L],["__scopeId","data-v-f2e983a5"],["__file","Dropdown.vue"]]);class AnchorClass{constructor({scrollToElement:o}){this._scrollToElement=o;const r=new Map;this._anchorMap=r,this._onFunc=function(n,a){switch(n){case"activate":{const i=r.get(this.id);i&&i.onActivate.push(a);break}default:{console.warn(`Anchor register callback: Event "${n}" not recognized. Make sure it is spelled correctly.`);break}}}}register(o,r,e={}){this._anchorMap.get(o),this._anchorMap.set(o,{node:r,options:e,onActivate:[]});const n={id:o,node:r,options:e};return{on:this._onFunc.bind(n),...n}}unregister(o){this._anchorMap.delete(o)}activate(o,r={}){var a,i;const e=this._anchorMap.get(o);if(!e)return!1;const n={performScroll:!0,supressCallback:!1,scrollOptions:{},routerVerb:"replace",...e.options||null,...r};n.supressCallback||e.onActivate.forEach(s=>s(e.node)),n.updateHash&&(window.router?(i=(a=window.router)[n.routerVerb])==null||i.call(a,{hash:`#${o}`}):window.location.hash=o),n.performScroll&&this._scrollToElement(unref(e.node),n.scrollOptions)}get mappings(){return this._anchorMap}}const Anchor=new AnchorClass({scrollToElement});Anchor.register("body",document.body);function useRouteHash(){const t=useRouteHash$1(),o=computed(()=>t.value.replace(/^#/,"").split(/\?(.*)/s)),r=computed(()=>o.value.at(0)),e=computed(()=>o.value.at(1)??""),n=computed(()=>e.value?parseQuery$1(e.value):{});return{rawValue:t,hash:r,hashQueryString:e,hashQuery:n}}function useSideSheetOverlay(){var u;const t=useRoute$1(),o=useRouter$1(),{pageProperties:r}=useGlobalAEMState$1(),e=ref$1(t.hash),n=ref$1(!1),a=ref$1([...((u=r.value.overlayPageProperties)==null?void 0:u.overlayItems)??[],...r.value.globalSidesheetOverlayList??[]]),i=ref$1(null),s=f=>{f&&o.replace({hash:f})},l=()=>{o.replace({hash:""})},d=f=>{const m=Object.fromEntries(Object.entries(t.query).filter(([b])=>f.includes(b)));o.replace({query:{...m},hash:""})},c=f=>a.value.find(m=>m.overlayID===f);return watch(()=>t.hash,f=>{let m=f.split("#"),b=f;m.length-1>1&&(b=`#${m[1]}`);const[y,_]=b?b.includes("?")?b.split("?"):[b,""]:["",""];e.value=y,f?(i.value=c(e.value),n.value=!!i.value):(i.value=null,n.value=!1)},{immediate:!0}),{hashValue:e,overlayData:i,isVisible:n,setOverlayID:s,removeOverlayID:l,removeOverlayIdButKeepQuery:d}}const __default__$1J={name:"SwitchTab",inheritAttrs:!1},_sfc_main$1K=Object.assign(__default__$1J,{props:{tabType:{type:String,default:"mh-switch-tab"},tabList:{type:Array,default:()=>[]},tabSwiperOptions:{type:Object,default:()=>({})},useSlotAsContent:{type:Boolean,default:!1},updateHashOnSwitch:{type:Boolean,default:!0},contentContainerClass:{type:String,default:""},desktopAllowTouchMove:{type:Boolean,default:!1},componentIdAA:{type:String,default:""},componentNameAA:{type:String,default:"SwitchTab"},hideTabs:{type:Boolean,default:!1},isDropdownInMobileView:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1},dataVariant:{type:String,default:"switch-tab"}},emits:["update:active-tab"],setup(t,{expose:o,emit:r}){var M,O;const e=t,n=r,a=window.siteName,{isRTL:i}=useIsRTL(),s=ref$1(((M=e.tabList.find(R=>R.selectedDefault))==null?void 0:M.anchorTag)??((O=e.tabList[0])==null?void 0:O.anchorTag)??""),l=ref$1(null),d=ref$1(null);let c=!1;const{isVisible:u}=useSideSheetOverlay(),f=R=>{s.value=R,n("update:active-tab",s.value)},m=async R=>{if(R!==s.value){if(e.enableGlassDesign&&(s.value=R,f(R)),!e.enableGlassDesign&&u.value){s.value=R;return}c=!0,Anchor.activate(R,{updateHash:e.updateHashOnSwitch})}},b=computed(()=>e.tabList.map(R=>({component:getCompositeComponent({type:"mh/components/mh-layout-container",componentKey:`switch-tab-parsys-${R.anchorTag}`}),...R}))),y=computed(()=>e.tabList.map(R=>R.anchorTag)),{isEditorMode:_}=useGlobalAEMState$1(),S=computed(()=>isMobileViewport.value?e.tabList.length>2?2.2:e.tabList.length:isXXXL.value?e.tabList.length>4?4.2:e.tabList.length:e.tabList.length>3?3.2:e.tabList.length),C=R=>
1167{if(c){c=!1;return}y.value.includes(R)&&Anchor.activate(R,{updateHash:!1,performScroll:!0})};onMounted(()=>{_.value||(e.tabList.forEach(R=>{R.anchorTag&&Anchor.register(R.anchorTag,l.value,{updateHash:!0,performScroll:!1}).on("activate",()=>{f(R.anchorTag)})}),setTimeout(()=>{C(T.value)},500))});const{hash:T}=useRouteHash(),x=useRouter$1();watch(T,C);const k=ref$1(null),E=ref$1(null),w=ref$1(!1),D=()=>{const R=document.querySelector(".swiper-header"),I=(R==null?void 0:R.querySelector(".swiper-wrapper"))||(R==null?void 0:R.children[0]);if(R&&I){const j=I.scrollWidth-25;w.value=j<=R.clientWidth}};window.addEventListener("resize",D),setTimeout(D,300);const N=computed(()=>e.tabList.map(R=>({...R,label:R.tabTitle,value:R.anchorTag}))),F=R=>{x.replace({hash:`#${R}`})},V=()=>{const R=document.querySelector(".SwitchTabHeader"),I=document.querySelector(".SwitchTabHeader .Dropdown");R.getBoundingClientRect().top<=100?I.classList.add("sticked"):I.classList.remove("sticked"),document.querySelector("html").classList.contains("scroll-dir-up")&&I.classList.contains("sticked")?I.classList.add("is-scrolling-up"):I.classList.remove("is-scrolling-up")};onMounted(()=>{e.isDropdownInMobileView&&(setTimeout(()=>{V()},500),window.addEventListener("scroll",V,{passive:!0}))}),onUnmounted(()=>{e.isDropdownInMobileView&&window.removeEventListener("scroll",V)}),o({rootEl:l,switchTab:f,swiperEl:d});const A={props:e,emit:n,siteName:a,isRTL:i,activeTab:s,rootEl:l,swiperEl:d,get skipNextHashChange(){return c},set skipNextHashChange(R){c=R},isVisible:u,switchTab:f,handleTabClick:m,switchTabParsys:b,allAnchors:y,isEditorMode:_,computedSlidePerView:S,handleHashChange:C,hash:T,router:x,switchTabArrowNext:k,switchTabArrowPrev:E,tabFitOnScreen:w,updateTabVisibility:D,computedDropdownOptionsForMobile:N,handleDropdownSelection:F,initStickyMobileDropdown:V,get getCompositeComponent(){return getCompositeComponent},Parsys,Dropdown,VueSwiper,get isMobileViewport(){return isMobileViewport},get isXXXL(){return isXXXL},get Anchor(){return Anchor},get useRouteHash(){return useRouteHash},get useGlobalAEMState(){return useGlobalAEMState$1},get useIsRTL(){return useIsRTL},get useRouter(){return useRouter$1},get useSideSheetOverlay(){return useSideSheetOverlay}};return Object.defineProperty(A,"__isScriptSetup",{enumerable:!1,value:!0}),A}}),_hoisted_1$24=["data-use-theme","data-variant"],_hoisted_2$1C=["data-tab-variant"],_hoisted_3$1b={class:"value-wrapper multiselect-single-label flex-grow mr-2 rtl:ml-2 leading-normal"},_hoisted_4$13={class:"dropdown-label flex justify-start items-center h-full"},_hoisted_5$$={class:"mr-3"},_hoisted_6$X={class:"mr-3"},_hoisted_7$W=["aria-label","onClick"],_hoisted_8$T=["aria-label","onClick"],_hoisted_9$O={class:"SwitchTabHeaderText text-white text-left line-clamp-2 md:leading-5 relative z-10"},_hoisted_10$F=["src","alt"],_hoisted_11$D=["aria-label","onClick"],_hoisted_12$B={class:"absolute bottom-[-4px] left-0 w-full h-1 bg-primary-blue-base rounded-b-[4px]"},_hoisted_13$y={class:"max-h-12"},_hoisted_14$x=["aria-label","onClick"],_hoisted_15$v={class:"SwitchTabArrow-wrapper justify-end right-0"},_hoisted_16$t={ref:"switchTabArrowNext",class:"SwitchTabArrow next ml-1",type:"button"},_hoisted_17$q={class:"SwitchTabArrow-wrapper justify-start left-0"},_hoisted_18$n={ref:"switchTabArrowPrev",type:"button",class:"SwitchTabArrow prev mr-1"},_hoisted_19$k=["data-tab-content-name"];function _sfc_render$1K(t,o,r,e,n,a){const i=__unplugin_components_0$b,s=__unplugin_components_1$6,l=resolveDirective("html-sanitize"),d=resolveDirective("aa");return openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["SwitchTab",t.$attrs.class]),style:normalizeStyle(t.$attrs.style),"data-use-theme":e.siteName,"data-variant":e.props.dataVariant},[e.props.hideTabs?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:"SwitchTabHeader generic-container","data-tab-variant":e.props.tabType},[e.props.tabList.length!==0&&e.props.isDropdownInMobileView?(openBlock(),createBlock(e.Dropdown,{key:0,modelValue:e.activeTab,"onUpdate:modelValue":o[0]||(o[0]=c=>e.activeTab=c),options:e.computedDropdownOptionsForMobile,rootAttrs:{class:"mb-4 >md:hidden"}
1167,desktopVariant:"switch-tab-variant",onChange:e.handleDropdownSelection},{singlelabel:withCtx(({value:c})=>[createBaseVNode("div",_hoisted_3$1b,[createBaseVNode("div",_hoisted_4$13,[createBaseVNode("span",_hoisted_5$$,toDisplayString(c.tabTitle),1),withDirectives(createBaseVNode("span",{class:"tab-tag-label",style:normalizeStyle({"background-color":c.tabTagBackgroundColour||"transparent"})},null,4),[[l,c.tabTagLabel]])])])]),option:withCtx(({option:c})=>[createBaseVNode("span",_hoisted_6$X,toDisplayString(c.tabTitle),1),withDirectives(createBaseVNode("span",{class:"tab-tag-label",style:normalizeStyle({"background-color":c.tabTagBackgroundColour||"transparent"})},null,4),[[l,c.tabTagLabel]])]),_:1},8,["modelValue","options"])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["SwitchTabHeader-inner-wrapper flex justify-center relative",{"md:hidden":e.props.isDropdownInMobileView}])},[e.props.tabType==="mh-switch-tab"?(openBlock(),createElementBlock(Fragment,{key:0},[e.switchTabArrowNext&&e.switchTabArrowPrev?(openBlock(),createBlock(e.VueSwiper,mergeProps({key:0,ref:"swiperEl",class:"swiper-header",variant:"slides-auto-width",slidesPerView:"auto",breakpoints:{"767.1":{allowTouchMove:e.props.desktopAllowTouchMove}},navigation:{nextEl:e.isRTL?e.switchTabArrowPrev:e.switchTabArrowNext,prevEl:e.isRTL?e.switchTabArrowNext:e.switchTabArrowPrev}},e.props.tabSwiperOptions,{dir:e.isRTL?"rtl":"ltr"}),{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.tabList,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:c.anchorTag,class:normalizeClass(["SwitchTabHeaderItem px-0 py-0",{"text-neutral-white-base selected":e.activeTab==c.anchorTag}]),style:{"--focus-visible-outline-offset":"-2px","--focus-visible-outline-width":"0"},type:"button","aria-label":c.tabTitle,onClick:f=>e.handleTabClick(c.anchorTag)},[o[3]||(o[3]=createBaseVNode("div",{class:"SwitchTabHeaderItem-focus-ring"},null,-1)),createBaseVNode("div",{class:normalizeClass(["SwitchTabHeaderItemLeft bg-neutral-grey-extralight w-9 md:w-7.5 h-full transform",{"bg-transparent":u===0}])},[(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 36 48",class:normalizeClass(["h-full relative right-[-1px] transform rtl:rotate-y-180 rtl:right-auto rtl:left-[-1px]",[e.activeTab==c.anchorTag?"fill-primary-blue-base h-full":"fill-neutral-grey-extralight"]])},o[1]||(o[1]=[createBaseVNode("g",{transform:"translate(-366 -200)"},[createBaseVNode("path",{d:"M266.225,0H218.887c-11.415,0-16.023,12-16.023,12L184.9,48H230l17.966-36S254.4-.172,266.225,0Z",transform:"translate(182 200.002)"})],-1)]),2))],2),createBaseVNode("div",{class:normalizeClass(["SwitchTabHeaderItemCenter relative flex-grow h-full flex items-center justify-center",e.activeTab===c.anchorTag?"bg-primary-blue-base":"bg-neutral-grey-extralight"])},[withDirectives(createBaseVNode("span",{class:"tab-tag-label",style:normalizeStyle({"background-color":c.tabTagBackgroun
1167dColour||"transparent"})},null,4),[[l,c.tabTagLabel]]),createBaseVNode("span",null,toDisplayString(c.tabTitle),1)],2),createBaseVNode("div",{class:normalizeClass(["SwitchTabHeaderItemRight bg-neutral-grey-extralight w-8 md:w-7 h-full transform rtl:rotate-y-180",{"bg-transparent":u===e.props.tabList.length-1}])},[(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 48",class:normalizeClass(["h-full relative left-[-1px]",[e.activeTab==c.anchorTag?"fill-primary-blue-base h-full":"fill-neutral-grey-extralight"]])},o[2]||(o[2]=[createBaseVNode("g",{transform:"translate(-354 -200)"},[createBaseVNode("path",{d:"M36.225,0H190.887c18.595,0,11.977,12,11.977,12L184.9,48H0L17.966,12S24.4-.172,36.225,0Z",transform:"translate(182 200.002)"})],-1)]),2))],2)],10,_hoisted_7$W)),[[d,[{clickName:c.tabTitle,clickComponentType:"Button",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:c.tabTitle,type:"other"}]]])),128))]),_:1},16,["breakpoints","navigation","dir"])):createCommentVNode("",!0)],64)):createCommentVNode("",!0),e.props.tabType==="tile-switch-tab"?(openBlock(),createElementBlock(Fragment,{key:1},[e.switchTabArrowNext&&e.switchTabArrowPrev?(openBlock(),createBlock(e.VueSwiper,mergeProps({key:0,ref:"swiperEl",class:"swiper-header",slidesPerView:e.computedSlidePerView,spaceBetween:e.isMobileViewport?12:24,breakpoints:{767.1:{centeredSlides:!0,centeredSlidesBounds:!0,centerInsufficientSlides:!0,navigation:{nextEl:e.isRTL?e.switchTabArrowPrev:e.switchTabArrowNext,prevEl:e.isRTL?e.switchTabArrowNext:e.switchTabArrowPrev},allowTouchMove:e.props.desktopAllowTouchMove},1535.1:{centeredSlides:!1,centeredSlidesBounds:!1,centerInsufficientSlides:!1,navigation:{nextEl:e.isRTL?e.switchTabArrowPrev:e.switchTabArrowNext,prevEl:e.isRTL?e.switchTabArrowNext:e.switchTabArrowPrev},allowTouchMove:e.props.desktopAllowTouchMove}}},e.props.tabSwiperOptions,{dir:e.isRTL?"rtl":"ltr"}),{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.tabList,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:c.anchorTag,class:normalizeClass(["SwitchTabHeaderItem px-0 py-0 
1167w-full",{"text-neutral-white-base selected":e.activeTab==c.anchorTag}]),type:"button","aria-label":c.tabTitle,onClick:f=>e.handleTabClick(c.anchorTag)},[createBaseVNode("div",{class:normalizeClass(["w-full h-full relative p-2.5 >md:p-6",e.activeTab===c.anchorTag?"bg-gradient-royal-gold":"bg-gradient-blue-glass"])},[createBaseVNode("span",_hoisted_9$O,toDisplayString(c.tabTitle),1),createBaseVNode("img",{src:c.tabImage,class:"SwitchTabHeaderImg",loading:"lazy",alt:c.tabImageAltText},null,8,_hoisted_10$F)],2)],10,_hoisted_8$T)),[[d,[{clickName:c.tabTitle,clickComponentType:"Button",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:c.tabTitle,type:"other"}]]])),128))]),_:1},16,["slidesPerView","spaceBetween","breakpoints","dir"])):createCommentVNode("",!0)],64)):createCommentVNode("",!0),e.props.tabType==="enrich-switch-tab"?(openBlock(),createElementBlock(Fragment,{key:2},[o[5]||(o[5]=createBaseVNode("div",{class:"bg-neutral-grey-base h-0.5 w-full absolute left-0 bottom-[6px]"},null,-1)),e.switchTabArrowNext&&e.switchTabArrowPrev?(openBlock(),createBlock(e.VueSwiper,mergeProps({key:0,ref:"swiperEl",class:"swiper-header pb-2",variant:"slides-auto-width",slidesPerView:"auto",navigation:{nextEl:e.isRTL?e.switchTabArrowPrev:e.switchTabArrowNext,prevEl:e.isRTL?e.switchTabArrowNext:e.switchTabArrowPrev},allowTouchMove:!0},e.props.tabSwiperOptions,{dir:e.isRTL?"rtl":"ltr"}),{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.tabList,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:c.anchorTag,class:normalizeClass(["SwitchTabHeaderItem px-0 py-0",{"text-neutral-white-base selected":e.activeTab==c.anchorTag}]),style:{"--focus-visible-outline-offset":"-2px","--focus-visible-outline-width":"0"},type:"button","aria-label":c.tabTitle,onClick:f=>e.handleTabClick(c.anchorTag)},[o[4]||(o[4]=createBaseVNode("div",{class:"SwitchTabHeaderItem-focus-ring"},null,-1)),createBaseVNode("div",{class:normalizeClass(["SwitchTabHeaderItemCenter relative flex-grow h-full flex items-center justify-center text-neutral-grey-ultradark",{"!text-primary-blue-base":e.activeTab==c.anchorTag}])},[withDirectives(createBaseVNode("div",_hoisted_12$B,null,512),[[vShow,e.activeTab==c.anchorTag]]),createBaseVNode("span",_hoisted_13$y,toDisplayString(c.tabTitle),1)],2)],10,_hoisted_11$D)),[[d,[{clickName:c.tabTitle,clickComponentType:"Button",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:c.tabTitle,type:"other"}]]])),128))]),_:1},16,["navigation","dir"])):createCommentVNode("",!0)],64)):createCommentVNode("",!0),e.props.tabType==="liquid-glass-tab"?(openBlock(),createElementBlock(Fragment,{key:3},[e.switchTabArrowNext&&e.switchTabArrowPrev?(openBlock(),createBlock(e.VueSwiper,mergeProps({key:0,ref:"swiperEl",class:"swiper-header",variant:"slides-auto-width",slidesPerView:"auto",breakpoints:{"767.1":{allowTouchMove:e.props.desktopAllowTouchMove}},navigation:{nextEl:e.isRTL?e.switchTabArrowPrev:e.switchTabArrowNext,prevEl:e.isRTL?e.switchTabArrowNext:e.switchTabArrowPrev}},e.props.tabSwiperOptions,{dir:e.isRTL?"rtl":"ltr"}),{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.tabList,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:c.anchorTag,class:normalizeClass(["SwitchTabHeaderItem px-0 py-0",{"text-neutral-white-base selected":e.activeTab==c.anchorTag}]),style:{"--focus-visible-outline-offset":"-2px","--focus-visible-outline-width":"0"},type:"button","aria-label":c.tabTitle,onClick:f=>e.handleTabClick(c.anchorTag)},[o[6]||(o[6]=createBaseVNode("div",{class:"SwitchTabHeaderItem-focus-ring"},null,-1)),createBaseVNode("div",{class:normalizeClass(["SwitchTabHeaderItemCenter relative flex-grow h-full flex items-center justify-center",e.activeTab===c.anchorTag?"bg-primary-blue-base":"bg-neutral-grey-extralight"])},[withDirectives(createBaseVNode("span",{class:"tab-tag-label",style:normalizeStyle({"background-color":c.tabTagBackgroun
1167dColour||"transparent"})},null,4),[[l,c.tabTagLabel]]),createBaseVNode("span",null,toDisplayString(c.tabTitle),1)],2)],10,_hoisted_14$x)),[[d,[{clickName:c.tabTitle,clickComponentType:"Button",componentName:e.props.componentNameAA,componentID:e.props.componentIdAA},{name:c.tabTitle,type:"other"}]]])),128))]),_:1},16,["breakpoints","navigation","dir"])):createCommentVNode("",!0)],64)):createCommentVNode("",!0),withDirectives(createBaseVNode("div",_hoisted_15$v,[createBaseVNode("button",_hoisted_16$t,[createVNode(i,{class:"text-lg fill-primary-blue-base"})],512)],512),[[vShow,e.props.enableGlassDesign&&!e.tabFitOnScreen]]),withDirectives(createBaseVNode("div",_hoisted_17$q,[createBaseVNode("button",_hoisted_18$n,[createVNode(s,{class:"text-lg fill-primary-blue-base"})],512)],512),[[vShow,e.props.enableGlassDesign&&!e.tabFitOnScreen]])],2)],8,_hoisted_2$1C)),createBaseVNode("div",{class:normalizeClass(["SwitchTabContent relative z-10",r.contentContainerClass])},[e.props.useSlotAsContent?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.props.tabList,c=>withDirectives((openBlock(),createElementBlock("div",{key:c.anchorTag,class:"switch-tab-content-wrapper","data-tab-content-name":c.anchorTag},[renderSlot(t.$slots,`content-${c.anchorTag}`,{},void 0,!0)],8,_hoisted_19$k)),[[vShow,e.isEditorMode||e.activeTab===c.anchorTag]])),128)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.switchTabParsys,(c,u)=>(openBlock(),createBlock(e.Parsys,{key:c.anchorTag,visible:e.activeTab===c.anchorTag,component:c.component,label:`#${c.anchorTag}`,index:u,"data-tab-id":c.anchorTag},null,8,["visible","component","label","index","data-tab-id"]))),128))],2)],14,_hoisted_1$24)}const SwitchTab=_export_sfc(_sfc_main$1K,[["render",_sfc_render$1K],["__scopeId","data-v-821ba227"],["__file","SwitchTab.vue"]]),SwitchTab$1=Object.freeze(Object.defineProperty({__proto__:null,default:SwitchTab},Symbol.toStringTag,{value:"Module"})),_hoisted_1$23={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"};function render$m(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$23,o[0]||(o[0]=[createBaseVNode("path",{d:"M482.3 192C516.5 192 576 221 576 256C576 292 516.5 320 482.3 320H365.7L265.2 495.9C259.5 505.8 248.9 512 237.4 512H181.2C170.6 512 162.9 501.8 165.8 491.6L214.9 320H112L68.8 377.6C65.78 381.6 61.04 384 56 384H14.03C6.284 384 0 377.7 0 369.1C0 368.7 .1818 367.4 .5398 366.1L32 256L.5398 145.9C.1818 144.6 0 143.3 0 142C0 134.3 6.284 128 14.03 128H56C61.04 128 65.78 130.4 68.8 134.4L112 192H214.9L165.8 20.4C162.9 10.17 170.6 0 181.2 0H237.4C248.9 0 259.5 6.153 265.2 16.12L365.7 192H482.3z"},null,-1)]))}const __unplugin_components_0$9=markRaw({name:"fas-plane",render:render$m}),__default__$1I={name:"MobileSubpage",inheritAttrs:!1},_sfc_main$1J=Object.assign(__default__$1I,{props:{isVisible:{type:Boolean,default:!1},backButtonLabel:{type:String,default:null},mobileSubPageDesign:{type:String,default:"MH"},enableGlassDesign:{type:Boolean,default:!1},blendedHeaderCss:{type:String,default:null},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=()=>{Anchor.activate("body")},i=ref$1([]);usePersistencyWithExpiry("mobileSearches",{refs:{mobileSearches:i}});const s=useRouter$1(),l=()=>{n("update:isVisible",!1),i.value=[],s.replace({hash:""}),d.emit("close-from-mobile",{mobileEvent:!0})},d=useEventBus("booking-widget"),c=window.siteName,u={props:e,emit:n,onRootMounted:a,mobileSearches:i,router:s,closeMobileView:l,bookingWidgetBus:d,siteName:c,get Anchor(){return Anchor},get useEventBus(){return useEventBus},get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get useGlobalAEMState(){return useGlobalAEMState$1},get useRouter(){return useRouter$1}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$22=["data-use-theme","data-use-design"],_hoisted_2$1B={class:"generic-container"},_hoisted_3$1a={class:""},_hoisted_4$12={class:"my-10 text-white"},_hoisted_5$_=["data-use-theme","data-use-design"],_hoisted_6$W={class:"generic-container"},_hoisted_7$V={class:"my-2 text-white relative flex items-center justify-center"},_hoisted_8$S={class:"flex flex-col gap-5"},_hoisted_9$N={key:2,class:"top-rounded-section-breaker"};function _sfc_render$1J(t,o,r,e,n,a){const i=__unplugin_components_0$k,s=__unplugin_components_0$i;return e.props.isVisible?(openBlock(),createBlock(Teleport,mergeProps({key:0,to:"#booking-subpage-container",class:"MobileSubpage text-white"},t.$attrs),[e.props.enableGlassDesign?(openBlock(),createElementBlock("section",{key:1,class:normalizeClass(["section-banner glass-design",r.blendedHeaderCss]),"data-use-theme":e.siteName,"data-use-design":e.props.mobileSubPageDesign,onVnodeMounted:e.onRootMounted},[createBaseVNode("div",_hoisted_6$W,[createBaseVNode("div",_hoisted_7$V,[createBaseVNode("div",_hoisted_8$S,[renderSlot(t.$slots,"banner-title",{},void 0,!0),renderSlot(t.$slots,"swiper",{},void 0,!0)]),createBaseVNode("button",{class:"cross-icon right-5 w-8 h-8 p-0 md:h-6 md:w-6 flex items-center justify-center text-white",type:"button",onClick:o[1]||(o[1]=l=>e.closeMobileView())},[createVNode(s,{class:"w-6 fill-white stroke-[5.5]"})])])])],10,_hoisted_5$_)):(openBlock(),createElementBlock("section",{key:0,class:"section-banner","data-use-theme":e.siteName,"data-use-design":e.props.mobileSubPageDesign,onVnodeMounted:e.onRootMounted},[createBaseVNode("div",_hoisted_2$1B,[createBaseVNode("button",{class:"btn-back flex items-center text-white gap-2",type:"button",onClick:o[0]||(o[0]=l=>e.emit("update:isVisible",!1))},[createVNode(i,{class:"fill-current transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_3$1a,toDisplayString(r.backButtonLabel??t.$t("Back")),1)]),createBaseVNode("div",_hoisted_4$12,[render
1167Slot(t.$slots,"banner-title",{},void 0,!0)])])],8,_hoisted_1$22)),e.props.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_9$N)),renderSlot(t.$slots,"default",{},void 0,!0)],16)):createCommentVNode("",!0)}const MobileSubpage=_export_sfc(_sfc_main$1J,[["render",_sfc_render$1J],["__scopeId","data-v-08dad2fe"],["__file","MobileSubpage.vue"]]),subpageToVisibilityMap=new Map,getRegisteredSubpages=()=>[...subpageToVisibilityMap.keys()];let unwatchMobileViewport=null,savedScrollY=null;const _handleHashChange=(t,o)=>{if(getRegisteredSubpages().includes(o)){const r=subpageToVisibilityMap.get(o);if(!r||(r.isMobileSubpageVisible&&r.hideMobileSubpage({updateHash:!1}),!getRegisteredSubpages().includes(t)))return}getRegisteredSubpages().includes(t)&&(isMobileViewport.value?(savedScrollY=document.documentElement.scrollTop,Anchor.activate("body"),Anchor.activate(t,{performScroll:!1})):Anchor.activate(t,{performScroll:!0}))};let unwatchHash=null;function useBookingWidgetSubpage({hashKey:t,rootEl:o}){const{isEditorMode:r}=useGlobalAEMState$1();if(r.value||!isMobileViewport.value)return{isMobileSubpageVisible:ref$1(!1)};const e=ref$1(!1),{hash:n}=useRouteHash(),a=useRouter$1();unwatchMobileViewport||(unwatchMobileViewport=watch(isMobileViewport,d=>{d&&getRegisteredSubpages().includes(n.value)&&a.replace({hash:""})}));function i(){isMobileViewport.value&&s()}if(Array.isArray(t))for(const d of t)Anchor.register(d,o).on("activate",i);else typeof t=="string"&&Anchor.register(t,o).on("activate",i);const s=()=>{for(const d of subpageToVisibilityMap.values())d.isMobileSubpageVisible!==e&&d.isMobileSubpageVisible.value&&d.hideMobileSubpage({updateHash:!1});e.value=!0,document.documentElement.classList.add("showing-subpages")},l=async({updateHash:d=!0}={})=>{e.value=!1,d&&a.replace({hash:""}),document.documentElement.classList.remove("showing-subpages"),savedScrollY&&(await nextTick$1(),document.documentElement.scrollTop=savedScrollY)};if(unwatchHash||(unwatchHash=watch(n,_handleHashChange)),(typeof t=="string"&&n.value===t||Array.isArray(t)&&t.includes(n.value))&&(isMobileViewport.value?(savedScrollY=document.documentElement.scrollTop,Anchor.activate("body"),Anchor.activate(n.value,{performScroll:!1})):setTimeout(()=>{Anchor.activate(n.value,{performScroll:!0})},500)),Array.isArray(t))for(const d of t)subpageToVisibilityMap.set(d,{rootEl:o,isMobileSubpageVisible:e,hideMobileSubpage:l,showMobileSubpage:s});else typeof t=="string"&&subpageToVisibilityMap.set(t,{rootEl:o,isMobileSubpageVisible:e,hideMobileSubpage:l,showMobileSubpage:s});return onUnmounted(()=>{if(Array.isArray(t))for(const d of t)Anchor.unregister(d),subpageToVisibilityMap.delete(d);else typeof t=="string"&&(Anchor.unregister(t),subpageToVisibilityMap.delete(t));unwatchHash==null||unwatchHash()}),{isMobileSubpageVisible:computed({get(){return e.value},set(d){d?s():l()}})}}const __default__$1H={name:"MhUpgradePopUp",inheritAttrs:!1},_sfc_main$1I=Object.assign(__default__$1H,{props:{isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},image:{type:String,default:""},imageAltText:{type:String,default:""},promotionBody:{type:String,default:""},ctaYesButtonLabel:{type:String,default:""},ctaNoButtonLabel:{type:String,default:""},ctaYesButtonPath:{type:String,default:"#"},ctaNoButtonPath:{type:String,default:"#"},isManageBooking:{type:Boolean,default:!1}},emits:["no-click"],setup(t,{expose:o,emit:r}){o();const e=t,{isEditorMode:n}=useGlobalAEMState$1(),a=ref$1(!1),i=ref$1(null),s=u=>{a.value=!0,e.isManageBooking?l("no-click",u):window.location.href=e.ctaNoButtonPath},l=r,d=computed(()=>n.value?!0:a.value?!1:(isMobileViewport.value?e.isHideInMobile:e.isHideInDesktop)===!1);n.value||onMounted(async()=>{await sleep(500),useDisableScroll(d)});const c={props:e,isEditorMode:n,hasUserDismissed:a,rootEl:i,dismissOverlayByUser:s,emit:l,isPopUpVisibleComputed:d,Teleport,CTAButton,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},get useDisableScroll(){return useDisableScroll},get sleep(){return sleep}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),_hoisted_1$21={key:0,class:"MHUpgradePopUp backdrop"},_hoisted_2$1A={class:"overlay-container"},_hoisted_3$19={class:"overlay-header"},_hoisted_4$11={class:"overlay-header-image w-full"},_hoisted_5$Z=["src","alt"],_hoisted_6$V={class:"overlay-body px-6 mt-4"},_hoisted_7$U={class:"author-html-container line-clamp-5"},_hoisted_8$R={class:"overlay-footer px-6 mt-6 mb-10"},_hoisted_9$M={class:"flex-grow basis-0"},_hoisted_10$E={class:"flex-grow basis-0"};function _sfc_render$1I(t,o,r,e,n,a){const i=__unplugin_components_0$i,s=resolveDirective("html-sanitize");return openBlock(),createBlock(resolveDynamicComponent(e.isEditorMode?"div":e.Teleport),{to:"body"},{default:withCtx(()=>[createVNode(Transition,{name:"overlay-fade-and-zoom",appear:""},{default:withCtx(()=>[e.isPopUpVisibleComputed?(openBlock(),createElementBlock("div",_hoisted_1$21,[createBaseVNode("div",_hoisted_2$1A,[createBaseVNode("div",_hoisted_3$19,[createBaseVNode("button",{type:"button",class:"absolute top-4 right-4","aria-label":"Popup close button",onClick:e.dismissOverlayByUser},[createVNode(i,{class:"w-6 h-6 white"})]),createBaseVNode("div",_hoisted_4$11,[createBaseVNode("img",{class:"w-full h-full object-center object-cover",src:e.props.image,alt:e.props.imageAltText},null,8,_hoisted_5$Z)])]),createBaseVNode("div",_hoisted_6$V,[withDirectives(createBaseVNode("div",_hoisted_7$U,null,512),[[s,e.props.promotionBody]])]),createBaseVNode("div",_hoisted_8$R,[createBaseVNode("div",_hoisted_9$M,[createVNode(e.CTAButton,{ctaText:e.props.ctaYesButtonLabel,href:e.props.ctaYesButtonPath,sizeType:"small",ctaSizing:"fluid",styleType:"primary",containerClass:"w-full",tabindex:"-1"},null,8,["ctaText","href"])]),createBaseVNode("div",_hoisted_10$E,[createVNode(e.CTAButton,{ctaText:e.props.ctaNoButtonLabel,sizeType:"small",ctaSizing:"fluid",styleType:"secondary",containerClass:"flex-grow basis-0",onClick:e.dismissOverlayByUser},null,8,["ctaText"])])])])])):createCommentVNode("",!0)]),_:1})]),_:1})}const mhUpgradePopup=_export_sfc(_sfc_main$1I,[["render",_sfc_render$1I],["__scopeId","data-v-d1e9364c"],["__file","mhUpgradePopup.vue"]]),__default__$1G={name:"MobileSubPageSwiper",inheritAttrs:!1},_sfc_main$1H=Object.assign(__default__$1G,{props:{mobileSwiperTabs:{type:Array,default:()=>[]},activeTab:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,{pageProperties:e}=useGlobalAEMState$1(),n=e.value.rootCountry;let a=e.value.rootLanguage;const i=useRouter$1(),s=ref$1([]),l=ref$1(null),d=m=>{i.replace({hash:""}),i.replace({hash:m.urlPath})},c=computed(()=>r.mobileSwiperTabs.findIndex(m=>m.id===r.activeTab)),u=()=>{var b;const m=(b=l.value)==null?void 0:b.swiperInstance;m&&c.value>3&&m.slideTo(c.value,0)};watch(()=>{var m;return(m=l.value)==null?void 0:m.swiperInstance},m=>{m&&nextTick$1(()=>u())}),watch(()=>r.activeTab,()=>{nextTick$1(()=>u())}),watch(()=>r.mobileSwiperTabs,()=>{nextTick$1(()=>u())},{deep:!0});const f={props:r,pageProperties:e,country:n,get language(){return a},set language(m){a=m},router:i,listOfWidgetsConfigured:s,swiperRef:l,updateRoute:d,activeIndex:c,scrollToActiveTab:u,onMounted,VueSwiper,get useGlobalAEMState(){return useGlobalAEMState$1},get useRouter(){return useRouter$1}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),_hoisted_1$20={class:"MobileSubPageSwiper"},_hoisted_2$1z=["aria-selected","onClick"];function _sfc_render$1H(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$20,[createVNode(e.VueSwiper,{ref:"swiperRef",class:"booking-tabs-swiper",variant:"slides-auto-width",slidesPerView:"auto",spaceBetween:0,navigation:!0,watchOverflow:!0,observer:!0,observeParents:!0,freeMode:!0,handleTabIndex:!0,isTabRole:!0},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.props.mobileSwiperTabs,i=>(openBlock(),createElementBlock("button",{key:i.id,type:"button",class:normalizeClass(["booking-tab",{"booking-tab--active":e.props.activeTab===i.id}]),"aria-selected":e.props.activeTab===i.id,onClick:s=>e.updateRoute(i)},toDisplayString(i.label),11,_hoisted_2$1z))),128))]),_:1},512)])}const MobileSubPageSwiper=_export_sfc(_sfc_main$1H,[["render",_sfc_render$1H],["__scopeId","data-v-d80c2ad4"],["__file","MobileSubPageSwiper.vue"]]),_imports_0="/etc.clientlibs/mh/clientlibs/clientlib-vue/resources/assets/loader-sm-BLBseLd_.gif",__default__$1F={n
1167ame:"CheckIn",inheritAttrs:!1},_sfc_main$1G=Object.assign(__default__$1F,{props:{bretnLabel:{type:String,default:""},bretnMandatory:{type:Boolean,default:!1},bretnPalceholder:{type:String,default:""},bretnShortDescription:{type:String,default:""},bretnCharLimit:{type:Number,default:0},bretnCharLimitErrorMessage:{type:String,default:""},bretnMandatoryErrorMessage:{type:String,default:""},checkInButtonLabel:{type:String,default:""},checkInDescription:{type:String,default:""},checkInNote:{type:String,default:""},checkInToolTipLabel:{type:String,default:""},checkInToolTip:{type:String,default:""},lastNameLabel:{type:String,default:""},lastNameMandatory:{type:Boolean,default:!1},lastNameMandatoryErrorMessage:{type:String,default:""},lastNamePalceholder:{type:String,default:""},lastNameShortDescription:{type:String,default:""},refxAPIURL:{type:String,default:""},language:{type:String,default:""},componentIdAA:{type:String,default:""},enableMhUpgrade:{type:Boolean,default:!1},imageConfig:{type:String,default:""},textConfig:{type:String,default:""},ctaYesBtnConfig:{type:String,default:"Yes"},ctaNoBtnConfig:{type:String,default:"No"},checkinMhUpgradeApiUrl:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,{isEditorMode:n}=useGlobalAEMState$1(),a=r,i=ref$1(null),s=ref$1(null),l=ref$1(""),d=ref$1(""),c=ref$1(!1),u=ref$1(!1),f=ref$1(""),m=ref$1(""),{isMobileSubpageVisible:b}=useBookingWidgetSubpage({hashKey:["check-in","check-in-tab"],rootEl:i}),y=computed(()=>e.bretnMandatory?yup.string().required(e.bretnMandatoryErrorMessage).max(e.bretnCharLimit,e.bretnCharLimitErrorMessage):null),_=computed(()=>e.lastNameMandatory?yup.string().required(e.lastNameMandatoryErrorMessage):null),S=async(w,D)=>{try{if(e.enableMhUpgrade){u.value=!0;const N=`${e.refxAPIURL}?lang=${e.language}`,F=await axios$1.get(e.checkinMhUpgradeApiUrl,{params:{ticketNumber:l.value,lastName:d.value.toUpperCase(),redirectUrl:N,component:"checkin"}}),{offerEligibility:V,offerRedirectionUrl:A}=F.data||{};c.value=V,f.value=A,console.log("✅ handleSubmitValid values = ",w)}}catch(N){console.error("Error fetching PNR details:",N)}finally{T(),u.value=!1}},C=({values:w,errors:D,results:N,evt:F})=>{console.log("❌ handleSubmitInvalid errors = ",D)},T=()=>{if(l.value&&d.value){const w={lastName:d.value,identifier:l.value,...e.language?{lang:`${e.language}`}:{}},D=new URL(e.refxAPIURL);
1167Object.keys(w).forEach(N=>{D.searchParams.append(N,w[N])}),m.value=D.toString(),e.enableMhUpgrade&&c.value||(window.location.href=m.value)}},x=ref$1(""),k=ref$1(null);onMounted(()=>{const w=document.querySelector(".global-header");w&&(w.classList.contains("fixed")?x.value="blended-header-css":x.value="",k.value=getCookie("mobileProperties"))});const E={props:e,isEditorMode:n,emit:a,rootEl:i,formRef:s,bretnFieldValue:l,lastNameFieldValue:d,isPNREligibleForUpgrade:c,isLoading:u,upgradeOfferUrl:f,refxCheckInUrl:m,isMobileSubpageVisible:b,bretnFieldValidation:y,lastNameFieldValidation:_,handleSubmitValid:S,handleSubmitInvalid:C,formSubmission:T,blendedHeaderCss:x,mobileProperties:k,CTAButton,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},TextField,Tooltip,FormWrapper,get yup(){return yup},get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport},get axios(){return axios$1},mhUpgradePopup,MobileSubPageSwiper,get getCookie(){return getCookie}};return Object.defineProperty(E,"__isScriptSetup",{enumerable:!1,value:!0}),E}}),_hoisted_1$1$={class:"generic-container"},_hoisted_2$1y={key:0,class:"title-editor-mode"},_hoisted_3$18={class:"check-in-tooltip flex items-center mt-6"},_hoisted_4$10={class:"ml-3"},_hoisted_5$Y={class:"check-in-form mt-6 flex gap-x-6 md:flex-col md:gap-y-4"},_hoisted_6$U={class:"flex-grow"},_hoisted_7$T={key:0,class:"text-sm text-[#61666F] mt-1"},_hoisted_8$Q={class:"w-4/10 md:w-full"},_hoisted_9$L={key:0,class:"text-sm text-[#61666F] mt-1"},_hoisted_10$D={class:"flex-none >lg:w-[max-content] md:mt-4 relative"},_hoisted_11$C={key:2,class:"absolute loader-position"},_hoisted_12$A={key:1,class:"flex mt-6"},_hoisted_13$x={class:"rounded-xl bg-primary-blue-extralight flex-grow px-5 py-4 flex"},_hoisted_14$w={class:"basis-6 flex-none mr-3 rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_15$u={class:"typo-body-text-2"},_hoisted_16$s={key:0,class:"text-center"},_hoisted_17$p={key:1,class:"text-center"},_hoisted_18$m={key:0,class:"title-editor-mode"},_hoisted_19$j={class:"text-sm"},_hoisted_20$j={class:"check-in-tooltip flex items-center mt-6"},_hoisted_21$j={class:"ml-3 text-sm"},_hoisted_22$i={class:"check-in-form mt-6 flex gap-x-6 md:gap-y-4 xl:flex-wrap lg:flex-col"},_hoisted_23$g={class:"flex-grow"},_hoisted_24$f={key:0,class:"text-sm text-[#61666F] mt-1"},_hoisted_25$e={class:"w-full"},_hoisted_26$e={key:0,class:"text-sm text-[#61666F] mt-1"},_hoisted_27$d={class:"flex-none >lg:w-[max-content] mt-4 relative"},_hoisted_28$c={key:2,class:"absolute loader-position"},_hoisted_29$c={key:1,class:"flex mt-6"},_hoisted_30$c={class:"rounded-xl bg-primary-blue-extralight flex-grow px-5 py-4 flex"},_hoisted_31$c={class:"basis-6 flex-none mr-3 rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_32$c={class:"typo-body-text-2"};function _sfc_render$1G(t,o,r,e,n,a){const i=__unplugin_components_0$9,s=__unplugin_components_0$n,l=__unplugin_components_1$c,d=resolveDirective("html-sanitize"),c=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[e.props.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,ref:"rootEl",class:normalizeClass(["CheckIn booking-widget-subcomponent",{isEditorMode:e.isEditorMode}])},[createBaseVNode("div",_hoisted_1$1$,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$1y,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[5]||(o[5]=createBaseVNode("span",null,"Booking Widget: Check-in",-1))])):createCommentVNode("",!0),createVNode(e.FormWrapper,{ref:"formRef",class:"check-in-wrapper",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(()=>{var u,f;return[withDirectives(createBaseVNode("p",null,null,512),[[d,e.props.checkInDescription]]),createBaseVNode("div",_hoisted_3$18,[createVNode(e.Tooltip,null,{default:withCtx(()=>[createVNode(s,{class:"fill-primary-blue-base"})]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.checkInToolTipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("p",null,null,512),[[d,e.props.checkInToolTip]])]),_:1}),createBaseVNode("span",_hoisted_4$10,toDisplayString(e.props.checkInToolTipLabel),1)]),createBaseVNode("div",_hoisted_5$Y,[createBaseVNode("div",_hoisted_6$U,[createVNode(e.TextField,{modelValue:e.bretnFieldValue,"onUpdate:modelValue":o[0]||(o[0]=m=>e.bretnFieldValue=m),placeholder:e.props.bretnPalceholder,ariaLabel:e.props.bretnLabel,validation:e.bretnFieldValidation,showBtnClear:"",name:"bretnField",variant:"booking-widget",enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","placeholder","ariaLabel","validation","enableGlassDesign"]),e.props.bretnShortDescription?(openBlock(),createElementBlock(Fragment,{key:0},[(u=e.formRef)!=null&&u.errors.bretnField?createCommentVNode("",!0):withDirectives((openBlock(),createElementBlock("p",_hoisted_7$T,null,512)),[[d,e.props.bretnShortDescription]])],64)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_8$Q,[createVNode(e.TextField,{modelValue:e.lastNameFieldValue,"onUpdate:modelValue":o[1]||(o[1]=m=>e.lastNameFieldValue=m),placeholder:e.props.lastNamePalceholder,ariaLabel:e.props.lastNameLabel,validation:e.lastNameFieldValidation,autoTransformToTitlecase:!0,showBtnClear:"",name:"breLastNameField",variant:"booking-widget",enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","placeholder","ariaLabel","validation","enableGlassDesign"]),e.props.lastNameShortDescription?(openBlock(),createElementBlock(Fragment,{key:0},[(f=e.formRef)!=null&&f.errors.breLastNameField?createCommentVNode("",!0):withDirectives((openBlock(),createElementBlock("p",_hoisted_9$L,null,512)),[[d,e.props.lastNameShortDescription]])],64)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_10$D,[e.isLoading?(openBlock(),createBlock(e.CTAButton,{key:1,ctaText:e.props.checkInButtonLabel,disabled:!0,sizeType:e.isMobileViewport?"small":"large",ctaSizing:"fluid"},null,8,["ctaText","sizeType"])):withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,class:normalizeClass({"class-design-ct-btn":e.props.enableGlassDesign}),ctaText:e.props.checkInButtonLabel,disabled:!e.bretnFieldValue||!e.lastNameFieldValue,isSubmit:!0,sizeType:e.isMobileViewport?"small":"large",ctaSizing:"fluid"},null,8,["class","ctaText","disabled","sizeType"])),[[c,[{clickName:e.props.checkInButtonLabel,clickComponentType:"Button",componentName:"CheckIn",componentID:e.props.componentIdAA},{name:e.props.checkInButtonLabel,type:"exit"}
1167]]]),e.isLoading?(openBlock(),createElementBlock("div",_hoisted_11$C,o[6]||(o[6]=[createBaseVNode("img",{src:_imports_0,alt:""},null,-1)]))):createCommentVNode("",!0)])])]}),_:1},512),e.props.checkInNote?(openBlock(),createElementBlock("div",_hoisted_12$A,[createBaseVNode("div",_hoisted_13$x,[createBaseVNode("div",_hoisted_14$w,[createVNode(l,{class:"fill-primary-blue-base","aria-hidden":"true"})]),createBaseVNode("div",_hoisted_15$u,[withDirectives(createBaseVNode("span",null,null,512),[[d,e.props.checkInNote]])])])])):createCommentVNode("",!0)])],2)),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",mobileSubPageDesign:e.props.enableGlassDesign?"glass-design":"MH",enableGlassDesign:e.props.enableGlassDesign,blendedHeaderCss:e.blendedHeaderCss,mobileSwiperTabs:e.props.mobileSwiperTabs,style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},"onUpdate:isVisible":o[4]||(o[4]=u=>e.isMobileSubpageVisible=u)},{"banner-title":withCtx(()=>{var u;return[(u=e.props)!=null&&u.enableGlassDesign?(openBlock(),createElementBlock("h3",_hoisted_17$p,toDisplayString(t.$t("Check In")),1)):(openBlock(),createElementBlock("h1",_hoisted_16$s,toDisplayString(t.$t("Check In")),1))]}),swiper:withCtx(()=>[renderSlot(t.$slots,"banner-title",{},()=>[createVNode(e.MobileSubPageSwiper,{mobileSwiperTabs:e.props.mobileSwiperTabs.length===0?JSON.parse(e.mobileProperties):e.props.mobileSwiperTabs,activeTab:"#check-in"},null,8,["mobileSwiperTabs"])],!0)]),default:withCtx(()=>{var u;return[createBaseVNode("div",{class:normalizeClass(["generic-container my-4",{"mt-4":(u=e.props)==null?void 0:u.enableGlassDesign}])},[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_18$m,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[7]||(o[7]=createBaseVNode("span",null,"Booking Widget: Check-in",-1))])):createCommentVNode("",!0),createVNode(e.FormWrapper,{ref:"formRef",class:"check-in-wrapper",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(()=>{var f,m;return[withDirectives(createBaseVNode("p",_hoisted_19$j,null,512),[[d,e.props.checkInDescription]]),createBaseVNode("div",_hoisted_20$j,[createVNode(e.Tooltip,null,{default:withCtx(()=>[createVNode(s,{class:"fill-primary-blue-base"})]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.checkInToolTipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("p",null,null,512),[[d,e.props.checkInToolTip]])]),_:1}),createBaseVNode("span",_hoisted_21$j,toDisplayString(e.props.checkInToolTipLabel),1)]),createBaseVNode("div",_hoisted_22$i,[createBaseVNode("div",_hoisted_23$g,[createVNode(e.TextField,{modelValue:e.bretnFieldValue,"onUpdate:modelValue":o[2]||(o[2]=b=>e.bretnFieldValue=b),placeholder:e.props.bretnPalceholder,ariaLabel:e.props.bretnLabel,validation:e.bretnFieldValidation,showBtnClear:"",name:"bretnField",variant:"booking-widget",enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","placeholder","ariaLabel","validation","enableGlassDesign"]),e.props.bretnShortDescription?(openBlock(),createElementBlock(Fragment,{key:0},[(f=e.formRef)!=null&&f.errors.bretnField?createCommentVNode("",!0):withDirectives((openBlock(),createElementBlock("p",_hoisted_24$f,null,512)),[[d,e.props.bretnShortDescription]])],64)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_25$e,[createVNode(e.TextField,{modelValue:e.lastNameFieldValue,"onUpdate:modelValue":o[3]||(o[3]=b=>e.lastNameFieldValue=b),placeholder:e.props.lastNamePalceholder,ariaLabel:e.props.lastNameLabel,validation:e.lastNameFieldValidation,autoTransformToTitlecase:!0,showBtnClear:"",name:"breLastNameField",variant:"booking-widget",enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","placeholder","ariaLabel","validation","enableGlassDesign"]),e.props.lastNameShortDescription?(openBlock(),createElementBlock(Fragment,{key:0},[(m=e.formRef)!=null&&m.errors.breLastNameField?createCommentVNode("",!0):withDirectives((openBlock(),createElementBlock("p",_hoisted_26$e,null,512)),[[d,e.props.lastNameShortDescription]])],64)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_27$d,[e.isLoading?(openBlock(),createBlock(e.CTAButton,{key:1,ctaText:e.props.checkInButtonLabel,disabled:!0,sizeType:e.isMobileViewport?"small":"large",ctaSizing:"fluid"},null,8,["ctaText","sizeType"])):withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,ctaText:e.props.checkInButtonLabel,disabled:!e.bretnFieldValue||!e.lastNameFieldValue,isSubmit:!0,sizeType:e.isMobileViewport?"small":"large",ctaSizing:"fluid",class:normalizeClass({"class-design-ct-btn":e.props.enableGlassDesign})},null,8,["ctaText","disabled","sizeType","class"])),[[c,[{clickName:e.props.checkInButtonLabel,clickComponentType:"Button",componentName:"CheckIn",componentID:e.props.componentIdAA},{name:e.props.checkInButtonLabel,type:"exit"}
1167]]]),e.isLoading?(openBlock(),createElementBlock("div",_hoisted_28$c,o[8]||(o[8]=[createBaseVNode("img",{src:_imports_0,alt:""},null,-1)]))):createCommentVNode("",!0)])])]}),_:1},512),e.props.checkInNote?(openBlock(),createElementBlock("div",_hoisted_29$c,[createBaseVNode("div",_hoisted_30$c,[createBaseVNode("div",_hoisted_31$c,[createVNode(l,{class:"fill-primary-blue-base","aria-hidden":"true"})]),createBaseVNode("div",_hoisted_32$c,[withDirectives(createBaseVNode("span",null,null,512),[[d,e.props.checkInNote]])])])])):createCommentVNode("",!0)],2)]}),_:3},8,["isVisible","mobileSubPageDesign","enableGlassDesign","blendedHeaderCss","mobileSwiperTabs"]),e.isPNREligibleForUpgrade?(openBlock(),createBlock(e.mhUpgradePopup,{key:1,enableMhUpgrade:e.props.enableMhUpgrade,image:e.props.imageConfig,imageAltText:e.props.imageAltText,promotionBody:e.props.textConfig,ctaYesButtonLabel:e.props.ctaYesBtnConfig,ctaNoButtonLabel:e.props.ctaNoBtnConfig,ctaYesButtonPath:e.upgradeOfferUrl,ctaNoButtonPath:e.refxCheckInUrl,isManageBooking:!1},null,8,["enableMhUpgrade","image","imageAltText","promotionBody","ctaYesButtonLabel","ctaNoButtonLabel","ctaYesButtonPath","ctaNoButtonPath"])):createCommentVNode("",!0)],64)}const CheckIn=_export_sfc(_sfc_main$1G,[["render",_sfc_render$1G],["__scopeId","data-v-517112e6"],["__file","CheckIn.vue"]]),CheckIn$1=Object.freeze(Object.defineProperty({__proto__:null,default:CheckIn},Symbol.toStringTag,{value:"Module"}));function useSyncURLQuery(t,o,r={}){const e={toggleRef:null,...r},n=useRouter(),a=useRoute(),i=f=>{let m={...a.query};f?m[t]=null:delete m[t],n.replace({query:m})},s=f=>{const m={...a.query,[t]:f};n.replace({query:m})},l=f=>{const m={...a.query,[t]:f};n.replace({query:m})},d=f=>{const m={...a.query,[t]:f};n.replace({query:m})};let c=null;const u=()=>{c=watch(o,f=>{switch(typeof f){case"boolean":{i(f);break}case"string":{s(f);break}case"object":{f===null?i(null):Array.isArray(f)?l(f):d(f);break}}})};return e.toggleRef?watch(e.toggleRef,f=>{f?u():c&&c()},{immediate:!0}):u(),{}}const __default__$1E={name:"VueTabs"},_sfc_main$1F=Object.assign(__default__$1E,{props:{identifier:{type:String,default:""},modelValue:{type:String,default:null},renderPanelsWithVShow:{type:Boolean,default:!1},syncURLQuery:{type:Boolean,default:!1},urlQueryAsDefaultValue:{type:Boolean,default:!0},disabledTabs:{type:Array,default:()=>[]},dormantMode:{type:Boolean,default:!1},hideTabs:{type:Boolean,default:!1},desktopAllowTouchMove:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1}},emits:["tab-click"],setup(t,{expose:o,emit:r}){var k;const e=t,n=r,a=useRoute$1(),i=useSlots(),s=ref$1(new Map),l=useInternalValue(),d=window.siteName,c=ref$1(null);e.urlQueryAsDefaultValue&&a.query[e.identifier]&&(l.value=a.query[e.identifier]),e.syncURLQuery&&(e.identifier?useSyncURLQuery(e.identifier,l,{toggleRef:toRef(reactive(e),"syncURLQuery")}):console.warn("<VueTabs>: Prop 'syncURLQuery' is true, but prop 'identifier' is not provided. URL query will not be updated."));const u=E=>E.startsWith("tab-")?"TAB":E.startsWith("link-")?"LINK":"UNKNOWN",f=computed(()=>Object.keys(i).filter(w=>w!=="default").map(w=>({key:w,tabType:u(w),tabName:w.split(/-(.*)/s).at(-2)}))),m=computed(()=>f.value.findIndex(E=>E===l.value)),b=computed(()=>{var w;const E=(w=i.default)==null?void 0:w.call(i);return E?E.length===1&&E[0].type===Fragment?E[0].children.filter(D=>typeof D.type=="symbol"&&D.type===Comment?!1:typeof D.type=="symbol"&&D.type===Text$1?(console.warn("VueTabs.vue: Encountered a text node as slot, ignored. Make sure all children of <VueSwiper> are wrapped with an HTML element."),!1):!0):E.filter(D=>typeof D.type=="symbol"&&D.type===Comment?!1:typeof D.type=="symbol"&&D.type===Text$1?(console.warn("VueTabs.vue: Encountered a text node as slot, ignored. Make sure all children of <VueSwiper> are wrapped with an HTML element."),!1):!0):[]}),y=computed(()=>{if(l.value,e.renderPanelsWithVShow)return b.value;{const E=b.value.find(w=>w.props.identifier===l.value);return E?[E]:[]}}),_=E=>{const w=m.value===0?f.value.length-1:m.value-1,D=f.value[w];s.value.get(D).focus(),l.value=D},S=E=>{const w=m.value===f.value.length-1?0:m.value+1,D=f.value[w];s.value.get(D).focus(),l.value=D},C=(E,w)=>{l.value=E,n("tab-click",l.value)};e.modelValue===null&&(l.value=((k=b.value[0])==null?void 0:k.props.identifier)??null);const T=E=>{const w=c.value.swiperInstance;if(!w)return;const D=f.value.findIndex(N=>N.tabName===E);w.slideTo(D)};onMounted(()=>{document.querySelectorAll(".VueTabs .swiper-wrapper").forEach(w=>{w.setAttribute("role","tablist")})}),o({scrollToTab:T});const x={props:e,emits:n,route:a,slots:i,btnTabs:s,internalValue:l,siteName:d,swiperComponent:c,getTabTypeByKey:u,tabList:f,currentActiveIndex:m,defaultSlotsFiltered:b,panelList:y,activatePrev:_,activateNext:S,handleTabClick:C,scrollToTab:T,Comment,Text:Text$1,Fragment,get useSyncURLQuery(){return useSyncURLQuery},get useInternalValue(){return useInternalValue},get useRoute(){return useRoute$1},VueSwiper};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),_hoisted_1$1_=["data-use-theme"],_hoisted_2$1x=["ariaSelectedVal","ariaControl
1167sVal","disabled","onClick","onKeydown"],_hoisted_3$17={class:"tab-button-text"},_hoisted_4$$={class:"tab-panels-container relative"},_hoisted_5$X=["data-index"],_hoisted_6$T={class:"label flex items-center"},_hoisted_7$S=["data-index"],_hoisted_8$P={class:"label flex items-center"};function _sfc_render$1F(t,o,r,e,n,a){const i=__unplugin_components_0$d,s=__unplugin_components_1$8;return openBlock(),createElementBlock("div",{class:"VueTabs","data-use-theme":e.siteName},[e.props.hideTabs?createCommentVNode("",!0):(openBlock(),createBlock(e.VueSwiper,{key:0,ref:"swiperComponent",class:normalizeClass(["relative z-10 !inline-flex !md:flex",{"glass-design":e.props.enableGlassDesign}]),variant:"slides-auto-width",slidesPerView:"auto",breakpoints:{"767.1":{allowTouchMove:e.props.desktopAllowTouchMove}},isTabRole:!0},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.tabList,({key:l,tabType:d,tabName:c})=>(openBlock(),createElementBlock(Fragment,{key:c},[d==="TAB"?(openBlock(),createElementBlock("button",{key:0,ref_for:!0,ref:u=>{u&&e.btnTabs.set(c,u)},class:normalizeClass(["tab-button p-0",{"is-active":e.internalValue===c}]),type:"button",ariaSelectedVal:e.internalValue===c,ariaControlsVal:c,disabled:e.props.disabledTabs.includes(c),onClick:u=>e.handleTabClick(c,u),onKeydown:[withKeys(withModifiers(e.activatePrev,["self","prevent"]),["left"]),withKeys(withModifiers(e.activatePrev,["self","prevent"]),["up"]),withKeys(withModifiers(e.activateNext,["self","prevent"]),["right"]),withKeys(withModifiers(e.activateNext,["self","prevent"]),["down"])]},[renderSlot(t.$slots,l,{tabName:c},()=>[createBaseVNode("span",_hoisted_3$17,toDisplayString(c),1)],!0)],42,_hoisted_2$1x)):createCommentVNode("",!0),d==="LINK"?renderSlot(t.$slots,l,{key:1,tabName:c},void 0,!0):createCommentVNode("",!0)],64))),128))]),_:3},8,["class","breakpoints"])),createBaseVNode("div",_hoisted_4$$,[e.props.dormantMode?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.defaultSlotsFiltered,(l,d)=>(openBlock(),createElementBlock(Fragment,{key:l.props.identifier},[createBaseVNode("div",{class:"parsys-section-indicator mt-4","data-index":d},[createBaseVNode("span",_hoisted_6$T,[createVNode(i,{class:"mr-1.5 fill-current"}),createBaseVNode("span",null,toDisplayString(l.props.identifier),1),createVNode(i,{class:"ml-1.5 fill-current"})])],8,_hoisted_5$X),(openBlock(),createBlock(resolveDynamicComponent(l),{id:l.props.identifier,role:"tabpanel","aria-labelledby":l.props.identifier},null,8,["id","aria-labelledby"])),createBaseVNode("div",{class:"parsys-section-indicator mb-4","data-index":d},[createBaseVNode("span",_hoisted_8$P,[createVNode(s,{class:"mr-1.5 fill-current"}),createBaseVNode("span",null,toDisplayString(l.props.identifier),1),createVNode(s,{class:"ml-1.5 fill-current"})])],8,_hoisted_7$S)],64))),128)):e.panelList.length===1?(openBlock(),createBlock(Transition,{key:1,name:"__ANIMATION_OFF",tag:"span",appear:""},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.panelList[0]),{id:e.panelList[0].props.identifier,key:e.panelList[0].props.identifier,role:"tabpanel","aria-labelledby":e.panelList[0].props.identifier},null,8,["id","aria-labelledby"]))]),_:1})):e.panelList.length>1?(openBlock(!0),createElementBlock(Fragment,{key:2},renderList(e.panelList,l=>(openBlock(),createBlock(Transition,{key:l.props.identifier,name:"__ANIMATION_OFF"},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(resolveDynamicComponent(l),{id:l.props.identifier,role:"tabpanel","aria-labelledby":l.props.identifier},null,8,["id","aria-labelledby"])),[[vShow,l.props.identifier===e.internalValue]])]),_:2},1024))),128)):createCommentVNode("",!0)])],8,_hoisted_1$1_)}const VueTabs=_export_sfc(_sfc_main$1F,[["render",_sfc_render$1F],["__scopeId","data-v-41751476"],["__file","VueTabs.vue"]]),_hoisted_1$1Z={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$l(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1Z,o[0]||(o[0]=[createBaseVNode("path",{d:"M135.2 17.69C140.6 6.848 151.7 0 163.8 0H284.2C296.3 0 307.4 6.848 312.8 17.69L320 32H416C433.7 32 448 46.33 448 64C448 81.67 433.7 96 416 96H32C14.33 96 0 81.67 0 64C0 46.33 14.33 32 32 32H128L135.2 17.69zM31.1 128H416V448C416 483.3 387.3 512 352 512H95.1C60.65 512 31.1 483.3 31.1 448
1167V128zM111.1 208V432C111.1 440.8 119.2 448 127.1 448C136.8 448 143.1 440.8 143.1 432V208C143.1 199.2 136.8 192 127.1 192C119.2 192 111.1 199.2 111.1 208zM207.1 208V432C207.1 440.8 215.2 448 223.1 448C232.8 448 240 440.8 240 432V208C240 199.2 232.8 192 223.1 192C215.2 192 207.1 199.2 207.1 208zM304 208V432C304 440.8 311.2 448 320 448C328.8 448 336 440.8 336 432V208C336 199.2 328.8 192 320 192C311.2 192 304 199.2 304 208z"},null,-1)]))}const __unplugin_components_1$5=markRaw({name:"fas-trash-can",render:render$l});function usePassengers({maxPassengers:t=9,maxAdultsCount:o=9,maxTeensCount:r=9,maxChildrenCount:e=9,maxInfantsCount:n=9,defaultAdultsCount:a=1,defaultTeensCount:i=0,defaultChildrenCount:s=0,defaultInfantsCount:l=0}={}){const d=ref$1(a),c=ref$1(i),u=ref$1(s),f=ref$1(l),m=ref$1(!1),b=computed({get(){return d.value},set(E){d.value=E,E<f.value?(f.value=E,m.value=!0):m.value=!1}}),y=computed({get(){return c.value},set(E){c.value=E,m.value=!1}}),_=computed({get(){return u.value},set(E){u.value=E,m.value=!1}}),S=computed({get(){return f.value},set(E){f.value=E,m.value=!1}}),C=computed(()=>Math.min(d.value,n)),T=computed(()=>x.value+f.value),x=computed(()=>d.value+c.value+u.value),k=computed(()=>x.value>=unref(t));return{adults:{count:b,min:1,max:o},teens:{count:y,min:0,max:r},children:{count:_,min:0,max:e},infants:{count:S,min:0,max:C},totalPassengers:x,totalPassengersIncludedInfantCount:T,hasReachedMaxPassengersCount:k,showInfantErrorMsg:m}}function useIsUkVariant({origin:t,destination:o}={}){const r="United Kingdom";return!t&&!o?!1:(t==null?void 0:t.countryName)===r||(o==null?void 0:o.countryName)===r}function useIsCountryVariant(t,{origin:o,destination:r}={}){return window.siteName!=="MH"?useIsUkVariant({origin:o,destination:r}):!o&&!r?!1:t.includes(o==null?void 0:o.countryName)||t.includes(r==null?void 0:r.countryName)}function useSyncPassengerDetails(t){useEventBus("booking-widget:passenger-detail").on(async(r,e)=>{var n;switch(r){case"update-passenger-count":(n=t.value)==null||n.setValues(e),await nextTick$1();break;default:console.log(`Unknown event: ${r}. Ignore it.`);break}})}const MAX_TOTAL_ADULT_COMBINED_CHILD=9,MAX_TOTAL_INFANT=3;function useTravellerAndRoom({errorMessages:t={}}={}){const o=ref$1([]),r=()=>{o.value.push({...toRefs(reactive(usePassengers({maxAdultsCount:9,maxChildrenCount:6,maxInfantsCount:3})))})},e=u=>{o.value.splice(u,1)};r();const n=computed(()=>o.value.reduce((u,f)=>u+unref(f.adults.count)+unref(f.children.count),0)),a=computed(()=>o.value.reduce((u,f)=>u+unref(f.infants.count),0)),i=computed(()=>n.value>MAX_TOTAL_ADULT_COMBINED_CHILD),s=computed(()=>a.value>MAX_TOTAL_INFANT),l=computed(()=>i.value||s.value),d=Object.fromEntries(Object.entries(t).map(([u,f])=>{let m="";switch(u){case"combinedAnyExceeded":{m=MAX_TOTAL_ADULT_COMBINED_CHILD+MAX_TOTAL_INFANT;break}case"combinedAdultChildExceeded":{m=MAX_TOTAL_ADULT_COMBINED_CHILD;break}case"combinedInfantExceeded":{m=MAX_TOTAL_INFANT;break}}return[u,f.replaceAll("{n}",m)]}));return{rooms:o,createRoom:r,deleteRoom:e,totalAdultChildCombinedCount:n,totalInfantCount:a,hasCombinedAdultChildExceeded:i,hasCombinedInfantExceeded:s,hasCombinedAnyExceeded:l,dropdownValidationFunc:()=>i.value&&s.value?d.combinedAnyExceeded||"":i.value?d.combinedAdultChildExceeded||"":s.value?d.combinedInfantExceeded||"":!0}}const __default__$1D={name:"NumberPlusMinus"},_sfc_main$1E=Object.assign(__default__$1D,{props:{name:{type:String,required:!0},ariaLabel:{type:String,required:!0},ariaDescription:{type:String,default:null},modelValue:{type:[String,Number],default:null},defaultValue:{type:[String,Number],default:null},variant:{type:String,default:null},min:{type:Number,default:0},max:{type:Number,default:1/0},step:{type:Number,default:1},allowDecimal:{type:Boolean,default:t=>t.min%1!==0||t.max%1!==0||t.step%1!==0},allowNegative:{type:Boolean,default:t=>t.min<0},disableInput:{type:Boolean,default:!0},required:{type:Boolean,default:!1},requiredErrorMsg:{type:String,default:i18nGlobal.t("This field is required")},minErrorMsg:{type:String,default:"Minimum value is ${min}"},maxErrorMsg:{type:String,default:"Maximum value is ${max}"},inputAttrs:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=(I,j,H)=>Math.min(Math.max(I,H),j),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=window.AEM_MHH_THEME_SWITCH;onMounted(()=>{i.value._mh_focus=I=>{T.value?x.value||l.value.focus(I):s.value.focus(I)}});const c=I=>{let j=yup.number().typeError("Invalid number").min(e.min,e.minErrorMsg).max(e.max,e.maxErrorMsg);e.required&&(j=j.transform(H=>isNaN(H)?void 0:H).required(e.requiredErrorMsg));try{return j.validateSync(I),!0}catch(H){return H.errors[0]}},{meta:u,errors:f,hasValidationError:m,setTouched:b,internalValue:y}=useFieldValidation({name:toRef(e,"name"),validation:c,modelValue:toRef(e,"modelValue")},{initialValue:parseFloat(e.modelValue??e.defaultValue??e.min,10)||0}),_=I=>{const j=parseFloat(I,10);y.value=Number.isNaN(j)?I:j},S=I=>{if(x.value)return;const j=parseFloat(y.value,10),H=Number.isNaN(j)?e.min+e.step:j+e.step;_(a(e.min,e.max,H)),b(!0)},C=I=>{if(T.value)return;const j=parseFloat(y.value,10),H=Number.isNaN(j)?e.max-e.step:j-e.step;_(a(e.min,e.max,H)),b(!0)},T=computed(()=>parseFloat(e.modelValue??y.value)<=e.min),x=computed(()=>parseFloat(e.modelValue??y.value)>=e.max);(y.value===void 0||y.value===null)&&_(e.min);const k=ref$1(!1),E=ref$1(!1),w=new RegExp(`[0-9${e.allowNegative?"-":""}${e.allowDecimal?".":""}]`,"i"),D=I=>w.test(I),N=I=>{const j=I.target.value;_(j),b(!0)},F=I=>{I.target.select()},V=I=>{b(!0)},A=I=>{D(I.key)||I.preventDefault()},M=I=>{const j=I.clipboardData.getData("text/plain");D(j)||I.preventDefault()},{errorMsgId:O}
1167=useGenerateIdentifier(e.name);useFormAccordionStatus(e.name,{required:e.required,value:computed(()=>y.value),error:computed(()=>m.value)});const R={props:e,emit:n,within:a,inputEl:i,btnMinusEl:s,btnPlusEl:l,mhhNewTheme:d,validationFunc:c,meta:u,errors:f,hasValidationError:m,setTouched:b,internalValue:y,setValue:_,handlePlusClick:S,handleMinusClick:C,isMinusDisabled:T,isPlusDisabled:x,isMinusPressed:k,isPlusPressed:E,allowedRegExp:w,isKeyValid:D,onInput:N,onFocus:F,onBlur:V,onKeypress:A,onPaste:M,errorMsgId:O,get yup(){return yup},get useFieldValidation(){return useFieldValidation},get useGenerateIdentifier(){return useGenerateIdentifier},get i18nGlobal(){return i18nGlobal},get useFormAccordionStatus(){return useFormAccordionStatus}};return Object.defineProperty(R,"__isScriptSetup",{enumerable:!1,value:!0}),R}}),_hoisted_1$1Y=["data-variant"],_hoisted_2$1w={class:"inner-wrapper flex"},_hoisted_3$16={class:"label-wrapper flex-grow self-center"},_hoisted_4$_={class:"label font-semibold"},_hoisted_5$W={class:"description text-neutral-grey-extradark text-sm leading-tight"},_hoisted_6$S={class:"flex control-wrapper"},_hoisted_7$R=["aria-label"],_hoisted_8$O=["name","min","max","readonly","disabled","aria-label","aria-description","aria-errormessage","aria-invalid"],_hoisted_9$K=["aria-label"],_hoisted_10$C={class:"sr-only",role:"alert"},_hoisted_11$B=["id"],_hoisted_12$z={class:""};function _sfc_render$1E(t,o,r,e,n,a){const i=__unplugin_components_0$g,s=__unplugin_components_1$b;return openBlock(),createElementBlock("div",{class:normalizeClass(["NumberPlusMinus",{"has-validation-error":e.hasValidationError&&e.meta.touched,"mhh-new-theme":e.mhhNewTheme}]),"data-variant":`${e.props.disableInput?"":"inputable"} ${e.props.variant}`},[createBaseVNode("div",_hoisted_2$1w,[createBaseVNode("div",_hoisted_3$16,[createBaseVNode("div",_hoisted_4$_,[renderSlot(t.$slots,"default",{},()=>[createTextVNode(toDisplayString(e.props.ariaLabel),1)],!0)]),createBaseVNode("div",_hoisted_5$W,[renderSlot(t.$slots,"description",{},()=>[createTextVNode(toDisplayString(e.props.ariaDescription),1)],!0)])]),createBaseVNode("div",_hoisted_6$S,[createBaseVNode("button",{ref:"btnMinusEl",class:normalizeClass(["btn-minus btn-generic w-12 h-12",{"is-mouse-down":e.isMinusPressed,"is-disabled":e.isMinusDisabled}]),type:"button","aria-label":`${t.$t("Decrease")} ${e.props.ariaLabel}`,onClick:e.handleMinusClick,onMousedown:o[0]||(o[0]=l=>e.isMinusPressed=!0),onKeydown:o[1]||(o[1]=withKeys(l=>e.isMinusPressed=!0,["enter","space"])),onMouseup:o[2]||(o[2]=l=>e.isMinusPressed=!1),onKeyup:o[3]||(o[3]=withKeys(l=>e.isMinusPressed=!1,["enter","space"])),onMouseout:o[4]||(o[4]=l=>e.isMinusPressed=!1)},[createVNode(i,{class:"fill-current"})],42,_hoisted_7$R),withDirectives(createBaseVNode("input",mergeProps({ref:"inputEl","onUpdate:modelValue":o[5]||(o[5]=l=>e.internalValue=l),class:"input mx-2",type:"number",inputmode:"numeric",autocomplete:"nope",autofill:"off",name:e.props.name,min:e.props.min,max:e.props.max,readonly:e.props.disableInput,disabled:e.props.disableInput,"aria-label":e.props.ariaLabel,"aria-description":e.props.ariaDescription,"aria-errormessage":e.errorMsgId,"aria-invalid":e.hasValidationError?"true":null},e.props.inputAttrs,{onInput:e.onInput,onFocus:e.onFocus,onBlur:e.onBlur,onKeypress:e.onKeypress,onPaste:e.onPaste}),null,16,_hoisted_8$O),[[vModelText,e.internalValue]]),createBaseVNode("button",{ref:"btnPlusEl",class:normalizeClass(["btn-plus btn-generic w-12 h-12",{"is-mouse-down":e.isPlusPressed,"is-disabled":e.isPlusDisabled}]),type:"button","aria-label":`${t.$t("Increase")} ${e.props.ariaLabel}`,onClick:e.handlePlusClick,onMousedown:o[6]||(o[6]=l=>e.isPlusPressed=!0),onKeydown:o[7]||(o[7]=withKeys(l=>e.isPlusPressed=!0,["enter","space"])),onMouseup:o[8]||(o[8]=l=>e.isPlusPressed=!1),onKeyup:o[9]||(o[9]=withKeys(l=>e.isPlusPressed=!1,["enter","space"])),onMouseout:o[10]||(o[10]=l=>e.isPlusPressed=!1)},[createVNode(s,{class:"fill-current"})],42,_hoisted_9$K)])]),createBaseVNode("div",_hoisted_10$C,toDisplayString(e.internalValue)+" "+toDisplayString(e.props.ariaLabel),1),createBaseVNode("div",{id:e.errorMsgId,class:"error-msg-container text-semantic-red-base mt-2 text-sm empty:hidden"}
1167,[e.hasValidationError&&e.meta.touched?renderSlot(t.$slots,"error-messages",normalizeProps(mergeProps({key:0},{meta:e.meta,errors:e.errors,internalValue:e.internalValue})),()=>[createBaseVNode("span",_hoisted_12$z,toDisplayString(e.errors[0]),1)],!0):createCommentVNode("",!0)],8,_hoisted_11$B)],10,_hoisted_1$1Y)}const NumberPlusMinus=_export_sfc(_sfc_main$1E,[["render",_sfc_render$1E],["__scopeId","data-v-ee384460"],["__file","NumberPlusMinus.vue"]]),__default__$1C={name:"DropdownTravellersAndRoom"},_sfc_main$1D=Object.assign(__default__$1C,{props:{labelText:{type:String,default:i18nGlobal.t("Travellers and rooms")},adultLabel:{type:String,default:i18nGlobal.t("Adults")},childrenLabel:{type:String,default:i18nGlobal.t("Children")},infantLabel:{type:String,default:i18nGlobal.t("Infants")},teenagerLabel:{type:String,default:i18nGlobal.t("Teenagers")},combinedAnyExceededMsg:{type:String,default:"Maximum {n} in all rooms"},combinedAdultChildExceededMsg:{type:String,default:"Maximum {n} in all rooms excluding infants"},combinedInfantExceededMsg:{type:String,default:"Maximum {n} infants"},isRequired:{type:Boolean,default:!1},travellerLabel:{type:String,default:"Traveller"},enableCreateRoomCta:{type:Boolean,default:!0},enableInfantCount:{type:Boolean,default:!0},enableGlassDesign:{type:Boolean,default:!1}},emits:["update:roomsData"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=window.siteName,i=ref$1(null),s=ref$1(null),l=window.AEM_MHH_THEME_SWITCH,{rooms:d,createRoom:c,deleteRoom:u,totalAdultChildCombinedCount:f,totalInfantCount:m,hasCombinedAnyExceeded:b,dropdownValidationFunc:y}=useTravellerAndRoom({errorMessages:{...e.combinedAnyExceededMsg?{combinedAnyExceeded:e.combinedAnyExceededMsg}:null,...e.combinedAdultChildExceededMsg?{combinedAdultChildExceeded:e.combinedAdultChildExceededMsg}:null,...e.combinedInfantExceededMsg?{combinedInfantExceeded:e.combinedInfantExceededMsg}:null}});watch(b,()=>{var S,C;(S=s.value)==null||S.hiddenTextField.setTouched(!0),(C=s.value)==null||C.hiddenTextField.validate()},{deep:!0}),watch(d,S=>{n("update:roomsData",S)},{deep:!0}),n("update:roomsData",d);const _={props:e,emit:n,siteName:a,noOptionsEl:i,dropdownEl:s,mhhNewTheme:l,rooms:d,createRoom:c,deleteRoom:u,totalAdultChildCombinedCount:f,totalInfantCount:m,hasCombinedAnyExceeded:b,dropdownValidationFunc:y,unref,Dropdown,get useTravellerAndRoom(){return useTravellerAndRoom},get isMobileViewport(){return isMobileViewport},NumberPlusMinus,CTAButton,get i18nGlobal(){return i18nGlobal}};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}),_hoisted_1$1X=["data-use-theme"],_hoisted_2$1v={class:"value-wrapper relative flex-grow mr-2 leading-none"},_hoisted_3$15={class:"text-label absolute font-semibold"},_hoisted_4$Z={key:0,class:"text-primary-mhh-teal-base required-asterisk"},_hoisted_5$V={class:"text-value relative"},_hoisted_6$R={key:0},_hoisted_7$Q={ref:"noOptionsEl",class:"multiselect-options styled-scrollbar pt-4 pb-4 cursor-default mr-0 md:mr-2",tabindex:"-1"},_hoisted_8$N={class:"flex items-center mb-4 px-4"},_hoisted_9$J={key:0,class:"typo-category-title uppercase"},_hoisted_10$B=["onClick"],_hoisted_11$A={class:"flex flex-col gap-4"},_hoisted_12$y={class:"px-4 grid grid-cols-2 gap-x-4 gap-y-4 pt-4 pb-5 bg-neutral-grey-extralight md:grid-cols-1 empty:hidden"},_hoisted_13$w=["role"],_hoisted_14$v={key:0,class:"mt-4 mb-4"},_hoisted_15$t={key:0,class:"flex justify-start px-4 mt-6"},_hoisted_16$r={class:"font-semibold"},_hoisted_17$o={class:"sticky bottom-0 bg-white py-4 px-4 border-t-2 border-neutral-grey-base >md:hidden"};function _sfc_render$1D(t,o,r,e,n,a){const i=__unplugin_components_1$5,s=resolveDirective("button-press");return openBlock(),createElementBlock("div",{class:normalizeClass(["DropdownTravellersAndRoom",{"mhh-new-theme":e.mhhNewTheme}]),"data-use-theme":e.siteName},[createVNode(e.Dropdown,{ref:"dropdownEl",labelText:e.props.labelText,desktopVariant:"custom-html booking-widget",mobileVariant:"no-padding custom-html",validation:e.dropdownValidationFunc,enableGlassDesign:e.props.enableGlassDesign,name:"travellersAndRoom"},{"mobile-title":withCtx(l=>[renderSlot(t.$slots,"mobile-title",normalizeProps(guardReactiveProps(l)),void 0,!0)]),placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_2$1v,[createBaseVNode("span",_hoisted_3$15,[createTextVNode(toDisplayString(e.props.labelText),1),e.props.isRequired&&e.siteName==="MHH"?(openBlock(),createElementBlock("span",_hoisted_4$Z,"*")):createCommentVNode("",!0)]),createBaseVNode("span",_hoisted_5$V,[createTextVNode(toDisplayString(t.$tc(`{n} ${e.props.travellerLabel}`,{n:e.totalAdultChildCombinedCount+e.totalInfantCount})),1),e.props.enableCreateRoomCta?(openBlock(),createElementBlock("span",_hoisted_6$R,", ")):createCommentVNode("",!0),e.props.enableCreateRoomCta?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(t.$tc("{n} Room",{n:e.rooms.length})),1)],64)):createCommentVNode("",!0)])])]),nooptions:withCtx(({hideMobileOverlay:l})=>[createBaseVNode("div",_hoisted_7$Q,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.rooms,(d,c)=>(openBlock(),createElementBlock(Fragment,{key:c},[createBaseVNode("div",_hoisted_8$N,[e.props.enableCreateRoomCta?(openBlock(),createElementBlock("p",_hoisted_9$J,toDisplayString(t.$t("Room {n}",{n:c+1})),1)):createCommentVNode("",!0),c>=1?withDirectives((openBlock(),createElementBlock("button",{key:1,type:"button",class:"btn-generic-b ml-auto text-primary-blue-base font-semibold text-sm px-4",onClick:u=>{var f;
1167e.deleteRoom(c),(f=e.noOptionsEl)==null||f.focus()}},[createVNode(i,{class:"text-xs fill-current mr-2 rtl:mr-0 rtl:ml-2"}),createTextVNode(" "+toDisplayString(t.$t("Remove")),1)],8,_hoisted_10$B)),[[s]]):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_11$A,[createVNode(e.NumberPlusMinus,{modelValue:d.adults.count,"onUpdate:modelValue":u=>d.adults.count=u,class:"px-4",name:`room[${c}].adults`,ariaLabel:t.$t("Room {n}: number of adults",{n:c}),ariaDescription:t.$t("Ages 18 and above"),min:e.unref(d.adults.min),max:d.hasReachedMaxPassengersCount?d.adults.count:e.unref(d.adults.max)},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.adultLabel),1)]),_:2},1032,["modelValue","onUpdate:modelValue","name","ariaLabel","ariaDescription","min","max"]),createVNode(e.NumberPlusMinus,{modelValue:d.children.count,"onUpdate:modelValue":u=>d.children.count=u,class:"px-4",name:`room[${c}].children`,ariaLabel:t.$t("Room {n}: number of children",{n:c}),ariaDescription:t.$t("Ages 2 to 17"),min:e.unref(d.children.min),max:d.hasReachedMaxPassengersCount?d.children.count:e.unref(d.children.max)},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.childrenLabel),1)]),_:2},1032,["modelValue","onUpdate:modelValue","name","ariaLabel","ariaDescription","min","max"]),createBaseVNode("div",_hoisted_12$y,[(openBlock(!0),createElementBlock(Fragment,null,renderList(d.children.count,u=>(openBlock(),createBlock(e.NumberPlusMinus,{key:u,name:`room[${c}].childAge[${u-1}]`,ariaLabel:t.$t("Room {n}: child {m} age",{n:c,m:u}),disableInput:!1,min:2,max:17,variant:e.isMobileViewport?"":u%2===0?"justify-end":""},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("Child {m} age",{m:u})),1)]),_:2},1032,["name","ariaLabel","variant"]))),128))]),e.props.enableInfantCount?(openBlock(),createBlock(e.NumberPlusMinus,{key:0,modelValue:d.infants.count,"onUpdate:modelValue":u=>d.infants.count=u,class:"px-4",name:`room[${c}].infants`,ariaLabel:t.$t("Room {n}: number of infants",{n:c}),ariaDescription:t.$t("Ages below 2 for the entire journey"),min:e.unref(d.infants.min),max:e.unref(d.infants.max)},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.infantLabel),1)]),_:2},1032,["modelValue","onUpdate:modelValue","name","ariaLabel","ariaDescription","min","max"])):createCommentVNode("",!0)]),withDirectives(createBaseVNode("div",{class:"error-msg-container px-4 leading-tight flex text-semantic-red-base text-sm md:flex-col mt-2",role:d.showInfantErrorMsg?"alert":null},[createBaseVNode("p",null,toDisplayString(t.$t("Each infant should be accompanied by one adult")),1)],8,_hoisted_13$w),[[vShow,d.showInfantErrorMsg]]),e.rooms.at(-1)!==d?(openBlock(),createElementBlock("div",_hoisted_14$v,o[0]||(o[0]=[createBaseVNode("hr",{class:"bg-neutral-grey"},null,-1)]))):createCommentVNode("",!0)],64))),128)),e.props.enableCreateRoomCta?(openBlock(),createElementBlock("div",_hoisted_15$t,[createVNode(e.CTAButton,{class:normalizeClass(["btn-add-flight",{"is-disabled":e.rooms.length>=3}]),sizeType:"small",styleType:"secondary",iconStyleLeft:"solid",iconIdLeft:"circle-plus",ctaSizing:e.isMobileViewport?"fluid":"auto",onClick:e.createRoom},{default:withCtx(()=>[createBaseVNode("span",_hoisted_16$r,toDisplayString(t.$t("Add room")),1)]),_:1},8,["ctaSizing","class","onClick"])])):createCommentVNode("",!0)],512),createBaseVNode("div",_hoisted_17$o,[createVNode(e.CTAButton,{alignmentMobile:"right",onClick:l},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("Done")),1)]),_:2},1032,["onClick"])])]),_:3},8,["labelText","validation","enableGlassDesign"])],10,_hoisted_1$1X)}const DropdownTravellersAndRoom=_export_sfc(_sfc_main$1D,[["render",_sfc_render$1D],["__scopeId","data-v-7481b825"],["__file","DropdownTravellersAndRoom.vue"]]),_hoisted_1$1W={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$k(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1W,o[0]||(o[0]=[createBaseVNode("path",{d:"M488 344H79.24l74.29-79.63C162.6 254.7 162.1 239.5 152.4 230.5C142.7 221.4 127.5 221.9 118.5 231.6l-112 120c-8.625 9.219-8.625 23.53 0 32.75l112 120C123.2 509.4 129.6 512 136 512c5.875 0 11.75-2.125 16.38-6.469c9.688-9.031 10.22-24.22 1.156-33.91L79.24 392H488c13.25 0 24-10.75 24-24S501.3 344 488 344zM24 168h408.8l-74.29 79.63c-9.062 9.688-8.531 24.88 1.156 33.91c9.656 9.094 24.88 8.562 33.91-1.156l112-120c8.625-9.219 8.625-23.53 0-32.75l-112-120C388.8 2.562 382.4 0 376 0c-5.875 0-11.75 2.125-16.38 6.469c-9.688 9.031-10.22 24.22-1.156 33.91L432.8 120H24C10.75 120 0 130.8 0 144S10.75 168 24 168z"},null,-1)]))}const __unplugin_components_1$4=markRaw({name:"far-arrow-right-arrow-left",render:render$k}),_hoisted_1$1V={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$j(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1V,o[0]||(o[0]=[createBaseVNode("path",{d:"M272 192C272 236.2 236.2 272 192 272C147.8 272 112 236.2 112 192C112 147.8 147.8 112 192 112C236.2 112 272 147.8 272 192zM192 160C174.3 160 160 174.3 160 192C160 209.7 174.3 224 192 224C209.7 224 224 209.7 224 192C224 174.3 209.7 160 192 160zM384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192H384zM192 48C112.5 48 48 112.5 48 192C48 204.4 52.49 223.6 63.3 249.2C73.78 274 88.66 301.4 105.8 329.1C134.2 375.3 167.2 419.1 192 451.7C216.8 419.1 249.8 375.3 278.2 329.1C295.3 301.4 310.2 274 320.7 249.2C331.5 223.6 336 204.4 336 192C336 112.5 271.5 48 192 48V48z"},null,-1)]))}const __unplugin_components_0$8=markRaw({name:"far-location-dot",render:render$j});
1167var fuzzysort$1={exports:{}};(function(t){((o,r)=>{t.exports?t.exports=r():o.fuzzysort=r()})(commonjsGlobal,o=>{var r=(R,I)=>{if(R=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!R||!I)return A;var j=c(R);D(I)||(I=d(I));var H=j.bitflags;return(H&I._bitflags)!==H?A:f(j,I)},e=(R,I,j)=>{if(R=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:I?I[0]:A}];if(!R)return j&&j.all?u(R,I,j):V;var H=c(R),U=H.bitflags;H.containsSpace;var B=j&&j.threshold||F,L=j&&j.limit||N,z=0,W=0,J=I.length;if(j&&j.key)for(var te=j.key,re=0;re<J;++re){var oe=I[re],X=w(oe,te);if(X&&(D(X)||(X=d(X)),(U&X._bitflags)===U)){var se=f(H,X);se!==A&&(se.score<B||(se={target:se.target,_targetLower:"",_targetLowerCodes:A,_nextBeginningIndexes:A,_bitflags:0,score:se.score,_indexes:se._indexes,obj:oe},z<L?(O.add(se),++z):(++W,se.score>O.peek().score&&O.replaceTop(se))))}}else if(j&&j.keys)for(var le=j.scoreFn||E,he=j.keys,ge=he.length,re=0;re<J;++re){for(var oe=I[re],Q=new Array(ge),Y=0;Y<ge;++Y){var te=he[Y],X=w(oe,te);if(!X){Q[Y]=A;continue}D(X)||(X=d(X)),(U&X._bitflags)!==U?Q[Y]=A:Q[Y]=f(H,X)}Q.obj=oe;var ne=le(Q);ne!==A&&(ne<B||(Q.score=ne,z<L?(O.add(Q),++z):(++W,ne>O.peek().score&&O.replaceTop(Q))))}else for(var re=0;re<J;++re){var X=I[re];if(X&&(D(X)||(X=d(X)),(U&X._bitflags)===U)){var se=f(H,X);se!==A&&(se.score<B||(z<L?(O.add(se),++z):(++W,se.score>O.peek().score&&O.replaceTop(se))))}}if(z===0)return V;for(var Ce=new Array(z),re=z-1;re>=0;--re)Ce[re]=O.poll();return Ce.total=z+W,Ce},n=(R,I,j)=>{if(typeof I=="function")return a(R,I);if(R===A)return A;I===void 0&&(I="<b>"),j===void 0&&(j="</b>");var H="",U=0,B=!1,L=R.target,z=L.length,W=R._indexes;W=W.slice(0,W.len).sort((re,oe)=>re-oe);for(var J=0;J<z;++J){var te=L[J];if(W[U]===J){if(++U,B||(B=!0,H+=I),U===W.length){H+=te+j+L.substr(J+1);break}}else B&&(B=!1,H+=j);H+=te}return H},a=(J,I)=>{if(J===A)return A;var j=J.target,H=j.length,U=J._indexes;U=U.slice(0,U.len).sort((oe,X)=>oe-X);for(var B="",L=0,z=0,W=!1,J=[],te=0;te<H;++te){var re=j[te];if(U[z]===te){if(++z,W||(W=!0,J.push(B),B=""),z===U.length){B+=re,J.push(I(B,L++)),B="",J.push(j.substr(te+1));break}}else W&&(W=!1,J.push(I(B,L++)),B="");B+=re}return J},i=R=>R._indexes.slice(0,R._indexes.len).sort((I,j)=>I-j),s=R=>{typeof R!="string"&&(R="");var I=b(R);return{target:R,_targetLower:I._lower,_targetLowerCodes:I.lowerCodes,_nextBeginningIndexes:A,_bitflags:I.bitflags,score:A,_indexes:[0],obj:A}},l=R=>{typeof R!="string"&&(R=""),R=R.trim();var I=b(R),j=[];if(I.containsSpace){var H=R.split(/\s+/);H=[...new Set(H)];for(var U=0;U<H.length;U++)if(H[U]!==""){var B=b(H[U]);j.push({lowerCodes:B.lowerCodes,_lower:H[U].toLowerCase(),containsSpace:!1})}}return{lowerCodes:I.lowerCodes,bitflags:I.bitflags,containsSpace:I.containsSpace,_lower:I._lower,spaceSearches:j}},d=R=>{if(R.length>999)return s(R);var I=C.get(R);return I!==void 0||(I=s(R),C.set(R,I)),I},c=R=>{if(R.length>999)return l(R);var I=T.get(R);return I!==void 0||(I=l(R),T.set(R,I)),I},u=(R,I,j)=>{var H=[];H.total=I.length;var U=j&&j.limit||N;if(j&&j.key)for(var B=0;B<I.length;B++){var L=I[B],z=w(L,j.key);if(z){D(z)||(z=d(z)),z.score=F,z._indexes.len=0;var W=z;if(W={target:W.target,_targetLower:"",_targetLowerCodes:A,_nextBeginningIndexes:A,_bitflags:0,score:z.score,_indexes:A,obj:L},H.push(W),H.length>=U)return H}}else if(j&&j.keys)for(var B=0;B<I.length;B++){for(var L=I[B],J=new Array(j.keys.length),te=j.keys.length-1;te>=0;--te){var z=w(L,j.keys[te]);if(!z){J[te]=A;continue}D(z)||(z=d(z)),z.score=F,z._indexes.len=0,J[te]=z}if(J.obj=L,J.score=F,H.push(J),H.length>=U)return H}else for(var B=0;B<I.length;B++){var z=I[B];if(z&&(D(z)||(z=d(z)),z.score=F,z._indexes.len=0,H.push(z),H.length>=U))return H}return H},f=(R,I,j=!1)=>{if(j===!1&&R.containsSpace)return m(R,I);for(var H=R._lower,U=R.lowerCodes,B=U[0],L=I._targetLowerCodes,z=U.length,W=L.length,oe=0,J=0,te=0;;){var re=B===L[J];if(re){if(x[te++]=J,++oe,oe===z)break;B=U[oe]}if(++J,J>=W)return A}var oe=0,X=!1,se=0,le=I._nextBeginningIndexes;le===A&&(le=I._nextBeginningIndexes=_(I.target)),J=x[0]===0?0:le[x[0]-1];var he=0;if(J!==W)for(;;)if(J>=W){if(oe<=0||(++he,he>200))break;--oe;var ge=k[--se];J=le[ge]}else{var re=U[oe]===L[J];if(re){if(k[se++]=J,++oe,oe===z){X=!0;break}++J}else J=le[J]}
1167var Q=I._targetLower.indexOf(H,x[0]),Y=~Q;if(Y&&!X)for(var ne=0;ne<te;++ne)x[ne]=Q+ne;var Ce=!1;Y&&(Ce=I._nextBeginningIndexes[Q-1]===Q);{if(X)var ae=k,Be=se;else var ae=x,Be=te;for(var me=0,K=0,ne=1;ne<z;++ne)ae[ne]-ae[ne-1]!==1&&(me-=ae[ne],++K);var q=ae[z-1]-ae[0]-(z-1);if(me-=(12+q)*K,ae[0]!==0&&(me-=ae[0]*ae[0]*.2),!X)me*=1e3;else{for(var Z=1,ne=le[0];ne<W;ne=le[ne])++Z;Z>24&&(me*=(Z-24)*10)}Y&&(me/=1+z*z*1),Ce&&(me/=1+z*z*1),me-=W-z,I.score=me;for(var ne=0;ne<Be;++ne)I._indexes[ne]=ae[ne];return I._indexes.len=Be,I}},m=(R,I)=>{for(var j=new Set,H=0,U=A,B=0,L=R.spaceSearches,te=0;te<L.length;++te){var z=L[te];if(U=f(z,I),U===A)return A;H+=U.score,U._indexes[0]<B&&(H-=B-U._indexes[0]),B=U._indexes[0];for(var W=0;W<U._indexes.len;++W)j.add(U._indexes[W])}var J=f(R,I,!0);if(J!==A&&J.score>H)return J;U.score=H;var te=0;for(let re of j)U._indexes[te++]=re;return U._indexes.len=te,U},b=R=>{for(var I=R.length,j=R.toLowerCase(),H=[],U=0,B=!1,L=0;L<I;++L){var z=H[L]=j.charCodeAt(L);if(z===32){B=!0;continue}var W=z>=97&&z<=122?z-97:z>=48&&z<=57?26:z<=127?30:31;U|=1<<W}return{lowerCodes:H,bitflags:U,containsSpace:B,_lower:j}},y=R=>{for(var I=R.length,j=[],H=0,U=!1,B=!1,L=0;L<I;
1167++L){var z=R.charCodeAt(L),W=z>=65&&z<=90,J=W||z>=97&&z<=122||z>=48&&z<=57,te=W&&!U||!B||!J;U=W,B=J,te&&(j[H++]=L)}return j},_=R=>{for(var I=R.length,j=y(R),H=[],U=j[0],B=0,L=0;L<I;++L)U>L?H[L]=U:(U=j[++B],H[L]=U===void 0?I:U);return H},S=()=>{C.clear(),T.clear(),x=[],k=[]},C=new Map,T=new Map,x=[],k=[],E=R=>{for(var I=F,j=R.length,H=0;H<j;++H){var U=R[H];if(U!==A){var B=U.score;B>I&&(I=B)}}return I===F?A:I},w=(R,I)=>{var j=R[I];if(j!==void 0)return j;var H=I;Array.isArray(I)||(H=I.split("."));for(var U=H.length,B=-1;R&&++B<U;)R=R[H[B]];return R},D=R=>typeof R=="object",N=1/0,F=-N,V=[];V.total=0;var A=null,M=R=>{var I=[],j=0,H={},U=B=>{for(var L=0,z=I[L],W=1;W<j;){var J=W+1;L=W,J<j&&I[J].score<I[W].score&&(L=J),I[L-1>>1]=I[L],W=1+(L<<1)}for(var te=L-1>>1;L>0&&z.score<I[te].score;te=(L=te)-1>>1)I[L]=I[te];I[L]=z};return H.add=B=>{var L=j;I[j++]=B;for(var z=L-1>>1;L>0&&B.score<I[z].score;z=(L=z)-1>>1)I[L]=I[z];I[L]=B},H.poll=B=>{if(j!==0){var L=I[0];return I[0]=I[--j],U(),L}},H.peek=B=>{if(j!==0)return I[0]},H.replaceTop=B=>{I[0]=B,U()},H},O=M();return{single:r,go:e,highlight:n,prepare:s,indexes:i,cleanup:S}})})(fuzzysort$1);var fuzzysortExports=fuzzysort$1.exports;const fuzzysort=getDefaultExportFromCjs(fuzzysortExports),__default__$1B={name:"AirportPicker",inheritAttrs:!1},_sfc_main$1C=Object.assign(__default__$1B,{props:{name:{type:String,required:!0},options:{type:[Array,Function],default:()=>[]},defaultValue:{type:String,default:null},modelValue:{type:[String,Object],default:null},variant:{type:String,default:""},placeholderText:{type:String,default:"‎ "},labelText:{type:String,default:""},noResultsText:{type:String,default:i18nGlobal.t("No results found")},showOptionLocationIcon:{type:Boolean,default:!1},showDropdownOnFocus:{type:Boolean,default:!1},rootAttrs:{type:Object,default:()=>({})},attrs:{type:Object,default:()=>({})},required:{type:Boolean,default:!1},requiredErrorMsg:{type:String,default:i18nGlobal.t("This field is required")},isGroups:{type:Boolean,default:null},enableGlassDesign:{type:Boolean,default:!1}},emits:["open","update:modelValue"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=window.siteName,i=ref$1(!1),s=O=>{O.key==="Tab"&&(O.preventDefault(),O.stopPropagation(),y.value.querySelector('.multiselect-option[data-pointed="true"]').click())},l=O=>{y.value.addEventListener("keydown",s),isMobileViewport.value&&(i.value=!0,N.value=null),b.value&&O.setPointer(b.value),n("open",O)},d=()=>{y.value.removeEventListener("keydown",s)},c=O=>{i.value=!1},u=computed(()=>{var R;if(e.isGroups!==null)return e.isGroups;if(typeof e.options=="function")return console.warn("Unable to auto determine if props.options is group or not, due to props.options being an async function. In this case, also provide props.isGroups. Defaults to false for now."),!1;const O=(R=e.options)==null?void 0:R[0];return O?!!(O.label&&O.options):!1}),f=ref$1(null),m=()=>{e.showDropdownOnFocus&&f.value.open()},b=useInternalValue("modelValue",{valueWatchCallback:O=>{var R,I,j;((R=f.value)==null?void 0:R.internalValue)!==O&&(O?(I=f.value)==null||I.select(O):(j=f.value)==null||j.clear())}}),y=ref$1(null),_=ref$1(null),S=ref$1(null),C=computed(()=>{var O;return b.value?typeof b.value=="string"?b.value:((O=b.value)==null?void 0:O.value)??b.value:""}),T=O=>{if(!e.required||typeof e.modelValue=="object"&&e.modelValue!==null)return!0;{const R=yup.string().required(e.requiredErrorMsg).nullable();try{return R.validateSync(O),!0}catch(I){return I.errors[0]}}},x=()=>{S.value.inputEl._mh_invalidFocus=()=>{var O;MHScrollToElement(y.value,{additionalTopOffset:60}),(O=f.value.input)==null||O.focus({preventScroll:!0})}},k=()=>{var O,R,I;(R=(O=f.value)==null?void 0:O.input)==null||R.focus(),(I=f.value)==null||I.open()},E=async(O,R)=>{O(),isMobileViewport||setTimeout(()=>{f.value.focus()},100)},w=()=>{var O;(O=S.value)==null||O.setTouched(!0)},D=()=>{_.value.focus()},N=ref$1(null),F=window.AEM_MHH_THEME_SWITCH,V=async O=>{N.value=O,y.value&&(y.value.querySelector(".multiselect-options").scrollTop=0)},A=computed(()=>{let O=Array.isArray(e.options)?e.options:[];if(isMobileViewport.value&&!Array.isArray(O))return[];if(!N.value)return O;if(u.value){if(!Array.isArray(O))return[];const R=O.reduce((U,B)=>(U.push(...(B.options||[]).map(L=>({...L,group:B.label}))),U),[]),j=fuzzysort.go(N.value,R,{keys:["code","searchString"]}).filter(U=>U.score>=-25e3).map(U=>U.obj),H=Object.entries(lodashExports.groupBy(j,"group")).map(([U,B])=>({label:U,options:B}));nextTick$1(()=>{O=H})}else{if(window.isEnrichFlypassFlightSearch==="Yes"&&(!O||O.length===0))return[];O=fuzzysort.go(N.value,O,{keys:["code","searchString"]}).filter(I=>I.score>=-25e3).map(I=>I.obj)}return O});o({hiddenTextField:S,inputEl:S,focus:k});const M={props:e,emit:n,siteName:a,showPickerOverlay:i,tabKeyToSelectHandler:s,handleOnOpen:l,handleUponSelection:d,handleMobileChange:c,isGroups:u,multiselectMain:f,handleOnInputFocus:m,internalValue:b,rootEl:y,focusDummy:_,hiddenTextField:S,htmlValue:C,validationFunc:T,hiddenTextFieldMounted:x,focus:k,handleClearClick:E,handleOnInputBlur:w,handleOverlayHidden:D,searchKeyword:N,mhhNewTheme:F,handleSearchChange:V,filteredOptions:A,get yup(){return yup},get Multiselect(){return script},OverlayBtmSticky,get wrapQueryWithHTML(){return wrapQueryWithHTML},get isMobileViewport(){return isMobileViewport},get useInternalValue(){return useInternalValue},TextField,get MHScrollToElement(){return MHScrollToElement},get i18nGlobal(){return i18nGlobal},get fuzzysort(){return fuzzysort},get _groupBy(){return lodashExports.groupBy}};return Object.defineProperty(M,"__isScriptSetup",{enumerable:!1,value:!0}),M}}),_hoisted_1$1U=["data-use-theme"],_hoisted_2$1u={class:"placeholder-wrapper relative flex-grow flex flex-col mr-2 leading-none"},_hoisted_3$14={class:"text-label absolute font-bold"},_hoisted_4$Y={key:0,class:"required-asterisk"},_hoisted_5$U={class:"text-placeholder text-neutral-grey-ultradark relative"},_hoisted_6$Q={class:"value-wrapper multiselect-single-label flex-grow mr-2 2xl:mr-0 rtl:mr-0 rtl:ml-2"},_hoisted_7$P={class:"label-text absolute font-bold"},_hoisted_8$M={key:0,class:"required-asterisk"},_hoisted_9$I={class:"text-value relative flex items-center"},_hoisted_10$A={class:"sr-only"},_hoisted_11$z={class:"font-semibold value-label pr-2 rtl:pr-0 rtl:pl-2 xs:text-sm truncate","aria-hidden":"true"},_hoisted_12$x={class:"flex flex-grow items-center"},_hoisted_13$v={key:0,class:"mr-4 rtl:mr-0 rtl:ml-4"},_hoisted_14$u={class:"flex flex-col leading-none pr-2 pl-2 rtl:pr-0"},_hoisted_15$s={class:"font-semibold"},_hoisted_16$q={key:0,class:"text-neutral-grey-ultradark text-sm mt-1 leading-none"},_hoisted_17$n={class:"auxiliary-label-wrapper multiselect-single-label -order-1 flex-grow mr-2 leading-none"},_hoisted_18$l={class:"text-label absolute font-semibold"},_hoisted_19$i=["aria-label","onMousedown","onKeydown"],_hoisted_20$i={ref:"focusDummy",class:"focusable-dummy",tabindex:"-1","aria-hidden":"true"},_hoisted_21$i={class:"pl-5 sticky top-0 bg-white z-1000 pb-3 w-full h-$overlayTitleHeight rtl:pl-0 rtl:pr-5"},_hoisted_22$h={class:"font-bold line-clamp-1"},_hoisted_23$f={ref:"rootEl",class:"AirportPicker"},_hoisted_24$e={class:"placeholder-wrapper relative flex-grow mr-2 leading-none"},_hoisted_25$d={class:"text-label absolute font-semibold"},_hoisted_26$d={class:"text-placeholder text-neutral-grey-ultradark relative"},_hoisted_27$c={class:"flex flex-grow items-center"},_hoisted_28$b={key:0,class:"mr-2 rtl:mr-0 rtl:ml-2"},_hoisted_29$b={class:"flex flex-col leading-none pr-2 pl-2 rtl:pr-0"},_hoisted_30$b={class:"font-semibold"},_hoisted_31$b={key:0,class:"text-neutral-grey-ultradark text-sm mt-1 leading-none"},_hoisted_32$b={key:1,class:"airport-code-tag ml-auto rtl:ml-0 rtl:mr-auto"},_hoisted_33$8={class:"value-wrapper multiselect-single-label flex-grow mr-2 leading-none"},_hoisted_34$8={class:"text-label absolute font-semibold"},_hoisted_35$8={class:"text-value relative flex items-center gap-2"},_hoisted_36$7={class:"font-semibold value-label pr-2 rtl:pr-0 rtl:pl-2 truncate"}
1167,_hoisted_37$7={key:0,class:"airport-code-tag"},_hoisted_38$7=["aria-label","onMousedown","onKeydown"];function _sfc_render$1C(t,o,r,e,n,a){var c,u;const i=__unplugin_components_0$8,s=__unplugin_components_0$a,l=__unplugin_components_2$6,d=resolveDirective("html-sanitize");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",mergeProps({ref:"rootEl",class:["AirportPicker",{"has-validation-error":((c=e.hiddenTextField)==null?void 0:c.hasValidationError)&&((u=e.hiddenTextField)==null?void 0:u.meta.touched),"mhh-new-theme":e.mhhNewTheme}],"data-use-theme":e.siteName},e.props.rootAttrs),[createVNode(e.Multiselect,mergeProps({ref:"multiselectMain",modelValue:e.internalValue,"onUpdate:modelValue":o[0]||(o[0]=f=>e.internalValue=f),options:e.filteredOptions,placeholder:"‎ ",label:"name",trackBy:"searchString",searchable:!0,groups:e.isGroups,canClear:!1,classes:{dropdown:"multiselect-dropdown md:hidden shadow-type-a mt-4 py-2 pr-2",options:"multiselect-options flex flex-col py-0 px-2 m-0 list-none styled-scrollbar"},attrs:{onFocus:e.handleOnInputFocus,onBlur:e.handleOnInputBlur,"aria-label":e.props.labelText,...e.props.attrs??null},object:!0,"data-variant":e.props.variant,noResultsText:e.props.noResultsText,noOptionsText:e.props.noResultsText},t.$attrs,{class:["multiselect-main",[t.$attrs.class,{"glass-design":e.props.enableGlassDesign,"mhh-new-theme":e.mhhNewTheme}]],onOpen:e.handleOnOpen,onSelect:e.handleUponSelection,onSearchChange:e.handleSearchChange}),createSlots({placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_2$1u,[createBaseVNode("span",_hoisted_3$14,[createTextVNode(toDisplayString(e.props.labelText),1),e.props.required&&(e.siteName==="MHH"||e.siteName==="firefly")?(openBlock(),createElementBlock("span",_hoisted_4$Y,"*")):createCommentVNode("",!0)]),createBaseVNode("span",_hoisted_5$U,toDisplayString(e.i18nGlobal.t(e.props.placeholderText)),1)])]),singlelabel:withCtx(({value:f})=>[createBaseVNode("div",_hoisted_6$Q,[createBaseVNode("span",_hoisted_7$P,[createTextVNode(toDisplayString(e.props.labelText),1),e.props.required&&(e.siteName==="MHH"||e.siteName==="firefly")?(openBlock(),createElementBlock("span",_hoisted_8$M,"*")):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_9$I,[createBaseVNode("div",_hoisted_10$A,toDisplayString(t.$t("Value is {value}",{value:f.displayValue??f.label})),1),createBaseVNode("span",_hoisted_11$z,toDisplayString(f.displayValue??f.label),1),f.code?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["airport-code-tag ml-2 rtl:ml-0 rtl:mr-2 self-start",e.mhhNewTheme?"mhh-new-theme":""])},toDisplayString(f.code),3)):createCommentVNode("",!0)])])]),option:withCtx(({option:f,search:m})=>[createBaseVNode("div",_hoisted_12$x,[e.props.showOptionLocationIcon?(openBlock(),createElementBlock("div",_hoisted_13$v,[createVNode(i,{class:"m-auto fill-$text-color"})])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_14$u,[withDirectives(createBaseVNode("span",_hoisted_15$s,null,512),[[d,e.wrapQueryWithHTML(f.label,{query:m,className:"search-keyword-highlight"})]]),f.description?(openBlock(),createElementBlock("span",_hoisted_16$q,toDisplayString(f.description),1)):createCommentVNode("",!0)]),f.code?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["airport-code-tag ml-auto rtl:ml-0 rtl:mr-auto",{"mhh-new-theme":e.mhhNewTheme}])},toDisplayString(f.code),3)):createCommentVNode("",!0)])]),caret:withCtx(()=>[createBaseVNode("div",_hoisted_17$n,[createBaseVNode("span",_hoisted_18$l,toDisplayString(e.props.labelText),1)]),createVNode(s,{class:"dropdown-caret mr-7 rtl:mr-0 rtl:ml-7 z-50 relative transition-transform duration-200"})]),clear:withCtx(({clear:f})=>[createBaseVNode("button",{type:"button",class:"btn-clear rounded-full py-2 z-50 relative mr-2 rtl:mr-0 rtl:ml-2","aria-label":t.$t("Clear field"),onMousedown:withModifiers(m=>e.handleClearClick(f,m),["stop"]),onKeydown:[withKeys(withModifiers(m=>e.handleClearClick(f,m),["stop"]),["space"]),withKeys(withModifiers(m=>e.handleClearClick(f,m),["stop"]),["enter"])]},[createVNode(l,{class:"fill-neutral-grey-extradark"})],40,_hoisted_19$i)]),_:2},[renderList(t.$slots,(f,m)=>({name:m,fn:withCtx(b=>[renderSlot(t.$slots,m,normalizeProps(guardReactiveProps(b)),void 0,!0)])}))]),1040,["modelValue","options","groups","attrs","data-variant","noResultsText","noOptionsText","class"]),createVNode(e.TextField,{ref:"hiddenTextField",class:"",modelValue:e.htmlValue,name:e.props.name,ariaLabel:"",validation:e.validationFunc,variant:"input-hidden",onVnodeMounted:e.hiddenTextFieldMounted},null,8,["modelValue","name"]),createBaseVNode("div",_hoisted_20$i,null,512)],16,_hoisted_1$1U),createVNode(e.OverlayBtmSticky,{class:"AirportPicker-overlay",isVisible:e.showPickerOverlay&&e.isMobileViewport,style:{"--overlayTitleHeight":"36px"},"onUpdate:isVisible":o[3]||(o[3]=f=>
1167{e.showPickerOverlay=f,e.handleOverlayHidden()})},{default:withCtx(()=>[createBaseVNode("div",_hoisted_21$i,[createBaseVNode("h6",_hoisted_22$h,[renderSlot(t.$slots,"mobile-title",{},()=>[createTextVNode(toDisplayString(e.props.labelText),1)],!0)])]),createBaseVNode("div",_hoisted_23$f,[createVNode(e.Multiselect,mergeProps({modelValue:e.internalValue,"onUpdate:modelValue":o[1]||(o[1]=f=>e.internalValue=f),options:e.filteredOptions,placeholder:t.$t("Type the airport name or code"),label:"name",trackBy:"searchString",searchable:!0,groups:e.isGroups,canClear:!1,classes:{dropdown:"multiselect-dropdown md:hidden mt-0 !flex",options:"multiselect-options flex flex-col py-0 m-0 list-none styled-scrollbar empty:hidden"},object:!0,"data-variant":`in-mobile-overlay ${e.props.variant}`,noResultsText:e.props.noResultsText,noOptionsText:e.props.noResultsText},t.$attrs,{class:["multiselect-main",[t.$attrs.class,{"glass-design":e.props.enableGlassDesign}]],onSelect:e.handleMobileChange,onOpen:o[2]||(o[2]=f=>t.$emit("open",f)),onSearchChange:e.handleSearchChange}),createSlots({placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_24$e,[createTextVNode(toDisplayString(console.log(e.props.labelText))+" ",1),createBaseVNode("span",_hoisted_25$d,toDisplayString(e.props.labelText),1),createBaseVNode("span",_hoisted_26$d,toDisplayString(t.$t("Type the airport name or code")),1)])]),option:withCtx(({option:f,search:m})=>[createBaseVNode("div",_hoisted_27$c,[e.props.showOptionLocationIcon?(openBlock(),createElementBlock("div",_hoisted_28$b,[createVNode(i,{class:"m-auto fill-$text-color"})])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_29$b,[withDirectives(createBaseVNode("span",_hoisted_30$b,null,512),[[d,e.wrapQueryWithHTML(f.label,{query:m,className:"search-keyword-highlight"})]]),f.description?(openBlock(),createElementBlock("span",_hoisted_31$b,toDisplayString(f.description),1)):createCommentVNode("",!0)]),f.code?(openBlock(),createElementBlock("div",_hoisted_32$b,toDisplayString(f.code),1)):createCommentVNode("",!0)])]),singlelabel:withCtx(({value:f})=>[createBaseVNode("div",_hoisted_33$8,[createBaseVNode("span",_hoisted_34$8,toDisplayString(e.props.labelText),1),createBaseVNode("div",_hoisted_35$8,[o[4]||(o[4]=createBaseVNode("div",{class:"sr-only"},"Value is ",-1)),createBaseVNode("span",_hoisted_36$7,toDisplayString(f.displayValue??f.label),1),f.code?(openBlock(),createElementBlock("div",_hoisted_37$7,toDisplayString(f.code),1)):createCommentVNode("",!0)])])]),clear:withCtx(({clear:f})=>[createBaseVNode("button",{type:"button",class:"btn-clear rounded-full py-2 z-50 relative mr-2 rtl:mr-0 rtl:ml-2","aria-label":t.$t("Clear field"),onMousedown:withModifiers(m=>e.handleClearClick(f,m),["stop"]),onKeydown:[withKeys(withModifiers(m=>e.handleClearClick(f,m),["stop"]),["space"]),withKeys(withModifiers(m=>e.handleClearClick(f,m),["stop"]),["enter"])]},[createVNode(l,{class:"fill-neutral-grey-extradark"})],40,_hoisted_38$7)]),_:2},[renderList(t.$slots,(f,m)=>({name:m,fn:withCtx(b=>[renderSlot(t.$slots,m,normalizeProps(guardReactiveProps(b)),void 0,!0)])}))]),1040,["modelValue","options","placeholder","groups","data-variant","noResultsText","noOptionsText","class"])],512)]),_:3},8,["isVisible"])],64)}const AirportPicker=_export_sfc(_sfc_main$1C,[["render",_sfc_render$1C],["__scopeId","data-v-c729c371"],["__file","AirportPicker.vue"]]),getDisplacementInKilometer=(t,o)=>{const r=t.latitude,e=t.longitude,n=o.latitude,a=o.longitude;if(Number.isNaN(r)||Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(a))return-1;const i=6371,s=(n-r)*Math.PI/180,l=(a-e)*Math.PI/180,d=Math.sin(s/2)*Math.sin(s/2)+Math.cos(r*Math.PI/180)*Math.cos(n*Math.PI/180)*Math.sin(l/2)*Math.sin(l/2),c=2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d));return i*c},GROUP_ID$1={NEAR_YOU:"NEAR_YOU",POPULAR_DEST:"POPULAR_DEST",WITH_MH:"WITH_MH",CODESHARE:"CODESHARE",EMPTY_LABEL:"EMPTY_LABEL",WITH_AMAL:"WITH_AMAL"},GROUP_ID_TO_LABEL_MAP$1={[GROUP_ID$1.NEAR_YOU]:i18nGlobal.t("Near You"),[GROUP_ID$1.POPULAR_DEST]:i18nGlobal.t("Popular Destinations"),[GROUP_ID$1.WITH_MH]:i18nGlobal.t("With Malaysia Airlines"),[GROUP_ID$1.CODESHARE]:i18nGlobal.t("With Codeshare and Partner Network"),[GROUP_ID$1.EMPTY_LABEL]:" ",[GROUP_ID$1.WITH_AMAL]:i18nGlobal.t("With Amal")};let hasInitiated$1=!1,hasInitCompleted$1=!1,hasInitiated_LocaleTranslation=!1;const baseList$1=ref$1(null),baseListError$1=ref$1(null),isBaseListLoading$1=ref$1(!0),zoneList=ref$1(null),baseList_BST=ref$1(null),baseListError_BST=ref$1(null),isBaseListLoading_BST=ref$1(!0),oWAirportList=ref$1(null),isOWAirportListLoading=ref$1(!0),isMHAirportListLoading=ref$1(!0);ref$1(null);const oWOndUrl=ref$1(null),mhOnlyOndUrl=ref$1(null),currentSiteLocale$1=ref$1(null),siteName$1=window.siteName;let ONDFetchService$1=class{constructor({endpoint:o,localeParam:r,oneWorldDropDownONDListUrl:e,mHDropDownONDListUrl:n}={}
1167){this.endpoint=o,this.localeParam=r,this.type="base",this.oneWorldDropDownONDListUrl=e,this.mHDropDownONDListUrl=n}async fetchBaseList(){const o=await axios$1.get(this.endpoint,{params:{type:this.type,locale:this.localeParam}});if(String(o.status).startsWith("4")||String(o.status).startsWith("5"))throw new Error(o.statusText);return o.data}async fetchFromList(o){const r=await axios$1.get(this.endpoint,{params:{type:this.type,des:unref(o),locale:this.localeParam}});if(String(r.status).startsWith("4")||String(r.status).startsWith("5"))throw new Error(r.statusText);return r.data.originList}async fetchToList(o){const r=await axios$1.get(this.endpoint,{params:{type:this.type,ori:unref(o),locale:this.localeParam}});if(String(r.status).startsWith("4")||String(r.status).startsWith("5"))throw new Error(r.statusText);return r.data.destinationList}async fetchOWAirportList(){return(await axios$1.get(this.oneWorldDropDownONDListUrl)).data}async fetchMHAirportList(){return(await axios$1.get(this.mHDropDownONDListUrl)).data}};class ONDFetchService_BST extends ONDFetchService$1{constructor({endpoint:o}={}){super(...arguments),this.type="bst"}}let _fetchService$1=null,_fetchService_BST=null,_fetchService_OW=null,_fetchService_MH=null;const init$1=async()=>{let t=currentSiteLocale$1.value;const{pageProperties:o}=useGlobalAEMState$1();await waitFor(()=>!!unref(useGlobalAEMState$1().pageProperties),500).start(),_fetchService$1=new ONDFetchService$1({endpoint:getDropdownONDListUrl(siteName$1),...t?{localeParam:t}:{localeParam:o.value.rootLanguage}}),isBaseListLoading$1.value=!0;try{const e=await _fetchService$1.fetchBaseList();baseList$1.value=e,e&&e.zoneList&&(zoneList.value=e.zoneList)}catch(e){baseListError$1.value=e.message||e}isBaseListLoading$1.value=!1,_fetchService_BST=new ONDFetchService_BST({endpoint:getDropdownONDListUrl(siteName$1),...t?{localeParam:t}:null}),isBaseListLoading_BST.value=!0;try{if(siteName$1!=="firefly"){const e=await _fetchService_BST.fetchBaseList();baseList_BST.value=e}}catch(e){baseListError_BST.value=e.message||e}isBaseListLoading_BST.value=!1,hasInitCompleted$1=!0},loadOWAndMHLists=async()=>{isOWAirportListLoading.value=!0,isMHAirportListLoading.value=!0;try{_fetchService_OW=new ONDFetchService$1({oneWorldDropDownONDListUrl:oWOndUrl.value}),_fetchService_MH=new ONDFetchService$1({mHDropDownONDListUrl:mhOnlyOndUrl.value}),oWAirportList.value=await _fetchService_OW.fetchOWAirportList()}catch(t){console.error("Error loading OW list:",t)}finally{isOWAirportListLoading.value=!1,isMHAirportListLoading.value=!1}},getFetchService=async({isBST:t=!1}={})=>t?_fetchService_BST||(await waitFor(()=>!!_fetchService_BST,750).start(),_fetchService_BST):_fetchService$1||(await waitFor(()=>!!_fetchService$1,750).start(),_fetchService$1),appendAirportInfo$1=t=>{var r,e,n,a,i,s,l,d;return{_original:t,value:t.airportCode,displayValue:((r=t.locale)==null?void 0:r.cityName)??t.city,label:`${((e=t.locale)==null?void 0:e.cityName)??t.city}, ${((n=t.locale)==null?void 0:n.countryName)??t.countryName}`,airportCode:t.airportCode,code:t.airportCode,city:((a=t.locale)==null?void 0:a.cityName)??t.city,searchString:`${t.airportCode} | ${t.city}, ${t.countryName} | ${t.airportName} | ${((i=t.locale)==null?void 0:i.cityName)??""}, ${((s=t.locale)==null?void 0:s.countryName)??""} | ${((l=t.locale)==null?void 0:l.airportName)??""}`,description:((d=t.locale)==null?void 0:d.airportName)??t.airportName,countryName:t.countryName,countryCode:t.countryCode,latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude),...t.domesticDestinations?{domesticDestinations:t.domesticDestinations}:null,isMultiCity:t.isMultiCity,isNewsletter:t.isNewsletter,isRedemption:t.isRedemption,isFlightStatus:t.isFlightStatus,isRevenue:t.isRevenue,isPopularDestination:t.isPopularDestination,isMhHoliday:t.isMhHoliday,..."isAmalFlag"in t?{isAmalFlag:t.isAmalFlag}:null,..."travelPeriodFrom"in t?{travelPeriodFrom:t.travelPeriodFrom}:null,..."travelPeriodTo"in t?{travelPeriodTo:t.travelPeriodTo}:null,..."isAircargo"in t?{isAircargo:t.isAircargo}:null,..."isCheckin"in t?{isCheckin:t.isCheckin}:null,..."supportedCurrencies"in t?{supportedCurrencies:t.supportedCurrencies}:null,..."defaultCurrency"in t?{defaultCurrency:t.defaultCurrency}:null}},getONDValueByAirportCode=async(t,{direction:o="from",isBST:r=!1}={})=>{var i,s,l,d;await waitFor(()=>hasInitCompleted$1===!0).start(),r?await waitFor(()=>isBaseListLoading_BST.value===!1).start():await waitFor(()=>isBaseListLoading$1.value===!1).start();let n=[];o==="from"?(n=(i=baseList$1.value)==null?void 0:i.originList,r&&(n=(s=baseList_BST.value)==null?void 0:s.originList)):(n=(l=baseList$1.value)==null?void 0:l.destinationList,r&&(n=(d=baseList_BST.value)==null?void 0:d.destinationList));const a=n.find(c=>c.airportCode===t);return a?appendAirportInfo$1(a):null},processDataListIntoGroups$1=(t,o=[])=>
1167{const r=o.filter(Boolean);let e=r.map(([n,a])=>({label:GROUP_ID_TO_LABEL_MAP$1[n],options:[],groupId:n}));return t.forEach(n=>{lodashExports.forEach(r,([a,i],s)=>{let l=!1;return typeof i=="string"?(n[i]===!0||n[i]===a)&&(l=!0):typeof i=="function"?i(n)===!0&&(l=!0):typeof i=="boolean"&&i===!0&&(l=!0),l?(e[s].options.push(n),!1):!0})}),e=e.filter(n=>n.options.length>0),e},sortNearYou_MUTATE$1=t=>{const o=t.find(r=>r.groupId===GROUP_ID$1.NEAR_YOU);o&&o.options.sort((r,e)=>(r==null?void 0:r.displacement)-(e==null?void 0:e.displacement))},processDatalist$1=(t,{listIdentifier:o,direction:r,excludeList:e,userCoords:n,currentPageCountry:a}={})=>{let i=unref(t);if(!Array.isArray(i))return console.warn("processDatalist() 'dataList' is not an Array. No-op."),i;if(i.length===0)return i;i=i.map(appendAirportInfo$1);const s=n?{latitude:n.latitude,longitude:n.longitude}:null;switch(unref(o)){case"FARE_HISTOGRAM":{const l=new Map;i.forEach(d=>{var f;const c=d.airportCode;if(d.isRevenue&&!(Array.isArray(e)&&e.includes(c)))if(l.has(c)){const m=l.get(c);d.isAmalFlag&&(m.isAmalFlag=!0,m.groupTo=GROUP_ID$1.WITH_AMAL),d.isRedemption&&(m.isRedemption=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&(m.groupTo=GROUP_ID$1.WITH_MH)),d.isPopularDestination&&(m.isPopularDestination=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&r==="to"&&(m.groupTo=GROUP_ID$1.POPULAR_DEST)),d.isNewsletter&&(m.isNewsletter=!0,m._original=d._original),d.isMhHoliday&&(m.isMhHoliday=!0,m._original=d._original)}else{let m="";if(r==="to"&&d.isPopularDestination)m=GROUP_ID$1.POPULAR_DEST;else if(d.isAmalFlag)m=GROUP_ID$1.WITH_AMAL;else{if(!d.isRedemption)return;m=GROUP_ID$1.WITH_MH}let b=-1;r==="from"&&(s?(b=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),b>=0&&b<=75&&(m=GROUP_ID$1.NEAR_YOU)):((f=d.countryCode)==null?void 0:f.toUpperCase())===a.toUpperCase()&&(m=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:m,displacement:b})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID$1.POPULAR_DEST,"groupTo"]:null,[GROUP_ID$1.WITH_AMAL,"groupTo"],[GROUP_ID$1.WITH_MH,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!0]]),sortNearYou_MUTATE$1(i);break}case"FLIGHT_SEARCH_BST":{const l=new Map;i.forEach(d=>{var u;const c=d.airportCode;if(!(Array.isArray(e)&&e.includes(c))&&!l.has(c)){let f="",m=-1;r==="from"&&(s?(m=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),m>=0&&m<=75&&(f=GROUP_ID$1.NEAR_YOU)):((u=d.countryCode)==null?void 0:u.toUpperCase())===a.toUpperCase()&&(f=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:f,displacement:m})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,[GROUP_ID$1.WITH_MH,!0]]),sortNearYou_MUTATE$1(i);break}case"FLIGHT_SEARCH_CASH":{const l=new Map;i.forEach(d=>{var f;const c=d.airportCode;if(d.isRevenue&&!(Array.isArray(e)&&e.includes(c)))if(l.has(c)){const m=l.get(c);d.isAmalFlag&&(m.isAmalFlag=!0,m.groupTo=GROUP_ID$1.WITH_AMAL),!d.isAmalFlag&&d.isRedemption&&(m.isRedemption=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&(m.groupTo=GROUP_ID$1.WITH_MH)),d.isPopularDestination&&(m.isPopularDestination=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&r==="to"&&(m.groupTo=GROUP_ID$1.POPULAR_DEST)),d.isNewsletter&&(m.isNewsletter=!0,m._original=d._original),d.isMhHoliday&&(m.isMhHoliday=!0,m._original=d._original)}else{let m="";r==="to"&&d.isPopularDestination?m=GROUP_ID$1.POPULAR_DEST:d.isAmalFlag?m=GROUP_ID$1.WITH_AMAL:m=d.isRedemption?GROUP_ID$1.WITH_MH:GROUP_ID$1.CODESHARE;let b=-1;r==="from"&&(s?(b=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),b>=0&&b<=75&&(m=GROUP_ID$1.NEAR_YOU)):((f=d.countryCode)==null?void 0:f.toUpperCase())===a.toUpperCase()&&(m=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:m,displacement:b})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID$1.POPULAR_DEST,"groupTo"]:null,[GROUP_ID$1.WITH_AMAL,"groupTo"],[GROUP_ID$1.WITH_MH,"groupTo"],[GROUP_ID$1.CODESHARE,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!0]]),sortNearYou_MUTATE$1(i);break}case"FLIGHT_SEARCH_ENRICH":{const l=new Map;
1167i.forEach(d=>{var f;const c=d.airportCode;if(d.isRedemption&&!(Array.isArray(e)&&e.includes(c)))if(l.has(c)){const m=l.get(c);d.isAmalFlag&&(m.isAmalFlag=GROUP_ID$1.WITH_AMAL),!d.isAmalFlag&&d.isRedemption&&(m.isRedemption=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&(m.groupTo=GROUP_ID$1.WITH_MH)),d.isPopularDestination&&(m.isPopularDestination=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&r==="to"&&(m.groupTo=GROUP_ID$1.POPULAR_DEST)),d.isNewsletter&&(m.isNewsletter=!0,m._original=d._original),d.isMhHoliday&&(m.isMhHoliday=!0,m._original=d._original)}else{let m="";r==="to"&&d.isPopularDestination?m=GROUP_ID$1.POPULAR_DEST:d.isAmalFlag?m=GROUP_ID$1.WITH_AMAL:m=GROUP_ID$1.WITH_MH;let b=-1;r==="from"&&(s?(b=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),b>=0&&b<=75&&(m=GROUP_ID$1.NEAR_YOU)):((f=d.countryCode)==null?void 0:f.toUpperCase())===a.toUpperCase()&&(m=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:m,displacement:b})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID$1.POPULAR_DEST,"groupTo"]:null,[GROUP_ID$1.WITH_MH,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!0]]),sortNearYou_MUTATE$1(i);break}case"FLIGHT_SEARCH_OW_REDEMPTION":{const l=new Map;i.forEach(d=>{var m;const c=d.airportCode;let u="";r==="to"&&d.isPopularDestination?u=GROUP_ID$1.POPULAR_DEST:u=GROUP_ID$1.WITH_MH;let f=-1;r==="from"&&(s?(f=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),f>=0&&f<=75&&(u=GROUP_ID$1.NEAR_YOU)):((m=d.countryCode)==null?void 0:m.toUpperCase())===a.toUpperCase()&&(u=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:u,displacement:f})}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID$1.POPULAR_DEST,"groupTo"]:null,[GROUP_ID$1.WITH_MH,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!1]]),sortNearYou_MUTATE$1(i);break}case"FLIGHT_SEARCH_MULTI_CITY":{const l=new Map;i.forEach(d=>{var f;const c=d.airportCode;if(d.isMultiCity&&!(Array.isArray(e)&&e.includes(c)))if(l.has(c)){const m=l.get(c);d.isRedemption&&(m.isRedemption=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&(m.groupTo=GROUP_ID$1.WITH_MH)),d.isPopularDestination&&(m.isPopularDestination=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&r==="to"&&(m.groupTo=GROUP_ID$1.POPULAR_DEST))}else{let m="";r==="to"&&d.isPopularDestination?m=GROUP_ID$1.POPULAR_DEST:m=d.isRedemption?GROUP_ID$1.WITH_MH:GROUP_ID$1.CODESHARE;let b=-1;r==="from"&&(s?(b=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),b>=0&&b<=75&&(m=GROUP_ID$1.NEAR_YOU)):((f=d.countryCode)==null?void 0:f.toUpperCase())===a.toUpperCase()&&(m=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:m,displacement:b})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID$1.POPULAR_DEST,"groupTo"]:null,[GROUP_ID$1.WITH_AMAL,"groupTo"],[GROUP_ID$1.WITH_MH,"groupTo"],[GROUP_ID$1.CODESHARE,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!0]]),sortNearYou_MUTATE$1(i);break}case"FLIGHT_SEARCH_AND_HOTEL":{const l=new Map;i.forEach(d=>{var f;const c=d.airportCode;if(d.isMhHoliday&&!(Array.isArray(e)&&e.includes(c)))if(l.has(c)){const m=l.get(c);d.isRedemption&&(m.isRedemption=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&(m.groupTo=GROUP_ID$1.WITH_MH)),d.isPopularDestination&&(m.isPopularDestination=!0,m.groupTo!==GROUP_ID$1.NEAR_YOU&&r==="to"&&(m.groupTo=GROUP_ID$1.POPULAR_DEST))}else{let m="";r==="to"&&d.isPopularDestination?m=GROUP_ID$1.POPULAR_DEST:m=d.isRedemption?GROUP_ID$1.WITH_MH:GROUP_ID$1.CODESHARE;let b=-1;r==="from"&&(s?(b=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),b>=0&&b<=75&&(m=GROUP_ID$1.NEAR_YOU)):((f=d.countryCode)==null?void 0:f.toUpperCase())===a.toUpperCase()&&(m=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:m,displacement:b})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID$1.POPULAR_DEST,"groupTo"]:null,[GROUP_ID$1.WITH_MH,"groupTo"],[GROUP_ID$1.CODESHARE,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!0]]),sortNearYou_MUTATE$1(i);break}case"FLIGHT_STATUS":{const l=new Map;
1167i.forEach(d=>{const c=d.airportCode;d.isFlightStatus&&(Array.isArray(e)&&e.includes(c)||l.has(c)||l.set(c,d))}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.WITH_MH,!0]]);break}case"INFLIGHT_MENU":{const l=new Map;i.forEach(d=>{const c=d.airportCode;d.isRedemption&&(Array.isArray(e)&&e.includes(c)||l.has(c)||l.set(c,d))}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.WITH_MH,!0]]);break}case"FLIGHT_SCHEDULE":{const l=new Map;i.forEach(d=>{const c=d.airportCode;if(d.isRevenue&&!(Array.isArray(e)&&e.includes(c)))if(l.has(c)){const f=l.get(c);d.isRedemption&&(f.isRedemption=!0,f.groupTo=GROUP_ID$1.WITH_MH)}else{let f="";f=d.isRedemption?GROUP_ID$1.WITH_MH:GROUP_ID$1.CODESHARE,l.set(c,{...d,groupTo:f})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.WITH_MH,"groupTo"],[GROUP_ID$1.CODESHARE,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!0]]);break}case"NEWSLETTER_SIGNUP":{const l=new Map;i.forEach(d=>{const c=d.airportCode,u=d.city;d.isNewsletter&&(Array.isArray(e)&&e.includes(c)||l.has(u)||l.set(u,d))}),i=Array.from(l.values());break}case"TRIPS_AND_TOURS":{const l=new Map;i.forEach(d=>{var f;const c=d.airportCode;if(d.isMhHoliday&&!(Array.isArray(e)&&e.includes(c))&&!l.has(c)){let m=-1,b="";r==="from"&&(s?(m=getDisplacementInKilometer(s,{latitude:d.latitude,longitude:d.longitude}),m>=0&&m<=75&&(b=GROUP_ID$1.NEAR_YOU)):((f=d.countryCode)==null?void 0:f.toUpperCase())===a.toUpperCase()&&(b=GROUP_ID$1.NEAR_YOU)),l.set(c,{...d,groupTo:b,displacement:m})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[r==="from"?[GROUP_ID$1.NEAR_YOU,"groupTo"]:null,[GROUP_ID$1.EMPTY_LABEL,!0]]),sortNearYou_MUTATE$1(i);break}case"AIRPORT_TRANSFER":{const l=new Map;i.forEach(d=>{const c=d.airportCode;if(d.isMhHoliday&&!(Array.isArray(e)&&e.includes(c))&&!l.has(c)){const f=d.isPopularDestination?GROUP_ID$1.POPULAR_DEST:GROUP_ID$1.EMPTY_LABEL;l.set(c,{...d,groupTo:f})}}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.POPULAR_DEST,"groupTo"],[GROUP_ID$1.EMPTY_LABEL,!0]]);break}case"FIREFLY_AIR_CARGO_SEARCH":{const l=new Map;i.forEach(d=>{const c=d.airportCode,u=d.isAircargo;d.isRevenue&&(Array.isArray(e)&&e.includes(c)||l.has(c)||u&&l.set(c,{...d,groupTo:""}))}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.EMPTY_LABEL,!0]]);break}case"FIREFLY_CHECK_IN":{const l=new Map;i.forEach(d=>{const c=d.airportCode,u=d.isCheckin;d.isRevenue&&(Array.isArray(e)&&e.includes(c)||l.has(c)||u&&l.set(c,{...d,groupTo:""}))}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.EMPTY_LABEL,!0]]);break}case"ENRICH_FLYPASS":{const l=new Map;i.forEach(d=>{const c=d.airportCode;Array.isArray(e)&&e.includes(c)||l.has(c)||l.set(c,{...d,groupTo:""})}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.EMPTY_LABEL,!0]]);break}case"ENRICH_FLYPASS_ZONE":{const l=new Map;i.forEach(d=>{const c=d.airportCode;Array.isArray(e)&&e.includes(c)||l.has(c)||l.set(c,{...d,groupTo:""})}),i=Array.from(l.values()),i=processDataListIntoGroups$1(i,[[GROUP_ID$1.EMPTY_LABEL,!0]]);break}}return i},useONDList=({fromValueRef:t,toValueRef:o,listIdentifier:r,emitOptionChange:e,translationLocale:n,owOndCustomUrl:a,mHcustomOndUrl:i,zoneFilter:s}={})=>{getCurrentInstance(),hasInitiated$1||(hasInitiated$1=!0,init$1()),!hasInitiated_LocaleTranslation&&n&&(hasInitiated_LocaleTranslation=!0,currentSiteLocale$1.value=n,init$1()),isOWAirportListLoading&&a&&(oWOndUrl.value=a,loadOWAndMHLists()),isMHAirportListLoading&&i&&(mhOnlyOndUrl.value=i,loadOWAndMHLists());const l=computed(()=>{var V;return(V=unref(r))==null?void 0:V.endsWith("_BST")}),d=ref$1(!1),c=ref$1(!1),u=computed(()=>(isBaseListLoading$1.value,!!(d.value||isBaseListLoading$1.value))),f=computed(()=>(isBaseListLoading$1.value,!!(c.value||isBaseListLoading$1.value))),m=ref$1(null),b=ref$1(null),y=ref$1(null),_=computed(()=>{var R,I,j,H;const{pageProperties:V}=useGlobalAEMState$1(),A=V.value.rootCountry;let M=[];w.value,baseList$1.value,baseList_BST.value;let O=[];return b.value?O=b.value:unref(l)?(R=baseList_BST.value)!=null&&R.originList&&(O=baseList_BST.value.originList):(unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION"&&((I=oWAirportList.value)!=null&&I.originList)&&(O=oWAirportList.value.originList),unref(r)==="ENRICH_FLYPASS_ZONE"&&((j=baseList$1.value)!=null&&j.originList)?O=baseList$1.value.originList.filter(U=>{var B;if(unref(o)){const L=unref(o).airportCode,z=(B=baseList$1.value.zoneList)==null?void 0:B.find(W=>W.originAriairportCode===U.airportCode&&W.destinationAirportCode===L);return z?z.zone.includes(s.value):!1}return U.zone&&U.zone.includes(s.value)}):unref(r)!=="FLIGHT_SEARCH_OW_REDEMPTION"&&((H=baseList$1.value)!=null&&H.originList)&&(O=baseList$1.value.originList)),M=processDatalist$1(O,{isBST:unref(l),listIdentifier:unref(r),direction:"from",excludeList:unref(o)?[unref(o)]:null,userCoords:N.value,currentPageCountry:A}),M}),S=computed(()=>{var R,I,j,H;const{pageProperties:V}=useGlobalAEMState$1(),A=V.value.rootCountry;baseList$1.value,baseList_BST.value;let M=[],O=[];return y.value?O=y.value:unref(l)?(R=baseList_BST.value)!=null&&R.destinationList&&(O=baseList_BST.value.destinationList):(unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION"&&((I=oWAirportList.value)!=null&&I.destinationList)&&(O=oWAirportList.value.destinationList),unref(r)==="ENRICH_FLYPASS_ZONE"&&((j=baseList$1.value)!=null&&j.destinationList)?O=baseList$1.value.destinationList.filter(U=>{var B;if(unref(t)){const L=unref(t).airportCode,z=(B=baseList$1.value.zoneList)==null?void 0:B.find(W=>W.originAriairportCode===L&&W.destinationAirportCode===U.airportCode);return z?z.zone.includes(s.value):!1}return U.zone&&U.zone.includes(s.value)}):unref(r)!=="FLIGHT_SEARCH_OW_REDEMPTION"&&((H=baseList$1.value)!=null&&H.destinationList)&&(O=baseList$1.value.destinationList)),M=processDatalist$1(O,{isBST:unref(l),listIdentifier:unref(r),direction:"to",excludeList:unref(t)?[unref(t)]:null,userCoords:!1,currentPageCountry:A}),M}),C=computed(()=>_.value.reduce((V,A)=>(A.options?V.push(...A.options):V.push(A),V),[])),T=computed(()=>S.value.reduce((V,A)=>(A.options?V.push(...A.options):V.push(A),V),[])),x=async()=>{var A,M,O;if(await waitFor(()=>hasInitCompleted$1===!0).start(),!((A=oWAirportList==null?void 0:oWAirportList.value)!=null&&A.originList)&&a){const R=await _fetchService_OW.fetchOWAirportList();oWAirportList.value=R}if(!t.value&&!o.value){m.value=null,b.value=null,y.value=null;return}if(m.value==="to"){if(typeof t.value=="string"){const R=C.value.find(I=>I.code===t.value);R?t.value=R:console.warn(`useONDList.js: Invalid from(origin) string value of "${t.value}"`)}return}if(y.value||(m.value="from"),!t.value){m.value==="from"&&(o.value=null,m.value=null,y.value=null);return}if(y.value=null,c.value=!0,unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION")y.value=E(((M=t.value)==null?void 0:M.airportCode)??t.value,oWAirportList.value.destinationList),c.value=!1;else{const R=await getFetchService({isBST:l.value});try{const I=await R.fetchToList(((O=t.value)==null?void 0:O.code)??t.value);unref(r)==="ENRICH_FLYPASS_ZONE"&&s.value?y.value=I.filter(j=>{var U;const H=(U=baseList$1.value.zoneList)==null?void 0:U.find(B=>B.originAriairportCode===t.value.airportCode&&B.destinationAirportCode===j.airportCode);return H?H.zone.includes(s.value):!1}):y.value=I}catch(I){console.warn("fetchToList API error",I)}finally{c.value=!1}}if(!(typeof t.value=="string"&&t.value.length!==3)&&typeof t.value=="string"){const R=C.value.find(I=>I.code===t.value);R?t.value=R:console.warn(`useONDList.js: Invalid from(origin) string value of "${t.value}"`)}},k=async()=>{var A,M;if(await waitFor(()=>hasInitCompleted$1===!0).start(),!((A=oWAirportList==null?void 0:oWAirportList.value)!=null&&A.destinationList)&&a){const O=await _fetchService_OW.fetchOWAirportList();oWAirportList.value=O}if(!t.value&&!o.value){b.value=null,y.value=null;return}if(m.value==="from"){if(typeof o.value=="string"){const O=T.value.find(R=>R.code===o.value);O?o.value=O:console.warn(`useONDList.js: Invalid to(destination) string value of "${o.value}"`)}return}if(b.value||(m.value="to"),!o.value){m.value==="to"&&(t.value=null,m.value=null,b.value=null);return}if(b.value=null,d.value=!0,unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION")b.value=E(o.value.airportCode??o.value,oWAirportList.value.originList),d.value=!1;else{const O=await getFetchService({isBST:l.value});try{const R=await O.fetchFromList(o.value.airportCode,((M=o.value)==null?void 0:M.code)??o.value);b.value=R}catch(R){console.warn("fetchFromList API error",R)}finally{d.value=!1}}if(typeof o.value=="string"){const O=T.value.find(R=>R.code===o.value);console.log("toValueRef foundItem = ",O),O?o.value=O:console.warn(`useONDList.js: Invalid to(destination) string value of "${o.value}"`)}},E=(V,A)=>{const M=[];return!V||!Array.isArray(A)?M:A.filter(O=>O.airportCode!==V)},w=ref$1(null),D=V=>{w.value=V},N=computed(()=>!w.value||unref(w.value.error)?null:w.value.coords),F=async()=>{var V,A,M,O,R,I,j,H;if(d.value||c.value||!t.value&&!o.value)return!1;if(o.value)if(t.value){[t.value,o.value]=[o.value,t.value],b.value=null,y.value=null;const U=C.value.find(B=>B.value===t.value.value);if(t.value=U||null,t.value===null)if(m.value="to",d.value=!0,unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION")b.value=E(o.value.airportCode??o.value,oWAirportList.value.originList),d.value=!1;else{const B=await getFetchService({isBST:l.value});try{const L=await B.fetchFromList(((I=o.value)==null?void 0:I.code)??o.value);unref(r)==="ENRICH_FLYPASS_ZONE"&&s.value?b.value=L.filter(z=>{const W=baseList$1.value.zoneList.find(J=>J.destinationAirportCode===o.value.airportCode&&J.originAriairportCode===z.airportCode);return W&&W.zone.includes(s.value)}):b.value=L}catch(L){console.warn("fetchToList API error",L)}finally{d.value=!1}}else if(m.value="from",c.value=!0,unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION")y.value=E(((j=t.value)==null?void 0:j.airportCode)??t.value,oWAirportList.value.destinationList),c.value=!1;else{const B=await getFetchService({isBST:l.value});try{const L=await B.fetchToList(((H=t.value)==null?void 0:H.code)??t.value);unref(r)==="ENRICH_FLYPASS_ZONE"&&s.value?y.value=L.filter(W=>{const J=baseList$1.value.zoneList.find(te=>te.originAriairportCode===t.value.airportCode&&te.destinationAirportCode===W.airportCode);return J&&J.zone.includes(s.value)}):y.value=L;const z=T.value.find(W=>W.value===o.value.value);o.value=z||null}catch(L){console.warn("fetchToList API error",L)}finally{c.value=!1}}}else{m.value="from",[t.value,o.value]=[o.value,t.value],b.value=null,y.value=null;const U=C.value.find(B=>B.value===t.value.value);if(t.value=U||null,t.value===null)return;if(c.value=!0,unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION")y.value=E(((M=t.value)==null?void 0:M.airportCode)??t.value,oWAirportList.value.destinationList),c.value=!1;else{const B=await getFetchService({isBST:l.value});try{const L=await B.fetchToList(((O=t.value)==null?void 0:O.code)??t.value);if(unref(r)==="ENRICH_FLYPASS_ZONE"&&s.value&&((R=baseList$1.value)!=null&&R.zoneList)?y.value=L.filter(z=>{const W=baseList$1.value.zoneList.find(J=>J.originAriairportCode===t.value.airportCode&&J.destinationAirportCode===z.airportCode);return W&&W.zone.includes(s.value)}):y.value=L,o.value){const z=T.value.find(W=>W.value===o.value.value);o.value=z||null}}catch(L){console.warn("fetchToList API error",L)}finally{c.value=!1}}}else{m.value="to",[t.value,o.value]=[o.value,t.value],y.value=null,b.value=null;const U=T.value.find(B=>B.value===o.value.value);if(o.value=U||null,o.value===null)return;if(d.value=!0,unref(r)==="FLIGHT_SEARCH_OW_REDEMPTION")b.value=E(o.value.airportCode??o.value,oWAirportList.value.originList),d.value=!1;else{const B=await getFetchService({isBST:l.value});try{const L=await B.fetchFromList(((V=o.value)==null?void 0:V.code)??o.value);unref(r)==="ENRICH_FLYPASS_ZONE"&&s.value&&((A=baseList$1.value)!=null&&A.zoneList)?b.value=L.filter(z=>{const W=baseList$1.value.zoneList.find(J=>J.originAriairportCode===z.airportCode&&J.destinationAirportCode===o.value.airportCode);return W&&W.zone.includes(s.value)}):b.value=L}catch(L){console.warn("fetchFromList API error",L)}finally{d.value=!1}}}};return{optionsFrom:_,optionsTo:S,optionsFromFlattened:C,optionsToFlattened:T,isLoadingFrom:u,isLoadingTo:f,zoneList:readonly(zoneList),setUserGeolocation:D,swapLocations:F,updateFromValue:x,updateToValue:k}},getMalaysiaAirportForBST=async({from:t,to:o}={})=>
1167{if(!t||!o)throw new Error("Missing from or to");hasInitiated$1||(hasInitiated$1=!0,init$1());const r=await getFetchService({isBST:!0}),e={fromTo:null,toFrom:null};try{const a=(await r.fetchToList(t)).find(i=>i.airportCode===o);if(!a)throw new Error('Could not find matching "to" airport.');e.fromTo=a.domesticDestinations.map(appendAirportInfo$1)}catch(n){throw console.warn("getMalaysiaAirportForBST fetchToList API error",n),new Error(n)}try{const a=(await r.fetchFromList(o)).find(i=>i.airportCode===t);if(!a)throw new Error('Could not find matching "from" airport.');e.toFrom=a.domesticDestinations.map(appendAirportInfo$1)}catch(n){throw console.warn("getMalaysiaAirportForBST fetchFromList API error",n),new Error(n)}return e},getDropdownONDListUrl=t=>{switch(t){case"amal":return unref(useGlobalAEMState$1().pageProperties).amalDropDownONDListUrl;case"firefly":return unref(useGlobalAEMState$1().pageProperties).fireflyDropDownONDListUrl;case"enrich-portal":return window.isEnrichFlypass==="Yes"?unref(useGlobalAEMState$1().pageProperties).flypassOndURL:unref(useGlobalAEMState$1().pageProperties).newDropDownONDListUrl;default:return unref(useGlobalAEMState$1().pageProperties).newDropDownONDListUrl}},__default__$1A={name:"ONDPicker"},_sfc_main$1B=Object.assign(__default__$1A,{props:{nameFrom:{type:String,required:!0},nameTo:{type:String,required:!0},modelValueFrom:{type:[String,Object],default:null},modelValueTo:{type:[String,Object],default:null},labelTextFrom:{type:String,default:i18nGlobal.t("From")},labelTextTo:{type:String,default:i18nGlobal.t("To")},placeHolderFrom:{type:String,default:"Departure"},placeHolderTo:{type:String,default:"Return"},requiredFrom:{type:Boolean,default:!1},requiredTo:{type:Boolean,default:!1},requiredErrorMsgFrom:{type:String,default:i18nGlobal.t("This field is required")},requiredErrorMsgTo:{type:String,default:i18nGlobal.t("This field is required")},useOptionsFromProp:{type:Boolean,default:!1},optionsFrom:{type:Object,default:null},optionsTo:{type:Object,default:null},isLoadingFrom:{type:Boolean,default:!1},isLoadingTo:{type:Boolean,default:!1},noResultsText:{type:String,default:null},requestGeolocation:{type:Boolean,default:!0},ondListIdentifier:{type:String,default:""},groupLabelsOverwrite:{type:Object,default:null},specificOriginList:{type:String,default:""},specificDestinationList:{type:String,default:""},hideSpecificOriginList:{type:String,default:""},hideSpecificDestinationList:{type:String,default:""},restrictedDestinationList:{type:String,default:""},enableONDLocaleTranslation:{type:Boolean,default:!1},additionalONDFilter:{type:String,default:""},oWcustomOndUrl:{type:String,default:""},mHcustomOndUrl:{type:String,default:""},isIgnoreScroll:{type:Boolean,default:!1},isEnrichFlypass:{type:Boolean,default:!1},isEnrichFlypassFlightSearch:{type:Boolean,default:!1},selectedZone:{type:String,default:null},enableGlassDesign:{type:Boolean,default:!1}},emits:["update:modelValueFrom","update:modelValueTo","on:trigger"],setup(t,{expose:o,emit:r}){var me;const e=t,n=r,a=useInternalValue("modelValueFrom"),i=useInternalValue("modelValueTo"),s=window.siteName,l=e.isEnrichFlypass,d=e.isEnrichFlypassFlightSearch;l&&(window.isEnrichFlypass="Yes"),d&&(window.isEnrichFlypassFlightSearch="Yes");const{pageModel:c}=useGlobalAEMState$1();let u=(me=c.value)==null?void 0:me.language.replace("-","_").toUpperCase();u=!e.enableONDLocaleTranslation||u==="EN"?null:u;const f=e.specificOriginList?e.specificOriginList.replace(/\s/g,"").split(","):[],m=e.specificDestinationList?e.specificDestinationList.replace(/\s/g,"").split(","):[],b=e.hideSpecificOriginList?e.hideSpecificOriginList.replace(/\s/g,"").split(","):[],y=e.hideSpecificDestinationList?e.hideSpecificDestinationList.replace(/\s/g,"").split(","):[],_=e.restrictedDestinationList?e.restrictedDestinationList.replace(/\s/g,"").split(","):[],S=()=>{var K,q,Z,de,fe;O(),!(!a.value&&!i.value)&&(a.value&&(f.length&&!f.includes((K=a.value)==null?void 0:K.value)||b.length&&b.includes((q=a.value)==null?void 0:q.value))&&(a.value=null),i.value&&(m.length&&!m.includes((Z=i.value)==null?void 0:Z.value)||y.length&&y.includes((de=i.value)==null?void 0:de.value)||_.length&&!_.includes((fe=i.value)==null?void 0:fe.value))&&(i.value=null))},C=ref$1(!1),T=ref$1(null),x=ref$1(null),k=K=>{var q;K&&!isMobileViewport.value&&((q=x.value)==null||q.focus())},E=useSlots(),w=computed(()=>Object.fromEntries(Object.keys(E).filter(K=>!!K.startsWith("from-picker-")).map(K=>[K.replace("from-picker-",""),E[K]]))),D=computed(()=>Object.fromEntries(Object.keys(E).filter(K=>!!K.startsWith("to-picker-")).map(K=>[K.replace("to-picker-",""),E[K]]))),{optionsFrom:N,optionsTo:F,isLoadingFrom:V,isLoadingTo:A,setUserGeolocation:M,swapLocations:O,updateFromValue:R,updateToValue:I}=e.useOptionsFromProp?{}:useONDList({fromValueRef:a,toValueRef:i,listIdentifier:toRef(e,"ondListIdentifier"),translationLocale:u,owOndCustomUrl:e.oWcustomOndUrl,mHcustomOndUrl:e.mHcustomOndUrl,zoneFilter:toRef(e,"selectedZone")}),j=computed(()=>N.value.map(q=>({groupId:q.groupId,label:e.groupLabelsOverwrite[q.groupId]||q.label,options:q.options}))),H=computed(()=>F.value.map(q=>({groupId:q.groupId,label:e.groupLabelsOverwrite[q.groupId]||q.label,options:q.options}))),U=computed(()=>(e.isLoadingFrom,V==null||V.value,e.useOptionsFromProp?e.isLoadingFrom:V.value)),B=computed(()=>(e.isLoadingTo,A==null||A.value,e.useOptionsFromProp?e.isLoadingTo:A.value)),L=ref$1(null),z=ref$1(null),W=ref$1(null),J=ref$1(null);if(e.specificOriginList){const{optionsTo:K,updateFromValue:q}=useONDList({fromValueRef:ref$1(e.specificOriginList.replace(/\s/g,"")),toValueRef:i,listIdentifier:toRef(e,"ondListIdentifier")});q().then(()=>{L.value=K.value,e.specificDestinationList&&(L.value=L.value.map(Z=>({...Z,options:Z.options.filter(de=>m.some(fe=>de.airportCode===fe))})))})}if(e.specificDestinationList&&!e.specificOriginList){const{optionsFrom:K,updateToValue:q}=useONDList({toValueRef:ref$1(e.specificDestinationList.replace(/\s/g,"")),fromValueRef:a,listIdentifier:toRef(e,"ondListIdentifier")});q().then(()=>{z.value=K.value})}if(b.length){const{optionsFrom:K,updateFromValue:q}=useONDList({fromValueRef:a,toValueRef:i,listIdentifier:toRef(e,"ondListIdentifier")});q().then(()=>{W.value=K.value.map(Z=>({...Z,options:Z.options.filter(de=>!b.some(fe=>de.airportCode===fe))}))})}if(y.length){const{optionsTo:K,updateToValue:q}=useONDList({fromValueRef:a,toValueRef:i,listIdentifier:toRef(e,"ondListIdentifier")});q().then(()=>{J.value=K.value.map(Z=>({...Z,options:Z.options.filter(de=>!y.some(fe=>de.airportCode===fe))}))})}const te=ref$1(!1),re=computed(()=>
1167{if(e.useOptionsFromProp,e.optionsFrom,N==null||N.value,!te.value&&s==="MH"||U.value)return null;if(e.useOptionsFromProp)return e.optionsFrom;let K=N.value;return e.groupLabelsOverwrite!==null&&(K=j.value),e.specificOriginList&&(K=K.map(q=>({...q,options:q.options.filter(Z=>f.some(de=>Z.airportCode===de))}))),e.specificDestinationList&&!e.specificOriginList&&z.value&&!i.value&&(K=z.value),b.length&&(K=W.value),C.value&&(K=K.map(q=>({...q,options:q.options.filter(Z=>Z.isRedemption)}))),K=X(e.additionalONDFilter,K),K=K.filter(q=>q.options.length),K}),oe=computed(()=>{if(e.useOptionsFromProp,e.optionsTo,F==null||F.value,!te.value&&s==="MH"||B.value)return null;if(e.useOptionsFromProp)return e.optionsTo;let K=F.value;if(e.groupLabelsOverwrite!==null&&(K=H.value),e.specificOriginList){if(e.restrictedDestinationList){const q=e.restrictedDestinationList.replace(/\s/g,"").split(",");K=K.map(Z=>({...Z,options:Z.options.filter(de=>q.some(fe=>de.airportCode===fe))}))}e.specificDestinationList&&(K=K.map(q=>({...q,options:q.options.filter(Z=>m.some(de=>Z.airportCode===de))}))),L.value&&!a.value&&(K=L.value)}return e.specificDestinationList&&!e.specificOriginList&&(K=K.map(q=>({...q,options:q.options.filter(Z=>m.some(de=>Z.airportCode===de))}))),y.length&&(K=J.value),C.value&&(K=K.map(q=>({...q,options:q.options.filter(Z=>Z.isRedemption)}))),K=X(e.additionalONDFilter,K),K=K.filter(q=>q.options.length),K});function X(K,q){if(!K||K&&K==="none")return q;let Z=[...q];switch(K){case"hidePartnerCodeshare":Z=Z.filter(de=>de.groupId!=="CODESHARE");break;case"onlyShowMHH":Z=Z.map(de=>({...de,options:de.options.filter(fe=>fe.isMhHoliday)}));break;case"onlyShowNewsletter":Z=Z.map(de=>({...de,options:de.options.filter(fe=>fe.isNewsletter)}));break}return Z}const se=()=>{te.value=!0},le=window.AEM_MHH_THEME_SWITCH;let he=null;const ge=ref$1(!1),Q=()=>{var q;if(ge.value||(ge.value=!0,n("on:trigger")),se(),he!==null){console.log("Disabling geolocation. Reason: geolocation-data has been shared");return}if(e.requestGeolocation&&he===null){he=useGeolocation(),M(he),console.log("Enabling geolocation");return}console.log("Disabling geolocation. Reason: disabled in author configuration");const K=(q=document.querySelector(".BookingWidget .SwitchTabContent"))==null?void 0:q.classList.contains("sticked");!isMobileViewport.value&&!K&&!e.isIgnoreScroll&&MHScrollToElement(document.querySelector(".ONDPicker"),{additionalTopOffset:160})};(()=>{if("debug"in window.router.currentRoute.value.query&&!document.querySelector("#DEBUG_STYLES")){const q=window.document.createElement("style");q.id="DEBUG_STYLES",q.innerHTML=`
1168			.hidden-debug-info { display: block !important; }
1169			.ONDPicker .AirportPicker .multiselect-main { --ms-max-height: 500px !important; }
1170			.ONDPicker .AirportPicker .multiselect-options { max-height: 500px !important; }
1171		`,window.document.body.appendChild(q)}})();const Y=()=>{T.value.focus()},ne=K=>{var q,Z;if((q=K==null?void 0:K.value)!=null&&q.hiddenTextField){const de=(Z=K==null?void 0:K.value)==null?void 0:Z.hiddenTextField;de&&(de.hasValidationError=!1,de.meta.touched=!1,de.errors=[])}},Ce=()=>{ne(T),ne(x)};o({updateFromValue:R,updateToValue:I,computedOptionsFrom:re,computedOptionsTo:oe,toggleGenerateONDList:se,focusFromONDPicker:Y,resetAirportPicker:Ce});const ae=K=>{k(K),R()};onMounted(()=>{const K=window.location.pathname;C.value=K.endsWith("jdt-portal.html")});const Be={props:e,emit:n,internalValueFrom:a,internalValueTo:i,siteName:s,isEnrichFlypass:l,isEnrichFlypassFlightSearch:d,pageModel:c,get siteLocale(){return u},set siteLocale(K){u=K},specificOriginArray:f,specificDestinationArray:m,hideSpecificOriginArray:b,hideSpecificDestinationArray:y,restrictedDestinationArray:_,handleSwapValues:S,isJDTPortal:C,airportPickerFrom:T,airportPickerTo:x,handleFromUpdateValue:k,slots:E,fromPickerSlots:w,toPickerSlots:D,optionsFrom:N,optionsTo:F,isLoadingFrom:V,isLoadingTo:A,setUserGeolocation:M,swapLocations:O,updateFromValue:R,updateToValue:I,computedGroupLabelsFromOptions:j,computedGroupLabelsToOptions:H,computedIsLoadingFrom:U,computedIsLoadingTo:B,specificOriginOptionsTo:L,specificDestinationOptionsFrom:z,hideSpecificOriginOptionsFrom:W,hideSpecificDestinationOptionsTo:J,generateOptionListing:te,computedOptionsFrom:re,computedOptionsTo:oe,filterAdditionalONDFilter:X,toggleGenerateONDList:se,mhhNewTheme:le,get userGeolocation(){return he},set userGeolocation(K){he=K},AAHasSentStart:ge,handleOnOpen:Q,focusFromONDPicker:Y,resetValidation:ne,resetAirportPicker:Ce,updateModelValueHandler:ae,AirportPicker,get useInternalValue(){return useInternalValue},get i18nGlobal(){return i18nGlobal},get isMobileViewport(){return isMobileViewport},get useONDList(){return useONDList},AppSpinner,get useGeolocation(){return useGeolocation},get useGlobalAEMState(){return useGlobalAEMState$1},get MHScrollToElement(){return MHScrollToElement}};return Object.defineProperty(Be,"__isScriptSetup",{enumerable:!1,value:!0}),Be}}),_hoisted_1$1T=["data-use-theme"],_hoisted_2$1t={class:"hidden-debug-info"},_hoisted_3$13={class:"picker-wrapper picker-wrapper-from"},_hoisted_4$X={class:"multiselect-options cursor-default"},_hoisted_5$T={class:"py-4"},_hoisted_6$P={class:"sr-only",role:"alert"},_hoisted_7$O=["aria-label"],_hoisted_8$L={class:"picker-wrapper picker-wrapper-to"},_hoisted_9$H={class:"multiselect-options cursor-default"},_hoisted_10$z={class:"py-4"},_hoisted_11$y={class:"sr-only",role:"alert"},_hoisted_12$w={class:"flex-1 mt-1 w-[min-content] empty:mt-0 md:w-full"},_hoisted_13$u={key:0},_hoisted_14$t={class:"flex-1 mt-1 w-[min-content] empty:mt-0 md:w-full"},_hoisted_15$r={key:0};function _sfc_render$1B(t,o,r,e,n,a){var c,u,f,m,b,y,_,S,C,T,x,k,E,w,D;const i=__unplugin_components_0$l,s=__unplugin_components_1$4,l=resolveDirective("button-press"),d=resolveDirective("html-sanitize");return openBlock(),createElementBlock("div",{class:"ONDPicker","data-use-theme":e.siteName},[createBaseVNode("p",_hoisted_2$1t,"🐞 "+toDisplayString(e.props.ondListIdentifier),1),createBaseVNode("div",{class:normalizeClass(["inner-wrapper",{"glass-design relative":e.props.enableGlassDesign,"mhh-new-theme":e.mhhNewTheme}])},[createBaseVNode("div",_hoisted_3$13,[createVNode(e.AirportPicker,{ref:"airportPickerFrom",modelValue:e.internalValueFrom,"onUpdate:modelValue":[o[0]||(o[0]=N=>e.internalValueFrom=N),e.updateModelValueHandler],class:"AirportPicker-from",name:e.props.nameFrom,options:e.computedOptionsFrom,labelText:e.props.labelTextFrom,placeholderText:e.props.placeHolderFrom,canClear:!0,showOptionLocationIcon:!0,required:e.props.requiredFrom,requiredErrorMsg:e.props.requiredErrorMsgFrom,noResultsText:e.props.noResultsText,attrs:{readOnly:e.isLoadingFrom},"aria-label":t.$t("Airport of departure"),enableGlassDesign:e.props.enableGlassDesign,variant:"booking-widget",onOpen:e.handleOnOpen},createSlots({_:2},[renderList(e.fromPickerSlots,(N,F)=>({name:F,fn:withCtx(V=>[renderSlot(t.$slots,`from-picker-${F}`,normalizeProps(guardReactiveProps(V)),void 0,!0)])})),e.computedIsLoadingFrom?{name:"nooptions",fn:withCtx(()=>[createBaseVNode("div",_hoisted_4$X,[createBaseVNode("div",_hoisted_5$T,[createVNode(e.AppSpinner,{class:"mx-auto"})])])]),key:"0"}:void 0]),1032,["modelValue","name","options","labelText","placeholderText","required","requiredErrorMsg","noResultsText","attrs","aria-label","enableGlassDesign"])]),createBaseVNode("div",_hoisted_6$P,toDisplayString(t.$t("Selected departure airport is {airport}",{airport:((c=e.internalValueFrom)==null?void 0:c.displayValue)??((u=e.internalValueFrom)==null?void 0:u.value)??e.internalValueFrom})),1),withDirectives((openBlock(),createElementBlock("button",{class:normalizeClass(["btn-switch btn-generic mx-2 flex",{"glass-design mx-3":e.props.enableGlassDesign,"btn-move":e.props.enableGlassDesign&&e.internalValueFrom&&e.internalValueTo||e.isMobileViewport}]),type:"button","aria-label":t.$t("Swap locations"),onClick:e.handleSwapValues},[e.props.ondListIdentifier==="FLIGHT_SEARCH_MULTI_CITY"&&!e.props.enableGlassDesign?(openBlock(),createBlock(i,{key:0,class:"fill-white m-auto"})):(openBlock(),createBlock(s,{key:1,class:normalizeClass(["fill-white m-auto",{"fill-primary-blue-base":e.props.enableGlassDesign}])},null,8,["class"]))],10,_hoisted_7$O)),[[l]]),createBaseVNode("div",_hoisted_8$L,[createVNode(e.AirportPicker,{ref:"airportPickerTo",modelValue:e.internalValueTo,"onUpdate:modelValue":[o[1]||(o[1]=N=>e.internalValueTo=N),o[2]||(o[2]=N=>{e.updateToValue()})],name:e.props.nameTo,options:e.computedOptionsTo,labelText:e.props.labelTextTo,placeholderText:(f=e.props)==null?void 0:f.placeHolderTo,canClear:!0,showOptionLocationIcon:!0,required:e.props.requiredTo,requiredErrorMsg:e.props.requiredErrorMsgTo,noResultsText:e.props.noResultsText,class:normalizeClass({"rounded-xl":e.props.enableGlassDesign}),attrs:{readOnly:e.isLoadingTo},variant:"booking-widget","aria-label":t.$t("Airport of arrival"),enableGlassDesign:e.props.enableGlassDesign,onOpen:e.handleOnOpen},createSlots({_:2},[renderList(e.toPickerSlots,(N,F)=>({name:F,fn:withCtx(V=>[renderSlot(t.$slots,`to-picker-${F}`,normalizeProps(guardReactiveProps(V)),void 0,!0)])})),e.computedIsLoadingTo?{name:"nooptions",fn:withCtx(()=>[createBaseVNode("div",_hoisted_9$H,[createBaseVNode("div",_hoisted_10$z,[createVNode(e.AppSpinner,{class:"mx-auto"})])])]),key:"0"}:void 0]),1032,["modelValue","name","options","labelText","placeholderText","required","requiredErrorMsg","noResultsText","class","attrs","aria-label","enableGlassDesign"])]),createBaseVNode("div",_hoisted_11$y,toDisplayString(t.$t("Selected arrival airport is {airport}",{airport:((m=e.internalValueTo)==null?void 0:m.displayValue)??((b=e.internalValueTo)==null?void 0:b.value)??e.internalValueTo})),1)],2),createBaseVNode("div",{class:normalizeClass(["error-msg-container leading-tight flex text-semantic-red-base text-sm md:flex-col",{"ml-6":e.props.enableGlassDesign}])},[createBaseVNode("div",_hoisted_12$w,[(_=(y=e.airportPickerFrom)==null?void 0:y.hiddenTextField)!=null&&_.hasValidationError&&((C=(S=e.airportPickerFrom)==null?void 0:S.hiddenTextField)!=null&&C.meta.touched)?withDirectives((openBlock(),createElementBlock("span",_hoisted_13$u,null,512)),[[d,(T=e.airportPickerFrom)==null?void 0:T.hiddenTextField.errors[0]]]):createCommentVNode("",!0)]),o[3]||(o[3]=createBaseVNode("div",{class:"w-$gapWidth flex-none md:hidden"},null,-1)),createBaseVNode("div",_hoisted_14$t,[(k=(x=e.airportPickerTo)==null?void 0:x.hiddenTextField)!=null&&k.hasValidationError&&((w=(E=e.airportPickerTo)==null?void 0:E.hiddenTextField)!=null&&w.meta.touched)?withDirectives((openBlock(),createElementBlock("span",_hoisted_15$r,null,512)),[[d,(D=e.airportPickerTo)==null?void 0:D.hiddenTextField.errors[0]]]):createCommentVNode("",!0)])],2)],8,_hoisted_1$1T)}const ONDPicker$1=_export_sfc(_sfc_main$1B,[["render",_sfc_render$1B],["__scopeId","data-v-1377217d"],["__file","ONDPicker.vue"]]);var isBetween$1={exports:{}};(function(t,o){(function(r,e){t.exports=e()})(commonjsGlobal,function(){return function(r,e,n){e.prototype.isBetween=function(a,i,s,l){var d=n(a),c=n(i),u=(l=l||"()")[0]==="(",f=l[1]===")";return(u?this.isAfter(d,s):!this.isBefore(d,s))&&(f?this.isBefore(c,s):!this.isAfter(c,s))||(u?this.isBefore(d,s):!this.isAfter(d,s))&&(f?this.isAfter(c,s):!this.isBefore(c,s))}}})})(isBetween$1);var isBetweenExports=isBetween$1.exports;const isBetween=getDefaultExportFromCjs(isBetweenExports),_hoisted_1$1S={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$i(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1S,o[0]||(o[0]=[createBaseVNode("path",{d:"M496 72v128C496 213.3 485.3 224 472 224h-128c-13.19 0-24-10.66-24-23.98c0-6.247 2.432-12.39 7.033-16.99L379.2 130.9C346.9 99.29 303.1 80 256 80C158.1 80 80 158.1 80 256s78.97 176 176 176c81.21 0 107.1-46.34 127.
11711-46.34c10.18 0 24.02 8.003 24.02 24.01c0 25.11-75.1 70.27-152.1 70.27c-123.5 0-223.9-100.4-223.9-223.9s100.4-223.1 223.9-223.1c60.03 0 116 24.58 157.1 64.95l41.1-41.1c4.601-4.601 10.74-7.019 16.99-7.019C485.4 48.01 496 58.83 496 72z"},null,-1)]))}const __unplugin_components_2$2=markRaw({name:"far-rotate-right",render:render$i});var isSameOrAfter$1={exports:{}};(function(t,o){(function(r,e){t.exports=e()})(commonjsGlobal,function(){return function(r,e){e.prototype.isSameOrAfter=function(n,a){return this.isSame(n,a)||this.isAfter(n,a)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function(t,o){(function(r,e){t.exports=e()})(commonjsGlobal,function(){return function(r,e){e.prototype.isSameOrBefore=function(n,a){return this.isSame(n,a)||this.isBefore(n,a)}}})})(isSameOrBefore$1);var isSameOrBeforeExports=isSameOrBefore$1.exports;const isSameOrBefore=getDefaultExportFromCjs(isSameOrBeforeExports);function _getDaysInMonth(t,o){const r=new Date(t,o,1),e=[];for(;r.getMonth()===o;)e.push(new Date(r)),r.setDate(r.getDate()+1);return e}function _parseYearSyntax(t,o,r){let e=Number.NaN;return Number.isNaN(parseInt(o,10))?(o.startsWith("t-")?e=t-parseInt(o.replace(/^t-/,""),10):o.startsWith("t+")?e=t+parseInt(o.replace(/^t\+/,""),10):o.startsWith("t")&&(e=t),Number.isNaN(e)&&(r?(console.warn(`Unable to understand "${o}". Fallback to "${r}".`),e=_parseYearSyntax(t,r)):(console.warn(`Unable to understand "${o}". No fallback given, defaults to reference year.`),e=t)),e):(e=parseInt(o,10),e)}function _createYearListArray(t,o,r=!0){return r?Array.from({length:o-t+1},(e,n)=>n+t):Array.from({length:o-t-1},(e,n)=>
1171n+t+1)}function calendarDMY(t,o={}){const r={computedMinDate:null,computedMaxDate:null,computedDisabledDates:null,checkIsDisabledFunc:()=>!1,...o},e=computed(()=>unref(t).year()),n=computed(()=>unref(t).month()),a=dayjs(),i=computed(()=>{const m=new Date;return m.setFullYear(e.value),m.setMonth(n.value),m.setDate(1),_getDaysInMonth(e.value,n.value)}),s=computed(()=>{const m=[];let y=i.value[0].getDay();for(;y!==0;)m.push(null),y--;return m}),l=computed(()=>[...s.value,...i.value].map((m,b)=>{if(m===null)return{isVoid:!0};const y=dayjs(m);return{day:m,dayjsInstance:y,dateNumber:m.getDate(),isToday:y.isToday(),dataDate:y.format("YYYY-MM-DD"),isDisabled:r.checkIsDisabledFunc.value(y,"day")}})),d=computed(()=>dayjs.monthsShort().map((m,b)=>{const y=dayjs(unref(t)).year(e.value).month(b).date(1);return{month:m,monthNumber:b,dayjsInstance:y,isToday:y.isSame(a,"month"),dataDate:y.format("YYYY-MM-DD"),isDisabled:r.checkIsDisabledFunc.value(y,"month")}})),c=computed(()=>{const m=dayjs().year(),b=r.displayYear.value[0],y=r.displayYear.value[1];let _=_parseYearSyntax(m,b,"t-120"),S=_parseYearSyntax(m,y,"t+1");return _>S&&(console.error('"Year from" cannot be later than "year to". Forcing "Year from" to be "year to" minus 1.'),_=S-1),_createYearListArray(_,S).map((T,x)=>{const k=dayjs(unref(t)).year(T).month(n.value).date(1);return{year:T,yearNumber:T,dayjsInstance:k,isToday:k.isSame(a,"year"),dataDate:k.format("YYYY-MM-DD"),isDisabled:r.checkIsDisabledFunc.value(k,"year")}})}),u=computed(()=>unref(t).format("MMMM")),f=computed(()=>unref(t).format("YYYY"));return{currentViewMonthName:u,currentViewYearName:f,dayList:l,monthList:d,yearList:c}}const _getDateOperationArgs=t=>{let o="day";return t.endsWith("d")&&(o="day"),t.endsWith("m")&&(o="month"),t.endsWith("y")&&(o="year"),[parseInt(t.replace(/[dmy]$/,""),10),o]},_getDisableDateChecker=t=>{let o=t.computedMinDate,r=t.computedMaxDate,e=t.computedDisabledDates;return o&&r&&o.isAfter(r,"day")&&(console.error("minDate cannot be later than maxDate. Forcing minDate to be null."),o=null),(n,a="day")=>{if(!o&&!r&&e.length===0)return!1;let i=!1;return o&&(i=n.isBefore(o,a)),!i&&r&&(i=n.isAfter(r,a)),!i&&e.length>0&&(i=e.some(s=>s.isSame(n,"day"))),i}},_returnFalseFunc=()=>!1,parseSpecialDateSyntaxToDayjs=(t,o,r)=>{if(o===null)return null;let e=Number.NaN;return o.startsWith("t")?(o.startsWith("t+")?e=t.add(..._getDateOperationArgs(o.replace(/^t\+/,""))):o.startsWith("t-")?e=t.subtract(..._getDateOperationArgs(o.replace(/^t-/,""))):o==="t"&&(e=t),Number.isNaN(e)&&(r?(console.warn(`Cannot understand the syntax "${o}". Fallback to "${r}".`),e=parseSpecialDateSyntaxToDayjs(t,r)):(console.warn(`Cannot understand the syntax "${o}". No fallback given, defaults to null.`),e=null))):(e=dayjs(o),e.isValid()||(r?(console.warn(`"${o}" is not a valid date that dayjs recognizes. Fallback to "${r}"`),e=parseSpecialDateSyntaxToDayjs(t,r)):(console.warn(`"${o}" is not a valid date that dayjs recognizes. No fallback given, defaults to null.`),e=null))),e};function useCalendarRestrictions(t){const o=computed(()=>parseSpecialDateSyntaxToDayjs(dayjs(),t.value.minDate??null)),r=computed(()=>parseSpecialDateSyntaxToDayjs(dayjs(),t.value.maxDate??null)),e=computed(()=>{var a,i;return((i=(a=t.value)==null?void 0:a.disabledDates)==null?void 0:i.map(s=>dayjs(s)).filter(s=>s.isValid()))||[]}),n=computed(()=>t.value?_getDisableDateChecker({computedMinDate:o.value,computedMaxDate:r.value,computedDisabledDates:e.value}):_returnFalseFunc);return{computedMinDate:o,computedMaxDate:r,computedDisabledDates:e,checkIsDisabledFunc:n}}const _hoisted_1$1R={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$h(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1R,o[0]||(o[0]=[createBaseVNode("path",{d:"M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM339.8 211.8C350.7 200.9 350.7 183.1 339.8 172.2C328.9 161.3 311.1 161.3 300.2 172.2L192 280.4L147.8 236.2C136.9 225.3 119.1 225.3 108.2 236.2C97.27 247.1 97.27 264.9 108.2 275.8L172.2 339.8C183.1 350.7 200.9 350.7 211.8 339.8L339.8 211.8z"},null,-1)]))}const __unplugin_components_1$3=markRaw({name:"fas-square-check",render:render$h}),_hoisted_1$1Q={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$g(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1Q,o[0]||(o[0]=[createBaseVNode("path",{d:"M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.
117116 392.8 80 384 80z"},null,-1)]))}const __unplugin_components_2$1=markRaw({name:"far-square",render:render$g}),__default__$1z={name:"Checkbox",inheritAttrs:!1},_sfc_main$1A=Object.assign(__default__$1z,{props:{name:{type:String,default:""},ariaLabel:{type:String,required:!0},modelValue:{type:Boolean,default:null},defaultChecked:{type:Boolean,default:!1},required:{type:Boolean,default:!1},requiredErrorMsg:{type:String,default:i18nGlobal.t("This field is required")},highlightField:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rootAttrs:{type:Object,default:()=>({})},inputAttrs:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(!1),i=ref$1(null),s=window.siteName,l=()=>{var C;(C=i.value)==null||C.focus()},d=computed(()=>e.required?yup.boolean().equals([!0],e.requiredErrorMsg):null),{onCheckboxChange:c,meta:u,errors:f,hasValidationError:m,internalValue:b}=useFieldValidation({name:toRef(e,"name"),validation:d,modelValue:toRef(e,"modelValue")},{initialValue:e.modelValue??e.defaultChecked??null}),y=e.name??Math.random()*10,{errorMsgId:_}=useGenerateIdentifier(y);o({focus:l});const S={props:e,emit:n,isPressed:a,inputEl:i,siteName:s,focus:l,validation:d,onCheckboxChange:c,meta:u,errors:f,hasValidationError:m,internalValue:b,componentIdentifier:y,errorMsgId:_,get yup(){return yup},get useFieldValidation(){return useFieldValidation},get useGenerateIdentifier(){return useGenerateIdentifier},get i18nGlobal(){return i18nGlobal}};return Object.defineProperty(S,"__isScriptSetup",{enumerable:!1,value:!0}),S}}),_hoisted_1$1P=["data-use-theme"],_hoisted_2$1s=["required","checked","name","disabled","aria-label","aria-errormessage","aria-invalid"],_hoisted_3$12={class:"icon-uncheck","aria-hidden":"true"},_hoisted_4$W={class:"icon-check","aria-hidden":"true"},_hoisted_5$S={class:"label ml-2 rtl:ml-0 rtl:mr-2 empty:ml-0 select-none"},_hoisted_6$O={class:"author-html-container"},_hoisted_7$N={class:"short-description-wrapper w-full text-sm empty:hidden"},_hoisted_8$K=["id"];function _sfc_render$1A(t,o,r,e,n,a){const i=__unplugin_components_2$1,s=__unplugin_components_1$3,l=resolveDirective("html-sanitize");return openBlock(),createElementBlock("div",mergeProps({class:["Checkbox",[{"is-mouse-down":e.isPressed&&!e.props.disabled,"is-disabled":e.props.disabled,"has-validation-error":e.hasValidationError&&e.meta.touched,"highlight-field":e.props.highlightField}]]},e.props.rootAttrs,{"data-use-theme":e.siteName}),[createBaseVNode("label",mergeProps({class:"inline-flex cursor-pointer relative"},t.$attrs,{onMousedown:o[1]||(o[1]=d=>e.isPressed=!0),onKeydown:o[2]||(o[2]=withKeys(d=>e.isPressed=!0,["space"])),onMouseup:o[3]||(o[3]=d=>e.isPressed=!1),onKeyup:o[4]||(o[4]=withKeys(d=>e.isPressed=!1,["space"])),onMouseout:o[5]||(o[5]=d=>e.isPressed=!1)}),[createBaseVNode("input",mergeProps({ref:"inputEl",class:"input",type:"checkbox",required:e.props.required,checked:e.internalValue,name:e.props.name||null,disabled:e.props.disabled,"aria-label":e.props.ariaLabel,"aria-errormessage":e.errorMsgId,"aria-invalid":e.hasValidationError?"true":null},e.props.inputAttrs,{onChange:o[0]||(o[0]=(...d)=>e.onCheckboxChange&&e.onCheckboxChange(...d))}),null,16,_hoisted_2$1s),o[6]||(o[6]=createBaseVNode("div",{class:"indicator-circle","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_3$12,[createVNode(i)]),createBaseVNode("span",_hoisted_4$W,[t.$slots.customCheckedIcon?renderSlot(t.$slots,"customCheckedIcon",{key:0},void 0,!0):(openBlock(),createBlock(s,{key:1}))]),createBaseVNode("div",_hoisted_5$S,[renderSlot(t.$slots,"default",{},()=>[withDirectives(createBaseVNode("span",_hoisted_6$O,null,512),[[l,e.props.ariaLabel]])],!0)])],16),createBaseVNode("div",_hoisted_7$N,[renderSlot(t.$slots,"short-description",{},void 0,!0)]),createBaseVNode("div",{id:e.errorMsgId,class:"error-msg-container leading-tight text-semantic-red-base text-sm empty:hidden"},[e.hasValidationError&&e.meta.touched?renderSlot(t.$slots,"error-messages",normalizeProps(mergeProps({key:0},{meta:e.meta,errors:e.errors,internalValue:e.internalValue})),()=>[withDirectives(createBaseVNode("span",null,null,512),[[l,e.errors[0]]])],!0):createCommentVNode("",!0)],8,_hoisted_8$K)],16,_hoisted_1$1P)}const Checkbox=_export_sfc(_sfc_main$1A,[["render",_sfc_render$1A],["__scopeId","data-v-6761bd65"],["__file","Checkbox.vue"]]),__default__$1y={name:"MHCalendarDouble"},_sfc_main$1z=Object.assign(__default__$1y,{props:{modelValueFrom:{type:Object,default:null,validator:dayjs.isDayjs},modelValueTo:{type:Object,default:null,validator:dayjs.isDayjs},isOneWay:{type:Boolean,default:!1},canNavigateMonth:{type:Boolean,default:!0},minDate:{type:String,default:null},maxDate:{type:String,default:null},disabledDates:{type:Array,default:null},priceData:{type:Object,default:null},defaultViewDate:{type:Object,default:null,validator:dayjs.isDayjs},isHideTodayIndicator:{type:Boolean,default:!1},forceOneWay:{type:Boolean,default:!1},labelReset:{type:String,default:i18nGlobal.t("Reset")},labelDone:{type:String,default:i18nGlobal.t("Done")},labelOneWay:{type:String,default:i18nGlobal.t("One-way")},hideOneWay:{type:Boolean,default:!1}},emits:["select-date","reset-dates","close-panel","set-is-one-way","view-date-changed"],setup(t,{expose:o,emit:r}){const{pageProperties:e}=useGlobalAEMState();dayjs.extend(isBetween),dayjs.extend(isSameOrAfter),dayjs.extend(isSameOrBefore);const n=t,a=r,i=window.siteName,s=window.isEnrichFlypass==="Yes",l=e.value.rootLanguage,d=window.AEM_MHH_THEME_SWITCH,c=ref$1(null),u=computed(()=>({minDate:n.minDate,maxDate:n.maxDate,disabledDates:n.disabledDates})),{computedMinDate:f,computedMaxDate:m,computedDisabledDates:b,checkIsDisabledFunc:y}=useCalendarRestrictions(u),_=()=>{let ge={viewDate:n.defaultViewDate,pointedDate:n.defaultPointedDate};const Q=dayjs(n.modelValueFrom).isValid()?dayjs(n.modelValueFrom):null,Y=dayjs(),ne=Q??Y;return f.value&&m.value?ne.isSameOrAfter(f.value,"month")&&ne.isSameOrBefore(m.value,"month")?(ge.viewDate||(ge.viewDate=ne),ge.pointedDate||(ge.pointedDate=ne)):(ge.viewDate||(ge.viewDate=f.value),ge.pointedDate||(ge.pointedDate=f.value)):f.value?ne.isSameOrAfter(f.value,"month")?(ge.viewDate||(ge.viewDate=ne),ge.pointedDate||(ge.pointedDate=ne)):(ge.viewDate||(ge.viewDate=f.value),ge.pointedDate||(ge.pointedDate=f.value)):m.value?ne.isSameOrBefore(m.value,"month")?(ge.viewDate||(ge.viewDate=ne),ge.pointedDate||(ge.pointedDate=ne)):(ge.viewDate||(ge.viewDate=m.value),ge.pointedDate||(ge.pointedDate=m.value)):(ge.viewDate||(ge.viewDate=ne),ge.pointedDate||(ge.pointedDate=ne)),ge},S=ge=>{T.value=ge,a("view-date-changed",ge)},C=_(),T=ref$1(null),x=ref$1(C.pointedDate);S(C.viewDate);const{currentViewMonthName:k,currentViewYearName:E,dayList:w}=calendarDMY(T,{computedMinDate:f,computedMaxDate:m,computedDisabledDates:b,checkIsDisabledFunc:y}),D=computed(()=>T.value.add(1,"month").date(1)),{currentViewMonthName:N,currentViewYearName:F,dayList:V}=calendarDMY(D,{computedMinDate:f,computedMaxDate:m,computedDisabledDates:b,checkIsDisabledFunc:y}),A=f.value,M=computed(()=>{const ge=[];let Q=0;const Y=A.set("date",1).set("hour",0).set("minute",0).set("second",0).set("millisecond",0),ne=T.value.set("date",1).set("hour",0).set("minute",0).set("second",0).set("millisecond",0);return A&&(Q=Math.ceil(Math.abs(Y.diff(ne,"month",!0)))),lodashExports.times(Q,Ce=>{ge.unshift(ne.subtract(Ce+1,"month"))}),ge.map(Ce=>{const{currentViewMonthName:ae,currentViewYearName:Be,dayList:me}=calendarDMY(Ce,{computedMinDate:f,computedMaxDate:m,computedDisabledDates:b,checkIsDisabledFunc:y});return{monthName:ae.value,yearName:Be.value,dayList:me.value}})}),O=computed(()=>{const ge=[];let Q=12;if(m.value){let Y=m.value.diff(D.value,"month",!0);Y>0&&(Q=Math.min(Math.ceil(Y),Q)-1)}return lodashExports.times(Q,Y=>{ge.push(D.value.add(Y+1,"month"))}),ge.map(Y=>{const{currentViewMonthName:ne,currentViewYearName:Ce,dayList:ae}=calendarDMY(Y,{computedMinDate:f,computedMaxDate:m,computedDisabledDates:b,checkIsDisabledFunc:y});return{monthName:ne.value,yearName:Ce.value,dayList:ae.value}})}),R=ge=>{if(y.value(ge)===!1)return ge;let Q=0;const Y=62;let ne=null;for(;Q<Y&&!ne;){Q++;let Ce=ge.add(Q,"day");y.value(Ce)===!1&&(ne=Ce)}return ne},I=()=>{L.value||(S(T.value.subtract(1,"month")),x.value=R(dayjs(T.value).date(1)))},j=()=>{z.value||(S(T.value.add(1,"month")),x.value=R(dayjs(T.value).date(1)))},H=(ge,Q)=>
1171{if(ge.isBefore(f.value,"day")||ge.isAfter(m.value,"day"))return Q==="left"||Q==="up"?!1:f.value;if(b.value.length>0){if(b.value.every(Ce=>!Ce.isSame(ge,"day")))return!0}else return!0;let Y=0;const ne=60;for(;Y<ne;){Y++;let Ce;if(Q==="left"||Q==="up"?Ce=ge.subtract(Y,"day"):Ce=ge.add(Y,"day"),Ce.isBefore(f.value)||Ce.isAfter(m.value))return!1;if(b.value.every(ae=>!ae.isSame(Ce,"day")))return Ce}},U=ge=>{if(isMobileViewport.value)return!1;const Q=T.value.date(1);return ge.isBefore(Q,"month")?ge.date(1):ge.isAfter(Q,"month")&&ge.diff(Q,"month")>=2?ge.subtract(1,"month").date(1):!1},B=async ge=>{var ne,Ce;let Q=null;switch(ge){case"left":{Q=x.value.subtract(1,"day");break}case"right":{Q=x.value.add(1,"day");break}case"up":{Q=x.value.subtract(7,"day");break}case"down":{Q=x.value.add(7,"day");break}}const Y=H(Q,ge);if(Y===!0){x.value=Q;const ae=U(x.value);ae&&S(ae),await nextTick$1();const Be=(ne=c.value)==null?void 0:ne.querySelector(`[data-date="${Q.format("YYYY-MM-DD")}"]`);Be&&(Be.focus(),isMobileViewport.value&&Be.scrollIntoView({behavior:"smooth",block:"center"}))}else if(Y instanceof dayjs){x.value=Y;const ae=U(x.value);ae&&S(ae),x.value.isAfter(T.value.add(2,"month"),"month")&&S(dayjs(Q)),await nextTick$1();const Be=(Ce=c.value)==null?void 0:Ce.querySelector(`[data-date="${Y.format("YYYY-MM-DD")}"]`);Be&&(Be.focus(),isMobileViewport.value&&Be.scrollIntoView({behavior:"smooth",block:"center"}))}else if(Y===!1){const ae=i18nGlobal.t("{date} is disabled",{date:Q.format("DD MMM YYYY")});te(ae);return}},L=computed(()=>y.value(T.value.subtract(1,"month"),"month")),z=computed(()=>y.value(T.value.add(2,"month"),"month")),W=ge=>{re(null)},J=ref$1(""),te=(()=>{let ge=-1;return(Q,Y)=>{clearTimeout(ge),J.value=Q,ge=setTimeout(()=>{J.value=""},1500)}})(),re=ge=>{if(ge===null)a("select-date",null);else if(typeof ge=="string"){const Q=dayjs(ge);a("select-date",Q),x.value=Q}else ge instanceof dayjs&&(a("select-date",ge),x.value=ge)},oe=computed(()=>!!(!n.isOneWay&&(!n.modelValueFrom||!n.modelValueTo)||n.isOneWay&&!n.modelValueFrom)),X=ge=>{if(!n.priceData)return;const Q=Object.values(n.priceData).map(Number),Y=Math.min(...Q);return Number(n.priceData[ge])===Y?"low-price":""},se=ge=>l==="ko"?lowPriceNumFormatForKorean(ge):lowFarePriceNumberFormat(ge),le=(ge,Q)=>l==="ko"?`${Q} ${ge}`:`${ge} ${Q}`;onMounted(async()=>{if(isMobileViewport.value&&T.value&&c.value){const ge=c.value.querySelector(".day-single.is-selected"),Q=getAncestorBySelector(ge,".dmy-container");Q[0]&&(await nextTick$1(),Q[0].scrollIntoView({block:"center",inline:"nearest",behavior:"instant"}))}}),o({handleArrowNavigation:B});const he={pageProperties:e,props:n,emit:a,siteName:i,isEnrichFlypass:s,language:l,mhhNewTheme:d,rootEl:c,restrictions:u,computedMinDate:f,computedMaxDate:m,computedDisabledDates:b,checkIsDisabledFunc:y,getInitialViewAndPointedDate:_,setCurrentView:S,_initials:C,currentViewDate:T,pointedDate:x,monthNameFrom:k,yearNameFrom:E,dayListFrom:w,currentViewDateNextMonth:D,monthNameTo:N,yearNameTo:F,dayListTo:V,_initialMinDate:A,prependedMonthsInMobile:M,additionalMonthsInMobile:O,getClosestEnabledDateFrom:R,goToPrevMonth:I,goToNextMonth:j,getPointedDateOrAlternative:H,getNewViewBasedOnPointed:U,handleArrowNavigation:B,isNavigationDisabledPrev:L,isNavigationDisabledNext:z,handleRootKeyDelete:W,toastMessage:J,showToast:te,handleSelectDate:re,isDisabledDoneCTA:oe,isLowestPrice:X,localLanguagePriceFormat:se,getMonthNameAndYearFormatted:le,get dayjs(){return dayjs},get isBetween(){return isBetween},get isSameOrAfter(){return isSameOrAfter},get isSameOrBefore(){return isSameOrBefore},get calendarDMY(){return calendarDMY},get useCalendarRestrictions(){return useCalendarRestrictions},CTAButton,Checkbox,get isMobileViewport(){return isMobileViewport},get _times(){return lodashExports.times},get i18nGlobal(){return i18nGlobal},get lowFarePriceNumberFormat(){return lowFarePriceNumberFormat},get lowPriceNumFormatForKorean(){return lowPriceNumFormatForKorean},get getAncestorBySelector(){return getAncestorBySelector}};return Object.defineProperty(he,"__isScriptSetup",{enumerable:!1,value:!0}),he}}),_hoisted_1$1O=["data-use-theme","aria-label","onKeydown"],_hoisted_2$1r={class:"header"},_hoisted_3$11={class:"flex-grow relative basis-0 flex"},_hoisted_4$V=["aria-label"],_hoisted_5$R={class:"mx-auto font-semibold text-primary-blue-base leading-none"},_hoisted_6$N={class:"flex-grow relative basis-0 flex"},_hoisted_7$M={class:"mx-auto font-semibold text-primary-blue-base leading-none"},_hoisted_8$J=["aria-label"],_hoisted_9$G={class:"header-mobile >md:hidden"},_hoisted_10$y={class:"header-mobile-inner"},_hoisted_11$x={class:"flex mb-3 items-center"},_hoisted_12$v={class:"flex items-center"},_hoisted_13$t={class:"w-full grid grid-cols-7 gap-y-1 self-start"},_hoisted_14$s={class:"body"},_hoisted_15$q={class:">md:hidden font-semibold text-primary-blue-base leading-none w-full text-center mb-4"},_hoisted_16$p={class:"dmy-wrapper flex-grow overflow-y-auto styled-scrollbar flex items-center px-1 py-1"},_hoisted_17$m={class:"w-full grid grid-cols-7 gap-y-1 self-start py-0.5"},_hoisted_18$k={key:0,class:"day-void","aria-hidden":"true"},_hoisted_19$h=["tabindex","data-date","aria-label","disabled","onClick"],_hoisted_20$h={class:"date-number"},_hoisted_21$h={class:"dmy-container"},_hoisted_22$g={class:">md:hidden font-semibold text-primary-blue-base leading-none w-full text-center mb-4"},_hoisted_23$e={class:"dmy-wrapper flex-grow overflow-y-auto styled-scrollbar flex items-center px-1 py-1"},_hoisted_24$d={class:"w-full grid grid-cols-7 gap-y-1 self-start py-0.5"},_hoisted_25$c={key:0,class:"day-void","aria-hidden":"true"},_hoisted_26$c=["tabindex","data-date","aria-label","onClick"],_hoisted_27$b={class:"date-number"},_hoisted_28$a={class:"dmy-container"},_hoisted_29$a={class:">md:hidden font-semibold text-primary-blue-base leading-none w-full text-center mb-4"},_hoisted_30$a={class:"dmy-wrapper flex-grow overflow-y-auto styled-scrollbar flex items-center px-1 py-1"},_hoisted_31$a={class:"w-full grid grid-cols-7 gap-y-1 self-start py-0.5"}
1171,_hoisted_32$a={key:0,class:"day-void","aria-hidden":"true"},_hoisted_33$7=["tabindex","data-date","aria-label","onClick"],_hoisted_34$7={class:"date-number"},_hoisted_35$7={class:">md:hidden font-semibold text-primary-blue-base leading-none w-full text-center mb-4"},_hoisted_36$6={class:"dmy-wrapper flex-grow overflow-y-auto styled-scrollbar flex items-center px-1 py-1"},_hoisted_37$6={class:"w-full grid grid-cols-7 gap-y-1 self-start py-0.5"},_hoisted_38$6={key:0,class:"day-void","aria-hidden":"true"},_hoisted_39$5=["tabindex","data-date","aria-label","disabled","onClick"],_hoisted_40$5={class:"date-number"},_hoisted_41$5={class:"footer"},_hoisted_42$4={class:"footer-inner flex"},_hoisted_43$3={class:"flex items-center"},_hoisted_44$3={class:"bottom-footer"},_hoisted_45$3={key:0,class:"h-line"},_hoisted_46$3={class:"footer-inner flex space-between"},_hoisted_47$3={key:0,class:"ml-auto rtl:mr-auto rtl:ml-0 flex items-center md:ml-0 md:w-full"},_hoisted_48$2={key:0,class:"mr-4"},_hoisted_49$2={key:1,class:"w-full"},_hoisted_50$2={key:0,class:"toast-container"},_hoisted_51$1={class:"toast-message",role:"alert"};function _sfc_render$1z(t,o,r,e,n,a){const i=__unplugin_components_0$k,s=__unplugin_components_1$d,l=__unplugin_components_2$2,d=resolveDirective("button-press");return openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["MHCalendarDouble",{"hide-today-indicator":e.props.isHideTodayIndicator,"mhh-new-theme":e.mhhNewTheme}]),"data-use-theme":e.siteName,tabindex:"-1","aria-label":t.$t("Use arrow keys to navigate and enter key to select date"),onKeydown:[withKeys(withModifiers(e.handleRootKeyDelete,["prevent"]),["backspace","delete"]),o[5]||(o[5]=withKeys(withModifiers(c=>e.handleArrowNavigation("down"),["prevent"]),["down"])),o[6]||(o[6]=withKeys(withModifiers(c=>e.handleArrowNavigation("right"),["prevent"]),["right"])),o[7]||(o[7]=withKeys(withModifiers(c=>e.handleArrowNavigation("up"),["prevent"]),["up"])),o[8]||(o[8]=withKeys(withModifiers(c=>e.handleArrowNavigation("left"),["prevent"]),["left"]))]},[createBaseVNode("header",_hoisted_2$1r,[createBaseVNode("div",_hoisted_3$11,[withDirectives((openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["btn-arrow arrow-left btn-generic-b",{"is-disabled":e.isNavigationDisabledPrev}]),"aria-label":`Previous month${e.isNavigationDisabledPrev?` (${t.$t("disabled")})`:""}`,onClick:e.goToPrevMonth},[createVNode(i,{class:"btn-arrow-icon fill-current transform rtl:-rotate-180","aria-hidden":"true"})],10,_hoisted_4$V)),[[d]]),createBaseVNode("div",_hoisted_5$R,toDisplayString(e.getMonthNameAndYearFormatted(e.monthNameFrom,e.yearNameFrom)),1)]),createBaseVNode("div",_hoisted_6$N,[createBaseVNode("div",_hoisted_7$M,toDisplayString(e.getMonthNameAndYearFormatted(e.monthNameTo,e.yearNameTo)),1),withDirectives((openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["btn-arrow arrow-right btn-generic-b",{"is-disabled":e.isNavigationDisabledNext}]),"aria-label":`Next month${e.isNavigationDisabledNext?` (${t.$t("disabled")})`:""}`,onClick:e.goToNextMonth},[createVNode(s,{class:"btn-arrow-icon fill-current transform rtl:-rotate-180","aria-hidden":"true"})],10,_hoisted_8$J)),[[d]])])]),createBaseVNode("header",_hoisted_9$G,[createBaseVNode("div",_hoisted_10$y,[createBaseVNode("div",_hoisted_11$x,[e.props.hideOneWay?createCommentVNode("",!0):(openBlock(),createBlock(e.Checkbox,{key:0,modelValue:e.props.forceOneWay?!0:r.isOneWay,name:"isOneWay","aria-label":e.props.labelOneWay,disabled:e.props.forceOneWay},{default:withCtx(()=>[createBaseVNode("div",_hoisted_12$v,toDisplayString(e.props.labelOneWay),1)]),_:1},8,["modelValue","aria-label","disabled"])),withDirectives((openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["btn-generic-b text-blue-primary-base",{"ml-auto":!e.props.hideOneWay}]),onClick:o[0]||(o[0]=c=>t.$emit("reset-dates"))},[createBaseVNode("span",{class:normalizeClass(["flex items-center font-semibold",{"text-blue-primary-base text-sm":e.props.modelValueFrom,"text-neutral-grey-dark":!e.props.modelValueFrom}])},[createVNode(l,{class:"mr-2 rtl:mr-0 rtl:ml-2 fill-current"}),createTextVNode(" "+toDisplayString(e.props.labelReset),1)],2)],2)),[[d]])]),createBaseVNode("div",_hoisted_13$t,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayjs.weekdaysShort(),(c,u)=>(openBlock(),createElementBlock("div",{key:c,class:normalizeClass(["day-of-the-week",`day-${u}`])},toDisplayString(c),3))),128))])])]),createBaseVNode("div",_hoisted_14$s,[e.isMobileViewport?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.prependedMonthsInMobile,c=>(openBlock(),createElementBlock("div",{key:c,class:"dmy-container"},[createBaseVNode("div",_hoisted_15$q,toDisplayString(e.getMonthNameAndYearFormatted(c.monthName,c.yearName)),1),createBaseVNode("div",_hoisted_16$p,[createBaseVNode("div",_hoisted_17$m,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayjs.weekdaysShort(),(u,f)=>(openBlock(),createElementBlock("div",{key:u,class:normalizeClass(["day-of-the-week",`day-${f}`])},toDisplayString(u),3))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(c.dayList,(u,f)=>{var m,b;return openBlock(),createElementBlock(Fragment,{key:f},[u.isVoid?(openBlock(),createElementBlock("div",_hoisted_18$k)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["single-wrapper flex justify-center",e.isLowestPrice(u.dayjsInstance.format("YYYY-MM-DD"))])},[createBaseVNode("button",{type:"button",class:normalizeClass(["day-single btn-generic-b p-1",{"is-today":u.isToday,"is-selected":u.dayjsInstance.isSame(e.props.modelValueFrom,"day")||u.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-selected-from":u.dayjsInstance.isSame(e.props.modelValueFrom,"day"),"is-selected-to":u.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-between-selection":e.props.modelValueFrom&&e.props.modelValueTo?u.dayjsInstance.isBetween(e.props.modelValueFrom,e.props.modelValueTo,"day","[]"):!1,"is-pointed":u.dayjsInstance.isSame(e.pointedDate,"day")}]),tabindex:u.dayjsInstance.isSame(e.pointedDate,"day")?0:-1,"data-date":u.dataDate,"aria-label":u.dayjsInstance.format("YYYY-MM-DD"),disabled:u.isDisabled,onClick:y=>e.handleSelectDate(u.dayjsInstance)},[createBaseVNode("span",_hoisted_20$h,toDisplayString(u.dayjsInstance.format("DD")),1),createBaseVNode("span",{class:normalizeClass(["price-info w-full",{"price-info-small":e.isEnrichFlypass}])},toDisplayString(e.isEnrichFlypass?(m=r.priceData)==null?void 0:m[u.dayjsInstance.format("YYYY-MM-DD")]:e.localLanguagePriceFormat((b=r.priceData)==null?void 0:b[u.dayjsInstance.format("YYYY-MM-DD")])??null),3)],10,_hoisted_19$h)],2))],64)}),128))])])]))),128)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_21$h,[createBaseVNode("div",_hoisted_22$g,toDisplayString(e.getMonthNameAndYearFormatted(e.monthNameFrom,e.yearNameFrom)),1),createBaseVNode("div",_hoisted_23$e,[createBaseVNode("div",_hoisted_24$d,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayjs.weekdaysShort(),(c,u)=>(openBlock(),createElementBlock("div",{key:c,class:normalizeClass(["day-of-the-week",`day-${u}`])},toDisplayString(c),3))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayListFrom,(c,u)=>{var f,m;return openBlock(),createElementBlock(Fragment,{key:u},[c.isVoid?(openBlock(),createElementBlock("div",_hoisted_25$c)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["single-wrapper flex justify-center",e.isLowestPrice(c.dayjsInstance.format("YYYY-MM-DD"))])},[createBaseVNode("button",{type:"button",class:normalizeClass(["day-single btn-generic-b p-1",{"is-today":c.isToday,"is-selected":c.dayjsInstance.isSame(e.props.modelValueFrom,"day")||c.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-selected-from":c.dayjsInstance.isSame(e.props.modelValueFrom,"day"),"is-selected-to":c.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-between-selection":e.props.modelValueFrom&&e.props.modelValueTo?c.dayjsInstance.isBetween(e.props.modelValueFrom,e.props.modelValueTo,"day","[]"):!1,"is-pointed":c.dayjsInstance.isSame(e.pointedDate,"day"),"is-disabled":c.isDisabled}]),tabindex:c.dayjsInstance.isSame(e.pointedDate,"day")?0:-1,"data-date":c.dataDate,"aria-label":c.dayjsInstance.format("YYYY-MM-DD"),onClick:b=>c.isDisabled?null:e.handleSelectDate(c.dayjsInstance)},[createBaseVNode("span",_hoisted_27$b,toDisplayString(c.dayjsInstance.format("DD")),1),createBaseVNode("span",{class:normalizeClass(["price-info w-full",{"price-info-small":e.isEnrichFlypass}])},toDisplayString(e.isEnrichFlypass?(f=r.priceData)==null?void 0:f[c.dayjsInstance.format("YYYY-MM-DD")]:e.localLanguagePriceFormat((m=r.priceData)==null?void 0:m[c.dayjsInstance.format("YYYY-MM-DD")])??null),3)],10,_hoisted_26$c)],2))],64)}),128))])])]),o[9]||(o[9]=createBaseVNode("div",{class:"v-line md:hidden"},null,-1)),createBaseVNode("div",_hoisted_28$a,[createBaseVNode("div",_hoisted_29$a,toDisplayString(e.getMonthNameAndYearFormatted(e.monthNameTo,e.yearNameTo)),1),createBaseVNode("div",_hoisted_30$a,[createBaseVNode("div",_hoisted_31$a,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayjs.weekdaysShort(),(c,u)=>(openBlock(),createElementBlock("div",{key:c,class:normalizeClass(["day-of-the-week",`day-${u}`])},toDisplayString(c),3))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayListTo,(c,u)=>{var f,m;return openBlock(),createElementBlock(Fragment,{key:u},[c.isVoid?(openBlock(),createElementBlock("div",_hoisted_32$a)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["single-wrapper flex justify-center",e.isLowestPrice(c.dayjsInstance.format("YYYY-MM-DD"))])},[createBaseVNode("button",{type:"button",class:normalizeClass(["day-single btn-generic-b p-1",{"is-today":c.isToday,"is-selected":c.dayjsInstance.isSame(e.props.modelValueFrom,"day")||c.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-selected-from":c.dayjsInstance.isSame(e.props.modelValueFrom,"day"),"is-selected-to":c.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-between-selection":e.props.modelValueFrom&&e.props.modelValueTo?c.dayjsInstance.isBetween(e.props.modelValueFrom,e.props.modelValueTo,"day","[]"):!1,"is-pointed":c.dayjsInstance.isSame(e.pointedDate,"day"),"is-disabled":c.isDisabled}]),tabindex:c.dayjsInstance.isSame(e.pointedDate,"day")?0:-1,"data-date":c.dataDate,"aria-label":c.dayjsInstance.format("YYYY-MM-DD"),onClick:b=>c.isDisabled?null:e.handleSelectDate(c.dayjsInstance)},[createBaseVNode("span",_hoisted_34$7,toDisplayString(c.dayjsInstance.format("DD")),1),createBaseVNode("span",{class:normalizeClass(["price-info w-full",{"price-info-small":e.isEnrichFlypass}])},toDisplayString(e.isEnrichFlypass?(f=r.priceData)==null?void 0:f[c.dayjsInstance.format("YYYY-MM-DD")]:e.localLanguagePriceFormat((m=r.priceData)==null?void 0:m[c.dayjsInstance.format("YYYY-MM-DD")])??null),3)],10,_hoisted_33$7)],2))],64)}),128))])])]),e.isMobileViewport?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.additionalMonthsInMobile,c=>(openBlock(),createElementBlock("div",{key:c,class:"dmy-container"},[createBaseVNode("div",_hoisted_35$7,toDisplayString(e.getMonthNameAndYearFormatted(c.monthName,c.yearName)),1),createBaseVNode("div",_hoisted_36$6,[createBaseVNode("div",_hoisted_37$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayjs.weekdaysShort(),(u,f)=>(openBlock(),createElementBlock("div",{key:u,class:normalizeClass(["day-of-the-week",`day-${f}`])},toDisplayString(u),3))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(c.dayList,(u,f)=>{var m,b;return openBlock(),createElementBlock(Fragment,{key:f},[u.isVoid?(openBlock(),createElementBlock("div",_hoisted_38$6)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["single-wrapper flex justify-center",e.isLowestPrice(u.dayjsInstance.format("YYYY-MM-DD"))])},[createBaseVNode("button",{type:"button",class:normalizeClass(["day-single btn-generic-b p-1",{"is-today":u.isToday,"is-selected":u.dayjsInstance.isSame(e.props.modelValueFrom,"day")||u.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-selected-from":u.dayjsInstance.isSame(e.props.modelValueFrom,"day"),"is-selected-to":u.dayjsInstance.isSame(e.props.modelValueTo,"day"),"is-between-selection":e.props.modelValueFrom&&e.props.modelValueTo?u.dayjsInstance.isBetween(e.props.modelValueFrom,e.props.modelValueTo,"day","[]"):!1,"is-pointed":u.dayjsInstance.isSame(e.pointedDate,"day")}]),tabindex:u.dayjsInstance.isSame(e.pointedDate,"day")?0:-1,"data-date":u.dataDate,"aria-label":u.dayjsInstance.format("YYYY-MM-DD"),disabled:u.isDisabled,onClick:y=>e.handleSelectDate(u.dayjsInstance)},[createBaseVNode("span",_hoisted_40$5,toDisplayString(u.dayjsInstance.format("DD")),1),createBaseVNode("span",{class:normalizeClass(["price-info w-full",{"price-info-small":e.isEnrichFlypass}])},toDisplayString(e.isEnrichFlypass?(m=r.priceData)==null?void 0:m[u.dayjsInstance.format("YYYY-MM-DD")]:e.localLanguagePriceFormat((b=r.priceData)==null?void 0:b[u.dayjsInstance.format("YYYY-MM-DD")])??null),3)],10,_hoisted_39$5)],2))],64)}),128))])])]))),128)):createCommentVNode("",!0)]),createBaseVNode("footer",_hoisted_41$5,[createBaseVNode("div",_hoisted_42$4,[e.props.hideOneWay?createCommentVNode("",!0):(openBlock(),createBlock(e.Checkbox,{key:0,modelValue:e.props.forceOneWay?!0:r.isOneWay,class:"md:hidden",name:"isOneWay","aria-label":e.props.labelOneWay,disabled:e.props.forceOneWay,"onUpdate:modelValue":o[1]||(o[1]=c=>t.$emit("set-is-one-way",c))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_43$3,toDisplayString(e.props.labelOneWay),1)]),_:1},8,["modelValue","aria-label","disabled"])),withDirectives((openBlock(),createElementBlock("button",{type:"button",class:"btn-generic-b text-blue-primary-base rtl:mr-0 rtl:ml-6 !md:hidden",onClick:o[2]||(o[2]=c=>t.$emit("reset-dates"))},[createBaseVNode("span",{class:normalizeClass(["flex items-center font-semibold",{"text-blue-primary-base":e.props.modelValueFrom,"text-neutral-grey-dark":!e.props.modelValueFrom}])},[createVNode(l,{class:"mr-2 rtl:mr-0 rtl:ml-2 fill-current"}),createTextVNode(" "+toDisplayString(e.props.labelReset),1)],2)])),[[d]])])]),createBaseVNode("footer",_hoisted_44$3,[e.isMobileViewport?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_45$3)),createBaseVNode("div",_hoisted_46$3,[e.isMobileViewport?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_47$3,[t.$slots["before-cta-done"]?(openBlock(),createElementBlock("div",_hoisted_48$2,[render
1171Slot(t.$slots,"before-cta-done",{},void 0,!0)])):createCommentVNode("",!0),createVNode(e.CTAButton,{containerClass:"md:ml-auto",styleType:"primary",ctaText:e.isMobileViewport?"Continue":e.props.labelDone,disabled:e.isDisabledDoneCTA,onClick:o[3]||(o[3]=c=>{e.emit("close-panel"),c.stopPropagation()})},null,8,["ctaText","disabled"])])),e.isMobileViewport?(openBlock(),createElementBlock("div",_hoisted_49$2,[createVNode(e.CTAButton,{containerClass:"md:ml-auto mt-10",styleType:"primary",ctaSizing:e.isMobileViewport?"fluid":"",ctaText:e.isMobileViewport?"Continue":e.props.labelDone,disabled:e.isDisabledDoneCTA,onClick:o[4]||(o[4]=c=>{e.emit("close-panel"),c.stopPropagation()})},null,8,["ctaSizing","ctaText","disabled"])])):createCommentVNode("",!0)])]),createVNode(Transition,{name:"slide-in-from-bottom",appear:""},{default:withCtx(()=>[e.toastMessage?(openBlock(),createElementBlock("aside",_hoisted_50$2,[createBaseVNode("span",_hoisted_51$1,toDisplayString(e.toastMessage),1)])):createCommentVNode("",!0)]),_:1})],42,_hoisted_1$1O)}const MHCalendarDouble=_export_sfc(_sfc_main$1z,[["render",_sfc_render$1z],["__scopeId","data-v-6d58d83e"],["__file","MHCalendarDouble.vue"]]),__default__$1x={name:"DateRangePicker"},_sfc_main$1y=Object.assign(__default__$1x,{props:{nameFrom:{type:String,required:!0},nameTo:{type:String,required:!0},modelValueFrom:{type:String,default:null},modelValueTo:{type:String,default:null},textFieldAttrsFrom:{type:[Object],default:()=>({placeholder:i18nGlobal.t("Select a date"),ariaLabel:i18nGlobal.t("From")})},textFieldAttrsTo:{type:[Object],default:()=>({placeholder:i18nGlobal.t("Select a date"),ariaLabel:i18nGlobal.t("To")})},minDate:{type:String,default:null},maxDate:{type:String,default:null},disabledDates:{type:Array,default:null},disablePastDates:{type:Boolean,default:!1},disableFutureDates:{type:Boolean,default:!1},disableCalendarPickerAnimation:{type:Boolean,default:!1},minDateFromAfterSelectingTo:{type:String,default:"t"},maxDateFromAfterSelectingTo:{type:String,default:null},requiredFrom:{type:Boolean,default:!1},requiredTo:{type:Boolean,default:!1},requiredErrorMsgFrom:{type:String,default:i18nGlobal.t("This field is required")},requiredErrorMsgTo:{type:String,default:i18nGlobal.t("This field is required")},priceData:{type:Object,default:null},isHideTodayIndicator:{type:Boolean,default:!1},defaultIsOneWay:{type:Boolean,default:!1},forceOneWay:{type:Boolean,default:!1},labelReset:{type:String,default:void 0},labelDone:{type:String,default:void 0},labelOneWay:{type:String,default:void 0},customValidationDatepickerFrom:{type:Function,default:null},hideOneWay:{type:Boolean,default:!1},isIgnoreScroll:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1},subTabType:{type:String,default:null},selectDateLabel:{type:String,default:i18nGlobal.t("select Date")}},emits:["update:modelValueFrom","update:modelValueTo","update:isOneWay"],setup(t,{expose:o,emit:r}){dayjs.extend(isBetween);const e=t,n=r,{pageProperties:a}=useGlobalAEMState(),i=window.siteName,s=ref$1(!1),l=ref$1(null),d=ref$1(null),c=ref$1(!1),u=ref$1(!1),f=ref$1(!1),m=ref$1(!1),b=()=>{},y=()=>{isMobileViewport.value||T()},_=window.AEM_MHH_THEME_SWITCH,S=async le=>{var Q,Y;if(isMobileViewport.value){w(!0);return}if(le!=="from"&&((Y=(Q=le.target.firstChild)==null?void 0:Q.classList)!=null&&Y.contains("TextField"))&&s.value){T();return}if(s.value)return;s.value=!0,D.value&&!N.value?I.value=J.value?"from":"to":I.value="from",await nextTick$1();const he=isElOutOfViewport(d.value);he.any&&(he.right?c.value=!0:he.left&&(c.value=!1));const ge=document.querySelector(".BookingWidget .SwitchTabContent").classList.contains("sticked");!isMobileViewport.value&&!ge&&!e.isIgnoreScroll&&MHScrollToElement(document.querySelector(".ONDPicker"),{additionalTopOffset:160})},C=()=>{T()},T=()=>{if(isMobileViewport.value){w(!1),I.value="";return}if(s.value){if(s.value=!1,I.value="",D.value===null)X.value=null;else if(D.value&&X.value){const le=X.value.date(1);D.value.isBetween(le,le.add(2,"month"),"[]")||(X.value=null)}}},x=computed(()=>{var le,he,ge,Q,Y,ne,Ce,ae,Be,me;if(D.value&&N.value){if(u.value){if(f.value)return`${(le=D.value)==null?void 0:le.format("MM月 DD日")} - ${(he=N.value)==null?void 0:he.format("MM月 DD日")}`}else if(m.value)return`${(ge=D.value)==null?void 0:ge.format("MM월 DD일")} - ${(Q=N.value)==null?void 0:Q.format("MM월 DD일")}`;return`${(Y=D.value)==null?void 0:Y.format("DD MMM")} - ${(ne=N.value)==null?void 0:ne.format("DD MMM")}`}else if(!J.value&&D.value&&!N.value){if(u.value){if(f.value)return`${(Ce=D.value)==null?void 0:Ce.format("MM月 DD日")} - `}else if(m.value)return`${(ae=D.value)==null?void 0:ae.format("MM월 DD일")} - `;return`${(Be=D.value)==null?void 0:Be.format("DD MMM")} - `}return(me=D.value)==null?void 0:me.format("DD MMM")}),k=le=>{T()},E=ref$1(!1),w=le=>{E.value=le},D=useInternalValue("modelValueFrom",{beforeEmitTransform(le){return le instanceof dayjs?le.format("YYYY-MM-DD"):null},propReceivedTransform(le){const he=dayjs(le);return he.isValid()?he:null}}),N=useInternalValue("modelValueTo",{beforeEmitTransform(le){return le instanceof dayjs?le.format("YYYY-MM-DD"):null},propReceivedTransform(le){const he=dayjs(le);return he.isValid()?he:null}}),F=computed(()=>{var le,he,ge;return u.value?(le=D.value)==null?void 0:le.format("YYYY年 MM月 DD日"):m.value?(he=D.value)==null?void 0:he.format("YYYY년 MMM D일"):((ge=D.value)==null?void 0:ge.format("DD MMM YYYY"))??null}),V=computed(()=>{var le,he,ge;return u.value?(le=N.value)==null?void 0:le.format("YYYY年 MM月 DD日"):m.value?(he=N.value)==null?void 0:he.format("YYYY년 MMM D일"):((ge=N.value)==null?void 0:ge.format("DD MMM YYYY"))??null}),A=ref$1(null),M=ref$1(null),O=ref$1(null),R=ref$1(null),I=ref$1(""),j=computed(()=>(e.minDate,e.disablePastDates,e.minDate?e.minDate:e.disablePastDates?"t":null)),H=computed(()=>{var le;return e.maxDate,e.disableFutureDates,I.value==="to"&&e.maxDateFromAfterSelectingTo&&D.value?((le=parseSpecialDateSyntaxToDayjs(D.value,e.maxDateFromAfterSelectingTo,"t"))==null?void 0:le.format("YYYY-MM-DD"))??null:e.maxDate?e.maxDate:e.disableFutureDates?"t":null}),U=le=>{if(le===null){B();return}if(!(le instanceof dayjs)){console.warn(`<DateRangePicker> expects null or a dayjsInstance when selecting date, but instead got "${le}". This is a no-op. Check emit logic.`);return}let he="";
1171D.value&&N.value?(he="from",N.value=null):D.value&&le.isBefore(D.value)?(he="from",D.value=le,I.value="to"):!D.value&&!N.value?he="from":he=J.value?"from":"to",he==="from"?(D.value=le,J.value||(I.value="to")):(N.value=le,I.value="from")},B=()=>{var le,he;D.value=null,N.value=null,I.value="from",(le=M.value)==null||le.setTouched(!1),(he=O.value)==null||he.setTouched(!1),e.forceOneWay||te(!1)},L=computed(()=>D.value&&N.value?"from":D.value&&!N.value?J.value?"from":"to":"from"),z=le=>{let he=yup.string().nullable();e.requiredFrom&&(he=he.required(e.requiredErrorMsgFrom));try{return he.validateSync(le),e.customValidationDatepickerFrom?e.customValidationDatepickerFrom(le):!0}catch(ge){return ge.errors[0]}},W=le=>{if(J.value)return!0;let he=yup.string().nullable();e.requiredTo&&(he=he.required(e.requiredErrorMsgTo));try{return he.validateSync(le),!0}catch(ge){return ge.errors[0]}},J=ref$1(e.forceOneWay??e.defaultIsOneWay),te=le=>{var he;n("update:isOneWay",le),J.value=le,le?(I.value="from",N.value=null):D.value&&(I.value="to"),(he=O.value)==null||he.validate()},re=le=>{unref(le).inputEl._mh_invalidFocus=he=>{MHScrollToElement(l.value,{additionalTopOffset:60}),l.value.focus({preventScroll:!0})}},oe=le=>{if(u.value){if(f.value)return le==null?void 0:le.format("YYYY年")}else if(m.value)return le==null?void 0:le.format("YYYY년");return le==null?void 0:le.format("YYYY")},X=ref$1(null);watch(()=>[e.modelValueFrom,e.modelValueTo],(le,he)=>{!e.modelValueFrom&&!e.modelValueTo?I.value="from":e.modelValueFrom?e.modelValueTo||(I.value="to"):I.value="from"}),watch(D,le=>{le&&e.enableGlassDesign&&n("update:modelValueFrom",dayjs(le).format("YYYY-MM-DD"))}),watch(N,le=>{le&&e.enableGlassDesign&&n("update:modelValueTo",dayjs(le).format("YYYY-MM-DD"))}),o({handleSetIsOneWay:te,isOneWay:J,inputElFrom:M,inputElTo:O,inputElFromTo:R}),onMounted(()=>{const le=(a.value.rootLanguage||"").toLowerCase();f.value=["zh_cn","zh_tw","zh_hk","ja"].includes(le),m.value=le==="ko",u.value=f.value});const se={props:e,emit:n,pageProperties:a,siteName:i,isShowFloatingPanel:s,rootEl:l,floatingPanelEl:d,isFloatingPanelOnRight:c,chineseDateFormat:u,isCnTwHkJa:f,isKO:m,handleRootFocusedWithin:b,handleRootBlurredWithin:y,mhhNewTheme:_,showFloatingPanel:S,handleClosePanel:C,hideFloatingPanel:T,computedValue:x,handleRootKeyEsc:k,showPickerOverlay:E,setShowPickerOverlay:w,internalValueFrom:D,internalValueTo:N,getFormattedValueFrom:F,getFormattedValueTo:V,calendarEl:A,inputElFrom:M,inputElTo:O,inputElFromTo:R,activeTextField:I,computedMinDate:j,computedMaxDate:H,handleSelectDate:U,handleResetDates:B,activeHoverTextField:L,validationFrom:z,validationTo:W,isOneWay:J,handleSetIsOneWay:te,handleInputMounted:re,computedDepartAndReturnYear:oe,calendarViewDayJs:X,get yup(){return yup},get dayjs(){return dayjs},get isBetween(){return isBetween},MHCalendarDouble,TextField,get useInternalValue(){return useInternalValue},OverlayBtmSticky,get isMobileViewport(){return isMobileViewport},get i18nGlobal(){return i18nGlobal},get MHScrollToElement(){return MHScrollToElement},get isElOutOfViewport(){return isElOutOfViewport},get parseSpecialDateSyntaxToDayjs(){return parseSpecialDateSyntaxToDayjs},get onClickOutside(){return onClickOutside},get useEventBus(){return useEventBus},get useFontAwesomeLazyStore(){return useFontAwesomeLazyStore}};return Object.defineProperty(se,"__isScriptSetup",{enumerable:!1,value:!0}),se}}),_hoisted_1$1N=["data-use-theme","onKeydown"],_hoisted_2$1q={class:"picker-wrapper picker-wrapper-from"},_hoisted_3$10={class:"picker-wrapper picker-wrapper-to"},_hoisted_4$U={class:"picker-wrapper"},_hoisted_5$Q={class:"picker-wrapper picker-wrapper-to"},_hoisted_6$M={key:2},_hoisted_7$L={class:"inner-wrapper-glass-design"},_hoisted_8$I={class:"picker-wrapper"},_hoisted_9$F={class:"pl-5 sticky top-0 bg-white z-1000 pb-2 w-full"},_hoisted_10$x={class:"max-w-[375px] mx-auto font-bold line-clamp-1"},_hoisted_11$w={class:"floating-panel styled-scrollbar",role:"dialog","aria-modal":"true","aria-label":"Choose dates"},_hoisted_12$u={class:"error-msg-container leading-tight flex flex-col text-semantic-red-base text-sm",role:"alert"},_hoisted_13$s={class:"mt-1 empty:mt-0"},_hoisted_14$r={key:0},_hoisted_15$p={class:"flex-1 mt-1 empty:mt-0"},_hoisted_16$o={key:0},_hoisted_17$l={class:"sr-only",role:"alert"},_hoisted_18$j={key:4,class:"sr-only",role:"alert"};function _sfc_render$1y(t,o,r,e,n,a){var s,l,d,c,u,f,m,b,y,_,S,C,T;const i=resolveDirective("focus-within");return withDirectives((openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["DateRangePicker",{"is-one-way":e.isOneWay}]),"data-use-theme":e.siteName,tabindex:"-1",onFocusWithin:e.handleRootFocusedWithin,onBlurWithin:e.handleRootBlurredWithin,onClick:e.showFloatingPanel,onKeydown:withKeys(withModifiers(e.handleRootKeyEsc,["prevent"]),["esc"])},[e.props.enableGlassDesign?e.props.enableGlassDesign&&e.props.subTabType==="multicity"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([{"no-active-border":e.props.subTabType==="multicity"},"inner-wrapper-glass-design"])},[createBaseVNode("div",_hoisted_4$U,[createVNode(e.TextField,mergeProps({ref:"inputElFrom",rootAttrs:{class:{"textfield-from pointer-events-none":!0,"textfield-active":e.activeHoverTextField==="from"}},class:["",{"is-active":e.activeTextField==="from"}
1171],modelValue:e.chineseDateFormat||e.isKO?e.isCnTwHkJa?(s=e.internalValueFrom)==null?void 0:s.format("YYYY年 MM月 DD日"):(l=e.internalValueFrom)==null?void 0:l.format("YYYY년 MM월 DD일"):((d=e.internalValueFrom)==null?void 0:d.format("DD MMM YYYY"))??null,isFocused:e.activeTextField==="from",showAsteriskSymbol:e.props.requiredFrom,validation:e.validationFrom,variant:"booking-widget",readOnly:"",name:e.props.nameFrom},e.props.textFieldAttrsFrom,{enableGlassDesign:e.props.enableGlassDesign,onFocus:o[9]||(o[9]=x=>e.showFloatingPanel("from")),onClick:o[10]||(o[10]=x=>e.showFloatingPanel("from")),onKeydown:[o[11]||(o[11]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("down"),["prevent"]),["down"])),o[12]||(o[12]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("right"),["prevent"]),["right"])),o[13]||(o[13]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("up"),["prevent"]),["up"])),o[14]||(o[14]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("left"),["prevent"]),["left"])),o[15]||(o[15]=withKeys(withModifiers(x=>e.handleSelectDate(null),["prevent"]),["backspace","delete"]))],onVnodeMounted:o[16]||(o[16]=x=>e.handleInputMounted(e.inputElFrom))}),null,16,["rootAttrs","class","modelValue","isFocused","showAsteriskSymbol","name","enableGlassDesign"])]),o[32]||(o[32]=createBaseVNode("div",{class:"separator mx-4 2xl:mx-1 md:mx-2","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_5$Q,[createVNode(e.TextField,mergeProps({ref:"inputElTo",rootAttrs:{class:{"textfield-to pointer-events-none":!0,"textfield-active":e.activeHoverTextField==="to"}},class:{"is-active":e.activeTextField==="to"},modelValue:e.chineseDateFormat||e.isKO?e.isCnTwHkJa?(c=e.internalValueFrom)==null?void 0:c.format("YYYY年 MM月 DD日"):(u=e.internalValueFrom)==null?void 0:u.format("YYYY년 MM월 DD일"):((f=e.internalValueFrom)==null?void 0:f.format("DD MMM YYYY"))??null,variant:"booking-widget",enableGlassDesign:e.props.enableGlassDesign,isFocused:e.activeTextField==="to",showAsteriskSymbol:e.props.requiredTo,name:e.props.nameTo,validation:e.validationTo,readOnly:""},e.props.textFieldAttrsTo,{tabindex:"-1",onVnodeMounted:o[17]||(o[17]=x=>e.handleInputMounted(e.inputElTo))}),null,16,["rootAttrs","class","modelValue","enableGlassDesign","isFocused","showAsteriskSymbol","name"])])],2)):(openBlock(),createElementBlock("div",_hoisted_6$M,[createBaseVNode("div",_hoisted_7$L,[createBaseVNode("div",_hoisted_8$I,[createVNode(e.TextField,mergeProps({ref:"inputElFromTo",rootAttrs:{class:{"textfield-from-to pointer-events-none":!0,"textfield-active":e.isShowFloatingPanel}},modelValue:e.computedValue,showAsteriskSymbol:e.props.requiredFrom,departYear:e.computedDepartAndReturnYear(e.internalValueFrom),returnYear:e.computedDepartAndReturnYear(e.internalValueTo),validation:e.validationFrom,variant:"booking-widget",readOnly:"",name:"FromTo"},{placeholder:e.props.selectDateLabel,ariaLabel:(m=e.props.textFieldAttrsTo)!=null&&m.ariaLabel&&!e.isOneWay?`${e.props.textFieldAttrsFrom.ariaLabel}-${e.props.textFieldAttrsTo.ariaLabel}`:e.props.textFieldAttrsFrom.ariaLabel},{enableGlassDesign:e.props.enableGlassDesign,isDatePicker:!0,onFocus:o[18]||(o[18]=x=>e.showFloatingPanel("from")),onClick:o[19]||(o[19]=x=>e.showFloatingPanel("from")),onKeydown:[o[20]||(o[20]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("down"),["prevent"]),["down"])),o[21]||(o[21]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("right"),["prevent"]),["right"])),o[22]||(o[22]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("up"),["prevent"]),["up"])),o[23]||(o[23]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("left"),["prevent"]),["left"])),o[24]||(o[24]=withKeys(withModifiers(x=>e.handleSelectDate(null),["prevent"]),["backspace","delete"]))]}),null,16,["rootAttrs","modelValue","showAsteriskSymbol","departYear","returnYear","enableGlassDesign"])])])])):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["inner-wrapper",e.mhhNewTheme?"mhh-new-theme":""])},[createBaseVNode("div",_hoisted_2$1q,[createVNode(e.TextField,mergeProps({ref:"inputElFrom",rootAttrs:{class:{"textfield-from pointer-events-none":!0,"textfield-active":e.activeHoverTextField==="from"}},class:["",{"is-active":e.activeTextField==="from"}],modelValue:e.getFormattedValueFrom,isFocused:e.activeTextField==="from",showAsteriskSymbol:e.props.requiredFrom,validation:e.validationFrom,variant:"booking-widget",readOnly:"",name:e.props.nameFrom},e.props.textFieldAttrsFrom,{onFocus:o[0]||(o[0]=x=>e.showFloatingPanel("from")),onClick:o[1]||(o[1]=x=>e.showFloatingPanel("from")),onKeydown:[o[2]||(o[2]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("down"),["prevent"]),["down"])),o[3]||(o[3]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("right"),["prevent"]),["right"])),o[4]||(o[4]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("up"),["prevent"]),["up"])),o[5]||(o[5]=withKeys(withModifiers(x=>e.calendarEl.handleArrowNavigation("left"),["prevent"]),["left"])),o[6]||(o[6]=withKeys(withModifiers(x=>e.handleSelectDate(null),["prevent"]),["backspace","delete"]))],onVnodeMounted:o[7]||(o[7]=x=>e.handleInputMounted(e.inputElFrom))}),null,16,["rootAttrs","class","modelValue","isFocused","showAsteriskSymbol","name"])]),o[31]||(o[31]=createBaseVNode("div",{class:"separator mx-4 2xl:mx-1 md:mx-2","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_3$10,[createVNode(e.TextField,mergeProps({ref:"inputElTo",rootAttrs:{class:{"textfield-to pointer-events-none":!0,"textfield-active":e.activeHoverTextField==="to"}}
1171,class:{"is-active":e.activeTextField==="to"},modelValue:e.getFormattedValueTo,variant:"booking-widget",isFocused:e.activeTextField==="to",showAsteriskSymbol:e.props.requiredTo,name:e.props.nameTo,validation:e.validationTo,readOnly:""},e.props.textFieldAttrsTo,{tabindex:"-1",onVnodeMounted:o[8]||(o[8]=x=>e.handleInputMounted(e.inputElTo))}),null,16,["rootAttrs","class","modelValue","isFocused","showAsteriskSymbol","name"])])],2)),e.isShowFloatingPanel&&!e.isMobileViewport?(openBlock(),createElementBlock("div",{key:3,ref:"floatingPanelEl",class:normalizeClass(["floating-panel shadow-type-a border-2 border-neutral-grey-light",{"!left-auto right-0":e.isFloatingPanelOnRight,"mt-5 glass-design":e.props.enableGlassDesign}]),role:"dialog","aria-modal":"true","aria-label":"Choose dates"},[createVNode(e.MHCalendarDouble,{ref:"calendarEl",modelValueFrom:e.internalValueFrom,"onUpdate:modelValueFrom":o[25]||(o[25]=x=>e.internalValueFrom=x),modelValueTo:e.internalValueTo,"onUpdate:modelValueTo":o[26]||(o[26]=x=>e.internalValueTo=x),class:"",priceData:e.props.priceData,isOneWay:e.isOneWay,minDate:e.computedMinDate,maxDate:e.computedMaxDate,disabledDates:e.props.disabledDates,disablePastDates:e.props.disablePastDates,disableFutureDates:e.props.disableFutureDates,defaultViewDate:e.calendarViewDayJs,isHideTodayIndicator:e.props.isHideTodayIndicator,forceOneWay:e.props.forceOneWay,labelReset:e.props.labelReset,labelDone:e.props.labelDone,labelOneWay:e.props.labelOneWay,hideOneWay:e.props.hideOneWay,onSelectDate:e.handleSelectDate,onResetDates:e.handleResetDates,onClosePanel:e.handleClosePanel,onSetIsOneWay:e.handleSetIsOneWay,onViewDateChanged:o[27]||(o[27]=x=>e.calendarViewDayJs=x),onUpdateModelValueFrom:e.internalValueFrom},createSlots({_:2},[t.$slots["before-cta-done"]?{name:"before-cta-done",fn:withCtx(()=>[renderSlot(t.$slots,"before-cta-done",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValueFrom","modelValueTo","priceData","isOneWay","minDate","maxDate","disabledDates","disablePastDates","disableFutureDates","defaultViewDate","isHideTodayIndicator","forceOneWay","labelReset","labelDone","labelOneWay","hideOneWay","onUpdateModelValueFrom"])],2)):createCommentVNode("",!0),createVNode(e.OverlayBtmSticky,{class:"daterangepicker-mobile-overlay",isVisible:e.showPickerOverlay,disableCalendarPickerAnimation:e.props.disableCalendarPickerAnimation,"onUpdate:isVisible":o[30]||(o[30]=x=>e.setShowPickerOverlay(x))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_9$F,[createBaseVNode("h6",_hoisted_10$x,[renderSlot(t.$slots,"mobile-title",{},void 0,!0)])]),createBaseVNode("div",_hoisted_11$w,[createVNode(e.MHCalendarDouble,{ref:"calendarEl",modelValueFrom:e.internalValueFrom,"onUpdate:modelValueFrom":o[28]||(o[28]=x=>e.internalValueFrom=x),modelValueTo:e.internalValueTo,"onUpdate:modelValueTo":o[29]||(o[29]=x=>e.internalValueTo=x),class:"",priceData:e.props.priceData,isOneWay:e.isOneWay,minDate:e.computedMinDate,maxDate:e.computedMaxDate,disabledDates:e.props.disabledDates,disablePastDates:e.props.disablePastDates,disableFutureDates:e.props.disableFutureDates,isHideTodayIndicator:e.props.isHideTodayIndicator,forceOneWay:e.props.forceOneWay,labelReset:e.props.labelReset,labelDone:e.props.labelDone,labelOneWay:e.props.labelOneWay,hideOneWay:e.props.hideOneWay,onSelectDate:e.handleSelectDate,onResetDates:e.handleResetDates,onClosePanel:e.handleClosePanel,onSetIsOneWay:e.handleSetIsOneWay},createSlots({_:2},[t.$slots["before-cta-done"]?{name:"before-cta-done",fn:withCtx(()=>[renderSlot(t.$slots,"before-cta-done",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValueFrom","modelValueTo","priceData","isOneWay","minDate","maxDate","disabledDates","disablePastDates","disableFutureDates","isHideTodayIndicator","forceOneWay","labelReset","labelDone","labelOneWay","hideOneWay"])])]),_:3},8,["isVisible","disableCalendarPickerAnimation"]),createBaseVNode("div",_hoisted_12$u,[createBaseVNode("div",_hoisted_13$s,[(b=e.inputElFrom)!=null&&b.hasValidationError&&((y=e.inputElFrom)!=null&&y.meta.touched)?(openBlock(),createElementBlock("span",_hoisted_14$r,toDisplayString((_=e.inputElFrom)==null?void 0:_.errors[0]),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_15$p,[(S=e.inputElTo)!=null&&S.hasValidationError&&((C=e.inputElTo)!=null&&C.meta.touched)?(openBlock(),createElementBlock("span",_hoisted_16$o,toDisplayString((T=e.inputElTo)==null?void 0:T.errors[0]),1)):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_17$l,[!e.internalValueFrom&&!e.internalValueTo?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("Current selection is empty")),1)],64)):e.internalValueFrom&&!e.internalValueTo?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(t.$t("Current selection: {dateFrom}",{dateFrom:e.internalValueFrom.format("YYYY-MM-DD")})),1)],64)):e.internalValueFrom&&e.internalValueTo?(openBlock(),createElementBlock(Fragment,{key:2},[createTextVNode(toDisplayString(t.$t("Current selection: from {dateFrom} to {dateTo}. Navigate to the done button once you are done.",{dateFrom:e.internalValueFrom.format("YYYY-MM-DD"),dateTo:e.internalValueTo.format("YYYY-MM-DD")})),1)],64)):createCommentVNode("",!0)]),e.isShowFloatingPanel?(openBlock(),createElementBlock("div",_hoisted_18$j,[e.activeTextField==="from"?(openBlock(),createElementBlock(Fragment,{key:0},[e.isOneWay?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("Now selecting one-way departure date")),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(t.$t("Now selecting departure date")),1)],64))],64)):e.activeTextField==="to"?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(t.$t("Now selecting return date")),1)],64)):createCommentVNode("",!0)])):createCommentVNode("",!0)],42,_hoisted_1$1N)),[[i]])}
1171const DateRangePicker=_export_sfc(_sfc_main$1y,[["render",_sfc_render$1y],["__scopeId","data-v-53980066"],["__file","DateRangePicker.vue"]]),cacheData=new Map,isFirefly=window.siteName==="firefly",fetchLowFareAPI=async(t,o,r,e,n,a)=>{const i=`${t}|${o}${r?`|${dayjs(r).format("DDMMYY")}`:""}${a?"|OneWay":"|Return"}`;if(cacheData.get(i))return cacheData.get(i);try{const s=await axios$1.get(n,{params:{origin:t,destination:o,...r&&a?{firstdate:dayjs().format("DDMMYY")}:null,...r&&!a?{departdate:dayjs(r).format("DDMMYY")}:null,...!isFirefly&&r&&!a?{fromDepartDate:!0}:null,...isFirefly?{firefly:!0}:null,...isFirefly?null:{paymentType:e?"Miles":"Cash"}}});if(s.status===200)return cacheData.set(i,s.data),s.data;throw new Error(s)}catch(s){throw console.warn("useLowFarePrice.js fetchLowFareAPI API error",s),new Error(s)}};function useLowFarePriceList({originRef:t,destinationRef:o,departureDateRef:r,paymentTypeRef:e,endpointUrl:n,isOneWayRef:a}={}){const i=ref$1(null),s=ref$1(""),l=ref$1(null),d=watch([t,o,r,e,a].filter(Boolean),async()=>{var f,m;if(!((f=t.value)!=null&&f.code)||!((m=o.value)!=null&&m.code))return{};let u=null;try{u=await fetchLowFareAPI(t.value.code,o.value.code,r.value,e==null?void 0:e.value,n,a.value)}catch(b){return b}if(lodashExports.isEmpty(u))i.value=null,s.value="",l.value=null;else{const b=processPriceData(r.value&&!a.value?u[0].returnDetail:u);i.value=b,s.value=u.length?u[0].currency:"",r.value&&u[0].returnDetail&&(l.value=u[0])}});return{priceData:i,currency:s,returnTypeDepartureDateAndFare:l,cleanUp:()=>{d()}}}function processPriceData(t){if(typeof t=="object"&&lodashExports.isEmpty(t))return{};let o={};return t.forEach(({dateOfDeparture:r,currency:e,totalFareAmount:n})=>{if(n==="0.00"&&isFirefly)return;const a=r.substring(0,2),i=r.substring(2,4),s=`20${r.substring(4,6)}`;o[`${s}-${i}-${a}`]=n}),o}const __default__$1w={name:"SubTabFlightAndHotel"},_sfc_main$1x=Object.assign(__default__$1w,{props:{datePicker:{type:Object,default:null},description:{type:String,default:""},tooltipLabel:{type:String,default:""},tooltipBody:{type:String,default:""},ondSelection:{type:Object,default:null},travellerSelection:{type:Object,default:null},cabinClass:{type:Object,default:null},productID:{type:String,default:""},note:{type:String,default:""},endpoint:{type:String,default:""},cultureCode:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1},componentIdAA:{type:String,default:""}},emits:["form-submission"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(null),{pageProperties:l}=useGlobalAEMState$1(),d=window.siteName,c=async(V,A)=>{console.log("✅ handleSubmitValid values = ",V),n("form-submission");const M=V==null?void 0:V.room.map(({adults:j,children:H,childAge:U,infants:B},L)=>{let z={};return H&&U.length&&U.forEach((W,J)=>{z[`PaxInfos[${L}].ChildAges[${J}]`]=W}),{...j?{[`PaxInfos[${L}].AdultCount`]:j}:null,...H?{[`PaxInfos[${L}].ChildCount`]:H}:null,...B?{[`PaxInfos[${L}].InfantCount`]:B}:null,...U!=null&&U.length?z:null}}),O=M.reduce((j,H)=>({...j,...H})),R={From:b.value.value,To:y.value.value,DepartureDate:f.value,ReturnDate:m.value,CabinClass:T.value,CultureCode:e.cultureCode,Currency:l.value.baseCurrency,JourneyType:1,ProductId:e.productID,RoomCount:V.room.length,...M.length?O:null},I=new URL(e.endpoint);Object.keys(R).forEach(j=>{I.searchParams.append(j,R[j])}),window.location.href=I.toString()},u=({values:V,errors:A,results:M,evt:O})=>{console.log("❌ handleSubmitInvalid errors = ",A)},f=ref$1(null),m=ref$1(null),b=ref$1(null),y=ref$1(null),_=ref$1(!1),S=V=>{_.value=V},C=computed(()=>{var V,A,M;return[...(V=e==null?void 0:e.cabinClass)!=null&&V.isShowEconomyClass?[{label:i18nGlobal.t("Economy"),value:"1"}]:[],...(A=e==null?void 0:e.cabinClass)!=null&&A.isShowBusinessClass?[{label:i18nGlobal.t("Business"),value:"2"}]:[],...(M=e==null?void 0:e.cabinClass)!=null&&M.isShowBusinessSuiteClass?[{label:i18nGlobal.t("Business Suite"),value:"3"}]:[]]}),T=ref$1("");T.value=C.value.length?C.value[0].value:"";const x=computed(()=>{const V=a.value;return V?!V.values.locationFrom||!V.values.locationTo||e.enableGlassDesign&&!f.value||!e.enableGlassDesign&&!V.values.dateDeparture||e.enableGlassDesign&&!m.value||!e.enableGlassDesign&&!V.values.dateReturn||!V.values.room.length||!V.values.cabinClass||Object.keys(V.errors).length!==0:!0}),k=0,E=360,w=computed(()=>{const V=e.datePicker;return!(V!=null&&V.departureDateConfig)||typeof(V==null?void 0:V.departureDateConfig)!="number"?k:V==null?void 0:V.departureDateConfig}),D=computed(()=>{const V=e.datePicker;return!(V!=null&&V.returnDateConfig)||typeof(V==null?void 0:V.returnDateConfig)!="number"?E:V==null?void 0:V.returnDateConfig}),F={props:e,emit:n,formWrapper:a,rootEl:i,dateRangePickerEl:s,pageProperties:l,siteName:d,handleSubmitValid:c,handleSubmitInvalid:u,dateRangeValueFrom:f,dateRangeValueTo:m,ondValueFrom:b,ondValueTo:y,isOneWay:_,handleWatchIsOneWay:S,cabinClassOptions:C,activeCabinClass:T,isBtnSubmitDisabled:x,defaultMinDate:k,defaultMaxDate:E,computedMinDate:w,computedMaxDate:D,focusToDatePicker:V=>{var A,M;V&&!isMobileViewport.value&&((M=(A=s.value)==null?void 0:A.inputElFrom)==null||M.focus())},DropdownTravellersAndRoom,Dropdown,CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,TextField,FormWrapper,Tooltip,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},get i18nGlobal(){return i18nGlobal}
1171,get useLowFarePriceList(){return useLowFarePriceList},get formatNumberWithAbbreviation(){return formatNumberWithAbbreviation}};return Object.defineProperty(F,"__isScriptSetup",{enumerable:!1,value:!0}),F}}),_hoisted_1$1M=["data-use-theme"],_hoisted_2$1p={key:0,class:"mb-5"},_hoisted_3$$={class:"flex items-center"},_hoisted_4$T={class:"flex gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_5$P={class:"w-6/10 lg:w-full component-wrapper"},_hoisted_6$L={class:"w-4/10 lg:w-full component-wrapper"},_hoisted_7$K={class:"flex mt-6 gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_8$H={class:"flex flex-grow gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_9$E={class:"component-wrapper w-6/10 lg:w-full"},_hoisted_10$w={class:"w-4/10 lg:w-full component-wrapper"},_hoisted_11$v={class:"cta-wrapper ml-auto lg:ml-0"},_hoisted_12$t={key:2,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_13$r={class:"text-sm"};function _sfc_render$1x(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa");return openBlock(),createElementBlock("div",{ref:"rootEl",class:"SubTabFlightAndHotel","data-use-theme":e.siteName},[createVNode(e.FormWrapper,{ref:"formWrapper",class:"",focusFirstErrorElOnInvalidSubmit:!0,"data-use-theme":e.siteName,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(()=>{var c,u,f,m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R;return[e.props.description?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$1p,null,512)),[[l,e.props.description]]):createCommentVNode("",!0),e.props.tooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$$,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.tooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipBody),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$T,[createBaseVNode("div",_hoisted_5$P,[createVNode(e.ONDPicker,{modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[
11710]||(o[0]=I=>e.ondValueFrom=I),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":[o[1]||(o[1]=I=>e.ondValueTo=I),e.focusToDatePicker],nameFrom:"locationFrom",nameTo:"locationTo",ondListIdentifier:"FLIGHT_SEARCH_AND_HOTEL",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(c=e.props.ondSelection)==null?void 0:c.originErrorMessage,requiredErrorMsgTo:(u=e.props.ondSelection)==null?void 0:u.destinationErrorMessage,labelTextFrom:(f=e.props.ondSelection)==null?void 0:f.originLabel,labelTextTo:(m=e.props.ondSelection)==null?void 0:m.destinationLabel,noResultsText:(b=e.props.ondSelection)==null?void 0:b.noResultMessage,enableGlassDesign:e.props.enableGlassDesign,placeHolderFrom:(y=e.props.ondSelection)==null?void 0:y.placeHolderFrom,placeHolderTo:(_=e.props.ondSelection)==null?void 0:_.placeHolderTo},{"from-picker-mobile-title":withCtx(()=>{var I;return[createBaseVNode("span",null,toDisplayString((I=e.props.ondSelection)==null?void 0:I.fromQuestionMobile),1)]}),"to-picker-mobile-title":withCtx(()=>{var I;return[createBaseVNode("span",null,toDisplayString((I=e.props.ondSelection)==null?void 0:I.toQuestionMobile),1)]}),_:1},8,["modelValueFrom","modelValueTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","noResultsText","enableGlassDesign","placeHolderFrom","placeHolderTo"])]),createBaseVNode("div",_hoisted_6$L,[createVNode(e.DateRangePicker,{ref:"dateRangePickerEl",modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[2]||(o[2]=I=>e.dateRangeValueFrom=I),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[3]||(o[3]=I=>e.dateRangeValueTo=I),textFieldAttrsFrom:{ariaLabel:(S=e.props.datePicker)==null?void 0:S.departureDateLabel,placeholder:e.i18nGlobal.t("Select a date")},textFieldAttrsTo:{ariaLabel:(C=e.props.datePicker)==null?void 0:C.returnDateLabel,placeholder:e.i18nGlobal.t("Select a date")},minDate:`t+${e.computedMinDate}d`,maxDate:"t+1y",maxDateFromAfterSelectingTo:`t+${e.computedMaxDate}d`,disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(T=e.props.datePicker)==null?void 0:T.dateErrorMessage,requiredErrorMsgTo:(x=e.props.datePicker)==null?void 0:x.dateErrorMessage,labelReset:((k=e.props.datePicker)==null?void 0:k.resetButtonCTAText)??t.$t("Reset"),labelDone:((E=e.props.datePicker)==null?void 0:E.doneCTAText)??t.$t("Done"),hideOneWay:!0,enableGlassDesign:e.props.enableGlassDesign,selectDateLabel:(w=e.props.datePicker)==null?void 0:w.selectDateLabel,"onUpdate:isOneWay":e.handleWatchIsOneWay},{"mobile-title":withCtx(()=>{var I;return[createTextVNode(toDisplayString((I=e.props.datePicker)==null?void 0:I.datePickerQuestionMobile),1)]}),_:1},8,["modelValueFrom","modelValueTo","textFieldAttrsFrom","textFieldAttrsTo","minDate","maxDateFromAfterSelectingTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","enableGlassDesign","selectDateLabel"])])]),createBaseVNode("div",_hoisted_7$K,[createBaseVNode("div",_hoisted_8$H,[createBaseVNode("div",_hoisted_9$E,[createVNode(e.DropdownTravellersAndRoom,{labelText:(D=e.props.travellerSelection)==null?void 0:D.label,adultLabel:(N=e.props.travellerSelection)==null?void 0:N.adultLabel,childrenLabel:(F=e.props.travellerSelection)==null?void 0:F.childrenLabel,infantLabel:(V=e.props.travellerSelection)==null?void 0:V.infantLabel,teenagerLabel:(A=e.props.travellerSelection)==null?void 0:A.teenagerLabel,enableGlassDesign:e.props.enableGlassDesign,combinedAnyExceededMsg:"Maximum {n} in all rooms",combinedAdultChildExceededMsg:"Maximum {n} in all rooms excluding infants",combinedInfantExceededMsg:"Maximum {n} infants"},{"mobile-title":withCtx(()=>{var I;return[createBaseVNode("span",null,toDisplayString((I=e.props.travellerSelection)==null?void 0:I.questionMobile),1)]}),_:1},8,["labelText","adultLabel","childrenLabel","infantLabel","teenagerLabel","enableGlassDesign"])]),createBaseVNode("div",_hoisted_10$w,[createVNode(e.Dropdown,{modelValue:e.activeCabinClass,"onUpdate:modelValue":o[4]||(o[4]=I=>e.activeCabinClass=I),name:"cabinClass",options:e.cabinClassOptions,labelText:(M=e.props.cabinClass)==null?void 0:M.label,enableGlassDesign:e.props.enableGlassDesign,desktopVariant:"booking-widget"},null,8,["modelValue","options","labelText","enableGlassDesign"])])]),createBaseVNode("div",_hoisted_11$v,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,
1171ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled,class:normalizeClass({"class-design-ct-btn":e.props.enableGlassDesign}),enableGlassDesign:e.props.enableGlassDesign},{default:withCtx(()=>{var I;return[createTextVNode(toDisplayString((I=e.props.cabinClass)==null?void 0:I.buttonLabel),1)]}),_:1},8,["sizeType","ctaSizing","disabled","class","enableGlassDesign"])),[[d,[{clickName:(O=e.props.cabinClass)==null?void 0:O.buttonLabel,clickComponentType:"Button",componentName:"SubTabFlightAndHotel",componentID:e.props.componentIdAA},{name:(R=e.props.cabinClass)==null?void 0:R.buttonLabel,type:"exit"}]]])])]),createVNode(e.TextField,{variant:"input-hidden",name:"activeCabinClass",ariaLabel:"Selected cabin class",modelValue:e.activeCabinClass},null,8,["modelValue"]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_12$t,[createVNode(s,{class:"fill-primary-blue-base text-base"}),createBaseVNode("div",_hoisted_13$r,[createBaseVNode("p",null,toDisplayString(e.props.note),1)])])):createCommentVNode("",!0)]}),_:1},8,["data-use-theme"])],8,_hoisted_1$1M)}const SubTabFlightAndHotel=_export_sfc(_sfc_main$1x,[["render",_sfc_render$1x],["__scopeId","data-v-10ab7e98"],["__file","SubTabFlightAndHotel.vue"]]),__default__$1v={name:"HotelPicker"},_sfc_main$1w=Object.assign(__default__$1v,{props:{apiUrl:{type:String,required:!0},modelValue:{type:[String,Object],default:null},hotelSelection:{type:Object,default:null},isDisabled:{type:Boolean,default:!1},currentAirportCode:{type:String,default:""},clearOnBlur:{type:Boolean,default:!1},useTUIAPI:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=useInternalValue("modelValue"),i=ref$1(null),s=ref$1(null),l=ref$1(""),d=ref$1(!0),c=ref$1(!1),u=ref$1(0),f=ref$1(0),m=ref$1(!1),b=ref$1(!1),y=ref$1(null);let _="";const S=(M=[])=>M.map(O=>e.useTUIAPI?{value:`${O.type==="hotel"?O.cityCode:O.id}|${O.latitude}|${O.longitude}`,label:O.name.trim(),searchString:O.name.trim(),description:O.countryName,regionName:O.regionName,name:O.name,countryName:O.countryName,cityCode:O.cityCode,cityId:O.id,type:O.type,id:O.id}:{value:`${O.airportCode}|${O.latitude},${O.longitude}`,label:O.hotelName.split(",")[0].trim(),searchString:O.hotelName,description:O.countryName,cityId:O.hotelId,isPopularFlag:O.isPopularFlag,isSuggestedFlag:O.isSuggestedFlag}),C=async({airportCode:M,hotelId:O})=>{let R=null;d.value=!0;try{R=await T({startIndex:0,endIndex:1,airportCode:M,hotelId:O})}catch{}finally{d.value=!1}R.length&&(a.value=R[0])},T=async({searchKeyword:M,airportCode:O,hotelId:R,startIndex:I=0,endIndex:j=100}={})=>{let H=null;const U=O||e.currentAirportCode;try{H=await axios$1.get(e.apiUrl,{params:{...e.useTUIAPI?null:{start:I},...e.useTUIAPI?null:{end:I},...M?e.useTUIAPI?{term:M}:{key:M}:null,...U&&!M?{aCode:U}:null,...R&&!M?{hId:R}:null}})}catch(L){return console.error("getHotelList, ","Unable to fetch api",JSON.stringify(L)),[]}const B=e.useTUIAPI?JSON.parse(H.data):H.data.hotelList;return S(B)},x=lodashExports.debounce(async({startIndex:M,endIndex:O,searchKeyword:R}={})=>{let I=null;try{I=await T({startIndex:M,endIndex:O,searchKeyword:R})}catch{}finally{d.value=!1,c.value=!1}I.length<100&&(b.value=!0),s.value||(s.value=[]),s.value.push(...I)},500),k=lodashExports.debounce(async({startIndex:M,endIndex:O}={})=>{let R=null;try{R=await T({startIndex:M,endIndex:O})}catch{}finally{d.value=!1,c.value=!1}R.length<100&&(m.value=!0),i.value||(i.value=[]),i.value.push(...R)},500),E=()=>{i.value=i.value?i.value.slice(0,100):null,u.value=0,m.value=!1},w=()=>{s.value=null,f.value=0,b.value=!1},D=M=>{l.value=M,M&&(e.useTUIAPI?M.length>=3:M.length>=1)?(w(),d.value=!0,x({startIndex:0,endIndex:100,searchKeyword:M})):E()},N=computed(()=>{var U;if(d.value)return[];const M=[],O=[],R=[],I=[],j=[],H=l.value||e.useTUIAPI?s.value:i.value;return!H||H.length===0?[]:(H.forEach(B=>{B.isPopularFlag?M.push(B):B.type&&B.type==="airport"?j.push(B):B.type&&B.type==="hotel"?R.push(B):B.type&&B.type==="region"?I.push(B):O.push(B)}),e.useTUIAPI?[{label:"DESTINATION/CITY",options:I},{label:"PROPERTIES",options:R},{label:"AIRPORT/STATION",options:j}]:M.length>0?[{label:(U=e.hotelSelection)==null?void 0:U.popularDestinationsLabelHotel,options:M},{label:" ",options:O}]:[{label:" ",options:O}])}),F=async M=>{e.useTUIAPI&&(d.value=!1),_!==e.currentAirportCode&&(i.value=null,d.value=!0,_=e.currentAirportCode),!i.value&&!e.useTUIAPI&&k()},V=M=>{c.value||(c.value=!0,l.value?(f.value++,x({startIndex:100*f.value+1,endIndex:100*f.value+100,searchKeyword:l.value})):(u.value++,k({startIndex:100*u.value+1,endIndex:100*u.value+100,searchKeyword:l.value})))};o({airportPickerEl:y,setPreselectHotel:C});const A={props:e,emit:n,internalValue:a,baseList:i,searchList:s,keyword:l,isLoading:d,isLoadingFurtherPages:c,basePageIndex:u,searchPageIndex:f,isBaseLastPage:m,isSearchLastPage:b,airportPickerEl:y,get prevAirportCode(){return _},set prevAirportCode(M){_=M},mappedHotelInfoObject:S,setPreselectHotel:C,getHotelList:T,debouncedGetSearchHotelList:x,debouncedGetBaseHotelList:k,resetBaseList:E,resetSearchList:w,handleSearchChange:D,locationOptionsComputed:N,handleOpen:
1171F,handleClickLoadMore:V,Dropdown,get isMobileViewport(){return isMobileViewport},CTAButton,get i18nGlobal(){return i18nGlobal},AirportPicker,get useInternalValue(){return useInternalValue},get _debounce(){return lodashExports.debounce},AppSpinner};return Object.defineProperty(A,"__isScriptSetup",{enumerable:!1,value:!0}),A}}),_hoisted_1$1L={class:"multiselect-options cursor-default"},_hoisted_2$1o={class:"py-4"},_hoisted_3$_={key:0,class:"py-4"};function _sfc_render$1w(t,o,r,e,n,a){var i,s,l;return openBlock(),createElementBlock("div",{class:normalizeClass(["HotelPicker",{"glass-design":e.props.enableGlassDesign}])},[createVNode(e.AirportPicker,{ref:"airportPickerEl",modelValue:e.internalValue,"onUpdate:modelValue":o[0]||(o[0]=d=>e.internalValue=d),options:e.locationOptionsComputed,labelText:(i=e.props.hotelSelection)==null?void 0:i.hotelLabel,placeholderText:(s=e.props.hotelSelection)==null?void 0:s.hotelPlaceholderText,name:"location",variant:"booking-widget",showOptionLocationIcon:!0,isGroups:!0,noResultsText:(l=e.props.hotelSelection)==null?void 0:l.noResultMessageHotel,required:"",clearOnBlur:e.props.clearOnBlur,filterResults:!1,disabled:e.props.isDisabled,enableGlassDesign:e.props.enableGlassDesign,onOpen:e.handleOpen,onSearchChange:e.handleSearchChange},createSlots({"mobile-title":withCtx(()=>[renderSlot(t.$slots,"mobile-title",{},void 0,!0)]),_:2},[e.isLoading?{name:"nooptions",fn:withCtx(()=>[createBaseVNode("div",_hoisted_1$1L,[createBaseVNode("div",_hoisted_2$1o,[createVNode(e.AppSpinner,{class:"mx-auto"})])])]),key:"0"}:void 0,!e.isLoading&&e.locationOptionsComputed.length>0&&!e.props.useTUIAPI?{name:"appendToList",fn:withCtx(()=>[e.isLoadingFurtherPages?(openBlock(),createElementBlock("div",_hoisted_3$_,[createVNode(e.AppSpinner,{class:"mx-auto"})])):createCommentVNode("",!0),createVNode(e.CTAButton,{containerClass:"mt-6 mb-4 cursor-default",styleType:"secondary",sizeType:"extra-small",disabled:e.keyword?e.isSearchLastPage:e.isBaseLastPage,onClick:e.handleClickLoadMore},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("Load more")),1)]),_:1},8,["disabled"])]),key:"1"}:void 0]),1032,["modelValue","options","labelText","placeholderText","noResultsText","clearOnBlur","disabled","enableGlassDesign"])],2)}const HotelPicker=_export_sfc(_sfc_main$1w,[["render",_sfc_render$1w],["__scopeId","data-v-b8b7fae3"],["__file","HotelPicker.vue"]]),__default__$1u={name:"SubTabHotel"},_sfc_main$1v=Object.assign(__default__$1u,{props:{datePicker:{type:Object,default:null},description:{type:String,default:""},tooltipLabel:{type:String,default:""},tooltipBody:{type:String,default:""},hotelSelection:{type:Object,default:null},travellerSelection:{type:Object,default:null},productID:{type:String,default:""},note:{type:String,default:""},endpoint:{type:String,default:""},hotelSearchPropertyUrl:{type:String,default:""},dropDownHotelListApiUrl:{type:String,default:""},cultureCode:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1},componentIdAA:{type:String,default:""}},emits:["form-submission"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(null),{pageProperties:s}=useGlobalAEMState$1(),l=async(k,E)=>{console.log("✅ handleSubmitValid values = ",k),n("form-submission");const w=k==null?void 0:k.room.map(({adults:H,children:U,childAge:B,infants:L},z)=>{let W={};return U&&B.length&&B.forEach((J,te)=>{W[`PaxInfos[${z}].ChildAges[${te}]`]=J}),{...H?{[`PaxInfos[${z}].AdultCount`]:H}:null,...U?{[`PaxInfos[${z}].ChildCount`]:U}:null,...L?{[`PaxInfos[${z}].InfantCount`]:L}:null,...B!=null&&B.length?W:null}}),D=w.reduce((H,U)=>({...H,...U})),{countryName:N,regionName:F,cityCode:V,name:A,type:M,id:O}=m.value,R={To:m.value.value.split("|")[0],CultureCode:e.cultureCode,DepartureDate:u.value,ReturnDate:f.value,Currency:s.value.baseCurrency,RoomCount:k.room.length,ProductId:e.productID,...m.value.cityId!=="0"?{HotelCode:m.value.cityId}:null,...w.length?D:null},I=M==="hotel"?`${e.hotelSearchPropertyUrl}/${N}/${d(F)}/${V}/${d(A)}/${O}`:e.endpoint,j=new URL(I);Object.keys(R).forEach(H=>{j.searchParams.append(H,R[H])}),window.location.href=j.toString()},d=k=>k?k.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase():"",c=({values:k,errors:E,results:w,evt:D})=>{console.log("❌ handleSubmitInvalid errors = ",E)},u=ref$1(null),f=ref$1(null),m=ref$1(null),b=2,y=14,_=computed(()=>{const k=e.datePicker;return!(k!=null&&k.departureDateConfig)||typeof(k==null?void 0:k.departureDateConfig)!="number"?b:k==null?void 0:k.departureDateConfig}),S=computed(()=>{const k=e.datePicker;return!(k!=null&&k.returnDateConfig)||typeof(k==null?void 0:k.returnDateConfig)!="number"?y:k==null?void 0:k.returnDateConfig}),C=computed(()=>{const k=a.value;return k?!k.values.location||!k.values.dateDeparture||!k.values.dateReturn||!k.values.room.length||Object.keys(k.errors).length!==0:!0}),T=window.siteName,x={props:e,emit:n,formWrapper:a,rootEl:i,pageProperties:s,handleSubmitValid:l,getFormattedName:d,handleSubmitInvalid:c,dateRangeValueFrom:u,dateRangeValueTo:f,locationValue:m,defaultMinDate:b,defaultMaxDate:y,computedMinDate:_,computedMaxDate:S,isBtnSubmitDisabled:C,siteName:T,DropdownTravellersAndRoom,HotelPicker,Dropdown,CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,TextField,FormWrapper,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1},Tooltip,get i18nGlobal(){return i18nGlobal}};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),_hoisted_1$1K={ref:"rootEl",class:"SubTabHotel"},_hoisted_2$1n={key:0,class:"mb-5"},_hoisted_3$Z={class:"flex items-center"},_hoisted_4$S={class:""},_hoisted_5$O={class:"flex mt-6 gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_6$K={class:"flex flex-grow gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_7$J={class:"w-1/2 lg:w-full component-wrapper"},_hoisted_8$G={class:"w-1/2 lg:w-full component-wrapper"},_hoisted_9$D={class:"cta-wrapper"},_hoisted_10$v={key:2,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_11$u={class:"text-sm"};function _sfc_render$1v(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa");return openBlock(),createElementBlock("div",_hoisted_1$1K,[createVNode(e.FormWrapper,{ref:"formWrapper",focusFirstErrorElOnInvalidSubmit:!0,
1171class:"","data-use-theme":e.siteName,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:c})=>{var u,f,m,b,y,_,S,C,T,x,k,E,w,D;return[e.props.description?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$1n,null,512)),[[l,e.props.description]]):createCommentVNode("",!0),e.props.tooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$Z,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.tooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipBody),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$S,[createVNode(e.HotelPicker,{modelValue:e.locationValue,"onUpdate:modelValue":o[0]||(o[0]=N=>e.locationValue=N),apiUrl:e.props.dropDownHotelListApiUrl,hotelSelection:e.props.hotelSelection,useTUIAPI:!0,enableGlassDesign:e.props.enableGlassDesign},{"mobile-title":withCtx(()=>{var N;return[createBaseVNode("span",null,toDisplayString((N=e.props.hotelSelection)==null?void 0:N.toQuestionMobileHotel),1)]}),_:1},8,["modelValue","apiUrl","hotelSelection","enableGlassDesign"])]),createBaseVNode("div",_hoisted_5$O,[createBaseVNode("div",_hoisted_6$K,[createBaseVNode("div",_hoisted_7$J,[createVNode(e.DateRangePicker,{modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[1]||(o[1]=N=>e.dateRangeValueFrom=N),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[2]||(o[2]=N=>e.dateRangeValueTo=N),textFieldAttrsFrom:{ariaLabel:(u=e.props.datePicker)==null?void 0:u.checkInLabel,placeholder:e.i18nGlobal.t("Select a date")},textFieldAttrsTo:{ariaLabel:(f=e.props.datePicker)==null?void 0:f.checkOutLabel,placeholder:e.i18nGlobal.t("Select a date")},minDate:`t+${e.computedMinDate}d`,maxDate:"t+1y",maxDateFromAfterSelectingTo:`t+${e.computedMaxDate}d`,disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(m=e.props.datePicker)==null?void 0:m.dateErrorMessageHotel,requiredErrorMsgTo:(b=e.props.datePicker)==null?void 0:b.dateErrorMessageHotel,labelReset:((y=e.props.datePicker)==null?void 0:y.resetButtonCTATextHotel)??t.$t("Reset"),labelDone:((_=e.props.datePicker)==null?void 0:_.doneCTATextHotel)??t.$t("Done"),enableGlassDesign:e.props.enableGlassDesign,selectDateLabel:(S=e.props.datePicker)==null?void 0:S.selectDateLabel,hideOneWay:!0},{"mobile-title":withCtx(()=>{var N;return[createBaseVNode("span",null,toDisplayString((N=e.props.datePicker)==null?void 0:N.datePickerQuestionMobileHotel),1)]}),_:1},8,["modelValueFrom","modelValueTo","textFieldAttrsFrom","textFieldAttrsTo","minDate","maxDateFromAfterSelectingTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","enableGlassDesign","selectDateLabel"])]),createBaseVNode("div",_hoisted_8$G,[createVNode(e.DropdownTravellersAndRoom,{labelText:(C=e.props.travellerSelection)==null?void 0:C.label,adultLabel:(T=e.props.travellerSelection)==null?void 0:T.adultLabel,childrenLabel:(x=e.props.travellerSelection)==null?void 0:x.childrenLabel,infantLabel:(k=e.props.travellerSelection)==null?void 0:k.infantLabel,teenagerLabel:(E=e.props.travellerSelection)==null?void 0:E.teenagerLabel,enableGlassDesign:e.props.enableGlassDesign,combinedAnyExceededMsg:"Maximum {n} in all rooms",combinedAdultChildExceededMsg:"Maximum {n} in all rooms excluding infants",combinedInfantExceededMsg:"Maximum {n} infants"},{"mobile-title":withCtx(()=>{var N;return[createBaseVNode("span",null,toDisplayString((N=e.props.travellerSelection)==null?void 0:N.questionMobile),1)]}),_:1},8,["labelText","adultLabel","childrenLabel","infantLabel","teenagerLabel","enableGlassDesign"])])]),createBaseVNode("div",_hoisted_9$D,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled,class:normalizeClass({"class-design-ct-btn":e.props.enableGlassDesign}),enableGlassDesign:e.props.enableGlassDesign},{default:withCtx(()=>{var N;return[createTextVNode(toDisplayString((N=e.props.travellerSelection)==null?void 0:N.buttonLabel),1)]}),_:1},8,["sizeType","ctaSizing","disabled","class","enableGlassDesign"])),[[d,[{clickName:(w=e.props.travellerSelection)==null?void 0:w.buttonLabel,clickComponentType:"Button",componentName:"SubTabHotel",componentID:e.props.componentIdAA},{name:(D=e.props.travellerSelection)==null?void 0:D.buttonLabel,type:"exit"}]]])])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_10$v,[createVNode(s,{class:"fill-primary-blue-base text-base"}),createBaseVNode("div",_hoisted_11$u,[createBaseVNode("p",null,toDisplayString(e.props.note),1)])])):createCommentVNode("",!0)]}),_:1},8,["data-use-theme"])],512)}const SubTabHotel=_export_sfc(_sfc_main$1v,[["render",_sfc_render$1v],["__scopeId","data-v-e6603c09"],["__file","SubTabHotel.vue"]]),__default__$1t={name:"FlightHotelSearch",inheritAttrs:!1},_sfc_main$1u=Object.assign(__default__$1t,{props:{flightHotelSearch:{type:Object,default:null},hotelTab:{type:Object,default:null},mhHolidays:{type:Object,default:null},flightHotelSearchApiURL:{type:String,default:""},hotelSearchApiURL:{type:String,default:""},isInBookingWidget:{type:Boolean,default:!1}
1171,dropDownHotelListApiUrl:{type:String,default:""},cultureCode:{type:String,default:""},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:["update:active-sub-tab"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),{isMobileSubpageVisible:i}=useBookingWidgetSubpage({hashKey:["flight-hotel-search","flight-hotel-search-tab"],rootEl:a}),s=ref$1("flight-hotel"),{isEditorMode:l}=useGlobalAEMState$1();watch(s,y=>{pushAA_click([{clickName:y,clickComponentType:"Button",componentName:"FlightHotelSearch",componentID:e.componentIdAA},{name:y,type:"other"}])});let d=!1,c=!1;const u=ref$1(""),f=ref$1(null);onMounted(()=>{const y=S=>{d||S.target.tagName!=="FORM"&&(d=!0,pushAA_flightPlusHotelStart(s.value),a.value.removeEventListener("focus",y,{capture:!0}))};a.value.addEventListener("focus",y,{capture:!0});const _=document.querySelector(".global-header");_&&(_.classList.contains("fixed")?u.value="blended-header-css":u.value="",f.value=getCookie("mobileProperties"))});const b={props:e,emit:n,rootEl:a,isMobileSubpageVisible:i,activeSubTab:s,isEditorMode:l,get AAHasSentStart(){return d},set AAHasSentStart(y){d=y},get AAHasSentEnd(){return c},set AAHasSentEnd(y){c=y},blendedHeaderCss:u,mobileProperties:f,sendFormCompleteAA:y=>{c||(c=!0,pushAA_flightPlusHotelEnd(y))},MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},VueTabs,SubTabFlightAndHotel,SubTabHotel,get useGlobalAEMState(){return useGlobalAEMState$1},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},get pushAA_flightPlusHotelStart(){return pushAA_flightPlusHotelStart},get pushAA_flightPlusHotelEnd(){return pushAA_flightPlusHotelEnd},get pushAA_click(){return pushAA_click},ExperienceFragment,MobileSubPageSwiper,get getCookie(){return getCookie}};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),_hoisted_1$1J={class:"generic-container"},_hoisted_2$1m={key:0,class:"title-editor-mode"},_hoisted_3$Y={class:"flex items-center justify-center p-4"},_hoisted_4$R={class:"inline-block ml-1"},_hoisted_5$N={class:"flex items-center justify-center p-4"},_hoisted_6$J={class:"inline-block ml-1"},_hoisted_7$I={key:0,class:"text-center"},_hoisted_8$F={key:1,class:"text-center"},_hoisted_9$C={class:"flex items-center justify-center p-4"},_hoisted_10$u={class:"inline-block ml-1"},_hoisted_11$t={class:"flex items-center justify-center p-4"},_hoisted_12$s={class:"inline-block ml-1"},_hoisted_13$q={key:0,identifier:"flight-hotel"},_hoisted_14$q={key:1,identifier:"hotel"};function _sfc_render$1u(t,o,r,e,n,a){var d,c,u,f,m,b,y,_,S,C,T,x;const i=__unplugin_components_0$9,s=resolveComponent("AppHyperlink"),l=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[e.props.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,ref:"rootEl",class:normalizeClass(["FlightHotelSearch booking-widget-subcomponent",{isEditorMode:e.isEditorMode}])},[createBaseVNode("div",_hoisted_1$1J,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$1m,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[9]||(o[9]=createBaseVNode("span",null,"Booking Widget: Flight Hotel + Search",-1))])):createCommentVNode("",!0),createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[2]||(o[2]=k=>e.activeSubTab=k),o[3]||(o[3]=k=>t.$emit("update:active-sub-tab",k))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",enableGlassDesign:((d=e.props.flightHotelSearch)==null?void 0:d.enableGlassDesign)||((c=e.props.hotelTab)==null?void 0:c.enableGlassDesign)},createSlots({default:withCtx(()=>{var k,E,w,D,N,F;return[!((k=e.props.flightHotelSearch)!=null&&k.isHideInDesktop)&&((E=e.props.flightHotelSearch)!=null&&E.label)?(openBlock(),createElementBlock("div",{key:0,identifier:"flight-hotel",class:normalizeClass({"py-10":e.isEditorMode})},[e.props.flightHotelSearch.widgetType==="embedWidget"?(openBlock(),createBlock(e.ExperienceFragment,{key:0,class:"flex-grow mt-4",xfPath:e.props.flightHotelSearch.embedWidget,showSpinner:!0},null,8,["xfPath"])):(openBlock(),createBlock(e.SubTabFlightAndHotel,{key:1,class:"pt-6",datePicker:e.props.flightHotelSearch.datePicker,description:e.props.flightHotelSearch.description,tooltipLabel:e.props.flightHotelSearch.tooltipLabel,tooltipBody:e.props.flightHotelSearch.tooltipBody,ondSelection:e.props.flightHotelSearch.ondSelection,travellerSelection:e.props.flightHotelSearch.travellerSelection,cabinClass:e.props.flightHotelSearch.cabinClass,note:e.props.flightHotelSearch.note,productID:e.props.flightHotelSearch.productID,endpoint:e.props.flightHotelSearchApiURL,cultureCode:e.props.cultureCode,enableGlassDesign:(w=e.props.flightHotelSearch)==null?void 0:w.enableGlassDesign,onFormSubmission:o[0]||(o[0]=V=>e.sendFormCompleteAA("flight-hotel",V))},null,8,["datePicker","description","tooltipLabel","tooltipBody","ondSelection","travellerSelection","cabinClass","
1171note","productID","endpoint","cultureCode","enableGlassDesign"]))],2)):createCommentVNode("",!0),!((D=e.props.hotelTab)!=null&&D.isHideInDesktop)&&((N=e.props.hotelTab)!=null&&N.label)?(openBlock(),createElementBlock("div",{key:1,identifier:"hotel",class:normalizeClass({"py-10":e.isEditorMode})},[e.props.hotelTab.widgetType==="embedWidget"?(openBlock(),createBlock(e.ExperienceFragment,{key:0,class:"flex-grow",xfPath:e.props.hotelTab.embedWidget,showSpinner:!0},null,8,["xfPath"])):(openBlock(),createBlock(e.SubTabHotel,{key:1,class:"pt-6",datePicker:e.props.hotelTab.datePicker,description:e.props.hotelTab.description,tooltipLabel:e.props.hotelTab.tooltipLabel,tooltipBody:e.props.hotelTab.tooltipBody,hotelSelection:e.props.hotelTab.hotelSelection,travellerSelection:e.props.hotelTab.travellerSelection,note:e.props.hotelTab.note,productID:e.props.hotelTab.productID,endpoint:e.props.hotelSearchApiURL,hotelSearchPropertyUrl:e.props.hotelTab.hotelSearchPropertyUrl,dropDownHotelListApiUrl:e.props.dropDownHotelListApiUrl,cultureCode:e.props.cultureCode,enableGlassDesign:(F=e.props.hotelTab)==null?void 0:F.enableGlassDesign,onFormSubmission:o[1]||(o[1]=V=>e.sendFormCompleteAA("hotel",V))},null,8,["datePicker","description","tooltipLabel","tooltipBody","hotelSelection","travellerSelection","note","productID","endpoint","hotelSearchPropertyUrl","dropDown
1171HotelListApiUrl","cultureCode","enableGlassDesign"]))],2)):createCommentVNode("",!0)]}),_:2},[!((u=e.props.flightHotelSearch)!=null&&u.isHideInDesktop)&&((f=e.props.flightHotelSearch)!=null&&f.label)?{name:"tab-flight-hotel",fn:withCtx(()=>{var k;return[createBaseVNode("div",_hoisted_3$Y,[createBaseVNode("span",_hoisted_4$R,toDisplayString((k=e.props.flightHotelSearch)==null?void 0:k.label),1)])]}),key:"0"}:void 0,!((m=e.props.hotelTab)!=null&&m.isHideInDesktop)&&((b=e.props.hotelTab)!=null&&b.label)?{name:"tab-hotel",fn:withCtx(()=>{var k;return[createBaseVNode("div",_hoisted_5$N,[createBaseVNode("span",_hoisted_6$J,toDisplayString((k=e.props.hotelTab)==null?void 0:k.label),1)])]}),key:"1"}:void 0,!((y=e.props.mhHolidays)!=null&&y.isHideInDesktop)&&((_=e.props.mhHolidays)!=null&&_.subHeaderTab3Label)?{name:"link-mhholidays",fn:withCtx(()=>{var k,E,w,D;return[withDirectives((openBlock(),createBlock(s,{href:(k=e.props.mhHolidays)==null?void 0:k.ctaPath,class:"font-semibold text-$text-color rounded-xl px-4 hover:bg-neutral-grey-extralight h-full leading-none",target:e.props.mhHolidays.openInNewTab?"_blank":"_self",autoExternalLinkIcon:!0},{default:withCtx(()=>{var N;return[createTextVNode(toDisplayString((N=e.props.mhHolidays)==null?void 0:N.subHeaderTab3Label),1)]}),_:1},8,["href","target"])),[[l,[{clickName:(E=e.props.mhHolidays)==null?void 0:E.subHeaderTab3Label,clickComponentType:"Button",componentName:"FlightHotelSearch",componentID:e.props.componentIdAA},{name:(w=e.props.mhHolidays)==null?void 0:w.subHeaderTab3Label,type:e.isUrlMatchCurrentHostname((D=e.props.mhHolidays)==null?void 0:D.ctaPath)?"other":"exit"}]]])]}),key:"2"}:void 0]),1032,["modelValue","dormantMode","enableGlassDesign"])])],2)),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,mobileSubPageDesign:(S=e.props.flightHotelSearch)!=null&&S.enableGlassDesign||(C=e.props.hotelTab)!=null&&C.enableGlassDesign?"glass-design":"MH",enableGlassDesign:((T=e.props.flightHotelSearch)==null?void 0:T.enableGlassDesign)||((x=e.props.hotelTab)==null?void 0:x.enableGlassDesign),blendedHeaderCss:e.blendedHeaderCss,class:"text-white",mobileSwiperTabs:e.props.mobileSwiperTabs,style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},"onUpdate:isVisible":o[8]||(o[8]=k=>e.isMobileSubpageVisible=k)},{"banner-title":withCtx(()=>{var k;return[createBaseVNode("div",null,[(k=e.props.flightHotelSearch)!=null&&k.enableGlassDesign?(openBlock(),createElementBlock("h3",_hoisted_8$F,toDisplayString(t.$t("Flight & Hotel Search")),1)):(openBlock(),createElementBlock("h1",_hoisted_7$I,toDisplayString(t.$t("Flight & Hotel Search")),1))])]}),swiper:withCtx(()=>[renderSlot(t.$slots,"banner-title",{},()=>[createVNode(e.MobileSubPageSwiper,{mobileSwiperTabs:e.props.mobileSwiperTabs.length===0?JSON.parse(e.mobileProperties):e.props.mobileSwiperTabs,activeTab:"#flight-hotel-search"},null,8,["mobileSwiperTabs"])],!0)]),default:withCtx(()=>{var k,E,w,D,N,F,V;return[createBaseVNode("div",{class:normalizeClass(["generic-container",{"mt-4":(k=e.props.flightHotelSearch)==null?void 0:k.enableGlassDesign}])},[createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[6]||(o[6]=A=>e.activeSubTab=A),o[7]||(o[7]=A=>t.$emit("update:active-sub-tab",A))],dormantMode:e.isEditorMode,enableGlassDesign:((E=e.props.flightHotelSearch)==null?void 0:E.enableGlassDesign)||((w=e.props.hotelTab)==null?void 0:w.enableGlassDesign),renderPanelsWithVShow:""},createSlots({default:withCtx(()=>{var A,M,O,R;return[(A=e.props.flightHotelSearch)!=null&&A.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_13$q,[e.props.flightHotelSearch.widgetType==="embedWidget"?(openBlock(),createBlock(e.ExperienceFragment,{key:0,class:"flex-grow mt-4",xfPath:e.props.flightHotelSearch.embedWidget,showSpinner:!0},null,8,["xfPath"])):(openBlock(),createBlock(e.SubTabFlightAndHotel,{key:1,class:"pt-6",datePicker:e.props.flightHotelSearch.datePicker,description:e.props.flightHotelSearch.description,tooltipLabel:e.props.flightHotelSearch.tooltipLabel,tooltipBody:e.props.flightHotelSearch.tooltipBody,ondSelection:e.props.flightHotelSearch.ondSelection,travellerSelection:e.props.flightHotelSearch.travellerSelection,cabinClass:e.props.flightHotelSearch.cabinClass,note:e.props.flightHotelSearch.note,productID:e.props.flightHotelSearch.productID,endpoint:e.props.flightHotelSearchApiURL,cultureCode:e.props.cultureCode,enableGlassDesign:(M=e.props.flightHotelSearch)==null?void 0:M.enableGlassDesign,onFormSubmission:o[4]||(o[4]=I=>e.sendFormCompleteAA("flight-hotel",I))},null,8,["datePicker","description","tooltipLabel","tooltipBody","ondSelection","travellerSelection","cabinClass","
1171note","productID","endpoint","cultureCode","enableGlassDesign"]))])),(O=e.props.hotelTab)!=null&&O.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_14$q,[e.props.hotelTab.widgetType==="embedWidget"?(openBlock(),createBlock(e.ExperienceFragment,{key:0,class:"flex-grow",xfPath:e.props.hotelTab.embedWidget,showSpinner:!0},null,8,["xfPath"])):(openBlock(),createBlock(e.SubTabHotel,{key:1,class:"pt-6",datePicker:e.props.hotelTab.datePicker,description:e.props.hotelTab.description,tooltipLabel:e.props.hotelTab.tooltipLabel,tooltipBody:e.props.hotelTab.tooltipBody,hotelSelection:e.props.hotelTab.hotelSelection,travellerSelection:e.props.hotelTab.travellerSelection,note:e.props.hotelTab.note,productID:e.props.hotelTab.productID,endpoint:e.props.hotelSearchApiURL,hotelSearchPropertyUrl:e.props.hotelTab.hotelSearchPropertyUrl,dropDownHotelListApiUrl:e.props.dropDownHotelListApiUrl,cultureCode:e.props.cultureCode,enableGlassDesign:(R=e.props.hotelTab)==null?void 0:R.enableGlassDesign,onFormSubmission:o[5]||(o[5]=I=>e.sendFormCompleteAA("hotel",I))},null,8,["datePicker","description","tooltipLabel","tooltipBody","hotelSelection","travellerSelection","note","productID","endpoint","hotelSearchPropertyUrl","dropDown
1171HotelListApiUrl","cultureCode","enableGlassDesign"]))]))]}),_:2},[(D=e.props.flightHotelSearch)!=null&&D.isHideInMobile?void 0:{name:"tab-flight-hotel",fn:withCtx(()=>{var A;return[createBaseVNode("div",_hoisted_9$C,[createBaseVNode("span",_hoisted_10$u,toDisplayString((A=e.props.flightHotelSearch)==null?void 0:A.label),1)])]}),key:"0"},(N=e.props.hotelTab)!=null&&N.isHideInMobile?void 0:{name:"tab-hotel",fn:withCtx(()=>{var A;return[createBaseVNode("div",_hoisted_11$t,[createBaseVNode("span",_hoisted_12$s,toDisplayString((A=e.props.hotelTab)==null?void 0:A.label),1)])]}),key:"1"},!((F=e.props.mhHolidays)!=null&&F.isHideInMobile)&&((V=e.props.mhHolidays)!=null&&V.subHeaderTab3Label)?{name:"link-mhholidays",fn:withCtx(()=>{var A,M,O,R;return[withDirectives((openBlock(),createBlock(s,{href:(A=e.props.mhHolidays)==null?void 0:A.ctaPath,class:"font-semibold text-$text-color rounded-xl px-4 hover:bg-neutral-grey-extralight h-full leading-none",target:e.props.mhHolidays.openInNewTab?"_blank":"_self",autoExternalLinkIcon:!0},{default:withCtx(()=>{var I;return[createTextVNode(toDisplayString((I=e.props.mhHolidays)==null?void 0:I.subHeaderTab3Label),1)]}),_:1},8,["href","target"])),[[l,[{clickName:(M=e.props.mhHolidays)==null?void 0:M.subHeaderTab3Label,clickComponentType:"Button",componentName:"FlightHotelSearch",componentID:e.props.componentIdAA},{name:(O=e.props.mhHolidays)==null?void 0:O.subHeaderTab3Label,type:e.isUrlMatchCurrentHostname((R=e.props.mhHolidays)==null?void 0:R.ctaPath)?"other":"exit"}]]])]}),key:"2"}:void 0]),1032,["modelValue","dormantMode","enableGlassDesign"])],2)]}),_:3},8,["isVisible","mobileSubPageDesign","enableGlassDesign","blendedHeaderCss","mobileSwiperTabs"])],64)}const FlightHotelSearch=_export_sfc(_sfc_main$1u,[["render",_sfc_render$1u],["__scopeId","data-v-121f3068"],["__file","FlightHotelSearch.vue"]]),FlightHotelSearch$1=Object.freeze(Object.defineProperty({__proto__:null,default:FlightHotelSearch},Symbol.toStringTag,{value:"Module"})),__default__$1s={name:"FlightSchedule",inheritAttrs:!1},_sfc_main$1t=Object.assign(__default__$1s,{props:{isInBookingWidget:{type:Boolean,default:!1},flightScheduleDescription:{type:String,default:""},flightScheduleToolTipLabel:{type:String,default:""},flightScheduleToolTip:{type:String,default:""},flightScheduleNote:{type:String,default:""},flightScheduleButtonTitle:{type:String,default:""},fromFieldLabel:{type:String,default:""},fromMandatoryField:{type:Boolean,default:!1},fromMandatoryFieldErrorMessage:{type:String,default:""},toFieldLabel:{type:String,default:""},toMandatoryFieldErrorMessage:{type:String,default:""},toMandatoryField:{type:Boolean,default:!1},dateMandatoryField:{type:Boolean,default:!1},noResultMessage:{type:String,default:""},departDateFieldLabel:{type:String,default:""},returnDateFieldLabel:{type:String,default:""},maxDaysFuture:{type:String,default:""},resetButtonCtaText:{type:String,default:""},onewayCtaText:{type:String,default:""},doneCtaText:{type:String,default:""},autoReturnDate:{type:String,default:null},apiUrl:{type:String,default:"/bin/flight-schedule"},componentIdAA:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!0},placeHolderFrom:{type:String,default:""},placeHolderTo:{type:String,default:""},selectDateLabel:{type:String,default:""},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(null),{isMobileSubpageVisible:s}=useBookingWidgetSubpage({hashKey:["flight-schedule","flight-schedule-tab"],rootEl:a}),{pageProperties:l,isEditorMode:d}=useGlobalAEMState$1(),c=l.value.rootCountry,u=l.value.rootLanguage,f=A=>A.charAt(0).toUpperCase()+A.slice(1),m=(A,M)=>{console.log("✅ handleSubmitValid values = ",A),D()},b=({values:A,errors:M,results:O,evt:R})=>{console.log("❌ handleSubmitInvalid errors = ",M)},y=ref$1(null),_=ref$1(null),S=ref$1(null),C=ref$1(null),T=computed(()=>(y.value,_.value,i.value?!y.value||!_.value||Object.keys(i.value.errors).length!==0:!0)),x=ref$1(!1),k=computed(()=>e.maxDaysFuture?`t+${e.maxDaysFuture}d`:null),E=(A,M)=>dayjs(A).hour(M).format("YYYYMMDDHHmm"),w=computed(()=>{const A=S.value||dayjs(),M=C.value||dayjs(A).add(e.autoReturnDate,"day");return{dateRangeFrom:E(A,12),dateRangeTo:E(M,12)}}),D=()=>{const A={departDate:w.value.dateRangeFrom,...x.value?{}:{returnDate:w.value.dateRangeTo},origin:y.value.code,destination:_.value.code,tripType:x.value?"O":"R",regionLanguage:c&&u?`${c}-${f(u)}`:""};axios$1.post(e.apiUrl,A).then(({data:M})=>
1171{if(Object.keys(M).length!==0){const O=new URL(M.url);Object.keys(M.payload).forEach(R=>{O.searchParams.append(R,M.payload[R])}),window.location.href=O.toString()}}).catch(M=>{console.error(M)})},N=ref$1(""),F=ref$1(null);onMounted(()=>{const A=document.querySelector(".global-header");A&&(A.classList.contains("fixed")?N.value="blended-header-css":N.value="",F.value=getCookie("mobileProperties"))});const V={props:e,emit:n,rootEl:a,formWrapper:i,isMobileSubpageVisible:s,pageProperties:l,isEditorMode:d,country:c,language:u,capitalizeString:f,handleSubmitValid:m,handleSubmitInvalid:b,ondValueFrom:y,ondValueTo:_,dateRangeValueFrom:S,dateRangeValueTo:C,isBtnSubmitDisabled:T,isOneWay:x,maxDateComputed:k,inputDateHourFormat:E,computedScheduleDate:w,formSubmission:D,blendedHeaderCss:N,mobileProperties:F,get yup(){return yup},MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},get useGlobalAEMState(){return useGlobalAEMState$1},CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,FormWrapper,Tooltip,get isMobileViewport(){return isMobileViewport},get axios(){return axios$1},get dayjs(){return dayjs},MobileSubPageSwiper,get getCookie(){return getCookie}};return Object.defineProperty(V,"__isScriptSetup",{enumerable:!1,value:!0}),V}}),_hoisted_1$1I={class:"generic-container"},_hoisted_2$1l={key:0,class:"title-editor-mode"},_hoisted_3$X={class:"mb-6"},_hoisted_4$Q={key:1,class:"check-in-tooltip flex items-center mb-6"},_hoisted_5$M={class:"ml-3"},_hoisted_6$I={class:"flex-grow lg:w-full"},_hoisted_7$H={class:"w-4/10 lg:w-full"},_hoisted_8$E={class:"w-[max-content] flex-none xl:w-full"},_hoisted_9$B={class:"flex mt-6"},_hoisted_10$t={class:"rounded-xl bg-primary-blue-extralight flex-grow px-5 py-4 flex"},_hoisted_11$s={class:"basis-6 flex-none mr-3 rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_12$r={class:"typo-body-text-2"},_hoisted_13$p={key:0,class:"text-center"},_hoisted_14$p={key:1,class:"text-center"},_hoisted_15$o={class:"mb-6 text-sm"},_hoisted_16$n={key:0,class:"check-in-tooltip flex items-center mb-6"},_hoisted_17$k={class:"ml-3 text-sm"},_hoisted_18$i={class:"flex-grow lg:w-full"},_hoisted_19$g={class:"w-4/10 lg:w-full"},_hoisted_20$g={class:"w-[max-content] flex-none xl:w-full"},_hoisted_21$g={class:"flex mt-6"},_hoisted_22$f={class:"rounded-xl bg-primary-blue-extralight flex-grow px-5 py-4 flex"},_hoisted_23$d={class:"basis-6 flex-none mr-3 rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_24$c={class:"typo-body-text-2"};function _sfc_render$1t(t,o,r,e,n,a){const i=__unplugin_components_0$9,s=__unplugin_components_0$n,l=__unplugin_components_1$c,d=resolveDirective("html-sanitize"),c=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[e.props.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,ref:"rootEl",class:normalizeClass(["FlightSchedule booking-widget-subcomponent",{isEditorMode:e.isEditorMode}])},[createBaseVNode("div",_hoisted_1$1I,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$1l,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[11]||(o[11]=createBaseVNode("span",null,"Booking Widget: Flight Schedule",-1))])):createCommentVNode("",!0),withDirectives(createBaseVNode("p",_hoisted_3$X,null,512),[[d,e.props.flightScheduleDescription]]),e.props.flightScheduleToolTipLabel&&e.props.flightScheduleToolTip?(openBlock(),createElementBlock("div",_hoisted_4$Q,[createVNode(e.Tooltip,null,{default:withCtx(()=>[createVNode(s,{class:"fill-primary-blue-base"})]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.flightScheduleToolTipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("p",null,null,512),[[d,e.props.flightScheduleToolTip]])]),_:1}),createBaseVNode("span",_hoisted_5$M,toDisplayString(e.props.flightScheduleToolTipLabel),1)])):createCommentVNode("",!0),createVNode(e.FormWrapper,{ref:"formWrapper",class:"form-container flex gap-6 xl:gap-3 xl:flex-wrap lg:flex-col",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:u})=>[createBaseVNode("div",_hoisted_6$I,[createVNode(e.ONDPicker,{modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[
11710]||(o[0]=f=>e.ondValueFrom=f),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":o[1]||(o[1]=f=>e.ondValueTo=f),nameFrom:"flight-schedule-from",nameTo:"flight-schedule-to",requiredFrom:e.props.fromMandatoryField,requiredTo:e.props.toMandatoryField,requiredErrorMsgFrom:e.props.fromMandatoryFieldErrorMessage,requiredErrorMsgTo:e.props.toMandatoryFieldErrorMessage,labelTextFrom:e.props.fromFieldLabel,labelTextTo:e.props.toFieldLabel,noResultsText:e.props.noResultMessage,ondListIdentifier:"FLIGHT_SCHEDULE",enableGlassDesign:e.props.enableGlassDesign,placeHolderFrom:e.props.placeHolderFrom,placeHolderTo:e.props.placeHolderTo},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("p",null,toDisplayString(e.props.fromFieldLabel),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("p",null,toDisplayString(e.props.toFieldLabel),1)]),_:1},8,["modelValueFrom","modelValueTo","requiredFrom","requiredTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","noResultsText","enableGlassDesign","placeHolderFrom","placeHolderTo"])]),createBaseVNode("div",_hoisted_7$H,[createVNode(e.DateRangePicker,{modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[2]||(o[2]=f=>e.dateRangeValueFrom=f),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[3]||(o[3]=f=>e.dateRangeValueTo=f),textFieldAttrsFrom:{ariaLabel:e.props.departDateFieldLabel,placeholder:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:e.props.returnDateFieldLabel,placeholder:t.$t("Select a date")},maxDate:e.maxDateComputed,disablePastDates:!0,nameFrom:"flightScheduleDeparture",nameTo:"flightScheduleReturn",requiredErrorMsgFrom:e.props.dateMandatoryFieldErrorMessage,requiredErrorMsgTo:e.props.dateMandatoryFieldErrorMessage,labelReset:e.props.resetButtonCtaText??t.$t("Reset"),labelDone:e.props.doneCtaText??t.$t("Done"),labelOneWay:e.props.onewayCtaText??t.$t("One-way"),enableGlassDesign:e.props.enableGlassDesign,selectDateLabel:e.props.selectDateLabel,"onUpdate:isOneWay":o[4]||(o[4]=f=>e.isOneWay=f)},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(t.$t("Select a date")),1)]),_:1},8,["modelValueFrom","modelValueTo","textFieldAttrsFrom","textFieldAttrsTo","maxDate","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","enableGlassDesign","selectDateLabel"])]),createBaseVNode("div",_hoisted_8$E,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled,alignmentDesktop:"right",class:normalizeClass(["lg:mx-auto lg:mt-3",{"class-design-ct-btn":e.props.enableGlassDesign}])},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.flightScheduleButtonTitle),1)]),_:1},8,["sizeType","ctaSizing","disabled","class"])),[[c,[{clickName:e.props.flightScheduleButtonTitle,clickComponentType:"Button",componentName:"FlightSchedule",componentID:e.props.componentIdAA},{name:e.props.flightScheduleButtonTitle,type:"exit"}]]])])]),_:1},512),createBaseVNode("div",_hoisted_9$B,[createBaseVNode("div",_hoisted_10$t,[createBaseVNode("div",_hoisted_11$s,[createVNode(l,{class:"fill-primary-blue-base","aria-hidden":"true"})]),createBaseVNode("div",_hoisted_12$r,[withDirectives(createBaseVNode("span",null,null,512),[[d,e.props.flightScheduleNote]])])])])])],2)),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",blendedHeaderCss:e.blendedHeaderCss,mobileSubPageDesign:e.props.enableGlassDesign?"glass-design":"MH",enableGlassDesign:e.props.enableGlassDesign,style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},mobileSwiperTabs:e.props.mobileSwiperTabs,"onUpdate:isVisible":o[10]||(o[10]=u=>e.isMobileSubpageVisible=u)},{"banner-title":withCtx(()=>[e.props.enableGlassDesign?(openBlock(),createElementBlock("h3",_hoisted_14$p,toDisplayString(t.$t("Flight Schedule")),1)):(openBlock(),createElementBlock("h1",_hoisted_13$p,toDisplayString(t.$t("Flight Schedule")),1))]),swiper:withCtx(()=>[renderSlot(t.$slots,"banner-title",{},()=>[createVNode(e.MobileSubPageSwiper,{mobileSwiperTabs:e.props.mobileSwiperTabs.length===0?JSON.parse(e.mobileProperties):e.props.mobileSwiperTabs,activeTab:"#flight-schedule"},null,8,["mobileSwiperTabs"])],!0)]),default:withCtx(()=>{var u;return[createBaseVNode("div",{class:normalizeClass(["generic-container my-4",{"mt-4":(u=e.props)==null?void 0:u.enableGlassDesign}])},[withDirectives(createBaseVNode("p",_hoisted_15$o,null,512),[[d,e.props.flightScheduleDescription]]),e.props.flightScheduleToolTipLabel&&e.props.flightScheduleToolTip?(openBlock(),createElementBlock("div",_hoisted_16$n,[createVNode(e.Tooltip,null,{default:withCtx(()=>[createVNode(s,{class:"fill-primary-blue-base"})]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.flightScheduleToolTipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("p",null,null,512),[[d,e.props.flightScheduleToolTip]])]),_:1}),createBaseVNode("span",_hoisted_17$k,toDisplayString(e.props.flightScheduleToolTipLabel),1)])):createCommentVNode("",!0),createVNode(e.FormWrapper,{class:"form-container flex gap-6 xl:gap-3 xl:flex-wrap lg:flex-col",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(()=>[createBaseVNode("div",_hoisted_18$i,[createVNode(e.ONDPicker,{modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[5]||(o[5]=f=>e.ondValueFrom=f),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":o[6]||(o[6]=f=>e.ondValueTo=f),nameFrom:"flight-schedule-from",nameTo:"flight-schedule-to",requiredFrom:!0,requiredTo:!0,labelTextFrom:e.props.fromFieldLabel,labelTextTo:e.props.toFieldLabel,noResultsText:e.props.noResultMessage,requiredErrorMsgFrom:"Please select the departure destination",requiredErrorMsgTo:"Please select the arrival destination",ondListIdentifier:"FLIGHT_SCHEDULE",enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValueFrom","modelValueTo","labelTextFrom","labelTextTo","no
1171ResultsText","enableGlassDesign"])]),createBaseVNode("div",_hoisted_19$g,[createVNode(e.DateRangePicker,{modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[7]||(o[7]=f=>e.dateRangeValueFrom=f),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[8]||(o[8]=f=>e.dateRangeValueTo=f),textFieldAttrsFrom:{ariaLabel:e.props.departDateFieldLabel,placeholder:e.props.departDateLabelPH?e.props.departDateLabelPH:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:e.props.returnDateFieldLabel,placeholder:e.props.returnDateLabelPH?e.props.returnDateLabelPH:t.$t("Select a date")},maxDate:e.maxDateComputed,disablePastDates:!0,nameFrom:"flightScheduleDeparture",nameTo:"flightScheduleReturn",requiredErrorMsgFrom:e.props.dateMandatoryFieldErrorMessage,requiredErrorMsgTo:e.props.dateMandatoryFieldErrorMessage,labelReset:e.props.resetButtonCtaText??t.$t("Reset"),labelDone:e.props.doneCtaText??t.$t("Done"),labelOneWay:e.props.onewayCtaText??t.$t("One-way"),enableGlassDesign:e.props.enableGlassDesign,"onUpdate:isOneWay":o[9]||(o[9]=f=>e.isOneWay=f)},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(t.$t("Select a date")),1)]),_:1},8,["modelValueFrom","modelValueTo","textFieldAttrsFrom","textFieldAttrsTo","maxDate","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","enableGlassDesign"])]),createBaseVNode("div",_hoisted_20$g,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",alignmentDesktop:"right",class:normalizeClass(["lg:mx-auto lg:mt-3",{"class-design-ct-btn":e.props.enableGlassDesign}])},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.flightScheduleButtonTitle),1)]),_:1},8,["sizeType","ctaSizing","class"])),[[c,[{clickName:e.props.flightScheduleButtonTitle,clickComponentType:"Button",componentName:"FlightSchedule",componentID:e.props.componentIdAA},{name:e.props.flightScheduleButtonTitle,type:"exit"}]]])])]),_:1}),createBaseVNode("div",_hoisted_21$g,[createBaseVNode("div",_hoisted_22$f,[createBaseVNode("div",_hoisted_23$d,[createVNode(l,{class:"fill-primary-blue-base","aria-hidden":"true"})]),createBaseVNode("div",_hoisted_24$c,[withDirectives(createBaseVNode("span",null,null,512),[[d,e.props.flightScheduleNote]])])])])],2)]}),_:3},8,["isVisible","blendedHeaderCss","mobileSubPageDesign","enableGlassDesign","mobileSwiperTabs"])],64)}const FlightSchedule=_export_sfc(_sfc_main$1t,[["render",_sfc_render$1t],["__scopeId","data-v-0806fd5d"],["__file","FlightSchedule.vue"]]),FlightSchedule$1=Object.freeze(Object.defineProperty({__proto__:null,default:FlightSchedule},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1H={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$f(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1H,o[0]||(o[0]=[createBaseVNode("path",{d:"M256 0C292.8 0 324.8 20.7 340.9 51.1C373.8 40.1 410.1 48.96 437 74.98C463 101 470.1 138.2 460.9 171.1C491.3 187.2 512 219.2 512 256C512 292.8 491.3 324.8 460.9 340.9C471 373.8 463 410.1 437 437C410.1 463 373.8 470.1 340.9 460.9C324.8 491.3 292.8 512 256 512C219.2 512 187.2 491.3 171.1 460.9C138.2 471 101 463 74.98 437C48.96 410.1 41 373.8 51.1 340.9C20.7 324.8 0 292.8 0 256C0 219.2 20.7 187.2 51.1 171.1C40.1 138.2 48.96 101 74.98 74.98C101 48.96 138.2 41 171.1 51.1C187.2 20.7 219.2 0 256 0V0zM192 224C209.7 224 224 209.7 224 192C224 174.3 209.7 160 192 160C174.3 160 160 174.3 160 192C160 209.7 174.3 224 192 224zM320 288C302.3 288 288 302.3 288 320C288 337.7 302.3 352 320 352C337.7 352 352 337.7 352 320C352 302.3 337.7 288 320 288zM336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L336.1 208.1z"},null,-1)]))}const __unplugin_components_1$2=markRaw({name:"fas-badge-percent",render:render$f}),_hoisted_1$1G={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$e(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1G,o[0]||(o[0]=[createBaseVNode("path",{d:"M374.6 310.6l-160 160C208.4 476.9 200.2 480 192 480s-16.38-3.125-22.62-9.375l
1171-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 370.8V64c0-17.69 14.33-31.1 31.1-31.1S224 46.31 224 64v306.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0S387.1 298.1 374.6 310.6z"},null,-1)]))}const __unplugin_components_7=markRaw({name:"fas-arrow-down",render:render$e}),_hoisted_1$1F={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$d(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1F,o[0]||(o[0]=[createBaseVNode("path",{d:"M361 215C375.3 223.8 384 239.3 384 256C384 272.7 375.3 288.2 361 296.1L73.03 472.1C58.21 482 39.66 482.4 24.52 473.9C9.377 465.4 0 449.4 0 432V80C0 62.64 9.377 46.63 24.52 38.13C39.66 29.64 58.21 29.99 73.03 39.04L361 215z"},null,-1)]))}const __unplugin_components_6=markRaw({name:"fas-play",render:render$d}),_hoisted_1$1E={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$c(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1E,o[0]||(o[0]=[createBaseVNode("path",{d:"M168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2H168.3zM192 256C227.3 256 256 227.3 256 192C256 156.7 227.3 128 192 128C156.7 128 128 156.7 128 192C128 227.3 156.7 256 192 256z"},null,-1)]))}const __unplugin_components_5=markRaw({name:"fas-location-dot",render:render$c}),_hoisted_1$1D={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"};function render$b(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1D,o[0]||(o[0]=[createBaseVNode("path",{d:"M115.4 136.8l102.1 37.35c35.13-81.62 86.25-144.4 139-173.7c-95.88-4.875-188.8 36.96-248.5 111.7C101.2 120.6 105.2 133.2 115.4 136.8zM247.6 185l238.5 86.87c35.75-121.4 18.62-231.6-42.63-253.9c-7.375-2.625-15.12-4.062-23.12-4.062C362.4 13.88 292.1 83.13 247.6 185zM521.5 60.51c6.25 16.25 10.75 34.62 13.13 55.25c5.75 49.87-1.376 108.1-18.88 166.9l102.6 37.37c10.13 3.75 21.25-3.375 21.5-14.12C642.3 210.1 598 118.4 521.5 60.51zM528 448h-207l65-178.5l-60.13-21.87l-72.88 200.4H48C21.49 448 0 469.5 0 496C0 504.8 7.163 512 16 512h544c8.837 0 16-7.163 16-15.1C576 469.5 554.5 448 528 448z"},null,-1)]))}const __unplugin_components_4=markRaw({name:"fas-umbrella-beach",render:render$b}),_hoisted_1$1C={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$a(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1C,o[0]||(o[0]=[createBaseVNode("path",{d:"M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"},null,-1)]))}const __unplugin_components_0$7=markRaw({name:"fas-arrow-right",render:render$a}),_hoisted_1$1B={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"};function render$9(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1B,o[0]||(o[0]=[createBaseVNode("path",{d:"M484.6 62C502.6 52.8 522.6 48 542.8 48H600.2C627.2 48 645.9 74.95 636.4 100.2C618.2 148.9 582.1 188.9 535.6 212.2L262.8 348.6C258.3 350.8 253.4 352 248.4 352H110.7C101.4 352 92.5 347.9 86.42 340.8L13.34 255.6C6.562 247.7 9.019 235.5 18.33 230.8L50.49 214.8C59.05 210.5 69.06 210.2 77.8 214.1L135.1 239.1L234.6 189.7L87.64 95.2C77.21 88.49 78.05 72.98 89.14 67.43L135 44.48C150.1 36.52 169.5 35.55 186.1 41.8L381 114.9L484.6 62zM0 480C0 462.3 14.33 448 32 448H608C625.7 448 640 462.3 640 480C640 497.7 625.7 512 608 512H32C14.33 512 0 497.7 0 480z"},null,-1)]))}const __unplugin_components_1$1=markRaw({name:"fas-plane-departure",render:render$9}),__default__$1r={name:"HeaderBST"},_sfc_main$1s=Object.assign(__default__$1r,{props:{},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,{header:a}=useHeaderFooterStore(),i=window.siteName,s={props:e,emit:n,headerStore:a,siteName:i,get useHeaderFooterStore(){return useHeaderFooterStore},get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$1A=["data-use-theme"],_hoisted_2$1k={class:"generic-container flex"},_hoisted_3$W={class:"logo-container flex items-center xl:gap-4 gap-8 py-2"},_hoisted_4$P={key:0},_hoisted_5$L=["src","alt"],_hoisted_6$H={key:1},_hoisted_7$G=["src","alt"];function _sfc_render$1s(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink");return openBlock(),createElementBlock("header",{class:"HeaderBST","data-use-theme":e.siteName},[createBaseVNode("div",_hoisted_2$1k,[createBaseVNode("div",_hoisted_3$W,[e.isMobileViewport&&!e.headerStore.hideInMobileLogo1||!e.isMobileViewport&&!e.headerStore.hideInDesktopLogo1?(openBlock(),createElementBlock("div",_hoisted_4$P,[createVNode(i,{href:e.headerStore.logo1DarkUrl,target:e.headerStore.openInNewTabLogo1Dark?"_blank":"_self",showExternalLinkIcon:!1,rel:"noopener noreferrer",class:"is-dark-variant rounded-md"},{default:withCtx(()=>[createBaseVNode("img",{class:"logo-primary-img",src:e.headerStore.logo1Dark,alt:e.headerStore.logo1DarkAtlText},null,8,_hoisted_5$L)]),_:1},8,["href","target"])])):createCommentVNode("",!0),e.isMobileViewport&&!e.headerStore.hideInMobileLogo2||!e.isMobileViewport&&!e.headerStore.hideInDesktopLogo2?(openBlock(),createElementBlock("div",_hoisted_6$H,[createVNode(i,{href:e.headerStore.logo2DarkUrl,target:e.headerStore.openInNewTabLogo2Dark?"_blank":"_self",showExternalLinkIcon:!1,rel:"noopener noreferrer",class:"is-dark-variant lg:hidden rounded-md"},{default:withCtx(()=>[createBaseVNode("img",{class:"logo-secondary-img",src:e.headerStore.logo2Dark,alt:e.headerStore.logo2DarkAtlText},null,8,_hoisted_7$G)]),_:1},8,["href","target"])])):createCommentVNode("",!0)])])],8,_hoisted_1$1A)}const HeaderBST=_export_sfc(_sfc_main$1s,[["render",_sfc_render$1s],["__scopeId","data-v-29788b37"],["__file","HeaderBST.vue"]]),__default__$1q={name:"FooterBST"},_sfc_main$1r=Object.assign(__default__$1q,{props:{},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,{footer:a}=useHeaderFooterStore(),s={props:e,emit:n,footerStore:a,isPropsDataEmpty:()=>!(a.subsidiaryTab&&a.tncTab&&a.copyrightTab),get useHeaderFooterStore(){return useHeaderFooterStore},get isMobileViewport(){return isMobileViewport},FontAwesomeLazy};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$1z={key:0,class:"FooterBST py-10"},_hoisted_2$1j={class:"generic-container"},_hoisted_3$V={class:"footer-bottom"},_hoisted_4$O={class:">lg:w-5/12 flex items-end"},_hoisted_5$K={class:"bottom-left-col"},_hoisted_6$G={class:"partner-logo-wrapper"},_hoisted_7$F=["src","alt"],_hoisted_8$D={class:"copyright-text text-neutral-grey-extradark text-xs font-bold >lg:hidden >md:w-11/12 lg:w-full mx-auto mt-8"},_hoisted_9$A={class:">lg:w-7/12 >lg:flex flex-col items-end justify-end"},_hoisted_10$s={class:"bottom-right-col"},_hoisted_11$r={class:"copyright-wrapper"},_hoisted_12$q={class:"copyright-list"},_hoisted_13$o={class:"mb-4 lg:flex lg:flex-col"},_hoisted_14$o={class:"copyright-link-text"},_hoisted_15$n={class:"copyright-text text-neutral-grey-extradark text-xs font-bold lg:hidden"};function _sfc_render$1r(t,o,r,e,n,a){var s,l,d,c;const i=resolveComponent("AppHyperlink");return e.isPropsDataEmpty()?createCommentVNode("",!0):(openBlock(),createElementBlock("footer",_hoisted_1$1z,[createBaseVNode("div",_hoisted_2$1j,[createBaseVNode("div",_hoisted_3$V,[createBaseVNode("div",_hoisted_4$O,[createBaseVNode("div",_hoisted_5$K,[createBaseVNode("div",_hoisted_6$G,[(openBlock(!0),createElementBlock(Fragment,null,renderList((s=e.footerStore.subsidiaryTab)==null?void 0:s.subsidiaryList,u=>(openBlock(),createBlock(i,{key:u.imageAltText,href:u.imageUrl,target:u.isOpenNewTab?"_blank":"_self",class:normalizeClass(["partner-logo inline-block",{hidden:e.isMobileViewport&&u.isHideInMobile||!e.isMobileViewport&&u.isHideInDesktop}]),showExternalLinkIcon:!1},{default:withCtx(()=>[createBaseVNode("img",{src:u.image,class:"h-[40px] w-auto inline-block",alt:u.imageAltText},null,8,_hoisted_7$F)]),_:2},1032,["href","target","class"]))),128))]),createBaseVNode("p",_hoisted_8$D,toDisplayString((l=e.footerStore.copyrightTab)==null?void 0:l.text),1)])]),createBaseVNode("div",_hoisted_9$A,[createBaseVNode("div",_hoisted_10$s,[createBaseVNode("div",_hoisted_11$r,[createBaseVNode("div",_hoisted_12$q,[createBaseVNode("ul",_hoisted_13$o,[(openBlock(!0),createElementBlock(Fragment,null,renderList((d=e.footerStore.tncTab)==null?void 0:d.tncList,(u,f)=>(openBlock(),createElementBlock("li",{key:`${u.title}-${f}`,class:"copyright-list inline-block"},[createVNode(i,{class:"copyright-link text-neutral-white-base hover:text-primary-blue-extralight",href:u.titleUrl,target:u.isOpenNewTab?"_blank":"_self",rel:"noopener noreferrer",showExternalLinkIcon:!1},{default:withCtx(()=>
1171[createBaseVNode("span",_hoisted_14$o,toDisplayString(u.title),1)]),_:2},1032,["href","target"])]))),128))]),createBaseVNode("p",_hoisted_15$n,toDisplayString((c=e.footerStore.copyrightTab)==null?void 0:c.text),1)])])])])])])]))}const FooterBST=_export_sfc(_sfc_main$1r,[["render",_sfc_render$1r],["__scopeId","data-v-443ba612"],["__file","FooterBST.vue"]]),_hoisted_1$1y={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$8(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1y,o[0]||(o[0]=[createBaseVNode("path",{d:"M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"},null,-1)]))}const __unplugin_components_0$6=markRaw({name:"fas-pen-to-square",render:render$8}),_hoisted_1$1x={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$7(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1x,o[0]||(o[0]=[createBaseVNode("path",{d:"M366.3 381.1c-8.758-3.811-14.42-12.45-14.42-21.1l.0004-80H24c-13.25 0-24-10.75-24-23.1s10.75-24 24-24h327.9l-.0004-79.1c0-9.547 5.66-18.19 14.42-22c8.754-3.811 18.95-2.075 25.94 4.41l112.1 104c10.23 9.5 10.23 25.69 0 35.19l-112.1 104C385.3 384.1 375.1 385.8 366.3 381.1z"},null,-1)]))}const __unplugin_components_2=markRaw({name:"far-right-long",render:render$7}),__default__$1p={name:"TransitionHeight"},_sfc_main$1q=Object.assign(__default__$1p,{props:{height:{type:[Number,String],default:null},transitionDuration:{type:Number,default:.3}},emits:["transition-start","transition-end"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null);watch(()=>e.height,(s,l)=>{gsapWithCSS.to(a.value,{duration:e.transitionDuration,height:s,onStart:()=>{n("transition-start")},onComplete:()=>{n("transition-end")}})}),onMounted(()=>{gsapWithCSS.set(a.value,{height:e.height})});const i={props:e,emit:n,rootEl:a,get gsap(){return gsapWithCSS}};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$1w={ref:"rootEl",class:"TransitionHeight overflow-hidden"};function _sfc_render$1q(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$1w,[renderSlot(t.$slots,"default")],512)}const TransitionHeight=_export_sfc(_sfc_main$1q,[["render",_sfc_render$1q],["__file","TransitionHeight.vue"]]),_hoisted_1$1v={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function render$6(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1v,o[0]||(o[0]=[createBaseVNode("path",{d:"M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"},null,-1)]))}const __unplugin_components_0$5=markRaw({name:"fas-user",render:render$6}),__default__$1o={name:"PassengerAndCabinClass"},_sfc_main$1p=Object.assign(__default__$1o,{props:{passengerAdultsName:{type:String,default:"passengerAdults"},passengerTeensName:{type:String,default:"passengerTeens"},passengerChildrenName:{type:String,default:"passengerChildren"},passengerInfantsName:{type:String,default:"passengerInfants"},cabinClassName:{type:String,default:"cabinClass"},labelText:{type:String,default:i18nGlobal.t("Passengers and cabin class")},isUKVariant:{type:Boolean,default:!1},isCountryVariant:{type:Boolean,default:!1},defaultValues:{type:Object,default:()=>({})},isShowEconomyClass:{type:Boolean,default:!0},isShowBusinessClass:{type:Boolean,default:!0},isShowBusinessSuiteClass:{type:Boolean,default:!0},isShowChildren:{type:Boolean,default:!0},passengerLabel:{type:String,default:i18nGlobal.t("Passengers")},adultLabel:{type:String,default:i18nGlobal.t("Adults")},teenagerLabel:{type:String,default:i18nGlobal.t("Teenagers")},childrenLabel:{type:String,default:i18nGlobal.t("Children")},infantLabel:{type:String,default:i18nGlobal.t("Infants")},cabinClassLabel:{type:String,default:i18nGlobal.t("Cabin Class")},economyLabel:{type:String,default:i18nGlobal.t("Economy")},businessLabel:{type:String,default:i18nGlobal.t("Business")},businessSuiteLabel:{type:String,default:i18nGlobal.t("Business Suite")},maxInfantsCount:{type:Number,default:null},isExpressBooking:{type:Boolean,default:!1},hideExpressBookingNote:{type:Boolean,default:!1},passengerAndCabinClassNote:{type:String,default:""},isDisabled:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(null),i=useRoute$1(),s=computed(()=>[...e.isShowEconomyClass?[{label:e.economyLabel,value:"1",icon:new URL("/etc.clientlibs/mh/clientlibs/clientlib-vue/resources/assets/seat-eco-Dl5J5hd5.svg",import.meta.url).href}]:[],...e.isShowBusinessClass?[{label:e.businessLabel,value:"2",icon:new URL("/etc.clientlibs/mh/clientlibs/clientlib-vue/resources/assets/seat-biz-DQNyTyVM.svg",import.meta.url).href}]:[],...e.isShowBusinessSuiteClass?[{label:e.businessSuiteLabel,value:"3",icon:new URL("/etc.clientlibs/mh/clientlibs/clientlib-vue/resources/assets/seat-bs-BTF3Par_.svg",import.meta.url).href}]:[]]),l=ref$1(e.defaultValues.cabinClassValue??s.value[0]??{}),d=N=>{l.value=N},{adults:c,teens:u,children:f,infants:m,totalPassengers:b,totalPassengersIncludedInfantCount:y,hasReachedMaxPassengersCount:_,showInfantErrorMsg:S}=usePassengers({maxPassengers:9,...e.maxInfantsCount?{maxInfantsCount:e.maxInfantsCount}:null,...e.defaultValues.adultsCount?{defaultAdultsCount:e.defaultValues.adultsCount}:null,...e.defaultValues.teensCount?{defaultTeensCount:e.defaultValues.teensCount}:null,...e.defaultValues.childrenCount?{defaultChildrenCount:e.defaultValues.childrenCount}:null,...e.defaultValues.infantsCount?{defaultInfantsCount:e.defaultValues.infantsCount}:null}),C=()=>{a==null||a.value.closeOverlay()};
1171watch(c.count,N=>{globalBookFlightBus.emit("update-passenger-count",{adults:N})}),watch(f.count,N=>{globalBookFlightBus.emit("update-passenger-count",{children:N})}),watch(m.count,N=>{globalBookFlightBus.emit("update-passenger-count",{infants:N})}),watch(l,N=>{globalBookFlightBus.emit("update-passenger-count",{cabinClass:N.value})});const T={note:e.passengerAndCabinClassNote,maxPassengersAdultsCount:1,maxPassengersTeensCount:0,maxPassengersChildrenCount:0,maxPassengersInfantsCount:0},x=computed(()=>e.isExpressBooking===!0),k=N=>{if(x.value)return T[`maxPassengers${N}Count`];const F={Adults:c,Teens:u,Children:f,Infants:m}[N];return _.value?F.count.value:unref(F.max)},E=(N,F)=>{switch(N){case"adults":{c.count.value=F;break}case"teens":{u.count.value=F;break}case"children":{f.count.value=F;break}case"infants":{m.count.value=F;break}case"cabinClass":{typeof F!="object"?l.value=(s==null?void 0:s.value.find(V=>V.value===F.toString()))??{}:l.value=F;break}}},w=N=>{for(const[F,V]of Object.entries(N))E(F,V)};o({setValue:E,setValues:w,cabinClassValue:l,adults:c,teens:u,children:f,infants:m});const D={props:e,emit:n,dropdownEl:a,route:i,computedCabinClassOptions:s,cabinClassValue:l,handleSelectCabinClass:d,adults:c,teens:u,children:f,infants:m,totalPassengers:b,totalPassengersIncludedInfantCount:y,hasReachedMaxPassengersCount:_,showInfantErrorMsg:S,closeOptions:C,expressBookingInfo:T,isExpressBookingEnabled:x,getMaxPassengerCount:k,setValue:E,setValues:w,unref,Dropdown,get isMobileViewport(){return isMobileViewport},NumberPlusMinus,CTAButton,get usePassengers(){return usePassengers},TextField,get i18nGlobal(){return i18nGlobal},get useEventBus(){return useEventBus},get useRoute(){return useRoute$1}};return Object.defineProperty(D,"__isScriptSetup",{enumerable:!1,value:!0}),D}}),_hoisted_1$1u={class:"text-label absolute font-semibold"},_hoisted_2$1i={key:0,class:"text-value flex items-center relative xs:text-sm xs:leading-none"},_hoisted_3$U={key:0},_hoisted_4$N={key:1,class:"text-value relative xs:text-sm xs:leading-none"},_hoisted_5$J={key:0},_hoisted_6$F={key:0,class:"multiselect-options styled-scrollbar pt-4 cursor-default mr-0 md:mr-2"},_hoisted_7$E={class:"px-4 typo-category-title mb-4"},_hoisted_8$C={class:"uppercase"},_hoisted_9$z={class:"px-4 mb-4"},_hoisted_10$r={key:0,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl"},_hoisted_11$q={class:"text-sm"},_hoisted_12$p={class:"px-4 flex flex-col gap-4"},_hoisted_13$n=["role"],_hoisted_14$n={key:0,class:"px-4 mt-4 mb-4"},_hoisted_15$m={key:1,class:"mb-4"},_hoisted_16$m={key:2,class:"px-4 typo-category-title mb-4"},_hoisted_17$j={class:"uppercase"},_hoisted_18$h={key:3,class:"px-4 flex flex-wrap gap-4 mb-6 md:flex-col md:gap-2"},_hoisted_19$f={class:"font-semibold"},_hoisted_20$f={class:"sr-only",role:"alert"},_hoisted_21$f={key:1,class:"multiselect-options styled-scrollbar pt-4 cursor-default mr-0 md:mr-2 flex flex-col"},_hoisted_22$e={class:"flex flex-row md:flex-col"},_hoisted_23$c={class:"px-4 typo-category-title mb-4"},_hoisted_24$b={class:"px-4 mb-4"},_hoisted_25$b={key:0,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl"},_hoisted_26$b={class:"text-sm"},_hoisted_27$a={class:"px-4 mb-4 flex flex-col gap-4"},_hoisted_28$9=["role"],_hoisted_29$9={key:0,class:"px-4 mt-8 mb-4"},_hoisted_30$9={class:"relative cabin-class-wrapper md:w-1/1 w-1/2"},_hoisted_31$9={key:0,class:"px-4 typo-category-title"},_hoisted_32$9={class:"uppercase"},_hoisted_33$6={key:1,class:"px-4 flex flex-col flex-wrap gap-4 md:flex-col md:gap-2"},_hoisted_34$6=["onClick"],_hoisted_35$6=["src"],_hoisted_36$5={class:"sr-only",role:"alert"},_hoisted_37$5={class:"cta-wrapper w-full md:mb-2"},_hoisted_38$5={key:2,class:"sticky bottom-0 bg-white py-4 px-4 border-t-2 border-neutral-grey-base >md:hidden"};function _sfc_render$1p(t,o,r,e,n,a){const i=__unplugin_components_0$5,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize");return openBlock(),createElementBlock("div",{class:normalizeClass(["PassengerAndCabinClass",{"is-disabled":e.props.isDisabled,"is-glass-design":e.props.enableGlassDesign}])},[createVNode(e.Dropdown,{ref:"dropdownEl",labelText:e.props.labelText,ariaLabel:e.props.labelText,desktopVariant:"custom-html booking-widget",mobileVariant:"no-padding custom-html",isClickDropdownMenuToCloseOverlay:!e.props.isDisabled,enableGlassDesign:e.props.enableGlassDesign,class:normalizeClass({"pointer-events-none":e.props.isDisabled})},{"mobile-title":withCtx(()=>[renderSlot(t.$slots,"mobile-title",{},void 0,!0)]),placeholder:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["value-wrapper relative flex-grow mr-2 leading-none",{"flex flex-col justify-between":e.props.enableGlassDesign}])},[createBaseVNode("span",_hoisted_1$1u,toDisplayString(e.props.labelText),1),e.props.enableGlassDesign?(openBlock(),createElementBlock("span",_hoisted_2$1i,[createTextVNode(toDisplayString(e.totalPassengersIncludedInfantCount)+" x ",1),createVNode(i,{class:"fill-primary-blue-base ml-1 mr-2 w-[13px] h-[14px]","aria-hidden":"true"}),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("span",_hoisted_3$U)):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(e.cabinClassValue.label),1)])):(openBlock(),createElementBlock("span",_hoisted_4$N,[createTextVNode(toDisplayString(t.$tc("{n} Passenger",{n:e.totalPassengersIncludedInfantCount})),1),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("span",_hoisted_5$J,", ")):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(e.cabinClassValue.label),1)]))],2)]),nooptions:withCtx(({hideMobileOverlay:d})=>[e.props.enableGlassDesign?(openBlock(),createElementBlock("div",_hoisted_21$f,[createBaseVNode("div",_hoisted_22$e,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_23$c,[createBaseVNode("p",null,toDisplayString(e.props.passengerLabel),1)]),createBaseVNode("div",_hoisted_24$b,[e.props.isExpressBooking&&!e.props.hideExpressBookingNote?(openBlock(),createElementBlock("div",_hoisted_25$b,[createVNode(s,{class:"fill-primary-blue-base text-base"}),withDirectives(createBaseVNode("div",_hoisted_26$b,null,512),[[l,e.expressBookingInfo.note]])])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_27$a,[renderSlot(t.$slots,"before-adults",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.adults.count.value,"onUpdate:modelValue":o[4]||(o[4]=c=>e.adults.count.value=c),name:e.props.passengerAdultsName,ariaLabel:e.props.adultLabel,ariaDescription:t.$t(e.props.isUKVariant||e.props.isCountryVariant?"Ages 16 and above":"Ages 12 and above"),min:e.unref(e.adults.min),max:e.getMaxPassengerCount("Adults")},createSlots({_:2},[t.$slots["adult-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"adult-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"]),e.props.isUKVariant||e.props.isCountryVariant?renderSlot(t.$slots,"before-teens",{key:0},void 0,!0):createCommentVNode("",!0),e.props.isUKVariant||e.props.isCountryVariant?(openBlock(),createBlock(e.NumberPlusMinus,{key:1,modelValue:e.teens.count.value,"onUpdate:modelValue":o[5]||(o[5]=c=>e.teens.count.value=c),name:e.props.passengerTeensName,ariaLabel:e.props.teenagerLabel,ariaDescription:t.$t("Ages 12 to 15"),min:e.unref(e.teens.min),max:e.getMaxPassengerCount("Teens")},createSlots({_:2},[t.$slots["teen-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"teen-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])):createCommentVNode("",!0),e.props.isShowChildren?(openBlock(),createElementBlock(Fragment,{key:2},[renderSlot(t.$slots,"before-children",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.children.count.value,"onUpdate:modelValue":o[6]||(o[6]=c=>e.children.count.value=c),name:e.props.passengerChildrenName,ariaLabel:e.props.childrenLabel,ariaDescription:t.$t("Ages 2 to 11"),min:e.unref(e.children.min),max:e.getMaxPassengerCount("Children")},createSlots({_:2},[t.$slots["children-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"children-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])],64)):createCommentVNode("",!0),renderSlot(t.$slots,"before-infants",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.infants.count.value,"onUpdate:modelValue":o[7]||(o[7]=c=>e.infants.count.value=c),name:e.props.passengerInfantsName,ariaLabel:e.props.infantLabel,ariaDescription:t.$t("Ages below 2 for the entire journey"),min:e.unref(e.infants.min),max:e.unref(e.infants.max)},createSlots({_:2},[t.$slots["infant-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"infant-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])]),withDirectives(createBaseVNode("div",{class:"error-msg-container px-4 leading-tight flex text-semantic-red-base text-sm md:flex-col mt-2",role:e.showInfantErrorMsg?"alert":null},[createBaseVNode("p",null,toDisplayString(t.$t("Each infant should be accompanied by one adult")),1)],8,_hoisted_28$9),[[vShow,e.showInfantErrorMsg]]),t.$slots["after-passengers"]?(openBlock(),createElementBlock("div",_hoisted_29$9,[render
1171Slot(t.$slots,"after-passengers",{},void 0,!0)])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_30$9,[createBaseVNode("div",null,[e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_31$9,[createBaseVNode("p",_hoisted_32$9,toDisplayString(e.props.cabinClassLabel),1)])):createCommentVNode("",!0),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_33$6,[renderSlot(t.$slots,"before-cabin-class-options",{},void 0,!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.computedCabinClassOptions,c=>(openBlock(),createElementBlock("div",{key:c.value,class:"flex justify-between items-center w-full h-[55px]"},[createBaseVNode("span",null,toDisplayString(c.label),1),createBaseVNode("button",{type:"button",class:normalizeClass(["icon-wrapper text-neutral-white-base",e.cabinClassValue.value===c.value?"bg-primary-blue-base":"bg-neutral-grey-dark"]),onClick:u=>e.handleSelectCabinClass(c)},[createBaseVNode("img",{src:c.icon,class:"h-6 w-6"},null,8,_hoisted_35$6)],10,_hoisted_34$6)]))),128)),createBaseVNode("div",_hoisted_36$5,toDisplayString(t.$t("Currently selected cabin class is {selectedCabinLabel}",{selectedCabinLabel:e.cabinClassValue.label})),1)])):createCommentVNode("",!0)])])]),createBaseVNode("div",_hoisted_37$5,[createVNode(e.CTAButton,{class:"md:w-[80%] md:mx-auto",onClick:withModifiers(c=>e.isMobileViewport?d():e.closeOptions(),["stop"])},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("Done")),1)]),_:2},1032,["onClick"])])])):(openBlock(),createElementBlock("div",_hoisted_6$F,[createBaseVNode("div",_hoisted_7$E,[createBaseVNode("p",_hoisted_8$C,toDisplayString(e.props.passengerLabel),1)]),createBaseVNode("div",_hoisted_9$z,[e.props.isExpressBooking&&!e.props.hideExpressBookingNote?(openBlock(),createElementBlock("div",_hoisted_10$r,[createVNode(s,{class:"fill-primary-blue-base text-base"}),withDirectives(createBaseVNode("div",_hoisted_11$q,null,512),[[l,e.expressBookingInfo.note]])])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_12$p,[renderSlot(t.$slots,"before-adults",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.adults.count.value,"onUpdate:modelValue":o[0]||(o[0]=c=>e.adults.count.value=c),name:e.props.passengerAdultsName,ariaLabel:e.props.adultLabel,ariaDescription:t.$t(e.props.isUKVariant||e.props.isCountryVariant?"Ages 16 and above":"Ages 12 and above"),min:e.unref(e.adults.min),max:e.getMaxPassengerCount("Adults")},createSlots({_:2},[t.$slots["adult-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"adult-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"]),e.props.isUKVariant||e.props.isCountryVariant?renderSlot(t.$slots,"before-teens",{key:0},void 0,!0):createCommentVNode("",!0),e.props.isUKVariant||e.props.isCountryVariant?(openBlock(),createBlock(e.NumberPlusMinus,{key:1,modelValue:e.teens.count.value,"onUpdate:modelValue":o[1]||(o[1]=c=>e.teens.count.value=c),name:e.props.passengerTeensName,ariaLabel:e.props.teenagerLabel,ariaDescription:t.$t("Ages 12 to 15"),min:e.unref(e.teens.min),max:e.getMaxPassengerCount("Teens")},createSlots({_:2},[t.$slots["teen-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"teen-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])):createCommentVNode("",!0),e.props.isShowChildren?(openBlock(),createElementBlock(Fragment,{key:2},[renderSlot(t.$slots,"before-children",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.children.count.value,"onUpdate:modelValue":o[2]||(o[2]=c=>e.children.count.value=c),name:e.props.passengerChildrenName,ariaLabel:e.props.childrenLabel,ariaDescription:t.$t("Ages 2 to 11"),min:e.unref(e.children.min),max:e.getMaxPassengerCount("Children")},createSlots({_:2},[t.$slots["children-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"children-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])],64)):createCommentVNode("",!0),renderSlot(t.$slots,"before-infants",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.infants.count.value,"onUpdate:modelValue":o[3]||(o[3]=c=>e.infants.count.value=c),name:e.props.passengerInfantsName,ariaLabel:e.props.infantLabel,ariaDescription:t.$t("Ages below 2 for the entire journey"),min:e.unref(e.infants.min),max:e.unref(e.infants.max)},createSlots({_:2},[t.$slots["infant-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"infant-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])]),withDirectives(createBaseVNode("div",{class:"error-msg-container px-4 leading-tight flex text-semantic-red-base text-sm md:flex-col mt-2",role:e.showInfantErrorMsg?"alert":null},[createBaseVNode("p",null,toDisplayString(t.$t("Each infant should be accompanied by one adult")),1)],8,_hoisted_13$n),[[vShow,e.showInfantErrorMsg]]),t.$slots["after-passengers"]?(openBlock(),createElementBlock("div",_hoisted_14$n,[renderSlot(t.$slots,"after-passengers",{},void 0,!0)])):createCommentVNode("",!0),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_15$m,o[8]||(o[8]=[createBaseVNode("hr",{class:"bg-neutral-grey"},null,-1)]))):createCommentVNode("",!0),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_16$m,[createBaseVNode("p",_hoisted_17$j,toDisplayString(e.props.cabinClassLabel),1)])):createCommentVNode("",!0),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_18$h,[renderSlot(t.$slots,"before-cabin-class-options",{},void 0,!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.computedCabinClassOptions,c=>(openBlock(),createBlock(e.CTAButton,{key:c.value,styleType:e.cabinClassValue.value===c.value?"primary":"secondary",ctaSizing:e.isMobileViewport?"fluid":"auto",onClick:u=>e.handleSelectCabinClass(c)},{default:withCtx(()=>[createBaseVNode("span",_hoisted_19$f,toDisplayString(c.label),1)]),_:2}
1171,1032,["styleType","ctaSizing","onClick"]))),128)),createBaseVNode("div",_hoisted_20$f,toDisplayString(t.$t("Currently selected cabin class is {selectedCabinLabel}",{selectedCabinLabel:e.cabinClassValue.label})),1)])):createCommentVNode("",!0)])),e.props.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_38$5,[createVNode(e.CTAButton,{alignmentMobile:"right",onClick:d},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("Done")),1)]),_:2},1032,["onClick"])]))]),_:3},8,["labelText","ariaLabel","isClickDropdownMenuToCloseOverlay","enableGlassDesign","class"]),createVNode(e.TextField,{variant:"input-hidden",name:e.props.cabinClassName,ariaLabel:t.$t("Selected cabin class"),modelValue:e.cabinClassValue.value},null,8,["name","ariaLabel","modelValue"])],2)}const PassengerAndCabinClass$1=_export_sfc(_sfc_main$1p,[["render",_sfc_render$1p],["__scopeId","data-v-f757f075"],["__file","PassengerAndCabinClass.vue"]]),useBSTOverlayInterimData=createGlobalState(()=>{const t=ref$1("book-flight"),o=ref$1({ondValueFrom:"",ondValueTo:"",dateRangeValueFrom:"",dateRangeValueTo:"",isOneWay:!1,adultsCount:0,teensCount:0,childrenCount:0,infantsCount:0,cabinClassValue:"",payByEnrichPoints:!1}),r=(l,d)=>{t.value=l,o.value=d,s("bst-overlay")},e=l=>{o.value=l,s(t.value)},n=new Map([["book-flight",[]],["bonus-side-trip",[]],["bst-overlay",[]]]),a=(l,d,c={})=>{const u=n.get(l);return u?(u.push(d),c.immediate&&s(l),!0):!1},i=l=>n.get(l)?(n.set(l,[]),!0):!1,s=l=>{n.get(l).forEach(c=>{c(o.value)})};return{holdingData:readonly(o),commitDataToBSTOverlay:r,commitDataFromBSTOverlay:e,registerNotifier:a,unregisterNotifier:i}}),__default__$1n={name:"EditSearchBST"},_sfc_main$1o=Object.assign(__default__$1n,{props:{bstEditSearchCTAText:{type:String,default:i18nGlobal.t("Edit Search")},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},passengerSelectionQuestion:{type:String,default:""},extraONDFilterForFlightSearch:{type:Object,default:null},componentIdAA:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1}},emits:["save-search-data"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(!1),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null),c=ref$1(null),u=ref$1(null),f=ref$1(null),m=ref$1(null),b=ref$1(!1),y=ref$1(null),_=ref$1(null),S=ref$1(null),C=ref$1(null),T=(N,F)=>{console.log("✅ handleSubmitValid values = ",N),y.value=f.value,_.value=m.value,S.value=c.value,C.value=u.value,b.value=!u.value,n("save-search-data",{ondValueFrom:f.value,ondValueTo:m.value,dateRangeValueFrom:c.value,dateRangeValueTo:u.value,isOneWay:d.value.isOneWay,cabinClassValue:l.value.cabinClassValue,adultsCount:l.value.adults.count,teensCount:l.value.teens.count,childrenCount:l.value.children.count,infantsCount:l.value.infants.count}),a.value=!1},x=({values:N,errors:F,results:V,evt:A})=>{console.log("❌ handleSubmitInvalid errors = ",F)},k=computed(()=>{var V;const N=s.value;if(!N)return!0;const F=(V=d.value)==null?void 0:V.isOneWay;return e.enableGlassDesign?!N.values.locationFrom||!N.values.locationTo||!c.value||!F&&!u.value||Object.keys(N.errors).length!==0:!N.values.locationFrom||!N.values.locationTo||!N.values.dateDeparture||!F&&!N.values.dateReturn||Object.keys(N.errors).length!==0});watch([f,m],N=>{useIsUkVariant({origin:f.value,destination:m.value})||l.value.setValues({teens:0})});const{registerNotifier:E,unregisterNotifier:w}=useBSTOverlayInterimData();onMounted(()=>{E("bst-overlay",async N=>{const F=f.value,V=m.value;f.value=N.ondValueFrom,m.value=N.ondValueTo,f.value!==F&&nextTick$1(()=>{var M;(M=i.value)==null||M.updateFromValue()}),m.value!==V&&nextTick$1(()=>{var M;(M=i.value)==null||M.updateToValue()}),c.value=N.dateRangeValueFrom,u.value=N.dateRangeValueTo,b.value=N.isOneWay,y.value=f.value,_.value=m.value,S.value=c.value,C.value=u.value,await waitFor(()=>!!l.value,400,30).start(),l.value.setValues({adults:N.adultsCount,teens:N.teensCount,children:N.childrenCount,infants:N.infantsCount,cabinClass:N.cabinClassValue}),d.value.handleSetIsOneWay(!!N.isOneWay)},{immediate:!0})}),onUnmounted(()=>{w("bst-overlay")}),o({isEditMode:a});const D={props:e,emit:n,isEditMode:a,ondPickerEl:i,formWrapper:s,passengerAndCabinClassEl:l,dateRangePickerEl:d,dateRangeValueFrom:c,dateRangeValueTo:u,ondValueFrom:f,ondValueTo:m,dis
1171playIsOneWay:b,displayLocationFrom:y,displayLocationTo:_,displayDateFrom:S,displayDateTo:C,handleSubmitValid:T,handleSubmitInvalid:x,isBtnSubmitDisabled:k,registerNotifier:E,unregisterNotifier:w,get dayjs(){return dayjs},TransitionHeight,CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,FormWrapper,get isMobileViewport(){return isMobileViewport},PassengerAndCabinClass:PassengerAndCabinClass$1,get useBSTOverlayInterimData(){return useBSTOverlayInterimData},get waitFor(){return waitFor},get useIsUkVariant(){return useIsUkVariant},get i18nGlobal(){return i18nGlobal}};return Object.defineProperty(D,"__isScriptSetup",{enumerable:!1,value:!0}),D}}),_hoisted_1$1t={class:"flex md:flex-col md:gap-4"},_hoisted_2$1h={class:"flex-grow"},_hoisted_3$T={class:"flex items-center font-semibold"},_hoisted_4$M={key:0,class:""},_hoisted_5$I={key:3,class:""},_hoisted_6$E={class:"block mt-1 typo-body-text-2"},_hoisted_7$D={key:1},_hoisted_8$B={key:0,class:"ml-auto"},_hoisted_9$y={class:"pt-6"},_hoisted_10$q={class:"flex gap-6 lg:flex-col"},_hoisted_11$p={class:"w-6/10 lg:w-full"},_hoisted_12$o={class:"w-4/10 lg:w-full"},_hoisted_13$m={class:"flex mt-6 gap-6 md:flex-col"},_hoisted_14$m={class:"flex flex-grow gap-6 md:flex-col"},_hoisted_15$l={class:"w-6/10 lg:w-full"},_hoisted_16$l={class:"ml-auto md:ml-0"};function _sfc_render$1o(t,o,r,e,n,a){const i=__unplugin_components_2,s=__unplugin_components_1$4,l=__unplugin_components_0$6,d=resolveComponent("AppHyperlink"),c=resolveDirective("aa"),u=resolveDirective("button-press");return openBlock(),createElementBlock("div",{class:normalizeClass(["EditSearchBST",{"is-edit-mode":e.isEditMode}])},[createBaseVNode("div",_hoisted_1$1t,[createBaseVNode("div",_hoisted_2$1h,[createBaseVNode("div",_hoisted_3$T,[e.displayLocationFrom?(openBlock(),createElementBlock("span",_hoisted_4$M,toDisplayString(e.displayLocationFrom.displayValue)+" ("+toDisplayString(e.displayLocationFrom.code)+") ",1)):createCommentVNode("",!0),e.displayIsOneWay?(openBlock(),createBlock(i,{key:1,class:"mx-4","aria-hidden":"true"})):(openBlock(),createBlock(s,{key:2,class:"mx-4","aria-hidden":"true"})),e.displayLocationTo?(openBlock(),createElementBlock("span",_hoisted_5$I,toDisplayString(e.displayLocationTo.displayValue)+" ("+toDisplayString(e.displayLocationTo.code)+") ",1)):createCommentVNode("",!0)]),createBaseVNode("time",_hoisted_6$E,[e.dayjs(e.displayDateTo).isValid()?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(e.displayDateFrom).format("DD MMM YYYY"),dateTo:e.dayjs(e.displayDateTo).format("DD MMM YYYY")})),1)],64)):(openBlock(),createElementBlock("span",_hoisted_7$D,toDisplayString(e.dayjs(e.displayDateFrom).format("DD MMM YYYY")),1))])]),e.isEditMode?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_8$B,[withDirectives((openBlock(),createElementBlock("button",{type:"button",class:"flex gap-2 items-baseline text-primary-blue-base font-semibold btn-generic-b px-4 py-1.5 leading-none",onClick:o[0]||(o[0]=f=>e.isEditMode=!0)},[createVNode(l,{class:"fill-current"}),createTextVNode(" "+toDisplayString(e.props.bstEditSearchCTAText),1)])),[[c,[{clickName:e.props.bstEditSearchCTAText,clickComponentType:"Button",componentName:"EditSearchBST",componentID:e.props.componentIdAA,BST:!0},{name:e.props.bstEditSearchCTAText,type:"other"}]],[u]])]))]),createVNode(e.TransitionHeight,{class:normalizeClass(e.isEditMode?"overflow-visible":""),height:e.isEditMode?"auto":0},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_9$y,[createVNode(e.FormWrapper,{ref:"formWrapper",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:f})=>{var m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J,te,re,oe,X,se,le;return[createBaseVNode("div",_hoisted_10$q,[createBaseVNode("div",_hoisted_11$p,[createVNode(e.ONDPicker,{ref:"ondPickerEl",modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[1]||(o[1]=he=>e.ondValueFrom=he),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":o[2]||(o[2]=he=>e.ondValueTo=he),nameFrom:"locationFrom",nameTo:"locationTo",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(m=e.props.ondSelection)==null?void 0:m.fromSearchErrorMessage,requiredErrorMsgTo:(b=e.props.ondSelection)==null?void 0:b.toSearchErrorMessage,labelTextFrom:(y=e.props.ondSelection)==null?void 0:y.fromLabel,labelTextTo:(_=e.props.ondSelection)==null?void 0:_.toLabel,noResultsText:(S=e.props.ondSelection)==null?void 0:S.noResultMessage,ondListIdentifier:"FLIGHT_SEARCH_BST",specificOriginList:(T=(C=e.props.extraONDFilterForFlightSearch)==null?void 0:C.ondSelection)==null?void 0:T.showSpecificOrigin,specificDestinationList:(k=(x=e.props.extraONDFilterForFlightSearch)==null?void 0:x.ondSelection)==null?void 0:k.showSpecificDestination,hideSpecificOriginList:(w=(E=e.props.extraONDFilterForFlightSearch)==null?void 0:E.ondSelection)==null?void 0:w.hideSpecificOrigin,hideSpecificDestinationList:(N=(D=e.props.extraONDFilterForFlightSearch)==null?void 0:D.ondSelection)==null?void 0:N.hideSpecificDestination,additionalONDFilter:(F=e.props.extraONDFilterForFlightSearch)==null?void 0:F.additionalONDFilter,enableGlassDesign:e.props.enableGlassDesign},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","no
1171ResultsText","specificOriginList","specificDestinationList","hideSpecificOriginList","hideSpecificDestinationList","additionalONDFilter","enableGlassDesign"])]),createBaseVNode("div",_hoisted_12$o,[createVNode(e.DateRangePicker,{ref:"dateRangePickerEl",modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[3]||(o[3]=he=>e.dateRangeValueFrom=he),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[4]||(o[4]=he=>e.dateRangeValueTo=he),textFieldAttrsFrom:{ariaLabel:((V=e.props.datePicker)==null?void 0:V.departureDateLabel)??t.$t("Depart"),placeholder:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:((A=e.props.datePicker)==null?void 0:A.returnDateLabel)??t.$t("Return"),placeholder:t.$t("Select a date")},maxDate:"t+360d",disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(M=e.props.datePicker)==null?void 0:M.invalidDateErrorMessage,requiredErrorMsgTo:(O=e.props.datePicker)==null?void 0:O.invalidDateErrorMessage,labelReset:((R=e.props.datePicker)==null?void 0:R.resetButtonCTAText)??t.$t("Reset"),labelDone:((I=e.props.datePicker)==null?void 0:I.doneCTAText)??t.$t("Done"),labelOneWay:((j=e.props.datePicker)==null?void 0:j.oneWayCTAText)??t.$t("One-way"),enableGlassDesign:e.props.enableGlassDesign},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.datePickerQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","textFieldAttrsFrom","textFieldAttrsTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","enableGlassDesign"])])]),createBaseVNode("div",_hoisted_13$m,[createBaseVNode("div",_hoisted_14$m,[createBaseVNode("div",_hoisted_15$l,[createVNode(e.PassengerAndCabinClass,{ref:"passengerAndCabinClassEl",labelText:(H=e.props.passengerSelection)==null?void 0:H.passengerAndCabinClassLabel,passengerLabel:(U=e.props.passengerSelection)==null?void 0:U.passengerLabel,adultLabel:(B=e.props.passengerSelection)==null?void 0:B.adultLabel,teenagerLabel:(L=e.props.passengerSelection)==null?void 0:L.teenagerLabel,childrenLabel:(z=e.props.passengerSelection)==null?void 0:z.childrenLabel,infantLabel:(W=e.props.passengerSelection)==null?void 0:W.infantLabel,cabinClassLabel:(J=e.props.passengerSelection)==null?void 0:J.cabinClassLabel,economyLabel:(te=e.props.passengerSelection)==null?void 0:te.economyLabel,businessLabel:(re=e.props.passengerSelection)==null?void 0:re.businessLabel,businessSuiteLabel:(oe=e.props.passengerSelection)==null?void 0:oe.businessSuiteLabel,isShowEconomyClass:!((X=e.props.passengerSelection)!=null&&X.isHideEconomy),isShowBusinessClass:!((se=e.props.passengerSelection)!=null&&se.isHideBusiness),isShowBusinessSuiteClass:!((le=e.props.passengerSelection)!=null&&le.isHideBusinessSuite),isUKVariant:e.useIsUkVariant({origin:e.ondValueFrom,destination:e.ondValueTo}),enableGlassDesign:e.props.enableGlassDesign},{"after-passengers":withCtx(()=>{var he;return[createVNode(d,{class:"font-semibold",href:(he=e.props.passengerSelection)==null?void 0:he.groupBookingPageURL,showExternalLinkIcon:!0,target:"_blank"},{default:withCtx(()=>{var ge;return[createTextVNode(toDisplayString(((ge=e.props.passengerSelection)==null?void 0:ge.moreThan9PassengerDescription)||t.$t("More than 9 passengers?")),1)]}),_:1},8,["href"])]}),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.passengerSelectionQuestion),1)]),_:1},8,["labelText","passengerLabel","adultLabel","teenagerLabel","childrenLabel","infantLabel","cabinClassLabel","economyLabel","businessLabel","businessSuiteLabel","isShowEconomyClass","isShowBusinessClass","isShowBusinessSuiteClass","isUKVariant","enableGlassDesign"])])]),createBaseVNode("div",_hoisted_16$l,[withDirectives((openBlock(),createBlock(e.CTAButton,{class:"btn-save",sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("Save")),1)]),_:1},8,["sizeType","ctaSizing","disabled"])),[[c,[{clickName:t.$t("Save"),clickComponentType:"Button",componentName:"EditSearchBST",componentID:e.props.componentIdAA,BST:!0},{name:t.$t("Save"),type:"other"}]]])])])]}),_:1},512)],512),[[vShow,e.isEditMode]])]),_:1},8,["class","height"])],2)}const EditSearchBST=_export_sfc(_sfc_main$1o,[["render",_sfc_render$1o],["__scopeId","data-v-2de83c99"],["__file","EditSearchBST.vue"]]),_hoisted_1$1s={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$5(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1s,o[0]||(o[0]=[createBaseVNode("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"},null,-1)]))}const __unplugin_components_0$4=markRaw({name:"fas-circle-check",render:render$5}),_hoisted_1$1r={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$4(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1r,o[0]||(o[0]=[createBaseVNode("path",{d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"},null,-1)]))}const __unplugin_components_0$3=markRaw({name:"far-circle",render:render$4}),_hoisted_1$1q={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function render$3(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1q,o[0]||(o[0]=[createBaseVNode("path",{d:"M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"},null,-1)]))}const __unplugin_components_0$2=markRaw({name:"fas-caret-down",render:render$3}),__default__$1m={name:"MHCalendarSingle"},_sfc_main$1n=Object.assign(__default__$1m,{props:{modelValue:{type:Object,default:null},canSwitchView:{type:Boolean,default:!0},canNavigateMonth:{type:Boolean,default:!0},displayYear:{type:Array,default:()=>["t-120","t+1"]},minDate:{type:String,default:null},maxDate:{type:String,default:null},disabledDates:{type:Array,default:null},isHideTodayIndicator:{type:Boolean,default:!1}},emits:["select-date"],setup(t,{expose:o,emit:r}){dayjs.extend(isSameOrAfter),dayjs.extend(isSameOrBefore);const e=t,n=r,a=window.siteName,i=ref$1(null),s=ref$1(null),l=ref$1("day"),d=async B=>{var L,z,W,J;switch(i.value.focus(),l.value=B,await nextTick$1(),l.value){case"day":{(L=s.value)==null||L.focus();break}
1171case"month":{(z=s.value)==null||z.focus();break}case"year":{const te=(W=i.value)==null?void 0:W.querySelector(`[data-date="${S.value.format("YYYY-MM-DD")}"]`);if(te)te.focus();else{const re=(J=i.value)==null?void 0:J.querySelector(`[data-date="${dayjs(S.value).date(1).format("YYYY-MM-DD")}"]`);re==null||re.focus()}break}}},{computedMinDate:c,computedMaxDate:u,computedDisabledDates:f,checkIsDisabledFunc:m}=useCalendarRestrictions(ref$1({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates})),b=()=>{let B={viewDate:null,pointedDate:null};const L=dayjs(e.modelValue).isValid()?dayjs(e.modelValue):null,z=dayjs(),W=L??z;return c.value&&u.value?W.isSameOrAfter(c.value,"month")&&W.isSameOrBefore(u.value,"month")?(B.viewDate=W,B.pointedDate=W):(B.viewDate=c.value,B.pointedDate=c.value):c.value?W.isSameOrAfter(c.value,"month")?(B.viewDate=W,B.pointedDate=W):(B.viewDate=c.value,B.pointedDate=c.value):u.value?W.isSameOrBefore(u.value,"month")?(B.viewDate=W,B.pointedDate=W):(B.viewDate=u.value,B.pointedDate=u.value):(B.viewDate=W,B.pointedDate=W),B},y=b(),_=ref$1(y.viewDate),S=ref$1(y.pointedDate),{currentViewMonthName:C,currentViewYearName:T,dayList:x,monthList:k,yearList:E}=calendarDMY(_,{computedMinDate:c,computedMaxDate:u,computedDisabledDates:f,checkIsDisabledFunc:m,displayYear:ref$1(e.displayYear)}),w=()=>
1171{if(R.value){H(`${_.value.subtract(1,"month").format("MMM YYYY")} is disabled`);return}_.value=_.value.subtract(1,"month"),S.value=dayjs(_.value).date(1)},D=()=>{if(I.value){H(`${_.value.add(1,"month").format("MMM YYYY")} is disabled`);return}_.value=_.value.add(1,"month"),S.value=dayjs(_.value).date(1)},N=(B,L)=>{if(B.isBefore(c.value,l.value)||B.isAfter(u.value,l.value))return!1;if(f.value.length>0){if(f.value.every(J=>!J.isSame(B,"day")))return!0}else return!0;let z=0;const W=60;for(;z<W;){z++;let J;if(L==="left"||L==="up"?J=B.subtract(z,l.value):J=B.add(z,l.value),J.isBefore(c.value)||J.isAfter(u.value))return!1;if(f.value.every(te=>!te.isSame(J,"day")))return J}},F=async B=>{var W,J,te,re;let L=null;switch(B){case"left":{l.value==="year"?L=S.value.subtract(1,"year").month(_.value.month()).date(1):l.value==="month"?L=S.value.subtract(1,"month").date(1):L=S.value.subtract(1,"day");break}case"right":{l.value==="year"?L=S.value.add(1,"year").month(_.value.month()).date(1):l.value==="month"?L=S.value.add(1,"month").date(1):L=S.value.add(1,"day");break}case"up":{l.value==="year"?L=S.value.subtract(4,"year").month(_.value.month()).date(1):l.value==="month"?L=S.value.subtract(4,"month").date(1):L=S.value.subtract(7,"day");break}case"down":{l.value==="year"?L=S.value.add(4,"year").month(_.value.month()).date(1):l.value==="month"?L=S.value.add(4,"month").date(1):L=S.value.add(7,"day");break}}const z=N(L,B);if(z===!0)S.value=L,_.value=dayjs(L),await nextTick$1(),(J=(W=i.value)==null?void 0:W.querySelector(`[data-date="${L.format("YYYY-MM-DD")}"]`))==null||J.focus();else if(z instanceof dayjs)S.value=z,_.value=dayjs(z),await nextTick$1(),(re=(te=i.value)==null?void 0:te.querySelector(`[data-date="${z.format("YYYY-MM-DD")}"]`))==null||re.focus();else if(z===!1){H(`${L.format(l.value==="day"?"DD MMM YYYY":l.value==="month"?"MMM YYYY":"YYYY")} is disabled`);return}};watch(()=>e.modelValue,()=>{if(e.modelValue){S.value=dayjs(e.modelValue);return}});const V=(B,L,z)=>{let W={viewDate:null,pointedDate:null};if(B==="day"){let J=1;for(;J<31;){let te=dayjs().year(L).month(z).date(J);if(!m.value(te,"day")){W.viewDate=te,W.pointedDate=te;break}J++}}else if(B==="month"){let J=0;for(;J<12;){let te=dayjs().year(L).month(J).date(1);if(!m.value(te,"month")){W.viewDate=te,W.pointedDate=te;break}J++}}return W},A=async B=>{i.value.focus(),d("day");const L=V("day",S.value.year(),B.monthNumber);S.value=L.pointedDate,_.value=L.viewDate},M=async B=>{i.value.focus(),d("month");const L=V("month",B.yearNumber);S.value=L.pointedDate,_.value=L.viewDate},O=B=>{switch(l.value){case"day":{n("select-date",null);break}case"month":{n("select-date",null);break}case"year":{n("select-date",null);break}}},R=computed(()=>m.value(_.value.subtract(1,"month"),"month")),I=computed(()=>m.value(_.value.add(1,"month"),"month")),j=ref$1(""),H=(()=>{let B=-1;return(L,z)=>{clearTimeout(B),j.value=L,B=setTimeout(()=>{j.value=""},1500)}})();o({handleArrowNavigation:F});const U={props:e,emit:n,siteName:a,rootEl:i,btnSwitchMonthYearEl:s,viewType:l,setViewType:d,computedMinDate:c,computedMaxDate:u,computedDisabledDates:f,checkIsDisabledFunc:m,getInitialViewAndPointedDate:b,_initials:y,currentViewDate:_,pointedDate:S,currentViewMonthName:C,currentViewYearName:T,dayList:x,monthList:k,yearList:E,goToPrevMonth:w,goToNextMonth:D,getPointedDateOrAlternative:N,handleArrowNavigation:F,getFirstValid:V,handleMonthClick:A,handleYearClick:M,handleRootKeyDelete:O,isNavigationDisabledPrev:R,isNavigationDisabledNext:I,toastMessage:j,showToast:H,get dayjs(){return dayjs},get isSameOrAfter(){return isSameOrAfter},get isSameOrBefore(){return isSameOrBefore},get calendarDMY(){return calendarDMY},get useCalendarRestrictions(){return useCalendarRestrictions}};return Object.defineProperty(U,"__isScriptSetup",{enumerable:!1,value:!0}),U}}),_hoisted_1$1p=["data-use-theme","aria-label","onKeydown"],_hoisted_2$1g={class:"calendar-header flex px-4"},_hoisted_3$S={class:"switch-view-wrapper relative"},_hoisted_4$L={key:0},_hoisted_5$H={key:1},_hoisted_6$D={key:2},_hoisted_7$C={key:0,class:"absolute top-0 left-0 py-1 px-2 font-semibold"},_hoisted_8$A={class:"flex ml-auto rtl:mr-auto rtl:ml-0"},_hoisted_9$x=["aria-label"],_hoisted_10$p=["aria-label"],_hoisted_11$o={class:"dmy-container flex mt-2 pl-4 pr-4"},_hoisted_12$n={class:"dmy-wrapper flex-grow overflow-y-auto styled-scrollbar flex items-center px-1 py-1"},_hoisted_13$l={key:0,class:"w-full grid grid-cols-7 gap-y-1 self-start"},_hoisted_14$l={key:0,class:"day-void","aria-hidden":"true"},_hoisted_15$k={key:1,class:"flex justify-center"},_hoisted_16$k=["tabindex","data-date","aria-label","disabled","onClick"],_hoisted_17$i={key:1,class:"w-full grid grid-cols-4 gap-x-1 gap-y-2 content-center py-2 my-auto"},_hoisted_18$g=["tabindex","data-date","aria-label","disabled","onClick"],_hoisted_19$e={key:2,class:"w-full grid grid-cols-4 gap-x-1 gap-y-1 content-center py-2 my-auto"},_hoisted_20$e=["tabindex","data-date","aria-label","disabled","onClick"],_hoisted_21$e={key:0,class:"toast-container"},_hoisted_22$d={class:"toast-message","aria-live":"alert"};function _sfc_render$1n(t,o,r,e,n,a){const i=__unplugin_components_0$2,s=__unplugin_components_0$k,l=__unplugin_components_1$d,d=resolveDirective("button-press");return openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["MHCalendar flex flex-col py-4",{"hide-today-indicator":e.props.isHideTodayIndicator}]),"data-use-theme":e.siteName,tabindex:"-1","aria-label":`Use arrow keys to navigate and select ${e.viewType==="default"?"day":e.viewType}`,onKeydown:[withKeys(withModifiers(e.handleRootKeyDelete,["prevent"]),["backspace","delete"]),o[1]||(o[1]=withKeys(withModifiers(c=>e.handleArrowNavigation("down"),["prevent"]),["down"])),o[2]||(o[2]=withKeys(withModifiers(c=>e.handleArrowNavigation("right"),["prevent"]),["right"])),o[3]||(o[3]=withKeys(withModifiers(c=>e.handleArrowNavigation("up"),["prevent"]),["up"])),o[4]||(o[4]=withKeys(withModifiers(c=>e.handleArrowNavigation("left"),["prevent"]),["left"]))]},[createBaseVNode("header",_hoisted_2$1g,[createBaseVNode("div",_hoisted_3$S,[withDirectives((openBlock(),createBlock(resolveDynamicComponent(e.props.canSwitchView?"button":"div"),{ref:"btnSwitchMonthYearEl",type:e.props.canSwitchView?"button":null,class:normalizeClass(["flex items-center text-primary-blue-base font-semibold !rounded-lg",{"btn-generic-b":e.props.canSwitchView,"opacity-0 pointer-events-none":e.viewType==="year"}]),"aria-label":t.$t(e.viewType==="day"?"Change month or year":"Change year"),"aria-hidden":e.viewType==="year"?"true":null,tabindex:e.props.canSwitchView?e.viewType==="year"?-1:0:null,onClick:o[0]||(o[0]=c=>e.props.canSwitchView?e.setViewType(e.viewType==="day"?"month":"year"):null)},{default:withCtx(()=>[e.viewType==="day"?(openBlock(),createElementBlock("span",_hoisted_4$L,toDisplayString(e.currentViewMonthName)+" "+toDisplayString(e.currentViewYearName),1)):e.viewType==="month"?(openBlock(),createElementBlock("span",_hoisted_5$H,toDisplayString(e.currentViewYearName),1)):e.viewType==="year"?(openBlock(),createElementBlock("span",_hoisted_6$D,toDisplayString(t.$t("Year")),1)):createCommentVNode("",!0),e.props.canSwitchView?(openBlock(),createBlock(i,{key:3,class:"fill-current ml-2 rtl:ml-0 rtl:mr-2 text-xs","aria-hidden":"true"})):createCommentVNode("",!0)]),_:1},8,["type","class","aria-label","aria-hidden","tabindex"])),[[d]]),e.viewType==="year"?(openBlock(),createElementBlock("span",_hoisted_7$C,toDisplayString(t.$t("Year")),1)):createCommentVNode("",!0)]),withDirectives(createBaseVNode("div",_hoisted_8$A,[withDirectives((openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["btn-arrow arrow-left btn-generic-b transform rtl:-rotate-180",{"is-disabled":e.isNavigationDisabledPrev}]),"aria-label":`Previous month${e.isNavigationDisabledPrev?` (${t.$t("disabled")})`:""}`,onClick:e.goToPrevMonth},[createVNode(s,{class:"btn-arrow-icon fill-current","aria-hidden":"true"})],10,_hoisted_9$x)),[[d]]),withDirectives((openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["btn-arrow arrow-right btn-generic-b transform rtl:-rotate-180",{"is-disabled":e.isNavigationDisabledNext}]),"aria-label":`Next month${e.isNavigationDisabledNext?` (${t.$t("disabled")})`:""}`,onClick:e.goToNextMonth},[createVNode(l,{class:"btn-arrow-icon fill-current","aria-hidden":"true"})],10,_hoisted_10$p)),[[d]])],512),[[vShow,e.viewType==="day"&&e.props.canNavigateMonth]])]),createBaseVNode("div",_hoisted_11$o,[createBaseVNode("div",_hoisted_12$n,[e.viewType==="day"?(openBlock(),createElementBlock("div",_hoisted_13$l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayjs.weekdaysShort(),(c,u)=>(openBlock(),createElementBlock("div",{key:c,class:normalizeClass(["day-of-the-week",`day-${u}`])},toDisplayString(c),3))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.dayList,(c,u)=>(openBlock(),createElementBlock(Fragment,{key:u},[c.isVoid?(openBlock(),createElementBlock("div",_hoisted_14$l)):(openBlock(),createElementBlock("div",_hoisted_15$k,[createBaseVNode("button",{type:"button",class:normalizeClass(["day-single btn-generic-b p-1",{"is-today":c.isToday,"is-selected":c.dayjsInstance.isSame(e.props.modelValue,"day"),"is-
1171pointed":c.dayjsInstance.isSame(e.pointedDate,"day")}]),tabindex:c.dayjsInstance.isSame(e.pointedDate,"day")?0:-1,"data-date":c.dataDate,"aria-label":c.dayjsInstance.format("YYYY-MM-DD"),disabled:c.isDisabled,onClick:f=>t.$emit("select-date",c.dayjsInstance)},toDisplayString(c.dateNumber),11,_hoisted_16$k)]))],64))),128))])):createCommentVNode("",!0),e.viewType==="month"?(openBlock(),createElementBlock("div",_hoisted_17$i,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.monthList,(c,u)=>(openBlock(),createElementBlock("div",{key:c,class:"flex"},[createBaseVNode("button",{type:"button",class:normalizeClass(["month-single btn-generic-b w-full",{"is-today":c.isToday,"is-selected":c.dayjsInstance.isSame(e.props.modelValue,"month"),"is-pointed":c.dayjsInstance.isSame(e.pointedDate,"month")}]),tabindex:c.dayjsInstance.isSame(e.pointedDate,"month")?0:-1,"data-date":c.dataDate,"aria-label":c.dayjsInstance.format("YYYY MMMM"),disabled:c.isDisabled,onClick:f=>e.handleMonthClick(c)},toDisplayString(c.month),11,_hoisted_18$g)]))),128))])):createCommentVNode("",!0),e.viewType==="year"?(openBlock(),createElementBlock("div",_hoisted_19$e,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.yearList,c=>(openBlock(),createElementBlock("div",{key:c,class:"flex"},[createBaseVNode("button",{type:"button",class:normalizeClass(["year-single btn-generic-b w-full",{"is-today":c.isToday,"is-selected":c.dayjsInstance.isSame(e.props.modelValue,"year"),"is-pointed":c.dayjsInstance.isSame(e.pointedDate,"year")}]),tabindex:c.dayjsInstance.isSame(e.pointedDate,"year")?0:-1,"data-date":c.dataDate,"aria-label":c.dayjsInstance.format("YYYY"),disabled:c.isDisabled,onClick:u=>e.handleYearClick(c)},toDisplayString(c.year),11,_hoisted_20$e)]))),128))])):createCommentVNode("",!0)])]),createVNode(Transition,{name:"slide-in-from-bottom",appear:""},{default:withCtx(()=>[e.toastMessage?(openBlock(),createElementBlock("aside",_hoisted_21$e,[createBaseVNode("span",_hoisted_22$d,toDisplayString(e.toastMessage),1)])):createCommentVNode("",!0)]),_:1})],42,_hoisted_1$1p)}const MHCalendarSingle=_export_sfc(_sfc_main$1n,[["render",_sfc_render$1n],["__scopeId","data-v-15e53003"],["__file","MHCalendarSingle.vue"]]),__default__$1l={name:"DatePicker",inheritAttrs:!1},_sfc_main$1m=Object.assign(__default__$1l,{props:{name:{type:String,required:!0},modelValue:{type:String,default:null},defaultValue:{type:String,default:null},variant:{type:String,default:""},closeAfterSelectDate:{type:Boolean,default:!0},canSwitchView:{type:Boolean,default:!0},canNavigateMonth:{type:Boolean,default:!0},displayYear:{type:Array,default:()=>["t-120","t+1"]},minDate:{type:String,default:null},maxDate:{type:String,default:null},disabledDates:{type:Array,default:null},disablePastDates:{type:Boolean,default:!1},disableFutureDates:{type:Boolean,default:!1},rootAttrs:{type:Object,default:()=>({})},required:{type:Boolean,default:!1},requiredErrorMsg:{type:String,default:i18nGlobal.t("This field is required")},isHideTodayIndicator:{type:Boolean,default:!1},isReadOnly:{type:Boolean,default:!1},disableAutoCompleteForAmal:{type:Boolean,default:!1},validation:{type:[Object,Function],default:null,validator:t=>t===null||t instanceof yup.BaseSchema||t instanceof Function},isValidationOnBlur:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(!1),i=ref$1(null),s=useInternalValue("modelValue",{...dayjs(e.defaultValue).isValid()?{defaultValue:dayjs(e.defaultValue)}:null,beforeEmitTransform(V){return V instanceof dayjs?V.format("YYYY-MM-DD"):null},propReceivedTransform(V){const A=dayjs(V);return A.isValid()?A:null}}),l=ref$1(null),d=ref$1(null),c=()=>{},u=()=>{isMobileViewport.value||m()},f=()=>{if(!e.isReadOnly)if(isMobileViewport.value){T(!0);return}else a.value=!0},m=()=>{if(isMobileViewport.value){T(!1);return}else a.value=!1},b=V=>{s.value=V,V&&e.closeAfterSelectDate&&(m(),d.value.focus())},y=computed(()=>e.minDate?e.minDate:e.disablePastDates?"t":null),_=computed(()=>e.maxDate?e.maxDate:e.disableFutureDates?"t":null),S=V=>{m()},C=ref$1(!1),T=V=>{C.value=V},{computedMinDate:x,computedMaxDate:k}=useCalendarRestrictions(computed(()=>({minDate:y.value,maxDate:_.value}))),E=V=>{if(!V){s.value=null;return}const A=dayjs(V);if(A.isValid()){if(x.value&&A.isBefore(x.value,"day")){s.value=null;return}if(k.value&&A.isAfter(k.value,"day")){s.value=null;return}s.value=A}else s.value=null},w=V=>{if(!e.required)return!0;const A=yup.string().required(e.requiredErrorMsg).nullable();try{return A.validateSync(V),!0}catch(M){return M.errors[0]}},D=()=>{var V;(V=l.value)==null||V.focus()},N=()=>
1171{l.value.inputEl._mh_invalidFocus=V=>{MHScrollToElement(d.value,{additionalTopOffset:60}),d.value.focus({preventScroll:!0})}};o({focus:D,inputEl:l});const F={props:e,emit:n,isShowFloatingPanel:a,calendarEl:i,internalValue:s,inputEl:l,rootEl:d,handleRootFocusedWithin:c,handleRootBlurredWithin:u,showFloatingPanel:f,hideFloatingPanel:m,handleSelectDate:b,computedMinDate:y,computedMaxDate:_,handleRootKeyEsc:S,showPickerOverlay:C,setShowPickerOverlay:T,parsedMinDate:x,parsedMaxDate:k,handleInputBlur:E,validationFunc:w,focus:D,handleInputMounted:N,get dayjs(){return dayjs},MHCalendarSingle,TextField,get useInternalValue(){return useInternalValue},OverlayBtmSticky,get isMobileViewport(){return isMobileViewport},get useCalendarRestrictions(){return useCalendarRestrictions},get yup(){return yup},get i18nGlobal(){return i18nGlobal},get MHScrollToElement(){return MHScrollToElement},get useFieldValidation(){return useFieldValidation}};return Object.defineProperty(F,"__isScriptSetup",{enumerable:!1,value:!0}),F}}),_hoisted_1$1o=["data-variant","onKeydown"],_hoisted_2$1f={class:"inner-wrapper flex relative flex-col h-full"},_hoisted_3$R={key:0,class:"floating-panel shadow-type-a border-2 border-neutral-grey-light",role:"dialog","aria-modal":"true","aria-label":"Choose dates"},_hoisted_4$K={class:"pl-5 sticky top-0 bg-white z-1000 pb-4 max-w-[360px] mx-auto"},_hoisted_5$G={class:"font-bold line-clamp-1"},_hoisted_6$C={class:"floating-panel shadow-type-a border-2 border-neutral-grey-light",role:"dialog","aria-modal":"true","aria-label":"Choose dates"};function _sfc_render$1m(t,o,r,e,n,a){var s;const i=resolveDirective("focus-within");return withDirectives((openBlock(),createElementBlock("div",mergeProps({ref:"rootEl",class:"DatePicker",tabindex:"-1"},e.props.rootAttrs,{"data-variant":e.props.variant,onFocusWithin:e.handleRootFocusedWithin,onBlurWithin:e.handleRootBlurredWithin,onKeydown:withKeys(withModifiers(e.handleRootKeyEsc,["prevent"]),["esc"])}),[createBaseVNode("div",_hoisted_2$1f,[createVNode(e.TextField,mergeProps({ref:"inputEl",class:{"is-active":e.isShowFloatingPanel},modelValue:((s=e.internalValue)==null?void 0:s.format("DD MMM YYYY"))??null,placeholder:e.props.placeholder,name:e.props.name,ariaLabel:e.props.ariaLabel,disabled:e.props.isReadOnly,readonly:e.props.variant==="mhe"?!0:e.props.readonly,isFocused:e.isShowFloatingPanel,isValidationOnBlur:e.props.isValidationOnBlur,validation:e.validationFunc,variant:e.props.variant.includes("booking-widget")?"booking-widget":e.props.variant,autocomplete:e.props.disableAutoCompleteForAmal?"off":""},t.$attrs,{onFocus:e.showFloatingPanel,onClick:e.showFloatingPanel,onKeydown:[o[0]||(o[0]=withKeys(withModifiers(l=>e.calendarEl.handleArrowNavigation("down"),["prevent"]),["down"])),o[1]||(o[1]=withKeys(withModifiers(l=>e.calendarEl.handleArrowNavigation("right"),["prevent"]),["right"])),o[2]||(o[2]=withKeys(withModifiers(l=>e.calendarEl.handleArrowNavigation("up"),["prevent"]),["up"])),o[3]||(o[3]=withKeys(withModifiers(l=>e.calendarEl.handleArrowNavigation("left"),["prevent"]),["left"])),o[4]||(o[4]=withKeys(withModifiers(l=>e.internalValue=null,["prevent"]),["backspace","delete"]))],"onUpdate:onBlur":e.handleInputBlur,onVnodeMounted:e.handleInputMounted}),createSlots({_:2},[renderList(t.$slots,(l,d)=>({name:d,fn:withCtx(c=>[renderSlot(t.$slots,d,normalizeProps(guardReactiveProps({...c})),void 0,!0)])}))]),1040,["class","modelValue","placeholder","name","ariaLabel","disabled","readonly","isFocused","isValidationOnBlur","variant","autocomplete"])]),e.isShowFloatingPanel&&!e.isMobileViewport?(openBlock(),createElementBlock("div",_hoisted_3$R,[createVNode(e.MHCalendarSingle,{ref:"calendarEl",class:"",canSwitchView:e.props.canSwitchView,canNavigateMonth:e.props.canNavigateMonth,minDate:e.computedMinDate,maxDate:e.computedMaxDate,disabledDates:e.props.disabledDates,displayYear:e.props.displayYear,modelValue:e.internalValue,isHideTodayIndicator:e.props.isHideTodayIndicator,onSelectDate:e.handleSelectDate},null,8,["canSwitchView","canNavigateMonth","minDate","maxDate","disabledDates","displayYear","modelValue","isHideTodayIndicator"])])
1171):createCommentVNode("",!0),createVNode(e.OverlayBtmSticky,{class:"datepicker-mobile-overlay",isVisible:e.showPickerOverlay,"onUpdate:isVisible":o[5]||(o[5]=l=>e.setShowPickerOverlay(l))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$K,[createBaseVNode("h6",_hoisted_5$G,[renderSlot(t.$slots,"mobile-title",{},()=>[renderSlot(t.$slots,"default",{},void 0,!0)],!0)])]),createBaseVNode("div",_hoisted_6$C,[createVNode(e.MHCalendarSingle,{ref:"calendarEl",class:"max-w-[360px] mx-auto",canSwitchView:e.props.canSwitchView,canNavigateMonth:e.props.canNavigateMonth,minDate:e.computedMinDate,maxDate:e.computedMaxDate,disabledDates:e.props.disabledDates,displayYear:e.props.displayYear,modelValue:e.internalValue,isHideTodayIndicator:e.props.isHideTodayIndicator,onSelectDate:e.handleSelectDate},null,8,["canSwitchView","canNavigateMonth","minDate","maxDate","disabledDates","displayYear","modelValue","isHideTodayIndicator"])])]),_:3},8,["isVisible"])],16,_hoisted_1$1o)),[[i]])}const DatePicker=_export_sfc(_sfc_main$1m,[["render",_sfc_render$1m],["__scopeId","data-v-bfa7dbc0"],["__file","DatePicker.vue"]]),__default__$1k={name:"OptionBST"},_sfc_main$1l=Object.assign(__default__$1k,{props:{formNamePrefix:{type:String,required:!0},isFocused:{type:Boolean,default:!1},isOneWay:{type:Boolean,default:!1},locationA:{type:Object,required:!0},locationB:{type:Object,required:!0},dateToMalaysia:{type:String,required:!0},dateLeaveMalaysia:{type:String,default:""},visitMalaysiaLabel:{type:String,default:""},yourDateOfChoiceLabel:{type:String,default:""},question1Text:{type:String,default:""},question2Text:{type:String,default:""},toLabel:{type:String,default:""},departLabel:{type:String,default:""},domesticAirportList:{type:Array,default:()=>[]},disableAutoCompleteForAmal:{type:Boolean,default:!1},enableBSTNewDesign:{type:Boolean,default:!1},title:{type:String,default:""},description:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!0}},emits:["focus-within","blur-within","select"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null);watch(()=>e.isFocused,async(m,b)=>{var y,_,S,C,T,x,k,E;await nextTick$1(),(_=(y=i.value)==null?void 0:y.inputEl)!=null&&_.meta.touched&&((C=(S=i.value)==null?void 0:S.inputEl)==null||C.validate()),(x=(T=s.value)==null?void 0:T.inputEl)!=null&&x.meta.touched&&((E=(k=s.value)==null?void 0:k.inputEl)==null||E.validate())});const c=()=>{var m,b,y,_;l.value=null,d.value=null,(b=(m=i.value)==null?void 0:m.inputEl)==null||b.setTouched(!1),(_=(y=s.value)==null?void 0:y.inputEl)==null||_.setTouched(!1)},u=()=>{n("select")};o({resetForm:c,departureDate:d,airportValue:l});const f={props:e,emit:n,rootEl:a,airportPickerEl:i,datePickerEl:s,airportValue:l,departureDate:d,resetForm:c,handleSelect:u,get dayjs(){return dayjs},DatePicker,AirportPicker,TransitionSimpleSlideDown};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),_hoisted_1$1n={key:0,class:"sr-only",role:"alert"},_hoisted_2$1e={class:"flex"},_hoisted_3$Q={class:"font-bold"},_hoisted_4$J={class:"ml-auto rtl:ml-0 rtl:mr-auto"},_hoisted_5$F={key:1,class:"content"},_hoisted_6$B={class:">md:hidden mt-3"},_hoisted_7$B={class:"flex items-center font-semibold"},_hoisted_8$z={class:"mt-3 text-sm leading-tight"},_hoisted_9$w={class:"journey-display-wrapper md:hidden flex items-end gap-2 rounded-xl p-4"},_hoisted_10$o={class:"basis-0 flex-grow"},_hoisted_11$n={class:"font-semibold text-center"},_hoisted_12$m={class:"basis-0 flex-grow flex flex-col"},_hoisted_13$k={class:"mx-auto mb-3 text-center"},_hoisted_14$k={class:"airplane-line w-full mt-auto mb-2","aria-hidden":"true"},_hoisted_15$j={class:"basis-0 flex-grow"},_hoisted_16$j={class:"font-semibold text-center"},_hoisted_17$h={class:"basis-0 flex-grow flex flex-col"},_hoisted_18$f={class:"mx-auto mb-3 text-center"},_hoisted_19$d={class:"airplane-line w-full mt-auto mb-2","aria-hidden":"true"},_hoisted_20$d={class:"basis-0 flex-grow"},_hoisted_21$d={class:"font-semibold text-center"},_hoisted_22$c={class:"journey-display-wrapper >md:hidden is-mobile rounded-xl p-4 gap-5 flex flex-col"},_hoisted_23$b={class:"relative pl-4"},_hoisted_24$a={class:"font-semibold"},_hoisted_25$a={class:"relative pl-4"},_hoisted_26$a={class:"relative pl-4"},_hoisted_27$9={class:"font-semibold"},_hoisted_28$8={class:"relative pl-4"},_hoisted_29$8={class:"relative pl-4"},_hoisted_30$8={class:"font-semibold"},_hoisted_31$8={class:"mt-6"},_hoisted_32$8={class:"flex justify-center gap-18 lg:gap-10 md:gap-6 md:flex-col"},_hoisted_33$5={class:"basis-0 flex-grow max-w-[320px] flex flex-col"},_hoisted_34$5={class:"font-semibold pb-2 leading-tight"},_hoisted_35$5={class:"basis-0 flex-grow max-w-[320px] flex flex-col"},_hoisted_36$4={class:"font-semibold pb-2 leading-tight"},_hoisted_37$4=["aria-checked","onKeydown"],_hoisted_38$4={class:"flex"},_hoisted_39$4={class:"font-bold"},_hoisted_40$4={class:"text-sm mt-1 text-neutral-grey-dark"},_hoisted_41$4={class:"ml-auto"};function _sfc_render$1l(t,o,r,e,n,a){var f;const i=__unplugin_components_0$3,s=__unplugin_components_0$4,l=__unplugin_components_2,d=__unplugin_components_1$4,c=__unplugin_components_0$9,u=resolveDirective("focus-within");return e.props.enableBSTNewDesign?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["OptionBST",{"is-focused":e.props.isFocused}]),role:"radio","aria-checked":e.props.isFocused,tabindex:"0",onClick:e.handleSelect,onKeydown:[withKeys(withModifiers(e.handleSelect,["prevent"]),["enter"]),withKeys(withModifiers(e.handleSelect,["prevent"]),["space"])]},[createBaseVNode("div",_hoisted_38$4,[createBaseVNode("div",null,[createBaseVNode("h5",_hoisted_39$4,toDisplayString(e.props.title),1),createBaseVNode("p",_hoisted_40$4,toDisplayString(e.props.description),1)]),createBaseVNode("div",_hoisted_41$4,[e.props.isFocused?(openBlock(),createBlock(s,{key:1,class:"w-5 h-5 text-primary-blue-base"})):(openBlock(),createBlock(i,{key:0,class:"w-5 h-5"}))])])],42,_hoisted_37$4)):withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"rootEl",class:normalizeClass(["OptionBST",{"is-focused":e.props.isFocused}]),tabindex:"-1",onFocusWithin:o[2]||(o[2]=m=>t.$emit("focus-within")),onBlurWithin:o[3]||(o[3]=m=>t.$emit("blur-within"))},[e.props.isFocused?(openBlock(),createElementBlock("div",_hoisted_1$1n,[renderSlot(t.$slots,"title",{},void 0,!0),o[4]||(o[4]=createTextVNode(" is currently selected "))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$1e,[createBaseVNode("div",null,[createBaseVNode("h5",_hoisted_3$Q,[renderSlot(t.$slots,"title",{},void 0,!0)])]),createBaseVNode("div",_hoisted_4$J,[createVNode(i,{class:"checkmark checkmark-unchecked fill-neutral-grey-dark w-6 h-6"}),createVNode(s,{class:"checkmark checkmark-checked fill-primary-blue-base w-6 h-6"})])]),e.props.isFocused?(openBlock(),createElementBlock("div",_hoisted_5$F,[createBaseVNode("div",_hoisted_6$B,[createBaseVNode("div",_hoisted_7$B,[createBaseVNode("span",null,toDisplayString(e.props.locationA.displayValue)+" ("+toDisplayString(e.props.locationA.code)+")",1),e.props.isOneWay?(openBlock(),createBlock(l,{key:0,class:"mx-4","aria-hidden":"true"})):(openBlock(),createBlock(d,{key:1,class:"mx-4","aria-hidden":"true"})),createBaseVNode("span",null,toDisplayString(e.props.locationB.displayValue)+" ("+toDisplayString(e.props.locationB.code)+")",1)])]),createBaseVNode("div",_hoisted_8$z,[createBaseVNode("div",_hoisted_9$w,[createBaseVNode("div",_hoisted_10$o,[createBaseVNode("p",_hoisted_11$n,toDisplayString(e.props.locationA.displayValue)+" ("+toDisplayString(e.props.locationA.code)+")",1)]),createBaseVNode("div",_hoisted_12$m,[createBaseVNode("div",_hoisted_13$k,toDisplayString(e.dayjs(e.props.dateToMalaysia).format("DD MMM YYYY")),1),createBaseVNode("div",_hoisted_14$k,[createVNode(c,{class:"icon-plane transform rtl:-rotate-180"})])]),createBaseVNode("div",_hoisted_15$j,[createBaseVNode("p",_hoisted_16$j,toDisplayString(e.airportValue?`${e.airportValue.label} (${e.airportValue.code})`:e.props.visitMalaysiaLabel),1)]),createBaseVNode("div",_hoisted_17$h,[createBaseVNode("div",_hoisted_18$f,toDisplayString(e.departureDate?e.dayjs(e.departureDate).format("DD MMM YYYY"):e.props.yourDateOfChoiceLabel),1),createBaseVNode("div",_hoisted_19$d,[createVNode(c,{class:"icon-plane transform rtl:-rotate-180"})])]),createBaseVNode("div",_hoisted_20$d,[createBaseVNode("p",_hoisted_21$d,toDisplayString(e.props.locationB.displayValue)+" ("+toDisplayString(e.props.locationB.code)+")",1)])]),createBaseVNode("div",_hoisted_22$c,[createBaseVNode("div",_hoisted_23$b,[o[5
1171]||(o[5]=createBaseVNode("div",{class:"dot","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_24$a,toDisplayString(e.props.locationA.displayValue)+" ("+toDisplayString(e.props.locationA.code)+")",1)]),createBaseVNode("div",_hoisted_25$a,[createBaseVNode("div",null,toDisplayString(e.dayjs(e.props.dateToMalaysia).format("DD MMM YYYY")),1)]),createBaseVNode("div",_hoisted_26$a,[o[6]||(o[6]=createBaseVNode("div",{class:"dot","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_27$9,toDisplayString(((f=e.airportValue)==null?void 0:f.label)??e.props.visitMalaysiaLabel),1)]),createBaseVNode("div",_hoisted_28$8,[createBaseVNode("div",null,toDisplayString(e.departureDate?e.dayjs(e.departureDate).format("DD MMM YYYY"):e.props.yourDateOfChoiceLabel),1)]),createBaseVNode("div",_hoisted_29$8,[o[7]||(o[7]=createBaseVNode("div",{class:"dot","aria-hidden":"true"},null,-1)),createBaseVNode("div",_hoisted_30$8,toDisplayString(e.props.locationB.displayValue)+" ("+toDisplayString(e.props.locationB.code)+")",1)])])]),createBaseVNode("div",_hoisted_31$8,[createBaseVNode("div",_hoisted_32$8,[createBaseVNode("div",_hoisted_33$5,[createBaseVNode("p",_hoisted_34$5,toDisplayString(e.props.question1Text),1),createVNode(e.AirportPicker,{ref:"airportPickerEl",modelValue:e.airportValue,"onUpdate:modelValue":o[0]||(o[0]=m=>e.airportValue=m),options:e.props.domesticAirportList,labelText:e.props.toLabel,placeholderText:t.$t("Select destination"),name:`${r.formNamePrefix}-locationInMalaysia`,attrs:{"aria-label":e.props.question1Text},variant:"bst-widget",required:e.props.isFocused,enableGlassDesign:e.props.enableGlassDesign},{"mobile-title":withCtx(()=>[renderSlot(t.$slots,"mobile-question-1-title",{},()=>[createTextVNode(toDisplayString(e.props.question1Text),1)],!0)]),_:3},8,["modelValue","options","labelText","placeholderText","name","attrs","required","enableGlassDesign"])]),createBaseVNode("div",_hoisted_35$5,[createBaseVNode("p",_hoisted_36$4,toDisplayString(e.props.question2Text),1),createVNode(e.DatePicker,{ref:"datePickerEl",modelValue:e.departureDate,"onUpdate:modelValue":o[1]||(o[1]=m=>e.departureDate=m),name:`${r.formNamePrefix}-departDate`,ariaLabel:e.props.question2Text,minDate:e.props.dateToMalaysia,maxDate:e.props.dateLeaveMalaysia,disablePastDates:!0,displayYear:["t","t+1"],required:e.props.isFocused,disableAutoCompleteForAmal:e.props.disableAutoCompleteForAmal,enableGlassDesign:e.props.enableGlassDesign,variant:"bst-widget"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.departLabel),1)]),"mobile-title":withCtx(()=>[renderSlot(t.$slots,"mobile-question-2-title",{},()=>[createTextVNode(toDisplayString(e.props.question2Text),1)],!0)]),_:3},8,["modelValue","name","ariaLabel","minDate","maxDate","required","disableAutoCompleteForAmal","enableGlassDesign"])])])])])):createCommentVNode("",!0)],34)),[[u]])}const OptionBST=_export_sfc(_sfc_main$1l,[["render",_sfc_render$1l],["__scopeId","data-v-dd93ecbf"],["__file","OptionBST.vue"]]),__default__$1j={name:"Breadcrumb"},_sfc_main$1k=Object.assign(__default__$1j,{props:{isForBonusSideTrip:{type:Boolean,default:!1},bonusSideTripLabel:{type:String,default:"Bonus Side Trip"},alwaysShow:{type:Boolean,default:!1}},emits:["nav-link-click"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,{pageProperties:a}=useGlobalAEMState$1(),i=c=>c.siblings?[{label:c.pageTitle,pageTitle:c.pageTitle,pageUrl:c.pageUrl,value:c.pageUrl},...c.siblings].map(u=>({label:u.pageTitle,pageTitle:u.pageTitle,pageUrl:u.pageUrl,value:u.pageUrl,...u})):[],s=computed(()=>{const c=a.value.hierarchy;return e.isForBonusSideTrip?[{pageTitle:c.at(0).pageTitle,pageUrl:c.at(0).pageUrl},{pageTitle:i18nGlobal.t(e.bonusSideTripLabel),pageUrl:!1}]:c.length>5?[{pageTitle:c.at(0).pageTitle,pageUrl:c.at(0).pageUrl},{pageTitle:"...",pageUrl:"...",siblings:i({pageTitle:"...",pageUrl:"...",disabled:!0,siblings:c.slice(1,-1)})},{pageTitle:c.at(-1).pageTitle,pageUrl:!1,...c.at(-1).siblings?{siblings:i(c.at(-1))}:null}]:c.map(u=>({pageTitle:u.pageTitle,pageUrl:c.at(-1)===u?!1:u.pageUrl,...c.at(-1)===u&&u.siblings?{siblings:i(u)}:null}))}),l=window.siteName,d={props:e,emit:n,pageProperties:a,getSiblingsList:i,computedNavigations:s,siteName:l,get useGlobalAEMState(){return useGlobalAEMState$1},Dropdown,get i18nGlobal(){return i18nGlobal}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),_hoisted_1$1m=["data-use-theme"],_hoisted_2$1d={class:"line-clamp-1 flex-grow"},_hoisted_3$P={class:"line-clamp-1 flex-grow"},_hoisted_4$I={class:"line-clamp-1 flex-grow"};function _sfc_render$1k(t,o,r,e,n,a){var d,c,u,f;const i=resolveComponent("AppHyperlink"),s=__unplugin_components_1$d,l=__unplugin_components_0$k;return!((d=e.pageProperties)!=null&&d.hideBreadcrumbs)||e.props.alwaysShow?(openBlock(),createElementBlock("div",{key:0,"data-use-theme":e.siteName,class:"Breadcrumb flex items-center text-sm rtl:pr-10"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.computedNavigations,m=>(openBlock(),createElementBlock(Fragment,{key:m.pageUrl},[m.siblings?(openBlock(),createBlock(e.Dropdown,{key:1,class:"md:hidden",desktopVariant:"breadcrumb-dropdown",options:m.siblings,defaultValue:m.siblings.at(0).value,ariaLabel:m.siblings.at(0).pageTitle},{option:withCtx(({option:b})=>[createVNode(i,{class:normalizeClass(["hover:no-underline hover:text-inherit text-inherit py-2 px-2 w-full",{hidden:b.pageTitle==="..."}]),href:b.pageUrl},{default:withCtx(()=>[createTextVNode(toDisplayString(b.pageTitle),1)]),_:2},1032,["class","href"])]),caret:withCtx(()=>o[0]||(o[0]=[])),_:2},1032,["options","defaultValue","ariaLabel"])):(openBlock(),createElementBlock(Fragment,{key:0},[m.pageUrl?(openBlock(),createBlock(i,{key:0,class:normalizeClass(["breadcrumb-link line-clamp-1 md:hidden",e.computedNavigations.at(-1)===m?"font-semibold":""]),href:m.pageUrl,onClick:b=>t.$emit("nav-link-click",m.pageUrl,b)},{default:withCtx(()=>[createBaseVNode("span",_hoisted_2$1d,toDisplayString(m.pageTitle),1)]),_:2},1032,["class","href","onClick"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["breadcrumb-link line-clamp-1 md:hidden",e.computedNavigations.at(-1)===m?"font-semibold":""])},[createBaseVNode("span",_hoisted_3$P,toDisplayString(m.pageTitle),1)],2))],64)),e.computedNavigations.at(-1)!==m?(openBlock(),createBlock(s,{key:2,class:"mx-2 fill-neutral-grey-base w-4 h-4 md:hidden transform rtl:-rotate-180"})):createCommentVNode("",!0)],64))),128)),createVNode(i,{class:"breadcrumb-link font-semibold >md:hidden text-primary-blue-base !flex-nowrap gap-2",href:e.pageProperties.hierarchy.length>5?(u=(c=e.computedNavigations.at(-2))==null?void 0:c.siblings.at(-1))==null?void 0:u.pageUrl:(f=e.computedNavigations.at(-2))==null?void 0:f.pageUrl},{default:withCtx(()=>{var m,b,y;return[createVNode(l,{class:"fill-current-base w-4 h-4 flex-none transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_4$I,toDisplayString(e.pageProperties.hierarchy.length>5?(b=(m=e.computedNavigations.at(-2))==null?void 0:m.siblings.at(-1))==null?void 0:b.pageTitle:(y=e.computedNavigations.at(-2))==null?void 0:y.pageTitle),1)]}),_:1},8,["href"])],8,_hoisted_1$1m)):createCommentVNode("",!0)}const Breadcrumb=_export_sfc(_sfc_main$1k,[["render",_sfc_render$1k],["__scopeId","data-v-406c6362"],["__file","Breadcrumb.vue"]]),__default__$1i={name:"OverlayBonusSideTrip",inheritAttrs:!1},_sfc_main$1j=Object.assign(__default__$1i,{props:{isVisible:{type:Boolean,default:!1},bstNoteTop:{type:String,default:""},bstNoteCTAText:{type:String,default:""},bstNoteCTAURL:{type:String,default:""},bstEditSearchCTAText:{type:String,default:""},bstLabel:{type:String,default:""},optionLabel:{type:String,default:""},visitMalaysiaLabel:{type:String,default:""},yourDateOfChoiceLabel:{type:String,default:""},question1Text:{type:String,default:""},question2Text:{type:String,default:""},continueWithoutBSTCTAText:{type:String,default:""},continueCTAText:{type:String,default:""},toLabel:{type:String,default:""},departLabel:{type:String,default:""},bstQuestion1MobileLabel:{type:String,default:""},bstQuestion2MobileLabel:{type:String,default:""},bstDisabledContinueCtaLabel:{type:String,default:""},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},passengerSelectionQuestion:{type:String,default:""},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},extraONDFilterForFlightSearch:{type:Object,default:null},bstAssetType:{type:String,default:""},bstAssetPath:{type:String,default:""},reviewYourTripLabel:{type:String,default:""},bonusSideTripLabel:{type:String,default:""},freeJustPayTaxesLabel:{type:String,default:""},visitAnotherCityText:{type:String,default:""},enableBSTNewDesign:{type:Boolean,default:!0},enableGlassDesign:{type:Boolean,default:!0}},emits:["update:isVisible"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null),c=ref$1(null),u=ref$1(null),f=ref$1(e.isVisible);useDisableScroll(f,{useOverflowHiddenMethod:!0}),watch(()=>e.isVisible,me=>{f.value=me}),watch(f,me=>{n("update:isVisible",me)});const m=()=>{f.value=!1},{activate:b,deactivate:y}=useFocusTrap(a),_=async()=>{var me;(me=a.value)==null||me.focus(),await nextTick$1(),b()},S=()=>{y()},C=ref$1(null),T=ref$1(null),{pageProperties:x,isEditorMode:k}=useGlobalAEMState$1(),E=x.value.rootCountry,w=x.value.rootLanguage,D=me=>me.charAt(0).toUpperCase()+me.slice(1),N=async(me,K)=>{var Te,Se,Ae,ue,ye,Xe,De,ke,ze,qe,ht,pt;console.log(" handleSubmitValid values = ",M.value,me);const q=M.value,Z=parseInt(q.cabinClassValue.value)-1,de=q.payByEnrichPoints?e.cabinClassMilesList[Z].value:e.cabinClassCashList[Z].value;let fe=null;const _e=e.enableBSTNewDesign?l.value:(Te=i.value)==null?void 0:Te.airportValue,pe=e.enableBSTNewDesign?d.value:(Se=s.value)==null?void 0:Se.airportValue,ve=e.enableBSTNewDesign?c.value:(Ae=i.value)==null?void 0:Ae.departureDate,Me=e.enableBSTNewDesign?u.value:(ue=s.value)==null?void 0:ue.departureDate,Fe=useIsUkVariant({origin:q.ondValueFrom,destination:q.ondValueTo});if(me==="bst"){switch(A.value){case"option-1":fe={originCountry:(Xe=(ye=q.ondValueFrom)==null?void 0:ye._original)==null?void 0:Xe.countryName,departDate1:dayjs(q.dateRangeValueFrom).format("YYYYMMDDHHmm"),returnDate1:dayjs(q.dateRangeValueFrom).format("YYYYMMDDHHmm"),originAirportCode1:q.ondValueFrom.code,destAirportCode1:_e==null?void 0:_e.code,departDate2:dayjs(ve).format("YYYYMMDDHHmm"),returnDate2:dayjs(ve).format("YYYYMMDDHHmm"),originAirportCode2:_e==null?void 0:_e.code,destAirportCode2:q.ondValueTo.code,...W.value?null:{departDate3:dayjs(q.dateRangeValueTo).format("YYYYMMDDHHmm"),returnDate3:dayjs(q.dateRangeValueTo).format("YYYYMMDDHHmm"),originAirportCode3:q.ondValueTo.code,destAirportCode3:q.ondValueFrom.code},flightClass:de,adultCount:q.adultsCount.toString(),...Fe?{teenCount:q.teensCount.toString()}:null,childCount:q.childrenCount.toString(),infantCount:q.infantsCount.toString(),paymentType:q.payByEnrichPoints?"miles":"
1171cash",regionLanguage:E&&w?`${E}-${D(w)}`:"",promoCode:q.promoCodeValue??"",amcvId:((De=window._satellite)==null?void 0:De.getVar("ECID"))??"",teaserCategory:getCookie("TeaserCategory")??"",bstDestination:_e==null?void 0:_e.code,bstDepartureDate:ve?dayjs(ve).format("YYYYMMDDHHmm"):null,bstBound:"Departure"};break;case"option-2":fe={originCountry:(ze=(ke=q.ondValueFrom)==null?void 0:ke._original)==null?void 0:ze.countryName,departDate1:dayjs(q.dateRangeValueFrom).format("YYYYMMDDHHmm"),returnDate1:dayjs(q.dateRangeValueFrom).format("YYYYMMDDHHmm"),originAirportCode1:q.ondValueFrom.code,destAirportCode1:q.ondValueTo.code,departDate2:dayjs(q.dateRangeValueTo).format("YYYYMMDDHHmm"),returnDate2:dayjs(q.dateRangeValueTo).format("YYYYMMDDHHmm"),originAirportCode2:(qe=q.ondValueTo)==null?void 0:qe.code,destAirportCode2:pe==null?void 0:pe.code,departDate3:dayjs(Me).format("YYYYMMDDHHmm"),returnDate3:dayjs(Me).format("YYYYMMDDHHmm"),originAirportCode3:pe==null?void 0:pe.code,destAirportCode3:q.ondValueFrom.code,flightClass:de,adultCount:q.adultsCount.toString(),...Fe?{teenCount:q.teensCount.toString()}:null,childCount:q.childrenCount.toString(),infantCount:q.infantsCount.toString(),paymentType:q.payByEnrichPoints?"miles":"cash",regi
1171onLanguage:E&&w?`${E}-${D(w)}`:"",promoCode:q.promoCodeValue??"",amcvId:((ht=window._satellite)==null?void 0:ht.getVar("ECID"))??"",teaserCategory:getCookie("TeaserCategory")??"",bstDestination:pe==null?void 0:pe.code,bstDepartureDate:Me?dayjs(Me).format("YYYYMMDDHHmm"):null,bstBound:"Return"};break;default:console.log(`Unknown value: ${A.value}. Ignore it.`);break}fe.bst="TRUE"}else fe={departDate1:dayjs(q.dateRangeValueFrom).format("YYYYMMDDHHmm"),returnDate1:!q.isOneWay&&q.dateRangeValueTo?dayjs(q.dateRangeValueTo).format("YYYYMMDDHHmm"):"",originAirportCode1:q.ondValueFrom.code,originCountry:q.ondValueFrom._original.countryName,destAirportCode1:q.ondValueTo.code,flightClass:de,adultCount:q.adultsCount.toString(),...Fe?{teenCount:q.teensCount.toString()}:null,childCount:q.childrenCount.toString(),infantCount:q.infantsCount.toString(),paymentType:q.payByEnrichPoints?"miles":"cash",amal1:q.ondValueTo._original.isAmalFlag,regionLanguage:E&&w?`${E}-${D(w)}`:"",promoCode:q.promoCodeValue??"",amcvId:((pt=window._satellite)==null?void 0:pt.getVar("ECID"))??"",teaserCategory:getCookie("TeaserCategory")??""};try{const Ne=await axios$1({method:"post",url:e.flightSearchApiUrl,data:fe}),{url:Je,payload:$e}=Ne.data;delete $e.RAW_DATA;const st={},bt=Object.entries($e);for(let[Ye,[lt,et]]of bt.entries())st[Ye]=lt;const Bt={...st,...$e},rt=Object.entries(Bt),Ze="post",dt=document.createElement("form");dt.setAttribute("method",Ze),dt.setAttribute("action",Je);for(let[Ye,[lt,et]]of rt.entries()){const nt=parseInt(lt);let Pt=document.createElement("input");Pt.setAttribute("type","hidden"),Pt.setAttribute("name",lt),Pt.setAttribute("value",et),dt.appendChild(Pt)}document.body.appendChild(dt),dt.submit()}catch(Ne){console.error("handleSubmitValid, ","Unable to fetch api",Ne)}},F=({values:me,errors:K,results:q,evt:Z})=>{console.log("❌ handleSubmitInvalid errors = ",K)},V=(me,K)=>{m()},A=ref$1(null),{holdingData:M,commitDataFromBSTOverlay:O,registerNotifier:R,unregisterNotifier:I}=useBSTOverlayInterimData(),j=ref$1(null),H=async()=>{var me,K;!((me=U==null?void 0:U.value)!=null&&me.code)&&!((K=B==null?void 0:B.value)!=null&&K.code)||(j.value=await getMalaysiaAirportForBST({from:U.value.code,to:B.value.code})??null,j.value&&(j.value.fromTo=lodashExports.sortBy(j.value.fromTo,"label"),j.value.toFrom=lodashExports.sortBy(j.value.toFrom,"label")))},U=ref$1(null),B=ref$1(null),L=ref$1(null),z=ref$1(null),W=ref$1(!1);R("bst-overlay",me=>{U.value=me.ondValueFrom,B.value=me.ondValueTo,L.value=me.dateRangeValueFrom,z.value=me.dateRangeValueTo,W.value=me.isOneWay,H()},{immediate:!0});const J=me=>{var K,q;U.value=me.ondValueFrom,B.value=me.ondValueTo,L.value=me.dateRangeValueFrom,z.value=me.dateRangeValueTo,W.value=me.isOneWay,(K=i.value)==null||K.resetForm(),(q=s.value)==null||q.resetForm(),A.value=null,l.value=null,d.value=null,c.value=null,u.value=null,W.value&&(A.value="option-1"),O(me),H()},te=computed(()=>{if(!T.value)return null;const me=T.value.values;let K=null;return me.selectedOption==="option-1"?K={location:me["bst-option-1-locationInMalaysia"],departDate:me["bst-option-1-departDate"]}:K={location:me["bst-option-2-locationInMalaysia"],departDate:me["bst-option-2-departDate"]},K}),re=computed(()=>{var me;if(!e.enableBSTNewDesign){if(!T.value)return!0;const K=T.value.meta;return(me=C.value)!=null&&me.isEditMode?!0:!K.valid||!(te.value&&te.value.location&&te.value.departDate)}return A.value?A.value==="option-1"?!l.value||!c.value:A.value==="option-2"?!d.value||!u.value:!0:!0}),oe=computed(()=>he.value?isMobileViewport.value&&e.bstQuestion1MobileLabel?e.bstQuestion1MobileLabel:he.value.isReturn&&e.question1TextReturn||e.question1Text:""),X=computed(()=>{var me;return(me=he.value)!=null&&me.isReturn&&e.toLabelReturn||e.toLabel}),se=computed(()=>he.value?isMobileViewport.value&&e.bstQuestion2MobileLabel?e.bstQuestion2MobileLabel:he.value.isReturn&&e.question2TextReturn||e.question2Text:""),le=computed(()=>{var me;return(me=he.value)!=null&&me.isReturn&&e.departLabelReturn||e.departLabel}),he=computed(()=>{var K,q;if(!A.value)return null;const me=A.value==="option-2";return{isReturn:me,from:me?B.value:U.value,to:me?U.value:B.value,airportList:me?(K=j.value)==null?void 0:K.toFrom:(q=j.value)==null?void 0:q.fromTo,minDate:me?z.value:L.value,maxDate:me?null:z.value,displayDate:me?z.value:L.value,departDate:me?z.value:L.value,returnDate:z.value}}),ge=computed(()=>
1171{if(!U.value||!B.value||!A.value)return null;const me=A.value==="option-2";return{from:U.value,to:B.value,departDate:L.value,returnDate:W.value?null:z.value,bstAirport:Y.value,bstDate:ne.value,isReturn:me}}),Q=computed(()=>{if(!ge.value)return[];const me=ge.value;return me.isReturn?[{type:"location",label:`${me.from.displayValue} ${me.from.code}`},{type:"date",label:dayjs(me.departDate).format("DD MMM YYYY")},{type:"location",label:`${me.to.displayValue} ${me.to.code}`},{type:"date",label:dayjs(me.returnDate).format("DD MMM YYYY")},{type:"bst",label:me.bstAirport?`${me.bstAirport.label} ${me.bstAirport.code}`:e.visitMalaysiaLabel},{type:"date",label:me.bstDate?dayjs(me.bstDate).format("DD MMM YYYY"):e.yourDateOfChoiceLabel},{type:"location",label:`${me.from.displayValue} ${me.from.code}`}]:[{type:"location",label:`${me.from.displayValue} ${me.from.code}`},{type:"date",label:dayjs(me.departDate).format("DD MMM YYYY")},{type:"bst",label:me.bstAirport?`${me.bstAirport.label} ${me.bstAirport.code}`:e.visitMalaysiaLabel},{type:"date",label:me.bstDate?dayjs(me.bstDate).format("DD MMM YYYY"):e.yourDateOfChoiceLabel},{type:"location",label:`${me.to.displayValue} ${me.to.code}`},...me.returnDate?[{type:"date",label:dayjs(me.returnDate).format("DD MMM YYYY")},{type:"location",label:`${me.from.displayValue} ${me.from.code}`}]:[]]}),Y=computed({get(){return A.value==="option-2"?d.value:l.value},set(me){A.value==="option-2"?d.value=me:l.value=me}}),ne=computed({get(){return A.value==="option-2"?u.value:c.value},set(me){A.value==="option-2"?u.value=me:c.value=me}}),Ce=computed(()=>isMobileViewport.value&&e.bstMobileImage?e.bstMobileImage:e.bstDesktopImage),ae=computed(()=>isMobileViewport.value?e.bstMobileImageAltText:e.bstDesktopImageAltText);onUnmounted(()=>{I("bst-overlay")});const Be={props:e,emit:n,rootEl:a,option1El:i,option2El:s,selectedAirportOption1:l,selectedAirportOption2:d,selectedDateOption1:c,selectedDateOption2:u,internalVisible:f,hideOverlay:m,activeFocusTrap:b,deactivateFocusTrap:y,handleRootElOnMounted:_,handleRootElBeforeUnmount:S,editSearchBSTEl:C,formWrapper:T,pageProperties:x,isEditorMode:k,country:E,language:w,capitalizeString:D,handleSubmitValid:N,handleSubmitInvalid:F,handleBreadcrumbNavClick:V,focusedOption:A,holdingData:M,commitDataFromBSTOverlay:O,registerNotifier:R,unregisterNotifier:I,domesticAirportForBST:j,getDomesticAirportForBST:H,ondValueFrom:U,ondValueTo:B,dateRangeValueFrom:L,dateRangeValueTo:z,isOneWay:W,handleEditSearchCommitData:J,bstToMalaysiaValues:te,isBtnSubmitDisabled:re,airportQuestionLabel:oe,airportInputLabel:X,dateQuestionLabel:se,dateInputLabel:le,currentContext:he,reviewTripFlow:ge,mobileSteps:Q,selectedAirport:Y,selectedDate:ne,bstImageSrc:Ce,bstImageAlt:ae,get useDisableScroll(){return useDisableScroll},get useFocusTrap(){return useFocusTrap},HeaderBST,FooterBST,EditSearchBST,OptionBST,FormWrapper,CTAButton,Breadcrumb,TextField,get dayjs(){return dayjs},get useBSTOverlayInterimData(){return useBSTOverlayInterimData},get i18nGlobal(){return i18nGlobal},get useGlobalAEMState(){return useGlobalAEMState$1},get getONDValueByAirportCode(){return getONDValueByAirportCode},get getMalaysiaAirportForBST(){return getMalaysiaAirportForBST},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},Tooltip,get _sortBy(){return lodashExports.sortBy},get isMobileViewport(){return isMobileViewport},get getCookie(){return getCookie},get useIsUkVariant(){return useIsUkVariant},DatePicker,AirportPicker,FontAwesomeLazy};return Object.defineProperty(Be,"__isScriptSetup",{enumerable:!1,value:!0}),Be}}),_hoisted_1$1l={class:"bst-header"},_hoisted_2$1c={class:"bg-neutral-grey-ultralight py-4"},_hoisted_3$O={class:"generic-container"},_hoisted_4$H={class:"bst-body generic-container flex-grow"},_hoisted_5$E={class:"max-w-[996px] mx-auto lg:w-full py-10"},_hoisted_6$A={key:0,class:"bst-banner rounded-xl bg-primary-blue-extralight flex-grow px-5 py-4 flex gap-4 relative sm:flex-col"},_hoisted_7$A={class:"flex gap-3"},_hoisted_8$y={class:"basis-6 flex-none top-1 relative"},_hoisted_9$v={key:0,class:"static sm:pl-8 rtl:right-auto rtl:left-6 rtl:sm:pl-0 rtl:sm:pr-8 flex-shrink-0"},_hoisted_10$n={class:"bst-edit-search mt-7 mb-7"},_hoisted_11$m={class:"text-lg font-semibold mb-7"},_hoisted_12$l={class:"flex flex-col gap-6 mb-10"},_hoisted_13$j={key:0,class:"bst-banner-card"},_hoisted_14$j={class:"media"},_hoisted_15$i=["src"],_hoisted_16$i={key:1,ref:"videoControls",class:"media-img",loop:"",muted:"",autoplay:"",playsinline:""},_hoisted_17$g=["src"],_hoisted_18$e={class:"content"},_hoisted_19$c={class:"bst-banner rounded-xl bg-primary-blue-extralight flex-grow px-5 py-4 gap-4 relative sm:flex-col"},_hoisted_20$c={class:"flex gap-3 flex-1"},_hoisted_21$c={key:0,class:"static sm:pl-8 rtl:right-auto rtl:left-6 rtl:sm:pl-0 rtl:sm:pr-8"},_hoisted_22$b={class:"bst-edit-search mt-7 mb-7"},_hoisted_23$a={class:"text-lg font-semibold mb-7"},_hoisted_24$9={key:1,class:"mt-8"},_hoisted_25$9={class:"grid grid-cols-2 gap-6 md:grid-cols-1"},_hoisted_26$9={class:"font-semibold mb-2"},_hoisted_27$8={class:"font-semibold mb-2"},_hoisted_28$7={key:2,class:"mt-10"},_hoisted_29$7={class:"font-semibold mb-4"},_hoisted_30$7={key:0,class:"bst-review-timeline desktop"},_hoisted_31$7={class:"node"},_hoisted_32$7={class:"label"},_hoisted_33$4={class:"code"},_hoisted_34$4={class:"flight-segment"},_hoisted_35$4={class:"flight-date"},_hoisted_36$3={class:"flight-line"},_hoisted_37$3={key:0,class:"bst-wrapper"},_hoisted_38$3={class:"bst-circle"},_hoisted_39$3={class:"badge"},_hoisted_40$3={class:"bst-box-inner"},_hoisted_41$3={class:"sub"},_hoisted_42$3={class:"code"},_hoisted_43$2={class:"flight-segment"},_hoisted_44$2={class:"flight-date"},_hoisted_45$2={class:"flight-line"},_hoisted_46$2={class:"node"},_hoisted_47$2={class:"label"},_hoisted_48$1={class:"code"},_hoisted_49$1={key:1,class:"flight-segment"},_hoisted_50$1={class:"flight-date"},_hoisted_51={class:"flight-line"},_hoisted_52={key:2,class:"bst-wrapper"},_hoisted_53={class:"bst-circle"},_hoisted_54={class:"badge"},_hoisted_55={class:"sub"},_hoisted_56={class:"code"},_hoisted_57={class:"flight-segment"},_hoisted_58={class:"flight-date"},_hoisted_59={class:"flight-line"},_hoisted_60={key:3,class:"node"},_hoisted_61={class:"label"},_hoisted_62={class:"code"},_hoisted_63={key:1,class:"bst-review-timeline mobile"},_hoisted_64={class:"timeline"},_hoisted_65={class:"icon"},_hoisted_66={key:3,class:"flight-icon-group"},_hoisted_67={class:"content"},_hoisted_68={key:0,class:"label"},_hoisted_69={key:1,class:"date"},_hoisted_70={key:2,class:"bst-box"},_hoisted_71={class:"badge"},_hoisted_72={class:"title"},_hoisted_73={class:"bst-circle"},_hoisted_74={class:"bst-sticky-bar py-6 md:py-3"},_hoisted_75={class:"max-w-[996px] mx-auto lg:w-full flex justify-end md:justify-center md:flex-col"};function _sfc_render$1j(t,o,r,e,n,a){const i=__unplugin_components_1$c,s=resolveComponent("AppHyperlink"),l=__unplugin_components_1$1,d=__unplugin_components_0$9,c=__unplugin_components_0$7,u=__unplugin_components_4,f=__unplugin_components_5,m=__unplugin_components_6,b=__unplugin_components_7,y=resolveDirective("html-sanitize"),_=resolveDirective("aa"),S=resolveDirective("button-press");return openBlock(),createBlock(Teleport,{to:"body"},[createVNode(Transition,{name:"overlay-scale-fade-in",appear:""},{default:withCtx(()=>[r.isVisible?(openBlock(),createElementBlock("div",mergeProps({key:0,ref:"rootEl",tabindex:"-1",class:"OverlayBonusSideTrip generic-backdrop"},t.$attrs,{onKeydownCapture:withKeys(e.hideOverlay,["esc"]),onVnodeMounted:e.handleRootElOnMounted,onVnodeBeforeUnmount:e.handleRootElBeforeUnmount,onClick:o[7]||(o[7]=withModifiers((...C)=>t.handleBackdropClick&&t.handleBackdropClick(...C),["self"]))}),[createVNode(e.FormWrapper,{ref:"formWrapper",class:"inner-container",tabindex:"-1",onSubmitValid:o[6]||(o[6]=C=>e.handleSubmitValid("bst")),onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({values:C,errors:T,meta:x})=>{var k,E,w,D,N,F,V,A,M;return[createBaseVNode("div",mergeProps({class:"overlay-content overflow-y-auto styled-scrollbar h-full h-[100svh] flex flex-col"},e.props.overlayContentAttrs),[createBaseVNode("header",_hoisted_1$1l,[createVNode(e.HeaderBST,{class:"overlay-header"}),createBaseVNode("div",_hoisted_2$1c,[createBaseVNode("div",_hoisted_3$O,[createVNode(e.Breadcrumb,{isForBonusSideTrip:!0,onNavLinkClick:e.handleBreadcrumbNavClick})])])]),createBaseVNode("div",_hoisted_4$H,[createBaseVNode("div",_hoisted_5$E,[e.props.enableBSTNewDesign?(openBlock(),createElementBlock(Fragment,{key:1},[e.props.bstNoteTop?(openBlock(),createElementBlock("div",_hoisted_13$j,[createBaseVNode("div",_hoisted_14$j,[e.props.bstAssetType==="image"?(openBlock(),createElementBlock("img",{key:0,class:"media-img",src:e.props.bstAssetPath},null,8,_hoisted_15$i)):createCommentVNode("",!0),e.props.bstAssetType==="video"?(openBlock(),createElementBlock("video",_hoisted_16$i,[createBaseVNode("source",{src:e.props.bstAssetPath}
1171,null,8,_hoisted_17$g)],512)):createCommentVNode("",!0)]),createBaseVNode("div",null,[createBaseVNode("div",_hoisted_18$e,[createBaseVNode("div",_hoisted_19$c,[createBaseVNode("div",_hoisted_20$c,[withDirectives(createBaseVNode("div",null,null,512),[[y,e.props.bstNoteTop]])]),e.props.bstNoteCTAText?(openBlock(),createElementBlock("div",_hoisted_21$c,[withDirectives((openBlock(),createBlock(s,{href:e.props.bstNoteCTAURL,target:"_blank",showExternalLinkIcon:!1},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.bstNoteCTAText),1)]),_:1},8,["href"])),[[_,[{clickName:e.props.bstNoteCTAText,clickComponentType:"URL",componentName:"OverlayBonusSideTrip",componentID:e.props.componentIdAA,BST:!0},{name:e.props.bstNoteCTAText,type:e.isUrlMatchCurrentHostname(e.props.bstNoteCTAURL)?"other":"exit"}]]])])):createCommentVNode("",!0)])])])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_22$b,[createVNode(e.EditSearchBST,{ref:"editSearchBSTEl",bstEditSearchCTAText:e.props.bstEditSearchCTAText,ondSelection:e.props.ondSelection,datePicker:e.props.datePicker,passengerSelection:e.props.passengerSelection,fromQuestionMobile:e.props.fromQuestionMobile,toQuestionMobile:e.props.toQuestionMobile,datePickerQuestionMobile:e.props.datePickerQuestionMobile,passengerSelectionQuestion:e.props.passengerSelectionQuestion,componentIdAA:e.props.componentIdAA,extraONDFilterForFlightSearch:e.props.extraONDFilterForFlightSearch,enableGlassDesign:e.props.enableGlassDesign,onSaveSearchData:e.handleEditSearchCommitData},null,8,["bstEditSearchCTAText","ondSelection","datePicker","passengerSelection","fromQuestionMobile","toQuestionMobile","datePickerQuestionMobile","passengerSelectionQuestion","componentIdAA","extraONDFilterForFlightSearch","enableGlassDesign"])]),withDirectives(createBaseVNode("div",_hoisted_23$a,null,512),[[y,e.props.bstLabel]]),createBaseVNode("div",{class:normalizeClass(["grid gap-6 md:grid-cols-1",e.isOneWay?"grid-cols-1":"grid-cols-2"])},[createVNode(e.OptionBST,{isFocused:e.focusedOption==="option-1",title:`Departure: ${e.ondValueFrom.displayValue} → ${e.ondValueTo.displayValue}`,description:`${e.props.visitAnotherCityText} ${e.ondValueTo.displayValue}`,enableBSTNewDesign:e.props.enableBSTNewDesign,enableGlassDesign:e.props.enableGlassDesign,onSelect:o[2]||(o[2]=O=>e.focusedOption="option-1")},null,8,["isFocused","title","description","enableBSTNewDesign","enableGlassDesign"]),e.isOneWay?createCommentVNode("",!0):(openBlock(),createBlock(e.OptionBST,{key:0,isFocused:e.focusedOption==="option-2",title:`Return: ${e.ondValueTo.displayValue} → ${e.ondValueFrom.displayValue}`,description:`${e.props.visitAnotherCityText}  ${e.ondValueFrom.displayValue}`,enableBSTNewDesign:e.props.enableBSTNewDesign,enableGlassDesign:e.props.enableGlassDesign,onSelect:o[3]||(o[3]=O=>e.focusedOption="option-2")},null,8,["isFocused","title","description","enableBSTNewDesign","enableGlassDesign"]))],2),e.focusedOption?(openBlock(),createElementBlock("div",_hoisted_24$9,[createBaseVNode("div",_hoisted_25$9,[createBaseVNode("div",null,[createBaseVNode("p",_hoisted_26$9,toDisplayString(e.airportQuestionLabel),1),createVNode(e.AirportPicker,{modelValue:e.selectedAirport,"onUpdate:modelValue":o[4]||(o[4]=O=>e.selectedAirport=O),options:(w=e.currentContext)==null?void 0:w.airportList,name:"bst-location",rules:"required",class:"bst-airport-input",labelText:e.airportInputLabel,placeholderText:t.$t("Select destination"),enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","options","labelText","placeholderText","enableGlassDesign"])]),createBaseVNode("div",null,[createBaseVNode("p",_hoisted_27$8,toDisplayString(e.dateQuestionLabel),1),createVNode(e.DatePicker,{modelValue:e.selectedDate,"onUpdate:modelValue":o[5]||(o[5]=O=>e.selectedDate=O),name:"bst-date",rules:"required",ariaLabel:e.dateInputLabel,minDate:(D=e.currentContext)==null?void 0:D.minDate,maxDate:(N=e.currentContext)==null?void 0:N.maxDate,placeholder:t.$t("Select a date"),enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","ariaLabel","minDate","maxDate","placeholder","enableGlassDesign"])])])])):createCommentVNode("",!0),e.reviewTripFlow&&e.focusedOption?(openBlock(),createElementBlock("div",_hoisted_28$7,[createBaseVNode("p",_hoisted_29$7,toDisplayString(e.props.reviewYourTripLabel),1),e.isMobileViewport?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_30$7,[createBaseVNode("div",_hoisted_31$7,[createVNode(l,{class:"node-icon start"}),createBaseVNode("div",_hoisted_32$7,toDisplayString(e.reviewTripFlow.from.displayValue),1),createBaseVNode("div",_hoisted_33$4,toDisplayString(e.reviewTripFlow.from.code),1)]),createBaseVNode("div",_hoisted_34$4,[createBaseVNode("div",_hoisted_35$4,toDisplayString(e.dayjs(e.reviewTripFlow.departDate).format("DD MMM YYYY")),1),createBaseVNode("div",_hoisted_36$3,[o[8]||(o[8]=createBaseVNode("div",{class:"dot"},null,-1)),o[9]||(o[9]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(d,{class:"plane"}),o[10]||(o[10]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(c,{class:"arrow"})])]),e.reviewTripFlow.isReturn?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_37$3,[createBaseVNode("span",_hoisted_38$3,[createVNode(u)]),createBaseVNode("div",_hoisted_39$3,toDisplayString(e.props.freeJustPayTaxesLabel),1),createBaseVNode("div",_hoisted_40$3,[createBaseVNode("div",_hoisted_41$3,[createTextVNode(toDisplayString(((F=e.reviewTripFlow.bstAirport)==null?void 0:F.label)||e.props.bonusSideTripLabel)+" ",1),createBaseVNode("div",_hoisted_42$3,toDisplayString((V=e.reviewTripFlow.bstAirport)==null?void 0:V.code),1)])]),createBaseVNode("div",_hoisted_43$2,[createBaseVNode("div",_hoisted_44$2,toDisplayString(e.reviewTripFlow.bstDate?e.dayjs(e.reviewTripFlow.bstDate).format("DD MMM YYYY"):e.props.yourDateOfChoiceLabel),1),createBaseVNode("div",_hoisted_45$2,[o[11]||(o[11]=createBaseVNode("div",{class:"dot"},null,-1)),o[12]||(o[12]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(d,{class:"plane"}),o[13]||(o[13]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(c,{class:"arrow"})])])])),createBaseVNode("div",_hoisted_46$2,[createVNode(f,{class:"node-icon location"}),createBaseVNode("div",_hoisted_47$2,toDisplayString(e.reviewTripFlow.to.displayValue),1),createBaseVNode("div",_hoisted_48$1,toDisplayString(e.reviewTripFlow.to.
1171code),1)]),e.isOneWay?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_49$1,[createBaseVNode("div",_hoisted_50$1,toDisplayString(e.dayjs(e.reviewTripFlow.returnDate).format("DD MMM YYYY")),1),createBaseVNode("div",_hoisted_51,[o[14]||(o[14]=createBaseVNode("div",{class:"dot"},null,-1)),o[15]||(o[15]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(d,{class:"plane"}),o[16]||(o[16]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(c,{class:"arrow"})])])),e.reviewTripFlow.isReturn?(openBlock(),createElementBlock("div",_hoisted_52,[createBaseVNode("span",_hoisted_53,[createVNode(u)]),createBaseVNode("div",_hoisted_54,toDisplayString(e.props.freeJustPayTaxesLabel),1),createBaseVNode("div",_hoisted_55,[createTextVNode(toDisplayString(((A=e.reviewTripFlow.bstAirport)==null?void 0:A.label)||e.props.bonusSideTripLabel)+" ",1),createBaseVNode("span",_hoisted_56,toDisplayString((M=e.reviewTripFlow.bstAirport)==null?void 0:M.code),1)]),createBaseVNode("div",_hoisted_57,[createBaseVNode("div",_hoisted_58,toDisplayString(e.reviewTripFlow.bstDate?e.dayjs(e.reviewTripFlow.bstDate).format("DD MMM YYYY"):e.props.yourDateOfChoiceLabel),1),createBaseVNode("div",_hoisted_59,[o[17]||(o[17]=createBaseVNode("div",{class:"dot"},null,-1)),o[18]||(o[18]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(d,{class:"plane"}),o[19]||(o[19]=createBaseVNode("div",{class:"dash"},null,-1)),createVNode(c,{class:"arrow"})])])])):createCommentVNode("",!0),e.isOneWay?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_60,[createVNode(m,{class:"node-icon end"}),createBaseVNode("div",_hoisted_61,toDisplayString(e.reviewTripFlow.from.displayValue),1),createBaseVNode("div",_hoisted_62,toDisplayString(e.reviewTripFlow.from.code),1)]))])),e.isMobileViewport?(openBlock(),createElementBlock("div",_hoisted_63,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.mobileSteps,(O,R)=>(openBlock(),createElementBlock("div",{key:R,class:"step"},[createBaseVNode("div",_hoisted_64,[o[20]||(o[20]=createBaseVNode("div",{class:"line"},null,-1)),createBaseVNode("div",_hoisted_65,[R===0?(openBlock(),createBlock(l,{key:0,class:"start-icon"})):R===e.mobileSteps.length-1?(openBlock(),createBlock(m,{key:1,class:"end-icon"})):O.type==="location"?(openBlock(),createBlock(f,{key:2,class:"circle-icon"})):O.type==="date"?(openBlock(),createElementBlock("div",_hoisted_66,[createVNode(d,{class:"plane-icon"}),createVNode(b,{class:"arrow-icon"})])):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_67,[O.type==="location"?(openBlock(),createElementBlock("div",_hoisted_68,toDisplayString(O.label),1)):createCommentVNode("",!0),O.type==="date"?(openBlock(),createElementBlock("div",_hoisted_69,toDisplayString(O.label),1)):createCommentVNode("",!0),O.type==="bst"?(openBlock(),createElementBlock("div",_hoisted_70,[createBaseVNode("div",_hoisted_71,toDisplayString(e.props.freeJustPayTaxesLabel),1),createBaseVNode("div",_hoisted_72,[createBaseVNode("span",_hoisted_73,[createVNode(u)]),createTextVNode(" "+toDisplayString(O.label||e.props.visitMalaysiaLabel),1)])])):createCommentVNode("",!0)])]))),128))])):createCommentVNode("",!0)])):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:0},[e.props.bstNoteTop?(openBlock(),createElementBlock("div",_hoisted_6$A,[createBaseVNode("div",_hoisted_7$A,[createBaseVNode("div",_hoisted_8$y,[createVNode(i,{class:"fill-primary-blue-base","aria-hidden":"true"})]),withDirectives(createBaseVNode("div",null,null,512),[[y,e.props.bstNoteTop]])]),e.props.bstNoteCTAText?(openBlock(),createElementBlock("div",_hoisted_9$v,[withDirectives((openBlock(),createBlock(s,{href:e.props.bstNoteCTAURL,target:"_blank",showExternalLinkIcon:!1},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.bstNoteCTAText),1)]),_:1},8,["href"])),[[_,[{clickName:e.props.bstNoteCTAText,clickComponentType:"URL",componentName:"OverlayBonusSideTrip",componentID:e.props.componentIdAA,BST:!0},{name:e.props.bstNoteCTAText,type:e.isUrlMatchCurrentHostname(e.props.bstNoteCTAURL)?"other":"exit"}]]])])):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_10$n,[createVNode(e.EditSearchBST,{ref:"editSearchBSTEl",bstEditSearchCTAText:e.props.bstEditSearchCTAText,ondSelection:e.props.ondSelection,datePicker:e.props.datePicker,passengerSelection:e.props.passengerSelection,fromQuestionMobile:e.props.fromQuestionMobile,toQuestionMobile:e.props.toQuestionMobile,datePickerQuestionMobile:e.props.datePickerQuestionMobile,passengerSelectionQuestion:e.props.passengerSelectionQuestion,componentIdAA:e.props.componentIdAA,extraONDFilterForFlightSearch:e.props.extraONDFilterForFlightSearch,enableGlassDesign:e.props.enableGlassDesign,onSaveSearchData:e.handleEditSearchCommitData},null,8,["bstEditSearchCTAText","ondSelection","datePicker","passengerSelection","fromQuestionMobile","toQuestionMobile","datePickerQuestionMobile","passengerSelectionQuestion","componentIdAA","extraONDFilterForFlightSearch","enableGlassDesign"])]),withDirectives(createBaseVNode("div",_hoisted_11$m,null,512),[[y,e.props.bstLabel]]),createBaseVNode("div",_hoisted_12$l,[withDirectives((openBlock(),createBlock(e.OptionBST,{ref:"option1El",class:"",formNamePrefix:"bst-option-1",locationA:e.ondValueFrom,locationB:e.ondValueTo,domesticAirportList:(k=e.domesticAirportForBST)==null?void 0:k.fromTo,dateToMalaysia:e.dateRangeValueFrom,dateLeaveMalaysia:e.dateRangeValueTo,isFocused:e.focusedOption==="option-1",isOneWay:e.isOneWay,visitMalaysiaLabel:e.props.visitMalaysiaLabel,yourDateOfChoiceLabel:e.props.yourDateOfChoiceLabel,question1Text:e.props.question1Text,question2Text:e.props.question2Text,toLabel:e.props.toLabel,departLabel:e.props.departLabel,enableBSTNewDesign:e.props.enableBSTNewDesign,enableGlassDesign:e.props.enableGlassDesign,onFocusWithin:o[0]||(o[0]=O=>
1171e.focusedOption="option-1")},{title:withCtx(()=>[createTextVNode(toDisplayString(`${t.$t("Departure")}: ${e.ondValueFrom.displayValue} (${e.ondValueFrom.code}) ${t.$t("to")} ${e.ondValueTo.displayValue} (${e.ondValueTo.code})`),1)]),"mobile-question-1-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.bstQuestion1MobileLabel),1)]),"mobile-question-2-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.bstQuestion2MobileLabel),1)]),_:1},8,["locationA","locationB","domesticAirportList","dateToMalaysia","dateLeaveMalaysia","isFocused","isOneWay","visitMalaysiaLabel","yourDateOfChoiceLabel","question1Text","question2Text","toLabel","departLabel","enableBSTNewDesign","enableGlassDesign"])),[[_,[{clickName:`${e.props.optionLabel} 1`,clickComponentType:"Button",componentName:"OverlayBonusSideTrip",componentID:e.props.componentIdAA,BST:!0},{name:`${e.props.optionLabel} 1`,type:"other"}]]]),e.isOneWay?createCommentVNode("",!0):withDirectives((openBlock(),createBlock(e.OptionBST,{key:0,ref:"option2El",formNamePrefix:"bst-option-2",locationA:e.ondValueTo,locationB:e.ondValueFrom,domesticAirportList:(E=e.domesticAirportForBST)==null?void 0:E.toFrom,dateToMalaysia:e.dateRangeValueTo,isFocused:e.focusedOption==="option-2",isOneWay:e.isOneWay,visitMalaysiaLabel:e.props.visitMalaysiaLabel,yourDateOfChoiceLabel:e.props.yourDateOfChoiceLabel,question1Text:e.props.question1Text,question2Text:e.props.question2Text,toLabel:e.props.toLabel,departLabel:e.props.departLabel,enableBSTNewDesign:e.props.enableBSTNewDesign,enableGlassDesign:e.props.enableGlassDesign,onFocusWithin:o[1]||(o[1]=O=>e.focusedOption="option-2")},{title:withCtx(()=>[createTextVNode(toDisplayString(`${t.$t("Return")}: ${e.ondValueTo.displayValue} (${e.ondValueTo.code}) ${t.$t("to")} ${e.ondValueFrom.displayValue} (${e.ondValueFrom.code})`),1)]),"mobile-question-1-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.bstQuestion1MobileLabel),1)]),"mobile-question-2-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.bstQuestion2MobileLabel),1)]),_:1},8,["locationA","locationB","domesticAirportList","dateToMalaysia","isFocused","isOneWay","visitMalaysiaLabel","yourDateOfChoiceLabel","question1Text","question2Text","toLabel","departLabel","enableBSTNewDesign","enableGlassDesign"])),[[_,[{clickName:`${e.props.optionLabel} 2`,clickComponentType:"Button",componentName:"OverlayBonusSideTrip",componentID:e.props.componentIdAA,BST:!0},{name:`${e.props.optionLabel} 2`,type:"other"}]]])])],64))])]),createBaseVNode("div",_hoisted_74,[createBaseVNode("div",_hoisted_75,[e.props.continueWithoutBSTCTAText?withDirectives((openBlock(),createElementBlock("button",{key:0,type:"button",class:"btn-generic-b px-4 mr-4 font-semibold md:text-center md:text-sm md:p-5 md:mb-4 md:px-0 md:mr-0 md:order-2",onClick:e.handleSubmitValid},[createTextVNode(toDisplayString(e.props.continueWithoutBSTCTAText),1)])),[[_,[{clickName:e.props.continueWithoutBSTCTAText,clickComponentType:"Button",componentName:"OverlayBonusSideTrip",componentID:e.props.componentIdAA,BST:!1},{name:e.props.continueWithoutBSTCTAText,type:"exit"}]],[S]]):createCommentVNode("",!0),createVNode(e.Tooltip,{renderInvisibleTrigger:!1,triangleAlignment:"center",isDisabled:e.isMobileViewport,class:"bst_tooltip md:p-5 md:w-full md:mb-4"},createSlots({default:withCtx(()=>[e.props.continueCTAText?withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,isSubmit:!0,disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.continueCTAText),1)]),_:1},8,["disabled"])),[[_,[{clickName:e.props.continueCTAText,clickComponentType:"Button",componentName:"OverlayBonusSideTrip",componentID:e.props.componentIdAA,BST:!0},{name:e.props.continueCTAText,type:"exit"}]]]):createCommentVNode("",!0)]),"mobile-title":withCtx(()=>[renderSlot(t.$slots,"default",{},void 0,!0)]),_:2},[e.isBtnSubmitDisabled&&e.props.bstDisabledContinueCtaLabel?{name:"tooltip-content",fn:withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[y,e.props.bstDisabledContinueCtaLabel]])]),key:"0"}:void 0]),1032,["isDisabled"])])]),createVNode(e.FooterBST,{class:"bst-footer md:hidden"})],16),createVNode(e.TextField,{variant:"input-hidden",name:"selectedOption",modelValue:e.focu
1171sedOption},null,8,["modelValue"])]}),_:3},512)],16)):createCommentVNode("",!0)]),_:3})])}const OverlayBonusSideTrip=_export_sfc(_sfc_main$1j,[["render",_sfc_render$1j],["__scopeId","data-v-312dc232"],["__file","OverlayBonusSideTrip.vue"]]),__default__$1h={name:"ToggleSwitch",inheritAttrs:!1},_sfc_main$1i=Object.assign(__default__$1h,{props:{name:{type:String,required:!0},ariaLabel:{type:String,required:!0},modelValue:{type:Boolean,default:null},defaultChecked:{type:Boolean,default:!1},required:{type:Boolean,default:!1},requiredErrorMsg:{type:String,default:i18nGlobal.t("This field is required")},disabled:{type:Boolean,default:!1},rootAttrs:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=window.siteName,{isRTL:i}=useIsRTL(),s=ref$1(null),l=()=>{var S;(S=s.value)==null||S.focus()},d=computed(()=>e.required?yup.boolean().equals([!0],e.requiredErrorMsg):null),{onCheckboxChange:c,meta:u,errors:f,hasValidationError:m,internalValue:b}=useFieldValidation({name:toRef(e,"name"),validation:d,modelValue:toRef(e,"modelValue")},{initialValue:e.modelValue??e.defaultChecked??null}),{errorMsgId:y}=useGenerateIdentifier(e.name);o({focus:l});const _={props:e,emit:n,siteName:a,isRTL:i,inputEl:s,focus:l,validation:d,onCheckboxChange:c,meta:u,errors:f,hasValidationError:m,internalValue:b,errorMsgId:y,get yup(){return yup},get useFieldValidation(){return useFieldValidation},get useGenerateIdentifier(){return useGenerateIdentifier},get i18nGlobal(){return i18nGlobal},get useIsRTL(){return useIsRTL}};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}),_hoisted_1$1k=["data-use-theme"],_hoisted_2$1b={class:"label-before mr-4 empty:mr-0 select-none"},_hoisted_3$N=["required","checked","name","disabled","aria-label","aria-errormessage","aria-invalid"],_hoisted_4$G=["id"],_hoisted_5$D={class:""};function _sfc_render$1i(t,o,r,e,n,a){return openBlock(),createElementBlock("div",mergeProps({class:["ToggleSwitch",[{"is-disabled":e.props.disabled,"has-validation-error":e.hasValidationError&&e.meta.touched}]],"data-use-theme":e.siteName},e.props.rootAttrs),[createBaseVNode("label",mergeProps({class:["inline-flex cursor-pointer",{"is-disabled":e.props.disabled}]},t.$attrs),[createBaseVNode("div",_hoisted_2$1b,[renderSlot(t.$slots,"label-before",{},void 0,!0)]),createBaseVNode("input",{ref:"inputEl",class:"input",type:"checkbox",required:e.props.required,checked:e.internalValue,name:e.props.name,disabled:e.props.disabled,"aria-label":e.props.ariaLabel,"aria-errormessage":e.errorMsgId,"aria-invalid":e.hasValidationError?"true":null,onChange:o[0]||(o[0]=(...i)=>e.onCheckboxChange&&e.onCheckboxChange(...i))},null,40,_hoisted_3$N),o[1]||(o[1]=createBaseVNode("span",{class:"switch","aria-hidden":"true"},null,-1)),createBaseVNode("div",{class:normalizeClass(["label-after font-semibold empty:ml-0 select-none",{"mr-4":e.isRTL,"ml-4":!e.isRTL}])},[renderSlot(t.$slots,"default",{},()=>[t.$slots["label-before"]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(e.props.ariaLabel),1)],64))],!0)],2)],16),createBaseVNode("div",{id:e.errorMsgId,class:"error-msg-container leading-tight text-semantic-red-base text-sm empty:hidden"},[e.hasValidationError&&e.meta.touched?renderSlot(t.$slots,"error-messages",normalizeProps(mergeProps({key:0},{meta:e.meta,errors:e.errors,internalValue:e.internalValue})),()=>[createBaseVNode("span",_hoisted_5$D,toDisplayString(e.errors[0]),1)],!0):createCommentVNode("",!0)],8,_hoisted_4$G)],16,_hoisted_1$1k)}const ToggleSwitch=_export_sfc(_sfc_main$1i,[["render",_sfc_render$1i],["__scopeId","data-v-3b5021b1"],["__file","ToggleSwitch.vue"]]);function useBookingWidgetUrlQuery({mainTabName:t,subTabName:o}={}){const{hash:r,hashQuery:e}=useRouteHash(),n=useRoute$1(),a=computed(()=>{const d=unref(n.query).maintab===unref(t);let c;return unref(o)?c=d?unref(n.query).subtab===unref(o):unref(e).subtab===unref(o):c=!0,(unref(r)===unref(t)||unref(e).maintab===unref(t))&&c?{maintab:t,...unref(e)}:unref(n.query).maintab===unref(t)&&c?n.query:null}),i=new Set;watch(a,(d,c)=>{var u;for(const f of i)typeof f.callback=="function"&&(f.callback(d,c),(u=f.options)!=null&&u.once&&l(f.callback))});const s=(d,c={})=>{const u={immediate:!0,...c};return i.add({callback:d,options:u}),u.immediate&&d(a.value),l.bind(null,d)},l=d=>{for(const c of i)if(c.callback===d){i.delete(c);break}};return{registerQueryChange:s,unregisterQueryChange:l}}const __default__$1g={name:"SubTabBookFlight"},_sfc_main$1h=Object.assign(__default__$1g,{props:{hideTodayDateIndicator:{type:Boolean,default:!1},subHeaderTabDescription:{type:String,default:""},subHeaderTabTooltipBody:{type:String,default:""},subHeaderTabTooltipLabel:{type:String,default:""},topNote:{type:String,default:""},note:{type:String,default:""},searchFlightCTAText:{type:String,default:i18nGlobal.t("Search flight")},disableGeolocation:{type:Boolean,default:!1},ondSelection:{type:Object,default:null},additionalONDFilter:{type:String,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null}
1171,promoCodeLabel:{type:String,default:null},promoCodePlaceholder:{type:String,default:null},promoCodeLabelPH:{type:String,default:null},promoCodeErrorMessage:{type:String,default:i18nGlobal.t("Conditions not met for promo code to be applied")},supersedePromoCode:{type:String,default:null},supersedeOfficeIdSuffix:{type:String,default:null},bstNoteTop:{type:String,default:""},bstNoteCTAText:{type:String,default:""},bstNoteCTAURL:{type:String,default:""},subHeaderTooltipCTATextMobileLabel:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},disableCalendarPickerAnimation:{type:Boolean,default:!1},passengerSelectionQuestion:{type:String,default:""},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},enableMattaToggleButton:{type:Boolean,default:!1},mattaToggleButtonLabel:{type:String,default:""},hidePromoCodeField:{type:Boolean,default:!1},enrichAlwaysOn:{type:Boolean,default:!1},enablePostMattaCampaign:{type:Boolean,default:!1},autoApplyEnrichAlwaysOn:{type:Boolean,default:!1},enrichAlwaysOnCountriesData:{type:Array,default:()=>[]},loggedInMessageNote:{type:String,default:""},nonLoggedInMessageNote:{type:String,default:""},enableONDLocaleTranslation:{type:Boolean,default:!1},countryVariants:{type:Array,default:()=>[]},payByEnrichPoints:{type:Boolean,default:!1},tabName:{type:String,default:"book-flight"},activeSubOption:{type:Object,default:null},expressBooking:{type:Object,default:null},signUpApiUrl:{type:String,default:""},oWcustomOndUrl:{type:String,default:""},mHcustomOndUrl:{type:String,default:""},isIgnoreScroll:{type:Boolean,default:!1},cabinClassMilesOWList:{type:Array,default:()=>[]},dspbookingEnable:{type:Boolean,default:!1},enableDSPBookingRedirector:{type:Boolean,default:!1},dspBookingApiUrl:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1},expressBookingSelected:{type:Boolean,default:!1},mblExpressBookingSelected:{type:Boolean,default:!1},promoCode:{type:String,default:""}},emits:["save-search-data","show-bst-overlay","form-submission","express-booking-status","express-booking-disabled","ond-selected","update:expresBooking","on:trigger"],setup(t,{expose:o,emit:r}){var _o;const e=t,n=r,{pageProperties:a,isEditorMode:i}=useGlobalAEMState$1(),{removeOverlayID:s}=useSideSheetOverlay(),{isRTL:l}=useIsRTL(),{optionsFrom:d}=useONDList({}),{isSapphireCookiePresent:c}=useAuthStore(),u=useEventBus("booking-widget"),f=useEventBus("booking-widgwet:promo-code"),m=window.siteName,b=ref$1(null),y=ref$1(null),_=ref$1(null),S=ref$1(null),C=ref$1(null),T=ref$1(null),x=ref$1(null),k=ref$1(null),E=ref$1(null),w=ref$1(null),D=ref$1(e.promoCodeLabelPH??e.promoCode??null),N=ref$1(null),F=ref$1(!1),V=ref$1(!1),A=ref$1(""),M=ref$1(!1),O=ref$1(!0),R=ref$1(!1),I=ref$1(!1),j=ref$1(!1),H=ref$1(!1),U=a.value.rootCountry,B=a.value.rootLanguage,L=ref$1(!1),z=ref$1([]);watch(()=>e.promoCode,xe=>{D.value=xe}),usePersistencyWithExpiry("mobileSearches",{refs:{mobileSearches:z}});const W=xe=>xe.charAt(0).toUpperCase()+xe.slice(1),J=computed(()=>e.enrichAlwaysOn&&!c()&&e.nonLoggedInMessageNote),te=ref$1(e.enablePostMattaCampaign||e.autoApplyEnrichAlwaysOn),re=computed(()=>R.value&&te.value),oe=computed(()=>{if(e.enableGlassDesign)if(isMobileViewport.value){if(isMobileViewport.value&&!he.value&&!H.value)return!0}else return!0;else return!1;return!1}),X=computed(()=>{var Ke,Ge,ut,Et;if(!_.value)return;const xe=parseInt((Ke=_.value.cabinClassValue)==null?void 0:Ke.value)-1;if(e.payByEnrichPoints){if(e.activeSubOption.value==="ow-redemption"&&((Ge=e.cabinClassMilesOWList[xe])!=null&&Ge.value))return e.cabinClassMilesOWList[xe].value;if(e.activeSubOption.value!=="ow-redemption"&&((ut=e.cabinClassMilesList[xe])!=null&&ut.value))return e.cabinClassMilesList[xe].value}return(Et=e.cabinClassCashList[xe])==null?void 0:Et.value}),se=computed(()=>{var xe,Ke;return(Ke=(xe=X.value)==null?void 0:xe.split("|"))==null?void 0:Ke.at(-1)}),le=computed(()=>{var xe,Ke;return(Ke=(xe=X.value)==null?void 0:xe.split("|"))==null?void 0:Ke.at(0)}),he=computed(()=>e.enableGlassDesign&&!(E.value&&w.value)?(n("ond-selected",{selected:!1}),!0):(e.enableGlassDesign&&E.value&&w.value&&isMobileViewport.value&&(z.value={from:E.value,to:w.value,tab:"book-flight"},T.value=!0,setTimeout(()=>{T.value=!1,u.emit("booking-widget-ond-selected")},10)),n("ond-selected",{selected:!0}),L.value=!0,!1)),ge=(_o=a==null?void 0:a.value)==null?void 0:_o.lowFareApiUrl,Q=ref$1(!1),{priceData:Y,currency:ne,returnTypeDepartureDateAndFare:Ce}
1171=useLowFarePriceList({originRef:E,destinationRef:w,departureDateRef:x,paymentTypeRef:ref$1(e.payByEnrichPoints),endpointUrl:ge,isOneWayRef:Q}),ae=xe=>{Q.value=xe},{isLoggedIn:Be,isAuthStateReady:me}=useAuthStore(),{hash:K,hashQuery:q}=useRouteHash(),Z="sapphire";A.value=getCookie(Z)??null;const de=ref$1(!1),fe=ref$1(null),_e=ref$1(!1);watch(e.payByEnrichPoints,async xe=>{var ut,Et;await sleep(50);const Ke=(ut=C.value)==null?void 0:ut.computedOptionsFrom;E.value&&(Ke!=null&&Ke.length)&&(Ke.flatMap(Jt=>Jt.options).some(Jt=>{var Xt;return((Xt=E.value)==null?void 0:Xt.airportCode)===Jt.airportCode})||(E.value=null,w.value=null));const Ge=(Et=C.value)==null?void 0:Et.computedOptionsTo;w.value&&(Ge!=null&&Ge.length)&&(Ge.flatMap(Jt=>Jt.options).some(Jt=>{var Xt;return((Xt=w.value)==null?void 0:Xt.airportCode)===Jt.airportCode})||(w.value=null)),D.value&&(D.value=null)}),watch(()=>e.expressBookingSelected,(xe,Ke)=>{e.enableGlassDesign&&!isMobileViewport.value&&(_e.value=xe,xe&&We())}),watch(()=>e.mblExpressBookingSelected,(xe,Ke)=>{e.enableGlassDesign&&isMobileViewport.value&&(_e.value=xe,xe&&We())});const pe=async({status:xe})=>{var Ge,ut,Et;if(!e.togglePointsApiURL)throw new Error("Failed to get endpoint: togglePointsApiURL");if(!e.signUpApiUrl&&!e.payByEnrichPoints)throw new Error("Failed to get endpoint: signUpApiUrl");const Ke={type:"points",maintab:"flight-search-tab",subtab:e.payByEnrichPoints?"redeem-flight":"book-flight",locationFrom:(Ge=E.value)==null?void 0:Ge.code,locationTo:(ut=w.value)==null?void 0:ut.code,dateDeparture:x.value,dateReturn:k.value,cabinClass:(Et=_.value.cabinClassValue)==null?void 0:Et.value,adultsCount:_.value.adults.count.value,teensCount:_.value.teens.count.value,childrenCount:_.value.children.count.value,infantsCount:_.value.infants.count.value,promoCode:e.supersedePromoCode??D.value,isPoints:!0,..._e.value?{isExpressBooking:!0}:null};e.payByEnrichPoints&&(Ke.suboption=e.activeSubOption.value);try{const Ft=xe==="signup"?e.signUpApiUrl:e.togglePointsApiURL,Jt=(await axios$1.get(Ft,{params:Ke})).data;window.location.href=Jt}catch(Ft){console.error("handleRedirectToLoginAndSignUp, ","Unable to fetch api",Ft)}},ve=()=>{Ie.value=!1,_e.value=!0},Me=async(xe,Ke)=>{var Et,Ft,qt,Jt;if(console.log("✅ handleSubmitValid values = ",xe),T.value=!0,e.payByEnrichPoints&&!c()){pe({status:"login"});return}if(_e.value&&!Be.value){We();return}const Ge={isBSTTab:!1,locale:(Et=a.value)==null?void 0:Et.rootLanguage,payByEnrichPoints:e.payByEnrichPoints,optInBonusSideTrip:V.value,dateRangeValueFrom:x.value,dateRangeValueTo:k.value,isOneWay:!k.value,ondValueFrom:E.value,ondValueTo:w.value,promoCodeValue:e.supersedePromoCode??D.value,cabinClassValue:_.value.cabinClassValue,adultsCount:_.value.adults.count.value,teensCount:_.value.teens.count.value,childrenCount:_.value.children.count.value,infantsCount:_.value.infants.count.value,userIn
1171putPromoCode:D.value,enrichAlwaysOnEligibility:re.value,...e.enableMattaToggleButton?{isCUGCampaignPage:e.enableMattaToggleButton,isCampaignToggleON:M.value}:null,..._e.value?{isExpressBooking:!0,expressBookingSupportingCabinClass:(Ft=e.expressBooking)==null?void 0:Ft.supportedCabinClass,expressBookingLabel:e.expressBooking.expressBookingContinueYourSearchLabel}:null};if(Ge.payByEnrichPoints&&(Ge.activeSubOption=e.activeSubOption.text.replace(/<[^>]*>/g,""),Ge.redeemFlightType=e.activeSubOption.value),n("save-search-data",Ge),n("form-submission",Ge),V.value)return n("show-bst-overlay"),qe(e.tabName,{ondValueFrom:Ge.ondValueFrom,ondValueTo:Ge.ondValueTo,dateRangeValueFrom:Ge.dateRangeValueFrom,dateRangeValueTo:Ge.dateRangeValueTo,isOneWay:Ge.isOneWay,adultsCount:Ge.adultsCount,teensCount:Ge.teensCount,childrenCount:Ge.childrenCount,infantsCount:Ge.infantsCount,cabinClassValue:Ge.cabinClassValue,payByEnrichPoints:!1,promoCodeValue:e.supersedePromoCode??D.value});const ut={departDate1:dayjs(Ge.dateRangeValueFrom).format("YYYYMMDDHHmm"),returnDate1:!Ge.isOneWay&&Ge.dateRangeValueTo?dayjs(Ge.dateRangeValueTo).format("YYYYMMDDHHmm"):"",originCountry:Ge.ondValueFrom.countryName,originAirportCode1:Ge.ondValueFrom.code,destAirportCode1:Ge.ondValueTo.code,flightClass:X.value,adultCount:Ge.adultsCount.toString(),...dt.value?{teenCount:Ge.teensCount.toString()}:null,childCount:Ge.childrenCount.toString(),infantCount:Ge.infantsCount.toString(),paymentType:Ge.payByEnrichPoints?"miles":"cash",amal1:N.value||Ge.ondValueTo._original.isAmalFlag,promoCode:Ge.promoCodeValue??"",regionLanguage:U&&B?`${U}-${W(B)}`:"",amcvId:((qt=window._satellite)==null?void 0:qt.getVar("ECID"))??"",teaserCategory:getCookie("TeaserCategory")??"",isJdtPortal:I.value,isJdtNormalBooking:j.value,...e.enableMattaToggleButton?{isCUGCampaignPage:Ge.isCUGCampaignPage,isCampaignToggleON:Ge.isCampaignToggleON}:null,...e.enrichAlwaysOn?{enrichAlwaysOnEligibility:Ge.enrichAlwaysOnEligibility,autoApplyEnrichAlwaysOn:e.autoApplyEnrichAlwaysOn}:null,..._e.value?{isExpressBooking:!0,expressBookingSupportingCabinClass:(Jt=e.expressBooking)==null?void 0:Jt.supportedCabinClass}:null,...e.supersedeOfficeIdSuffix?{sOfficeIdSuffix:e.supersedeOfficeIdSuffix}:null};getCookie("portalfacts_cid")&&(ut.portalFactCid=getCookie("portalfacts_cid")),getCookie("irclickid")&&(ut.impactClickId=getCookie("irclickid")),Ge.payByEnrichPoints&&(ut.redeemFlightType=Ge.redeemFlightType);try{let Xt;_e.value?Xt=e.flightSearchApiUrl:e.dspbookingEnable&&e.enableDSPBookingRedirector?Xt=e.dspBookingApiUrl:Xt=e.flightSearchApiUrl;const To=await axios$1({method:"post",url:Xt,data:ut});let Zo=To.data.url,er;_e.value?er=To.data.payload:e.dspbookingEnable&&e.enableDSPBookingRedirector?er=To.data.requestPayload:er=To.data.payload,delete er.RAW_DATA;const hn={},Rr=Object.entries(er);for(let[$r,[Hr,xt]]of Rr.entries())hn[$r]=Hr;let Xn={...hn,...er};const ai=Object.entries(Xn),Jn="post",tr=document.createElement("form");tr.setAttribute("method",Jn),tr.setAttribute("action",Zo);for(let[$r,[Hr,xt]]of ai.entries()){const eo=parseInt(Hr);let bo=document.createElement("input");bo.setAttribute("type","hidden"),bo.setAttribute("name",Hr),bo.setAttribute("value",xt),tr.appendChild(bo)}document.body.appendChild(tr),tr.submit(),e.enableGlassDesign&&isMobileViewPort.value||s()}catch(Xt){console.error("handleSubmitValid, ","Unable to fetch api",JSON.stringify(Xt)),T.value=!1;const{statusCode:To,message:Zo}=Xt.response.data;To===400&&(fe.value.setErrors(i18nGlobal.t(Zo)),nt({errorMsg:i18nGlobal.t(Zo)}))}},Fe=({values:xe,errors:Ke,results:Ge,evt:ut})=>{console.log("❌ handleSubmitInvalid errors = ",Ke)},Te=()=>{ue.value||(O.value=!0)},Se=()=>{},Ae=computed(()=>{var Ge;const xe=b.value;if(!xe)return!0;const Ke=(Ge=S.value)==null?void 0:Ge.isOneWay;return e.enableGlassDesign?!xe.values.locationFrom||!xe.values.locationTo||!x.value||!Ke&&!k.value||Object.keys(xe.errors).length!==0:!xe.values.locationFrom||!xe.values.locationTo||!xe.values.dateDeparture||!Ke&&!xe.values.dateReturn||Object.keys(xe.errors).length!==0}),ue=ref$1(!1);u.on((xe,Ke)=>{switch(xe){case"sticky:sticked":{ue.value=!0;break}case"sticky:unsticked":{ue.value=!1;break}case"close-from-mobile":{Ke.mobileEvent&&(H.value=!0,w.value=null,E.value=null,C.value.resetAirportPicker());break}}});const ye=()=>{},Xe=(xe,Ke=null)=>{const Ge=dayjs(),ut=Ge.add($e.value,"day"),Et=dayjs(xe),Ft=dayjs(Ke);return!(Et.isValid()===!1||Ke&&Ft.isValid()===!1||Et.isBefore(Ge,"day")||Ke&&Ft.isAfter(ut,"day"))},De=({from:xe,to:Ke=null,isOneWay:Ge=!1}={})=>{var ut,Et;Xe(xe,Ge?null:Ke)?(x.value=dayjs(xe).format("YYYY-MM-DD"),k.value=(Ke&&dayjs(Ke).format("YYYY-MM-DD"))??null):(x.value=null,k.value=null,(Et=(ut=S.value)==null?void 0:ut.inputElFrom)==null||Et.resetField(),nextTick$1().then(()=>{var Ft,qt,Jt,Xt;try{(qt=(Ft=S.value)==null?void 0:Ft.inputElFrom)==null||qt.setTouched(!0),(Xt=(Jt=S.value)==null?void 0:Jt.inputElFrom)==null||Xt.setErrors(i18nGlobal.t("The selected dates are no longer valid. Please reselect."))}catch{}}))},ke=xe=>{let Ge=d.value.find(ut=>ut.isRedemption===xe.isRedemption&&ut.airportCode===xe.airportCode);return Ge||(Ge=d.value.find(ut=>ut.airportCode===xe.airportCode)),Ge},ze=xe=>{var Ke;
1171E.value=ke(xe.ondValueFrom),w.value=ke(xe.ondValueTo),De({from:xe.dateRangeValueFrom,to:xe.dateRangeValueTo||null,isOneWay:!!xe.isOneWay}),D.value=xe.userInputPromoCode,e.enableGlassDesign&&f.emit("detect-promo-code",{promoCode:D}),V.value=xe.optInBonusSideTrip,_e.value=!!xe.isExpressBooking,N.value=xe.ondValueTo.isAmalFlag,_e.value&&!Be.value&&(_t.value=!0),e.enableGlassDesign?(n("express-booking-status",_e.value),setTimeout(()=>{var Ge;(Ge=_.value)==null||Ge.setValues({adults:xe.adultsCount,teens:xe.teensCount,children:xe.childrenCount,infants:xe.infantsCount,cabinClass:xe.cabinClassValue}),S.value.handleSetIsOneWay(!!xe.isOneWay)},5)):((Ke=_.value)==null||Ke.setValues({adults:xe.adultsCount,teens:xe.teensCount,children:xe.childrenCount,infants:xe.infantsCount,cabinClass:xe.cabinClassValue}),S.value.handleSetIsOneWay(!!xe.isOneWay))},{commitDataToBSTOverlay:qe,registerNotifier:ht}=useBSTOverlayInterimData();ht("book-flight",async xe=>{var Ke;E.value=xe.ondValueFrom,w.value=xe.ondValueTo,x.value=xe.dateRangeValueFrom,k.value=xe.dateRangeValueTo,(Ke=_.value)==null||Ke.setValues({adults:xe.adultsCount,teens:xe.teensCount,children:xe.childrenCount,infants:xe.infantsCount,cabinClass:xe.cabinClassValue}),S.value.handleSetIsOneWay(!!xe.isOneWay)});const pt=0,Ne=361,Je=computed(()=>{const xe=e.datePicker;return!(xe!=null&&xe.departureDateConfig)||typeof(xe==null?void 0:xe.departureDateConfig)!="number"?pt:xe==null?void 0:xe.departureDateConfig}),$e=computed(()=>{const xe=e.datePicker;return!(xe!=null&&xe.returnDateConfig)||typeof(xe==null?void 0:xe.returnDateConfig)!="number"?Ne:xe==null?void 0:xe.returnDateConfig}),st=computed(()=>{var Ge;let xe=null;const Ke=(Ge=e.datePicker)==null?void 0:Ge.disableSpecificDateList;return Ke!=null&&Ke.length&&(xe=[],Ke.forEach(ut=>{ut.disableDate&&xe.push(ut.disableDate)})),xe}),{registerQueryChange:bt}=useBookingWidgetUrlQuery({mainTabName:"flight-search-tab",subTabName:e.tabName});bt(async xe=>{var Ke;xe&&(E.value=xe.locationFrom,w.value=xe.locationTo,e.enableGlassDesign&&isMobileViewport.value&&(z.value={from:E.value,to:w.value,tab:"book-flight"}),nextTick$1().then(async()=>{var Ge,ut;
1171await((Ge=C.value)==null?void 0:Ge.updateFromValue()),(ut=C.value)==null||ut.updateToValue()}),De({from:xe.dateDeparture,to:xe.dateReturn||null,isOneWay:xe.isOneWay==="true"}),D.value=xe.promoCode??null,await nextTick$1(),xe.isExpressBooking==="true"&&(_e.value=!0,n("express-booking-status",!0)),(Ke=_.value)==null||Ke.setValues({...xe.adultsCount?{adults:parseInt(xe.adultsCount)}:null,...xe.teensCount?{teens:parseInt(xe.teensCount)}:null,...xe.childrenCount?{children:parseInt(xe.childrenCount)}:null,...xe.infantsCount?{infants:parseInt(xe.infantsCount)}:null,...xe.cabinClass?{cabinClass:parseInt(xe.cabinClass)}:null}),V.value=xe.bst??!1,xe.isOneWay==="true"&&S.value.handleSetIsOneWay(!!xe.isOneWay),e.enableGlassDesign&&f.emit("detect-promo-code",{promoCode:D}))});const Bt=async xe=>{var Et;const{locationFrom:Ke,locationTo:Ge}=xe;(Et=C.value)==null||Et.toggleGenerateONDList(),await waitFor(()=>{var Ft,qt;return((Ft=C.value)==null?void 0:Ft.computedOptionsFrom)&&((qt=C.value)==null?void 0:qt.computedOptionsTo)},400,30).start(),Ke&&(E.value=Ke),Ge&&(w.value=Ge),nextTick$1().then(async()=>{var Ft,qt;await((Ft=C.value)==null?void 0:Ft.updateFromValue()),(qt=C.value)==null||qt.updateToValue()})},rt=ref$1(0);watch(k,xe=>{xe&&lt()});const Ze=computed(()=>!ne.value&&!rt.value?"":B==="ko"?`${ne.value} ${lowPriceNumFormatForKorean(rt.value)}`:`${ne.value} ${formatNumberWithAbbreviation(rt.value)}`),dt=ref$1(!1),Ye=async()=>{var xe,Ke,Ge,ut;if((xe=E.value)!=null&&xe.value&&((Ke=w.value)!=null&&Ke.value)&&x.value&&k.value&&se.value){const Et=(Ge=E.value)==null?void 0:Ge.value,Ft=(ut=w.value)==null?void 0:ut.value;return axios$1.get("/bin/mh/revamp/ondLists?type=bst_validate",{params:{ori:Et,des:Ft,cabin:se.value,dateFrom:x.value,dateTo:k.value}}).then(qt=>{var Jt,Xt;if(((Jt=E.value)==null?void 0:Jt.value)===Et&&((Xt=w.value)==null?void 0:Xt.value)===Ft&&qt.status===200&&qt.data&&Object.keys(qt.data).length>0)return!0}).catch(qt=>
1171(console.log("bst_validate api failed reason = ",qt),!1))}else return!1},lt=()=>{var Ke;let xe=dayjs(k.value).format("YYYY-MM-DD");if(E.value&&w.value&&k.value&&Y.value&&Y.value[xe]&&((Ke=Ce==null?void 0:Ce.value)!=null&&Ke.totalFareAmount)){rt.value=parseInt(Ce.value.totalFareAmount)+parseInt(Y.value[xe]);return}rt.value=0};watch([E,w,x,k,X],async xe=>{Ye().then(Ke=>{F.value=Ke}),await sleep(500),lt()});const et=async()=>{var xe,Ke,Ge;if(E.value&&w.value){const ut=(xe=E.value)==null?void 0:xe.countryName,Et=(Ke=E.value)==null?void 0:Ke.isRedemption,Ft=(Ge=w.value)==null?void 0:Ge.isRedemption,qt=e.enrichAlwaysOnCountriesData.includes(ut);if(Et&&Ft&&qt)return!0}return!1};watch([E,w,e.payByEnrichPoints],async xe=>{if(e.enrichAlwaysOn&&c()&&e.enrichAlwaysOnCountriesData.length>0&&!e.payByEnrichPoints){R.value=await et();return}R.value=!1}),watch([E,w],async xe=>{var Ke;dt.value=useIsCountryVariant(e.countryVariants,{origin:E.value,destination:w.value}),!dt.value&&((Ke=_.value)==null||Ke.setValues({teens:0}))});const nt=({errorMsg:xe})=>{const Ke={errorName:xe},Ge={name:e.searchFlightCTAText,type:"exit"};pushAA_searchError([Ke,Ge])};useSyncPassengerDetails(_);const Pt=xe=>{var Ke,Ge;xe&&!isMobileViewport.value&&(e.enableGlassDesign?setTimeout(()=>{var ut,Et;(Et=(ut=S.value)==null?void 0:ut.inputElFromTo)==null||Et.focus()},100):(Ge=(Ke=S.value)==null?void 0:Ke.inputElFrom)==null||Ge.focus())},ft=xe=>{k.value=xe,xe&&Nt()},Nt=async()=>{await nextTick$1(),isMobileViewport.value||e.enableGlassDesign&&setTimeout(()=>{var Ge;const xe=(Ge=_.value)==null?void 0:Ge.$el;if(!xe)return;const Ke=xe.querySelector(".multiselect");Ke?(Ke.focus(),Ke.click()):xe.click()},150)},Ot=computed(()=>{var xe,Ke,Ge,ut;return e.ondSelection?{NEAR_YOU:(xe=e.ondSelection)==null?void 0:xe.nearYouLabel,POPULAR_DEST:(Ke=e.ondSelection)==null?void 0:Ke.popularDestinationsLabel,WITH_MH:(Ge=e.ondSelection)==null?void 0:Ge.withMalaysiaAirlinesLabel,CODESHARE:(ut=e.ondSelection)==null?void 0:ut.withCodeShareAndPartnerNetworkLabel}:null}),yt=computed(()=>e.payByEnrichPoints&&e.activeSubOption.value==="ow-redemption"?"FLIGHT_SEARCH_OW_REDEMPTION":e.payByEnrichPoints&&e.activeSubOption.value==="malaysia-airlines"?"FLIGHT_SEARCH_ENRICH":"FLIGHT_SEARCH_CASH"),Dt=ref$1(null),_t=ref$1(!1),Ie=ref$1(!1);watch(_t,async xe=>{await sleep(500),useDisableScroll(_t)},{immediate:!0});const Le=()=>{_t.value=!1,Ie.value=!1,_e.value=!1,n("express-booking-status",!1)},ct=computed(()=>{var Et,Ft,qt,Jt,Xt,To;const xe=((Et=_.value)==null?void 0:Et.adults.count.value)+((Ft=_.value)==null?void 0:Ft.children.count.value)+((qt=_.value)==null?void 0:qt.teens.count.value)+((Jt=_.value)==null?void 0:Jt.infants.count.value)===1,Ke=((To=(Xt=e.expressBooking)==null?void 0:Xt.supportedCabinClass)==null?void 0:To.replace(/\s/g,"").split(","))||[],Ge=Ke==null?void 0:Ke.includes(le.value),ut=xe&&Ge&&!V.value;return ut||(_e.value=!1),!ut});watch(()=>ct.value,xe=>{xe?(n("express-booking-disabled",!0),n("express-booking-status",!1)):n("express-booking-disabled",!1)},{immediate:!0});const We=xe=>{e.enableGlassDesign||_e.value||(_e.value=xe.target.checked),_e.value&&!A.value?(_t.value=!0,_e.value=!0,e.enableGlassDesign&&n("express-booking-status",!0)):_e.value&&Be.value&&(Ie.value=!0)},we=computed(()=>e.hidePromoCodeField||e.payByEnrichPoints||e.enableGlassDesign?"w-5/10":U=="vn"?"w-4/10":"w-3/10");watch(()=>z,(xe,Ke)=>{var ut,Et;const Ge=document.getElementById("booking-subpage-container");Ge&&Ge.children.length>0&&e.enableGlassDesign&&isMobileViewport.value&&e.tabName==="book-flight"&&(E.value=(ut=z.value)==null?void 0:ut.from,w.value=(Et=z.value)==null?void 0:Et.to)},{immediate:!0,deep:!0}),onMounted(()=>{T.value==!0&&(T.value=!1);const xe=window.location.pathname;I.value=xe.endsWith("jdt-portal.html"),j.value=xe.endsWith("normal-booking.html")});const He=()=>{C.value.focusFromONDPicker()},ot=(xe,Ke,Ge,ut)=>{let Et=Ke?"On":"Off";pushAA_click([{clickName:`${xe}${Et}`,clickComponentType:"Toggle",componentName:Ge,componentID:ut},{clickName:`${xe}${Et}`,name:xe,type:"other"}])},kt=ref$1(!1),Yt=ref$1(!1),wt=async xe=>{var Ke;kt.value=xe,f.emit("detect-promo-code",{promoCode:D}
1171),await nextTick$1(),(Ke=Yt.value)==null||Ke.focus()},Vt=()=>{D.value=null,kt.value=!1};o({restorePastSearch:ze,updateLocationFromTo:Bt,isExpanded:O,openFromONDPicker:He});const zt={props:e,emit:n,pageProperties:a,isEditorMode:i,removeOverlayID:s,isRTL:l,optionsFrom:d,isSapphireCookiePresent:c,bookingWidgetBus:u,detectPromoCode:f,siteName:m,formWrapper:b,rootEl:y,passengerAndCabinClassEl:_,dateRangePickerEl:S,ondPickerEl:C,isLoading:T,dateRangeValueFrom:x,dateRangeValueTo:k,ondValueFrom:E,ondValueTo:w,promoCodeValue:D,isAmalFlag:N,eligibleForBonusSideTrip:F,optInBonusSideTrip:V,token:A,isCampaignToggleON:M,isExpanded:O,enrichAlwaysOnEligibility:R,isJDTPortal:I,isJDTNormalBooking:j,closedEventTriggerFromMobileView:H,country:U,language:B,isExpressBookingDisabled:L,mobileSearches:z,capitalizeString:W,showAlwaysOnEnrichNonLoginMsg:J,optEnrichAlwaysOnOffer:te,isEligibleForErichAlwaysOn:re,computedCTADisplay:oe,computedCabinClassValue:X,selectedCabinClassAfterDelimiter:se,selectedCabinClassBeforeDelimiter:le,isHideDatePickerAndPassengerSelection:he,lowFareApiUrl:ge,isOneWay:Q,dateRangePriceData:Y,currency:ne,departureDateAndFare:Ce,handleWatchIsOneWay:ae,isLoggedIn:Be,isAuthStateReady:me,hash:K,hashQuery:q,SAPPHIRE_COOKIE:Z,isProcessingPayEnrichPoint:de,promoCodeTextField:fe,isExpressBooking:_e,handleRedirectToLoginAndSignUp:pe,handleRedirectToContinue:ve,handleSubmitValid:Me,handleSubmitInvalid:Fe,handleFormFocusWithin:Te,handleFormBlurWithin:Se,isBtnSubmitDisabled:Ae,isSticked:ue,handleExpandTransitionEnd:ye,areDatesValid:Xe,validateAndRestoreDates:De,convertLocaleValue:ke,restorePastSearch:ze,commitDataToBSTOverlay:qe,registerNotifier:ht,defaultMinDate:pt,defaultMaxDate:Ne,datePickerMinAllowedFutureDays:Je,datePickerMaxAllowedFutureDays:$e,formattedDisabledDateList:st,registerQueryChange:bt,updateLocationFromTo:Bt,sumPrice:rt,sumPriceWithCurrency:Ze,isCountryVariant:dt,getIsBstEligible:Ye,calculatedSumPrice:lt,getIsEnrichAlwaysEligible:et,triggerAA_searchError:nt,focusToDatePicker:Pt,handleDateToChange:ft,focusToPassenger:Nt,groupLabelsOverwrite:Ot,getOndListIdentifier:yt,ExpressBookingPopUpEl:Dt,isExpressBookingPopUpVisible:_t,isExpressBookingPostLogin:Ie,dismissOverlayByUser:Le,isDisabledExpressBooking:ct,handleExpressBookingChecked:We,passengersAndCabinFieldWidth:we,openFromONDPicker:He,onToggleChange:ot,isPromoEditorEnabled:kt,promoInputRef:Yt,enablePromocodeEditor:wt,resetPromoCode:Vt,ToggleSwitch,Tooltip,CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,TextField,PassengerAndCabinClass:PassengerAndCabinClass$1,FormWrapper,get yup(){return yup},get dayjs(){return dayjs},get isMobileViewport(){return isMobileViewport},get isXXXL(){return isXXXL},TransitionHeight,get useGlobalAEMState(){return useGlobalAEMState$1},get useRouteHash(){return useRouteHash},get useEventBus(){return useEventBus},get useBSTOverlayInterimData(){return useBSTOverlayInterimData},get i18nGlobal(){return i18nGlobal},get useIsCountryVariant(){return useIsCountryVariant},get useSyncPassengerDetails(){return useSyncPassengerDetails},get useAuthStore(){return useAuthStore},get getCookie(){return getCookie},get useLowFarePriceList(){return useLowFarePriceList},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},get formatNumberWithAbbreviation(){return formatNumberWithAbbreviation},get lowPriceNumFormatForKorean(){return lowPriceNumFormatForKorean},get sleep(){return sleep},get waitFor(){return waitFor},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get pushAA_searchError(){return pushAA_searchError},get useIsRTL(){return useIsRTL},Checkbox,AppSpinner,Teleport,get useDisableScroll(){return useDisableScroll},get pushAA_click(){return pushAA_click},get useONDList(){return useONDList},get useSideSheetOverlay(){return useSideSheetOverlay},get usePersistencyWithExpiry(){return usePersistencyWithExpiry}};return Object.defineProperty(zt,"__isScriptSetup",{enumerable:!1,value:!0}),zt}}),_hoisted_1$1j={ref:"rootEl",class:"SubTabBookFlight"},_hoisted_2$1a={class:"flex"},_hoisted_3$M={key:0,class:"mb-5"},_hoisted_4$F={class:"flex items-center"},_hoisted_5$C={key:2,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl >lg:mt-3 mb-4 >lg:mb-9"},_hoisted_6$z={class:"text-sm"},_hoisted_7$z={key:0},_hoisted_8$x={key:1},_hoisted_9$u={key:2},_hoisted_10$m={class:"flex items-center pb-6 justify-center mt-5"},_hoisted_11$l={class:"flex flex-col flex-1 min-w-0 text-left"},_hoisted_12$k={key:0,class:"text-xs leading-tight text-neutral-grey-dark"},_hoisted_13$i={key:1,class:"flex items-center gap-2 ml-2 promocode-wrapper"},_hoisted_14$i={class:"flex flex-col flex-1 min-w-0"},_hoisted_15$h={class:"flex gap-6 xl:gap-3 lg:flex-col field-wrapper"}
1171,_hoisted_16$h={key:0,class:"flex flex-grow gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_17$f={key:0,class:"w-3/10 lg:w-full"},_hoisted_18$d={class:"typo-category-title mb-4 mt-2 uppercase"},_hoisted_19$b={class:"flex items-center"},_hoisted_20$b={key:1,class:"flex justify-end lg:justify-start cta-wrapper mt-3"},_hoisted_21$b={key:0,class:"flex mt-6"},_hoisted_22$a={class:"rounded-xl bg-secondary-teal-extralight flex-grow px-5 py-4 flex sm:flex-col >sm:flex-row gap-4 justify-between"},_hoisted_23$9={class:"text-left rtl:text-right ml-16 >sm:ml-0 rtl:mr-16 >sm:rtl:mr-0 flex-shrink-0"},_hoisted_24$8={key:1,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_25$8={class:"basis-6 flex-none rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_26$8={class:"text-sm"},_hoisted_27$7={key:2,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_28$6={class:"text-sm"},_hoisted_29$6={key:3,class:"flex mt-6"},_hoisted_30$6={class:"rounded-xl bg-secondary-teal-extralight flex-grow px-5 py-4"},_hoisted_31$6={class:"generic-backdrop flight-search-bg !bg-white/80 z-8000"},_hoisted_32$6={class:"flex items-center justify-center h-full w-full"},_hoisted_33$3={class:"overlay-container"},_hoisted_34$3={class:"overlay-header px-6 mt-4"},_hoisted_35$3={class:"overlay-body px-6 mt-4"},_hoisted_36$2={class:"author-html-container line-clamp-5"},_hoisted_37$2={class:"overlay-footer px-6 mt-6 mb-10"},_hoisted_38$2={class:"overlay-container"},_hoisted_39$2={class:"overlay-header px-6 mt-4"},_hoisted_40$2={class:"overlay-body px-6 mt-4"},_hoisted_41$2={class:"author-html-container line-clamp-5"},_hoisted_42$2={class:"overlay-footer px-6 mt-6 mb-10"};function _sfc_render$1h(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveComponent("AppHyperlink"),d=__unplugin_components_1$2,c=__unplugin_components_2$5,u=__unplugin_components_0$i,f=resolveDirective("html-sanitize"),m=resolveDirective("aa"),b=resolveDirective("focus-within");return openBlock(),createElementBlock("div",_hoisted_1$1j,[withDirectives((openBlock(),createBlock(e.FormWrapper,{ref:"formWrapper",class:"-mt-16 lg:mt-0","data-use-theme":e.siteName,tabindex:"-1",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid,onFocusWithin:e.handleFormFocusWithin,onBlurWithin:e.handleFormBlurWithin},{default:withCtx(({errors:y})=>{var _,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J,te,re,oe,X,se,le,he,ge,Q,Y;return[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_2$1a,[createBaseVNode("div",{class:normalizeClass(["toggle-group",{"mr-auto lg:mr-0":e.isRTL,"ml-auto lg:ml-0":!e.isRTL,"pt-15.5":!e.isMobileViewport,"glass-design":e.props.enableGlassDesign}])},[e.props.enableMattaToggleButton?(openBlock(),createBlock(e.ToggleSwitch,{key:0,modelValue:e.isCampaignToggleON,"onUpdate:modelValue":o[0]||(o[0]=ne=>e.isCampaignToggleON=ne),ariaLabel:e.props.mattaToggleButtonLabel,name:"isCampaignToggle",rootAttrs:{class:"mb-8"},onChange:o[1]||(o[1]=ne=>e.onToggleChange("isCampaignToggle",e.isCampaignToggleON,"SubTabBookFlight",""))},null,8,["modelValue","ariaLabel"])):createCommentVNode("",!0)],2)]),e.props.subHeaderTabDescription?withDirectives((openBlock(),createElementBlock("div",_hoisted_3$M,null,512)),[[f,e.props.subHeaderTabDescription]]):createCommentVNode("",!0),e.props.subHeaderTabTooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$F,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.subHeaderTabTooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[f,e.props.subHeaderTabTooltipBody]])]),"mobile-cta-label":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTooltipCTATextMobileLabel),1)]),_:1})):createCommentVNode("",!0),e.props.topNote?(openBlock(),createElementBlock("div",_hoisted_5$C,[createVNode(s,{class:"fill-primary-blue-base text-base"}),withDirectives(createBaseVNode("div",_hoisted_6$z,null,512),[[f,e.props.topNote]])])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["flex gap-6 2xl:gap-1 xl:flex-col field-wrapper",{"glass-design-wrapper":e.props.enableGlassDesign&&!e.isMobileViewport}])},[createBaseVNode("div",{class:normalizeClass(["w-7/10 xl:w-full component-wrapper ond-wrapper",{"w-[100%] hideDatePicker":e.isHideDatePickerAndPassengerSelection&&!e.closedEventTriggerFromMobileView,"mb-2 >lg:mb-0":e.props.enableGlassDesign,"w-7/10":!e.props.enableGlassDesign,"w-full>xl":e.props.enableGlassDesign,"glass-design-wrapper-mobileviewport":e.props.enableGlassDesign&&e.isMobileViewport}])},[createVNode(e.ONDPicker,{ref:"ondPickerEl",modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[2]||(o[2]=ne=>e.ondValueFrom=ne),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":[o[3]||(o[3]=ne=>e.ondValueTo=ne),e.focusToDatePicker],nameFrom:"locationFrom",nameTo:"locationTo",ondListIdentifier:e.getOndListIdentifier,requiredFrom:!0,requiredTo:!0,specificOriginList:(_=e.props.ondSelection)==null?void 0:_.showSpecificOrigin,specificDestinationList:(S=e.props.ondSelection)==null?void 0:S.showSpecificDestination,hideSpecificOriginList:(C=e.props.ondSelection)==null?void 0:C.hideSpecificOrigin,hideSpecificDestinationList:(T=e.props.ondSelection)==null?void 0:T.hide
1171SpecificDestination,requiredErrorMsgFrom:(x=e.props.ondSelection)==null?void 0:x.fromSearchErrorMessage,requiredErrorMsgTo:(k=e.props.ondSelection)==null?void 0:k.toSearchErrorMessage,labelTextFrom:(E=e.props.ondSelection)==null?void 0:E.fromLabel,labelTextTo:(w=e.props.ondSelection)==null?void 0:w.toLabel,placeHolderFrom:(D=e.props.ondSelection)==null?void 0:D.placeHolderFrom,placeHolderTo:(N=e.props.ondSelection)==null?void 0:N.placeHolderTo,noResultsText:(F=e.props.ondSelection)==null?void 0:F.noResultMessage,requestGeolocation:!e.props.disableGeolocation,groupLabelsOverwrite:e.groupLabelsOverwrite,enableONDLocaleTranslation:e.props.enableONDLocaleTranslation,additionalONDFilter:e.props.additionalONDFilter,oWcustomOndUrl:e.props.oWcustomOndUrl,mHcustomOndUrl:e.props.mHcustomOndUrl,isIgnoreScroll:e.props.isIgnoreScroll,enableGlassDesign:e.props.enableGlassDesign,"onOn:trigger":o[4]||(o[4]=ne=>e.emit("on:trigger"))},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","ondListIdentifier","specificOriginList","specificDestinationList","hideSpecificOriginList","hideSpecificDestinationList","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","placeHolderFrom","placeHolderTo","noResultsText","requestGeolocation","groupLabelsOverwrite","enableONDLocaleTranslation","additionalONDFilter","oWcustomOndUrl","mHcustomOndUrl","isIgnoreScroll","enableGlassDesign"])],2),!e.isHideDatePickerAndPassengerSelection&&!e.closedEventTriggerFromMobileView?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["w-4/10 xl:w-full component-wrapper ond-wrapper",{"mb-2 >lg:mb-0":e.props.enableGlassDesign,"glass-design-wrapper-mobileviewport":e.props.enableGlassDesign&&e.isMobileViewport}])},[createVNode(e.DateRangePicker,{ref:"dateRangePickerEl",modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":[o[5]||(o[5]=ne=>e.dateRangeValueFrom=ne),o[7]||(o[7]=ne=>e.dateRangeValueFrom=ne)],modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":[o[6]||(o[6]=ne=>e.dateRangeValueTo=ne),e.handleDateToChange],priceData:e.dateRangePriceData,textFieldAttrsFrom:{ariaLabel:((V=e.props.datePicker)==null?void 0:V.departureDateLabel)??t.$t("Depart"),placeholder:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:((A=e.props.datePicker)==null?void 0:A.returnDateLabel)??t.$t("Return"),placeholder:t.$t("Select a date")},minDate:`t+${e.datePickerMinAllowedFutureDays}d`,maxDate:`t+${e.datePickerMaxAllowedFutureDays}d`,disabledDates:e.formattedDisabledDateList,minDateFromAfterSelectingTo:"t",disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(M=e.props.datePicker)==null?void 0:M.invalidDateErrorMessage,requiredErrorMsgTo:(O=e.props.datePicker)==null?void 0:O.invalidDateErrorMessage,labelReset:((R=e.props.datePicker)==null?void 0:R.resetButtonCTAText)??t.$t("Reset"),labelDone:((I=e.props.datePicker)==null?void 0:I.doneCTAText)??t.$t("Done"),labelOneWay:((j=e.props.datePicker)==null?void 0:j.oneWayCTAText)??t.$t("One-way"),isHideTodayIndicator:e.props.hideTodayDateIndicator,disableCalendarPickerAnimation:e.props.disableCalendarPickerAnimation,isIgnoreScroll:e.props.isIgnoreScroll,enableGlassDesign:e.props.enableGlassDesign,selectDateLabel:(H=e.props.datePicker)==null?void 0:H.selectDateLabel,"onUpdate:isOneWay":e.handleWatchIsOneWay},createSlots({"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.datePickerQuestionMobile),1)]),_:2},[e.currency?{name:"before-cta-done",fn:withCtx(()=>[e.ondValueFrom&&!e.sumPrice?withDirectives((openBlock(),createElementBlock("span",_hoisted_7$z,null,512)),[[f,t.$t("Fare shown in {currency} per adult",{currency:e.currency})]]):createCommentVNode("",!0),e.ondValueFrom&&e.ondValueTo&&e.sumPrice?withDirectives((openBlock(),createElementBlock("span",_hoisted_8$x,null,512)),[[f,t.$t("Trip from <strong>{sumPriceWithCurrency}</strong> per adult",{sumPriceWithCurrency:e.sumPriceWithCurrency})]]):createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["modelValueFrom","modelValueTo","priceData","textFieldAttrsFrom","textFieldAttrsTo","minDate","maxDate","disabledDates","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","isHideTodayIndicator","disableCalendarPickerAnimation","isIgnoreScroll","enableGlassDesign","selectDateLabel"])],2)):createCommentVNode("",!0),!e.isHideDatePickerAndPassengerSelection&&!e.closedEventTriggerFromMobileView?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([[e.passengersAndCabinFieldWidth,{"mb-2 >xl:mb-0":e.props.enableGlassDesign,"glass-design-wrapper-mobileviewport":e.props.enableGlassDesign&&e.isMobileViewport}],"xl:w-full component-wrapper ond-wrapper"])},[createVNode(e.PassengerAndCabinClass,{ref:"passengerAndCabinClassEl",labelText:(U=e.props.passengerSelection)==null?void 0:U.passengerAndCabinClassLabel,passengerLabel:(B=e.props.passengerSelection)==null?void 0:B.passengerLabel,adultLabel:(L=e.props.passengerSelection)==null?void 0:L.adultLabel,teenagerLabel:(z=e.props.passengerSelection)==null?void 0:z.teenagerLabel,childrenLabel:(W=e.props.passengerSelection)==null?void 0:W.childrenLabel,infantLabel:(J=e.props.passengerSelection)==null?void 0:J.infantLabel,cabinClassLabel:(te=e.props.passengerSelection)==null?void 0:te.cabinClassLabel,economyLabel:(re=e.props.passengerSelection)==null?void 0:re.economyLabel,businessLabel:(oe=e.props.passengerSelection)==null?void 0:oe.businessLabel,businessSuiteLabel:(X=e.props.passengerSelection)==null?void 0:X.businessSuiteLabel,isShowEconomyClass:!((se=e.props.passengerSelection)!=null&&se.isHideEconomy),isShowBusinessClass:!((le=e.props.passengerSelection)!=null&&le.isHideBusiness),isShowBusinessSuiteClass:!((he=e.props.passengerSelection)!=null&&he.isHideBusinessSuite),isCountryVariant:e.useIsCountryVariant(e.props.countryVariants,{origin:e.ondValueFrom,destination:e.ondValueTo}),isExpressBooking:e.isExpressBooking,passengerAndCabinClassNote:(ge=e.props.passengerSelection)==null?void 0:ge.passengerAndCabinClassNote,enableGlassDesign:e.props.enableGlassDesign},{"after-passengers":withCtx(()=>{var ne;return[createVNode(l,{class:"font-semibold",href:(ne=e.props.passengerSelection)==null?void 0:ne.groupBookingPageURL,showExternalLinkIcon:!0,target:"_blank"},{default:withCtx(()=>{var Ce;return[createTextVNode(toDisplayString(((Ce=e.props.passengerSelection)==null?void 0:Ce.moreThan9PassengerDescription)||t.$t("More than 9 passengers?")),1)]}),_:1},8,["href"])]}),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.passengerSelectionQuestion),1)]),_:1},8,["labelText","passengerLabel","adultLabel","teenagerLabel","childrenLabel","infantLabel","cabinClassLabel","economyLabel","businessLabel","businessSuiteLabel","isShowEconomyClass","isShowBusinessClass","isShowBusinessSuiteClass","isCountryVariant","isExpressBooking","passengerAndCabinClassNote","enableGlassDesign"])],2)):createCommentVNode("",!0),e.props.enableGlassDesign&&e.isMobileViewport&&!e.props.hidePromoCodeField?(openBlock(),createElementBlock("div",_hoisted_9$u,[createBaseVNode("div",_hoisted_10$m,[e.isPromoEditorEnabled?(openBlock(),createElementBlock("div",_hoisted_13$i,[createVNode(d,{class:"icon fill-primary-blue-base ml-3 shrink-0 width-6"}),createBaseVNode("div",_hoisted_14$i,[withDirectives(createBaseVNode("input",{id:"promo-code",ref:"promoInputRef","onUpdate:modelValue":o[10]||(o[10]=ne=>e.promoCodeValue=ne),type:"text",class:"promocode-editor flex-1 border-0 outline-none bg-transparent min-w-0",onKeyup:o[11]||(o[11]=withKeys(ne=>e.enablePromocodeEditor(!1),["enter"]))},null,544),[[vModelText,e.promoCodeValue]])])])):(openBlock(),createElementBlock("button",{key:0,t
1171ype:"button",class:normalizeClass(["flex items-center p-0 gap-2 promocode-btn",{"promocode-bg":e.promoCodeValue!==null}]),onClick:o[9]||(o[9]=ne=>e.enablePromocodeEditor(!0))},[createVNode(d,{class:"icon fill-primary-blue-base w-6 ml-2 shrink-0"}),createBaseVNode("div",_hoisted_11$l,[e.promoCodeValue?(openBlock(),createElementBlock("span",_hoisted_12$k,toDisplayString(e.props.promoCodeLabel),1)):createCommentVNode("",!0),createBaseVNode("span",{class:normalizeClass(["text-primary-blue-base leading-tight truncate promocode-value",{"promocode-color":e.promoCodeValue!==null,"has-value":r.promoCode}])},toDisplayString(e.promoCodeValue||e.props.promoCodeLabel),3)]),e.promoCodeValue?(openBlock(),createBlock(c,{key:0,class:"w-3 fill-neutral-grey-extradark cursor-pointer shrink-0 mr-3",onClick:o[8]||(o[8]=ne=>e.resetPromoCode())})):createCommentVNode("",!0)],2))])])):createCommentVNode("",!0),e.computedCTADisplay?withDirectives((openBlock(),createBlock(e.CTAButton,{key:3,class:normalizeClass({"cta-btn ml-1":e.props.enableGlassDesign}),sizeType:(e.isMobileViewport,"large"),isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>{var ne;return[createTextVNode(toDisplayString(e.isExpressBooking?(ne=e.props.expressBooking)==null?void 0:ne.expressBookingSearchCta:e.props.searchFlightCTAText),1)]}),_:1},8,["class","sizeType","ctaSizing","disabled"])),[[m,[{clickName:e.isExpressBooking?(Q=e.props.expressBooking)==null?void 0:Q.expressBookingSearchCta:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"SubTabBookFlight",componentID:e.props.componentIdAA},{name:e.isExpressBooking?(Y=e.props.expressBooking)==null?void 0:Y.expressBookingSearchCta:e.props.searchFlightCTAText,type:"exit"}]]]):createCommentVNode("",!0),!e.props.payByEnrichPoints&&!e.props.hidePromoCodeField&&!e.props.enableGlassDesign?(openBlock(),createElementBlock("div",{key:4,class:normalizeClass(["xl:w-full component-wrapper",e.country=="vn"?"w-3/10":"w-2/10"])},[createVNode(e.TextField,{ref:"promoCodeTextField",modelValue:e.promoCodeValue,"onUpdate:modelValue":o[12]||(o[12]=ne=>e.promoCodeValue=ne),name:"promoCode",variant:"booking-widget",ariaLabel:e.props.promoCodeLabel,placeholder:"E.g. 8990",allowedKeys:/[a-zA-Z0-9]/},null,8,["modelValue","ariaLabel"])],2)):createCommentVNode("",!0)],2)]),createVNode(e.TransitionHeight,{height:e.isExpanded||e.isEditorMode||e.isMobileViewport?"auto":0,transitionDuration:.175,class:normalizeClass(e.isExpanded||e.isEditorMode||e.isMobileViewport?"overflow-visible":""),onTransitionEnd:e.handleExpandTransitionEnd},{default:withCtx(()=>{var ne,Ce,ae,Be;return[createBaseVNode("div",_hoisted_15$h,[e.props.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_16$h,[e.props.expressBooking&&e.props.expressBooking.turnOnExpressBooking&&!e.props.payByEnrichPoints?(openBlock(),createElementBlock("div",_hoisted_17$f,[createBaseVNode("p",_hoisted_18$d,toDisplayString((ne=e.props.expressBooking)==null?void 0:ne.searchOptionsLabel),1),createVNode(e.Checkbox,{modelValue:e.isExpressBooking,"onUpdate:modelValue":[o[13]||(o[13]=me=>e.isExpressBooking=me),o[14]||(o[14]=me=>e.isExpressBooking=me)],rootAttrs:{class:"checkbox-express-booking -mt-2 mb-4"},ariaLabel:(Ce=e.props.expressBooking)==null?void 0:Ce.expressBookingCheckboxLabel,name:"isExpressBooking",disabled:e.isDisabledExpressBooking,onChange:e.handleExpressBookingChecked},{default:withCtx(()=>{var me,K;return[createBaseVNode("p",null,toDisplayString((me=e.props.expressBooking)==null?void 0:me.expressBookingCheckboxLabel),1),(K=e.props.expressBooking)!=null&&K.expressBookingTooltipDescription?(openBlock(),createBlock(e.Tooltip,{key:0,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_19$b,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"})])]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[f,e.props.expressBooking.expressBookingTooltipDescription]])]),_:1})):createCommentVNode("",!0)]}),_:1},8,["modelValue","ariaLabel","disabled"])])):createCommentVNode("",!0)])),e.props.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_20$b,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,
1171ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>{var me;return[createTextVNode(toDisplayString(e.props.enableGlassDesign?e.props.searchFlightCTAText:e.isExpressBooking?(me=e.props.expressBooking)==null?void 0:me.expressBookingSearchCta:e.props.searchFlightCTAText),1)]}),_:1},8,["sizeType","ctaSizing","disabled"])),[[m,[{clickName:e.isExpressBooking?(ae=e.props.expressBooking)==null?void 0:ae.expressBookingSearchCta:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"SubTabBookFlight",componentID:e.props.componentIdAA},{name:e.isExpressBooking?(Be=e.props.expressBooking)==null?void 0:Be.expressBookingSearchCta:e.props.searchFlightCTAText,type:"exit"}]]])]))]),e.eligibleForBonusSideTrip&&e.props.bstNoteTop&&!e.isExpressBooking?(openBlock(),createElementBlock("div",_hoisted_21$b,[createBaseVNode("div",_hoisted_22$a,[createVNode(e.ToggleSwitch,{modelValue:e.optInBonusSideTrip,"onUpdate:modelValue":o[15]||(o[15]=me=>e.optInBonusSideTrip=me),ariaLabel:e.props.bstNoteTop,name:"optInBonusSideTrip",onChange:o[16]||(o[16]=me=>e.onToggleChange("optInBonusSideTrip",e.optInBonusSideTrip,"SubTabBookFlight",""))},{default:withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[f,e.props.bstNoteTop]])]),_:1},8,["modelValue","ariaLabel"]),createBaseVNode("div",_hoisted_23$9,[e.props.bstNoteCTAText?withDirectives((openBlock(),createBlock(l,{key:0,href:e.props.bstNoteCTAURL,target:"_blank",showExternalLinkIcon:!1},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.bstNoteCTAText),1)]),_:1},8,["href"])),[[m,[{clickName:e.props.bstNoteCTAText,clickComponentType:"URL",componentName:"SubTabBookFlight",componentID:e.props.componentIdAA,BST:!0},{name:e.props.bstNoteCTAText,type:e.isUrlMatchCurrentHostname(e.props.bstNoteCTAURL)?"other":"exit"}]]]):createCommentVNode("",!0)])])])):createCommentVNode("",!0),e.props.note?(openBlock(),createElementBlock("div",_hoisted_24$8,[createBaseVNode("div",_hoisted_25$8,[createVNode(s,{class:"fill-primary-blue-base text-base"})]),withDirectives(createBaseVNode("div",_hoisted_26$8,null,512),[[f,e.props.note]])])):createCommentVNode("",!0),e.showAlwaysOnEnrichNonLoginMsg&&!e.props.enableGlassDesign?(openBlock(),createElementBlock("div",_hoisted_27$7,[createVNode(s,{class:"fill-primary-blue-base text-base"}),withDirectives(createBaseVNode("div",_hoisted_28$6,null,512),[[f,e.props.nonLoggedInMessageNote]])])):createCommentVNode("",!0),e.enrichAlwaysOnEligibility&&e.props.loggedInMessageNote&&!e.props.autoApplyEnrichAlwaysOn?(openBlock(),createElementBlock("div",_hoisted_29$6,[createBaseVNode("div",_hoisted_30$6,[createVNode(e.ToggleSwitch,{modelValue:e.optEnrichAlwaysOnOffer,"onUpdate:modelValue":o[17]||(o[17]=me=>e.optEnrichAlwaysOnOffer=me),ariaLabel:e.props.loggedInMessageNote,name:"optEnrichAlwaysOnOffer",onChange:o[18]||(o[18]=me=>e.onToggleChange("optEnrichAlwaysOnOffer",e.optEnrichAlwaysOnOffer,"SubTabBookFlight",""))},{default:withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[f,e.props.loggedInMessageNote]])]),_:1},8,["modelValue","ariaLabel"])])])):createCommentVNode("",!0)]}),_:1},8,["height","class"])]}),_:1},8,["data-use-theme"])),[[b]]),e.isLoading?(openBlock(),createBlock(Teleport,{key:0,to:"body"},[createBaseVNode("div",_hoisted_31$6,[createBaseVNode("div",_hoisted_32$6,[createVNode(e.AppSpinner)])])])):createCommentVNode("",!0),(openBlock(),createBlock(resolveDynamicComponent(e.isEditorMode?"div":e.Teleport),{to:"body"},{default:withCtx(()=>[createVNode(Transition,{name:"overlay-fade-and-zoom",appear:""},{default:withCtx(()=>{var y,_,S;return[e.isExpressBookingPopUpVisible?(openBlock(),createElementBlock("div",{key:0,ref:"ExpressBookingPopUpEl",class:normalizeClass(["ExpressBookingPopUp backdrop",{"!relative":e.isEditorMode}]),tabindex:"-1",onKeydownCapture:withKeys(e.dismissOverlayByUser,["esc"]),onClick:withModifiers(e.dismissOverlayByUser,["self"])},[createBaseVNode("div",_hoisted_33$3,[createBaseVNode("div",_hoisted_34$3,[createBaseVNode("button",{type:"button",class:"absolute top-2 right-4","aria-label":"Popup close button",onClick:e.dismissOverlayByUser},[createVNode(u,{class:"w-6 h-6"})]),createBaseVNode("h3",null,toDisplayString((y=e.props.expressBooking)==null?void 0:y.expressBookingPopUpTitle),1)]),createBaseVNode("div",_hoisted_35$3,[withDirectives(createBaseVNode("div",_hoisted_36$2,null,512),[[f,(_=e.props.expressBooking)==null?void 0:_.expressBookingPopUpDescription]])]),createBaseVNode("div",_hoisted_37$2,[createVNode(e.CTAButton,{ctaText:(S=e.props.expressBooking)==null?void 0:S.expressBookingPopUpSignUpCtaLabel,sizeType:"small",ctaSizing:"fluid",styleType:"secondary",containerClass:"flex-grow basis-0 w-full",onClick:o[19]||(o[19]=C=>e.handleRedirectToLoginAndSignUp({status:"signup"}))},null,8,["ctaText"]),createVNode(l,{href:"#",class:"flex-grow basis-0 hover:no-underline w-full"},{default:withCtx(()=>{var C;return[createVNode(e.CTAButton,{ctaText:(C=e.props.expressBooking)==null?void 0:C.expressBookingPopUpLoginCtaLabel,sizeType:"small",ctaSizing:"fluid",styleType:"primary",containerClass:"w-full",tabindex:"-1",onClick:o[20]||(o[20]=T=>e.handleRedirectToLoginAndSignUp({status:"login"}))},null,8,["ctaText"])]}),_:1})])])],34)):createCommentVNode("",!0)]}),_:1}),createVNode(Transition,{name:"over-fade-and-zoom",appear:""},{default:withCtx(()=>{var y,_,S,C;return[e.isExpressBookingPostLogin&&((y=e.props.expressBooking)!=null&&y.turnOnPostLoginPopup)?(openBlock(),createElementBlock("div",{key:0,ref:"ExpressBookingPopUpEl",class:normalizeClass(["ExpressBookingPopUp backdrop",{"!relative":e.isEditorMode}]),tabindex:"-1",onKeydownCapture:withKeys(e.dismissOverlayByUser,["esc"]),onClick:withModifiers(e.dismissOverlayByUser,["self"])},[createBaseVNode("div",_hoisted_38$2,[createBaseVNode("div",_hoisted_39$2,[createBaseVNode("button",{type:"button",class:"absolute top-2 right-4","aria-label":"Popup close button",onClick:e.dismissOverlayByUser},[createVNode(u,{class:"w-6 h-6"})]),createBaseVNode("h3",null,toDisplayString((_=e.props.expressBooking)==null?void 0:_.expressBookingPostLoginPopupTitle),
11711)]),createBaseVNode("div",_hoisted_40$2,[withDirectives(createBaseVNode("div",_hoisted_41$2,null,512),[[f,(S=e.props.expressBooking)==null?void 0:S.expressBookingPostLoginPopupDescription]])]),createBaseVNode("div",_hoisted_42$2,[createVNode(e.CTAButton,{ctaText:(C=e.props.expressBooking)==null?void 0:C.expressBookingPostLoginPopupContinueCTALabel,sizeType:"small",ctaSizing:"fluid",styleType:"primary",containerClass:"w-full",onClick:e.handleRedirectToContinue},null,8,["ctaText"])])])],34)):createCommentVNode("",!0)]}),_:1})]),_:1}))],512)}const SubTabBookFlight$1=_export_sfc(_sfc_main$1h,[["render",_sfc_render$1h],["__scopeId","data-v-b86d8259"],["__file","SubTabBookFlight.vue"]]),__default__$1f={name:"ContinueYourSearch"},_sfc_main$1g=Object.assign(__default__$1f,{props:{continueYourSearchLabel:{type:String,default:"Continue your search"},economyLabel:{type:String,default:i18nGlobal.t("Economy")},businessLabel:{type:String,default:i18nGlobal.t("Business")},businessSuiteLabel:{type:String,default:i18nGlobal.t("Business Suite")},bstTagLabel:{type:String,default:"Bonus Side Trip"},componentIdAA:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1},nonLoggedInMessage:{type:String,default:""},activeSubTab:{type:String,default:""},promoCodeLength:{type:[String,Number],default:""},isshrunk:{type:Boolean,default:!1}},emits:["restore-past-search","is-past-search-empty"],setup(t,{expose:o,emit:r}){const e=t,n=r,{pageProperties:a}=useGlobalAEMState$1(),{optionsFrom:i}=useONDList({}),{isLoggedIn:s}=useAuthStore(),l=ref$1([]),d=window.siteName;usePersistencyWithExpiry("flight-search:past-searches",{refs:{pastSearches:l}});const c=E=>String((E==null?void 0:E.airportCode)??(E==null?void 0:E.code)??(E==null?void 0:E.value)??"").trim().toUpperCase(),u=E=>E?dayjs(E).format("YYYY-MM-DD"):"",f=E=>{const w=c(E==null?void 0:E.ondValueFrom),D=c(E==null?void 0:E.ondValueTo),N=u(E==null?void 0:E.dateRangeValueFrom),F=E!=null&&E.isOneWay?"":u(E==null?void 0:E.dateRangeValueTo),V=Number((E==null?void 0:E.adultsCount)??0),A=Number((E==null?void 0:E.childrenCount)??0),M=Number((E==null?void 0:E.teensCount)??0),O=Number((E==null?void 0:E.infantsCount)??0);return[w,D,N,F,V,A,M,O].join("|")},m=E=>{const w=f(E),D=l.value.filter(N=>f(N)!==w);l.value=[E,...D].slice(0,3)},b=computed(()=>!document.querySelector("#mobile-past-searches-container")),y=(E,w,D)=>{var F;let N=i.value;if(a.value.rootLanguage===D)return E;{let V=(F=N.find(A=>A.airportCode===w))==null?void 0:F._original;return V!=null&&V.locale?V.locale.cityName:V==null?void 0:V.city}},_=(E,w)=>{const D=dayjs(E.dateRangeValueFrom);if(E.isOneWay)return D.format("DD MMM YYYY");const N=dayjs(E.dateRangeValueTo),F=D.year()===N.year()&&D.month()===N.month();return w===0?`${D.format("DD MMM YYYY")} - ${N.format("DD MMM YYYY")}`:F?`${D.format("DD")} - ${N.format("DD MMM YYYY")}`:`${D.format("DD")} - ${N.format("DD MMM YYYY")}`},S=E=>{switch(parseInt(E,10)){case 1:return e.economyLabel;case 2:return e.businessLabel;case 3:return e.businessSuiteLabel}},C=E=>{var N;const w=f(E),D=l.value.filter(F=>f(F)!==w);l.value=D,((N=l.value)==null?void 0:N.length)===0&&n("is-past-search-empty",{isEmpty:!0})};onMounted(async()=>{await sleep(1e3);const E=new Set,w=[];for(const D of l.value){const N=f(D);E.has(N)||(E.add(N),w.push(D))}l.value=w.slice(0,3)}),o({saveSearch:m});const T=ref$1(!1),x=["zh_tw","zh_CN","zh_hk"];onMounted(()=>{x.forEach(E=>{window.location.href.includes(E)&&(T.value=!0)})});const k={props:e,emit:n,pageProperties:a,optionsFrom:i,isLoggedIn:s,pastSearches:l,siteName:d,getAirportCode:c,normDate:u,getSearchSignature:f,saveSearch:m,computedDisableTeleport:b,convertLocaleValue:y,getParsedDate:_,getCabinClassLabelByValue:S,removeSearch:C,isChineseDateFormat:T,urlValues:x,get dayjs(){return dayjs},VueSwiper,get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get _isEqual(){return lodashExports.isEqual},get i18nGlobal(){return i18nGlobal},get sleep(){return sleep},get useGlobalAEMState(){return useGlobalAEMState$1},get useONDList(){return useONDList},get useAuthStore(){return useAuthStore}};return Object.defineProperty(k,"__isScriptSetup",{enumerable:!1,value:!0}),k}}),_hoisted_1$1i={key:0,class:"ContinueYourSearch overflow-hidden"},_hoisted_2$19={class:"md:hidden"},_hoisted_3$L={key:0,class:"typo-category-title mb-4 md:px-4"},_hoisted_4$E={key:1,class:"continue-your-search-wrapper gap-6 lg:gap-3 w-full"},_hoisted_5$B=["onClick"],_hoisted_6$y={class:"flex flex-col"},_hoisted_7$y={class:"flex items-center flex-wrap"},_hoisted_8$w={class:"font-semibold"},_hoisted_9$t={class:"font-semibold"},_hoisted_10$l={class:"mt-2"},_hoisted_11$k={key:1},_hoisted_12$j={key:0,class:"mt-2"},_hoisted_13$h={class:"tag-label"},_hoisted_14$h={key:1,class:"mt-2"},_hoisted_15$g={key:0,class:"tag-label"},_hoisted_16$g={key:2,class:"mt-2"},_hoisted_17$e={key:0,class:"tag-label"},_hoisted_18$c={class:"mt-auto pt-3 flex items-center"},_hoisted_19$a={class:"inline-flex items-center mr-4 rtl:mr-0 rtl:ml-4"},_hoisted_20$a=["onClick"],_hoisted_21$a={class:"flex flex-row items-center px-2"},_hoisted_22$9={class:"font-semibold airport-code-text"},_hoisted_23$8={class:"font-light date-text pl-1"},_hoisted_24$7={class:">md:hidden -mx-4"},_hoisted_25$7={class:"typo-category-title mb-4 md:px-4 pt-8"},_hoisted_26$7=["onClick"],_hoisted_27$6={class:"flex flex-col"},_hoisted_28$5={class:"flex items-center flex-wrap"},_hoisted_29$5={class:"font-semibold"},_hoisted_30$5={class:"font-semibold"},_hoisted_31$5={class:"mt-2"},_hoisted_32$5={key:1},_hoisted_33$2={key:0,class:"mt-2"},_hoisted_34$2={class:"tag-label"},_hoisted_35$2={key:1,class:"mt-2"},_hoisted_36$1={key:0,class:"tag-label"},_hoisted_37$1={class:"mt-auto pt-3 flex items-center"},_hoisted_38$1={class:"inline-flex items-center mr-4 rtl:mr-0 rtl:ml-4"},_hoisted_39$1={class:""},_hoisted_40$1={key:0},_hoisted_41$1={key:0,class:"tag-label"},_hoisted_42$1=["onClick"],_hoisted_43$1={class:"flex flex-row items-center px-2"},_hoisted_44$1={class:"font-semibold text-sm"},_hoisted_45$1={class:"font-light text-xs pl-1"},_hoisted_46$1={key:1},_hoisted_47$1={key:0,class:"w-full"};function _sfc_render$1g(t,o,r,e,n,a){var f,m,b,y;const i=__unplugin_components_2$4,s=__unplugin_components_0$9,l=__unplugin_components_0$5,d=__unplugin_components_2$5,c=resolveDirective("aa"),u=resolveDirective("html-sanitize");return e.pastSearches&&e.pastSearches.length>0?(openBlock(),createElementBlock("div",_hoisted_1$1i,[createBaseVNode("div",_hoisted_2$19,[(f=e.props)!=null&&f.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("p",_hoisted_3$L,toDisplayString(e.props.continueYourSearchLabel),1)),(m=e.props)!=null&&m.enableGlassDesign?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["rafi-glass-design-wrapper gap-2 flex",r.isshrunk?"swiperwidth":Number(r.promoCodeLength)>11?"promo-swiperwidth":"w-full"])},[createVNode(e.VueSwiper,{class:"mobile-swiper recentsearch-padding",slidesPerView:"auto",spaceBetween:8,variant:"slides-auto-width slides-auto-height",navigation:!0,allowTouchMove:!0},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(_,S)=>withDirectives((openBlock(),createElementBlock("button",{key:S,type:"button",class:"glass-design-tile",onClick:C=>t.$emit("restore-past-search",_)},[createBaseVNode("div",_hoisted_21$a,[createBaseVNode("span",_hoisted_22$9,toDisplayString(_.ondValueFrom.airportCode)+" - "+toDisplayString(_.ondValueTo.airportCode),1),createBaseVNode("span",_hoisted_23$8,toDisplayString(e.getParsedDate(_,S)),1),createVNode(d,{class:"w-5 pl-2.5 pt-0.5","aria-hidden":"true",onClick:withModifiers(()=>e.removeSearch(_),["stop"])},null,8,["onClick"])])],8,_hoisted_20$a)),[[c,[{clickName:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,type:"other"}]]])),128))]),_:1})],2)):(openBlock(),createElementBlock("div",_hoisted_4$E,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(_,S)=>withDirectives((openBlock(),createElementBlock("button",{key:S,type:"button",class:"continue-your-search-tile",onClick:C=>t.$emit("restore-past-search",_)},[createVNode(i,{class:"icon fill-neutral-grey-dark mr-3 rtl:mr-0 rtl:ml-3 mt-0.5"}),createBaseVNode("div",_hoisted_6$y,[createBaseVNode("div",_hoisted_7$y,[createBaseVNode("span",_hoisted_8$w,toDisplayString(e.convertLocaleValue(_.ondValueFrom.displayValue,_.ondValueFrom.airportCode,_.locale)),1),createVNode(s,{class:"fill-neutral-grey-dark mx-3 transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_9$t,toDisplayString(e.convertLocaleValue(_.ondValueTo.displayValue,_.ondValueTo.airportCode,_.locale)),1)]),createBaseVNode("time",_hoisted_10$l,[_.dateRangeValueTo&&e.dayjs(_.dateRangeValueTo).isValid()?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(e.isChineseDateFormat?t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(_.dateRangeValueFrom).format("YYYY MMM DD"),dateTo:e.dayjs(_.dateRangeValueTo).format("YYYY MMM DD")}):t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY"),dateTo:e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")})),1)],64)):(openBlock(),createElementBlock("span",_hoisted_11$k,toDisplayString(e.isChineseDateFormat?e.dayjs(_.dateRangeValueFrom).format("YYYY MMM DD"):e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")),1))]),_.isBSTTab?(openBlock(),createElementBlock("div",_hoisted_12$j,[createBaseVNode("div",_hoisted_13$h,toDisplayString(t.$t(e.props.bstTagLabel)),1)])):_.payByEnrichPoints?(openBlock(),createElementBlock("div",_hoisted_14$h,[_.activeSubOption?(openBlock(),createElementBlock("div",_hoisted_15$g,toDisplayString(_.activeSubOption),1)):createCommentVNode("",!0)])):_.isExpressBooking?(openBlock(),createElementBlock("div",_hoisted_16$g,[_.expressBookingLabel?(openBlock(),createElementBlock("div",_hoisted_17$e,toDisplayString(_.expressBookingLabel),
11711)):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_18$c,[createBaseVNode("span",_hoisted_19$a,[createTextVNode(toDisplayString(_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount)+" ",1),createVNode(l,{class:"fill-neutral-grey-ultradark w-2.5 mx-2"})]),createBaseVNode("span",null,toDisplayString(e.getCabinClassLabelByValue(_.cabinClassValue.value)),1)])])],8,_hoisted_5$B)),[[c,[{clickName:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,type:"other"}]]])),128))]))]),createBaseVNode("div",_hoisted_24$7,[(b=e.props)!=null&&b.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createBlock(Teleport,{key:0,to:"#mobile-past-searches-container",disabled:e.computedDisableTeleport},[createBaseVNode("p",_hoisted_25$7,toDisplayString(e.props.continueYourSearchLabel),1),createVNode(e.VueSwiper,{class:"mobile-swiper",slidesPerView:"auto",spaceBetween:16,variant:"slides-auto-width slides-auto-height",scrollbar:{draggable:!0,hide:!0},style:{"--tile-max-width":"260px"},"data-use-theme":e.siteName},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(_,S)=>withDirectives((openBlock(),createElementBlock("button",{key:S,type:"button",class:"continue-your-search-tile",onClick:C=>t.$emit("restore-past-search",_)},[createVNode(i,{class:"icon fill-neutral-grey-dark mr-3 rtl:mr-0 rtl:ml-3 mt-0.5"}),createBaseVNode("div",_hoisted_27$6,[createBaseVNode("div",_hoisted_28$5,[createBaseVNode("span",_hoisted_29$5,toDisplayString(e.convertLocaleValue(_.ondValueFrom.displayValue,_.ondValueFrom.airportCode,_.locale)),1),createVNode(s,{class:"fill-neutral-grey-dark mx-3 transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_30$5,toDisplayString(e.convertLocaleValue(_.ondValueTo.displayValue,_.ondValueTo.airportCode,_.locale)),1)]),createBaseVNode("time",_hoisted_31$5,[_.dateRangeValueTo&&e.dayjs(_.dateRangeValueTo).isValid()?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY"),dateTo:e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")})),1)],64)):(openBlock(),createElementBlock("span",_hoisted_32$5,toDisplayString(e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")),1))]),_.isBSTTab?(openBlock(),createElementBlock("div",_hoisted_33$2,[createBaseVNode("div",_hoisted_34$2,toDisplayString(t.$t(e.props.bstTagLabel)),1)])):_.isExpressBooking?(openBlock(),createElementBlock("div",_hoisted_35$2,[_.expressBookingLabel?(openBlock(),createElementBlock("div",_hoisted_36$1,toDisplayString(_.expressBookingLabel),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_37$1,[createBaseVNode("span",_hoisted_38$1,[createTextVNode(toDisplayString(_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount)+" ",1),createVNode(l,{class:"fill-neutral-grey-ultradark w-2.5 mx-2"})]),createBaseVNode("span",_hoisted_39$1,toDisplayString(_.cabinClassValue.label),1),_.payByEnrichPoints?(openBlock(),createElementBlock("span",_hoisted_40$1,[_.activeSubOption?(openBlock(),createElementBlock("span",_hoisted_41$1,toDisplayString(_.activeSubOption),1)):createCommentVNode("",!0)])):createCommentVNode("",!0)])])],8,_hoisted_26$7)),[[c,[{clickName:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,type:"other"}]]])),128))]),_:1},8,["data-use-theme"])],8,["disabled"])),(y=e.props)!=null&&y.enableGlassDesign?(openBlock(),createBlock(e.VueSwiper,{key:1,class:"mobile-swiper glass-design",slidesPerView:"auto",spaceBetween:16,variant:"slides-auto-width slides-auto-height",scrollbar:{draggable:!0,hide:!0},style:{"--tile-max-width":"260px"},"data-use-theme":e.siteName},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(_,S)=>withDirectives((openBlock(),createElementBlock("button",{key:S,type:"button",class:"glass-design-tile",onClick:C=>t.$emit("restore-past-search",_)},[createBaseVNode("div",_hoisted_43$1,[createBaseVNode("span",_hoisted_44$1,toDisplayString(_.ondValueFrom.airportCode)+" - "+toDisplayString(_.ondValueTo.airportCode),1),createBaseVNode("span",_hoisted_45$1,toDisplayString(e.getParsedDate(_,S)),1),createVNode(d,{class:"w-5 pl-2.5","aria-hidden":"true",onClick:withModifiers(()=>e.removeSearch(_),["stop"])},null,8,["onClick"])])],8,_hoisted_42$1)),[[c,[{clickName:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${_.ondValueFrom.displayValue??"-"} | To : ${_.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(_.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(_.dateRangeValueTo).format("DD MMM YYYY")??"-"} | BST: ${_.isBSTTab} | Passenger: ${_.adultsCount+_.teensCount+_.childrenCount+_.infantsCount} | Cabin class: ${_.cabinClassValue.label}`,type:"other"}]]])),128))]),_:1},8,["data-use-theme"])):createCommentVNode("",!0)])])):e.props.enableGlassDesign&&e.pastSearches.length==0&&e.props.activeSubTab!=="redeem-flight"&&e.props.activeSubTab!=="multicity"?(openBlock(),createElementBlock("div",_hoisted_46$1,[e.isLoggedIn?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_47$1,[createBaseVNode("div",{class:normalizeClass(["login-disclaimer flex justify-between text-xs w-full",r.isshrunk?"login-disclaimer-foc":"login-disclaimer-notfoc"])},[withDirectives(createBaseVNode("span",null,null,512),[[u,e.props.nonLoggedInMessage]])],2)]))])):createCommentVNode("",!0)}const ContinueYourSearch$2=_export_sfc(_sfc_main$1g,[["render",_sfc_render$1g],["__scopeId","data-v-5a3dad2e"],["__file","ContinueYourSearch.vue"]]),__default__$1e={name:"SubTabMultiCity"},_sfc_main$1f=Object.assign(__default__$1e,{props:{subHeaderTabDescription:{type:String,default:""},subHeaderTabTooltipBody:{type:String,default:""},subHeaderTabTooltipLabel:{type:String,default:""},note:{type:String,default:""},removeCTAText:{type:String,default:i18nGlobal.t("Remove")},addAnotherFlightCTAText:{type:String,default:i18nGlobal.t("Add another flight")},searchFlightCTAText:{type:String,default:i18nGlobal.t("Search flight")},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null},subHeaderTooltipCTATextMobileLabele:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},passengerSelectionQuestion:{type:String,default:""},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},enableONDLocaleTranslation:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1},promoCode:{type:Object,default:null},countryVariants:{type:Array,default:()=>[]},continueYourSearchLabel:{type:String,default:"Continue your search"},economyLabel:{type:String,default:i18nGlobal.t("Economy")},businessLabel:{type:String,default:i18nGlobal.t("Business")},businessSuiteLabel:{type:String,default:i18nGlobal.t("Business Suite")},isHideContinueYourSearchSection:{type:Boolean,default:!1}},emits:["form-submission","on:trigger","restore-past-search"],setup(t,{expose:o,emit:r}){o(),dayjs.extend(isBetween);const e=t,n=r,a=re=>{n("restore-past-search",re)},i=ref$1(null),s=ref$1(null),l=ref$1([]),d=ref$1(null),c=ref$1(null),u=ref$1(null),{pageProperties:f,isEditorMode:m}=useGlobalAEMState$1(),b=f.value.rootCountry,y=f.value.rootLanguage,_=ref$1(null),S=ref$1(null),C=re=>re.charAt(0).toUpperCase()+re.slice(1),T=computed(()=>{var oe;const re=parseInt((oe=s.value.cabinClassValue)==null?void 0:oe.value)-1;return e.cabinClassCashList[re].value}),x=async(re,oe)=>{var me;d.value=!0;const X=Object.fromEntries(Object.entries(re).filter(([K,q])=>!K.startsWith("@"))),se={};
1171Object.entries(X).forEach(([K,q])=>{K.includes("departDate")?se[K]=dayjs(q).format("YYYYMMDDHHmm"):se[K]=q}),console.log("✅ handleSubmitValid values = ",se),n("form-submission",se);const{passengerAdults:le,passengerTeens:he,passengerChildren:ge,passengerInfants:Q,cabinClass:Y,promoCode:ne,...Ce}=se,ae={};w.value.forEach((K,q)=>{const Z=K.locationTo._original.isAmalFlag;ae[`amal${q+1}`]=Z});const Be={originCountry:w.value[0].locationFrom._original.countryName,flightClass:T.value,adultCount:le.toString(),...D.value?{teenCount:he.toString()}:null,childCount:ge.toString(),infantCount:Q.toString(),paymentType:"cash",regionLanguage:b&&y?`${b}-${C(y)}`:"",promoCode:ne||"",amcvId:((me=window._satellite)==null?void 0:me.getVar("ECID"))??"",teaserCategory:getCookie("TeaserCategory")??"",...ae,...Ce};getCookie("irclickid")&&(Be.impactClickId=getCookie("irclickid"));try{const K=await axios$1({method:"post",url:e.flightSearchApiUrl,data:Be}),{url:q,payload:Z}=K.data;delete Z.RAW_DATA;const de={},fe=Object.entries(Z);for(let[Fe,[Te,Se]]of fe.entries())console.log(`apiResponse => ${Fe}: ${Te}: ${Se}`),de[Fe]=Te;const _e={...de,...Z},pe=Object.entries(_e),ve="post",Me=document.createElement("form");Me.setAttribute("method",ve),Me.setAttribute("action",q);for(let[Fe,[Te,Se]]of pe.entries()){const Ae=parseInt(Te);let ue=document.createElement("input");ue.setAttribute("type","hidden"),ue.setAttribute("name",Te),ue.setAttribute("value",Se),Me.appendChild(ue)}document.body.appendChild(Me),Me.submit()}catch(K){console.error("handleSubmitValid, ","Unable to fetch api",K),d.value=!1;const{statusCode:q,message:Z}=K.response.data;q===400&&(_.value.setErrors(i18nGlobal.t(Z)),W({errorMsg:i18nGlobal.t(Z)}))}},k=({values:re,errors:oe,results:X,evt:se})=>{console.log("❌ handleSubmitInvalid errors = ",oe)},E=computed(()=>{var X;let re=(X=e.ondSelection)==null?void 0:X.destinationLabel.split(",").map(se=>se.trim());const oe=[];if(re.length<6){for(let se=0,le=7;se<le;se++)re[se]?oe.push(re[se]):oe.push("");return oe}return re}),w=ref$1([{id:"@first",title:`${E.value[0]}`,locationFrom:ref$1(null),locationTo:ref$1(null),departureDate:ref$1(null),num:1},{id:"@second",title:`${E.value[1]}`,locationFrom:ref$1(null),locationTo:ref$1(null),departureDate:ref$1(null),num:2}]),D=ref$1(!1),N=async()=>{w.value.push({id:`@${Math.round(Math.random()*1e16)}`,title:`${E.value[w.value.length]}`,locationFrom:ref$1(null),locationTo:ref$1(null),departureDate:ref$1(null),num:w.value.length+1})},F=async re=>{w.value.splice(w.value.findIndex(oe=>oe.id===re),1)},V=async re=>{for(const[oe,X]of re.entries())w.value.splice(oe,1,{id:`@${Math.round(Math.random()*1e16)}`,title:`${E.value[w.value.length]}`,locationFrom:X.locationFrom,locationTo:X.locationTo,departureDate:X.dateDeparture});nextTick$1().then(async()=>{for(const oe of l.value)await oe.updateFromValue(),oe.updateToValue()})},A=useEventBus("booking-widget"),M=computed(()=>{const re=i.value,oe=w.value;return re?oe.some(se=>!se.departureDate||!se.locationFrom||!se.locationTo):!0}),O=re=>{var ge,Q,Y,ne;const oe=w.value[re-1]||null,X=w.value[re]||null,se=(oe==null?void 0:oe.departureDate)||null,le=((ge=oe==null?void 0:oe.locationFrom)==null?void 0:ge.countryCode)==="ID"||((Q=oe==null?void 0:oe.locationTo)==null?void 0:Q.countryCode)==="ID",he=((Y=X==null?void 0:X.locationFrom)==null?void 0:Y.countryCode)==="ID"||((ne=X==null?void 0:X.locationTo)==null?void 0:ne.countryCode)==="ID";return{prevItem:oe,currentItem:X,hasPreviousDate:se,isPrevHasID:le,isCurrentHasID:he}},R=(re,oe)=>{const{hasPreviousDate:X,isPrevHasID:se,isCurrentHasID:le}=O(oe);return oe===0||!X?"":se&&le?dayjs(X).add(1,"day").format("YYYY-MM-DD"):dayjs(X).format("YYYY-MM-DD")},I=(re,oe)=>{const{hasPreviousDate:X,isPrevHasID:se,isCurrentHasID:le}=O(re);if(X&&dayjs(oe).isBefore(dayjs(X)))return i18nGlobal.t("Date selected should be the same or after the date of the previous configured row");if(se&&le){const he=dayjs(X).add(1,"day");if(dayjs(oe).isBefore(he))return i18nGlobal.t("Date selected should be at least 1 day after the previous destination due to Indonesia-specific restrictions")}return!0};useSyncPassengerDetails(s);const{registerQueryChange:j}=useBookingWidgetUrlQuery({mainTabName:"flight-search-tab",subTabName:"multi-city"});j(async re=>{var X;if(!re)return;let oe=[];for(let se=0;se<6;se++){let le=Object.keys(re).filter(he=>he.includes(se+1)).reduce((he,ge)=>{var Q=ge.replace(/\d+/g,"");return Object.assign(he,{[Q]:re[ge]})},{});oe.push(le)}oe=oe.filter(se=>Object.keys(se).length!==0),await V(oe),S.value=re.promoCode??null,await nextTick$1(),(X=s.value)==null||X.setValues({...re.adultsCount?{adults:parseInt(re.adultsCount)}:null,...re.teensCount?{teens:parseInt(re.teensCount)}:null,...re.childrenCount?{children:parseInt(re.childrenCount)}
1171:null,...re.infantsCount?{infants:parseInt(re.infantsCount)}:null,...re.cabinClass?{cabinClass:parseInt(re.cabinClass)}:null})}),watch(w,re=>{const oe=new Set;re.forEach(X=>{const{locationFrom:se,locationTo:le}=X,he=useIsCountryVariant(e.countryVariants,{origin:se,destination:le});oe.add(he)}),[...oe].includes(!0)?D.value=!0:(D.value=!1,s.value.setValues({teens:0}))},{deep:!0});const H=ref$1([]),U=(re,oe)=>{var X;re&&((X=H.value[oe].inputElFrom)==null||X.focus())},B=computed(()=>{var re,oe,X,se;return e.ondSelection?{NEAR_YOU:(re=e.ondSelection)==null?void 0:re.nearYouLabel,POPULAR_DEST:(oe=e.ondSelection)==null?void 0:oe.popularDestinationsLabel,WITH_MH:(X=e.ondSelection)==null?void 0:X.withMalaysiaAirlinesLabel,CODESHARE:(se=e.ondSelection)==null?void 0:se.withCodeShareAndPartnerNetworkLabel}:null}),L=window.siteName,z=re=>{var X;let oe=yup.string().nullable().max(8,(X=e.promoCode)==null?void 0:X.promoCodeErrorMessage);try{return oe.validateSync(re),!0}catch(se){return se.errors[0]}},W=({errorMsg:re})=>{const oe={errorName:re},X={name:e.promoCodeLabel,type:"other"};pushAA_searchError([oe,X])},J=computed(()=>i.value!==null?i.value.errors.promoCode:null);watch(J,re=>{re&&W({errorMsg:re})});const te={props:e,emit:n,handleRestore:a,formWrapper:i,passengerAndCabinClassEl:s,ondPickerEls:l,isLoading:d,dateRangeValFrom:c,dateRangeValTo:u,pageProperties:f,isEditorMode:m,country:b,language:y,promoCodeTextField:_,promoCodeValue:S,capitalizeString:C,computedCabinClassValue:T,handleSubmitValid:x,handleSubmitInvalid:k,computedDestinationLabel:E,destinationList:w,isCountryVariant:D,addDestination:N,removeDestinationById:F,loadDestinationListFromQuery:V,bookingWidgetBus:A,isBtnSubmitDisabled:M,getValidationForIndonesia:O,dynamicMinDate:R,customValidationDatepickerFrom:I,registerQueryChange:j,dateRangePickerEls:H,focusToDatePicker:U,groupLabelsOverwrite:B,siteName:L,promoFieldValidationFunc:z,triggerAA_searchError:W,formWrapperPromoCodeError:J,CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,TextField,FormWrapper,Tooltip,get dayjs(){return dayjs},get isBetween(){return isBetween},get isMobileViewport(){return isMobileViewport},PassengerAndCabinClass:PassengerAndCabinClass$1,get useEventBus(){return useEventBus},get i18nGlobal(){return i18nGlobal},get useGlobalAEMState(){return useGlobalAEMState$1},get useIsCountryVariant(){return useIsCountryVariant},get useSyncPassengerDetails(){return useSyncPassengerDetails},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get getCookie(){return getCookie},get pushAA_searchError(){return pushAA_searchError},AppSpinner,ContinueYourSearch:ContinueYourSearch$2,Teleport,get yup(){return yup}};return Object.defineProperty(te,"__isScriptSetup",{enumerable:!1,value:!0}),te}}),_hoisted_1$1h={key:0,class:"mb-5"},_hoisted_2$18={class:"flex items-center"},_hoisted_3$K={class:""},_hoisted_4$D={class:"flex items-center mb-2"},_hoisted_5$A={key:0,class:"uppercase"},_hoisted_6$x={key:1},_hoisted_7$x={class:"ml-auto"},_hoisted_8$v=["onClick"],_hoisted_9$s={class:"flex gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_10$k={class:"hidden flex flex-wrap","aria-hidden":"true"},_hoisted_11$j={class:"flex justify-start items-center"},_hoisted_12$i={class:"font-semibold"},_hoisted_13$g={class:"flex flex-row justify-between items-center w-full md:flex-col-reverse md:gap-3"},_hoisted_14$g={key:0,class:"flex items-center ml-auto"},_hoisted_15$f={key:0,class:"flex items-center"},_hoisted_16$f={class:"express-booking-checkbox"},_hoisted_17$d={class:"check-label text-sm text-primary-blue-base"},_hoisted_18$b={key:2},_hoisted_19$9={class:"font-semibold"},_hoisted_20$9={class:"flex mt-6 gap-6 md:flex-col"},_hoisted_21$9={class:"flex flex-grow gap-6 md:flex-col"},_hoisted_22$8={key:0,class:"w-4/10 lg:w-full"},_hoisted_23$7={class:"ml-auto md:ml-0 cta-wrapper"},_hoisted_24$6={key:3,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_25$6={class:"text-sm"},_hoisted_26$6={class:"generic-backdrop flight-search-bg !bg-white/80"},_hoisted_27$5={class:"flex items-center justify-center h-full w-full"};function _sfc_render$1f(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$5,l=__unplugin_components_1$c,d=resolveComponent("AppHyperlink"),c=resolveDirective("html-sanitize"),u=resolveDirective("aa"),f=resolveDirective("button-press");return openBlock(),createElementBlock("div",{class:normalizeClass(["SubTabMultiCity",{"glass-design":e.props.enableGlassDesign}])},[createVNode(e.FormWrapper,{ref:"formWrapper","data-use-theme":e.siteName,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:m})=>{var b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H;return[e.props.subHeaderTabDescription?withDirectives((openBlock(),createElementBlock("div",_hoisted_1$1h,null,512)),[[c,e.props.subHeaderTabDescription]]):createCommentVNode("",!0),e.props.subHeaderTabTooltipLabel?(
1171openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$18,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.subHeaderTabTooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipBody),1)]),"mobile-cta-label":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTooltipCTATextMobileLabel),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_3$K,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.destinationList,(U,B)=>{var L,z,W,J,te,re,oe,X,se,le,he,ge,Q,Y;return openBlock(),createElementBlock("section",{key:U.id,class:normalizeClass([{"mb-4":!e.props.enableGlassDesign,"border-b-2":!e.props.enableGlassDesign},"pb-6 border-neutral-grey-light last:border-b-0 last:mb-0"])},[createBaseVNode("div",_hoisted_4$D,[createBaseVNode("div",{class:normalizeClass([{"glass-design-title":e.props.enableGlassDesign},"typo-category-title"])},[e.props.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("p",_hoisted_5$A,toDisplayString(U.title),1)),e.props.enableGlassDesign?(openBlock(),createElementBlock("p",_hoisted_6$x,toDisplayString((L=e.props.ondSelection)==null?void 0:L.destinationLabel)+" "+toDisplayString(U.num),1)):createCommentVNode("",!0)],2),createBaseVNode("div",_hoisted_7$x,[B>=2?withDirectives((openBlock(),createElementBlock("button",{key:0,type:"button",class:"btn-generic-b text-primary-blue-base font-semibold px-4 gap-2",onClick:ne=>e.removeDestinationById(U.id)},[createVNode(s,{class:"fill-current"}),createTextVNode(" "+toDisplayString(e.props.removeCTAText),1)],8,_hoisted_8$v)),[[u,[{clickName:e.props.removeCTAText,clickComponentType:"Button",componentName:"SubTabMultiCity",componentID:e.props.componentIdAA},{name:e.props.removeCTAText,type:"other"}]],[f]]):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_9$s,[createBaseVNode("div",{class:normalizeClass([{"glass-design":e.props.enableGlassDesign},"w-6/10 lg:w-full component-wrapper ond-wrapper"])},[createVNode(e.ONDPicker,{ref_for:!0,ref:"ondPickerEls",modelValueFrom:U.locationFrom,"onUpdate:modelValueFrom":ne=>U.locationFrom=ne,modelValueTo:U.locationTo,"onUpdate:modelValueTo":[ne=>U.locationTo=ne,ne=>{e.focusToDatePicker(ne,B)}],nameFrom:`${U.id}-location-from`,nameTo:`${U.id}-location-to`,ondListIdentifier:"FLIGHT_SEARCH_MULTI_CITY",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(z=e.props.ondSelection)==null?void 0:z.fromSearchErrorMessage,requiredErrorMsgTo:(W=e.props.ondSelection)==null?void 0:W.toSearchErrorMessage,labelTextFrom:(J=e.props.ondSelection)==null?void 0:J.fromLabel,labelTextTo:(te=e.props.ondSelection)==null?void 0:te.toLabel,noResultsText:(re=e.props.ondSelection)==null?void 0:re.noResultMessage,groupLabelsOverwrite:e.groupLabelsOverwrite,enableONDLocaleTranslation:e.props.enableONDLocaleTranslation,enableGlassDesign:e.props.enableGlassDesign,placeHolderFrom:(oe=e.props.ondSelection)==null?void 0:oe.placeHolderFrom,placeHolderTo:(X=e.props.ondSelection)==null?void 0:X.placeHolderTo,"onOn:trigger":o[0]||(o[0]=ne=>e.emit("on:trigger"))},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:2},1032,["modelValueFrom","onUpdate:modelValueFrom","modelValueTo","onUpdate:modelValueTo","nameFrom","nameTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","noResultsText","groupLabelsOverwrite","enableONDLocaleTranslation","enableGlassDesign","placeHolderFrom","placeHolderTo"])],2),createBaseVNode("div",{class:normalizeClass([{"glass-design":e.props.enableGlassDesign},"w-4/10 lg:w-full component-wrapper ond-wrapper"])},[createVNode(e.DateRangePicker,{ref_for:!0,ref:"dateRangePickerEls",modelValueFrom:U.departureDate,"onUpdate:modelValueFrom":ne=>U.departureDate=ne,textFieldAttrsFrom:{ariaLabel:((se=e.props.datePicker)==null?void 0:se.departureDateLabel)??t.$t("Depart"),placeholder:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:null,placeholder:null},nameFrom:`${U.id}-departure-date`,nameTo:`${U.id}-return-date`,maxDate:"t+361d",minDate:e.dynamicMinDate(U,B),disablePastDates:!0,requiredFrom:!0,requiredErrorMsgFrom:(le=e.props.datePicker)==null?void 0:le.invali
1171dDateErrorMessage,forceOneWay:!0,labelReset:((he=e.props.datePicker)==null?void 0:he.resetButtonCTAText)??t.$t("Reset"),labelDone:((ge=e.props.datePicker)==null?void 0:ge.doneCTAText)??t.$t("Done"),labelOneWay:((Q=e.props.datePicker)==null?void 0:Q.oneWayCTAText)??t.$t("One-way"),isHideTodayIndicator:e.props.hideTodayDateIndicator,customValidationDatepickerFrom:e.customValidationDatepickerFrom.bind(null,B),enableGlassDesign:e.props.enableGlassDesign,selectDateLabel:(Y=e.props.datePicker)==null?void 0:Y.selectDateLabel,subTabType:"multicity",isIgnoreScroll:"true"},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.datePickerQuestionMobile),1)]),_:2},1032,["modelValueFrom","onUpdate:modelValueFrom","textFieldAttrsFrom","nameFrom","nameTo","minDate","requiredErrorMsgFrom","labelReset","labelDone","labelOneWay","isHideTodayIndicator","customValidationDatepickerFrom","enableGlassDesign","selectDateLabel"])],2)])],2)}),128))]),createBaseVNode("div",_hoisted_10$k,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.destinationList,(U,B)=>{var L,z;return openBlock(),createElementBlock("div",{key:U.id,class:"w-1/3 p-2 border"},[(openBlock(),createBlock(e.TextField,{key:`${U.id}-destination-${[B+1]}-location-from`,name:`originAirportCode${[B+1]}`,modelValue:(L=U.locationFrom)==null?void 0:L.value},null,8,["name","modelValue"])),(openBlock(),createBlock(e.TextField,{key:`${U.id}-destination-${[B+1]}-location-to`,name:`destAirportCode${[B+1]}`,modelValue:(z=U.locationTo)==null?void 0:z.value},null,8,["name","modelValue"])),(openBlock(),createBlock(e.TextField,{key:`${U.id}-destination-${[B+1]}-departure-date`,name:`departDate${[B+1]}`,modelValue:U.departureDate},null,8,["name","modelValue"]))])}),128))]),createBaseVNode("div",_hoisted_11$j,[e.isMobileViewport?createCommentVNode("",!0):withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,class:"btn-add-flight",sizeType:"small",styleType:"secondary",iconStyleLeft:"solid",iconIdLeft:"circle-plus",ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.destinationList.length>=6,onClick:e.addDestination},{default:withCtx(()=>[createBaseVNode("span",_hoisted_12$i,toDisplayString(e.props.addAnotherFlightCTAText),1)]),_:1},8,["ctaSizing","disabled"])),[[u,[{clickName:e.props.addAnotherFlightCTAText,clickComponentType:"Button",componentName:"SubTabMultiCity",componentID:e.props.componentIdAA},{name:e.props.addAnotherFlightCTAText,type:"other"}]]]),e.props.enableGlassDesign?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass({"flex flex-col mt-1 ml-4 gap-2 items-center":e.props.enableGlassDesign})},[createBaseVNode("div",_hoisted_13$g,[e.props.enableGlassDesign?(openBlock(),createElementBlock("div",_hoisted_14$g,[(b=e.props.bookFlight)!=null&&b.expressBooking&&((y=e.props.bookFlight)!=null&&y.expressBooking.turnOnExpressBooking)&&!e.isMobileViewport?(openBlock(),createElementBlock("div",_hoisted_15$f,[createBaseVNode("label",_hoisted_16$f,[withDirectives(createBaseVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=U=>t.expressBooking=U),type:"checkbox"},null,512),[[vModelCheckbox,t.expressBooking]]),o[3]||(o[3]=createBaseVNode("span",{class:"check-mark"},null,-1)),createBaseVNode("span",_hoisted_17$d,toDisplayString((S=(_=e.props.bookFlight)==null?void 0:_.expressBooking)==null?void 0:S.expressBookingCheckboxLabel),1)]),createVNode(l,{class:"icon fill-primary-blue-base w-4 ml-1","aria-hidden":"true"})])):createCommentVNode("",!0)])):createCommentVNode("",!0)])],2)):createCommentVNode("",!0)]),e.isMobileViewport?(openBlock(),createElementBlock("div",_hoisted_18$b,[withDirectives((openBlock(),createBlock(e.CTAButton,{class:"btn-add-flight",sizeType:"small",styleType:"secondary",iconStyleLeft:"solid",iconIdLeft:"circle-plus",ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.destinationList.length>=6,onClick:e.addDestination},{default:withCtx(()=>[createBaseVNode("span",_hoisted_19$9,toDisplayString(e.props.addAnotherFlightCTAText),1)]),_:1},8,["ctaSizing","disabled"])),[[u,[{clickName:e.props.addAnotherFlightCTAText,clickComponentType:"Button",componentName:"SubTabMultiCity",componentID:e.props.componentIdAA}
1171,{name:e.props.addAnotherFlightCTAText,type:"other"}]]])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_20$9,[createBaseVNode("div",_hoisted_21$9,[createBaseVNode("div",{class:normalizeClass([{"glass-design":e.props.enableGlassDesign},"w-6/10 lg:w-full component-wrapper ond-wrapper"])},[createVNode(e.PassengerAndCabinClass,{ref:"passengerAndCabinClassEl",labelText:(C=e.props.passengerSelection)==null?void 0:C.passengerAndCabinClassLabel,passengerLabel:(T=e.props.passengerSelection)==null?void 0:T.passengerLabel,adultLabel:(x=e.props.passengerSelection)==null?void 0:x.adultLabel,teenagerLabel:(k=e.props.passengerSelection)==null?void 0:k.teenagerLabel,childrenLabel:(E=e.props.passengerSelection)==null?void 0:E.childrenLabel,infantLabel:(w=e.props.passengerSelection)==null?void 0:w.infantLabel,cabinClassLabel:(D=e.props.passengerSelection)==null?void 0:D.cabinClassLabel,economyLabel:(N=e.props.passengerSelection)==null?void 0:N.economyLabel,businessLabel:(F=e.props.passengerSelection)==null?void 0:F.businessLabel,businessSuiteLabel:(V=e.props.passengerSelection)==null?void 0:V.businessSuiteLabel,isShowEconomyClass:!((A=e.props.passengerSelection)!=null&&A.isHideEconomy),isShowBusinessClass:!((M=e.props.passengerSelection)!=null&&M.isHideBusiness),isShowBusinessSuiteClass:!((O=e.props.passengerSelection)!=null&&O.isHideBusinessSuite),isCountryVariant:e.isCountryVariant,enableGlassDesign:e.props.enableGlassDesign,hidePromoCodeField:(R=e.props.promoCode)==null?void 0:R.hidePromoCodeField,promoCodeLabelPH:(I=e.props.promoCode)==null?void 0:I.promoCodeLabelPH,subTabType:"multicity"},{"after-passengers":withCtx(()=>{var U;return[createVNode(d,{class:"font-semibold",href:(U=e.props.passengerSelection)==null?void 0:U.groupBookingPageURL,showExternalLinkIcon:!0,target:"_blank"},{default:withCtx(()=>{var B;return[createTextVNode(toDisplayString(((B=e.props.passengerSelection)==null?void 0:B.moreThan9PassengerDescription)||t.$t("More than 9 passengers?")),1)]}),_:1},8,["href"])]}),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.passengerSelectionQuestion),1)]),_:1},8,["labelText","passengerLabel","adultLabel","teenagerLabel","childrenLabel","infantLabel","cabinClassLabel","economyLabel","businessLabel","businessSuiteLabel","isShowEconomyClass","isShowBusinessClass","isShowBusinessSuiteClass","isCountryVariant","enableGlassDesign","hidePromoCodeField","promoCodeL
1171abelPH"])],2),(j=e.props.promoCode)!=null&&j.hidePromoCodeField?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_22$8,[createVNode(e.TextField,{ref:"promoCodeTextField",modelValue:e.promoCodeValue,"onUpdate:modelValue":o[2]||(o[2]=U=>e.promoCodeValue=U),name:"promoCode",variant:"booking-widget",ariaLabel:(H=e.props.promoCode)==null?void 0:H.promoCodeLabel,placeholder:"E.g. 8990",allowedKeys:/[a-zA-Z0-9]/,validation:e.promoFieldValidationFunc},null,8,["modelValue","ariaLabel"])]))]),createBaseVNode("div",_hoisted_23$7,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.searchFlightCTAText),1)]),_:1},8,["sizeType","ctaSizing","disabled"])),[[u,[{clickName:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"SubTabMultiCity",componentID:e.props.componentIdAA},{name:e.props.searchFlightCTAText,type:"exit"}]]])])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_24$6,[createVNode(l,{class:"fill-primary-blue-base text-base"}),createBaseVNode("div",_hoisted_25$6,[createBaseVNode("p",null,toDisplayString(e.props.note),1)])])):createCommentVNode("",!0)]}),_:1},8,["data-use-theme"]),e.isLoading?(openBlock(),createBlock(Teleport,{key:0,to:"body"},[createBaseVNode("div",_hoisted_26$6,[createBaseVNode("div",_hoisted_27$5,[createVNode(e.AppSpinner)])])])):createCommentVNode("",!0)],2)}const SubTabMultiCity=_export_sfc(_sfc_main$1f,[["render",_sfc_render$1f],["__scopeId","data-v-ec95e767"],["__file","SubTabMultiCity.vue"]]),__default__$1d={name:"SubTabBonusSideTrip"},_sfc_main$1e=Object.assign(__default__$1d,{props:{subHeaderTabDescription:{type:String,default:""},subHeaderTabTooltipBody:{type:String,default:""},subHeaderTabTooltipLabel:{type:String,default:""},note:{type:String,default:""},searchFlightCTAText:{type:String,default:i18nGlobal.t("Search flight")},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null},subHeaderTooltipCTATextMobileLabel:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},passengerSelectionQuestion:{type:String,default:""},componentIdAA:{type:String,default:""},enableONDLocaleTranslation:{type:Boolean,default:!1},countryVariants:{type:Array,default:()=>[]},enableGlassDesign:{type:Boolean,default:!1}},emits:["save-search-data","show-bst-overlay","form-submission"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null),c=ref$1(null),u=ref$1(null),f=ref$1(null),m=(V,A)=>{console.log("✅ handleSubmitValid values = ",V);const M={isBSTTab:!0,dateRangeValueFrom:d.value,dateRangeValueTo:c.value,isOneWay:!c.value,ondValueFrom:u.value,ondValueTo:f.value,cabinClassValue:i.value.cabinClassValue,adultsCount:i.value.adults.count,teensCount:i.value.teens.count,childrenCount:i.value.children.count,infantsCount:i.value.infants.count};n("save-search-data",M),n("show-bst-overlay"),n("form-submission",M),S("bonus-side-trip",{ondValueFrom:M.ondValueFrom,ondValueTo:M.ondValueTo,dateRangeValueFrom:M.dateRangeValueFrom,dateRangeValueTo:M.dateRangeValueTo,isOneWay:M.isOneWay,adultsCount:M.adultsCount,teensCount:M.teensCount,childrenCount:M.childrenCount,infantsCount:M.infantsCount,cabinClassValue:M.cabinClassValue,payByEnrichPoints:!1})},b=({values:V,errors:A,results:M,evt:O})=>{console.log("❌ handleSubmitInvalid errors = ",A)},y=computed(()=>{var M;const V=a.value;if(!V)return!0;const A=(M=s.value)==null?void 0:M.isOneWay;return e.enableGlassDesign?!V.values.locationFrom||!V.values.locationTo||!d.value||!A&&!c.value||Object.keys(V.errors).length!==0:!V.values.locationFrom||!V.values.locationTo||!V.values.dateDeparture||!A&&!V.values.dateReturn||Object.keys(V.errors).length!==0}),_=V=>{u.value=V.ondValueFrom,f.value=V.ondValueTo,d.value=V.dateRangeValueFrom,c.value=V.dateRangeValueTo,i.value.setValues({adults:V.adultsCount,teens:V.teensCount,children:V.childrenCount,infants:V.infantsCount,cabinClass:V.cabinClassValue}),s.value.handleSetIsOneWay(!!V.isOneWay)},{commitDataToBSTOverlay:S,registerNotifier:C}=useBSTOverlayInterimData();C("bonus-side-trip",async V=>{u.value=V.ondValueFrom,f.value=V.ondValueTo,d.value=V.dateRangeValueFrom,c.value=V.dateRangeValueTo,i.value.setValues({adults:V.adultsCount,teens:V.teensCount,children:V.childrenCount,infants:V.infantsCount,cabinClass:V.cabinClassValue}),s.value.handleSetIsOneWay(!!V.isOneWay)}),useSyncPassengerDetails(i);const{registerQueryChange:T}=useBookingWidgetUrlQuery({mainTabName:"flight-search-tab",subTabName:"bonus-side-trip"});T(async V=>{var A;V&&(u.value=V.locationFrom,f.value=V.locationTo,nextTick$1().then(async()=>{var M,O;await((M=l.value)==null?void 0:M.updateFromValue()),(O=l.value)==null||O.updateToValue()}),d.value=V.dateDeparture??"",c.value=V.dateReturn??"",await nextTick$1(),(A=i.value)==null||A.setValues({...V.adultsCount?{adults:parseInt(V.adultsCount)}:null,...V.teensCount?{teens:parseInt(V.teensCount)}:null,...V.childrenCount?{children:parseInt(V.childrenCount)}:null,...V.infantsCount?{infants:parseInt(V.infantsCount)}:null,...V.cabinClass?{cabinClass:parseInt(V.cabinClass)}:null}),V.isOneWay==="true"&&s.value.handleSetIsOneWay(!!V.isOneWay))});const x=ref$1(!1);watch([u,f],V=>{u.value&&f.value&&(dayjs(d.value).isBefore(k.value)&&(d.value=null),dayjs(c.value).isAfter(E.value)&&(c.value=null)),x.value=useIsCountryVariant(e.countryVariants,{origin:u.value,destination:f.value}),!x.value&&i.value.setValues({teens:0})});const k=computed(()=>{var O;let V=null;if(!f.value)return V;const A=dayjs(),M=(O=f.value)==null?void 0:O.travelPeriodFrom;return M?dayjs(M).isBefore(A)?"t":M:V}),E=computed(()=>{var R;let V="t+360d";if(!f.value)return V;const A=(R=f.value)==null?void 0:R.travelPeriodTo;if(!A)return V;const M=dayjs().add(365,"day");return(dayjs(A).isBefore(M)?dayjs(A):M).format("YYYY-MM-DD")});o({restorePastSearch:_});const w=V=>{var A,M;V&&((M=(A=s.value)==null?void 0:A.inputElFrom)==null||M.focus())},D=computed(()=>{var V,A,M,O;return e.ondSelection?{NEAR_YOU:(V=e.ondSelection)==null?void 0:V.nearYouLabel,POPULAR_DEST:(A=e.ondSelection)==null?void 0:A.popularDestinationsLabel,WITH_MH:(M=e.ondSelection)==null?void 0:M.withMalaysiaAirlinesLabel,CODESHARE:(O=e.ondSelection)==null?void 0:O.withCodeShareAndPartnerNetworkLabel}:null}),N=window.siteName,F={props:e,emit:n,formWrapper:a,passengerAndCabinClassEl:i,dateRangePickerEl:s,ondPickerEl:l,dateRangeValueFrom:d,dateRangeValueTo:c,ondValueFrom:u,ondValueTo:f,handleSubmitValid:m,handleSubmitInvalid:b,isBtnSubmitDisabled:y,restorePastSearch:_,commitDataToBSTOverlay:S,registerNotifier:C,registerQueryChange:T,isCountryVariant:x,computedDatePickerMinDate:k,computedDatePickerMaxDate:E,focusToDatePicker:w,groupLabelsOverwrite:D,siteName:N,get dayjs(){return dayjs},Tooltip,CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,FormWrapper,get isMobileViewport(){return isMobileViewport}
1171,PassengerAndCabinClass:PassengerAndCabinClass$1,get useBSTOverlayInterimData(){return useBSTOverlayInterimData},get i18nGlobal(){return i18nGlobal},get waitFor(){return waitFor},get useIsCountryVariant(){return useIsCountryVariant},get useSyncPassengerDetails(){return useSyncPassengerDetails},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery}};return Object.defineProperty(F,"__isScriptSetup",{enumerable:!1,value:!0}),F}}),_hoisted_1$1g={class:"SubTabBonusSideTrip"},_hoisted_2$17={key:0,class:"mb-5"},_hoisted_3$J={class:"flex items-center"},_hoisted_4$C={class:"flex gap-6 xl:gap-3 lg:flex-col field-wrapper"},_hoisted_5$z={class:"w-6/10 lg:w-full component-wrapper"},_hoisted_6$w={class:"w-4/10 lg:w-full component-wrapper"},_hoisted_7$w={class:"flex mt-6 gap-6 md:flex-col"},_hoisted_8$u={class:"flex flex-grow gap-6 md:flex-col"},_hoisted_9$r={class:"w-6/10 lg:w-full component-wrapper"},_hoisted_10$j={class:"ml-auto md:ml-0 cta-wrapper"},_hoisted_11$i={key:2,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_12$h={class:"text-sm"};function _sfc_render$1e(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=resolveComponent("AppHyperlink"),l=__unplugin_components_1$c,d=resolveDirective("html-sanitize"),c=resolveDirective("aa");return openBlock(),createElementBlock("div",_hoisted_1$1g,[createVNode(e.FormWrapper,{ref:"formWrapper","data-use-theme":e.siteName,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:u})=>{var f,m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W;return[e.props.subHeaderTabDescription?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$17,null,512)),[[d,e.props.subHeaderTabDescription]]):createCommentVNode("",!0),e.props.subHeaderTabTooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$J,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.subHeaderTabTooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipBody),1)]),"mobile-cta-label":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTooltipCTATextMobileLabel),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$C,[createBaseVNode("div",_hoisted_5$z,[createVNode(e.ONDPicker,{ref:"ondPickerEl",modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[
11710]||(o[0]=J=>e.ondValueFrom=J),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":[o[1]||(o[1]=J=>e.ondValueTo=J),e.focusToDatePicker],nameFrom:"locationFrom",nameTo:"locationTo",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(f=e.props.ondSelection)==null?void 0:f.fromSearchErrorMessage,requiredErrorMsgTo:(m=e.props.ondSelection)==null?void 0:m.toSearchErrorMessage,labelTextFrom:(b=e.props.ondSelection)==null?void 0:b.fromLabel,labelTextTo:(y=e.props.ondSelection)==null?void 0:y.toLabel,placeHolderFrom:(_=e.props.ondSelection)==null?void 0:_.placeHolderFrom,placeHolderTo:(S=e.props.ondSelection)==null?void 0:S.placeHolderTo,noResultsText:(C=e.props.ondSelection)==null?void 0:C.noResultMessage,enableONDLocaleTranslation:e.props.enableONDLocaleTranslation,ondListIdentifier:"FLIGHT_SEARCH_BST",groupLabelsOverwrite:e.groupLabelsOverwrite,enableGlassDesign:e.props.enableGlassDesign},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","placeHolderFrom","placeHolderTo","noResultsText","enableONDLocaleTranslation","groupLabelsOverwrite","enableGlassDesign"])]),createBaseVNode("div",_hoisted_6$w,[createVNode(e.DateRangePicker,{ref:"dateRangePickerEl",modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[2]||(o[2]=J=>e.dateRangeValueFrom=J),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[3]||(o[3]=J=>e.dateRangeValueTo=J),textFieldAttrsFrom:{ariaLabel:((T=e.props.datePicker)==null?void 0:T.departureDateLabel)||e.i18nGlobal.t("Depart"),placeholder:e.i18nGlobal.t("Select a date")},textFieldAttrsTo:{ariaLabel:((x=e.props.datePicker)==null?void 0:x.returnDateLabel)||e.i18nGlobal.t("Return"),placeholder:e.i18nGlobal.t("Select a date")},minDate:e.computedDatePickerMinDate,maxDate:e.computedDatePickerMaxDate,disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(k=e.props.datePicker)==null?void 0:k.invalidDateErrorMessage,requiredErrorMsgTo:(E=e.props.datePicker)==null?void 0:E.invalidDateErrorMessage,labelReset:((w=e.props.datePicker)==null?void 0:w.resetButtonCTAText)??t.$t("Reset"),labelDone:((D=e.props.datePicker)==null?void 0:D.doneCTAText)??t.$t("Done"),labelOneWay:((N=e.props.datePicker)==null?void 0:N.oneWayCTAText)??t.$t("One-way"),enableGlassDesign:e.props.enableGlassDesign,selectDateLabel:(F=e.props.datePicker)==null?void 0:F.selectDateLabel},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.datePickerQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","textFieldAttrsFrom","textFieldAttrsTo","minDate","maxDate","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","enableGlassDesign","selectDateLabel"])])]),createBaseVNode("div",_hoisted_7$w,[createBaseVNode("div",_hoisted_8$u,[createBaseVNode("div",_hoisted_9$r,[createVNode(e.PassengerAndCabinClass,{ref:"passengerAndCabinClassEl",labelText:(V=e.props.passengerSelection)==null?void 0:V.passengerAndCabinClassLabel,passengerLabel:(A=e.props.passengerSelection)==null?void 0:A.passengerLabel,adultLabel:(M=e.props.passengerSelection)==null?void 0:M.adultLabel,teenagerLabel:(O=e.props.passengerSelection)==null?void 0:O.teenagerLabel,childrenLabel:(R=e.props.passengerSelection)==null?void 0:R.childrenLabel,infantLabel:(I=e.props.passengerSelection)==null?void 0:I.infantLabel,cabinClassLabel:(j=e.props.passengerSelection)==null?void 0:j.cabinClassLabel,economyLabel:(H=e.props.passengerSelection)==null?void 0:H.economyLabel,businessLabel:(U=e.props.passengerSelection)==null?void 0:U.businessLabel,businessSuiteLabel:(B=e.props.passengerSelection)==null?void 0:B.businessSuiteLabel,isShowEconomyClass:!((L=e.props.passengerSelection)!=null&&L.isHideEconomy),isShowBusinessClass:!((z=e.props.passengerSelection)!=null&&z.isHideBusiness),isShowBusinessSuiteClass:!((W=e.props.passengerSelection)!=null&&W.isHideBusinessSuite),enableGlassDesign:e.props.enableGlassDesign,isCountryVariant:e.useIsCountryVariant(e.props.countryVariants,{origin:e.ondValueFrom,destination:e.ondValueTo})},{"after-passengers":withCtx(()=>{var J;return[createVNode(s,{class:"font-semibold",href:(J=e.props.passengerSelection)==null?void 0:J.groupBookingPageURL,showExternalLinkIcon:!0,target:"_blank"},{default:withCtx(()=>{var te;return[createTextVNode(toDisplayString(((te=e.props.passengerSelection)==null?void 0:te.moreThan9PassengerDescription)||t.$t("More than 9 passengers?")),1)]}),_:1},8,["href"])]}),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.passengerSelectionQuestion),1)]),_:1},8,["labelText","passengerLabel","adultLabel","teenagerLabel","childrenLabel","infantLabel","cabinClassLabel","economyLabel","businessLabel","businessSuiteLabel","isShowEconomyClass","isShowBusinessClass","isShowBusinessSuiteClass","enableGlassDesign","isCountryVariant"])])]),createBaseVNode("div",_hoisted_10$j,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,
1171ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.searchFlightCTAText),1)]),_:1},8,["sizeType","ctaSizing","disabled"])),[[c,[{clickName:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"SubTabBonusSideTrip",componentID:e.props.componentIdAA},{name:e.props.searchFlightCTAText,type:"exit"}]]])])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_11$i,[createVNode(l,{class:"fill-primary-blue-base text-base"}),createBaseVNode("div",_hoisted_12$h,[createBaseVNode("p",null,toDisplayString(e.props.note),1)])])):createCommentVNode("",!0)]}),_:1},8,["data-use-theme"])])}const SubTabBonusSideTrip=_export_sfc(_sfc_main$1e,[["render",_sfc_render$1e],["__scopeId","data-v-791417a5"],["__file","SubTabBonusSideTrip.vue"]]),__default__$1c={name:"SubTabTermsConditions"},_sfc_main$1d=Object.assign(__default__$1c,{props:{content:{type:String,default:""}},setup(t,{expose:o}){o();const e={props:t};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}}),_hoisted_1$1f={class:"SubTabTermsConditions styled-scrollbar overflow-y-auto mt-6 tnc-content"},_hoisted_2$16={class:"pr-4"};function _sfc_render$1d(t,o,r,e,n,a){const i=resolveDirective("html-sanitize");return openBlock(),createElementBlock("div",_hoisted_1$1f,[withDirectives(createBaseVNode("div",_hoisted_2$16,null,512),[[i,e.props.content]])])}const SubTabTermsConditions=_export_sfc(_sfc_main$1d,[["render",_sfc_render$1d],["__scopeId","data-v-f12e04a6"],["__file","SubTabTermsConditions.vue"]]),_hoisted_1$1e={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function render$2(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$1e,o[0]||(o[0]=[createBaseVNode("path",{d:"M160 256C160 202.1 202.1 160 256 160C309 160 352 202.1 352 256C352 309 309 352 256 352C202.1 352 160 309 160 256zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"},null,-1)]))}const __unplugin_components_1=markRaw({name:"far-circle-dot",render:render$2}),__default__$1b={name:"RadioButton",inheritAttrs:!1},_sfc_main$1c=Object.assign(__default__$1b,{props:{name:{type:String,default:""},modelValue:{type:String,default:null},defaultValue:{type:String,default:null},ariaLabel:{type:String,default:""},required:{type:Boolean,default:!1},requiredErrorMsg:{type:String,default:i18nGlobal.t("This field is required")},items:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},rootAttrs:{type:Object,default:()=>({})},layoutAttrs:{type:Object,default:()=>({})},inputAttrs:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=window.siteName,i=ref$1(null),s=computed(()=>e.required?yup.string().required(e.requiredErrorMsg):null),l=()=>{var C;(C=i.value)==null||C.focus()},{onInput:d,meta:c,errors:u,hasValidationError:f,internalValue:m}=useFieldValidation({name:toRef(e,"name"),validation:s,modelValue:toRef(e,"modelValue")},{initialValue:e.modelValue??e.defaultValue??""}),b=e.name??Math.random()*10,{errorMsgId:y}=useGenerateIdentifier(b),_=computed(()=>e.items.map(C=>({...C,isPressed:ref$1(!1)})));useFormAccordionStatus(e.name,{required:e.required,value:computed(()=>m.value),error:computed(()=>f.value)}),o({focus:l});const S={props:e,emit:n,siteName:a,inputEl:i,validation:s,focus:l,onInput:d,meta:c,errors:u,hasValidationError:f,internalValue:m,componentIdentifier:b,errorMsgId:y,radioItems:_,get yup(){return yup},get useFieldValidation(){return useFieldValidation},get useGenerateIdentifier(){return useGenerateIdentifier},get i18nGlobal(){return i18nGlobal},get useFormAccordionStatus(){return useFormAccordionStatus}};return Object.defineProperty(S,"__isScriptSetup",{enumerable:!1,value:!0}),S}}),_hoisted_1$1d=["data-use-theme"],_hoisted_2$15=["onMousedown","onKeydown","onMouseup","onKeyup","onMouseout"],_hoisted_3$I=["required","name","disabled","checked","aria-label","onChange"],_hoisted_4$B={class:"icon-uncheck","aria-hidden":"true"},_hoisted_5$y={class:"icon-check","aria-hidden":"true"},_hoisted_6$v={class:"label ml-2 rtl:ml-0 rtl:mr-2 empty:ml-0 select-none"},_hoisted_7$v={class:"short-description-wrapper w-full text-sm empty:hidden"},_hoisted_8$t=["id"],_hoisted_9$q={class:""};function _sfc_render$1c(t,o,r,e,n,a){const i=__unplugin_components_0$3,s=__unplugin_components_1,l=resolveDirective("html-sanitize");return openBlock(),createElementBlock("div",mergeProps({class:["RadioButton",[{"is-disabled":e.props.disabled,"has-validation-error":e.hasValidationError&&e.meta.touched}]],"data-use-theme":e.siteName},e.props.rootAttrs),[createBaseVNode("div",mergeProps({class:"grid gap-4"},e.props.layoutAttrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.radioItems,(d,c)=>(openBlock(),createElementBlock("label",mergeProps({key:c,class:"inline-flex cursor-pointer relative",ref_for:!0}
1171,t.$attrs,{class:{"is-mouse-down":d.isPressed.value&&!e.props.disabled},onMousedown:u=>d.isPressed.value=!0,onKeydown:withKeys(u=>d.isPressed.value=!0,["space"]),onMouseup:u=>d.isPressed.value=!1,onKeyup:withKeys(u=>d.isPressed.value=!1,["space"]),onMouseout:u=>d.isPressed.value=!1}),[createBaseVNode("input",mergeProps({ref_for:!0,ref:"inputEl",class:"input",type:"radio",required:e.props.required,name:e.props.name,disabled:e.props.disabled,checked:e.internalValue===d.value,"aria-label":e.props.ariaLabel},e.props.inputAttrs,{onChange:()=>e.onInput({target:{value:d.value}})}),null,16,_hoisted_3$I),o[0]||(o[0]=createBaseVNode("div",{class:"indicator-circle","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_4$B,[createVNode(i)]),createBaseVNode("span",_hoisted_5$y,[createVNode(s)]),createBaseVNode("div",_hoisted_6$v,[renderSlot(t.$slots,"default",mergeProps({ref_for:!0},{item:d}),()=>[withDirectives(createBaseVNode("span",null,null,512),[[l,d.text]])],!0)])],16,_hoisted_2$15))),128))],16),createBaseVNode("div",_hoisted_7$v,[renderSlot(t.$slots,"short-description",{},void 0,!0)]),createBaseVNode("div",{id:e.errorMsgId,class:"error-msg-container leading-tight text-semantic-red-base text-sm empty:hidden"},[e.hasValidationError&&e.meta.touched?renderSlot(t.$slots,"error-messages",normalizeProps(mergeProps({key:0},{meta:e.meta,errors:e.errors,internalValue:e.internalValue})),()=>[createBaseVNode("span",_hoisted_9$q,toDisplayString(e.errors[0]),1)],!0):createCommentVNode("",!0)],8,_hoisted_8$t)],16,_hoisted_1$1d)}const RadioButton=_export_sfc(_sfc_main$1c,[["render",_sfc_render$1c],["__scopeId","data-v-0469d6ca"],["__file","RadioButton.vue"]]),__default__$1a={name:"SubTabRedeemFlight"},_sfc_main$1b=Object.assign(__default__$1a,{props:{hideTodayDateIndicator:{type:Boolean,default:!1},owGeneralDetails:{type:Object,default:null},owOndSelection:{type:Object,default:null},owPassengerSelection:{type:Object,default:null},owDatePicker:{type:Object,default:null},owPromoCode:{type:Object,default:null},owEnrichAlwaysOn:{type:Object,default:null},mhGeneralDetails:{type:Object,default:null},mhOndSelection:{type:Object,default:null},mhPassengerSelection:{type:Object,default:null},mhDatePicker:{type:Object,default:null},mhPromoCode:{type:Object,default:null},mhEnrichAlwaysOn:{type:Object,default:null},disableGeolocation:{type:Boolean,default:!1},subHeaderTooltipCTATextMobileLabel:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},disableCalendarPickerAnimation:{type:Boolean,default:!1},passengerSelectionQuestion:{type:String,default:""},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},enableMattaToggleButton:{type:Boolean,default:!1},mattaToggleButtonLabel:{type:String,default:""},enableONDLocaleTranslation:{type:Boolean,default:!1},countryVariants:{type:Array,default:()=>[]},payByEnrichPoints:{type:Boolean,default:!1},cabinClassMilesOWList:{type:Array,default:()=>[]},enableGlassDesign:{type:Boolean,default:!1},oneWorldLabel:{type:String,default:""},malaysiaAirlinesLabel:{type:String,default:""}},emits:["save-search-data","show-bst-overlay","form-submission","update:active-sub-tab"],setup(t,{expose:o,emit:r}){const e=t,n=r,{isLoggedIn:a}=useAuthStore(),i=ref$1(null),s=ref$1("redeem-flight"),l=ref$1(null),d=ref$1(null),c=computed(()=>i.value==="malaysia-airlines"?l.value:d.value),u=async E=>{var w;i.value=E.redeemFlightType,await((w=c.value)==null?void 0:w.restorePastSearch(E))},f=async E=>{var w;(w=c.value)==null||w.updateLocationFromTo(searchData)},m=async E=>{var w;(w=c.value)==null||w.isExpanded(searchData)},b=E=>{E.activeOption=i.value,n("form-submission",E)},y=computed(()=>_.value.find(E=>E.value===i.value)||{}),_=computed(()=>{var w,D,N,F,V,A;return[{key:isMobileViewport.value?(w=e.mhGeneralDetails)==null?void 0:w.isHideInMobile:(D=e.mhGeneralDetails)==null?void 0:D.isHideInDesktop,text:(N=e.mhGeneralDetails)==null?void 0:N.redeemFlightMalaysiaAirlinesLabel,value:"malaysia-airlines"},{key:isMobileViewport.value?(F=e.owGeneralDetails)==null?void 0:F.isHideInMobile:(V=e.owGeneralDetails)==null?void 0:V.isHideInDesktop,text:(A=e.owGeneralDetails)==null?void 0:A.redeemFlightOneWorldLabel,value:"ow-redemption"}].filter(M=>!M.key)}),S=E=>{if(!E)return;const w=E.subtab??"",D=E.suboption??"";
1171w&&(s.value=w,n("update:active-sub-tab",w)),D&&(i.value=["malaysia-airlines","ow-redemption"].includes(D)?E.suboption:_.value.length>0?_.value[0].value:"")},C=(E,w)=>{const{registerQueryChange:D}=useBookingWidgetUrlQuery({mainTabName:E});D(w)};C("flight-search-tab",S),C("enrich-flight-search",S);const T=E=>{pushAA_click([{clickName:i.value,clickComponentType:"Radio Button",componentName:"Redeem Flight Search",componentID:e.componentIdAA},{name:i.value,type:"other"}])},x=()=>{pushAA_flightSearchStart(`redeem-flight-${i.value}`)};onMounted(()=>{nextTick$1(()=>{if(!i.value){const E=_.value;E.length>0&&(i.value=E[0].value)}})}),o({restorePastSearch:u,updateLocationFromTo:f,isExpanded:m});const k={props:e,emit:n,isLoggedIn:a,activeSubOption:i,activeSubTab:s,subTabMalaysiaRef:l,subTabOneWorldRef:d,currentSubTabRef:c,restorePastSearch:u,updateLocationFromTo:f,isExpanded:m,handleFormSubmission:b,selectedFlightOption:y,getRedeemTabFlightOptions:_,handleQueryChange:S,setupTabWatcher:C,handleRadioChange:T,triggerFlightStartEvent:x,RadioButton,SubTabBookFlight:SubTabBookFlight$1,get i18nGlobal(){return i18nGlobal},get pushAA_flightSearchStart(){return pushAA_flightSearchStart},get pushAA_flightSearchEnd(){return pushAA_flightSearchEnd},get pushAA_click(){return pushAA_click},AppSpinner,get useAuthStore(){return useAuthStore},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(k,"__isScriptSetup",{enumerable:!1,value:!0}),k}}),_hoisted_1$1c={key:0,class:"title-editor-mode"},_hoisted_2$14={class:"flex space-x-4"},_hoisted_3$H={key:0},_hoisted_4$A={class:"generic-backdrop !bg-white/80"},_hoisted_5$x={class:"flex items-center justify-center h-full w-full"};function _sfc_render$1b(t,o,r,e,n,a){var l,d,c,u,f,m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W;const i=__unplugin_components_0$9,s=resolveDirective("focus-within");return withDirectives((openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["SubTabRedeemFlight flight-search-subcomponent",{isEditorMode:t.isEditorMode}]),tabindex:"-1",onFocusWithin:o[3]||(o[3]=(...J)=>t.handleRootFocusWithin&&t.handleRootFocusWithin(...J)),onBlurWithin:o[4]||(o[4]=(...J)=>t.handleRootBlurWithin&&t.handleRootBlurWithin(...J))},[createBaseVNode("div",null,[t.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_1$1c,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[5]||(o[5]=createBaseVNode("span",null,"Booking Widget: Flight Search",-1))])):createCommentVNode("",!0),createBaseVNode("div",null,[createBaseVNode("div",_hoisted_2$14,[createVNode(e.RadioButton,{modelValue:e.activeSubOption,"onUpdate:modelValue":[o[0]||(o[0]=J=>e.activeSubOption=J),e.handleRadioChange],name:"redeem-flight-options",items:e.getRedeemTabFlightOptions,layoutAttrs:{class:"!flex"},class:"redeemOptions"},null,8,["modelValue","items"])]),e.getRedeemTabFlightOptions.length>0?(openBlock(),createElementBlock("div",_hoisted_3$H,[e.getRedeemTabFlightOptions.some(J=>J.value==="malaysia-airlines")?withDirectives((openBlock(),createBlock(e.SubTabBookFlight,{key:0,ref:"subTabMalaysiaRef",activeSubOption:e.selectedFlightOption,class:"pt-6",payByEnrichPoints:e.props.payByEnrichPoints,hideTodayDateIndicator:e.props.hideTodayDateIndicator,subHeaderTabDescription:(l=e.props.mhGeneralDetails)==null?void 0:l.subHeaderTabDescription,subHeaderTabTooltipBody:(d=e.props.mhGeneralDetails)==null?void 0:d.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(c=e.props.mhGeneralDetails)==null?void 0:c.subHeaderTabTooltipLabel,note:(u=e.props.mhGeneralDetails)==null?void 0:u.note,searchFlightCTAText:(f=e.props.mhGeneralDetails)==null?void 0:f.searchFlightCTAText,ondSelection:e.props.mhOndSelection,additionalONDFilter:(m=e.props.mhGeneralDetails)==null?void 0:m.ondFilter,datePicker:e.props.mhDatePicker,promoCodeLabel:(b=e.props.mhPromoCode)==null?void 0:b.promoCodeL
1171abel,promoCodeErrorMessage:(y=e.props.mhPromoCode)==null?void 0:y.promoCodeErrorMessage,supersedePromoCode:(_=e.props.mhPromoCode)==null?void 0:_.supersedePromoCode,passengerSelection:e.props.mhPassengerSelection,subHeaderTooltipCTATextMobileLabel:e.props.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:e.props.fromQuestionMobile,toQuestionMobile:e.props.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:e.props.enableMattaToggleButton,mattaToggleButtonLabel:e.props.mattaToggleButtonLabel,hidePromoCodeField:(S=e.props.mhPromoCode)==null?void 0:S.hidePromoCodeField,enrichAlwaysOn:(C=e.props.mhEnrichAlwaysOn)==null?void 0:C.enableFunctionality,enablePostMattaCampaign:(T=e.props.mhEnrichAlwaysOn)==null?void 0:T.enablePostMattaCampaign,autoApplyEnrichAlwaysOn:(x=e.props.mhEnrichAlwaysOn)==null?void 0:x.autoApplyEnrichAlwaysOn,nonLoggedInMessageNote:(k=e.props.mhEnrichAlwaysOn)==null?void 0:k.nonLoggedInMessageNote,loggedInMessageNote:(E=e.props.mhEnrichAlwaysOn)==null?void 0:E.loggedInMessageNote,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:e.props.disableGeolocation,enableONDLocaleTranslation:e.props.isEnableLocale,cabinClassMilesOWList:e.props.cabinClassMilesOWList,tabName:"redeem-flight",countryVariants:e.props.countryVariants,mHcustomOndUrl:(w=e.props.mhGeneralDetails)==null?void 0:w.customONDURLPath,enableGlassDesign:e.props.enableGlassDesign,isIgnoreScroll:!0,onSaveSearchData:o[1]||(o[1]=J=>t.$emit("save-search-data",{isBSTTab:!1,...J})),onFormSubmission:e.handleFormSubmission,"onOn:trigger":e.triggerFlightStartEvent},null,8,["activeSubOption","payByEnrichPoints","hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","additionalONDFilter","datePicker","promoCodeL
1171abel","promoCodeErrorMessage","supersedePromoCode","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","hidePromoCodeField","enrichAlwaysOn","enablePostMattaCampaign","autoApplyEnrichAlwaysOn","nonLoggedInMessageNote","loggedInMessageNote","enrichAlwaysOnCountriesData","disableGeolocation","enableONDLocaleTranslation","cabinClassMilesOWList","countryVariants","mHcustomOndUrl","enableGlassDesign"])),[[vShow,e.activeSubOption==="malaysia-airlines"]]):createCommentVNode("",!0),e.getRedeemTabFlightOptions.some(J=>J.value==="ow-redemption")?withDirectives((openBlock(),createBlock(e.SubTabBookFlight,{key:1,ref:"subTabOneWorldRef",activeSubOption:e.selectedFlightOption,class:"pt-6",payByEnrichPoints:e.props.payByEnrichPoints,hideTodayDateIndicator:e.props.hideTodayDateIndicator,subHeaderTabDescription:(D=e.props.owGeneralDetails)==null?void 0:D.subHeaderTabDescription,subHeaderTabTooltipBody:(N=e.props.owGeneralDetails)==null?void 0:N.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(F=e.props.owGeneralDetails)==null?void 0:F.subHeaderTabTooltipLabel,note:(V=e.props.owGeneralDetails)==null?void 0:V.note,searchFlightCTAText:(A=e.props.owGeneralDetails)==null?void 0:A.searchFlightCTAText,ondSelection:e.props.owOndSelection,additionalONDFilter:(M=e.props.owGeneralDetails)==null?void 0:M.ondFilter,datePicker:e.props.owDatePicker,promoCodeLabel:(O=e.props.owPromoCode)==null?void 0:O.promoCodeL
1171abel,promoCodeErrorMessage:(R=e.props.owPromoCode)==null?void 0:R.promoCodeErrorMessage,supersedePromoCode:(I=e.props.owPromoCode)==null?void 0:I.supersedePromoCode,passengerSelection:e.props.owPassengerSelection,subHeaderTooltipCTATextMobileLabel:e.props.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:e.props.fromQuestionMobile,toQuestionMobile:e.props.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:e.props.enableMattaToggleButton,mattaToggleButtonLabel:e.props.mattaToggleButtonLabel,hidePromoCodeField:(j=e.props.owPromoCode)==null?void 0:j.hidePromoCodeField,enrichAlwaysOn:(H=e.props.owEnrichAlwaysOn)==null?void 0:H.enableFunctionality,enablePostMattaCampaign:(U=e.props.owEnrichAlwaysOn)==null?void 0:U.enablePostMattaCampaign,autoApplyEnrichAlwaysOn:(B=e.props.owEnrichAlwaysOn)==null?void 0:B.autoApplyEnrichAlwaysOn,nonLoggedInMessageNote:(L=e.props.owEnrichAlwaysOn)==null?void 0:L.nonLoggedInMessageNote,loggedInMessageNote:(z=e.props.owEnrichAlwaysOn)==null?void 0:z.loggedInMessageNote,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:e.props.disableGeolocation,enableONDLocaleTranslation:e.props.isEnableLocale,tabName:"redeem-flight",countryVariants:e.props.countryVariants,cabinClassMilesOWList:e.props.cabinClassMilesOWList,oWcustomOndUrl:(W=e.props.owGeneralDetails)==null?void 0:W.customONDURLPath,isIgnoreScroll:!0,enableGlassDesign:e.props.enableGlassDesign,onSaveSearchData:o[2]||(o[2]=J=>t.$emit("save-search-data",{isBSTTab:!1,...J})),onFormSubmission:e.handleFormSubmission,"onOn:trigger":e.triggerFlightStartEvent},null,8,["activeSubOption","payByEnrichPoints","hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","additionalONDFilter","datePicker","promoCodeL
1171abel","promoCodeErrorMessage","supersedePromoCode","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","hidePromoCodeField","enrichAlwaysOn","enablePostMattaCampaign","autoApplyEnrichAlwaysOn","nonLoggedInMessageNote","loggedInMessageNote","enrichAlwaysOnCountriesData","disableGeolocation","enableONDLocaleTranslation","countryVariants","cabinClassMilesOWList","oWcustomOndUrl","enableGlassDesign"])),[[vShow,e.activeSubOption==="ow-redemption"]]):createCommentVNode("",!0)])):createCommentVNode("",!0)])]),t.isLoading?(openBlock(),createBlock(Teleport,{key:0,to:"body"},[createBaseVNode("div",_hoisted_4$A,[createBaseVNode("div",_hoisted_5$x,[createVNode(e.AppSpinner)])])])):createCommentVNode("",!0)],34)),[[s]])}const SubTabRedeemFlight=_export_sfc(_sfc_main$1b,[["render",_sfc_render$1b],["__scopeId","data-v-5a58bfe2"],["__file","SubTabRedeemFlight.vue"]]),__default__$19={name:"FlightSearch",inheritAttrs:!1},_sfc_main$1a=Object.assign(__default__$19,{props:{bonusSideTrip:{type:Object,default:null},bookFlight:{type:Object,default:null},termsAndConditionsTab:{type:Object,default:null},labels:{type:Object,default:null},mobileAddOns:{type:Object,default:null},multiCity:{type:Object,default:null},isInBookingWidget:{type:Boolean,default:!1},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},signUpApiUrl:{type:String,default:""},countryVariants:{type:Array,default:()=>[]},redeemFlight:{type:Object,default:null},redeemFlightOW:{type:Object,default:null},dspBookingRedirector:{type:Object,default:null},dspBookingApiUrl:{type:String,default:""},isHideContinueYourSearchSection:{type:Boolean,default:!1},enrichAlwaysOnCountriesData:{type:Array,default:()=>[]},cabinClassMilesOWList:{type:Array,default:()=>[]},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:["update:active-sub-tab"],setup(t,{expose:o,emit:r}){var ye,Xe;o();const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null),c=window.siteName==="enrich-portal",u=useRoute$1(),f=ref$1(null),m=ref$1(!1),b=ref$1(!1),y=ref$1(!1),_=ref$1(((Xe=(ye=e==null?void 0:e.bookFlight)==null?void 0:ye.promoCode)==null?void 0:Xe.promoCodeLabelPH)??null),S=ref$1(!1),{isMobileSubpageVisible:C}=useBookingWidgetSubpage({hashKey:["flight-search","flight-search-tab"],rootEl:a}),{isEditorMode:T,bookingWidgetSubTab:x}=useGlobalAEMState$1(),k=ref$1("book-flight"),E=ref$1("book-flight"),w=ref$1(!1),D=ref$1(!1),N=ref$1(!1),F=ref$1(!1),V=ref$1(!1),A=ref$1(!1),M=ref$1(!1),O=ref$1(null);onMounted(()=>{var ke;const De=getAncestorBySelector(a.value,".SwitchTabContent");onClickOutside(De==null?void 0:De[0],ze=>{w.value&&te()}),(ke=u.query)!=null&&ke.cid&&(f.value=u.query.cid,u.query.cid=decodeURI(u.query.cid),document.cookie=`portalfacts_cid=${u.query.cid}`),O.value=getCookie("mobileProperties")});const R=()=>{w.value&&J()},I=()=>{},j=ref$1([]),H=ref$1(!1),U=useEventBus("booking-widget"),{isLoggedIn:B,isSapphireCookiePresent:L}=useAuthStore();U.on((De,ke)=>{switch(De){case"sticky:sticked":{w.value=!0,z(ke);break}case"sticky:unsticked":{w.value=!1,W(ke);break}case"booking-widget-ond-selected":{M.value=!0,console.log(M);break}}});const z=async De=>{E.value=k.value,De.resizeObserver.unobserve(De.triggerEl),te({skipAnimation:!0});const{paused:ke}=useHeaderScroll();ke.value=!0,await sleep(200),De.triggerEl.classList.remove("pre-stick"),gsapWithCSS.fromTo(De.triggerEl,{y:"-100%"},{y:0,duration:.3,overwrite:!0,onComplete:()=>{ke.value=!1}})},W=async De=>{k.value=E.value,J({skipAnimation:!0}),await nextTick$1(),await sleep(200),De.resizeObserver.observe(De.triggerEl)},J=({skipAnimation:De=!1}={})=>{const ke=a.value.querySelector(".VueTabs"),ze=ke.querySelector(".SubTabBookFlight .TransitionHeight"),qe=a.value.querySelector(".continue-your-search-container");
1171gsapWithCSS.to(ze,{duration:De?0:.2,height:"auto",onComplete:()=>{gsapWithCSS.set(ze,{overflow:"visible"})},overwrite:!0}),qe&&gsapWithCSS.to(qe,{duration:De?0:.2,height:"auto",overwrite:!0}),gsapWithCSS.to(ke,{duration:De?0:.2,marginTop:0,overwrite:!0})},te=async({skipAnimation:De=!1}={})=>{const ze=a.value.querySelector(".VueTabs"),pt=32+ze.querySelector(".VueTabs .VueSwiper").offsetHeight,Ne=ze.querySelector(".SubTabBookFlight .TransitionHeight"),Je=a.value.querySelector(".continue-your-search-container");k.value="book-flight",gsapWithCSS.set(Ne,{overflow:"hidden"}),gsapWithCSS.to(Ne,{duration:De?0:.2,height:0,overwrite:!0}),Je&&gsapWithCSS.to(Je,{duration:De?0:.2,height:0,overwrite:!0}),gsapWithCSS.to(ze,{duration:De?0:.2,marginTop:`-${pt}`,overwrite:!0})},re=ref$1(null),oe=De=>{var ke;(ke=re.value)==null||ke.saveSearch(De)},X=async De=>{var ke;isMobileViewport.value&&!c&&!((ke=e.labels)!=null&&ke.enableGlassDesign)&&(C.value=!0,await nextTick$1()),De.isBSTTab?(k.value="bonus-side-trip",await nextTick$1(),d.value.scrollToTab("bonus-side-trip"),l.value.restorePastSearch(De)):De.payByEnrichPoints?(k.value="redeem-flight",await nextTick$1(),d.value.scrollToTab("redeem-flight"),s.value.restorePastSearch(De),s.value.isExpanded=!0):(k.value="book-flight",await nextTick$1(),d.value.scrollToTab("book-flight"),i.value.restorePastSearch(De),i.value.isExpanded=!0)},se=ref$1(!1),{commitDataToBSTOverlay:le}=useBSTOverlayInterimData(),he=()=>{se.value=!0},ge=async De=>{isMobileViewport.value&&(C.value=!0,await nextTick$1()),k.value="book-flight",E.value="book-flight",await nextTick$1(),d.value.scrollToTab("book-flight"),i.value.updateLocationFromTo(De)},Q=useEventBus("booking-widget:book-flight");Q.on(async(De,ke)=>{switch(De){case"active-tab-and-fill-up-form":ge(ke),await nextTick$1();break;default:console.log(`Unknown event: ${De}. Ignore it.`);break}});const Y=useEventBus("booking-widget:enrich-points-toggle-switch");Y.on(async(De,ke)=>{switch(De){case"update-toggle-switch":ke==="logout"&&(k.value="book-flight",n("update:active-sub-tab","book-flight")),await nextTick$1();break;default:console.log(`Unknown event: ${De}. Ignore it.`);break}});const ne=useEventBus("booking-widgwet:show-promo-code-field"),Ce=useEventBus("booking-widgwet:promo-code");Ce.on(async(De,ke)=>{switch(De){case"detect-promo-code":ke.promoCode&&(_.value=ke.promoCode.value);break;default:console.log(`Unknown event: ${De}. Ignore it.`);break}}),watch(k,De=>{pushAA_click([{clickName:De,clickComponentType:"Button",componentName:"FlightSearch",componentID:e.componentIdAA},{name:De,type:"other"}])}),watchEffect(()=>{x.value!==null&&x.value!==k.value&&(k.value=x.value,n("update:active-sub-tab",x.value))});let ae=!1,Be=!1;const me=()=>{ne.emit({open:!0})},K=()=>{var De,ke,ze;if(!((ke=(De=e.bookFlight)==null?void 0:De.general)!=null&&ke.subHeaderTabTooltipLabel)){const qe=navigator.userAgent.includes("Edg/"),ht=(ze=document.querySelector(".SwitchTabContent"))==null?void 0:ze.classList.contains("sticked");S.value=qe&&ht}},q=De=>{De.isEmpty&&(H.value=!1)};watch(A,De=>{A.value?V.value=!0:V.value=!1});const Z=(De=!1)=>{A.value?De?V.value=!1:V.value=!0:V.value=!1},de=ref$1("");onMounted(()=>{var ze;const De=qe=>{ae||qe.target.tagName!=="FORM"&&(ae=!0,a.value.removeEventListener("focus",De,{capture:!0}))};a.value.addEventListener("focus",De,{capture:!0}),window.addEventListener("scroll",K,{passive:!0}),usePersistencyWithExpiry("flight-search:past-searches",{refs:{pastSearches:j}}),((ze=j.value)==null?void 0:ze.length)!==0&&(H.value=!0);const ke=document.querySelector(".global-header");ke&&(ke.classList.contains("fixed")?de.value="blended-header-css":de.value="")}),onUnmounted(()=>{window.removeEventListener("scroll",K)});const fe=()=>{pushAA_flightSearchStart(k.value)},_e=(De,ke)=>{if(Be)return;Be=!0;let ze="",qe={};if(De==="multi-city"){const ht=dayjs(ke==null?void 0:ke.departDate1,"YYYYMMDDHHmm").format("YYYY-MM-DD"),pt=dayjs(ke==null?void 0:ke.departDate2,"YYYYMMDDHHmm").format("YYYY-MM-DD");ze=`
1172		tot:${((ke==null?void 0:ke.passengerAdults)??0)+((ke==null?void 0:ke.passengerChildren)??0)+((ke==null?void 0:ke.passengerTeens)??0)+((ke==null?void 0:ke.passengerInfants)??0)}/
1173		adt:${(ke==null?void 0:ke.passengerAdults)??0}/
1174		chd:${(ke==null?void 0:ke.passengerChildren)??0}/
1175		inf:${(ke==null?void 0:ke.passengerInfants)??0}/
1176		c15:${(ke==null?void 0:ke.passengerTeens)??0}`,qe=[{key:"origin1",value:ke==null?void 0:ke.originAirportCode1},{key:"origin2",value:ke==null?void 0:ke.originAirportCode2},{key:"destination1",value:ke==null?void 0:ke.destAirportCode1},{key:"destination2",value:ke==null?void 0:ke.destAirportCode2},{key:"departure-date1",value:ht},{key:"departure-date2",value:pt},{key:"return-date",value:""},{key:"promocode",value:ke!=null&&ke.promoCode?ke.promoCode:"none"},{key:"travel-group",value:ze.trim().replace(/\s+/g,"")}]}else ze=`
1177		tot:${((ke==null?void 0:ke.adultsCount)??0)+((ke==null?void 0:ke.childrenCount)??0)+((ke==null?void 0:ke.teensCount)??0)+((ke==null?void 0:ke.infantsCount)??0)}/
1178		adt:${(ke==null?void 0:ke.adultsCount)??0}/
1179		chd:${(ke==null?void 0:ke.childrenCount)??0}/
1180		inf:${(ke==null?void 0:ke.infantsCount)??0}/
1181		c15:${(ke==null?void 0:ke.teensCount)??0}`,qe=[{key:"origin",value:ke==null?void 0:ke.ondValueFrom.value},{key:"destination",value:ke==null?void 0:ke.ondValueTo.value},{key:"departure-date",value:ke==null?void 0:ke.dateRangeValueFrom},{key:"return-date",value:ke==null?void 0:ke.dateRangeValueTo},{key:"promocode",value:ke!=null&&ke.promoCodeValue?ke.promoCodeValue:"none"},{key:"travel-group",value:ze.trim().replace(/\s+/g,"")}];if(De==="redeem-flight"){const ht=`${De}-${ke.activeOption}`;pushAA_flightSearchEnd(ht,qe)}else pushAA_flightSearchEnd(De,qe)},pe=De=>De==="redeem-flight"&&!L(),ve=De=>{D.value=De,(isMobileViewport.value||isLG)&&(N.value=De,F.value=De)},Me=De=>{if(!De)return;isMobileViewport.value&&De.fromHistogram!=="true"&&(C.value=!0);const ke=De.subtab??"";ke&&(k.value=ke,n("update:active-sub-tab",ke))},Fe=De=>{const{registerQueryChange:ke}=useBookingWidgetUrlQuery({mainTabName:De});ke(Me)};Fe("flight-search-tab"),Fe("enrich-flight-search");const ue={props:e,emit:n,rootEl:a,subTabBookFlightEl:i,subTabRedeemFlightEl:s,subTabBonusSideTripEl:l,vueTabsComponent:d,isEnrichPortal:c,route:u,cidValue:f,isLoading:m,isPromoEditorEnabled:b,promoInputRef:y,promoCode:_,isEdgePaddingApplied:S,isMobileSubpageVisible:C,isEditorMode:T,bookingWidgetSubTab:x,activeSubTab:k,activeSubTabPreStick:E,isSticked:w,expressBooking:D,mblExpressBooking:N,subPageMblExpressBooking:F,isExpressBookingDisabled:V,isONDSelected:A,bookingWidgetSubPageVisible:M,mobileProperties:O,handleRootFocusWithin:R,handleRootBlurWithin:I,pastSearches:j,showLoginNote:H,bookingWidgetBus:U,isLoggedIn:B,isSapphire
1181CookiePresent:L,handleOnStick:z,handleOnUnstick:W,stickyExpand:J,stickyCollapse:te,continueYourSearchComponent:re,handleSaveSearchData:oe,restorePastSearch:X,isBSTOverlayVisible:se,commitDataToBSTOverlay:le,handleShowBSTOverlay:he,handleFillUpForm:ge,globalBookFlightBus:Q,globalBookFlightWidgetBus:Y,showPromoCodeBus:ne,detectPromoCode:Ce,get AAHasSentStart(){return ae},set AAHasSentStart(De){ae=De},get AAHasSentEnd(){return Be},set AAHasSentEnd(De){Be=De},handleShowPromoCode:me,detectEdgeBrowser:K,handleShowLoginNote:q,handleExpressBookingDisabled:Z,blendedHeaderCss:de,triggerFlightStartEvent:fe,sendFormCompleteAA:_e,shouldRedirectToLogin:pe,handleExpressBookingStatus:ve,handleQueryChange:Me,setupTabWatcher:Fe,tabClickHandler:async De=>{var ke,ze,qe,ht;(ze=(ke=e.bookFlight)==null?void 0:ke.general)!=null&&ze.enableGlassDesign&&isMobileViewport.value&&(x.value=De,U.emit("sub-tab-selected",De)),(ht=(qe=e.bookFlight)==null?void 0:qe.general)!=null&&ht.isExpandOriginDropdownOnClickTab&&De==="book-flight"&&(await nextTick$1(),i.value.openFromONDPicker())},enablePromocodeEditor:async De=>{var ke;b.value=De,await nextTick$1(),(ke=y.value)==null||ke.focus()},resetPromoCode:()=>{_.value=null,b.value=!1},OverlayBonusSideTrip,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},VueTabs,SubTabBookFlight:SubTabBookFlight$1,SubTabMultiCity,SubTabBonusSideTrip,SubTabTermsConditions,ContinueYourSearch:ContinueYourSearch$2,get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get useGlobalAEMState(){return useGlobalAEMState$1},get onClickOutside(){return onClickOutside},get useEventBus(){return useEventBus},get gsap(){return gsapWithCSS},get getAncestorBySelector(){return getAncestorBySelector},get isMobileViewport(){return isMobileViewport},get isLG(){return isLG},get useBSTOverlayInterimData(){return useBSTOverlayInterimData},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},get pushAA_flightSearchStart(){return pushAA_flightSearchStart},get pushAA_flightSearchEnd(){return pushAA_flightSearchEnd},get pushAA_click(){return pushAA_click},get useHeaderScroll(){return useHeaderScroll},get sleep(){return sleep},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get useAuthStore(){return useAuthStore},SubTabRedeemFlight,AppHyperlink,get useRoute(){return useRoute$1},Tooltip,watchEffect,get dayjs(){return dayjs},MobileSubPageSwiper,get getCookie(){return getCookie}};return Object.defineProperty(ue,"__isScriptSetup",{enumerable:!1,value:!0}),ue}}),_hoisted_1$1b={class:"generic-container"},_hoisted_2$13={key:0,class:"title-editor-mode"},_hoisted_3$G={class:"flex items-center justify-center p-4"},_hoisted_4$z={class:"inline-block ml-1"},_hoisted_5$w={class:"flex items-center justify-center p-4"},_hoisted_6$u={class:"inline-block ml-1"},_hoisted_7$u={class:"flex items-center justify-center p-4"},_hoisted_8$s={class:"inline-block ml-1"},_hoisted_9$p={class:"flex items-center justify-center p-4"},_hoisted_10$i={class:"inline-block ml-1"},_hoisted_11$h={class:"flex items-center justify-center p-4"},_hoisted_12$g={class:"inline-block ml-1"},_hoisted_13$f={key:0,identifier:"book-flight"},_hoisted_14$f={key:1,identifier:"multi-city"},_hoisted_15$e={key:2,identifier:"redeem-flight"},_hoisted_16$e={key:3,identifier:"bonus-side-trip"},_hoisted_17$c={key:4,identifier:"terms-and-conditions"},_hoisted_18$a={key:0},_hoisted_19$8={class:"flex flex-col flex-1 min-w-0 text-left"},_hoisted_20$8={key:0,class:"text-xs leading-tight text-neutral-grey-dark"},_hoisted_21$8={key:1,class:"flex items-center gap-2 ml-2 promocode-wrapper mr-2"},_hoisted_22$7={class:"flex flex-col flex-1 min-w-0"},_hoisted_23$6={for:"promo-code",class:"text-xs leading-tight text-neutral-grey-dark sr-only"},_hoisted_24$5={class:"express-booking-checkbox"},_hoisted_25$5={class:"check-label text-sm text-primary-blue-base"},_hoisted_26$5={class:"flex items-center"},_hoisted_27$4={key:0,class:"w-full"},_hoisted_28$4={class:"login-disclaimer flex justify-between text-xs w-full"},_hoisted_29$4={key:0,class:"text-center"},_hoisted_30$4={key:1,class:"text-center"}
1181,_hoisted_31$4={class:"flex items-center justify-center p-4"},_hoisted_32$4={class:"inline-block ml-1"},_hoisted_33$1={class:"flex items-center justify-center p-4"},_hoisted_34$1={class:"inline-block ml-1"},_hoisted_35$1={class:"flex items-center justify-center p-4"},_hoisted_36={class:"inline-block ml-1"},_hoisted_37={class:"flex items-center justify-center p-4"},_hoisted_38={class:"inline-block ml-1"},_hoisted_39={class:"flex items-center justify-center p-4"},_hoisted_40={class:"inline-block ml-1"},_hoisted_41={key:0,identifier:"book-flight"},_hoisted_42={class:"express-booking-checkbox"},_hoisted_43={class:"check-label text-sm text-primary-blue-base"},_hoisted_44={class:"flex items-center"},_hoisted_45={key:1,identifier:"multi-city"},_hoisted_46={key:2,identifier:"redeem-flight"},_hoisted_47={key:3,identifier:"bonus-side-trip"},_hoisted_48={key:4,identifier:"terms-and-conditions"},_hoisted_49={class:"generic-backdrop flight-search-bg !bg-white/80"},_hoisted_50={class:"flex items-center justify-center h-full w-full"};function _sfc_render$1a(t,o,r,e,n,a){var b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J,te,re,oe,X,se,le,he,ge,Q,Y,ne,Ce,ae,Be,me,K,q,Z,de,fe,_e,pe,ve,Me,Fe,Te,Se,Ae,ue,ye,Xe,De,ke,ze,qe,ht,pt,Ne,Je,$e,st,bt,Bt,rt,Ze,dt,Ye,lt,et,nt,Pt,ft,Nt,Ot,yt,Dt,_t,Ie,Le,ct,We,we,He,ot,kt,Yt,wt,Vt,zt,_o,xe,Ke,Ge,ut,Et,Ft,qt,Jt,Xt,To,Zo,er,hn,Rr,Xn,ai,Jn,tr,$r,Hr;const i=__unplugin_components_0$9,s=__unplugin_components_1$2,l=__unplugin_components_2$5,d=__unplugin_components_1$c,c=resolveComponent("AppSpinner"),u=resolveDirective("aa"),f=resolveDirective("html-sanitize"),m=resolveDirective("focus-within");return openBlock(),createElementBlock(Fragment,null,[withDirectives((openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["FlightSearch booking-widget-subcomponent",{isEditorMode:e.isEditorMode}]),tabindex:"-1",onFocusWithin:e.handleRootFocusWithin,onBlurWithin:e.handleRootBlurWithin},[createBaseVNode("div",_hoisted_1$1b,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$13,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[28]||(o[28]=createBaseVNode("span",null,"Booking Widget: Flight Search",-1))])):createCommentVNode("",!0),createVNode(e.VueTabs,{ref:"vueTabsComponent",modelValue:e.activeSubTab,"onUpdate:modelValue":[o[8]||(o[8]=xt=>e.activeSubTab=xt),o[9]||(o[9]=xt=>t.$emit("update:active-sub-tab",xt))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",enableGlassDesign:(b=e.props.labels)==null?void 0:b.enableGlassDesign,onTabClick:e.tabClickHandler},createSlots({default:withCtx(()=>{var xt,eo,bo,Co,or,rr,fr,nr,ar,ir,gn,Zn,ea,ta,_n,oa,ra,na,aa,Ur,ia,sa,la,ca,da,gt,At,mr,hr,gr,_r,br,yr,sr,vr,Zt,Uo,Oo,bn,Gr,fo,yn,vn,Sn,Tn,Cn,kn,uo,ua,mo,pa,wn,Ao,Sr,jr,Kt,Bo,zr,fa,Wr,ma,ha,ga,En,Tr,Go,ba,xn,An,Yr,qr,Bn,ya,Kr,Qr,va,Pn,po,Xr,lr,Nn,Dn,Sa,Ta,Ca,ka,wa,jo,Ea,xa,Jr,Vn,Po,Cr,Aa,Ba,Pa,zo,yo,Ln,Na,Da,Va,La,Ma,Wo,Pe,Re,Oe,it,St,Ht,to,Wt,Zr,Oa,ho,kr,Ia,Yo,wr,Er,Gt,Fa,Mn,xr,Ra,$a,Ha,Ar,No,Br,On,Pr,In,Fn,Nr,Rn,cr,Io,Dr,Ua,Ga,ja,Vr,Lr,en,za,$n,Wa,Ya,oo,ao,qa,Ka,Hn;return[(eo=(xt=e.props.bookFlight)==null?void 0:xt.general)!=null&&eo.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_13$f,[createVNode(e.SubTabBookFlight,{ref:"subTabBookFlightEl",class:normalizeClass({"pt-6":!e.isEdgePaddingApplied}),hideTodayDateIndicator:(Co=(bo=e.props.labels)==null?void 0:bo.paymentType)==null?void 0:Co.hideTodayDateIndicator,subHeaderTabDescription:(rr=(or=e.props.bookFlight)==null?void 0:or.general)==null?void 0:rr.subHeaderTabDescription,subHeaderTabTooltipBody:(nr=(fr=e.props.bookFlight)==null?void 0:fr.general)==null?void 0:nr.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(ir=(ar=e.props.bookFlight)==null?void 0:ar.general)==null?void 0:ir.subHeaderTabTooltipLabel,topNote:(Zn=(gn=e.props.bookFlight)==null?void 0:gn.general)==null?void 0:Zn.topNote,note:(ta=(ea=e.props.bookFlight)==null?void 0:ea.general)==null?void 0:ta.note,searchFlightCTAText:(oa=(_n=e.props.bookFlight)==null?void 0:_n.general)==null?void 0:oa.searchFlightCTAText,ondSelection:(ra=e.props.bookFlight)==null?void 0:ra.ondSelection,additionalONDFilter:(aa=(na=e.props.bookFlight)==null?void 0:na.general)==null?void 0:aa.ondFilter,datePicker:(Ur=e.props.bookFlight)==null?void 0:Ur.datePicker,promoCodeL
1181abel:(sa=(ia=e.props.bookFlight)==null?void 0:ia.promoCode)==null?void 0:sa.promoCodeLabel,promoCodePlaceholder:(ca=(la=e.props.bookFlight)==null?void 0:la.promoCode)==null?void 0:ca.promoCodePlaceholder,promoCode:e.promoCode,promoCodeLabelPH:(gt=(da=e.props.bookFlight)==null?void 0:da.promoCode)==null?void 0:gt.promoCodeLabelPH,promoCodeErrorMessage:(mr=(At=e.props.bookFlight)==null?void 0:At.promoCode)==null?void 0:mr.promoCodeErrorMessage,supersedePromoCode:(_r=(gr=(hr=e.props.bookFlight)==null?void 0:hr.promoCode)==null?void 0:gr.supersedePromoCode)==null?void 0:_r.trim(),supersedeOfficeIdSuffix:(sr=(yr=(br=e.props.bookFlight)==null?void 0:br.officeIdSection)==null?void 0:yr.supersedeOfficeIdSuffix)==null?void 0:sr.trim(),passengerSelection:(vr=e.props.bookFlight)==null?void 0:vr.passengerSelection,bstNoteTop:(Uo=(Zt=e.props.bonusSideTrip)==null?void 0:Zt.bstPage)==null?void 0:Uo.bstNoteTop,bstNoteCTAText:(bn=(Oo=e.props.bonusSideTrip)==null?void 0:Oo.bstPage)==null?void 0:bn.bstNoteCTAText,bstNoteCTAURL:(fo=(Gr=e.props.bonusSideTrip)==null?void 0:Gr.bstPage)==null?void 0:fo.bstNoteCTAURL,subHeaderTooltipCTATextMobileLabel:(yn=e.props.mobileAddOns)==null?void 0:yn.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(vn=e.props.mobileAddOns)==null?void 0:vn.fromQuestionMobile,toQuestionMobile:(Sn=e.props.mobileAddOns)==null?void 0:Sn.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:(Cn=(Tn=e.props.labels)==null?void 0:Tn.mattaFair)==null?void 0:Cn.enableMattaToggleButton,mattaToggleButtonLabel:(uo=(kn=e.props.labels)==null?void 0:kn.mattaFair)==null?void 0:uo.mattaToggleButtonLabel,hidePromoCodeField:(mo=(ua=e.props.bookFlight)==null?void 0:ua.promoCode)==null?void 0:mo.hidePromoCodeField,enrichAlwaysOn:(wn=(pa=e.props.bookFlight)==null?void 0:pa.enrichAlwaysOn)==null?void 0:wn.enableFunctionality,autoApplyEnrichAlwaysOn:(Sr=(Ao=e.props.bookFlight)==null?void 0:Ao.enrichAlwaysOn)==null?void 0:Sr.autoApplyEnrichAlwaysOn,enablePostMattaCampaign:(Kt=(jr=e.props.bookFlight)==null?void 0:jr.enrichAlwaysOn)==null?void 0:Kt.enablePostMattaCampaign,nonLoggedInMessageNote:(zr=(Bo=e.props.bookFlight)==null?void 0:Bo.enrichAlwaysOn)==null?void 0:zr.nonLoggedInMessageNote,loggedInMessageNote:(Wr=(fa=e.props.bookFlight)==null?void 0:fa.enrichAlwaysOn)==null?void 0:Wr.loggedInMessageNote,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:(ha=(ma=e.props.labels)==null?void 0:ma.nearYou)==null?void 0:ha.disableGeolocation,enableONDLocaleTranslation:(En=(ga=e.props.labels)==null?void 0:ga.ondLocale)==null?void 0:En.isEnableLocale,countryVariants:e.props.countryVariants,expressBooking:(Tr=e.props.bookFlight)==null?void 0:Tr.expressBooking,signUpApiUrl:e.props.signUpApiUrl,dspbookingEnable:e.props.dspBookingRedirector.dspbookingEnable,enableDSPBookingRedirector:e.props.dspBookingRedirector.enableDSPBookingRedirector,dspBookingApiUrl:e.props.dspBookingApiUrl,enableGlassDesign:(ba=(Go=e.props.bookFlight)==null?void 0:Go.general)==null?void 0:ba.enableGlassDesign,expressBookingSelected:e.expressBooking,onSaveSearchData:o[0]||(o[0]=so=>e.handleSaveSearchData({isBSTTab:!1,...so})),onShowBstOverlay:e.handleShowBSTOverlay,onFormSubmission:o[1]||(o[1]=so=>e.sendFormCompleteAA("book-flight",so)),onExpressBookingStatus:e.handleExpressBookingStatus,onExpressBookingDisabled:e.handleExpressBookingDisabled,"onOn:trigger":e.triggerFlightStartEvent,onOndSelected:o[2]||(o[2]=so=>e.isONDSelected=so==null?void 0:so.selected)},null,8,["class","hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","topNote","note","searchFlightCTAText","ondSelection","additionalONDFilter","datePicker","promoCodeL
1181abel","promoCodePlaceholder","promoCode","promoCodeLabelPH","promoCodeErrorMessage","supersedePromoCode","supersedeOfficeIdSuffix","passengerSelection","bstNoteTop","bstNoteCTAText","bstNoteCTAURL","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","hidePromoCodeField","enrichAlwaysOn","autoApplyEnrichAlwaysOn","enablePostMattaCampaign","nonLoggedInMessageNote","loggedInMessageNote","enrichAlwaysOnCountriesData","disableGeolocation","enableONDLocaleTranslation","countryVariants","expressBooking","signUpApiUrl","dspbookingEnable","enableDSPBookingRedirector","dspBookingApiUrl","enableGlassDesign","expressBookingSelected"])])),(An=(xn=e.props.multiCity)==null?void 0:xn.general)!=null&&An.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_14$f,[createVNode(e.SubTabMultiCity,{class:"pt-6",subHeaderTabDescription:(qr=(Yr=e.props.multiCity)==null?void 0:Yr.general)==null?void 0:qr.subHeaderTabDescription,subHeaderTabTooltipBody:(ya=(Bn=e.props.multiCity)==null?void 0:Bn.general)==null?void 0:ya.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(Qr=(Kr=e.props.multiCity)==null?void 0:Kr.general)==null?void 0:Qr.subHeaderTabTooltipLabel,note:(Pn=(va=e.props.multiCity)==null?void 0:va.general)==null?void 0:Pn.note,removeCTAText:(Xr=(po=e.props.multiCity)==null?void 0:po.general)==null?void 0:Xr.removeCTAText,addAnotherFlightCTAText:(Nn=(lr=e.props.multiCity)==null?void 0:lr.general)==null?void 0:Nn.addAnotherFlightCTAText,searchFlightCTAText:(Sa=(Dn=e.props.multiCity)==null?void 0:Dn.general)==null?void 0:Sa.searchFlightCTAText,ondSelection:(Ta=e.props.multiCity)==null?void 0:Ta.ondSelection,datePicker:(Ca=e.props.multiCity)==null?void 0:Ca.datePicker,passengerSelection:(ka=e.props.multiCity)==null?void 0:ka.passengerSelection,subHeaderTooltipCTATextMobileLabel:(wa=e.props.mobileAddOns)==null?void 0:wa.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(jo=e.props.mobileAddOns)==null?void 0:jo.fromQuestionMobile,toQuestionMobile:(Ea=e.props.mobileAddOns)==null?void 0:Ea.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,enableONDLocaleTranslation:(Jr=(xa=e.props.labels)==null?void 0:xa.ondLocale)==null?void 0:Jr.isEnableLocale,promoCode:(Vn=e.props.multiCity)==null?void 0:Vn.promoCode,countryVariants:e.props.countryVariants,enableGlassDesign:(Cr=(Po=e.props.multiCity)==null?void 0:Po.general)==null?void 0:Cr.enableGlassDesign,continueYourSearchLabel:(Ba=(Aa=e.props.bookFlight)==null?void 0:Aa.continueYourSearch)==null?void 0:Ba.continueYourSearchLabel,economyLabel:(zo=(Pa=e.props.bookFlight)==null?void 0:Pa.passengerSelection)==null?void 0:zo.economyLabel,businessLabel:(Ln=(yo=e.props.bookFlight)==null?void 0:yo.passengerSelection)==null?void 0:Ln.businessLabel,businessSuiteLabel:(Da=(Na=e.props.bookFlight)==null?void 0:Na.passengerSelection)==null?void 0:Da.businessSuiteLabel,isHideContinueYourSearchSection:e.props.isHideContinueYourSearchSection,onRestorePastSearch:e.restorePastSearch,"onOn:trigger":e.triggerFlightStartEvent,onFormSubmission:o[3]||(o[3]=so=>e.sendFormCompleteAA("multi-city",so))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","removeCTAText","addAnotherFlightCTAText","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","enableONDLocaleTranslation","promoCode","countryVariants","enableGlassDesign","continueYourSearchLabel","economyLabel","businessLabel","businessSuiteLabel","isHideContinueYourSearchSection"])])),(La=(Va=e.props.labels)==null?void 0:Va.flightType)!=null&&La.isHideInDesktopRedeemFlight?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_15$e,[createVNode(e.SubTabRedeemFlight,{ref:"subTabRedeemFlightEl",class:"pt-6",payByEnrichPoints:!0,hideTodayDateIndicator:(Wo=(Ma=e.props.labels)==null?void 0:Ma.paymentType)==null?void 0:Wo.hideTodayDateIndicator,owGeneralDetails:e.props.redeemFlightOW.general,owOndSelection:(Pe=e.props.redeemFlightOW)==null?void 0:Pe.ondSelection,owDatePicker:(Re=e.props.redeemFlightOW)==null?void 0:Re.datePicker,owPasse
1181ngerSelection:(Oe=e.props.redeemFlightOW)==null?void 0:Oe.passengerSelection,owPromoCode:(it=e.props.redeemFlightOW)==null?void 0:it.promoCode,owEnrichAlwaysOn:(St=e.props.redeemFlightOW)==null?void 0:St.enrichAlwaysOn,mhGeneralDetails:(Ht=e.props.redeemFlight)==null?void 0:Ht.general,mhOndSelection:(to=e.props.redeemFlight)==null?void 0:to.ondSelection,mhDatePicker:(Wt=e.props.redeemFlight)==null?void 0:Wt.datePicker,mhPassengerSelection:(Zr=e.props.redeemFlight)==null?void 0:Zr.passengerSelection,mhPromoCode:(Oa=e.props.redeemFlight)==null?void 0:Oa.promoCode,mhEnrichAlwaysOn:(ho=e.props.redeemFlight)==null?void 0:ho.enrichAlwaysOn,subHeaderTooltipCTATextMobileLabel:(kr=e.props.mobileAddOns)==null?void 0:kr.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(Ia=e.props.mobileAddOns)==null?void 0:Ia.fromQuestionMobile,toQuestionMobile:(Yo=e.props.mobileAddOns)==null?void 0:Yo.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:(Er=(wr=e.props.labels)==null?void 0:wr.mattaFair)==null?void 0:Er.enableMattaToggleButton,mattaToggleButtonLabel:(Fa=(Gt=e.props.labels)==null?void 0:Gt.mattaFair)==null?void 0:Fa.mattaToggleButtonLabel,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:(xr=(Mn=e.props.labels)==null?void 0:Mn.nearYou)==null?void 0:xr.disableGeolocation,enableONDLocaleTranslation:($a=(Ra=e.props.labels)==null?void 0:Ra.ondLocale)==null?void 0:$a.isEnableLocale,countryVariants:e.props.countryVariants,cabinClassMilesOWList:e.props.cabinClassMilesOWList,enableGlassDesign:(Ar=(Ha=e.props.redeemFlight)==null?void 0:Ha.general)==null?void 0:Ar.enableGlassDesign,onSaveSearchData:o[4]||(o[4]=so=>e.handleSaveSearchData({isBSTTab:!1,...so})),onShowBstOverlay:e.handleShowBSTOverlay,onFormSubmission:o[5]||(o[5]=so=>e.sendFormCompleteAA("redeem-flight",so))},null,8,["hideTodayDateIndicator","owGeneralDetails","owOndSelection","owDatePicker","owPassengerSelection","owPromoCode","owEnrichAlwaysOn","mhGeneralDetails","mhOndSelection","mhDatePicker","mhPassengerSelection","mhPromoCode","mhEnrichAlwaysOn","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","enrichAlwaysOnCountriesData","disableGeolocation","enableONDLocaleTranslation","countryVariants","cabinClassMilesOWList","enableGlassDesign"])])),(Br=(No=e.props.bonusSideTrip)==null?void 0:No.general)!=null&&Br.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_16$e,[createVNode(e.SubTabBonusSideTrip,{ref:"subTabBonusSideTripEl",class:"pt-6",subHeaderTabDescription:(Pr=(On=e.props.bonusSideTrip)==null?void 0:On.general)==null?void 0:Pr.subHeaderTabDescription,subHeaderTabTooltipBody:(Fn=(In=e.props.bonusSideTrip)==null?void 0:In.general)==null?void 0:Fn.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(Rn=(Nr=e.props.bonusSideTrip)==null?void 0:Nr.general)==null?void 0:Rn.subHeaderTabTooltipLabel,note:(Io=(cr=e.props.bonusSideTrip)==null?void 0:cr.general)==null?void 0:Io.note,searchFlightCTAText:(Ua=(Dr=e.props.bonusSideTrip)==null?void 0:Dr.general)==null?void 0:Ua.searchFlightCTAText,ondSelection:(Ga=e.props.bonusSideTrip)==null?void 0:Ga.ondSelection,datePicker:(ja=e.props.bonusSideTrip)==null?void 0:ja.datePicker,passengerSelection:(Vr=e.props.bonusSideTrip)==null?void 0:Vr.passengerSelection,subHeaderTooltipCTATextMobileLabel:(Lr=e.props.mobileAddOns)==null?void 0:Lr.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(en=e.props.mobileAddOns)==null?void 0:en.fromQuestionMobile,toQuestionMobile:(za=e.props.mobileAddOns)==null?void 0:za.toQuestionMobile,cabinClassCashList:e.props.cabinClassCashList,enableONDLocaleTranslation:(Wa=($n=e.props.labels)==null?void 0:$n.ondLocale)==null?void 0:Wa.isEnableLocale,countryVariants:e.props.countryVariants,enableGlassDesign:(oo=(Ya=e.props.bonusSideTrip)==null?void 0:Ya.general)==null?void 0:oo.enableGlassDesign,onSaveSearchData:o[6]||(o[6]=so=>e.handleSaveSearchData({isBSTTab:!0,...so})),onShowBstOverlay:e.handleShowBSTOverlay,onFormSubmission:o[7]||(o[7]=so=>e.sendFormCompleteAA("bonus-side-trip"))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","cabinClassCashList","enableONDLocaleTranslation","countryVariants","enableGlassDesign"])])),!((qa=(ao=e.props.termsAndConditionsTab)==null?void 0:ao.general)!=null&&qa.isHideInDesktop)&&((Ka=e.props.termsAndConditionsTab)!=null&&Ka.showTandCTab)?(openBlock(),createElementBlock("div",_hoisted_17$c,[createVNode(e.SubTabTermsConditions,{content:(Hn=e.props.termsAndConditionsTab)==null?void 0:Hn.termsAndConditions},null,8,["content"])])):createCommentVNode("",!0)]}),_:2},[!((_=(y=e.props.bookFlight)==null?void 0:y.general)!=null&&_.isHideInDesktop)&&((C=(S=e.props.labels)==null?void 0:S.flightType)!=null&&C.bookFlightLabel)?{name:"tab-book-flight",fn:withCtx(()=>{var xt,eo;return[createBaseVNode("div",_hoisted_3$G,[createBaseVNode("span",_hoisted_4$z,toDisplayString((eo=(xt=e.props.labels)==null?void 0:xt.flightType)==null?void 0:eo.bookFlightLabel),
11811)])]}),key:"0"}:void 0,!((x=(T=e.props.multiCity)==null?void 0:T.general)!=null&&x.isHideInDesktop)&&((E=(k=e.props.labels)==null?void 0:k.flightType)!=null&&E.multiCityLabel)?{name:"tab-multi-city",fn:withCtx(()=>{var xt,eo;return[createBaseVNode("div",_hoisted_5$w,[createBaseVNode("span",_hoisted_6$u,toDisplayString((eo=(xt=e.props.labels)==null?void 0:xt.flightType)==null?void 0:eo.multiCityLabel),1)])]}),key:"1"}:void 0,!((D=(w=e.props.labels)==null?void 0:w.flightType)!=null&&D.isHideInDesktopRedeemFlight)&&((F=(N=e.props.labels)==null?void 0:N.flightType)!=null&&F.redeemFlightLabel)?{name:"tab-redeem-flight",fn:withCtx(()=>{var xt,eo;return[createBaseVNode("div",_hoisted_7$u,[createBaseVNode("span",_hoisted_8$s,toDisplayString((eo=(xt=e.props.labels)==null?void 0:xt.flightType)==null?void 0:eo.redeemFlightLabel),1)])]}),key:"2"}:void 0,!((A=(V=e.props.labels)==null?void 0:V.flightType)!=null&&A.isHideInDesktop)&&((O=(M=e.props.labels)==null?void 0:M.flightType)!=null&&O.roundTheWorldLabel)?{name:"link-round-the-world",fn:withCtx(()=>{var xt,eo,bo,Co,or,rr,fr,nr;return[withDirectives((openBlock(),createBlock(e.AppHyperlink,{href:(eo=(xt=e.props.labels)==null?void 0:xt.flightType)==null?void 0:eo.roundTheWorldURL,class:"font-semibold text-$text-color rounded-xl px-4 hover:bg-neutral-grey-extralight h-full leading-none",target:(Co=(bo=e.props.labels)==null?void 0:bo.flightType)!=null&&Co.openInNewTab?"_blank":"_self",autoExternalLinkIcon:!0},{default:withCtx(()=>{var ar,ir;return[createTextVNode(toDisplayString((ir=(ar=e.props.labels)==null?void 0:ar.flightType)==null?void 0:ir.roundTheWorldLabel),1)]}),_:1},8,["href","target"])),[[u,[{clickName:(rr=(or=e.props.labels)==null?void 0:or.flightType)==null?void 0:rr.roundTheWorldLabel,clickComponentType:"Button",componentName:"FlightSearch",componentID:e.props.componentIdAA},{name:(nr=(fr=e.props.labels)==null?void 0:fr.flightType)==null?void 0:nr.roundTheWorldLabel,type:e.isUrlMatchCurrentHostname(e.props.url)?"other":"exit"}]]])]}),key:"3"}:void 0,!((I=(R=e.props.bonusSideTrip)==null?void 0:R.general)!=null&&I.isHideInDesktop)&&((H=(j=e.props.labels)==null?void 0:j.flightType)!=null&&H.bonusSideTripLabel)?{name:"tab-bonus-side-trip",fn:withCtx(()=>{var xt,eo;return[createBaseVNode("div",_hoisted_9$p,[createBaseVNode("span",_hoisted_10$i,toDisplayString((eo=(xt=e.props.labels)==null?void 0:xt.flightType)==null?void 0:eo.bonusSideTripLabel),1)])]}),key:"4"}:void 0,!((B=(U=e.props.termsAndConditionsTab)==null?void 0:U.general)!=null&&B.isHideInDesktop)&&((L=e.props.termsAndConditionsTab)!=null&&L.showTandCTab)?{name:"tab-terms-and-conditions",fn:withCtx(()=>{var xt;return[createBaseVNode("div",_hoisted_11$h,[createBaseVNode("span",_hoisted_12$g,toDisplayString((xt=e.props.termsAndConditionsTab)==null?void 0:xt.termsAndConditionsLabel),1)])]}),key:"5"}:void 0]),1032,["modelValue","dormantMode","enableGlassDesign"]),!e.props.isHideContinueYourSearchSection&&!((z=e.props.labels)!=null&&z.enableGlassDesign)?(openBlock(),createBlock(e.ContinueYourSearch,{key:1,ref:"continueYourSearchComponent",class:"continue-your-search-container mt-5",continueYourSearchLabel:(J=(W=e.props.bookFlight)==null?void 0:W.continueYourSearch)==null?void 0:J.continueYourSearchLabel,economyLabel:(re=(te=e.props.bookFlight)==null?void 0:te.passengerSelection)==null?void 0:re.economyLabel,businessLabel:(X=(oe=e.props.bookFlight)==null?void 0:oe.passengerSelection)==null?void 0:X.businessLabel,businessSuiteLabel:(le=(se=e.props.bookFlight)==null?void 0:se.passengerSelection)==null?void 0:le.businessSuiteLabel,onRestorePastSearch:e.restorePastSearch},null,8,["continueYourSearchLabel","economyLabel","businessLabel","businessSuiteLabel"])):createCommentVNode("",!0),e.activeSubTab!=="multi-city"&&((he=e.props.labels)!=null&&he.enableGlassDesign)&&(e.isONDSelected||!e.isMobileViewport&&(!e.isSticked||e.isONDSelected))?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass({"flex flex-col gap-2 items-center":(ge=e.props.labels)==null?void 0:ge.enableGlassDesign,"mt-3":((Q=e.props.labels)==null?void 0:Q.enableGlassDesign)&&!e.isMobileViewport})},[createBaseVNode("div",{class:normalizeClass([{"glass-design":(Y=e.props.labels)==null?void 0:Y.enableGlassDesign},"bottom-wrapper flex flex-row justify-between items-center w-full md:gap-3"])},[createBaseVNode("div",null,[e.props.isHideContinueYourSearchSection?createCommentVNode("",!0):(openBlock(),createBlock(e.ContinueYourSearch,{key:0,ref:"continueYourSearchComponent",class:"continue-your-search-container",continueYourSearchLabel:(Ce=(ne
1181=e.props.bookFlight)==null?void 0:ne.continueYourSearch)==null?void 0:Ce.continueYourSearchLabel,economyLabel:(Be=(ae=e.props.bookFlight)==null?void 0:ae.passengerSelection)==null?void 0:Be.economyLabel,businessLabel:(K=(me=e.props.bookFlight)==null?void 0:me.passengerSelection)==null?void 0:K.businessLabel,businessSuiteLabel:(Z=(q=e.props.bookFlight)==null?void 0:q.passengerSelection)==null?void 0:Z.businessSuiteLabel,enableGlassDesign:(de=e.props.labels)==null?void 0:de.enableGlassDesign,nonLoggedInMessage:(_e=(fe=e.props.bookFlight)==null?void 0:fe.enrichAlwaysOn)==null?void 0:_e.nonLoggedInMessageNote,promoCodeLength:((pe=e.promoCode)==null?void 0:pe.length)||0,activeSubTab:e.activeSubTab,isshrunk:e.isPromoEditorEnabled,onIsPastSearchEmpty:e.handleShowLoginNote,onRestorePastSearch:e.restorePastSearch},null,8,["continueYourSearchLabel","economyLabel","businessLabel","businessSuiteLabel","enableGlassDesign","nonLoggedInMessage","promoCodeLength","activeSubTab","isshrunk"]))]),(ve=e.props.labels)!=null&&ve.enableGlassDesign&&e.activeSubTab!=="redeem-flight"&&e.activeSubTab!=="bonus-side-trip"&&!e.isMobileViewport?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([{"glass-design":e.props.labels.enableGlassDesign},"flex items-center end >lg:ml-auto pb-2 >lg:pb-0"])},[(Fe=(Me=e.props.bookFlight)==null?void 0:Me.promoCode)!=null&&Fe.hidePromoCodeField?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_18$a,[e.isPromoEditorEnabled?(openBlock(),createElementBlock("div",_hoisted_21$8,[createVNode(s,{class:"icon fill-primary-blue-base ml-3 shrink-0"}),createBaseVNode("div",_hoisted_22$7,[createBaseVNode("label",_hoisted_23$6,toDisplayString((Xe=(ye=e.props.bookFlight)==null?void 0:ye.promoCode)==null?void 0:Xe.promoCodeLabel),1),withDirectives(createBaseVNode("input",{id:"promo-code",ref:"promoInputRef","onUpdate:modelValue":o[12]||(o[12]=xt=>e.promoCode=xt),type:"text",class:"promocode-editor flex-1 border-0 outline-none bg-transparent min-w-0",onKeyup:o[13]||(o[13]=withKeys(xt=>e.enablePromocodeEditor(!1),["enter"]))},null,544),[[vModelText,e.promoCode]])])])):(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["flex items-center p-0 gap-2 promocode-btn pr-2",{"promocode-bg":e.promoCode!==null}]),onClick:o[11]||(o[11]=xt=>e.enablePromocodeEditor(!0))},[createVNode(s,{class:"icon fill-primary-blue-base w-4.5 ml-2 shrink-0"}),createBaseVNode("div",_hoisted_19$8,[e.promoCode?(openBlock(),createElementBlock("span",_hoisted_20$8,toDisplayString((Se=(Te=e.props.bookFlight)==null?void 0:Te.promoCode)==null?void 0:Se.promoCodeLabel),1)):createCommentVNode("",!0),createBaseVNode("span",{class:normalizeClass(["text-sm text-primary-blue-base leading-tight truncate promocode-value",{"promocode-color":e.promoCode!==null,"has-value":e.promoCode}])},toDisplayString(e.promoCode||((ue=(Ae=e.props.bookFlight)==null?void 0:Ae.promoCode)==null?void 0:ue.promoCodeL
1181abel)),3)]),e.promoCode?(openBlock(),createBlock(l,{key:0,class:"w-3 fill-neutral-grey-extradark cursor-pointer shrink-0 mr-3",onClick:o[10]||(o[10]=xt=>e.resetPromoCode())})):createCommentVNode("",!0)],2))])),(De=e.props.bookFlight)!=null&&De.expressBooking&&((ke=e.props.bookFlight)!=null&&ke.expressBooking.turnOnExpressBooking)&&!e.isMobileViewport?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["flex items-center express-booking-wrapper",{disabled:!e.isExpressBookingDisabled}])},[createBaseVNode("label",_hoisted_24$5,[withDirectives(createBaseVNode("input",{"onUpdate:modelValue":o[14]||(o[14]=xt=>e.expressBooking=xt),type:"checkbox"},null,512),[[vModelCheckbox,e.expressBooking]]),o[29]||(o[29]=createBaseVNode("span",{class:"check-mark"},null,-1)),createBaseVNode("span",_hoisted_25$5,toDisplayString((qe=(ze=e.props.bookFlight)==null?void 0:ze.expressBooking)==null?void 0:qe.expressBookingCheckboxLabel),1)])],2)):createCommentVNode("",!0),(pt=(ht=e.props.bookFlight)==null?void 0:ht.expressBooking)!=null&&pt.expressBookingTooltipDescription&&!e.isMobileViewport?(openBlock(),createBlock(e.Tooltip,{key:2,class:"inline-flex"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_26$5,[createVNode(d,{class:"icon fill-primary-blue-base w-5 ml-1","aria-hidden":"true"})])]),"tooltip-content":withCtx(()=>{var xt;return[withDirectives(createBaseVNode("div",null,null,512),[[f,(xt=e.props.bookFlight)==null?void 0:xt.expressBooking.expressBookingTooltipDescription]])]}),_:1})):createCommentVNode("",!0)],2)):createCommentVNode("",!0)],2),!e.isLoggedIn&&!e.isMobileViewport&&e.showLoginNote&&!e.props.enableGlassDesign&&e.activeSubTab!=="redeem-flight"?(openBlock(),createElementBlock("div",_hoisted_27$4,[createBaseVNode("div",_hoisted_28$4,[withDirectives(createBaseVNode("span",null,null,512),[[f,(Je=(Ne=e.props.bookFlight)==null?void 0:Ne.enrichAlwaysOn)==null?void 0:Je.nonLoggedInMessageNote]])])])):createCommentVNode("",!0)],2)):createCommentVNode("",!0)])],34)),[[m]]),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible&&!e.isEnrichPortal,class:"text-white",style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},mobileSubPageDesign:e.props.labels.enableGlassDesign?"glass-design":"MH",enableGlassDesign:e.props.labels.enableGlassDesign,blendedHeaderCss:e.blendedHeaderCss,mobileSwiperTabs:e.props.mobileSwiperTabs,"onUpdate:isVisible":o[26]||(o[26]=xt=>e.isMobileSubpageVisible=xt)},{"banner-title":withCtx(()=>[e.props.labels.enableGlassDesign?(openBlock(),createElementBlock("h3",_hoisted_30$4,toDisplayString(t.$t("Flight Search")),1)):(openBlock(),createElementBlock("h1",_hoisted_29$4,toDisplayString(t.$t("Flight Search")),1))]),swiper:withCtx(()=>[renderSlot(t.$slots,"banner-title",{},()=>[createVNode(e.MobileSubPageSwiper,{mobileSwiperTabs:e.props.mobileSwiperTabs.length===0?JSON.parse(e.mobileProperties):e.props.mobileSwiperTabs,activeTab:"#flight-search"},null,8,["mobileSwiperTabs"])],!0)]),default:withCtx(()=>{var xt,eo,bo,Co,or,rr,fr,nr,ar,ir,gn,Zn,ea,ta,_n,oa,ra,na,aa,Ur,ia,sa,la,ca,da;return[createBaseVNode("div",{class:normalizeClass(["generic-container mb-20",{"mt-4":(xt=e.props.labels)==null?void 0:xt.enableGlassDesign}])},[createVNode(e.VueTabs,{ref:"vueTabsComponent",modelValue:e.activeSubTab,"onUpdate:modelValue":[o[24]||(o[24]=gt=>e.activeSubTab=gt),o[25]||(o[25]=gt=>t.$emit("update:active-sub-tab",gt))],enableGlassDesign:(eo=e.props.labels)==null?void 0:eo.enableGlassDesign,renderPanelsWithVShow:""},createSlots({default:withCtx(()=>{var gt,At,mr,hr,gr,_r,br,yr,sr,vr,Zt,Uo,Oo,bn,Gr,fo,yn,vn,Sn,Tn,Cn,kn,uo,ua,mo,pa,wn,Ao,Sr,jr,Kt,Bo,zr,fa,Wr,ma,ha,ga,En,Tr,Go,ba,xn,An,Yr,qr,Bn,ya,Kr,Qr,va,Pn,po,Xr,lr,Nn,Dn,Sa,Ta,Ca,ka,wa,jo,Ea,xa,Jr,Vn,Po,Cr,Aa,Ba,Pa,zo,yo,Ln,Na,Da,Va,La,Ma,Wo,Pe,Re,Oe,it,St,Ht,to,Wt,Zr,Oa,ho,kr,Ia,Yo,wr,Er,Gt,Fa,Mn,xr,Ra,$a,Ha,Ar,No,Br,On,Pr,In,Fn,Nr,Rn,cr,Io,Dr,Ua,Ga,ja,Vr,Lr,en,za,$n,Wa,Ya,oo,ao,qa,Ka,Hn,so,ii,Un,si,tn,Gn,jn,Qa,rn,ki,wi,Ei,xi,Ai,Xa,zn,fi,ie,nn,Ja,ko,Rt,Bi,Pi,Ni,Mr,Di,Vi,Li,Mi,Oi,qo,Ii,Fi,Ri;return[(At=(gt=e.props.bookFlight)==null?void 0:gt.general)!=null&&At.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_41,[(hr=(mr=e.props.bookFlight)==null?void 0:mr.general)!=null&&hr.enableGlassDesign&&e.activeSubTab!=="redeem-flight"&&e.isONDSelected?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([{"glass-design flex":e.props.labels.enableGlassDesign},"mt-3"])},[(gr=e.props.bookFlight)!=null&&gr.expressBooking&&((_r=e.props.bookFlight)!=null&&_r.expressBooking.turnOnExpressBooking)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["flex items-center express-booking-wrapper",{disabled:!e.isExpressBookingDisabled}])},[createBaseVNode("label",_hoisted_42,[withDirectives(createBaseVNode("input",{"onUpdate:modelValue":o[15]||(o[15]=ro=>e.subPageMblExpressBooking=ro),type:"checkbox"},null,512),[[vModelCheckbox,e.subPageMblExpressBooking]]),o[30]||(o[30]=createBaseVNode("span",{class:"check-mark"},null,-1)),createBaseVNode("span",_hoisted_43,toDisplayString((yr=(br=e.props.bookFlight)==null?void 0:br.expressBooking)==null?void 0:yr.expressBookingCheckboxLabel),1)])],2)):createCommentVNode("",!0),(vr=(sr=e.props.bookFlight)==null?void 0:sr.expressBooking)!=null&&vr.expressBookingTooltipDescription?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_44,[createVNode(d,{class:"icon fill-primary-blue-base w-5 ml-1","aria-hidden":"true"})])]),"tooltip-content":withCtx(()=>{var ro;return[withDirectives(createBaseVNode("div",null,null,512),[[f,(ro=e.props.bookFlight)==null?void 0:ro.expressBooking.expressBookingTooltipDescription]])]}),_:1})):createCommentVNode("",!0)],2)):createCommentVNode("",!0),createVNode(e.SubTabBookFlight,{ref:"subTabBookFlightEl",class:"pt-6",hideTodayDateIndicator:(Uo=(Zt=e.props.labels)==null?void 0:Zt.paymentType)==null?void 0:Uo.hideTodayDateIndicator,subHeaderTabDescription:(bn=(Oo=e.props.bookFlight)==null?void 0:Oo.general)==null?void 0:bn.subHeaderTabDescription,subHeaderTabTooltipBody:(fo=(Gr=e.props.bookFlight)==null?void 0:Gr.general)==null?void 0:fo.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(vn=(yn=e.props.bookFlight)==null?void 0:yn.general)==null?void 0:vn.subHeaderTabTooltipLabel,topNote:(Tn=(Sn=e.props.bookFlight)==null?void 0:Sn.general)==null?void 0:Tn.topNote,note:(kn=(Cn=e.props.bookFlight)==null?void 0:Cn.general)==null?void 0:kn.note,searchFlightCTAText:(ua=(uo=e.props.bookFlight)==null?void 0:uo.general)==null?void 0:ua.searchFlightCTAText,ondSelection:(mo=e.props.bookFlight)==null?void 0:mo.ondSelection,additionalONDFilter:(wn=(pa=e.props.bookFlight)==null?void 0:pa.general)==null?void 0:wn.ondFilter,datePicker:(Ao=e.props.bookFlight)==null?void 0:Ao.datePicker,promoCodeL
1181abel:(jr=(Sr=e.props.bookFlight)==null?void 0:Sr.promoCode)==null?void 0:jr.promoCodeLabel,promoCodeErrorMessage:(Bo=(Kt=e.props.bookFlight)==null?void 0:Kt.promoCode)==null?void 0:Bo.promoCodeErrorMessage,supersedePromoCode:(Wr=(fa=(zr=e.props.bookFlight)==null?void 0:zr.promoCode)==null?void 0:fa.supersedePromoCode)==null?void 0:Wr.trim(),supersedeOfficeIdSuffix:(ga=(ha=(ma=e.props.bookFlight)==null?void 0:ma.officeIdSection)==null?void 0:ha.supersedeOfficeIdSuffix)==null?void 0:ga.trim(),passengerSelection:(En=e.props.bookFlight)==null?void 0:En.passengerSelection,bstNoteTop:(Go=(Tr=e.props.bonusSideTrip)==null?void 0:Tr.bstPage)==null?void 0:Go.bstNoteTop,bstNoteCTAText:(xn=(ba=e.props.bonusSideTrip)==null?void 0:ba.bstPage)==null?void 0:xn.bstNoteCTAText,bstNoteCTAURL:(Yr=(An=e.props.bonusSideTrip)==null?void 0:An.bstPage)==null?void 0:Yr.bstNoteCTAURL,subHeaderTooltipCTATextMobileLabel:(qr=e.props.mobileAddOns)==null?void 0:qr.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(Bn=e.props.mobileAddOns)==null?void 0:Bn.fromQuestionMobile,toQuestionMobile:(ya=e.props.mobileAddOns)==null?void 0:ya.toQuestionMobile,datePickerQuestionMobile:(Kr=e.props.mobileAddOns)==null?void 0:Kr.datePickerQuestionMobile,passengerSelectionQuestion:(Qr=e.props.mobileAddOns)==null?void 0:Qr.passengerSelectionQuestion,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:(Pn=(va=e.props.labels)==null?void 0:va.mattaFair)==null?void 0:Pn.enableMattaToggleButton,mattaToggleButtonLabel:(Xr=(po=e.props.labels)==null?void 0:po.mattaFair)==null?void 0:Xr.mattaToggleButtonLabel,hidePromoCodeField:(Nn=(lr=e.props.bookFlight)==null?void 0:lr.promoCode)==null?void 0:Nn.hidePromoCodeField,enrichAlwaysOn:(Sa=(Dn=e.props.bookFlight)==null?void 0:Dn.enrichAlwaysOn)==null?void 0:Sa.enableFunctionality,autoApplyEnrichAlwaysOn:(Ca=(Ta=e.props.bookFlight)==null?void 0:Ta.enrichAlwaysOn)==null?void 0:Ca.autoApplyEnrichAlwaysOn,enablePostMattaCampaign:(wa=(ka=e.props.bookFlight)==null?void 0:ka.enrichAlwaysOn)==null?void 0:wa.enablePostMattaCampaign,nonLoggedInMessageNote:(Ea=(jo=e.props.bookFlight)==null?void 0:jo.enrichAlwaysOn)==null?void 0:Ea.nonLoggedInMessageNote,loggedInMessageNote:(Jr=(xa=e.props.bookFlight)==null?void 0:xa.enrichAlwaysOn)==null?void 0:Jr.loggedInMessageNote,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:(Po=(Vn=e.props.labels)==null?void 0:Vn.nearYou)==null?void 0:Po.disableGeolocation,disableCalendarPickerAnimation:!0,countryVariants:e.props.countryVariants,expressBooking:(Cr=e.props.bookFlight)==null?void 0:Cr.expressBooking,signUpApiUrl:e.props.signUpApiUrl,dspbookingEnable:e.props.dspBookingRedirector.dspbookingEnable,enableDSPBookingRedirector:e.props.dspBookingRedirector.enableDSPBookingRedirector,dspBookingApiUrl:e.props.dspBookingApiUrl,enableGlassDesign:(Ba=(Aa=e.props.bookFlight)==null?void 0:Aa.general)==null?void 0:Ba.enableGlassDesign,mblExpressBookingSelected:e.subPageMblExpressBooking,promoCode:e.promoCode,onExpressBookingStatus:e.handleExpressBookingStatus,onExpressBookingDisabled:e.handleExpressBookingDisabled,onSaveSearchData:o[16]||(o[16]=ro=>e.handleSaveSearchData({isBSTTab:!1,...ro})),onShowBstOverlay:e.handleShowBSTOverlay,onFormSubmission:o[17]||(o[17]=ro=>e.sendFormCompleteAA("book-flight",ro)),"onOn:trigger":e.triggerFlightStartEvent,onOndSelected:o[18]||(o[18]=ro=>e.isONDSelected=ro==null?void 0:ro.selected)},null,8,["hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","topNote","note","searchFlightCTAText","ondSelection","additionalONDFilter","datePicker","promoCodeL
1181abel","promoCodeErrorMessage","supersedePromoCode","supersedeOfficeIdSuffix","passengerSelection","bstNoteTop","bstNoteCTAText","bstNoteCTAURL","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","datePickerQuestionMobile","passengerSelectionQuestion","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","hidePromoCodeField","enrichAlwaysOn","autoApplyEnrichAlwaysOn","enablePostMattaCampaign","nonLoggedInMessageNote","loggedInMessageNote","enrichAlwaysOnCountriesData","disableGeolocation","countryVariants","expressBooking","signUpApiUrl","dspbookingEnable","enableDSPBookingRedirector","dspBookingApiUrl","enableGlassDesign","mblExpressBookingSelected","promoCode"]),(zo=(Pa=e.props.bookFlight)==null?void 0:Pa.general)!=null&&zo.enableGlassDesign&&e.bookingWidgetSubPageVisible?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([{"glass-design":(yo=e.props.labels)==null?void 0:yo.enableGlassDesign},"mt-3"])},[createBaseVNode("div",null,[e.props.isHideContinueYourSearchSection?createCommentVNode("",!0):(openBlock(),createBlock(e.ContinueYourSearch,{key:0,ref:"continueYourSearchComponent",class:"continue-your-search-container",continueYourSearchLabel:(Na=(Ln=e.props.bookFlight)==null?void 0:Ln.continueYourSearch)==null?void 0:Na.continueYourSearchLabel,economyLabel:(Va=(Da=e.props.bookFlight)==null?void 0:Da.passengerSelection)==null?void 0:Va.economyLabel,businessLabel:(Ma=(La=e.props.bookFlight)==null?void 0:La.passengerSelection)==null?void 0:Ma.businessLabel,businessSuiteLabel:(Pe=(Wo=e.props.bookFlight)==null?void 0:Wo.passengerSelection)==null?void 0:Pe.businessSuiteLabel,enableGlassDesign:(Re=e.props.labels)==null?void 0:Re.enableGlassDesign,nonLoggedInMessage:(it=(Oe=e.props.bookFlight)==null?void 0:Oe.enrichAlwaysOn)==null?void 0:it.nonLoggedInMessageNote,activeSubTab:e.activeSubTab,onIsPastSearchEmpty:e.handleShowLoginNote,onRestorePastSearch:e.restorePastSearch},null,8,["continueYourSearchLabel","economyLabel","businessLabel","businessSuiteLabel","enableGlassDesign","nonLoggedInMessage","activeSubTab"]))])],2)):createCommentVNode("",!0)])),(Ht=(St=e.props.multiCity)==null?void 0:St.general)!=null&&Ht.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_45,[createVNode(e.SubTabMultiCity,{class:"pt-6",subHeaderTabDescription:(Wt=(to=e.props.multiCity)==null?void 0:to.general)==null?void 0:Wt.subHeaderTabDescription,subHeaderTabTooltipBody:(Oa=(Zr=e.props.multiCity)==null?void 0:Zr.general)==null?void 0:Oa.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(kr=(ho=e.props.multiCity)==null?void 0:ho.general)==null?void 0:kr.subHeaderTabTooltipLabel,note:(Yo=(Ia=e.props.multiCity)==null?void 0:Ia.general)==null?void 0:Yo.note,removeCTAText:(Er=(wr=e.props.multiCity)==null?void 0:wr.general)==null?void 0:Er.removeCTAText,addAnotherFlightCTAText:(Fa=(Gt=e.props.multiCity)==null?void 0:Gt.general)==null?void 0:Fa.addAnotherFlightCTAText,searchFlightCTAText:(xr=(Mn=e.props.multiCity)==null?void 0:Mn.general)==null?void 0:xr.searchFlightCTAText,ondSelection:(Ra=e.props.multiCity)==null?void 0:Ra.ondSelection,datePicker:($a=e.props.multiCity)==null?void 0:$a.datePicker,passengerSelection:(Ha=e.props.multiCity)==null?void 0:Ha.passengerSelection,subHeaderTooltipCTATextMobileLabel:(Ar=e.props.mobileAddOns)==null?void 0:Ar.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(No=e.props.mobileAddOns)==null?void 0:No.fromQuestionMobile,toQuestionMobile:(Br=e.props.mobileAddOns)==null?void 0:Br.toQuestionMobile,datePickerQuestionMobile:(On=e.props.mobileAddOns)==null?void 0:On.datePickerQuestionMobile,passengerSelectionQuestion:(Pr=e.props.mobileAddOns)==null?void 0:Pr.passengerSelectionQuestion,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,promoCode:(In=e.props.multiCity)==null?void 0:In.promoCode,countryVariants:e.props.countryVariants,enableGlassDesign:(Nr=(Fn=e.props.multiCity)==null?void 0:Fn.general)==null?void 0:Nr.enableGlassDesign,"onOn:trigger":e.triggerFlightStartEvent,onFormSubmission:o[19]||(o[19]=ro=>e.sendFormCompleteAA("multi-city",ro))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","removeCTAText","addAnotherFlightCTAText","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","datePickerQuestionMobile","passengerSelectionQuestion","flightSearchApiUrl","cabinClassCashList","promoCode","countryVariants","enableGlassDesign"])])),(cr=(Rn=e.props.labels)==null?void 0:Rn.flightType)!=null&&cr.isHideInMobileRedeemFlight?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_46,[createVNode(e.SubTabRedeemFlight,{ref:"subTabRedeemFlightEl",class:"pt-6",payByEnrichPoints:!0,hideTodayDateIndicator:(Dr=(Io=e.props.labels)==null?void 0:Io.paymentType)==null?void 0:Dr.hideTodayDateIndicator,owGeneralDetails:e.props.redeemFlightOW.general,owOndSelection:(Ua=e.props.redeemFlightOW)==null?void 0:Ua.ondSelection,owDatePicker:(Ga=e.props.redeemFlightOW)==null?void 0:Ga.datePicker,owPasse
1181ngerSelection:(ja=e.props.redeemFlightOW)==null?void 0:ja.passengerSelection,owPromoCode:(Vr=e.props.redeemFlightOW)==null?void 0:Vr.promoCode,owEnrichAlwaysOn:(Lr=e.props.redeemFlightOW)==null?void 0:Lr.enrichAlwaysOn,mhGeneralDetails:(en=e.props.redeemFlight)==null?void 0:en.general,mhOndSelection:(za=e.props.redeemFlight)==null?void 0:za.ondSelection,mhDatePicker:($n=e.props.redeemFlight)==null?void 0:$n.datePicker,mhPassengerSelection:(Wa=e.props.redeemFlight)==null?void 0:Wa.passengerSelection,mhPromoCode:(Ya=e.props.redeemFlight)==null?void 0:Ya.promoCode,mhEnrichAlwaysOn:(oo=e.props.redeemFlight)==null?void 0:oo.enrichAlwaysOn,subHeaderTooltipCTATextMobileLabel:(ao=e.props.mobileAddOns)==null?void 0:ao.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(qa=e.props.mobileAddOns)==null?void 0:qa.fromQuestionMobile,toQuestionMobile:(Ka=e.props.mobileAddOns)==null?void 0:Ka.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:(so=(Hn=e.props.labels)==null?void 0:Hn.mattaFair)==null?void 0:so.enableMattaToggleButton,mattaToggleButtonLabel:(Un=(ii=e.props.labels)==null?void 0:ii.mattaFair)==null?void 0:Un.mattaToggleButtonLabel,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:(tn=(si=e.props.labels)==null?void 0:si.nearYou)==null?void 0:tn.disableGeolocation,enableONDLocaleTranslation:(jn=(Gn=e.props.labels)==null?void 0:Gn.ondLocale)==null?void 0:jn.isEnableLocale,countryVariants:e.props.countryVariants,cabinClassMilesOWList:e.props.cabinClassMilesOWList,enableGlassDesign:(rn=(Qa=e.props.redeemFlight)==null?void 0:Qa.general)==null?void 0:rn.enableGlassDesign,onSaveSearchData:o[20]||(o[20]=ro=>e.handleSaveSearchData({isBSTTab:!1,...ro})),onShowBstOverlay:e.handleShowBSTOverlay,onFormSubmission:o[21]||(o[21]=ro=>e.sendFormCompleteAA("redeem-flight",ro))},null,8,["hideTodayDateIndicator","owGeneralDetails","owOndSelection","owDatePicker","owPassengerSelection","owPromoCode","owEnrichAlwaysOn","mhGeneralDetails","mhOndSelection","mhDatePicker","mhPassengerSelection","mhPromoCode","mhEnrichAlwaysOn","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","enrichAlwaysOnCountriesData","disableGeolocation","enableONDLocaleTranslation","countryVariants","cabinClassMilesOWList","enableGlassDesign"])])),(wi=(ki=e.props.bonusSideTrip)==null?void 0:ki.general)!=null&&wi.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_47,[createVNode(e.SubTabBonusSideTrip,{ref:"subTabBonusSideTripEl",class:"pt-6",subHeaderTabDescription:(xi=(Ei=e.props.bonusSideTrip)==null?void 0:Ei.general)==null?void 0:xi.subHeaderTabDescription,subHeaderTabTooltipBody:(Xa=(Ai=e.props.bonusSideTrip)==null?void 0:Ai.general)==null?void 0:Xa.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(fi=(zn=e.props.bonusSideTrip)==null?void 0:zn.general)==null?void 0:fi.subHeaderTabTooltipLabel,note:(nn=(ie=e.props.bonusSideTrip)==null?void 0:ie.general)==null?void 0:nn.note,searchFlightCTAText:(ko=(Ja=e.props.bonusSideTrip)==null?void 0:Ja.general)==null?void 0:ko.searchFlightCTAText,ondSelection:(Rt=e.props.bonusSideTrip)==null?void 0:Rt.ondSelection,datePicker:(Bi=e.props.bonusSideTrip)==null?void 0:Bi.datePicker,passengerSelection:(Pi=e.props.bonusSideTrip)==null?void 0:Pi.passengerSelection,subHeaderTooltipCTATextMobileLabel:(Ni=e.props.mobileAddOns)==null?void 0:Ni.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(Mr=e.props.mobileAddOns)==null?void 0:Mr.fromQuestionMobile,toQuestionMobile:(Di=e.props.mobileAddOns)==null?void 0:Di.toQuestionMobile,datePickerQuestionMobile:(Vi=e.props.mobileAddOns)==null?void 0:Vi.datePickerQuestionMobile,passengerSelectionQuestion:(Li=e.props.mobileAddOns)==null?void 0:Li.passengerSelectionQuestion,cabinClassCashList:e.props.cabinClassCashList,countryVariants:e.props.countryVariants,enableGlassDesign:(Oi=(Mi=e.props.bonusSideTrip)==null?void 0:Mi.general)==null?void 0:Oi.enableGlassDesign,onSaveSearchData:o[22]||(o[22]=ro=>e.handleSaveSearchData({isBSTTab:!0,...ro})),onShowBstOverlay:e.handleShowBSTOverlay,onFormSubmission:o[23]||(o[23]=ro=>e.sendFormCompleteAA("bonus-side-trip"))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","datePickerQuestionMobile","passengerSelectionQuestion","cabinClassCashList","countryVariants","enableGlassDesign"])])),!((Ii=(qo=e.props.termsAndConditionsTab)==null?void 0:qo.general)!=null&&Ii.isHideInMobile)&&((Fi=e.props.termsAndConditionsTab)!=null&&Fi.showTandCTab)?(openBlock(),createElementBlock("div",_hoisted_48,[createVNode(e.SubTabTermsConditions,{content:(Ri=e.props.termsAndConditionsTab)==null?void 0:Ri.termsAndConditions},null,8,["content"])])):createCommentVNode("",!0)]}),_:2},[!((Co=(bo=e.props.bookFlight)==null?void 0:bo.general)!=null&&Co.isHideInMobile)&&((rr=(or=e.props.labels)==null?void 0:or.flightType)!=null&&rr.bookFlightLabel)?{name:"tab-book-flight",fn:withCtx(()=>{var gt,At;return[createBaseVNode("div",_hoisted_31$4,[createBaseVNode("span",_hoisted_32$4,toDisplayString((At=(gt=e.props.labels)==null?void 0:gt.flightType)==null?void 0:At.bookFlightLabel),
11811)])]}),key:"0"}:void 0,!((nr=(fr=e.props.multiCity)==null?void 0:fr.general)!=null&&nr.isHideInMobile)&&((ir=(ar=e.props.labels)==null?void 0:ar.flightType)!=null&&ir.multiCityLabel)?{name:"tab-multi-city",fn:withCtx(()=>{var gt,At;return[createBaseVNode("div",_hoisted_33$1,[createBaseVNode("span",_hoisted_34$1,toDisplayString((At=(gt=e.props.labels)==null?void 0:gt.flightType)==null?void 0:At.multiCityLabel),1)])]}),key:"1"}:void 0,!((Zn=(gn=e.props.labels)==null?void 0:gn.flightType)!=null&&Zn.isHideInMobileRedeemFlight)&&((ta=(ea=e.props.labels)==null?void 0:ea.flightType)!=null&&ta.redeemFlightLabel)?{name:"tab-redeem-flight",fn:withCtx(()=>{var gt,At;return[createBaseVNode("div",_hoisted_35$1,[createBaseVNode("span",_hoisted_36,toDisplayString((At=(gt=e.props.labels)==null?void 0:gt.flightType)==null?void 0:At.redeemFlightLabel),1)])]}),key:"2"}:void 0,!((oa=(_n=e.props.labels)==null?void 0:_n.flightType)!=null&&oa.isHideInMobile)&&((na=(ra=e.props.labels)==null?void 0:ra.flightType)!=null&&na.roundTheWorldLabel)?{name:"link-round-the-world",fn:withCtx(()=>{var gt,At,mr,hr,gr,_r,br,yr,sr,vr;return[withDirectives((openBlock(),createBlock(e.AppHyperlink,{href:(At=(gt=e.props.labels)==null?void 0:gt.flightType)==null?void 0:At.roundTheWorldURL,class:"font-semibold text-$text-color rounded-xl px-4 hover:bg-neutral-grey-extralight h-full leading-none",target:(hr=(mr=e.props.labels)==null?void 0:mr.flightType)!=null&&hr.openInNewTab?"_blank":"_self",autoExternalLinkIcon:!0},{default:withCtx(()=>{var Zt,Uo;return[createTextVNode(toDisplayString((Uo=(Zt=e.props.labels)==null?void 0:Zt.flightType)==null?void 0:Uo.roundTheWorldLabel),1)]}),_:1},8,["href","target"])),[[u,[{clickName:(_r=(gr=e.props.labels)==null?void 0:gr.flightType)==null?void 0:_r.roundTheWorldLabel,clickComponentType:"Button",componentName:"FlightSearch",componentID:e.props.componentIdAA},{name:(yr=(br=e.props.labels)==null?void 0:br.flightType)==null?void 0:yr.roundTheWorldLabel,type:e.isUrlMatchCurrentHostname((vr=(sr=e.props.labels)==null?void 0:sr.flightType)==null?void 0:vr.roundTheWorldURL)?"other":"exit"}]]])]}),key:"3"}:void 0,!((Ur=(aa=e.props.bonusSideTrip)==null?void 0:aa.general)!=null&&Ur.isHideInMobile)&&((sa=(ia=e.props.labels)==null?void 0:ia.flightType)!=null&&sa.bonusSideTripLabel)?{name:"tab-bonus-side-trip",fn:withCtx(()=>{var gt,At;return[createBaseVNode("div",_hoisted_37,[createBaseVNode("span",_hoisted_38,toDisplayString((At=(gt=e.props.labels)==null?void 0:gt.flightType)==null?void 0:At.bonusSideTripLabel),1)])]}),key:"4"}:void 0,!((ca=(la=e.props.termsAndConditionsTab)==null?void 0:la.general)!=null&&ca.isHideInMobile)&&((da=e.props.termsAndConditionsTab)!=null&&da.showTandCTab)?{name:"tab-terms-and-conditions",fn:withCtx(()=>{var gt;return[createBaseVNode("div",_hoisted_39,[createBaseVNode("span",_hoisted_40,toDisplayString((gt=e.props.termsAndConditionsTab)==null?void 0:gt.termsAndConditionsLabel),1)])]}),key:"5"}:void 0]),1032,["modelValue","enableGlassDesign"])],2),e.isLoading?(openBlock(),createBlock(Teleport,{key:0,to:"body"},[createBaseVNode("div",_hoisted_49,[createBaseVNode("div",_hoisted_50,[createVNode(c)])])])):createCommentVNode("",!0)]}),_:3},8,["isVisible","mobileSubPageDesign","enableGlassDesign","blendedHeaderCss","mobileSwiperTabs"]),createVNode(e.OverlayBonusSideTrip,{isVisible:e.isBSTOverlayVisible,bstNoteTop:(st=($e=e.props.bonusSideTrip)==null?void 0:$e.bstPage)==null?void 0:st.bstNoteTop,bstNoteCTAText:(Bt=(bt=e.props.bonusSideTrip)==null?void 0:bt.bstPage)==null?void 0:Bt.bstNoteCTAText,bstNoteCTAURL:(Ze=(rt=e.props.bonusSideTrip)==null?void 0:rt.bstPage)==null?void 0:Ze.bstNoteCTAURL,bstEditSearchCTAText:(Ye=(dt=e.props.bonusSideTrip)==null?void 0:dt.bstPage)==null?void 0:Ye.bstEditSearchCTAText,bstLabel:(et=(lt=e.props.bonusSideTrip)==null?void 0:lt.bstPage)==null?void 0:et.bstLabel,optionLabel:(Pt=(nt=e.props.bonusSideTrip)==null?void 0:nt.bstPage)==null?void 0:Pt.optionLabel,visitMalaysiaLabel:(Nt=(ft=e.props.bonusSideTrip)==null?void 0:ft.bstPage)==null?void 0:Nt.visitMalaysiaLabel,yourDateOfChoiceLabel:(yt=(Ot=e.props.bonusSideTrip)==null?void 0:Ot.bstPage)==null?void 0:yt.yourDateOfChoiceLabel,question1Text:(_t=(Dt=e.props.bonusSideTrip)==null?void 0:Dt.bstPage)==null?void 0:_t.question1Text,question2Text:(Le=(Ie=e.props.bonusSideTrip)==null?void 0:Ie.bstPage)==null?void 0:Le.question2Text,continueWithoutBSTCTAText:(We=(ct=e.props.bonusSideTrip)==null?void 0:ct.bstPage)==null?void 0:We.continueWithoutBSTCTAText,continueCTAText:(He=(we=e.props.bonusSideTrip)==null?void 0:we.bstPage)==null?void 0:He.continueCTAText,toLabel:(kt=(ot=e.props.bonusSideTrip)==null?void 0:ot.bstPage)==null?void 0:kt.toLabel,departLabel:(wt=(Yt=e.props.bonusSideTrip)==null?void 0:Yt.bstPage)==null?void 0:wt.departLabel,bstQuestion1MobileLabel:(Vt=e.props.mobileAddOns)==null?void 0:Vt.bstQuestion1MobileLabel,bstQuestion2MobileLabel:(zt=e.props.mobileAddOns)==null?void 0:zt.bstQuestion2MobileLabel,bstDisabledContinueCtaLabel:(xe=(_o=e.props.bonusSideTrip)==null?void 0:_o.bstPage)==null?void 0:xe.disabledContinueCtaLabel,ondSelection:(Ke=e.props.bonusSideTrip)==null?void 0:Ke.ondSelection,datePicker:(Ge=e.props.bonusSideTrip)==null?void 0:Ge.datePicker,passengerSelection:(ut=e.props.bonusSideTrip)==null?void 0:ut.passengerSelection,fromQuestionMobile:(Et=e.props.mobileAddOns)==null?void 0:Et.fromQuestionMobile,toQuestionMobile:(Ft=e.props.mobileAddOns)==null?void 0:Ft.toQuestionMobile,datePickerQuestionMobile:(qt=e.props.mobileAddOns)==null?void 0:qt.datePickerQuestionMobile,passengerSelectionQuestion:(Jt=e.props.mobileAddOns)==null?void 0:Jt.passengerSelectionQuestion,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,flightSearchApiUrl:e.props.flightSearchApiUrl,bstAssetType:(Xt=e.props.bonusSideTrip.bstPage)==null?void 0:Xt.assetType,bstAssetPath:(To=e.props.bonusSideTrip.bstPage)==null?void 0:To.assetPath,reviewYourTripLabel:(Zo=e.props.bonusSideTrip.bstPage)==null?void 0:Zo.reviewYourTripLabel,bonusSideTripLabel:(er=e.props.bonusSideTrip.bstPage)==null?void 0:er.bonusSideTripLabel,freeJustPayTaxesLabel:(hn=e.props.bonusSideTrip.bstPage)==null?void 0:hn.freeJustPayTaxesLabel,visitAnotherCityText:(Rr=e.props.bonusSideTrip.bstPage)==null?void 0:Rr.visitAnotherCityText,enableGlassDesign:(ai=(Xn=e.props.bonusSideTrip)==null?void 0:Xn.general)==null?void 0:ai.enableGlassDesign,enableBSTNewDesign:(Jn=e.props.bonusSideTrip.bstPage)==null?void 0:Jn.enableBSTNewDesign,componentIdAA:e.props.componentIdAA,extraONDFilterForFlightSearch:{additionalONDFilter:($r=(tr=e.props.bookFlight)==null?void 0:tr.general)==null?void 0:$r.ondFilter,ondSelection:(Hr=e.props.bookFlight)==null?void 0:Hr.ondSelection},"onUpdate:isVisible":o[27]||(o[27]=xt=>
1181e.isBSTOverlayVisible=xt)},null,8,["isVisible","bstNoteTop","bstNoteCTAText","bstNoteCTAURL","bstEditSearchCTAText","bstLabel","optionLabel","visitMalaysiaLabel","yourDateOfChoiceLabel","question1Text","question2Text","continueWithoutBSTCTAText","continueCTAText","toLabel","departLabel","bstQuestion1MobileLabel","bstQuestion2MobileLabel","bstDisabledContinueCtaLabel","ondSelection","datePicker","passengerSelection","fromQuestionMobile","toQuestionMobile","datePickerQuestionMobile","passengerSelectionQuestion","cabinClassCashList","cabinClassMilesList","flightSearchApiUrl","bstAssetType","bstAssetPath","reviewYourTripLabel","bonusSideTripLabel","freeJustPayTaxesLabel","visitAnotherCityText","enableGlassDesign","enableBSTNewDesign","componentIdAA","extraONDFilterForFlightSearch"])],64)}const FlightSearch=_export_sfc(_sfc_main$1a,[["render",_sfc_render$1a],["__scopeId","data-v-207b9dc9"],["__file","FlightSearch.vue"]]),FlightSearch$1=Object.freeze(Object.defineProperty({__proto__:null,default:FlightSearch},Symbol.toStringTag,{value:"Module"})),__default__$18={name:"SubTabCities"},_sfc_main$19=Object.assign(__default__$18,{props:{externalUrl:{type:String,default:""},buttonLabel:{type:String,default:""},dateField:{type:Object,default:()=>null},description:{type:String,default:""},from:{type:Object,default:()=>null},label:{type:String,default:""},note:{type:String,default:""},to:{type:Object,default:()=>null},tooltipBody:{type:String,default:""},tooltipLabel:{type:String,default:""},componentIdAA:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1}},emits:["update:modelValue","form-submission"],setup(t,{expose:o,emit:r}){o();const{pageProperties:e}=useGlobalAEMState$1(),n=t,a=r,i=ref$1(null),s=(_,S)=>{console.log("✅ handleSubmitValid values = ",_),a("form-submission",_),m()},l=({values:_,errors:S,results:C,evt:T})=>{console.log("❌ handleSubmitInvalid errors = ",S)},d=ref$1(dayjs().format("YYYY-MM-DD")),c=ref$1(null),u=ref$1(null),f=computed(()=>(d.value,c.value,u.value,i.value?!d.value||!c.value||!u.value||Object.keys(i.value.errors).length!==0:!0)),m=()=>{const _={language:e.value.rootLanguage,departureDate:d.value,departureCity:c.value.value,arrivalCity:u.value.value},S=new URL(n.externalUrl);Object.keys(_).forEach(C=>{S.searchParams.append(C,_[C])}),window.location.href=S.toString()},b=window.siteName,y={pageProperties:e,props:n,emit:a,formWrapper:i,handleSubmitValid:s,handleSubmitInvalid:l,datepickerValue:d,ondValueFrom:c,ondValueTo:u,isBtnSubmitDisabled:f,triggerRedirection:m,siteName:b,ONDPicker:ONDPicker$1,DatePicker,get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport},CTAButton,FormWrapper,Tooltip,get dayjs(){return dayjs}};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),_hoisted_1$1a={class:"SubTabCities"},_hoisted_2$12={key:0,class:"mb-5"},_hoisted_3$F={class:"flex items-center"},_hoisted_4$y={key:0},_hoisted_5$v={class:"flex gap-6 xl:gap-3 xl:flex-wrap lg:flex-col mb-5"},_hoisted_6$t={class:"w-1/4 flex-none xl:w-1/3 lg:w-full"},_hoisted_7$t={class:"flex-grow lg:w-full"},_hoisted_8$r={class:"w-[max-content] flex-none xl:w-full"},_hoisted_9$o={class:"text-sm"};function _sfc_render$19(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa");return openBlock(),createElementBlock("div",_hoisted_1$1a,[createVNode(e.FormWrapper,{ref:"formWrapper",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:c})=>{var u,f;return[e.props.description?withDirectives((openBlock(),createElementBlock("p",_hoisted_2$12,null,512)),[[l,e.props.description]]):createCommentVNode("",!0),e.props.tooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$F,[createVNode(i,{class:normalizeClass(["mr-4 rtl:mr-0 rtl:ml-4",e.siteName==="firefly"?"fill-secondary-firefly-orange-extradark":"fill-primary-blue-base"]),"aria-hidden":"true"},null,8,["class"]),createTextVNode(" "+toDisplayString(e.props.tooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipLabel),1)]),"tooltip-content":withCtx(()=>[e.props.tooltipBody?withDirectives((openBlock(),createElementBlock("p",_hoisted_4$y,null,512)),[[l,e.props.tooltipBody]]):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$v,[createBaseVNode("div",_hoisted_6$t,[createVNode(e.DatePicker,{modelValue:e.datepickerValue,"onUpdate:modelValue":o[0]||(o[0]=m=>e.datepickerValue=m),name:"flight-status-cities-date",ariaLabel:e.props.dateField.label,maxDate:`t+${e.props.dateField.maxDaysFuture}`,minDate:`t-${e.props.dateField.maxDaysPast}`,variant:"booking-widget",enableGlassDesign:e.props.enableGlassDesign,required:""},null,8,["modelValue","ariaLabel","maxDate","minDate","enableGlassDesign"])]),createBaseVNode("div",_hoisted_7$t,[createVNode(e.ONDPicker,{modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[1]||(o[1]=m=>e.ondValueFrom=m),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":o[2]||(o[2]=m=>e.ondValueTo=m),nameFrom:"flight-status-cities-from",nameTo:"flight-status-cities-to",requiredFrom:e.props.from.isMandatory,requiredTo:e.props.to.isMandatory,requiredErrorMsgFrom:e.props.from.errorMessage,requiredErrorMsgTo:e.props.to.errorMessage,labelTextFrom:e.props.from.label,labelTextTo:e.props.to.label,ondListIdentifier:"FLIGHT_STATUS",enableGlassDesign:e.props.enableGlassDesign,placeHolderFrom:(u=e.props.from)==null?void 0:u.placeHolderFrom,placeHolderTo:(f=e.props.to)==null?void 0:f.placeHolderTo},null,8,["modelValueFrom","modelValueTo","requiredFrom","requiredTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","enableGlassDesign","placeHolderFrom","placeHolderTo"])]),createBaseVNode("div",_hoisted_8$r,[withDirectives(createVNode(e.CTAButton,{isSubmit:!0,sizeType:e.isMobileViewport?"small":"large",ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled,alignmentDesktop:"right",class:normalizeClass(["lg:mx-auto lg:mt-3",{"class-design-ct-btn":e.props.enableGlassDesign}]),ctaText:e.props.buttonLabel},null,8,["sizeType","ctaSizing","disabled","class","ctaText"]),[[d,[{clickName:e.props.buttonLabel,clickComponentType:"Button",componentName:"SubTabCities",componentID:e.props.componentIdAA},{name:e.props.buttonLabel,type:"exit"}]]])])]),e.props.note?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["flex gap-3 justify-start px-4 py-4 rounded-xl",e.siteName==="firefly"?"bg-secondary-firefly-orange-ultralight text-primary-firefly-black-base":"bg-primary-blue-extralight text-primary-black-base"])},[createVNode(s,{class:normalizeClass(["text-base",e.siteName==="firefly"?"fill-secondary-firefly-orange-extradark":"fill-primary-blue-base"])},null,8,["class"]),createBaseVNode("div",_hoisted_9$o,[withDirectives(createBaseVNode("p",null,null,512),[[l,e.props.note]])])],2)):createCommentVNode("",!0)]}),_:1},512)])}const SubTabCities=_export_sfc(_sfc_main$19,[["render",_sfc_render$19],["__scopeId","data-v-8311b162"],["__file","SubTabCities.vue"]]),__default__$17={name:"SubTabFlightNumber"},_sfc_main$18=Object.assign(__default__$17,{props:{content:{type:Object,default:()=>null},buttonLabel:{type:String,default:""},dateField:{type:Object,default:()=>null},description:{type:String,default:""},flight:{type:Object,default:()=>null},label:{type:String,default:""},note:{type:String,default:""},tooltipBody:{type:String,default:""},tooltipLabel:{type:String,default:""},externalUrl:{type:String,default:""},componentIdAA:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1}},emits:["form-submission"],setup(t,{expose:o,emit:r}){o();const{pageProperties:e}=useGlobalAEMState$1(),n=t,a=r,i=ref$1(null),s=(y,_)=>{console.log("✅ handleSubmitValid values = ",y),a("form-submission",y),f()},l=({values:y,errors:_,results:S,evt:C})=>{console.log("❌ handleSubmitInvalid errors = ",_)},d=ref$1(dayjs().format("YYYY-MM-DD")),c=ref$1(null),u=computed(()=>(d.value,c.value,i.value?!d.value||!c.value||Object.keys(i.value.errors).length!==0:!0)),f=()=>{const y={language:e.value.rootLanguage,departureDate:d.value,flightNumber:c.value.padStart(n.flight.minLimit,"0")},_=new URL(n.externalUrl);
1181Object.keys(y).forEach(S=>{_.searchParams.append(S,y[S])}),window.location.href=_.toString()},m=window.siteName,b={pageProperties:e,props:n,emit:a,formWrapper:i,handleSubmitValid:s,handleSubmitInvalid:l,datepickerValue:d,flightNumberValue:c,isBtnSubmitDisabled:u,triggerRedirection:f,siteName:m,get yup(){return yup},TextField,DatePicker,get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport},CTAButton,FormWrapper,Tooltip,get dayjs(){return dayjs}};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),_hoisted_1$19={key:0,class:"mb-5"},_hoisted_2$11={class:"flex items-center"},_hoisted_3$E={key:0},_hoisted_4$x={class:"form-container flex gap-6 mb-5 xl:gap-3 xl:flex-wrap lg:flex-col"},_hoisted_5$u={class:"w-1/4 flex-none xl:w-1/3 lg:w-full"},_hoisted_6$s={class:"flex-grow"},_hoisted_7$s={class:"w-[max-content] flex-none xl:w-full"},_hoisted_8$q={class:"text-sm"};function _sfc_render$18(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa");return openBlock(),createElementBlock("div",{class:normalizeClass(["SubTabFlightNumber",{"glass-design":e.props.enableGlassDesign}])},[createVNode(e.FormWrapper,{ref:"formWrapper",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:c})=>[e.props.description?withDirectives((openBlock(),createElementBlock("p",_hoisted_1$19,null,512)),[[l,e.props.description]]):createCommentVNode("",!0),e.props.tooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$11,[createVNode(i,{class:normalizeClass(["mr-4 rtl:mr-0 rtl:ml-4",e.siteName==="firefly"?"fill-secondary-firefly-orange-extradark":"fill-primary-blue-base"]),"aria-hidden":"true"},null,8,["class"]),createTextVNode(" "+toDisplayString(e.props.tooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipLabel),1)]),"tooltip-content":withCtx(()=>[e.props.tooltipBody?withDirectives((openBlock(),createElementBlock("p",_hoisted_3$E,null,512)),[[l,e.props.tooltipBody]]):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$x,[createBaseVNode("div",_hoisted_5$u,[createVNode(e.DatePicker,{modelValue:e.datepickerValue,"onUpdate:modelValue":o[0]||(o[0]=u=>e.datepickerValue=u),name:"flight-status-flight-number-date",ariaLabel:e.props.dateField.label,maxDate:`t+${e.props.dateField.maxDaysFuture}`,minDate:`t-${e.props.dateField.maxDaysPast}`,variant:"booking-widget",enableGlassDesign:e.props.enableGlassDesign,required:""},null,8,["modelValue","ariaLabel","maxDate","minDate","enableGlassDesign"])]),createBaseVNode("div",_hoisted_6$s,[createVNode(e.TextField,{modelValue:e.flightNumberValue,"onUpdate:modelValue":o[1]||(o[1]=u=>e.flightNumberValue=u),name:"flight-status-flight-number",ariaLabel:e.props.flight.label,placeholder:"E.g. 8990",prefix:e.props.flight.prefilledText,validation:e.yup.string().required(`${e.props.flight.errorMessage}`).matches(/^[0-9]*$/,"Only numbers are allowed").min(`${e.props.flight.minLimit}`,`${e.props.flight.minLimitErrorMessage}`).max(`${e.props.flight.maxLimit}`,`${e.props.flight.maxLimitErrorMessage}`),allowedKeys:/[0-9]/,variant:"booking-widget",maxLength:e.props.flight.maxLimit,enableGlassDesign:e.props.enableGlassDesign},{"short-description":withCtx(()=>[withDirectives(createBaseVNode("p",null,null,512),[[l,e.props.flight.shortDe
1181scription]])]),_:1},8,["modelValue","ariaLabel","prefix","validation","maxLength","enableGlassDesign"])]),createBaseVNode("div",_hoisted_7$s,[withDirectives(createVNode(e.CTAButton,{isSubmit:!0,sizeType:e.isMobileViewport?"small":"large",ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled,alignmentDesktop:"right",class:normalizeClass(["lg:mx-auto lg:mt-3",{"class-design-ct-btn":e.props.enableGlassDesign}]),ctaText:e.props.buttonLabel},null,8,["sizeType","ctaSizing","disabled","class","ctaText"]),[[d,[{clickName:e.props.buttonLabel,clickComponentType:"Button",componentName:"SubTabFlightNumber",componentID:e.props.componentIdAA},{name:e.props.buttonLabel,type:"exit"}]]])])]),e.props.note?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl",e.siteName==="firefly"?"bg-secondary-firefly-orange-ultralight text-primary-firefly-black-base":"bg-primary-blue-extralight text-primary-black-base"])},[createVNode(s,{class:normalizeClass(["text-base",e.siteName==="firefly"?"fill-secondary-firefly-orange-extradark":"fill-primary-blue-base"])},null,8,["class"]),createBaseVNode("div",_hoisted_8$q,[withDirectives(createBaseVNode("p",null,null,512),[[l,e.props.note]])])],2)):createCommentVNode("",!0)]),_:1},512)],2)}const SubTabFlightNumber=_export_sfc(_sfc_main$18,[["render",_sfc_render$18],["__scopeId","data-v-54776177"],["__file","SubTabFlightNumber.vue"]]),__default__$16={name:"FlightStatus",inheritAttrs:!1},_sfc_main$17=Object.assign(__default__$16,{props:{isInBookingWidget:{type:Boolean,default:!1},cities:{type:Object,default:()=>null},flightNumber:{type:Object,default:()=>null},flightStatusEndpointUrl:{type:String,default:""},fireflyFlightStatusEndpointUrl:{type:String,default:""},componentIdAA:{type:String,default:""},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:["update:active-sub-tab"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1("cities"),s=computed(()=>window.siteName==="firefly"?e.fireflyFlightStatusEndpointUrl:e.flightStatusEndpointUrl),{isMobileSubpageVisible:l}=useBookingWidgetSubpage({hashKey:["flight-status","flight-status-tab"],rootEl:a}),{isEditorMode:d}=useGlobalAEMState$1();watch(i,S=>{pushAA_click([{clickName:S,clickComponentType:"Button",componentName:"FlightStatus",componentID:e.componentIdAA},{name:S,type:"other"}])});let c=!1,u=!1;const f=ref$1(""),m=ref$1(null);onMounted(()=>{const S=T=>{c||T.target.tagName!=="FORM"&&(c=!0,pushAA_flightStatusStart(i.value),a.value.removeEventListener("focus",S,{capture:!0}))};a.value.addEventListener("focus",S,{capture:!0});const C=document.querySelector(".global-header");C&&(C.classList.contains("fixed")?f.value="blended-header-css":f.value="",m.value=getCookie("mobileProperties"))});const b=(S,C)=>{if(!u)switch(u=!0,S){case"cities":{pushAA_flightStatusEnd({origin:C["flight-status-cities-from"],destination:C["flight-status-cities-to"],date:C["flight-status-cities-date"]},S);break}case"flight-number":{pushAA_flightStatusEnd({flightNumber:C["flight-status-flight-number"],date:C["flight-status-flight-number-date"]},S);break}}},y=window.siteName,_={props:e,emit:n,rootEl:a,activeSubTab:i,computedFlightStatusEndpointUrl:s,isMobileSubpageVisible:l,isEditorMode:d,get AAHasSentStart(){return c},set AAHasSentStart(S){c=S},get AAHasSentEnd(){return u},set AAHasSentEnd(S){u=S},blendedHeaderCss:f,mobileProperties:m,sendFormCompleteAA:b,siteName:y,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},VueTabs,SubTabCities,SubTabFlightNumber,get useGlobalAEMState(){return useGlobalAEMState$1},get pushAA_flightStatusStart(){return pushAA_flightStatusStart},get pushAA_flightStatusEnd(){return pushAA_flightStatusEnd},get pushAA_click(){return pushAA_click},MobileSubPageSwiper,get getCookie(){return getCookie}};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}),_hoisted_1$18=["data-use-theme"],_hoisted_2$10={class:"generic-container"},_hoisted_3$D={key:0,class:"title-editor-mode"},_hoisted_4$w={class:"flex items-center justify-center p-4"},_hoisted_5$t={class:"inline-block ml-1"},_hoisted_6$r={class:"flex items-center justify-center p-4"},_hoisted_7$r={class:"inline-block ml-1"},_hoisted_8$p={identifier:"cities"},_hoisted_9$n={identifier:"flight-number"}
1181,_hoisted_10$h={key:0,class:"text-center"},_hoisted_11$g={key:1,class:"text-center"},_hoisted_12$f={class:"flex items-center justify-center p-4"},_hoisted_13$e={class:"inline-block ml-1"},_hoisted_14$e={class:"flex items-center justify-center p-4"},_hoisted_15$d={class:"inline-block ml-1"},_hoisted_16$d={identifier:"cities"},_hoisted_17$b={identifier:"flight-number"};function _sfc_render$17(t,o,r,e,n,a){var s,l,d,c,u,f,m,b;const i=__unplugin_components_0$9;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"rootEl",class:normalizeClass(["FlightStatus booking-widget-subcomponent",{isEditorMode:e.isEditorMode}]),"data-use-theme":e.siteName},[createBaseVNode("div",_hoisted_2$10,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_3$D,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[9]||(o[9]=createBaseVNode("span",null,"Booking Widget: Flight Status",-1))])):createCommentVNode("",!0),createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[2]||(o[2]=y=>e.activeSubTab=y),o[3]||(o[3]=y=>t.$emit("update:active-sub-tab",y))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",enableGlassDesign:((s=e.props.cities)==null?void 0:s.enableGlassDesign)||((l=e.props.flightNumber)==null?void 0:l.enableGlassDesign)},createSlots({default:withCtx(()=>{var y,_,S,C,T,x;return[createBaseVNode("div",_hoisted_8$p,[!((y=e.props.cities)!=null&&y.isHideInDesktop)&&((_=e.props.cities)!=null&&_.label)?(openBlock(),createBlock(e.SubTabCities,{key:0,class:"pt-6",buttonLabel:e.props.cities.buttonLabel,dateField:e.props.cities.dateField,description:e.props.cities.description,from:e.props.cities.from,label:e.props.cities.label,note:e.props.cities.note,to:e.props.cities.to,tooltipBody:e.props.cities.tooltipBody,tooltipLabel:e.props.cities.tooltipLabel,externalUrl:e.computedFlightStatusEndpointUrl,enableGlassDesign:(S=e.props.cities)==null?void 0:S.enableGlassDesign,onFormSubmission:o[0]||(o[0]=k=>e.sendFormCompleteAA("cities",k))},null,8,["buttonLabel","dateField","description","from","label","note","to","tooltipBody","tooltipLabel","externalUrl","enableGlassDesign"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_9$n,[!((C=e.props.flightNumber)!=null&&C.isHideInDesktop)&&((T=e.props.flightNumber)!=null&&T.label)?(openBlock(),createBlock(e.SubTabFlightNumber,{key:0,class:"pt-6",buttonLabel:e.props.flightNumber.buttonLabel,dateField:e.props.flightNumber.dateField,description:e.props.flightNumber.description,flight:e.props.flightNumber.flight,label:e.props.flightNumber.label,note:e.props.flightNumber.note,tooltipBody:e.props.flightNumber.tooltipBody,tooltipLabel:e.props.flightNumber.tooltipLabel,externalUrl:e.computedFlightStatusEndpointUrl,enableGlassDesign:(x=e.props.flightNumber)==null?void 0:x.enableGlassDesign,onFormSubmission:o[1]||(o[1]=k=>e.sendFormCompleteAA("flight-number",k))},null,8,["buttonLabel","dateField","description","flight","label","note","tooltipBody","tooltipLabel","externalUrl","enableGlassDesign"])):createCommentVNode("",!0)])]}),_:2},[(d=e.props.cities)!=null&&d.isHideInDesktop?void 0:{name:"tab-cities",fn:withCtx(()=>{var y;return[createBaseVNode("div",_hoisted_4$w,[createBaseVNode("span",_hoisted_5$t,toDisplayString((y=e.props.cities)==null?void 0:y.label),1)])]}),key:"0"},(c=e.props.flightNumber)!=null&&c.isHideInDesktop?void 0:{name:"tab-flight-number",fn:withCtx(()=>{var y;return[createBaseVNode("div",_hoisted_6$r,[createBaseVNode("span",_hoisted_7$r,toDisplayString((y=e.props.flightNumber)==null?void 0:y.label),1)])]}),key:"1"}]),1032,["modelValue","dormantMode","enableGlassDesign"])])],10,_hoisted_1$18),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",blendedHeaderCss:e.blendedHeaderCss,mobileSubPageDesign:(u=e.props.flightNumber)!=null&&u.enableGlassDesign||(f=e.props.cities)!=null&&f.enableGlassDesign?"glass-design":"MH",enableGlassDesign:((m=e.props.flightNumber)==null?void 0:m.enableGlassDesign)||((b=e.props.cities)==null?void 0:b.enableGlassDesign),mobileSwiperTabs:e.props.mobileSwiperTabs,style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},"onUpdate:isVisible":o[8]||(o[8]=y=>{e.isMobileSubpageVisible=y})},{"banner-title":withCtx(()=>{var y;return[(y=e.props.flightNumber)!=null&&y.enableGlassDesign?(openBlock(),createElementBlock("h3",_hoisted_11$g,toDisplayString(t.$t("Flight Status")),1)):(openBlock(),createElementBlock("h1",_hoisted_10$h,toDisplayString(t.$t("Flight Status")),1))]}),swiper:withCtx(()=>[renderSlot(t.$slots,"banner-title",{},()=>[createVNode(e.MobileSubPageSwiper,{mobileSwiperTabs:e.props.mobileSwiperTabs.length===0?JSON.parse(e.mobileProperties):e.props.mobileSwiperTabs,activeTab:"#flight-status"},null,8,["mobileSwiperTabs"])],!0)]),default:withCtx(()=>{var y,_,S,C,T;return[createBaseVNode("div",{class:normalizeClass(["generic-container mb-20",{"mt-4":(y=e.props.flightNumber)==null?void 0:y.enableGlassDesign}])},[createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[6]||(o[6]=x=>e.activeSubTab=x),o[7]||(o[7]=x=>t.$emit("update:active-sub-tab",x))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",enableGlassDesign:((_=e.props.flightNumber)==null?void 0:_.enableGlassDesign)||((S=e.props.cities)==null?void 0:S.enableGlassDesign)},createSlots({default:withCtx(()=>{var x,k,E,w,D,N;return[createBaseVNode("div",_hoisted_16$d,[!((x=e.props.cities)!=null&&x.isHideInMobile)&&((k=e.props.cities)!=null&&k.label)?(openBlock(),createBlock(e.SubTabCities,{key:0,class:"pt-6",buttonLabel:e.props.cities.buttonLabel,dateField:e.props.cities.dateField,description:e.props.cities.description,from:e.props.cities.from,label:e.props.cities.label,note:e.props.cities.note,to:e.props.cities.to,tooltipBody:e.props.cities.tooltipBody,tooltipLabel:e.props.cities.tooltipLabel,externalUrl:e.computedFlightStatusEndpointUrl,enableGlassDesign:(E=e.props.cities)==null?void 0:E.enableGlassDesign,onFormSubmission:o[4]||(o[4]=F=>e.sendFormCompleteAA("cities"))},null,8,["buttonLabel","dateField","description","from","label","note","to","tooltipBody","tooltipLabel","externalUrl","enableGlassDesign"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_17$b,[!((w=e.props.flightNumber)!=null&&w.isHideInMobile)&&((D=e.props.flightNumber)!=null&&D.label)?(openBlock(),createBlock(e.SubTabFlightNumber,{key:0,class:"pt-6",buttonLabel:e.props.flightNumber.buttonLabel,dateField:e.props.flightNumber.dateField,description:e.props.flightNumber.description,flight:e.props.flightNumber.flight,label:e.props.flightNumber.label,note:e.props.flightNumber.note,tooltipBody:e.props.flightNumber.tooltipBody,tooltipLabel:e.props.flightNumber.tooltipLabel,externalUrl:e.computedFlightStatusEndpointUrl,enableGlassDesign:(N=e.props.flightNumber)==null?void 0:N.enableGlassDesign,onFormSubmission:o[5]||(o[5]=F=>e.sendFormCompleteAA("flight-number"))},null,8,["buttonLabel","dateField","description","flight","label","note","tooltipBody","tooltipLabel","externalUrl","enableGlassDesign"])):createCommentVNode("",!0)])]}),_:2},[(C=e.props.cities)!=null&&C.isHideInMobile?void 0:{name:"tab-cities",fn:withCtx(()=>{var x;return[createBaseVNode("div",_hoisted_12$f,[createBaseVNode("span",_hoisted_13$e,toDisplayString((x=e.props.cities)==null?void 0:x.label),1)])]}),key:"0"},(T=e.props.flightNumber)!=null&&T.isHideInMobile?void 0:{name:"tab-flight-number",fn:withCtx(()=>{var x;return[createBaseVNode("div",_hoisted_14$e,[createBaseVNode("span",_hoisted_15$d,toDisplayString((x=e.props.flightNumber)==null?void 0:x.label),1)])]}),key:"1"}]),1032,["modelValue","dormantMode","enableGlassDesign"])],2)]}),_:3},8,["isVisible","blendedHeaderCss","mobileSubPageDesign","enableGlassDesign","mobileSwiperTabs"])],64)}const FlightStatus=_export_sfc(_sfc_main$17,[["render",_sfc_render$17],["__scopeId","data-v-fbcd8014"],["__file","FlightStatus.vue"]]),FlightStatus$1=Object.freeze(Object.defineProperty({__proto__:null,default:FlightStatus},Symbol.toStringTag,{value:"Module"})),__default__$15={name:"SubTabManageBooking"},_sfc_main$16=Object.assign(__default__$15,{props:{apiUrl:{type:String,default:""},bookingReference:{type:Object,default:null},lastName:{type:Object,default:null},description:{type:String,default:""},tooltipLabel:{type:String,default:""},tooltipBody:{type:String,default:""},buttonLabel:{type:String,default:""},note:{type:String,default:""},isrefXEnabled:{type:Boolean,default:!1},enableMhUpgrade:{type:Boolean,default:!1},upgradeImage:{type:String,default:""},upgradeImageAltText:{type:String,default:""},upgradeText:{type:String,default:""},ctaYesBtnText:{type:String,default:""},ctaNoBtnText:{type:String,default:""},mhUpgradeApiUrl:{type:String,default:""},componentIdAA:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(""),i=ref$1(""),s=ref$1(""),l=ref$1(!1),d=ref$1(!1),{pageProperties:c}=useGlobalAEMState(),u=c.value.rootCountry,f=c.value.rootLanguage,m=window.siteName,b=w=>w.charAt(0).toUpperCase()+w.slice(1),y=u&&f?`${u}-${b(f)}`:"",_=async(w,D)=>
1181{if(!l.value){let N=null;try{N=await axios$1.get(e.apiUrl,{params:{ticketNumber:w,lastName:D,regionLanguage:u&&f?`${u}-${b(f)}`:"",siteName:m}});const{url:F,payload:V}=N.data;delete V.RAW_DATA;const A={},M=Object.entries(V);for(let[H,[U,B]]of M.entries())A[H]=U;const O={...A,...V},R=Object.entries(O),I="post",j=document.createElement("form");j.setAttribute("method",I),j.setAttribute("action",F);for(let[H,[U,B]]of R.entries()){const L=parseInt(U);let z=document.createElement("input");z.setAttribute("type","hidden"),z.setAttribute("name",U),z.setAttribute("value",B),j.appendChild(z)}document.body.appendChild(j),j.submit()}catch(F){console.error("handleSubmitValid, ","Unable to fetch api",F)}}},S=async({bookingRef:w,lastName:D},N)=>{try{if(e.enableMhUpgrade){d.value=!0;const F=`${e.apiUrl}?regionLanguage=${y}&siteName=${m}`,V=await axios$1.get(e.mhUpgradeApiUrl,{params:{ticketNumber:w,lastName:D.toUpperCase(),component:"manage-booking",redirectUrl:F}}),{offerEligibility:A,offerRedirectionUrl:M}=V.data||{};l.value=A,s.value=M}}catch(F){console.error("Error fetching PNR details:",F)}finally{_(w,D),d.value=!1}},C=({values:w,errors:D,results:N,evt:F})=>{console.log("❌ handleSubmitInvalid errors = ",D)},T=()=>{l.value=!1,_(a.value,i.value)},x=computed(()=>{var A;let w=yup.string().nullable().matches(/^[A-Za-z0-9]*$/,(A=e.bookingReference)==null?void 0:A.alphanumericErrorMessage);const{isMandatory:D,errorMessage:N,maxLimit:F,maxLimitErrorMessage:V}=e.bookingReference;return D&&(w=w.required(N)),F&&(w=w.max(F,V)),w}),k=computed(()=>{let w=yup.string().nullable();const{isMandatory:D,errorMessage:N}=e.lastName;return D&&(w=w.required(N)),w}),E={props:e,emit:n,bookingRefValue:a,lastNameValue:i,upgradeOfferUrl:s,isPNREligibleForUpgrade:l,isLoading:d,pageProperties:c,country:u,language:f,siteName:m,capitalizeString:b,regionLanguage:y,formSubmission:_,handleSubmitValid:S,handleSubmitInvalid:C,handleNoClick:T,bookingRefValidation:x,lastNameValidation:k,FormWrapper,TextField,CTAButton,Tooltip,get yup(){return yup},get axios(){return axios$1},get isMobileViewport(){return isMobileViewport},get boolean(){return create$4},mhUpgradePopup};return Object.defineProperty(E,"__isScriptSetup",{enumerable:!1,value:!0}),E}}),_hoisted_1$17={class:"SubTabManageBooking"},_hoisted_2$$={key:0,class:"mb-5"},_hoisted_3$C={class:"flex items-center"},_hoisted_4$v={class:"grid-container mb-6"},_hoisted_5$s={key:0,class:"md:mb-3"},_hoisted_6$q={key:0},_hoisted_7$q={class:"md:mb-6"},_hoisted_8$o={class:"relative"},_hoisted_9$m={key:2,class:"absolute loader-position"},_hoisted_10$g={key:2,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl"},_hoisted_11$f={class:"basis-6 flex-none rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_12$e={class:"text-sm"};function _sfc_render$16(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$17,[createVNode(e.FormWrapper,{focusFirstErrorElOnInvalidSubmit:!0,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:c})=>{var u,f,m,b;return[e.props.description?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$$,null,512)),[[l,e.props.description]]):createCommentVNode("",!0),e.props.tooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$C,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.tooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[l,e.props.tooltipBody]])]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$v,[e.props.bookingReference?(openBlock(),createElementBlock("div",_hoisted_5$s,[createVNode(e.TextField,{modelValue:e.bookingRefValue,"onUpdate:modelValue":o[0]||(o[0]=y=>e.bookingRefValue=y),variant:"booking-widget",name:"bookingRef",ariaLabel:(u=e.props.bookingReference)==null?void 0:u.label,placeholder:(f=e.props.bookingReference)==null?void 0:f.placeholderText,validation:e.bookingRefValidation,allowedKeys:/[A-Za-z0-9]/,maxlength:e.props.bookingReference.maxLimit,enableGlassDesign:e.props.enableGlassDesign},{"short-description":withCtx(()=>{var y,_;return[(y=e.props.bookingReference)!=null&&y.shortDescription&&!(c!=null&&c.bookingRef)?withDirectives((openBlock(),createElementBlock("div",_hoisted_6$q,null,512)),[[l,(_=e.props.bookingReference)==null?void 0:_.shortDe
1181scription]]):createCommentVNode("",!0)]}),_:2},1032,["modelValue","ariaLabel","placeholder","validation","maxlength","enableGlassDesign"])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_7$q,[e.props.lastName?(openBlock(),createBlock(e.TextField,{key:0,modelValue:e.lastNameValue,"onUpdate:modelValue":o[1]||(o[1]=y=>e.lastNameValue=y),variant:"booking-widget",name:"lastName",placeholder:(m=e.props.lastName)==null?void 0:m.placeholderText,ariaLabel:(b=e.props.lastName)==null?void 0:b.label,validation:e.lastNameValidation,enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","placeholder","ariaLabel","validation","enableGlassDesign"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_8$o,[e.props.buttonLabel&&!e.isLoading?withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,sizeType:"medium",disabled:e.lastNameValue&&e.bookingRefValue&&Object.keys(c).length!==0,ctaSizing:"fluid",class:normalizeClass({"class-design-ct-btn":e.props.enableGlassDesign}),isSubmit:""},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.buttonLabel),1)]),_:2},1032,["disabled","class"])),[[d,[{clickName:e.props.buttonLabel,clickComponentType:"Button",componentName:"SubTabManageBooking",componentID:e.props.componentIdAA},{name:e.props.buttonLabel,type:"exit"}]]]):createCommentVNode("",!0),e.isLoading?(openBlock(),createBlock(e.CTAButton,{key:1,ctaText:e.props.buttonLabel,disabled:!0,sizeType:e.isMobileViewport?"small":"large",ctaSizing:"fluid"},null,8,["ctaText","sizeType"])):createCommentVNode("",!0),e.isLoading?(openBlock(),createElementBlock("div",_hoisted_9$m,o[2]||(o[2]=[createBaseVNode("img",{src:_imports_0,alt:""},null,-1)]))):createCommentVNode("",!0)])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_10$g,[createBaseVNode("div",_hoisted_11$f,[createVNode(s,{class:"fill-primary-blue-base text-base"})]),createBaseVNode("div",_hoisted_12$e,[createBaseVNode("p",null,toDisplayString(e.props.note),1)])])):createCommentVNode("",!0)]}),_:1})]),e.isPNREligibleForUpgrade?(openBlock(),createBlock(e.mhUpgradePopup,{key:0,image:e.props.upgradeImage,imageAltText:e.props.upgradeImageAltText,promotionBody:e.props.upgradeText,ctaYesButtonLabel:e.props.ctaYesBtnText,ctaNoButtonLabel:e.props.ctaNoBtnText,enableRefx:e.props.enableRefx,ctaYesButtonPath:e.upgradeOfferUrl,isManageBooking:!0,onNoClick:e.handleNoClick},null,8,["image","imageAltText","promotionBody","ctaYesButtonLabel","ctaNoButtonLabel","enableRefx","ctaYesButtonPath"])):createCommentVNode("",!0)],64)}const SubTabManageBooking=_export_sfc(_sfc_main$16,[["render",_sfc_render$16],["__scopeId","data-v-f32a6d68"],["__file","SubTabManageBooking.vue"]]),__default__$14={name:"SubTabUpgrade"},_sfc_main$15=Object.assign(__default__$14,{props:{apiUrl:{type:String,default:""},apiPointsUrl:{type:String,default:""},bookingReference:{type:Object,default:null},lastName:{type:Object,default:null},description:{type:String,default:""},tooltipLabel:{type:String,default:""},tooltipBody:{type:String,default:""},buttonLabel:{type:String,default:""},note:{type:String,default:""},isToggle:{type:Boolean,default:!1},toggleButtonLabel:{type:String,default:""},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},isMainTab:{type:Boolean,default:!1},enableGlassDesign:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(""),i=ref$1(""),s=ref$1(""),l=ref$1(!1),{pageProperties:d}=useGlobalAEMState(),c=d.value.rootCountry,u=d.value.rootLanguage,f=N=>N.charAt(0).toUpperCase()+N.slice(1),{registerQueryChange:m}=useBookingWidgetUrlQuery(e.isMainTab?{mainTabName:"mh-upgrade-tab"}:{mainTabName:"manage-booking-tab",subTabName:"upgrade"});m(async N=>{N&&(a.value=N.bookingRef??"",i.value=N.lastName??"",N.isPoints==="true"&&E(!0))});const{isLoggedIn:b,isAuthStateReady:y}=useAuthStore(),_="sapphire";s.value=getCookie(_)??null,watch(l,N=>{!b.value&&N&&S()});const S=async()=>{if(!e.togglePointsApiURL)throw new Error("Failed to get endpoint: togglePointsApiURL");try{const F=(await axios$1.get(e.togglePointsApiURL,{params:{type:"points",maintab:e.isMainTab?"mh-upgrade-tab":"manage-booking-tab",subtab:e.isMainTab?null:"upgrade",bookingRef:a.value,lastName:i.value,isPoints:!0}})).data;l.value=!1,window.location.href=F}catch(N){console.error("handleRedirectToLogin, ","Unable to fetch api",N)}},C=async({bookingRef:N,lastName:F},V)=>{var M,O;let A=null;if((M=e.apiUrl)!=null&&M.includes("anxilla")||(O=e.apiUrl)!=null&&O.includes("ancillary_booking")){const R={pnr:N,lastname:F},I=new URL(e.apiUrl);
1181Object.keys(R).forEach(j=>{I.searchParams.append(j,R[j])}),window.location.href=I.toString();return}try{const R=l.value?e.apiPointsUrl:e.apiUrl;A=await axios$1.get(R,{params:{ticketNumber:N,lastName:F,paymentType:l.value?"miles":"cash",...l.value&&s.value&&{token:s.value},regionLanguage:c&&u?`${c}-${f(u)}`:""}});const{url:I,payload:j}=A.data;delete j.RAW_DATA;const H={},U=Object.entries(j);for(let[J,[te,re]]of U.entries())H[J]=te;const B={...H,...j},L=Object.entries(B),z="post",W=document.createElement("form");W.setAttribute("method",z),W.setAttribute("action",I);for(let[J,[te,re]]of L.entries()){const oe=parseInt(te);let X=document.createElement("input");X.setAttribute("type","hidden"),X.setAttribute("name",te),X.setAttribute("value",re),W.appendChild(X)}document.body.appendChild(W),W.submit()}catch(R){console.error("handleSubmitValid, ","Unable to fetch api",R)}},T=({values:N,errors:F,results:V,evt:A})=>{console.log("❌ handleSubmitInvalid errors = ",F)},x=computed(()=>{var O;let N=yup.string().nullable().matches(/^[A-Za-z0-9]*$/,(O=e.bookingReference)==null?void 0:O.alphanumericErrorMessage);const{isMandatory:F,errorMessage:V,maxLimit:A,maxLimitErrorMessage:M}=e.bookingReference;return F&&(N=N.required(V)),A&&(N=N.max(A,M)),N}),k=computed(()=>{let N=yup.string().nullable();const{isMandatory:F,errorMessage:V}=e.lastName;return F&&(N=N.required(V)),N});async function E(N){if(await nextTick$1(),!N||!s.value){l.value=!1;return}y.value||await waitFor(()=>!!y.value).start(),l.value=!0}const w=useEventBus("booking-widget:enrich-points-toggle-switch");w.on(async(N,F)=>{switch(N){case"update-toggle-switch":F==="logout"&&E(!1),await nextTick$1();break;default:console.log(`Unknown event: ${N}. Ignore it.`);break}});const D={props:e,emit:n,bookingRefValue:a,lastNameValue:i,token:s,payByEnrichPoints:l,pageProperties:d,country:c,language:u,capitalizeString:f,registerQueryChange:m,isLoggedIn:b,isAuthStateReady:y,SAPPHIRE_COOKIE:_,handleRedirectToLogin:S,handleSubmitValid:C,handleSubmitInvalid:T,bookingRefValidation:x,lastNameValidation:k,setEnrichPointStatus:E,globalBookFlightBus:w,FormWrapper,TextField,CTAButton,ToggleSwitch,Tooltip,get yup(){return yup},get isMobileViewport(){return isMobileViewport},get getCookie(){return getCookie},get useAuthStore(){return useAuthStore},get waitFor(){return waitFor},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get useEventBus(){return useEventBus}};return Object.defineProperty(D,"__isScriptSetup",{enumerable:!1,value:!0}),D}}),_hoisted_1$16={class:"SubTabUpgrade"},_hoisted_2$_={key:0,class:"flex >lg:justify-end relative"},_hoisted_3$B={key:1,class:"mb-5"},_hoisted_4$u={class:"flex items-center"},_hoisted_5$r={class:"grid-container mb-6"},_hoisted_6$p={class:"md:mb-3"},_hoisted_7$p={key:0},_hoisted_8$n={class:"md:mb-6"},_hoisted_9$l={key:3,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_10$f={class:"text-sm"};function _sfc_render$15(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa");return openBlock(),createElementBlock("div",_hoisted_1$16,[createVNode(e.FormWrapper,{class:normalizeClass({"-mt-16 lg:mt-0":e.props.isToggle}),focusFirstErrorElOnInvalidSubmit:!0,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:c})=>{var u,f,m,b;return[e.props.isToggle?(openBlock(),createElementBlock("div",_hoisted_2$_,[createVNode(e.ToggleSwitch,{modelValue:e.payByEnrichPoints,"onUpdate:modelValue":o[0]||(o[0]=y=>e.payByEnrichPoints=y),rootAttrs:{class:"mb-8"},ariaLabel:e.props.toggleButtonLabel,name:"usingEnrichPoints"},null,8,["modelValue","ariaLabel"])])):createCommentVNode("",!0),e.props.description?withDirectives((openBlock(),createElementBlock("div",_hoisted_3$B,null,512)),[[l,e.props.description]]):createCommentVNode("",!0),e.props.tooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:2,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$u,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.tooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipBody),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$r,[createBaseVNode("div",_hoisted_6$p,[e.props.bookingReference?(openBlock(),createBlock(e.TextField,{key:0,modelValue:e.bookingRefValue,"onUpdate:modelValue":o[1]||(o[1]=y=>e.bookingRefValue=y),variant:"booking-widget",name:"bookingRef",ariaLabel:(u=e.props.bookingReference)==null?void 0:u.label,placeholder:(f=e.props.bookingReference)==null?void 0:f.placeholderText,validation:e.bookingRefValidation,allowedKeys:/[A-Za-z0-9]/,maxlength:e.props.bookingReference.maxLimit,enableGlassDesign:e.props.enableGlassDesign},{"short-description":withCtx(()=>{var y,_;return[(y=e.props.bookingReference)!=null&&y.shortDescription&&!(c!=null&&c.bookingRef)?withDirectives((openBlock(),createElementBlock("div",_hoisted_7$p,null,512)),[[l,(_=e.props.bookingReference)==null?void 0:_.shortDe
1181scription]]):createCommentVNode("",!0)]}),_:2},1032,["modelValue","ariaLabel","placeholder","validation","maxlength","enableGlassDesign"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_8$n,[e.props.lastName?(openBlock(),createBlock(e.TextField,{key:0,modelValue:e.lastNameValue,"onUpdate:modelValue":o[2]||(o[2]=y=>e.lastNameValue=y),variant:"booking-widget",name:"lastName",placeholder:(m=e.props.lastName)==null?void 0:m.placeholderText,ariaLabel:(b=e.props.lastName)==null?void 0:b.label,validation:e.lastNameValidation,enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","placeholder","ariaLabel","validation","enableGlassDesign"])):createCommentVNode("",!0)]),createBaseVNode("div",null,[e.props.buttonLabel?withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,sizeType:"medium",disabled:e.lastNameValue&&e.bookingRefValue&&Object.keys(c).length!==0,ctaSizing:"fluid",class:normalizeClass({"class-design-ct-btn":e.props.enableGlassDesign}),isSubmit:""},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.buttonLabel),1)]),_:2},1032,["disabled","class"])),[[d,[{clickName:e.props.buttonLabel,clickComponentType:"Button",componentName:"SubTabUpgrade",componentID:e.props.componentIdAA},{name:e.props.buttonLabel,type:"exit"}]]]):createCommentVNode("",!0)])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_9$l,[createVNode(s,{class:"fill-primary-blue-base text-base"}),withDirectives(createBaseVNode("div",_hoisted_10$f,null,512),[[l,e.props.note]])])):createCommentVNode("",!0)]}),_:1},8,["class"])])}const SubTabUpgrade=_export_sfc(_sfc_main$15,[["render",_sfc_render$15],["__scopeId","data-v-da1b863c"],["__file","SubTabUpgrade.vue"]]),__default__$13={name:"ManageBooking",inheritAttrs:!1},_sfc_main$14=Object.assign(__default__$13,{props:{general:{type:Object,default:null},manageBooking:{type:Object,default:null},upgrade:{type:Object,default:null},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:["update:active-sub-tab"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,{isEditorMode:a}=useGlobalAEMState$1(),i=ref$1(null),s=ref$1("manage-booking"),{isMobileSubpageVisible:l}=useBookingWidgetSubpage({hashKey:["manage-booking","manage-booking-tab"],rootEl:i});watch(s,b=>{pushAA_click([{clickName:b,clickComponentType:"URL",componentName:"ManageBooking",componentID:e.componentIdAA},{name:b,type:"other"}])});const d=useEventBus("booking-widget:book-flight"),{registerQueryChange:c}=useBookingWidgetUrlQuery({mainTabName:"manage-booking-tab",subTabName:"upgrade"});c(async b=>{b&&(isMobileViewport.value&&(l.value=!0),d.emit("active-tab-and-fill-up-form",{mainTab:b.maintab??""}),s.value=b.subtab??"")});const u=ref$1(""),f=ref$1(null);onMounted(()=>{const b=document.querySelector(".global-header");b&&(b.classList.contains("fixed")?u.value="blended-header-css":u.value="",f.value=getCookie("mobileProperties"))});const m={props:e,emit:n,isEditorMode:a,rootEl:i,activeSubTab:s,isMobileSubpageVisible:l,globalBookFlightBus:d,registerQueryChange:c,blendedHeaderCss:u,mobileProperties:f,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},SubTabManageBooking,SubTabUpgrade,VueTabs,get useGlobalAEMState(){return useGlobalAEMState$1},get useRouteHash(){return useRouteHash},get useUrlSearchParams(){return useUrlSearchParams},get useEventBus(){return useEventBus},get isMobileViewport(){return isMobileViewport},get pushAA_click(){return pushAA_click},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},MobileSubPageSwiper,get getCookie(){return getCookie}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),_hoisted_1$15={class:"generic-container"},_hoisted_2$Z={key:0,class:"title-editor-mode"},_hoisted_3$A={key:0,class:"flex items-center justify-center p-4"},_hoisted_4$t={class:"inline-block ml-1"},_hoisted_5$q={key:0,class:"flex items-center justify-center p-4"},_hoisted_6$o={class:"inline-block ml-1"},_hoisted_7$o={key:1,class:"generic-container py-10"},_hoisted_8$m={class:"font-bold"},_hoisted_9$k={key:0},_hoisted_10$e={key:1},_hoisted_11$e={key:1,class:"generic-container py-10"},_hoisted_12$d={class:"font-bold"},_hoisted_13$d={key:0},_hoisted_14$d={key:1},_hoisted_15$c={key:0,class:"text-center"},_hoisted_16$c={key:1,class:"text-center"},_hoisted_17$a={key:0,class:"flex items-center justify-center p-4"},_hoisted_18$9={class:"inline-block ml-1"},_hoisted_19$7={key:0,class:"flex items-center justify-center p-4"},_hoisted_20$7={class:"inline-block ml-1"},_hoisted_21$7={key:0,identifier:"manage-booking"},_hoisted_22$6={key:1,identifier:"upgrade"};function _sfc_render$14(t,o,r,e,n,a){var s,l,d,c,u,f;const i=__unplugin_components_0$9;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"rootEl",class:normalizeClass(["ManageBooking booking-widget-subcomponent",{isEditorMode:e.isEditorMode}])},[createBaseVNode("div",_hoisted_1$15,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$Z,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[5]||(o[5]=createBaseVNode("span",null,"Booking Widget: Manage Booking",-1))])):createCommentVNode("",!0),createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[0]||(o[0]=m=>e.activeSubTab=m),o[1]||(o[1]=m=>t.$emit("update:active-sub-tab",m))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",hideTabs:(s=e.props.general)==null?void 0:s.isHideSubTabs,enableGlassDesign:(l=e.props.general)==null?void 0:l.enableGlassDesign},createSlots({default:withCtx(()=>{var m,b,y,_,S,C,T,x,k,E,w,D,N,F;return[!((m=e.props.manageBooking)!=null&&m.isHideInDesktop)&&((b=e.props.manageBooking)!=null&&b.label)?(openBlock(),createElementBlock("div",{key:0,identifier:"manage-booking",class:normalizeClass({"py-10":e.isEditorMode})},[(y=e.props.manageBooking)!=null&&y.isHideInDesktop?e.isEditorMode?(openBlock(),createElementBlock("div",_hoisted_7$o,[createBaseVNode("p",_hoisted_8$m,toDisplayString((C=e.props.manageBooking)==null?void 0:C.label),1),createBaseVNode("p",null,[o[6]||(o[6]=createTextVNode("Hidden in: ")),(T=e.props.manageBooking)!=null&&T.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_9$k,"Desktop")):createCommentVNode("",!0),o[7]||(o[7]=createTextVNode()),(x=e.props.manageBooking)!=null&&x.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_10$e,", Mobile")):createCommentVNode("",!0)])])):createCommentVNode("",!0):(openBlock(),createBlock(e.SubTabManageBooking,{key:0,class:normalizeClass({"pt-6":!((_=e.props.general)!=null&&_.isHideSubTabs)}),apiUrl:e.props.manageBooking.apiUrl,bookingReference:e.props.manageBooking.bookingReference,lastName:e.props.manageBooking.lastName,description:e.props.manageBooking.description,tooltipLabel:e.props.manageBooking.tooltipLabel,tooltipBody:e.props.manageBooking.tooltipBody,buttonLabel:e.props.manageBooking.buttonLabel,note:e.props.manageBooking.note,enableMhUpgrade:e.props.manageBooking.enableMhUpgrade,upgradeImage:e.props.manageBooking.upgradeImage,upgradeImageAltText:e.props.manageBooking.upgradeImageAltText,upgradeText:e.props.manageBooking.upgradeText,ctaYesBtnText:e.props.manageBooking.ctaYesBtnText,ctaNoBtnText:e.props.manageBooking.ctaNoBtnText,mhUpgradeApiUrl:e.props.manageBooking.mhUpgradeApiUrl,isrefXEnabled:e.props.manageBooking.enableRefx,enableGlassDesign:(S=e.props.general)==null?void 0:S.enableGlassDesign},null,8,["class","apiUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","enableMhUpgrade","upgradeImage","upgradeImageAltText","upgradeText","ctaYesBtnText","ctaNoBtnText","mhUpgradeApiUrl","isrefXEnabled","enableGlassDesign"]))],2)):createCommentVNode("",!0),!((k=e.props.upgrade)!=null&&k.isHideInDesktop)&&((E=e.props.upgrade)!=null&&E.label)?(openBlock(),createElementBlock("div",{key:1,identifier:"upgrade",class:normalizeClass({"py-10":e.isEditorMode})},[(w=e.props.upgrade)!=null&&w.isHideInDesktop?e.isEditorMode?(openBlock(),createElementBlock("div",_hoisted_11$e,[createBaseVNode("p",_hoisted_12$d,toDisplayString((D=e.props.upgrade)==null?void 0:D.label),1),createBaseVNode("p",null,[o[8]||(o[8]=createTextVNode("Hidden in: ")),(N=e.props.upgrade)!=null&&N.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_13$d,"Desktop")):createCommentVNode("",!0),o[9]||(o[9]=createTextVNode()),(F=e.props.upgrade)!=null&&F.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_14$d,", Mobile")):createCommentVNode("",!0)])])):createCommentVNode("",!0):(openBlock(),createBlock(e.SubTabUpgrade,{key:0,class:"pt-6",apiUrl:e.props.upgrade.apiUrl,apiPointsUrl:e.props.upgrade.apiPointsUrl,bookingReference:e.props.upgrade.bookingReference,lastName:e.props.upgrade.lastName,description:e.props.upgrade.description,tooltipLabel:e.props.upgrade.tooltipLabel,tooltipBody:e.props.upgrade.tooltipBody,buttonLabel:e.props.upgrade.buttonLabel,note:e.props.upgrade.note,isToggle:e.props.upgrade.isToggle,toggleButtonLabel:e.props.upgrade.toggleButtonLabel,togglePointsApiURL:e.props.togglePointsApiURL},null,8,["apiUrl","apiPointsUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","isToggle","toggleButtonLabel","togglePointsApiURL"]))],2)):createCommentVNode("",!0)]}),_:2},[!((d=e.props.manageBooking)!=null&&d.isHideInDesktop)&&((c=e.props.manageBooking)!=null&&c.label)?{name:"tab-manage-booking",fn:withCtx(()=>{var m,b;return[(m=e.props.manageBooking)!=null&&m.label?(openBlock(),createElementBlock("div",_hoisted_3$A,[createBaseVNode("span",_hoisted_4$t,toDisplayString((b=e.props.manageBooking)==null?void 0:b.label),1)])):createCommentVNode("",!0)]}),key:"0"}:void 0,!((u=e.props.upgrade)!=null&&u.isHideInDesktop)&&((f=e.props.upgrade)!=null&&f.label)?{name:"tab-upgrade",fn:withCtx(()=>{var m,b;return[(m=e.props.upgrade)!=null&&m.label?(openBlock(),createElementBlock("div",_hoisted_5$q,[createBaseVNode("span",_hoisted_6$o,toDisplayString((b=e.props.upgrade)==null?void 0:b.label),1)])):createCommentVNode("",!0)]}),key:"1"}:void 0]),1032,["modelValue","dormantMode","hideTabs","enableGlassDesign"])])],2),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",blendedHeaderCss:e.blendedHeaderCss,style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},mobileSubPageDesign:e.props.general.enableGlassDesign?"glass-design":"MH",enableGlassDesign:e.props.general.enableGlassDesign,mobileSwiperTabs:e.props.mobileSwiperTabs,"onUpdate:isVisible":o[4]||(o[4]=m=>{e.isMobileSubpageVisible=m})},{"banner-title":withCtx(()=>[e.props.general.enableGlassDesign?(openBlock(),createElementBlock("h3",_hoisted_16$c,toDisplayString(t.$t("Manage Booking")),1)):(openBlock(),createElementBlock("h1",_hoisted_15$c,toDisplayString(t.$t("Manage Booking")),1))]),swiper:withCtx(()=>[renderSlot(t.$slots,"banner-title",{},()=>[createVNode(e.MobileSubPageSwiper,{mobileSwiperTabs:e.props.mobileSwiperTabs.length===0?JSON.parse(e.mobileProperties):e.props.mobileSwiperTabs,activeTab:"#manage-booking-tab"},null,8,["mobileSwiperTabs"])],!0)]),default:withCtx(()=>{var m,b,y;return[createBaseVNode("div",{class:normalizeClass(["generic-container mb-20",{"mt-4":(m=e.props.general)==null?void 0:m.enableGlassDesign}])},[createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[2]||(o[2]=_=>e.activeSubTab=_),o[3]||(o[3]=_=>t.$emit("update:active-sub-tab",_))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",enableGlassDesign:e.props.general.enableGlassDesign},createSlots({default:withCtx(()=>{var _,S,C,T,x;return[(_=e.props.manageBooking)!=null&&_.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_21$7,[(S=e.props.manageBooking)!=null&&S.isHideInMobile?createCommentVNode("",!0):(openBlock(),createBlock(e.SubTabManageBooking,{key:0,class:"pt-6",apiUrl:e.props.manageBooking.apiUrl,bookingReference:e.props.manageBooking.bookingReference,lastName:e.props.manageBooking.lastName,description:e.props.manageBooking.description,tooltipLabel:e.props.manageBooking.tooltipLabel,tooltipBody:e.props.manageBooking.tooltipBody,buttonLabel:e.props.manageBooking.buttonLabel,note:e.props.manageBooking.note,isrefXEnabled:e.props.manageBooking.enableRefx,enableGlassDesign:(C=e.props.general)==null?void 0:C.enableGlassDesign},null,8,["apiUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","isrefXEnabled","enableGlassDesign"]))])),(T=e.props.upgrade)!=null&&T.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_22$6,[(x=e.props.upgrade)!=null&&x.isHideInMobile?createCommentVNode("",!0):(openBlock(),createBlock(e.SubTabUpgrade,{key:0,class:"pt-6",apiUrl:e.props.upgrade.apiUrl,apiPointsUrl:e.props.upgrade.apiPointsUrl,bookingReference:e.props.upgrade.bookingReference,lastName:e.props.upgrade.lastName,description:e.props.upgrade.description,tooltipLabel:e.props.upgrade.tooltipLabel,tooltipBody:e.props.upgrade.tooltipBody,buttonLabel:e.props.upgrade.buttonLabel,note:e.props.upgrade.note,isToggle:e.props.upgrade.isToggle,toggleButtonLabel:e.props.upgrade.toggleButtonLabel,togglePointsApiURL:e.props.togglePointsApiURL},null,8,["apiUrl","apiPointsUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","isToggle","toggleButtonLabel","togglePointsApiURL"]))]))]}),_:2},[(b=e.props.manageBooking)!=null&&b.isHideInMobile?void 0:{name:"tab-manage-booking",fn:withCtx(()=>{var _,S;return[(_=e.props.manageBooking)!=null&&_.label?(openBlock(),createElementBlock("div",_hoisted_17$a,[createBaseVNode("span",_hoisted_18$9,toDisplayString((S=e.props.manageBooking)==null?void 0:S.label),1)])):createCommentVNode("",!0)]}),key:"0"},(y=e.props.upgrade)!=null&&y.isHideInMobile?void 0:{name:"tab-upgrade",fn:withCtx(()=>{var _,S;return[(_=e.props.upgrade)!=null&&_.label?(openBlock(),createElementBlock("div",_hoisted_19$7,[createBaseVNode("span",_hoisted_20$7,toDisplayString((S=e.props.upgrade)==null?void 0:S.label),1)])):createCommentVNode("",!0)]}),key:"1"}]),1032,["modelValue","dormantMode","enableGlassDesign"])],2)]}),_:3},8,["isVisible","blendedHeaderCss","mobileSubPageDesign","enableGlassDesign","mobileSwiperTabs"])],64)}const ManageBooking=_export_sfc(_sfc_main$14,[["render",_sfc_render$14],["__scopeId","data-v-418864f0"],["__file","ManageBooking.vue"]]),ManageBooking$1=Object.freeze(Object.defineProperty({__proto__:null,default:ManageBooking},Symbol.toStringTag,{value:"Module"})),__default__$12={name:"subTabNeighbourFreeSeat"},_sfc_main$13=Object.assign(__default__$12,{props:{apiUrl:{type:String,default:""},nfsEndpointUrl:{type:String,default:""},bookingReference:{type:Object,default:null},lastName:{type:Object,default:null},description:{type:String,default:""},tooltipLabel:{type:String,default:""},tooltipBody:{type:String,default:""},buttonLabel:{type:String,default:""},note:{type:String,default:""},componentIdAA:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(""),i=ref$1(""),{pageProperties:s}=useGlobalAEMState(),l=s.value.rootCountry,d=s.value.rootLanguage,c=C=>C.charAt(0).toUpperCase()+C.slice(1),{isLoggedIn:u,isAuthStateReady:f}=useAuthStore(),m=async({bookingRef:C,lastName:T},x)=>{var E;let k=null;if((E=e.nfsEndpointUrl)!=null&&E.includes("nfs_seat_selection")){const w={pnr:C,lastname:T},D=new URL(e.nfsEndpointUrl);
1181Object.keys(w).forEach(N=>{D.searchParams.append(N,w[N])}),window.location.href=D.toString();return}try{const w=e.nfsEndpointUrl;k=await axios$1.get(w,{params:{ticketNumber:C,lastName:T,paymentType:"cash",regionLanguage:l&&d?`${l}-${c(d)}`:""}});const{url:D,payload:N}=k.data;delete N.RAW_DATA;const F={},V=Object.entries(N);for(let[I,[j,H]]of V.entries())F[I]=j;const A={...F,...N},M=Object.entries(A),O="post",R=document.createElement("form");R.setAttribute("method",O),R.setAttribute("action",D);for(let[I,[j,H]]of M.entries()){const U=parseInt(j);let B=document.createElement("input");B.setAttribute("type","hidden"),B.setAttribute("name",j),B.setAttribute("value",H),R.appendChild(B)}document.body.appendChild(R),R.submit()}catch(w){console.error("handleSubmitValid, ","Unable to fetch api",w)}},b=({values:C,errors:T,results:x,evt:k})=>{console.log("❌ handleSubmitInvalid errors = ",T)},y=computed(()=>{var w;let C=yup.string().nullable().matches(/^[A-Za-z0-9]*$/,(w=e.bookingReference)==null?void 0:w.alphanumericErrorMessage);const{isMandatory:T,errorMessage:x,maxLimit:k,maxLimitErrorMessage:E}=e.bookingReference;return T&&(C=C.required(x)),k&&(C=C.max(k,E)),C}),_=computed(()=>{let C=yup.string().nullable();const{isMandatory:T,errorMessage:x}=e.lastName;return T&&(C=C.required(x)),C}),S={props:e,emit:n,bookingRefValue:a,lastNameValue:i,pageProperties:s,country:l,language:d,capitalizeString:c,isLoggedIn:u,isAuthStateReady:f,handleSubmitValid:m,handleSubmitInvalid:b,bookingRefValidation:y,lastNameValidation:_,FormWrapper,TextField,CTAButton,ToggleSwitch,Tooltip,get yup(){return yup},get isMobileViewport(){return isMobileViewport},get getCookie(){return getCookie},get useAuthStore(){return useAuthStore},get waitFor(){return waitFor},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get useEventBus(){return useEventBus}};return Object.defineProperty(S,"__isScriptSetup",{enumerable:!1,value:!0}),S}}),_hoisted_1$14={class:"subTabNeighbourFreeSeat"},_hoisted_2$Y={key:0,class:"mb-5"},_hoisted_3$z={class:"flex items-center"},_hoisted_4$s={class:"grid-container mb-6"},_hoisted_5$p={class:"md:mb-3"},_hoisted_6$n={key:0},_hoisted_7$n={class:"md:mb-6"};function _sfc_render$13(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=resolveDirective("html-sanitize"),l=resolveDirective("aa");return openBlock(),createElementBlock("div",_hoisted_1$14,[createVNode(e.FormWrapper,{focusFirstErrorElOnInvalidSubmit:!0,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:d})=>{var c,u,f,m;return[e.props.description?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$Y,null,512)),[[s,e.props.description]]):createCommentVNode("",!0),e.props.tooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$z,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.tooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.tooltipBody),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$s,[createBaseVNode("div",_hoisted_5$p,[e.props.bookingReference?(openBlock(),createBlock(e.TextField,{key:0,modelValue:e.bookingRefValue,"onUpdate:modelValue":o[0]||(o[0]=b=>e.bookingRefValue=b),variant:"booking-widget",name:"bookingRef",ariaLabel:(c=e.props.bookingReference)==null?void 0:c.label,placeholder:(u=e.props.bookingReference)==null?void 0:u.placeholderText,validation:e.bookingRefValidation,allowedKeys:/[A-Za-z0-9]/,maxlength:e.props.bookingReference.maxLimit,enableGlassDesign:e.props.enableGlassDesign},{"short-description":withCtx(()=>{var b,y;return[(b=e.props.bookingReference)!=null&&b.shortDescription&&!(d!=null&&d.bookingRef)?withDirectives((openBlock(),createElementBlock("div",_hoisted_6$n,null,512)),[[s,(y=e.props.bookingReference)==null?void 0:y.shortDescription]]):createCommentVNode("",!0)]}),_:2},1032,["modelValue","ariaLabel","placeholder","validation","maxlength","enableGlassDesign"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_7$n,[e.props.lastName?(openBlock(),createBlock(e.TextField,{key:0,modelValue:e.lastNameValue,"onUpdate:modelValue":o[1]||(o[1]=b=>e.lastNameValue=b),variant:"booking-widget",name:"lastName",placeholder:(f=e.props.lastName)==null?void 0:f.placeholderText,ariaLabel:(m=e.props.lastName)==null?void 0:m.label,validation:e.lastNameValidation,enableGlassDesign:e.props.enableGlassDesign},null,8,["modelValue","placeholder","ariaLabel","validation","enableGlassDesign"])):createCommentVNode("",!0)]),createBaseVNode("div",null,[e.props.buttonLabel?withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,sizeType:"medium",disabled:e.lastNameValue&&e.bookingRefValue&&Object.keys(d).length!==0,ctaSizing:"fluid",class:normalizeClass({"class-design-ct-btn":e.props.enableGlassDesign}),isSubmit:""},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.buttonLabel),1)]),_:2},1032,["disabled","class"])),[[l,[{clickName:e.props.buttonLabel,clickComponentType:"Button",componentName:"subTabNeighbourFreeSeat",componentID:e.props.componentIdAA},{name:e.props.buttonLabel,type:"exit"}]]]):createCommentVNode("",!0)])])]}),_:1})])}const subTabNeighbourFreeSeat=_export_sfc(_sfc_main$13,[["render",_sfc_render$13],["__scopeId","data-v-5a58fc29"],["__file","subTabNeighbourFreeSeat.vue"]]),__default__$11={name:"MHupgrade",inheritAttrs:!1},_sfc_main$12=Object.assign(__default__$11,{props:{upgrade:{type:Object,default:()=>({})},general:{type:Object,default:()=>null},neighbourFreeSeat:{type:Object,default:()=>null},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},mobileSwiperTabs:{type:Array,default:()=>[]}},emits:["update:active-sub-tab"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1("mh-upgrade"),{isMobileSubpageVisible:s}=useBookingWidgetSubpage({hashKey:["mh-upgrade","mh-upgrade-tab"],rootEl:a}),{isEditorMode:l}=useGlobalAEMState$1();watch(i,b=>{pushAA_click([{clickName:b,clickComponentType:"Button",componentName:"MHUpgrade",componentID:e.componentIdAA},{name:b,type:"other"}])});const d=useEventBus("booking-widget:book-flight"),{registerQueryChange:c}=useBookingWidgetUrlQuery({mainTabName:"mh-upgrade-tab",subTabName:"upgrade"});c(async b=>{b&&(isMobileViewport.value&&(s.value=!0),d.emit("active-tab-and-fill-up-form",{mainTab:b.maintab??""}),i.value=b.subtab??"")});const u=ref$1(""),f=ref$1(null);onMounted(()=>{(!isMobileViewport.value&&e.upgrade.isHideInDesktop||isMobileViewport.value&&e.upgrade.isHideInMobile)&&(i.value="neighbour-free-seat");const b=document.querySelector(".global-header");b&&(b.classList.contains("fixed")?u.value="blended-header-css":u.value="",f.value=getCookie("mobileProperties"))});const m={props:e,emit:n,rootEl:a,activeSubTab:i,isMobileSubpageVisible:s,isEditorMode:l,globalBookFlightBus:d,registerQueryChange:c,blendedHeaderCss:u,mobileProperties:f,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},SubTabUpgrade,subTabNeighbourFreeSeat,VueTabs,get useGlobalAEMState(){return useGlobalAEMState$1},get useEventBus(){return useEventBus},get isMobileViewport(){return isMobileViewport},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get pushAA_click(){return pushAA_click}
1181,MobileSubPageSwiper,get getCookie(){return getCookie}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),_hoisted_1$13={class:"generic-container"},_hoisted_2$X={key:0,class:"title-editor-mode"},_hoisted_3$y={class:"flex items-center justify-center p-4"},_hoisted_4$r={class:"inline-block ml-1"},_hoisted_5$o={class:"flex items-center justify-center p-4"},_hoisted_6$m={class:"inline-block ml-1"},_hoisted_7$m={key:0,identifier:"mh-upgrade"},_hoisted_8$l={key:1,identifier:"neighbour-free-seat"},_hoisted_9$j={key:0,class:"text-center"},_hoisted_10$d={key:1,class:"text-center"},_hoisted_11$d={class:"flex items-center justify-center p-4"},_hoisted_12$c={class:"inline-block ml-1"},_hoisted_13$c={class:"flex items-center justify-center p-4"},_hoisted_14$c={class:"inline-block ml-1"},_hoisted_15$b={identifier:"mh-upgrade"},_hoisted_16$b={identifier:"neighbour-free-seat"};function _sfc_render$12(t,o,r,e,n,a){var s,l,d,c,u,f,m,b,y;const i=__unplugin_components_0$9;return openBlock(),createElementBlock(Fragment,null,[e.props.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,ref:"rootEl",class:normalizeClass(["MHupgrade booking-widget-subcomponent",{isEditorMode:e.isEditorMode}])},[createBaseVNode("div",_hoisted_1$13,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$X,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[5]||(o[5]=createBaseVNode("span",null,"Booking Widget: MHupgrade",-1))])):createCommentVNode("",!0),createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[0]||(o[0]=_=>e.activeSubTab=_),o[1]||(o[1]=_=>t.$emit("update:active-sub-tab",_))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",enableGlassDesign:((s=e.props.upgrade)==null?void 0:s.enableGlassDesign)||((l=e.props.neighbourFreeSeat)==null?void 0:l.enableGlassDesign),hideTabs:(d=e.props.general)==null?void 0:d.hideSubtabs},createSlots({default:withCtx(()=>{var _,S,C,T,x,k,E;return[!((_=e.props.upgrade)!=null&&_.isHideInDesktop)&&((S=e.props.upgrade)!=null&&S.label)?(openBlock(),createElementBlock("div",_hoisted_7$m,[(C=e.props.upgrade)!=null&&C.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createBlock(e.SubTabUpgrade,{key:0,class:normalizeClass({"pt-16":e.props.upgrade.isToggle}),apiUrl:e.props.upgrade.apiUrl,apiPointsUrl:e.props.upgrade.apiPointsUrl,bookingReference:e.props.upgrade.bookingReference,lastName:e.props.upgrade.lastName,description:e.props.upgrade.description,tooltipLabel:e.props.upgrade.tooltipLabel,tooltipBody:e.props.upgrade.tooltipBody,buttonLabel:e.props.upgrade.buttonLabel,note:e.props.upgrade.note,isToggle:e.props.upgrade.isToggle,toggleButtonLabel:e.props.upgrade.toggleButtonLabel,togglePointsApiURL:e.props.togglePointsApiURL,isMainTab:!0,enableGlassDesign:(T=e.props.upgrade)==null?void 0:T.enableGlassDesign},null,8,["class","apiUrl","apiPointsUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","isToggle","toggleButtonLabel","togglePointsApiURL","enableGlassDesign"]))])):createCommentVNode("",!0),!((x=e.props.neighbourFreeSeat)!=null&&x.isHideInDesktop)&&((k=e.props.neighbourFreeSeat)!=null&&k.label)?(openBlock(),createElementBlock("div",_hoisted_8$l,[(E=e.props.neighbourFreeSeat)!=null&&E.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createBlock(e.subTabNeighbourFreeSeat,{key:0,apiUrl:e.props.upgrade.apiUrl,nfsEndpointUrl:e.props.neighbourFreeSeat.nfsEndpointUrl,apiPointsUrl:e.props.upgrade.apiPointsUrl,bookingReference:e.props.neighbourFreeSeat.bookingReference,lastName:e.props.neighbourFreeSeat.lastName,description:e.props.neighbourFreeSeat.description,tooltipLabel:e.props.neighbourFreeSeat.tooltipLabel,tooltipBody:e.props.neighbourFreeSeat.tooltipBody,buttonLabel:e.props.neighbourFreeSeat.buttonLabel,note:e.props.neighbourFreeSeat.note,toggleButtonLabel:e.props.neighbourFreeSeat.toggleButtonLabel,enableGlassDesign:e.props.neighbourFreeSeat.enableGlassDesign,togglePointsApiURL:e.props.togglePointsApiURL,isMainTab:!1},null,8,["apiUrl","nfsEndpointUrl","apiPointsUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","toggleButtonLabel","enableGlassDesign","togglePointsApiURL"]))])):createCommentVNode("",!0)]}),_:2},[(c=e.props.upgrade)!=null&&c.isHideInDesktop?void 0:{name:"tab-mh-upgrade",fn:withCtx(()=>{var _;return[createBaseVNode("div",_hoisted_3$y,[createBaseVNode("span",_hoisted_4$r,toDisplayString((_=e.props.upgrade)==null?void 0:_.label),1)])]}),key:"0"},(u=e.props.neighbourFreeSeat)!=null&&u.isHideInDesktop?void 0:{name:"tab-neighbour-free-seat",fn:withCtx(()=>{var _;return[createBaseVNode("div",_hoisted_5$o,[createBaseVNode("span",_hoisted_6$m,toDisplayString((_=e.props.neighbourFreeSeat)==null?void 0:_.label),1)])]}),key:"1"}]),1032,["modelValue","dormantMode","enableGlassDesign","hideTabs"])])],2)),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",blendedHeaderCss:e.blendedHeaderCss,mobileSubPageDesign:(f=e.props.upgrade)!=null&&f.enableGlassDesign||(m=e.props.neighbourFreeSeat)!=null&&m.enableGlassDesign?"glass-design":"MH",enableGlassDesign:((b=e.props.upgrade)==null?void 0:b.enableGlassDesign)||((y=e.props.neighbourFreeSeat)==null?void 0:y.enableGlassDesign),mobileSwiperTabs:e.props.mobileSwiperTabs,style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},"onUpdate:isVisible":o[4]||(o[4]=_=>e.isMobileSubpageVisible=_)},{"banner-title":withCtx(()=>{var _;return[(_=e.props.upgrade)!=null&&_.enableGlassDesign?(openBlock(),createElementBlock("h3",_hoisted_10$d,toDisplayString(t.$t("MHupgrade")),1)):(openBlock(),createElementBlock("h1",_hoisted_9$j,toDisplayString(t.$t("MHupgrade")),1))]}),swiper:withCtx(()=>[renderSlot(t.$slots,"banner-title",{},()=>[createVNode(e.MobileSubPageSwiper,{mobileSwiperTabs:e.props.mobileSwiperTabs.length===0?JSON.parse(e.mobileProperties):e.props.mobileSwiperTabs,activeTab:"#mh-upgrade"},null,8,["mobileSwiperTabs"])],!0)]),default:withCtx(()=>{var _,S,C,T,x,k;return[createBaseVNode("div",{class:normalizeClass(["generic-container mb-20",{"mt-4":(_=e.props.upgrade)==null?void 0:_.enableGlassDesign}])},[createVNode(e.VueTabs,{modelValue:e.activeSubTab,"onUpdate:modelValue":[o[2]||(o[2]=E=>e.activeSubTab=E),o[3]||(o[3]=E=>t.$emit("update:active-sub-tab",E))],dormantMode:e.isEditorMode,hideTabs:(S=e.props.general)==null?void 0:S.hideSubtabs,enableGlassDesign:((C=e.props.upgrade)==null?void 0:C.enableGlassDesign)||((T=e.props.neighbourFreeSeat)==null?void 0:T.enableGlassDesign),renderPanelsWithVShow:""},createSlots({default:withCtx(()=>{var E,w,D;return[createBaseVNode("div",_hoisted_15$b,[(E=e.props.upgrade)!=null&&E.isHideInMobile?createCommentVNode("",!0):(openBlock(),createBlock(e.SubTabUpgrade,{key:0,class:normalizeClass({"pt-16":e.props.upgrade.isToggle}),apiUrl:e.props.upgrade.apiUrl,apiPointsUrl:e.props.upgrade.apiPointsUrl,bookingReference:e.props.upgrade.bookingReference,lastName:e.props.upgrade.lastName,description:e.props.upgrade.description,tooltipLabel:e.props.upgrade.tooltipLabel,tooltipBody:e.props.upgrade.tooltipBody,buttonLabel:e.props.upgrade.buttonLabel,note:e.props.upgrade.note,isToggle:e.props.upgrade.isToggle,toggleButtonLabel:e.props.upgrade.toggleButtonLabel,togglePointsApiURL:e.props.togglePointsApiURL,isMainTab:!0,enableGlassDesign:(w=e.props.upgrade)==null?void 0:w.enableGlassDesign},null,8,["class","apiUrl","apiPointsUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","isToggle","toggleButtonLabel","togglePointsApiURL","enableGlassDesign"]))]),createBaseVNode("div",_hoisted_16$b,[(D=e.props.neighbourFreeSeat)!=null&&D.isHideInMobile?createCommentVNode("",!0):(openBlock(),createBlock(e.subTabNeighbourFreeSeat,{key:0,apiUrl:e.props.upgrade.apiUrl,nfsEndpointUrl:e.props.neighbourFreeSeat.nfsEndpointUrl,apiPointsUrl:e.props.upgrade.apiPointsUrl,bookingReference:e.props.neighbourFreeSeat.bookingReference,lastName:e.props.neighbourFreeSeat.lastName,description:e.props.neighbourFreeSeat.description,tooltipLabel:e.props.neighbourFreeSeat.tooltipLabel,tooltipBody:e.props.neighbourFreeSeat.tooltipBody,buttonLabel:e.props.neighbourFreeSeat.buttonLabel,note:e.props.neighbourFreeSeat.note,toggleButtonLabel:e.props.neighbourFreeSeat.toggleButtonLabel,enableGlassDesign:e.props.neighbourFreeSeat.enableGlassDesign,togglePointsApiURL:e.props.togglePointsApiURL,isMainTab:!1},null,8,["apiUrl","nfsEndpointUrl","apiPointsUrl","bookingReference","lastName","description","tooltipLabel","tooltipBody","buttonLabel","note","toggleButtonLabel","enableGlassDesign","togglePointsApiURL"]))])]}),_:2},[(x=e.props.upgrade)!=null&&x.isHideInMobile?void 0:{name:"tab-mh-upgrade",fn:withCtx(()=>{var E;return[createBaseVNode("div",_hoisted_11$d,[createBaseVNode("span",_hoisted_12$c,toDisplayString((E=e.props.upgrade)==null?void 0:E.label),1)])]}),key:"0"},(k=e.props.neighbourFreeSeat)!=null&&k.isHideInMobile?void 0:{name:"tab-neighbour-free-seat",fn:withCtx(()=>{var E;return[createBaseVNode("div",_hoisted_13$c,[createBaseVNode("span",_hoisted_14$c,toDisplayString((E=e.props.neighbourFreeSeat)==null?void 0:E.label),1)])]}),key:"1"}]),1032,["modelValue","dormantMode","hideTabs","enableGlassDesign"])],2)]}),_:3},8,["isVisible","blendedHeaderCss","mobileSubPageDesign","enableGlassDesign","mobileSwiperTabs"])],64)}const MHupgrade=_export_sfc(_sfc_main$12,[["render",_sfc_render$12],["__scopeId","data-v-807269b6"],["__file","MHupgrade.vue"]]),MHupgrade$1=Object.freeze(Object.defineProperty({__proto__:null,default:MHupgrade},Symbol.toStringTag,{value:"Module"})),GROUP_ID={NEAR_YOU:"NEAR_YOU",POPULAR_DEST:"POPULAR_DEST",CODESHARE:"CODESHARE",EMPTY_LABEL:"EMPTY_LABEL",WITH_MH:"WITH_MH"},GROUP_ID_TO_LABEL_MAP={[GROUP_ID.NEAR_YOU]:i18nGlobal.t("Near You"),[GROUP_ID.POPULAR_DEST]:i18nGlobal.t("Popular Destinations"),[GROUP_ID.WITH_MH]:i18nGlobal.t("With Malaysia Airlines"),[GROUP_ID.CODESHARE]:i18nGlobal.t("With Codeshare and Partner Network"),[GROUP_ID.EMPTY_LABEL]:" "};let hasInitiated=!1,hasInitCompleted=!1;const baseList=ref$1(null),destinationList=ref$1(null),baseListError=ref$1(null),isBaseListLoading=ref$1(!0),currentSiteLocale=ref$1(null);class ONDFetchService{constructor({endpoint:o,languageCode:r}={}){this.endpoint=o,this.type="base",this.languageCode=r}async fetchOriginList(){const o=await axios$1.get(this.endpoint,{params:{type:this.t
1181ype,languageCode:this.languageCode}});if(String(o.status).startsWith("4")||String(o.status).startsWith("5"))throw new Error(o.statusText);if(String(o.status)==="200"&&!o.data.status)throw new Error(o.statusText);return o.data.ondList}async fetchDestinationList(o){const r=await axios$1.get(this.endpoint,{params:{type:this.type,origin:o,languageCode:this.languageCode}});if(String(r.status).startsWith("4")||String(r.status).startsWith("5"))throw new Error(r.statusText);if(String(r.status)==="200"&&!r.data.status)throw new Error(r.statusText);return r.data.ondList}}let _fetchService=null;const init=async()=>{currentSiteLocale.value,await waitFor(()=>!!unref(useGlobalAEMState$1().pageProperties),500).start(),_fetchService=new ONDFetchService({endpoint:"/bin/mh/revamp/mhexplorer/fetchOndRecords",languageCode:currentSiteLocale.value}),isBaseListLoading.value=!0;try{const o=await _fetchService.fetchOriginList();baseList.value=o}catch(o){baseListError.value=o.message||o}isBaseListLoading.value=!1,hasInitCompleted=!0},processDataListIntoGroups=(t,o=[])=>{const r=o.filter(Boolean);let e=r.map(([n,a])=>({label:GROUP_ID_TO_LABEL_MAP[n],options:[],groupId:n}));return t.forEach(n=>{lodashExports.forEach(r,([a,i],s)=>{let l=!1;return typeof i=="string"?(n[i]===!0||n[i]===a)&&(l=!0):typeof i=="function"?i(n)===!0&&(l=!0):typeof i=="boolean"&&i===!0&&(l=!0),l?(e[s].options.push(n),!1):!0})}),e=e.filter(n=>n.options.length>0),e},sortNearYou_MUTATE=t=>{const o=t.find(r=>r.groupId===GROUP_ID.NEAR_YOU);o&&o.options.sort((r,e)=>(r==null?void 0:r.displacement)-(e==null?void 0:e.displacement))},appendAirportInfo=t=>{var r,e,n,a,i,s,l,d,c,u;return{_original:t,value:t.airportCode,displayValue:((r=t.locale)==null?void 0:r.cityName)??t.city,label:`${((e=t.locale)==null?void 0:e.cityName)??t.city}, ${((n=t.locale)==null?void 0:n.countryName)??t.countryName}`,airportCode:t.airportCode,code:t.airportCode,city:((a=t.locale)==null?void 0:a.cityName)??t.city,searchString:`${t.airportCode} | ${t.city}, ${t.countryName} | ${t.airportName} | ${((i=t.locale)==null?void 0:i.cityName)??""}, ${((s=t.locale)==null?void 0:s.countryName)??""} | ${((l=t.locale)==null?void 0:l.airportName)??""}`,description:((d=t.locale)==null?void 0:d.airportName)??t.airportName,countryName:((c=t.locale)==null?void 0:c.countryName)??t.countryName,unTranslatedCountryName:((u=t.locale)==null?void 0:u.unTranslatedCountryName)??t.unTranslatedCountryName,countryCode:t.countryCode,latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude),...t.domesticDestinations?{domesticDestinations:t.domesticDestinations}:null,isMultiCity:t.isMultiCity,isRedemption:t.isRedemption,isMHExplorer:t.isMHExplorer,isFlysiswa:t.isFlysiswa,isPopularDestination:t.isPopularDestination,isMHSportsKBS:t.isMHSportsKBS,isMHSportsJDT:t.isMHSportsJDT,isCUG1:t.isCUG1,isCUG2:t.isCUG2}},processDatalist=(t,{listIdentifier:o,direction:r,excludeList:e,userCoords:n,currentPageCountry:a,normalRevenueONDList:i,redemptionRevenueONDList:s,multicityONDList:l}={})=>{let d=unref(t);if(!Array.isArray(d))return console.warn("processDatalist() 'dataList' is not an Array. No-op."),d;if(d.length===0)return d;d=d.map(appendAirportInfo);const c=n?{latitude:n.latitude,longitude:n.longitude}:null;switch(unref(o)){case"FLIGHT_SEARCH_CASH":{const u=new Map;d.forEach(f=>{var y;const m=f.airportCode;if(f.isMHExplorer&&!(i&&!f[i])&&!(Array.isArray(e)&&e.find(_=>_.airportCode===m)))if(u.has(m)){const _=u.get(m);f.isRedemption&&(_.isRedemption=!0,_.groupTo!==GROUP_ID.NEAR_YOU&&(_.groupTo=GROUP_ID.WITH_MH)),f.isPopularDestination&&(_.isPopularDestination=!0,_.groupTo!==GROUP_ID.NEAR_YOU&&r==="to"&&(_.groupTo=GROUP_ID.POPULAR_DEST))}else{let _="";r==="to"&&f.isPopularDestination?_=GROUP_ID.POPULAR_DEST:_=f.isRedemption?GROUP_ID.WITH_MH:GROUP_ID.CODESHARE;let S=-1;r==="from"&&(c?(S=getDisplacementInKilometer(c,{latitude:f.latitude,longitude:f.longitude}),S>=0&&S<=75&&(_=GROUP_ID.NEAR_YOU)):((y=f.countryCode)==null?void 0:y.toUpperCase())===a.toUpperCase()&&(_=GROUP_ID.NEAR_YOU)),u.set(m,{...f,groupTo:_,displacement:S})}}),d=Array.from(u.values()),d=processDataListIntoGroups(d,[r==="from"?[GROUP_ID.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID.POPULAR_DEST,"groupTo"]:null,[GROUP_ID.WITH_MH,"groupTo"],[GROUP_ID.CODESHARE,"groupTo"],[GROUP_ID.EMPTY_LABEL,!0]]),sort
1181NearYou_MUTATE(d);break}case"FLIGHT_SEARCH_ENRICH":{const u=new Map;d.forEach(f=>{var y;const m=f.airportCode;if(f.isRedemption&&!(s&&!f[s])&&!(Array.isArray(e)&&e.includes(m)))if(u.has(m)){const _=u.get(m);f.isRedemption&&(_.isRedemption=!0,_.groupTo!==GROUP_ID.NEAR_YOU&&(_.groupTo=GROUP_ID.WITH_MH)),f.isPopularDestination&&(_.isPopularDestination=!0,_.groupTo!==GROUP_ID.NEAR_YOU&&r==="to"&&(_.groupTo=GROUP_ID.POPULAR_DEST))}else{let _="";r==="to"&&f.isPopularDestination?_=GROUP_ID.POPULAR_DEST:_=GROUP_ID.WITH_MH;let S=-1;r==="from"&&(c?(S=getDisplacementInKilometer(c,{latitude:f.latitude,longitude:f.longitude}),S>=0&&S<=75&&(_=GROUP_ID.NEAR_YOU)):((y=f.countryCode)==null?void 0:y.toUpperCase())===a.toUpperCase()&&(_=GROUP_ID.NEAR_YOU)),u.set(m,{...f,groupTo:_,displacement:S})}}),d=Array.from(u.values()),d=processDataListIntoGroups(d,[r==="from"?[GROUP_ID.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID.POPULAR_DEST,"groupTo"]:null,[GROUP_ID.WITH_MH,"groupTo"],[GROUP_ID.EMPTY_LABEL,!0]]),sortNearYou_MUTATE(d);break}case"FLIGHT_SEARCH_FLYSISWA":{const u=new Map;d.forEach(f=>{var b;const m=f.airportCode;if(f.isFlysiswa&&!(i&&!f[i])&&!(Array.isArray(e)&&e.find(y=>y.airportCode===m)))if(u.has(m)){const y=u.get(m);f.isPopularDestination&&(y.isPopularDestination=!0,y.groupTo!==GROUP_ID.NEAR_YOU&&r==="to"&&(y.groupTo=GROUP_ID.POPULAR_DEST))}else{let y="";r==="to"&&f.isPopularDestination?y=GROUP_ID.POPULAR_DEST:y=GROUP_ID.WITH_MH;let _=-1;r==="from"&&(c?(_=getDisplacementInKilometer(c,{latitude:f.latitude,longitude:f.longitude}),_>=0&&_<=75&&(y=GROUP_ID.NEAR_YOU)):((b=f.countryCode)==null?void 0:b.toUpperCase())===a.toUpperCase()&&(y=GROUP_ID.NEAR_YOU)),u.set(m,{...f,groupTo:y,displacement:_})}}),d=Array.from(u.values()),d=processDataListIntoGroups(d,[r==="from"?[GROUP_ID.NEAR_YOU,"groupTo"]:null,r==="to"?[GROUP_ID.POPULAR_DEST,"groupTo"]:null,[GROUP_ID.WITH_MH,"groupTo"],[GROUP_ID.CODESHARE,"groupTo"],[GROUP_ID.EMPTY_LABEL,!0]]),sortNearYou_MUTATE(d);break}}return d},useMHEONDList=({fromValueRef:t,toValueRef:o,listIdentifier:r,translationLocale:e,normalRevenueONDList:n,redemptionRevenueONDList:a,multicityONDList:i}={})=>{getCurrentInstance(),hasInitiated||(hasInitiated=!0,currentSiteLocale.value=e??"en",init());const s=ref$1(!1),l=ref$1(!1),d=computed(()=>(isBaseListLoading.value,!!(s.value||isBaseListLoading.value))),c=computed(()=>(isBaseListLoading.value,!!(l.value||isBaseListLoading.value))),u=computed(()=>{var N;const{pageProperties:k}=useGlobalAEMState$1(),E=k.value.rootCountry;let w=[];S.value,baseList.value;let D=[];return(N=baseList.value)!=null&&N.originList&&(D=baseList.value.originList),w=processDatalist(D,{isBST:!1,listIdentifier:unref(r),direction:"from",excludeList:unref(o)?[unref(o)]:null,userCoords:T.value,currentPageCountry:E,normalRevenueONDList:n,redemptionRevenueONDList:a}),w}),f=computed(()=>{var N;const{pageProperties:k}=useGlobalAEMState$1(),E=k.value.rootCountry;let w=[],D=[];return(N=destinationList.value)!=null&&N.destinations&&(D=destinationList.value.destinations),w=processDatalist(D,{isBST:!1,listIdentifier:unref(r),direction:"to",excludeList:unref(t)?[unref(t)]:null,userCoords:!1,currentPageCountry:E,normalRevenueONDList:n,redemptionRevenueONDList:a}),w}),m=computed(()=>u.value.reduce((k,E)=>(E.options?k.push(...E.options):k.push(E),k),[])),b=computed(()=>f.value.reduce((k,E)=>(E.options?k.push(...E.options):k.push(E),k),[])),y=async()=>{var E;await waitFor(()=>hasInitCompleted===!0).start(),destinationList.value=null,l.value=!0;try{const w=await _fetchService.fetchDestinationList(((E=t.value)==null?void 0:E.code)??t.value);destinationList.value=w}catch(w){console.warn("fetchToList API error",w)}finally{l.value=!1}if(!(typeof t.value=="string"&&t.value.length!==3)&&typeof t.value=="string"){const w=m.value.find(D=>D.code===t.value);w?t.value=w:console.warn(`useONDList.js: Invalid from(origin) string value of "${t.value}"`)}},_=async()=>{if(await waitFor(()=>hasInitCompleted===!0).start(),typeof o.value=="string"){const E=b.value.find(w=>w.code===o.value);console.log("toValueRef foundItem = ",E),E?o.value=E:console.warn(`useONDList.js: Invalid to(destination) string value of "${o.value}"`)}},S=ref$1(null),C=k=>{S.value=k},T=computed(()=>!S.value||unref(S.value.error)?null:S.value.coords);return{optionsFrom:u,optionsTo:f,optionsFromFlattened:m,optionsToFlattened:b,isLoadingFrom:d,isLoadingTo:c,updateFromValue:y,updateToValue:_,swapLocations:async()=>{var k;if(s.value||l.value||!t.value||!o.value)return!1;{[t.value,o.value]=[o.value,t.value],destinationList.value=null;const E=m.value.find(w=>w.value===t.value.value);t.value=E||null,l.value=!0;try{const w=await _fetchService.fetchDestinationList(((k=t.value)==null?void 0:k.code)??t.value);destinationList.value=w;const D=b.value.find(N=>N.value===o.value.value);o.value=D||null}catch(w){console.warn("fetchToList API error",w)}finally{l.value=!1}}},setUserGeolocation:C}
1181},__default__$10={name:"ONDPicker"},_sfc_main$11=Object.assign(__default__$10,{props:{nameFrom:{type:String,required:!0},nameTo:{type:String,required:!0},modelValueFrom:{type:[String,Object],default:null},modelValueTo:{type:[String,Object],default:null},labelTextFrom:{type:String,default:i18nGlobal.t("From")},labelTextTo:{type:String,default:i18nGlobal.t("To")},requiredFrom:{type:Boolean,default:!1},requiredTo:{type:Boolean,default:!1},requiredErrorMsgFrom:{type:String,default:i18nGlobal.t("This field is required")},requiredErrorMsgTo:{type:String,default:i18nGlobal.t("This field is required")},useOptionsFromProp:{type:Boolean,default:!1},optionsFrom:{type:Object,default:null},optionsTo:{type:Object,default:null},isLoadingFrom:{type:Boolean,default:!1},isLoadingTo:{type:Boolean,default:!1},noResultsText:{type:String,default:null},requestGeolocation:{type:Boolean,default:!0},ondListIdentifier:{type:String,default:""},groupLabelsOverwrite:{type:Object,default:null},specificOriginList:{type:String,default:""},specificDestinationList:{type:String,default:""},restrictedDestinationList:{type:String,default:""},enableONDLocaleTranslation:{type:Boolean,default:!1},ondTranslationLanguage:{type:String,default:""},normalRevenueONDList:{type:String,default:""},multicityONDList:{type:String,default:""},redemptionRevenueONDList:{type:String,default:""}},emits:["update:modelValueFrom","update:modelValueTo"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=useInternalValue("modelValueFrom"),i=useInternalValue("modelValueTo"),s=window.siteName,l=()=>{E()},d=ref$1(null),c=ref$1(null),u=z=>{var W;z&&!isMobileViewport.value&&((W=c.value)==null||W.focus())},f=useSlots(),m=computed(()=>Object.fromEntries(Object.keys(f).filter(z=>!!z.startsWith("from-picker-")).map(z=>[z.replace("from-picker-",""),f[z]]))),b=computed(()=>Object.fromEntries(Object.keys(f).filter(z=>!!z.startsWith("to-picker-")).map(z=>[z.replace("to-picker-",""),f[z]]))),y=computed(()=>e.normalRevenueONDList==="none"?null:e.normalRevenueONDList),_=computed(()=>e.redemptionRevenueONDList==="none"?null:e.redemptionRevenueONDList),{optionsFrom:S,optionsTo:C,isLoadingFrom:T,isLoadingTo:x,setUserGeolocation:k,swapLocations:E,updateFromValue:w,updateToValue:D}=e.useOptionsFromProp?{}:useMHEONDList({fromValueRef:a,toValueRef:i,listIdentifier:toRef(e,"ondListIdentifier"),...e.ondTranslationLanguage?{translationLocale:e.ondTranslationLanguage}:null,normalRevenueONDList:y.value,redemptionRevenueONDList:_.value}),N=computed(()=>S.value.map(W=>({groupId:W.groupId,label:e.groupLabelsOverwrite[W.groupId]||W.label,options:W.options}))),F=computed(()=>C.value.map(W=>({groupId:W.groupId,label:e.groupLabelsOverwrite[W.groupId]||W.label,options:W.options}))),V=computed(()=>(e.isLoadingFrom,T==null||T.value,e.useOptionsFromProp?e.isLoadingFrom:T.value)),A=computed(()=>(e.isLoadingTo,x==null||x.value,e.useOptionsFromProp?e.isLoadingTo:x.value)),M=ref$1(null),O=ref$1(!1),R=computed(()=>{if(e.useOptionsFromProp,e.optionsFrom,S==null||S.value,!O.value&&s==="MH"||V.value)return null;if(e.useOptionsFromProp)return e.optionsFrom;let z=S.value;if(e.groupLabelsOverwrite!==null&&(z=N.value),e.specificOriginList){const W=e.specificOriginList.split(",");z=z.map(J=>({...J,options:J.options.filter(te=>W.some(re=>te.airportCode===re))}))}return z=z.filter(W=>W.options.length),z}),I=computed(()=>{if(e.useOptionsFromProp,e.optionsTo,C==null||C.value,!O.value&&s==="MH"||A.value)return null;if(e.useOptionsFromProp)return e.optionsTo;let z=C.value;if(e.groupLabelsOverwrite!==null&&(z=F.value),e.specificDestinationList){const W=e.specificDestinationList.split(",");z=z.map(J=>({...J,options:J.options.filter(te=>W.some(re=>te.airportCode===re))}))}return z=z.filter(W=>W.options.length),z}),j=computed(()=>!a.value);let H=null;const U=()=>{if(O.value=!0,H!==null){console.log("Disabling geolocation. Reason: geolocation-data has been shared");return}if(e.requestGeolocation&&H===null){H=useGeolocation(),k(H),console.log("Enabling geolocation");return}console.log("Disabling geolocation. Reason: disabled in author configuration")};(()=>{if("debug"in window.router.currentRoute.value.query&&!document.querySelector("#DEBUG_STYLES")){const W=window.document.createElement("style");W.id="DEBUG_STYLES",W.innerHTML=`
1182			.hidden-debug-info { display: block !important; }
1183			.ONDPicker .AirportPicker .multiselect-main { --ms-max-height: 500px !important; }
1184			.ONDPicker .AirportPicker .multiselect-options { max-height: 500px !important; }
1185		`,window.document.body.appendChild(W)}})(),o({updateFromValue:w,updateToValue:D});const L={props:e,emit:n,internalValueFrom:a,internalValueTo:i,siteName:s,handleSwapValues:l,airportPickerFrom:d,airportPickerTo:c,handleFromUpdateValue:u,slots:f,fromPickerSlots:m,toPickerSlots:b,getNormalRevenueONDListComputed:y,getRedemptionRevenueONDListComputed:_,optionsFrom:S,optionsTo:C,isLoadingFrom:T,isLoadingTo:x,setUserGeolocation:k,swapLocations:E,updateFromValue:w,updateToValue:D,computedGroupLabelsFromOptions:N,computedGroupLabelsToOptions:F,computedIsLoadingFrom:V,computedIsLoadingTo:A,specificOriginOptionsTo:M,generateOptionListing:O,computedOptionsFrom:R,computedOptionsTo:I,disableSwapAndDest:j,get userGeolocation(){return H},set userGeolocation(z){H=z},handleOnOpen:U,updateModelValueHandler:z=>{u(z),w()},AirportPicker,get useInternalValue(){return useInternalValue},get i18nGlobal(){return i18nGlobal},get isMobileViewport(){return isMobileViewport},get useMHEONDList(){return useMHEONDList},AppSpinner,get useGeolocation(){return useGeolocation},get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(L,"__isScriptSetup",{enumerable:!1,value:!0}),L}}),_hoisted_1$12=["data-use-theme"],_hoisted_2$W={class:"hidden-debug-info"},_hoisted_3$x={class:"inner-wrapper"},_hoisted_4$q={class:"picker-wrapper picker-wrapper-from"},_hoisted_5$n={class:"multiselect-options cursor-default"},_hoisted_6$l={class:"py-4"},_hoisted_7$l={class:"sr-only",role:"alert"},_hoisted_8$k=["disabled","aria-label"],_hoisted_9$i={class:"picker-wrapper picker-wrapper-to"},_hoisted_10$c={class:"multiselect-options cursor-default"},_hoisted_11$c={class:"py-4"},_hoisted_12$b={class:"sr-only",role:"alert"},_hoisted_13$b={class:"error-msg-container leading-tight flex text-semantic-red-base text-sm md:flex-col"},_hoisted_14$b={class:"flex-1 mt-1 w-[min-content] empty:mt-0 md:w-full"},_hoisted_15$a={key:0},_hoisted_16$a={class:"flex-1 mt-1 w-[min-content] empty:mt-0 md:w-full"},_hoisted_17$9={key:0};function _sfc_render$11(t,o,r,e,n,a){var d,c,u,f,m,b,y,_,S,C,T,x,k,E;const i=__unplugin_components_1$4,s=resolveDirective("button-press"),l=resolveDirective("html-sanitize");return openBlock(),createElementBlock("div",{class:"ONDPicker","data-use-theme":e.siteName},[createBaseVNode("p",_hoisted_2$W,"🐞 "+toDisplayString(e.props.ondListIdentifier),1),createBaseVNode("div",_hoisted_3$x,[createBaseVNode("div",_hoisted_4$q,[createVNode(e.AirportPicker,{ref:"airportPickerFrom",modelValue:e.internalValueFrom,"onUpdate:modelValue":[o[0]||(o[0]=w=>e.internalValueFrom=w),e.updateModelValueHandler],class:"AirportPicker-from",name:e.props.nameFrom,options:e.computedOptionsFrom,labelText:e.props.labelTextFrom,canClear:!0,showOptionLocationIcon:!0,required:e.props.requiredFrom,requiredErrorMsg:e.props.requiredErrorMsgFrom,noResultsText:e.props.noResultsText,attrs:{readOnly:e.isLoadingFrom},"aria-label":t.$t("Airport of departure"),variant:"booking-widget",onOpen:e.handleOnOpen},createSlots({_:2},[renderList(e.fromPickerSlots,(w,D)=>({name:D,fn:withCtx(N=>[renderSlot(t.$slots,`from-picker-${D}`,normalizeProps(guardReactiveProps(N)),void 0,!0)])})),e.computedIsLoadingFrom?{name:"nooptions",fn:withCtx(()=>[createBaseVNode("div",_hoisted_5$n,[createBaseVNode("div",_hoisted_6$l,[createVNode(e.AppSpinner,{class:"mx-auto"})])])]),key:"0"}:void 0]),1032,["modelValue","name","options","labelText","required","requiredErrorMsg","noResultsText","attrs","aria-label"])]),createBaseVNode("div",_hoisted_7$l,toDisplayString(t.$t("Selected departure airport is {airport}",{airport:((d=e.internalValueFrom)==null?void 0:d.displayValue)??((c=e.internalValueFrom)==null?void 0:c.value)??e.internalValueFrom})),1),withDirectives((openBlock(),createElementBlock("button",{disabled:e.disableSwapAndDest,class:"btn-switch btn-generic mx-2 flex",type:"button","aria-label":t.$t("Swap locations"),onClick:e.handleSwapValues},[createVNode(i,{class:"fill-white m-auto"})],8,_hoisted_8$k)),[[s]]),createBaseVNode("div",_hoisted_9$i,[createVNode(e.AirportPicker,{ref:"airportPickerTo",modelValue:e.internalValueTo,"onUpdate:modelValue":[o[1]||(o[1]=w=>e.internalValueTo=w),o[2]||(o[2]=w=>{e.updateToValue()})],name:e.props.nameTo,options:e.computedOptionsTo,labelText:e.props.labelTextTo,canClear:!0,showOptionLocationIcon:!0,required:e.props.requiredTo,requiredErrorMsg:e.props.requiredErrorMsgTo,noResultsText:e.props.noResultsText,disabled:e.disableSwapAndDest,attrs:{readOnly:e.isLoadingTo},variant:"booking-widget","aria-label":t.$t("Airport of arrival"),onOpen:e.handleOnOpen},createSlots({_:2},[renderList(e.toPickerSlots,(w,D)=>({name:D,fn:withCtx(N=>[renderSlot(t.$slots,`to-picker-${D}`,normalizeProps(guardReactiveProps(N)),void 0,!0)])})),e.computedIsLoadingTo?{name:"nooptions",fn:withCtx(()=>[createBaseVNode("div",_hoisted_10$c,[createBaseVNode("div",_hoisted_11$c,[createVNode(e.AppSpinner,{class:"mx-auto"})])])]),key:"0"}:void 0]),1032,["modelValue","name","options","labelText","required","requiredErrorMsg","noResultsText","disabled","attrs","aria-label"])]),createBaseVNode("div",_hoisted_12$b,toDisplayString(t.$t("Selected arrival airport is {airport}",{airport:((u=e.internalValueTo)==null?void 0:u.displayValue)??((f=e.internalValueTo)==null?void 0:f.value)??e.internalValueTo})),1)]),createBaseVNode("div",_hoisted_13$b,[createBaseVNode("div",_hoisted_14$b,[(b=(m=e.airportPickerFrom)==null?void 0:m.hiddenTextField)!=null&&b.hasValidationError&&((_=(y=e.airportPickerFrom)==null?void 0:y.hiddenTextField)!=null&&_.meta.touched)?withDirectives((openBlock(),createElementBlock("span",_hoisted_15$a,null,512)),[[l,(S=e.airportPickerFrom)==null?void 0:S.hiddenTextField.errors[0]]]):createCommentVNode("",!0)]),o[3]||(o[3]=createBaseVNode("div",{class:"w-$gapWidth flex-none md:hidden"},null,-1)),createBaseVNode("div",_hoisted_16$a,[(T=(C=e.airportPickerTo)==null?void 0:C.hiddenTextField)!=null&&T.hasValidationError&&((k=(x=e.airportPickerTo)==null?void 0:x.hiddenTextField)!=null&&k.meta.touched)?withDirectives((openBlock(),createElementBlock("span",_hoisted_17$9,null,512)),[[l,(E=e.airportPickerTo)==null?void 0:E.hiddenTextField.errors[0]]]):createCommentVNode("",!0)])])],8,_hoisted_1$12)}
1185const ONDPicker=_export_sfc(_sfc_main$11,[["render",_sfc_render$11],["__scopeId","data-v-fba4a2fb"],["__file","ONDPicker.vue"]]),__default__$$={name:"PassengerAndCabinClass"},_sfc_main$10=Object.assign(__default__$$,{props:{passengerAdultsName:{type:String,default:"passengerAdults"},passengerTeensName:{type:String,default:"passengerTeens"},passengerChildrenName:{type:String,default:"passengerChildren"},passengerInfantsName:{type:String,default:"passengerInfants"},cabinClassName:{type:String,default:"cabinClass"},labelText:{type:String,default:i18nGlobal.t("Passengers and cabin class")},isUKVariant:{type:Boolean,default:!1},defaultValues:{type:Object,default:()=>({})},isShowEconomyClass:{type:Boolean,default:!0},isShowBusinessClass:{type:Boolean,default:!0},isShowBusinessSuiteClass:{type:Boolean,default:!0},isShowChildren:{type:Boolean,default:!0},isShowInfant:{type:Boolean,default:!0},passengerLabel:{type:String,default:i18nGlobal.t("Passengers")},adultLabel:{type:String,default:i18nGlobal.t("Adults")},teenagerLabel:{type:String,default:i18nGlobal.t("Teenagers")},childrenLabel:{type:String,default:i18nGlobal.t("Children")},infantLabel:{type:String,default:i18nGlobal.t("Infants")},cabinClassLabel:{type:String,default:i18nGlobal.t("Cabin Class")},economyLabel:{type:String,default:i18nGlobal.t("Economy")},businessLabel:{type:String,default:i18nGlobal.t("Business")},businessSuiteLabel:{type:String,default:i18nGlobal.t("Business Suite")},maxInfantsCount:{type:Number,default:null}},emits:[],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1(null),i=computed(()=>[...e.isShowEconomyClass?[{label:e.economyLabel,value:"1"}]:[],...e.isShowBusinessClass?[{label:e.businessLabel,value:"2"}]:[],...e.isShowBusinessSuiteClass?[{label:e.businessSuiteLabel,value:"3"}]:[]]),s=ref$1(e.defaultValues.cabinClassValue??i.value[0]??{}),l=k=>{s.value=k},{adults:d,teens:c,children:u,infants:f,totalPassengers:m,totalPassengersIncludedInfantCount:b,hasReachedMaxPassengersCount:y,showInfantErrorMsg:_}=usePassengers({maxPassengers:1,...e.maxInfantsCount?{maxInfantsCount:e.maxInfantsCount}:null,...e.defaultValues.adultsCount?{defaultAdultsCount:e.defaultValues.adultsCount}:null,...e.defaultValues.teensCount?{defaultTeensCount:e.defaultValues.teensCount}:null,...e.defaultValues.childrenCount?{defaultChildrenCount:e.defaultValues.childrenCount}:null,...e.defaultValues.infantsCount?{defaultInfantsCount:e.defaultValues.infantsCount}:null}),S=useEventBus("booking-widget:passenger-detail");watch(d.count,k=>{S.emit("update-passenger-count",{adults:k})}),watch(u.count,k=>{S.emit("update-passenger-count",{children:k})}),watch(f.count,k=>{S.emit("update-passenger-count",{infants:k})}),watch(s,k=>{S.emit("update-passenger-count",{cabinClass:k.value})});const C=(k,E)=>{switch(k){case"adults":{d.count.value=E;break}case"teens":{c.count.value=E;break}case"children":{u.count.value=E;break}case"infants":{f.count.value=E;break}case"cabinClass":{typeof E!="object"?s.value=(i==null?void 0:i.value.find(w=>w.value===E.toString()))??{}:s.value=E;break}}},T=k=>{for(const[E,w]of Object.entries(k))C(E,w)};o({setValue:C,setValues:T,cabinClassValue:s,adults:d,teens:c,children:u,infants:f});const x={props:e,emit:n,dropdownEl:a,computedCabinClassOptions:i,cabinClassValue:s,handleSelectCabinClass:l,adults:d,teens:c,children:u,infants:f,totalPassengers:m,totalPassengersIncludedInfantCount:b,hasReachedMaxPassengersCount:y,showInfantErrorMsg:_,globalBookFlightBus:S,setValue:C,setValues:T,unref,Dropdown,get isMobileViewport(){return isMobileViewport},NumberPlusMinus,CTAButton,get usePassengers(){return usePassengers},TextField,get i18nGlobal(){return i18nGlobal},get useEventBus(){return useEventBus}};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),_hoisted_1$11={class:"PassengerAndCabinClass"},_hoisted_2$V={class:"value-wrapper relative flex-grow mr-2 leading-none"},_hoisted_3$w={class:"text-label absolute font-semibold"},_hoisted_4$p={class:"text-value relative xs:text-sm xs:leading-none"},_hoisted_5$m={key:0},_hoisted_6$k={class:"multiselect-options styled-scrollbar pt-4 cursor-default mr-0 md:mr-2"},_hoisted_7$k={class:"px-4 typo-category-title mb-4"},_hoisted_8$j={class:"uppercase"},_hoisted_9$h={class:"px-4 flex flex-col gap-4"},_hoisted_10$b=["role"],_hoisted_11$b={key:0,class:"px-4 mt-4 mb-4"},_hoisted_12$a={key:1,class:"mb-4"}
1185,_hoisted_13$a={key:2,class:"px-4 typo-category-title mb-4"},_hoisted_14$a={class:"uppercase"},_hoisted_15$9={key:3,class:"px-4 flex flex-wrap gap-4 mb-6 md:flex-col md:gap-2"},_hoisted_16$9={class:"font-semibold"},_hoisted_17$8={class:"sr-only",role:"alert"},_hoisted_18$8={class:"sticky bottom-0 bg-white py-4 px-4 border-t-2 border-neutral-grey-base >md:hidden"};function _sfc_render$10(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$11,[createVNode(e.Dropdown,{ref:"dropdownEl",labelText:e.props.labelText,ariaLabel:e.props.labelText,desktopVariant:"custom-html booking-widget",mobileVariant:"no-padding custom-html"},{"mobile-title":withCtx(()=>[renderSlot(t.$slots,"mobile-title",{},void 0,!0)]),placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_2$V,[createBaseVNode("span",_hoisted_3$w,toDisplayString(e.props.labelText),1),createBaseVNode("span",_hoisted_4$p,[createTextVNode(toDisplayString(t.$tc("{n} Passenger",{n:e.totalPassengersIncludedInfantCount})),1),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("span",_hoisted_5$m,", ")):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(e.cabinClassValue.label),1)])])]),nooptions:withCtx(({hideMobileOverlay:i})=>[createBaseVNode("div",_hoisted_6$k,[createBaseVNode("div",_hoisted_7$k,[createBaseVNode("p",_hoisted_8$j,toDisplayString(e.props.passengerLabel),1)]),createBaseVNode("div",_hoisted_9$h,[renderSlot(t.$slots,"before-adults",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.adults.count.value,"onUpdate:modelValue":o[0]||(o[0]=s=>e.adults.count.value=s),name:e.props.passengerAdultsName,ariaLabel:e.props.adultLabel,ariaDescription:t.$t(e.props.isUKVariant?"Ages 16 and above":"Ages 13 to 26"),min:e.unref(e.adults.min),max:e.hasReachedMaxPassengersCount?e.adults.count.value:e.unref(e.adults.max)},createSlots({_:2},[t.$slots["adult-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"adult-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"]),e.props.isUKVariant?renderSlot(t.$slots,"before-teens",{key:0},void 0,!0):createCommentVNode("",!0),e.props.isUKVariant?(openBlock(),createBlock(e.NumberPlusMinus,{key:1,modelValue:e.teens.count.value,"onUpdate:modelValue":o[1]||(o[1]=s=>e.teens.count.value=s),name:e.props.passengerTeensName,ariaLabel:e.props.teenagerLabel,ariaDescription:t.$t("Ages 12 to 15"),min:e.unref(e.teens.min),max:e.hasReachedMaxPassengersCount?e.teens.count.value:e.unref(e.teens.max)},createSlots({_:2},[t.$slots["teen-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"teen-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])):createCommentVNode("",!0),e.props.isShowChildren?(openBlock(),createElementBlock(Fragment,{key:2},[renderSlot(t.$slots,"before-children",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.children.count.value,"onUpdate:modelValue":o[2]||(o[2]=s=>e.children.count.value=s),name:e.props.passengerChildrenName,ariaLabel:e.props.childrenLabel,ariaDescription:t.$t("Ages 2 to 11"),min:e.unref(e.children.min),max:e.hasReachedMaxPassengersCount?e.children.count.value:e.unref(e.children.max)},createSlots({_:2},[t.$slots["children-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"children-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])],64)):createCommentVNode("",!0),e.props.isShowInfant?(openBlock(),createElementBlock(Fragment,{key:3},[renderSlot(t.$slots,"before-infants",{},void 0,!0),createVNode(e.NumberPlusMinus,{modelValue:e.infants.count.value,"onUpdate:modelValue":o[3]||(o[3]=s=>e.infants.count.value=s),name:e.props.passengerInfantsName,ariaLabel:e.props.infantLabel,ariaDescription:t.$t("Ages below 2 for the entire journey"),min:e.unref(e.infants.min),max:e.unref(e.infants.max)},createSlots({_:2},[t.$slots["infant-description-label"]?{name:"description",fn:withCtx(()=>[renderSlot(t.$slots,"infant-description-label",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","name","ariaLabel","ariaDescription","min","max"])],64)):createCommentVNode("",!0)]),withDirectives(createBaseVNode("div",{class:"error-msg-container px-4 leading-tight flex text-semantic-red-base text-sm md:flex-col mt-2",role:e.showInfantErrorMsg?"alert":null},[createBaseVNode("p",null,toDisplayString(t.$t("Each infant should be accompanied by one adult")),1)],8,_hoisted_10$b),[[vShow,e.showInfantErrorMsg]]),t.$slots["after-passengers"]?(openBlock(),createElementBlock("div",_hoisted_11$b,[render
1185Slot(t.$slots,"after-passengers",{},void 0,!0)])):createCommentVNode("",!0),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_12$a,o[4]||(o[4]=[createBaseVNode("hr",{class:"bg-neutral-grey"},null,-1)]))):createCommentVNode("",!0),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_13$a,[createBaseVNode("p",_hoisted_14$a,toDisplayString(e.props.cabinClassLabel),1)])):createCommentVNode("",!0),e.computedCabinClassOptions.length?(openBlock(),createElementBlock("div",_hoisted_15$9,[renderSlot(t.$slots,"before-cabin-class-options",{},void 0,!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.computedCabinClassOptions,s=>(openBlock(),createBlock(e.CTAButton,{key:s.value,styleType:e.cabinClassValue.value===s.value?"primary":"secondary",ctaSizing:e.isMobileViewport?"fluid":"auto",onClick:l=>e.handleSelectCabinClass(s)},{default:withCtx(()=>[createBaseVNode("span",_hoisted_16$9,toDisplayString(s.label),1)]),_:2},1032,["styleType","ctaSizing","onClick"]))),128)),createBaseVNode("div",_hoisted_17$8,toDisplayString(t.$t("Currently selected cabin class is {selectedCabinLabel}",{selectedCabinLabel:e.cabinClassValue.label})),1)])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_18$8,[createVNode(e.CTAButton,{alignmentMobile:"right",onClick:i},{default:withCtx(()=>[createTextVNode(toDisplayString(t.$t("Done")),1)]),_:2},1032,["onClick"])])]),_:3},8,["labelText","ariaLabel"]),createVNode(e.TextField,{variant:"input-hidden",name:e.props.cabinClassName,ariaLabel:t.$t("Selected cabin class"),modelValue:e.cabinClassValue.value},null,8,["name","ariaLabel","modelValue"])])}const PassengerAndCabinClass=_export_sfc(_sfc_main$10,[["render",_sfc_render$10],["__scopeId","data-v-386ce562"],["__file","PassengerAndCabinClass.vue"]]),__default__$_={name:"SubTabBookFlight"},_sfc_main$$=Object.assign(__default__$_,{props:{payingByEnrichLabel:{type:String,default:""},hideTodayDateIndicator:{type:Boolean,default:!1},subHeaderTabDescription:{type:String,default:""},subHeaderTabTooltipBody:{type:String,default:""},subHeaderTabTooltipLabel:{type:String,default:""},note:{type:String,default:""},searchFlightCTAText:{type:String,default:i18nGlobal.t("Search flight")},disableGeolocation:{type:Boolean,default:!1},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null},promoCodeLabel:{type:String,default:null},promoCodeErrorMessage:{type:String,default:i18nGlobal.t("Conditions not met for promo code to be applied")},supersedePromoCode:{type:String,default:null},subHeaderTooltipCTATextMobileLabel:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},disableCalendarPickerAnimation:{type:Boolean,default:!1},passengerSelectionQuestion:{type:String,default:""},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},enableMattaToggleButton:{type:Boolean,default:!1},mattaToggleButtonLabel:{type:String,default:""},hidePromoCodeField:{type:Boolean,default:!1},enrichAlwaysOn:{type:Boolean,default:!1},enrichAlwaysOnCountriesData:{type:Array,default:()=>[]},loggedInMessageNote:{type:String,default:""},enableONDLocaleTranslation:{type:Boolean,default:!1},ondTranslationLanguage:{type:String,default:""},customCUGSearchWidget:{type:Object,default:null},isMHSportsUser:{type:Boolean,default:!1}},emits:["save-search-data","form-submission"],setup(t,{expose:o,emit:r}){const e=t,n=r,{isRTL:a}=useIsRTL(),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null),c=ref$1(null),u=ref$1(null),f=ref$1(null),m=ref$1(null),b=ref$1(null),y=ref$1(null),_=ref$1(null),S=ref$1(!1),C=ref$1(""),T=ref$1(!1),{pageProperties:x,isEditorMode:k}=useGlobalAEMState$1(),{registerNotifier:E,unregisterNotifier:w}=useBSTOverlayInterimData(),D=ref$1(!0),N=ref$1(!1),F=ref$1(!1),V=x.value.rootCountry,A=x.value.rootLanguage,{isSapphire
1185CookiePresent:M}=useAuthStore(),O=Te=>Te.charAt(0).toUpperCase()+Te.slice(1),R=computed(()=>N.value&&F.value?"true":"false"),I=computed(()=>{var Se;if(!l.value)return;const Te=parseInt((Se=l.value.cabinClassValue)==null?void 0:Se.value)-1;return S.value?e.cabinClassMilesList[Te].value:e.cabinClassCashList[Te].value}),j=ref$1(!1),H=Te=>{j.value=Te},U=()=>{},{isLoggedIn:B,isAuthStateReady:L}=useAuthStore(),z="sapphire";C.value=getCookie(z)??null,watch(S,Te=>{!B.value&&Te&&W(),_.value&&(_.value=null)});const W=async()=>{var Te,Se,Ae;if(!e.togglePointsApiURL)throw new Error("Failed to get endpoint: togglePointsApiURL");try{const ye=(await axios$1.get(e.togglePointsApiURL,{params:{type:"points",maintab:"mhe-flight-search-tab",subtab:"book-flight",locationFrom:(Te=b.value)==null?void 0:Te.code,locationTo:(Se=y.value)==null?void 0:Se.code,dateDeparture:f.value,dateReturn:m.value,cabinClass:(Ae=l.value.cabinClassValue)==null?void 0:Ae.value,adultsCount:l.value.adults.count.value,teensCount:l.value.teens.count.value,childrenCount:l.value.children.count.value,infantsCount:l.value.infants.count.value,promoCode:e.supersedePromoCode??_.value,isPoints:!0}})).data;S.value=!1,window.location.href=ye}catch(ue){console.error("handleRedirectToLogin, ","Unable to fetch api",ue)}},J=ref$1(null),te=async(Te,Se)=>{var ue;console.log("✅ handleSubmitValid values = ",Te),u.value=!0;const Ae={isBSTTab:!1,payByEnrichPoints:S.value,dateRangeValueFrom:f.value,dateRangeValueTo:m.value,isOneWay:!m.value,ondValueFrom:b.value,ondValueTo:y.value,promoCodeValue:e.supersedePromoCode??_.value,cabinClassValue:l.value.cabinClassValue,adultsCount:l.value.adults.count.value,teensCount:l.value.teens.count.value,childrenCount:l.value.children.count.value,infantsCount:l.value.infants.count.value,userIn
1185putPromoCode:_.value};n("save-search-data",Ae),n("form-submission",Ae);try{const ye=await axios$1({method:"post",url:e.flightSearchApiUrl,data:{departDate1:dayjs(Ae.dateRangeValueFrom).format("YYYYMMDDHHmm"),returnDate1:!Ae.isOneWay&&Ae.dateRangeValueTo?dayjs(Ae.dateRangeValueTo).format("YYYYMMDDHHmm"):"",originCountry:Ae.ondValueFrom.unTranslatedCountryName,originAirportCode1:Ae.ondValueFrom.code,destAirportCode1:Ae.ondValueTo.code,flightClass:I.value,adultCount:Ae.adultsCount.toString(),...Z.value?{teenCount:Ae.teensCount.toString()}:null,childCount:Ae.childrenCount.toString(),infantCount:Ae.infantsCount.toString(),paymentType:Ae.payByEnrichPoints?"miles":"cash",amal1:!1,promoCode:Ae.promoCodeValue??"",regionLanguage:V&&A?`${V}-${O(A)}`:"",amcvId:((ue=window._satellite)==null?void 0:ue.getVar("ECID"))??"",teaserCategory:getCookie("TeaserCategory")??"",...e.isMHSportsUser?{mhSports:!0}:{mhExplorer:!0},...e.enrichAlwaysOn?{enrichAlwaysOnEligibility:R.value}:null}}),{url:Xe,payload:De}=ye.data;u.value=!1,delete De.RAW_DATA;const ke={},ze=Object.entries(De);for(let[Je,[$e,st]]of ze.entries())ke[Je]=$e;const qe={...ke,...De},ht=Object.entries(qe),pt="post",Ne=document.createElement("form");Ne.setAttribute("method",pt),Ne.setAttribute("action",Xe);for(let[Je,[$e,st]]of ht.entries()){const bt=parseInt($e);let Bt=document.createElement("input");Bt.setAttribute("type","hidden"),Bt.setAttribute("name",$e),Bt.setAttribute("value",st),Ne.appendChild(Bt)}document.body.appendChild(Ne),Ne.submit()}catch(ye){console.error("handleSubmitValid, ","Unable to fetch api",JSON.stringify(ye)),u.value=!1;const{statusCode:Xe,message:De}=ye.response.data;Xe===400&&(J.value.setErrors(i18nGlobal.t(De)),_e({errorMsg:i18nGlobal.t(De)}))}},re=({values:Te,errors:Se,results:Ae,evt:ue})=>{console.log("❌ handleSubmitInvalid errors = ",Se)},oe=()=>{he.value||(D.value=!0)},X=()=>{},se=computed(()=>{var Ae;const Te=i.value;if(!Te)return!0;const Se=(Ae=d.value)==null?void 0:Ae.isOneWay;return!Te.values.locationFrom||!Te.values.locationTo||!Te.values.dateDeparture||!Se&&!Te.values.dateReturn||Object.keys(Te.errors).length!==0}),le=useEventBus("booking-widget"),he=ref$1(!1);le.on((Te,Se)=>{switch(Te){case"sticky:sticked":{he.value=!0;break}case"sticky:unsticked":{he.value=!1;break}}});const ge=(Te,Se=null)=>{const Ae=dayjs(),ue=Ae.add(Be.value,"day"),ye=dayjs(Te),Xe=dayjs(Se);return!(ye.isValid()===!1||Se&&Xe.isValid()===!1||ye.isBefore(Ae,"day")||Se&&Xe.isAfter(ue,"day"))},Q=({from:Te,to:Se=null,isOneWay:Ae=!1}={})=>{var ue,ye;ge(Te,Ae?null:Se)?(f.value=dayjs(Te).format("YYYY-MM-DD"),m.value=(Se&&dayjs(Se).format("YYYY-MM-DD"))??null):(f.value=null,m.value=null,(ye=(ue=d.value)==null?void 0:ue.inputElFrom)==null||ye.resetField(),nextTick$1().then(()=>{var Xe,De,ke,ze;try{(De=(Xe=d.value)==null?void 0:Xe.inputElFrom)==null||De.setTouched(!0),(ze=(ke=d.value)==null?void 0:ke.inputElFrom)==null||ze.setErrors(i18nGlobal.t("The selected dates are no longer valid. Please reselect."))}catch{}}))},Y=Te=>{var Se;b.value=Te.ondValueFrom,y.value=Te.ondValueTo,Q({from:Te.dateRangeValueFrom,to:Te.dateRangeValueTo||null,isOneWay:!!Te.isOneWay}),_.value=Te.userInputPromoCode,S.value=Te.payByEnrichPoints,(Se=l.value)==null||Se.setValues({adults:Te.adultsCount,teens:Te.teensCount,children:Te.childrenCount,infants:Te.infantsCount,cabinClass:Te.cabinClassValue}),d.value.handleSetIsOneWay(!!Te.isOneWay)};E("book-flight",async Te=>{var Se;b.value=Te.ondValueFrom,y.value=Te.ondValueTo,f.value=Te.dateRangeValueFrom,m.value=Te.dateRangeValueTo,(Se=l.value)==null||Se.setValues({adults:Te.adultsCount,teens:Te.teensCount,children:Te.childrenCount,infants:Te.infantsCount,cabinClass:Te.cabinClassValue}),d.value.handleSetIsOneWay(!!Te.isOneWay)});const ne=0,Ce=361,ae=computed(()=>{const Te=e.datePicker;return!(Te!=null&&Te.departureDateConfig)||typeof(Te==null?void 0:Te.departureDateConfig)!="number"?ne:Te==null?void 0:Te.departureDateConfig}),Be=computed(()=>{const Te=e.datePicker;return(Te==null?void 0:Te.typeOfFutureSelectableDays)==="date-picker"&&(Te!=null&&Te.futureDate)?Math.floor(dayjs(Te==null?void 0:Te.futureDate).diff(dayjs(),"day",!0))+1:(Te==null?void 0:Te.numberOfDays)??Ce}),me=computed(()=>{var Ae;let Te=null;const Se=(Ae=e.datePicker)==null?void 0:Ae.disableSpecificDateList;return Se.length&&(Te=[],Se.forEach(ue=>{ue.disableDate&&Te.push(ue.disableDate)})),Te}),{registerQueryChange:K}=useBookingWidgetUrlQuery({mainTabName:"mhe-flight-search-tab",subTabName:"book-flight"});K(async Te=>{var Se;Te&&(b.value=Te.locationFrom,y.value=Te.locationTo,nextTick$1().then(async()=>{var Ae,ue;await((Ae=c.value)==null?void 0:Ae.updateFromValue()),(ue=c.value)==null||ue.updateToValue()}),Q({from:Te.dateDeparture,to:Te.dateReturn||null,isOneWay:Te.isOneWay==="true"}),_.value=Te.promoCode??null,await nextTick$1(),(Se=l.value)==null||Se.setValues({...Te.adultsCount?{adults:parseInt(Te.adultsCount)}:null,...Te.teensCount?{teens:parseInt(Te.teensCount)}:null,...Te.childrenCount?{children:parseInt(Te.childrenCount)}:null,...Te.infantsCount?{infants:parseInt(Te.infantsCount)}:null,...Te.cabinClass?{cabinClass:parseInt(Te.cabinClass)}:null}),Te.isPoints==="true"&&fe(!0),Te.isOneWay==="true"&&d.value.handleSetIsOneWay(!!Te.isOneWay))});const q=async Te=>{const{locationFrom:Se,locationTo:Ae}=Te;Se&&(b.value=Se),Ae&&(y.value=Ae),nextTick$1().then(async()=>{var ue,ye;await((ue=c.value)==null?void 0:ue.updateFromValue()),(ye=c.value)==null||ye.updateToValue()})},Z=ref$1(!1),de=async()=>{var Te,Se,Ae;if(b.value&&y.value){const ue=(Te=b.value)==null?void 0:Te.countryName,ye=(Se=b.value)==null?void 0:Se.isRedemption,
1185Xe=(Ae=y.value)==null?void 0:Ae.isRedemption,De=e.enrichAlwaysOnCountriesData.includes(ue);if(ye&&Xe&&De)return!0}return!1};watch([b,y,S],async Te=>{if(e.enrichAlwaysOn&&M()&&e.enrichAlwaysOnCountriesData.length&&!S.value){N.value=await de();return}N.value=!1}),watch([b,y],async Te=>{var Se;Z.value=useIsUkVariant({origin:b.value,destination:y.value}),!Z.value&&((Se=l.value)==null||Se.setValues({teens:0}))});async function fe(Te){if(!Te||!C.value){S.value=!1;return}L.value||await waitFor(()=>!!L.value).start(),S.value=!0}const _e=({errorMsg:Te})=>{const Se={errorName:Te},Ae={name:e.searchFlightCTAText,type:"exit"};pushAA_searchError([Se,Ae])};useSyncPassengerDetails(l);const pe=useEventBus("booking-widget:enrich-points-toggle-switch");pe.on(async(Te,Se)=>{switch(Te){case"update-toggle-switch":{Se==="logout"&&fe(!1),await nextTick$1();break}default:{console.log(`Unknown event: ${Te}. Ignore it.`);break}}}),o({restorePastSearch:Y,updateLocationFromTo:q,isExpanded:D});const ve=Te=>{var Se,Ae;Te&&!isMobileViewport.value&&((Ae=(Se=d.value)==null?void 0:Se.inputElFrom)==null||Ae.focus())},Me=computed(()=>{var Te,Se,Ae,ue;return e.ondSelection?{NEAR_YOU:(Te=e.ondSelection)==null?void 0:Te.nearYouLabel,POPULAR_DEST:(Se=e.ondSelection)==null?void 0:Se.popularDestinationsLabel,WITH_MH:(Ae=e.ondSelection)==null?void 0:Ae.withMalaysiaAirlinesLabel,CODESHARE:(ue=e.ondSelection)==null?void 0:ue.withCodeShareAndPartnerNetworkLabel}:null}),Fe={props:e,emit:n,isRTL:a,formWrapper:i,rootEl:s,passengerAndCabinClassEl:l,dateRangePickerEl:d,ondPickerEl:c,isLoading:u,dateRangeValueFrom:f,dateRangeValueTo:m,ondValueFrom:b,ondValueTo:y,promoCodeValue:_,payByEnrichPoints:S,token:C,isCampaignToggleON:T,pageProperties:x,isEditorMode:k,registerNotifier:E,unregisterNotifier:w,isExpanded:D,enrichAlwaysOnEligibility:N,optEnrichAlwaysOnOffer:F,country:V,language:A,isSapphireCookiePresent:M,capitalizeString:O,isEligibleForErichAlwaysOn:R,computedCabinClassValue:I,isOneWay:j,handleWatchIsOneWay:H,handleExpandTransitionEnd:U,isLoggedIn:B,isAuthStateReady:L,SAPPHIRE_COOKIE:z,handleRedirectToLogin:W,promoCodeTextField:J,handleSubmitValid:te,handleSubmitInvalid:re,handleFormFocusWithin:oe,handleFormBlurWithin:X,isBtnSubmitDisabled:se,bookingWidgetBus:le,isSticked:he,areDatesValid:ge,validateAndRestoreDates:Q,restorePastSearch:Y,defaultMinDate:ne,defaultMaxDate:Ce,datePickerMinAllowedFutureDays:ae,datePickerMaxAllowedFutureDays:Be,formattedDisabledDateList:me,registerQueryChange:K,updateLocationFromTo:q,isUKVariant:Z,getIsEnrichAlwaysEligible:de,setEnrichPointStatus:fe,triggerAA_searchError:_e,globalBookFlightBus:pe,focusToDatePicker:ve,groupLabelsOverwrite:Me,ToggleSwitch,Tooltip,CTAButton,ONDPicker,DateRangePicker,TextField,PassengerAndCabinClass,FormWrapper,get yup(){return yup},get dayjs(){return dayjs},get isMobileViewport(){return isMobileViewport},get isXXXL(){return isXXXL},TransitionHeight,get useGlobalAEMState(){return useGlobalAEMState$1},get useEventBus(){return useEventBus},get i18nGlobal(){return i18nGlobal},get useIsUkVariant(){return useIsUkVariant},get useSyncPassengerDetails(){return useSyncPassengerDetails},get useAuthStore(){return useAuthStore},get getCookie(){return getCookie},get useLowFarePriceList(){return useLowFarePriceList},get formatNumberWithAbbreviation(){return formatNumberWithAbbreviation},get waitFor(){return waitFor},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get pushAA_searchError(){return pushAA_searchError},get useIsRTL(){return useIsRTL},AppSpinner,get useBSTOverlayInterimData(){return useBSTOverlayInterimData}};return Object.defineProperty(Fe,"__isScriptSetup",{enumerable:!1,value:!0}),Fe}}),_hoisted_1$10={ref:"rootEl",class:"SubTabBookFlight"},_hoisted_2$U={class:"flex"},_hoisted_3$v={key:0,class:"mb-5"},_hoisted_4$o={class:"flex items-center"},_hoisted_5$l={class:"flex gap-6 xl:gap-3 lg:flex-col"},_hoisted_6$j={class:"w-6/10 lg:w-full"},_hoisted_7$j={class:"w-4/10 lg:w-full"},_hoisted_8$i={class:"flex mt-6 gap-6 xl:gap-3 lg:flex-col"},_hoisted_9$g={class:"flex flex-grow gap-6 xl:gap-3 lg:flex-col"},_hoisted_10$a={class:"w-6/10 lg:w-full"},_hoisted_11$a={key:0,class:"w-4/10 lg:w-full"},_hoisted_12$9={class:"ml-auto lg:ml-0"},_hoisted_13$9={key:0,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_14$9={class:"text-sm"},_hoisted_15$8={key:1,class:"flex mt-6"},_hoisted_16$8={class:"rounded-xl bg-secondary-teal-extralight flex-grow px-5 py-4"},_hoisted_17$7={class:"generic-backdrop !bg-white/80"},_hoisted_18$7={class:"flex items-center justify-center h-full w-full"};function _sfc_render$$(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa"),c=resolveDirective("focus-within");return openBlock(),createElementBlock("div",_hoisted_1$10,[withDirectives((openBlock(),createBlock(e.FormWrapper,{ref:"formWrapper",class:"-mt-16 lg:mt-0",tabindex:"-1",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid,onFocusWithin:e.handleFormFocusWithin,onBlurWithin:e.handleFormBlurWithin},{default:withCtx(({errors:u})=>{var f,m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A;return[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_2$U,[createBaseVNode("div",{class:normalizeClass({"mr-auto lg:mr-0":e.isRTL,"ml-auto lg:ml-0":!e.isRTL,"pt-15.5":!e.isMobileViewport})},[e.props.enableMattaToggleButton?(openBlock(),createBlock(e.ToggleSwitch,{key:0,modelValue:e.isCampaignToggleON,"onUpdate:modelValue":o[0]||(o[0]=M=>e.isCampaignToggleON=M),rootAttrs:{class:"mb-8"},ariaLabel:e.props.mattaToggleButtonLabel,name:"usingCugPromoCode"},null,8,["modelValue","ariaLabel"])):createCommentVNode("",!0)],2)]),e.props.subHeaderTabDescription?withDirectives((openBlock(),createElementBlock("div",_hoisted_3$v,null,512)),[[l,e.props.subHeaderTabDescription]]):createCommentVNode("",!0),e.props.subHeaderTabTooltipLabel?(
1185openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$o,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.subHeaderTabTooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[l,e.props.subHeaderTabTooltipBody]])]),"mobile-cta-label":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTooltipCTATextMobileLabel),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$l,[createBaseVNode("div",_hoisted_6$j,[createVNode(e.ONDPicker,{ref:"ondPickerEl",modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[1]||(o[1]=M=>e.ondValueFrom=M),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":[o[2]||(o[2]=M=>e.ondValueTo=M),e.focusToDatePicker],nameFrom:"locationFrom",nameTo:"locationTo",ondListIdentifier:e.payByEnrichPoints?"FLIGHT_SEARCH_ENRICH":"FLIGHT_SEARCH_CASH",requiredFrom:!0,requiredTo:!0,specificOriginList:(f=e.props.ondSelection)==null?void 0:f.showSpecificOrigin,specificDestinationList:(m=e.props.ondSelection)==null?void 0:m.showSpecificDestination,requiredErrorMsgFrom:(b=e.props.ondSelection)==null?void 0:b.fromSearchErrorMessage,requiredErrorMsgTo:(y=e.props.ondSelection)==null?void 0:y.toSearchErrorMessage,labelTextFrom:(_=e.props.ondSelection)==null?void 0:_.fromLabel,labelTextTo:(S=e.props.ondSelection)==null?void 0:S.toLabel,noResultsText:(C=e.props.ondSelection)==null?void 0:C.noResultMessage,requestGeolocation:!e.props.disableGeolocation,groupLabelsOverwrite:e.groupLabelsOverwrite,enableONDLocaleTranslation:e.props.enableONDLocaleTranslation,ondTranslationLanguage:e.props.ondTranslationLanguage,normalRevenueONDList:(T=e.props.customCUGSearchWidget)==null?void 0:T.normalRevenueONDList,redemptionRevenueONDList:(x=e.props.customCUGSearchWidget)==null?void 0:x.redemptionRevenueONDList,multicityONDList:(k=e.props.customCUGSearchWidget)==null?void 0:k.multicityONDList},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","ondListIdentifier","specificOriginList","specificDestinationList","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","noResultsText","requestGeolocation","groupLabelsOverwrite","enableONDLocaleTranslation","ondTranslationLanguage","normalRevenueONDList","redemptionRevenueONDList","multicityONDList"])]),createBaseVNode("div",_hoisted_7$j,[createVNode(e.DateRangePicker,{ref:"dateRangePickerEl",modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[3]||(o[3]=M=>e.dateRangeValueFrom=M),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[4]||(o[4]=M=>e.dateRangeValueTo=M),textFieldAttrsFrom:{ariaLabel:((E=e.props.datePicker)==null?void 0:E.departureDateLabel)??t.$t("Depart"),placeholder:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:((w=e.props.datePicker)==null?void 0:w.returnDateLabel)??t.$t("Return"),placeholder:t.$t("Select a date")},minDate:`t+${e.datePickerMinAllowedFutureDays}d`,maxDate:`t+${e.datePickerMaxAllowedFutureDays}d`,disabledDates:e.formattedDisabledDateList,minDateFromAfterSelectingTo:"t",disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(D=e.props.datePicker)==null?void 0:D.invalidDateErrorMessage,requiredErrorMsgTo:(N=e.props.datePicker)==null?void 0:N.invalidDateErrorMessage,labelReset:((F=e.props.datePicker)==null?void 0:F.resetButtonCTAText)??t.$t("Reset"),labelDone:((V=e.props.datePicker)==null?void 0:V.doneCTAText)??t.$t("Done"),labelOneWay:((A=e.props.datePicker)==null?void 0:A.oneWayCTAText)??t.$t("One-way"),isHideTodayIndicator:e.props.hideTodayDateIndicator,disableCalendarPickerAnimation:e.props.disableCalendarPickerAnimation,"onUpdate:isOneWay":e.handleWatchIsOneWay},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.datePickerQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","textFieldAttrsFrom","textFieldAttrsTo","minDate","maxDate","disabledDates","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","isHideTodayIndicator","disableCalendarPickerAnimation"])])])]),createVNode(e.TransitionHeight,{height:e.isExpanded||e.isEditorMode||e.isMobileViewport?"auto":0,class:normalizeClass(e.isExpanded||e.isEditorMode||e.isMobileViewport?"overflow-visible":""),transitionDuration:.175,onTransitionEnd:e.handleExpandTransitionEnd},{default:withCtx(()=>{var M,O,R,I,j,H,U,B,L,z,W,J,te,re,oe;return[createBaseVNode("div",_hoisted_8$i,[createBaseVNode("div",_hoisted_9$g,[createBaseVNode("div",_hoisted_10$a,[createVNode(e.PassengerAndCabinClass,{ref:"passengerAndCabinClassEl",labelText:(M=e.props.passengerSelection)==null?void 0:M.passengerAndCabinClassLabel,passengerLabel:(O=e.props.passengerSelection)==null?void 0:O.passengerLabel,adultLabel:(R=e.props.passengerSelection)==null?void 0:R.adultLabel,teenagerLabel:(I=e.props.passengerSelection)==null?void 0:I.teenagerLabel,childrenLabel:(j=e.props.passengerSelection)==null?void 0:j.childrenLabel,infantLabel:(H=e.props.passengerSelection)==null?void 0:H.infantLabel,cabinClassLabel:(U=e.props.passengerSelection)==null?void 0:U.cabinClassLabel,economyLabel:(B=e.props.passengerSelection)==null?void 0:B.economyLabel,businessLabel:(L=e.props.passengerSelection)==null?void 0:L.businessLabel,businessSuiteLabel:(z=e.props.passengerSelection)==null?void 0:z.businessSuiteLabel,isShowEconomyClass:!((W=e.props.passengerSelection)!=null&&W.isHideEconomy),isShowBusinessClass:!((J=e.props.passengerSelection)!=null&&J.isHideBusiness),isShowBusinessSuiteClass:!((te=e.props.passengerSelection)!=null&&te.isHideBusinessSuite),isUKVariant:e.useIsUkVariant({origin:e.ondValueFrom,destination:e.ondValueTo}),isShowInfant:(re=e.props.passengerSelection)==null?void 0:re.isShowInfant,isShowChildren:(oe=e.props.passengerSelection)==null?void 0:oe.isShowChildren},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.passengerSelectionQuestion),1)]),_:1},8,["labelText","passengerLabel","adultLabel","teenagerLabel","childrenLabel","infantLabel","cabinClassLabel","economyLabel","businessLabel","businessSuiteLabel","isShowEconomyClass","isShowBusinessClass","isShowBusinessSuiteClass","isUKVariant","isShowInfant","isShowChildren"])]),!e.payByEnrichPoints&&!e.props.hidePromoCodeField?(openBlock(),createElementBlock("div",_hoisted_11$a,[createVNode(e.TextField,{ref:"promoCodeTextField",modelValue:e.promoCodeValue,"onUpdate:modelValue":o[5]||(o[5]=X=>e.promoCodeValue=X),name:"promoCode",variant:"booking-widget",ariaLabel:e.props.promoCodeL
1185abel,placeholder:"E.g. 8990",allowedKeys:/[a-zA-Z0-9]/},null,8,["modelValue","ariaLabel"])])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_12$9,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.searchFlightCTAText),1)]),_:1},8,["sizeType","ctaSizing","disabled"])),[[d,[{clickName:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"SubTabBookFlight",componentID:e.props.componentIdAA},{name:e.props.searchFlightCTAText,type:"exit"}]]])])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_13$9,[createVNode(s,{class:"fill-primary-blue-base text-base"}),withDirectives(createBaseVNode("div",_hoisted_14$9,null,512),[[l,e.props.note]])])):createCommentVNode("",!0),e.enrichAlwaysOnEligibility&&e.props.loggedInMessageNote?(openBlock(),createElementBlock("div",_hoisted_15$8,[createBaseVNode("div",_hoisted_16$8,[createVNode(e.ToggleSwitch,{modelValue:e.optEnrichAlwaysOnOffer,"onUpdate:modelValue":o[6]||(o[6]=X=>e.optEnrichAlwaysOnOffer=X),ariaLabel:e.props.loggedInMessageNote,name:"optEnrichAlwaysOnOffer"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[l,e.props.loggedInMessageNote]])]),_:1},8,["modelValue","ariaLabel"])])])):createCommentVNode("",!0)]}),_:1},8,["height","class"])]}),_:1})),[[c]]),e.isLoading?(openBlock(),createBlock(Teleport,{key:0,to:"body"},[createBaseVNode("div",_hoisted_17$7,[createBaseVNode("div",_hoisted_18$7,[createVNode(e.AppSpinner)])])])):createCommentVNode("",!0)],512)}const SubTabBookFlight=_export_sfc(_sfc_main$$,[["render",_sfc_render$$],["__scopeId","data-v-94fdf98b"],["__file","SubTabBookFlight.vue"]]),__default__$Z={name:"ContinueYourSearch"},_sfc_main$_=Object.assign(__default__$Z,{props:{economyLabel:{type:String,default:i18nGlobal.t("Economy")},businessLabel:{type:String,default:i18nGlobal.t("Business")},businessSuiteLabel:{type:String,default:i18nGlobal.t("Business Suite")},continueYourSearchLabel:{type:String,default:"Continue your search"},componentIdAA:{type:String,default:""}},emits:["restore-past-search"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1([]);usePersistencyWithExpiry("mhe-flight-search:past-searches",{refs:{pastSearches:a}});const i=c=>{const u=Object.entries(c);let f=a.value;const m=a.value.findIndex(b=>u.every(([y,_])=>lodashExports.isEqual(unref(_),unref(b[y]))));m!==-1&&f.splice(m,1),a.value=[c,...f].slice(0,3)},s=computed(()=>!document.querySelector("#mobile-past-searches-container")),l=c=>{switch(parseInt(c,10)){case 1:return e.economyLabel;case 2:return e.businessLabel;case 3:return e.businessSuiteLabel}};onMounted(async()=>{await sleep(1e3),a.value=[...a.value]}),o({saveSearch:i});const d={props:e,emit:n,pastSearches:a,saveSearch:i,computedDisableTeleport:s,getCabinClassLabelByValue:l,get dayjs(){return dayjs},VueSwiper,get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get _isEqual(){return lodashExports.isEqual},get i18nGlobal(){return i18nGlobal},get sleep(){return sleep}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),_hoisted_1$$={key:0,class:"ContinueYourSearch overflow-hidden"},_hoisted_2$T={class:"md:hidden"},_hoisted_3$u={class:"typo-category-title mb-4 md:px-4 pt-8"},_hoisted_4$n={class:"continue-your-search-wrapper gap-6 lg:gap-3 w-full"},_hoisted_5$k=["onClick"],_hoisted_6$i={class:"flex flex-col"},_hoisted_7$i={class:"flex items-center flex-wrap"},_hoisted_8$h={class:"font-semibold"},_hoisted_9$f={class:"font-semibold"},_hoisted_10$9={class:"mt-2"},_hoisted_11$9={key:1},_hoisted_12$8={key:0,class:"mt-2"},_hoisted_13$8={class:"tag-label"},_hoisted_14$8={key:1,class:"mt-2"},_hoisted_15$7={class:"tag-label"},_hoisted_16$7={class:"mt-auto pt-3 flex items-center"},_hoisted_17$6={class:"inline-flex items-center mr-4 rtl:mr-0 rtl:ml-4"},_hoisted_18$6={class:">md:hidden -mx-4"},_hoisted_19$6={class:"typo-category-title continue-search-label text mb-4 md:px-4 pt-8"},_hoisted_20$6=["onClick"],_hoisted_21$6={class:"flex flex-col"},_hoisted_22$5={class:"flex items-center flex-wrap"},_hoisted_23$5={class:"font-semibold"},_hoisted_24$4={class:"font-semibold"},_hoisted_25$4={class:"mt-2"},_hoisted_26$4={key:1},_hoisted_27$3={key:0,class:"mt-2"},_hoisted_28$3={class:"tag-label"},_hoisted_29$3={key:1,class:"mt-2"},_hoisted_30$3={class:"tag-label"},_hoisted_31$3={class:"mt-auto pt-3 flex items-center"},_hoisted_32$3={class:"inline-flex items-center mr-4 rtl:mr-0 rtl:ml-4"};
1185function _sfc_render$_(t,o,r,e,n,a){const i=__unplugin_components_2$4,s=__unplugin_components_0$9,l=__unplugin_components_0$5,d=resolveDirective("aa");return e.pastSearches&&e.pastSearches.length>0?(openBlock(),createElementBlock("div",_hoisted_1$$,[createBaseVNode("div",_hoisted_2$T,[createBaseVNode("p",_hoisted_3$u,toDisplayString(e.props.continueYourSearchLabel),1),createBaseVNode("div",_hoisted_4$n,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:u,type:"button",class:"continue-your-search-tile",onClick:f=>t.$emit("restore-past-search",c)},[createVNode(i,{class:"icon fill-neutral-grey-dark mr-3 rtl:mr-0 rtl:ml-3 mt-0.5"}),createBaseVNode("div",_hoisted_6$i,[createBaseVNode("div",_hoisted_7$i,[createBaseVNode("span",_hoisted_8$h,toDisplayString(c.ondValueFrom.displayValue),1),createVNode(s,{class:"fill-neutral-grey-dark mx-3 transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_9$f,toDisplayString(c.ondValueTo.displayValue),1)]),createBaseVNode("time",_hoisted_10$9,[c.dateRangeValueTo&&e.dayjs(c.dateRangeValueTo).isValid()?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY"),dateTo:e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")})),1)],64)):(openBlock(),createElementBlock("span",_hoisted_11$9,toDisplayString(e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")),1))]),c.isBSTTab?(openBlock(),createElementBlock("div",_hoisted_12$8,[createBaseVNode("div",_hoisted_13$8,toDisplayString(t.$t("Bonus Side Trip")),1)])):c.payByEnrichPoints?(openBlock(),createElementBlock("div",_hoisted_14$8,[createBaseVNode("div",_hoisted_15$7,toDisplayString(t.$t("Redemption")),1)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_16$7,[createBaseVNode("span",_hoisted_17$6,[createTextVNode(toDisplayString(c.adultsCount+c.teensCount+c.childrenCount+c.infantsCount)+" ",1),createVNode(l,{class:"fill-neutral-grey-ultradark w-2.5 mx-2"})]),createBaseVNode("span",null,toDisplayString(e.getCabinClassLabelByValue(c.cabinClassValue.value)),1)])])],8,_hoisted_5$k)),[[d,[{clickName:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,type:"other"}]]])),128))])]),createBaseVNode("div",_hoisted_18$6,[(openBlock(),createBlock(Teleport,{to:"#mobile-past-searches-container",disabled:e.computedDisableTeleport},[createBaseVNode("p",_hoisted_19$6,toDisplayString(e.props.continueYourSearchLabel),1),createVNode(e.VueSwiper,{class:"mobile-swiper",slidesPerView:"auto",spaceBetween:16,variant:"slides-auto-width slides-auto-height",scrollbar:{draggable:!0,hide:!0},style:{"--tile-max-width":"260px"}},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:u,type:"button",class:"continue-your-search-tile",onClick:f=>t.$emit("restore-past-search",c)},[createVNode(i,{class:"icon fill-neutral-grey-dark mr-3 rtl:mr-0 rtl:ml-3 mt-0.5"}),createBaseVNode("div",_hoisted_21$6,[createBaseVNode("div",_hoisted_22$5,[createBaseVNode("span",_hoisted_23$5,toDisplayString(c.ondValueFrom.displayValue),1),createVNode(s,{class:"fill-neutral-grey-dark mx-3 transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_24$4,toDisplayString(c.ondValueTo.displayValue),1)]),createBaseVNode("time",_hoisted_25$4,[c.dateRangeValueTo&&e.dayjs(c.dateRangeValueTo).isValid()?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY"),dateTo:e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")})),1)],64)):(openBlock(),createElementBlock("span",_hoisted_26$4,toDisplayString(e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")),1))]),c.isBSTTab?(openBlock(),createElementBlock("div",_hoisted_27$3,[createBaseVNode("div",_hoisted_28$3,toDisplayString(t.$t("Bonus Side Trip")),1)])):c.payByEnrichPoints?(openBlock(),createElementBlock("div",_hoisted_29$3,[createBaseVNode("div",_hoisted_30$3,toDisplayString(t.$t("Redemption")),1)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_31$3,[createBaseVNode("span",_hoisted_32$3,[createTextVNode(toDisplayString(c.adultsCount+c.infantsCount)+" ",1),createVNode(l,{class:"fill-neutral-grey-ultradark w-2.5 mx-2"})])])])],8,_hoisted_20$6)),[[d,[{clickName:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,type:"other"}]]])),128))]),_:1})],8,["disabled"]))])])):createCommentVNode("",!0)}const ContinueYourSearch$1=_export_sfc(_sfc_main$_,[["render",_sfc_render$_],["__scopeId","data-v-5d26a3b8"],["__file","ContinueYourSearch.vue"]]),encryptionHelper=()=>{const t=async()=>{try{return await crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"])}catch{}},o=a=>{const i=new Uint8Array(a);let s="";const l=i.byteLength;for(let d=0;d<l;d++)s+=String.fromCharCode(i[d]);return window.btoa(s)},r=a=>{const i=window.atob(a),s=i.length,l=new Uint8Array(s);for(let d=0;d<s;d++)l[d]=i.charCodeAt(d);return l.buffer};return{encrypt:async a=>{const i=await t(),s=window.crypto.getRandomValues(new Uint8Array(12)),l=new TextEncoder().encode(JSON.stringify(a)),d=await crypto.subtle.encrypt({name:"AES-GCM",iv:s,tagLength:128},i,l),c=o(d),u=o(s),f=await crypto.subtle.exportKey("raw",i),m=o(f);return`${c}.${u}.${m}`},decrypt:async a=>{const[i,s,l]=a.split("."),d=r(s),c=r(i),u=r(l);u.value=await crypto.subtle.importKey("raw",u,{name:"AES-GCM"},!0,["encrypt","decrypt"]);
1185const f=await crypto.subtle.decrypt({name:"AES-GCM",iv:d,tagLength:128},u.value,c);return new TextDecoder().decode(f)}}},__default__$Y={name:"FlysiswaSubTabBookFlight"},_sfc_main$Z=Object.assign(__default__$Y,{props:{subHeaderTabDescription:{type:String,default:""},subHeaderTabTooltipBody:{type:String,default:""},subHeaderTabTooltipLabel:{type:String,default:""},note:{type:String,default:""},searchFlightCTAText:{type:String,default:i18nGlobal.t("Search flight")},disableGeolocation:{type:Boolean,default:!1},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null},subHeaderTooltipCTATextMobileLabel:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},disableCalendarPickerAnimation:{type:Boolean,default:!1},passengerSelectionQuestion:{type:String,default:""},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""}},emits:["form-submission"],setup(t,{expose:o,emit:r}){var Te;const e=t,n=r,{isRTL:a}=useIsRTL(),i=ref$1(!1),s=ref$1(null),l=ref$1(!1),d=ref$1(null),c=ref$1(null),u=ref$1(null),f=ref$1(null),m=ref$1(null),b=ref$1(null),y=ref$1(null),_=ref$1(null),S=ref$1(null),C=ref$1(null),T=ref$1(!1),x=ref$1(""),{pageProperties:k,isEditorMode:E}=useGlobalAEMState$1(),w=ref$1(!0),D=k.value.rootCountry,N=k.value.rootLanguage,F=Se=>Se.charAt(0).toUpperCase()+Se.slice(1),V=computed(()=>{var Ae;if(!u.value)return;const Se=parseInt((Ae=u.value.cabinClassValue)==null?void 0:Ae.value)-1;return T.value?e.cabinClassMilesList[Se].value:e.cabinClassCashList[Se].value}),A=(Te=k==null?void 0:k.value)==null?void 0:Te.lowFareApiUrl,M=ref$1(!1),{priceData:O,currency:R,returnTypeDepartureDateAndFare:I}=useLowFarePriceList({originRef:S,destinationRef:C,departureDateRef:y,paymentTypeRef:T,endpointUrl:A,isOneWayRef:M}),j=Se=>{M.value=Se},{isAuthStateReady:H}=useAuthStore(),U="sapphire";x.value=getCookie(U)??null;const B=async Se=>{var ue;console.log("✅ handleSubmitValid values = ",Se),b.value=!0;const Ae={isBSTTab:!1,payByEnrichPoints:T.value,optInBonusSideTrip:!1,dateRangeValueFrom:y.value,dateRangeValueTo:_.value,isOneWay:!_.value,ondValueFrom:S.value,ondValueTo:C.value,promoCodeValue:null,cabinClassValue:u.value.cabinClassValue,adultsCount:u.value.adults.count.value,teensCount:u.value.teens.count.value,childrenCount:u.value.children.count.value,infantsCount:u.value.infants.count.value,userIn
1185putPromoCode:null};n("form-submission",Ae);try{const ye=await axios$1({method:"post",url:e.flightSearchApiUrl,data:{departDate1:dayjs(Ae.dateRangeValueFrom).format("YYYYMMDDHHmm"),returnDate1:!Ae.isOneWay&&Ae.dateRangeValueTo?dayjs(Ae.dateRangeValueTo).format("YYYYMMDDHHmm"):"",originCountry:Ae.ondValueFrom.countryName,originAirportCode1:Ae.ondValueFrom.code,destAirportCode1:Ae.ondValueTo.code,flightClass:V.value,adultCount:Ae.adultsCount.toString(),...me.value?{teenCount:Ae.teensCount.toString()}:null,childCount:Ae.childrenCount.toString(),infantCount:Ae.infantsCount.toString(),paymentType:Ae.payByEnrichPoints?"miles":"cash",amal1:Ae.ondValueTo._original.isAmalFlag,promoCode:Ae.promoCodeValue??"",regionLanguage:D&&N?`${D}-${F(N)}`:"",amcvId:((ue=window._satellite)==null?void 0:ue.getVar("ECID"))??"",teaserCategory:getCookie("TeaserCategory")??"",mhFlysiswa:!0}}),{url:Xe,payload:De}=ye.data;delete De.RAW_DATA;const ke={},ze=Object.entries(De);for(let[Je,[$e]]of ze.entries())ke[Je]=$e;const qe={...ke,...De},ht=Object.entries(qe),pt="post",Ne=document.createElement("form");Ne.setAttribute("method",pt),Ne.setAttribute("action",Xe);for(let[,[Je,$e]]of ht.entries()){let st=document.createElement("input");st.setAttribute("type","hidden"),st.setAttribute("name",Je),st.setAttribute("value",$e),Ne.appendChild(st)}document.body.appendChild(Ne),b.value=!1,Ne.submit()}catch(ye){console.error("handleSubmitValid, ","Unable to fetch api",JSON.stringify(ye)),b.value=!1;const{statusCode:Xe,message:De}=ye.response.data;Xe===400&&q({errorMsg:i18nGlobal.t(De)})}},L=({errors:Se})=>{console.log("❌ handleSubmitInvalid errors = ",Se)},z=()=>{re.value||(w.value=!0)},W=()=>{},J=computed(()=>{var ue;const Se=d.value;if(!Se)return!0;const Ae=(ue=f.value)==null?void 0:ue.isOneWay;return!Se.values.locationFrom||!Se.values.locationTo||!Se.values.dateDeparture||!Ae&&!Se.values.dateReturn||Object.keys(Se.errors).length!==0}),te=useEventBus("booking-widget"),re=ref$1(!1);te.on(Se=>{switch(Se){case"sticky:sticked":{re.value=!0;break}case"sticky:unsticked":{re.value=!1;break}}});const oe=()=>{},X=(Se,Ae=null)=>{const ue=dayjs(),ye=ue.add(Q.value,"day"),Xe=dayjs(Se),De=dayjs(Ae);return!(Xe.isValid()===!1||Ae&&De.isValid()===!1||Xe.isBefore(ue,"day")||Ae&&De.isAfter(ye,"day"))},se=({from:Se,to:Ae=null,isOneWay:ue=!1}={})=>{var ye,Xe;X(Se,ue?null:Ae)?(y.value=dayjs(Se).format("YYYY-MM-DD"),_.value=(Ae&&dayjs(Ae).format("YYYY-MM-DD"))??null):(y.value=null,_.value=null,(Xe=(ye=f.value)==null?void 0:ye.inputElFrom)==null||Xe.resetField(),nextTick$1().then(()=>{var De,ke,ze,qe;try{(ke=(De=f.value)==null?void 0:De.inputElFrom)==null||ke.setTouched(!0),(qe=(ze=f.value)==null?void 0:ze.inputElFrom)==null||qe.setErrors(i18nGlobal.t("The selected dates are no longer valid. Please reselect."))}catch{}}))},le=0,he=361,ge=computed(()=>{const Se=e.datePicker;return!(Se!=null&&Se.departureDateConfig)||typeof(Se==null?void 0:Se.departureDateConfig)!="number"?le:Se==null?void 0:Se.departureDateConfig}),Q=computed(()=>{const Se=e.datePicker;return!(Se!=null&&Se.returnDateConfig)||typeof(Se==null?void 0:Se.returnDateConfig)!="number"?he:Se==null?void 0:Se.returnDateConfig}),Y=computed(()=>{var ue;let Se=null;const Ae=(ue=e.datePicker)==null?void 0:ue.disableSpecificDateList;return Ae!=null&&Ae.length&&(Se=[],Ae.forEach(ye=>{ye.disableDate&&Se.push(ye.disableDate)})),Se}),{registerQueryChange:ne}=useBookingWidgetUrlQuery({mainTabName:"flight-search-tab",subTabName:"book-flight"});ne(async Se=>{var Ae;Se&&(S.value=Se.locationFrom,C.value=Se.locationTo,nextTick$1().then(async()=>{var ue,ye;await((ue=m.value)==null?void 0:ue.updateFromValue()),(ye=m.value)==null||ye.updateToValue()}),se({from:Se.dateDeparture,to:Se.dateReturn||null,isOneWay:Se.isOneWay==="true"}),await nextTick$1(),(Ae=u.value)==null||Ae.setValues({...Se.adultsCount?{adults:parseInt(Se.adultsCount)}:null,...Se.teensCount?{teens:parseInt(Se.teensCount)}:null,...Se.childrenCount?{children:parseInt(Se.childrenCount)}:null,...Se.infantsCount?{infants:parseInt(Se.infantsCount)}:null,...Se.cabinClass?{cabinClass:parseInt(Se.cabinClass)}:null}),Se.isPoints==="true"&&K(!0),Se.isOneWay==="true"&&f.value.handleSetIsOneWay(!!Se.isOneWay))});const Ce=async Se=>{const{locationFrom:Ae,locationTo:ue}=Se;Ae&&(S.value=Ae),ue&&(C.value=ue),nextTick$1().then(async()=>{var ye,Xe;await((ye=m.value)==null?void 0:ye.updateFromValue()),(Xe=m.value)==null||Xe.updateToValue()})},ae=ref$1(0);watch(_,Se=>{var Ae;if(Se&&S.value&&C.value&&_.value&&O.value&&O.value[_.value]&&((Ae=I==null?void 0:I.value)!=null&&Ae.totalFareAmou
1185nt)){ae.value=parseInt(I.value.totalFareAmount)+parseInt(O.value[_.value]);return}ae.value=0});const Be=computed(()=>!R.value&&!ae.value?"":`${R.value} ${formatNumberWithAbbreviation(ae.value)}`),me=ref$1(!1);watch([S,C],async()=>{var Se;me.value=useIsUkVariant({origin:S.value,destination:C.value}),!me.value&&((Se=u.value)==null||Se.setValues({teens:0}))});async function K(Se){if(!Se||!x.value){T.value=!1;return}H.value||await waitFor(()=>!!H.value).start(),T.value=!0}const q=({errorMsg:Se})=>{const Ae={errorName:Se},ue={name:e.searchFlightCTAText,type:"exit"};pushAA_searchError([Ae,ue])};useSyncPassengerDetails(u);const Z=useEventBus("booking-widget:enrich-points-toggle-switch");Z.on(async(Se,Ae)=>{switch(Se){case"update-toggle-switch":{Ae==="logout"&&K(!1),await nextTick$1();break}default:{console.log(`Unknown event: ${Se}. Ignore it.`);break}}}),o({updateLocationFromTo:Ce,isExpanded:w});const de=Se=>{var Ae,ue;Se&&!isMobileViewport.value&&((ue=(Ae=f.value)==null?void 0:Ae.inputElFrom)==null||ue.focus())},fe=computed(()=>{var Se,Ae,ue;return e.ondSelection?{NEAR_YOU:(Se=e.ondSelection)==null?void 0:Se.nearYouLabel,POPULAR_DEST:(Ae=e.ondSelection)==null?void 0:Ae.popularDestinationsLabel,WITH_MH:(ue=e.ondSelection)==null?void 0:ue.withMalaysiaAirlinesLabel}:null}),{retrieveLocalStorage:_e}=usePersistencyWithExpiry("userInfo"),{decrypt:pe}=encryptionHelper(),ve=ref$1(null),Me=async()=>{var Se,Ae;if(s.value){l.value=!l.value;return}i.value=!0;try{const ue=new FormData;ue.append("voucherCode",(Se=ve.value)==null?void 0:Se.flysiswaVoucherCode),ue.append("enrichId",(Ae=ve.value)==null?void 0:Ae.enrichId);const{data:ye}=await axios$1.post("/bin/mh/revamp/flysiswa/retrieveVoucherPin",ue);ye&&ye.status&&(s.value=ye.voucherPin,l.value=!0)}catch(ue){s.value=null,l.value=!1,console.error("handleRevealPincode, ","Unable to fetch api",ue)}finally{i.value=!1}};onMounted(async()=>{const Se=await _e();if(Se!=null&&Se.userInfo)try{const Ae=await pe(Se.userInfo);ve.value=JSON.parse(Ae)}catch(Ae){console.error("Failed to decrypt user data:",Ae)}});const Fe={props:e,emit:n,isRTL:a,isLoadingPincode:i,pincode:s,showPincode:l,formWrapper:d,rootEl:c,passengerAndCabinClassEl:u,dateRangePickerEl:f,ondPickerEl:m,isLoading:b,dateRangeValueFrom:y,dateRangeValueTo:_,ondValueFrom:S,ondValueTo:C,payByEnrichPoints:T,token:x,pageProperties:k,isEditorMode:E,isExpanded:w,country:D,language:N,capitalizeString:F,computedCabinClassValue:V,lowFareApiUrl:A,isOneWay:M,dateRangePriceData:O,currency:R,departureDateAndFare:I,handleWatchIsOneWay:j,isAuthStateReady:H,SAPPHIRE_COOKIE:U,handleSubmitValid:B,handleSubmitInvalid:L,handleFormFocusWithin:z,handleFormBlurWithin:W,isBtnSubmitDisabled:J,bookingWidgetBus:te,isSticked:re,handleExpandTransitionEnd:oe,areDatesValid:X,validateAndRestoreDates:se,defaultMinDate:le,defaultMaxDate:he,datePickerMinAllowedFutureDays:ge,datePickerMaxAllowedFutureDays:Q,formattedDisabledDateList:Y,registerQueryChange:ne,updateLocationFromTo:Ce,sumPrice:ae,sumPriceWithCurrency:Be,isUKVariant:me,setEnrichPointStatus:K,triggerAA_searchError:q,globalBookFlightBus:Z,focusToDatePicker:de,groupLabelsOverwrite:fe,retrieveLocalStorage:_e,decrypt:pe,loginUserDetail:ve,handleRevealPincode:Me,Tooltip,CTAButton,DateRangePicker,FormWrapper,get dayjs(){return dayjs},get isMobileViewport(){return isMobileViewport},TransitionHeight,get useGlobalAEMState(){return useGlobalAEMState$1},get useEventBus(){return useEventBus},get i18nGlobal(){return i18nGlobal},get useIsUkVariant(){return useIsUkVariant},get useSyncPassengerDetails(){return useSyncPassengerDetails},get useAuthStore(){return useAuthStore},get getCookie(){return getCookie},get useLowFarePriceList(){return useLowFarePriceList},get formatNumberWithAbbreviation(){return formatNumberWithAbbreviation},get waitFor(){return waitFor},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get pushAA_searchError(){return pushAA_searchError},get useIsRTL(){return useIsRTL},AppSpinner,ONDPicker,PassengerAndCabinClass,get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get encryptionHelper(){return encryptionHelper}};return Object.defineProperty(Fe,"__isScriptSetup",{enumerable:!1,value:!0}),Fe}}),_hoisted_1$_={ref:"rootEl",class:"FlysiswaSubTabBookFlight"},_hoisted_2$S={key:0,class:"mb-5"},_hoisted_3$t={class:"flex items-center"},_hoisted_4$m={class:"flex gap-6 xl:gap-3 lg:flex-col mb-5 justify-end items-center"},_hoisted_5$j={class:"text-base font-medium"},_hoisted_6$h={class:"text-base font-medium"},_hoisted_7$h={key:0},_hoisted_8$g={class:"flex items-center justify-center"},_hoisted_9$e={key:1},_hoisted_10$8={key:2},_hoisted_11$8={class:"flex gap-6 xl:gap-3 lg:flex-col"},_hoisted_12$7={class:"w-6/10 lg:w-full"},_hoisted_13$7={class:"w-4/10 lg:w-full"},_hoisted_14$7={key:0},_hoisted_15$6={key:1},_hoisted_16$6={class:"flex mt-6 gap-6 xl:gap-3 lg:flex-col"},_hoisted_17$5={class:"flex flex-grow gap-6 xl:gap-3 lg:flex-col"},_hoisted_18$5={class:"w-6/10 lg:w-full"},_hoisted_19$5={class:"ml-auto lg:ml-0"}
1185,_hoisted_20$5={key:0,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_21$5={class:"text-sm"},_hoisted_22$4={class:"generic-backdrop !bg-white/80"},_hoisted_23$4={class:"flex items-center justify-center h-full w-full"};function _sfc_render$Z(t,o,r,e,n,a){const i=__unplugin_components_0$n,s=__unplugin_components_1$c,l=resolveDirective("html-sanitize"),d=resolveDirective("aa"),c=resolveDirective("focus-within");return openBlock(),createElementBlock("div",_hoisted_1$_,[withDirectives((openBlock(),createBlock(e.FormWrapper,{ref:"formWrapper",class:"lg:mt-0",tabindex:"-1",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid,onFocusWithin:e.handleFormFocusWithin,onBlurWithin:e.handleFormBlurWithin},{default:withCtx(({errors:u})=>{var f,m,b,y,_,S,C,T,x,k,E,w,D,N,F;return[createBaseVNode("div",null,[e.props.subHeaderTabDescription?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$S,null,512)),[[l,e.props.subHeaderTabDescription]]):createCommentVNode("",!0),e.props.subHeaderTabTooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$t,[createVNode(i,{class:"fill-primary-blue-base mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.subHeaderTabTooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[l,e.props.subHeaderTabTooltipBody]])]),"mobile-cta-label":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTooltipCTATextMobileLabel),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$m,[createBaseVNode("div",_hoisted_5$j,[createBaseVNode("span",null,[createTextVNode(toDisplayString(t.$t("Flysiswa Voucher Code"))+": ",1),createBaseVNode("span",null,toDisplayString((f=e.loginUserDetail)==null?void 0:f.flysiswaVoucherCode),1)])]),createBaseVNode("div",_hoisted_6$h,[createBaseVNode("span",null,[createTextVNode(toDisplayString(t.$t("Pincode"))+": ",1),e.showPincode&&e.pincode?(openBlock(),createElementBlock("span",_hoisted_7$h,toDisplayString(e.pincode),1)):createCommentVNode("",!0)]),createBaseVNode("button",{type:"button",class:"text-primary-blue-base hover:text-primary-blue-light text-base font-medium",onClick:e.handleRevealPincode},[createBaseVNode("div",_hoisted_8$g,[e.isLoadingPincode?(openBlock(),createBlock(e.AppSpinner,{key:0,size:15})):createCommentVNode("",!0),!e.showPincode&&!e.isLoadingPincode?(openBlock(),createElementBlock("div",_hoisted_9$e,toDisplayString(t.$t("click to reveal")),1)):createCommentVNode("",!0),e.showPincode&&!e.isLoadingPincode?(openBlock(),createElementBlock("div",_hoisted_10$8,toDisplayString(t.$t("hide")),1)):createCommentVNode("",!0)])])])]),createBaseVNode("div",_hoisted_11$8,[createBaseVNode("div",_hoisted_12$7,[createVNode(e.ONDPicker,{ref:"ondPickerEl",modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[
11850]||(o[0]=V=>e.ondValueFrom=V),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":[o[1]||(o[1]=V=>e.ondValueTo=V),e.focusToDatePicker],nameFrom:"locationFrom",nameTo:"locationTo",ondListIdentifier:"FLIGHT_SEARCH_FLYSISWA",requiredFrom:!0,requiredTo:!0,specificOriginList:(m=e.props.ondSelection)==null?void 0:m.showSpecificOrigin,specificDestinationList:(b=e.props.ondSelection)==null?void 0:b.showSpecificDestination,requiredErrorMsgFrom:(y=e.props.ondSelection)==null?void 0:y.fromSearchErrorMessage,requiredErrorMsgTo:(_=e.props.ondSelection)==null?void 0:_.toSearchErrorMessage,labelTextFrom:(S=e.props.ondSelection)==null?void 0:S.fromLabel,labelTextTo:(C=e.props.ondSelection)==null?void 0:C.toLabel,noResultsText:(T=e.props.ondSelection)==null?void 0:T.noResultMessage,requestGeolocation:!e.props.disableGeolocation,groupLabelsOverwrite:e.groupLabelsOverwrite,enableONDLocaleTranslation:e.props.enableONDLocaleTranslation},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","specificOriginList","specificDestinationList","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","noResultsText","requestGeolocation","groupLabelsOverwrite","enableONDLocaleTranslation"])]),createBaseVNode("div",_hoisted_13$7,[createVNode(e.DateRangePicker,{ref:"dateRangePickerEl",modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[2]||(o[2]=V=>e.dateRangeValueFrom=V),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[3]||(o[3]=V=>e.dateRangeValueTo=V),priceData:e.dateRangePriceData,textFieldAttrsFrom:{ariaLabel:((x=e.props.datePicker)==null?void 0:x.departureDateLabel)??t.$t("Depart"),placeholder:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:((k=e.props.datePicker)==null?void 0:k.returnDateLabel)??t.$t("Return"),placeholder:t.$t("Select a date")},minDate:`t+${e.datePickerMinAllowedFutureDays}d`,maxDate:`t+${e.datePickerMaxAllowedFutureDays}d`,disabledDates:e.formattedDisabledDateList,minDateFromAfterSelectingTo:"t",disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(E=e.props.datePicker)==null?void 0:E.invalidDateErrorMessage,requiredErrorMsgTo:(w=e.props.datePicker)==null?void 0:w.invalidDateErrorMessage,labelReset:((D=e.props.datePicker)==null?void 0:D.resetButtonCTAText)??t.$t("Reset"),labelDone:((N=e.props.datePicker)==null?void 0:N.doneCTAText)??t.$t("Done"),labelOneWay:((F=e.props.datePicker)==null?void 0:F.oneWayCTAText)??t.$t("One-way"),isHideTodayIndicator:e.props.hideTodayDateIndicator,disableCalendarPickerAnimation:e.props.disableCalendarPickerAnimation,"onUpdate:isOneWay":e.handleWatchIsOneWay},createSlots({"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.datePickerQuestionMobile),1)]),_:2},[e.currency?{name:"before-cta-done",fn:withCtx(()=>[e.ondValueFrom&&!e.sumPrice?withDirectives((openBlock(),createElementBlock("span",_hoisted_14$7,null,512)),[[l,t.$t("Fare based on <strong>{currency}</strong>",{currency:e.currency})]]):createCommentVNode("",!0),e.ondValueFrom&&e.ondValueTo&&e.sumPrice?withDirectives((openBlock(),createElementBlock("span",_hoisted_15$6,null,512)),[[l,t.$t("Trip from <strong>{sumPriceWithCurrency}</strong> per adult",{sumPriceWithCurrency:e.sumPriceWithCurrency})]]):createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["modelValueFrom","modelValueTo","priceData","textFieldAttrsFrom","textFieldAttrsTo","minDate","maxDate","disabledDates","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","isHideTodayIndicator","disableCalendarPickerAnimation"])])])]),createVNode(e.TransitionHeight,{height:e.isExpanded||e.isEditorMode||e.isMobileViewport?"auto":0,class:normalizeClass(e.isExpanded||e.isEditorMode||e.isMobileViewport?"overflow-visible":""),transitionDuration:.175,onTransitionEnd:e.handleExpandTransitionEnd},{default:withCtx(()=>{var V,A,M,O,R,I,j,H,U,B,L,z,W,J,te;return[createBaseVNode("div",_hoisted_16$6,[createBaseVNode("div",_hoisted_17$5,[createBaseVNode("div",_hoisted_18$5,[createVNode(e.PassengerAndCabinClass,{ref:"passengerAndCabinClassEl",labelText:(V=e.props.passengerSelection)==null?void 0:V.passengerAndCabinClassLabel,passengerLabel:(A=e.props.passengerSelection)==null?void 0:A.passengerLabel,adultLabel:(M=e.props.passengerSelection)==null?void 0:M.adultLabel,teenagerLabel:(O=e.props.passengerSelection)==null?void 0:O.teenagerLabel,childrenLabel:(R=e.props.passengerSelection)==null?void 0:R.childrenLabel,infantLabel:(I=e.props.passengerSelection)==null?void 0:I.infantLabel,cabinClassLabel:(j=e.props.passengerSelection)==null?void 0:j.cabinClassLabel,economyLabel:(H=e.props.passengerSelection)==null?void 0:H.economyLabel,businessLabel:(U=e.props.passengerSelection)==null?void 0:U.businessLabel,businessSuiteLabel:(B=e.props.passengerSelection)==null?void 0:B.businessSuiteLabel,isShowEconomyClass:!((L=e.props.passengerSelection)!=null&&L.hideEconomy),isShowBusinessClass:!((z=e.props.passengerSelection)!=null&&z.hideBusiness),isShowBusinessSuiteClass:!((W=e.props.passengerSelection)!=null&&W.hideBusinessSuite),isUKVariant:e.useIsUkVariant({origin:e.ondValueFrom,destination:e.ondValueTo}),isShowInfant:(J=e.props.passengerSelection)==null?void 0:J.showInfant,isShowChildren:(te=e.props.passengerSelection)==null?void 0:te.showChildren},{"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.passengerSelectionQuestion),1)]),_:1},8,["labelText","passengerLabel","adultLabel","teenagerLabel","childrenLabel","infantLabel","cabinClassLabel","economyLabel","businessLabel","businessSuiteLabel","isShowEconomyClass","isShowBusinessClass","isShowBusinessSuiteClass","isUKVariant","isShowInfant","isShowChildren"])])]),createBaseVNode("div",_hoisted_19$5,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"large",isSubmit:!0,
1185ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.searchFlightCTAText),1)]),_:1},8,["sizeType","ctaSizing","disabled"])),[[d,[{clickName:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"FlysiswaSubTabBookFlight",componentID:e.props.componentIdAA},{name:e.props.searchFlightCTAText,type:"exit"}]]])])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_20$5,[createVNode(s,{class:"fill-primary-blue-base text-base"}),withDirectives(createBaseVNode("div",_hoisted_21$5,null,512),[[l,e.props.note]])])):createCommentVNode("",!0)]}),_:1},8,["height","class"])]}),_:1})),[[c]]),e.isLoading?(openBlock(),createBlock(Teleport,{key:0,to:"body"},[createBaseVNode("div",_hoisted_22$4,[createBaseVNode("div",_hoisted_23$4,[createVNode(e.AppSpinner)])])])):createCommentVNode("",!0)],512)}const FlysiswaSubTabBookFlight=_export_sfc(_sfc_main$Z,[["render",_sfc_render$Z],["__scopeId","data-v-a0590d1e"],["__file","FlysiswaSubTabBookFlight.vue"]]),__default__$X={name:"MHEFlightSearch",inheritAttrs:!1},_sfc_main$Y=Object.assign(__default__$X,{props:{bookFlight:{type:Object,default:null},flysiswa:{type:Object,default:null},labels:{type:Object,default:null},mobileAddOns:{type:Object,default:null},isInBookingWidget:{type:Boolean,default:!1},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},isHideContinueYourSearchSection:{type:Boolean,default:!1},enrichAlwaysOnCountriesData:{type:Array,default:()=>[]}},emits:["update:active-sub-tab"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(null),{retrieveLocalStorage:d}=usePersistencyWithExpiry("userInfo"),{decrypt:c}=encryptionHelper(),{isMobileSubpageVisible:u}=useBookingWidgetSubpage({hashKey:["mhe-flight-search","mhe-flight-search-tab"],rootEl:a}),{isEditorMode:f}=useGlobalAEMState$1(),m=ref$1("book-flight"),b=ref$1("book-flight"),y=ref$1(!1),_=ref$1(!1),S=ref$1(!1),C=()=>{y.value&&w()},T=()=>{},x=useEventBus("booking-widget");x.on((L,z)=>{switch(L){case"sticky:sticked":{y.value=!0,k(z);break}case"sticky:unsticked":{y.value=!1,E(z);break}}});const k=async L=>{b.value=m.value,L.resizeObserver.unobserve(L.triggerEl),D({skipAnimation:!0});const{paused:z}=useHeaderScroll();z.value=!0,await sleep(200),L.triggerEl.classList.remove("pre-stick"),gsapWithCSS.fromTo(L.triggerEl,{y:"-100%"},{y:0,duration:.3,overwrite:!0,onComplete:()=>{z.value=!1}})},E=async L=>{m.value=b.value,w({skipAnimation:!0}),await nextTick$1(),await sleep(200),L.resizeObserver.observe(L.triggerEl)},w=({skipAnimation:L=!1}={})=>{const z=a.value.querySelector(".VueTabs"),W=z.querySelector(".SubTabBookFlight .TransitionHeight"),J=a.value.querySelector(".continue-your-search-container");gsapWithCSS.to(W,{duration:L?0:.2,height:"auto",onComplete:()=>{gsapWithCSS.set(W,{overflow:"visible"})},overwrite:!0}),J&&gsapWithCSS.to(J,{duration:L?0:.2,height:"auto",overwrite:!0}),gsapWithCSS.to(z,{duration:L?0:.2,marginTop:0,overwrite:!0})},D=async({skipAnimation:L=!1}={})=>{const W=a.value.querySelector(".VueTabs"),re=32+W.querySelector(".VueTabs .VueSwiper").offsetHeight,oe=W.querySelector(".SubTabBookFlight .TransitionHeight"),X=a.value.querySelector(".continue-your-search-container");m.value="book-flight",gsapWithCSS.set(oe,{overflow:"hidden"}),gsapWithCSS.to(oe,{duration:L?0:.2,height:0,overwrite:!0}),X&&gsapWithCSS.to(X,{duration:L?0:.2,height:0,overwrite:!0}),gsapWithCSS.to(W,{duration:L?0:.2,marginTop:`-${re}`,overwrite:!0})},N=ref$1(null),F=L=>{N.value.saveSearch(L)},V=async L=>{isMobileViewport.value?(u.value=!0,await nextTick$1()):(m.value="book-flight",await nextTick$1(),l.value.scrollToTab("book-flight"),i.value.restorePastSearch(L),i.value.isExpanded=!0)},A=async L=>{isMobileViewport.value&&(u.value=!0,await nextTick$1()),m.value="book-flight",b.value="book-flight",await nextTick$1(),l.value.scrollToTab("book-flight"),i.value.updateLocationFromTo(L)},M=useEventBus("booking-widget:book-flight");M.on(async(L,z)=>{switch(L){case"active-tab-and-fill-up-form":A(z),await nextTick$1();break;default:console.log(`Unknown event: ${L}. Ignore it.`);break}});const O=useEventBus("booking-widget:mhe-flight-search");O.on(async(L,z)=>{switch(L){case"user-logout-action":{z==="logout"&&window.location.reload();break}default:{console.log(`Unknown event: ${L}. Ignore it.`);break}}}),watch(m,L=>{pushAA_click([{clickName:L,clickComponentType:"URL",componentName:"MHEFlightSearch",componentID:e.componentIdAA},{name:L,type:"other"}])});let R=!1,I=!1;const j=ref$1(!1);onMounted(()=>{const L=getAncestorBySelector(a.value,".SwitchTabContent");onClickOutside(L==null?void 0:L[0],W=>{y.value&&D()});const z=W=>{R||W.target.tagName!=="FORM"&&(R=!0,pushAA_flightSearchStart(m.value),a.value.removeEventListener("focus",z,{capture:!0}))};a.value.addEventListener("focus",z,{capture:!0})}),onMounted(async()=>{const L=await d();if(L.userInfo){try{const z=await c(L.userInfo),W=JSON.parse(z);W.mhsports?S.value=!0:_.value=W?W.isFlysiswaUser:!1,await nextTick$1()}catch(z){console.error("Failed to decrypt user data:",z)}j.value=!0}});const H=L=>{I||(I=!0,pushAA_flightSearchEnd(L))},{registerQueryChange:U}=useBookingWidgetUrlQuery({mainTabName:"mhe-flight-search-tab"});U(async L=>{if(!L)return;isMobileViewport.value&&(u.value=!0);const z=L.subtab??"";z&&(m.value=z,n("update:active-sub-tab",z))});const B={props:e,emit:n,rootEl:a,subTabBookFlightEl:i,flysiswaSubTabBookFlightEl:s,vueTabsComponent:l,retrieveLocalStorage:d,decrypt:c,isMobileSubpageVisible:u,isEditorMode:f,activeSubTab:m,activeSubTabPreStick:b,isSticked:y,isFlysiswaUser:_,isMHSportsUser:S,handleRootFocusWithin:C,handleRootBlurWithin:T,bookingWidgetBus:x,handleOnStick:k,handleOnUnstick:E,stickyExpand:w,stickyCollapse:D,continueYourSearchComponent:N,handleSaveSearchData:F,restorePastSearch:V,handleFillUpForm:A,globalBookFlightBus:M,MHEFlightSearchBus:O,get AAHasSentStart(){return R},set AAHasSentStart(L){R=L},get AAHasSentEnd(){return I},set AAHasSentEnd(L){I=L},checkForFlysiswaTab:j,sendFormCompleteAA:H,registerQueryChange:U,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},VueTabs,SubTabBookFlight,ContinueYourSearch:ContinueYourSearch$1,get useGlobalAEMState(){return useGlobalAEMState$1},get onClickOutside(){return onClickOutside},get useEventBus(){return useEventBus},get gsap(){return gsapWithCSS},get getAncestorBySelector(){return getAncestorBySelector},get isMobileViewport(){return isMobileViewport},get pushAA_flightSearchStart(){return pushAA_flightSearchStart},get pushAA_flightSearchEnd(){return pushAA_flightSearchEnd},get pushAA_click(){return pushAA_click}
1185,get useHeaderScroll(){return useHeaderScroll},get sleep(){return sleep},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},get useAuthStore(){return useAuthStore},get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get encryptionHelper(){return encryptionHelper},FlysiswaSubTabBookFlight};return Object.defineProperty(B,"__isScriptSetup",{enumerable:!1,value:!0}),B}}),_hoisted_1$Z={class:"generic-container"},_hoisted_2$R={key:0,class:"title-editor-mode"},_hoisted_3$s={class:"flex items-center justify-center p-4"},_hoisted_4$l={class:"inline-block ml-1"},_hoisted_5$i={class:"flex items-center justify-center p-4"},_hoisted_6$g={class:"inline-block ml-1"},_hoisted_7$g={key:0,identifier:"book-flight"},_hoisted_8$f={key:1,identifier:"flysiswa-book-flight"},_hoisted_9$d={class:"text-center"},_hoisted_10$7={class:"generic-container mb-20"},_hoisted_11$7={class:"flex items-center justify-center p-4"},_hoisted_12$6={class:"inline-block ml-1"},_hoisted_13$6={class:"flex items-center justify-center p-4"},_hoisted_14$6={class:"inline-block ml-1"},_hoisted_15$5={key:0,identifier:"book-flight"},_hoisted_16$5={key:1,identifier:"flysiswa-book-flight"};function _sfc_render$Y(t,o,r,e,n,a){var l,d,c,u,f,m,b,y,_,S,C,T,x,k,E,w;const i=__unplugin_components_0$9,s=resolveDirective("focus-within");return openBlock(),createElementBlock(Fragment,null,[withDirectives((openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["MHEFlightSearch booking-widget-subcomponent",{isEditorMode:e.isEditorMode}]),tabindex:"-1",onFocusWithin:e.handleRootFocusWithin,onBlurWithin:e.handleRootBlurWithin},[createBaseVNode("div",_hoisted_1$Z,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$R,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[11]||(o[11]=createBaseVNode("span",null,"Booking Widget: MHE Flight Search",-1))])):createCommentVNode("",!0),e.checkForFlysiswaTab?(openBlock(),createBlock(e.VueTabs,{key:1,ref:"vueTabsComponent",modelValue:e.activeSubTab,"onUpdate:modelValue":[o[3]||(o[3]=D=>e.activeSubTab=D),o[4]||(o[4]=D=>t.$emit("update:active-sub-tab",D))],dormantMode:e.isEditorMode,renderPanelsWithVShow:""},createSlots({default:withCtx(()=>{var D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J,te,re,oe,X,se,le,he,ge,Q,Y,ne,Ce,ae,Be,me,K,q,Z,de,fe,_e,pe,ve,Me,Fe,Te,Se,Ae,ue,ye,Xe,De,ke,ze,qe,ht,pt,Ne,Je,$e,st,bt,Bt,rt,Ze,dt,Ye,lt,et,nt,Pt,ft,Nt,Ot;return[(N=(D=e.props.bookFlight)==null?void 0:D.general)!=null&&N.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_7$g,[createVNode(e.SubTabBookFlight,{ref:"subTabBookFlightEl",class:"pt-6",payingByEnrichLabel:(V=(F=e.props.labels)==null?void 0:F.paymentType)==null?void 0:V.payingByEnrichLabel,hideTodayDateIndicator:(M=(A=e.props.labels)==null?void 0:A.paymentType)==null?void 0:M.hideTodayDateIndicator,subHeaderTabDescription:(R=(O=e.props.bookFlight)==null?void 0:O.general)==null?void 0:R.subHeaderTabDescription,subHeaderTabTooltipBody:(j=(I=e.props.bookFlight)==null?void 0:I.general)==null?void 0:j.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(U=(H=e.props.bookFlight)==null?void 0:H.general)==null?void 0:U.subHeaderTabTooltipLabel,note:(L=(B=e.props.bookFlight)==null?void 0:B.general)==null?void 0:L.note,searchFlightCTAText:(W=(z=e.props.bookFlight)==null?void 0:z.general)==null?void 0:W.searchFlightCTAText,ondSelection:(J=e.props.bookFlight)==null?void 0:J.ondSelection,datePicker:(te=e.props.bookFlight)==null?void 0:te.datePicker,promoCodeLabel:(oe=(re=e.props.bookFlight)==null?void 0:re.promoCode)==null?void 0:oe.promoCodeLabel,promoCodeErrorMessage:(se=(X=e.props.bookFlight)==null?void 0:X.promoCode)==null?void 0:se.promoCodeErrorMessage,supersedePromoCode:(he=(le=e.props.bookFlight)==null?void 0:le.promoCode)==null?void 0:he.supersedePromoCode,passengerSelection:(ge=e.props.bookFlight)==null?void 0:ge.passengerSelection,subHeaderTooltipCTATextMobileLabel:(Q=e.props.mobileAddOns)==null?void 0:Q.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(Y=e.props.mobileAddOns)==null?void 0:Y.fromQuestionMobile,toQuestionMobile:(ne=e.props.mobileAddOns)==null?void 0:ne.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:(ae=(Ce=e.props.labels)==null?void 0:Ce.mattaFair)==null?void 0:ae.enableMattaToggleButton,mattaToggleButtonLabel:(me=(Be=e.props.labels)==null?void 0:Be.mattaFair)==null?void 0:me.mattaToggleButtonLabel,hideEnrichToggle:(q=(K=e.props.labels)==null?void 0:K.paymentType)==null?void 0:q.hideEnrichToggle,hidePromoCodeField:(de=(Z=e.props.bookFlight)==null?void 0:Z.promoCode)==null?void 0:de.hidePromoCodeField,enrichAlwaysOn:(_e=(fe=e.props.bookFlight)==null?void 0:fe.enrichAlwaysOn)==null?void 0:_e.enableFunctionality,loggedInMessageNote:(ve=(pe=e.props.bookFlight)==null?void 0:pe.enrichAlwaysOn)==null?void 0:ve.loggedInMessageNote,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:(Fe=(Me=e.props.labels)==null?void 0:Me.nearYou)==null?void 0:Fe.disableGeolocation,enableONDLocaleTranslation:(Se=(Te=e.props.labels)==null?void 0:Te.ondLocale)==null?void 0:Se.isEnableLocale,ondTranslationLanguage:(ue=(Ae=e.props.labels)==null?void 0:Ae.ondTranslation)==null?void 0:ue.languageCode,customCUGSearchWidget:(ye=e.props.bookFlight)==null?void 0:ye.customCUGSearchWidget,isMHSportsUser:e.isMHSportsUser,onSaveSearchData:o[0]||(o[0]=yt=>e.handleSaveSearchData({isBSTTab:!1,...yt})),onFormSubmission:o[1]||(o[1]=yt=>e.sendFormCompleteAA("book-flight"))},null,8,["payingByEnrichLabel","hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","promoCodeL
1185abel","promoCodeErrorMessage","supersedePromoCode","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","hideEnrichToggle","hidePromoCodeField","enrichAlwaysOn","loggedInMessageNote","enrichAlwaysOnCountriesData","disableGeolocation","enableONDLocaleTranslation","ondTranslationLanguage","customCUGSearchWidget","isMHSportsUser"])])),(De=(Xe=e.props.flysiswa)==null?void 0:Xe.flightType)!=null&&De.enableDesktop&&!e.isMHSportsUser?(openBlock(),createElementBlock("div",_hoisted_8$f,[createVNode(e.FlysiswaSubTabBookFlight,{ref:"flysiswaSubTabBookFlightEl",class:"pt-6",subHeaderTabDescription:(ze=(ke=e.props.flysiswa)==null?void 0:ke.general)==null?void 0:ze.subHeaderTabDescription,subHeaderTabTooltipBody:(ht=(qe=e.props.flysiswa)==null?void 0:qe.general)==null?void 0:ht.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(Ne=(pt=e.props.flysiswa)==null?void 0:pt.general)==null?void 0:Ne.subHeaderTabTooltipLabel,note:($e=(Je=e.props.flysiswa)==null?void 0:Je.general)==null?void 0:$e.note,searchFlightCTAText:(bt=(st=e.props.flysiswa)==null?void 0:st.general)==null?void 0:bt.searchFlightCTAText,ondSelection:(Bt=e.props.flysiswa)==null?void 0:Bt.ondSelection,datePicker:(rt=e.props.flysiswa)==null?void 0:rt.datePicker,passengerSelection:(Ze=e.props.flysiswa)==null?void 0:Ze.passengerSelection,subHeaderTooltipCTATextMobileLabel:(dt=e.props.mobileAddOns)==null?void 0:dt.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(Ye=e.props.mobileAddOns)==null?void 0:Ye.fromQuestionMobile,toQuestionMobile:(lt=e.props.mobileAddOns)==null?void 0:lt.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,disableGeolocation:(nt=(et=e.props.labels)==null?void 0:et.nearYou)==null?void 0:nt.disableGeolocation,enableONDLocaleTranslation:(ft=(Pt=e.props.labels)==null?void 0:Pt.ondLocale)==null?void 0:ft.isEnableLocale,ondTranslationLanguage:(Ot=(Nt=e.props.labels)==null?void 0:Nt.ondTranslation)==null?void 0:Ot.languageCode,onFormSubmission:o[2]||(o[2]=yt=>e.sendFormCompleteAA("flysiswa-book-flight"))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","disableGeolocation","enableONDLocaleTranslation","ondTranslationLanguage"])])):createCommentVNode("",!0)]}),_:2},[!((d=(l=e.props.bookFlight)==null?void 0:l.general)!=null&&d.isHideInDesktop)&&((u=(c=e.props.labels)==null?void 0:c.flightType)!=null&&u.bookFlightLabel)?{name:"tab-book-flight",fn:withCtx(()=>{var D,N;return[createBaseVNode("div",_hoisted_3$s,[createBaseVNode("span",_hoisted_4$l,toDisplayString((N=(D=e.props.labels)==null?void 0:D.flightType)==null?void 0:N.bookFlightLabel),
11851)])]}),key:"0"}:void 0,e.isFlysiswaUser&&e.props.flysiswa&&((m=(f=e.props.flysiswa)==null?void 0:f.flightType)!=null&&m.enableDesktop)&&((y=(b=e.props.flysiswa)==null?void 0:b.flightType)!=null&&y.bookFlightLabel)?{name:"tab-flysiswa-book-flight",fn:withCtx(()=>{var D,N;return[createBaseVNode("div",_hoisted_5$i,[createBaseVNode("span",_hoisted_6$g,toDisplayString((N=(D=e.props.flysiswa)==null?void 0:D.flightType)==null?void 0:N.bookFlightLabel),1)])]}),key:"1"}:void 0]),1032,["modelValue","dormantMode"])):createCommentVNode("",!0),e.props.isHideContinueYourSearchSection?createCommentVNode("",!0):(openBlock(),createBlock(e.ContinueYourSearch,{key:2,ref:"continueYourSearchComponent",class:"continue-your-search-container",continueYourSearchLabel:(S=(_=e.props.bookFlight)==null?void 0:_.continueYourSearch)==null?void 0:S.continueYourSearchLabel,economyLabel:(T=(C=e.props.bookFlight)==null?void 0:C.passengerSelection)==null?void 0:T.economyLabel,businessLabel:(k=(x=e.props.bookFlight)==null?void 0:x.passengerSelection)==null?void 0:k.businessLabel,businessSuiteLabel:(w=(E=e.props.bookFlight)==null?void 0:E.passengerSelection)==null?void 0:w.businessSuiteLabel,onRestorePastSearch:e.restorePastSearch},null,8,["continueYourSearchLabel","economyLabel","businessLabel","businessSuiteLabel"]))])],34)),[[s]]),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},"onUpdate:isVisible":o[10]||(o[10]=D=>e.isMobileSubpageVisible=D)},{"banner-title":withCtx(()=>[createBaseVNode("h1",_hoisted_9$d,toDisplayString(t.$("MHE Flight Search")),1)]),default:withCtx(()=>{var D,N,F,V,A,M,O,R;return[createBaseVNode("div",_hoisted_10$7,[e.checkForFlysiswaTab?(openBlock(),createBlock(e.VueTabs,{key:0,ref:"vueTabsComponent",modelValue:e.activeSubTab,"onUpdate:modelValue":[o[8]||(o[8]=I=>e.activeSubTab=I),o[9]||(o[9]=I=>t.$emit("update:active-sub-tab",I))],renderPanelsWithVShow:""},createSlots({default:withCtx(()=>{var I,j,H,U,B,L,z,W,J,te,re,oe,X,se,le,he,ge,Q,Y,ne,Ce,ae,Be,me,K,q,Z,de,fe,_e,pe,ve,Me,Fe,Te,Se,Ae,ue,ye,Xe,De,ke,ze,qe,ht,pt,Ne,Je,$e,st,bt,Bt,rt,Ze,dt,Ye,lt,et,nt,Pt,ft,Nt,Ot,yt,Dt,_t,Ie,Le,ct,We,we,He,ot,kt,Yt,wt,Vt;return[(j=(I=e.props.bookFlight)==null?void 0:I.general)!=null&&j.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_15$5,[createVNode(e.SubTabBookFlight,{ref:"subTabBookFlightEl",class:"pt-6",payingByEnrichLabel:(U=(H=e.props.labels)==null?void 0:H.paymentType)==null?void 0:U.payingByEnrichLabel,hideTodayDateIndicator:(L=(B=e.props.labels)==null?void 0:B.paymentType)==null?void 0:L.hideTodayDateIndicator,subHeaderTabDescription:(W=(z=e.props.bookFlight)==null?void 0:z.general)==null?void 0:W.subHeaderTabDescription,subHeaderTabTooltipBody:(te=(J=e.props.bookFlight)==null?void 0:J.general)==null?void 0:te.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(oe=(re=e.props.bookFlight)==null?void 0:re.general)==null?void 0:oe.subHeaderTabTooltipLabel,note:(se=(X=e.props.bookFlight)==null?void 0:X.general)==null?void 0:se.note,searchFlightCTAText:(he=(le=e.props.bookFlight)==null?void 0:le.general)==null?void 0:he.searchFlightCTAText,ondSelection:(ge=e.props.bookFlight)==null?void 0:ge.ondSelection,datePicker:(Q=e.props.bookFlight)==null?void 0:Q.datePicker,promoCodeLabel:(ne=(Y=e.props.bookFlight)==null?void 0:Y.promoCode)==null?void 0:ne.promoCodeLabel,promoCodeErrorMessage:(ae=(Ce=e.props.bookFlight)==null?void 0:Ce.promoCode)==null?void 0:ae.promoCodeErrorMessage,supersedePromoCode:(me=(Be=e.props.bookFlight)==null?void 0:Be.promoCode)==null?void 0:me.supersedePromoCode,passengerSelection:(K=e.props.bookFlight)==null?void 0:K.passengerSelection,bstNoteTop:(Z=(q=e.props.bonusSideTrip)==null?void 0:q.bstPage)==null?void 0:Z.bstNoteTop,bstNoteCTAText:(fe=(de=e.props.bonusSideTrip)==null?void 0:de.bstPage)==null?void 0:fe.bstNoteCTAText,bstNoteCTAURL:(pe=(_e=e.props.bonusSideTrip)==null?void 0:_e.bstPage)==null?void 0:pe.bstNoteCTAURL,subHeaderTooltipCTATextMobileLabel:(ve=e.props.mobileAddOns)==null?void 0:ve.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(Me=e.props.mobileAddOns)==null?void 0:Me.fromQuestionMobile,toQuestionMobile:(Fe=e.props.mobileAddOns)==null?void 0:Fe.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,togglePointsApiURL:e.props.togglePointsApiURL,enableMattaToggleButton:(Se=(Te=e.props.labels)==null?void 0:Te.mattaFair)==null?void 0:Se.enableMattaToggleButton,mattaToggleButtonLabel:(ue=(Ae=e.props.labels)==null?void 0:Ae.mattaFair)==null?void 0:ue.mattaToggleButtonLabel,hideEnrichToggle:(Xe=(ye=e.props.labels)==null?void 0:ye.paymentType)==null?void 0:Xe.hideEnrichToggle,hidePromoCodeField:(ke=(De=e.props.bookFlight)==null?void 0:De.promoCode)==null?void 0:ke.hidePromoCodeField,enrichAlwaysOn:(qe=(ze=e.props.bookFlight)==null?void 0:ze.enrichAlwaysOn)==null?void 0:qe.enableFunctionality,loggedInMessageNote:(pt=(ht=e.props.bookFlight)==null?void 0:ht.enrichAlwaysOn)==null?void 0:pt.loggedInMessageNote,enrichAlwaysOnCountriesData:e.props.enrichAlwaysOnCountriesData,disableGeolocation:(Je=(Ne=e.props.labels)==null?void 0:Ne.nearYou)==null?void 0:Je.disableGeolocation,enableONDLocaleTranslation:(st=($e=e.props.labels)==null?void 0:$e.ondLocale)==null?void 0:st.isEnableLocale,ondTranslationLanguage:(Bt=(bt=e.props.labels)==null?void 0:bt.ondTranslation)==null?void 0:Bt.languageCode,customCUGSearchWidget:(rt=e.props.bookFlight)==null?void 0:rt.customCUGSearchWidget,onSaveSearchData:o[5]||(o[5]=zt=>e.handleSaveSearchData({isBSTTab:!1,...zt})),onFormSubmission:o[6]||(o[6]=zt=>e.sendFormCompleteAA("book-flight"))},null,8,["payingByEnrichLabel","hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","promoCodeL
1185abel","promoCodeErrorMessage","supersedePromoCode","passengerSelection","bstNoteTop","bstNoteCTAText","bstNoteCTAURL","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","togglePointsApiURL","enableMattaToggleButton","mattaToggleButtonLabel","hideEnrichToggle","hidePromoCodeField","enrichAlwaysOn","loggedInMessageNote","enrichAlwaysOnCountriesData","disableGeolocation","enableONDLocaleTranslation","ondTranslationLanguage","customCUGSearchWidget"])])),(dt=(Ze=e.props.flysiswa)==null?void 0:Ze.flightType)!=null&&dt.enableDesktop?(openBlock(),createElementBlock("div",_hoisted_16$5,[createVNode(e.FlysiswaSubTabBookFlight,{ref:"flysiswaSubTabBookFlightEl",class:"pt-6",subHeaderTabDescription:(lt=(Ye=e.props.flysiswa)==null?void 0:Ye.general)==null?void 0:lt.subHeaderTabDescription,subHeaderTabTooltipBody:(nt=(et=e.props.flysiswa)==null?void 0:et.general)==null?void 0:nt.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(ft=(Pt=e.props.flysiswa)==null?void 0:Pt.general)==null?void 0:ft.subHeaderTabTooltipLabel,note:(Ot=(Nt=e.props.flysiswa)==null?void 0:Nt.general)==null?void 0:Ot.note,searchFlightCTAText:(Dt=(yt=e.props.flysiswa)==null?void 0:yt.general)==null?void 0:Dt.searchFlightCTAText,ondSelection:(_t=e.props.flysiswa)==null?void 0:_t.ondSelection,datePicker:(Ie=e.props.flysiswa)==null?void 0:Ie.datePicker,passengerSelection:(Le=e.props.flysiswa)==null?void 0:Le.passengerSelection,subHeaderTooltipCTATextMobileLabel:(ct=e.props.mobileAddOns)==null?void 0:ct.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(We=e.props.mobileAddOns)==null?void 0:We.fromQuestionMobile,toQuestionMobile:(we=e.props.mobileAddOns)==null?void 0:we.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,cabinClassMilesList:e.props.cabinClassMilesList,disableGeolocation:(ot=(He=e.props.labels)==null?void 0:He.nearYou)==null?void 0:ot.disableGeolocation,enableONDLocaleTranslation:(Yt=(kt=e.props.labels)==null?void 0:kt.ondLocale)==null?void 0:Yt.isEnableLocale,ondTranslationLanguage:(Vt=(wt=e.props.labels)==null?void 0:wt.ondTranslation)==null?void 0:Vt.languageCode,onFormSubmission:o[7]||(o[7]=zt=>e.sendFormCompleteAA("flysiswa-book-flight"))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","cabinClassMilesList","disableGeolocation","enableONDLocaleTranslation","ondTranslationLanguage"])])):createCommentVNode("",!0)]}),_:2},[!((N=(D=e.props.bookFlight)==null?void 0:D.general)!=null&&N.isHideInMobile)&&((V=(F=e.props.labels)==null?void 0:F.flightType)!=null&&V.bookFlightLabel)?{name:"tab-book-flight",fn:withCtx(()=>{var I,j;return[createBaseVNode("div",_hoisted_11$7,[createBaseVNode("span",_hoisted_12$6,toDisplayString((j=(I=e.props.labels)==null?void 0:I.flightType)==null?void 0:j.bookFlightLabel),
11851)])]}),key:"0"}:void 0,e.isFlysiswaUser&&e.props.flysiswa&&((M=(A=e.props.flysiswa)==null?void 0:A.flightType)!=null&&M.enableMobile)&&((R=(O=e.props.flysiswa)==null?void 0:O.flightType)!=null&&R.bookFlightLabel)?{name:"tab-flysiswa-book-flight",fn:withCtx(()=>{var I,j;return[createBaseVNode("div",_hoisted_13$6,[createBaseVNode("span",_hoisted_14$6,toDisplayString((j=(I=e.props.flysiswa)==null?void 0:I.flightType)==null?void 0:j.bookFlightLabel),1)])]}),key:"1"}:void 0]),1032,["modelValue"])):createCommentVNode("",!0)])]}),_:1},8,["isVisible"])],64)}const MHEFlightSearch=_export_sfc(_sfc_main$Y,[["render",_sfc_render$Y],["__scopeId","data-v-237ac64c"],["__file","MHEFlightSearch.vue"]]),MHEFlightSearch$1=Object.freeze(Object.defineProperty({__proto__:null,default:MHEFlightSearch},Symbol.toStringTag,{value:"Module"})),__default__$W={name:"BookingWidget",editConfig:{emptyLabel:"Booking Widget",isEmpty(t){return t.desktopProperties.length===0}},inheritAttrs:!1},_sfc_main$X=Object.assign(__default__$W,{props:{desktopProperties:{type:Array,default:()=>[]},mobileProperties:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},enableGlassDesign:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){var j;o();const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(!1),d="flight-search-tab",c={"flight-search":{component:FlightSearch,tabTitle:"Flight Search",anchorTag:d,selectedDefault:!1,parsys:{type:"mh/components/booking/flight-search",componentKey:"flight-search"},mblBtmBarUrl:"#flight-search"},"flight-hotel":{component:FlightHotelSearch,tabTitle:"Flight + Hotel",anchorTag:"flight-hotel-search-tab",selectedDefault:!1,parsys:{type:"mh/components/booking/flight-hotel-search",componentKey:"flight-hotel-search"},mblBtmBarUrl:"#flight-hotel-search"},"manage-booking":{component:ManageBooking,tabTitle:"Manage Booking",anchorTag:"manage-booking-tab",selectedDefault:!1,parsys:{type:"mh/components/booking/manage-booking",componentKey:"manage-booking"},mblBtmBarUrl:"#manage-booking"},"check-in":{component:CheckIn,tabTitle:"Check In",anchorTag:"check-in-tab",selectedDefault:!1,parsys:{type:"mh/components/booking/check-in",componentKey:"check-in"},mblBtmBarUrl:"#check-in"},"flight-status":{component:FlightStatus,tabTitle:"Flight Status",anchorTag:"flight-status-tab",selectedDefault:!1,parsys:{type:"mh/components/booking/flight-status",componentKey:"flight-status"},mblBtmBarUrl:"#flight-status"},"flight-schedule":{component:FlightSchedule,tabTitle:"Flight Schedule",anchorTag:"flight-schedule-tab",selectedDefault:!1,parsys:{type:"mh/components/booking/flight-schedule",componentKey:"flight-schedule"},mblBtmBarUrl:"#flight-schedule"},"mh-upgrade":{component:MHupgrade,tabTitle:"MHupgrade",anchorTag:"mh-upgrade-tab",selectedDefault:!1,parsys:{type:"mh/components/booking/mh-upgrade",componentKey:"mh-upgrade"},mblBtmBarUrl:"#mh-upgrade"},"mhe-flight-search":{component:MHEFlightSearch,tabTitle:"MHE Flight Search",anchorTag:"mhe-flight-search-tab",selectedDefault:!1,parsys:{type:"mh/components/mhexplorer/booking/mhe-flight-search",componentKey:"mhe-flight-search"},mblBtmBarUrl:null}},u=computed(()=>e.desktopProperties.map(H=>{if(H.isHideInDesktop)return null;const U=c[H.function];return U?{...U,tabTitle:H.ctaText,composite:getCompositeComponent(U.parsys)}:(console.warn("Couldn't find correct mapping data for ",H),null)}).filter(Boolean)),f=computed(()=>e.mobileProperties.map(H=>H.isHideInMobile?null:{...H}).filter(Boolean)),m=ref$1((j=u.value)==null?void 0:j[0].anchorTag),b=ref$1("book-flight"),y=ref$1(!1),{isEditorMode:_,bookingWidgetSubTab:S}=useGlobalAEMState$1(),C=computed(()=>!!u.value.find(H=>H.anchorTag===d));let T=null;const x=useEventBus("booking-widget");x.on((H,U)=>{switch(H){case"refresh-scroll-trigger":{T==null||T.refresh();break}case"booking-widget-ond-selected":case"sub-tab-selected":{D.replace({hash:"#flight-search"});break}case"close-from-mobile":{b.value="book-flight",M();break}}});const k=async()=>{var J,te,re,oe;if(_.value||!C.value)return;gsapWithCSS.registerPlugin(ScrollTrigger),await sleep(1500);const H=(te=(J=i.value)==null?void 0:J.rootEl)==null?void 0:te.querySelector(".SwitchTabContent"),U=(oe=(re=s.value)==null?void 0:re.rootEl)==null?void 0:oe.querySelector(".SwitchTabContent");let B=document.activeElement;const L=new ResizeObserver(X=>{var se;B=document.activeElement;for(const le of X)le.borderBoxSize[0].blockSize,T==null||T.refresh(),z==null||z.refresh(),(se=a.value)==null||se.style.setProperty("--pinSpacingHeight",`${H.offsetHeight}px`);nextTick$1().then(()=>{B&&B!==document.body&&B.focus()})});L.observe(H),T=ScrollTrigger.create({trigger:H,start:"bottom top",toggleClass:"sticked",endTrigger:document.body,pin:!0,pinSpacing:!1,onToggle:X=>{X.isActive?x.emit("sticky:sticked",{rootEl:a,triggerEl:H,scrollTriggerInstance:T,resizeObserver:L}):x.emit("sticky:unsticked",{rootEl:a,triggerEl:H,scrollTriggerInstance:T,resizeObserver:L})}});let z=ScrollTrigger.create({trigger:H,start:"92.5% top",endTrigger:document.body,onToggle:X=>{X.isActive?H.classList.add("pre-stick"):H.classList.remove("pre-stick")}});useEventBus("homepage-transition-in").on((X,se)=>{switch(X){case"animation-complete":{a.value.style.setProperty("--pinSpacingHeight",`${H.offsetHeight}px`),a.value.style.setProperty("--pinSpacingHeight",`${U==null?void 0:U.offsetHeight}px`),z==null||z.refresh(),T.refresh();break}}}),isMobileViewport.value&&T.disable()},E=async()=>{T.kill()};watch(isMobileViewport,(H,U)=>{H?T==null||T.disable():T==null||T.enable()});const w=H=>{pushAA_click([{clickName:H,clickComponentType:"URL",componentName:"BookingWidget",componentID:e.componentIdAA},{name:H,type:"other"}])},D=useRouter$1(),N=async H=>{},F=H=>{b.value=H},V=useEventBus("booking-widget:book-flight");V.on(async(H,U)=>{switch(H){case"active-tab-and-fill-up-form":if(u.value.length>1){const B=i.value,L=s.value;B==null||B.switchTab(U.mainTab),L==null||L.switchTab(U.mainTab)}break;default:console.log(`Unknown event: ${H}. Ignore it.`);break}});const A=()=>{var U,B;const H=(B=(U=i.value)==null?void 0:U.swiperEl)==null?void 0:B.swiperInstance;H&&H.slideTo(0,0)},M=async H=>{var U;await nextTick$1(),(U=i.value)==null||U.switchTab("flight-search-tab"),m.value="book-flight",e.enableGlassDesign&&isMobileViewport.value&&A()},O=ref$1([]),R=computed(()=>{const H=f.value;return O.value=H.map(({urlPath:U,isHideInMobile:B,ctaText:L,...z})=>{const[,W=""]=U.split("#");return{...z,urlPath:W?`#${W}`:"",id:W?`#${W}`:"",label:L}}),O});onMounted(async()=>{const H=document.querySelector(".BookingWidget .tab-swiper");e.enableGlassDesign||H.classList.add("md:hidden"),e.enableGlassDesign&&isMobileViewport.value&&H.classList.add("text-sm","glass-in-mobile")});const I={props:e,emit:n,rootEl:a,switchTabEl:i,switchTabMblEl:s,isFromDestTextClicked:l,FLIGHT_SEARCH_ID:d,TAB_CONTENT_MAPPING:c,tabList:u,mobileListItem:f,activeTabName:m,activeSubTabName:b,isMobileSwiperLocked:y,isEditorMode:_,bookingWidgetSubTab:S,hasFlightSearchAsChild:C,get scrollTriggerInstance(){return T},set scrollTriggerInstance(H){T=H},bookingWidgetBus:x,handleStickyElMounted:k,handleStickyElBeforeUnmount:E,sendTabUpdateAA:w,router:D,handleSwitchTabUpdate:N,handleSubTabUpdate:F,globalBookFlightBus:V,scrollToActiveTab:A,updateView:M,mobileSwiperTabs:O,getMobileTabsPro
1185perties:R,get useGlobalAEMState(){return useGlobalAEMState$1},SwitchTab,FontAwesomeLazy,VueSwiper,get getCompositeComponent(){return getCompositeComponent},get gsap(){return gsapWithCSS},get ScrollTrigger(){return ScrollTrigger},get isMobileViewport(){return isMobileViewport},get sleep(){return sleep},get useEventBus(){return useEventBus},get pushAA_click(){return pushAA_click},get useRouter(){return useRouter$1},CheckIn,FlightHotelSearch,FlightSchedule,FlightSearch,FlightStatus,ManageBooking,MHupgrade,MHEFlightSearch,MobileSubpage};return Object.defineProperty(I,"__isScriptSetup",{enumerable:!1,value:!0}),I}}),_hoisted_1$Y={class:"generic-container"},_hoisted_2$Q={key:0,class:">md:hidden rounded-2xl pt-6 pb-4 shadow-type-a bg-white"},_hoisted_3$r={class:""},_hoisted_4$k={class:"rounded-full bg-primary-blue-base w-12 h-12 text-white"},_hoisted_5$h={class:"font-semibold typo-body-text-3 !leading-tight mt-2 text-$text-color text-center"};function _sfc_render$X(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink");return openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["BookingWidget relative z-50",{"mt-0":e.tabList.length===1,"md:-mt-3 mb-20":e.tabList.length!==1,"glass-design -mt-16":e.props.enableGlassDesign,"-mt-22":!e.props.enableGlassDesign||e.isMobileViewport}]),style:normalizeStyle({"--tab-count":e.tabList.length})},[createVNode(e.SwitchTab,{ref:"switchTabEl",class:"tab-swiper",tabList:e.tabList,tabType:e.props.enableGlassDesign?"liquid-glass-tab":"mh-switch-tab",hideTabs:e.tabList.length===1,useSlotAsContent:!0,updateHashOnSwitch:!1,contentContainerClass:`rounded-6xl lg:rounded-2xl pt-8 pb-14 bg-white ${e.tabList.length===1?"":"shadow-type-a"} ${e.props.enableGlassDesign&&"glass-design"}`,desktopAllowTouchMove:!0,componentNameAA:"BookingWidget",enableGlassDesign:e.props.enableGlassDesign,dataVariant:e.props.enableGlassDesign?"booking-widget":"",onVnodeMounted:e.handleStickyElMounted,onVnodeBeforeUnmount:e.handleStickyElBeforeUnmount,"onUpdate:activeTab":o[0]||(o[0]=s=>e.handleSwitchTabUpdate(s))},createSlots({_:2},[renderList(e.tabList,s=>({name:`content-${s.anchorTag}`,fn:withCtx(()=>[createBaseVNode("div",_hoisted_1$Y,[(openBlock(),createBlock(resolveDynamicComponent(s.composite.vNode),mergeProps(s.composite.vNodeProps,{isInBookingWidget:!0,togglePointsApiURL:e.props.togglePointsApiURL,mobileSwiperTabs:e.getMobileTabsProperties,"onUpdate:activeSubTab":e.handleSubTabUpdate}),null,16,["togglePointsApiURL","mobileSwiperTabs"]))])])}))]),1032,["tabList","tabType","hideTabs","contentContainerClass","enableGlassDesign","dataVariant"]),e.props.enableGlassDesign?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_2$Q,[createBaseVNode("div",_hoisted_3$r,[createVNode(e.VueSwiper,{class:normalizeClass(["mobile-swiper",e.isMobileSwiperLocked?"is-locked":""]),slidesPerView:"auto",spaceBetween:16,variant:"slides-auto-width",scrollbar:{draggable:!0,hide:!1},observer:!0,observeParents:!0,onLock:o[1]||(o[1]=s=>e.isMobileSwiperLocked=!0),onUnlock:o[2]||(o[2]=s=>e.isMobileSwiperLocked=!1)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.mobileListItem,s=>(openBlock(),createBlock(i,{key:s.urlPath,class:"mobile-item flex-col w-22",href:s.urlPath},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$k,[s.iconType==="icon-font-awesome-id"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,class:"mx-3 fill-current flex items-center h-full",iconId:s.iconId,role:"navigation","aria-label":s.ctaText},null,8,["iconId","aria-label"])):createCommentVNode("",!0)]),createBaseVNode("span",_hoisted_5$h,toDisplayString(s.ctaText),1)]),_:2},1032,["href"]))),128))]),_:1},8,["class"])])])),o[3]||(o[3]=createBaseVNode("div",{id:"mobile-past-searches-container",class:">md:hidden"},null,-1))],6)}const BookingWidget=_export_sfc(_sfc_main$X,[["render",_sfc_render$X],["__scopeId","data-v-96353dd1"],["__file","BookingWidget.vue"]]),BookingWidget$1=Object.freeze(Object.defineProperty({__proto__:null,default:BookingWidget},Symbol.toStringTag,{value:"Module"})),__default__$V={name:"TextComponent",editConfig:{emptyLabel:"Text Component",isEmpty(t){return!t.text}},expose:[],inheritAttrs:!1},_sfc_main$W=Object.assign(__default__$V,{props:{text:{type:String,default:""},mobileText:{type:String,default:""},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=computed(()=>purify.sanitize(e.text)),i=computed(()=>purify.sanitize(e.mobileText)),s={props:e,emit:n,textDesktopSanitized:a,textMobileSanitized:i,get DOMPurify(){return purify}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$X=["innerHTML"],_hoisted_2$P=["innerHTML"];function _sfc_render$W(t,o,r,e,n,a){return openBlock(),createElementBlock(Fragment,null,[!e.props.isHideInDesktop&&e.textDesktopSanitized?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["TextComponent overflow-x-clip author-html-container is-desktop",e.textMobileSanitized?"md:hidden":""]),"data-rte-editelement":"",innerHTML:e.textDesktopSanitized},null,10,_hoisted_1$X)):createCommentVNode("",!0),!e.props.isHideInMobile&&e.textMobileSanitized?(openBlock(),createElementBlock("div",{key:1,class:"TextComponent overflow-x-clip author-html-container is-mobile >md:hidden","data-rte-editelement":"",innerHTML:e.textMobileSanitized},null,8,_hoisted_2$P)):createCommentVNode("",!0)],64)}const TextComponent=_export_sfc(_sfc_main$W,[["render",_sfc_render$W],["__file","TextComponent.vue"]]),TextComponent$1=Object.freeze(Object.defineProperty({__proto__:null,default:TextComponent},Symbol.toStringTag,{value:"Module"})),__default__$U={name:"EmptyGap",editConfig:{emptyLabel:"Empty Gap",isEmpty(t){const o=parseInt(t.de
1185sktopVerticalGap);return!t.desktopVerticalGap&&!t.mobileVerticalGap||o<=23}},expose:[],inheritAttrs:!1},_sfc_main$V=Object.assign(__default__$U,{props:{desktopVerticalGap:{type:String,default:"0"},mobileVerticalGap:{type:String,default:"0"},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1}},setup(t,{expose:o}){o();const r=t,{isEditorMode:e}=useGlobalAEMState$1(),n={props:r,isEditorMode:e,get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$W={key:0,class:"line-vertical arrow-up arrow-down"},_hoisted_2$O={class:"author-label"},_hoisted_3$q={key:0,class:"line-vertical arrow-up arrow-down"},_hoisted_4$j={class:"author-label"},_hoisted_5$g={key:2,class:"generic-container py-10 text-center"},_hoisted_6$f={key:0},_hoisted_7$f={key:1};function _sfc_render$V(t,o,r,e,n,a){return openBlock(),createElementBlock(Fragment,null,[e.props.isHideInDesktop?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:"md:hidden",style:normalizeStyle({height:`${e.props.desktopVerticalGap}px`})},[e.isEditorMode&&parseInt(e.props.desktopVerticalGap)>0?(openBlock(),createElementBlock("div",_hoisted_1$W,[createBaseVNode("div",_hoisted_2$O,"Empty Gap: "+toDisplayString(e.props.desktopVerticalGap)+"px",1)])):createCommentVNode("",!0)],4)),e.props.isHideInMobile?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:">md:hidden",style:normalizeStyle({height:`${e.props.mobileVerticalGap}px`})},[e.isEditorMode&&parseInt(e.props.mobileVerticalGap)>0?(openBlock(),createElementBlock("div",_hoisted_3$q,[createBaseVNode("div",_hoisted_4$j,"Empty Gap: "+toDisplayString(e.props.mobileVerticalGap)+"px",1)])):createCommentVNode("",!0)],4)),e.isEditorMode&&e.props.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_5$g,[createBaseVNode("p",null,[o[0]||(o[0]=createTextVNode("Hidden in: ")),e.props.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_6$f,"Desktop")):createCommentVNode("",!0),e.props.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_7$f,", Mobile")):createCommentVNode("",!0)])])):createCommentVNode("",!0)],64)}const EmptyGap=_export_sfc(_sfc_main$V,[["render",_sfc_render$V],["__scopeId","data-v-75b2de34"],["__file","EmptyGap.vue"]]),EmptyGap$1=Object.freeze(Object.defineProperty({__proto__:null,default:EmptyGap},Symbol.toStringTag,{value:"Module"})),__default__$T={name:"CookiesNotification",editConfig:{emptyLabel:"Cookies Notification",isEmpty(t){return!0}},inheritAttrs:!1},_sfc_main$U=Object.assign(__default__$T,{props:{cookie:{type:Object,default:()=>({})},detailedCookie:{type:Object,default:()=>({})},cookiesNotificationAPIURL:{type:String,default:""},cookiesNotificationMAGAPIURL:{type:String,default:""},cookiesNotificationMHHAPIURL:{type:String,default:""},cookiesNotificationFireflyAPIURL:{type:String,default:""},cookiesNotificationAmalAPIURL:{type:String,default:""},cookiesNotificationEnrichAPIURL:{type:String,default:""},cookiesNotificationMasKargoAPIURL:{type:String,default:""},cookiesNotificationMABAAPIURL:{type:String,default:""},cookiesNotificationADSAPIURL:{type:String,default:""},cookiesNotificationMABESAPIURL:{type:String,default:""}},setup(t,{expose:o}){o();const{isEditorMode:r}=useGlobalAEMState$1(),e=t,n=ref$1(!1),a=ref$1(!0),i=ref$1(e.detailedCookie.isPreferencesCookiesToggleOn),s=ref$1(e.detailedCookie.isStatisticsCookiesToggleOn),l=ref$1(e.detailedCookie.isMarketingCookiesToggleOn),d=ref$1(!1),{adobeAnalyticJsUrl:c,persistency:u,isEnabledCookiePreferences:f,isEnabledCookieStatistics:m,isEnabledCookieMarketing:b,initAdobeAnalytic:y}=useGlobalCookieSettings(),_=window.siteName,S={MH:e.cookiesNotificationAPIURL,MAG:e.cookiesNotificationMAGAPIURL,MHH:e.cookiesNotificationMHHAPIURL,firefly:e.cookiesNotificationFireflyAPIURL,amal:e.cookiesNotificationAmalAPIURL,maskargo:e.cookiesNotificationMasKargoAPIURL,MABA:e.cookiesNotificationMABAAPIURL,ADS:e.cookiesNotificationADSAPIURL,MABES:e.cookiesNotificationMABESAPIURL,"enrich-portal":e.cookiesNotificationEnrichAPIURL};c.value=S[_]||"";const{writeLocalStorage:C}=usePersistencyWithExpiry("cookies-notification:settings-decided",{expiryDuration:7776e6,refs:{hasUserDecidedSettings:n}}),T=N=>{n.value=!0,N&&(i.value=!e.detailedCookie.isPreferencesCookiesHide,s.value=!e.detailedCookie.isStatisticsCookiesHide,l.value=!e.detailedCookie.isMarketingCookiesHide),C({hasUserDecidedSettings:n.value}),f.value=e.detailedCookie.isPreferencesCookiesHide?!1:i.value,m.value=e.detailedCookie.isStatisticsCookiesHide?!1:s.value,b.value=e.detailedCookie.isMarketingCookiesHide?!1:l.value,u.writeLocalStorage({...e.detailedCookie.isPreferencesCookiesHide?{isEnabledCookiePreferences:!1}:{isEnabledCookiePreferences:i.value},...e.detailedCookie.isMarketingCookiesHide?{isEnabledCookieMarketing:!1}:{isEnabledCookieMarketing:l.value},...e.detailedCookie.isStatisticsCookiesHide?{isEnabledCookieStatistics:!1}:{isEnabledCookieStatistics:s.value}}),s.value&&k(),x()},x=async()=>{window._satellite||await waitFor(()=>window._satellite).start(),_satellite.track("adobe-consent")},k=async()=>{const{isAuthStateReady:N}=_==="firefly"?useFireflyAuthStore():useAuthStore();N.value||await waitFor(()=>!!N.value).start(),sendPageView()},E=computed(()=>Object.keys(e.cookie).length===0),w=(N,F,V,A)=>{pushAA_click([{clickName:`${N}${F?"On":"Off"}`,clickComponentType:"Toogle",componentName:V,componentID:A},{name:N,type:"other"}])};onMounted(()=>{i.value=f.value===null?e.detailedCookie.isPreferencesCookiesToggleOn:!1,s.value=m.value===null?e.detailedCookie.isStatisticsCookiesToggleOn:!1,l.value=b.value===null?e.detailedCookie.isMarketingCookiesToggleOn:!1,y()});const D={isEditorMode:r,props:e,hasUserDecidedSettings:n,isEnabledCookiePerformanceModel:a,isEnabledCookiePreferencesModel:i,isEnabledCookieStatisticsModel:s,isEnabledCookieMarketingModel:l,isCustomiseCookies:d,adobeAnalyticJsUrl:c,persistency:u,isEnabledCookiePreferences:f,isEnabledCookieStatistics:m,isEnabledCookieMarketing:b,initAdobeAnalytic:y,siteName:_,apiUrlMap:S,writeLocalStorage:C,saveCookiesPersistent:T,attemptToRunAdobeConsent:x,attemptToSendPageView:k,isCookieConfigEmpty:E,onToggleChange:w,OverlayBtmSticky,CTAButton,ToggleSwitch,get isMobileViewport(){return isMobileViewport},get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get useGlobalCookieSettings(){return useGlobalCookieSettings},get useGlobalAEMState(){return useGlobalAEMState$1},get sendPageView(){return sendPageView},get useAuthStore(){return useAuthStore},get waitFor(){return waitFor},get useFireflyAuthStore(){return useFireflyAuthStore},get pushAA_click(){return pushAA_click}
1185};return Object.defineProperty(D,"__isScriptSetup",{enumerable:!1,value:!0}),D}}),_hoisted_1$V={key:0,class:"CookiesNotification"},_hoisted_2$N={class:"cookies-notification-wrapper"},_hoisted_3$p={class:"generic-container cookie-generic-container"},_hoisted_4$i={class:"cookie-title"},_hoisted_5$f={class:"cookie-description mt-4"},_hoisted_6$e={class:"cookie-details-section flex flex-col"},_hoisted_7$e={class:"performance-cookies"},_hoisted_8$e={class:"flex flex-col rtl:mr-4"},_hoisted_9$c={class:"flex flex-wrap gap-x-6 gap-y-2"},_hoisted_10$6={class:"cookie-switch-badge text-white uppercase px-2 py-1 rounded flex items-center"},_hoisted_11$6={class:"text-xs md:text-[10px]"},_hoisted_12$5={key:0,class:"mt-2 font-light"},_hoisted_13$5={key:0,class:"preferences-cookies"},_hoisted_14$5={class:"flex flex-col rtl:mr-4"},_hoisted_15$4={class:"flex gap-6"},_hoisted_16$4={key:0,class:"mt-2 font-light"},_hoisted_17$4={key:1,class:"statistics-cookies"},_hoisted_18$4={class:"flex flex-col rtl:mr-4"},_hoisted_19$4={class:"flex gap-6"},_hoisted_20$4={key:0,class:"mt-2 font-light"},_hoisted_21$4={key:2,class:"marketing-cookies"},_hoisted_22$3={class:"flex flex-col rtl:mr-4"},_hoisted_23$3={class:"flex gap-6"},_hoisted_24$3={key:0,class:"mt-2 font-light"},_hoisted_25$3={key:0,class:"cookies-notification-bottom >md:px-2"},_hoisted_26$3={class:"cta-wrapper generic-container flex md:flex-col-reverse >md:items-center justify-end gap-x-8 md:gap-y-4"};function _sfc_render$U(t,o,r,e,n,a){const i=resolveDirective("html-sanitize"),s=resolveDirective("aa");return e.isCookieConfigEmpty?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_1$V,[createVNode(e.OverlayBtmSticky,{isVisible:!e.hasUserDecidedSettings&&!e.isEditorMode,overlayWrapperAttrs:{class:e.isCustomiseCookies?"CookiesNotificationOverlayWrapper":""},overlayContainerAttrs:{class:!e.isCustomiseCookies&&(e.siteName==="MHH"||e.siteName==="firefly")?"!pb-6":""},overlayContentAttrs:{class:e.isCustomiseCookies&&(e.siteName==="MHH"||e.siteName==="firefly")?"md:mr-3.5 mr-5":"mb-0 pb-2"},class:"CookiesNotificationBtmOverlaySticky",backdropClosable:!1,"data-use-theme":e.siteName,enableFocusTrap:e.siteName!=="firefly"&&e.siteName!=="MHH"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$N,[createBaseVNode("div",_hoisted_3$p,[createBaseVNode("h5",_hoisted_4$i,toDisplayString(e.props.cookie.cookieSettingsTitle),1),withDirectives(createBaseVNode("p",_hoisted_5$f,null,512),[[i,e.props.cookie.cookieSettingsDescription]]),createBaseVNode("div",{class:normalizeClass(["cooking-settings md:flex-col-reverse",{flex:!e.isCustomiseCookies,"!mt-8":e.isCustomiseCookies&&(e.siteName==="MHH"||e.siteName==="firefly")}])},[e.isCustomiseCookies?createCommentVNode("",!0):(openBlock(),createBlock(e.CTAButton,{key:0,ctaText:e.props.cookie.customiseCookiesButtonLabel,sizeType:e.isMobileViewport||e.siteName==="MHH"||e.siteName==="firefly"?"small":"large",ctaSizing:e.isMobileViewport?"fluid":"auto",alignmentDesktop:"right",containerClass:"customise-cookies-cta font-semibold",styleType:"secondary",verticalSpacing:e.isMobileViewport?5:0,onClick:o[0]||(o[0]=l=>{e.isCustomiseCookies=!0})},null,8,["ctaText","sizeType","ctaSizing","verticalSpacing"])),createVNode(e.CTAButton,{ctaText:e.props.cookie.acceptAllCookiesButtonLabel,sizeType:e.isMobileViewport||e.siteName==="MHH"||e.siteName==="firefly"?"small":"large",ctaSizing:e.isMobileViewport||e.siteName==="MHH"||e.siteName==="firefly"?"fluid":"auto",alignmentDesktop:"right",containerClass:"cookie-accept-all-cta font-semibold",onClick:o[1]||(o[1]=l=>e.saveCookiesPersistent(!0))},null,8,["ctaText","sizeType","ctaSizing"])],2),e.isCustomiseCookies?(openBlock(),createElementBlock(Fragment,{key:0},[o[12]||(o[12]=createBaseVNode("div",{class:"divider"},null,-1)),createBaseVNode("div",_hoisted_6$e,[createBaseVNode("div",_hoisted_7$e,[createVNode(e.ToggleSwitch,{modelValue:e.isEnabledCookiePerformanceModel,"onUpdate:modelValue":o[2]||(o[2]=l=>e.isEnabledCookiePerformanceModel=l),name:"performanceCookies",disabled:!0,ariaLabel:e.props.detailedCookie.performanceCookiesTitle,rootAttrs:{class:"required-consent"},onChange:o[3]||(o[3]=l=>e.onToggleChange("performanceCookies",e.isEnabledCookiePerformanceModel,"CookiesNotification",""))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_8$e,[createBaseVNode("div",_hoisted_9$c,[createBaseVNode("div",null,toDisplayString(e.props.detailedCookie.performanceCookiesTitle),1),createBaseVNode("div",_hoisted_10$6,[createBaseVNode("span",_hoisted_11$6,toDisplayString(e.props.detailedCookie.performanceCookiesAlwaysActiveTagLabel),
11851)])]),e.siteName!=="firefly"&&e.siteName!=="MHH"?(openBlock(),createElementBlock("div",_hoisted_12$5,[createBaseVNode("p",null,toDisplayString(e.props.detailedCookie.performanceCookiesDescription),1)])):createCommentVNode("",!0)])]),_:1},8,["modelValue","ariaLabel"])]),e.props.detailedCookie.isPreferencesCookiesHide?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_13$5,[createVNode(e.ToggleSwitch,{modelValue:e.isEnabledCookiePreferencesModel,"onUpdate:modelValue":o[4]||(o[4]=l=>e.isEnabledCookiePreferencesModel=l),name:"preferenceCookies",ariaLabel:e.props.detailedCookie.preferencesCookiesTitle,onChange:o[5]||(o[5]=l=>e.onToggleChange("preferenceCookies",e.isEnabledCookiePreferencesModel,"CookiesNotification",""))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_14$5,[createBaseVNode("div",_hoisted_15$4,[createBaseVNode("div",null,toDisplayString(e.props.detailedCookie.preferencesCookiesTitle),1)]),e.siteName!=="firefly"&&e.siteName!=="MHH"?(openBlock(),createElementBlock("div",_hoisted_16$4,[createBaseVNode("p",null,toDisplayString(e.props.detailedCookie.preferencesCookiesDescription),1)])):createCommentVNode("",!0)])]),_:1},8,["modelValue","ariaLabel"])])),e.props.detailedCookie.isStatisticsCookiesHide?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_17$4,[createVNode(e.ToggleSwitch,{modelValue:e.isEnabledCookieStatisticsModel,"onUpdate:modelValue":o[6]||(o[6]=l=>e.isEnabledCookieStatisticsModel=l),name:"statisticsCookies",ariaLabel:e.props.detailedCookie.statisticsCookiesTitle,onChange:o[7]||(o[7]=l=>e.onToggleChange("statisticsCookies",e.isEnabledCookieStatisticsModel,"CookiesNotification",""))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_18$4,[createBaseVNode("div",_hoisted_19$4,[createBaseVNode("div",null,toDisplayString(e.props.detailedCookie.statisticsCookiesTitle),1)]),e.siteName!=="firefly"&&e.siteName!=="MHH"?(openBlock(),createElementBlock("div",_hoisted_20$4,[createBaseVNode("p",null,toDisplayString(e.props.detailedCookie.statisticsCookiesDescription),1)])):createCommentVNode("",!0)])]),_:1},8,["modelValue","ariaLabel"])])),e.props.detailedCookie.isMarketingCookiesHide?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_21$4,[withDirectives((openBlock(),createBlock(e.ToggleSwitch,{modelValue:e.isEnabledCookieMarketingModel,"onUpdate:modelValue":o[8]||(o[8]=l=>e.isEnabledCookieMarketingModel=l),name:"marketingCookies",ariaLabel:e.props.detailedCookie.marketingCookiesTitle,onChange:o[9]||(o[9]=l=>e.onToggleChange("marketingCookies",e.isEnabledCookieMarketingModel,"CookiesNotification",""))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_22$3,[createBaseVNode("div",_hoisted_23$3,[createBaseVNode("div",null,toDisplayString(e.props.detailedCookie.marketingCookiesTitle),1)]),e.siteName!=="firefly"&&e.siteName!=="MHH"?(openBlock(),createElementBlock("div",_hoisted_24$3,[createBaseVNode("p",null,toDisplayString(e.props.detailedCookie.marketingCookiesDescription),1)])):createCommentVNode("",!0)])]),_:1},8,["modelValue","ariaLabel"])),[[s,[{clickName:"marketingCookies",clickComponentType:"Toogle",componentName:"CookiesNotification",componentID:""},{name:"marketingCookies",type:"other"}]]])]))])],64)):createCommentVNode("",!0)]),e.isCustomiseCookies?(openBlock(),createElementBlock("div",_hoisted_25$3,[createBaseVNode("div",_hoisted_26$3,[createVNode(e.CTAButton,{ctaText:e.props.detailedCookie.hideCookiesPreferenceButtonLabel,sizeType:e.isMobileViewport||e.siteName==="MHH"||e.siteName==="firefly"?"small":"large",ctaSizing:e.isMobileViewport?"fluid":"auto",styleType:"text-primary",containerClass:"hideCookiesPreferenceBtn",onClick:o[10]||(o[10]=l=>e.isCustomiseCookies=!1)},null,8,["ctaText","sizeType","ctaSizing"]),createVNode(e.CTAButton,{ctaText:e.props.detailedCookie.savePreferenceButtonLabel,sizeType:e.isMobileViewport||e.siteName==="MHH"||e.siteName==="firefly"?"small":"large",ctaSizing:e.isMobileViewport?"fluid":"auto",containerClass:"font-semibold",onClick:o[11]||(o[11]=l=>e.saveCookiesPersistent(!1))},null,8,["ctaText","sizeType","ctaSizing"])])])):createCommentVNode("",!0)])]),_:1},8,["isVisible","overlayWrapperAttrs","overlayContainerAttrs","overlayContentAttrs","data-use-theme","enableFocusTrap"])]))}const CookiesNotification=_export_sfc(_sfc_main$U,[["render",_sfc_render$U],["__scopeId","data-v-2023ef5c"],["__file","CookiesNotification.vue"]]),CookiesNotification$1=Object.freeze(Object.defineProperty({__proto__:null,default:CookiesNotification},Symbol.toStringTag,{value:"Module"})),__default__$S={name:"ColumnControl",editConfig:{emptyLabel:"Column Control",isEmpty(t){return!t.columnControlType}},inheritAttrs:!1},_sfc_main$T=Object.assign(__default__$S,{props:{columnControlType:{type:String,default:"variant-1"},enableGutter:{type:Boolean,default:!1},isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},mobileVariation:{type:String,default:""}},setup(t,{expose:o}){o();const{isEditorMode:r}=useGlobalAEMState$1(),e=t,n=computed(()=>{let s=2;switch(e.columnControlType){case"variant-4":case"variant-5":s=3;break;case"variant-6":s=4;break;default:s=2;break}return Array(s).fill().map((l,d)=>({component:getCompositeComponent({type:"mh/components/mh-layout-container",componentKey:`mh-layout-container-parsys-${d}`})}))}),a=computed(()=>{switch(e.columnControlType){case"variant-1":return"column-variant-1";case"variant-2":return"column-variant-2";case"variant-3":return"column-variant-3";case"variant-4":return"column-variant-4";case"variant-5":return"column-variant-5";case"variant-6":return"column-variant-6"}}),i={isEditorMode:r,props:e,columnParsysComputed:n,variantClassnameComputed:a,get getCompositeComponent(){return getCompositeComponent},Parsys,get isMobileViewport(){return isMobileViewport},get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$U={key:0,class:"generic-container py-5 text-center"},_hoisted_2$M={class:"py-5 bg-primary-blue-base rounded text-neutral-white-base"},_hoisted_3$o={key:0},_hoisted_4$h={key:1},_hoisted_5$e={key:0,class:"ColumnControl"};function _sfc_render$T(t,o,r,e,n,a){return e.isEditorMode&&e.props.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_1$U,[createBaseVNode("div",_hoisted_2$M,[createBaseVNode("p",null,[o[0]||(o[0]=createTextVNode("Hidden in: ")),e.props.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_3$o,"Desktop")):createCommentVNode("",!0),o[1]||(o[1]=createTextVNode()),e.props.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_4$h,", Mobile")):createCommentVNode("",!0)])])])):(openBlock(),createElementBlock(Fragment,{key:1},[e.isMobileViewport&&!e.props.isHideInMobile||!e.isMobileViewport&&!e.props.isHideInDesktop?(openBlock(),createElementBlock("div",_hoisted_5$e,[createBaseVNode("div",{class:normalizeClass(["flex enrich-columnControl",{"gap-x-6 lg:gap-x-4 gap-y-6 lg:gap-y-4":e.props.enableGutter,"md:flex-col-reverse":e.props.mobileVariation==="stack-reverse","md:flex-col":e.props.mobileVariation==="stack-retain"||e.props.mobileVariation===""}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.columnParsysComputed,(i,s)=>(openBlock(),createElementBlock("div",{key:s,class:normalizeClass(e.variantClassnameComputed)},[(openBlock(),createBlock(e.Parsys,{key:s,index:s,component:i.component,label:`Column control layout #${s}`},null,8,["index","component","label"]))],2))),128))],2)])):createCommentVNode("",!0)],64))}const ColumnControl=_export_sfc(_sfc_main$T,[["render",_sfc_render$T],["__scopeId","data-v-6f59de26"],["__file","ColumnControl.vue"]]),ColumnControl$1=Object.freeze(Object.defineProperty({__proto__:null,default:ColumnControl},Symbol.toStringTag,{value:"Module"})),__default__$R={name:"Divider",editConfig:{emptyLabel:"Divider",isEmpty(t){return!0}},inheritAttrs:!1},_sfc_main$S=Object.assign(__default__$R,{props:{colour:{type:String,default:""},length:{type:String,default:""},desktopTopSpacing:{type:String,default:"0px"},desktopBottomSpacing:{type:String,default:"0px"},mobileTopSpacing:{type:String,default:"0px"},mobileBottomSpacing:{type:String,default:"0px"}},emits:[],setup(t,{expose:o,emit:r}){o();const a={props:t,emit:r,get isMobileViewport(){return isMobileViewport}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}});function _sfc_render$S(t,o,r,e,n,a){return openBlock(),createElementBlock("hr",{style:normalizeStyle({"margin-top":e.isMobileViewport?`${e.props.mobileTopSpacing}`:`${e.props.desktopTopSpacing}`,"margin-bottom":e.isMobileViewport?`${e.props.mobileBottomSpacing}`:`${e.props.desktopBottomSpacing}`,background:`${e.props.colour}`,width:`${e.props.length}`}),class:"Divider"},null,4)}const Divider=_export_sfc(_sfc_main$S,[["render",_sfc_render$S],["__scopeId","data-v-d1c3b320"],["__file","Divider.vue"]]),Divider$1=Object.freeze(Object.defineProperty({__proto__:null,default:Divider},Symbol.toStringTag,{value:"Module"})),__default__$Q={name:"ImageComponent",editConfig:{emptyLabel:"Image Component",isEmpty(t){switch(t.imageType){case"icon":return!t.iconId;case"image":return!t.fileURL;default:return!t.iconId&&!t.fileURL}}},inheritAttrs:!1},_sfc_main$R=Object.assign(__default__$Q,{props:{imageType:{type:String,default:"image"},fileURL:{type:String,default:""},alt:{type:String,default:""},isRoundedEdge:{type:Boolean,default:!1},caption:{type:String,default:""},imgURL:{type:String,default:""},isNewTab:{type:Boolean,default:!1},alignment:{type:String,default:"left"},iconAlignment:{type:String,default:"left"},dimension:{type:String,default:"original"},dimensionWidth:{type:String,default:""},dimensionHeight:{type:String,default:""},iconId:{type:String,default:""},iconStyle:{type:String,default:"regular"},iconColor:{type:String,default:""},componentIdAA:{type:String,default:""},desktopDimensionWidth:{type:String,default:""},desktopDimensionHeight:{type:String,default:""},mobileDimensionWidth:{type:String,default:""},mobileDimensionHeight:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,e=computed(()=>
1185{if(r.dimension=="manual"&&r.imageType=="image"){if(r.dimensionWidth&&r.dimensionHeight)return{width:`${r.dimensionWidth}px`,height:`${r.dimensionHeight}px`};if(!r.dimensionHeight)return{width:`${r.dimensionWidth}px`,height:"auto"}}}),n=computed(()=>{const l=isNaN(r.desktopDimensionWidth)?null:`${r.desktopDimensionWidth}px`,d=isNaN(r.desktopDimensionHeight)?null:`${r.desktopDimensionHeight}px`,c=isNaN(r.mobileDimensionWidth)?null:`${r.mobileDimensionWidth}px`,u=isNaN(r.mobileDimensionHeight)?null:`${r.mobileDimensionHeight}px`;return isMobileViewport.value?{width:c,height:u}:{width:l,height:d}}),a=ref$1({fill:r.iconColor}),i=computed(()=>{const l=r.imageType==="icon"?r.iconAlignment:r.alignment;return{left:"items-start",center:"items-center",right:"items-end"}[l]}),s={props:r,manualDimension:e,iconDimension:n,iconStyle:a,alignmentClass:i,FontAwesomeLazy,get isMobileViewport(){return isMobileViewport},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$T=["src","alt"],_hoisted_2$L=["src","alt"];function _sfc_render$R(t,o,r,e,n,a){const i=resolveComponent("AppHyperlink"),s=resolveDirective("aa");return openBlock(),createElementBlock("div",{class:normalizeClass(["ImageComponent flex flex-col",e.alignmentClass])},[e.props.imageType=="image"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["flex-col overflow-hidden",{"inline-flex":e.props.dimension=="original","flex w-full":e.props.dimension=="snap"}])},[e.props.imgURL?withDirectives((openBlock(),createBlock(i,{key:0,href:e.props.imgURL,target:e.props.isNewTab?"_blank":"_self"},{default:withCtx(()=>[createBaseVNode("img",{src:e.props.fileURL,alt:e.props.alt,class:normalizeClass({"rounded-3xl md:rounded-lg":e.props.isRoundedEdge,"w-full":e.props.dimension=="snap"}),style:normalizeStyle(e.manualDimension)},null,14,_hoisted_1$T)]),_:1},8,["href","target"])),[[s,[{clickName:e.props.alt,clickComponentType:"URL",componentName:"ImageComponent",componentID:e.props.componentIdAA},{name:e.props.alt,type:e.isUrlMatchCurrentHostname(e.props.imgURL)?"other":"exit"}]]]):(openBlock(),createElementBlock("img",{key:1,src:e.props.fileURL,alt:e.props.alt,class:normalizeClass({"rounded-3xl md:rounded-lg":e.props.isRoundedEdge,"w-full":e.props.dimension=="snap"}),style:normalizeStyle(e.manualDimension)},null,14,_hoisted_2$L))],2)):createCommentVNode("",!0),e.props.caption&&e.props.imageType=="image"?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(["text-grey-ultradark font-sm mt-3",{"text-center":e.props.alignment=="center","text-right":e.props.alignment=="right"}])},toDisplayString(e.props.caption),3)):(openBlock(),createBlock(e.FontAwesomeLazy,{key:2,class:"icon w-full",style:normalizeStyle({...e.iconStyle,...e.iconDimension}),iconId:e.props.iconId,iconStyle:e.props.iconStyle},null,8,["style","iconId","iconStyle"]))],2)}const ImageComponent=_export_sfc(_sfc_main$R,[["render",_sfc_render$R],["__scopeId","data-v-0d842f0c"],["__file","ImageComponent.vue"]]),ImageComponent$1=Object.freeze(Object.defineProperty({__proto__:null,default:ImageComponent},Symbol.toStringTag,{value:"Module"})),SYNC_COMPONENTS=["/src/aem-components/PageProperties.vue","/src/aem-components/MobileDownloadAppNotification.vue","/src/aem-components/HeaderNotification.vue","/src/aem-components/AppHeader.vue","/src/aem-components/ExperienceFragment.vue","/src/aem-components/AppFooter.vue","/src/aem-components/FloatingWidget.vue","/src/aem-components/Carousel.vue","/src/aem-components/Banner.vue","/src/aem-components/booking/BookingWidget.vue","/src/aem-components/TextComponent.vue","/src/aem-components/EmptyGap.vue","/src/aem-components/CTAButton.vue","/src/aem-components/CookiesNotification.vue","/src/aem-components/ColumnControl.vue","/src/aem-components/Divider.vue","/src/aem-components/ImageComponent.vue"],doMappingLogic_async=()=>{const t=Object.assign({
1185"/src/aem-components/Accordion.vue":()=>__vitePreload(()=>import("./Accordion-B25opUVe.js"),__vite__mapDeps([0,1,2])),
1185"/src/aem-components/AdminDashboard.vue":()=>__vitePreload(()=>import("./AdminDashboard-BG-30vx5.js"),__vite__mapDeps([3,4])),
1185"/src/aem-components/AnchorNavigation.vue":()=>__vitePreload(()=>import("./AnchorNavigation-BUKBOpx2.js"),__vite__mapDeps([5,6])),
1185"/src/aem-components/AnchorTag.vue":()=>__vitePreload(()=>import("./AnchorTag-CVDIwgXX.js"),__vite__mapDeps([7,8])),
1185"/src/aem-components/AppFooter.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>AppFooter$1),void 0),
1185"/src/aem-components/AppHeader.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>AppHeader$1),void 0),
1185"/src/aem-components/Banner.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>Banner$1),void 0),
1185"/src/aem-components/BookingWidgetUrlQueryGenerator.vue":()=>__vitePreload(()=>import("./BookingWidgetUrlQueryGenerator-D-tq4CmM.js"),__vite__mapDeps([9,10])),
1185"/src/aem-components/CTAButton.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>CTAButton$1),void 0),
1185"/src/aem-components/Campaigns/TourismCampaign.vue":()=>__vitePreload(()=>import("./TourismCampaign-DMruuU2p.js"),__vite__mapDeps([11,12])),
1185"/src/aem-components/Carousel.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>Carousel$1),void 0),
1185"/src/aem-components/ColumnControl.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ColumnControl$1),void 0),
1185"/src/aem-components/ComplainDashboard.vue":()=>__vitePreload(()=>import("./ComplainDashboard-DKwIRAw0.js"),__vite__mapDeps([13,14])),
1185"/src/aem-components/ContactUs/ContactUs.vue":()=>__vitePreload(()=>import("./ContactUs-DkH3TAHT.js"),__vite__mapDeps([15,16,17,18,19,20,21,22,23])),
1185"/src/aem-components/CookiesNotification.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>CookiesNotification$1),void 0),
1185"/src/aem-components/CountdownTimer.vue":()=>__vitePreload(()=>import("./CountdownTimer-Cm-wF5iz.js"),__vite__mapDeps([24,25])),
1185"/src/aem-components/CrossSellTiles.vue":()=>__vitePreload(()=>import("./CrossSellTiles-BaFHyck6.js"),__vite__mapDeps([26,27])),
1185"/src/aem-components/DestinationEssentialDetails.vue":()=>__vitePreload(()=>import("./DestinationEssentialDetails-Cv58LBpi.js"),__vite__mapDeps([28,29,30,31])),
1185"/src/aem-components/DestinationWindow.vue":()=>__vitePreload(()=>import("./DestinationWindow-C3g_XLGk.js"),__vite__mapDeps([32,33])),
1185"/src/aem-components/DestinationsListing.vue":()=>__vitePreload(()=>import("./DestinationsListing-C2Z5NjOA.js"),__vite__mapDeps([34,35])),
1185"/src/aem-components/Divider.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>Divider$1),void 0),
1185"/src/aem-components/EmptyGap.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>EmptyGap$1),void 0),
1185"/src/aem-components/ExperienceFragment.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ExperienceFragment$1),void 0),
1185"/src/aem-components/FloatingExpandableSidebar.vue":()=>__vitePreload(()=>import("./FloatingExpandableSidebar-BwPal4jA.js"),__vite__mapDeps([36,37])),
1185"/src/aem-components/FloatingWidget.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FloatingWidget$1),void 0),
1185"/src/aem-components/Flysiswa/FlysiswaFormV3.vue":()=>__vitePreload(()=>import("./FlysiswaFormV3-BrTeomhc.js"),__vite__mapDeps([38,39,40,41])),
1185"/src/aem-components/FlysiswaForm.vue":()=>__vitePreload(()=>import("./FlysiswaForm-DerhZKP_.js"),__vite__mapDeps([42,39,40,43])),
1185"/src/aem-components/HeaderNotification.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>HeaderNotification$1),void 0),
1185"/src/aem-components/HtmlComponent.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>HtmlComponent$1),void 0),
1185"/src/aem-components/ImageComponent.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ImageComponent$1),void 0),
1185"/src/aem-components/InflightMenu.vue":()=>__vitePreload(()=>import("./InflightMenu-BHJ2emCf.js"),__vite__mapDeps([44,45,46])),
1185"/src/aem-components/JalDataFeed.vue":()=>__vitePreload(()=>import("./JalDataFeed-B4QI7NRq.js"),__vite__mapDeps([47,1,48])),
1185"/src/aem-components/LowFareDestinationTiles.vue":()=>__vitePreload(()=>import("./LowFareDestinationTiles-DRlk6CqO.js"),__vite__mapDeps([49,50])),
1185"/src/aem-components/MAG-business-cards/BusinessCard.vue":()=>__vitePreload(()=>import("./BusinessCard-CIigxqCv.js"),__vite__mapDeps([51,52])),
1185"/src/aem-components/MAGBrandsCarousel.vue":()=>__vitePreload(()=>import("./MAGBrandsCarousel-BAw2WrJP.js"),__vite__mapDeps([53,54])),
1185"/src/aem-components/MAGDownloadTiles.vue":()=>__vitePreload(()=>import("./MAGDownloadTiles-BhSFfFFk.js"),__vite__mapDeps([55,56])),
1185"/src/aem-components/MAGFooter.vue":()=>__vitePreload(()=>import("./MAGFooter-C5yNmefD.js"),__vite__mapDeps([57,58,59,60])),
1185"/src/aem-components/MAGHeader.vue":()=>__vitePreload(()=>import("./MAGHeader-CS7dRmBc.js"),__vite__mapDeps([61,58,59,62])),
1185"/src/aem-components/MHBreadcrumb.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>MHBreadcrumb$1),void 0),
1185"/src/aem-components/MHTable.vue":()=>__vitePreload(()=>import("./MHTable-Cv5iMyBz.js"),__vite__mapDeps([63,64])),
1185"/src/aem-components/MHVideo.vue":()=>__vitePreload(()=>import("./MHVideo-i3UgLEz3.js"),__vite__mapDeps([65,66,67,68])),
1185"/src/aem-components/MediaCentreListing.vue":()=>__vitePreload(()=>import("./MediaCentreListing-BexwCVQn.js"),__vite__mapDeps([69,70,71,72])),
1185"/src/aem-components/MediaCentreSearch.vue":()=>__vitePreload(()=>import("./MediaCentreSearch-BWNWqTJG.js"),__vite__mapDeps([73,74,70,71,75])),
1185"/src/aem-components/MobileDownloadAppNotification.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>MobileDownloadAppNotification$1),void 0),
1185"/src/aem-components/MovieReelsAndSearch.vue":()=>__vitePreload(()=>import("./MovieReelsAndSearch-CdsHuudD.js"),__vite__mapDeps([76,77,65,66,67,68,78,79,80,81,82])),
1185"/src/aem-components/MovieSearchResults.vue":()=>__vitePreload(()=>import("./MovieSearchResults-BmVKbJSP.js"),__vite__mapDeps([83,80,81,77,65,66,67,68,78,79,84])),
1185"/src/aem-components/NavigationTiles.vue":()=>__vitePreload(()=>import("./NavigationTiles-Y8pd1s7_.js"),__vite__mapDeps([85,86])),
1185"/src/aem-components/NewsletterSignUp.vue":()=>__vitePreload(()=>import("./NewsletterSignUp-COaRheRM.js"),__vite__mapDeps([87,45,88])),
1185"/src/aem-components/PageProperties.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>PageProperties$1),void 0),
1185"/src/aem-components/PeekFunction.vue":()=>__vitePreload(()=>import("./PeekFunction-YB5_SVH_.js"),__vite__mapDeps([89,90])),
1185"/src/aem-components/PlanYourTripTiles.vue":()=>__vitePreload(()=>import("./PlanYourTripTiles-Db1vudah.js"),__vite__mapDeps([91,92])),
1185"/src/aem-components/PromoListing.vue":()=>__vitePreload(()=>import("./PromoListing-B-hJfnW8.js"),__vite__mapDeps([93,94])),
1185"/src/aem-components/ScriptExecutor.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ScriptExecutor$1),void 0),
1185"/src/aem-components/SearchResults.vue":()=>__vitePreload(()=>import("./SearchResults-DMhvZHyR.js"),__vite__mapDeps([95,74,96])),
1185"/src/aem-components/ShowMore.vue":()=>__vitePreload(()=>import("./ShowMore-xE4B3UQT.js"),__vite__mapDeps([97,98])),
1185"/src/aem-components/Steps.vue":()=>__vitePreload(()=>import("./Steps-BO4maSlB.js"),__vite__mapDeps([99,100])),
1185"/src/aem-components/SwitchTab.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>SwitchTab$1),void 0),
1185"/src/aem-components/TextComponent.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>TextComponent$1),void 0),
1185"/src/aem-components/TravelConfirmationLetter.vue":()=>__vitePreload(()=>import("./TravelConfirmationLetter-LkUq1Tpp.js"),__vite__mapDeps([101,45,30,102])),
1185"/src/aem-components/TravelRegulationsOrAdvisory.vue":()=>__vitePreload(()=>import("./TravelRegulationsOrAdvisory-kWrq2md3.js"),__vite__mapDeps([103,104])),
1185"/src/aem-components/USP.vue":()=>__vitePreload(()=>import("./USP-B02C_efW.js"),__vite__mapDeps([105,106])),
1185"/src/aem-components/VoucherTile.vue":()=>__vitePreload(()=>import("./VoucherTile-CuJ-IsYS.js"),__vite__mapDeps([107,108])),
1185"/src/aem-components/ads/ADSFooter.vue":()=>__vitePreload(()=>import("./ADSFooter-Bo_C2Uhe.js"),__vite__mapDeps([109,110])),
1185"/src/aem-components/ads/ADSHeader.vue":()=>__vitePreload(()=>import("./ADSHeader-BcGZi1ej.js"),__vite__mapDeps([111,112])),
1185"/src/aem-components/amal/AmalCategoryTiles.vue":()=>__vitePreload(()=>import("./AmalCategoryTiles-Bl0WQS8x.js"),__vite__mapDeps([113,114])),
1185"/src/aem-components/amal/AmalEduIslamTab.vue":()=>__vitePreload(()=>import("./AmalEduIslamTab-BS_rgdWa.js"),__vite__mapDeps([115,66,67,78,18,80,81,116,117])),
1185"/src/aem-components/amal/AmalFavourite.vue":()=>__vitePreload(()=>import("./AmalFavourite-ApTVKGZQ.js"),__vite__mapDeps([118,119,120,121,122,116,123])),
1185"/src/aem-components/amal/AmalFooter.vue":()=>__vitePreload(()=>import("./AmalFooter-jhhYpnNG.js"),__vite__mapDeps([124,125])),
1185"/src/aem-components/amal/AmalHeader.vue":()=>__vitePreload(()=>import("./AmalHeader-CmGp5k3y.js"),__vite__mapDeps([126,116,127])),
1185"/src/aem-components/amal/AmalLocationFeatureTiles.vue":()=>__vitePreload(()=>import("./AmalLocationFeatureTiles-CV_X7V6a.js"),__vite__mapDeps([128,129])),
1185"/src/aem-components/amal/AmalLocationListing.vue":()=>__vitePreload(()=>import("./AmalLocationListing-DA3Hdi0N.js"),__vite__mapDeps([130,120,80,81,131,132,21,22,1,116,133])),
1185"/src/aem-components/amal/AmalLocationTiles.vue":()=>__vitePreload(()=>import("./AmalLocationTiles-BPpTXqjS.js"),__vite__mapDeps([134,135])),
1185"/src/aem-components/amal/AmalMallTiles.vue":()=>__vitePreload(()=>import("./AmalMallTiles-Dw3gl3tk.js"),__vite__mapDeps([136,137])),
1185"/src/aem-components/amal/AmalOrganizationEduIslamTiles.vue":()=>__vitePreload(()=>import("./AmalOrganizationEduIslamTiles-EhmURGyD.js"),__vite__mapDeps([138,80,81,139])),
1185"/src/aem-components/amal/AmalPrayerTile.vue":()=>__vitePreload(()=>import("./AmalPrayerTile-BF_IPTmr.js"),__vite__mapDeps([140,119,120,121,122,131,132,116,141])),
1185"/src/aem-components/amal/AmalPrayersListing.vue":()=>__vitePreload(()=>import("./AmalPrayersListing-Ji0lmtUo.js"),__vite__mapDeps([142,143])),
1185"/src/aem-components/amal/AmalQuote.vue":()=>__vitePreload(()=>import("./AmalQuote-BRhE731C.js"),__vite__mapDeps([144,145])),
1185"/src/aem-components/amal/AmalSavedList.vue":()=>__vitePreload(()=>import("./AmalSavedList-_ZdQSROg.js"),__vite__mapDeps([146,21,22,121,122,116,147])),
1185"/src/aem-components/amal/AmalUspIcon.vue":()=>__vitePreload(()=>import("./AmalUspIcon-BDWYq2A_.js"),__vite__mapDeps([148,149])),
1185"/src/aem-components/amal/booking/AmalBookingWidget.vue":()=>__vitePreload(()=>import("./AmalBookingWidget-CqqNsXsC.js"),__vite__mapDeps([150,151,116,152,153,154,155,156,157,158,159])),
1185"/src/aem-components/amal/booking/AmalFlightHotelSearch.vue":()=>__vitePreload(()=>import("./AmalFlightHotelSearch-Bu0G5fme.js"),__vite__mapDeps([153,154])),
1185"/src/aem-components/amal/booking/AmalFlightSchedule.vue":()=>__vitePreload(()=>import("./AmalFlightSchedule-BAn4jxyr.js"),[]),
1185"/src/aem-components/amal/booking/AmalFlightSearch.vue":()=>__vitePreload(()=>import("./AmalFlightSearch-bMdBSSwe.js"),__vite__mapDeps([151,116,152])),
1185"/src/aem-components/amal/booking/AmalFlightStatus.vue":()=>__vitePreload(()=>import("./AmalFlightStatus-B4rCmePv.js"),[]),
1185"/src/aem-components/amal/booking/AmalUmrahPackages.vue":()=>__vitePreload(()=>import("./AmalUmrahPackages-Dp1jGV01.js"),__vite__mapDeps([156,157])),
1185"/src/aem-components/booking/BookingWidget.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>BookingWidget$1),void 0),
1185"/src/aem-components/booking/CheckIn.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>CheckIn$1),void 0),
1185"/src/aem-components/booking/EnrichFlypassFlightSearch.vue":()=>__vitePreload(()=>import("./EnrichFlypassFlightSearch-BvWmpjyS.js"),__vite__mapDeps([160,1,161])),
1185"/src/aem-components/booking/FlightDisruption.vue":()=>__vitePreload(()=>import("./FlightDisruption-BBlzDzfW.js"),__vite__mapDeps([162,163])),
1185"/src/aem-components/booking/FlightHotelSearch.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FlightHotelSearch$1),void 0),
1185"/src/aem-components/booking/FlightSchedule.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FlightSchedule$1),void 0),
1185"/src/aem-components/booking/FlightSearch.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FlightSearch$1),void 0),
1185"/src/aem-components/booking/FlightStatus.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FlightStatus$1),void 0),
1185"/src/aem-components/booking/MHupgrade.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>MHupgrade$1),void 0),
1185"/src/aem-components/booking/ManageBooking.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ManageBooking$1),void 0),
1185"/src/aem-components/booking/booking-widget-glass-design/FlightSearchMultiCity.vue":()=>__vitePreload(()=>import("./FlightSearchMultiCity-BXxesA40.js"),[]),
1185"/src/aem-components/booking/booking-widget-glass-design/RedeemFlightSearch.vue":()=>__vitePreload(()=>import("./RedeemFlightSearch-DfDsF0Jl.js"),[]),
1185"/src/aem-components/enrich-portal/EnrichAccountSettings.vue":()=>__vitePreload(()=>import("./EnrichAccountSettings-BiezPiAv.js"),__vite__mapDeps([164,165,166,167,168])),
1185"/src/aem-components/enrich-portal/EnrichBreadcrumb.vue":()=>__vitePreload(()=>import("./EnrichBreadcrumb-BV1Yj27q.js"),__vite__mapDeps([169,170])),
1185"/src/aem-components/enrich-portal/EnrichBuyEnrichPointsFormOverlay.vue":()=>__vitePreload(()=>import("./EnrichBuyEnrichPointsFormOverlay-Bs2gYtPk.js"),__vite__mapDeps([171,172])),
1185"/src/aem-components/enrich-portal/EnrichCard.vue":()=>__vitePreload(()=>import("./EnrichCard-T9iMCFai.js"),__vite__mapDeps([173,174,175,166,165,167,176])),
1185"/src/aem-components/enrich-portal/EnrichCarouselTiles.vue":()=>__vitePreload(()=>import("./EnrichCarouselTiles-BkbgBYQY.js"),__vite__mapDeps([177,178])),
1185"/src/aem-components/enrich-portal/EnrichClaimMissingPoints.vue":()=>__vitePreload(()=>import("./EnrichClaimMissingPoints-DiZqwWA2.js"),__vite__mapDeps([179,165,45,180,16,17,18,19,20,181])),
1185"/src/aem-components/enrich-portal/EnrichCoBrandCard.vue":()=>__vitePreload(()=>import("./EnrichCoBrandCard-BqvZ6nXl.js"),__vite__mapDeps([182,183])),
1185"/src/aem-components/enrich-portal/EnrichCoBrandCardWidget.vue":()=>__vitePreload(()=>import("./EnrichCoBrandCardWidget-DTYJCAQ9.js"),__vite__mapDeps([184,185])),
1185"/src/aem-components/enrich-portal/EnrichCompanion.vue":()=>__vitePreload(()=>import("./EnrichCompanion-B-EcPt_d.js"),__vite__mapDeps([186,187,188,166,165,167,189])),
1185"/src/aem-components/enrich-portal/EnrichContactUs.vue":()=>__vitePreload(()=>import("./EnrichContactUs-BXSFyHio.js"),__vite__mapDeps([190,21,22,16,17,18,19,20,166,165,167,191])),
1185"/src/aem-components/enrich-portal/EnrichCrossSellTiles.vue":()=>__vitePreload(()=>import("./EnrichCrossSellTiles-qhbdWnvt.js"),__vite__mapDeps([192,193])),
1185"/src/aem-components/enrich-portal/EnrichFamilyPool.vue":()=>__vitePreload(()=>import("./EnrichFamilyPool-BcbTvNyQ.js"),__vite__mapDeps([194,195,166,165,167,196])),
1185"/src/aem-components/enrich-portal/EnrichFlyPass.vue":()=>__vitePreload(()=>import("./EnrichFlyPass-B6X_7bPe.js"),__vite__mapDeps([197,198])),
1185"/src/aem-components/enrich-portal/EnrichGiftCardListing.vue":()=>__vitePreload(()=>import("./EnrichGiftCardListing-gvYa2udr.js"),__vite__mapDeps([199,200,201,202])),
1185"/src/aem-components/enrich-portal/EnrichGiftCardProductDetailsSelection.vue":()=>__vitePreload(()=>import("./EnrichGiftCardProductDetailsSelection-BbVUYMdb.js"),__vite__mapDeps([203,45,204,205,206,207])),
1185"/src/aem-components/enrich-portal/EnrichGiftCardQuickRedemptionOverlay.vue":()=>__vitePreload(()=>import("./EnrichGiftCardQuickRedemptionOverlay-CmDXD5nj.js"),__vite__mapDeps([208,45,204,205,206,209])),
1185"/src/aem-components/enrich-portal/EnrichGiftCardsFeatureTiles.vue":()=>__vitePreload(()=>import("./EnrichGiftCardsFeatureTiles-BoCIJe3Y.js"),__vite__mapDeps([210,200,201,211])),
1185"/src/aem-components/enrich-portal/EnrichHeader.vue":()=>__vitePreload(()=>import("./EnrichHeader-DGjt3yl5.js"),__vite__mapDeps([212,213])),
1185"/src/aem-components/enrich-portal/EnrichInfoMessageOverlay.vue":()=>__vitePreload(()=>import("./EnrichInfoMessageOverlay-BTW1qTrD.js"),[]),
1185"/src/aem-components/enrich-portal/EnrichInviteAndEarn.vue":()=>__vitePreload(()=>import("./EnrichInviteAndEarn-lYjXNeUa.js"),__vite__mapDeps([214,119,215,216,217])),
1185"/src/aem-components/enrich-portal/EnrichMembershipSummary.vue":()=>__vitePreload(()=>import("./EnrichMembershipSummary-D_3l9a_9.js"),__vite__mapDeps([218,174,175,219,220])),
1185"/src/aem-components/enrich-portal/EnrichMhFlypass.vue":()=>__vitePreload(()=>import("./EnrichMhFlypass-CfUNVezI.js"),__vite__mapDeps([221,222])),
1185"/src/aem-components/enrich-portal/EnrichMidTierBooster.vue":()=>__vitePreload(()=>import("./EnrichMidTierBooster-ChIkqOi8.js"),__vite__mapDeps([223,219,224])),
1185"/src/aem-components/enrich-portal/EnrichMyTravellersForm.vue":()=>__vitePreload(()=>import("./EnrichMyTravellersForm-DjR-HXuF.js"),__vite__mapDeps([225,19,226,165,227])),
1185"/src/aem-components/enrich-portal/EnrichMyTrips.vue":()=>__vitePreload(()=>import("./EnrichMyTrips-aCki4LsK.js"),__vite__mapDeps([228,229,230])),
1185"/src/aem-components/enrich-portal/EnrichNavigationBar.vue":()=>__vitePreload(()=>import("./EnrichNavigationBar-BJ8SWIhr.js"),__vite__mapDeps([231,232,233])),
1185"/src/aem-components/enrich-portal/EnrichNotifications.vue":()=>__vitePreload(()=>import("./EnrichNotifications-BeHuB1j_.js"),__vite__mapDeps([234,235])),
1185"/src/aem-components/enrich-portal/EnrichPointServices.vue":()=>__vitePreload(()=>import("./EnrichPointServices-D48g9aWH.js"),__vite__mapDeps([236,45,237])),
1185"/src/aem-components/enrich-portal/EnrichPointServicesPayment.vue":()=>__vitePreload(()=>import("./EnrichPointServicesPayment-Da6k4cA3.js"),__vite__mapDeps([238,239,240])),
1185"/src/aem-components/enrich-portal/EnrichPointsActivity.vue":()=>__vitePreload(()=>import("./EnrichPointsActivity-DZ6PPIuz.js"),__vite__mapDeps([241,242])),
1185"/src/aem-components/enrich-portal/EnrichPointsExchangeConfirmationOverlay.vue":()=>__vitePreload(()=>import("./EnrichPointsExchangeConfirmationOverlay-BwjeeaKf.js"),__vite__mapDeps([243,165,244,206,245])),
1185"/src/aem-components/enrich-portal/EnrichPointsExchangeForm.vue":()=>__vitePreload(()=>import("./EnrichPointsExchangeForm-Cr9Uks0W.js"),__vite__mapDeps([246,165,244,206,247])),
1185"/src/aem-components/enrich-portal/EnrichProfile.vue":()=>__vitePreload(()=>import("./EnrichProfile-CNJqxA4Q.js"),__vite__mapDeps([248,166,165,167,180,215,216,249])),
1185"/src/aem-components/enrich-portal/EnrichSavedCards.vue":()=>__vitePreload(()=>import("./EnrichSavedCards--6WCa_k7.js"),__vite__mapDeps([250,226,19,166,165,167,239,251])),
1185"/src/aem-components/enrich-portal/EnrichSavedCardsAddCard.vue":()=>__vitePreload(()=>import("./EnrichSavedCardsAddCard-BY8Mn2sY.js"),[]),
1185"/src/aem-components/enrich-portal/EnrichSetAsFamilyPoolContributor.vue":()=>__vitePreload(()=>import("./EnrichSetAsFamilyPoolContributor-D8E4MNXN.js"),__vite__mapDeps([252,253,17,254,255,166,165,167,256])),
1185"/src/aem-components/enrich-portal/EnrichStatusBenefits.vue":()=>__vitePreload(()=>import("./EnrichStatusBenefits-CoZh04Kh.js"),__vite__mapDeps([257,219,258])),
1185"/src/aem-components/enrich-portal/EnrichSupplementaryMembers.vue":()=>__vitePreload(()=>import("./EnrichSupplementaryMembers-Cdj12mIF.js"),__vite__mapDeps([259,19,255,166,165,167,260])),
1185"/src/aem-components/enrich-portal/EnrichSupplementaryMembersAddMember.vue":()=>__vitePreload(()=>import("./EnrichSupplementaryMembersAddMember-BrlBsVQK.js"),__vite__mapDeps([261,19,187,188,253,17,254,255,166,165,167,262])),
1185"/src/aem-components/enrich-portal/EnrichSupplementaryMembersReplacement.vue":()=>__vitePreload(()=>import("./EnrichSupplementaryMembersReplacement-DiAaOZzA.js"),__vite__mapDeps([263,19,187,188,253,17,254,255,166,165,167,264])),
1185"/src/aem-components/enrich-portal/EnrichTrackClaimStatus.vue":()=>__vitePreload(()=>import("./EnrichTrackClaimStatus-C1pIYJdo.js"),__vite__mapDeps([265,266])),
1185"/src/aem-components/enrich-portal/EnrichTransactionHistory.vue":()=>__vitePreload(()=>import("./EnrichTransactionHistory-Ccmlk02O.js"),__vite__mapDeps([267,268])),
1185"/src/aem-components/enrich-portal/EnrichTravellerOverlay.vue":()=>__vitePreload(()=>import("./EnrichTravellerOverlay-GgJRNSeY.js"),__vite__mapDeps([269,195,45,174,175,180,270])),
1185"/src/aem-components/enrich-portal/EnrichUpcomingTrips.vue":()=>__vitePreload(()=>import("./EnrichUpcomingTrips-2k-MZpiE.js"),__vite__mapDeps([271,229,272])),
1185"/src/aem-components/external-flight/ExternalFlightSearch.vue":()=>__vitePreload(()=>import("./ExternalFlightSearch-EnCE_YGr.js"),__vite__mapDeps([273,274])),
1185"/src/aem-components/fare-histogram/FareHistogram.vue":()=>__vitePreload(()=>import("./FareHistogram-BxnzZxmR.js"),__vite__mapDeps([275,276])),
1185"/src/aem-components/firefly/FireflyDealsTiles.vue":()=>__vitePreload(()=>import("./FireflyDealsTiles-DnngC4_V.js"),__vite__mapDeps([277,278])),
1185"/src/aem-components/firefly/FireflyFooter.vue":()=>__vitePreload(()=>import("./FireflyFooter-BOX4oaxZ.js"),__vite__mapDeps([279,280])),
1185"/src/aem-components/firefly/FireflyHeader.vue":()=>__vitePreload(()=>import("./FireflyHeader-C_hvzAbi.js"),__vite__mapDeps([281,282])),
1185"/src/aem-components/firefly/FireflyInformationTiles.vue":()=>__vitePreload(()=>import("./FireflyInformationTiles-y7f2xdPI.js"),__vite__mapDeps([283,26,27])),
1185"/src/aem-components/firefly/FireflyTravelInfoTiles.vue":()=>__vitePreload(()=>import("./FireflyTravelInfoTiles-BUlIF-T-.js"),__vite__mapDeps([284,285])),
1185"/src/aem-components/firefly/booking/FireflyAirCargo.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FireflyAirCargo$1),void 0),
1185"/src/aem-components/firefly/booking/FireflyBookingWidget.vue":()=>__vitePreload(()=>import("./FireflyBookingWidget-CCY9f-n0.js"),__vite__mapDeps([286,287,288,289])),
1185"/src/aem-components/firefly/booking/FireflyCheckIn.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FireflyCheckIn$1),void 0),
1185"/src/aem-components/firefly/booking/FireflyFlightSearch.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FireflyFlightSearch$1),void 0),
1185"/src/aem-components/firefly/booking/FireflyManageBooking.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>FireflyManageBooking$1),void 0),
1185"/src/aem-components/firefly/booking/FireflyNeighbourFreeSeat.vue":()=>__vitePreload(()=>import("./FireflyNeighbourFreeSeat-BPMbxN91.js"),__vite__mapDeps([287,288])),
1185"/src/aem-components/form/Checkbox.vue":()=>__vitePreload(()=>import("./Checkbox-CujrwIjM.js"),__vite__mapDeps([290,291])),
1185"/src/aem-components/form/DatePicker.vue":()=>__vitePreload(()=>import("./DatePicker-YbljJ_RR.js"),[]),
1185"/src/aem-components/form/Dropdown.vue":()=>__vitePreload(()=>import("./Dropdown-CqvqSQ7m.js"),[]),
1185"/src/aem-components/form/DynamicDropdown.vue":()=>__vitePreload(()=>import("./DynamicDropdown-CZpB7NXE.js"),__vite__mapDeps([292,293])),
1185"/src/aem-components/form/FileUpload.vue":()=>__vitePreload(()=>import("./FileUpload-LcPw-UsR.js"),__vite__mapDeps([294,16,17,18,19,20])),
1185"/src/aem-components/form/FormContainer.vue":()=>__vitePreload(()=>import("./FormContainer-D4_kTR2F.js"),__vite__mapDeps([295,187,188])),
1185"/src/aem-components/form/MobilePhoneInput.vue":()=>__vitePreload(()=>import("./MobilePhoneInput-D_4023xh.js"),[]),
1185"/src/aem-components/form/NumberPicker.vue":()=>__vitePreload(()=>import("./NumberPicker-XoLfE_EF.js"),[]),
1185"/src/aem-components/form/RadioButton.vue":()=>__vitePreload(()=>import("./RadioButton-NlOVTKw-.js"),[]),
1185"/src/aem-components/form/RatingSlider.vue":()=>__vitePreload(()=>import("./RatingSlider-B90Fbijz.js"),__vite__mapDeps([296,297])),
1185"/src/aem-components/form/TextArea.vue":()=>__vitePreload(()=>import("./TextArea-DDGKWuFV.js"),__vite__mapDeps([298,21,22,299])),
1185"/src/aem-components/form/TextField.vue":()=>__vitePreload(()=>import("./TextField-Bh2waEXY.js"),__vite__mapDeps([300,19,301])),
1185"/src/aem-components/maba/MABAFooter.vue":()=>__vitePreload(()=>import("./MABAFooter-B2ac2-aT.js"),__vite__mapDeps([302,303,304,305])),
1185"/src/aem-components/maba/MABAHeader.vue":()=>__vitePreload(()=>import("./MABAHeader-D7-jffFj.js"),__vite__mapDeps([306,303,304,307])),
1185"/src/aem-components/maba/MABAImageOverflowTile.vue":()=>__vitePreload(()=>import("./MABAImageOverflowTile-DrznAmkh.js"),__vite__mapDeps([308,309])),
1185"/src/aem-components/maskargo/MasKargoFooter.vue":()=>__vitePreload(()=>import("./MasKargoFooter-liRYOkQ5.js"),__vite__mapDeps([310,311])),
1185"/src/aem-components/maskargo/MasKargoHeader.vue":()=>__vitePreload(()=>import("./MasKargoHeader-CqUPs_vd.js"),__vite__mapDeps([312,313])),
1185"/src/aem-components/maskargo/MasKargoLocateOurOffice.vue":()=>__vitePreload(()=>import("./MasKargoLocateOurOffice-D4dLAhNt.js"),__vite__mapDeps([314,315])),
1185"/src/aem-components/maskargo/booking/BookingInquiry.vue":()=>__vitePreload(()=>import("./BookingInquiry-6HYvmtkT.js"),__vite__mapDeps([316,317,318,319])),
1185"/src/aem-components/maskargo/booking/FlightSchedule.vue":()=>__vitePreload(()=>import("./FlightSchedule-ecbbPNB7.js"),__vite__mapDeps([320,317,318,321])),
1185"/src/aem-components/maskargo/booking/MasKargoIframe.vue":()=>__vitePreload(()=>import("./MasKargoIframe-QOMbhfky.js"),__vite__mapDeps([322,323])),
1185"/src/aem-components/maskargo/booking/MaskargoBookingWidget.vue":()=>__vitePreload(()=>import("./MaskargoBookingWidget-C2bDw5Ya.js"),__vite__mapDeps([324,325])),
1185"/src/aem-components/maskargo/booking/MaskargoShipmentTracking.vue":()=>__vitePreload(()=>import("./MaskargoShipmentTracking-Bpq-67_9.js"),__vite__mapDeps([326,327])),
1185"/src/aem-components/matta/Matta2024.vue":()=>__vitePreload(()=>import("./Matta2024-DvEHZby0.js"),__vite__mapDeps([328,29,30,329])),
1185"/src/aem-components/mhe/BookingWidget/MHEFlightSearch.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>MHEFlightSearch$1),void 0),
1185"/src/aem-components/mhe/PostLoginHandler.vue":()=>__vitePreload(()=>import("./PostLoginHandler-FCoB_jgh.js"),__vite__mapDeps([330,331])),
1185"/src/aem-components/mhe/ReferralLink.vue":()=>__vitePreload(()=>import("./ReferralLink-BLjtPnTU.js"),__vite__mapDeps([332,333])),
1185"/src/aem-components/mhe/SignUpForm.vue":()=>__vitePreload(()=>import("./SignUpForm-CL_y91T_.js"),__vite__mapDeps([334,16,17,18,19,20,21,22,335])),
1185"/src/aem-components/mhe/StudentInfoCard.vue":()=>__vitePreload(()=>import("./StudentInfoCard-7744oQa8.js"),__vite__mapDeps([336,337])),
1185"/src/aem-components/mhh/MHHBookingWidgetUrlQueryGenerator.vue":()=>__vitePreload(()=>import("./MHHBookingWidgetUrlQueryGenerator-DGSchZQ6.js"),__vite__mapDeps([338,339,340,341])),
1185"/src/aem-components/mhh/MHHDestinationAndTourDeals.vue":()=>__vitePreload(()=>import("./MHHDestinationAndTourDeals-DJ51HcKu.js"),__vite__mapDeps([342,343])),
1185"/src/aem-components/mhh/MHHFooter.vue":()=>__vitePreload(()=>import("./MHHFooter-BHLfyfuc.js"),__vite__mapDeps([344,345])),
1185"/src/aem-components/mhh/MHHHeader.vue":()=>__vitePreload(()=>import("./MHHHeader-DWYO0GiI.js"),__vite__mapDeps([346,347])),
1185"/src/aem-components/mhh/MHHHeaderDeals.vue":()=>__vitePreload(()=>import("./MHHHeaderDeals-BYi4pfyk.js"),__vite__mapDeps([348,232,349])),
1185"/src/aem-components/mhh/MHHHotelDealsTiles.vue":()=>__vitePreload(()=>import("./MHHHotelDealsTiles-DC3bPud-.js"),__vite__mapDeps([350,351])),
1185"/src/aem-components/mhh/MHHPromotionPopUp.vue":()=>__vitePreload(()=>import("./MHHPromotionPopUp-o5BFISmX.js"),__vite__mapDeps([352,353])),
1185"/src/aem-components/mhh/MHHTripspirationCards.vue":()=>__vitePreload(()=>import("./MHHTripspirationCards-BdjN9foW.js"),__vite__mapDeps([354,355])),
1185"/src/aem-components/mhh/MHHUSPIcon.vue":()=>__vitePreload(()=>import("./MHHUSPIcon-DBmjgs5O.js"),__vite__mapDeps([356,357])),
1185"/src/aem-components/mhh/booking/MHHAirportTransfer.vue":()=>__vitePreload(()=>import("./MHHAirportTransfer-BlSsiBsH.js"),__vite__mapDeps([358,339,340,359])),
1185"/src/aem-components/mhh/booking/MHHBookingWidget.vue":()=>__vitePreload(()=>import("./MHHBookingWidget-_Zj52jn4.js"),__vite__mapDeps([360,361,362,363,364,365,358,339,340,359,366])),
1185"/src/aem-components/mhh/booking/MHHFlightHotelSearch.vue":()=>__vitePreload(()=>import("./MHHFlightHotelSearch-DhvCnkOD.js"),__vite__mapDeps([361,362,363])),
1185"/src/aem-components/mhh/booking/MHHHotelSearch.vue":()=>__vitePreload(()=>import("./MHHHotelSearch-CBwnijJD.js"),__vite__mapDeps([364,362])),
1185"/src/aem-components/mhh/booking/MHHTripsAndTours.vue":()=>__vitePreload(()=>import("./MHHTripsAndTours-Dme7h3ko.js"),__vite__mapDeps([365,362]))
1185});for(const[o,r]of Object.entries(t)){const e=o.replace(/^\.\./,"~"),n=mappingData.find(s=>e.endsWith(s.componentPath));if(SYNC_COMPONENTS.includes(o))continue;if(!n){console.warn(`Cannot find corresponding component for "${o}". This is a no-op.`);continue}const a=o.split("/").at(-1).replace(".vue",""),i={loader:r,delay:7e3,loadingComponent:h(AppSpinner,{class:"mx-auto"})};window.siteName==="enrich-portal"&&(i.delay=0,i.loadingComponent=h("div",{class:"skeleton-loading","data-component-name":a},[h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div"),h("div")])),setMapping(n.resourceType,WithModelAndEditable(defineAsyncComponent(i),n==null?void 0:n.editConfig))}setMapping("mh/components/page",AEMPage),setMapping("mh/components/page-structure/homepage",AEMPage),setMapping("mh/components/page-structure/root-page",AEMPage),setMapping("mh/components/page-structure/destination-details-page",AEMPage),setMapping("mh/components/page-structure/article-page",AEMPage),setMapping("mh/components/page-structure/root-page",AEMPage),setMapping("mh/components/page-structure/content-page",AEMPage),setMapping("mh/components/page-structure/mag-root-page",AEMPage),setMapping("mh/components/page-structure/mag-homepage",AEMPage),setMapping("mh/components/page-structure/mag-content-page",AEMPage),setMapping("mh/components/page-structure/mag-article-page",AEMPage),setMapping("mh/components/page-structure/mhh-root-page",AEMPage),setMapping("mh/components/page-structure/mhh-homepage",AEMPage),setMapping("mh/components/page-structure/mhh-content-page",AEMPage),setMapping("mh/components/page-structure/maba-root-page",AEMPage),setMapping("mh/components/page-structure/maba-homepage",AEMPage),setMapping("mh/components/page-structure/maba-content-page",AEMPage),setMapping("mh/components/page-structure/maba-article-page",AEMPage),setMapping("mh/components/page-structure/amal/amal-root-page",AEMPage),setMapping("mh/components/page-structure/amal/amal-homepage",AEMPage),setMapping("mh/components/page-structure/amal/amal-content-page",AEMPage),setMapping("mh/components/page-structure/amal/amal-article-page",AEMPage),setMapping("mh/components/page-structure/firefly-root-page",AEMPage),setMapping("mh/components/page-structure/firefly-homepage",AEMPage),setMapping("mh/components/page-structure/firefly-content-page",AEMPage),setMapping("mh/components/page-structure/firefly-article-page",AEMPage),setMapping("mh/components/page-structure/enrich-portal-root-page",AEMPage),setMapping("mh/components/page-structure/enrich-portal-content-page",AEMPage),setMapping("mh/components/page-structure/ads-root-page",AEMPage),setMapping("mh/components/page-structure/ads-content-page",AEMPage),setMapping("mh/components/page-structure/ads-article-page",AEMPage),setMapping("mh/components/page-structure/ads-homepage",AEMPage),setMapping("mh/components/page-structure/maskargo/root-page",AEMPage),setMapping("mh/components/page-structure/maskargo/content-page",AEMPage),setMapping("mh/components/page-structure/maskargo/article-page",AEMPage),setMapping("mh/components/page-structure/maskargo/homepage",AEMPage),setMapping("mh/components/page-structure/maskargo/destination-details-page",AEMPage),setMapping("mh/components/page-structure/enrich/homepage",AEMPage),setMapping("mh/components/page-structure/enrich/root-page",AEMPage),setMapping("mh/components/page-structure/enrich/destination-details-page",AEMPage),setMapping("mh/components/page-structure/enrich/article-page",AEMPage),setMapping("mh/components/page-structure/enrich/content-page",AEMPage),setMapping("mh/components/page-structure/enrichmoney/homepage",AEMPage),setMapping("mh/components/page-structure/enrichmoney/root-page",AEMPage),setMapping("mh/components/page-structure/enrichmoney/article-page",AEMPage),setMapping("mh/components/page-structure/enrichmoney/content-page",AEMPage),setMapping("mh/components/page-properties",PageProperties),setMapping("mh/components/mh-layout-container",MHLayoutContainer),setMapping("mh/components/experience-fragment",WithModelAndEditable(ExperienceFragment,ExperienceFragment.editConfig)),setMapping("mh/components/mobile-download-app-notification",WithModelAndEditable(MobileDownloadAppNotification,MobileDownloadAppNotification.editConfig)),setMapping("mh/components/header-notification",WithModelAndEditable(HeaderNotification,HeaderNotification.editConfig)),setMapping("mh/components/header",WithModelAndEditable(AppHeader,AppHeader.editConfig)),setMapping("mh/components/footer",WithModelAndEditable(AppFooter,AppFooter.editConfig)),setMapping("mh/components/floating-widget",WithModelAndEditable(FloatingWidget,FloatingWidget.editConfig)),setMapping("mh/components/carousel",WithModelAndEditable(Carou
1185sel,Carousel.editConfig)),setMapping("mh/components/banner",WithModelAndEditable(Banner,Banner.editConfig)),setMapping("mh/components/booking/booking-widget",WithModelAndEditable(BookingWidget,BookingWidget.editConfig)),setMapping("mh/components/text",WithModelAndEditable(TextComponent,TextComponent.editConfig)),setMapping("mh/components/empty-gap",WithModelAndEditable(EmptyGap,EmptyGap.editConfig)),setMapping("mh/components/cta-button",WithModelAndEditable(CTAButton,CTAButton.editConfig)),setMapping("mh/components/cookies-notification",WithModelAndEditable(CookiesNotification,CookiesNotification.editConfig)),setMapping("mh/components/column-control",WithModelAndEditable(ColumnControl,ColumnControl.editConfig)),setMapping("mh/components/divider",WithModelAndEditable(Divider,Divider.editConfig)),setMapping("mh/components/image",WithModelAndEditable(ImageComponent,ImageComponent.editConfig))},doMappingLogic=doMappingLogic_async,getEditConfigByResourceType=t=>mappingData.find(o=>o.resourceType===t),overwriteMappingWithSyncComponent=(t,o,r=!0)=>{var n;const e=r?WithModelAndEditable(o,(n=getEditConfigByResourceType(t))==null?void 0:n.editConfig):o;setMapping(t,e)},_hoisted_1$S={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};function render$1(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$S,o[0]||(o[0]=[createBaseVNode("path",{d:"M24 80.03h336c13.25 0 24-10.76 24-24.02S373.3 32 360 32H24C10.75 32 0 42.76 0 56.02S10.75 80.03 24 80.03zM81.47 304.2L168 212.1v243.8C168 469.2 178.8 480 192 480s24-10.77 24-24.04V212.1l86.53 92.05C307.3 309.2 313.6 311.7 320 311.7c5.906 0 11.81-2.16 16.44-6.541c9.656-9.076 10.12-24.29 1.031-33.96l-128-136.2c-9.062-9.702-25.88-9.702-34.94 0L46.53 271.2C37.44 280.9 37.91 296.1 47.56 305.2C57.19 314.3 72.38 313.9 81.47 304.2z"},null,-1)]))}const __unplugin_components_0$1=markRaw({name:"far-arrow-up-to-line",render:render$1}),__default__$P={name:"BtnBackToTop"},_sfc_main$Q=Object.assign(__default__$P,{props:{},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=c=>{Anchor.activate("body")},i=ref$1(!1),{y:s}=useWindowScroll(),l=window.innerHeight*.8;watch(s,c=>{c>=l?i.value||(i.value=!0):i.value&&(i.value=!1)},{immediate:!0});const d={props:e,emit:n,handleClick:a,isVisible:i,scrollY:s,SCROLL_Y_THRESHOLD:l,get Anchor(){return Anchor},get useWindowScroll(){return useWindowScroll},get useEventBus(){return useEventBus}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),_hoisted_1$R=["aria-label"];function _sfc_render$Q(t,o,r,e,n,a){const i=__unplugin_components_0$1,s=resolveDirective("button-press");return openBlock(),createElementBlock("div",{class:"BtnBackToTop",style:normalizeStyle({"--btn-size":e.isVisible?void 0:"0px"})},[withDirectives((openBlock(),createElementBlock("button",{type:"button",class:"button","aria-label":t.$t("Back to top"),onClick:e.handleClick},[createVNode(i,{class:"fill-white w-6 h-6","aria-hidden":"true"})],8,_hoisted_1$R)),[[s]])],4)}const BtnBackToTop=_export_sfc(_sfc_main$Q,[["render",_sfc_render$Q],["__scopeId","data-v-e129c20a"],["__file","BtnBackToTop.vue"]]),__default__$O={name:"HiddenSeamlessBookingWidget",inheritAttrs:!1},_sfc_main$P=Object.assign(__default__$O,{setup(t,{expose:o}){o();const r=ref$1(null),e=ref$1(null),n=ref$1(null),a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=[{componentName:"check-in",dataRef:r,key:"check-in"},{componentName:"flight-hotel-search",dataRef:e,key:"flight-hotel"},{componentName:"flight-schedule",dataRef:n,key:"flight-schedule"},{componentName:"flight-search",dataRef:a,key:"flight-search"},{componentName:"flight-status",dataRef:i,key:"flight-status"},{componentName:"manage-booking",dataRef:s,key:"manage-booking"},{componentName:"mh-upgrade",dataRef:l,key:"mh-upgrade"}];function c(A=["isHideInDesktop"],M={}){const O=Object.keys(M);for(const R of O){for(const I of A)Object.hasOwn(M,I)&&(M[I]=!0);typeof M[R]=="object"&&M[R]!==null&&c(A,M[R])}return M}const u=async(A=[])=>{var H,U;const{pageProperties:M}=useGlobalAEMState$1(),O=M.value.rootCountry;let R=M.value.rootLanguage;R==="zh_cn"&&(R="zh_CN");let I=null;const j=await axios$1.get(`/content/mh/${O}/${R}/home/jcr:content/root/embedded_booking_widget.widgetdata.json`);if((H=j==null?void 0:j.data)!=null&&H.mobileProperties){const B=j.data.mobileProperties.map(({urlPath:L,isHideInMobile:z,ctaText:W,...J})=>{const[,te=""]=L.split("#");return{...J,urlPath:te?`#${te}`:"",id:te?`#${te}`:"",label:W}});setCookie("mobileProperties",JSON.stringify(B))}if((U=j==null?void 0:j.data)!=null&&U.desktopProperties){const B=new Set(j.data.desktopProperties.map(L=>L.function));I=d.filter(L=>B.has(L.key))}(I===null||I.length===0)&&(I=A);try{I.forEach(async(B,L)=>{const z=await axios$1.get(`/content/mh/${O}/${R}/home/jcr:content/root/embedded_booking_widget/${B.componentName}.model.json`);B.dataRef.value=z.data})}catch(B){console.error(B)}},f=computed(()=>r.value===null?null:{...r.value,isHideInDesktop:!0}),m=computed(()=>e.value===null?null:{...c(["isHideInDesktop"],e.value)}),b=computed(()=>n.value===null?null:{...n.value,isHideInDesktop:!0}),y=computed(()=>a.value===null?null:{...c(["isHideInDesktop","isHideInDesktopRedeemFlight"],a.value),isHideContinueYourSearchSection:!0}
1185),_=computed(()=>i.value===null?null:{...c(["isHideInDesktop"],i.value)}),S=computed(()=>s.value===null?null:{...c(["isHideInDesktop"],s.value)}),C=computed(()=>l.value===null?null:{...l.value,isHideInDesktop:!0}),T=async A=>{try{if(await waitFor(()=>document.querySelector(A)!==null,100,6).start(),document.querySelector(A))return!0}catch{}return!1},x=ref$1(!0),k=ref$1(!0),E=ref$1(!0),w=ref$1(!0),D=ref$1(!0),N=ref$1(!0),F=ref$1(!0);onMounted(async()=>{u(d),x.value=await T(".CheckIn"),k.value=await T(".FlightHotelSearch"),E.value=await T(".FlightSchedule"),w.value=await T(".FlightSearch"),D.value=await T(".FlightStatus"),N.value=await T(".ManageBooking"),F.value=await T(".MHupgrade")});const V={checkInPropsFromAPI:r,flightSearchHotelPropsFromAPI:e,flightSchedulePropsFromAPI:n,flightSearchPropsFromAPI:a,flightStatusPropsFromAPI:i,manageBookingPropsFromAPI:s,upgradePropsFromAPI:l,bookingWidgetArrayList:d,transformObjectProps:c,setupProps:u,checkInProps:f,flightHotelSearchProps:m,flightScheduleProps:b,flightSearchProps:y,flightStatusProps:_,manageBookingProps:S,upgradeProps:C,getElementIfExist:T,isCheckInMounted:x,isFlightHotelSearchMounted:k,isFlightScheduleMounted:E,isFlightSearchMounted:w,isFlightStatusMounted:D,isManageBookingMounted:N,isUpgradeMounted:F,CheckIn,FlightHotelSearch,FlightSchedule,FlightSearch,FlightStatus,ManageBooking,MHupgrade,get axios(){return axios$1},get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport},get waitFor(){return waitFor},get setCookie(){return setCookie}};return Object.defineProperty(V,"__isScriptSetup",{enumerable:!1,value:!0}),V}}),_hoisted_1$Q={class:"HiddenSeamlessBookingWidget"};function _sfc_render$P(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$Q,[e.isMobileViewport?(openBlock(),createElementBlock(Fragment,{key:0},[!e.isCheckInMounted&&e.checkInProps!==null?(openBlock(),createBlock(e.CheckIn,normalizeProps(mergeProps({key:0},e.checkInProps)),null,16)):createCommentVNode("",!0),!e.isFlightHotelSearchMounted&&e.flightHotelSearchProps!==null?(openBlock(),createBlock(e.FlightHotelSearch,normalizeProps(mergeProps({key:1},e.flightHotelSearchProps)),null,16)):createCommentVNode("",!0),!e.isFlightScheduleMounted&&e.flightScheduleProps!==null?(openBlock(),createBlock(e.FlightSchedule,normalizeProps(mergeProps({key:2},e.flightScheduleProps)),null,16)):createCommentVNode("",!0),!e.isFlightSearchMounted&&e.flightSearchProps!==null?(openBlock(),createBlock(e.FlightSearch,normalizeProps(mergeProps({key:3},e.flightSearchProps)),null,16)):createCommentVNode("",!0),!e.isFlightStatusMounted&&e.flightStatusProps!==null?(openBlock(),createBlock(e.FlightStatus,normalizeProps(mergeProps({key:4},e.flightStatusProps)),null,16)):createCommentVNode("",!0),!e.isManageBookingMounted&&e.manageBookingProps!==null?(openBlock(),createBlock(e.ManageBooking,normalizeProps(mergeProps({key:5},e.manageBookingProps)),null,16)):createCommentVNode("",!0),!e.isUpgradeMounted&&e.upgradeProps!==null?(openBlock(),createBlock(e.MHupgrade,normalizeProps(mergeProps({key:6},e.upgradeProps)),null,16)):createCommentVNode("",!0)],64)):createCommentVNode("",!0)])}const HiddenSeamlessBookingWidget=_export_sfc(_sfc_main$P,[["render",_sfc_render$P],["__scopeId","data-v-74f0e3e6"],["__file","HiddenSeamlessBookingWidget.vue"]]),__default__$N={name:"DefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$O=Object.assign(__default__$N,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop,HiddenSeamlessBookingWidget};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$P={class:"DefaultLayout flex flex-col min-h-screen","data-layout":"Default"},_hoisted_2$K={class:"floating-bottom-right-container"};function _sfc_render$O(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$P,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header/master"}),createVNode(e.HiddenSeamlessBookingWidget),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"}
1185,null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$K,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/mh/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mh/$country/$lang/site/footer/master"})])}const DefaultLayout=_export_sfc(_sfc_main$O,[["render",_sfc_render$O],["__scopeId","data-v-d13478df"],["__file","DefaultLayout.vue"]]),__default__$M={name:"HomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$N=Object.assign(__default__$M,{setup(t,{expose:o}){o();const r=ref$1(null),e=async()=>{var m;const f=document.querySelector("#homepage-animation");f&&((m=document.querySelector("#homepage-animation .animation-graphic"))==null||m.classList.add("scale-fade-out"),await gsapWithCSS.to(f,{duration:.5,delay:.2,opacity:0,display:"none"}).then(),f.setAttribute("hidden",!0))},{isEditorMode:n}=useGlobalAEMState$1(),a=f=>{f==="show"?(document.documentElement.style.setProperty("--pinnedElementTransitionDuration","0.3s"),document.documentElement.style.setProperty("--headerTranslateY","0%"),document.documentElement.style.setProperty("--headerNotificationTranslateY","0%"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","0%"),document.documentElement.classList.remove("scroll-dir-down"),document.documentElement.classList.add("scroll-dir-up"),setTimeout(()=>{document.documentElement.style.setProperty("--pinnedElementTransitionDuration","0.2s")},320)):(document.documentElement.style.setProperty("--headerTranslateY","calc( ( (var(--mobileDlAppNotificationHeight) + var(--headerNotificationHeight)) ) * -1 )"),document.documentElement.style.setProperty("--headerNotificationTranslateY","calc( (100% + var(--mobileDlAppNotificationHeight) ) * -1 )"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","-100%"),document.documentElement.classList.remove("scroll-dir-up"),document.documentElement.classList.add("scroll-dir-down"))},i=useEventBus("homepage-transition-in"),s=ref$1(null),l=ref$1(window.innerWidth),d=window.innerWidth,c=()=>{const f=document.querySelector(".banner-carousel-swiper");if(!f)return;const m=[...f.querySelectorAll(".HeroBanner-inner")];m.length&&(m.shift(),m.pop(),l.value=window.innerWidth,m.forEach(b=>{b.classList.contains("bg-size-contain")&&!s.value&&(s.value=b.offsetHeight)}),s.value&&(f.style.height=`${s.value*(l.value/d)}px`))};onMounted(async()=>{var y,_;const m=window.homepageAnimationStartTime,b=performance.now();if(n.value){e();return}if(!m){e();return}if(window.homepageTransitionInInitiated){e();return}try{window.homepageTransitionInInitiated=!0;const S=window.innerHeight,C=Math.min(1080,S),T=window.innerWidth,x=".banner-carousel-swiper",k=waitFor(()=>document.querySelector(x)&&document.querySelector(x).querySelector(".HeroBanner-inner")&&document.querySelector(".BookingWidget"),300,10);document.querySelector(x)||await k.start(),a("hide");const E=(((y=document.querySelector(".HeaderNotification"))==null?void 0:y.offsetHeight)??0)+(((_=document.querySelector(".MobileDownloadAppNotification"))==null?void 0:_.offsetHeight)??0),w=document.querySelector(".BookingWidget"),D=document.querySelector(".global-header .AppHeader"),N=parseInt(window.getComputedStyle(w).marginTop),F=48;if(!M||!w){console.warn("Homepage animation skipped: required elements missing"),await e(),a("show");return}let V=C-N-F,A=V-Math.min(C*.3,300);const M=document.querySelector(x),O=M.querySelector(".swiper-pagination");c(),s.value&&(A=s.value,V=s.value),gsapWithCSS.set(M,{height:V,marginTop:-E}),gsapWithCSS.set(M.querySelectorAll(`
1186				.banner-carousel-parsys-wrapper,
1187				[data-component="AsyncComponentWrapper"],
1188				[data-component="Banner"],
1189				.Banner,
1190				.HeroBanner,
1191				.HeroBanner-inner
1192			`),{height:"100%"}),M.querySelector(".swiper-button-next")&&gsapWithCSS.set([M.querySelector(".swiper-button-prev"),M.querySelector(".swiper-button-next")],{y:"-=12px"}),O&&gsapWithCSS.set(O,{bottom:0});let R=M.querySelector(".swiper-slide-active");R||(R=M.querySelector(".swiper-slide"));const I=R.querySelector(".banner-content-placeholder"),j=w.querySelectorAll(".SwitchTabContent .switch-tab-content-wrapper"),H=gsapWithCSS.timeline({});H.add([gsapWithCSS.from([M,w,D],{duration:.5,opacity:0}
1192)],"+=0.55"),H.add([gsapWithCSS.from(I,{duration:.4,opacity:0,y:"+=60px"})]),H.add([gsapWithCSS.to(M,{duration:.6,height:A})],"+=0.25"),H.add([gsapWithCSS.from(j,{duration:.4,opacity:0,y:"+=60px"})],"+=0.25"),H.add([gsapWithCSS.to(M,{duration:.3,marginTop:0,onStart:()=>{a("show")}})],"+=0.4"),H.add([gsapWithCSS.from(document.querySelector(".FloatingWidget"),{duration:.2,bottom:"-=20%",onComplete:()=>{i.emit("animation-complete")}}),...O?[gsapWithCSS.to(O,{duration:.3,bottom:"120px"})]:[]],"+=0.4"),setTimeout(async()=>{await e()},b-m<=1500?b-m:0)}catch(S){console.log("homepage animation err = ",S),a("show"),e()}window.addEventListener("resize",c)}),onUnmounted(()=>{window.removeEventListener("resize",c)});const u={rootEl:r,fadeOutAnimationWrapper:e,isEditorMode:n,updateTranslateY:a,homepageTransitionInBus:i,containBannerHeight:s,windowWidth:l,initialWindowWidth:d,getContainBannerHeight:c,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get gsap(){return gsapWithCSS},get useEventBus(){return useEventBus},get overwriteMappingWithSyncComponent(){return overwriteMappingWithSyncComponent},Carousel,BookingWidget,CheckIn,FlightHotelSearch,FlightSchedule,FlightSearch,FlightStatus,ManageBooking,get waitFor(){return waitFor}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$O={ref:"rootEl",class:"HomepageLayout flex flex-col min-h-screen","data-layout":"Homepage"},_hoisted_2$J={class:"floating-bottom-right-container"};function _sfc_render$N(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$O,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header/master"}),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$J,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/mh/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mh/$country/$lang/site/footer/master"})],512)}const HomepageLayout=_export_sfc(_sfc_main$N,[["render",_sfc_render$N],["__scopeId","data-v-715fcfbc"],["__file","HomepageLayout.vue"]]),__default__$L={name:"EmptyPageLayout",expose:[],inheritAttrs:!1},_sfc_main$M=Object.assign(__default__$L,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var a;return!!((a=r.value)!=null&&a.backToTop)});onMounted(()=>{const{isAuthStateReady:a}=useAuthStore();a.value=!0});const n={pageProperties:r,showBackToTop:e,BtnBackToTop,get useGlobalAEMState(){return useGlobalAEMState$1},get useAuthStore(){return useAuthStore}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$N={class:"EmptyPageLayout","data-layout":"EmptyPage"},_hoisted_2$I=["aria-label"],_hoisted_3$n={key:0,class:"floating-bottom-right-container"};function _sfc_render$M(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$N,[createBaseVNode("main",{id:"main",tabindex:"-1","aria-label":t.$t("Main content")},[renderSlot(t.$slots,"default")],8,_hoisted_2$I),e.showBackToTop?(openBlock(),createElementBlock("div",_hoisted_3$n,[createVNode(e.BtnBackToTop)])):createCommentVNode("",!0)])}const EmptyPageLayout=_export_sfc(_sfc_main$M,[["render",_sfc_render$M],["__scopeId","data-v-8d737693"],["__file","EmptyPageLayout.vue"]]),__default__$K={name:"MHBreadcrumb",inheritAttrs:!1},_sfc_main$L=Object.assign(__default__$K,{props:{showSectionBreaker:{type:Boolean,default:!0}},setup(t,{expose:o}){o();const r=t,{isEditorMode:e}=useGlobalAEMState$1(),n=window.siteName,a={props:r,isEditorMode:e,siteName:n,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),_hoisted_1$M=["data-use-theme"],_hoisted_2$H={class:"generic-container"},_hoisted_3$m=["data-use-theme"];function _sfc_render$L(t,o,r,e,n,a){return e.props.showSectionBreaker?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["curvy-section-breaker flex items-center",{"!mt-0":e.isEditorMode}]),"data-use-theme":e.siteName},[createBaseVNode("div",_hoisted_2$H,[createVNode(e.Breadcrumb)])],10,_hoisted_1$M)):(openBlock(),createElementBlock("div",{key:1,class:"generic-container","data-use-theme":e.siteName},[createVNode(e.Breadcrumb)],8,_hoisted_3$m))}const MHBreadcrumb=_export_sfc(_sfc_main$L,[["render",_sfc_render$L],["__scopeId","data-v-eba83913"],["__file","MHBreadcrumb.vue"]]),MHBreadcrumb$1=Object.freeze(Object.defineProperty({__proto__:null,default:MHBreadcrumb},Symbol.toStringTag,{value:"Module"}
1192)),__default__$J={name:"DestinationDetailsLayout",expose:[],inheritAttrs:!1},_sfc_main$K=Object.assign(__default__$J,{setup(t,{expose:o}){o();const{pageModel:r,pageProperties:e}=useGlobalAEMState$1(),n={pageModel:r,pageProperties:e,ExperienceFragment,get getCompositeComponent(){return getCompositeComponent},get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop,HiddenSeamlessBookingWidget,get overwriteMappingWithSyncComponent(){return overwriteMappingWithSyncComponent},Banner,MHBreadcrumb};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$L={class:"DestinationDetailsLayout flex flex-col min-h-screen","data-layout":"DestinationDetails"},_hoisted_2$G={class:"floating-bottom-right-container"};function _sfc_render$K(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$L,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header/master"}),createVNode(e.HiddenSeamlessBookingWidget),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$G,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/mh/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mh/$country/$lang/site/footer/master"})])}const DestinationDetailsLayout=_export_sfc(_sfc_main$K,[["render",_sfc_render$K],["__scopeId","data-v-204df18e"],["__file","DestinationDetailsLayout.vue"]]),__default__$I={name:"ArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$J=Object.assign(__default__$I,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),n=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),a=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.categoryTags?r.value.articlePageProperties.categoryTags.map(d=>d.title).join(", "):""}),i={pageProperties:r,articleTitle:e,articleDate:n,articleTags:a,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$K={class:"ArticleLayout flex flex-col min-h-screen","data-layout":"Article"},_hoisted_2$F={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$l={class:"generic-container"},_hoisted_4$g={class:"generic-container my-12"},_hoisted_5$d={key:0,class:"heading-2 mb-5"},_hoisted_6$d={class:"text-primary-blue-base font-semibold uppercase"},_hoisted_7$d={key:0,class:"article-date",dir:"ltr"},_hoisted_8$d={class:"article-category"},_hoisted_9$b={class:"floating-bottom-right-container"};function _sfc_render$J(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$K,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/mobile-download-app-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header-notification/master"}),o[2]||(o[2]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mh/$country/$lang/site/header/master",disableTransparency:!0}),o[3]||(o[3]=createBaseVNode("div",{class:"sticky-spacer h-$headerHeight"},null,-1)),o[4]||(o[4]=createBaseVNode("div",{id:"content"},null,-1)),o[5]||(o[5]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$F,[createBaseVNode("div",_hoisted_3$l,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$g,[e.articleTitle?(
1192openBlock(),createElementBlock("h1",_hoisted_5$d,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$d,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$d,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$d,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_9$b,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/mh/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mh/$country/$lang/site/footer/master"})])}const ArticleLayout=_export_sfc(_sfc_main$J,[["render",_sfc_render$J],["__scopeId","data-v-e948e5ed"],["__file","ArticleLayout.vue"]]),__default__$H={name:"MAGHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$I=Object.assign(__default__$H,{setup(t,{expose:o}){o();const r=ref$1(null),{isEditorMode:e}=useGlobalAEMState$1(),n={rootEl:r,isEditorMode:e,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get gsap(){return gsapWithCSS},get useEventBus(){return useEventBus},Carousel};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$J={ref:"rootEl",class:"MAGHomepageLayout flex flex-col min-h-screen","data-layout":"MAGHomepage"},_hoisted_2$E={class:"floating-bottom-right-container"};function _sfc_render$I(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$J,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mag/$lang/site/header-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mag/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$E,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mag/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mag/$lang/site/footer/master"})],512)}const MAGHomepageLayout=_export_sfc(_sfc_main$I,[["render",_sfc_render$I],["__scopeId","data-v-c61f233c"],["__file","MAGHomepageLayout.vue"]]),__default__$G={name:"MAGDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$H=Object.assign(__default__$G,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$I={class:"MAGDefaultLayout flex flex-col min-h-screen","data-layout":"MAGDefault"},_hoisted_2$D={class:"floating-bottom-right-container"};function _sfc_render$H(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$I,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mag/$lang/site/header-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mag/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$D,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mag/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mag/$lang/site/footer/master"})])}const MAGDefaultLayout=_export_sfc(_sfc_main$H,[["render",_sfc_render$H],["__scopeId","data-v-ad043e06"],["__file","MAGDefaultLayout.vue"]]),__default__$F={name:"MAGArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$G=Object.assign(__default__$F,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),n=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),a=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.categoryTags?r.value.articlePageProperties.categoryTags.map(d=>d.title).join(", "):""}),i={pageProperties:r,articleTitle:e,articleDate:n,articleTags:a,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$H={class:"MAGArticleLayout flex flex-col min-h-screen","data-layout":"MAGArticle"},_hoisted_2$C={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$k={class:"generic-container"},_hoisted_4$f={class:"generic-container my-12"},_hoisted_5$c={key:0,class:"heading-2 mb-5"},_hoisted_6$c={class:"text-primary-blue-base font-medium uppercase"},_hoisted_7$c={key:0,class:"article-date",dir:"ltr"},_hoisted_8$c={class:"article-category"},_hoisted_9$a={class:"floating-bottom-right-container"};function _sfc_render$G(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$H,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mag/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mag/$lang/site/header/master",disableTransparency:!0}),o[2]||(o[2]=createBaseVNode("div",{class:"sticky-spacer h-$headerHeight"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"content"},null,-1)),o[4]||(o[4]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$C,[createBaseVNode("div",_hoisted_3$k,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$f,[e.articleTitle?(
1192openBlock(),createElementBlock("h1",_hoisted_5$c,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$c,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$c,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$c,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_9$a,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mag/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mag/$lang/site/footer/master"})])}const MAGArticleLayout=_export_sfc(_sfc_main$G,[["render",_sfc_render$G],["__scopeId","data-v-1c7e0e1b"],["__file","MAGArticleLayout.vue"]]),__default__$E={name:"StickyCTA"},_sfc_main$F=Object.assign(__default__$E,{props:{},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,{pageProperties:a}=useGlobalAEMState$1(),i=useEventBus("mhh-booking-widget:booking"),s=ref$1(!1),{y:l}=useWindowScroll(),d=window.innerHeight*.8,c=f=>{document.querySelector(".MHHBookingWidget")&&(MHScrollToElement(document.querySelector(".MHHBookingWidget")),i.emit("activate-first-tab"))};watch(l,f=>{f>=d?s.value||(s.value=!0):s.value&&(s.value=!1)},{immediate:!0});const u={props:e,emit:n,pageProperties:a,globalMHHBookingBus:i,isVisible:s,scrollY:l,SCROLL_Y_THRESHOLD:d,handleClick:c,get useGlobalAEMState(){return useGlobalAEMState$1},get useWindowScroll(){return useWindowScroll},get useEventBus(){return useEventBus},FontAwesomeLazy,get isMobileViewport(){return isMobileViewport},CTAButton,get MHScrollToElement(){return MHScrollToElement}};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),_hoisted_1$G=["aria-label"],_hoisted_2$B=["src"],_hoisted_3$j={class:"sticky-cta-text text-base mr-6 flex-shrink-0 truncate"},_hoisted_4$e={key:1};function _sfc_render$F(t,o,r,e,n,a){const i=resolveDirective("aa");return e.isMobileViewport?(openBlock(),createElementBlock("div",_hoisted_4$e,[(openBlock(),createBlock(Teleport,{to:"body"},[createBaseVNode("div",{class:normalizeClass(["sticky-cta-mobile-bottom-bar",{transform:!e.isVisible}])},[withDirectives(createVNode(e.CTAButton,{containerClass:"pt-4 pb-4",containerStyle:"--focus-visible-outline-offset: -1px;",sizeType:"small",styleType:"primary",ctaText:e.pageProperties.stickyCTAText,style:{"background-color":"var(--secondary-mhh-pink-base)","border-color":"var(--secondary-mhh-pink-base)"},onClick:e.handleClick},null,8,["ctaText"]),[[i,[]]])],2)]))])):(openBlock(),createElementBlock("div",{key:0,class:"StickyCTA",style:normalizeStyle({"--btn-size":e.isVisible?void 0:"0px"}),"aria-label":t.$t("Book a holiday now!"),onClick:e.handleClick},[createBaseVNode("div",{style:normalizeStyle({"background-color":e.isVisible?"var(--secondary-mhh-pink-base)":"transparent"}),class:"sticky-cta-container flex flex-row items-center text-white"},[e.pageProperties.stickyCTAIconType==="fontAwesome"?(openBlock(),createBlock(e.FontAwesomeLazy,{key:0,iconId:e.pageProperties.stickyCTAFontAwesomeId?e.pageProperties.stickyCTAFontAwesomeId:null,iconStyle:"light",class:"sticky-cta-icon"},null,8,["iconId"])):(openBlock(),createElementBlock("img",{key:1,src:e.pageProperties.stickyIconImage,class:"sticky-cta-icon"},null,8,_hoisted_2$B)),createBaseVNode("div",_hoisted_3$j,[createBaseVNode("span",null,toDisplayString(e.pageProperties.stickyCTAText),1)])],4)],12,_hoisted_1$G))}const StickyCTA=_export_sfc(_sfc_main$F,[["render",_sfc_render$F],["__scopeId","data-v-545d00b2"],["__file","StickyCTA.vue"]]),__default__$D={name:"MHHDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$E=Object.assign(__default__$D,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState(),e=computed(()=>{var a;return(a=r.value)!=null&&a.enableStickyCTA?r.value.enableStickyCTA:!1}),n={pageProperties:r,isStickyCTAEnabled:e,ExperienceFragment,BtnBackToTop,StickyCTA};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$F={class:"MHHDefaultLayout flex flex-col min-h-screen","data-layout":"MHHDefault"},_hoisted_2$A={key:0,class:"floating-bottom-right-sticky-cta"},_hoisted_3$i={key:1,class:"floating-bottom-right-container"};function _sfc_render$E(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$F,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/header-deals/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),o[2]||(o[2]=createBaseVNode("div",{id:"booking-subpage-container"}
1192,null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),e.isStickyCTAEnabled?(openBlock(),createElementBlock("div",_hoisted_2$A,[createVNode(e.StickyCTA)])):(openBlock(),createElementBlock("div",_hoisted_3$i,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)])),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/footer/master"})])}const MHHDefaultLayout=_export_sfc(_sfc_main$E,[["render",_sfc_render$E],["__scopeId","data-v-16cb5d0f"],["__file","MHHDefaultLayout.vue"]]),__default__$C={name:"MHHHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$D=Object.assign(__default__$C,{setup(t,{expose:o}){o();const r=ref$1(null),{isEditorMode:e}=useGlobalAEMState$1(),n={rootEl:r,isEditorMode:e,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$E={ref:"rootEl",class:"MHHHomepageLayout flex flex-col min-h-screen","data-layout":"MHHHomepage"},_hoisted_2$z={class:"floating-bottom-right-container"};function _sfc_render$D(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$E,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/header-deals/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),o[2]||(o[2]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$z,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/mhh/$country/$lang/site/footer/master"})],512)}const MHHHomepageLayout=_export_sfc(_sfc_main$D,[["render",_sfc_render$D],["__scopeId","data-v-9e85aac9"],["__file","MHHHomepageLayout.vue"]]),generateXfPath=({siteName:t,xfComponentId:o})=>t==="MABA"?`/content/experience-fragments/maba/$lang/site/${o}/master`:t==="MAS-KARGO-LOGISTICS"?`/content/experience-fragments/mas-kargo-logistics/$lang/site/${o}/master`:t==="MABES-TRAINING"?`/content/experience-fragments/mabes-training/$lang/site/${o}/master`:`/content/experience-fragments/mabes/$lang/site/${o}/master`,__default__$B={name:"MABAHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$C=Object.assign(__default__$B,{setup(t,{expose:o}){o();const r=ref$1(null),{isEditorMode:e}=useGlobalAEMState$1(),n=window.siteName,a={rootEl:r,isEditorMode:e,siteName:n,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get gsap(){return gsapWithCSS},get useEventBus(){return useEventBus},get generateXfPath(){return generateXfPath},Carousel};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),_hoisted_1$D={ref:"rootEl",class:"MABAHomepageLayout flex flex-col min-h-screen","data-layout":"MABAHomepage"},_hoisted_2$y={class:"floating-bottom-right-container"};function _sfc_render$C(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$D,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"header-notification"})},null,8,["xfPath"]),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"header"})},null,8,["xfPath"]),o[1]||(o[1]=createBaseVNode("div",{id:"content"}
1192,null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$y,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"cookies-notification"})},null,8,["xfPath"]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"footer"})},null,8,["xfPath"])],512)}const MABAHomepageLayout=_export_sfc(_sfc_main$C,[["render",_sfc_render$C],["__scopeId","data-v-917a1a9c"],["__file","MABAHomepageLayout.vue"]]),__default__$A={name:"MABADefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$B=Object.assign(__default__$A,{setup(t,{expose:o}){o();const e={siteName:window.siteName,ExperienceFragment,BtnBackToTop,get generateXfPath(){return generateXfPath}};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}}),_hoisted_1$C={class:"MABADefaultLayout flex flex-col min-h-screen","data-layout":"MABADefault"},_hoisted_2$x={class:"floating-bottom-right-container"};function _sfc_render$B(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$C,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"header-notification"})},null,8,["xfPath"]),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"header"})},null,8,["xfPath"]),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$x,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"cookies-notification"})},null,8,["xfPath"]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"footer"})},null,8,["xfPath"])])}const MABADefaultLayout=_export_sfc(_sfc_main$B,[["render",_sfc_render$B],["__scopeId","data-v-7e1e8c2e"],["__file","MABADefaultLayout.vue"]]),__default__$z={name:"MABAArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$A=Object.assign(__default__$z,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=window.siteName,n=computed(()=>{var l,d;return(d=(l=r.value)==null?void 0:l.articlePageProperties)!=null&&d.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),a=computed(()=>{var l,d;return(d=(l=r.value)==null?void 0:l.articlePageProperties)!=null&&d.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),i=computed(()=>{var l,d;return(d=(l=r.value)==null?void 0:l.articlePageProperties)!=null&&d.categoryTags?r.value.articlePageProperties.categoryTags.map(c=>c.title).join(", "):""}),s={pageProperties:r,siteName:e,articleTitle:n,articleDate:a,articleTags:i,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop,get generateXfPath(){return generateXfPath}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$B={class:"MABAArticleLayout flex flex-col min-h-screen","data-layout":"MABAArticle"},_hoisted_2$w={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$h={class:"generic-container"},_hoisted_4$d={class:"generic-container my-12"},_hoisted_5$b={key:0,class:"heading-2 mb-5"},_hoisted_6$b={class:"text-primary-blue-base font-medium uppercase"},_hoisted_7$b={key:0,class:"article-date",dir:"ltr"},_hoisted_8$b={class:"article-category"},_hoisted_9$9={class:"floating-bottom-right-container"};function _sfc_render$A(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$B,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"header-notification"})},null,8,["xfPath"]),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"header"}),disableTransparency:!0},null,8,["xfPath"]),o[2]||(o[2]=createBaseVNode("div",{class:"sticky-spacer h-$headerHeight"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"content"},null,-1)),o[4]||(o[4]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$w,[createBaseVNode("div",_hoisted_3$h,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$d,[e.articleTitle?(
1192openBlock(),createElementBlock("h1",_hoisted_5$b,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$b,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$b,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$b,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_9$9,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"cookies-notification"})},null,8,["xfPath"]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"footer"})},null,8,["xfPath"])])}const MABAArticleLayout=_export_sfc(_sfc_main$A,[["render",_sfc_render$A],["__scopeId","data-v-4c4d3ce6"],["__file","MABAArticleLayout.vue"]]),__default__$y={name:"AmalHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$z=Object.assign(__default__$y,{setup(t,{expose:o}){o();const r=ref$1(null),{isEditorMode:e}=useGlobalAEMState$1(),n={rootEl:r,isEditorMode:e,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$A={ref:"rootEl",class:"AmalHomepageLayout flex flex-col min-h-screen","data-layout":"AmalHomepage"},_hoisted_2$v={class:"floating-bottom-right-container"};function _sfc_render$z(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$A,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/amal/$country/$lang/site/header-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/amal/$country/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),o[2]||(o[2]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$v,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/amal/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/amal/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/amal/$country/$lang/site/footer/master"})],512)}const AmalHomepageLayout=_export_sfc(_sfc_main$z,[["render",_sfc_render$z],["__scopeId","data-v-e5bf9cd8"],["__file","AmalHomepageLayout.vue"]]),__default__$x={name:"AmalDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$y=Object.assign(__default__$x,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState(),e=computed(()=>{var a;return(a=r.value)!=null&&a.enableStickyCTA?r.value.enableStickyCTA:!1}),n={pageProperties:r,isStickyCTAEnabled:e,ExperienceFragment,BtnBackToTop,StickyCTA};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$z={class:"AmalDefaultLayout flex flex-col min-h-screen","data-layout":"AmalDefault"},_hoisted_2$u={class:"floating-bottom-right-container"};function _sfc_render$y(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$z,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/amal/$country/$lang/site/header-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/amal/$country/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),o[2]||(o[2]=createBaseVNode("div",{id:"booking-subpage-container"}
1192,null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$u,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/amal/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/amal/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/amal/$country/$lang/site/footer/master"})])}const AmalDefaultLayout=_export_sfc(_sfc_main$y,[["render",_sfc_render$y],["__scopeId","data-v-74d0ba14"],["__file","AmalDefaultLayout.vue"]]),__default__$w={name:"AmalArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$x=Object.assign(__default__$w,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),n=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),a=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.categoryTags?r.value.articlePageProperties.categoryTags.map(d=>d.title).join(", "):""}),i={pageProperties:r,articleTitle:e,articleDate:n,articleTags:a,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$y={class:"AmalArticleLayout flex flex-col min-h-screen","data-layout":"AmalArticle"},_hoisted_2$t={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$g={class:"generic-container"},_hoisted_4$c={class:"generic-container my-12"},_hoisted_5$a={key:0,class:"heading-2 mb-5"},_hoisted_6$a={class:"text-primary-blue-base font-semibold uppercase"},_hoisted_7$a={key:0,class:"article-date",dir:"ltr"},_hoisted_8$a={class:"article-category"},_hoisted_9$8={class:"floating-bottom-right-container"};function _sfc_render$x(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$y,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/amal/$country/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{headerAlwaysOpaque:!0,class:"global-header",xfPath:"/content/experience-fragments/amal/$country/$lang/site/header/master"}),o[2]||(o[2]=createBaseVNode("div",{class:"sticky-spacer h-$headerHeight"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"content"},null,-1)),o[4]||(o[4]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$t,[createBaseVNode("div",_hoisted_3$g,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$c,[e.articleTitle?(openBlock(),createElementBlock("h1",_hoisted_5$a,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$a,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$a,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$a,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_9$8,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/amal/$country/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/amal/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/amal/$c
1192ountry/$lang/site/footer/master"})])}const AmalArticleLayout=_export_sfc(_sfc_main$x,[["render",_sfc_render$x],["__scopeId","data-v-acc5c280"],["__file","AmalArticleLayout.vue"]]),__default__$v={name:"FireflyHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$w=Object.assign(__default__$v,{setup(t,{expose:o}){o();const r=ref$1(null),{isEditorMode:e}=useGlobalAEMState$1(),n={rootEl:r,isEditorMode:e,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get gsap(){return gsapWithCSS},get useEventBus(){return useEventBus},Carousel};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$x={ref:"rootEl",class:"FireflyHomepageLayout flex flex-col min-h-screen","data-layout":"FireflyHomepage"},_hoisted_2$s={class:"floating-bottom-right-container"};function _sfc_render$w(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$x,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/header/master"}),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$s,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/footer/master"})],512)}const FireflyHomepageLayout=_export_sfc(_sfc_main$w,[["render",_sfc_render$w],["__scopeId","data-v-543013c6"],["__file","FireflyHomepageLayout.vue"]]),__default__$u={name:"BookFlight",inheritAttrs:!1},_sfc_main$v=Object.assign(__default__$u,{props:{hideTodayDateIndicator:{type:Boolean,default:!1},subHeaderTabDescription:{type:String,default:""},subHeaderTabTooltipBody:{type:String,default:""},subHeaderTabTooltipLabel:{type:String,default:""},note:{type:String,default:""},searchFlightCTAText:{type:String,default:i18nGlobal.t("Search flight")},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},passengerSelection:{type:Object,default:null},promoCodeLabel:{type:String,default:null},promoCodeErrorMessage:{type:String,default:i18nGlobal.t("Conditions not met for promo code to be applied")},supersedePromoCode:{type:String,default:null},bstNoteTop:{type:String,default:""},bstNoteCTAText:{type:String,default:""},bstNoteCTAURL:{type:String,default:""},subHeaderTooltipCTATextMobileLabel:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},passengerSelectionQuestion:{type:String,default:""},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},togglePointsApiURL:{type:String,default:""},enableMattaToggleButton:{type:Boolean,default:!1},mattaToggleButtonLabel:{type:String,default:""},hideEnrichToggle:{type:Boolean,default:!1},hidePromoCodeField:{type:Boolean,default:!1},enrichAlwaysOn:{type:Boolean,default:!1},enrichAlwaysOnCountriesData:{type:Array,default:()=>[]},loggedInMessageNote:{type:String,default:""},nonLoggedInMessageNote:{type:String,default:""},currencyLabel:{type:String,default:""},defaultCurrency:{type:String,default:""},componentIdAA:{type:String,default:""}},emits:["save-search-data","form-submission"],setup(t,{expose:o,emit:r}){var pt;const e=t,n=r,{isRTL:a}=useIsRTL(),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null),c=ref$1(null),u=ref$1(null),f=ref$1(null),m=ref$1(null),b=ref$1(null),y=ref$1(null),_=ref$1(e.defaultCurrency),S=ref$1(!1),C=ref$1(""),{pageProperties:T,isEditorMode:x}=useGlobalAEMState$1(),k=ref$1(!0),E=ref$1(!1),w=ref$1(!1),D=T.value.rootCountry,N=T.value.rootLanguage,F=ref$1(!1),V=ref$1(null),A=ref$1(!1),{isSapphire
1192CookiePresent:M}=useAuthStore(),O=Ne=>Ne.charAt(0).toUpperCase()+Ne.slice(1),R=computed(()=>e.enrichAlwaysOn&&!M()&&e.nonLoggedInMessageNote),I=(pt=T==null?void 0:T.value)==null?void 0:pt.lowFareApiUrl,j=ref$1(!1),{priceData:H,currency:U,returnTypeDepartureDateAndFare:B}=useLowFarePriceList({originRef:m,destinationRef:b,departureDateRef:u,paymentTypeRef:S,endpointUrl:I,isOneWayRef:j}),L=Ne=>{j.value=Ne},{isLoggedIn:z,isAuthStateReady:W}=useAuthStore(),{hash:J,hashQuery:te}=useRouteHash(),re="sapphire";C.value=getCookie(re)??null;const oe=ref$1(null),X=async(Ne,Je)=>{if(console.log("✅ handleSubmitValid values = ",Ne),await he(y.value),A.value)return!1;const $e={payByEnrichPoints:S.value,dateRangeValueFrom:u.value,dateRangeValueTo:f.value,isOneWay:!f.value,ondValueFrom:m.value,ondValueTo:b.value,currencyValue:_.value,promoCodeValue:(e==null?void 0:e.supersedePromoCode)??y.value,userInputPromoCode:y.value||"",supportedCurrencies:m.value.supportedCurrencies,defaultCurrency:m.value.defaultCurrency,adultsCount:l.value.adults.count.value,infantsCount:l.value.infants.count.value};F&&y.value!==""&&($e.DBPromoCode=V.value),n("save-search-data",$e),n("form-submission",$e);try{const st={type:$e.isOneWay?"2":"1",departure_station:$e.ondValueFrom.code,arrival_station:$e.ondValueTo.code,departure_date:dayjs($e.dateRangeValueFrom).format("DD/MM/YYYY"),return_date:!$e.isOneWay&&$e.dateRangeValueTo?dayjs($e.dateRangeValueTo).format("DD/MM/YYYY"):"",adult:$e.adultsCount.toString(),infant:$e.infantsCount.toString(),organization_code:"TEST",currency_code:$e.currencyValue||"MYR",Source:"Corporate"};$e!=null&&$e.DBPromoCode?(st.promotion_code=$e.DBPromoCode,st.promo2=$e.userInputPromoCode):($e!=null&&$e.userInputPromoCode||$e!=null&&$e.promoCodeValue)&&(st.promotion_code=$e.userInputPromoCode?$e.userInputPromoCode:$e.promoCodeValue);const bt={RadioButtonMarketStructure:$e.isOneWay?"OneWay":"RoundTrip",TextBoxMarketOrigin1:$e.ondValueFrom.code,TextBoxMarketDestination1:$e.ondValueTo.code,DropDownListMarketMonth1:dayjs($e.dateRangeValueFrom).format("YYYY-MM"),DropDownListMarketDay1:dayjs($e.dateRangeValueFrom).format("DD"),DropDownListMarketMonth2:!$e.isOneWay&&$e.dateRangeValueTo?dayjs($e.dateRangeValueTo).format("YYYY-MM"):"",DropDownListMarketDay2:!$e.isOneWay&&$e.dateRangeValueTo?dayjs($e.dateRangeValueTo).format("DD"):"",DropDownListPassengerType_ADT:$e.adultsCount.toString(),DropDownListPassengerType_INFANT:$e.infantsCount.toString(),DropDownListCurrency:$e.currencyValue||"MYR",OrganizationCode:"",Source:"Corporate"};$e!=null&&$e.DBPromoCode?(bt.TextBoxPromotionCode=$e.DBPromoCode,bt.promo2=$e.userInputPromoCode):($e!=null&&$e.userInputPromoCode||$e!=null&&$e.promoCodeValue)&&(bt.TextBoxPromotionCode=$e.userInputPromoCode?$e.userInputPromoCode:$e.promoCodeValue);const Bt=Object.entries(isMobileViewport.value?st:bt),rt="post",Ze=document.createElement("form");Ze.setAttribute("method",rt),Ze.setAttribute("action",e.flightSearchApiUrl);for(let[dt,[Ye,lt]]of Bt.entries()){const et=parseInt(Ye);let nt=document.createElement("input");nt.setAttribute("type","hidden"),nt.setAttribute("name",Ye),nt.setAttribute("value",lt),Ze.appendChild(nt)}document.body.appendChild(Ze),Ze.submit()}catch(st){console.error("handleSubmitValid, ","Unable to fetch api",JSON.stringify(st));const{statusCode:bt,message:Bt}=st.response.data;bt===400&&(oe.value.setErrors(i18nGlobal.t(Bt)),Se({errorMsg:i18nGlobal.t(Bt)}))}},se=()=>{F.value=!1,V.value=null,A.value=!1},le=()=>{A.value=!1},he=async Ne=>{if(Ne){se();try{const Je=await axios$1.get("/bin/mh/revamp/firefly/promocodecheck",{params:{promoCode:Ne}});Je.data.status.toUpperCase()==="EXIST"?(F.value=!0,V.value=Je.data.promoCode):Je.data.status.toUpperCase()==="USED"?A.value=!0:A.value=!1}catch(Je){console.log(`Promo Code Api Failed Error => ${Je}`)}finally{}}},ge=({values:Ne,errors:Je,results:$e,evt:st})=>{console.log("❌ handleSubmitInvalid errors = ",Je)},Q=()=>{ae.value||(k.value=!0)},Y=()=>{},ne=computed(()=>{var $e;const Ne=i.value;if(!Ne)return!0;const Je=($e=d.value)==null?void 0:$e.isOneWay;return!Ne.values.locationFrom||!Ne.values.locationTo||!Ne.values.dateDeparture||!Je&&!Ne.values.dateReturn||Object.keys(Ne.errors).length!==0}),Ce=useEventBus("booking-widget"),ae=ref$1(!1);Ce.on((Ne,Je)=>{switch(Ne){case"sticky:sticked":{ae.value=!0;break}case"sticky:unsticked":{ae.value=!1;break}}});const Be=()=>{},me=(Ne,Je=null)=>{const $e=dayjs(),st=$e.add(ve.value,"day"),bt=dayjs(Ne),Bt=dayjs(Je);return!(bt.isValid()===!1||Je&&Bt.isValid()===!1||bt.isBefore($e,"day")||Je&&Bt.isAfter(st,"day"))},K=({from:Ne,to:Je=null,isOneWay:$e=!1}={})=>{var st,bt;me(Ne,$e?null:Je)?(u.value=dayjs(Ne).format("YYYY-MM-DD"),f.value=(Je&&dayjs(Je).format("YYYY-MM-DD"))??null):(u.value=null,f.value=null,(bt=(st=d.value)==null?void 0:st.inputElFrom)==null||bt.resetField(),nextTick$1().then(()=>{var Bt,rt,Ze,dt;try{(rt=(Bt=d.value)==null?void 0:Bt.inputElFrom)==null||rt.setTouched(!0),(dt=(Ze=d.value)==null?void 0:Ze.inputElFrom)==null||dt.setErrors(i18nGlobal.t("The selected dates are no longer valid. Please reselect."))}catch{}}))},q=Ne=>{var Je;m.value=Ne.ondValueFrom,b.value=Ne.ondValueTo,"defaultCurrency"in Ne&&nextTick$1(()=>{_.value=Ne.defaultCurrency}),K({from:Ne.dateRangeValueFrom,to:Ne.dateRangeValueTo||null,isOneWay:!!Ne.isOneWay}),y.value=Ne.promoCodeValue,(Je=l.value)==null||Je.setValues({adults:Ne.adultsCount,infants:Ne.infantsCount}),d.value.handleSetIsOneWay(!!Ne.isOneWay)}
1192,{commitDataToBSTOverlay:Z,registerNotifier:de}=useBSTOverlayInterimData();de("book-flight",async Ne=>{var Je;m.value=Ne.ondValueFrom,b.value=Ne.ondValueTo,u.value=Ne.dateRangeValueFrom,f.value=Ne.dateRangeValueTo,(Je=l.value)==null||Je.setValues({adults:Ne.adultsCount,teens:Ne.teensCount,children:Ne.childrenCount,infants:Ne.infantsCount,cabinClass:Ne.cabinClassValue}),d.value.handleSetIsOneWay(!!Ne.isOneWay)});const fe=0,_e=361,pe=computed(()=>{const Ne=e.datePicker;return!(Ne!=null&&Ne.departureDateConfig)||typeof(Ne==null?void 0:Ne.departureDateConfig)!="number"?fe:Ne==null?void 0:Ne.departureDateConfig}),ve=computed(()=>{const Ne=e.datePicker;return(Ne==null?void 0:Ne.typeOfFutureSelectableDays)==="date-picker"&&(Ne!=null&&Ne.futureDate)?Math.floor(dayjs(Ne==null?void 0:Ne.futureDate).diff(dayjs(),"day",!0))+1:(Ne==null?void 0:Ne.numberOfDays)??_e}),{registerQueryChange:Me}=useBookingWidgetUrlQuery({mainTabName:"flight-search-tab",subTabName:"book-flight"});Me(async Ne=>{var Je;Ne&&(m.value=Ne.locationFrom,b.value=Ne.locationTo,nextTick$1().then(async()=>{var $e,st;await(($e=c.value)==null?void 0:$e.updateFromValue()),(st=c.value)==null||st.updateToValue()}),K({from:Ne.dateDeparture,to:Ne.dateReturn||null,isOneWay:Ne.isOneWay==="true"}),y.value=Ne.promoCode??null,await nextTick$1(),(Je=l.value)==null||Je.setValues({...Ne.adultsCount?{adults:parseInt(Ne.adultsCount)}:null,...Ne.infantsCount?{infants:parseInt(Ne.infantsCount)}:null}),Ne.isOneWay==="true"&&d.value.handleSetIsOneWay(!!Ne.isOneWay))});const Fe=async Ne=>{const{locationFrom:Je,locationTo:$e}=Ne;Je&&(m.value=Je),$e&&(b.value=$e),nextTick$1().then(async()=>{var st,bt;await((st=c.value)==null?void 0:st.updateFromValue()),(bt=c.value)==null||bt.updateToValue()})},Te=ref$1(!1);watch([m,b],async Ne=>{var Je;Te.value=useIsUkVariant({origin:m.value,destination:b.value}),!Te.value&&((Je=l.value)==null||Je.setValues({teens:0}))});const Se=({errorMsg:Ne})=>{const Je={errorName:Ne},$e={name:e.promoCodeLabel,type:"other"};pushAA_searchError([Je,$e])};useSyncPassengerDetails(l),o({restorePastSearch:q,updateLocationFromTo:Fe,isExpanded:k});const Ae=Ne=>{var Je,$e;Ne&&!isMobileViewport.value&&(($e=(Je=d.value)==null?void 0:Je.inputElFrom)==null||$e.focus())},ue=computed(()=>{const Ne=[{label:e.defaultCurrency,value:e.defaultCurrency}];return m.value!==null?m.value.supportedCurrencies.split(", ").map($e=>({label:$e,value:$e})):Ne}),ye=Ne=>{let Je=yup.string().nullable().max(8,e.promoCodeErrorMessage);try{return Je.validateSync(Ne),!0}catch($e){return $e.errors[0]}},Xe=computed(()=>{var Ne,Je,$e,st;return e.ondSelection?{NEAR_YOU:(Ne=e.ondSelection)==null?void 0:Ne.nearYouLabel,POPULAR_DEST:(Je=e.ondSelection)==null?void 0:Je.popularDestinationsLabel,WITH_MH:($e=e.ondSelection)==null?void 0:$e.withFireflyLabel,CODESHARE:(st=e.ondSelection)==null?void 0:st.withCodeShareAndPartnerNetworkLabel,EMPTY_LABEL:" "}:null}),De=Ne=>{nextTick$1(()=>{Ne!=null&&Ne.defaultCurrency?_.value=Ne.defaultCurrency:_.value=e.defaultCurrency})},ke=computed(()=>i.value!==null?i.value.errors.promoCode:null);watch(ke,Ne=>{Ne&&Se({errorMsg:Ne})});const ze=ref$1(0);watch(f,Ne=>{var Je;if(Ne&&m.value&&b.value&&f.value&&H.value&&H.value[f.value]&&((Je=B==null?void 0:B.value)!=null&&Je.totalFareAmount)){ze.value=parseInt(B.value.totalFareAmount)+parseInt(H.value[f.value]);return}ze.value=0});const qe=computed(()=>!U.value&&!ze.value?"":`${U.value} ${formatNumberWithAbbreviation(ze.value)}`),ht={props:e,emit:n,isRTL:a,formWrapper:i,rootEl:s,passengerAndCabinClassEl:l,dateRangePickerEl:d,ondPickerEl:c,dateRangeValueFrom:u,dateRangeValueTo:f,ondValueFrom:m,ondValueTo:b,promoCodeValue:y,currencyValue:_,payByEnrichPoints:S,token:C,pageProperties:T,isEditorMode:x,isExpanded:k,enrichAlwaysOnEligibility:E,optEnrichAlwaysOnOffer:w,country:D,language:N,isPromoCodePresentInDB:F,DBPromoCode:V,isPromoCodeUsed:A,isSapphireCookiePresent:M,capitalizeString:O,showAlwaysOnEnrichNonLoginMsg:R,lowFareApiUrl:I,isOneWay:j,dateRangePriceData:H,currency:U,departureDateAndFare:B,handleWatchIsOneWay:L,isLoggedIn:z,isAuthStateReady:W,hash:J,hashQuery:te,SAPPHIRE_COOKIE:re,promoCodeTextField:oe,handleSubmitValid:X,resetPromoCodeValues:se,resetPromoCodeError:le,promoCodeValidator:he,handleSubmitInvalid:ge,handleFormFocusWithin:Q,handleFormBlurWithin:Y,isBtnSubmitDisabled:ne,bookingWidgetBus:Ce,isSticked:ae,handleExpandTransitionEnd:Be,areDatesValid:me,validateAndRestoreDates:K,restorePastSearch:q,commitDataToBSTOverlay:
1192Z,registerNotifier:de,defaultMinDate:fe,defaultMaxDate:_e,datePickerMinAllowedFutureDays:pe,datePickerMaxAllowedFutureDays:ve,registerQueryChange:Me,updateLocationFromTo:Fe,isUKVariant:Te,triggerAA_searchError:Se,focusToDatePicker:Ae,currencyDropdownList:ue,promoFieldValidationFunc:ye,groupLabelsOverwrite:Xe,setDropdownCurrencyDefautOption:De,formWrapperPromoCodeError:ke,sumPrice:ze,sumPriceWithCurrency:qe,ToggleSwitch,Tooltip,Dropdown,CTAButton,ONDPicker:ONDPicker$1,DateRangePicker,TextField,PassengerAndCabinClass:PassengerAndCabinClass$1,FormWrapper,AppHyperlink,get yup(){return yup},get dayjs(){return dayjs},get isMobileViewport(){return isMobileViewport},get isXXXL(){return isXXXL},TransitionHeight,get useGlobalAEMState(){return useGlobalAEMState$1},get useRouteHash(){return useRouteHash},get useEventBus(){return useEventBus},get useBSTOverlayInterimData(){return useBSTOverlayInterimData},get i18nGlobal(){return i18nGlobal},get useIsUkVariant(){return useIsUkVariant},get useSyncPassengerDetails(){return useSyncPassengerDetails},get useAuthStore(){return useAuthStore},get getCookie(){return getCookie},get useLowFarePriceList(){return useLowFarePriceList},get isUrlMatchCurrentHostname(){return isUrlMatchCurrentHostname},get formatNumberWithAbbreviation(){return formatNumberWithAbbreviation},get waitFor(){return waitFor},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get pushAA_searchError(){return pushAA_searchError},get useIsRTL(){return useIsRTL}};return Object.defineProperty(ht,"__isScriptSetup",{enumerable:!1,value:!0}),ht}}),_hoisted_1$w={ref:"rootEl",class:"BookFlight"},_hoisted_2$r={key:0,class:"mb-5"},_hoisted_3$f={class:"flex items-center"},_hoisted_4$b={class:"flex gap-6 lg:flex-col"},_hoisted_5$9={class:"w-6/10 lg:w-full"},_hoisted_6$9={class:"w-4/10 lg:w-full"},_hoisted_7$9={key:0},_hoisted_8$9={key:1},_hoisted_9$7={class:"flex mt-4 lg:mt-6 gap-6 lg:flex-col"},_hoisted_10$5={class:"flex flex-grow gap-6 lg:flex-col w-6/10 lg:w-full"},_hoisted_11$5={key:0,class:"w-4/10 lg:w-full"},_hoisted_12$4={key:0,class:"text-semantic-red-base text-sm"},_hoisted_13$4={class:"w-4/10 lg:w-full flex lg:flex-col gap-6 ml-auto lg:ml-0"},_hoisted_14$4={class:"w-6/10 lg:w-full"},_hoisted_15$3={class:"w-max-4/10 lg:w-full >lg:flex"},_hoisted_16$3={key:0,class:"bg-secondary-firefly-orange-ultralight text-primary-firefly-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_17$3={class:"text-sm"},_hoisted_18$3={key:1,class:"bg-primary-blue-extralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_19$3={class:"text-sm"},_hoisted_20$3={key:2,class:"flex mt-6"},_hoisted_21$3={class:"rounded-xl bg-secondary-teal-extralight flex-grow px-5 py-4"};function _sfc_render$v(t,o,r,e,n,a){const i=__unplugin_components_1$c,s=resolveDirective("html-sanitize"),l=resolveDirective("aa"),d=resolveDirective("focus-within");return openBlock(),createElementBlock("div",_hoisted_1$w,[withDirectives((openBlock(),createBlock(e.FormWrapper,{ref:"formWrapper",class:"lg:mt-0",tabindex:"-1",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid,onFocusWithin:e.handleFormFocusWithin,onBlurWithin:e.handleFormBlurWithin},{default:withCtx(({errors:c})=>{var u,f,m,b,y,_,S,C,T,x,k,E;return[createBaseVNode("div",null,[e.props.subHeaderTabDescription?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$r,null,512)),[[s,e.props.subHeaderTabDescription]]):createCommentVNode("",!0),e.props.subHeaderTabTooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$f,[createVNode(i,{class:"fill-secondary-firefly-orange-extradark mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.subHeaderTabTooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipBody),1)]),"mobile-cta-label":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTooltipCTATextMobileLabel),
11921)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$b,[createBaseVNode("div",_hoisted_5$9,[createVNode(e.ONDPicker,{ref:"ondPickerEl",modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":[o[0]||(o[0]=w=>e.ondValueFrom=w),e.setDropdownCurrencyDefautOption],modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":[o[1]||(o[1]=w=>e.ondValueTo=w),e.focusToDatePicker],nameFrom:"locationFrom",nameTo:"locationTo",ondListIdentifier:e.payByEnrichPoints?"FLIGHT_SEARCH_ENRICH":"FLIGHT_SEARCH_CASH",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(u=e.props.ondSelection)==null?void 0:u.fromSearchErrorMessage,requiredErrorMsgTo:(f=e.props.ondSelection)==null?void 0:f.toSearchErrorMessage,labelTextFrom:(m=e.props.ondSelection)==null?void 0:m.fromLabel,labelTextTo:(b=e.props.ondSelection)==null?void 0:b.toLabel,noResultsText:(y=e.props.ondSelection)==null?void 0:y.noResultMessage,groupLabelsOverwrite:e.groupLabelsOverwrite},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","ondListIdentifier","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","noResultsText","groupLabelsOverwrite"])]),createBaseVNode("div",_hoisted_6$9,[createVNode(e.DateRangePicker,{ref:"dateRangePickerEl",modelValueFrom:e.dateRangeValueFrom,"onUpdate:modelValueFrom":o[2]||(o[2]=w=>e.dateRangeValueFrom=w),modelValueTo:e.dateRangeValueTo,"onUpdate:modelValueTo":o[3]||(o[3]=w=>e.dateRangeValueTo=w),priceData:e.dateRangePriceData,textFieldAttrsFrom:{ariaLabel:((_=e.props.datePicker)==null?void 0:_.departureDateLabel)??t.$t("Depart"),placeholder:t.$t("Select a date")},textFieldAttrsTo:{ariaLabel:((S=e.props.datePicker)==null?void 0:S.returnDateLabel)??t.$t("Return"),placeholder:t.$t("Select a date")},minDate:`t+${e.datePickerMinAllowedFutureDays}d`,maxDate:`t+${e.datePickerMaxAllowedFutureDays}d`,minDateFromAfterSelectingTo:"t",disablePastDates:!0,nameFrom:"dateDeparture",nameTo:"dateReturn",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(C=e.props.datePicker)==null?void 0:C.invalidDateErrorMessage,requiredErrorMsgTo:(T=e.props.datePicker)==null?void 0:T.invalidDateErrorMessage,labelReset:((x=e.props.datePicker)==null?void 0:x.resetButtonCTAText)??t.$t("Reset"),labelDone:((k=e.props.datePicker)==null?void 0:k.doneCTAText)??t.$t("Done"),labelOneWay:((E=e.props.datePicker)==null?void 0:E.oneWayCTAText)??t.$t("One-way"),isHideTodayIndicator:e.props.hideTodayDateIndicator,"onUpdate:isOneWay":e.handleWatchIsOneWay},createSlots({"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.datePickerQuestionMobile),1)]),_:2},[e.currency?{name:"before-cta-done",fn:withCtx(()=>[e.ondValueFrom&&!e.sumPrice?withDirectives((openBlock(),createElementBlock("span",_hoisted_7$9,null,512)),[[s,t.$t("Fare based on <strong>{currency}</strong>",{currency:e.currency})]]):createCommentVNode("",!0),e.ondValueFrom&&e.ondValueTo&&e.sumPrice?withDirectives((openBlock(),createElementBlock("span",_hoisted_8$9,null,512)),[[s,t.$t("Trip from <strong>{sumPriceWithCurrency}</strong> per adult",{sumPriceWithCurrency:e.sumPriceWithCurrency})]]):createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["modelValueFrom","modelValueTo","priceData","textFieldAttrsFrom","textFieldAttrsTo","minDate","maxDate","requiredErrorMsgFrom","requiredErrorMsgTo","labelReset","labelDone","labelOneWay","isHideTodayIndicator"])])])]),createVNode(e.TransitionHeight,{height:e.isExpanded||e.isEditorMode||e.isMobileViewport?"auto":0,class:normalizeClass(e.isExpanded||e.isEditorMode||e.isMobileViewport?"overflow-visible":""),transitionDuration:.175,onTransitionEnd:e.handleExpandTransitionEnd},{default:withCtx(()=>{var w,D,N,F;return[createBaseVNode("div",_hoisted_9$7,[createBaseVNode("div",_hoisted_10$5,[createBaseVNode("div",{class:normalizeClass(["w-6/10 lg:w-full",{"w-[100%]":e.props.hidePromoCodeField}])},[createVNode(e.PassengerAndCabinClass,{ref:"passengerAndCabinClassEl",labelText:(w=e.props.passengerSelection)==null?void 0:w.passengerAndCabinClassLabel,passengerLabel:(D=e.props.passengerSelection)==null?void 0:D.passengerLabel,adultLabel:(N=e.props.passengerSelection)==null?void 0:N.adultLabel,infantLabel:(F=e.props.passengerSelection)==null?void 0:F.infantLabel,isShowEconomyClass:!1,isShowBusinessClass:!1,isShowBusinessSuiteClass:!1,isUKVariant:e.useIsUkVariant({origin:e.ondValueFrom,destination:e.ondValueTo}),maxInfantsCount:4,isShowChildren:!1},{"adult-description-label":withCtx(()=>{var V;return[createTextVNode(toDisplayString((V=e.props.passengerSelection)==null?void 0:V.adultDescriptionLabel),1)]}),"infant-description-label":withCtx(()=>{var V;return[createTextVNode(toDisplayString((V=e.props.passengerSelection)==null?void 0:V.infantDescriptionLabel),1)]}),"after-passengers":withCtx(()=>{var V,A,M;return[createVNode(e.AppHyperlink,{class:"font-semibold after-passenger-link",href:(V=e.props.passengerSelection)==null?void 0:V.groupBookingPageURL,showExternalLinkIcon:(A=e.props.passengerSelection)==null?void 0:A.newTabAndExternalIcon,target:(M=e.props.passengerSelection)!=null&&M.newTabAndExternalIcon?"_blank":null},{default:withCtx(()=>{var O;return[createTextVNode(toDisplayString(((O=e.props.passengerSelection)==null?void 0:O.moreThan9PassengerDescription)||t.$t("More than 9 passengers?")),1)]}),_:1},8,["href","showExternalLinkIcon","target"])]}),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.passengerSelectionQuestion),1)]),_:1},8,["labelText","passengerLabel","adultLabel","infantLabel","isUKVariant"])],2),e.props.hidePromoCodeField?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$5,[createVNode(e.TextField,{ref:"promoCodeTextField",modelValue:e.promoCodeValue,"onUpdate:modelValue":o[4]||(o[4]=V=>e.promoCodeValue=V),name:"promoCode",variant:"booking-widget",ariaLabel:e.props.promoCodeL
1192abel,placeholder:"E.g. 8990",allowedKeys:/[a-zA-Z0-9]/,validation:e.promoFieldValidationFunc,onFocus:e.resetPromoCodeError},null,8,["modelValue","ariaLabel"]),e.isPromoCodeUsed?withDirectives((openBlock(),createElementBlock("p",_hoisted_12$4,null,512)),[[s,e.props.promoCodeErrorMessage]]):createCommentVNode("",!0)]))]),createBaseVNode("div",_hoisted_13$4,[createBaseVNode("div",_hoisted_14$4,[createVNode(e.Dropdown,{modelValue:e.currencyValue,"onUpdate:modelValue":o[5]||(o[5]=V=>e.currencyValue=V),name:"currency",desktopVariant:"booking-widget",mobileVariant:"booking-widget",options:e.currencyDropdownList,disabled:!e.ondValueFrom,labelText:"Currency","aria-label":"Currency"},null,8,["modelValue","options","disabled"])]),createBaseVNode("div",_hoisted_15$3,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"medium",isSubmit:!0,ctaSizing:"fluid",disabled:e.isBtnSubmitDisabled,class:"mx-0 !py-5 !px-6",containerClass:"w-full"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.searchFlightCTAText),1)]),_:1},8,["sizeType","disabled"])),[[l,[{clickName:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"BookFlight",componentID:e.props.componentIdAA},{name:e.props.searchFlightCTAText,type:"exit"}]]])])])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_16$3,[createVNode(i,{class:"fill-secondary-firefly-orange-extradark text-base"}),withDirectives(createBaseVNode("div",_hoisted_17$3,null,512),[[s,e.props.note]])])):createCommentVNode("",!0),e.showAlwaysOnEnrichNonLoginMsg?(openBlock(),createElementBlock("div",_hoisted_18$3,[createVNode(i,{class:"fill-primary-blue-base text-base"}),createBaseVNode("div",_hoisted_19$3,[createBaseVNode("p",null,toDisplayString(e.props.nonLoggedInMessageNote),1)])])):createCommentVNode("",!0),e.enrichAlwaysOnEligibility&&e.props.loggedInMessageNote?(openBlock(),createElementBlock("div",_hoisted_20$3,[createBaseVNode("div",_hoisted_21$3,[createVNode(e.ToggleSwitch,{modelValue:e.optEnrichAlwaysOnOffer,"onUpdate:modelValue":o[6]||(o[6]=V=>e.optEnrichAlwaysOnOffer=V),ariaLabel:e.props.loggedInMessageNote,name:"optEnrichAlwaysOnOffer"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",null,null,512),[[s,e.props.loggedInMessageNote]])]),_:1},8,["modelValue","ariaLabel"])])])):createCommentVNode("",!0)]}),_:1},8,["height","class"])]}),_:1})),[[d]])],512)}const BookFlight=_export_sfc(_sfc_main$v,[["render",_sfc_render$v],["__scopeId","data-v-911419b2"],["__file","BookFlight.vue"]]),__default__$t={name:"ContinueYourSearch"},_sfc_main$u=Object.assign(__default__$t,{props:{continueYourSearchLabel:{type:String,default:"Continue your search"},componentIdAA:{type:String,default:""}},emits:["restore-past-search"],setup(t,{expose:o,emit:r}){const e=t,n=r,a=ref$1([]);usePersistencyWithExpiry("flight-search:past-searches",{refs:{pastSearches:a}});const i=d=>{const c=Object.entries(d);let u=a.value;const f=a.value.findIndex(m=>c.every(([b,y])=>lodashExports.isEqual(unref(y),unref(m[b]))));f!==-1&&u.splice(f,1),a.value=[d,...u].slice(0,3)},s=computed(()=>!document.querySelector("#mobile-past-searches-container"));o({saveSearch:i});const l={props:e,emit:n,pastSearches:a,saveSearch:i,computedDisableTeleport:s,get dayjs(){return dayjs},VueSwiper,get usePersistencyWithExpiry(){return usePersistencyWithExpiry},get _isEqual(){return lodashExports.isEqual},get i18nGlobal(){return i18nGlobal}};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),_hoisted_1$v={key:0,class:"ContinueYourSearch overflow-hidden"},_hoisted_2$q={class:"md:hidden"},_hoisted_3$e={class:"typo-category-title mb-4 md:px-4 pt-8"},_hoisted_4$a={class:"continue-your-search-wrapper gap-6 lg:gap-3 w-full"},_hoisted_5$8=["onClick"],_hoisted_6$8={class:"flex flex-col"},_hoisted_7$8={class:"flex items-center flex-wrap"},_hoisted_8$8={class:"font-semibold"},_hoisted_9$6={class:"font-semibold"},_hoisted_10$4={class:"mt-2"},_hoisted_11$4={key:1},_hoisted_12$3={key:0,class:"mt-2"},_hoisted_13$3={class:"tag-label"},_hoisted_14$3={key:1,class:"mt-2"},_hoisted_15$2={class:"tag-label"},_hoisted_16$2={class:"mt-auto pt-3 flex items-center"},_hoisted_17$2={class:"inline-flex items-center mr-4 rtl:mr-0 rtl:ml-4"},_hoisted_18$2={class:">md:hidden -mx-4"},_hoisted_19$2={class:"typo-category-title continue-search-label text mb-4 md:px-4 pt-8"},_hoisted_20$2=["onClick"],_hoisted_21$2={class:"flex flex-col"},_hoisted_22$2={class:"flex items-center flex-wrap"},_hoisted_23$2={class:"font-semibold"},_hoisted_24$2={class:"font-semibold"},_hoisted_25$2={class:"mt-2"},_hoisted_26$2={key:1},_hoisted_27$2={key:0,class:"mt-2"},_hoisted_28$2={class:"tag-label"},_hoisted_29$2={key:1,class:"mt-2"},_hoisted_30$2={class:"tag-label"},_hoisted_31$2={class:"mt-auto pt-3 flex items-center"},_hoisted_32$2={class:"inline-flex items-center mr-4 rtl:mr-0 rtl:ml-4"};function _sfc_render$u(t,o,r,e,n,a){const i=__unplugin_components_2$4,s=__unplugin_components_0$9,l=__unplugin_components_0$5,d=resolveDirective("aa");return e.pastSearches&&e.pastSearches.length>0?(openBlock(),createElementBlock("div",_hoisted_1$v,[createBaseVNode("div",_hoisted_2$q,[createBaseVNode("p",_hoisted_3$e,toDisplayString(e.props.continueYourSearchLabel),1),createBaseVNode("div",_hoisted_4$a,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:u,type:"button",class:"continue-your-search-tile",onClick:f=>t.$emit("restore-past-search",c)},[createVNode(i,{class:"icon fill-neutral-grey-dark mr-3 rtl:mr-0 rtl:ml-3 mt-0.5"}),createBaseVNode("div",_hoisted_6$8,[createBaseVNode("div",_hoisted_7$8,[createBaseVNode("span",_hoisted_8$8,toDisplayString(c.ondValueFrom.displayValue),1),createVNode(s,{class:"fill-neutral-grey-dark mx-3 transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_9$6,toDisplayString(c.ondValueTo.displayValue),1)]),createBaseVNode("time",_hoisted_10$4,[c.dateRangeValueTo&&e.dayjs(c.dateRangeValueTo).isValid()?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY"),dateTo:e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")})),1)],64)):(openBlock(),createElementBlock("span",_hoisted_11$4,toDisplayString(e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")),1))]),c.isBSTTab?(openBlock(),createElementBlock("div",_hoisted_12$3,[createBaseVNode("div",_hoisted_13$3,toDisplayString(t.$t("Bonus Side Trip")),1)])):c.payByEnrichPoints?(openBlock(),createElementBlock("div",_hoisted_14$3,[createBaseVNode("div",_hoisted_15$2,toDisplayString(t.$t("Redemption")),1)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_16$2,[createBaseVNode("span",_hoisted_17$2,[createTextVNode(toDisplayString(c.adultsCount+c.infantsCount)+" ",1),createVNode(l,{class:"fill-neutral-grey-ultradark w-2.5 mx-2"})])])])],8,_hoisted_5$8)),[[d,[{clickName:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,type:"other"}]]])),128))])]),createBaseVNode("div",_hoisted_18$2,[(openBlock(),createBlock(Teleport,{to:"#mobile-past-searches-container",disabled:e.computedDisableTeleport},[createBaseVNode("p",_hoisted_19$2,toDisplayString(e.props.continueYourSearchLabel),1),createVNode(e.VueSwiper,{class:"mobile-swiper",slidesPerView:"auto",spaceBetween:16,variant:"slides-auto-width slides-auto-height",scrollbar:{draggable:!0,hide:!0},style:{"--tile-max-width":"260px"}},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pastSearches,(c,u)=>withDirectives((openBlock(),createElementBlock("button",{key:u,type:"button",class:"continue-your-search-tile",onClick:f=>t.$emit("restore-past-search",c)},[createVNode(i,{class:"icon fill-neutral-grey-dark mr-3 rtl:mr-0 rtl:ml-3 mt-0.5"}),createBaseVNode("div",_hoisted_21$2,[createBaseVNode("div",_hoisted_22$2,[createBaseVNode("span",_hoisted_23$2,toDisplayString(c.ondValueFrom.displayValue),1),createVNode(s,{class:"fill-neutral-grey-dark mx-3 transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_24$2,toDisplayString(c.ondValueTo.displayValue),1)]),createBaseVNode("time",_hoisted_25$2,[c.dateRangeValueTo&&e.dayjs(c.dateRangeValueTo).isValid()?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(t.$t("{dateFrom} to {dateTo}",{dateFrom:e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY"),dateTo:e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")})),1)],64)):(openBlock(),createElementBlock("span",_hoisted_26$2,toDisplayString(e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")),1))]),c.isBSTTab?(openBlock(),createElementBlock("div",_hoisted_27$2,[createBaseVNode("div",_hoisted_28$2,toDisplayString(t.$t("Bonus Side Trip")),1)])):c.payByEnrichPoints?(openBlock(),createElementBlock("div",_hoisted_29$2,[createBaseVNode("div",_hoisted_30$2,toDisplayString(t.$t("Redemption")),1)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_31$2,[createBaseVNode("span",_hoisted_32$2,[createTextVNode(toDisplayString(c.adultsCount+c.infantsCount)+" ",1),createVNode(l,{class:"fill-neutral-grey-ultradark w-2.5 mx-2"})])])])],8,_hoisted_20$2)),[[d,[{clickName:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,clickComponentType:"Button",componentName:"ContinueYourSearch",componentID:e.props.componentIdAA},{name:`From: ${c.ondValueFrom.displayValue??"-"} | To : ${c.ondValueTo.displayValue??"-"} | Departure date: ${e.dayjs(c.dateRangeValueFrom).format("DD MMM YYYY")??"-"} | Return date: ${e.dayjs(c.dateRangeValueTo).format("DD MMM YYYY")??"-"} | Passenger: ${c.adultsCount+c.infantsCount}`,type:"other"}]]])),128))]),_:1})],8,["disabled"]))])])):createCommentVNode("",!0)}const ContinueYourSearch=_export_sfc(_sfc_main$u,[["render",_sfc_render$u],["__scopeId","data-v-b5d036a0"],["__file","ContinueYourSearch.vue"]]),__default__$s={name:"FireflyFlightSearch",inheritAttrs:!1},_sfc_main$t=Object.assign(__default__$s,{props:{bookFlight:{type:Object,default:null},bookFlightLabel:{type:String,default:""},flightSearchApiUrl:{type:Object,default:null},mobileLabelsTab:{type:Object,default:null},currencySection:{type:Object,default:null},isHideContinueYourSearchSection:{type:Boolean,default:!1},componentIdAA:{type:String,default:""}},emits:[],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(!1),{isEditorMode:l}=useGlobalAEMState$1(),{isMobileSubpageVisible:d}=useBookingWidgetSubpage({hashKey:["flight-search","flight-search-tab"],rootEl:a});onMounted(()=>{const A=getAncestorBySelector(a.value,".switch-content");onClickOutside(A==null?void 0:A[0],M=>{s.value&&_()})});const c=()=>{s.value&&y()},u=()=>{},f=useEventBus("booking-widget");f.on((A,M)=>{switch(A){case"sticky:sticked":{s.value=!0,m(M);break}case"sticky:unsticked":{s.value=!1,b(M);break}}});const m=async A=>{A.resizeObserver.unobserve(A.triggerEl),_({skipAnimation:!0});const{paused:M}=useHeaderScroll();M.value=!0,await sleep(200),A.triggerEl.classList.remove("pre-stick"),gsapWithCSS.fromTo(A.triggerEl,{y:"-100%"},{y:0,duration:.3,overwrite:!0,onComplete:()=>{M.value=!1}})},b=async A=>{y({skipAnimation:!0}),await nextTick$1(),await sleep(200),A.resizeObserver.observe(A.triggerEl)},y=({skipAnimation:A=!1}={})=>{const M=a.value.querySelector(".BookFlight .TransitionHeight"),O=a.value.querySelector(".continue-your-search-container");gsapWithCSS.to(M,{duration:A?0:.2,height:"auto",onComplete:()=>{gsapWithCSS.set(M,{overflow:"visible"})},overwrite:!0}),O&&gsapWithCSS.to(O,{duration:A?0:.2,height:"auto",overwrite:!0})},_=async({skipAnimation:A=!1}={})=>{const M=a.value.querySelector(".TransitionHeight"),O=a.value.querySelector(".continue-your-search-container");gsapWithCSS.set(M,{overflow:"hidden"}),gsapWithCSS.to(M,{duration:A?0:.2,height:0,overwrite:!0}),O&&gsapWithCSS.to(O,{duration:A?0:.2,height:0,overwrite:!0})},S=ref$1(null),C=A=>{S.value.saveSearch(A)},T=async A=>
1192{isMobileViewport.value&&(d.value=!0,await nextTick$1()),i.value.restorePastSearch(A)},x=async A=>{isMobileViewport.value&&(d.value=!0,await nextTick$1()),await nextTick$1(),i.value.updateLocationFromTo(A)},k=useEventBus("booking-widget:book-flight");k.on(async(A,M)=>{switch(A){case"active-tab-and-fill-up-form":x(M),await nextTick$1();break;default:console.log(`Unknown event: ${A}. Ignore it.`);break}});let E=!1,w=!1;const D=A=>{w||(w=!0,pushAA_flightSearchEnd(A))},{registerQueryChange:N}=useBookingWidgetUrlQuery({mainTabName:"flight-search-tab"});N(async A=>{A&&isMobileViewport.value&&(d.value=!0)});const F=computed(()=>{var A,M;return isMobileViewport.value?(M=e.flightSearchApiUrl)==null?void 0:M.endpointMobile:(A=e.flightSearchApiUrl)==null?void 0:A.endpointDesktop});onMounted(()=>{const A=M=>{E||M.target.tagName!=="FORM"&&(E=!0,pushAA_flightSearchStart("flight-search-tab"),a.value.removeEventListener("focus",A,{capture:!0}))};a.value.addEventListener("focus",A,{capture:!0})});const V={props:e,emit:n,rootEl:a,bookFlightEl:i,isSticked:s,isEditorMode:l,isMobileSubpageVisible:d,handleRootFocusWithin:c,handleRootBlurWithin:u,bookingWidgetBus:f,handleOnStick:m,handleOnUnstick:b,stickyExpand:y,stickyCollapse:_,continueYourSearchComponent:S,handleSaveSearchData:C,restorePastSearch:T,handleFillUpForm:x,globalBookFlightBus:k,get AAHasSentStart(){return E},set AAHasSentStart(A){E=A},get AAHasSentEnd(){return w},set AAHasSentEnd(A){w=A},sendFormCompleteAA:D,registerQueryChange:N,flightSearchApiUrlEndpoint:F,BookFlight,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},ContinueYourSearch,get useGlobalAEMState(){return useGlobalAEMState$1},get onClickOutside(){return onClickOutside},get useEventBus(){return useEventBus},get gsap(){return gsapWithCSS},get getAncestorBySelector(){return getAncestorBySelector},get isMobileViewport(){return isMobileViewport},get pushAA_flightSearchStart(){return pushAA_flightSearchStart},get pushAA_flightSearchEnd(){return pushAA_flightSearchEnd},get pushAA_click(){return pushAA_click},get useHeaderScroll(){return useHeaderScroll},get sleep(){return sleep},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery}};return Object.defineProperty(V,"__isScriptSetup",{enumerable:!1,value:!0}),V}}),_hoisted_1$u={class:"generic-container"},_hoisted_2$p={key:0,class:"title-editor-mode"},_hoisted_3$d={class:"text-center"},_hoisted_4$9={class:"generic-container mb-20"};function _sfc_render$t(t,o,r,e,n,a){var l,d,c,u,f,m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J;const i=__unplugin_components_0$9,s=resolveDirective("focus-within");return openBlock(),createElementBlock(Fragment,null,[withDirectives((openBlock(),createElementBlock("div",{ref:"rootEl",class:normalizeClass(["FireflyFlightSearch booking-widget-subcomponent",{">md:hidden":(l=e.props.bookFlight)==null?void 0:l.general.hideInDesktop,"hidden >md:block":(d=e.props.bookFlight)==null?void 0:d.general.hideInMobile,isEditorMode:e.isEditorMode}]),tabindex:"-1",onFocusWithin:e.handleRootFocusWithin,onBlurWithin:e.handleRootBlurWithin},[createBaseVNode("div",_hoisted_1$u,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$p,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[5]||(o[5]=createBaseVNode("span",null,"Booking Widget: Firefly Flight Search",-1))])):createCommentVNode("",!0),createVNode(e.BookFlight,{ref:"bookFlightEl",hideTodayDateIndicator:!((u=(c=e.props.bookFlight)==null?void 0:c.datePicker)!=null&&u.todayIndicator),subHeaderTabDescription:(m=(f=e.props.bookFlight)==null?void 0:f.general)==null?void 0:m.subHeaderTabDescription,subHeaderTabTooltipBody:(y=(b=e.props.bookFlight)==null?void 0:b.general)==null?void 0:y.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(S=(_=e.props.bookFlight)==null?void 0:_.general)==null?void 0:S.subHeaderTabTooltipLabel,note:(T=(C=e.props.bookFlight)==null?void 0:C.general)==null?void 0:T.note,searchFlightCTAText:(k=(x=e.props.bookFlight)==null?void 0:x.general)==null?void 0:k.searchFlightCtaText,ondSelection:(E=e.props.bookFlight)==null?void 0:E.ondSelection,datePicker:(w=e.props.bookFlight)==null?void 0:w.datePicker,hidePromoCodeField:e.props.bookFlight.promoCode.hidePromoCodeField,promoCodeL
1192abel:(N=(D=e.props.bookFlight)==null?void 0:D.promoCode)==null?void 0:N.promoCodeLabel,promoCodeErrorMessage:(V=(F=e.props.bookFlight)==null?void 0:F.promoCode)==null?void 0:V.promoCodeErrorMessage,supersedePromoCode:(O=(M=(A=e.props.bookFlight)==null?void 0:A.promoCode)==null?void 0:M.supersedePromoCode)==null?void 0:O.trim(),passengerSelection:(R=e.props.bookFlight)==null?void 0:R.passengerSelection,subHeaderTooltipCTATextMobileLabel:(I=e.props.mobileLabelsTab)==null?void 0:I.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(j=e.props.mobileLabelsTab)==null?void 0:j.fromQuestionMobile,toQuestionMobile:(H=e.props.mobileLabelsTab)==null?void 0:H.toQuestionMobile,flightSearchApiUrl:e.flightSearchApiUrlEndpoint,currencyLabel:(B=(U=e.props.bookFlight)==null?void 0:U.currencySection)==null?void 0:B.currencyLabel,defaultCurrency:(z=(L=e.props.bookFlight)==null?void 0:L.currencySection)==null?void 0:z.defaultCurrency,componentIdAA:e.props.componentIdAA,onSaveSearchData:o[0]||(o[0]=te=>e.handleSaveSearchData(te)),onFormSubmission:o[1]||(o[1]=te=>e.sendFormCompleteAA("book-flight"))},null,8,["hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","hidePromoCodeField","promoCodeL
1192abel","promoCodeErrorMessage","supersedePromoCode","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","currencyLabel","defaultCurrency","componentIdAA"]),e.props.isHideContinueYourSearchSection?createCommentVNode("",!0):(openBlock(),createBlock(e.ContinueYourSearch,{key:1,ref:"continueYourSearchComponent",class:"continue-your-search-container",continueYourSearchLabel:(J=(W=e.props.bookFlight)==null?void 0:W.continueYourSearch)==null?void 0:J.continueYourSearchLabel,onRestorePastSearch:e.restorePastSearch},null,8,["continueYourSearchLabel"]))])],34)),[[s]]),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",style:{"--overlay-container-bg-color":"var(--primary-firefly-orange-base)"},"onUpdate:isVisible":o[4]||(o[4]=te=>e.isMobileSubpageVisible=te)},{"banner-title":withCtx(()=>{var te;return[createBaseVNode("h1",_hoisted_3$d,toDisplayString((te=e.props.mobileLabelsTab)==null?void 0:te.bannerTextMobile),1)]}),default:withCtx(()=>{var te,re,oe,X,se,le,he,ge,Q,Y,ne,Ce,ae,Be,me,K,q,Z,de,fe,_e,pe,ve,Me,Fe,Te,Se,Ae,ue;return[createBaseVNode("div",_hoisted_4$9,[createVNode(e.BookFlight,{ref:"bookFlightEl",hideTodayDateIndicator:!((re=(te=e.props.bookFlight)==null?void 0:te.datePicker)!=null&&re.todayIndicator),subHeaderTabDescription:(X=(oe=e.props.bookFlight)==null?void 0:oe.general)==null?void 0:X.subHeaderTabDescription,subHeaderTabTooltipBody:(le=(se=e.props.bookFlight)==null?void 0:se.general)==null?void 0:le.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(ge=(he=e.props.bookFlight)==null?void 0:he.general)==null?void 0:ge.subHeaderTabTooltipLabel,note:(Y=(Q=e.props.bookFlight)==null?void 0:Q.general)==null?void 0:Y.note,searchFlightCTAText:(Ce=(ne=e.props.bookFlight)==null?void 0:ne.general)==null?void 0:Ce.searchFlightCtaText,ondSelection:(ae=e.props.bookFlight)==null?void 0:ae.ondSelection,datePicker:(Be=e.props.bookFlight)==null?void 0:Be.datePicker,hidePromoCodeField:e.props.bookFlight.promoCode.hidePromoCodeField,promoCodeLabel:(K=(me=e.props.bookFlight)==null?void 0:me.promoCode)==null?void 0:K.promoCodeLabel,promoCodeErrorMessage:(Z=(q=e.props.bookFlight)==null?void 0:q.promoCode)==null?void 0:Z.promoCodeErrorMessage,supersedePromoCode:(_e=(fe=(de=e.props.bookFlight)==null?void 0:de.promoCode)==null?void 0:fe.supersedePromoCode)==null?void 0:_e.trim(),passengerSelection:(pe=e.props.bookFlight)==null?void 0:pe.passengerSelection,subHeaderTooltipCTATextMobileLabel:(ve=e.props.mobileAddOns)==null?void 0:ve.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(Me=e.props.mobileLabelsTab)==null?void 0:Me.fromQuestionMobile,toQuestionMobile:(Fe=e.props.mobileLabelsTab)==null?void 0:Fe.toQuestionMobile,flightSearchApiUrl:e.flightSearchApiUrlEndpoint,currencyLabel:(Se=(Te=e.props.bookFlight)==null?void 0:Te.currencySection)==null?void 0:Se.currencyLabel,defaultCurrency:(ue=(Ae=e.props.bookFlight)==null?void 0:Ae.currencySection)==null?void 0:ue.defaultCurrency,componentIdAA:e.props.componentIdAA,onSaveSearchData:o[2]||(o[2]=ye=>e.handleSaveSearchData(ye)),onFormSubmission:o[3]||(o[3]=ye=>e.sendFormCompleteAA("book-flight"))},null,8,["hideTodayDateIndicator","subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","hidePromoCodeField","promoCodeL
1192abel","promoCodeErrorMessage","supersedePromoCode","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","currencyLabel","defaultCurrency","componentIdAA"])])]}),_:1},8,["isVisible"])],64)}const FireflyFlightSearch=_export_sfc(_sfc_main$t,[["render",_sfc_render$t],["__scopeId","data-v-cf0f6640"],["__file","FireflyFlightSearch.vue"]]),FireflyFlightSearch$1=Object.freeze(Object.defineProperty({__proto__:null,default:FireflyFlightSearch},Symbol.toStringTag,{value:"Module"})),__default__$r={name:"AirCargoSearch",inheritAttrs:!1},_sfc_main$s=Object.assign(__default__$r,{props:{subHeaderTabDescription:{type:String,default:""},subHeaderTabTooltipBody:{type:String,default:""},subHeaderTabTooltipLabel:{type:String,default:""},note:{type:String,default:""},searchFlightCTAText:{type:String,default:i18nGlobal.t("Search flight")},ondSelection:{type:Object,default:null},datePicker:{type:Object,default:null},hideTodayDateIndicator:{type:Boolean,default:!1},promoCodeLabel:{type:String,default:null},promoCodeErrorMessage:{type:String,default:i18nGlobal.t("Conditions not met for promo code to be applied")},isHidePromoCodeField:{type:Boolean,default:!1},subHeaderTooltipCTATextMobileLabel:{type:String,default:""},fromQuestionMobile:{type:String,default:""},toQuestionMobile:{type:String,default:""},datePickerQuestionMobile:{type:String,default:""},airCargoEndpointUrl:{type:String,default:""},componentIdAA:{type:String,default:""}},setup(t,{expose:o}){o();const r=t,e=ref$1(null),n=ref$1(null),a=ref$1(null),i=ref$1(null),s=ref$1(null),l=ref$1(null),d=ref$1(null),c=ref$1(null),u=ref$1(null),{pageProperties:f,isEditorMode:m}=useGlobalAEMState$1();let b=!1,y=!1;const _=N=>{y||(y=!0,pushAA_fireflyBookAirCargoSearchEnd(N))},S=async(N,F)=>{console.log("handleSubmitValid",N);try{const V={origin:i.value.code,destination:s.value.code,departure_date:d.value,promotion_code:u.value||""};_(V);const A=Object.entries(V),M="post",O=document.createElement("form");O.setAttribute("method",M),O.setAttribute("action",r.airCargoEndpointUrl);for(let[,[R,I]]of A.entries()){let j=document.createElement("input");j.setAttribute("type","hidden"),j.setAttribute("name",R),j.setAttribute("value",I),O.appendChild(j)}document.body.appendChild(O),O.submit()}catch(V){pushAA_fireflyBookAirCargoSearchError({errorName:V})}},C=({errorMsg:N})=>{const F={errorName:N}
1192,V={name:r.promoCodeLabel,type:"other"};pushAA_fireflyBookAirCargoSearchError([F,V])},T=({values:N,errors:F,results:V,evt:A})=>{console.log("handleSubmitInvalid",F)},x=N=>{var F,V;N&&!isMobileViewport.value&&((V=(F=l.value)==null?void 0:F.inputEl)==null||V.focus())},k=computed(()=>{const N=n.value;return N?!N.values.locationFrom||!N.values.locationTo||!N.values.cargoFlightDate||Object.keys(N.errors).length!==0:!0}),E=N=>{let F=yup.string().nullable().max(8,r.promoCodeErrorMessage);try{return F.validateSync(N),!0}catch(V){return V.errors[0]}},w=computed(()=>n.value!==null?n.value.errors.promoCode:null);watch(w,N=>{N&&C({errorMsg:N})}),onMounted(()=>{const N=F=>{b||F.target.tagName!=="FORM"&&(b=!0,pushAA_fireflyBookAirCargoSearchStart("air-cargo-search-tab"),e.value.removeEventListener("focus",N,{capture:!0}))};e.value.addEventListener("focus",N,{capture:!0})});const D={props:r,rootEl:e,formWrapper:n,ondPickerEl:a,ondValueFrom:i,ondValueTo:s,flightDatePickerEl:l,dateFlightValue:d,promoCodeEl:c,promoCodeValue:u,pageProperties:f,isEditorMode:m,get AAHasSentStart(){return b},set AAHasSentStart(N){b=N},get AAHasSentEnd(){return y},set AAHasSentEnd(N){y=N},sendFormCompleteAA:_,handleSubmitValid:S,triggerAA_searchError:C,handleSubmitInvalid:T,focusToDatePicker:x,isBtnSubmitDisabled:k,promoFieldValidationFunc:E,formWrapperPromoCodeError:w,get yup(){return yup},FormWrapper,TextField,Tooltip,CTAButton,ONDPicker:ONDPicker$1,DatePicker,get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport},get i18nGlobal(){return i18nGlobal},get pushAA_fireflyBookAirCargoSearchStart(){return pushAA_fireflyBookAirCargoSearchStart},get pushAA_fireflyBookAirCargoSearchEnd(){return pushAA_fireflyBookAirCargoSearchEnd},get pushAA_fireflyBookAirCargoSearchError(){return pushAA_fireflyBookAirCargoSearchError},get pushAA_click(){return pushAA_click}};return Object.defineProperty(D,"__isScriptSetup",{enumerable:!1,value:!0}),D}}),_hoisted_1$t={ref:"rootEl",class:"AirCargoSearch"},_hoisted_2$o={key:0,class:"mb-5"},_hoisted_3$c={class:"flex items-center"},_hoisted_4$8={class:"grid grid-cols-1 >lg:grid-cols-10 gap-6"},_hoisted_5$7={class:"w-full >lg:col-spans-6"},_hoisted_6$7={class:"w-full >lg:col-spans-4"},_hoisted_7$7={class:"grid grid-cols-1 >lg:grid-cols-10 gap-6 mt-6"},_hoisted_8$7={key:0,class:"w-full >lg:col-spans-6"},_hoisted_9$5={class:"w-full >lg:col-spans-4 >lg:flex >lg:justify-end"},_hoisted_10$3={key:0,class:"bg-secondary-firefly-orange-ultralight text-primary-firefly-black-base flex gap-3 justify-start px-4 py-4 rounded-xl mt-6"},_hoisted_11$3={class:"text-sm"};function _sfc_render$s(t,o,r,e,n,a){const i=__unplugin_components_1$c,s=resolveDirective("html-sanitize"),l=resolveDirective("aa"),d=resolveDirective("focus-within");return openBlock(),createElementBlock("div",_hoisted_1$t,[withDirectives((openBlock(),createBlock(e.FormWrapper,{ref:"formWrapper",class:"lg:mt-0",tabindex:"-1",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:c})=>{var u,f,m,b,y,_,S,C;return[createBaseVNode("div",null,[e.props.subHeaderTabDescription?withDirectives((openBlock(),createElementBlock("div",_hoisted_2$o,null,512)),[[s,e.props.subHeaderTabDescription]]):createCommentVNode("",!0),e.props.subHeaderTabTooltipLabel?(openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$c,[createVNode(i,{class:"fill-secondary-firefly-orange-extradark mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString(e.props.subHeaderTabTooltipLabel),1)])]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipLabel),1)]),"tooltip-content":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTabTooltipBody),1)]),"mobile-cta-label":withCtx(()=>[createTextVNode(toDisplayString(e.props.subHeaderTooltipCTATextMobileLabel),1)]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$8,[createBaseVNode("div",_hoisted_5$7,[createVNode(e.ONDPicker,{ref:"ondPickerEl",modelValueFrom:e.ondValueFrom,"onUpdate:modelValueFrom":o[
11920]||(o[0]=T=>e.ondValueFrom=T),modelValueTo:e.ondValueTo,"onUpdate:modelValueTo":[o[1]||(o[1]=T=>e.ondValueTo=T),e.focusToDatePicker],nameFrom:"locationFrom",nameTo:"locationTo",ondListIdentifier:"FIREFLY_AIR_CARGO_SEARCH",requiredFrom:!0,requiredTo:!0,requiredErrorMsgFrom:(u=e.props.ondSelection)==null?void 0:u.fromSearchErrorMessage,requiredErrorMsgTo:(f=e.props.ondSelection)==null?void 0:f.toSearchErrorMessage,labelTextFrom:(m=e.props.ondSelection)==null?void 0:m.fromLabel,labelTextTo:(b=e.props.ondSelection)==null?void 0:b.toLabel,noResultsText:(y=e.props.ondSelection)==null?void 0:y.noResultMessage},{"from-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.fromQuestionMobile),1)]),"to-picker-mobile-title":withCtx(()=>[createBaseVNode("span",null,toDisplayString(e.props.toQuestionMobile),1)]),_:1},8,["modelValueFrom","modelValueTo","requiredErrorMsgFrom","requiredErrorMsgTo","labelTextFrom","labelTextTo","noResultsText"])]),createBaseVNode("div",_hoisted_6$7,[createVNode(e.DatePicker,{ref:"flightDatePickerEl",modelValue:e.dateFlightValue,"onUpdate:modelValue":o[2]||(o[2]=T=>e.dateFlightValue=T),name:"cargoFlightDate",ariaLabel:(_=e.props.datePicker)==null?void 0:_.departureDateLabel,disablePastDates:!0,requried:!0,requriedErrorMessage:(S=e.props.datePicker)==null?void 0:S.invalidDateErrorMessage,isHideTodayIndicator:!((C=e.props.datePicker)!=null&&C.todayIndicator),variant:"booking-widget"},null,8,["modelValue","ariaLabel","requriedErrorMessage","isHideTodayIndicator"])])]),createBaseVNode("div",_hoisted_7$7,[!e.isMobileViewport||!e.props.isHidePromoCodeField?(openBlock(),createElementBlock("div",_hoisted_8$7,[e.props.isHidePromoCodeField?createCommentVNode("",!0):(openBlock(),createBlock(e.TextField,{key:0,ref:"promoCodeEl",modelValue:e.promoCodeValue,"onUpdate:modelValue":o[3]||(o[3]=T=>e.promoCodeValue=T),name:"promoCode",variant:"booking-widget",ariaLabel:e.props.promoCodeLabel,placeholder:"E.g. 8990",allowedKeys:/[a-zA-Z0-9]/,validation:e.promoFieldValidationFunc},null,8,["modelValue","ariaLabel"]))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_9$5,[withDirectives((openBlock(),createBlock(e.CTAButton,{sizeType:e.isMobileViewport?"small":"medium",isSubmit:!0,ctaSizing:e.isMobileViewport?"fluid":"auto",disabled:e.isBtnSubmitDisabled,class:"mx-0 !py-5 !px-6"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.props.searchFlightCTAText),1)]),_:1},8,["sizeType","ctaSizing","disabled"])),[[l,[{clickName:e.props.searchFlightCTAText,clickComponentType:"Button",componentName:"AirCargoSearch",componentID:e.props.componentIdAA},{name:e.props.searchFlightCTAText,type:"exit"}]]])])])]),e.props.note?(openBlock(),createElementBlock("div",_hoisted_10$3,[createVNode(i,{class:"fill-secondary-firefly-orange-extradark text-base"}),withDirectives(createBaseVNode("div",_hoisted_11$3,null,512),[[s,e.props.note]])])):createCommentVNode("",!0)]}),_:1})),[[d]])],512)}const AirCargoSearch=_export_sfc(_sfc_main$s,[["render",_sfc_render$s],["__scopeId","data-v-e284c10e"],["__file","AirCargoSearch.vue"]]),__default__$q={name:"FireflyAirCargo",inheritAttrs:!1},_sfc_main$r=Object.assign(__default__$q,{props:{generalTab:{type:Object,default:null},mobileLabelsTab:{type:Object,default:null},airCargoEndpointUrl:{type:String,default:""},componentIdAA:{type:String,default:""}},emits:["form-submission"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),{isEditorMode:i}=useGlobalAEMState$1(),{isMobileSubpageVisible:s}=useBookingWidgetSubpage({hashKey:["air-cargo-search","air-cargo-search-tab"],rootEl:a}),{registerQueryChange:l}=useBookingWidgetUrlQuery({mainTabName:"air-cargo-search-tab"});l(async c=>{c&&isMobileViewport.value&&(s.value=!0)});const d={props:e,emit:n,rootEl:a,isEditorMode:i,isMobileSubpageVisible:s,registerQueryChange:l,MobileSubpage,AirCargoSearch,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get pushAA_flightSearchStart(){return pushAA_flightSearchStart},get pushAA_flightSearchEnd(){return pushAA_flightSearchEnd},get pushAA_click(){return pushAA_click}
1192};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),_hoisted_1$s={class:"generic-container"},_hoisted_2$n={key:0,class:"title-editor-mode"},_hoisted_3$b={class:"text-center"},_hoisted_4$7={class:"generic-container mb-20"};function _sfc_render$r(t,o,r,e,n,a){var l,d,c,u,f,m,b,y,_,S,C,T,x,k,E,w,D,N,F,V,A,M,O,R;const i=__unplugin_components_0$9,s=resolveDirective("focus-within");return openBlock(),createElementBlock(Fragment,null,[!((l=e.props.generalTab)!=null&&l.airCargoSection.hideInDesktop)&&!e.isMobileViewport?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"rootEl",class:normalizeClass(["FireflyAirCargo booking-widget-subcomponent",{isEditorMode:e.isEditorMode}]),tabindex:"-1"},[createBaseVNode("div",_hoisted_1$s,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$n,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[1]||(o[1]=createBaseVNode("span",null,"Firefly Booking Widget: Air Cargo",-1))])):createCommentVNode("",!0),createVNode(e.AirCargoSearch,{subHeaderTabDescription:(c=(d=e.props.generalTab)==null?void 0:d.airCargoSection)==null?void 0:c.subHeaderTabDescription,subHeaderTabTooltipBody:(f=(u=e.props.generalTab)==null?void 0:u.airCargoSection)==null?void 0:f.subHeaderTooltipBody,subHeaderTabTooltipLabel:(b=(m=e.props.generalTab)==null?void 0:m.airCargoSection)==null?void 0:b.subHeaderTabTooltipLabel,note:(_=(y=e.props.generalTab)==null?void 0:y.airCargoSection)==null?void 0:_.note,searchFlightCTAText:(C=(S=e.props.generalTab)==null?void 0:S.airCargoSection)==null?void 0:C.searchFlightCtaText,ondSelection:(T=e.props.generalTab)==null?void 0:T.ondSelectionSection,datePicker:(x=e.props.generalTab)==null?void 0:x.datePickerSection,hideTodayDateIndicator:!((E=(k=e.props.generalTab)==null?void 0:k.datePickerSection)!=null&&E.todayIndicator),promoCodeLabel:(D=(w=e.props.generalTab)==null?void 0:w.promoCodeSection)==null?void 0:D.promoCodeLabel,promoCodeErrorMessage:(F=(N=e.props.generalTab)==null?void 0:N.promoCodeSection)==null?void 0:F.promoCodeErrorMessage,isHidePromoCodeField:(A=(V=e.props.generalTab)==null?void 0:V.promoCodeSection)==null?void 0:A.hidePromoCodeField,subHeaderTooltipCTATextMobileLabel:(M=e.props.mobileLabelsTab)==null?void 0:M.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(O=e.props.mobileLabelsTab)==null?void 0:O.fromQuestionMobile,toQuestionMobile:(R=e.props.mobileLabelsTab)==null?void 0:R.toQuestionMobile,airCargoEndpointUrl:e.props.airCargoEndpointUrl,componentIdAA:e.props.componentIdAA},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","hideTodayDateIndicator","promoCodeL
1192abel","promoCodeErrorMessage","isHidePromoCodeField","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","airCargoEndpointUrl","componentIdAA"])])],2)),[[s]]):createCommentVNode("",!0),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",style:{"--overlay-container-bg-color":"var(--primary-firefly-orange-base)"},"onUpdate:isVisible":o[0]||(o[0]=I=>e.isMobileSubpageVisible=I)},{"banner-title":withCtx(()=>{var I;return[createBaseVNode("h1",_hoisted_3$b,toDisplayString((I=e.props.mobileLabelsTab)==null?void 0:I.bannerTextMobile),1)]}),default:withCtx(()=>{var I,j,H,U,B,L,z,W,J,te,re,oe,X,se,le,he,ge,Q,Y,ne,Ce,ae,Be;return[createBaseVNode("div",_hoisted_4$7,[createVNode(e.AirCargoSearch,{subHeaderTabDescription:(j=(I=e.props.generalTab)==null?void 0:I.airCargoSection)==null?void 0:j.subHeaderTabDescription,subHeaderTabTooltipBody:(U=(H=e.props.generalTab)==null?void 0:H.airCargoSection)==null?void 0:U.subHeaderTooltipBody,subHeaderTabTooltipLabel:(L=(B=e.props.generalTab)==null?void 0:B.airCargoSection)==null?void 0:L.subHeaderTabTooltipLabel,note:(W=(z=e.props.generalTab)==null?void 0:z.airCargoSection)==null?void 0:W.note,searchFlightCTAText:(te=(J=e.props.generalTab)==null?void 0:J.airCargoSection)==null?void 0:te.searchFlightCtaText,ondSelection:(re=e.props.generalTab)==null?void 0:re.ondSelectionSection,datePicker:(oe=e.props.generalTab)==null?void 0:oe.datePickerSection,hideTodayDateIndicator:!((se=(X=e.props.generalTab)==null?void 0:X.datePickerSection)!=null&&se.todayIndicator),promoCodeLabel:(he=(le=e.props.generalTab)==null?void 0:le.promoCodeSection)==null?void 0:he.promoCodeLabel,promoCodeErrorMessage:(Q=(ge=e.props.generalTab)==null?void 0:ge.promoCodeSection)==null?void 0:Q.promoCodeErrorMessage,isHidePromoCodeField:(ne=(Y=e.props.generalTab)==null?void 0:Y.promoCodeSection)==null?void 0:ne.hidePromoCodeField,subHeaderTooltipCTATextMobileLabel:(Ce=e.props.mobileLabelsTab)==null?void 0:Ce.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(ae=e.props.mobileLabelsTab)==null?void 0:ae.fromQuestionMobile,toQuestionMobile:(Be=e.props.mobileLabelsTab)==null?void 0:Be.toQuestionMobile,airCargoEndpointUrl:e.props.airCargoEndpointUrl,componentIdAA:e.props.componentIdAA},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","searchFlightCTAText","ondSelection","datePicker","hideTodayDateIndicator","promoCodeL
1192abel","promoCodeErrorMessage","isHidePromoCodeField","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","airCargoEndpointUrl","componentIdAA"])])]}),_:1},8,["isVisible"])],64)}const FireflyAirCargo=_export_sfc(_sfc_main$r,[["render",_sfc_render$r],["__scopeId","data-v-ccfae052"],["__file","FireflyAirCargo.vue"]]),FireflyAirCargo$1=Object.freeze(Object.defineProperty({__proto__:null,default:FireflyAirCargo},Symbol.toStringTag,{value:"Module"})),__default__$p={name:"FireflyManageBooking",inheritAttrs:!1},_sfc_main$q=Object.assign(__default__$p,{props:{isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},manageBooking:{type:Object,default:null},manageBookingApiUrl:{type:String,default:""},mobileManageBookingApiUrl:{type:String,default:""}},emits:["update:active-tab"],setup(t,{expose:o,emit:r}){o();const e=t,{isEditorMode:n}=useGlobalAEMState$1(),a=ref$1(null),i=ref$1(""),s=ref$1(""),l=ref$1("FY"),{isMobileSubpageVisible:d}=useBookingWidgetSubpage({hashKey:["manage-booking","manage-booking-tab"],rootEl:a}),{registerQueryChange:c}=useBookingWidgetUrlQuery({mainTabName:"manage-booking-tab"}),u=r;c(async _=>{_&&(isMobileViewport.value&&(d.value=!0),u("update:active-tab",_.maintab))});const f=async({bookingRef:_,lastName:S,bookingVia:C},T)=>{const x={PNR:_,LastName:S};C=="MH"&&(x.airline=C);const k=new URL(isMobileViewport.value?e.mobileManageBookingApiUrl:e.manageBookingApiUrl);Object.keys(x).forEach(E=>{k.searchParams.append(E,x[E])}),window.location.href=k.toString()},m=({values:_,errors:S,results:C,evt:T})=>{console.log("❌ handleSubmitInvalid errors = ",S)},b=computed(()=>{var k;let _=yup.string().nullable().matches(/^[A-Za-z0-9]*$/,(k=e.manageBooking.bookingReference)==null?void 0:k.alphanumericErrorMessage);const{isMandatory:S,errorMessage:C,maxLimit:T,maxLimitErrorMessage:x}=e.manageBooking.bookingReference;return S&&(_=_.required(C)),T&&(_=_.max(T,x)),_}),y={props:e,isEditorMode:n,rootEl:a,bookingRefValue:i,lastNameValue:s,bookingViaValue:l,isMobileSubpageVisible:d,registerQueryChange:c,emit:u,handleSubmitValid:f,handleSubmitInvalid:m,bookingRefValidation:b,MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},get useGlobalAEMState(){return useGlobalAEMState$1},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},FormWrapper,TextField,CTAButton,Tooltip,get yup(){return yup},get isMobileViewport(){return isMobileViewport},RadioButton};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),_hoisted_1$r={class:"generic-container"},_hoisted_2$m={key:0,class:"title-editor-mode"},_hoisted_3$a={class:"ManageBookingBody"},_hoisted_4$6={key:0,class:"mb-5"},_hoisted_5$6={class:"flex items-center"},_hoisted_6$6={class:"mb-5 flex gap-7"},_hoisted_7$6={class:""},_hoisted_8$6={class:"grid-container mb-6"},_hoisted_9$4={key:0,class:"md:mb-3"},_hoisted_10$2={key:0},_hoisted_11$2={class:"md:mb-6"},_hoisted_12$2={key:0},_hoisted_13$2={key:2,class:"bg-secondary-firefly-orange-ultralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl"},_hoisted_14$2={class:"text-sm"},_hoisted_15$1={key:1,class:"generic-container py-10"},_hoisted_16$1={class:"font-bold"},_hoisted_17$1={key:0},_hoisted_18$1={key:1},_hoisted_19$1={class:"text-center"},_hoisted_20$1={class:"generic-container mb-20"},_hoisted_21$1={identifier:"manage-booking"},_hoisted_22$1={key:0,class:"mb-5"},_hoisted_23$1={class:"flex items-center"},_hoisted_24$1={class:"mb-5 >md:flex gap-7"},_hoisted_25$1={class:"md:mb-3"},_hoisted_26$1={class:"grid-container mb-6"},_hoisted_27$1={key:0,class:"md:mb-3"},_hoisted_28$1={key:0},_hoisted_29$1={class:"md:mb-6"},_hoisted_30$1={key:0},_hoisted_31$1={key:2,class:"bg-secondary-firefly-orange-ultralight text-primary-black-base flex gap-3 justify-start px-4 py-4 rounded-xl"},_hoisted_32$1={class:"text-sm"};function _sfc_render$q(t,o,r,e,n,a){var f,m,b,y;const i=__unplugin_components_0$9,s=__unplugin_components_0$n,l=__unplugin_components_1$c,d=resolveDirective("html-sanitize"),c=resolveDirective("alphabets-strict"),u=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"rootEl",class:normalizeClass(["FireflyManageBooking booking-widget-subcomponent",{">md:hidden":e.props.isHideInDesktop,"hidden >md:block":e.props.isHideInMobile,isEditorMode:e.isEditorMode}])},[createBaseVNode("div",_hoisted_1$r,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$m,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[7]||(o[7]=createBaseVNode("span",null,"Booking Widget: Manage Booking",-1))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_3$a,[createVNode(e.FormWrapper,{focusFirstErrorElOnInvalidSubmit:!0,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:_})=>{var S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J,te;return[(S=e.props.manageBooking)!=null&&S.description?withDirectives((openBlock(),createElementBlock("div",_hoisted_4$6,null,512)),[[d,(C=e.props.manageBooking)==null?void 0:C.description]]):createCommentVNode("",!0),(T=e.props.manageBooking)!=null&&T.tooltipLabel?(
1192openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>{var re;return[createBaseVNode("div",_hoisted_5$6,[createVNode(s,{class:"fill-secondary-firefly-orange-extradark mr-4 rtl:mr-0 rtl:ml-4","aria-hidden":"true"}),createTextVNode(" "+toDisplayString((re=e.props.manageBooking)==null?void 0:re.tooltipLabel),1)])]}),"mobile-title":withCtx(()=>{var re;return[createTextVNode(toDisplayString((re=e.props.manageBooking)==null?void 0:re.tooltipLabel),1)]}),"tooltip-content":withCtx(()=>{var re;return[createTextVNode(toDisplayString((re=e.props.manageBooking)==null?void 0:re.tooltipBody),1)]}),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$6,[createBaseVNode("p",_hoisted_7$6,toDisplayString((k=(x=e.props.manageBooking)==null?void 0:x.bookingVia)==null?void 0:k.bookingViaLabel),1),createVNode(e.RadioButton,{modelValue:e.bookingViaValue,"onUpdate:modelValue":o[0]||(o[0]=re=>e.bookingViaValue=re),name:"bookingVia",items:[{text:(w=(E=e.props.manageBooking)==null?void 0:E.bookingVia)==null?void 0:w.radioButton1Label,value:"FY"},{text:(N=(D=e.props.manageBooking)==null?void 0:D.bookingVia)==null?void 0:N.radioButton2Label,value:"MH"}],layoutAttrs:{class:"!flex"}},null,8,["modelValue","items"])]),createBaseVNode("div",_hoisted_8$6,[(F=e.props.manageBooking)!=null&&F.bookingReference?(openBlock(),createElementBlock("div",_hoisted_9$4,[createVNode(e.TextField,{modelValue:e.bookingRefValue,"onUpdate:modelValue":o[1]||(o[1]=re=>e.bookingRefValue=re),variant:"booking-widget",name:"bookingRef",ariaLabel:(A=(V=e.props.manageBooking)==null?void 0:V.bookingReference)==null?void 0:A.label,placeholder:(O=(M=e.props.manageBooking)==null?void 0:M.bookingReference)==null?void 0:O.placeholderText,validation:e.bookingRefValidation,allowedKeys:/[A-Za-z0-9]/},{"short-description":withCtx(()=>{var re,oe,X,se;return[(oe=(re=e.props.manageBooking)==null?void 0:re.bookingReference)!=null&&oe.shortDescription?(openBlock(),createElementBlock("p",_hoisted_10$2,toDisplayString((se=(X=e.props.manageBooking)==null?void 0:X.bookingReference)==null?void 0:se.shortDescription),1)):createCommentVNode("",!0)]}),_:1},8,["modelValue","ariaLabel","placeholder","validation"])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_11$2,[(R=e.props.manageBooking)!=null&&R.lastName?withDirectives((openBlock(),createBlock(e.TextField,{key:0,modelValue:e.lastNameValue,"onUpdate:modelValue":o[2]||(o[2]=re=>e.lastNameValue=re),validation:e.yup.string().min(1).required().max(40,"Last Name should not be larger than 40 characters"),variant:"booking-widget",name:"lastName",placeholder:(j=(I=e.props.manageBooking)==null?void 0:I.lastName)==null?void 0:j.placeholderText,ariaLabel:(U=(H=e.props.manageBooking)==null?void 0:H.lastName)==null?void 0:U.label},{"short-description":withCtx(()=>{var re,oe,X,se;return[(oe=(re=e.props.manageBooking)==null?void 0:re.lastName)!=null&&oe.shortDescription?(openBlock(),createElementBlock("p",_hoisted_12$2,toDisplayString((se=(X=e.props.manageBooking)==null?void 0:X.lastName)==null?void 0:se.shortDescription),1)):createCommentVNode("",!0)]}),_:1},8,["modelValue","validation","placeholder","ariaLabel"])),[[c]]):createCommentVNode("",!0)]),createBaseVNode("div",null,[(B=e.props.manageBooking)!=null&&B.buttonLabel?withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,sizeType:"medium",disabled:e.lastNameValue&&e.bookingRefValue&&Object.keys(_).length!==0,ctaSizing:"fluid",isSubmit:""},{default:withCtx(()=>{var re;return[createTextVNode(toDisplayString((re=e.props.manageBooking)==null?void 0:re.buttonLabel),1)]}),_:2},1032,["disabled"])),[[u,[{clickName:(L=e.props.manageBooking)==null?void 0:L.buttonLabel,clickComponentType:"Button",componentName:"FireflyManageBooking",componentID:(z=e.props.manageBooking)==null?void 0:z.componentIdAA},{name:(W=e.props.manageBooking)==null?void 0:W.buttonLabel,type:"exit"}]]]):createCommentVNode("",!0)])]),(J=e.props.manageBooking)!=null&&J.note?(openBlock(),createElementBlock("div",_hoisted_13$2,[createVNode(l,{class:"fill-secondary-firefly-orange-extradark text-base flex-shrink-0"}),withDirectives(createBaseVNode("div",_hoisted_14$2,null,512),[[d,(te=e.props.manageBooking)==null?void 0:te.note]])])):createCommentVNode("",!0)]}),_:1})]),e.isEditorMode?(openBlock(),createElementBlock("div",_hoisted_15$1,[createBaseVNode("p",_hoisted_16$1,toDisplayString((f=e.props.manageBooking)==null?void 0:f.label),1),createBaseVNode("p",null,[o[8]||(o[8]=createTextVNode("Hidden in: ")),(m=e.props.manageBooking)!=null&&m.isHideInDesktop?(openBlock(),createElementBlock("span",_hoisted_17$1,"Desktop")):createCommentVNode("",!0),o[9]||(o[9]=createTextVNode()),(b=e.props.manageBooking)!=null&&b.isHideInMobile?(openBlock(),createElementBlock("span",_hoisted_18$1,", Mobile")):createCommentVNode("",!0)])])):createCommentVNode("",!0)])],2),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,backButtonLabel:(y=e.props.manageBooking)==null?void 0:y.backButtonMobile,class:"text-white","onUpdate:isVisible":o[6]||(o[6]=_=>{e.isMobileSubpageVisible=_})},{"banner-title":withCtx(()=>[createBaseVNode("h1",_hoisted_19$1,toDisplayString(t.$t("Manage Booking")),1)]),default:withCtx(()=>[createBaseVNode("div",_hoisted_20$1,[createBaseVNode("div",_hoisted_21$1,[createVNode(e.FormWrapper,{focusFirstErrorElOnInvalidSubmit:!0,onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:_})=>{var S,C,T,x,k,E,w,D,N,F,V,A,M,O,R,I,j,H,U,B,L,z,W,J,te;return[(S=e.props.manageBooking)!=null&&S.description?withDirectives((openBlock(),createElementBlock("div",_hoisted_22$1,null,512)),[[d,(C=e.props.manageBooking)==null?void 0:C.description]]):createCommentVNode("",!0),(T=e.props.manageBooking)!=null&&T.tooltipLabel?(
1192openBlock(),createBlock(e.Tooltip,{key:1,class:"inline-flex mb-5"},{default:withCtx(()=>{var re;return[createBaseVNode("div",_hoisted_23$1,[createVNode(s,{class:"mr-4 rtl:mr-0 rtl:ml-4 fill-secondary-firefly-orange-extradark","aria-hidden":"true"}),createTextVNode(" "+toDisplayString((re=e.props.manageBooking)==null?void 0:re.tooltipLabel),1)])]}),"mobile-title":withCtx(()=>{var re;return[createTextVNode(toDisplayString((re=e.props.manageBooking)==null?void 0:re.tooltipLabel),1)]}),"tooltip-content":withCtx(()=>{var re;return[createTextVNode(toDisplayString((re=e.props.manageBooking)==null?void 0:re.tooltipBody),1)]}),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_24$1,[createBaseVNode("p",_hoisted_25$1,toDisplayString((k=(x=e.props.manageBooking)==null?void 0:x.bookingVia)==null?void 0:k.bookingViaLabel),1),createVNode(e.RadioButton,{modelValue:e.bookingViaValue,"onUpdate:modelValue":o[3]||(o[3]=re=>e.bookingViaValue=re),name:"bookingVia",items:[{text:(w=(E=e.props.manageBooking)==null?void 0:E.bookingVia)==null?void 0:w.radioButton1Label,value:"FY"},{text:(N=(D=e.props.manageBooking)==null?void 0:D.bookingVia)==null?void 0:N.radioButton2Label,value:"MH"}],layoutAttrs:{class:"!flex"}},null,8,["modelValue","items"])]),createBaseVNode("div",_hoisted_26$1,[(F=e.props.manageBooking)!=null&&F.bookingReference?(openBlock(),createElementBlock("div",_hoisted_27$1,[createVNode(e.TextField,{modelValue:e.bookingRefValue,"onUpdate:modelValue":o[4]||(o[4]=re=>e.bookingRefValue=re),variant:"booking-widget",name:"bookingRef",ariaLabel:(A=(V=e.props.manageBooking)==null?void 0:V.bookingReference)==null?void 0:A.label,placeholder:(O=(M=e.props.manageBooking)==null?void 0:M.bookingReference)==null?void 0:O.placeholderText,validation:e.bookingRefValidation,allowedKeys:/[A-Za-z0-9]/},{"short-description":withCtx(()=>{var re,oe,X,se;return[(oe=(re=e.props.manageBooking)==null?void 0:re.bookingReference)!=null&&oe.shortDescription?(openBlock(),createElementBlock("p",_hoisted_28$1,toDisplayString((se=(X=e.props.manageBooking)==null?void 0:X.bookingReference)==null?void 0:se.shortDescription),1)):createCommentVNode("",!0)]}),_:1},8,["modelValue","ariaLabel","placeholder","validation"])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_29$1,[(R=e.props.manageBooking)!=null&&R.lastName?withDirectives((openBlock(),createBlock(e.TextField,{key:0,modelValue:e.lastNameValue,"onUpdate:modelValue":o[5]||(o[5]=re=>e.lastNameValue=re),validation:e.yup.string().min(1).required().max(40,"Last Name should not be larger than 40 characters"),variant:"booking-widget",name:"lastName",placeholder:(j=(I=e.props.manageBooking)==null?void 0:I.lastName)==null?void 0:j.placeholderText,ariaLabel:(U=(H=e.props.manageBooking)==null?void 0:H.lastName)==null?void 0:U.label},{"short-description":withCtx(()=>{var re,oe,X,se;return[(oe=(re=e.props.manageBooking)==null?void 0:re.lastName)!=null&&oe.shortDescription?(openBlock(),createElementBlock("p",_hoisted_30$1,toDisplayString((se=(X=e.props.manageBooking)==null?void 0:X.lastName)==null?void 0:se.shortDescription),1)):createCommentVNode("",!0)]}),_:1},8,["modelValue","validation","placeholder","ariaLabel"])),[[c]]):createCommentVNode("",!0)]),createBaseVNode("div",null,[(B=e.props.manageBooking)!=null&&B.buttonLabel?withDirectives((openBlock(),createBlock(e.CTAButton,{key:0,sizeType:"medium",disabled:e.lastNameValue&&e.bookingRefValue&&Object.keys(_).length!==0,ctaSizing:"fluid",isSubmit:""},{default:withCtx(()=>{var re;return[createTextVNode(toDisplayString((re=e.props.manageBooking)==null?void 0:re.buttonLabel),1)]}),_:2},1032,["disabled"])),[[u,[{clickName:(L=e.props.manageBooking)==null?void 0:L.buttonLabel,clickComponentType:"Button",componentName:"FireflyManageBooking",componentID:(z=e.props.manageBooking)==null?void 0:z.componentIdAA},{name:(W=e.props.manageBooking)==null?void 0:W.buttonLabel,type:"exit"}]]]):createCommentVNode("",!0)])]),(J=e.props.manageBooking)!=null&&J.note?(openBlock(),createElementBlock("div",_hoisted_31$1,[createVNode(l,{class:"text-base flex-shrink-0 fill-secondary-firefly-orange-extradark"}),withDirectives(createBaseVNode("div",_hoisted_32$1,null,512),[[d,(te=e.props.manageBooking)==null?void 0:te.note]])])):createCommentVNode("",!0)]}),_:1})])])]),_:1},8,["isVisible","backButtonLabel"])],64)}const FireflyManageBooking=_export_sfc(_sfc_main$q,[["render",_sfc_render$q],["__scopeId","data-v-4d1d40ab"],["__file","FireflyManageBooking.vue"]]),FireflyManageBooking$1=Object.freeze(Object.defineProperty({__proto__:null,default:FireflyManageBooking},Symbol.toStringTag,{value:"Module"})),__default__$o={name:"FireflyCheckIn",inheritAttrs:!1},_sfc_main$p=Object.assign(__default__$o,{props:{isHideInDesktop:{type:Boolean,default:!1},isHideInMobile:{type:Boolean,default:!1},checkInDescription:{type:String,default:""},checkInToolTipLabel:{type:String,default:""},checkInToolTip:{type:String,default:""},checkInNote:{type:String,default:""},checkInButtonLabel:{type:String,default:""},lastNameLabels:{type:Object,default:()=>({})},bookingVia:{type:Object,default:()=>({})},bookingRef:{type:Object,default:()=>({})},ond:{type:Object,default:()=>({})},mobileLabels:{type:Object,default:()=>({})},desktopCheckInAPIURL:{type:String,default:""},mobileCheckInAPIURL:{type:String,default:""},componentIdAA:{type:String,default:""}},emits:["update:active-tab"],setup(t,{expose:o,emit:r}){o();const e=t,n=r,a=ref$1(null),i=ref$1(null),s=ref$1(""),l=ref$1("FY"),d=ref$1(""),{isEditorMode:c}=useGlobalAEMState$1(),{isMobileSubpageVisible:u}=useBookingWidgetSubpage({hashKey:["check-in","check-in-tab"],rootEl:a}),f=computed(()=>{var T,x,k;return yup.string().required((T=e.bookingRef)==null?void 0:T.bretnMandatoryErrorMessage).max((x=e.bookingRef)==null?void 0:x.bretnCharLimit,(k=e.bookingRef)==null?void 0:k.bretnCharLimitErrorMessage)}),m=(T,x)=>{console.log("✅ handleSubmitValid values = ",T),y(T)},b=({values:T,errors:x,results:k,evt:E})=>{console.log("❌ handleSubmitInvalid errors = ",x)},y=T=>{const x={PNR:T.bretnField,lastname:T.lastName,airline:T.bookingVia},k=new URL(isMobileViewport.value?e.mobileCheckInAPIURL:e.desktopCheckInAPIURL);
1192Object.keys(x).forEach(E=>{k.searchParams.append(E,x[E])}),window.location.href=k.toString()},_=computed(()=>{const T=i.value;return T?!T.values.lastName||!T.values.bretnField||!T.values.bookingVia||Object.keys(T.errors).length!==0:!0}),{registerQueryChange:S}=useBookingWidgetUrlQuery({mainTabName:"check-in-tab"});S(async T=>{T&&(isMobileViewport.value&&(u.value=!0),n("update:active-tab",T.maintab))});const C={props:e,emit:n,rootEl:a,formWrapper:i,bretnFieldValue:s,bookingViaValue:l,lastNameValue:d,isEditorMode:c,isMobileSubpageVisible:u,bretnFieldValidation:f,handleSubmitValid:m,handleSubmitInvalid:b,formSubmission:y,isBtnSubmitDisabled:_,registerQueryChange:S,get yup(){return yup},MobileSubpage,get useBookingWidgetSubpage(){return useBookingWidgetSubpage},get useBookingWidgetUrlQuery(){return useBookingWidgetUrlQuery},get useGlobalAEMState(){return useGlobalAEMState$1},CTAButton,TextField,ONDPicker:ONDPicker$1,FormWrapper,Tooltip,get isMobileViewport(){return isMobileViewport},RadioButton};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}}),_hoisted_1$q={class:"generic-container"},_hoisted_2$l={key:0,class:"title-editor-mode"},_hoisted_3$9={class:"mb-6"},_hoisted_4$5={key:1,class:"check-in-tooltip flex items-center mb-6"},_hoisted_5$5={class:"ml-3"},_hoisted_6$5={class:"mb-5 flex gap-7"},_hoisted_7$5={class:""},_hoisted_8$5={class:"flex gap-6 xl:gap-3 xl:flex-wrap lg:flex-col"},_hoisted_9$3={class:"w-4/10 lg:w-full"},_hoisted_10$1={key:0},_hoisted_11$1={class:"w-4/10 lg:w-full"},_hoisted_12$1={key:0},_hoisted_13$1={class:"w-[max-content] flex-none xl:w-full mt-1"},_hoisted_14$1={key:2,class:"flex mt-4"},_hoisted_15={class:"rounded-xl bg-secondary-firefly-orange-ultralight flex-grow px-5 py-4 flex"},_hoisted_16={class:"basis-6 flex-none mr-3 rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_17={class:"typo-body-text-2"},_hoisted_18={class:"text-center"},_hoisted_19={class:"generic-container my-4"},_hoisted_20={key:0,class:"title-editor-mode"},_hoisted_21={class:"mb-6"},_hoisted_22={key:1,class:"check-in-tooltip flex items-center mb-6"},_hoisted_23={class:"ml-3"},_hoisted_24={class:"mb-5 >md:flex gap-7"},_hoisted_25={class:"md:mb-3"},_hoisted_26={class:"flex gap-6 xl:gap-3 xl:flex-wrap lg:flex-col"},_hoisted_27={class:"w-4/10 lg:w-full"},_hoisted_28={key:0},_hoisted_29={class:"flex-grow lg:w-full"},_hoisted_30={key:0},_hoisted_31={class:"w-[max-content] flex-none xl:w-full mt-1"},_hoisted_32={key:2,class:"flex mt-4"},_hoisted_33={class:"rounded-xl bg-secondary-firefly-orange-ultralight flex-grow px-5 py-4 flex"},_hoisted_34={class:"basis-6 flex-none mr-3 rtl:ml-3 rtl:mr-0 top-0.5 relative"},_hoisted_35={class:"typo-body-text-2"};function _sfc_render$p(t,o,r,e,n,a){var f;const i=__unplugin_components_0$9,s=__unplugin_components_0$n,l=__unplugin_components_1$c,d=resolveDirective("html-sanitize"),c=resolveDirective("alphabets-strict"),u=resolveDirective("aa");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"rootEl",class:normalizeClass(["FireflyCheckIn booking-widget-subcomponent",{">md:hidden":e.props.isHideInDesktop,"hidden >md:block":e.props.isHideInMobile,isEditorMode:e.isEditorMode}])},[createBaseVNode("div",_hoisted_1$q,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_2$l,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[7]||(o[7]=createBaseVNode("span",null,"Booking Widget: Check In",-1))])):createCommentVNode("",!0),withDirectives(createBaseVNode("p",_hoisted_3$9,null,512),[[d,e.props.checkInDescription]]),e.props.checkInToolTipLabel&&e.props.checkInToolTip?(openBlock(),createElementBlock("div",_hoisted_4$5,[createVNode(e.Tooltip,null,{default:withCtx(()=>[createVNode(s,{class:"fill-secondary-firefly-orange-extradark"})]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.checkInToolTipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("p",null,null,512),[[d,e.props.checkInToolTip]])]),_:1}),createBaseVNode("span",_hoisted_5$5,toDisplayString(e.props.checkInToolTipLabel),1)])):createCommentVNode("",!0),createVNode(e.FormWrapper,{ref:"formWrapper",class:"form-container",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:m})=>{var b,y,_,S,C,T,x,k;return[createBaseVNode("div",_hoisted_6$5,[createBaseVNode("p",_hoisted_7$5,toDisplayString((b=e.props.bookingVia)==null?void 0:b.bookingViaLabel),1),createVNode(e.RadioButton,{modelValue:e.bookingViaValue,"onUpdate:modelValue":o[0]||(o[0]=E=>e.bookingViaValue=E),name:"bookingVia",items:[{text:(y=e.props.bookingVia)==null?void 0:y.radioButton1Label,value:"FY"},{text:(_=e.props.bookingVia)==null?void 0:_.radioButton2Label,value:"MH"}],layoutAttrs:{class:"!flex"}},null,8,["modelValue","items"])]),createBaseVNode("div",_hoisted_8$5,[createBaseVNode("div",_hoisted_9$3,[createVNode(e.TextField,{modelValue:e.bretnFieldValue,"onUpdate:modelValue":o[1]||(o[1]=E=>e.bretnFieldValue=E),placeholder:(S=e.props.bookingRef)==null?void 0:S.bretnPlaceholder,ariaLabel:(C=e.props.bookingRef)==null?void 0:C.bretnLabel,validation:e.bretnFieldValidation,allowedKeys:/[A-Za-z0-9]/,name:"bretnField",variant:"booking-widget"},createSlots({_:2},[(T=e.props.bookingRef)!=null&&T.bretnShortDescription?{name:"short-description",fn:withCtx(()=>{var E,w;return[(E=e.formWrapper)!=null&&E.errors.bretnField?createCommentVNode("",!0):withDirectives((openBlock(),createElementBlock("p",_hoisted_10$1,null,512)),[[d,(w=e.props.bookingRef)==null?void 0:w.bretnShortDescription]])]}),key:"0"}:void 0]),1032,["modelValue","placeholder","ariaLabel","validation"])]),createBaseVNode("div",_hoisted_11$1,[e.props.lastNameLabels?withDirectives((openBlock(),createBlock(e.TextField,{key:0,modelValue:e.lastNameValue,"onUpdate:modelValue":o[2]||(o[2]=E=>e.lastNameValue=E),validation:e.yup.string().min(1).required().max(40,"Last Name should not be larger than 40 characters"),variant:"booking-widget",name:"lastName",placeholder:(x=e.props.lastNameLabels)==null?void 0:x.placeholderText,ariaLabel:(k=e.props.lastNameLabels)==null?void 0:k.label},{"short-description":withCtx(()=>{var E,w;return[(E=e.props.lastNameLabels)!=null&&E.shortDescription?(openBlock(),createElementBlock("p",_hoisted_12$1,toDisplayString((w=e.props.lastNameLabels)==null?void 0:w.shortDescription),1)):createCommentVNode("",!0)]}),_:1},8,["modelValue","validation","placeholder","ariaLabel"])),[[c]]):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_13$1,[withDirectives(createVNode(e.CTAButton,{ctaText:e.props.checkInButtonLabel,disabled:e.isBtnSubmitDisabled,isSubmit:!0,sizeType:e.isMobileViewport?"small":"medium",ctaSizing:"fluid"},null,8,["ctaText","disabled","sizeType"]),[[u,[{clickName:e.props.checkInButtonLabel,clickComponentType:"Button",componentName:"CheckIn",componentID:e.props.componentIdAA},{name:e.props.checkInButtonLabel,type:"exit"}]]])])])]}),_:1},512),e.props.checkInNote?(openBlock(),createElementBlock("div",_hoisted_14$1,[createBaseVNode("div",_hoisted_15,[createBaseVNode("div",_hoisted_16,[createVNode(l,{class:"fill-secondary-firefly-orange-extradark","aria-hidden":"true"})]),createBaseVNode("div",_hoisted_17,[withDirectives(createBaseVNode("span",null,null,512),[[d,e.props.checkInNote]])])])])):createCommentVNode("",!0)])],2),createVNode(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible,class:"text-white",backButtonLabel:(f=e.props.mobileLabels)==null?void 0:f.backButton,"onUpdate:isVisible":o[6]||(o[6]=m=>e.isMobileSubpageVisible=m)},{"banner-title":withCtx(()=>{var m;return[createBaseVNode("h1",_hoisted_18,toDisplayString((m=e.props.mobileLabels)==null?void 0:m.bannerText),1)]}),default:withCtx(()=>[createBaseVNode("div",_hoisted_19,[e.isEditorMode?(openBlock(),createElementBlock("h5",_hoisted_20,[createVNode(i,{class:"mr-2 fill-current inline-block"}),o[8]||(o[8]=createBaseVNode("span",null,"Booking Widget: Check-in",-1))])):createCommentVNode("",!0),withDirectives(createBaseVNode("p",_hoisted_21,null,512),[[d,e.props.checkInDescription]]),e.props.checkInToolTipLabel&&e.props.checkInToolTip?(openBlock(),createElementBlock("div",_hoisted_22,[createVNode(e.Tooltip,null,{default:withCtx(()=>[createVNode(s,{class:"fill-secondary-firefly-orange-extradark"})]),"mobile-title":withCtx(()=>[createTextVNode(toDisplayString(e.props.checkInToolTipLabel),1)]),"tooltip-content":withCtx(()=>[withDirectives(createBaseVNode("p",null,null,512),[[d,e.props.checkInToolTip]])]),_:1}),createBaseVNode("span",_hoisted_23,toDisplayString(e.props.checkInToolTipLabel),1)])):createCommentVNode("",!0),createVNode(e.FormWrapper,{ref:"formWrapper",class:"form-container",onSubmitValid:e.handleSubmitValid,onSubmitInvalid:e.handleSubmitInvalid},{default:withCtx(({errors:m})=>{var b,y,_,S,C,T,x,k;return[createBaseVNode("div",_hoisted_24,[createBaseVNode("p",_hoisted_25,toDisplayString((b=e.props.bookingVia)==null?void 0:b.bookingViaLabel),1),createVNode(e.RadioButton,{modelValue:e.bookingViaValue,"onUpdate:modelValue":o[3]||(o[3]=E=>e.bookingViaValue=E),name:"bookingVia",items:[{text:(y=e.props.bookingVia)==null?void 0:y.radioButton1Label,value:"FY"},{text:(_=e.props.bookingVia)==null?void 0:_.radioButton2Label,value:"MH"}],layoutAttrs:{class:"!flex"}},null,8,["modelValue","items"])]),createBaseVNode("div",_hoisted_26,[createBaseVNode("div",_hoisted_27,[createVNode(e.TextField,{modelValue:e.bretnFieldValue,"onUpdate:modelValue":o[4]||(o[4]=E=>e.bretnFieldValue=E),placeholder:(S=e.props.bookingRef)==null?void 0:S.bretnPlaceholder,ariaLabel:(C=e.props.bookingRef)==null?void 0:C.bretnLabel,validation:e.bretnFieldValidation,allowedKeys:/[A-Za-z0-9]/,name:"bretnField",variant:"booking-widget"},createSlots({_:2},[(T=e.props.bookingRef)!=null&&T.bretnShortDescription?{name:"short-description",fn:withCtx(()=>{var E,w;return[(E=e.formWrapper)!=null&&E.errors.bretnField?createCommentVNode("",!0):withDirectives((openBlock(),createElementBlock("p",_hoisted_28,null,512)),[[d,(w=e.props.bookingRef)==null?void 0:w.bretnShortDescription]])]}),key:"0"}:void 0]),1032,["modelValue","placeholder","ariaLabel","validation"])]),createBaseVNode("div",_hoisted_29,[e.props.lastNameLabels?withDirectives((openBlock(),createBlock(e.TextField,{key:0,modelValue:e.lastNameValue,"onUpdate:modelValue":o[5]||(o[5]=E=>e.lastNameValue=E),validation:e.yup.string().min(1).required().max(40,"Last Name should not be larger than 40 characters"),variant:"booking-widget",name:"lastName",placeholder:(x=e.props.lastNameLabels)==null?void 0:x.placeholderText,ariaLabel:(k=e.props.lastNameLabels)==null?void 0:k.label},{"short-description":withCtx(()=>{var E,w;return[(E=e.props.lastNameLabels)!=null&&E.shortDescription?(openBlock(),createElementBlock("p",_hoisted_30,toDisplayString((w=e.props.lastNameLabels)==null?void 0:w.shortDescription),1)):createCommentVNode("",!0)]}),_:1},8,["modelValue","validation","placeholder","ariaLabel"])),[[c]]):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_31,[withDirectives(createVNode(e.CTAButton,{ctaText:e.props.checkInButtonLabel,disabled:e.isBtnSubmitDisabled,isSubmit:!0,sizeType:e.isMobileViewport?"small":"medium",ctaSizing:"fluid"},null,8,["ctaText","disabled","sizeType"]),[[u,[{clickName:e.props.checkInButtonLabel,clickComponentType:"Button",componentName:"CheckIn",componentID:e.props.componentIdAA},{name:e.props.checkInButtonLabel,type:"exit"}]]])])])]}),_:1},512),e.props.checkInNote?(openBlock(),createElementBlock("div",_hoisted_32,[createBaseVNode("div",_hoisted_33,[createBaseVNode("div",_hoisted_34,[createVNode(l,{class:"fill-secondary-firefly-orange-extradark","aria-hidden":"true"})]),createBaseVNode("div",_hoisted_35,[withDirectives(createBaseVNode("span",null,null,512),[[d,e.props.checkInNote]])])])])):createCommentVNode("",!0)])]),_:1},8,["isVisible","backButtonLabel"])],64)}const FireflyCheckIn=_export_sfc(_sfc_main$p,[["render",_sfc_render$p],["__scopeId","data-v-706ab617"],["__file","FireflyCheckIn.vue"]]),FireflyCheckIn$1=Object.freeze(Object.defineProperty({__proto__:null,default:FireflyCheckIn},Symbol.toStringTag,{value:"Module"})),__default__$n={name:"FireflyHiddenSeamlessBookingWidget",inheritAttrs:!1},_sfc_main$o=Object.assign(__default__$n,{setup(t,{expose:o}){o();const r=ref$1(null),e=ref$1(null),n=ref$1(null),a=ref$1(null),i=[{componentName:"flight-search",dataRef:r},{componentName:"air-cargo",dataRef:e},{componentName:"manage-booking",dataRef:n},{componentName:"check-in",dataRef:a}];function s(T="isHideInDesktop",x={}){const k=Object.keys(x);for(const E of k)Object.hasOwn(x,T)&&(x[T]=!0),typeof x[E]=="object"&&s(T,x[E]);return x}const l=async(T=[])=>{const{pageProperties:x}=useGlobalAEMState$1(),k=x.value.rootCountry,E=x.value.rootLanguage;try{T.forEach(async(w,D)=>{const N=await axios$1.get(`/content/firefly/${k}/${E}/home/jcr:content/root/embedded_booking_widget/${w.componentName}.model.json`);w.dataRef.value=N.data})}catch(w){console.error(w)}},d=computed(()=>r.value===null?null:{...s("isHideInDesktop",r.value),isHideContinueYourSearchSection:!0}
1192),c=computed(()=>e.value===null?null:{...s("isHideInDesktop",e.value)}),u=computed(()=>n.value===null?null:{...s("isHideInDesktop",n.value)}),f=computed(()=>a.value===null?null:{...a.value,isHideInDesktop:!0}),m=async T=>{try{if(await waitFor(()=>document.querySelector(T)!==null,15,6).start(),document.querySelector(T))return!0}catch{}return!1},b=ref$1(!0),y=ref$1(!0),_=ref$1(!0),S=ref$1(!0);onMounted(async()=>{l(i),b.value=await m(".FireflyFlightSearch"),y.value=await m(".FireflyAirCargo"),_.value=await m(".FireflyManageBooking"),S.value=await m(".FireflyCheckIn")});const C={flightSearchPropsFromAPI:r,airCargoSearchPropsFromAPI:e,manageBookingPropsFromAPI:n,checkInPropsFromAPI:a,bookingWidgetArrayList:i,transformObjectProps:s,setupProps:l,flightSearchProps:d,airCargoSearchProps:c,manageBookingProps:u,checkInProps:f,getElementIfExist:m,isFlightSearchMounted:b,isAirCargoSearchMounted:y,isManageBookingMounted:_,isCheckInMounted:S,FireflyFlightSearch,FireflyAirCargo,FireflyManageBooking,FireflyCheckIn,get axios(){return axios$1},get useGlobalAEMState(){return useGlobalAEMState$1},get isMobileViewport(){return isMobileViewport},get waitFor(){return waitFor}};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}}),_hoisted_1$p={key:0,class:"FireflyHiddenSeamlessBookingWidget hidden"};function _sfc_render$o(t,o,r,e,n,a){return e.isMobileViewport?(openBlock(),createElementBlock("div",_hoisted_1$p,[e.isMobileViewport?(openBlock(),createElementBlock(Fragment,{key:0},[!e.isFlightSearchMounted&&e.flightSearchProps!==null?(openBlock(),createBlock(e.FireflyFlightSearch,normalizeProps(mergeProps({key:0},e.flightSearchProps)),null,16)):createCommentVNode("",!0),!e.isAirCargoSearchMounted&&e.airCargoSearchProps!==null?(openBlock(),createBlock(e.FireflyAirCargo,normalizeProps(mergeProps({key:1},e.airCargoSearchProps)),null,16)):createCommentVNode("",!0),!e.isManageBookingMounted&&e.manageBookingProps!==null?(openBlock(),createBlock(e.FireflyManageBooking,normalizeProps(mergeProps({key:2},e.manageBookingProps)),null,16)):createCommentVNode("",!0),!e.isCheckInMounted&&e.checkInProps!==null?(openBlock(),createBlock(e.FireflyCheckIn,normalizeProps(mergeProps({key:3},e.checkInProps)),null,16)):createCommentVNode("",!0)],64)):createCommentVNode("",!0)])):createCommentVNode("",!0)}const FireflyHiddenSeamlessBookingWidget=_export_sfc(_sfc_main$o,[["render",_sfc_render$o],["__scopeId","data-v-85f0286e"],["__file","FireflyHiddenSeamlessBookingWidget.vue"]]),__default__$m={name:"FireflyDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$n=Object.assign(__default__$m,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop,FireflyHiddenSeamlessBookingWidget};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$o={class:"FireflyDefaultLayout flex flex-col min-h-screen","data-layout":"FireflyDefault"},_hoisted_2$k={class:"floating-bottom-right-container"};function _sfc_render$n(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$o,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/header/master"}),createVNode(e.FireflyHiddenSeamlessBookingWidget),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$k,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookie
1192s-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/footer/master"})])}const FireflyDefaultLayout=_export_sfc(_sfc_main$n,[["render",_sfc_render$n],["__scopeId","data-v-573626cb"],["__file","FireflyDefaultLayout.vue"]]),__default__$l={name:"FireflyArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$m=Object.assign(__default__$l,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),n=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),a=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.categoryTags?r.value.articlePageProperties.categoryTags.map(d=>d.title).join(", "):""}),i={pageProperties:r,articleTitle:e,articleDate:n,articleTags:a,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,FireflyHiddenSeamlessBookingWidget,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$n={class:"FireflyArticleLayout flex flex-col min-h-screen","data-layout":"Article"},_hoisted_2$j={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$8={class:"generic-container"},_hoisted_4$4={class:"generic-container my-12"},_hoisted_5$4={key:0,class:"heading-2 mb-5"},_hoisted_6$4={class:"text-primary-blue-base font-semibold uppercase"},_hoisted_7$4={key:0,class:"article-date",dir:"ltr"},_hoisted_8$4={class:"article-category"};function _sfc_render$m(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$n,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/mobile-download-app-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/mobile-download-app-notification/master"}),o[2]||(o[2]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/header-notification/master"}),o[3]||(o[3]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/header/master",disableTransparency:!0}),o[4]||(o[4]=createBaseVNode("div",{class:"sticky-spacer h-$headerHeight"},null,-1)),createVNode(e.FireflyHiddenSeamlessBookingWidget),o[5]||(o[5]=createBaseVNode("div",{id:"content"},null,-1)),o[6]||(o[6]=createBaseVNode("div",{id:"booking-subpage-container",class:"article-booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$j,[createBaseVNode("div",_hoisted_3$8,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$4,[e.articleTitle?(openBlock(),createElementBlock("h1",_hoisted_5$4,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$4,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$4,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$4,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/firefly/$country/$lang/site/footer/master"})])}const FireflyArticleLayout=_export_sfc(_sfc_main$m,[["render",_sfc_render$m],["__scopeId","data-v-0fb0f2b5"],["__file","FireflyArticleLayout.vue"]]),__default__$k={name:"EnrichPortalDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$l=Object.assign(__default__$k,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$m={class:"EnrichPortalDefaultLayout flex flex-col min-h-screen","data-layout":"EnrichPortalDefault"},_hoisted_2$i={class:"layout-container-center"},_hoisted_3$7={class:"floating-bottom-right-container"};function _sfc_render$l(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$m,[createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enrich-portal/$country/$lang/site/header/master"}),o[0]||(o[0]=createBaseVNode("div",{id:"content"},null,-1)),o[1]||(o[1]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",_hoisted_2$i,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_3$7,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookie
1192s-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/cookies-notification/master"})])}const EnrichPortalDefaultLayout=_export_sfc(_sfc_main$l,[["render",_sfc_render$l],["__scopeId","data-v-4427064b"],["__file","EnrichPortalDefaultLayout.vue"]]),__default__$j={name:"EnrichPortal404Layout",expose:[],inheritAttrs:!1},_sfc_main$k=Object.assign(__default__$j,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$l={class:"EnrichPortal404Layout flex flex-col min-h-screen","data-layout":"EnrichPortal404"},_hoisted_2$h={class:"layout-container-center"};function _sfc_render$k(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$l,[createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enrich-portal/$country/$lang/site/header/master"}),o[0]||(o[0]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",_hoisted_2$h,[renderSlot(t.$slots,"default")]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/mh/$country/$lang/site/cookies-notification/master"})])}const EnrichPortal404Layout=_export_sfc(_sfc_main$k,[["render",_sfc_render$k],["__scopeId","data-v-d03616f4"],["__file","EnrichPortal404Layout.vue"]]),__default__$i={name:"AeroDaratHomePageLayout",expose:[],inheritAttrs:!1},_sfc_main$j=Object.assign(__default__$i,{setup(t,{expose:o}){o();const r=ref$1(null),{isEditorMode:e}=useGlobalAEMState$1(),n=window.siteName,a={rootEl:r,isEditorMode:e,siteName:n,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get gsap(){return gsapWithCSS},get useEventBus(){return useEventBus},get generateXfPath(){return generateXfPath},Carousel};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),_hoisted_1$k={ref:"rootEl",class:"AeroDaratHomePageLayout flex flex-col min-h-screen","data-layout":"AeroDaratHomepage"},_hoisted_2$g={class:"floating-bottom-right-container"};function _sfc_render$j(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$k,[createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/ads/$country/$lang/site/header/master"}),o[0]||(o[0]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$g,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"cookies-notification"})},null,8,["xfPath"]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/ads/$country/$lang/site/footer/master"})],512)}const AeroDaratHomepageLayout=_export_sfc(_sfc_main$j,[["render",_sfc_render$j],["__scopeId","data-v-e3e19020"],["__file","AeroDaratHomePageLayout.vue"]]),__default__$h={name:"DefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$i=Object.assign(__default__$h,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop,HiddenSeamlessBookingWidget};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$j={class:"DefaultLayout flex flex-col min-h-screen","data-layout":"Default"},_hoisted_2$f={class:"floating-bottom-right-container"};function _sfc_render$i(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$j,[createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/ads/$country/$lang/site/header/master"}),o[0]||(o[0]=createBaseVNode("div",{id:"content"},null,-1)),o[1]||(o[1]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$f,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/ads/$country/$lang/site/footer/master"})])}const AeroDaratDefaultLayout=_export_sfc(_sfc_main$i,[["render",_sfc_render$i],["__scopeId","data-v-d859085b"],["__file","AeroDaratDefaultLayout.vue"]]),__default__$g={name:"AeroDaratArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$h=Object.assign(__default__$g,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=window.siteName,n=computed(()=>{var l,d;return(d=(l=r.value)==null?void 0:l.articlePageProperties)!=null&&d.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),a=computed(()=>{var l,d;return(d=(l=r.value)==null?void 0:l.articlePageProperties)!=null&&d.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),i=computed(()=>{var l,d;return(d=(l=r.value)==null?void 0:l.articlePageProperties)!=null&&d.categoryTags?r.value.articlePageProperties.categoryTags.map(c=>c.title).join(", "):""}),s={pageProperties:r,siteName:e,articleTitle:n,articleDate:a,articleTags:i,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop,get generateXfPath(){return generateXfPath}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),_hoisted_1$i={class:"AeroDaratArticleLayout flex flex-col min-h-screen","data-layout":"AeroDaratArticle"},_hoisted_2$e={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$6={class:"generic-container"},_hoisted_4$3={class:"generic-container my-12"},_hoisted_5$3={key:0,class:"heading-2 mb-5"},_hoisted_6$3={class:"text-primary-blue-base font-medium uppercase"},_hoisted_7$3={key:0,class:"article-date",dir:"ltr"},_hoisted_8$3={class:"article-category"},_hoisted_9$2={class:"floating-bottom-right-container"};function _sfc_render$h(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$i,[createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/ads/$country/$lang/site/header/master",disableTransparency:!0}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerHeight"},null,-1)),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$e,[createBaseVNode("div",_hoisted_3$6,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$3,[e.articleTitle?(
1192openBlock(),createElementBlock("h1",_hoisted_5$3,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$3,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$3,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$3,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_9$2,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:e.generateXfPath({siteName:e.siteName,xfComponentId:"cookies-notification"})},null,8,["xfPath"]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/ads/$country/$lang/site/footer/master"})])}const AeroDaratArticleLayout=_export_sfc(_sfc_main$h,[["render",_sfc_render$h],["__scopeId","data-v-65dbdcd6"],["__file","AeroDaratArticleLayout.vue"]]),__default__$f={name:"MasKargo404Layout",expose:[],inheritAttrs:!1},_sfc_main$g=Object.assign(__default__$f,{setup(t,{expose:o}){o();const r={ExperienceFragment};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$h={class:"MasKargo404Layout flex flex-col min-h-screen","data-layout":"MasKargo404"},_hoisted_2$d={class:"layout-container-center"};function _sfc_render$g(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$h,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/header-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/maskargo/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",_hoisted_2$d,[renderSlot(t.$slots,"default")]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/maskargo/$lang/site/footer/master"})])}const MasKargo404Layout=_export_sfc(_sfc_main$g,[["render",_sfc_render$g],["__scopeId","data-v-a0740d6f"],["__file","MasKargo404Layout.vue"]]),__default__$e={name:"MasKargoEmptyPageLayout",expose:[],inheritAttrs:!1},_sfc_main$f=Object.assign(__default__$e,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var a;return!!((a=r.value)!=null&&a.backToTop)});onMounted(()=>{const{isAuthStateReady:a}=useAuthStore();a.value=!0});const n={pageProperties:r,showBackToTop:e,BtnBackToTop,get useGlobalAEMState(){return useGlobalAEMState$1},get useAuthStore(){return useAuthStore}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$g={class:"MasKargoEmptyPageLayout","data-layout":"MaskargoEmptyPage"},_hoisted_2$c=["aria-label"],_hoisted_3$5={key:0,class:"floating-bottom-right-container"};function _sfc_render$f(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$g,[createBaseVNode("main",{id:"main",tabindex:"-1","aria-label":t.$t("Main content")},[renderSlot(t.$slots,"default")],8,_hoisted_2$c),e.showBackToTop?(openBlock(),createElementBlock("div",_hoisted_3$5,[createVNode(e.BtnBackToTop)])):createCommentVNode("",!0)])}const MasKargoEmptyPageLayout=_export_sfc(_sfc_main$f,[["render",_sfc_render$f],["__scopeId","data-v-4e80a227"],["__file","MasKargoEmptyPageLayout.vue"]]),__default__$d={name:"MasKargoArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$e=Object.assign(__default__$d,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),n=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),a=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.categoryTags?r.value.articlePageProperties.categoryTags.map(d=>d.title).join(", "):""}),i={pageProperties:r,articleTitle:e,articleDate:n,articleTags:a,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$f={class:"MasKargoArticleLayout flex flex-col min-h-screen","data-layout":"MasKargoArticle"},_hoisted_2$b={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$4={class:"generic-container"},_hoisted_4$2={class:"generic-container my-12"},_hoisted_5$2={key:0,class:"heading-2 mb-5"},_hoisted_6$2={class:"text-primary-blue-base font-semibold uppercase"},_hoisted_7$2={key:0,class:"article-date",dir:"ltr"},_hoisted_8$2={class:"article-category"};function _sfc_render$e(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$f,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/maskargo/$lang/site/header/master",disableTransparency:!0}),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$b,[createBaseVNode("div",_hoisted_3$4,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$2,[e.articleTitle?(
1192openBlock(),createElementBlock("h1",_hoisted_5$2,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$2,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$2,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$2,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/maskargo/$lang/site/footer/master"})])}const MasKargoArticleLayout=_export_sfc(_sfc_main$e,[["render",_sfc_render$e],["__scopeId","data-v-93aeea51"],["__file","MasKargoArticleLayout.vue"]]),__default__$c={name:"MasKargoDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$d=Object.assign(__default__$c,{setup(t,{expose:o}){o();const r={ExperienceFragment};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$e={class:"MasKargoDefaultLayout flex flex-col min-h-screen","data-layout":"Default"};function _sfc_render$d(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$e,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/header-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/maskargo/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/maskargo/$lang/site/footer/master"})])}const MasKargoDefaultLayout=_export_sfc(_sfc_main$d,[["render",_sfc_render$d],["__scopeId","data-v-41ca9577"],["__file","MasKargoDefaultLayout.vue"]]),__default__$b={name:"MasKargoHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$c=Object.assign(__default__$b,{setup(t,{expose:o}){o();const r=ref$1(null),{isEditorMode:e}=useGlobalAEMState$1(),n=window.siteName,a={rootEl:r,isEditorMode:e,siteName:n,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get generateXfPath(){return generateXfPath}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),_hoisted_1$d={ref:"rootEl",class:"MasKargoHomepageLayout flex flex-col min-h-screen","data-layout":"MasKargoHomepage"},_hoisted_2$a={class:"floating-bottom-right-container"};function _sfc_render$c(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$d,[createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/header-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/maskargo/$lang/site/header/master"}),o[1]||(o[1]=createBaseVNode("div",{id:"content"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$a,[createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/maskargo/$lang/site/footer/master"})],512)}const MasKargoHomepageLayout=_export_sfc(_sfc_main$c,[["render",_sfc_render$c],["__scopeId","data-v-4a9d28a2"],["__file","MasKargoHomepageLayout.vue"]]),__default__$a={name:"MasKargoDestinationDetailsLayout",expose:[],inheritAttrs:!1},_sfc_main$b=Object.assign(__default__$a,{setup(t,{expose:o}){o();const{pageModel:r,pageProperties:e}=useGlobalAEMState$1(),n={pageModel:r,pageProperties:e,ExperienceFragment,get getCompositeComponent(){return getCompositeComponent},get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop,HiddenSeamlessBookingWidget,get overwriteMappingWithSyncComponent(){return overwriteMappingWithSyncComponent},Banner,MHBreadcrumb};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}
1192),_hoisted_1$c={class:"MasKargoDestinationDetailsLayout flex flex-col min-h-screen","data-layout":"MasKargoDestinationDetails"},_hoisted_2$9={class:"floating-bottom-right-container"};function _sfc_render$b(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$c,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/maskargo/$lang/site/header/master"}),createVNode(e.HiddenSeamlessBookingWidget),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$9,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/maskargo/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/maskargo/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/maskargo/$lang/site/footer/master"})])}const MasKargoDestinationDetailsLayout=_export_sfc(_sfc_main$b,[["render",_sfc_render$b],["__scopeId","data-v-6f971dc4"],["__file","MasKargoDestinationDetailsLayout.vue"]]),__default__$9={name:"EnrichDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$a=Object.assign(__default__$9,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop,HiddenSeamlessBookingWidget};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$b={class:"EnrichDefaultLayout flex flex-col min-h-screen","data-layout":"Default"},_hoisted_2$8={class:"floating-bottom-right-container"};function _sfc_render$a(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$b,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/enr/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/enr/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enr/$lang/site/header/master"}),createVNode(e.HiddenSeamlessBookingWidget),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$8,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/enr/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/enr/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/enr/$lang/site/footer/master"})])}const EnrichDefaultLayout=_export_sfc(_sfc_main$a,[["render",_sfc_render$a],["__scopeId","data-v-37f8b9f6"],["__file","EnrichDefaultLayout.vue"]]),__default__$8={name:"EnrichHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$9=Object.assign(__default__$8,{setup(t,{expose:o}){o();const r=ref$1(null),e=async()=>{var b;
1192const m=document.querySelector("#homepage-animation");m&&((b=document.querySelector("#homepage-animation .animation-graphic"))==null||b.classList.add("scale-fade-out"),await gsapWithCSS.to(m,{duration:.5,delay:.2,opacity:0,display:"none"}).then(),m.setAttribute("hidden",!0))},{isEditorMode:n}=useGlobalAEMState$1(),a=m=>{m==="show"?(document.documentElement.style.setProperty("--pinnedElementTransitionDuration","0.3s"),document.documentElement.style.setProperty("--headerTranslateY","0%"),document.documentElement.style.setProperty("--headerNotificationTranslateY","0%"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","0%"),document.documentElement.classList.remove("scroll-dir-down"),document.documentElement.classList.add("scroll-dir-up"),setTimeout(()=>{document.documentElement.style.setProperty("--pinnedElementTransitionDuration","0.2s")},320)):(document.documentElement.style.setProperty("--headerTranslateY","calc( ( (var(--mobileDlAppNotificationHeight) + var(--headerNotificationHeight)) ) * -1 )"),document.documentElement.style.setProperty("--headerNotificationTranslateY","calc( (100% + var(--mobileDlAppNotificationHeight) ) * -1 )"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","-100%"),document.documentElement.classList.remove("scroll-dir-up"),document.documentElement.classList.add("scroll-dir-down"))},i=useEventBus("homepage-transition-in"),s=async()=>{const m=".banner-carousel-swiper";await waitFor(()=>document.querySelector(m)&&document.querySelector(m).querySelector(".HeroBanner-inner")&&document.querySelector(".BookingWidget"),400,30).start();const y=document.querySelector(m),_=window.innerHeight,S=Math.min(1080,_),C=document.querySelector(".BookingWidget"),T=48,x=parseInt(window.getComputedStyle(C).marginTop),E=S-x-T-Math.min(S*.3,300);gsapWithCSS.set(y.querySelectorAll(`
1193			.banner-carousel-parsys-wrapper,
1194			[data-component="AsyncComponentWrapper"],
1195			[data-component="Banner"],
1196			.Banner,
1197			.HeroBanner,
1198			.HeroBanner-inner
1199		`),{height:"100%"}),gsapWithCSS.set(y,{height:E})},l=ref$1(null),d=ref$1(window.innerWidth),c=window.innerWidth,u=()=>{const m=[...document.querySelector(".banner-carousel-swiper").querySelectorAll(".HeroBanner-inner")];m.shift(),m.pop(),d.value=window.innerWidth,m.forEach(b=>{b.classList.contains("bg-size-contain")&&!l.value&&(l.value=b.offsetHeight)}),l.value&&(document.querySelector(".banner-carousel-swiper").style.height=`${l.value*(d.value/c)}px`)};onMounted(async()=>{var _,S;const b=window.homepageAnimationStartTime,y=performance.now();if(n.value){e();return}if(!b){e();return}if(window.homepageTransitionInInitiated){e();return}try{window.homepageTransitionInInitiated=!0;const C=window.innerHeight,T=Math.min(1080,C),x=window.innerWidth,k=".banner-carousel-swiper",E=waitFor(()=>document.querySelector(k)&&document.querySelector(k).querySelector(".HeroBanner-inner")&&document.querySelector(".BookingWidget"),400,30);document.querySelector(k)||await E.start(),a("hide");const w=(((_=document.querySelector(".HeaderNotification"))==null?void 0:_.offsetHeight)??0)+(((S=document.querySelector(".MobileDownloadAppNotification"))==null?void 0:S.offsetHeight)??0),D=document.querySelector(".BookingWidget"),N=document.querySelector(".global-header .AppHeader"),F=parseInt(window.getComputedStyle(D).marginTop);let A=T-F-48,M=A-Math.min(T*.3,300);const O=document.querySelector(k),R=O.querySelector(".swiper-pagination");u(),l.value&&(M=l.value,A=l.value),gsapWithCSS.set(O,{height:A,marginTop:-w}),gsapWithCSS.set(O.querySelectorAll(`
1200				.banner-carousel-parsys-wrapper,
1201				[data-component="AsyncComponentWrapper"],
1202				[data-component="Banner"],
1203				.Banner,
1204				.HeroBanner,
1205				.HeroBanner-inner
1206			`),{height:"100%"}),O.querySelector(".swiper-button-next")&&gsapWithCSS.set([O.querySelector(".swiper-button-prev"),O.querySelector(".swiper-button-next")],{y:"-=12px"}),R&&gsapWithCSS.set(R,{bottom:0});let I=O.querySelector(".swiper-slide-active");I||(I=O.querySelector(".swiper-slide"));const j=I.querySelector(".banner-content-placeholder"),H=D.querySelectorAll(".SwitchTabContent .switch-tab-content-wrapper"),U=gsapWithCSS.timeline({});U.add([gsapWithCSS.from([O,D,N],{duration:.5,opacity:0}
1206)],"+=0.55"),U.add([gsapWithCSS.from(j,{duration:.4,opacity:0,y:"+=60px"})]),U.add([gsapWithCSS.to(O,{duration:.6,height:M})],"+=0.25"),U.add([gsapWithCSS.from(H,{duration:.4,opacity:0,y:"+=60px"})],"+=0.25"),U.add([gsapWithCSS.to(O,{duration:.3,marginTop:0,onStart:()=>{a("show")}})],"+=0.4"),U.add([gsapWithCSS.from(document.querySelector(".FloatingWidget"),{duration:.2,bottom:"-=20%",onComplete:()=>{i.emit("animation-complete")}}),...R?[gsapWithCSS.to(R,{duration:.3,bottom:"120px"})]:[]],"+=0.4"),setTimeout(async()=>{await e()},y-b<=1500?y-b:0)}catch(C){console.log("homepage animation err = ",C),e()}window.addEventListener("resize",u)}),onUnmounted(()=>{window.addEventListener("resize",u)});const f={rootEl:r,fadeOutAnimationWrapper:e,isEditorMode:n,updateTranslateY:a,homepageTransitionInBus:i,setHomepageCarouselBannerHeight:s,containBannerHeight:l,windowWidth:d,initialWindowWidth:c,getContainBannerHeight:u,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get gsap(){return gsapWithCSS},get useEventBus(){return useEventBus},get overwriteMappingWithSyncComponent(){return overwriteMappingWithSyncComponent},Carousel,BookingWidget,CheckIn,FlightHotelSearch,FlightSchedule,FlightSearch,FlightStatus,ManageBooking,get waitFor(){return waitFor}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),_hoisted_1$a={ref:"rootEl",class:"EnrichHomepageLayout flex flex-col min-h-screen","data-layout":"Homepage"},_hoisted_2$7={class:"floating-bottom-right-container"};function _sfc_render$9(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$a,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/enr/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/enr/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enr/$lang/site/header/master"}),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$7,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/enr/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/enr/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/enr/$lang/site/footer/master"})],512)}const EnrichHomepageLayout=_export_sfc(_sfc_main$9,[["render",_sfc_render$9],["__scopeId","data-v-e8df853d"],["__file","EnrichHomepageLayout.vue"]]),__default__$7={name:"EnrichEmptyPageLayout",expose:[],inheritAttrs:!1},_sfc_main$8=Object.assign(__default__$7,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var a;return!!((a=r.value)!=null&&a.backToTop)});onMounted(()=>{const{isAuthStateReady:a}=useAuthStore();a.value=!0});const n={pageProperties:r,showBackToTop:e,BtnBackToTop,get useGlobalAEMState(){return useGlobalAEMState$1},get useAuthStore(){return useAuthStore}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$9={class:"EnrichEmptyPageLayout","data-layout":"EmptyPage"},_hoisted_2$6=["aria-label"],_hoisted_3$3={key:0,class:"floating-bottom-right-container"};function _sfc_render$8(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$9,[createBaseVNode("main",{id:"main",tabindex:"-1","aria-label":t.$t("Main content")},[renderSlot(t.$slots,"default")],8,_hoisted_2$6),e.showBackToTop?(openBlock(),createElementBlock("div",_hoisted_3$3,[createVNode(e.BtnBackToTop)])):createCommentVNode("",!0)])}const EnrichEmptyPageLayout=_export_sfc(_sfc_main$8,[["render",_sfc_render$8],["__scopeId","data-v-b8bd9d07"],["__file","EnrichEmptyPageLayout.vue"]]),__default__$6={name:"EnrichDestinationDetail
1206sLayout",expose:[],inheritAttrs:!1},_sfc_main$7=Object.assign(__default__$6,{setup(t,{expose:o}){o();const{pageModel:r,pageProperties:e}=useGlobalAEMState$1(),n={pageModel:r,pageProperties:e,ExperienceFragment,get getCompositeComponent(){return getCompositeComponent},get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop,HiddenSeamlessBookingWidget,get overwriteMappingWithSyncComponent(){return overwriteMappingWithSyncComponent},Banner,MHBreadcrumb};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$8={class:"EnrichDestinationDetailsLayout flex flex-col min-h-screen","data-layout":"DestinationDetails"},_hoisted_2$5={class:"floating-bottom-right-container"};function _sfc_render$7(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$8,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/enr/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/enr/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enr/$lang/site/header/master"}),createVNode(e.HiddenSeamlessBookingWidget),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$5,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/enr/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/enr/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/enr/$lang/site/footer/master"})])}const EnrichDestinationDetailsLayout=_export_sfc(_sfc_main$7,[["render",_sfc_render$7],["__scopeId","data-v-3aea99db"],["__file","EnrichDestinationDetailsLayout.vue"]]),__default__$5={name:"EnrichArticleLayout",expose:[],inheritAttrs:!1},_sfc_main$6=Object.assign(__default__$5,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articlePageTitle?r.value.articlePageProperties.articlePageTitle:null}),n=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.articleDate?dayjs(r.value.articlePageProperties.articleDate).format("DD MMM YYYY"):null}),a=computed(()=>{var s,l;return(l=(s=r.value)==null?void 0:s.articlePageProperties)!=null&&l.categoryTags?r.value.articlePageProperties.categoryTags.map(d=>d.title).join(", "):""}),i={pageProperties:r,articleTitle:e,articleDate:n,articleTags:a,get dayjs(){return dayjs},ExperienceFragment,Breadcrumb,get useGlobalAEMState(){return useGlobalAEMState$1},BtnBackToTop};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),_hoisted_1$7={class:"EnrichArticleLayout flex flex-col min-h-screen","data-layout":"Article"},_hoisted_2$4={class:"flex items-center z-20 bg-neutral-grey-ultralight py-5"},_hoisted_3$2={class:"generic-container"},_hoisted_4$1={class:"generic-container my-12"},_hoisted_5$1={key:0,class:"heading-2 mb-5"},_hoisted_6$1={class:"text-primary-blue-base font-semibold uppercase"},_hoisted_7$1={key:0,class:"article-date",dir:"ltr"},_hoisted_8$1={class:"article-category"},_hoisted_9$1={class:"floating-bottom-right-container"};function _sfc_render$6(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$7,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/enr/$lang/site/mobile-download-app-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/enr/$lang/site/header-notification/master"}),o[2]||(o[2]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enr/$lang/site/header/master",disableTransparency:!0}),o[3]||(o[3]=createBaseVNode("div",{class:"sticky-spacer h-$headerHeight"},null,-1)),o[4]||(o[4]=createBaseVNode("div",{id:"content"},null,-1)),o[5]||(o[5]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("div",_hoisted_3$2,[createVNode(e.Breadcrumb)])]),createBaseVNode("div",_hoisted_4$1,[e.articleTitle?(
1206openBlock(),createElementBlock("h1",_hoisted_5$1,toDisplayString(e.articleTitle),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_6$1,[e.articleDate?(openBlock(),createElementBlock("time",_hoisted_7$1,toDisplayString(e.articleDate),1)):createCommentVNode("",!0),e.articleTags?(openBlock(),createElementBlock(Fragment,{key:1},[o[0]||(o[0]=createBaseVNode("span",{class:"px-2"},"|",-1)),createBaseVNode("span",_hoisted_8$1,toDisplayString(e.articleTags),1)],64)):createCommentVNode("",!0)])]),renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_9$1,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/enr/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/enr/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/enr/$lang/site/footer/master"})])}const EnrichArticleLayout=_export_sfc(_sfc_main$6,[["render",_sfc_render$6],["__scopeId","data-v-c7c8d118"],["__file","EnrichArticleLayout.vue"]]),__default__$4={name:"EnrichMoneyDefaultLayout",expose:[],inheritAttrs:!1},_sfc_main$5=Object.assign(__default__$4,{setup(t,{expose:o}){o();const r={ExperienceFragment,BtnBackToTop,HiddenSeamlessBookingWidget};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),_hoisted_1$6={class:"EnrichMoneyDefaultLayout flex flex-col min-h-screen","data-layout":"Default"},_hoisted_2$3={class:"floating-bottom-right-container"};function _sfc_render$5(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$6,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/enr/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/enr/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enr/$lang/site/header/master"}),createVNode(e.HiddenSeamlessBookingWidget),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$3,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/enr/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/enr/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/enr/$lang/site/footer/master"})])}const EnrichMoneyDefaultLayout=_export_sfc(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-da94c8b9"],["__file","EnrichMoneyDefaultLayout.vue"]]),__default__$3={name:"EnrichMoneyHomepageLayout",expose:[],inheritAttrs:!1},_sfc_main$4=Object.assign(__default__$3,{setup(t,{expose:o}){o();const r=ref$1(null),e=async()=>{var b;const m=document.querySelector("#homepage-animation");m&&((b=document.querySelector("#homepage-animation .animation-graphic"))==null||b.classList.add("scale-fade-out"),await gsapWithCSS.to(m,{duration:.5,delay:.2,opacity:0,display:"none"}).then(),m.setAttribute("hidden",!0))},{isEditorMode:n}=useGlobalAEMState$1(),a=m=>{m==="show"?(document.documentElement.style.setProperty("--pinnedElementTransitionDuration","0.3s"),document.documentElement.style.setProperty("--headerTranslateY","0%"),document.documentElement.style.setProperty("--headerNotificationTranslateY","0%"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","0%"),document.documentElement.classList.remove("scroll-dir-down"),document.documentElement.classList.add("scroll-dir-up"),setTimeout(()=>{document.documentElement.style.setProperty("--pinnedElementTransitionDuration","0.2s")},320)):(document.documentElement.style.setProperty("--headerTranslateY","calc( ( (var(--mobileDlAppNotificationHeight) + var(--headerNotificationHeight)) ) * -1 )"),document.documentElement.style.setProperty("--headerNotificationTranslateY","calc( (100% + var(--mobileDlAppNotificationHeight) ) * -1 )"),document.documentElement.style.setProperty("--mobileDlAppNotificationTranslateY","-100%"),document.documentElement.classList.remove("scroll-dir-up"),document.documentElement.classList.add("scroll-dir-down"))},i=useEventBus("homepage-transition-in"),s=async()=>{const m=".banner-carousel-swiper";await waitFor(()=>document.querySelector(m)&&document.querySelector(m).querySelector(".HeroBanner-inner")&&document.querySelector(".BookingWidget"),400,30).start();const y=document.querySelector(m),_=window.innerHeight,S=Math.min(1080,_),C=document.querySelector(".BookingWidget"),T=48,x=parseInt(window.getComputedStyle(C).marginTop),E=S-x-T-Math.min(S*.3,300);gsapWithCSS.set(y.querySelectorAll(`
1207			.banner-carousel-parsys-wrapper,
1208			[data-component="AsyncComponentWrapper"],
1209			[data-component="Banner"],
1210			.Banner,
1211			.HeroBanner,
1212			.HeroBanner-inner
1213		`),{height:"100%"}),gsapWithCSS.set(y,{height:E})},l=ref$1(null),d=ref$1(window.innerWidth),c=window.innerWidth,u=()=>{const m=[...document.querySelector(".banner-carousel-swiper").querySelectorAll(".HeroBanner-inner")];m.shift(),m.pop(),d.value=window.innerWidth,m.forEach(b=>{b.classList.contains("bg-size-contain")&&!l.value&&(l.value=b.offsetHeight)}),l.value&&(document.querySelector(".banner-carousel-swiper").style.height=`${l.value*(d.value/c)}px`)};onMounted(async()=>{var _,S;const b=window.homepageAnimationStartTime,y=performance.now();if(n.value){e();return}if(!b){e();return}if(window.homepageTransitionInInitiated){e();return}try{window.homepageTransitionInInitiated=!0;const C=window.innerHeight,T=Math.min(1080,C),x=window.innerWidth,k=".banner-carousel-swiper",E=waitFor(()=>document.querySelector(k)&&document.querySelector(k).querySelector(".HeroBanner-inner")&&document.querySelector(".BookingWidget"),400,30);document.querySelector(k)||await E.start(),a("hide");const w=(((_=document.querySelector(".HeaderNotification"))==null?void 0:_.offsetHeight)??0)+(((S=document.querySelector(".MobileDownloadAppNotification"))==null?void 0:S.offsetHeight)??0),D=document.querySelector(".BookingWidget"),N=document.querySelector(".global-header .AppHeader"),F=parseInt(window.getComputedStyle(D).marginTop);let A=T-F-48,M=A-Math.min(T*.3,300);const O=document.querySelector(k),R=O.querySelector(".swiper-pagination");
1213u(),l.value&&(M=l.value,A=l.value),gsapWithCSS.set(O,{height:A,marginTop:-w}),gsapWithCSS.set(O.querySelectorAll(`
1214				.banner-carousel-parsys-wrapper,
1215				[data-component="AsyncComponentWrapper"],
1216				[data-component="Banner"],
1217				.Banner,
1218				.HeroBanner,
1219				.HeroBanner-inner
1220			`),{height:"100%"}),O.querySelector(".swiper-button-next")&&gsapWithCSS.set([O.querySelector(".swiper-button-prev"),O.querySelector(".swiper-button-next")],{y:"-=12px"}),R&&gsapWithCSS.set(R,{bottom:0});let I=O.querySelector(".swiper-slide-active");I||(I=O.querySelector(".swiper-slide"));const j=I.querySelector(".banner-content-placeholder"),H=D.querySelectorAll(".SwitchTabContent .switch-tab-content-wrapper"),U=gsapWithCSS.timeline({});U.add([gsapWithCSS.from([O,D,N],{duration:.5,opacity:0})],"+=0.55"),U.add([gsapWithCSS.from(j,{duration:.4,opacity:0,y:"+=60px"})]),U.add([gsapWithCSS.to(O,{duration:.6,height:M})],"+=0.25"),U.add([gsapWithCSS.from(H,{duration:.4,opacity:0,y:"+=60px"})],"+=0.25"),U.add([gsapWithCSS.to(O,{duration:.3,marginTop:0,onStart:()=>{a("show")}})],"+=0.4"),U.add([gsapWithCSS.from(document.querySelector(".FloatingWidget"),{duration:.2,bottom:"-=20%",onComplete:()=>{i.emit("animation-complete")}}),...R?[gsapWithCSS.to(R,{duration:.3,bottom:"120px"})]:[]],"+=0.4"),setTimeout(async()=>{await e()},y-b<=1500?y-b:0)}catch(C){console.log("homepage animation err = ",C),e()}window.addEventListener("resize",u)}),onUnmounted(()=>{window.addEventListener("resize",u)});const f={rootEl:r,fadeOutAnimationWrapper:e,isEditorMode:n,updateTranslateY:a,homepageTransitionInBus:i,setHomepageCarouselBannerHeight:s,containBannerHeight:l,windowWidth:d,initialWindowWidth:c,getContainBannerHeight:u,get useGlobalAEMState(){return useGlobalAEMState$1},ExperienceFragment,BtnBackToTop,get gsap(){return gsapWithCSS},get useEventBus(){return useEventBus},get overwriteMappingWithSyncComponent(){return overwriteMappingWithSyncComponent},Carousel,BookingWidget,CheckIn,FlightHotelSearch,FlightSchedule,FlightSearch,FlightStatus,ManageBooking,get waitFor(){return waitFor}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),_hoisted_1$5={ref:"rootEl",class:"EnrichMoneyHomepageLayout flex flex-col min-h-screen","data-layout":"Homepage"},_hoisted_2$2={class:"floating-bottom-right-container"};function _sfc_render$4(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$5,[createVNode(e.ExperienceFragment,{class:"global-mobile-download-app-notification",xfPath:"/content/experience-fragments/enr/$lang/site/mobile-download-app-notification/master"}),o[0]||(o[0]=createBaseVNode("div",{class:"sticky-spacer h-$mobileDlAppNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header-notification",xfPath:"/content/experience-fragments/enr/$lang/site/header-notification/master"}),o[1]||(o[1]=createBaseVNode("div",{class:"sticky-spacer h-$headerNotificationHeight"},null,-1)),createVNode(e.ExperienceFragment,{class:"global-header",xfPath:"/content/experience-fragments/enr/$lang/site/header/master"}),o[2]||(o[2]=createBaseVNode("div",{id:"content"},null,-1)),o[3]||(o[3]=createBaseVNode("div",{id:"booking-subpage-container"},null,-1)),createBaseVNode("main",null,[renderSlot(t.$slots,"default")]),createBaseVNode("div",_hoisted_2$2,[createVNode(e.ExperienceFragment,{class:"global-floating-widget",xfPath:"/content/experience-fragments/enr/$lang/site/floating-widget/master"}),createVNode(e.BtnBackToTop)]),createVNode(e.ExperienceFragment,{class:"global-cookies-notification",xfPath:"/content/experience-fragments/enr/$lang/site/cookies-notification/master"}),createVNode(e.ExperienceFragment,{class:"global-footer",xfPath:"/content/experience-fragments/enr/$lang/site/footer/master"})],512)}const EnrichMoneyHomepageLayout=_export_sfc(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-f34bfeb5"],["__file","EnrichMoneyHomepageLayout.vue"]]),__default__$2={name:"EnrichMoneyEmptyPageLayout",expose:[],inheritAttrs:!1},_sfc_main$3=Object.assign(__default__$2,{setup(t,{expose:o}){o();const{pageProperties:r}=useGlobalAEMState$1(),e=computed(()=>{var a;return!!((a=r.value)!=null&&a.backToTop)});onMounted(()=>{const{isAuthStateReady:a}=useAuthStore();a.value=!0});const n={pageProperties:r,showBackToTop:e,BtnBackToTop,get useGlobalAEMState(){return useGlobalAEMState$1},get useAuthStore(){return useAuthStore}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),_hoisted_1$4={class:"EnrichMoneyEmptyPageLayout","data-layout":"EmptyPage"},_hoisted_2$1=["aria-label"],_hoisted_3$1={key:0,class:"floating-bottom-right-container"};function _sfc_render$3(t,o,r,e,n,a){return openBlock(),createElementBlock("div",_hoisted_1$4,[createBaseVNode("main",{id:"main",tabindex:"-1","aria-label":t.$t("Main content")},[renderSlot(t.$slots,"default")],8,_hoisted_2$1),e.showBackToTop?(openBlock(),createElementBlock("div",_hoisted_3$1,[createVNode(e.BtnBackToTop)])):createCommentVNode("",!0)])}const EnrichMoneyEmptyPageLayout=_export_sfc(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-79621cad"],["__file","EnrichMoneyEmptyPageLayout.vue"]]),TEMPLATE_NAME_TO_LAYOUT_MAP={"spa-root-page-template":DefaultLayout,"spa-content-page-template":DefaultLayout,"spa-homepage-template":HomepageLayout,"spa-empty-page-template":EmptyPageLayout,"spa-404-page-template":DefaultLayout,"spa-destination-detail
1220s-page-template":DestinationDetailsLayout,"spa-article-page-template":ArticleLayout,"xf-page-template":EmptyPageLayout,"mag-spa-root-page-template":MAGDefaultLayout,"mag-spa-homepage-template":MAGHomepageLayout,"mag-spa-content-page-template":MAGDefaultLayout,"mag-spa-404-page-template":MAGDefaultLayout,"mag-spa-article-page-template":MAGArticleLayout,"mhh-spa-root-page-template":MHHDefaultLayout,"mhh-spa-homepage-template":MHHHomepageLayout,"mhh-spa-content-page-template":MHHDefaultLayout,"mhh-spa-404-page-template":MHHDefaultLayout,"maba-spa-root-page-template":MABADefaultLayout,"maba-spa-homepage-template":MABAHomepageLayout,"maba-spa-content-page-template":MABADefaultLayout,"maba-spa-404-page-template":MABADefaultLayout,"maba-spa-article-page-template":MABAArticleLayout,"amal-spa-root-page-template":AmalDefaultLayout,"amal-spa-homepage-template":AmalHomepageLayout,"amal-spa-content-page-template":AmalDefaultLayout,"amal-spa-404-page-template":AmalDefaultLayout,"amal-spa-article-page-template":AmalArticleLayout,"firefly-spa-homepage-template":FireflyHomepageLayout,"firefly-spa-root-page-template":FireflyDefaultLayout,"firefly-spa-content-page-template":FireflyDefaultLayout,"firefly-spa-404-page-template":FireflyDefaultLayout,"firefly-spa-article-page-template":FireflyArticleLayout,"enrich-portal-root-page-template":EnrichPortalDefaultLayout,"enrich-portal-404-page-template":EnrichPortal404Layout,"enrich-portal-content-page-template":EnrichPortalDefaultLayout,"ads-homepage-template":AeroDaratHomepageLayout,"ads-root-page-template":AeroDaratDefaultLayout,"ads-content-page-template":AeroDaratDefaultLayout,"ads-article-page-template":AeroDaratArticleLayout,"ads-404-page-template":AeroDaratDefaultLayout,"mk-root-page-template":MasKargoDefaultLayout,"mk-homepage-template":MasKargoHomepageLayout,"mk-empty-page-template":MasKargoEmptyPageLayout,"mk-content-page-template":MasKargoDefaultLayout,"mk-article-page-template":MasKargoArticleLayout,"mk-404-page-template":MasKargo404Layout,"mk-destination-page-template":MasKargoDestinationDetailsLayout,"enrich-root-page-template":EnrichDefaultLayout,"enrich-content-page-template":EnrichDefaultLayout,"enrich-homepage-template":EnrichHomepageLayout,"enrich-empty-page-template":EnrichEmptyPageLayout,"enrich-404-page-template":EnrichDefaultLayout,"enrich-destination-details-page-template":EnrichDestinationDetailsLayout,"enrich-article-page-template":EnrichArticleLayout,"enrich-xf-page-template":EnrichEmptyPageLayout,"enrichmoney-root-page-template":EnrichMoneyDefaultLayout,"enrichmoney-content-page-template":EnrichMoneyDefaultLayout,"enrichmoney-homepage-template":EnrichMoneyHomepageLayout,"enrichmoney-empty-page-template":EnrichMoneyEmptyPageLayout,"enrichmoney-404-page-template":EnrichMoneyDefaultLayout},__default__$1={name:"SkipToMainContent"},_sfc_main$2=Object.assign(__default__$1,{props:{},emits:[],setup(t,{expose:o,emit:r}){o();const a={props:t,emit:r};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),_hoisted_1$3={class:"SkipToMainContent typo-body-text-3",href:"#content"};function _sfc_render$2(t,o,r,e,n,a){return openBlock(),createElementBlock("a",_hoisted_1$3,toDisplayString(t.$t("Skip to main content")),1)}const SkipToMainContent=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-db60932e"],["__file","SkipToMainContent.vue"]]),_hoisted_1$2={width:"1.2em",height:"1.2em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512"};function render(t,o){return openBlock(),createElementBlock("svg",_hoisted_1$2,o[0]||(o[0]=[createBaseVNode("path",{d:"M64 360C94.93 360 120 385.1 120 416C120 446.9 94.93 472 64 472C33.07 472 8 446.9 8 416C8 385.1 33.07 360 64 360zM64 200C94.93 200 120 225.1 120 256C120 286.9 94.93 312 64 312C33.07 312 8 286.9 8 256C8 225.1 33.07 200 64 200zM64 152C33.07 152 8 126.9 8 96C8 65.07 33.07 40 64 40C94.93 40 120 65.07 120 96C120 126.9 94.93 152 64 152z"},null,-1)]))}const __unplugin_components_0=markRaw({name:"fas-ellipsis-vertical",render}),__default__={name:"SideSheetOverlay",inheritAttrs:!1},_sfc_main$1=Object.assign(__default__,{setup(t,{expose:o}){o();const r=ref$1(null),e=ref$1(!1),n=window.siteName,{hasFocus:a,activate:i,deactivate:s}=useFocusTrap(r),l=()=>Anchor.activate("body"),d=async()=>{var X;(X=r.value)==null||X.focus(),await nextTick$1(),i()},c=()=>s(),{overlayData:u,removeOverlayID:f,isVisible:m}=useSideSheetOverlay(),b=()=>{var X;if(((X=u.value)==null?void 0:X.displayType)==="notification"){if(w.value){M.emit
1220({active:!1}),w.value=!1;return}k.value=!1}e.value=!1,f()},y=computed(()=>{var le;if(isMobileViewport.value)return{};const X={"flightSearch-hotels":"768px","mid-tier-status-benefits":"640px",notification:"640px","half-page-dimension":"50%"},se=(le=u.value)==null?void 0:le.displayType;return{width:X[se]||"100%"}}),_=computed(()=>{var X;return isMobileViewport.value&&((X=u.value)==null?void 0:X.displayType)==="flightSearch-hotels"}),S=computed(()=>{var X;return((X=u.value)==null?void 0:X.displayType)==="quick-redemption"}),C=computed(()=>{var X;return isMobileViewport.value&&(e.value||((X=u.value)==null?void 0:X.displayType)==="notification")?"overlay-container":"overlay-bottom-container"}),T=computed(()=>{var X;return!(isMobileViewport.value&&((X=u.value)==null?void 0:X.displayType)!=="notification"&&!e.value)}),x=computed(()=>{var X;return isMobileViewport.value&&((X=u.value)==null?void 0:X.displayType)!=="notification"&&!e.value?"overlay-bottom":"overlay-drawer-right"}),k=ref$1(!1),E=()=>{k.value=!k.value},w=ref$1(!1),D=ref$1(""),N=ref$1(""),F=ref$1(""),V=ref$1(""),A=useEventBus("enrich-notification-opened"),M=useEventBus("enrich-notification-closed"),O=useEventBus("enrich-notification-labels"),R=useEventBus("global-listening-bus");A.on(X=>{X.active&&(w.value=!0,k.value=!1)}),O.on(X=>{var se;((se=u.value)==null?void 0:se.displayType)==="notification"&&(X.readLabel&&(D.value=X.readLabel),X.readAllLabel&&(N.value=X.readAllLabel),X.deleteLabel&&(F.value=X.deleteLabel),X.deleteAllLabel&&(V.value=X.deleteAllLabel))}),R.on(async(X,se)=>{switch(X){case"set-overlay-in-sidesheet":{e.value=!0,u.value=se;break}case"trigger-close-sidesheet":{b();break}}});const I=useEventBus("enrich-notification"),j=()=>{I.emit({action:"markAllAsRead",status:2}),k.value=!1},H=()=>{w.value?I.emit({action:"deleteOne",status:0}):I.emit({action:"deleteAll",status:0}),k.value=!1,w.value=!1},U=ref$1(null);let B=0,L=0,z=!1;const W=120,oe={rootEl:r,isTriggeredFromHeaderQuickLink:e,siteName:n,hasFocus:a,activateFocusTrap:i,deactivateFocusTrap:s,onRootMounted:l,handleRootElOnMounted:d,handleRootElBeforeUnmount:c,overlayData:u,removeOverlayID:f,isVisible:m,closeOverlay:b,overlayStyles:y,isFlightSearchMobile:_,isGiftCardQuickRedemption:S,mobileOverlayContainerClass:C,showCloseButton:T,transitionName:x,showMenu:k,toggleMenu:E,isNotificationOpened:w,enrichRead:D,enrichReadAll:N,enrichDelete:F,enrichDeleteAll:V,enrichNotificationOpened:A,enrichNotificationClosed:M,enrichNotificationLabels:O,globalListener:R,enrichNotificationBus:I,handleMarkAllAsRead:j,handleDeleteAction:H,sheetEl:U,get startY(){return B},set startY(X){B=X},get currentY(){return L},set currentY(X){L=X},get isDragging(){return z},set isDragging(X){z=X},swipeThreshold:W,onTouchStart:X=>{isMobileViewport.value&&(B=X.touches[0].clientY,z=!0)},onTouchMove:X=>{!z||!isMobileViewport.value||(L=X.touches[0].clientY-B,L>0&&(U.value.style.transform=`translateY(${L}px)`))},onTouchEnd:()=>{z&&(z=!1,L>W?b():U.value.style.transform="translateY(0)",L=0)},ref:ref$1,computed,nextTick:nextTick$1,get useFocusTrap(){return useFocusTrap},ExperienceFragment,get useSideSheetOverlay(){return useSideSheetOverlay},get useEventBus(){return useEventBus},get isMobileViewport(){return isMobileViewport},get Anchor(){return Anchor}};return Object.defineProperty(oe,"__isScriptSetup",{enumerable:!1,value:!0}),oe}}),_hoisted_1$1=["data-use-theme"],_hoisted_2={class:"overlay-wrapper relative"},_hoisted_3={class:"text-sm overlay-title heading-5"},_hoisted_4={key:0,class:"absolute right-12 top-12 bg-white border rounded shadow-lg z-50 w-44"},_hoisted_5={key:0,type:"button",tabindex:"0",style:{position:"absolute",opacity:"0",width:"0",height:"0"},"aria-hidden":"true"},_hoisted_6=["data-use-theme"],_hoisted_7={class:"generic-container"},_hoisted_8={class:""},_hoisted_9={class:"my-10 text-white"},_hoisted_10={class:"text-center"},_hoisted_11=["data-use-theme"],_hoisted_12=["data-use-theme"],_hoisted_13={class:"overlay-wrapper"},_hoisted_14={class:"overlay-content flex-grow overflow-y-auto styled-scrollbar"};function _sfc_render$1(t,o,r,e,n,a){var d;const i=__unplugin_components_0,s=__unplugin_components_0$i,l=__unplugin_components_0$k;return!e.isFlightSearchMobile&&!e.isGiftCardQuickRedemption?(openBlock(),createBlock(Teleport,{key:0,to:"body"},[createVNode(Transition,{name:e.transitionName,appear:""},{default:withCtx(()=>{var c;return[e.isVisible||e.isTriggeredFromHeaderQuickLink?(openBlock(),createElementBlock("div",{key:0,ref:"rootEl",class:normalizeClass(["SideSheetOverlay",e.isMobileViewport?"backdrop-bottom":"backdrop"]),"data-use-theme":e.siteName,tabindex:"-1",onVnodeMounted:e.handleRootElOnMounted,onVnodeBeforeUnmount:e.handleRootElBeforeUnmount},[createBaseVNode("div",{class:normalizeClass(["h-full relative",e.isMobileViewport?e.mobileOverlayContainerClass:"overlay-container"]),style:normalizeStyle(e.overlayStyles)},[createBaseVNode("div",_hoisted_2,[createBaseVNode("div",{class:"overlay-line",onClick:o[0]||(o[0]=(...u)=>e.removeOverlayID&&e.removeOverlayID(...u))}),createBaseVNode("div",{class:normalizeClass(["drawer-header mb-3",{"border-bottom":e.isMobileViewport&&!e.showCloseButton}])},[createBaseVNode("div",_hoisted_3,toDisplayString(e.overlayData.overlayTitle),
12201),e.overlayData.displayType==="notification"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("button",{type:"button",class:"w-8 h-8 p-0 absolute right-14 flex items-center justify-center hover:bg-neutral-grey-extralight rounded-full",onClick:e.toggleMenu},[createVNode(i,{class:"w-3 h-3"})]),e.showMenu?(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("ul",null,[createBaseVNode("li",null,[e.isNotificationOpened?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:"block w-full text-left px-4 py-2 hover:bg-neutral-grey-extralight",onClick:e.handleMarkAllAsRead},toDisplayString(e.enrichReadAll),1))]),createBaseVNode("li",null,[createBaseVNode("button",{type:"button",class:"block w-full text-left px-4 py-2 hover:bg-neutral-grey-extralight",onClick:e.handleDeleteAction},toDisplayString(e.isNotificationOpened?e.enrichDelete:e.enrichDeleteAll),1)])])])):createCommentVNode("",!0)],64)):createCommentVNode("",!0),e.showCloseButton?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"w-8 h-8 my-6 p-0 md:h-6 md:w-6 md:my-4 flex items-center justify-center",onClick:e.closeOverlay},[createVNode(s,{class:"w-2.5"})])):createCommentVNode("",!0)],2),createBaseVNode("div",{class:normalizeClass(["overlay-content py-4 px-6 flex-grow",{"overflow-y-auto styled-scrollbar":e.overlayData.displayType!=="notification","p-4":e.siteName!=="maskargo"}])},[e.siteName==="maskargo"?(openBlock(),createElementBlock("button",_hoisted_5)):createCommentVNode("",!0),createVNode(e.ExperienceFragment,{xfPath:(c=e.overlayData)==null?void 0:c.experienceFragmentURL},null,8,["xfPath"])],2)])],6)],10,_hoisted_1$1)):createCommentVNode("",!0)]}),_:1},8,["name"])])):e.isGiftCardQuickRedemption?(openBlock(),createBlock(Teleport,{key:2,to:"body"},[createVNode(Transition,{ref:"rootEl",name:"overlay-bottom",appear:""},{default:withCtx(()=>{var c;return[e.isVisible||e.isTriggeredFromHeaderQuickLink?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.isMobileViewport?"backdrop-bottom":"backdrop-center"),"data-use-theme":e.siteName,tabindex:"-1",onVnodeMounted:e.handleRootElOnMounted,onVnodeBeforeUnmount:e.handleRootElBeforeUnmount,onClick:e.closeOverlay},[createBaseVNode("div",{ref:"sheetEl",class:normalizeClass(["quick-redemption-overlay-container rounded-xl",{"quick-redemption-overlay-mobile-container":e.isMobileViewport}]),onTouchstartPassive:e.onTouchStart,onTouchmove:withModifiers(e.onTouchMove,["prevent"]),onTouchend:e.onTouchEnd,onClick:o[2]||(o[2]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",_hoisted_13,[createBaseVNode("div",_hoisted_14,[createVNode(e.ExperienceFragment,{xfPath:(c=e.overlayData)==null?void 0:c.experienceFragmentURL},null,8,["xfPath"])])])],34)],10,_hoisted_12)):createCommentVNode("",!0)]}),_:1},512)])):(openBlock(),createBlock(Teleport,{key:1,to:"#booking-subpage-container"},[createBaseVNode("section",{class:"section-banner","data-use-theme":e.siteName,onVnodeMounted:e.onRootMounted},[createBaseVNode("div",_hoisted_7,[createBaseVNode("button",{class:"btn-back flex items-center text-white gap-2",type:"button",onClick:o[1]||(o[1]=(...c)=>e.removeOverlayID&&e.removeOverlayID(...c))},[createVNode(l,{class:"fill-current transform rtl:-rotate-180"}),createBaseVNode("span",_hoisted_8,toDisplayString(t.$t("Back")),1)]),createBaseVNode("div",_hoisted_9,[createBaseVNode("h1",_hoisted_10,toDisplayString(e.overlayData.overlayTitle),1)])])],8,_hoisted_6),o[3]||(o[3]=createBaseVNode("div",{class:"top-rounded-section-breaker"},null,-1)),createBaseVNode("div",{class:"mobile-flightsearch-overlay p-3","data-use-theme":e.siteName,onVnodeMounted:e.onRootMounted},[createVNode(e.ExperienceFragment,{xfPath:(d=e.overlayData)==null?void 0:d.experienceFragmentURL},null,8,["xfPath"])],8,_hoisted_11)]))}const SideSheetOverlay=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-3176fd90"],["__file","SideSheetOverlay.vue"]]),_sfc_main={name:"App",expose:[],components:{WrapVNodes,DefaultLayout,SkipToMainContent,SideSheetOverlay},props:{cqChildren:{type:Object,default:()=>({})},cqItems:{type:Object,default:()=>({})},cqItemsOrder:{type:Array,default:()=>[]},cqPath:{type:String,default:""},injectPropsOnInit:{type:Boolean,default:!0},cqForceReload:{type:Boolean,default:!1},templateName:{type:String,default:""},language:{type:String,default:""},title:{type:String,default:""}},setup(t,o){const r=(i,s,l)=>{const{cqItems:d,cqItemsOrder:c,cqPath:u}=t,f=u?`${u}/${Constants.JCR_CONTENT}/${l}`:l;return h(i,{...s,cqPath:f})},e=computed(()=>{const{cqItems:i,cqItemsOrder:s}=t;return!i||!s?[]:s.map(l=>{const d=Utils.modelToProps(i[l]);if(!d)return null;const c=getMappedComponent(d.cqType);return c?r(c,d,l):null})}),n=useRoute$1(),a=computed(()=>{var s;return((s=n.meta)==null?void 0:s.layout)||TEMPLATE_NAME_TO_LAYOUT_MAP[t.templateName]||DefaultLayout});return e.value,{route:n,Constants,childComponents:e,layoutComponent:a}},beforeMount(){const{pageProperties:t}
1220=useGlobalAEMState$1(),{mhloginRequired:o,mattaFairLoginRedirectUrl:r}=t.value,{isSapphireCookiePresent:e}=useAuthStore();if(o&&!e()){if(!r)throw new Error("Invalid mattaFairLoginRedirectUrl");window.location.href=r}}},_hoisted_1=["data-cq-data-path"];function _sfc_render(t,o,r,e,n,a){var d,c;const i=resolveComponent("SkipToMainContent"),s=resolveComponent("router-view"),l=resolveComponent("SideSheetOverlay");return openBlock(),createElementBlock("div",{class:normalizeClass(`${e.Constants._PAGE_CLASS_NAMES} app-root`),"data-cq-data-path":r.cqPath},[createVNode(i),(openBlock(),createBlock(resolveDynamicComponent(e.layoutComponent),{aemProperties:(c=(d=e.route.matched)==null?void 0:d[0])==null?void 0:c.props.default},{default:withCtx(()=>[createVNode(s)]),_:1},8,["aemProperties"])),createVNode(l)],10,_hoisted_1)}const App=_export_sfc(_sfc_main,[["render",_sfc_render],["__file","App.vue"]]);(function t(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))e(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&e(i)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function e(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();const TEMPLATE_NAME_ERROR_404="spa-404-page-template",generateRoutes=({cqChildren:t,rootPath:o,currentPath:r,pageModel:e})=>t?Object.entries(t).map(([a,i])=>{const s=Utils.modelToProps(i),l=getMappedComponent(s.cqType);let d=s.cqPath.replace(new RegExp(`^${o}/`,"i"),""),c=d;if(!l)return null;let u=window.location.pathname,f=TEMPLATE_NAME_TO_LAYOUT_MAP[i.templateName]||null;return f||(console.warn(`Unknown templateName: "${i.templateName}". Using the default template instead.`),f=TEMPLATE_NAME_TO_LAYOUT_MAP["spa-content-page-template"]),i.templateName===TEMPLATE_NAME_ERROR_404&&(u="/:pathMatch(.*)*"),{name:c,path:u,component:l,props:{...s,injectPropsOnInit:!1,key:d},meta:{layout:f,patchCleanPath:!0}}}).filter(Boolean):[];var isToday$1={exports:{}};(function(t,o){(function(r,e){t.exports=e()})(commonjsGlobal,function(){return function(r,e,n){e.prototype.isToday=function(){var a="YYYY-MM-DD",i=n();return this.format(a)===i.format(a)}}})})(isToday$1);var isTodayExports=isToday$1.exports;const isToday=getDefaultExportFromCjs(isTodayExports);var localeData$1={exports:{}};(function(t,o){(function(r,e){t.exports=e()})(commonjsGlobal,function(){return function(r,e,n){var a=e.prototype,i=function(u){return u&&(u.indexOf?u:u.s)},s=function(u,f,m,b,y){var _=u.name?u:u.$locale(),S=i(_[f]),C=i(_[m]),T=S||C.map(function(k){return k.slice(0,b)});if(!y)return T;var x=_.weekStart;return T.map(function(k,E){return T[(E+(x||0))%7]})},l=function(){return n.Ls[n.locale()]},d=function(u,f){return u.formats[f]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,_){return y||_.slice(1)})}(u.formats[f.toUpperCase()])},c=function(){var u=this;return{months:function(f){return f?f.format("MMMM"):s(u,"months")},monthsShort:function(f){return f?f.format("MMM"):s(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):s(u,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):s(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):s(u,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return d(u.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},n.localeData=function(){var u=l();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(f){return d(u,f)},meridiem:u.meridiem,ordinal:u.ordinal}},n.months=function(){return s(l(),"months")},n.monthsShort=function(){return s(l(),"monthsShort","months",3)},n.weekdays=function(u){return s(l(),"weekdays",null,null,u)},n.weekdaysShort=function(u){return s(l(),"weekdaysShort","weekdays",3,u)},n.weekdaysMin=function(u){return s(l(),"weekdaysMin","weekdays",2,u)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports);dayjs.extend(localeData);const dayJsLocales={af:()=>__vitePreload(()=>import("./af-tAWS3oXK.js").then(t=>t.a),[]),am:()=>__vitePreload(()=>import("./am-DhiiRVxi.js").then(t=>t.a),[]),"ar-dz":()=>__vitePreload(()=>import("./ar-dz-C8NotPzx.js").then(t=>t.a),[]),"ar-iq":()=>__vitePreload(()=>import("./ar-iq-LMR3KkG-.js").then(t=>t.a),[]),"ar-kw":()=>__vitePreload(()=>import("./ar-kw-C_g_zY2F.js").then(t=>t.a),[]),"ar-ly":()=>__vitePreload(()=>import("./ar-ly-xjs9yRKX.js").then(t=>t.a),[]),"ar-ma":()=>__vitePreload(()=>import("./ar-ma-J-r3uTve.js").then(t=>t.a),[]),"ar-sa":()=>__vitePreload(()=>import("./ar-sa-DQ0YDMys.js").then(t=>t.a),[]),"ar-tn":()=>__vitePreload(()=>import("./ar-tn-BKFqj7ma.js").then(t=>t.a),[]),ar:()=>__vitePreload(()=>import("./ar-Dwp9UTWo.js").then(t=>t.a),[]),az:()=>__vitePreload(()=>import("./az-CdgR_Qlf.js").then(t=>t.a),[]),be:()=>__vitePreload(()=>import("./be-Bauwaixo.js").then(t=>t.b),[]),bg:()=>__vitePreload(()=>import("./bg-Cx8vbbxb.js").then(t=>t.b),[]),bi:()=>__vitePreload(()=>import("./bi-BbNt4ZjV.js").then(t=>t.b),[]),bm:()=>__vitePreload(()=>import("./bm-BfLYzJfH.js").then(t=>t.b),[]),"bn-bd":()=>__vitePreload(()=>import("./bn-bd-BzAqrmUi.js").then(t=>t.b),[]),bn:()=>__vitePreload(()=>import("./bn-Dqov2HMf.js").then(t=>t.b),[]),bo:()=>__vitePreload(()=>import("./bo-hRwhaAlE.js").then(t=>t.b),[]),br:()=>__vitePreload(()=>import("./br-D88pU5CB.js").then(t=>t.b),[]),bs:()=>__vitePreload(()=>import("./bs-6_oW7WKF.js").then(t=>t.b),[]),ca:()=>__vitePreload(()=>import("./ca-B9uI90Q0.js").then(t=>t.c),[]),cs:()=>__vitePreload(()=>import("./cs-CpCTX-LZ.js").then(t=>t.c),[]),cv:()=>__vitePreload(()=>import("./cv-q8VhtrwA.js").then(t=>t.c),[]),cy:()=>__vitePreload(()=>import("./cy-D88ccmHb.js").then(t=>t.c),[]),da:()=>__vitePreload(()=>import("./da-BOYhp45U.js").then(t=>t.d),[]),"de-at":()=>__vitePreload(()=>import("./de-at-D_4NhpOo.js").then(t=>t.d),[]),"de-ch":()=>__vitePreload(()=>import("./de-ch-GECmJJDK.js").then(t=>t.d),[]),de:()=>__vitePreload(()=>import("./de-qzq4Qnra.js").then(t=>t.d),[]),dv:()=>__vitePreload(()=>import("./dv-Ble02AFF.js").then(t=>t.d),[]),el:()=>__vitePreload(()=>import("./el-vLOgIOpj.js").then(t=>t.e),[]),"en-au":()=>__vitePreload(()=>import("./en-au-BmzFM2yk.js").then(t=>t.e),[]),"en-ca":()=>__vitePreload(()=>import("./en-ca-BiXB-Ylx.js").then(t=>t.e),[]),"en-gb":()=>__vitePreload(()=>import("./en-gb-BkRVDU1A.js").then(t=>t.e),[]),"en-ie":()=>__vitePreload(()=>import("./en-ie-BpRiv_86.js").then(t=>t.e),[]),"en-il":()=>__vitePreload(()=>import("./en-il-DJ9POWxf.js").then(t=>t.e),[]),"en-in":()=>__vitePreload(()=>import("./en-in-Cq1T0lea.js").then(t=>t.e),[]),"en-nz":()=>__vitePreload(()=>import("./en-nz-BCYwJSxe.js").then(t=>t.e),[]),"en-sg":()=>__vitePreload(()=>import("./en-sg-CikMO3qM.js").then(t=>t.e),[]),"en-tt":()=>__vitePreload(()=>import("./en-tt-BZc_0K93.js").then(t=>t.e),[]),en:()=>__vitePreload(()=>import("./en-wK1yTThn.js").then(t=>t.e),[]),eo:()=>__vitePreload(()=>import("./eo-CpTp-Je4.js").then(t=>t.e),[]),"es-do":()=>__vitePreload(()=>import("./es-do-BrPE0K8D.js").then(t=>t.e),[]),es:()=>__vitePreload(()=>import("./es-BsASyadR.js").then(t=>t.e),[]),et:()=>__vitePreload(()=>import("./et-BGPdPlr_.js").then(t=>t.e),[]),eu:()=>__vitePreload(()=>
1220import("./eu-DrggLtg8.js").then(t=>t.e),[]),fa:()=>__vitePreload(()=>import("./fa-CJDg_5hR.js").then(t=>t.f),[]),fi:()=>__vitePreload(()=>import("./fi-5BkBQKlK.js").then(t=>t.f),[]),fo:()=>__vitePreload(()=>import("./fo-ww3vBsMw.js").then(t=>t.f),[]),"fr-ca":()=>__vitePreload(()=>import("./fr-ca-DRNzjo_K.js").then(t=>t.f),[]),"fr-ch":()=>__vitePreload(()=>import("./fr-ch-Cy_YJBhF.js").then(t=>t.f),[]),fr:()=>__vitePreload(()=>import("./fr-C4ni2JAZ.js").then(t=>t.f),[]),fy:()=>__vitePreload(()=>import("./fy-CeUfozcJ.js").then(t=>t.f),[]),ga:()=>__vitePreload(()=>import("./ga-CiliCGoX.js").then(t=>t.g),[]),gd:()=>__vitePreload(()=>import("./gd-Baxt9OuP.js").then(t=>t.g),[]),gl:()=>__vitePreload(()=>import("./gl-DkfYYf_e.js").then(t=>t.g),[]),"gom-latn":()=>__vitePreload(()=>import("./gom-latn-_4CUpSOG.js").then(t=>t.g),[]),gu:()=>__vitePreload(()=>import("./gu-CBfbxsp1.js").then(t=>t.g),[]),he:()=>__vitePreload(()=>import("./he-qruizcSo.js").then(t=>t.h),[]),hi:()=>__vitePreload(()=>import("./hi-DiJBgiZq.js").then(t=>t.h),[]),hr:()=>__vitePreload(()=>import("./hr-BLXywpdT.js").then(t=>t.h),[]),ht:()=>__vitePreload(()=>import("./ht-C_M_ro8Q.js").then(t=>t.h),[]),hu:()=>__vitePreload(()=>import("./hu-CAImNhYM.js").then(t=>t.h),[]),"hy-am":()=>__vitePreload(()=>import("./hy-am-DkzJ2B6e.js").then(t=>t.h),[]),id:()=>__vitePreload(()=>import("./id-bjFeUfjl.js").then(t=>t.i),[]),is:()=>__vitePreload(()=>import("./is-0DPfSCYH.js").then(t=>t.i),[]),"it-ch":()=>__vitePreload(()=>import("./it-ch-D40V7Kk1.js").then(t=>t.i),[]),it:()=>__vitePreload(()=>import("./it-BlJEV8R4.js").then(t=>t.i),[]),ja:()=>__vitePreload(()=>import("./ja-BBA96zdJ.js").then(t=>t.j),[]),jv:()=>__vitePreload(()=>import("./jv-DrfcuAzp.js").then(t=>t.j),[]),ka:()=>__vitePreload(()=>import("./ka-B4nr80Ke.js").then(t=>t.k),[]),kk:()=>__vitePreload(()=>import("./kk-CrtEvHKI.js").then(t=>t.k),[]),km:()=>__vitePreload(()=>import("./km-Bq4nN9qJ.js").then(t=>t.k),[]),kn:()=>__vitePreload(()=>import("./kn-BVEWIwkN.js").then(t=>t.k),[]),ko:()=>__vitePreload(()=>import("./ko-BXy8JMug.js").then(t=>t.k),[]),ku:()=>__vitePreload(()=>import("./ku-BtrscaIN.js").then(t=>t.k),[]),ky:()=>__vitePreload(()=>import("./ky-DnEu5j0R.js").then(t=>t.k),[]),lb:()=>__vitePreload(()=>import("./lb-C4ZApGEM.js").then(t=>t.l),[]),lo:()=>__vitePreload(()=>import("./lo-BblEtCFi.js").then(t=>t.l),[]),lt:()=>__vitePreload(()=>import("./lt-C0I-frJC.js").then(t=>t.l),[]),lv:()=>__vitePreload(()=>import("./lv-B8eDz3vq.js").then(t=>t.l),[]),me:()=>__vitePreload(()=>import("./me-BjkNVyDw.js").then(t=>t.m),[]),mi:()=>__vitePreload(()=>import("./mi-BwOGJYBZ.js").then(t=>t.m),[]),mk:()=>__vitePreload(()=>import("./mk-B7be53_8.js").then(t=>t.m),[]),ml:()=>__vitePreload(()=>import("./ml-DZB2DHS4.js").then(t=>t.m),[]),mn:()=>__vitePreload(()=>import("./mn-B9eZMUeG.js").then(t=>t.m),[]),mr:()=>__vitePreload(()=>
1220import("./mr-82eVGHYu.js").then(t=>t.m),[]),"ms-my":()=>__vitePreload(()=>import("./ms-my-Bs7RlNjO.js").then(t=>t.m),[]),ms:()=>__vitePreload(()=>import("./ms-CP0T_yVa.js").then(t=>t.m),[]),mt:()=>__vitePreload(()=>import("./mt-DwgMk9Xr.js").then(t=>t.m),[]),my:()=>__vitePreload(()=>import("./my-B61yS4SH.js").then(t=>t.m),[]),nb:()=>__vitePreload(()=>import("./nb-C5YD9tu3.js").then(t=>t.n),[]),ne:()=>__vitePreload(()=>import("./ne-CuUN85C7.js").then(t=>t.n),[]),"nl-be":()=>__vitePreload(()=>import("./nl-be-C8OuLynN.js").then(t=>t.n),[]),nl:()=>__vitePreload(()=>import("./nl-9WF7IyTN.js").then(t=>t.n),[]),nn:()=>__vitePreload(()=>import("./nn-Kxm7zWnK.js").then(t=>t.n),[]),"oc-lnc":()=>__vitePreload(()=>import("./oc-lnc-qZKCS50s.js").then(t=>t.o),[]),"pa-in":()=>__vitePreload(()=>import("./pa-in-B5_pGFcq.js").then(t=>t.p),[]),pl:()=>__vitePreload(()=>import("./pl-DpIOAfGU.js").then(t=>t.p),[]),"pt-br":()=>__vitePreload(()=>import("./pt-br-C3-HRMUf.js").then(t=>t.p),[]),pt:()=>__vitePreload(()=>import("./pt-twP8dk9w.js").then(t=>t.p),[]),rn:()=>__vitePreload(()=>import("./rn-BjlxRg-q.js").then(t=>t.r),[]),ro:()=>__vitePreload(()=>import("./ro-4F1ZDTd-.js").then(t=>t.r),[]),ru:()=>__vitePreload(()=>import("./ru-D0f8dLzb.js").then(t=>t.r),[]),rw:()=>__vitePreload(()=>import("./rw-6BEL6kjC.js").then(t=>t.r),[]),sd:()=>__vitePreload(()=>import("./sd-C2tHD2QJ.js").then(t=>t.s),[]),se:()=>__vitePreload(()=>import("./se-D-Z-g-zR.js").then(t=>t.s),[]),si:()=>__vitePreload(()=>import("./si-D8tfqMRr.js").then(t=>t.s),[]),sk:()=>__vitePreload(()=>import("./sk-Cuwxrj7Q.js").then(t=>t.s),[]),sl:()=>__vitePreload(()=>import("./sl-GyG38LEZ.js").then(t=>t.s),[]),sq:()=>__vitePreload(()=>import("./sq-CqrckaYs.js").then(t=>t.s),[]),"sr-cyrl":()=>__vitePreload(()=>import("./sr-cyrl-BNeOdsLt.js").then(t=>t.s),[]),sr:()=>__vitePreload(()=>import("./sr-qvY5iPek.js").then(t=>t.s),[]),ss:()=>__vitePreload(()=>import("./ss-B3T3rRHE.js").then(t=>t.s),[]),"sv-fi":()=>__vitePreload(()=>import("./sv-fi-6MQQm9BX.js").then(t=>t.s),[]),sv:()=>__vitePreload(()=>import("./sv-BHgvWL66.js").then(t=>t.s),[]),sw:()=>__vitePreload(()=>import("./sw-rOsaAzVR.js").then(t=>t.s),[]),ta:()=>__vitePreload(()=>import("./ta-DWNAZiJf.js").then(t=>t.t),[]),te:()=>__vitePreload(()=>import("./te-DrVYuzEu.js").then(t=>t.t),[]),tet:()=>__vitePreload(()=>import("./tet-Ca9GDfiu.js").then(t=>t.t),[]),tg:()=>__vitePreload(()=>import("./tg-Cu_9pp9c.js").then(t=>t.t),[]),th:()=>__vitePreload(()=>import("./th-BN3-BUAu.js").then(t=>t.t),[]),tk:()=>__vitePreload(()=>import("./tk-CbpUHfen.js").then(t=>t.t),[]),"tl-ph":()=>__vitePreload(()=>import("./tl-ph-Ckt_0JXD.js").then(t=>t.t),[]),tlh:()=>__vitePreload(()=>import("./tlh-ChSDAHe2.js").then(t=>t.t),[]),tr:()=>__vitePreload(()=>import("./tr-BgNlasFR.js").then(t=>t.t),[]),tzl:()=>__vitePreload(()=>import("./tzl-DWaXaC10.js").then(t=>t.t),[]),"tzm-latn":()=>__vitePreload(()=>import("./tzm-latn-BZA670Px.js").then(t=>t.t),[]),tzm:()=>__vitePreload(()=>import("./tzm-BdRKPYmz.js").then(t=>t.t),[]),"ug-cn":()=>__vitePreload(()=>import("./ug-cn-BSY7uWpW.js").then(t=>t.u),[]),uk:()=>__vitePreload(()=>import("./uk-CSCv9xRn.js").then(t=>t.u),[]),ur:()=>__vitePreload(()=>import("./ur-Dn7jctSy.js").then(t=>t.u),[]),"uz-latn":()=>__vitePreload(()=>import("./uz-latn-Dsdl2ibC.js").then(t=>t.u),[]),uz:()=>__vitePreload(()=>import("./uz-RsMi-MkX.js").then(t=>t.u),[]),vi:()=>__vitePreload(()=>import("./vi-lu615PLV.js").then(t=>t.v),[]),"x-pseudo":()=>__vitePreload(()=>import("./x-pseudo-0uPbd5Tp.js").then(t=>t.x),[]),yo:()=>__vitePreload(()=>import("./yo-Cc8IMbaA.js").then(t=>t.y),[]),"zh-cn":()=>__vitePreload(()=>import("./zh-cn-CRxNMwQR.js").then(t=>t.z),[]),"zh-hk":()=>__vitePreload(()=>import("./zh-hk-DDmDg2oN.js").then(t=>t.z),[]),"zh-tw":()=>__vitePreload(()=>import("./zh-tw-DnLDAyCf.js").then(t=>t.z),[]),zh:()=>__vitePreload(()=>import("./zh-BCRM9lJW.js").then(t=>t.z),[]),"es-mx":()=>__vitePreload(()=>import("./es-mx-SNq7VphV.js").then(t=>t.e),[]),"es-pr":()=>__vitePreload(()=>import("./es-pr-B7TwIh8Y.js").then(t=>t.e),[]),"es-us":()=>__vitePreload(()=>import("./es-us-DGDEemNg.js").then(t=>t.e),[])}
1220,loadDayjsLocale=t=>{if(!dayJsLocales[t]){console.warn(`Dayjs locale ${t} is not available.`);return}dayJsLocales[t]().then(()=>dayjs.locale(t)).catch(o=>{console.warn(`Failed to load dayjs locale "${t}". Reason = `,o)})};doMappingLogic();handleImpactIrClickId();window.siteName==="MHH"&&__vitePreload(()=>Promise.resolve({}),__vite__mapDeps([367]));window.siteName==="amal"&&__vitePreload(()=>Promise.resolve({}),__vite__mapDeps([368]));window.siteName==="firefly"&&__vitePreload(()=>Promise.resolve({}),__vite__mapDeps([369]));window.siteName==="enrich-portal"&&__vitePreload(()=>Promise.resolve({}),__vite__mapDeps([370]));init$2();dayjs.extend(isToday);dayjs.extend(isBetween);dayjs.extend(isSameOrBefore);dayjs.extend(isSameOrAfter);loadDayjsLocale("en");document.addEventListener("DOMContentLoaded",function t(){const o=`${aemSpaPageModelManagerExports.PathUtils.getMetaPropertyValue("cq:errorpages")}/`;aemSpaPageModelManagerExports.ModelManager.initialize({errorPageRoot:o})});const fetchCurrentPageModel=async()=>{const t=document.querySelector('meta[name="mh:page-model-url"]').content,o=document.querySelector('meta[property="cq:errorpages"]'),r=o?`${o.content}/404.model.json`:null;return axios$1.get(t).then(e=>e.data).catch(e=>(console.error("fetchCurrentPageModel failed. reason = ",e),r?axios$1.get(r).then(n=>n.data):null))};fetchCurrentPageModel().then(t=>{var b;console.log("currentPageModel = ",t);const o=aemSpaPageModelManagerExports.AuthoringUtils.isInEditor(),r=document.querySelector('meta[property="cq:pagemodel_root_url"]').content,e={cqItems:t[":items"],cqItemsOrder:t[":itemsOrder"],cqPath:t[":path"],cqType:t[":type"],injectPropsOnInit:!1,templateName:t.templateName,language:t.language,title:t.title},n=r.replace(/\.model\.json$/,""),a=e.cqPath,i=generateRoutes({cqChildren:{[a]:e},rootPath:n,currentPath:a});console.log("routes = ",i);const s=patchRouter(createRouter({history:createWebHistory(),routes:i})),l=["wcmmode","vite","empty","id"];function d(y){return Object.keys(y.query).some(_=>l.includes(_))}function c(y){return Object.fromEntries(Object.entries(y.query).filter(([_,S])=>l.includes(_)))}s.beforeEach((y,_,S)=>{!d(y)&&d(_)?S({...y,query:{...y.query,...c(_)}}):S()});const u=createApp(App,e);u.use(s),u.use(i18n),u.use(customDirectives);const f={isEditorMode:o,cqPath:r},m=useGlobalAEMState$1();if(m.rootPageModel.value={...transformObjKeyToCq(f)},m.pageModel.value={...transformObjKeyToCq(t)},m.pageProperties.value.rootLanguage!=="en"){const y=(b=m.pageProperties.value.rootLanguage)==null?void 0:b.replaceAll("_","-").toLowerCase();loadDayjsLocale(y)}try{setupFirebaseCloudMessaging()}catch(y){console.error("setupFirebaseCloudMessaging() failed. Error = ",y)}setCountryAndLocaleCookie(),window.mainApp=u,window.router=s,u.component("AppHyperlink",AppHyperlink),u.mount("#spa-root")});export{Anchor as $,AppSpinner as A,create$3 as B,Checkbox as C,DatePicker as D,ExperienceFragment as E,Fragment as F,__unplugin_components_0$6 as G,__unplugin_components_1$c as H,createBlock as I,yup as J,gsapWithCSS as K,useRouteHash as L,lodashExports as M,onBeforeUnmount as N,createSlots as O,Parsys as P,normalizeStyle as Q,nextTick$1 as R,ScrollTrigger as S,TransitionSimpleSlideDown as T,scrollToElement as U,VueSwiper as V,__unplugin_components_0$k as W,__unplugin_components_1$d as X,markRaw as Y,useGlobalAEMState$1 as Z,_export_sfc as _,resolveDirective as a,__unplugin_components_0$a as a$,Url as a0,stringifyQuery as a1,VueTabs as a2,i18nGlobal as a3,PassengerAndCabinClass$1 as a4,DateRangePicker as a5,ONDPicker$1 as a6,RadioButton as a7,useAuthStore as a8,Teleport as a9,__unplugin_components_2$6 as aA,__unplugin_components_2$4 as aB,useRouter$1 as aC,useRoute$1 as aD,useRouteQuery as aE,CrossSellBanner as aF,useDisableScroll as aG,resolveDynamicComponent as aH,withKeys as aI,renderSlot as aJ,Transition as aK,useFieldValidation as aL,toRef as aM,useGenerateIdentifier as aN,useFormAccordionStatus as aO,Tooltip as aP,normalizeProps as aQ,mergeProps as aR,__unplugin_components_0$n as aS,__unplugin_components_2$5 as aT,__unplugin_components_1$5 as aU,useOptionalProp as aV,useKeyInputRestriction as aW,commonjsGlobal as aX,getDefaultExportFromCjs as aY,useInternalValue as aZ,vModelRadio as a_,RecaptchaGoogle as aa,RecaptchaMT as ab,__unplugin_components_0$i as ac,reactive as ad,withModifiers as ae,useEventBus as af,pushAA_userEvent as ag,pushAA_click as ah,pushAA_formError as ai,pushAA_generalApiError as aj,onUnmounted as ak,isRTL as al,AppHyperlink as am,isLG as an,__unplugin_components_1$e as ao,__unplugin_components_0$l as ap,isSameOrAfter as aq,useONDList as ar,usePersistencyWithExpiry as as,MHScrollToElement as at,useIsRTL as au,resolve
1220Component as av,onClickOutside as aw,vModelText as ax,ensureHtmlExtension as ay,wrapQueryWithHTML as az,openBlock as b,__unplugin_components_0 as b$,useBookingWidgetSubpage as b0,MobileSubpage as b1,toString_1 as b2,TransitionHeight as b3,formatRoundedIntegerWithCommas as b4,isUrlMatchCurrentHostname as b5,breakpoints$1 as b6,__unplugin_components_0$g as b7,__unplugin_components_1$b as b8,defaultLogoImg as b9,unref as bA,vModelCheckbox as bB,pushAA_search as bC,pushAA_searchError as bD,Breadcrumb as bE,pushAA_filterApplied as bF,HtmlComponent as bG,purify as bH,useHeaderFooterStore as bI,MobileMainMenu as bJ,DesktopLevelTwo as bK,DesktopCountrySelector as bL,LoginMenu as bM,BREAKPOINTS as bN,SwitchTab as bO,__unplugin_components_0$d as bP,useAmalAuthStore as bQ,addRetainingQueryToUrl as bR,TransitionGroup as bS,AppFooterAccordion as bT,MobileDrawerHeader as bU,Search as bV,MobileBtmBar as bW,__unplugin_components_4$1 as bX,isXL as bY,useFocusTrap as bZ,useUrlSearchParams as b_,OverlayDrawer as ba,iconPlus as bb,iconMinus as bc,useHeaderScroll as bd,sleep as be,__unplugin_components_2$3 as bf,__unplugin_components_0$j as bg,require$$0 as bh,getAugmentedNamespace as bi,OverlayBtmSticky as bj,useOffsetPagination as bk,__unplugin_components_1$6 as bl,__unplugin_components_0$b as bm,RawUrl as bn,parseQuery as bo,__unplugin_components_0$7 as bp,pushAA_subscribe as bq,pushAA_manageProfile as br,getCurrentInstance as bs,shallowRef as bt,getMappedComponent as bu,isNonAsciiString as bv,getUuid as bw,Utils as bx,onBeforeMount as by,waitFor as bz,computed as c,pushAA_clickFilter as c$,ManageBooking as c0,CheckIn as c1,useBSTOverlayInterimData as c2,getMalaysiaAirportForBST as c3,HeaderBST as c4,FooterBST as c5,EditSearchBST as c6,OptionBST as c7,getONDValueByAirportCode as c8,getCookie as c9,formatNumberWithComma as cA,useSideSheetOverlay as cB,createStaticVNode as cC,__unplugin_components_0$e as cD,__unplugin_components_1$9 as cE,pushAA_event as cF,NumberPlusMinus as cG,MobileCountrySelector as cH,useEnrichSummaryHttpCache as cI,SsoCrossDomain as cJ,defineComponent as cK,watchEffect as cL,__unplugin_components_0$5 as cM,__unplugin_components_0$h as cN,iconCollapse as cO,_imports_1 as cP,formatNumberFloorToTwoDecimals as cQ,__unplugin_components_1$a as cR,deleteCookie as cS,setCookie as cT,inject as cU,toRefs as cV,toValue$1 as cW,h as cX,shallowReactive as cY,onUpdated as cZ,isXXL as c_,useIsUkVariant as ca,useLowFarePriceList as cb,useBookingWidgetUrlQuery as cc,formatNumberWithAbbreviation as cd,useSyncPassengerDetails as ce,ToggleSwitch as cf,isXXXL as cg,isBetween as ch,pushAA_flightSearchStart as ci,ContinueYourSearch$2 as cj,getAncestorBySelector as ck,pushAA_flightSearchEnd as cl,__unplugin_components_0$9 as cm,pushAA_flightStatusStart as cn,SubTabCities as co,SubTabFlightNumber as cp,pushAA_flightStatusEnd as cq,useIsCountryVariant as cr,pushAA_flightDisruptionStart as cs,pushAA_flightDisruptionEnd as ct,SubTabMultiCity as cu,SubTabTermsConditions as cv,SubTabRedeemFlight as cw,toRaw as cx,__unplugin_components_0$m as cy,__unplugin_components_0$4 as cz,createElementBlock as d,MobileMainMenuFooter as d0,useFireflyAuthStore as d1,FireflyFlightSearch as d2,FireflyAirCargo as d3,FireflyManageBooking as d4,FireflyCheckIn as d5,FlightStatus as d6,getElDimensions as d7,pushAA_formStart as d8,pushAA_formComplete as d9,useGeolocation as dA,dayjs_minExports as dB,provide as da,guardReactiveProps as db,__unplugin_components_1$4 as dc,fuzzysort as dd,script as de,__unplugin_components_0$8 as df,encryptionHelper as dg,getRandomInt as dh,HotelPicker as di,AirportPicker as dj,isRef as dk,setCountryAndLocaleCookie as dl,IconCu
1220stom as dm,useGlobalCookieSettings as dn,pushToAdobeDataLayerGlobal as dp,vModelDynamic as dq,DropdownTravellersAndRoom as dr,__unplugin_components_1$3 as ds,__unplugin_components_2$1 as dt,pushAA_MHHFlightPlusHotelStart as du,pushAA_MHHFlightPlusHotelEnd as dv,pushAA_MHHHotelStart as dw,pushAA_MHHHotelEnd as dx,pushAA_tripsAndToursStart as dy,pushAA_tripsAndToursEnd as dz,renderList as e,createBaseVNode as f,getCompositeComponent as g,createVNode as h,withCtx as i,createCommentVNode as j,createTextVNode as k,FontAwesomeLazy as l,watch as m,normalizeClass as n,onMounted as o,FormWrapper as p,TextField as q,ref$1 as r,Dropdown as s,toDisplayString as t,CTAButton as u,vShow as v,withDirectives as w,isMobileViewport as x,dayjs as y,axios$1 as z};
1221//# sourceMappingURL=main-BRllkcH1.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.